]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: fix value_subscript when array upper bound is not known
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5b56203a
SM
12020-12-09 Simon Marchi <simon.marchi@efficios.com>
2
3 PR 26875, PR 26901
4 * gdbtypes.c (get_discrete_low_bound): Make non-static.
5 (get_discrete_high_bound): Make non-static.
6 * gdbtypes.h (get_discrete_low_bound): New declaration.
7 (get_discrete_high_bound): New declaration.
8 * valarith.c (value_subscript): Only fetch high bound if
9 necessary.
10
14c09924
SM
112020-12-09 Simon Marchi <simon.marchi@efficios.com>
12
13 * gdbtypes.c (get_discrete_bounds): Implement with
14 get_discrete_low_bound and get_discrete_high_bound.
15 (get_discrete_low_bound): New.
16 (get_discrete_high_bound): New.
17
1f8d2881
SM
182020-12-09 Simon Marchi <simon.marchi@efficios.com>
19
20 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
21 callers.
22 * gdbtypes.c (get_discrete_bounds): Return bool.
23
6244c119
SM
242020-12-09 Simon Marchi <simon.marchi@efficios.com>
25
26 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
27 (ada_value_slice): Adjust.
28 (pos_atr): Adjust.
29 * gdbtypes.c (get_discrete_bounds): Adjust.
30 (discrete_position): Return optional.
31 * gdbtypes.h (discrete_position): Return optional.
32
a4915e8d
TT
332020-12-07 Tom Tromey <tromey@adacore.com>
34
35 * maint.c (_initialize_maint_cmds): Use expression command
36 completer for "maint print type".
37
1f58f6c2
TBA
382020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
39
40 * completer.c (complete_explicit_location): Also add keywords
41 that start with '-' to the completion list.
42
5759831a
TBA
432020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
44
45 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
46 keyword may be followed by any keyword.
47 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
48 'toklen' in the case for "-force-condition".
49
21e051b3
TBA
502020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
51
52 * main.c (catch_command_errors): Add a flag parameter; invoke
53 `bpstat_do_actions` if the flag is set.
54 (execute_cmdargs): Update a call to `catch_command_errors`.
55
f51f9f1d
TV
562020-12-07 Tom de Vries <tdevries@suse.de>
57
58 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
59
00158a68
TT
602020-12-06 Tom Tromey <tom@tromey.com>
61
62 PR ada/26999
63 * ada-lang.c (replace_operator_with_call): Rewrite.
64
296cfb88
GF
652020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
66
67 PR breakpoints/27009
68 * s390-tdep.h (op_bc): Correct BC opcode value.
69
63c457b9
JB
702020-12-06 Joel Brobecker <brobecker@adacore.com>
71
72 * gmp-utils.h (gdb_mpz::safe_export): New private method.
73 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
74 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
75 (gdb_mpz::safe_export): New method.
76 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
77 Update function description.
78 (check_as_integer_raises_out_of_range_error): New function.
79 (gdb_mpz_as_integer_out_of_range): New function.
80 (_initialize_gmp_utils_selftests): Register
81 gdb_mpz_as_integer_out_of_range as a selftest.
82
3c7ba803
JB
832020-12-05 Joel Brobecker <brobecker@adacore.com>
84
85 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
86 TARGET_CHAR_BIT.
87 (gdb_mpz::write): Likewise.
88
372ff58f
SM
892020-12-04 Simon Marchi <simon.marchi@efficios.com>
90
91 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
92 number of displaced step buffers.
93
480af54c
SM
942020-12-04 Simon Marchi <simon.marchi@efficios.com>
95
96 * displaced-stepping.h (struct displaced_step_buffer): Rename
97 to...
98 (struct displaced_step_buffers): ... this.
99 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
100 <struct displaced_step_buffer>: New inner class.
101 <m_buffers>: New.
102 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
103 to...
104 (displaced_step_buffers::prepare): ... this, adjust for multiple
105 buffers.
106 (displaced_step_buffer::finish): Rename to...
107 (displaced_step_buffers::finish): ... this, adjust for multiple
108 buffers.
109 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
110 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
111 adjust for multiple buffers.
112 (displaced_step_buffer::restore_in_ptid): Rename to...
113 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
114 multiple buffers.
115 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
116 for num_disp_step_buffers.
117 * linux-tdep.c (struct linux_gdbarch_data)
118 <num_disp_step_buffers>: New field.
119 (struct linux_info) <disp_step_buf>: Rename to...
120 <disp_step_bufs>: ... this, change type to
121 displaced_step_buffers.
122 (linux_displaced_step_prepare): Use
123 linux_gdbarch_data::num_disp_step_buffers to create that number
124 of buffers.
125 (linux_displaced_step_finish): Adjust.
126 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
127 (linux_displaced_step_restore_all_in_ptid): Adjust.
128 (linux_init_abi): Change supports_displaced_step parameter for
129 num_disp_step_buffers, save it in linux_gdbarch_data.
130 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
131 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
132 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
133 supports_displaced_step parameter for num_disp_step_buffers.
134 (amd64_linux_init_abi): Adjust.
135 (amd64_x32_linux_init_abi): Adjust.
136 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
137 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
138 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
139 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
140 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
141 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
142 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
143 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
144 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
145 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
146 * m68k-linux-tdep.c (m68k_linux_init_abi):
147 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
148 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
149 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
150 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
151 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
152 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
153 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
154 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
155 Change type to displaced_step_buffers.
156 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
157 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
158 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
159 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
160 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
161 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
162 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
163
d9655058
SM
1642020-12-04 Simon Marchi <simon.marchi@efficios.com>
165
166 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
167 obkstack.
168 (_initialize_linux_tdep): Register pre-init gdb data instead of
169 post-init.
170
187b041e
SM
1712020-12-04 Simon Marchi <simon.marchi@efficios.com>
172
173 * displaced-stepping.h (struct
174 displaced_step_copy_insn_closure): Adjust comments.
175 (struct displaced_step_inferior_state) <step_thread,
176 step_gdbarch, step_closure, step_original, step_copy,
177 step_saved_copy>: Remove fields.
178 (struct displaced_step_thread_state): New.
179 (struct displaced_step_buffer): New.
180 * displaced-stepping.c (displaced_step_buffer::prepare): New.
181 (write_memory_ptid): Move from infrun.c.
182 (displaced_step_instruction_executed_successfully): New,
183 factored out of displaced_step_finish.
184 (displaced_step_buffer::finish): New.
185 (displaced_step_buffer::copy_insn_closure_by_addr): New.
186 (displaced_step_buffer::restore_in_ptid): New.
187 * gdbarch.sh (displaced_step_location): Remove.
188 (displaced_step_prepare, displaced_step_finish,
189 displaced_step_copy_insn_closure_by_addr,
190 displaced_step_restore_all_in_ptid): New.
191 * gdbarch.c: Re-generate.
192 * gdbarch.h: Re-generate.
193 * gdbthread.h (class thread_info) <displaced_step_state>: New
194 field.
195 (thread_step_over_chain_remove): New declaration.
196 (thread_step_over_chain_next): New declaration.
197 (thread_step_over_chain_length): New declaration.
198 * thread.c (thread_step_over_chain_remove): Make non-static.
199 (thread_step_over_chain_next): New.
200 (global_thread_step_over_chain_next): Use
201 thread_step_over_chain_next.
202 (thread_step_over_chain_length): New.
203 (global_thread_step_over_chain_enqueue): Add debug print.
204 (global_thread_step_over_chain_remove): Add debug print.
205 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
206 Remove.
207 * infrun.c (get_displaced_stepping_state): New.
208 (displaced_step_in_progress_any_inferior): Remove.
209 (displaced_step_in_progress_thread): Adjust.
210 (displaced_step_in_progress): Adjust.
211 (displaced_step_in_progress_any_thread): New.
212 (get_displaced_step_copy_insn_closure_by_addr): Remove.
213 (gdbarch_supports_displaced_stepping): Use
214 gdbarch_displaced_step_prepare_p.
215 (displaced_step_reset): Change parameter from inferior to
216 thread.
217 (displaced_step_prepare_throw): Implement using
218 gdbarch_displaced_step_prepare.
219 (write_memory_ptid): Move to displaced-step.c.
220 (displaced_step_restore): Remove.
221 (displaced_step_finish): Implement using
222 gdbarch_displaced_step_finish.
223 (start_step_over): Allow starting more than one displaced step.
224 (prepare_for_detach): Handle possibly multiple threads doing
225 displaced steps.
226 (handle_inferior_event): Handle possibility that fork event
227 happens while another thread displaced steps.
228 * linux-tdep.h (linux_displaced_step_prepare): New.
229 (linux_displaced_step_finish): New.
230 (linux_displaced_step_copy_insn_closure_by_addr): New.
231 (linux_displaced_step_restore_all_in_ptid): New.
232 (linux_init_abi): Add supports_displaced_step parameter.
233 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
234 (linux_displaced_step_prepare): New.
235 (linux_displaced_step_finish): New.
236 (linux_displaced_step_copy_insn_closure_by_addr): New.
237 (linux_displaced_step_restore_all_in_ptid): New.
238 (linux_init_abi): Add supports_displaced_step parameter,
239 register displaced step methods if true.
240 (_initialize_linux_tdep): Register inferior_execd observer.
241 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
242 supports_displaced_step parameter, adjust call to
243 linux_init_abi. Remove call to
244 set_gdbarch_displaced_step_location.
245 (amd64_linux_init_abi): Adjust call to
246 amd64_linux_init_abi_common.
247 (amd64_x32_linux_init_abi): Likewise.
248 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
249 linux_init_abi. Remove call to
250 set_gdbarch_displaced_step_location.
251 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
252 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
253 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
254 linux_init_abi.
255 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
256 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
257 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
258 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
259 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
260 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
261 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
262 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
263 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
264 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
265 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
266 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
267 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
268 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
269 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
270 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
271 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
272 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
273 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
274 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
275 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
276 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
277 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
278 linux_init_abi. Remove call to
279 set_gdbarch_displaced_step_location.
280 * arm-tdep.c (arm_pc_is_thumb): Call
281 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
282 get_displaced_step_copy_insn_closure_by_addr.
283 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
284 clear gdbarch methods.
285 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
286 (get_ppc_per_inferior): New function.
287 (ppc_displaced_step_prepare): New function.
288 (ppc_displaced_step_finish): New function.
289 (ppc_displaced_step_restore_all_in_ptid): New function.
290 (rs6000_gdbarch_init): Register new gdbarch methods.
291 * s390-tdep.c (s390_gdbarch_init): Don't call
292 set_gdbarch_displaced_step_location, set new gdbarch methods.
293
c7acb87b
SM
2942020-12-04 Simon Marchi <simon.marchi@efficios.com>
295
296 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
297 * aarch64-tdep.h: Include displaced-stepping.h.
298 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
299 Move here.
300 (displaced_step_copy_insn_closure_up): Move here.
301 (struct buf_displaced_step_copy_insn_closure): Move here.
302 (struct displaced_step_inferior_state): Move here.
303 (debug_displaced): Move here.
304 (displaced_debug_printf_1): Move here.
305 (displaced_debug_printf): Move here.
306 * displaced-stepping.c: New file.
307 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
308 * gdbarch.h: Re-generate.
309 * inferior.h: Include displaced-stepping.h.
310 * infrun.h (debug_displaced): Move to displaced-stepping.h.
311 (displaced_debug_printf_1): Likewise.
312 (displaced_debug_printf): Likewise.
313 (struct displaced_step_copy_insn_closure): Likewise.
314 (displaced_step_copy_insn_closure_up): Likewise.
315 (struct buf_displaced_step_copy_insn_closure): Likewise.
316 (struct displaced_step_inferior_state): Likewise.
317 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
318 (displaced_debug_printf_1): Likewise.
319 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
320 Likewise.
321 (_initialize_infrun): Don't register "set/show debug displaced".
322
94b24c74
SM
3232020-12-04 Simon Marchi <simon.marchi@efficios.com>
324
325 * linux-tdep.c (get_linux_inferior_data): Add inferior
326 parameter.
327 (linux_vsyscall_range): Pass current inferior.
328
bab37966
SM
3292020-12-04 Simon Marchi <simon.marchi@efficios.com>
330
331 * infrun.c (displaced_step_prepare_throw): Change return type to
332 displaced_step_prepare_status.
333 (displaced_step_prepare): Likewise.
334 (displaced_step_finish): Change return type to
335 displaced_step_finish_status.
336 (resume_1): Adjust.
337 (stop_all_threads): Adjust.
338 * displaced-stepping.h: New file.
339
7def77a1
SM
3402020-12-04 Simon Marchi <simon.marchi@efficios.com>
341
342 * infrun.c (displaced_step_fixup): Rename to...
343 (displaced_step_finish): ... this, update all callers.
344
1152d984
SM
3452020-12-04 Simon Marchi <simon.marchi@efficios.com>
346
347 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
348 (get_displaced_step_copy_insn_closure_by_addr): ... this.
349 Update all users.
350 (displaced_step_closure): Rename to...
351 (displaced_step_copy_insn_closure): ... this. Update all users.
352 (displaced_step_closure_up): Rename to...
353 (displaced_step_copy_insn_closure_up). ... this. Update all
354 users.
355 (buf_displaced_step_closure): Rename to...
356 (buf_displaced_step_copy_insn_closure): ... this. Update all
357 users.
358 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
359 (get_displaced_step_copy_insn_closure_by_addr): ... this.
360 Update all users.
361 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
362 (aarch64_displaced_step_copy_insn_closure): ... this. Update
363 all users.
364 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
365 (amd64_displaced_step_copy_insn_closure): ... this. Update all
366 users.
367 * arm-tdep.h (arm_displaced_step_closure): Rename to...
368 (arm_displaced_step_copy_insn_closure): ... this. Update all
369 users.
370 * i386-tdep.h (i386_displaced_step_closure): Rename to...
371 (i386_displaced_step_copy_insn_closure): ... this. Update all
372 users.
373 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
374 (ppc_displaced_step_copy_insn_closure): ... this. Update all
375 users.
376 * s390-tdep.c (s390_displaced_step_closure): Rename to...
377 (s390_displaced_step_copy_insn_closure): ... this. Update all
378 users.
379 * gdbarch.h: Re-generate.
380 * gdbarch.c: Re-generate.
381
28d5518b
SM
3822020-12-04 Simon Marchi <simon.marchi@efficios.com>
383
384 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
385 (global_thread_step_over_chain_enqueue): ... this. Update all
386 users.
387 (thread_step_over_chain_remove): Rename to...
388 (global_thread_step_over_chain_remove): ... this. Update all
389 users.
390 (thread_step_over_chain_next): Rename to...
391 (global_thread_step_over_chain_next): ... this. Update all
392 users.
393 * infrun.h (step_over_queue_head): Rename to...
394 (global_thread_step_over_chain_head): ... this. Update all
395 users.
396 * infrun.c (step_over_queue_head): Rename to...
397 (global_thread_step_over_chain_head): ... this. Update all
398 users.
399 * thread.c (step_over_chain_remove): Rename to...
400 (thread_step_over_chain_remove): ... this. Update all users.
401 (thread_step_over_chain_next): Rename to...
402 (global_thread_step_over_chain_next): ... this. Update all
403 users.
404 (thread_step_over_chain_enqueue): Rename to...
405 (global_thread_step_over_chain_enqueue): ... this. Update all
406 users.
407 (thread_step_over_chain_remove): Rename to...
408 (global_thread_step_over_chain_remove): ... this. Update all
409 users.
410
f5f01699
SM
4112020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
412
413 * infrun.c (get_displaced_stepping_state): Remove, change
414 callers to access the field directly.
415
c0aba012
SM
4162020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
417
418 * infrun.c (handle_inferior_event): Restore displaced step
419 buffer bytes in child process when handling fork, even if fork
420 happened in another thread than the displaced-stepping one.
421
3b7a962d
SM
4222020-12-04 Simon Marchi <simon.marchi@efficios.com>
423
424 * infrun.c (infrun_inferior_execd): New function.
425 (_initialize_infrun): Attach inferior_execd observer.
426
42a4fec5
SM
4272020-12-04 Simon Marchi <simon.marchi@efficios.com>
428
429 * observable.h (inferior_execd): Declare new observable.
430 * observable.c (inferior_execd): Declare new observable.
431 * infrun.c (follow_exec): Notify inferior_execd observer.
432 * jit.c (jit_inferior_created_hook): Make static.
433 (_initialize_jit): Register inferior_execd observer.
434 * jit.h (jit_inferior_created_hook): Remove declaration.
435 * solib.c (_initialize_solib): Register inferior_execd observer.
436
aafdfb4e
TV
4372020-12-04 Tom de Vries <tdevries@suse.de>
438
439 PR gdb/27003
440 * completer.c (completion_tracker::build_completion_result): Don't
441 access match_list[0][-1].
442
f99b5177
TT
4432020-12-04 Tom Tromey <tromey@adacore.com>
444
445 * linespec.c (struct linespec_token): Rename; remove typedef.
446 * guile/scm-block.c (struct block_smob): Remove typedef.
447 (struct block_syms_progress_smob): Likewise.
448 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
449 * guile/scm-symtab.c (symtab_smob): Remove typedef.
450 (struct sal_smob): Remove typedef.
451 * guile/scm-param.c (struct param_smob): Remove typedef.
452 * guile/scm-progspace.c (struct pspace_smob): Rename.
453 * guile/scm-objfile.c (struct objfile_smob): Rename.
454 * guile/scm-iterator.c (struct iterator_smob): Rename.
455 * guile/scm-frame.c (struct frame_smob): Rename.
456 * guile/scm-arch.c (struct arch_smob): Rename.
457 * guile/scm-type.c (struct field_smob): Remove typedef.
458 (struct type_smob): Rename.
459 * guile/scm-cmd.c (struct command_smob): Remove typedef.
460 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
461 * guile/scm-value.c (struct value_smob): Remove typedef.
462 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
463 * guile/guile-internal.h (struct scheme_variable)
464 (struct scheme_function, struct scheme_integer_constant)
465 (struct gdb_smob, struct chained_gdb_smob)
466 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
467 (objfile_smob, pspace_smob, type_smob): Remove typedef.
468 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
469 (struct pretty_printer_worker_smob): Remove typedef.
470 * guile/scm-exception.c (struct exception_smob): Remove typedef.
471 * python/py-block.c (struct block_object): Remove typedef.
472 (block_syms_iterator_object): Update.
473 (set_block): Update.
474 (block_syms_iterator_object): Remove typedef.
475 * python/py-inferior.c (struct membuf_object): Remove typedef.
476 * python/py-symtab.c (struct symtab_object): Remove typedef.
477 (set_symtab): Update.
478 (sal_object): Remove typedef.
479 (set_sal): Update.
480 * python/py-frame.c (frame_object): Remove typedef.
481 * python/py-record-btrace.c (struct btpy_list_object): Remove
482 typedef.
483 * python/py-arch.c (struct arch_object): Remove typedef.
484 * python/py-linetable.c (struct linetable_entry_object)
485 (linetable_object, struct ltpy_iterator_object): Remove typedef.
486 * python/py-events.h (eventregistry_object): Remove typedef.
487 (struct events_object): Remove typedef.
488 * python/python-internal.h (gdbpy_breakpoint_object): Remove
489 typedef.
490 (thread_object): Remove typedef.
491 * python/py-progspace.c (pspace_object): Remove typedef.
492 * python/py-value.c (struct value_object): Remove typedef.
493 * python/py-record.h (recpy_record_object): Remove typedef.
494 (struct recpy_element_object): Remove typedef.
495 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
496 * python/py-objfile.c (objfile_object): Remove typedef.
497 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
498 * python/py-type.c (type_object): Remove typedef.
499 (typy_iterator_object): Update.
500 (set_type): Update.
501 (field_object): Remove typedef.
502 (typy_iterator_object): Remove typedef.
503 * python/py-registers.c (register_descriptor_iterator_object):
504 Remove typedef.
505 (struct register_descriptor_object)
506 (struct reggroup_iterator_object, struct reggroup_object): Remove
507 typedef.
508 * python/py-record.c (recpy_gap_object): Remove typedef.
509 * python/py-symbol.c (symbol_object): Remove typedef.
510 (set_symbol): Update.
511 * python/py-event.h (event_object): Remove typedef.
512 * python/py-param.c (parmpy_object): Remove typedef.
513 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
514 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
515 (unwind_info_object, struct cached_frame_info): Likewise.
516
91f87213
TT
5172020-12-04 Tom Tromey <tromey@adacore.com>
518
519 * value.c (value_internal_function_name): Make return type const.
520 * value.h (value_internal_function_name): Make return type const.
521
5382f971
LM
5222020-12-04 Luis Machado <luis.machado@linaro.org>
523
524 * aarch64-tdep.c (submask, bit, bits): Remove.
525 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
526 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
527 (aarch64_decode_cb, aarch64_decode_tb)
528 (aarch64_decode_ldr_literal): Use sbits to extract a signed
529 immediate.
530 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
531
b6a6aa07
TV
5322020-12-04 Tom de Vries <tdevries@suse.de>
533
534 PR tdep/27007
535 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
536
0bc2e38d
SM
5372020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
538
539 PR gdb/26876
540 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
541 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
542
25428040
AB
5432020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * arch/riscv.c: Include 'rv32e-xregs.c'.
546 (riscv_create_target_description): Update to handle rv32e.
547 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
548 member variable.
549 <operator==>: Update to account for new field.
550 <hash>: Likewise.
551 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
552 * features/riscv/rv32e-xregs.c: Generated.
553 * features/riscv/rv32e-xregs.xml: New file.
554 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
555 file.
556 (riscv_debug_infcall): Likewise.
557 (riscv_debug_unwinder): Likewise.
558 (riscv_debug_gdbarch): Likewise.
559 (enum riscv_register_required_status): Delete.
560 (struct riscv_register_feature): Add constructor, delete default
561 constructor, copy, and assign constructors.
562 (struct riscv_register_feature::register_info) <required>: Delete.
563 <check>: Update comment and arguments.
564 (struct riscv_register_feature) <name>: Change to member function.
565 <prefer_first_name>: Delete.
566 <tdesc_feature>: New member function.
567 <registers>: Rename to...
568 <m_registers>: ...this.
569 <m_feature_name>: New member variable.
570 (riscv_register_feature::register_info::check): Update arguments.
571 (riscv_xreg_feature): Rewrite as class, create a single static
572 instance of the class.
573 (riscv_freg_feature): Likewise.
574 (riscv_virtual_feature): Likewise.
575 (riscv_csr_feature): Likewise.
576 (riscv_create_csr_aliases): Has become a member function inside
577 riscv_csr_feature class.
578 (riscv_abi_embedded): New function definition.
579 (riscv_register_name): Adjust to use new feature objects.
580 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
581 and adjust available argument registers.
582 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
583 (riscv_check_tdesc_feature): Delete.
584 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
585 (riscv_gdbarch_init): Delete target description checking code, and
586 instead call to the new feature objects to perform the checks.
587 Reorder handling of no abi information case, allows small code
588 simplification.
589 (_initialize_riscv_tdep): Remove call, this is now done in the
590 riscv_csr_feature constructor.
591 * riscv-tdep.h (riscv_abi_embedded): Declare.
592
533b2ae0
AB
5932020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
596 DECLARE_CSR_ALIAS.
597
e4502042
AB
5982020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
599
600 * riscv-tdep.c (riscv_is_unknown_csr): New function,
601 implementation moved from riscv_register_reggroup_p.
602 (riscv_register_reggroup_p): Update group handling for unknown
603 CSRs.
604
2bf3b79d
SDJ
6052020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
606
607 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
608 (dwarf2_get_dwz_file): Convert 'filename' to a
609 std::string. Use dwz_search_other_debugdirs to search for DWZ
610 files in the debug-file-directories provided by the user as well.
611
77bf7e99
TT
6122020-12-01 Tom Tromey <tom@tromey.com>
613
614 * parse.c (expr_builder::expr_builder): Initialize expout.
615 (expr_builder::release): Use expression::resize.
616 (expression::expression, expression::~expression)
617 (expression::resize): New methods.
618 (write_exp_elt): Use expression::resize.
619 (prefixify_expression): Update.
620 (increase_expout_size): Use expression::resize.
621 * expression.h (struct expression): Add constructor, destructor.
622 <resize>: New method.
623 (expression_up): Change type.
624
539d71e8
RA
6252020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
626 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
627 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
628 set region.
629
7ce05d21
TV
6302020-11-30 Tom de Vries <tdevries@suse.de>
631
632 PR symtab/26905
633 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
634 is_reference parameter.
635 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
636
88b91969
TT
6372020-11-30 Tom Tromey <tom@tromey.com>
638
639 * rust-lang.c (rust_op_name): Remove.
640 (exp_descriptor_rust): Update.
641 * parser-defs.h (op_name_standard): Don't declare.
642 (struct exp_descriptor) <op_name>: Remove.
643 * parse.c (exp_descriptor_standard): Update.
644 * opencl-lang.c (exp_descriptor_opencl): Update.
645 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
646 * f-lang.c (op_name_f): Remove.
647 (f_language::exp_descriptor_tab): Update.
648 * expression.h (op_name): Update.
649 * expprint.c (op_name): Rewrite.
650 (op_name_standard): Remove.
651 (dump_raw_expression, dump_subexp): Update.
652 * c-lang.c (exp_descriptor_c): Update.
653 * ax-gdb.c (gen_expr): Update.
654 * ada-lang.c (ada_op_name): Remove.
655 (ada_exp_descriptor): Update.
656
1cd49c43
TT
6572020-11-30 Tom Tromey <tom@tromey.com>
658
659 * eval.c (init_array_element): Remove.
660 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
661
96fb9086
HD
6622020-11-29 Hannes Domani <ssbssa@yahoo.de>
663
664 PR tui/26973
665 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
666 static locator win info.
667
b4132322
AR
6682020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
669
670 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
671 program.
672
3df8c6af
AB
6732020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
674
675 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
676 is always initialized.
677
0ae45769
RA
6782020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
679 * MAINTAINERS (Write After Approval): Add myself.
680
239ca5e4
PW
6812020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
682
683 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
684 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
685
cbfa382a
TT
6862020-11-25 Tom Tromey <tom@tromey.com>
687
688 * eval.c (evaluate_subexp_standard): Remove unnecessary
689 variables.
690
af30c400
TT
6912020-11-25 Tom Tromey <tom@tromey.com>
692
693 * d-lang.c: Include parser-defs.h.
694 * rust-lang.c: Include parser-defs.h.
695 * c-lang.h: Do not include parser-defs.h.
696
1c64f6cb
SM
6972020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
698
699 * regcache.h (struct cached_reg): Remove typedef.
700
2c20a601
JB
7012020-11-24 Joel Brobecker <brobecker@adacore.com>
702
703 * README: Fix the URL of the MPFR library.
704
c609df64
JB
7052020-11-24 Joel Brobecker <brobecker@adacore.com>
706
707 * README: Document the --with-libgmp-prefix configure option.
708
fa123c32
JB
7092020-11-24 Joel Brobecker <brobecker@adacore.com>
710
711 * NEWS: Add entry documenting support for DWARF-based fixed
712 point types.
713
0fb8bb02
JB
7142020-11-24 Joel Brobecker <brobecker@adacore.com>
715
716 * NEWS: Document that building GDB now requires GMP.
717
4afa9fd9
JB
7182020-11-24 Joel Brobecker <brobecker@adacore.com>
719
720 * typeprint.c (print_type_scalar): Add handling of
721 TYPE_CODE_FIXED_POINT.
722
af619ce9
JB
7232020-11-24 Joel Brobecker <brobecker@adacore.com>
724
725 * valarith.c (fixed_point_binop): Replace the
726 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
727 users accordingly.
728
e6fcee3a
JB
7292020-11-24 Joel Brobecker <brobecker@adacore.com>
730
731 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
732 replacing fixed_point_scaling_factor. All callers updated
733 throughout this project.
734 (fixed_point_scaling_factor): Delete declaration.
735 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
736 fixed_point_scaling_factor. Adjust implementation accordingly.
737
d19937a7
JB
7382020-11-24 Joel Brobecker <brobecker@adacore.com>
739
740 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
741 replacing the fixed_point_type_base_type function. All callers
742 updated throughout this project.
743 (fixed_point_type_base_type): Remove declaration.
744 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
745 fixed_point_type_base_type. Adjust implementation accordingly.
746
2a12c336
JB
7472020-11-24 Joel Brobecker <brobecker@adacore.com>
748
749 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
750 New methods.
751 (INIT_FIXED_POINT_SPECIFIC): Adjust.
752 (TYPE_FIXED_POINT_INFO): Delete macro.
753 (allocate_fixed_point_type_info): Change return type to void.
754 * gdbtypes.c (copy_type_recursive): Replace the use of
755 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
756 (fixed_point_scaling_factor): Likewise.
757 (allocate_fixed_point_type_info): Change return type to void.
758 Adjust implementation accordingly.
759 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
760 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
761
c9f0b43f
JB
7622020-11-24 Joel Brobecker <brobecker@adacore.com>
763
764 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
765 into one single gdb::array_view parameter.
766 (gdb_mpz::write): Likewise.
767 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
768 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
769 into one single gdb::array_view parameter.
770 Adjust implementation accordingly.
771 (gdb_mpz::write): Likewise.
772 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
773 * unittests/gmp-utils-selftests.c: Adapt following changes above.
774 * valarith.c, valops.c, valprint.c, value.c: Likewise.
775
987b6703
JB
7762020-11-24 Joel Brobecker <brobecker@adacore.com>
777
778 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
779 Change return type to std::string. Update all callers.
780 * gmp-utils.c (gmp_string_printf): Likewise.
781
4fbb7cce
JB
7822020-11-24 Joel Brobecker <brobecker@adacore.com>
783
784 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
785 instead of mpq_set_ui to initialize our GMP rational.
786
d6ab69dd
TV
7872020-11-23 Tom de Vries <tdevries@suse.de>
788
789 * debuginfod-support.c (debuginfod_source_query)
790 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
791
dab72643
TT
7922020-11-21 Tom Tromey <tom@tromey.com>
793
794 * breakpoint.c (watchpoint_exp_is_const): Return bool.
795
c0ad05d5
SM
7962020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
797
798 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
799 Pass 2.0 to pow.
800 (gdb_mpz_write_all_from_small): Likewise.
801
a43b29c9
SM
8022020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
803
804 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
805 of abs.
806
ae41200b
NA
8072020-11-20 Nick Alcock <nick.alcock@oracle.com>
808
809 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
810 ctf_arc_open_by_name.
811
139633c3
NA
8122020-11-20 Nick Alcock <nick.alcock@oracle.com>
813
814 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
815 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
816
cbbcd7a7
PA
8172020-11-20 Pedro Alves <pedro@palves.net>
818
819 * language.c (language_arch_info::lookup_primitive_type): Use
820 gdb::function_view instead of gdb::function.
821 (template language_lookup_primitive_type): Rename to ...
822 (language_lookup_primitive_type_1): ... this, and make static.
823 (language_lookup_primitive_type(const struct language_defn *,
824 struct gdbarch *, const char *): Make non-template.
825 (language_lookup_primitive_type(const struct language_defn *,
826 struct gdbarch *, std::function<bool (struct type *)>): Make
827 non-template and use gdb::function_view.
828 * language.h (language_arch_info::lookup_primitive_type): Use
829 gdb::function_view instead of std::function.
830 (language_lookup_primitive_type): No longer template.
831 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
832 lambda instead of a std::function.
833
d5ef21c3
AA
8342020-11-19 Andreas Arnez <arnez@linux.ibm.com>
835
836 PR tdep/26916
837 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
838 and STOCFH.
839
a5adb8f3
SM
8402020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
841
842 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
843
70125a45
SM
8442020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
845
846 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
847 in `loop_cb` parameter.
848 * gdbarch.c: Re-generate.
849 * gdbarch.h: Re-generate.
850 * arch-utils.c (default_read_core_file_mappings): Remove `other`
851 parameter.
852 * arch-utils.h (default_read_core_file_mappings): Likewise.
853 * corelow.c (core_target::build_file_mappings): Likewise.
854 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
855 (linux_core_info_proc_mappings): Likewise.
856
a5c641b5
AB
8572020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
858
859 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
860 * NEWS: Mention new options.
861 * f-array-walker.h: New file.
862 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
863 (repack_array_slices): New static global.
864 (show_repack_array_slices): New function.
865 (fortran_array_slicing_debug): New static global.
866 (show_fortran_array_slicing_debug): New function.
867 (value_f90_subarray): Delete.
868 (skip_undetermined_arglist): Delete.
869 (class fortran_array_repacker_base_impl): New class.
870 (class fortran_lazy_array_repacker_impl): New class.
871 (class fortran_array_repacker_impl): New class.
872 (fortran_value_subarray): Complete rewrite.
873 (set_fortran_list): New static global.
874 (show_fortran_list): Likewise.
875 (_initialize_f_language): Register new commands.
876 (fortran_adjust_dynamic_array_base_address_hack): New function.
877 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
878 Declare.
879 * f-valprint.c: Include 'f-array-walker.h'.
880 (class fortran_array_printer_impl): New class.
881 (f77_print_array_1): Delete.
882 (f77_print_array): Delete.
883 (fortran_print_array): New.
884 (f_value_print_inner): Update to call fortran_print_array.
885 * gdbtypes.c: Include 'f-lang.h'.
886 (resolve_dynamic_type_internal): Call
887 fortran_adjust_dynamic_array_base_address_hack.
888
a15a5258
AB
8892020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
890
891 * breakpoint.c (struct watch_options): New struct.
892 (watch_option_defs): New static global.
893 (make_watch_options_def_group): New function.
894 (watch_maybe_just_location): Convert option parsing.
895 (watch_command_completer): New function.
896 (_initialize_breakpoint): Build help text using options mechanism.
897
2e362716
AB
8982020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
899
900 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
901 (watch_command_1): Update parameter types. Convert locals to
902 bool.
903 (watch_command_wrapper): Change parameter type.
904 (watch_maybe_just_location): Change locals to bool.
905 (rwatch_command_wrapper): Update parameter type.
906 (awatch_command_wrapper): Update parameter type.
907 * breakpoint.h (watch_command_wrapper): Change parameter type.
908 (rwatch_command_wrapper): Update parameter type.
909 (awatch_command_wrapper): Update parameter type.
910 * eval.c (fetch_subexp_value): Change parameter type.
911 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
912 'false' not '0'.
913 * value.h (fetch_subexp_value): Change parameter type in
914 declaration.
915
b3ff61f8
AB
9162020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
917
918 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
919 skip_spaces.
920
5b7d45d3
KS
9212020-11-18 Keith Seitz <keiths@redhat.com>
922
923 * linux-tdep.c (dump_note_entry_p): Return true instead of
924 checking `filename'.
925
c44191f8
TV
9262020-11-18 Tom de Vries <tdevries@suse.de>
927
928 * debuginfod-support.c (debuginfod_source_query)
929 (debuginfod_debuginfo_query): Also do early exit if
930 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
931
5d8254e1
TV
9322020-11-18 Tom de Vries <tdevries@suse.de>
933
934 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
935 warning.
936
584903d3
SM
9372020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
938
939 * gdbtypes.h (get_array_bounds): Return bool, adjust some
940 callers. Move doc here.
941 * gdbtypes.c (get_array_bounds): Return bool
942
6f2643db
AB
9432020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
944
945 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
946 assert.
947 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
948 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
949 case to the default.
950
037d7135
AB
9512020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
952
953 * printcmd.c: Include 'safe-ctype.c'.
954 (skip_over_slash_fmt): New function.
955 (print_command_completer): Call skip_over_slash_fmt.
956 (display_and_x_command_completer): New function.
957 (_initialize_printcmd): Add command completion for 'x' and
958 'display'.
959
2b3cb400
PA
9602020-11-16 Pedro Alves <pedro@palves.net>
961
962 * frame.c (get_prev_frame): Move get_frame_id call from here ...
963 (get_prev_frame_always_1): ... to here.
964 * inline-frame.c (inline_frame_this_id): Mention
965 get_prev_frame_always_1 in comment.
966
b74dbc20
JB
9672020-11-15 Joel Brobecker <brobecker@adacore.com>
968
969 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
970 handling.
971 (value_less): Add fixed-point handling.
972
0a12719e
JB
9732020-11-15 Joel Brobecker <brobecker@adacore.com>
974
975 * eval.c (binop_promote): Add fixed-point type handling.
976 * valarith.c (fixed_point_binop): New function.
977 (scalar_binop): Add fixed-point type handling.
978 (value_neg): Add fixed-point type handling.
979 * valops.c (value_cast_to_fixed_point): New function.
980 (value_cast): Add fixed-point type handling.
981
0c9150e4
JB
9822020-11-15 Joel Brobecker <brobecker@adacore.com>
983
984 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
985 range types.
986 * c-typeprint.c (c_type_print_varspec_prefix)
987 (c_type_print_varspec_suffix, c_type_print_base_1): Add
988 TYPE_CODE_FIXED_POINT handling.
989 * p-typeprint.c (pascal_type_print_varspec_prefix)
990 (pascal_type_print_varspec_suffix): Likewise.
991 * typeprint.c (print_type_fixed_point): New function.
992 * typeprint.h (print_type_fixed_point): Add declaration.
993
b26daff9
JB
9942020-11-15 Joel Brobecker <brobecker@adacore.com>
995
996 * printcmd.c (print_scalar_formatted): Add fixed-point type
997 handling when options->format is set.
998
09584414
JB
9992020-11-15 Joel Brobecker <brobecker@adacore.com>
1000
1001 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1002 * dwarf2/read.c (get_dwarf2_rational_constant)
1003 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1004 (has_zero_over_zero_small_attribute): New functions.
1005 read_base_type, set_die_type): Add fixed-point type handling.
1006 * gdb-gdb.py.in: Add fixed-point type handling.
1007 * gdbtypes.c: #include "gmp-utils.h".
1008 (create_range_type, set_type_code): Add fixed-point type handling.
1009 (init_fixed_point_type): New function.
1010 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1011 (print_fixed_point_type_info): New function.
1012 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1013 handling.
1014 (fixed_point_type_storage): New typedef.
1015 (fixed_point_objfile_key): New static global.
1016 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1017 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1018 functions.
1019 * gdbtypes.h: #include "gmp-utils.h".
1020 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1021 (union type_specific) <fixed_point_info>: New field.
1022 (struct fixed_point_type_info): New struct.
1023 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1024 (init_fixed_point_type, is_fixed_point_type)
1025 (fixed_point_type_base_type, fixed_point_scaling_factor)
1026 (allocate_fixed_point_type_info): Add declarations.
1027 * valprint.c (generic_val_print_fixed_point): New function.
1028 (generic_value_print): Add fixed-point type handling.
1029 * value.c (value_as_address, unpack_long): Add fixed-point type
1030 handling.
1031
e55c6530
JB
10322020-11-15 Joel Brobecker <brobecker@adacore.com>
1033
1034 * utils.h (uinteger_pow): Add declaration.
1035 * utils.c (uinteger_pow): Moved here (without changes)...
1036 * valarith.c (uinteger_pow): ... from here.
1037
b34c74ab
JB
10382020-11-15 Joel Brobecker <brobecker@adacore.com>
1039
40d9d2fd 1040 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1041 * unittests/gmp-utils-selftests.c: New file.
1042 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1043 unittests/gmp-utils-selftests.c.
1044 (COMMON_SFILES) Add gmp-utils.c.
1045 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1046
1b4ac058
JB
10472020-11-15 Joel Brobecker <brobecker@adacore.com>
1048
1049 * configure.ac: Generate an error if a usable GMP library
1050 could not be found.
1051 * configure: Regenerate.
1052
2c947d9b
JB
10532020-11-15 Joel Brobecker <brobecker@adacore.com>
1054
1055 * configure.ac: Add support for --with-libgmp-prefix.
1056 * Makefile.in (LIBGMP): New variable.
1057 (CLIBS): Include $(LIBGMP).
1058 * configure, config.in: Regenerate
1059
9dd02fc0
AB
10602020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1061
1062 PR cli/26879
1063 * f-exp.y (COMPLETE): New token.
1064 (exp): Two new rules for tab-completion.
1065 (saw_name_at_eof): New static global.
1066 (last_was_structop): Likewise.
1067 (yylex): Set new variables, and return COMPLETE token at the end
1068 of the input stream in some cases.
1069
758cb810
TT
10702020-11-14 Tom Tromey <tom@tromey.com>
1071
1072 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1073
749065b7
TT
10742020-11-14 Tom Tromey <tom@tromey.com>
1075
1076 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1077
2c5b1849
SM
10782020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1079
1080 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1081
e8b2f0d9
TT
10822020-11-13 Tom Tromey <tom@tromey.com>
1083
1084 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1085 (convert_escape, parse_one_string): Constify.
1086
25f4c262
KS
10872020-11-13 Keith Seitz <keiths@redhat.com>
1088
1089 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1090 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1091 outside of ELF segments" warning for debugin
1092
9d3ab915
KS
10932020-11-13 Keith Seitz <keiths@redhat.com>
1094
1095 PR gdb/23034
1096 * elfread.c (elf_symfile_segments): Output a BFD file name
1097 for the "Loadable section ... outside of ELF segments" warning.
1098
9ecab40c
SM
10992020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1100
1101 PR gdb/26835
1102 * arm-tdep.c (class arm_instruction_reader): New.
1103 (target_arm_instruction_reader): New.
1104 (arm_analyze_prologue): Add instruction reader parameter and use
1105 it. Use arm_expand_immediate.
1106 (class target_arm_instruction_reader): Adjust.
1107 (arm_skip_prologue): Adjust.
1108 (arm_expand_immediate): New.
1109 (arm_scan_prologue): Adjust.
1110 (arm_analyze_prologue_test): New.
1111 (class test_arm_instruction_reader): New.
1112
5a7cf527
AB
11132020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1114
1115 * f-lang.c (fortran_argument_convert): Add declaration. Add
1116 header comment, taken from f-lang.h. Make static.
1117 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1118 (fortran_argument_convert): Delete declaration.
1119
7bea47f0
AB
11202020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * ada-exp.y (find_primitive_type): Make parameter const.
1123 * ada-lang.c (enum ada_primitive_types): Delete.
1124 (ada_language::language_arch_info): Update.
1125 * c-lang.c (enum c_primitive_types): Delete.
1126 (c_language_arch_info): Update.
1127 (enum cplus_primitive_types): Delete.
1128 (cplus_language::language_arch_info): Update.
1129 * d-lang.c (enum d_primitive_types): Delete.
1130 (d_language::language_arch_info): Update.
1131 * f-lang.c (enum f_primitive_types): Delete.
1132 (f_language::language_arch_info): Update.
1133 * go-lang.c (enum go_primitive_types): Delete.
1134 (go_language::language_arch_info): Update.
1135 * language.c (auto_or_unknown_language::language_arch_info):
1136 Update.
1137 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1138 (language_string_char_type): Add header comment, call function in
1139 language_arch_info.
1140 (language_bool_type): Likewise
1141 (language_arch_info::bool_type): Define.
1142 (language_lookup_primitive_type_1): Delete.
1143 (language_lookup_primitive_type): Rewrite as a templated function
1144 to call function in language_arch_info, then instantiate twice.
1145 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1146 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1147 (language_arch_info::lookup_primitive_type): Define twice with
1148 different signatures.
1149 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1150 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1151 member function in language_arch_info.
1152 * language.h (language_arch_info): Complete rewrite.
1153 (language_lookup_primitive_type): Make templated.
1154 * m2-lang.c (enum m2_primitive_types): Delete.
1155 (m2_language::language_arch_info): Update.
1156 * opencl-lang.c (OCL_P_TYPE): Delete.
1157 (enum opencl_primitive_types): Delete.
1158 (opencl_type_data): Delete.
1159 (builtin_opencl_type): Delete.
1160 (lookup_opencl_vector_type): Update.
1161 (opencl_language::language_arch_info): Update, lots of content
1162 moved from...
1163 (build_opencl_types): ...here. This function is now deleted.
1164 (_initialize_opencl_language): Delete.
1165 * p-lang.c (enum pascal_primitive_types): Delete.
1166 (pascal_language::language_arch_info): Update.
1167 * rust-lang.c (enum rust_primitive_types): Delete.
1168 (rust_language::language_arch_info): Update.
1169
bf6e5d01
SM
11702020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1171
1172 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1173 dwarf2_queue_guard.
1174
1350c3b4
SM
11752020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1176
1177 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1178 comment.
1179
6f738b01
SM
11802020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1181
1182 * dwarf2/read.c (dwarf_read_debug_printf,
1183 dwarf_read_debug_printf_v): New macros, use throughout the file.
1184
10c19fad
SV
11852020-11-12 Shahab Vahedi <shahab@synopsys.com>
1186
10806efd 1187 PR tdep/27015
10c19fad
SV
1188 * arc-linux-tdep.c (collect_register): Populate "eret" by
1189 "pc" value from the regcache when asked for "pc" value.
1190
1f2624a3
TT
11912020-11-12 Tom Tromey <tom@tromey.com>
1192
1193 PR rust/26799:
1194 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1195 exist.
1196
ab33b152
AB
11972020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * features/Makefile (XMLTOC): Add rx.xml.
1200 (FEATURE_XMLFILES): Remove rx.xml.
1201 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1202 * features/rx.c: Regenerate.
1203 * features/rx.xml: Wrap in `target` tags, and reindent.
1204 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1205 structure.
1206 (maint_print_c_tdesc_opt_def): New typedef.
1207 (maint_print_c_tdesc_opt_defs): New static global.
1208 (make_maint_print_c_tdesc_options_def_group): New function.
1209 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1210 print single feature C file for target descriptions containing a
1211 single feature.
1212 (maint_print_c_tdesc_cmd_completer): New function.
1213 (_initialize_target_descriptions): Update call to register command
1214 completer, and include command line flag in help text.
1215
550820e1
AB
12162020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1217
1218 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1219 numbers.
1220 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1221 enum values.
1222
baf20f76
TT
12232020-11-10 Tom Tromey <tom@tromey.com>
1224
1225 * value.h (internalvar_name): Update.
1226 * value.c (internalvar_name): Make return type const.
1227
caaece0e
TT
12282020-11-10 Tom Tromey <tom@tromey.com>
1229
1230 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1231 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1232 const.
1233
8e20b4be
TT
12342020-11-10 Tom Tromey <tom@tromey.com>
1235
1236 * objc-lang.h (value_nsstring): Update.
1237 * objc-lang.c (value_nsstring): Make "ptr" const.
1238
86775fab
AB
12392020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1240
1241 * expprint.c (print_subexp_funcall): Increment expression position
1242 after reading argument count.
1243 * f-lang.c (print_subexp_f): Skip over opcode before calling
1244 common function.
1245 (dump_subexp_body_f): Likewise.
1246
3fed4c0b
RG
12472020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1248
1249 PR python/26832
1250 * configure: Regenerate.
1251 * configure.ac: Check for python modules ctypes instead of
1252 itertools.
1253
ac3d4064
PA
12542020-11-06 Pedro Alves <pedro@palves.net>
1255
1256 * macroexp.c (struct macro_buffer): Split in two classes. Add
1257 uses adjusted.
1258 (struct shared_macro_buffer): New, factored out from struct
1259 macro_buffer.
1260 (struct growable_macro_buffer): New, factored out from struct
1261 macro_buffer.
1262 (set_token, get_comment, get_identifier, get_pp_number)
1263 (get_character_constant, get_string_literal, get_punctuator)
1264 (get_next_token_for_substitution): Constify parameters.
1265 (substitute_args): Constify locals.
1266
606decb2
TT
12672020-11-05 Tom Tromey <tom@tromey.com>
1268
1269 * dwarf2/read.c (read_cutu_die_from_dwo)
1270 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1271 (build_type_psymtabs_1): Update.
1272 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1273 parameter.
1274 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1275 Don't read section. Add assert.
1276
9c91c725
TT
12772020-11-04 Tom Tromey <tromey@adacore.com>
1278
1279 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1280
8d9fd3a1
TT
12812020-11-04 Tom Tromey <tromey@adacore.com>
1282
1283 * ada-typeprint.c (ada_print_type): Handle __T types.
1284
d8f62e84
TT
12852020-11-04 Tom Tromey <tromey@adacore.com>
1286
1287 * dwarf2/read.c (add_partial_symbol, process_die):
1288 Handle DW_TAG_array_type.
1289 (is_type_tag_for_partial): Add "lang" parameter.
1290 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1291
7ff5b937
TT
12922020-11-04 Tom Tromey <tromey@adacore.com>
1293
1294 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1295
10f6a3ad
TT
12962020-11-04 Tom Tromey <tromey@adacore.com>
1297
1298 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1299 array.
1300
b72795a8
TT
13012020-11-04 Tom Tromey <tromey@adacore.com>
1302
1303 * gdbtypes.c (update_static_array_size): Handle bit stride.
1304
24aa1b02
TT
13052020-11-04 Tom Tromey <tromey@adacore.com>
1306
1307 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1308
c9a28cbe
TT
13092020-11-04 Tom Tromey <tromey@adacore.com>
1310
1311 * ada-lang.c (ada_is_any_packed_array_type): New function.
1312 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1313
57567375
TT
13142020-11-04 Tom Tromey <tromey@adacore.com>
1315
1316 * dwarf2/read.c (recognize_bound_expression)
1317 (quirk_ada_thick_pointer): New functions.
1318 (read_array_type): Call quirk_ada_thick_pointer.
1319 (set_die_type): Add "skip_data_location" parameter.
1320 (quirk_ada_thick_pointer): New function.
1321 (process_structure_scope): Call quirk_ada_thick_pointer.
1322 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1323 (decode_packed_array_bitsize): Handle thick pointers without
1324 parallel types.
1325 (ada_is_gnat_encoded_packed_array_type): Rename from
1326 ada_is_packed_array_type.
1327 (ada_is_constrained_packed_array_type): Update.
1328 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1329 (ada_value_print_1): Use ada_get_decoded_value.
1330
a7400e44
TT
13312020-11-04 Tom Tromey <tromey@adacore.com>
1332
1333 * ada-lang.c (recursively_update_array_bitsize): New function.
1334 (decode_constrained_packed_array_type): Call it.
1335
75fd6a26
TT
13362020-11-04 Tom Tromey <tromey@adacore.com>
1337
1338 * ada-lang.c (to_fixed_array_type): Error if
1339 decode_constrained_packed_array_type returns NULL.
1340
93f9561e
TT
13412020-11-04 Tom Tromey <tromey@adacore.com>
1342
1343 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1344
257e02d8
TT
13452020-11-02 Tom Tromey <tromey@adacore.com>
1346
1347 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1348 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1349 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1350 * amd64-ravenscar-thread.c: New file.
1351 * amd64-ravenscar-thread.h: New file.
1352 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1353 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1354
74d877e5
AB
13552020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1356
1357 * main.c (execute_cmdargs): New function.
1358 (captured_main_1): Make use of execute_cmdargs.
1359
64aaad63
AB
13602020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1361
1362 * NEWS: Mention changes to config file search path.
1363 * main.c
1364
5b3d3560
TT
13652020-11-02 Tom Tromey <tromey@adacore.com>
1366
1367 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1368 (python_GdbModuleDef): Move earlier. Now static.
1369 (do_start_initialization): Consolidate some IS_PY3K blocks.
1370
dda83cd7
SM
13712020-11-02 Simon Marchi <simon.marchi@efficios.com>
1372
1373 * aarch64-linux-tdep.c: Fix indentation.
1374 * aarch64-ravenscar-thread.c: Fix indentation.
1375 * aarch64-tdep.c: Fix indentation.
1376 * aarch64-tdep.h: Fix indentation.
1377 * ada-lang.c: Fix indentation.
1378 * ada-lang.h: Fix indentation.
1379 * ada-tasks.c: Fix indentation.
1380 * ada-typeprint.c: Fix indentation.
1381 * ada-valprint.c: Fix indentation.
1382 * ada-varobj.c: Fix indentation.
1383 * addrmap.c: Fix indentation.
1384 * addrmap.h: Fix indentation.
1385 * agent.c: Fix indentation.
1386 * aix-thread.c: Fix indentation.
1387 * alpha-bsd-nat.c: Fix indentation.
1388 * alpha-linux-tdep.c: Fix indentation.
1389 * alpha-mdebug-tdep.c: Fix indentation.
1390 * alpha-nbsd-tdep.c: Fix indentation.
1391 * alpha-obsd-tdep.c: Fix indentation.
1392 * alpha-tdep.c: Fix indentation.
1393 * amd64-bsd-nat.c: Fix indentation.
1394 * amd64-darwin-tdep.c: Fix indentation.
1395 * amd64-linux-nat.c: Fix indentation.
1396 * amd64-linux-tdep.c: Fix indentation.
1397 * amd64-nat.c: Fix indentation.
1398 * amd64-obsd-tdep.c: Fix indentation.
1399 * amd64-tdep.c: Fix indentation.
1400 * amd64-windows-tdep.c: Fix indentation.
1401 * annotate.c: Fix indentation.
1402 * arc-tdep.c: Fix indentation.
1403 * arch-utils.c: Fix indentation.
1404 * arch/arm-get-next-pcs.c: Fix indentation.
1405 * arch/arm.c: Fix indentation.
1406 * arm-linux-nat.c: Fix indentation.
1407 * arm-linux-tdep.c: Fix indentation.
1408 * arm-nbsd-tdep.c: Fix indentation.
1409 * arm-pikeos-tdep.c: Fix indentation.
1410 * arm-tdep.c: Fix indentation.
1411 * arm-tdep.h: Fix indentation.
1412 * arm-wince-tdep.c: Fix indentation.
1413 * auto-load.c: Fix indentation.
1414 * auxv.c: Fix indentation.
1415 * avr-tdep.c: Fix indentation.
1416 * ax-gdb.c: Fix indentation.
1417 * ax-general.c: Fix indentation.
1418 * bfin-linux-tdep.c: Fix indentation.
1419 * block.c: Fix indentation.
1420 * block.h: Fix indentation.
1421 * blockframe.c: Fix indentation.
1422 * bpf-tdep.c: Fix indentation.
1423 * break-catch-sig.c: Fix indentation.
1424 * break-catch-syscall.c: Fix indentation.
1425 * break-catch-throw.c: Fix indentation.
1426 * breakpoint.c: Fix indentation.
1427 * breakpoint.h: Fix indentation.
1428 * bsd-uthread.c: Fix indentation.
1429 * btrace.c: Fix indentation.
1430 * build-id.c: Fix indentation.
1431 * buildsym-legacy.h: Fix indentation.
1432 * buildsym.c: Fix indentation.
1433 * c-typeprint.c: Fix indentation.
1434 * c-valprint.c: Fix indentation.
1435 * c-varobj.c: Fix indentation.
1436 * charset.c: Fix indentation.
1437 * cli/cli-cmds.c: Fix indentation.
1438 * cli/cli-decode.c: Fix indentation.
1439 * cli/cli-decode.h: Fix indentation.
1440 * cli/cli-script.c: Fix indentation.
1441 * cli/cli-setshow.c: Fix indentation.
1442 * coff-pe-read.c: Fix indentation.
1443 * coffread.c: Fix indentation.
1444 * compile/compile-cplus-types.c: Fix indentation.
1445 * compile/compile-object-load.c: Fix indentation.
1446 * compile/compile-object-run.c: Fix indentation.
1447 * completer.c: Fix indentation.
1448 * corefile.c: Fix indentation.
1449 * corelow.c: Fix indentation.
1450 * cp-abi.h: Fix indentation.
1451 * cp-namespace.c: Fix indentation.
1452 * cp-support.c: Fix indentation.
1453 * cp-valprint.c: Fix indentation.
1454 * cris-linux-tdep.c: Fix indentation.
1455 * cris-tdep.c: Fix indentation.
1456 * darwin-nat-info.c: Fix indentation.
1457 * darwin-nat.c: Fix indentation.
1458 * darwin-nat.h: Fix indentation.
1459 * dbxread.c: Fix indentation.
1460 * dcache.c: Fix indentation.
1461 * disasm.c: Fix indentation.
1462 * dtrace-probe.c: Fix indentation.
1463 * dwarf2/abbrev.c: Fix indentation.
1464 * dwarf2/attribute.c: Fix indentation.
1465 * dwarf2/expr.c: Fix indentation.
1466 * dwarf2/frame.c: Fix indentation.
1467 * dwarf2/index-cache.c: Fix indentation.
1468 * dwarf2/index-write.c: Fix indentation.
1469 * dwarf2/line-header.c: Fix indentation.
1470 * dwarf2/loc.c: Fix indentation.
1471 * dwarf2/macro.c: Fix indentation.
1472 * dwarf2/read.c: Fix indentation.
1473 * dwarf2/read.h: Fix indentation.
1474 * elfread.c: Fix indentation.
1475 * eval.c: Fix indentation.
1476 * event-top.c: Fix indentation.
1477 * exec.c: Fix indentation.
1478 * exec.h: Fix indentation.
1479 * expprint.c: Fix indentation.
1480 * f-lang.c: Fix indentation.
1481 * f-typeprint.c: Fix indentation.
1482 * f-valprint.c: Fix indentation.
1483 * fbsd-nat.c: Fix indentation.
1484 * fbsd-tdep.c: Fix indentation.
1485 * findvar.c: Fix indentation.
1486 * fork-child.c: Fix indentation.
1487 * frame-unwind.c: Fix indentation.
1488 * frame-unwind.h: Fix indentation.
1489 * frame.c: Fix indentation.
1490 * frv-linux-tdep.c: Fix indentation.
1491 * frv-tdep.c: Fix indentation.
1492 * frv-tdep.h: Fix indentation.
1493 * ft32-tdep.c: Fix indentation.
1494 * gcore.c: Fix indentation.
1495 * gdb_bfd.c: Fix indentation.
1496 * gdbarch.sh: Fix indentation.
1497 * gdbarch.c: Re-generate
1498 * gdbarch.h: Re-generate.
1499 * gdbcore.h: Fix indentation.
1500 * gdbthread.h: Fix indentation.
1501 * gdbtypes.c: Fix indentation.
1502 * gdbtypes.h: Fix indentation.
1503 * glibc-tdep.c: Fix indentation.
1504 * gnu-nat.c: Fix indentation.
1505 * gnu-nat.h: Fix indentation.
1506 * gnu-v2-abi.c: Fix indentation.
1507 * gnu-v3-abi.c: Fix indentation.
1508 * go32-nat.c: Fix indentation.
1509 * guile/guile-internal.h: Fix indentation.
1510 * guile/scm-cmd.c: Fix indentation.
1511 * guile/scm-frame.c: Fix indentation.
1512 * guile/scm-iterator.c: Fix indentation.
1513 * guile/scm-math.c: Fix indentation.
1514 * guile/scm-ports.c: Fix indentation.
1515 * guile/scm-pretty-print.c: Fix indentation.
1516 * guile/scm-value.c: Fix indentation.
1517 * h8300-tdep.c: Fix indentation.
1518 * hppa-linux-nat.c: Fix indentation.
1519 * hppa-linux-tdep.c: Fix indentation.
1520 * hppa-nbsd-nat.c: Fix indentation.
1521 * hppa-nbsd-tdep.c: Fix indentation.
1522 * hppa-obsd-nat.c: Fix indentation.
1523 * hppa-tdep.c: Fix indentation.
1524 * hppa-tdep.h: Fix indentation.
1525 * i386-bsd-nat.c: Fix indentation.
1526 * i386-darwin-nat.c: Fix indentation.
1527 * i386-darwin-tdep.c: Fix indentation.
1528 * i386-dicos-tdep.c: Fix indentation.
1529 * i386-gnu-nat.c: Fix indentation.
1530 * i386-linux-nat.c: Fix indentation.
1531 * i386-linux-tdep.c: Fix indentation.
1532 * i386-nto-tdep.c: Fix indentation.
1533 * i386-obsd-tdep.c: Fix indentation.
1534 * i386-sol2-nat.c: Fix indentation.
1535 * i386-tdep.c: Fix indentation.
1536 * i386-tdep.h: Fix indentation.
1537 * i386-windows-tdep.c: Fix indentation.
1538 * i387-tdep.c: Fix indentation.
1539 * i387-tdep.h: Fix indentation.
1540 * ia64-libunwind-tdep.c: Fix indentation.
1541 * ia64-libunwind-tdep.h: Fix indentation.
1542 * ia64-linux-nat.c: Fix indentation.
1543 * ia64-linux-tdep.c: Fix indentation.
1544 * ia64-tdep.c: Fix indentation.
1545 * ia64-tdep.h: Fix indentation.
1546 * ia64-vms-tdep.c: Fix indentation.
1547 * infcall.c: Fix indentation.
1548 * infcmd.c: Fix indentation.
1549 * inferior.c: Fix indentation.
1550 * infrun.c: Fix indentation.
1551 * iq2000-tdep.c: Fix indentation.
1552 * language.c: Fix indentation.
1553 * linespec.c: Fix indentation.
1554 * linux-fork.c: Fix indentation.
1555 * linux-nat.c: Fix indentation.
1556 * linux-tdep.c: Fix indentation.
1557 * linux-thread-db.c: Fix indentation.
1558 * lm32-tdep.c: Fix indentation.
1559 * m2-lang.c: Fix indentation.
1560 * m2-typeprint.c: Fix indentation.
1561 * m2-valprint.c: Fix indentation.
1562 * m32c-tdep.c: Fix indentation.
1563 * m32r-linux-tdep.c: Fix indentation.
1564 * m32r-tdep.c: Fix indentation.
1565 * m68hc11-tdep.c: Fix indentation.
1566 * m68k-bsd-nat.c: Fix indentation.
1567 * m68k-linux-nat.c: Fix indentation.
1568 * m68k-linux-tdep.c: Fix indentation.
1569 * m68k-tdep.c: Fix indentation.
1570 * machoread.c: Fix indentation.
1571 * macrocmd.c: Fix indentation.
1572 * macroexp.c: Fix indentation.
1573 * macroscope.c: Fix indentation.
1574 * macrotab.c: Fix indentation.
1575 * macrotab.h: Fix indentation.
1576 * main.c: Fix indentation.
1577 * mdebugread.c: Fix indentation.
1578 * mep-tdep.c: Fix indentation.
1579 * mi/mi-cmd-catch.c: Fix indentation.
1580 * mi/mi-cmd-disas.c: Fix indentation.
1581 * mi/mi-cmd-env.c: Fix indentation.
1582 * mi/mi-cmd-stack.c: Fix indentation.
1583 * mi/mi-cmd-var.c: Fix indentation.
1584 * mi/mi-cmds.c: Fix indentation.
1585 * mi/mi-main.c: Fix indentation.
1586 * mi/mi-parse.c: Fix indentation.
1587 * microblaze-tdep.c: Fix indentation.
1588 * minidebug.c: Fix indentation.
1589 * minsyms.c: Fix indentation.
1590 * mips-linux-nat.c: Fix indentation.
1591 * mips-linux-tdep.c: Fix indentation.
1592 * mips-nbsd-tdep.c: Fix indentation.
1593 * mips-tdep.c: Fix indentation.
1594 * mn10300-linux-tdep.c: Fix indentation.
1595 * mn10300-tdep.c: Fix indentation.
1596 * moxie-tdep.c: Fix indentation.
1597 * msp430-tdep.c: Fix indentation.
1598 * namespace.h: Fix indentation.
1599 * nat/fork-inferior.c: Fix indentation.
1600 * nat/gdb_ptrace.h: Fix indentation.
1601 * nat/linux-namespaces.c: Fix indentation.
1602 * nat/linux-osdata.c: Fix indentation.
1603 * nat/netbsd-nat.c: Fix indentation.
1604 * nat/x86-dregs.c: Fix indentation.
1605 * nbsd-nat.c: Fix indentation.
1606 * nbsd-tdep.c: Fix indentation.
1607 * nios2-linux-tdep.c: Fix indentation.
1608 * nios2-tdep.c: Fix indentation.
1609 * nto-procfs.c: Fix indentation.
1610 * nto-tdep.c: Fix indentation.
1611 * objfiles.c: Fix indentation.
1612 * objfiles.h: Fix indentation.
1613 * opencl-lang.c: Fix indentation.
1614 * or1k-tdep.c: Fix indentation.
1615 * osabi.c: Fix indentation.
1616 * osabi.h: Fix indentation.
1617 * osdata.c: Fix indentation.
1618 * p-lang.c: Fix indentation.
1619 * p-typeprint.c: Fix indentation.
1620 * p-valprint.c: Fix indentation.
1621 * parse.c: Fix indentation.
1622 * ppc-linux-nat.c: Fix indentation.
1623 * ppc-linux-tdep.c: Fix indentation.
1624 * ppc-nbsd-nat.c: Fix indentation.
1625 * ppc-nbsd-tdep.c: Fix indentation.
1626 * ppc-obsd-nat.c: Fix indentation.
1627 * ppc-ravenscar-thread.c: Fix indentation.
1628 * ppc-sysv-tdep.c: Fix indentation.
1629 * ppc64-tdep.c: Fix indentation.
1630 * printcmd.c: Fix indentation.
1631 * proc-api.c: Fix indentation.
1632 * producer.c: Fix indentation.
1633 * producer.h: Fix indentation.
1634 * prologue-value.c: Fix indentation.
1635 * prologue-value.h: Fix indentation.
1636 * psymtab.c: Fix indentation.
1637 * python/py-arch.c: Fix indentation.
1638 * python/py-bpevent.c: Fix indentation.
1639 * python/py-event.c: Fix indentation.
1640 * python/py-event.h: Fix indentation.
1641 * python/py-finishbreakpoint.c: Fix indentation.
1642 * python/py-frame.c: Fix indentation.
1643 * python/py-framefilter.c: Fix indentation.
1644 * python/py-inferior.c: Fix indentation.
1645 * python/py-infthread.c: Fix indentation.
1646 * python/py-objfile.c: Fix indentation.
1647 * python/py-prettyprint.c: Fix indentation.
1648 * python/py-registers.c: Fix indentation.
1649 * python/py-signalevent.c: Fix indentation.
1650 * python/py-stopevent.c: Fix indentation.
1651 * python/py-stopevent.h: Fix indentation.
1652 * python/py-threadevent.c: Fix indentation.
1653 * python/py-tui.c: Fix indentation.
1654 * python/py-unwind.c: Fix indentation.
1655 * python/py-value.c: Fix indentation.
1656 * python/py-xmethods.c: Fix indentation.
1657 * python/python-internal.h: Fix indentation.
1658 * python/python.c: Fix indentation.
1659 * ravenscar-thread.c: Fix indentation.
1660 * record-btrace.c: Fix indentation.
1661 * record-full.c: Fix indentation.
1662 * record.c: Fix indentation.
1663 * reggroups.c: Fix indentation.
1664 * regset.h: Fix indentation.
1665 * remote-fileio.c: Fix indentation.
1666 * remote.c: Fix indentation.
1667 * reverse.c: Fix indentation.
1668 * riscv-linux-tdep.c: Fix indentation.
1669 * riscv-ravenscar-thread.c: Fix indentation.
1670 * riscv-tdep.c: Fix indentation.
1671 * rl78-tdep.c: Fix indentation.
1672 * rs6000-aix-tdep.c: Fix indentation.
1673 * rs6000-lynx178-tdep.c: Fix indentation.
1674 * rs6000-nat.c: Fix indentation.
1675 * rs6000-tdep.c: Fix indentation.
1676 * rust-lang.c: Fix indentation.
1677 * rx-tdep.c: Fix indentation.
1678 * s12z-tdep.c: Fix indentation.
1679 * s390-linux-tdep.c: Fix indentation.
1680 * score-tdep.c: Fix indentation.
1681 * ser-base.c: Fix indentation.
1682 * ser-mingw.c: Fix indentation.
1683 * ser-uds.c: Fix indentation.
1684 * ser-unix.c: Fix indentation.
1685 * serial.c: Fix indentation.
1686 * sh-linux-tdep.c: Fix indentation.
1687 * sh-nbsd-tdep.c: Fix indentation.
1688 * sh-tdep.c: Fix indentation.
1689 * skip.c: Fix indentation.
1690 * sol-thread.c: Fix indentation.
1691 * solib-aix.c: Fix indentation.
1692 * solib-darwin.c: Fix indentation.
1693 * solib-frv.c: Fix indentation.
1694 * solib-svr4.c: Fix indentation.
1695 * solib.c: Fix indentation.
1696 * source.c: Fix indentation.
1697 * sparc-linux-tdep.c: Fix indentation.
1698 * sparc-nbsd-tdep.c: Fix indentation.
1699 * sparc-obsd-tdep.c: Fix indentation.
1700 * sparc-ravenscar-thread.c: Fix indentation.
1701 * sparc-tdep.c: Fix indentation.
1702 * sparc64-linux-tdep.c: Fix indentation.
1703 * sparc64-nbsd-tdep.c: Fix indentation.
1704 * sparc64-obsd-tdep.c: Fix indentation.
1705 * sparc64-tdep.c: Fix indentation.
1706 * stabsread.c: Fix indentation.
1707 * stack.c: Fix indentation.
1708 * stap-probe.c: Fix indentation.
1709 * stubs/ia64vms-stub.c: Fix indentation.
1710 * stubs/m32r-stub.c: Fix indentation.
1711 * stubs/m68k-stub.c: Fix indentation.
1712 * stubs/sh-stub.c: Fix indentation.
1713 * stubs/sparc-stub.c: Fix indentation.
1714 * symfile-mem.c: Fix indentation.
1715 * symfile.c: Fix indentation.
1716 * symfile.h: Fix indentation.
1717 * symmisc.c: Fix indentation.
1718 * symtab.c: Fix indentation.
1719 * symtab.h: Fix indentation.
1720 * target-float.c: Fix indentation.
1721 * target.c: Fix indentation.
1722 * target.h: Fix indentation.
1723 * tic6x-tdep.c: Fix indentation.
1724 * tilegx-linux-tdep.c: Fix indentation.
1725 * tilegx-tdep.c: Fix indentation.
1726 * top.c: Fix indentation.
1727 * tracefile-tfile.c: Fix indentation.
1728 * tracepoint.c: Fix indentation.
1729 * tui/tui-disasm.c: Fix indentation.
1730 * tui/tui-io.c: Fix indentation.
1731 * tui/tui-regs.c: Fix indentation.
1732 * tui/tui-stack.c: Fix indentation.
1733 * tui/tui-win.c: Fix indentation.
1734 * tui/tui-winsource.c: Fix indentation.
1735 * tui/tui.c: Fix indentation.
1736 * typeprint.c: Fix indentation.
1737 * ui-out.h: Fix indentation.
1738 * unittests/copy_bitwise-selftests.c: Fix indentation.
1739 * unittests/memory-map-selftests.c: Fix indentation.
1740 * utils.c: Fix indentation.
1741 * v850-tdep.c: Fix indentation.
1742 * valarith.c: Fix indentation.
1743 * valops.c: Fix indentation.
1744 * valprint.c: Fix indentation.
1745 * valprint.h: Fix indentation.
1746 * value.c: Fix indentation.
1747 * value.h: Fix indentation.
1748 * varobj.c: Fix indentation.
1749 * vax-tdep.c: Fix indentation.
1750 * windows-nat.c: Fix indentation.
1751 * windows-tdep.c: Fix indentation.
1752 * xcoffread.c: Fix indentation.
1753 * xml-syscall.c: Fix indentation.
1754 * xml-tdesc.c: Fix indentation.
1755 * xstormy16-tdep.c: Fix indentation.
1756 * xtensa-config.c: Fix indentation.
1757 * xtensa-linux-nat.c: Fix indentation.
1758 * xtensa-linux-tdep.c: Fix indentation.
1759 * xtensa-tdep.c: Fix indentation.
1760
e1f57067
AB
17612020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1762 Craig Blackmore <craig.blackmore@embecosm.com>
1763
1764 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1765 as an unsigned value.
1766
ae7754b2
TT
17672020-11-01 Tom Tromey <tom@tromey.com>
1768
1769 * dbxread.c (dbx_end_psymtab): Update.
1770 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1771 (build_type_psymtabs_reader): Update.
1772 * xcoffread.c (xcoff_end_psymtab): Update.
1773 * ctfread.c (scan_partial_symbols): Update.
1774 * psymtab.c (sort_pst_symbols): Remove.
1775 (partial_symtab::end): Rename from end_psymtab_common. Inline
1776 sort_pst_symbols.
1777 * psympriv.h (struct partial_symtab) <end>: New method.
1778 (end_psymtab_common): Don't declare.
1779
0684bb51
TT
17802020-11-01 Tom Tromey <tom@tromey.com>
1781
1782 * symmisc.c (count_psyms): New function.
1783 (print_objfile_statistics): Use it.
1784 * psymtab.c (append_psymbol_to_list): Remove.
1785 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1786 * objfiles.h (struct objstats) <n_psyms>: Remove.
1787
089002bb
TT
17882020-11-01 Tom Tromey <tom@tromey.com>
1789
1790 * dbxread.c (dbx_end_psymtab): Update.
1791 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1792 (build_type_psymtabs_reader): Update.
1793 * xcoffread.c (xcoff_end_psymtab): Update.
1794 * ctfread.c (scan_partial_symbols): Update.
1795 * psympriv.h (end_psymtab_common): Update.
1796 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1797 (sort_pst_symbols): Likewise.
1798
525454d6
TT
17992020-11-01 Tom Tromey <tom@tromey.com>
1800
1801 * dbxread.c (dbx_symfile_read): Update.
1802 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1803 * xcoffread.c (xcoff_initial_scan): Update.
1804 * psympriv.h (init_psymbol_list): Don't declare.
1805 * psymtab.c (init_psymbol_list): Remove.
1806
60bd1d53
JB
18072020-11-01 Joel Brobecker <brobecker@adacore.com>
1808
1809 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1810 gnat_encoded_fixed_type_info. Update all callers.
1811
db99d0d0
JB
18122020-11-01 Joel Brobecker <brobecker@adacore.com>
1813
1814 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1815 line too long.
1816
75f24e86
JB
18172020-11-01 Joel Brobecker <brobecker@adacore.com>
1818
1819 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1820 cast_from_fixed. Update all callers.
1821 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1822 Update all callers.
1823 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1824 Update all callers.
1825 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1826 ada_scaling_factor.
1827 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1828 to print_gnat_encoded_fixed_point_type.
1829 * ada-valprint.c: Likewise.
1830
4f0469cd
AB
18312020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1832
1833 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1834 (debug_prefixed_printf): Add check of debug_displaced flag.
1835 * linux-nat.c (linux_nat_debug_printf): Add check of
1836 debug_linux_nat flag.
1837
17417fb0
SM
18382020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1839
1840 * infrun.c (infrun_debug_printf_1): Remove.
1841 (displaced_debug_printf_1): Remove.
1842 (stop_all_threads): Use debug_prefixed_printf.
1843 * infrun.h (infrun_debug_printf_1): Remove.
1844 (infrun_debug_printf): Use debug_prefixed_printf.
1845 (displaced_debug_printf_1): Remove.
1846 (displaced_debug_printf): Use debug_prefixed_printf.
1847 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1848 (linux_nat_debug_printf): Use debug_prefixed_printf.
1849
ad6dba1c
SM
18502020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1851
1852 * configure: Re-generate.
1853 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1854 AC_LANG_PROGRAM.
1855
b6fb30ed
SM
18562020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1857
1858 * configure: Re-generate.
1859
5164c117
SM
18602020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1861
1862 * configure: Re-generate.
1863
864ca435
SM
18642020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1865
1866 * configure: Re-generate.
1867
b9442ec1
SM
18682020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1869
1870 * configure: Re-generate.
1871
294f2697
SM
18722020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1873
1874 * acinclude.m4: Modernize.
1875 * configure: Re-generate.
1876
5593a99a
SM
18772020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1878
1879 * configure.ac: Modernize.
1880 * configure: Re-generate.
1881
e41fda1d
SM
18822020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1883
1884 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1885 * configure: Re-generate.
1886 * configure.ac: Remove AM_PROG_CC_STDC.
1887
91e1a0ed
SM
18882020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1889
1890 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1891 AC_CANONICAL_SYSTEM.
1892 * configure: Re-generate.
1893
136821d9
SM
18942020-10-30 Simon Marchi <simon.marchi@efficios.com>
1895
1896 * infrun.h (displaced_debug_printf): New macro. Replace
1897 displaced debug prints throughout to use it.
1898 (displaced_debug_printf_1): New declaration.
1899 (displaced_step_dump_bytes): Return string, remove ui_file
1900 parameter, update all callers.
1901 * infrun.c (displaced_debug_printf_1): New function.
1902 (displaced_step_dump_bytes): Return string, remove ui_file
1903 parameter
1904
aa2045e7
SM
19052020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1906
1907 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1908
b1ec2735
TT
19092020-10-30 Tom Tromey <tromey@adacore.com>
1910
1911 * Makefile.in (stamp-init): Depend on config.status.
1912
b78b3a29
TBA
19132020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1914
1915 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1916
d70bdd3c
PA
19172020-10-30 Pedro Alves <pedro@palves.net>
1918
1919 * thread.c (lookup_selected_frame): Move ...
1920 * frame.c (lookup_selected_frame): ... here.
1921
79952e69
PA
19222020-10-30 Pedro Alves <pedro@palves.net>
1923
1924 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1925 * frame.c
1926 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1927 Use save_selected_frame. Save language as well.
1928 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1929 Use restore_selected_frame, and restore language as well.
1930 (selected_frame_id, selected_frame_level): New.
1931 (selected_frame): Update comments.
1932 (save_selected_frame, restore_selected_frame): New.
1933 (get_selected_frame): Use lookup_selected_frame.
1934 (get_selected_frame_if_set): Delete.
1935 (select_frame): Record selected_frame_level and selected_frame_id.
1936 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1937 fields.
1938 (get_selected_frame): Make 'message' parameter optional.
1939 (get_selected_frame_if_set): Delete declaration.
1940 (select_frame): Update comments.
1941 (save_selected_frame, restore_selected_frame)
1942 (lookup_selected_frame): Declare.
1943 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1944 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1945 New field.
1946 (save_infcall_control_state): Use save_selected_frame.
1947 (restore_selected_frame): Delete.
1948 (restore_infcall_control_state): Use restore_selected_frame.
1949 * stack.c (select_frame_command_core, frame_command_core): Use
1950 get_selected_frame.
1951 * thread.c (restore_selected_frame): Rename to ...
1952 (lookup_selected_frame): ... this and make extern. Select the
1953 current frame if the frame level is -1.
1954 (scoped_restore_current_thread::restore): Also restore the
1955 language.
1956 (scoped_restore_current_thread::~scoped_restore_current_thread):
1957 Don't try/catch.
1958 (scoped_restore_current_thread::scoped_restore_current_thread):
1959 Save the language as well. Use save_selected_frame.
1960
58103c33
SM
19612020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1962
1963 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1964 documentation.
1965 * gdbarch.h: Re-generate.
1966
40a53766
SM
19672020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1968
1969 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1970 parameter.
1971 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1972 Likewise.
1973 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1974 Likewise.
1975 * arch-utils.c (default_displaced_step_hw_singlestep):
1976 Likewise.
1977 * arch-utils.h (default_displaced_step_hw_singlestep):
1978 Likewise.
1979 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1980 Likewise.
1981 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1982 Likewise.
1983 * gdbarch.c: Re-generate.
1984 * gdbarch.h: Re-generate.
1985 * infrun.c (resume_1): Adjust.
1986
8407f91b
TT
19872020-10-29 Tom Tromey <tom@tromey.com>
1988
1989 * progspace.c (program_space::~program_space): Don't call
1990 exec_close.
1991
5008b3b2
TT
19922020-10-29 Tom Tromey <tom@tromey.com>
1993
1994 * exec.c (exec_target::close): Don't change current program
1995 space.
1996
d9eebde0
TT
19972020-10-29 Tom Tromey <tom@tromey.com>
1998
1999 * symfile.c (add_symbol_file_command): Update.
2000 * exec.c (program_space::add_target_sections): Rename.
2001 * symfile-mem.c (symbol_file_add_from_memory): Update.
2002 * progspace.h (struct program_space) <add_target_sections>:
2003 Declare new overload.
2004 * exec.h (add_target_sections_of_objfile): Don't declare.
2005
3769e227
TT
20062020-10-29 Tom Tromey <tom@tromey.com>
2007
2008 * solib.c (solib_map_sections): Update.
2009 * exec.c (program_space::add_target_sections): Now a method.
2010 (exec_file_attach): Update.
2011 * exec.h (add_target_sections): Don't declare.
2012 * progspace.h (struct program_space) <add_target_sections>:
2013 Declare.
2014
2a3f84af
TT
20152020-10-29 Tom Tromey <tom@tromey.com>
2016
2017 * progspace.h (struct program_space) <remove_target_sections>:
2018 Declare.
2019 * exec.c (program_space::remove_target_sections): Now a method.
2020 * exec.h (remove_target_sections): Don't declare.
2021
004eecfd
TT
20222020-10-29 Tom Tromey <tom@tromey.com>
2023
2024 * inferior.c (delete_inferior): Update.
2025 * progspace.c (program_space::empty): Rename from
2026 program_space_empty_p. Return bool.
2027 * progspace.h (struct program_space) <empty>: New method.
2028 (program_space_empty_p): Don't declare.
2029
e39fb971
TT
20302020-10-29 Tom Tromey <tom@tromey.com>
2031
2032 * progspace.c (program_space::~program_space): Don't call
2033 clear_program_space_solib_cache.
2034 (program_space::clear_solib_cache): Rename from
2035 clear_solib_cache.
2036 * solib.c (handle_solib_event): Update.
2037 * progspace.h (struct program_space) <clear_solib_cache>: New
2038 method.
2039 (clear_program_space_solib_cache): Don't declare.
2040
a42d7dd8
TT
20412020-10-29 Tom Tromey <tom@tromey.com>
2042
2043 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2044 * target.c (info_target_command): Update.
2045 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2046 (symbol_file_clear, reread_symbols): Update.
2047 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2048 * stabsread.c (scan_file_globals): Update.
2049 * solib.c (update_solib_list): Update.
2050 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2051 (svr4_fetch_objfile_link_map, enable_break)
2052 (svr4_relocate_main_executable)
2053 (svr4_iterate_over_objfiles_in_search_order): Update.
2054 * solib-frv.c (lm_base, enable_break)
2055 (frv_relocate_main_executable): Update.
2056 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2057 (frv_fetch_objfile_link_map): Update.
2058 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2059 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2060 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2061 * remote.c (remote_target::get_offsets): Update.
2062 (remote_target::start_remote)
2063 (extended_remote_target::post_attach): Update.
2064 * objfiles.c (entry_point_address_query): Update.
2065 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2066 * minsyms.c (get_symbol_leading_char): Update.
2067 * frame.c (inside_main_func): Update.
2068 * progspace.h (symfile_objfile): Remove macro.
2069
19f6550e
TT
20702020-10-29 Tom Tromey <tom@tromey.com>
2071
2072 * exec.c (exec_file_attach): Update.
2073 * progspace.c (program_space::exec_close): Update.
2074 * progspace.h (struct program_space) <ebfd>: Now a
2075 gdb_bfd_ref_ptr.
2076 <set_exec_bfd>: Change argument type.
2077 <exec_bfd>: Update.
2078
7e10abd1
TT
20792020-10-29 Tom Tromey <tom@tromey.com>
2080
2081 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2082 * symfile.c (reread_symbols): Update.
2083 * symfile-mem.c (add_symbol_file_from_memory_command)
2084 (add_vsyscall_page): Update.
2085 * source-cache.c (source_cache::get_plain_source_lines): Update.
2086 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2087 (svr4_current_sos_direct, svr4_exec_displacement)
2088 (svr4_relocate_main_executable): Update.
2089 (svr4_iterate_over_objfiles_in_search_order): Update.
2090 * solib-frv.c (enable_break2, enable_break): Update.
2091 * solib-dsbt.c (lm_base, enable_break): Update.
2092 * solib-darwin.c (find_program_interpreter)
2093 (darwin_solib_create_inferior_hook): Update.
2094 * sol-thread.c (rw_common, ps_pdmodel): Update.
2095 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2096 * remote.c (compare_sections_command)
2097 (remote_target::trace_set_readonly_regions): Update.
2098 * remote-sim.c (get_sim_inferior_data)
2099 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2100 (gdbsim_target_open, gdbsim_target::files_info): Update.
2101 * exec.h (exec_bfd): Remove macro.
2102 * progspace.c (initialize_progspace): Update.
2103 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2104 Update.
2105 * nto-procfs.c (nto_procfs_target::post_attach)
2106 (nto_procfs_target::create_inferior): Update.
2107 * maint.c (maintenance_info_sections): Update.
2108 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2109 Update.
2110 * infcmd.c (post_create_inferior): Update.
2111 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2112 (objfile_find_memory_regions): Update.
2113 * exec.c (validate_exec_file, exec_file_attach)
2114 (exec_read_partial_read_only, print_section_info): Update.
2115 * corelow.c (core_target_open): Update.
2116 * corefile.c (reopen_exec_file, validate_files): Update.
2117 * arm-tdep.c (gdb_print_insn_arm): Update.
2118 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2119 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2120 methods.
2121
b55221ab
TT
21222020-10-29 Tom Tromey <tom@tromey.com>
2123
2124 * progspace.h (current_target_sections): Remove macro.
2125 * solib-svr4.c (scan_dyntag): Update.
2126 * solib-dsbt.c (scan_dyntag): Update.
2127 * exec.c (exec_target::close): Update.
2128 (add_target_sections, add_target_sections_of_objfile)
2129 (remove_target_sections, exec_target::get_section_table)
2130 (exec_target::files_info, set_section_command)
2131 (exec_set_section_address, exec_target::has_memory)
2132 (exec_target::has_memory): Update.
2133
5a36e715
TT
21342020-10-29 Tom Tromey <tom@tromey.com>
2135
2136 * source-cache.c (source_cache::get_plain_source_lines): Use
2137 current_program_space.
2138 * corefile.c (reopen_exec_file): Use current_program_space.
2139 * exec.c (exec_file_attach): Use current_program_space.
2140 * exec.h (exec_bfd_mtime): Remove.
2141
784c8592
TT
21422020-10-29 Tom Tromey <tom@tromey.com>
2143
2144 * gcore.c (default_gcore_mach): Remove.
2145 (create_gcore_bfd): Update.
2146
8a4f1402
TT
21472020-10-29 Tom Tromey <tom@tromey.com>
2148
2149 * progspace.c (program_space::exec_close): New method, from
2150 exec_close in exec.c.
2151 * exec.c (exec_close): Move to progspace.c.
2152 (exec_target::close, exec_file_attach): Update.
2153 * progspace.h (struct program_space) <exec_close>: Declare
2154 method.
2155
c20cb686
TT
21562020-10-29 Tom Tromey <tom@tromey.com>
2157
2158 * progspace.h (struct program_space) <exec_filename>: Rename from
2159 pspace_exec_filename. Now a unique_xmalloc_ptr.
2160 * inferior.c (print_selected_inferior): Update.
2161 (print_inferior): Update.
2162 * mi/mi-main.c (print_one_inferior): Update.
2163 * exec.h (exec_filename): Remove macro.
2164 * corefile.c (get_exec_file): Update.
2165 * exec.c (exec_close): Update.
2166 (exec_file_attach): Update.
2167 * progspace.c (clone_program_space): Update.
2168 (print_program_space): Update.
2169
6be2a9ab
TT
21702020-10-29 Tom Tromey <tom@tromey.com>
2171
2172 * target-section.h (struct target_section): Add constructor.
2173 * exec.c (build_section_table, add_target_sections_of_objfile):
2174 Update.
2175 * corelow.c (core_target::build_file_mappings): Update.
2176
cfaa8f76
TBA
21772020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2178
2179 PR gdb/19318
2180 * inferior.c (detach_inferior_command): Restore the current thread.
2181 (kill_inferior_command): Ditto.
2182
1b00ef06
TV
21832020-10-28 Tom de Vries <tdevries@suse.de>
2184
2185 PR symtab/26772
2186 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2187 map, check it in the "best match" loop.
2188
7f40ce1a
SM
21892020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2190
2191 * m32c-tdep.c: Remove unused includes.
2192
5eb9e3f5
SM
21932020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2194
2195 * xtensa-tdep.c: Remove includes.
2196
b1d4d8d1
TBA
21972020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2198
2199 * breakpoint.c (struct condition_command_opts): New struct.
2200 (condition_command_option_defs): New static global.
2201 (make_condition_command_options_def_group): New function.
2202 (condition_completer): Update to consider the '-force' flag.
2203 (condition_command): Use gdb::option for the '-force' flag.
2204
bd24c5d6
TV
22052020-10-27 Tom de Vries <tdevries@suse.de>
2206
2207 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2208 symbols in section check.
2209
61eb46a4
TV
22102020-10-27 Tom de Vries <tdevries@suse.de>
2211
2212 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2213
733d554a
TBA
22142020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2215
2216 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2217 * breakpoint.c: Update the help text of the 'condition' and 'break'
2218 commands.
2219 (set_breakpoint_condition): Take a new bool parameter
2220 to control whether condition definition should be forced even when
2221 the condition expression is invalid in all of the current locations.
2222 (condition_command): Update the call to 'set_breakpoint_condition'.
2223 (find_condition_and_thread): Take the "-force-condition" flag into
2224 account.
2225 * linespec.c (linespec_keywords): Add "-force-condition" as an
2226 element.
2227 (FORCE_KEYWORD_INDEX): New #define.
2228 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2229 as a keyword.
2230 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2231 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2232 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2233 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2234
b5fa468f
TBA
22352020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2236
2237 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2238 * breakpoint.c (set_breakpoint_location_condition): New function.
2239 (set_breakpoint_condition): Disable a breakpoint location if parsing
2240 the condition string gives an error.
2241 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2242 (build_target_condition_list): Ditto.
2243 (build_target_command_list): Ditto.
2244 (build_bpstat_chain): Ditto.
2245 (print_one_breakpoint_location): Ditto.
2246 (print_one_breakpoint): Ditto.
2247 (breakpoint_1): Ditto.
2248 (bp_location::bp_location): Ditto.
2249 (locations_are_equal): Ditto.
2250 (update_breakpoint_locations): Ditto.
2251 (enable_disable_bp_num_loc): Ditto.
2252 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2253 (find_condition_and_thread_for_sals): New static function.
2254 (create_breakpoint): Call find_condition_and_thread_for_sals.
2255 (location_to_sals): Call find_condition_and_thread_for_sals instead
2256 of find_condition_and_thread.
2257
1c47ec3e
TV
22582020-10-26 Tom de Vries <tdevries@suse.de>
2259
2260 * dwarf2/read.c (process_full_comp_unit): Call
2261 dwarf2_find_base_address.
2262
6390859c
TT
22632020-10-26 Tom Tromey <tromey@adacore.com>
2264
2265 * gdbtypes.c (create_range_type): Revert previous patch. Add
2266 comment.
2267
d744f0f9
PA
22682020-10-26 Pedro Alves <pedro@palves.net>
2269
2270 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2271 (my_waitpid): Use gdb::handle_eintr.
2272
006811bc
SM
22732020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2274
2275 * acinclude.m4: Update ptrace.m4 path.
2276 * ptrace.m4: Moved to gdbsupport.
2277
c75e31a1
SM
22782020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2279
2280 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2281 instead of target_gdbarch.
2282
32495661
SM
22832020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2284
2285 * jit.c (jit_reader_load_command): Pass current inferior.
2286 (jit_inferior_init): Change parameter type to inferior, use it.
2287 (jit_inferior_created): Remove.
2288 (jit_inferior_created_hook): Pass inferior parameter down.
2289 (_initialize_jit): Use jit_inferior_created_hook instead of
2290 jit_inferior_created.
2291 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2292 * infrun.c (follow_exec): Pass inferior to
2293 jit_inferior_created_hook.
2294
3f66685e
SM
22952020-10-24 Simon Marchi <simon.marchi@efficios.com>
2296
2297 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2298 parameter and use it.
2299 (thread_db_inferior_created): Pass inferior argument.
2300
a0ff652f
SM
23012020-10-24 Simon Marchi <simon.marchi@efficios.com>
2302
2303 * aix-thread.c (aix_thread_inferior_created): Add inferior
2304 parameter.
2305 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2306 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2307 * jit.c (jit_inferior_created): Likewise.
2308 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2309 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2310 * observable.h (inferior_created): Likewise.
2311 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2312 * symfile-mem.c (add_vsyscall_page): Likewise.
2313 * infcmd.c (post_create_inferior): Pass inferior argument.
2314
3c67532c
JB
23152020-10-24 Joel Brobecker <brobecker@adacore.com>
2316
2317 GDB 10.1 released.
2318
8747316e
JB
23192020-10-23 Joel Brobecker <brobecker@adacore.com>
2320
2321 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2322 to ada_check_typedef.
2323
1a0ea399
AB
23242020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2325
2326 * f-exp.y (f_parse): Rename to...
2327 (f_language::parser): ...this.
2328 * f-lang.c (f_get_encoding): Rename to...
2329 (f_language::get_encoding): ...this.
2330 (f_op_print_tab): Rename to...
2331 (f_language::op_print_tab): ...this.
2332 (exp_descriptor_f): Rename to...
2333 (f_language::exp_descriptor_tab): ...this.
2334 (class f_language): Moved to f-lang.h.
2335 (f_language::language_arch_info): New function, moved out of class
2336 declaration.
2337 (f_language::search_name_hash): Likewise.
2338 (f_language::lookup_symbol_nonlocal): Likewise.
2339 (f_language::get_symbol_name_matcher_inner): Likewise.
2340 * f-lang.h: Add 'valprint.h' include.
2341 (class f_language): Moved here from f-lang.c.
2342 * f-typeprint.c (f_type_print_args): Delete commented out
2343 declaration.
2344 (f_print_typedef): Rename to...
2345 (f_language::print_typedef): ...this.
2346 (f_print_type): Rename to...
2347 (f_language::print_type): ...this.
2348 (f_type_print_varspec_prefix): Delete declaration and rename to...
2349 (f_language::f_type_print_varspec_prefix): ...this.
2350 (f_type_print_varspec_suffix): Delete declaration and rename to...
2351 (f_language::f_type_print_varspec_suffix): ...this.
2352 (f_type_print_base): Delete declaration and rename to...
2353 (f_language::f_type_print_base): ...this.
2354 * f-valprint.c (f_value_print_inner): Rename to...
2355 (f_language::value_print_inner): ...this.
2356 * parse.c: Delete 'f-lang.h' include.
2357
88cefd9b
AB
23582020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2359
2360 * language.h (language_defn::print_type): Add variable names in
2361 declaration, and update header comment.
2362
5399db93
AB
23632020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2364
2365 * ada-lang.c (ada_language::demangle): Rename to...
2366 (ada_language::demangle_symbol): ...this.
2367 * c-lang.c (cplus_language::demangle): Rename to...
2368 (cplus_language::demangle_symbol): ...this.
2369 * d-lang.c (d_language::demangle): Rename to...
2370 (d_language::demangle_symbol): ...this.
2371 * f-lang.c (f_language::demangle): Rename to...
2372 (f_language::demangle_symbol): ...this.
2373 * go-lang.c (go_language::demangle): Rename to...
2374 (go_language::demangle_symbol): ...this.
2375 * language.c (language_demangle): Update call to demangle_symbol.
2376 (auto_or_unknown_language::demangle): Rename to...
2377 (auto_or_unknown_language::demangle_symbol): ...this.
2378 * language.h (language_defn::demangle): Rename to...
2379 (language_defn::demangle_symbol): ...this.
2380 * objc-lang.c (objc_language::demangle): Rename to...
2381 (objc_language::demangle_symbol): ...this.
2382 * rust-lang.c (rust_language::demangle): Rename to...
2383 (rust_language::demangle_symbol): ...this.
2384
4b2f86ef
AB
23852020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2386
2387 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2388 (iterate_over_file_blocks): Replace use of macro with the macros
2389 definition.
2390
e74b39de
AB
23912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2392
2393 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2394 * valprint.c (maybe_print_array_index): Replace use of macro with
2395 the macros definition.
2396
00c696a6
AB
23972020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2398
2399 * ada-lang.c (ada_language::print_array_index): Call value_print
2400 directly.
2401 * language.c (language_defn::print_array_index): Likewise.
2402 * language.h (LA_VALUE_PRINT): Delete.
2403 * valprint.c (value_print): Call value_print on the
2404 current_language directly.
2405
d3b67c56
AB
24062020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2407
2408 * language.h (LA_PRINT_TYPEDEF): Delete.
2409 * typeprint.c (typedef_print): Call print_typedef directly on the
2410 current_language object.
2411
790e2a12
AB
24122020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2413
2414 * m2-exp.y (m2_parse): Rename to...
2415 (m2_language::parser): ...this. Update function signature.
2416 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2417 (m2_op_print): Rename to...
2418 (m2_language::op_print_tab): ...this, and make const.
2419 (exp_descriptor_modula2): Rename to...
2420 (m2_language::exp_descriptor_modula2): ...this.
2421 (class m2_language): Move to m2-lang.h.
2422 (m2_language::language_arch_info): New function, moved out of
2423 class declaration.
2424 (m2_language::printchar): New function, body from m2_printchar.
2425 (m2_language::printstr): New function, moved out of class
2426 declaration.
2427 (m2_language::emitchar): Likewise.
2428 * m2-lang.h (m2_parse): Delete declaration.
2429 (m2_print_typedef): Delete declaration.
2430 (m2_value_print_inner): Delete declaration.
2431 (class m2_language): Class declaration moved from m2-lang.c,
2432 larger functions are left in m2-lang.c.
2433 * m2-typeprint.c (m2_print_typedef): Rename to...
2434 (m2_language::print_typedef): ...this, and update function
2435 signature.
2436 * m2-valprint.c (m2_value_print_inner): Rename to...
2437 (m2_language::value_print_inner): ...this, replace use of
2438 LA_PRINT_STRING with a direct call to printstr member function,
2439 and update recursive call.
2440
b01175fc
AB
24412020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2442
2443 * language.c (default_is_string_type_p): Delete, implementation
2444 moved into auto_or_unknown_language::is_string_type_p.
2445 (unk_op_print_tab): Moved into
2446 auto_or_unknown_language::opcode_print_table.
2447 (unknown_language_arch_info): Delete, implementation moved into
2448 auto_or_unknown_language::language_arch_info.
2449 (class auto_or_unknown_language): New class, member functions
2450 copied from unknown_language class, with some updates.
2451 (class unknown_language): Most member functions moved into
2452 auto_or_unknown_language class. Inherit from
2453 auto_or_unknown_language class.
2454 (class auto_language): Inherit from auto_or_unknown_language.
2455 Delete most member functions.
2456
1a97fe8c
HD
24572020-10-22 Hannes Domani <ssbssa@yahoo.de>
2458
2459 * stabsread.c (read_member_functions): Remove gdb_assert.
2460
6b9d0dfd
HD
24612020-10-22 Hannes Domani <ssbssa@yahoo.de>
2462
2463 * gdbtypes.c (init_complex_type): Check target type name.
2464
4b4bb603
SM
24652020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2466
2467 * target-debug.h (target_debug_print_struct_target_ops_p):
2468 Remove.
2469 (target_debug_print_async_callback_ftype_p): Remove.
2470 (target_debug_print_struct_trace_state_variable_p): Remove.
2471 (target_debug_print_struct_traceframe_info_p): Remove.
2472 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2473 (target_debug_print_enum_btrace_format): Remove.
2474 (target_debug_print_enum_info_proc_what): Remove.
2475 (target_debug_print_thread_info_pp): Remove.
2476
24f5300a
SM
24772020-10-22 Simon Marchi <simon.marchi@efficios.com>
2478
2479 * target.h (struct target_ops) <make_corefile_notes>:
2480 Change return type to unique pointer.
2481 * target.c (dummy_make_corefile_notes): Likewise.
2482 * exec.c (struct exec_target) <make_corefile_notes>:
2483 Likewise.
2484 (exec_target::make_corefile_notes): Likewise.
2485 * procfs.c (class procfs_target) <make_corefile_notes>:
2486 Likewise.
2487 (procfs_do_thread_registers): Adjust to unique pointer.
2488 (struct procfs_corefile_thread_data): Add constructor.
2489 <note_data>: Change type to unique pointer.
2490 (procfs_corefile_thread_callback): Adjust to unique pointer.
2491 (procfs_target::make_corefile_notes): Change return type to
2492 unique pointer.
2493 * target-delegates.c: Re-generate.
2494 * gcore.c (write_gcore_file_1): Adjust.
2495 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2496 New.
2497
5fb4027f
TV
24982020-10-22 Tom de Vries <tdevries@suse.de>
2499
2500 * block.c (find_block_in_blockvector): Make sure the returned block
2501 contains pc.
2502
4a636814
SM
25032020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2504
2505 PR gdb/26693
2506 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2507 parameter.
2508 (load_cu): Pass existing CU.
2509 (process_imported_unit_die): Likewise.
2510 (follow_die_offset): Likewise.
2511
1bd57575
LM
25122020-10-22 Luis Machado <luis.machado@linaro.org>
2513
2514 * corelow.c (core_target::xfer_partial): Also check for an empty
2515 m_core_unavailable_mappings vector.
2516
6b4c676c
AB
25172020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2520 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2521 * f-exp.y (arglist): Allow for a series of subranges.
2522 (subrange): Add cases for subranges with strides.
2523 * f-lang.c (value_f90_subarray): Catch use of array strides and
2524 throw an error.
2525 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2526
f2d8e4c5
AB
25272020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * expprint.c (print_subexp_standard): Change enum range_type to
2530 range_flag and rename variables to match.
2531 (dump_subexp_body_standard): Likewise.
2532 * expression.h (enum range_type): Rename to...
2533 (enum range_flag): ...this.
2534 (range_types): Rename to...
2535 (range_flags): ...this.
2536 * f-lang.c (value_f90_subarray): Change enum range_type to
2537 range_flag and rename variables to match.
2538 * parse.c (operator_length_standard): Likewise.
2539 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2540 range_type to range_flag.
2541 * rust-lang.c (rust_evaluate_funcall): Likewise.
2542 (rust_range): Likewise.
2543 (rust_compute_range): Likewise.
2544 (rust_subscript): Likewise.
2545
2f1b18db
AB
25462020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2547
2548 * expprint.c (print_subexp_standard): Update to reflect changes to
2549 enum range_type.
2550 (dump_subexp_body_standard): Likewise.
2551 * expression.h (enum range_type): Convert to a bit field enum, and
2552 make the enum unsigned.
2553 * f-exp.y (subrange): Update to reflect changes to enum
2554 range_type.
2555 * f-lang.c (value_f90_subarray): Likewise.
2556 * parse.c (operator_length_standard): Likewise.
2557 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2558 * rust-lang.c (rust_range): Likewise.
2559 (rust_compute_range): Likewise.
2560 (rust_subscript): Likewise.
2561
a46d1843
SM
25622020-10-21 Simon Marchi <simon.marchi@efficios.com>
2563
2564 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2565 (displaced_step_in_progress): Fix comment.
2566
c21f37a8
SM
25672020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2568
2569 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2570 * gdbarch.c: Re-generate.
2571 * gdbarch.h: Re-generate.
2572 * gcore.c (write_gcore_file_1): Adjust.
2573 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2574 constructor.
2575 <note_data>: Change type to unique pointer.
2576 <abort_iteration>: Change type to bool.
2577 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2578 (fbsd_collect_thread_registers): Return void, adjust.
2579 (struct fbsd_corefile_thread_data): Add construtor.
2580 <note_data>: Change type to unique pointer.
2581 (fbsd_corefile_thread): Adjust.
2582 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2583 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2584 to unique pointer, adjust.
2585 (struct linux_collect_regset_section_cb_data): Add constructor.
2586 <note_data>: Change type to unique pointer.
2587 <abort_iteration>: Change type to bool.
2588 (linux_collect_thread_registers): Return void, adjust.
2589 (struct linux_corefile_thread_data): Add constructor.
2590 <note_data>: Change type to unique pointer.
2591 (linux_corefile_thread): Adjust.
2592 (linux_make_corefile_notes): Return unique pointer, adjust.
2593
07fbbd01
SM
25942020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2595
2596 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2597 * gdbarch.c: Re-generate.
2598 * gdbarch.h: Re-generate.
2599 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2600 bool.
2601 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2602 Likewise.
2603 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2604 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2605 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2606 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2607
39535193
SM
26082020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2609
2610 * gdbarch.sh: Make generated predicates return bool.
2611 * gdbarch.c: Re-generate.
2612 * gdbarch.h: Re-generate.
2613
ad523d01
TT
26142020-10-20 Tom Tromey <tom@tromey.com>
2615
2616 * varobj-iter.h (struct varobj_item): Remove typedef.
2617
c4464ade
SM
26182020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2619
2620 * infrun.c (currently_stepping): Change int to bool
2621 (maybe_software_singlestep): Likewise.
2622 (show_stop_on_solib_events): Likewise.
2623 (stepping_past_nonsteppable_watchpoint): Likewise.
2624 (displaced_step_in_progress_any_inferior): Likewise.
2625 (displaced_step_in_progress_thread): Likewise.
2626 (keep_going_stepped_thread): Likewise.
2627 (thread_still_needs_step_over): Likewise.
2628 (start_step_over): Likewise.
2629 (do_target_resume): Likewise.
2630 (resume_1): Likewise.
2631 (clear_proceed_status): Likewise.
2632 (thread_still_needs_step_over_bp): Likewise.
2633 (proceed): Likewise.
2634 (switch_back_to_stepped_thread): Likewise.
2635 (adjust_pc_after_break): Likewise.
2636 (stepped_in_from): Likewise.
2637 (handle_stop_requested): Likewise.
2638 (handle_syscall_event): Likewise.
2639 (handle_no_resumed): Likewise.
2640 (handle_inferior_event): Likewise.
2641 (finish_step_over): Likewise.
2642 (handle_signal_stop): Likewise.
2643 (process_event_stop_test): Likewise.
2644
2eb20436
SM
26452020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2646
2647 * infrun.c (get_displaced_stepping_state): Fix comment.
2648
e0c45ded
AS
26492020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2650
2651 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2652
22cc388e
TT
26532020-10-19 Tom Tromey <tromey@adacore.com>
2654
2655 PR tui/26719
2656 * tui/tui-winsource.h (struct tui_source_window_base)
2657 <refresh_window>: Rename from refresh_pad.
2658 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2659 Rename from refresh_pad.
2660 (tui_source_window_base::show_source_content)
2661 (tui_source_window_base::do_scroll_horizontal): Update.
2662
3c6eb4d4
TBA
26632020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2664
2665 * thread.c (_initialize_thread): Fine-tune the help text of
2666 'info threads'.
2667
26703721
TBA
26682020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2669
2670 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2671
61c26be8
MS
26722020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2673
2674 * breakpoint.c (handle_jit_event): Add an argument, change how
2675 `jit_event_handler` is called.
2676
932539d7
TT
26772020-10-17 Tom Tromey <tom@tromey.com>
2678
2679 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2680 (scan_xcoff_symtab): Update.
2681 * psymtab.h (class psymtab_storage) <global_psymbols,
2682 static_psymbols, current_global_psymbols,
2683 current_static_psymbols>: Remove.
2684 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2685 (match_partial_symbol, lookup_partial_symbol): Update.
2686 (print_partial_symbols): Change parameters.
2687 (dump_psymtab, recursively_search_psymtabs)
2688 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2689 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2690 (concat): Remove.
2691 (end_psymtab_common): Simplify.
2692 (append_psymbol_to_list): Change parameters.
2693 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2694 (init_psymbol_list): Simplify.
2695 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2696 * psympriv.h (struct partial_symtab) <empty>: New method.
2697 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2698 Remove.
2699 <global_psymbols, static_psymbols>: New members.
2700 <add_psymbol>: New methods.
2701 (add_psymbol_to_list): Don't declare.
2702 (psymbol_placement): Move earlier.
2703 * mdebugread.c (parse_partial_symbols): Update.
2704 (handle_psymbol_enumerators): Change parameters.
2705 (mdebug_expand_psymtab): Update.
2706 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2707 (add_partial_symbol): Update.
2708 * dwarf2/index-write.c (write_psymbols): Change parameters.
2709 (write_one_signatured_type): Update.
2710 (recursively_count_psymbols): Update.
2711 (recursively_write_psymbols): Update.
2712 (class debug_names) <recursively_write_psymbols>: Update.
2713 <write_psymbols>: Change parameters.
2714 <write_one_signatured_type>: Update.
2715 * dbxread.c (read_dbx_symtab): Update.
2716 (dbx_end_psymtab): Use partial_symtab::empty.
2717 * ctfread.c (struct ctf_context) <pst>: New member.
2718 (create_partial_symtab): Set it.
2719 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2720 (scan_partial_symbols): Use the psymtab's context. Update.
2721
cfabbd35
TT
27222020-10-17 Tom Tromey <tom@tromey.com>
2723
2724 * valprint.c (generic_value_print): Remove comment.
2725 * m2-valprint.c (m2_value_print_inner): Remove comment.
2726 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2727 type.
2728
520596f2
TV
27292020-10-17 Tom de Vries <tdevries@suse.de>
2730
2731 PR symtab/26317
2732 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2733 symbol main.
2734
76547ab3
TV
27352020-10-14 Tom de Vries <tdevries@suse.de>
2736
2737 PR gdb/26733
2738 * solib.c (solib_contains_address_p): Handle
2739 'solib->sections == nullptr'.
2740
d3a07122
SM
27412020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2742
2743 PR gdb/26642
2744 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2745 target can't do async.
2746 * target.c (target_wait): Assert that we don't pass
2747 TARGET_WNOHANG to a target that can't async.
2748
1b71cfcf
KR
27492020-10-13 Kamil Rytarowski <n54@gmx.com>
2750
2751 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2752 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2753 * alpha-bsd-nat.c: Adjust include.
2754 * alpha-bsd-tdep.h: Adjust comment.
2755 * alpha-nbsd-tdep.c: Rename to ...
2756 * alpha-netbsd-tdep.c: ... this, adjust include.
2757 * amd64-nbsd-nat.c: Rename to ...
2758 * amd64-netbsd-nat.c: ... this, adjust include.
2759 * amd64-nbsd-tdep.c: Rename to ...
2760 * amd64-netbsd-tdep.c: ... this, adjust include.
2761 * amd64-tdep.h: Adjust include.
2762 * arm-nbsd-nat.c: Rename to ...
2763 * arm-netbsd-nat.c: ... this, adjust include.
2764 * arm-nbsd-tdep.c: Rename to ...
2765 * arm-netbsd-tdep.c: ... this, adjust include.
2766 * arm-nbsd-tdep.h: Rename to ...
2767 * arm-netbsd-tdep.h: ... this, adjust include.
2768 * configure.nat: Adjust file lists.
2769 * configure.tgt: Likewise.
2770 * hppa-nbsd-nat.c: Rename to ...
2771 * hppa-netbsd-nat.c: ... this, adjust include.
2772 * hppa-nbsd-tdep.c: Rename to ...
2773 * hppa-netbsd-tdep.c: ... this, adjust include.
2774 * i386-nbsd-nat.c: Rename to ...
2775 * i386-netbsd-nat.c: ... this, adjust include.
2776 * i386-nbsd-tdep.c: Rename to ...
2777 * i386-netbsd-tdep.c: ... this, adjust include.
2778 * m68k-bsd-nat.c: Adjust include.
2779 * mips-nbsd-nat.c: Rename to ...
2780 * mips-netbsd-nat.c: ... this, adjust include.
2781 * mips-nbsd-tdep.c: Rename to ...
2782 * mips-netbsd-tdep.c: ... this, adjust include.
2783 * mips-nbsd-tdep.h: Rename to ...
2784 * mips-netbsd-tdep.h: ... this.
2785 * nbsd-nat.c: Rename to ...
2786 * netbsd-nat.c: ... this, adjust include.
2787 * nbsd-nat.h: Rename to ...
2788 * netbsd-nat.h: ... this, adjust include.
2789 * nbsd-tdep.c: Rename to ...
2790 * netbsd-tdep.c: ... this, adjust include.
2791 * nbsd-tdep.h: Rename to ...
2792 * netbsd-tdep.h: ... this.
2793 * ppc-nbsd-nat.c: Rename to ...
2794 * ppc-netbsd-nat.c: ... this, adjust include.
2795 * ppc-nbsd-tdep.c: Rename to ...
2796 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2797 * ppc-nbsd-tdep.h: Rename to ...
2798 * ppc-netbsd-tdep.h: ... this.
2799 * sh-nbsd-nat.c: Rename to ...
2800 * sh-netbsd-nat.c: ... this, adjust include.
2801 * sh-nbsd-tdep.c: Rename to ...
2802 * sh-netbsd-tdep.c: ... this, adjust include.
2803 * sparc-nbsd-nat.c: Rename to ...
2804 * sparc-netbsd-nat.c: ... this.
2805 * sparc-nbsd-tdep.c: Rename to ...
2806 * sparc-netbsd-tdep.c: ... this, adjust include.
2807 * sparc64-nbsd-nat.c: Rename to ...
2808 * sparc64-netbsd-nat.c: ... this.
2809 * sparc64-nbsd-tdep.c: Rename to ...
2810 * sparc64-netbsd-tdep.c: ... this, adjust include.
2811 * sparc64-tdep.h: Adjust comment.
2812 * vax-bsd-nat.c: Adjust include.
2813 * vax-nbsd-tdep.c: Rename to ...
2814 * vax-netbsd-tdep.c: ... this, adjust include.
2815
d7a78e5c
TT
28162020-10-12 Tom Tromey <tom@tromey.com>
2817
2818 * target.h (struct target_ops) <get_section_table>: Update.
2819 (target_get_section_table): Update.
2820 * target.c (target_get_section_table, target_section_by_addr)
2821 (memory_xfer_partial_1): Update.
2822 * target-section.h (target_section_table): Now an alias.
2823 * target-delegates.c: Rebuild.
2824 * target-debug.h (target_debug_print_target_section_table_p):
2825 Rename from target_debug_print_struct_target_section_table_p.
2826 * symfile.c (build_section_addr_info_from_section_table): Update.
2827 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2828 * solib-svr4.c (scan_dyntag): Update.
2829 * solib-dsbt.c (scan_dyntag): Update.
2830 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2831 Update.
2832 * record-full.c (record_full_core_target::xfer_partial): Update.
2833 * progspace.h (struct program_space) <target_sections>: Update.
2834 * exec.h (print_section_info): Update.
2835 * exec.c (exec_target::close, build_section_table)
2836 (add_target_sections, add_target_sections_of_objfile)
2837 (remove_target_sections, exec_on_vfork)
2838 (section_table_available_memory)
2839 (section_table_xfer_memory_partial)
2840 (exec_target::get_section_table, exec_target::xfer_partial)
2841 (print_section_info, set_section_command)
2842 (exec_set_section_address, exec_target::has_memory): Update.
2843 * corelow.c (core_target::build_file_mappings)
2844 (core_target::xfer_partial, core_target::info_proc_mappings)
2845 (core_target::info_proc_mappings): Update.
2846 * bfd-target.c (class target_bfd): Update
2847
eda214ce
TT
28482020-10-12 Tom Tromey <tom@tromey.com>
2849
2850 * progspace.c (program_space::~program_space): Don't call
2851 clear_section_table.
2852 * exec.h (clear_section_table): Don't declare.
2853 * exec.c (exec_target::close): Update.
2854 (clear_section_table): Remove.
2855
91840ee3
TT
28562020-10-12 Tom Tromey <tom@tromey.com>
2857
2858 * exec.c (add_target_sections_of_objfile): Simplify.
2859
2d128614
TT
28602020-10-12 Tom Tromey <tom@tromey.com>
2861
2862 * solib.c (solib_map_sections): Update.
2863 * record-full.c (record_full_core_open_1): Update.
2864 * exec.h (build_section_table): Return a target_section_table.
2865 * exec.c (exec_file_attach): Update.
2866 (build_section_table): Return a target_section_table.
2867 * corelow.c (core_target::core_target): Update.
2868 * bfd-target.c (target_bfd::target_bfd): Update.
2869
bb2a6777
TT
28702020-10-12 Tom Tromey <tom@tromey.com>
2871
2872 * target.c (target_section_by_addr, memory_xfer_partial_1):
2873 Update.
2874 * target-section.h (struct target_section_table): Use
2875 std::vector.
2876 * symfile.h (build_section_addr_info_from_section_table): Take a
2877 target_section_table.
2878 * symfile.c (build_section_addr_info_from_section_table): Take a
2879 target_section_table.
2880 * solist.h (struct so_list) <sections>: Change type.
2881 <sections_end>: Remove.
2882 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2883 (solib_contains_address_p): Update.
2884 * solib-svr4.c (scan_dyntag): Update.
2885 * solib-dsbt.c (scan_dyntag): Update.
2886 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2887 Update.
2888 * record-full.c (record_full_core_start, record_full_core_end):
2889 Remove.
2890 (record_full_core_sections): New global.
2891 (record_full_core_open_1, record_full_core_target::xfer_partial):
2892 Update.
2893 * exec.h (build_section_table, section_table_xfer_memory_partial)
2894 (add_target_sections): Take a target_section_table.
2895 * exec.c (exec_file_attach, clear_section_table): Update.
2896 (resize_section_table): Remove.
2897 (build_section_table, add_target_sections): Take a
2898 target_section_table.
2899 (add_target_sections_of_objfile, remove_target_sections)
2900 (exec_on_vfork): Update.
2901 (section_table_available_memory): Take a target_section_table.
2902 (section_table_read_available_memory): Update.
2903 (section_table_xfer_memory_partial): Take a target_section_table.
2904 (print_section_info, set_section_command)
2905 (exec_set_section_address, exec_target::has_memory): Update.
2906 * corelow.c (class core_target) <m_core_section_table,
2907 m_core_file_mappings>: Remove braces.
2908 <~core_target>: Remove.
2909 (core_target::core_target): Update.
2910 (core_target::~core_target): Remove.
2911 (core_target::build_file_mappings)
2912 (core_target::xfer_memory_via_mappings)
2913 (core_target::xfer_partial, core_target::info_proc_mappings):
2914 Update.
2915 * bfd-target.c (target_bfd::xfer_partial): Update.
2916 (target_bfd::target_bfd): Update.
2917 (target_bfd::~target_bfd): Remove.
2918
7b466b10
TT
29192020-10-12 Tom Tromey <tom@tromey.com>
2920
2921 * target.h (struct target_section, struct target_section_table):
2922 Move to target-section.h.
2923 * target-section.h: New file.
2924
87a37e5e
PA
29252020-10-12 Pedro Alves <pedro@palves.net>
2926
2927 PR exp/26602
2928 * valops.c (struct struct_field_searcher): New.
2929 (update_search_result): Rename to ...
2930 (struct_field_searcher::update_result): ... this. Simplify
2931 prototype. Record all found fields.
2932 (do_search_struct_field): Rename to ...
2933 (struct_field_searcher::search): ... this. Simplify prototype.
2934 Maintain stack of visited baseclass path. Call update_result for
2935 fields too. Keep searching fields in baseclasses instead of
2936 stopping at the first found field.
2937 (search_struct_field): Use struct_field_searcher. When looking
2938 for fields, report ambiguous access attempts.
2939
9370fd51
AB
29402020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2941
2942 * frame.c (inside_main_func): Check full symbols as well as
2943 minimal symbols.
2944
59c8a30b
JB
29452020-10-09 Joel Brobecker <brobecker@adacore.com>
2946
2947 * ada-lang.c (advance_wild_match): Rewrite the function's
2948 description. Change the type of target0, t0 and t1 to char.
2949
7c184d33
TT
29502020-10-09 Tom Tromey <tromey@adacore.com>
2951
2952 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2953
5c4258f4
TT
29542020-10-09 Tom Tromey <tromey@adacore.com>
2955
2956 * ada-lang.h (ada_encode): Return std::string.
2957 * ada-lang.c (ada_encode_1): Return std::string.
2958 (ada_encode): Likewise.
2959 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2960 Update.
2961 * ada-exp.y (block_lookup, write_var_or_type): Update.
2962
3d87245c
HD
29632020-10-09 Hannes Domani <ssbssa@yahoo.de>
2964
2965 PR exp/26714
2966 * printcmd.c (print_formatted): Handle void results as
2967 unformatted prints.
2968
bbb826f5
AB
29692020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * arch/aarch32.c (aarch32_create_target_description): Release the
2972 target_desc_up as late as possible.
2973 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2974 * arch/amd64.c (amd64_create_target_description): Likewise.
2975 * arch/arc.c (arc_create_target_description): Return a
2976 target_desc_up, don't release it.
2977 * arch/arc.h (arc_create_target_description): Update declaration.
2978 (arc_lookup_target_description): Move target_desc_up into the
2979 cache, and return a borrowed pointer.
2980 * arch/arm.c (arm_create_target_description): Release the
2981 target_desc_up as late as possible.
2982 * arch/i386.c (i386_create_target_description): Likewise.
2983 * arch/riscv.h (riscv_create_target_description): Update
2984 declaration to match definition.
2985 * arch/tic6x.c (tic6x_create_target_description): Release the
2986 target_desc_up as late as possible.
2987
361cb219
AB
29882020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2989
2990 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2991 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2992
f5c4b229
JV
29932020-10-09 Jan Vrany <jan.vrany@labware.com>
2994
2995 * source.c (directory_command): Notify observers that "directories"
2996 parameter has changed.
2997
b2701685
TT
29982020-10-08 Tom Tromey <tom@tromey.com>
2999
3000 * cli/cli-cmds.c (print_disassembly): Style function name and
3001 addresses. Add _() wrappers.
3002
ada508b6
SV
30032020-10-08 Shahab Vahedi <shahab@synopsys.com>
3004
3005 * NEWS: Mention ARC support in GDBserver.
3006
51a948fd
AB
30072020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3008
3009 * arch/aarch32.c (aarch32_create_target_description): Release
3010 unique_ptr returned from allocate_target_description.
3011 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3012 * arch/amd64.c (amd64_create_target_description): Likewise.
3013 * arch/arc.c (arc_create_target_description): Likewise.
3014 * arch/arm.c (arm_create_target_description): Likewise.
3015 * arch/i386.c (i386_create_target_description): Likewise.
3016 * arch/riscv.c (riscv_create_target_description): Update return
3017 type. Handle allocate_target_description returning a unique_ptr.
3018 (riscv_lookup_target_description): Update to handle unique_ptr.
3019 * arch/tic6x.c (tic6x_create_target_description): Release
3020 unique_ptr returned from allocate_target_description.
3021 * features/microblaze-with-stack-protect.c: Regenerate.
3022 * features/microblaze.c: Regenerate.
3023 * features/mips-dsp-linux.c: Regenerate.
3024 * features/mips-linux.c: Regenerate.
3025 * features/mips64-dsp-linux.c: Regenerate.
3026 * features/mips64-linux.c: Regenerate.
3027 * features/nds32.c: Regenerate.
3028 * features/nios2.c: Regenerate.
3029 * features/or1k.c: Regenerate.
3030 * features/rs6000/powerpc-32.c: Regenerate.
3031 * features/rs6000/powerpc-32l.c: Regenerate.
3032 * features/rs6000/powerpc-403.c: Regenerate.
3033 * features/rs6000/powerpc-403gc.c: Regenerate.
3034 * features/rs6000/powerpc-405.c: Regenerate.
3035 * features/rs6000/powerpc-505.c: Regenerate.
3036 * features/rs6000/powerpc-601.c: Regenerate.
3037 * features/rs6000/powerpc-602.c: Regenerate.
3038 * features/rs6000/powerpc-603.c: Regenerate.
3039 * features/rs6000/powerpc-604.c: Regenerate.
3040 * features/rs6000/powerpc-64.c: Regenerate.
3041 * features/rs6000/powerpc-64l.c: Regenerate.
3042 * features/rs6000/powerpc-7400.c: Regenerate.
3043 * features/rs6000/powerpc-750.c: Regenerate.
3044 * features/rs6000/powerpc-860.c: Regenerate.
3045 * features/rs6000/powerpc-altivec32.c: Regenerate.
3046 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3047 * features/rs6000/powerpc-altivec64.c: Regenerate.
3048 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3049 * features/rs6000/powerpc-e500.c: Regenerate.
3050 * features/rs6000/powerpc-e500l.c: Regenerate.
3051 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3052 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3053 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3054 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3055 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3056 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3057 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3058 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3059 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3060 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3061 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3062 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3063 * features/rs6000/powerpc-vsx32.c: Regenerate.
3064 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3065 * features/rs6000/powerpc-vsx64.c: Regenerate.
3066 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3067 * features/rs6000/rs6000.c: Regenerate.
3068 * features/rx.c: Regenerate.
3069 * features/s390-gs-linux64.c: Regenerate.
3070 * features/s390-linux32.c: Regenerate.
3071 * features/s390-linux32v1.c: Regenerate.
3072 * features/s390-linux32v2.c: Regenerate.
3073 * features/s390-linux64.c: Regenerate.
3074 * features/s390-linux64v1.c: Regenerate.
3075 * features/s390-linux64v2.c: Regenerate.
3076 * features/s390-te-linux64.c: Regenerate.
3077 * features/s390-tevx-linux64.c: Regenerate.
3078 * features/s390-vx-linux64.c: Regenerate.
3079 * features/s390x-gs-linux64.c: Regenerate.
3080 * features/s390x-linux64.c: Regenerate.
3081 * features/s390x-linux64v1.c: Regenerate.
3082 * features/s390x-linux64v2.c: Regenerate.
3083 * features/s390x-te-linux64.c: Regenerate.
3084 * features/s390x-tevx-linux64.c: Regenerate.
3085 * features/s390x-vx-linux64.c: Regenerate.
3086 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3087 from allocate_target_description.
3088 * target-descriptions.c (allocate_target_description): Update
3089 return type.
3090 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3091 allocate_target_description.
3092
485c47e5
TT
30932020-10-07 Tom Tromey <tromey@adacore.com>
3094
3095 * unittests/search-memory-selftests.c: New file.
3096 * Makefile.in (SELFTESTS_SRCS): Add
3097 unittests/search-memory-selftests.c.
3098
3a135a91
TT
30992020-10-07 Tom Tromey <tromey@adacore.com>
3100
3101 PR gdb/16930:
3102 * findcmd.c (_initialize_mem_search): Mention that the range is
3103 inclusive.
3104
4a72de73
TT
31052020-10-07 Tom Tromey <tromey@adacore.com>
3106
3107 * target.h (simple_search_memory): Don't declare.
3108 * target.c (simple_search_memory): Move to gdbsupport.
3109 (default_search_memory): Update.
3110 * remote.c (remote_target::search_memory): Update.
3111
a038ffd8
SM
31122020-10-07 Simon Marchi <simon.marchi@efficios.com>
3113
3114 * Makefile.in (COMPILE): Add CXXFLAGS.
3115 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3116 (check-headers): Add CXXFLAGS.
3117
cc463201
AK
31182020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3119
3120 * arc-linux-tdep.h: New file.
3121 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3122 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3123 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3124 arc_linux_gregset, arc_linux_v2_regset,
3125 arc_linux_iterate_over_regset_sections,
3126 arc_linux_core_read_description): Implement.
3127 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3128 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3129 (arc_gdbarch_features_create): Add.
3130 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3131
e4bd363f
SV
31322020-10-07 Shahab Vahedi <shahab@synopsys.com>
3133
3134 * arch/arc.h: Rename "arc_gdbarch_features" to
3135 "arc_arch_features".
3136 * arc-tdep.h: Likewise.
3137 * arc-tdep.c: Likewise.
3138
b68bef99
TBA
31392020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3140
3141 * infcmd.c (attach_command): Remove the redundant call to
3142 `clear_proceed_status`.
3143
4641551a
KR
31442020-10-07 Kamil Rytarowski <n54@gmx.com>
3145
3146 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3147
91e5e8db
KR
31482020-10-07 Kamil Rytarowski <n54@gmx.com>
3149
3150 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3151 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3152 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3153
64c03bdb
SM
31542020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3155
3156 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3157 (_initialize_break_catch_sig): Don't allocate array.
3158
31a8f60f
AB
31592020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3160
3161 * symtab.c (find_pc_line): Return unmapped addresses when the
3162 requested address is also unmapped.
3163
9e6dbd8b
SM
31642020-10-05 Simon Marchi <simon.marchi@efficios.com>
3165
3166 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3167 tui/tui-out.h.
3168
a1d217e8
SM
31692020-10-05 Simon Marchi <simon.marchi@efficios.com>
3170
3171 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3172 type::is_vector instead of TYPE_VECTOR.
3173
7d144117
SM
31742020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3175
3176 * auto-load.c (auto_load_objfile_script_1): Don't use
3177 debugfile_holder as temporary variable when stripping drive
3178 letter.
3179
cd096ec8
HD
31802020-10-05 Hannes Domani <ssbssa@yahoo.de>
3181
3182 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3183 Add TYPE_CODE_COMPLEX.
3184 (amd64_windows_return_value): Fix types returned via XMM0.
3185
b58e7f72
AH
31862020-10-05 Alan Hayward <alan.hayward@arm.com>
3187
3188 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3189 AArch64/ARM maintainers.
3190
8d378f27
SM
31912020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3192
3193 * NEWS: Mention set/show debug event-loop.
3194
d5519913
TT
31952020-10-02 Tom Tromey <tromey@adacore.com>
3196
3197 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3198 REG_EXTENDED.
3199
18b67edc
SM
32002020-10-02 Simon Marchi <simon.marchi@efficios.com>
3201
3202 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3203 * procfs.c (procfs_inferior_created): Remove.
3204 (_initialize_procfs): Don't register procfs_inferior_created.
3205
6b01403b
SM
32062020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3207
3208 * async-event.c (invoke_async_signal_handlers): Add debug
3209 print.
3210 (check_async_event_handlers): Likewise.
3211 * event-top.c (show_debug_event_loop): New function.
3212 (_initialize_event_top): Register "set debug event-loop"
3213 setting.
3214
ba988419
SM
32152020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3216
3217 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3218 * debug.h: Remove.
3219 * infrun.c: Include gdbsupport/common-debug.h.
3220 * linux-nat.c: Likewise.
3221
db20ebdf
SM
32222020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3223
3224 * async-event.h (create_async_signal_handler): Add name
3225 parameter.
3226 (create_async_event_handler): Likewise.
3227 * async-event.c (struct async_signal_handler) <name>: New field.
3228 (struct async_event_handler) <name>: New field.
3229 (create_async_signal_handler): Assign name.
3230 (create_async_event_handler): Assign name.
3231 * event-top.c (async_init_signals): Pass name when creating
3232 handler.
3233 * infrun.c (_initialize_infrun): Likewise.
3234 * record-btrace.c (record_btrace_push_target): Likewise.
3235 * record-full.c (record_full_open): Likewise.
3236 * remote-notif.c (remote_notif_state_allocate): Likewise.
3237 * remote.c (remote_target::open_1): Likewise.
3238 * tui/tui-win.c (tui_initialize_win): Likewise.
3239
2554f6f5
SM
32402020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3241
3242 * async-event.c (initialize_async_signal_handlers): Pass name to
3243 add_file_handler
3244 * event-top.c (ui_register_input_event_handler): Likewise.
3245 * linux-nat.c (linux_nat_target::async): Likewise.
3246 * run-on-main-thread.c (_initialize_run_on_main_thread):
3247 Likewise
3248 * ser-base.c (reschedule): Likewise.
3249 (ser_base_async): Likewise.
3250 * tui/tui-io.c: Likewise.
3251 * top.h (struct ui) <num>: New field.
3252 * top.c (highest_ui_num): New variable.
3253 (ui::ui): Initialize num.
3254
a7aba266
SM
32552020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3256
3257 * observable.h <inferior_created>: Remove parameters. Update all
3258 listeners.
3259 * inferior.h (post_create_inferior): Remove target parameter.
3260 Update all callers.
3261
048fde1e 32622020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3263
3264 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3265 and DW_MACRO_undef_strx.
3266 (dwarf_decode_macros): Likewise
3267 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3268 which is the value of DW_AT_str_offsets_base.
3269 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3270 str_offsets_base.
3271
064280be
KR
32722020-10-01 Kamil Rytarowski <n54@gmx.com>
3273
3274 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3275
6ff33035
KR
32762020-10-01 Kamil Rytarowski <n54@gmx.com>
3277
3278 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3279 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3280
1eb6eb79
KR
32812020-10-01 Kamil Rytarowski <n54@gmx.com>
3282
3283 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3284
95eb9e54
TV
32852020-09-30 Tom de Vries <tdevries@suse.de>
3286
3287 PR symtab/26683
3288 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3289
cae21f8e
TT
32902020-09-30 Tom Tromey <tromey@adacore.com>
3291
3292 * dwarf2/read.c (handle_variant): Use constant_value.
3293
529908cb
TT
32942020-09-29 Tom Tromey <tom@tromey.com>
3295
3296 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3297 (read_file_scope, dwarf2_get_pc_bounds)
3298 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3299 (read_structure_type, handle_struct_member_die)
3300 (read_enumeration_type, read_array_type, read_set_type)
3301 (read_tag_pointer_type, read_tag_reference_type)
3302 (read_subroutine_type, read_base_type, read_subrange_type)
3303 (read_full_die_1, partial_die_info::read)
3304 (partial_die_info::read, by, new_symbol)
3305 (dwarf2_const_value_data, dwarf2_const_value_attr)
3306 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3307 (prepare_one_comp_unit): Update.
3308 * dwarf2/attribute.h (DW_UNSND): Remove.
3309
c45bc3f8
TT
33102020-09-29 Tom Tromey <tom@tromey.com>
3311
3312 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3313 (read_subroutine_type, partial_die_info::read)
3314 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3315 (dwarf2_add_member_fn): Update.
3316 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3317 * dwarf2/attribute.c (attribute::as_boolean): New method.
3318
23dca5c3
TT
33192020-09-29 Tom Tromey <tom@tromey.com>
3320
3321 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3322 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3323 method.
3324 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3325
52c14d11
TT
33262020-09-29 Tom Tromey <tom@tromey.com>
3327
3328 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3329 the attribute's form.
3330
e8e5c158
TT
33312020-09-29 Tom Tromey <tom@tromey.com>
3332
3333 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3334 (dwarf2_add_member_fn): Update.
3335 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3336 * dwarf2/attribute.c (attribute::defaulted): New method, from
3337 is_valid_DW_AT_defaulted.
3338
d4df075e
TT
33392020-09-29 Tom Tromey <tom@tromey.com>
3340
3341 * dwarf2/read.c (dw2_get_file_names_reader)
3342 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3343 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3344 (dwarf2_symbol_mark_computed): Use as_unsigned.
3345 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3346 method.
3347 <form_is_section_offset>: Update comment.
3348
bf23a268
TT
33492020-09-29 Tom Tromey <tom@tromey.com>
3350
3351 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3352 dwarf2_default_access_attribute. Look up attribute.
3353 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3354 Update.
3355
7a5f294d
TT
33562020-09-29 Tom Tromey <tom@tromey.com>
3357
3358 * dwarf2/read.c (skip_one_die): Update.
3359 (read_full_die_1): Change how reprocessing is done.
3360 (partial_die_info::read): Update.
3361 (read_attribute_value): Remove need_reprocess parameter.
3362 (read_attribute): Likewise.
3363 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3364 New method.
3365
36d378cf
TT
33662020-09-29 Tom Tromey <tom@tromey.com>
3367
3368 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3369 (dwarf2_const_value_attr, dump_die_shallow)
3370 (dwarf2_fetch_constant_bytes): Update.
3371 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3372 comment.
3373 <set_address>: New method.
3374 (DW_ADDR): Remove.
3375 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3376 (attribute::as_string, attribute::as_address): Add assert.
3377
fe56917a
TT
33782020-09-29 Tom Tromey <tom@tromey.com>
3379
3380 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3381 (read_attribute_reprocess, read_attribute_value): Update.
3382 (read_attribute): Clear requires_reprocessing.
3383 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3384 form_requires_reprocessing>: New methods.
3385 <string_init>: Clear requires_reprocessing.
3386 <set_unsigned_reprocess>: New method.
3387 <name>: Shrink by one bit.
3388 <requires_reprocessing>: New member.
3389 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3390 method.
3391
414ad644
TT
33922020-09-29 Tom Tromey <tom@tromey.com>
3393
3394 * dwarf2/read.c (read_attribute_value): Update.
3395 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3396 set_unsigned>: New methods.
3397 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3398
1bc397c5
TT
33992020-09-29 Tom Tromey <tom@tromey.com>
3400
3401 * dwarf2/read.c (get_alignment, read_array_order)
3402 (read_attribute_value, dwarf2_const_value_attr)
3403 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3404 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3405 New methods.
3406 (DW_SND): Remove.
3407
630ed6b9
TT
34082020-09-29 Tom Tromey <tom@tromey.com>
3409
3410 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3411 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3412 Update.
3413 * dwarf2/attribute.h (struct attribute) <as_signature,
3414 set_signature>: New methods.
3415 (DW_SIGNATURE): Remove.
3416
9d2246fc
TT
34172020-09-29 Tom Tromey <tom@tromey.com>
3418
3419 * dwarf2/read.c (read_call_site_scope)
3420 (handle_data_member_location, dwarf2_add_member_fn)
3421 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3422 (partial_die_info::read, read_attribute_value)
3423 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3424 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3425 (dwarf2_symbol_mark_computed): Update.
3426 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3427 methods.
3428 (DW_BLOCK): Remove.
3429 * dwarf2/attribute.c (attribute::form_is_block): Add
3430 DW_FORM_data16.
3431
c6481205
TT
34322020-09-29 Tom Tromey <tom@tromey.com>
3433
3434 * dwarf2/read.c (read_cutu_die_from_dwo)
3435 (read_attribute_reprocess, read_attribute_value, read_attribute)
3436 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3437 (dwarf2_fetch_constant_bytes): Update.
3438 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3439 <set_string_noncanonical, set_string_canonical>: New methods.
3440 <string_is_canonical>: Update comment.
3441 <canonical_string_p>: Add assert.
3442 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3443 * dwarf2/attribute.c (attribute::form_is_string): New method.
3444 (attribute::string): Use it.
3445
3b64bf15
TT
34462020-09-29 Tom Tromey <tom@tromey.com>
3447
3448 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3449 (dump_die_shallow): Use canonical_string_p.
3450 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3451 method.
3452
2c830f54
TT
34532020-09-29 Tom Tromey <tom@tromey.com>
3454
3455 * dwarf2/read.c (partial_die_info::read)
3456 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3457 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3458 attribute::as_string.
3459
6c412691
TT
34602020-09-29 Tom Tromey <tom@tromey.com>
3461
3462 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3463 DW_ADDR.
3464 (attribute::string): Don't use DW_STRING.
3465 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3466 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3467
95f982e5
TT
34682020-09-29 Tom Tromey <tom@tromey.com>
3469
3470 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3471 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3472 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3473 * dwarf2/attribute.h (struct attribute): Rename methods.
3474 * dwarf2/attribute.c (attribute::as_address): Rename from
3475 value_as_address.
3476 (attribute::as_string): Rename from value_as_string.
3477
f800b00e
TT
34782020-09-29 Tom Tromey <tom@tromey.com>
3479
3480 * dwarf2/read.c (partial_die_info::read) <case
3481 DW_AT_linkage_name>: Use value_as_string.
3482 (dwarf2_string_attr): Use value_as_string.
3483 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3484 method.
3485 * dwarf2/attribute.c (attribute::value_as_string): New method.
3486
de38d64a
PA
34872020-09-29 Pedro Alves <pedro@palves.net>
3488
3489 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3490 defined before using '#pragma GCC diagnostic' instead of checking
3491 __clang__.
3492
9aed480c
TT
34932020-09-28 Tom Tromey <tom@tromey.com>
3494
3495 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3496 (handle_signal_stop): Update.
3497 * procfs.c (procfs_target::insert_watchpoint): Update.
3498 * target.h (target_have_steppable_watchpoint): Now a function.
3499
8a3ecb79
TT
35002020-09-28 Tom Tromey <tom@tromey.com>
3501
3502 * infrun.c (set_schedlock_func): Update.
3503 * target.h (target_can_lock_scheduler): Now a function.
3504
55f6301a
TT
35052020-09-28 Tom Tromey <tom@tromey.com>
3506
3507 * inferior.h (class inferior) <has_execution>: Update.
3508 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3509 * valops.c (find_function_in_inferior)
3510 (value_allocate_space_in_inferior): Update.
3511 * top.c (kill_or_detach): Update.
3512 * target.c (target_preopen, set_target_permissions): Update.
3513 (target_has_execution_current): Remove.
3514 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3515 Update.
3516 * solib.c (update_solib_list, reload_shared_libraries): Update.
3517 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3518 * solib-dsbt.c (enable_break): Update.
3519 * score-tdep.c (score7_fetch_inst): Update.
3520 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3521 Update.
3522 * remote.c (remote_target::start_remote)
3523 (remote_target::remote_check_symbols, remote_target::open_1)
3524 (remote_target::remote_detach_1, remote_target::verify_memory)
3525 (remote_target::xfer_partial, remote_target::read_description)
3526 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3527 * record-full.c (record_full_open_1): Update.
3528 * record-btrace.c (record_btrace_target_open): Update.
3529 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3530 (value_nsstring): Update.
3531 * linux-thread-db.c (add_thread_db_info)
3532 (thread_db_find_new_threads_silently, check_thread_db_callback)
3533 (try_thread_db_load_1, record_thread): Update.
3534 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3535 Update.
3536 * linux-fork.c (checkpoint_command): Update.
3537 * infrun.c (set_non_stop, set_observer_mode)
3538 (check_multi_target_resumption, for_each_just_stopped_thread)
3539 (maybe_remove_breakpoints, normal_stop)
3540 (class infcall_suspend_state): Update.
3541 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3542 (info_program_command, attach_command): Update.
3543 * infcall.c (call_function_by_hand_dummy): Update.
3544 * inf-loop.c (inferior_event_handler): Update.
3545 * gcore.c (gcore_command, derive_heap_segment): Update.
3546 * exec.c (exec_file_command): Update.
3547 * eval.c (evaluate_subexp): Update.
3548 * compile/compile.c (compile_to_object): Update.
3549 * cli/cli-dump.c (restore_command): Update.
3550 * breakpoint.c (update_watchpoint)
3551 (update_inserted_breakpoint_locations)
3552 (insert_breakpoint_locations, get_bpstat_thread): Update.
3553 * target.h (target_has_execution): Remove macro.
3554 (target_has_execution_current): Don't declare.
3555 (target_has_execution): Rename from target_has_execution_1. Add
3556 argument default.
3557
05374cfd
TT
35582020-09-28 Tom Tromey <tom@tromey.com>
3559
3560 * mi/mi-main.c (exec_reverse_continue)
3561 (mi_cmd_list_target_features): Update.
3562 * infrun.c (set_exec_direction_func): Update.
3563 * target.c (default_execution_direction): Update.
3564 * reverse.c (exec_reverse_once): Update.
3565 * target.h (target_can_execute_reverse): Now a function.
3566
9dccd06e
TT
35672020-09-28 Tom Tromey <tom@tromey.com>
3568
3569 * tui/tui-regs.c (tui_get_register)
3570 (tui_data_window::show_registers): Update.
3571 * thread.c (scoped_restore_current_thread::restore)
3572 (scoped_restore_current_thread::scoped_restore_current_thread):
3573 Update.
3574 * regcache-dump.c (regcache_print): Update.
3575 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3576 Update.
3577 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3578 * mep-tdep.c (current_me_module, current_options): Update.
3579 * linux-thread-db.c (thread_db_load): Update.
3580 * infcmd.c (registers_info, info_vector_command)
3581 (info_float_command): Update.
3582 * ia64-tdep.c (ia64_frame_prev_register)
3583 (ia64_sigtramp_frame_prev_register): Update.
3584 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3585 * gcore.c (derive_stack_segment): Update.
3586 * frame.c (get_current_frame, has_stack_frames): Update.
3587 * findvar.c (language_defn::read_var_value): Update.
3588 * arm-tdep.c (arm_pc_is_thumb): Update.
3589 * target.c (target_has_registers): Rename from
3590 target_has_registers_1.
3591 * target.h (target_has_registers): Remove macro.
3592 (target_has_registers): Rename from target_has_registers_1.
3593
841de120
TT
35942020-09-28 Tom Tromey <tom@tromey.com>
3595
3596 * windows-tdep.c (tlb_make_value): Update.
3597 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3598 * thread.c (scoped_restore_current_thread::restore)
3599 (scoped_restore_current_thread::scoped_restore_current_thread)
3600 (thread_command): Update.
3601 * stack.c (backtrace_command_1, frame_apply_level_command)
3602 (frame_apply_all_command, frame_apply_command): Update.
3603 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3604 Update.
3605 * gcore.c (derive_stack_segment): Update.
3606 * frame.c (get_current_frame, has_stack_frames): Update.
3607 * auxv.c (info_auxv_command): Update.
3608 * ada-tasks.c (ada_build_task_list): Update.
3609 * target.c (target_has_stack): Rename from target_has_stack_1.
3610 * target.h (target_has_stack): Remove macro.
3611 (target_has_stack): Rename from target_has_stack_1.
3612
a739972c
TT
36132020-09-28 Tom Tromey <tom@tromey.com>
3614
3615 * target.c (target_has_memory): Rename from target_has_memory_1.
3616 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3617 * thread.c (scoped_restore_current_thread::restore)
3618 (scoped_restore_current_thread::scoped_restore_current_thread):
3619 Update.
3620 * frame.c (get_current_frame, has_stack_frames): Update.
3621 * target.h (target_has_memory): Remove macro.
3622 (target_has_memory): Rename from target_has_memory_1.
3623
5b8a4776
TT
36242020-09-28 Tom Tromey <tom@tromey.com>
3625
3626 * target.c (target_has_all_memory_1): Remove.
3627 * target.h (target_has_all_memory): Remove define.
3628 (target_has_all_memory_1): Don't declare.
3629
bd356ec6
SM
36302020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3631
3632 * ser-base.c: Adjust comments formatting.
3633
2c72d5e5
TT
36342020-09-27 Tom Tromey <tom@tromey.com>
3635
3636 PR tui/25342:
3637 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3638
35a98237
TT
36392020-09-27 Tom Tromey <tom@tromey.com>
3640
3641 PR tui/25342:
3642 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3643
9e820dec
TT
36442020-09-27 Tom Tromey <tom@tromey.com>
3645
3646 * unittests/tui-selftests.c: Update.
3647 * tui/tui-winsource.h (struct tui_source_window_base)
3648 <extra_margin, show_line_number, refresh_pad>: New methods.
3649 <m_max_length, m_pad>: New members.
3650 (tui_copy_source_line): Update.
3651 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3652 first_col, line_width, ndigits parameters. Add length.
3653 (tui_source_window_base::show_source_line): Write to pad. Line
3654 number now 0-based.
3655 (tui_source_window_base::refresh_pad): New method.
3656 (tui_source_window_base::show_source_content): Write to pad. Call
3657 refresh_pad.
3658 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3659 not refill.
3660 (tui_source_window_base::update_exec_info): Call
3661 show_line_number.
3662 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3663 method.
3664 <m_digits>: New member.
3665 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3666 and m_max_length.
3667 (tui_source_window::show_line_number): New method.
3668 * tui/tui-io.h (tui_puts): Fix comment.
3669 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3670 m_max_length.
3671
c15c15c8
TT
36722020-09-27 Tom Tromey <tom@tromey.com>
3673
3674 * tui/tui-winsource.c
3675 (tui_source_window_base::set_is_exec_point_at): Don't call
3676 show_source_line.
3677
149830c1
TT
36782020-09-27 Tom Tromey <tom@tromey.com>
3679
3680 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3681 method.
3682 <erase>: Update.
3683 <cursor_x, cursor_y>: Remove.
3684 <m_inner_window>: New member.
3685 (tui_py_window::rerender): Create inner window.
3686 (tui_py_window::output): Write to inner window.
3687
8f9929bb
GR
36882020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3689
3690 PR python/26586
3691 * cli/cli-script.c (execute_control_commands): don't set
3692 instream to nullptr here as this breaks the from_tty argument
3693 to gdb.execute in Python.
3694 (execute_user_command): set instream to nullptr here instead.
3695
956bdb59
SM
36962020-09-25 Simon Marchi <simon.marchi@efficios.com>
3697
3698 * infrun.h (infrun_debug_printf): Fix formatting.
3699 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3700
3b93626b
SJ
37012020-09-25 Saagar Jha <saagar@saagarjha.com>
3702
3703 * compile/compile-object-load.h (struct munmap_list): Add
3704 explicitly-defined move constructor.
3705
b551a89f
TT
37062020-09-24 Tom Tromey <tromey@adacore.com>
3707
3708 PR tui/26638:
3709 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3710 method.
3711 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3712 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3713 (tui_prev_win): Rewrite.
3714
99bb393f
HD
37152020-09-23 Hannes Domani <ssbssa@yahoo.de>
3716
3717 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3718 in WOW64 processes as SIGINT.
3719 * nat/windows-nat.h: Make wow64_process a shared variable.
3720 * windows-nat.c: Remove static wow64_process variable.
3721
20a5fcbd
TT
37222020-09-23 Tom Tromey <tom@tromey.com>
3723
3724 PR symtab/25470:
3725 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3726 offset and bit size.
3727 * printcmd.c (print_scalar_formatted): Handle zero-length
3728 integer.
3729 (print_scalar_formatted): Use bit_size_differs_p.
3730 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3731 constant.
3732 (union type_specific): <int_stuff>: New member.
3733 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3734 methods.
3735 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3736 TYPE_SPECIFIC_FIELD.
3737 (recursive_dump_type, copy_type_recursive): Update.
3738 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3739 DW_AT_data_bit_offset.
3740
bac51ab7
TT
37412020-09-23 Tom Tromey <tom@tromey.com>
3742
3743 * utils.h (class gdb_argv): Add move operators.
3744 <append>: New methods.
3745 * compile/compile.c (build_argc_argv): Remove.
3746 (compile_args_argc): Remove.
3747 (compile_args_argv): Change type.
3748 (set_compile_args): Simplify.
3749 (append_args): Remove.
3750 (filter_args): Remove argcp parameter.
3751 (get_args): Return gdb_argv. Simplify.
3752 (compile_to_object): Update.
3753
92677124
TT
37542020-09-23 Tom Tromey <tom@tromey.com>
3755
3756 * compile/compile-object-run.c (do_module_cleanup)
3757 <~do_module_cleanup> :Remove.
3758 (do_module_cleanup): Update.
3759 * compile/compile-object-load.h (struct munmap_list): Add move
3760 assignment operator.
3761 <source_file>: Now a std::string.
3762 <munmap_list>: Rename. No longer a pointer.
3763 * compile/compile-object-load.c (struct setup_sections_data): Add
3764 constructor.
3765 <setup_one_section>: Declare.
3766 <munmap_list>: Move earlier.
3767 <m_bfd>: New member.
3768 <m_last_size, m_last_section_first, m_last_prot,
3769 m_last_max_alignment>: Rename, add initializers where needed.
3770 (setup_sections_data::setup_one_section): Rename from
3771 setup_sections. Update.
3772 (compile_object_load): Update. Don't use bfd_map_over_sections.
3773
e616f60a
TT
37742020-09-23 Tom Tromey <tom@tromey.com>
3775
3776 * compile/compile-object-run.c (struct do_module_cleanup): Add
3777 parameters to constructor. Update destructor.
3778 <source_file, scope, scope_data, out_value_type, out_value_addr,
3779 munmap_list_head, objfile_name_string>: Remove.
3780 <module>: New member.
3781 (do_module_cleanup): Update.
3782 (compile_object_run): Update.
3783
e947a848
TT
37842020-09-23 Tom Tromey <tom@tromey.com>
3785
3786 * compile/compile.c (eval_compile_command): Update.
3787 * compile/compile-object-run.h (compile_object_run): Take a
3788 compile_module_up.
3789 * compile/compile-object-run.c (compile_object_run): Take a
3790 compile_module_up.
3791 * compile/compile-object-load.h (struct compile_module): Add
3792 constructor, destructor.
3793 (compile_module_up): New typedef.
3794 (compile_object_load): Return compile_object_up.
3795 * compile/compile-object-load.c (compile_object_load): Return
3796 compile_module_up.
3797
0dbf6ee6
TT
37982020-09-23 Tom Tromey <tom@tromey.com>
3799
3800 * compile/compile-object-run.c (struct do_module_cleanup): Add
3801 constructor, destructor.
3802 <objfile_name_string>: Don't use struct hack.
3803 (do_module_cleanup): Use delete.
3804 (compile_object_run): Use new.
3805
ebe824f5
TT
38062020-09-23 Tom Tromey <tom@tromey.com>
3807
3808 * compile/compile-cplus-types.c
3809 (compile_cplus_convert_struct_or_union): Use std::vector.
3810 (compile_cplus_convert_func): Likewise.
3811 * compile/compile-c-types.c (convert_func): Use std::vector.
3812
5dd918d9
TT
38132020-09-21 Tom Tromey <tromey@adacore.com>
3814
3815 * sparc-tdep.c (sparc32_skip_prologue): Use
3816 skip_prologue_using_sal.
3817
5486c517
TT
38182020-09-19 Tom Tromey <tom@tromey.com>
3819
3820 * symfile.c (add_section_size_callback): Remove.
3821 (load_one_section): Rename from load_section_callback. Change
3822 parameters.
3823 (generic_load): Use foreach.
3824
8a6bb1d1
TT
38252020-09-19 Tom Tromey <tom@tromey.com>
3826
3827 * exec.c (add_to_section_table): Remove.
3828 (build_section_table): Use foreach.
3829
08f93a1a
TT
38302020-09-19 Tom Tromey <tom@tromey.com>
3831
3832 * elfread.c (elf_locate_sections): Change parameters.
3833 (elf_symfile_read): Use foreach.
3834
03cd72b8
TT
38352020-09-19 Tom Tromey <tom@tromey.com>
3836
3837 * cli/cli-dump.c (struct callback_data): Remove.
3838 (restore_one_section): Rename from restore_section_callback.
3839 Change parameters.
3840 (restore_binary_file): Change parameters.
3841 (restore_command): Use foreach.
3842
f4f2b85f
TT
38432020-09-19 Tom Tromey <tom@tromey.com>
3844
3845 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3846 (gcore_copy_callback): Likewise.
3847 (gcore_memory_sections): Use foreach.
3848
b35c1d1c
TT
38492020-09-19 Tom Tromey <tom@tromey.com>
3850
3851 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3852 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3853 parameters.
3854 (generic_elf_osabi_sniffer): Use foreach.
3855 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3856 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3857
5bb6e9dd
TT
38582020-09-19 Tom Tromey <tom@tromey.com>
3859
3860 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3861 (dwarf2_get_dwz_file): Use foreach.
3862 (dwarf2_locate_dwo_sections): Change parameters.
3863 (open_and_init_dwo_file): Use foreach.
3864 (dwarf2_locate_common_dwp_sections): Change parameters.
3865 (open_and_init_dwp_file): Use foreach.
3866
ad7277da
TT
38672020-09-19 Tom Tromey <tom@tromey.com>
3868
3869 * symfile.h: (find_lowest_section): Don't declare.
3870 * symfile.c (find_lowest_section): Now static. Change
3871 parameters.
3872 (struct place_section_arg): Remove.
3873 (place_section): Change parameters.
3874 (addr_info_make_relative): Use foreach.
3875 (symfile_dummy_outputs): Remove.
3876 (default_symfile_relocate): Use foreach.
3877
cb814f2e
TT
38782020-09-19 Tom Tromey <tom@tromey.com>
3879
3880 * objfiles.c (add_to_objfile_sections): Rename from
3881 add_to_objfile_sections_full.
3882 (add_to_objfile_sections): Remove.
3883 (build_objfile_section_table): Use foreach.
3884
3cabfd26
TT
38852020-09-19 Tom Tromey <tom@tromey.com>
3886
3887 * stap-probe.c (get_stap_base_address_1): Remove.
3888 (get_stap_base_address): Use foreach.
3889
1ce51eb5
TT
38902020-09-19 Tom Tromey <tom@tromey.com>
3891
3892 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3893 parameters.
3894 (gdb_bfd_close_or_warn): Use foreach.
3895
a190fabb
TT
38962020-09-19 Tom Tromey <tom@tromey.com>
3897
3898 * corelow.c (add_to_thread_list): Change parameters.
3899 (core_target_open): Use foreach.
3900
cafb0d81
TT
39012020-09-19 Tom Tromey <tom@tromey.com>
3902
3903 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3904 existing function.
3905
c8d5abea
AB
39062020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3907
3908 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3909 for arrays.
3910
6d816919
AB
39112020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3912
3913 * eval.c: Remove 'f-lang.h' include.
3914 (value_f90_subarray): Moved to f-lang.c.
3915 (eval_call): Renamed to...
3916 (evaluate_subexp_do_call): ...this, is no longer static, header
3917 comment moved into header file.
3918 (evaluate_funcall): Update call to eval_call.
3919 (skip_undetermined_arglist): Moved to f-lang.c.
3920 (fortran_value_subarray): Likewise.
3921 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3922 moved to evaluate_subexp_f.
3923 (calc_f77_array_dims): Moved to f-lang.c
3924 * expprint.c (print_subexp_funcall): New function.
3925 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3926 moved to print_subexp_f, OP_FUNCALL uses new function.
3927 (dump_subexp_body_funcall): New function.
3928 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3929 moved to dump_subexp_f, OP_FUNCALL uses new function.
3930 * expression.h (evaluate_subexp_do_call): Declare.
3931 * f-lang.c (value_f90_subarray): Moved from eval.c.
3932 (skip_undetermined_arglist): Likewise.
3933 (calc_f77_array_dims): Likewise.
3934 (fortran_value_subarray): Likewise.
3935 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3936 (operator_length_f): Likewise.
3937 (print_subexp_f): Likewise.
3938 (dump_subexp_body_f): Likewise.
3939 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3940 declaration of this operation to here.
3941 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3942 support moved to operator_length_f.
3943 * parser-defs.h (dump_subexp_body_funcall): Declare.
3944 (print_subexp_funcall): Declare.
3945 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3946 fortran-operator.def.
3947
8c37706a
AB
39482020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3949
3950 * eval.c (fortran_value_subarray): New function, content is taken
3951 from...
3952 (evaluate_subexp_standard): ...here, in two places. Now arrays
3953 and strings both call the new function.
3954 (calc_f77_array_dims): Add header comment, handle strings.
3955
14f9473c
VC
39562020-09-18 Victor Collod <vcollod@nvidia.com>
3957
3958 PR gdb/26635
3959 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3960 (i386_analyze_prologue): Call i386_skip_endbr.
3961
b60cea74
TT
39622020-09-18 Tom Tromey <tromey@adacore.com>
3963
3964 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3965 (windows_nat_target::wait): Update.
3966 * target/wait.h (enum target_wait_flag): New. Use
3967 DEF_ENUM_FLAGS_TYPE.
3968 * target/target.h (target_wait): Change type of options.
3969 * target.h (target_options_to_string, default_target_wait):
3970 Update.
3971 (struct target_ops) <wait>: Change type of options.
3972 * target.c (target_wait, default_target_wait, do_option): Change
3973 type of "options".
3974 (target_options_to_string): Likewise.
3975 * target-delegates.c: Rebuild.
3976 * target-debug.h (target_debug_print_target_wait_flags): Rename
3977 from target_debug_print_options.
3978 * sol-thread.c (class sol_thread_target) <wait>: Update.
3979 (sol_thread_target::wait): Update.
3980 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3981 (rs6000_nat_target::wait): Update.
3982 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3983 Update.
3984 (remote_target::wait_ns, remote_target::wait_as): Change type of
3985 "options".
3986 (remote_target::wait): Update.
3987 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3988 (gdbsim_target::wait): Update.
3989 * record-full.c (class record_full_base_target) <wait>: Update.
3990 (record_full_wait_1): Change type of "options".
3991 (record_full_base_target::wait): Update.
3992 * record-btrace.c (class record_btrace_target) <wait>: Update.
3993 (record_btrace_target::wait): Update.
3994 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3995 Update.
3996 (ravenscar_thread_target::wait): Update.
3997 * procfs.c (class procfs_target) <wait>: Update.
3998 (procfs_target::wait): Update.
3999 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4000 * obsd-nat.c (obsd_nat_target::wait): Update.
4001 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4002 (nto_procfs_target::wait): Update.
4003 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4004 * nbsd-nat.c (nbsd_wait): Change type of "options".
4005 (nbsd_nat_target::wait): Update.
4006 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4007 (thread_db_target::wait): Update.
4008 * linux-nat.h (class linux_nat_target) <wait>: Update.
4009 * linux-nat.c (linux_nat_target::wait): Update.
4010 (linux_nat_wait_1): Update.
4011 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4012 "options".
4013 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4014 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4015 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4016 (go32_nat_target::wait): Update.
4017 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4018 * gnu-nat.c (gnu_nat_target::wait): Update.
4019 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4020 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4021 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4022 * darwin-nat.c (darwin_nat_target::wait): Update.
4023 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4024 (bsd_uthread_target::wait): Update.
4025 * aix-thread.c (class aix_thread_target) <wait>: Update.
4026 (aix_thread_target::wait): Update.
4027
0295dde6
AB
40282020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4029
4030 * compile/compile-object-run.c (create_copied_type_recursive): New
4031 function.
4032 (compile_object_run): Use new function.
4033
d3483b43
JT
40342020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4035
4036 * NEWS: Mention x86_64 Cygwin core file support.
4037
e7d612ad
JT
40382020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4039
4040 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4041 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4042
aff9d387
JT
40432020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4044
62a5151b
JT
4045 * windows-tdep.h: Add prototypes.
4046 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4047 (i386_windows_core_pid_to_str): Move and rename ...
4048 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4049 (windows_core_pid_to_str): ... and here.
4050 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4051
40522020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4053 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4054 (amd64_windows_init_abi_common): ... and register.
4055
7d155da3
JT
40562020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4057
4058 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4059 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4060
e8ef12b9
PA
40612020-09-18 Pedro Alves <pedro@palves.net>
4062
4063 PR gdb/26631
4064 * thread.c (thread_find_command): Switch inferior before calling
4065 target methods.
4066
c1e1314d
TT
40672020-09-17 Tom Tromey <tromey@adacore.com>
4068
4069 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4070 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4071 (tdesc_arch_data_up): New typedef.
4072 (tdesc_use_registers, tdesc_data_alloc): Update.
4073 (tdesc_data_cleanup): Don't declare.
4074 * target-descriptions.c (tdesc_data_alloc): Return a
4075 tdesc_arch_data_up.
4076 (tdesc_arch_data_deleter::operator()): Rename from
4077 tdesc_data_cleanup. Change argument type.
4078 (tdesc_use_registers): Change early_data to an rvalue reference.
4079 (tdesc_use_registers): Don't use delete.
4080 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4081 * s390-tdep.c (s390_gdbarch_init): Update.
4082 * rx-tdep.c (rx_gdbarch_init): Update.
4083 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4084 * riscv-tdep.c (riscv_gdbarch_init): Update.
4085 * or1k-tdep.c (or1k_gdbarch_init): Update.
4086 * nios2-tdep.c (nios2_gdbarch_init): Update.
4087 * nds32-tdep.c (nds32_gdbarch_init): Update.
4088 * mips-tdep.c (mips_gdbarch_init): Update.
4089 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4090 * m68k-tdep.c (m68k_gdbarch_init): Update.
4091 * i386-tdep.c (i386_gdbarch_init): Update.
4092 * arm-tdep.c (arm_gdbarch_init): Update.
4093 * arc-tdep.c (arc_tdesc_init): Update.
4094 (arc_gdbarch_init): Update.
4095 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4096
0363df3d
HD
40972020-09-17 Hannes Domani <ssbssa@yahoo.de>
4098
4099 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4100 for WOW64 processes.
4101
280a9412
TT
41022020-09-17 Tom Tromey <tom@tromey.com>
4103
4104 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4105
6108fd18
TT
41062020-09-17 Tom Tromey <tom@tromey.com>
4107
4108 * value.c (preserve_values): Update.
4109 * python/py-type.c (save_objfile_types): Update.
4110 * guile/scm-type.c (save_objfile_types): Update.
4111 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4112 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4113 * compile/compile-object-run.c (compile_object_run): Update.
4114
fa9b1164
TT
41152020-09-17 Tom Tromey <tom@tromey.com>
4116
4117 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4118 Remove.
4119 <m_table>: Now htab_up.
4120 * typeprint.c (typedef_hash_table::recursively_update)
4121 (typedef_hash_table::add_template_parameters)
4122 (typedef_hash_table::typedef_hash_table): Update.
4123 (typedef_hash_table::~typedef_hash_table): Remove.
4124 (typedef_hash_table::typedef_hash_table)
4125 (typedef_hash_table::find_global_typedef)
4126 (typedef_hash_table::find_typedef): Update.
4127
eb53f105
TT
41282020-09-17 Tom Tromey <tom@tromey.com>
4129
4130 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4131
7a8a5d47
TT
41322020-09-17 Tom Tromey <tom@tromey.com>
4133
4134 * linespec.c (class decode_compound_collector)
4135 <~decode_compound_collector>: Remove.
4136 <m_unique_syms>: Now htab_up.
4137 (decode_compound_collector::operator ()): Update.
4138 (class symtab_collector) <~symtab_collector>: Remove.
4139 <m_symtab_table>: Now htab_up.
4140 (symtab_collector::operator ()): Update.
4141
99032cfc
TT
41422020-09-17 Tom Tromey <tom@tromey.com>
4143
4144 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4145 (filename_seen_cache::clear): Update.
4146 (~filename_seen_cache): Remove.
4147 (filename_seen_cache::seen): Update.
4148 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4149 htab_up.
4150 <~filename_seen_cache>: Remove.
4151 <traverse>: Update.
4152
32580f6d
TT
41532020-09-17 Tom Tromey <tom@tromey.com>
4154
4155 * completer.c (completion_tracker::discard_completions)
4156 (completion_tracker::~completion_tracker)
4157 (completion_tracker::maybe_add_completion)
4158 (completion_tracker::remove_completion)
4159 (completion_tracker::recompute_lowest_common_denominator)
4160 (completion_tracker::build_completion_result): Update.
4161 * completer.h (class completion_tracker) <have_completions>:
4162 Update.
4163 <m_entries_hash>: Now htab_up.
4164
c1fb9836
TT
41652020-09-17 Tom Tromey <tom@tromey.com>
4166
4167 * breakpoint.c (ambiguous_names_p): Use htab_up.
4168
88f07206
TT
41692020-09-17 Tom Tromey <tom@tromey.com>
4170
4171 * auto-load.c (struct auto_load_pspace_info)
4172 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4173 <loaded_script_files, loaded_script_texts>: Change type to
4174 htab_up.
4175 (~auto_load_pspace_info) Remove.
4176 (init_loaded_scripts_info, maybe_add_script_file)
4177 (maybe_add_script_text, auto_load_info_scripts): Update.
4178
9519b2ee
TT
41792020-09-17 Tom Tromey <tromey@adacore.com>
4180
4181 * c-exp.y (name_obstack): Now static.
4182
d2cd4113
CC
41832020-09-17 Chungyi Chi <demonic@csie.io>
4184
4185 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4186
b650a282
SM
41872020-09-16 Simon Marchi <simon.marchi@efficios.com>
4188
4189 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4190 (add_solib_catchpoint): Likewise.
4191 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4192 to bool.
4193 (add_solib_catchpoint): Change int parameter/variable to bool.
4194 (catch_load_or_unload): Likewise.
4195 (init_catchpoint): Likewise.
4196 (create_fork_vfork_event_catchpoint): Likewise.
4197 (catch_fork_command_1): Likewise.
4198 (catch_exec_command_1): Likewise.
4199
4d0bcfcf
SM
42002020-09-16 Simon Marchi <simon.marchi@efficios.com>
4201
4202 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4203 Change instance_flags to m_instance_flags.
4204
fe830662
TT
42052020-09-16 Tom Tromey <tromey@adacore.com>
4206
4207 PR gdb/26598:
4208 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4209
fe5ddfc3
JB
42102020-09-16 John Baldwin <jhb@FreeBSD.org>
4211
4212 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4213 PL_FLAG_EXEC.
4214 (fbsd_nat_target::insert_exec_catchpoint)
4215 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4216 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4217 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4218
e911c666
JB
42192020-09-16 John Baldwin <jhb@FreeBSD.org>
4220
4221 * configure.ac: Remove check for kinfo_getvmmap().
4222 * configure, config.in: Regenerate.
4223 * fbsd-nat.c (fbsd_read_mapping): Remove
4224 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4225 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4226 kinfo_get_vmmap() are always present.
4227
1f17d372
JB
42282020-09-16 John Baldwin <jhb@FreeBSD.org>
4229
4230 * fbsd-nat.c: Always include support for
4231 TARGET_OBJECT_SIGNAL_INFO.
4232
bcb1da7f
JB
42332020-09-16 John Baldwin <jhb@FreeBSD.org>
4234
4235 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4236 sysctl and remove procfs fallback.
4237
5515f729
JB
42382020-09-16 John Baldwin <jhb@FreeBSD.org>
4239
4240 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4241 * fbsd-nat.h: Likewise.
4242
da1df1db
TBA
42432020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4244
4245 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4246 argument.
4247
0e25e767
AB
42482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4249
4250 * ada-lang.c (ada_language_data): Delete.
4251 (ada_language): Remove references to ada_language_data.
4252 * c-lang.c (c_language_data): Delete.
4253 (c_language): Remove references to c_language_data.
4254 (cplus_language_data): Delete.
4255 (cplus_language): Remove references to cplus_language_data.
4256 (asm_language_data): Delete.
4257 (asm_language): Remove references to asm_language_data.
4258 (minimal_language_data): Delete.
4259 (minimal_language): Remove references to minimal_language_data.
4260 * d-lang.c (d_language_data): Delete.
4261 (d_language): Remove references to d_language_data.
4262 * f-lang.c (f_language_data): Delete.
4263 (f_language): Remove references to f_language_data.
4264 * go-lang.c (go_language_data): Delete.
4265 (go_language): Remove references to go_language_data.
4266 * language.c (unknown_language_data): Delete.
4267 (unknown_language): Remove references to unknown_language_data.
4268 (auto_language_data): Delete.
4269 (auto_language): Remove references to auto_language_data.
4270 * language.h (language_data): Delete struct.
4271 (language_defn): No longer inherit from language_data.
4272 * m2-lang.c (m2_language_data): Delete.
4273 (m2_language): Remove references to m2_language_data.
4274 * objc-lang.c (objc_language_data): Delete.
4275 (objc_language): Remove references to objc_language_data.
4276 * opencl-lang.c (opencl_language_data): Delete.
4277 (opencl_language): Remove references to opencl_language_data.
4278 * p-lang.c (pascal_language_data): Delete.
4279 (pascal_language): Remove references to pascal_language_data.
4280 * rust-lang.c (rust_language_data): Delete.
4281 (rust_language): Remove references to rust_language_data.
4282
b7c6e27d
AB
42832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4284
4285 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4286 initializer.
4287 (ada_language::opcode_print_table): New member function.
4288 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4289 (c_language::opcode_print_table): New member function.
4290 (cplus_language_data): Remove la_op_print_tab initializer.
4291 (cplus_language::opcode_print_table): New member function.
4292 (asm_language_data): Remove la_op_print_tab initializer.
4293 (asm_language::opcode_print_table): New member function.
4294 (minimal_language_data): Remove la_op_print_tab initializer.
4295 (minimal_language::opcode_print_table): New member function.
4296 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4297 (d_language::opcode_print_table): New member function.
4298 * expprint.c (print_subexp_standard): Update call to
4299 opcode_print_table.
4300 (op_string): Likewise.
4301 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4302 (f_language::opcode_print_table): New member function.
4303 * go-lang.c (go_language_data): Remove la_op_print_tab
4304 initializer.
4305 (go_language::opcode_print_table): New member function.
4306 * language.c (unknown_language_data): Remove la_op_print_tab
4307 initializer.
4308 (unknown_language::opcode_print_table): New member function.
4309 (auto_language_data): Remove la_op_print_tab initializer.
4310 (auto_language::opcode_print_table): New member function.
4311 * language.h (language_data): Remove la_op_print_tab field.
4312 (language_defn::opcode_print_table): Declare new member function.
4313 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4314 initializer.
4315 (m2_language::opcode_print_table): New member function.
4316 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4317 initializer.
4318 (objc_language::opcode_print_table): New member function.
4319 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4320 initializer.
4321 (opencl_language::opcode_print_table): New member function.
4322 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4323 initializer.
4324 (pascal_language::opcode_print_table): New member function.
4325 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4326 initializer.
4327 (rust_language::opcode_print_table): New member function.
4328
5aba6ebe
AB
43292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4330
4331 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4332 (ada_language::expression_ops): New member function.
4333 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4334 (c_language::expression_ops): New member function.
4335 (cplus_language_data): Remove la_exp_desc initializer.
4336 (cplus_language::expression_ops): New member function.
4337 (asm_language_data): Remove la_exp_desc initializer.
4338 (asm_language::expression_ops): New member function.
4339 (minimal_language_data): Remove la_exp_desc initializer.
4340 (minimal_language::expression_ops): New member function.
4341 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4342 (d_language::expression_ops): New member function.
4343 * eval.c (evaluate_subexp): Update call to expression_ops.
4344 * expprint.c (print_subexp): Likewise.
4345 (op_name): Likewise.
4346 (dump_subexp_body): Likewise.
4347 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4348 (f_language::expression_ops): New member function.
4349 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4350 (go_language::expression_ops): New member function.
4351 * language.c (language_defn::expression_ops): New function.
4352 (unknown_language_data): Remove la_exp_desc initializer.
4353 (auto_language_data): Likewise.
4354 * language.h (language_data): Remove la_exp_desc field.
4355 (language_defn::expression_ops): Declare new member function.
4356 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4357 (m2_language::expression_ops): New member function.
4358 * objc-lang.c (objc_language_data): Remove la_exp_desc
4359 initializer.
4360 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4361 initializer.
4362 (opencl_language::expression_ops): New member function.
4363 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4364 * parse.c (operator_length): Update call to expression_ops.
4365 (exp_iterate): Likewise.
4366 * rust-lang.c (rust_language_data): Remove la_exp_desc
4367 initializer.
4368 (ruse_language::expression_ops): New member function.
4369
b63a3f3f
AB
43702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4371
4372 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4373 initializer.
4374 (ada_language::varobj_ops): New member function.
4375 * c-lang.c (c_language_data): Remove la_varobj_ops
4376 initializer.
4377 (cplus_language_data): Likewise.
4378 (cplus_language::varobj_ops): New member function.
4379 (asm_language_data): Remove la_varobj_ops initializer.
4380 (minimal_language_data): Likewise.
4381 * d-lang.c (d_language_data): Likewise.
4382 * f-lang.c (f_language_data): Likewise.
4383 * go-lang.c (go_language_data): Likewise.
4384 * language.c (language_defn::varobj_ops): New function.
4385 (unknown_language_data): Remove la_varobj_ops
4386 initializer.
4387 (auto_language_data): Likewise.
4388 * language.h (language_data): Remove la_varobj_ops field.
4389 (language_defn::varobj_ops): Declare new member function.
4390 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4391 * objc-lang.c (objc_language_data): Likewise.
4392 * opencl-lang.c (opencl_language_data): Likewise.
4393 * p-lang.c (pascal_language_data): Likewise.
4394 * rust-lang.c (rust_language_data): Likewise.
4395 * varobj.c (varobj_create): Update call to varobj_ops.
4396 * varobj.h (default_varobj_ops): Delete define.
4397
1ac14a04
AB
43982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4399
4400 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4401 initializer.
4402 * c-lang.c (c_language_data): Likewise.
4403 (c_language::macro_expansion): New member function.
4404 (cplus_language_data): Likewise.
4405 (cplus_language::macro_expansion): New member function.
4406 (asm_language_data): Likewise.
4407 (asm_language::macro_expansion): New member function.
4408 (minimal_language_data): Likewise.
4409 (minimal_language::macro_expansion): New member function.
4410 * d-lang.c (d_language_data): Remove la_macro_expansion
4411 initializer.
4412 * f-lang.c (f_language_data): Likewise.
4413 * go-lang.c (go_language_data): Likewise.
4414 * language.c (unknown_language_data): Likewise.
4415 (auto_language_data): Likewise.
4416 * language.h (language_data): Remove la_macro_expansion field.
4417 (language_defn::macro_expansion): New member function.
4418 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4419 initializer.
4420 * objc-lang.c (objc_language_data): Likewise.
4421 (objc_language::macro_expansion): New member function.
4422 * opencl-lang.c (opencl_language_data): Likewise.
4423 (opencl_language::macro_expansion): New member function.
4424 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4425 initializer.
4426 * rust-lang.c (rust_language_data): Likewise.
4427 * symtab.c (default_collect_symbol_completion_matches_break_on):
4428 Update call to macro_expansion.
4429
3a3440fb
AB
44302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4431
4432 * ada-lang.c (ada_language_data): Remove la_array_ordering
4433 initializer.
4434 * c-lang.c (c_language_data): Likewise.
4435 (cplus_language_data): Likewise.
4436 (asm_language_data): Likewise.
4437 (minimal_language_data): Likewise.
4438 * d-lang.c (d_language_data): Likewise.
4439 * dwarf2/read.c (read_array_order): Update for call to
4440 array_ordering.
4441 * f-lang.c (f_language_data): Remove la_array_ordering
4442 initializer.
4443 (f_language::array_ordering): New member function.
4444 * go-lang.c (go_language_data): Remove la_array_ordering
4445 initializer.
4446 * language.c (unknown_language_data): Likewise.
4447 (auto_language_data): Likewise.
4448 * language.h (language_data): Delete la_array_ordering field.
4449 (language_defn::array_ordering): New member function.
4450 * m2-lang.c (m2_language_data): Remove la_array_ordering
4451 initializer.
4452 * objc-lang.c (objc_language_data): Likewise.
4453 * opencl-lang.c (opencl_language_data): Likewise.
4454 * p-lang.c (pascal_language_data): Likewise.
4455 * rust-lang.c (rust_language_data): Likewise.
4456
0d201fa4
AB
44572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4458
4459 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4460 initializer.
4461 * c-lang.c (c_language_data): Likewise.
4462 (cplus_language_data): Likewise.
4463 (asm_language_data): Likewise.
4464 (minimal_language_data): Likewise.
4465 * d-lang.c (d_language_data): Likewise.
4466 * f-lang.c (f_language_data): Likewise.
4467 (f_language::case_sensitivity): New member function.
4468 * go-lang.c (go_language_data): Remove la_case_sensitivity
4469 initializer.
4470 * language.c (enum case_mode): Moved here from language.h.
4471 (case_mode): Make static.
4472 (show_case_command): Update for case_sensitivity being a method.
4473 (set_case_command): Likewise.
4474 (set_range_case): Likewise.
4475 (unknown_language_data): Remove la_case_sensitivity initializer.
4476 (auto_language_data): Likewise.
4477 * language.h (case_mode): Delete, move enum declaration to
4478 language.c.
4479 (language_data): Delete la_case_sensitivity field.
4480 (language_defn::case_sensitivity): New member function.
4481 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4482 initializer.
4483 * objc-lang.c (objc_language_data): Likewise.
4484 * opencl-lang.c (opencl_language_data): Likewise.
4485 * p-lang.c (pascal_language_data): Likewise.
4486 * rust-lang.c (rust_language_data): Likewise.
4487
efdf6a73
AB
44882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4489
4490 * ada-lang.c (ada_language_data): Remove la_range_check
4491 initializer.
4492 * c-lang.c (c_language_data): Likewise.
4493 (cplus_language_data): Likewise.
4494 (asm_language_data): Likewise.
4495 (minimal_language_data): Likewise.
4496 * d-lang.c (d_language_data): Likewise.
4497 * f-lang.c (f_language_data): Likewise.
4498 (f_language::range_checking_on_by_default): New member function.
4499 * go-lang.c (go_language_data): Remove la_range_check initializer.
4500 * language.c (enum range_mode): Moved here from language.h.
4501 (range_mode): Made static.
4502 (show_range_command): Update to use
4503 range_checking_on_by_default.
4504 (set_range_command): Likewise.
4505 (set_range_case): Likewise.
4506 (unknown_language_data): Remove la_range_check initializer.
4507 (auto_language_data): Likewise.
4508 * language.h (range_mode): Delete. Enum definition moved to
4509 language.c.
4510 (language_data): Remove la_range_check field.
4511 (language_defn::range_checking_on_by_default): New member
4512 function.
4513 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4514 (m2_language::range_checking_on_by_default): New member function.
4515 * objc-lang.c (objc_language_data): Remove la_range_check
4516 initializer.
4517 * opencl-lang.c (opencl_language_data): Likewise.
4518 * p-lang.c (pascal_language_data): Likewise.
4519 (pascal_language::range_checking_on_by_default): New member
4520 function.
4521 * rust-lang.c (rust_language_data): Remove la_range_check
4522 initializer.
4523 (rust_language::range_checking_on_by_default): New member
4524 function.
4525
bf92aec5
AB
45262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4527
4528 * dwarf2/read.c (dwarf2_physname): Remove special case for
4529 language_go.
4530 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4531 member function.
4532
d3355e4d
AB
45332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4534
4535 * ada-lang.c (ada_language_data): Remove
4536 la_store_sym_names_in_linkage_form_p initializer.
4537 (ada_language::store_sym_names_in_linkage_form_p): New member
4538 function.
4539 * c-lang.c (c_language_data): Remove
4540 la_store_sym_names_in_linkage_form_p initializer.
4541 (c_language::store_sym_names_in_linkage_form_p): New member
4542 function.
4543 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4544 initializer.
4545 (asm_language_data): Likewise.
4546 (asm_language::store_sym_names_in_linkage_form_p): New member
4547 function.
4548 (minimal_language_data): Remove
4549 la_store_sym_names_in_linkage_form_p initializer.
4550 (minimal_language::store_sym_names_in_linkage_form_p): New member
4551 function.
4552 * d-lang.c (d_language_data): Remove
4553 la_store_sym_names_in_linkage_form_p initializer.
4554 * dwarf2/read.c (dwarf2_physname): Update call to
4555 store_sym_names_in_linkage_form_p.
4556 * f-lang.c (f_language_data): Remove
4557 la_store_sym_names_in_linkage_form_p initializer.
4558 * go-lang.c (go_language_data): Remove
4559 la_store_sym_names_in_linkage_form_p initializer.
4560 * language.c (unknown_language_data): Remove
4561 la_store_sym_names_in_linkage_form_p initializer.
4562 (unknown_language::store_sym_names_in_linkage_form_p): New member
4563 function.
4564 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4565 initializer.
4566 (auto_language::store_sym_names_in_linkage_form_p): New member
4567 function.
4568 * language.h (language_data): Remove
4569 la_store_sym_names_in_linkage_form_p member variable.
4570 (language_defn::store_sym_names_in_linkage_form_p): New member
4571 function.
4572 * m2-lang.c (m2_language_data): Remove
4573 la_store_sym_names_in_linkage_form_p initializer.
4574 * objc-lang.c (objc_language_data): Likewise.
4575 * opencl-lang.c (opencl_language_data): Likewise.
4576 * p-lang.c (pascal_language_data): Likewise.
4577 * rust-lang.c (rust_language_data): Likewise.
4578
22c12a6c
AB
45792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4580
4581 * ada-lang.c (ada_language_data): Remove string_lower_bound
4582 initializer.
4583 * c-lang.c (c_language_data): Likewise.
4584 (cplus_language_data): Likewise.
4585 (asm_language_data): Likewise.
4586 (minimal_language_data): Likewise.
4587 * d-lang.c (d_language_data): Likewise.
4588 * f-lang.c (f_language_data): Likewise.
4589 * go-lang.c (go_language_data): Likewise.
4590 * language.c (unknown_language_data): Likewise.
4591 (auto_language_data): Likewise.
4592 * language.h (language_data): Remove string_lower_bound field.
4593 (language_defn::string_lower_bound): New member function.
4594 * m2-lang.c (m2_language_data): Remove string_lower_bound
4595 initializer.
4596 (m2_language::string_lower_bound): New member function.
4597 * objc-lang.c (objc_language_data): Remove string_lower_bound
4598 initializer.
4599 * opencl-lang.c (opencl_language_data): Likewise.
4600 * p-lang.c (pascal_language_data): Likewise.
4601 * rust-lang.c (rust_language_data): Likewise.
4602 * valops.c (value_cstring): Update call to string_lower_bound.
4603 (value_string): Likewise.
4604 * value.c (allocate_repeated_value): Likewise.
4605
1c236ddd
AB
46062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4607
4608 * valops.c (value_repeat): Fix incorrect argument name in comment.
4609
67bd3fd5
AB
46102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4611
4612 * ada-lang.c (ada_language_data): Remove c_style_arrays
4613 initializer.
4614 (ada_language::c_style_arrays_p): New member fuction.
4615 * c-lang.c (c_language_data): Remove c_style_arrays
4616 initializer.
4617 (cplus_language_data): Likewise.
4618 (asm_language_data): Likewise.
4619 (minimal_language_data): Likewise.
4620 * d-lang.c (d_language_data): Likewise.
4621 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4622 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4623 (f_language::c_style_arrays_p): New member function.
4624 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4625 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4626 * language.c (unknown_language_data): Remove c_style_arrays
4627 initializer.
4628 (auto_language_data): Likewise.
4629 * language.h (language_data): Remove c_style_arrays field.
4630 (language_defn::c_style_arrays_p): New member function.
4631 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4632 (m2_language::c_style_arrays_p): New member function.
4633 * objc-lang.c (objc_language_data): Remove c_style_arrays
4634 initializer.
4635 * opencl-lang.c (opencl_language_data): Likewise.
4636 * p-lang.c (pascal_language_data): Likewise.
4637 * rust-lang.c (rust_language_data): Likewise.
4638 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4639 and update local variable to a bool.
4640 * valops.c (value_cast): Update call to c_style_arrays_p.
4641 (value_array): Likewise.
4642 * value.c (coerce_array): Likewise.
4643
85967615
AB
46442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4645
4646 * ada-lang.c (ada_language_data): Remove la_language initializer.
4647 * c-lang.c (c_language_data): Likewise.
4648 (cplus_language_data): Likewise.
4649 (asm_language_data): Likewise.
4650 (minimal_language_data): Likewise.
4651 * d-lang.c (d_language_data): Likewise.
4652 * f-lang.c (f_language_data): Likewise.
4653 * go-lang.c (go_language_data): Likewise.
4654 * language.c (unknown_language_data): Likewise.
4655 (auto_language_data): Likewise.
4656 * language.h (language_data): Remove la_language field.
4657 (language_defn::language_defn): Initialise la_language field.
4658 (language_defn::la_language): New member variable.
4659 * m2-lang.c (m2_language_data): Remove la_language field.
4660 * objc-lang.c (objc_language_data): Likewise.
4661 * opencl-lang.c (opencl_language_data): Likewise.
4662 * p-lang.c (pascal_language_data): Likewise.
4663 * rust-lang.c (rust_language_data): Likewise.
4664
e171d6f1
AB
46652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4666
4667 * ada-lang.c (ada_extensions): Delete, moved into
4668 ada_language::filename_extensions.
4669 (ada_language_data): Remove la_filename_extensions initializer.
4670 (ada_language::filename_extensions): New member function.
4671 * c-lang.c (c_extensions): Delete, moved into
4672 c_language::filename_extensions.
4673 (c_language_data): Remove la_filename_extensions initializer.
4674 (c_language::filename_extensions): New member function.
4675 (cplus_extensions): Delete, moved into
4676 cplus_language::filename_extensions.
4677 (cplus_language_data): Remove la_filename_extensions initializer.
4678 (cplus_language::filename_extensions): New member function.
4679 (asm_extensions): Delete, moved into
4680 asm_language::filename_extensions.
4681 (asm_language_data): Remove la_filename_extensions initializer.
4682 (asm_language::filename_extensions): New member function.
4683 (minimal_language_data): Remove la_filename_extensions
4684 initializer.
4685 * d-lang.c (d_extensions): Delete, moved into
4686 d_language::filename_extensions.
4687 (d_language_data): Remove la_filename_extensions initializer.
4688 (d_language::filename_extensions): New member function.
4689 * f-lang.c (f_extensions): Delete, moved into
4690 f_language::filename_extensions.
4691 (f_language_data): Remove la_filename_extensions initializer.
4692 (f_language::filename_extensions): New member function.
4693 * go-lang.c (go_language_data): Remove la_filename_extensions
4694 initializer.
4695 * language.c (add_set_language_command): Update now that
4696 filename_extensions returns a vector.
4697 (unknown_language_data): Remove la_filename_extensions
4698 initializer.
4699 (auto_language_data): Likewise.
4700 * language.h (language_data): Remove la_filename_extensions field.
4701 (language_defn::filename_extensions): New member function.
4702 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4703 initializer.
4704 * objc-lang.c (objc_extensions): Delete, moved into
4705 objc_language::filename_extensions.
4706 (objc_language_data): Remove la_filename_extensions initializer.
4707 (objc_language::filename_extensions): New member function.
4708 * opencl-lang.c (opencl_language_data): Remove
4709 la_filename_extensions initializer.
4710 * p-lang.c (pascal_extensions): Delete, moved into
4711 pascal_language::filename_extensions.
4712 (pascal_language_data): Remove la_filename_extensions initializer.
4713 (pascal_language::filename_extensions): New member function.
4714 * rust-lang.c (rust_extensions): Delete, moved into
4715 rust_language::filename_extensions.
4716 (rust_language_data): Remove la_filename_extensions initializer.
4717 (rust_language::filename_extensions): New member function.
4718 * symfile.c (add_filename_language): Add new assert.
4719
6f7664a9
AB
47202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4721
4722 * ada-lang.c (ada_language_data): Remove la_name and
4723 la_natural_name initializers.
4724 (ada_language::name): New member function.
4725 (ada_language::natural_name): New member function.
4726 * c-lang.c (c_language_data): Remove la_name and
4727 la_natural_name initializers.
4728 (c_language::name): New member function.
4729 (c_language::natural_name): New member function.
4730 (cplus_language_data): Remove la_name and
4731 la_natural_name initializers.
4732 (cplus_language::name): New member function.
4733 (cplus_language::natural_name): New member function.
4734 (asm_language_data): Remove la_name and
4735 la_natural_name initializers.
4736 (asm_language::name): New member function.
4737 (asm_language::natural_name): New member function.
4738 (minimal_language_data): Remove la_name and
4739 la_natural_name initializers.
4740 (minimal_language::name): New member function.
4741 (minimal_language::natural_name): New member function.
4742 * compile/compile.c (compile_to_object): Update call to
4743 lanugage_defn::name.
4744 * d-lang.c (d_language_data): Remove la_name and
4745 la_natural_name initializers.
4746 (d_language::name): New member function.
4747 (d_language::natural_name): New member function.
4748 * expprint.c (print_subexp_standard): Update call to
4749 language_defn::name.
4750 (dump_raw_expression): Likewise
4751 (dump_prefix_expression): Likewise.
4752 * f-lang.c (f_language_data): Remove la_name and
4753 la_natural_name initializers.
4754 (f_language::name): New member function.
4755 (f_language::natural_name): New member function.
4756 * go-lang.c (go_language_data): Remove la_name and
4757 la_natural_name initializers.
4758 (go_language::name): New member function.
4759 (go_language::natural_name): New member function.
4760 * language.c (show_language_command): Update call to
4761 language_defn::name.
4762 (set_language_command): Likewise.
4763 (language_enum): Likewise.
4764 (language_str): Likewise.
4765 (add_set_language_command): Likewise, use
4766 language_defn::natural_name in the doc string.
4767 (unknown_language_data): Remove la_name and
4768 la_natural_name initializers.
4769 (unknown_language::name): New member function.
4770 (unknown_language::natural_name): New member function.
4771 (auto_language_data): Remove la_name and
4772 la_natural_name initializers.
4773 (auto_language::name): New member function.
4774 (auto_language::natural_name): New member function.
4775 (language_lookup_primitive_type_as_symbol): Update call to
4776 language_defn::name.
4777 * language.h (language_data): Remove la_name and la_natural_name
4778 member variables.
4779 (language_defn::name): New member function.
4780 (language_defn::natural_name): New member function.
4781 * m2-lang.c (m2_language_data): Remove la_name and
4782 la_natural_name initializers.
4783 (m2_language::name): New member function.
4784 (m2_language::natural_name): New member function.
4785 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4786 language_defn::natural_name.
4787 * objc-lang.c (objc_language_data): Remove la_name and
4788 la_natural_name initializers.
4789 (objc_language::name): New member function.
4790 (objc_language::natural_name): New member function.
4791 * opencl-lang.c (opencl_language_data): Remove la_name and
4792 la_natural_name initializers.
4793 (opencl_language::name): New member function.
4794 (opencl_language::natural_name): New member function.
4795 * p-lang.c (pascal_language_data): Remove la_name and
4796 la_natural_name initializers.
4797 (pascal_language::name): New member function.
4798 (pascal_language::natural_name): New member function.
4799 * rust-lang.c (rust_language_data): Remove la_name and
4800 la_natural_name initializers.
4801 (rust_language::name): New member function.
4802 (rust_language::natural_name): New member function.
4803 * symtab.c (lookup_language_this): Update call to
4804 language_defn::name.
4805
5bae7c4e
AB
48062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4807
4808 * ada-lang.c (ada_language_data): Remove la_name_of_this
4809 initializer.
4810 * ax-gdb.c (gen_expr): Update call to name_of_this.
4811 * c-exp.y (classify_name): Likewise.
4812 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4813 (cplus_language_data): Likewise.
4814 (cplus_language::name_of_this): New member function.
4815 (asm_language_data): Remove la_name_of_this initializer.
4816 (minimal_language_data): Likewise.
4817 * d-lang.c (d_language_data): Likewise.
4818 (d_language::name_of_this): New member function.
4819 * expprint.c (print_subexp_standard): Update call to name_of_this.
4820 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4821 * go-lang.c (go_language_data): Likewise.
4822 * language.c (unknown_language_data): Likewise.
4823 (unknown_language::name_of_this): New member function.
4824 (auto_language_data): Remove la_name_of_this initializer.
4825 (auto_language::name_of_this): New member function.
4826 * language.h (language_data): Delete la_name_of_this member
4827 variable.
4828 (language_defn::name_of_this): New member function.
4829 * m2-lang.c (m2_language_data): Remove la_name_of_this
4830 initializer.
4831 * objc-lang.c (objc_language_data): Likewise.
4832 (objc_language::name_of_this): New member function.
4833 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4834 initializer.
4835 * p-lang.c (pascal_language_data): Likewise.
4836 (pascal_language::name_of_this): New member function.
4837 * rust-lang.c (rust_language_data): Remove la_name_of_this
4838 initializer.
4839 * symtab.c (lookup_language_this): Update call to name_of_this.
4840 (lookup_symbol_aux): Likewise.
4841 * valops.c (value_of_this): Likewise.
4842
22e3f3ed
AB
48432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4844
4845 * ada-lang.c (ada_language_data): Remove
4846 la_struct_too_deep_ellipsis initializer.
4847 (ada_language::struct_too_deep_ellipsis): New member function.
4848 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4849 initializer.
4850 (cplus_language_data): Likewise.
4851 (asm_language_data): Likewise.
4852 (minimal_language_data): Likewise.
4853 * cp-valprint.c (cp_print_value): Update call to
4854 struct_too_deep_ellipsis.
4855 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4856 initializer.
4857 * f-lang.c (f_language_data): Likewise.
4858 (f_language::struct_too_deep_ellipsis): New member function.
4859 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4860 initializer.
4861 * language.c (unknown_language_data): Likewise.
4862 (auto_language_data): Likewise.
4863 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4864 member variable.
4865 (language_defn::struct_too_deep_ellipsis): New member function.
4866 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4867 initializer.Q
4868 * objc-lang.c (objc_language_data): Likewise.
4869 * opencl-lang.c (opencl_language_data): Likewise.
4870 * p-lang.c (pascal_language_data): Likewise.
4871 * rust-lang.c (rust_language_data): Likewise.
4872 * valprint.c (val_print_check_max_depth): Update call to
4873 struct_too_deep_ellipsis.
4874
ed29e1c7
FW
48752020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4876
4877 * MAINTAINERS (Write After Approval): Add myself.
4878
12d8f940
TT
48792020-09-15 Tom Tromey <tom@tromey.com>
4880
4881 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4882 Remove.
4883
6b5a7bc7
TT
48842020-09-15 Tom Tromey <tom@tromey.com>
4885
4886 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4887 and TYPE_CODE_METHODPTR cases.
4888 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4889 (c_value_print_inner): Update.
4890 * valprint.c (generic_value_print_memberptr): New function, from
4891 c_value_print_memberptr.
4892 (generic_value_print): Use it. Call cplus_print_method_ptr.
4893
47f0e2ff
TT
48942020-09-15 Tom Tromey <tromey@adacore.com>
4895
4896 * python/python-internal.h (PyInt_FromLong): Remove define.
4897 * python/py-value.c (convert_value_from_python): Use
4898 gdb_py_object_from_longest.
4899 * python/py-type.c (typy_get_code): Use
4900 gdb_py_object_from_longest.
4901 * python/py-symtab.c (salpy_get_line): Use
4902 gdb_py_object_from_longest.
4903 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4904 gdb_py_object_from_longest.
4905 * python/py-record.c (recpy_gap_reason_code): Use
4906 gdb_py_object_from_longest.
4907 * python/py-record-btrace.c (recpy_bt_insn_size)
4908 (recpy_bt_func_level, btpy_list_count): Use
4909 gdb_py_object_from_longest.
4910 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4911 gdb_py_object_from_longest. Fix error handling.
4912 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4913 gdb_py_object_from_longest.
4914 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4915 gdb_py_object_from_longest.
4916 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4917 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4918 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4919
512116ce
TT
49202020-09-15 Tom Tromey <tromey@adacore.com>
4921
4922 * python/python.c (gdbpy_parameter_value): Use
4923 gdb_py_object_from_ulongest.
4924
4ab1029c
TT
49252020-09-15 Tom Tromey <tromey@adacore.com>
4926
4927 * python/py-infevents.c (create_register_changed_event_object):
4928 Use gdb_py_object_from_longest.
4929 * python/py-exitedevent.c (create_exited_event_object): Use
4930 gdb_py_object_from_longest.
4931
062534d4
TT
49322020-09-15 Tom Tromey <tromey@adacore.com>
4933
4934 * python/python.c (gdbpy_parameter_value): Use
4935 gdb_py_object_from_longest.
4936 * python/py-type.c (convert_field, typy_range): Use
4937 gdb_py_object_from_longest.
4938 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4939 gdb_py_object_from_longest.
4940 * python/py-lazy-string.c (stpy_get_length): Use
4941 gdb_py_object_from_longest.
4942 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4943 gdb_py_object_from_longest.
4944 * python/py-infevents.c (create_memory_changed_event_object): Use
4945 gdb_py_object_from_longest.
4946 * python/py-inferior.c (infpy_get_num): Use
4947 gdb_py_object_from_longest.
4948 (infpy_get_pid): Likewise.
4949
d1cab987
TT
49502020-09-15 Tom Tromey <tromey@adacore.com>
4951
4952 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4953 defines.
4954 * python/py-value.c (valpy_long): Use
4955 gdb_py_object_from_ulongest.
4956 * python/py-symtab.c (salpy_get_pc): Use
4957 gdb_py_object_from_ulongest.
4958 (salpy_get_last): Likewise.
4959 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4960 gdb_py_object_from_ulongest.
4961 * python/py-lazy-string.c (stpy_get_address): Use
4962 gdb_py_object_from_ulongest.
4963 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4964 * python/py-arch.c (archpy_disassemble): Use
4965 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4966 error handling.
4967
4bde49dc
TT
49682020-09-15 Tom Tromey <tromey@adacore.com>
4969
4970 * python/python-internal.h (gdb_py_long_from_longest): Remove
4971 defines.
4972 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4973 * python/py-type.c (convert_field, typy_get_sizeof): Use
4974 gdb_py_object_from_longest.
4975 * python/py-record-btrace.c (btpy_list_index): Use
4976 gdb_py_object_from_longest.
4977
37431074
TT
49782020-09-15 Tom Tromey <tromey@adacore.com>
4979
4980 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4981 * python/py-record.c (recpy_element_number): Use
4982 gdb_py_object_from_longest.
4983 (recpy_gap_number): Likewise.
4984
cbe25684
TT
49852020-09-15 Tom Tromey <tromey@adacore.com>
4986
4987 * top.c (ui::ui): Update.
4988 (highest_ui_num): Remove.
4989 * top.h (struct ui) <num>: Remove.
4990
db92ac45
TT
49912020-09-15 Tom Tromey <tromey@adacore.com>
4992
4993 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4994 * ui-style.c (ansi_regex_text): Now array.
4995 * rust-exp.y (number_regex_text): Now array.
4996 * linespec.c (linespec_quote_characters): Now array.
4997 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4998 Now arrays.
4999
d2b31b67
SM
50002020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5001
5002 * debuginfod-support.c (debuginfod_client_deleter): New.
5003 (debuginfod_client_up): New.
5004 (debuginfod_init): Return debuginfod_client_up.
5005 (debuginfod_source_query): Adjust.
5006 (debuginfod_debuginfo_query): Adjust.
5007
3246bd8e
SM
50082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5009
5010 * debuginfod-support.c (debuginfod_source_query): Use
5011 make_unique_xstrdup.
5012
10242f36
SM
50132020-09-14 Simon Marchi <simon.marchi@efficios.com>
5014
5015 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5016 with `type::instance_flags`.
5017
e1044e6a
MM
50182020-09-14 Michael Mullin <masmullin@gmail.com>
5019
5020 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5021 Remove baton parameter.
5022
04902b09
PA
50232020-09-14 Pedro Alves <pedro@palves.net>
5024
5025 * Makefile.in (SELFTESTS_SRCS): Add
5026 unittests/enum-flags-selftests.c.
5027 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5028 btrace_function_flags instead of enum btrace_function_flag.
5029 * compile/compile-c-types.c (convert_qualified): Use
5030 enum_flags::raw.
5031 * compile/compile-cplus-symbols.c (convert_one_symbol)
5032 (convert_symbol_bmsym):
5033 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5034 (compile_cplus_convert_struct_or_union_methods)
5035 (compile_cplus_instance::convert_qualified_base):
5036 * go-exp.y (parse_string_or_char): Add cast to int.
5037 * unittests/enum-flags-selftests.c: New file.
5038 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5039 type to btrace_thread_flags from btrace_thread_flag.
5040 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5041 local's type to btrace_thread_flags from btrace_thread_flag. Add
5042 cast in DEBUG call.
5043
69896a2c
PA
50442020-09-14 Pedro Alves <pedro@palves.net>
5045
5046 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5047 * gdbtypes.c (address_space_name_to_int): Rename to ...
5048 (address_space_name_to_type_instance_flags): ... this.
5049 (address_space_int_to_name): Rename to ...
5050 (address_space_type_instance_flags_to_name): ... this.
5051 * gdbtypes.h (address_space_name_to_int): Rename to ...
5052 (address_space_name_to_type_instance_flags): ... this.
5053 (address_space_int_to_name): Rename to ...
5054 (address_space_type_instance_flags_to_name): ... this.
5055 * type-stack.c (type_stack::insert): Adjust to rename.
5056 * type-stack.h (type_stack::insert): Likewise.
5057
314ad88d
PA
50582020-09-14 Pedro Alves <pedro@palves.net>
5059 Andrew Burgess <andrew.burgess@embecosm.com>
5060
5061 * avr-tdep.c (avr_address_class_type_flags): Return
5062 type_instance_flags.
5063 (avr_address_class_type_flags_to_name): Take a
5064 type_instance_flags.
5065 (avr_address_class_name_to_type_flags): Return bool and take a
5066 type_instance_flags.
5067 * d-lang.c (build_d_types): Use type::set_instance_flags.
5068 * ft32-tdep.c (ft32_address_class_type_flags): Return
5069 type_instance_flags.
5070 (ft32_address_class_type_flags_to_name): Take a
5071 type_instance_flags.
5072 (ft32_address_class_name_to_type_flags): Return bool and take a
5073 type_instance_flags.
5074 (ft32_gdbarch_init): Use type::set_instance_flags.
5075 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5076 * gdbarch.h, gdbarch.c: Regenerate.
5077 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5078 (address_class_name_to_type_flags): Use type_instance_flags and
5079 bool.
5080 * gdbtypes.c (address_space_name_to_int)
5081 (address_space_int_to_name, make_qualified_type): Use
5082 type_instance_flags.
5083 (make_qualified_type): Use type_instance_flags and
5084 type::set_instance_flags.
5085 (make_type_with_address_space, make_cv_type, make_vector_type)
5086 (check_typedef): Use type_instance_flags.
5087 (recursive_dump_type): Cast type_instance_flags to unsigned for
5088 printing.
5089 (copy_type_recursive): Use type::set_instance_flags.
5090 (gdbtypes_post_init): Use type::set_instance_flags.
5091 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5092 <m_instance_flags>: ... this.
5093 <instance_flags, set_instance_flags>: New methods.
5094 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5095 (SET_TYPE_INSTANCE_FLAGS): New.
5096 (address_space_name_to_int, address_space_int_to_name)
5097 (make_type_with_address_space): Pass flags using
5098 type_instance_flags instead of int.
5099 * stabsread.c (cleanup_undefined_types_noname): Use
5100 type::set_instance_flags.
5101 * s390-tdep.c (s390_address_class_type_flags): Return
5102 type_instance_flags.
5103 (s390_address_class_type_flags_to_name): Take a
5104 type_instance_flags.
5105 (s390_address_class_name_to_type_flags): Return bool and take a
5106 type_instance_flags.
5107 * type-stack.c (type_stack::follow_types): Use
5108 type_instance_flags.
5109 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5110
27087b7f
TT
51112020-09-14 Tom Tromey <tromey@adacore.com>
5112
5113 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5114 * x86-tdep.c (x86_is_thunk_register_name)
5115 (x86_in_indirect_branch_thunk): Update.
5116 * sparc64-tdep.c (sparc64_fpu_register_names)
5117 (sparc64_cp0_register_names, sparc64_register_names)
5118 (sparc64_pseudo_register_names): Now const.
5119 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5120 cp0_registers_num>: Now const.
5121 * sparc-tdep.c (sparc_core_register_names)
5122 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5123 (sparc32_pseudo_register_names): Now const.
5124 (validate_tdesc_registers): Update.
5125 * rust-lang.c (rust_extensions): Now const.
5126 * p-lang.c (p_extensions): Now const.
5127 * objc-lang.c (objc_extensions): Now const.
5128 * nto-tdep.c (nto_thread_state_str): Now const.
5129 * moxie-tdep.c (moxie_register_names): Now const.
5130 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5131 Now const.
5132 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5133 (mips_linux_reg_names): Now const.
5134 (mips_gdbarch_init): Update.
5135 * microblaze-tdep.c (microblaze_register_names): Now const.
5136 * m68k-tdep.c (m68k_register_names): Now const.
5137 * m32r-tdep.c (m32r_register_names): Now const.
5138 * ia64-tdep.c (ia64_register_names): Now const.
5139 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5140 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5141 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5142 ymm_avx512_register_names, pkeys_register_names>: Now const.
5143 * i386-tdep.c (i386_register_names, i386_zmm_names)
5144 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5145 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5146 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5147 * f-lang.c (f_extensions): Now const.
5148 * d-lang.c (d_extensions): Now const.
5149 * csky-tdep.c (csky_register_names): Now const.
5150 * charset.c (default_charset_names, charset_enum): Now const.
5151 (_initialize_charset): Update.
5152 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5153 const.
5154 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5155 (bsd_uthread_solib_loaded): Update.
5156 (bsd_uthread_state): Now const.
5157 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5158 (amd64_ymm_avx512_names, amd64_ymmh_names)
5159 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5160 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5161 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5162 (amd64_dword_names): Now const.
5163 * agent.c (can_use_agent_enum): Now const.
5164 * ada-tasks.c (task_states, long_task_states): Now const.
5165 * ada-lang.c (known_runtime_file_name_patterns)
5166 (known_auxiliary_function_name_patterns, attribute_names)
5167 (standard_exc, ada_extensions): Now const.
5168
89806626
SM
51692020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5170
5171 * bcache.h (struct bcache) <bcache>: Remove constructor.
5172 <m_hash_function, m_compare_function>: Remove.
5173 <~bcache>: Make virtual.
5174 <compare>: Remove static method, introduce virtual method.
5175 <default_hash>: Remove.
5176 <hash>: New virtual method.
5177 * bcache.c (bcache::expand_hash_table): Update.
5178 (bcache::insert): Update.
5179 (bcache::hash): New.
5180 (bcache::compare): Update comment and parameter names.
5181 * gdbtypes.c (types_deeply_equal): Update.
5182 * psymtab.h (struct psymbol_bcache): New struct.
5183 (class psymtab_storage) <psymtab_storage>: Make default.
5184 <psymbol_cache>: Change type to psymbol_bcache.
5185 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5186 (psymbol_hash): Change to...
5187 (psymbol_bcache::hash): ... this.
5188 (psymbol_compare): Change to...
5189 (psymbol_bcache::compare): ... this.
5190
677c92fe
SM
51912020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5192
5193 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5194 checking for initial lwp.
5195
3eba3a01
TT
51962020-09-14 Tom Tromey <tromey@adacore.com>
5197
5198 * m68k-tdep.c (m68k_extract_return_value): Use
5199 pointer_result_regnum.
5200 (m68k_store_return_value): Likewise.
5201 (m68k_reg_struct_return_p): Handle vectors and arrays.
5202 (m68k_return_value): Handle arrays.
5203 (m68k_svr4_return_value): Fix single-element aggregate handling.
5204 Handle long double. Adjust for embedded ABI.
5205 (m68k_svr4_init_abi): Set pointer_result_regnum.
5206 (m68k_embedded_init_abi): New function.
5207 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5208 (m68k_osabi_sniffer): New function.
5209 (_initialize_m68k_tdep): Register osabi sniffer.
5210 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5211 member.
5212
33f4dd48
SM
52132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5214
5215 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5216 with gdb::unique_xmalloc_ptr<char>.
5217
8400a90d
SM
52182020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5219
5220 * xml-support.h (xml_fetch_another): Change type to be a
5221 function_view.
5222 (xml_process_xincludes): Remove baton parameter.
5223 (xml_fetch_content_from_file): Change baton parameter to
5224 dirname.
5225 * xml-support.c (struct xinclude_parsing_data)
5226 <xinclude_parsing_data>: Remove baton parameter.
5227 <fetcher_baton>: Remove.
5228 (xinclude_start_include): Adjust.
5229 (xml_process_xincludes): Adjust.
5230 (xml_fetch_content_from_file): Replace baton parameter with
5231 dirname.
5232 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5233 (xml_init_syscalls_info): Use a lambda.
5234 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5235 (file_read_description_xml): Use a lambda.
5236 (fetch_available_features_from_target): Change baton parameter
5237 to target_ops.
5238 (target_read_description_xml): Use a lambda.
5239 (target_fetch_description_xml): Use a lambda.
5240 (string_read_description_xml): Update.
5241
04f5bab2
SM
52422020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5243
5244 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5245 uses with type::endianity_is_not_default.
5246
db558e34
SM
52472020-09-14 Simon Marchi <simon.marchi@efficios.com>
5248
5249 * gdbtypes.h (struct type) <endianity_is_not_default,
5250 set_endianity_is_not_default>: New methods.
5251 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5252 type::endianity_is_not_default, change all write call sites to
5253 use type::set_endianity_is_not_default.
5254
22c4c60c
SM
52552020-09-14 Simon Marchi <simon.marchi@efficios.com>
5256
5257 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5258 uses with type::is_fixed_instance.
5259
9cdd0d12
SM
52602020-09-14 Simon Marchi <simon.marchi@efficios.com>
5261
5262 * gdbtypes.h (struct type) <is_fixed_instance,
5263 set_is_fixed_instance>: New methods.
5264 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5265 write call sites to use type::set_is_fixed_instance.
5266
0becda7a
SM
52672020-09-14 Simon Marchi <simon.marchi@efficios.com>
5268
5269 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5270 uses with type::is_gnu_ifunc.
5271
03cc7249
SM
52722020-09-14 Simon Marchi <simon.marchi@efficios.com>
5273
5274 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5275 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5276 use type::set_is_gnu_ifunc.
5277
3f46044c
SM
52782020-09-14 Simon Marchi <simon.marchi@efficios.com>
5279
5280 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5281 uses with type::stub_is_supported.
5282
9baccff6
SM
52832020-09-14 Simon Marchi <simon.marchi@efficios.com>
5284
5285 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5286 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5287 use type::set_stub_is_supported.
5288
bd63c870
SM
52892020-09-14 Simon Marchi <simon.marchi@efficios.com>
5290
5291 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5292 uses with type::is_vector.
5293
2062087b
SM
52942020-09-14 Simon Marchi <simon.marchi@efficios.com>
5295
5296 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5297 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5298 use type::set_is_vector.
5299
a409645d
SM
53002020-09-14 Simon Marchi <simon.marchi@efficios.com>
5301
5302 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5303 uses with type::has_varargs.
5304
1d6286ed
SM
53052020-09-14 Simon Marchi <simon.marchi@efficios.com>
5306
5307 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5308 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5309 use type::set_has_varargs.
5310
7f9f399b
SM
53112020-09-14 Simon Marchi <simon.marchi@efficios.com>
5312
5313 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5314 uses with type::is_prototyped.
5315
27e69b7a
SM
53162020-09-14 Simon Marchi <simon.marchi@efficios.com>
5317
5318 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5319 New methods.
5320 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5321 call sites to use type::set_is_prototyped.
5322
d2183968
SM
53232020-09-14 Simon Marchi <simon.marchi@efficios.com>
5324
5325 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5326 uses with type::target_is_stub.
5327
8f53807e
SM
53282020-09-14 Simon Marchi <simon.marchi@efficios.com>
5329
5330 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5331 New methods.
5332 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5333 sites to use type::set_target_is_stub.
5334
e46d3488
SM
53352020-09-14 Simon Marchi <simon.marchi@efficios.com>
5336
5337 * gdbtypes.h (TYPE_STUB): Remove, replace all
5338 uses with type::is_stub.
5339
b4b73759
SM
53402020-09-14 Simon Marchi <simon.marchi@efficios.com>
5341
5342 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5343 (TYPE_STUB): Use type::is_stub, change all write call sites to
5344 use type::set_is_stub.
5345
20ce4123
SM
53462020-09-14 Simon Marchi <simon.marchi@efficios.com>
5347
5348 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5349 type::has_no_signedness.
5350
15152a54
SM
53512020-09-14 Simon Marchi <simon.marchi@efficios.com>
5352
5353 * gdbtypes.h (struct type) <has_no_signedness,
5354 set_has_no_signedness>: New methods.
5355 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5356 call sites to use type::set_has_no_signedness.
5357
c6d940a9
SM
53582020-09-14 Simon Marchi <simon.marchi@efficios.com>
5359
5360 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5361 type::is_unsigned.
5362
653223d3
SM
53632020-09-14 Simon Marchi <simon.marchi@efficios.com>
5364
5365 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5366 methods.
5367 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5368 sites to use type::set_is_unsigned.
5369
55ea94da 53702020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5371 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5372
e851246a
SM
5373 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5374 pointer and stack frame offset when unwinding.
55ea94da 5375
6791b117
PA
53762020-09-13 Pedro Alves <pedro@palves.net>
5377
5378 * NEWS: Document "-break-insert --qualified".
5379 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5380
77f2120b
PA
53812020-09-13 Pedro Alves <pedro@palves.net>
5382
5383 * linespec.c (classify_mtype, compare_msyms): Delete.
5384 (search_minsyms_for_name): Remove classification logic. Instead
5385 filter out trampoline symbols if we also found an external
5386 function of the same name.
5387
ed6a896c
JB
53882020-09-13 Joel Brobecker <brobecker@adacore.com>
5389
5390 * NEWS: Create a new section for the next release branch.
5391 Rename the section of the current branch, now that it has
5392 been cut.
5393
32aea73e
JB
53942020-09-13 Joel Brobecker <brobecker@adacore.com>
5395
5396 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5397 * version.in: Bump version to 11.0.50.DATE-git.
5398
8087c3fa
JB
53992020-09-12 Joel Brobecker <brobecker@adacore.com>
5400
5401 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5402
2a67f09d
FW
54032020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5404 Felix Willgerodt <Felix.Willgerodt@intel.com>
5405
5406 * gdbarch.sh: Added bfloat16 type.
5407 * gdbarch.c: Regenerated.
5408 * gdbarch.h: Regenerated.
5409 * gdbtypes.c (floatformats_bfloat16): New struct.
5410 (gdbtypes_post_init): Add builtin_bfloat16.
5411 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5412 (floatformats_bfloat16): New struct.
5413 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5414 (i386_ymm_type): Add field "v16_bfloat16"
5415 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5416 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5417 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5418 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5419 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5420 * features/i386/64bit-avx512.c: Regenerated.
5421 * features/i386/64bit-sse.xml: Add bfloat16 type.
5422 * features/i386/64bit-sse.c: Regenerated.
5423
1347d111
FW
54242020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5425
5426 * i386-tdep.c (i386_zmm_type): Fix field names.
5427 (i386_ymm_type): Fix field names.
5428
7a4e8e7d
TBA
54292020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5430
5431 * breakpoint.c: Fix typo in the help message of the
5432 "set breakpoint condition-evaluation" command.
5433
cf4ac4be
KR
54342020-09-10 Kamil Rytarowski <n54@gmx.com>
5435
5436 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5437 * (nbsd_nat_target::pid_to_exec_file)
5438 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5439 (nbsd_nat_target::post_startup_inferior)
5440 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5441 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5442 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5443 * (nbsd_thread_lister): Remove.
5444
f404573e
KR
54452020-09-10 Kamil Rytarowski <n54@gmx.com>
5446
5447 * fork-inferior.c (startup_inferior): Avoid double free.
5448
1ccb2c17
KR
54492020-09-10 Kamil Rytarowski <n54@gmx.com>
5450
5451 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5452 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5453
feedfcc7
KR
54542020-09-10 Kamil Rytarowski <n54@gmx.com>
5455
5456 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5457 * netbsd-nat.c: Include <sys/ptrace.h>.
5458 * (netbsd_nat::enable_proc_events): Add.
5459
c489f8c6
KR
54602020-09-10 Kamil Rytarowski <n54@gmx.com>
5461
5462 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5463 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5464 (netbsd_nat::for_each_thread): Add.
5465 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5466 "gdbsupport/common-debug.h".
5467 * (netbsd_nat::netbsd_thread_lister)
5468 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5469 (netbsd_nat::for_each_thread): Add.
5470
330662f6
KR
54712020-09-10 Kamil Rytarowski <n54@gmx.com>
5472
5473 * netbsd-nat.h: Include <unistd.h>.
5474 * (netbsd_nat::pid_to_exec_file): Add.
5475 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5476 * (netbsd_nat::pid_to_exec_file) Add.
5477
70b67307
KR
54782020-09-10 Kamil Rytarowski <n54@gmx.com>
5479
5480 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5481
99cf6da6
KR
54822020-09-10 Kamil Rytarowski <n54@gmx.com>
5483
5484 * netbsd-nat.h: New file.
5485 * netbsd-nat.c: Likewise.
5486
1b788fb6
TT
54872020-09-09 Tom Tromey <tromey@adacore.com>
5488
5489 * ada-lang.c (remove_extra_symbols): Do not increment when
5490 removing an element
5491
03b0a45f
TT
54922020-09-08 Tom Tromey <tromey@adacore.com>
5493
5494 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5495
3cae4447
TT
54962020-09-08 Tom Tromey <tromey@adacore.com>
5497
5498 PR win32/25302:
5499 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5500 (gdb_bfd_init_data): New function.
5501 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5502
7f08fd51
TBA
55032020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5504
5505 * infrun.c (fetch_inferior_event): Use
5506 `switch_to_target_no_thread` to switch the target.
5507
3e6ff933
TT
55082020-09-06 Tom Tromey <tom@tromey.com>
5509
5510 * symfile.h (dwarf2_free_objfile): Don't declare.
5511
e56798df
AKS
55122020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5513
5514 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5515 to match 16 byte real/complex type generated by Flang compiler.
5516
8f5c6526
TV
55172020-09-03 Tom de Vries <tdevries@suse.de>
5518
5519 PR breakpoint/26546
5520 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5521 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5522
c5065df0
SM
55232020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5524
5525 * maint.c (index_digits): New function.
5526 (struct maint_print_section_data): Remove.
5527 (print_bfd_section_info): Remove print_data parameter, add arg
5528 and index_digits.
5529 (print_objfile_section_info): Likewise.
5530 (print_bfd_section_info_maybe_relocated): Likewise (plus
5531 objfile).
5532 (maintenance_info_sections): Adjust calls.
5533
02c6f3f1
TT
55342020-09-02 Tom Tromey <tromey@adacore.com>
5535
5536 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5537 for null pointers.
5538 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5539
ef5e5b0b
SM
55402020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5541
5542 * bcache.h (struct bcache) <insert>: Change type of `added` to
5543 pointer to bool.
5544 * bcache.c (bcache::insert): Likewise.
5545 * gdbtypes.c (check_types_worklist): Adjust.
5546 * psymtab.c (add_psymbol_to_bcache): Adjust.
5547
973695d6
KB
55482020-08-31 Kevin Buettner <kevinb@redhat.com>
5549
5550 * corelow.c (unordered_set): Include.
5551 (class core_target): Add field 'm_core_unavailable_mappings'.
5552 (core_target::build_file_mappings): Print only one warning
5553 per inaccessible file. Add unavailable/broken mappings
5554 to m_core_unavailable_mappings.
5555 (core_target::xfer_partial): Call...
5556 (core_target::xfer_memory_via_mappings): New method.
5557
264fc0e2
SM
55582020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5559
5560 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5561 type to bool.
5562
2de01bdb
SM
55632020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5564
5565 * dwarf2/read.c (struct field_info): Fix indentation.
5566
f3bd50f1
SM
55672020-08-31 Simon Marchi <simon.marchi@efficios.com>
5568
5569 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5570 ordering in comment.
5571 * frame.c (frame_id_eq): Fix indentation.
5572
22b9b4b0
SL
55732020-08-31 Scott Linder <scott@scottlinder.com>
5574 Simon Marchi <simon.marchi@efficios.com>
5575
5576 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5577 inline frame ids in outer frame.
5578
84154d16
SM
55792020-08-31 Simon Marchi <simon.marchi@efficios.com>
5580
5581 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5582 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5583 (outer_frame_id): Use FID_STACK_OUTER instead of
5584 FID_STACK_INVALID.
5585 (frame_id_p): Don't check for outer_frame_id.
5586
8efaf6b3
SM
55872020-08-31 Simon Marchi <simon.marchi@efficios.com>
5588
5589 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5590 regnum/frame in value. Call allocate_value_lazy.
5591 * frame.c (frame_unwind_register_value): Use
5592 val_print_not_saved.
5593
fe1fe7ea
SM
55942020-08-31 Simon Marchi <simon.marchi@efficios.com>
5595
5596 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5597
f7c7700d
PA
55982020-08-29 Pedro Alves <pedro@palves.net>
5599
5600 * progspace.c (print_program_space): Use all_inferiors. Switch to
5601 the inferior before calling target_pid_to_str.
5602
e0814aae
TT
56032020-08-28 Tom Tromey <tom@tromey.com>
5604
5605 * xcoffread.c (xcoff_end_psymtab): Update comment.
5606 * dbxread.c (dbx_end_psymtab): Update comment.
5607
626d2320
TV
56082020-08-28 Tom de Vries <tdevries@suse.de>
5609
5610 PR breakpoint/26544
5611 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5612 event_location.
5613 (create_breakpoint): Same.
5614 (base_breakpoint_decode_location): Same.
5615 (bkpt_create_sals_from_location): Same.
5616 (bkpt_decode_location): Same.
5617 (bkpt_probe_create_sals_from_location): Same.
5618 (bkpt_probe_decode_location): Same.
5619 (tracepoint_create_sals_from_location): Same.
5620 (tracepoint_decode_location): Same.
5621 (tracepoint_probe_decode_location): Same.
5622 (strace_marker_create_sals_from_location): Same.
5623 (strace_marker_decode_location): Same.
5624 (create_sals_from_location_default): Same.
5625 (decode_location_default): Same.
5626 * breakpoint.h (struct breakpoint_ops): Same.
5627 (create_breakpoint): Same.
5628 * linespec.h (decode_line_full): Same.
5629 * linespec.c (decode_line_full): Same. Throw error if
5630 result.size () == 0.
5631
df631783
PA
56322020-08-27 Pedro Alves <pedro@palves.net>
5633
5634 PR gdb/26524
5635 * breakpoint.c (until_break_fsm) <location_breakpoint,
5636 caller_breakpoint>: Delete fields.
5637 <breakpoints>: New field.
5638 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5639 two individual breakpoints.
5640 (until_break_fsm::should_stop): Loop over breakpoints in the
5641 breakpoint vector.
5642 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5643 vector.
5644 (until_break_command): Handle location expanding into multiple
5645 sals.
5646
b2b38aa4
PA
56472020-08-27 Pedro Alves <pedro@palves.net>
5648
5649 PR gdb/26523
5650 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5651 bp_until breakpoints user-specified locations. Update intro
5652 comment.
5653
b886559f
SM
56542020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5655
5656 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5657 gdb_bfd_sections): New.
5658 * maint.c (print_bfd_section_info): Change param type to
5659 maint_print_section_data.
5660 (print_objfile_section_info): Likewise.
5661 (print_bfd_section_info_maybe_relocated): Likewise.
5662 (maintenance_info_sections): Use gdb_bfd_sections.
5663
4c6e63bf
SV
56642020-08-25 Shahab Vahedi <shahab@synopsys.com>
5665
5666 * MAINTAINERS: Add ARC target and maintainer.
5667
8d7f0635
AK
56682020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5669
5670 * configure.tgt: ARC support for GNU/Linux.
5671 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5672 * arc-linux-tdep.c: New file.
5673 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5674 * arc-tdep.c (arc_write_pc): Use it.
5675
fdd8731b
SV
56762020-08-25 Shahab Vahedi <shahab@synopsys.com>
5677
5678 * arc-tdep.c (arc_check_for_hardware_loop): New.
5679 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5680
22459524
SV
56812020-08-25 Shahab Vahedi <shahab@synopsys.com>
5682
5683 * arc-tdep.h: Include "gdbarch.h".
5684
995d3a19
SV
56852020-08-25 Shahab Vahedi <shahab@synopsys.com>
5686
5687 * arch/arc.h
5688 (arc_gdbarch_features): New class to stir the selection of target XML.
5689 (arc_create_target_description): Use FEATURES to choose XML target.
5690 (arc_lookup_target_description): Use arc_create_target_description
5691 to create _new_ target descriptions or return the already created
5692 ones if the FEATURES is the same.
5693 * arch/arc.c: Implementation of prototypes described above.
5694 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5695 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5696 * arc-tdep.c (*_feature_name): Make feature names consistent.
5697 (arc_register_feature): A new struct to hold information about
5698 registers of a particular target/feature.
5699 (arc_check_tdesc_feature): Check if XML provides registers in
5700 compliance with ARC_REGISTER_FEATURE structs.
5701 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5702 (determine_*_reg_feature_set): Which feature name to look for.
5703 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5704 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5705 to expected ISA enums to be used in arc_gdbarch_features structs.
5706 * features/Makefile (FEATURE_XMLFILES): Add new files.
5707 * gdb/features/arc/v1-aux.c: New file.
5708 * gdb/features/arc/v1-aux.xml: Likewise.
5709 * gdb/features/arc/v1-core.c: Likewise.
5710 * gdb/features/arc/v1-core.xml: Likewise.
5711 * gdb/features/arc/v2-aux.c: Likewise.
5712 * gdb/features/arc/v2-aux.xml: Likewise.
5713 * gdb/features/arc/v2-core.c: Likewise.
5714 * gdb/features/arc/v2-core.xml: Likewise.
5715 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5716
3945d2d7
GM
57172020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5718 Andrew Burgess <andrew.burgess@embecosm.com>
5719
5720 PR m2/26372
fc5d6901 5721 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5722 an assert. Remove single element array indexing pattern as the
5723 MULTI_SUBSCRIPT support will handle this case too.
5724
2677f2d3
SM
57252020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5726
5727 * value.h (valprint_check_validity): Move declaration from
5728 here...
5729 * valprint.h (valprint_check_validity): ... to here.
5730
c426fddb
SM
57312020-08-24 Simon Marchi <simon.marchi@efficios.com>
5732
5733 * debug.h: New file.
5734 * debug.c (debug_prefixed_vprintf): New function.
5735 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5736 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5737
1eb8556f
SM
57382020-08-24 Simon Marchi <simon.marchi@efficios.com>
5739
5740 * infrun.h (infrun_debug_printf_1): New function declaration.
5741 (infrun_debug_printf): New macro.
5742 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5743 throughout.
5744 (infrun_debug_printf): New function.
5745 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5746 (handle_jit_event): Likewise.
5747
b8fff44e
MW
57482020-08-21 Mark Wielaard <mark@klomp.org>
5749
5750 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5751
d19c3068
SM
57522020-08-22 Simon Marchi <simon.marchi@efficios.com>
5753
5754 * frame.c (enum class frame_id_status): New.
5755 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5756 (fprintf_frame): Update.
5757 (compute_frame_id): Set frame id status to "computing" on entry.
5758 Set it back to "not_computed" on failure and to "computed" on
5759 success.
5760 (get_frame_id): Assert the frame id is not being computed.
5761 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5762 (create_new_frame): Likewise.
5763 (frame_cleanup_after_sniffer): Update assert.
5764
b70e516e
SM
57652020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5766
5767 * regcache.c (pid_ptid_regcache_map): New type.
5768 (target_ptid_regcache_map): Remove.
5769 (target_pid_ptid_regcache_map): New type.
5770 (regcaches): Change type to target_pid_ptid_regcache_map.
5771 (get_thread_arch_aspace_regcache): Update.
5772 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5773 case.
5774 (regcaches_size): Update.
5775 (regcache_count): Update.
5776 (registers_changed_ptid_target_pid_test): New.
5777 (_initialize_regcache): Register new test.
5778
cdd9148a
SM
57792020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5780
5781 * regcache.c (regcache_count): New.
5782 (struct regcache_test_data): New.
5783 (regcache_test_data_up): New.
5784 (populate_regcaches_for_test): New.
5785 (regcaches_test): Remove.
5786 (get_thread_arch_aspace_regcache_test): New.
5787 (registers_changed_ptid_all_test): New.
5788 (registers_changed_ptid_target_test): New.
5789 (registers_changed_ptid_target_ptid_test): New.
5790 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5791 (_initialize_regcache): Register new tests.
5792
dd125343
SM
57932020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5794
5795 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5796 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5797 gdbarch and aspace parameter. Use current inferior's aspace.
5798 Validate regcache's arch value.
5799 (regcaches_test): Update.
5800
3ee93972
SM
58012020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5802
5803 * regcache.c (regcaches_test): Call registers_changed.
5804
33bf4c5c
TBA
58052020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5806
5807 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5808
c2fd7fae
AKS
58092020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5810
5811 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5812 to find the end of prologue for flang compiled binaries.
5813 * arm-tdep.c (arm_skip_prologue): Likewise.
5814 * i386-tdep.c (i386_skip_prologue): Likewise.
5815 * producer.c (producer_is_llvm): New function.
5816 (producer_parsing_tests): Added new tests for clang/flang.
5817 * producer.h (producer_is_llvm): New declaration.
5818
9327494e
SM
58192020-08-18 Simon Marchi <simon.marchi@efficios.com>
5820
5821 * linux-nat.c (linux_nat_debug_printf): New function.
5822 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5823
d138725a
AM
58242020-08-18 Aaron Merey <amerey@redhat.com>
5825
5826 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5827 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5828 (CLIBS): Add DEBUGINFOD_LIBS.
5829
f9b11e6b
ST
58302020-08-17 Sergei Trofimovich <siarheit@google.com>
5831
5832 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5833 'gdbarch_num_regs'.
5834
3ae7ab99
TT
58352020-08-17 Tom Tromey <tromey@adacore.com>
5836
5837 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5838 ada_get_decoded_value returns NULL.
5839
b017825f
TT
58402020-08-17 Tom Tromey <tromey@adacore.com>
5841
5842 * python/py-inferior.c (infpy_search_memory): Use
5843 gdb_py_object_from_ulongest.
5844 * python/py-infevents.c (create_inferior_call_event_object)
5845 (create_memory_changed_event_object): Use
5846 gdb_py_object_from_ulongest.
5847 * python/py-linetable.c (ltpy_entry_get_pc): Use
5848 gdb_py_object_from_ulongest.
5849
7635cf79
SM
58502020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5851
5852 * loc.c (class symbol_needs_eval_context): Fix indentation.
5853
f54be24b
SM
58542020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5855
5856 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5857 bool.
5858
53d5a2a5
TV
58592020-08-17 Tom de Vries <tdevries@suse.de>
5860
5861 PR gdb/26393
5862 * gdbtypes.c (dump_dynamic_prop): New function.
5863 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5864
547ce8f0
TV
58652020-08-15 Tom de Vries <tdevries@suse.de>
5866
5867 PR backtrace/26390
5868 * stack.c (print_frame_args): Temporarily set the selected
5869 frame to FRAME while printing the frame's arguments.
5870
6ea815e7
PFC
58712020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5872
5873 PR breakpoints/26385
5874 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5875 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5876
6e562fa3
PFC
58772020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5878
5879 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5880 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5881 and >= to check return value instead of == -1 and != -1.
5882
d369b608
SM
58832020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5884
5885 * utils.h (class gdb_argv) <as_array_view>: New method.
5886 * utils.c (gdb_argv_as_array_view_test): New.
5887 (_initialize_utils): Register selftest.
5888 * maint.c (maintenance_selftest): Use the new method.
5889
b31488a3
KR
58902020-08-13 Kamil Rytarowski <n54@gmx.com>
5891
5892 * target.h (supports_dumpcore, dumpcore): New
5893 function declarations.
5894 * target.c (supports_dumpcore, dumpcore): New
5895 functions.
5896 * target-delegates.c: Rebuild.
5897 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5898 and target_dumpcore ().
5899
002a3166
AM
59002020-08-13 Aaron Merey <amerey@redhat.com>
5901
5902 * debuginfod-support.c: Replace global variables with user_data.
5903
ece5bc8a
SM
59042020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5905
5906 * maint.c (maintenance_selftest): Split args and pass array_view
5907 to run_tests.
5908
6d8a0a5e
LM
59092020-08-12 Luis Machado <luis.machado@linaro.org>
5910
5911 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5912 type's length.
5913 Use %s and pulongest to print the length.
5914
7cf663a9
PA
59152020-08-12 Pedro Alves <palves@redhat.com>
5916
5917 * NEWS: Move "Multi-target debugging support" item to the
5918 "Changes since GDB 9" section.
5919
27c7b875
PA
59202020-08-12 Pedro Alves <palves@redhat.com>
5921
5922 PR gdb/26336
5923 * progspace.c (program_space::remove_objfile): Invalidate the
5924 frame cache.
5925
1796a2a1
TV
59262020-08-11 Tom de Vries <tdevries@suse.de>
5927
5928 * MAINTAINERS: Mark ms1 as deleted.
5929
f8e3fe0d
LM
59302020-08-10 Luis Machado <luis.machado@linaro.org>
5931
5932 PR gdb/26310
5933
5934 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5935 act accordingly.
5936 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5937 movz/str/stur/stp skipping behavior.
5938
cc308722
LM
59392020-08-10 Luis Machado <luis.machado@linaro.org>
5940
5941 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5942 struct user_sve_header instead of struct sve_context.
5943
041d9819
SM
59442020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5945
5946 * read.h (dwarf2_fetch_die_loc_sect_off,
5947 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5948 `void *` parameter with function_view.
5949 * read.c (dwarf2_fetch_die_loc_sect_off,
5950 dwarf2_fetch_die_loc_cu_off): Likewise.
5951 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5952 (per_cu_dwarf_call): Adjust.
5953 (get_frame_address_in_block_wrapper): Remove.
5954 (indirect_synthetic_pointer): Adjust.
5955 (get_ax_pc): Remove.
5956 (dwarf2_compile_expr_to_ax): Adjust.
5957
38f8aa06
TV
59582020-08-08 Tom de Vries <tdevries@suse.de>
5959
5960 PR build/26344
5961 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5962 constructor.
5963 * regcache.c (get_thread_arch_aspace_regcache): Same.
5964
a52b3ae2
TT
59652020-08-07 Tom Tromey <tromey@adacore.com>
5966
5967 * ravenscar-thread.c
5968 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5969 New method.
5970 (ravenscar_thread_target::wait): Check
5971 runtime_initialized.
5972 (ravenscar_thread_target::prepare_to_store)
5973 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5974 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5975 (ravenscar_thread_target::stopped_by_watchpoint)
5976 (ravenscar_thread_target::stopped_data_address)
5977 (ravenscar_thread_target::core_of_thread): Use
5978 scoped_restore_current_thread and
5979 set_base_thread_from_ravenscar_task.
5980
0e29517d
TT
59812020-08-07 Tom Tromey <tromey@adacore.com>
5982
5983 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5984
592f9bd7
TT
59852020-08-07 Tom Tromey <tromey@adacore.com>
5986
5987 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5988 update_inferior_ptid before update_thread_list.
5989 (temporarily_change_regcache_ptid): New class.
5990 (ravenscar_thread_target::fetch_registers)
5991 (ravenscar_thread_target::store_registers)
5992 (ravenscar_thread_target::prepare_to_store): Use base thread when
5993 forwarding operation.
5994
39e2018a
TT
59952020-08-07 Tom Tromey <tromey@adacore.com>
5996
5997 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5998 "is_pid" case.
5999
2080266b
TT
60002020-08-07 Tom Tromey <tromey@adacore.com>
6001
6002 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6003 New methods.
6004 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6005 first.
6006 (ravenscar_thread_target::add_thread): Rename from
6007 ravenscar_add_thread.
6008 (ravenscar_thread_target::update_thread_list): Use a lambda.
6009 (ravenscar_thread_target::xfer_partial): New method.
6010
78c02f21
TT
60112020-08-07 Tom Tromey <tromey@adacore.com>
6012
6013 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6014 gdb::function_view.
6015 (iterate_over_live_ada_tasks): Change type of argument.
6016 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6017 of argument.
6018
d5d833af
TT
60192020-08-07 Tom Tromey <tromey@adacore.com>
6020
6021 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6022 Remove.
6023 (ravenscar_thread_target::extra_thread_info): Remove.
6024 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6025 defer to target beneath for non-Ravenscar threads.
6026
a8ac85bb
TT
60272020-08-07 Tom Tromey <tromey@adacore.com>
6028
6029 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6030 get_base_thread_from_ravenscar_task>: Now methods.
6031 <m_cpu_map>: New member.
6032 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6033 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6034 (ravenscar_thread_target::task_is_currently_active): Update.
6035 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6036 Now a method.
6037 (ravenscar_thread_target::add_active_thread): Put initial thread
6038 into the m_cpu_map.
6039
550ab58d
TT
60402020-08-07 Tom Tromey <tromey@adacore.com>
6041
6042 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6043 event_ptid.
6044
e9546579
TT
60452020-08-07 Tom Tromey <tromey@adacore.com>
6046
6047 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6048 runtime_initialized.
6049
3d4470e5
TT
60502020-08-07 Tom Tromey <tromey@adacore.com>
6051
6052 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6053 add_active_thread.
6054 (ravenscar_thread_target::add_active_thread): Now public.
6055 (ravenscar_inferior_created): Call add_active_thread after pushing
6056 the target.
6057
888bdb2b
SM
60582020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6059
6060 * regcache.c (ptid_regcache_map): New type.
6061 (target_ptid_regcache_map): New type.
6062 (regcaches): Change type to target_ptid_regcache_map.
6063 (get_thread_arch_aspace_regcache): Update to regcaches' new
6064 type.
6065 (regcache_thread_ptid_changed): Likewise.
6066 (registers_changed_ptid): Likewise.
6067 (regcaches_size): Likewise.
6068 (regcaches_test): Update.
6069 (regcache_thread_ptid_changed): Update.
6070 * regcache.h (regcache_up): New type.
6071 * gdbsupport/ptid.h (hash_ptid): New struct.
6072
b161a60d
SM
60732020-08-07 Simon Marchi <simon.marchi@efficios.com>
6074
6075 * observable.h (thread_ptid_changed): Add parameter
6076 `process_stratum_target *`.
6077 * infrun.c (infrun_thread_ptid_changed): Add parameter
6078 `process_stratum_target *` and use it.
6079 (selftests): New namespace.
6080 (infrun_thread_ptid_changed): New function.
6081 (_initialize_infrun): Register selftest.
6082 * regcache.c (regcache_thread_ptid_changed): Add parameter
6083 `process_stratum_target *` and use it.
6084 (regcache_thread_ptid_changed): New function.
6085 (_initialize_regcache): Register selftest.
6086 * thread.c (thread_change_ptid): Pass target to
6087 thread_ptid_changed observable.
6088
d2854d8d
CT
60892020-08-06 Caroline Tice <cmtice@google.com>
6090
fe4c3d43
SM
6091 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6092 (struct dwp_sections): Update field comments. Add loclists and
6093 rnglists fields.
6094 (struct virtual_v2_dwo_sections): Rename struct to
6095 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6096 size & offset fields for loclists and rnglists.
6097 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6098 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6099 skipping dummy type units.
6100 (create_dwp_hash_table): Update the large comment above the function to
6101 discuss Version 5 DWP files as well, with references. Update all the
6102 version checks in the function to check for version 5 as well. Add new
6103 section at the end to create dwp hash table for version 5.
6104 (create_dwp_v2_section): Rename function to
6105 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6106 Add V5 to error message text.
6107 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6108 into calls to create_dwp_v2_or_v5_section.
6109 (create_dwo_unit_in_dwp_v5): New function.
6110 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6111 check for version2; add else clause to handle version 5.
6112 (open_and_init_dwo_file): Add code to check dwarf version & only call
6113 create_debug_types_hash_table (with sections.types) if version is not 5;
6114 else call create_debug_type_hash_table, with sections.info.
6115 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6116 version 5.
6117 (dwarf2_locate_v5_dwp_sections): New function.
6118 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6119 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6120
159ed7d9
SM
61212020-08-06 Simon Marchi <simon.marchi@efficios.com>
6122
6123 * regcache.h (class regcache): Remove friend
6124 registers_changed_ptid.
6125 <regcache_thread_ptid_changed>: Remove.
6126 <regcaches>: Remove.
6127 * regcache.c (regcache::regcaches): Rename to...
6128 (regcaches): ... this. Make static.
6129 (get_thread_arch_aspace_regcache): Update.
6130 (regcache::regcache_thread_ptid_changed): Rename to...
6131 (regcache_thread_ptid_changed): ... this. Update.
6132 (class regcache_access): Remove.
6133 (regcaches_test): Update.
6134 (_initialize_regcache): Update.
6135 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6136 <forward_list>.
6137
174981ae
SM
61382020-08-06 Simon Marchi <simon.marchi@efficios.com>
6139
6140 * regcache.h (class regcache) <current_regcache>: Rename to...
6141 <regcaches>: ... this. Move doc here.
6142 * regcache.c (regcache::current_regcache) Rename to...
6143 (regcache::regcaches): ... this. Move doc to header.
6144 (get_thread_arch_aspace_regcache): Update.
6145 (regcache::regcache_thread_ptid_changed): Update.
6146 (registers_changed_ptid): Update.
6147 (class regcache_access) <current_regcache_size>: Rename to...
6148 <regcaches_size>: ... this.
6149 (current_regcache_test): Rename to...
6150 (regcaches_test): ... this.
6151 (_initialize_regcache): Update.
6152
ed908db6
VC
61532020-08-06 Victor Collod <vcollod@nvidia.com>
6154
6155 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6156
b5582ab7
KB
61572020-08-05 Kevin Buettner <kevinb@redhat.com>
6158
6159 * corelow.c (core_target::build_file_mappings): Don't output
6160 null pathname in warning.
6161
ea946b86
SM
61622020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6163
6164 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6165 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6166 gdb.dwarf2/dw2-single-line-discriminators.exp,
6167 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6168
57d02173
TT
61692020-08-05 Tom Tromey <tromey@adacore.com>
6170
6171 PR rust/26197:
6172 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6173 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6174 Fix off-by-one and type size errors in ordinary case.
6175
5555c86d
TV
61762020-08-05 Tom de Vries <tdevries@suse.de>
6177
6178 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6179 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6180
97916bfe
SM
61812020-08-04 Simon Marchi <simon.marchi@efficios.com>
6182
6183 * frame.h (frame_id_p): Return bool.
6184 (frame_id_artificial_p): Return bool.
6185 (frame_id_eq): Return bool.
6186 (has_stack_frames): Return bool.
6187 (get_selected_frame): Fix typo in comment.
6188 (get_frame_pc_if_available): Return bool.
6189 (get_frame_address_in_block_if_available): Return bool.
6190 (get_frame_func_if_available): Return bool.
6191 (read_frame_register_unsigned): Return bool.
6192 (get_frame_register_bytes): Return bool.
6193 (safe_frame_unwind_memory): Return bool.
6194 (deprecated_frame_register_read): Return bool.
6195 (frame_unwinder_is): Return bool.
6196 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6197 bool.
6198 <this_id::p>: Likewise.
6199 <prev_p>: Likewise.
6200 (frame_stash_add): Return bool.
6201 (get_frame_id): Use bool.
6202 (frame_id_build_special) Use bool.
6203 (frame_id_build_unavailable_stack): Use bool.
6204 (frame_id_build): Use bool.
6205 (frame_id_p): Return bool, use true/false instead of 1/0.
6206 (frame_id_artificial_p): Likewise.
6207 (frame_id_eq): Likewise.
6208 (frame_id_inner): Likewise.
6209 (get_frame_func_if_available): Likewise.
6210 (read_frame_register_unsigned): Likewise.
6211 (deprecated_frame_register_read): Likewise.
6212 (get_frame_register_bytes): Likewise.
6213 (has_stack_frames): Likewise.
6214 (inside_main_func): Likewise.
6215 (inside_entry_func): Likewise.
6216 (get_frame_pc_if_available): Likewise.
6217 (get_frame_address_in_block_if_available): Likewise.
6218 (frame_unwinder_is): Likewise.
6219 (safe_frame_unwind_memory): Likewise.
6220 (frame_unwind_arch): Likewise.
6221
fedfee88
SM
62222020-08-04 Simon Marchi <simon.marchi@efficios.com>
6223
6224 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6225 type to cached_copy_status.
6226 (fprintf_frame): Adjust.
6227 (get_frame_func_if_available): Adjust.
6228 (frame_cleanup_after_sniffer): Adjust.
6229
6cfa9b59
MW
62302020-08-04 Mark Wielaard <mark@klomp.org>
6231
6232 * MAINTAINERS (Write After Approval): Update email address.
6233
66d6346b
SM
62342020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6235
6236 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6237 dynamic_prop::const_val.
6238
8a6d5e35
SM
62392020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6240
6241 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6242 dynamic_prop::kind.
6243
51d6067d
SM
62442020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6245
6246 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6247
b26e2ae7
JM
62482020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6249
6250 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6251
39791af2
JM
62522020-08-04 Weimin Pan <weimin.pan@oracle.com>
6253 Jose E. Marchesi <jose.marchesi@oracle.com>
6254
6255 * configure.tgt: Add entry for bpf-*-*.
6256 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6257 (ALLDEPFILES): Add bpf-tdep.c.
6258 * bpf-tdep.c: New file.
6259 * MAINTAINERS: Add bpf target and maintainer.
6260 * NEWS: Mention the support for the new target.
6261
521894aa
TV
62622020-08-04 Tom de Vries <tdevries@suse.de>
6263
6264 PR symtab/23270
6265 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6266 Error.
6267
5d6356e9
JB
62682020-08-03 John Baldwin <jhb@FreeBSD.org>
6269
6270 * syscalls/freebsd.xml: Regenerate.
6271
0cf82b81
JB
62722020-08-03 John Baldwin <jhb@FreeBSD.org>
6273
6274 * syscalls/update-freebsd.sh: Fix usage and year range.
6275
8f34b746
TV
62762020-08-03 Tom de Vries <tdevries@suse.de>
6277
6278 PR symtab/26333
6279 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6280 DW_LNE_lo_user/DW_LNE_hi_user range.
6281
5e500d33
SM
62822020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6283
6284 PR ada/26318
6285 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6286 kind.
6287
78319c15
TBA
62882020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6289
6290 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6291
4c55e970
TBA
62922020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6293
6294 * breakpoint.c (set_breakpoint_condition): Update the condition
6295 expressions after checking that the input condition string parses
6296 successfully and does not contain junk at the end.
6297
1e620590
TBA
62982020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6299
6300 * breakpoint.c (set_breakpoint_condition): Update the
6301 condition string after parsing the new condition successfully.
6302
c8693053
RO
63032020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6304
6305 * proc-api.c (_STRUCTURED_PROC): Don't define.
6306 * proc-events.c: Likewise.
6307 * proc-flags.c: Likewise.
6308 * proc-why.c: Likewise.
6309 * procfs.c: Likewise.
6310
6311 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6312 * configure, config.in: Regenerate.
6313
5a99adb8
TV
63142020-07-30 Tom de Vries <tdevries@suse.de>
6315
6316 PR build/26320
6317 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6318 m_red/m_green/m_blue in a union.
6319
8ba83e91
TV
63202020-07-29 Tom de Vries <tdevries@suse.de>
6321
6322 PR tdep/26280
6323 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6324
f75a0693
AB
63252020-07-28 Tom Tromey <tromey@adacore.com>
6326
6327 PR symtab/26270:
6328 * symtab.h (find_pc_partial_function_sym): Declare.
6329 * cli/cli-cmds.c (disassemble_command): Use
6330 find_pc_partial_function_sym. Check asm_demangle.
6331 * blockframe.c (cache_pc_function_sym): New global.
6332 (cache_pc_function_name): Remove.
6333 (clear_pc_function_cache): Update.
6334 (find_pc_partial_function_sym): New function, from
6335 find_pc_partial_function.
6336 (find_pc_partial_function): Rewrite using
6337 find_pc_partial_function_sym.
6338
16f3242c
TT
63392020-07-28 Tom Tromey <tromey@adacore.com>
6340
6341 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6342 help. Add usage.
6343
4888741a
TT
63442020-07-28 Tom Tromey <tromey@adacore.com>
6345
6346 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6347 <DW_OP_GNU_variable_value>: Cast to address type.
6348
4d46f402
KR
63492020-07-28 Kamil Rytarowski <n54@gmx.com>
6350
6351 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6352 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6353 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6354 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6355 (nbsd_get_siginfo_type): New.
6356 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6357 (_initialize_nbsd_tdep): New.
6358
d70f978b
L
63592020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6360
6361 PR binutils/26301
6362 * configure: Regenerated.
6363
377170fa
L
63642020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6365
6366 PR binutils/26301
6367 * configure: Regenerated.
6368
43d5901d
AB
63692020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6370
6371 * python/py-frame.c: Remove 'user-regs.h' include.
6372 (frapy_read_register): Rewrite to make use of
6373 gdbpy_parse_register_id.
6374 * python/py-registers.c (gdbpy_parse_register_id): New function,
6375 moved here from python/py-unwind.c. Updated the return type, and
6376 also accepts register descriptor objects.
6377 * python/py-unwind.c: Remove 'user-regs.h' include.
6378 (pyuw_parse_register_id): Moved to python/py-registers.c.
6379 (unwind_infopy_add_saved_register): Update to use
6380 gdbpy_parse_register_id.
6381 (pending_framepy_read_register): Likewise.
6382 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6383
14fa8fb3
AB
63842020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6385
6386 * python/py-registers.c: Add 'user-regs.h' include.
6387 (register_descriptor_iter_find): New function.
6388 (register_descriptor_iterator_object_methods): New static global
6389 methods array.
6390 (register_descriptor_iterator_object_type): Add pointer to methods
6391 array.
6392
ddce1758
JB
63932020-07-27 John Baldwin <jhb@FreeBSD.org>
6394
6395 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6396 for all architectures on FreeBSD 11.3 and later.
6397
a4089f52
TT
63982020-07-27 Tom Tromey <tromey@adacore.com>
6399
6400 * gcore.h (load_corefile): Don't declare.
6401
95420d30
TV
64022020-07-27 Tom de Vries <tdevries@suse.de>
6403
6404 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6405 * config.in: Regenerate.
6406 * configure: Regenerate.
6407
05a6b8c2
EZ
64082020-07-26 Eli Zaretskii <eliz@gnu.org>
6409
6410 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6411 ws2tcpip.h. When checking whether socklen_t type is defined, use
6412 ws2tcpip.h if it is available and sys/socket.h isn't.
6413 * configure: Regenerate.
6414 * config.in: Regenerate.
6415
e79eb02f
AB
64162020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6417
6418 PR fortran/23051
6419 PR fortran/26139
6420 * valops.c (value_ind): Pass address to
6421 readjust_indirect_value_type.
6422 * value.c (readjust_indirect_value_type): Make parameter
6423 non-const, and add extra address parameter. Resolve original type
6424 before using it.
6425 * value.h (readjust_indirect_value_type): Update function
6426 signature and comment.
6427
876518dd
TV
64282020-07-25 Tom de Vries <tdevries@suse.de>
6429
6430 PR symtab/26243
6431 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6432 entries.
6433
f6720b1c
AM
64342020-07-24 Aaron Merey <amerey@redhat.com>
6435
6436 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6437 * configure: Rebuild.
6438
513487e1
KB
64392020-07-23 Kevin Buettner <kevinb@redhat.com>
6440
6441 PR corefiles/26294
6442 * corelow.c (_initialize_corelow): Add period to help text
6443 for "maintenance print core-file-backed-mappings".
6444
e7bc9db8
PA
64452020-07-23 Pedro Alves <pedro@palves.net>
6446
6447 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6448 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6449 meanwhile.
6450 * frame.c (frame_cache_generation, get_frame_cache_generation):
6451 New.
6452 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6453 (get_prev_frame_if_no_cycle): On exception, don't touch
6454 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6455 * frame.h (get_frame_cache_generation): Declare.
6456
90fcc466
TV
64572020-07-23 Tom de Vries <tdevries@suse.de>
6458
6459 PR tui/26282
6460 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6461 New default constructor.
6462
78344df7
AB
64632020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6464
6465 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6466 exclude non-statement entries.
6467
b089853a
KB
64682020-07-22 Kevin Buettner <kevinb@redhat.com>
6469
6470 * NEWS (New commands): Mention new command
6471 "maintenance print core-file-backed-mappings".
6472
09c2f5d4
KB
64732020-07-22 Kevin Buettner <kevinb@redhat.com>
6474
6475 * corelow.c (gdbcmd.h): Include.
6476 (core_target::info_proc_mappings): New method.
6477 (get_current_core_target): New function.
6478 (maintenance_print_core_file_backed_mappings): New function.
6479 (_initialize_corelow): Add core-file-backed-mappings to
6480 "maint print" commands.
6481
9c5ec5c2 64822020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6483
9c5ec5c2
KB
6484 * linux-tdep.c (dump_note_entry_p): New function.
6485 (linux_dump_mapping_p_ftype): New typedef.
6486 (linux_find_memory_regions_full): Add new parameter,
6487 should_dump_mapping_p.
6488 (linux_find_memory_regions): Adjust call to
6489 linux_find_memory_regions_full.
6490 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6491 call to linux_find_memory_regions_full.
6492
db082f59
KB
64932020-07-22 Kevin Buettner <kevinb@redhat.com>
6494
6495 * corelow.c (solist.h, unordered_map): Include.
6496 (class core_target): Add field m_core_file_mappings and
6497 method build_file_mappings.
6498 (core_target::core_target): Call build_file_mappings.
6499 (core_target::~core_target): Free memory associated with
6500 m_core_file_mappings.
6501 (core_target::build_file_mappings): New method.
6502 (core_target::xfer_partial): Use m_core_file_mappings
6503 for memory transfers.
6504 * linux-tdep.c (linux_read_core_file_mappings): New
6505 function.
6506 (linux_core_info_proc_mappings): Rewrite to use
6507 linux_read_core_file_mappings.
6508 (linux_init_abi): Register linux_read_core_file_mappings.
6509
7e183d27
KB
65102020-07-22 Kevin Buettner <kevinb@redhat.com>
6511
6512 * arch-utils.c (default_read_core_file_mappings): New function.
6513 * arch-utils.c (default_read_core_file_mappings): Declare.
6514 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6515 * gdbarch.h, gdbarch.c: Regenerate.
6516
2735d421
KB
65172020-07-22 Kevin Buettner <kevinb@redhat.com>
6518
6519 PR corefiles/25631
6520 * corelow.c (core_target:xfer_partial): Revise
6521 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6522 case after first checking the stratum beneath the core
6523 target.
6524 (has_all_memory): Return true.
6525 * target.c (raw_memory_xfer_partial): Revise comment
6526 regarding use of has_all_memory.
6527
e56cb451
KB
65282020-07-22 Kevin Buettner <kevinb@redhat.com>
6529
6530 * exec.h (section_table_xfer_memory): Revise declaration,
6531 replacing section name parameter with an optional callback
6532 predicate.
6533 * exec.c (section_table_xfer_memory): Likewise.
6534 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6535 of section_table_xfer_memory.
6536
32fa152e
TT
65372020-07-22 Tom Tromey <tromey@adacore.com>
6538
6539 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6540 lookup_symbol_search_name.
6541
a67a1c41
AB
65422020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6543
6544 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6545 redundant local variable.
6546 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6547 reference, not pointer, update code accordingly.
6548
a7b4ff4f
SM
65492020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6550 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6551
6552 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6553 * jit.c (jit_breakpoint_re_set_internal): Use the
6554 `skip_jit_symbol_lookup` field.
6555
2340e834
SM
65562020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6557 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6558
6559 * jit.c (jit_read_descriptor): Define the descriptor address once,
6560 use twice.
6561 (jit_breakpoint_deleted): Move the declaration of the loop variable
6562 `iter` into the loop header.
6563 (jit_breakpoint_re_set_internal): Move the declaration of the local
6564 variable `objf_data` to the first point of definition.
6565 (jit_event_handler): Move the declaration of local variables
6566 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6567 Rename `objf` to `jited`.
6568
c1072906
SM
65692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6570
6571 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6572 Remove.
6573 * jit.c (get_jiter_objfile_data): Update.
6574
c8474dc3
TBA
65752020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6576 Simon Marchi <simon.marchi@polymtl.ca>
6577
6578 * jit.c (struct jit_program_space_data): Remove.
6579 (jit_program_space_key): Remove.
6580 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6581 stuff.
6582 (get_jit_program_space_data): Remove.
6583 (jit_breakpoint_deleted): Iterate on all of the program space's
6584 objfiles.
6585 (jit_inferior_init): Likewise.
6586 (jit_breakpoint_re_set_internal): Likewise. Also change return
6587 type to void.
6588 (jit_breakpoint_re_set): Pass current_program_space to
6589 jit_breakpoint_re_set_internal.
6590
77208eb7
SM
65912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6592
6593 * jit.h (struct jiter_objfile_data) <cached_code_address,
6594 jit_breakpoint>: Move to here from ...
6595 * jit.c (jit_program_space_data): ... here.
6596 (jiter_objfile_data::~jiter_objfile_data): Update.
6597 (jit_breakpoint_deleted): Update.
6598 (jit_breakpoint_re_set_internal): Update.
6599
8c1c720f
SM
66002020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6601
6602 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6603 checks.
6604 (jit_read_descriptor): Remove NULL check.
6605 (jit_event_handler): Add an assertion.
6606
0e74a041
SM
66072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6608
6609 * jit.h (struct jit_objfile_data): Split into...
6610 (struct jiter_objfile_data): ... this ...
6611 (struct jited_objfile_data): ... and this.
6612 * objfiles.h (struct objfile) <jit_data>: Remove.
6613 <jiter_data, jited_data>: New fields.
6614 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6615 (jiter_objfile_data::~jiter_objfile_data): ... this.
6616 (get_jit_objfile_data): Rename to ...
6617 (get_jiter_objfile_data): ... this.
6618 (add_objfile_entry): Update.
6619 (jit_read_descriptor): Use get_jiter_objfile_data.
6620 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6621 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6622 (jit_inferior_exit_hook): Use objfile's jited_data field.
6623
238b5c9f
SM
66242020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6625
6626 * jit.h: Forward-declare `struct minimal_symbol`.
6627 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6628 constructor, destructor, and an objfile* field.
6629 * jit.c (jit_objfile_data): Remove.
6630 (struct jit_objfile_data): Migrate from here to jit.h.
6631 (jit_objfile_data::~jit_objfile_data): New destructor
6632 implementation with code moved from free_objfile_data.
6633 (free_objfile_data): Delete.
6634 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6635 (jit_find_objf_with_entry_addr): Ditto.
6636 (jit_inferior_exit_hook): Ditto.
6637 (_initialize_jit): Remove the call to
6638 register_objfile_data_with_cleanup.
6639 * objfiles.h (struct objfile) <jit_data>: New field.
6640
fe053b9e
TBA
66412020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6642
6643 * jit.h: Forward-declare `struct objfile`.
6644 (jit_event_handler): Add a second parameter, the JITer objfile.
6645 * jit.c (jit_read_descriptor): Change the signature to take the
6646 JITer objfile as an argument instead of the jit_program_space_data.
6647 (jit_inferior_init): Update the call to jit_read_descriptor.
6648 (jit_event_handler): Use the new JITer objfile argument when calling
6649 jit_read_descriptor.
6650 * breakpoint.c (handle_jit_event): Update the call to
6651 jit_event_handler to pass the JITer objfile.
6652
4cec0c66
JB
66532020-07-21 John Baldwin <jhb@FreeBSD.org>
6654
6655 * gdbarch.c: Regenerate.
6656 * gdbarch.h: Regenerate.
6657 * gdbarch.sh (handle_segmentation_fault): Remove method.
6658 * infrun.c (handle_segmentation_fault): Remove.
6659 (print_signal_received_reason): Remove call to
6660 handle_segmentation_fault.
6661
0e42f66a
JB
66622020-07-21 John Baldwin <jhb@FreeBSD.org>
6663
6664 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6665 Rename to sparc64_linux_report_signal_info and add siggnal
6666 argument.
6667 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6668 instead of sparc64_linux_handle_segmentation_fault.
6669
77bdfeb2
JB
66702020-07-21 John Baldwin <jhb@FreeBSD.org>
6671
6672 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6673 i386_linux_report_signal_info instead of
6674 i386_linux_handle_segmentation_fault.
6675 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6676 to i386_linux_report_signal_info and add siggnal argument.
6677 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6678 of i386_linux_handle_segmentation_fault.
6679 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6680 to i386_linux_report_signal_info and add siggnal argument.
6681
ad97bfc5
JB
66822020-07-21 John Baldwin <jhb@FreeBSD.org>
6683
6684 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6685 hook if present.
6686
272bb05c
JB
66872020-07-21 John Baldwin <jhb@FreeBSD.org>
6688
6689 * gdbarch.c: Regenerate.
6690 * gdbarch.h: Regenerate.
6691 * gdbarch.sh (report_signal_info): New method.
6692 * infrun.c (print_signal_received_reason): Invoke gdbarch
6693 report_signal_info hook if present.
6694
baf8791e
AB
66952020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6696
6697 * python/py-registers.c : Add 'unordered_map' include.
6698 (gdbpy_new_reggroup): Renamed to...
6699 (gdbpy_get_reggroup): ...this. Update to only create register
6700 group descriptors when needed.
6701 (gdbpy_reggroup_iter_next): Update.
6702
f7306dac
AB
67032020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6704
6705 * python/py-registers.c (gdbpy_register_object_data): New static
6706 global.
6707 (gdbpy_register_object_data_init): New function.
6708 (gdbpy_new_register_descriptor): Renamed to...
6709 (gdbpy_get_register_descriptor): ...this, and update to reuse
6710 existing register descriptors where possible.
6711 (gdbpy_register_descriptor_iter_next): Update.
6712 (gdbpy_initialize_registers): Register new gdbarch data.
6713
05c309a8
SM
67142020-07-21 Simon Marchi <simon.marchi@efficios.com>
6715
6716 * linux-nat.c (stopped_pids): Make static.
6717
d1fd641e
SM
67182020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6719
6720 PR ada/26235
6721 * gdbtypes.c (ada_discrete_type_low_bound,
6722 ada_discrete_type_high_bound): Handle undefined bounds.
6723
1de14d77
KR
67242020-07-21 Kamil Rytarowski <n54@gmx.com>
6725
6726 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6727 declaration.
6728 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6729 function.
6730
ed810cc7
JB
67312020-07-20 John Baldwin <jhb@FreeBSD.org>
6732
6733 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6734 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6735 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6736 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6737 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6738 method.
6739
ae5369e7
LC
67402020-07-20 Ludovic Courtès <ludo@gnu.org>
6741
6742 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6743 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6744 which are deprecated in Guile 3.0.
6745 * configure.ac (try_guile_versions): Add "guile-3.0".
6746 * configure (try_guile_versions): Regenerate.
6747 * NEWS: Update entry.
6748
68cf161c
LC
67492020-07-20 Ludovic Courtès <ludo@gnu.org>
6750 Doug Evans <dje@google.com>
6751
6752 PR gdb/21104
6753 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6754 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6755 USING_GUILE_BEFORE_2_2.
6756 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6757 Change type to 'scm_t_port_type *'.
6758 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6759 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6760 parameter and honor it. Update callers.
6761 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6762 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6763 functions.
6764 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6765 USING_GUILE_BEFORE_2_2.
6766 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6767 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6768 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6769 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6770 and 'SCM_PORT_TYPE'.
6771 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6772 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6773 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6774 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6775 [!USING_GUILE_BEFORE_2_2]: New functions.
6776 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6777 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6778 'gdbscm_memory_port_read'.
6779 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6780 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6781 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6782 function.
6783 (ioscm_init_memory_port): Remove.
6784 (ioscm_init_memory_port_stream): New function
6785 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6786 function.
6787 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6788 Return scm_from_uint (0).
6789 (gdbscm_set_memory_port_read_buffer_size_x)
6790 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6791 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6792 Return scm_from_uint (0).
6793 (gdbscm_set_memory_port_write_buffer_size_x)
6794 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6795 * configure.ac (try_guile_versions): Add "guile-2.2".
6796 * configure: Regenerate.
6797 * NEWS: Add entry.
6798
aee91db3
TT
67992020-07-18 Tom Tromey <tom@tromey.com>
6800
6801 * linux-nat.c (linux_multi_process): Remove.
6802 (linux_nat_target::supports_multi_process): Return true.
6803
0e267416
AB
68042020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6805
6806 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6807 (riscv_lookup_target_description): Return pointer out of
6808 unique_ptr.
6809 * target-descriptions.c (allocate_target_description): Add
6810 comment.
6811 (target_desc_deleter::operator()): Likewise.
6812 * target-descriptions.h (struct target_desc_deleter): Moved to
6813 gdbsupport/tdesc.h.
6814 (target_desc_up): Likewise.
6815
f80c8ec4
TT
68162020-07-17 Tom Tromey <tromey@adacore.com>
6817
6818 * linux-nat.c (linux_nat_target::supports_non_stop)
6819 (linux_nat_target::always_non_stop_p): Use "true".
6820 (linux_nat_target::supports_disable_randomization): Use "true" and
6821 "false".
6822
d0ce17d8
CT
68232020-07-16 Caroline Tice <cmtice@google.com>
6824
6825 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6826 (RNGLIST_HEADER_SIZE64): New constant definition.
6827 (struct dwop_section_names): Add rnglists_dwo.
6828 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6829 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6830 (struct dwo_sections): Add rnglists field.
6831 (read_attribut_reprocess): Add tag parameter.
6832 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6833 (cu_debug_rnglists_section): New function (decl & definition).
6834 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6835 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6836 die whose range is being checked; get rnglist section from
6837 cu_debug_rnglists_section, to get from either objfile or dwo file as
6838 appropriate. Add cases for DW_RLE_base_addressx,
6839 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6840 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6841 test inside if-condition and updating complaint message.
6842 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6843 dwarf2_rnglists_process.
6844 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6845 dwarf2_ranges_process.
6846 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6847 need_ranges_base and update comment appropriately. Also pass die tag
6848 to dwarf2_ranges_read.
6849 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6850 need_ranges_base and update comment appropriately. Also pass die tag
6851 to dwarf2_ranges_process.
6852 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6853 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6854 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6855 need_ranges_base and update comment appropriately. Also pass die tag
6856 to read_attribute_reprocess and dwarf2_ranges_read.
6857 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6858 and update function comment appropriately.
6859 (read_loclist_index): Call read_loclists_rnglists_header instead of
6860 read_loclist_header.
6861 (read_rnglist_index): New function.
6862 (read_attribute_reprocess): Add tag parameter. Add code for
6863 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6864 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6865
3dcc261c
AB
68662020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6867
6868 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6869 being resolved.
6870
ccb9eba6
AB
68712020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6872
6873 * arch-utils.c (show_architecture): Update formatting of messages.
6874
cf88be68
SM
68752020-07-12 Simon Marchi <simon.marchi@efficios.com>
6876
6877 * gdbtypes.h (struct type) <bounds>: Handle array and string
6878 types.
6879 * ada-lang.c (assign_aggregate): Use type::bounds on
6880 array/string type.
6881 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6882 * c-varobj.c (c_number_of_children): Likewise.
6883 (c_describe_child): Likewise.
6884 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6885 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6886 (f_type_print_base): Likewise.
6887 * f-valprint.c (f77_array_offset_tbl): Likewise.
6888 (f77_get_upperbound): Likewise.
6889 (f77_print_array_1): Likewise.
6890 * guile/scm-type.c (gdbscm_type_range): Likewise.
6891 * m2-typeprint.c (m2_array): Likewise.
6892 (m2_is_long_set_of_type): Likewise.
6893 * m2-valprint.c (get_long_set_bounds): Likewise.
6894 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6895 * python/py-type.c (typy_range): Likewise.
6896 * rust-lang.c (rust_internal_print_type): Likewise.
6897 * type-stack.c (type_stack::follow_types): Likewise.
6898 * valarith.c (value_subscripted_rvalue): Likewise.
6899 * valops.c (value_cast): Likewise.
6900
509971ae
SM
69012020-07-12 Simon Marchi <simon.marchi@efficios.com>
6902
6903 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6904 callers to use the equivalent accessor methods.
6905
107406b7
SM
69062020-07-12 Simon Marchi <simon.marchi@efficios.com>
6907
6908 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6909 (struct type) <bit_stride>: New method.
6910 (TYPE_BIT_STRIDE): Remove.
6911 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6912
bb789949
SM
69132020-07-12 Simon Marchi <simon.marchi@efficios.com>
6914
6915 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6916 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6917 callers to use the equivalent accessor methods instead.
6918
39498edb
SM
69192020-07-12 Simon Marchi <simon.marchi@efficios.com>
6920
6921 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6922 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6923 callers to use the equivalent accessor methods instead.
6924
3b606f38
SM
69252020-07-12 Simon Marchi <simon.marchi@efficios.com>
6926
6927 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6928 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6929 to use dynamic_prop::kind.
6930
064d9cb9
SM
69312020-07-12 Simon Marchi <simon.marchi@efficios.com>
6932
6933 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6934 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6935 to get the bound property's kind and check against
6936 PROP_UNDEFINED.
6937
5537ddd0
SM
69382020-07-12 Simon Marchi <simon.marchi@efficios.com>
6939
6940 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6941 all callers to use type::range_bounds followed by
6942 dynamic_prop::{low,high}.
6943
8c2e4e06
SM
69442020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6945
6946 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6947 const_val, set_const_val, baton, set_locexpr, set_loclist,
6948 set_addr_offset, variant_parts, set_variant_parts,
6949 original_type, set_original_type>: New methods.
6950 <kind>: Rename to...
6951 <m_kind>: ... this. Update all users to use the new methods
6952 instead.
6953 <data>: Rename to...
6954 <m_data>: ... this. Update all users to use the new methods
6955 instead.
6956
7c6f2712
SM
69572020-07-12 Simon Marchi <simon.marchi@efficios.com>
6958
6959 * gdbtypes.c (get_discrete_bounds): Return failure if
6960 the range type's bounds are not both defined and constant
6961 values.
6962 (get_array_bounds): Update comment. Remove undefined bound check.
6963
599088e3
SM
69642020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6965
6966 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6967 the type::bounds method directly.
6968
c4dfcb36
SM
69692020-07-12 Simon Marchi <simon.marchi@efficios.com>
6970
6971 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6972 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6973 are used to set the range type's bounds to use set_bounds.
6974
0a278aa7
PW
69752020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6976
6977 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6978
cce20f10
PA
69792020-07-10 Pedro Alves <pedro@palves.net>
6980
6981 * gdbthread.h (inferior_ref): Define.
6982 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6983 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6984 * thread.c
6985 (scoped_restore_current_thread::restore):
6986 Adjust to gdb::ref_ptr.
6987 (scoped_restore_current_thread::~scoped_restore_current_thread):
6988 Remove manual decref handling.
6989 (scoped_restore_current_thread::scoped_restore_current_thread):
6990 Adjust to use
6991 inferior_ref::new_reference/thread_info_ref::new_reference.
6992 Incref the thread before calling get_frame_id instead of after.
6993 Let TARGET_CLOSE_ERROR propagate.
6994
6d7aa592
PA
69952020-07-10 Pedro Alves <pedro@palves.net>
6996
6997 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6998 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6999 NOT_AVAILABLE_ERROR.
7000 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7001 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7002
b3e3a4c1
SM
70032020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7004 Pedro Alves <pedro@palves.net>
7005
7006 PR gdb/26199
7007 * infrun.c (threads_are_resumed_pending_p): Delete.
7008 (do_target_wait): Remove threads_are_executing and
7009 threads_are_resumed_pending_p checks from the inferior_matches
7010 lambda. Update comments.
7011
d6cc5d98
PA
70122020-07-10 Pedro Alves <pedro@palves.net>
7013
7014 PR gdb/26199
7015 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7016 executing threads.
7017
7d3badc6
PA
70182020-07-10 Pedro Alves <pedro@palves.net>
7019
7020 PR gdb/26199
7021 * infrun.c (handle_no_resumed): Handle multiple targets.
7022
42bd97a6
PA
70232020-07-10 Pedro Alves <pedro@palves.net>
7024
7025 PR gdb/26199
7026 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7027 target_is_async_p.
7028
43667cc6
PA
70292020-07-10 Pedro Alves <pedro@palves.net>
7030
7031 PR gdb/26199
7032 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7033 threads, not all threads.
7034
96118d11
PA
70352020-07-10 Pedro Alves <pedro@palves.net>
7036
7037 PR gdb/26199
7038 * remote.c (remote_target::open_1): Pass remote target pointer as
7039 data to create_async_event_handler.
7040 (remote_async_inferior_event_handler): Mark async event handler
7041 before returning if the remote target still has either pending
7042 events or unacknowledged notifications.
7043
54904d81
JB
70442020-07-10 John Baldwin <jhb@FreeBSD.org>
7045
7046 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7047 declaration.
7048 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7049 function.
7050
f37e5866
JB
70512020-07-09 John Baldwin <jhb@FreeBSD.org>
7052
7053 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7054 inferior_ptid.
7055
fc238d4a
JB
70562020-07-09 John Baldwin <jhb@FreeBSD.org>
7057
7058 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7059 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7060 AT_FREEBSD_PS_STRINGS.
7061
6e2469ff
HD
70622020-07-08 Hannes Domani <ssbssa@yahoo.de>
7063
7064 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7065 of debugfile path on Windows.
7066
d1076c41
JB
70672020-07-08 John Baldwin <jhb@FreeBSD.org>
7068
7069 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7070 argument to 'data'.
7071
15f3b077
TT
70722020-07-08 Tom Tromey <tromey@adacore.com>
7073
7074 * ada-lang.c (ada_exception_message_1): Use read_memory.
7075
9fc501fd
AB
70762020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7077
7078 PR python/22748
7079 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7080 special handling for inline frames.
7081 * findvar.c (value_of_register_lazy): Skip inline frames when
7082 creating lazy register values.
7083 * frame.c (frame_id_computed_p): Delete definition.
7084 * frame.h (frame_id_computed_p): Delete declaration.
7085
64cb3757
AB
70862020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7087
7088 * NEWS: Mention additions to Python API.
7089 * python/py-arch.c (archpy_register_groups): New function.
7090 (arch_object_methods): Add 'register_groups' method.
7091 * python/py-registers.c (reggroup_iterator_object): New struct.
7092 (reggroup_object): New struct.
7093 (gdbpy_new_reggroup): New function.
7094 (gdbpy_reggroup_to_string): New function.
7095 (gdbpy_reggroup_name): New function.
7096 (gdbpy_reggroup_iter): New function.
7097 (gdbpy_reggroup_iter_next): New function.
7098 (gdbpy_new_reggroup_iterator): New function
7099 (gdbpy_initialize_registers): Register new types.
7100 (reggroup_iterator_object_type): Define new Python type.
7101 (gdbpy_reggroup_getset): New static global.
7102 (reggroup_object_type): Define new Python type.
7103 * python/python-internal.h
7104
0f767f94
AB
71052020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7106
7107 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7108 * python/py-arch.c (archpy_registers): New function.
7109 (arch_object_methods): Add 'registers' method.
7110 * python/py-registers.c: New file.
7111 * python/python-internal.h
7112 (gdbpy_new_register_descriptor_iterator): Declare.
7113 (gdbpy_initialize_registers): Declare.
7114 * python/python.c (do_start_initialization): Call
7115 gdbpy_initialize_registers.
7116 * NEWS: Mention additions to the Python API.
7117
87dbc774
AB
71182020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7119
7120 * NEWS: Mention new Python API method.
7121 * python/py-unwind.c (pending_framepy_architecture): New function.
7122 (pending_frame_object_methods): Add architecture method.
7123
3bc98c0c
AB
71242020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7125
7126 * gdbarch.c: Regenerate.
7127 * gdbarch.h: Regenerate.
7128 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7129 (gdbarch_data): Use internal_error for the case where
7130 deprecated_set_gdbarch_data was originally needed.
7131 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7132 and use passed in obstack.
7133 (libunwind_frame_set_descr): Should no longer get back NULL from
7134 gdbarch_data.
7135 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7136 type.
7137 * user-regs.c (user_regs_init): Update parameters, and use passed
7138 in obstack.
7139 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7140 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7141
d8cc8af6
TV
71422020-07-06 Tom de Vries <tdevries@suse.de>
7143
7144 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7145 End-Of-Sequence in lte_is_less_than.
7146 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7147 "gdb: Don't reorder line table entries too much when sorting".
7148
947f7597
TV
71492020-07-06 Tom de Vries <tdevries@suse.de>
7150
7151 PR tui/26205
7152 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7153
1e7c1b22
TV
71542020-07-05 Tom de Vries <tdevries@suse.de>
7155
7156 PR build/26187
7157 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7158 std::uncaught_exceptions instead of deprecated
7159 std::uncaught_exception.
7160
a36158ec
SM
71612020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7162
7163 * macroexp.h (macro_stringify): Return
7164 gdb::unique_xmalloc_ptr<char>.
7165 * macroexp.c (macro_stringify): Likewise.
7166 * macrotab.c (fixup_definition): Update.
7167
14d960c8
SM
71682020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7169
7170 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7171 (lex_one_token): Update.
7172 * macroexp.c (struct macro_buffer) <release>: Return
7173 gdb::unique_xmalloc_ptr<char>.
7174 (macro_stringify): Update.
7175 (macro_expand): Update.
7176 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7177 * macroexp.h (macro_expand_next): Likewise.
7178
211d5b1c
SM
71792020-07-02 Simon Marchi <simon.marchi@efficios.com>
7180
7181 * macroexp.h (macro_lookup_ftype): Remove.
7182 (macro_expand, macro_expand_once, macro_expand_next): Remove
7183 lookup function parameters, add scope parameter.
7184 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7185 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7186 * macroscope.h (standard_macro_lookup): Change parameter type
7187 to macro_scope.
7188 * macroscope.c (standard_macro_lookup): Likewise.
7189 * c-exp.y (lex_one_token): Update.
7190 * macrocmd.c (macro_expand_command): Likewise.
7191 (macro_expand_once_command): Likewise.
7192
b1a35af2
SM
71932020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7194
7195 * inf-loop.c (inferior_event_handler): Remove client_data param.
7196 * inf-loop.h (inferior_event_handler): Likewise.
7197 * infcmd.c (step_1): Adjust.
7198 * infrun.c (proceed): Adjust.
7199 (fetch_inferior_event): Remove client_data param.
7200 (infrun_async_inferior_event_handler): Adjust.
7201 * infrun.h (fetch_inferior_event): Remove `void *` param.
7202 * linux-nat.c (handle_target_event): Adjust.
7203 * record-btrace.c (record_btrace_handle_async_inferior_event):
7204 Adjust.
7205 * record-full.c (record_full_async_inferior_event_handler):
7206 Adjust.
7207 * remote.c (remote_async_inferior_event_handler): Adjust.
7208
1cdf9e33
TT
72092020-07-01 Tom Tromey <tom@tromey.com>
7210
7211 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7212 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7213
32c1e210
TT
72142020-07-01 Tom Tromey <tom@tromey.com>
7215
7216 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7217 tui_gen_win_info.
7218 (tui_win_info::make_window): Merge with
7219 tui_gen_win_info::make_window.
7220 (tui_win_info::make_visible): Move from tui_gen_win_info.
7221 * tui/tui-win.c (tui_win_info::max_width): Move from
7222 tui_gen_win_info.
7223 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7224 type.
7225 <window_factory>: Likewise.
7226 * tui/tui-layout.c (tui_win_info::resize): Move from
7227 tui_gen_win_info.
7228 (make_standard_window): Change return type.
7229 (get_locator_window, tui_get_window_by_name): Likewise.
7230 (tui_layout_window::apply): Remove a cast.
7231 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7232 (struct tui_win_info): Merge with tui_gen_win_info.
7233 (struct tui_gen_win_info): Remove.
7234
a30cb6da
TT
72352020-07-01 Tom Tromey <tom@tromey.com>
7236
7237 * tui/tui-stack.h (struct tui_locator_window): Derive from
7238 tui_win_info.
7239 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7240 <can_box>: New method.
7241
1eb2161f
TT
72422020-07-01 Tom Tromey <tom@tromey.com>
7243
7244 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7245
7134f2eb
TT
72462020-07-01 Tom Tromey <tom@tromey.com>
7247
7248 * tui/tui-regs.c (tui_data_window::display_registers_from)
7249 (tui_data_window::display_registers_from)
7250 (tui_data_window::first_data_item_displayed)
7251 (tui_data_window::delete_data_content_windows): Update.
7252 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7253 Remove.
7254 (tui_data_window::check_register_values): Update.
7255 (tui_data_item_window::rerender): Add parameters. Update.
7256 (tui_data_item_window::refresh_window): Remove.
7257 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7258 virtual.
7259 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7260 tui_gen_win_info.
7261 <refresh_window, max_height, min_height>: Remove.
7262 <rerender>: Add parameters.
7263 <x, y, visible>: New members.
7264 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7265 <m_item_width>: New member.
7266
22b7b041
TT
72672020-07-01 Tom Tromey <tom@tromey.com>
7268
7269 * tui/tui-regs.c (tui_data_window::show_register_group)
7270 (tui_data_window::check_register_values): Update.
7271 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7272 from item_no.
7273
c9753adb
TT
72742020-07-01 Tom Tromey <tom@tromey.com>
7275
7276 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7277 useless "if".
7278
9ab26b4a
TT
72792020-07-01 Tom Tromey <tom@tromey.com>
7280
7281 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7282 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7283
e555083f
TT
72842020-07-01 Tom Tromey <tom@tromey.com>
7285
7286 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7287 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7288 (struct tui_line_or_address): Move from tui-data.h.
7289 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7290 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7291 (tui_cmd_window, tui_source_window_base, tui_source_window)
7292 (tui_disasm_window): Don't declare.
7293 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7294 to tui-winsource.h.
7295 (SINGLE_KEY): Move to tui-stack.c.
7296
7a02bab7
TT
72972020-07-01 Tom Tromey <tom@tromey.com>
7298
7299 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7300 std::string.
7301 * tui/tui-regs.c (class tab_expansion_file): New.
7302 (tab_expansion_file::write): New method.
7303 (tui_register_format): Change return type. Use
7304 tab_expansion_file.
7305 (tui_get_register, tui_data_window::display_registers_from)
7306 (tui_data_item_window::rerender): Update.
7307 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7308 * tui/tui-io.c (tui_expand_tabs): Remove.
7309
ea68593b
TT
73102020-07-01 Tom Tromey <tom@tromey.com>
7311
7312 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7313
a8caed5d
FS
73142020-07-01 Fangrui Song <maskray@google.com>
7315
7316 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7317
9cdf9820
AKS
73182020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7319
7320 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7321 forms for DW_AT_associated and DW_AT_allocated attributes,
7322 which is already checked in function attr_to_dynamic_prop.
7323
a1520ad8
TT
73242020-06-30 Tom Tromey <tromey@adacore.com>
7325
7326 * dwarf2/read.c (quirk_rust_enum): Correctly call
7327 alloc_rust_variant for default-less enum.
7328
5ac58899
TT
73292020-06-30 Tom Tromey <tromey@adacore.com>
7330
7331 PR build/26183:
7332 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7333 gdb::to_string.
7334
19b187a9
SM
73352020-06-29 Simon Marchi <simon.marchi@efficios.com>
7336
7337 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7338 * gdbarch.h: Re-generate.
7339
cd4c4c07
TT
73402020-06-28 Tom Tromey <tom@tromey.com>
7341
7342 * command.h (cmd_types): Remove.
7343 (cmd_type): Don't declare.
7344 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7345 typedef.
7346 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7347 * cli/cli-decode.c (cmd_type): Remove.
7348
05779d57
PA
73492020-06-27 Pedro Alves <palves@redhat.com>
7350
7351 * fork-child.c (prefork_hook): Adjust.
7352 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7353 Delete.
7354 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7355 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7356 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7357 Remove declarations.
7358 (struct inferior) <set_tty, tty>: New methods.
7359 (struct inferior) <terminal>: Rename to ...
7360 (struct inferior) <m_terminal>: ... this and make private.
7361 * main.c (captured_main_1): Adjust.
7362 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7363 (mi_cmd_inferior_tty_show): Adjust.
7364 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7365 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7366
1776e3e5
NA
73672020-06-26 Nick Alcock <nick.alcock@oracle.com>
7368
7369 * configure.ac: Add --enable-libctf: handle --disable-static
7370 properly.
7371 * acinclude.m4: sinclude ../config/enable.m4.
7372 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7373 (LIBCTF): Substitute in.
7374 (CTF_DEPS): New, likewise.
7375 (CLIBS): libctf needs symbols from libbfd: move earlier.
7376 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7377 flags.
7378 * ctfread.c: Surround in ENABLE_LIBCTF.
7379 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7380 * configure: Regenerate.
7381 * config.in: Likewise.
7382
58373b80
SM
73832020-06-25 Simon Marchi <simon.marchi@efficios.com>
7384
7385 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7386
277474ee
SM
73872020-06-25 Simon Marchi <simon.marchi@efficios.com>
7388
7389 * inferior.h (struct inferior) <terminal>: Change type to
7390 gdb::unique_xmalloc_ptr<char>.
7391 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7392 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7393 field, adjust to unique pointer.
7394 (get_inferior_io_terminal): Adjust to unique pointer.
7395
6d74da72
AB
73962020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7397
7398 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7399 registers, not just the known core set of registers.
7400
2e52d038
AB
74012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7402
7403 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7404 fflags, frm, and fcsr registers.
7405 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7406 restore groups.
7407 (riscv_tdesc_unknown_reg): New function.
7408 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7409 tdesc_use_registers.
7410 * riscv-tdep.h (struct gdbarch_tdep): Add
7411 unknown_csrs_first_regnum, unknown_csrs_count,
7412 duplicate_fflags_regnum, duplicate_frm_regnum, and
7413 duplicate_fcsr_regnum fields.
7414
be64fd07
AB
74152020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7416
7417 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7418 callback, use the callback (when not null) to help number unknown
7419 registers.
7420 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7421 (tdesc_use_registers): Add extra parameter to declaration.
7422
3b9fce96
AB
74232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7424
7425 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7426 in the file.
7427 (class riscv_pending_register_alias): Likewise.
7428 (riscv_register_feature::register_info): Change 'required_p' field
7429 to 'required', and change its type. Add 'check' member function.
7430 (riscv_register_feature::register_info::check): Define new member
7431 function.
7432 (riscv_xreg_feature): Change initialisation of 'required' field.
7433 (riscv_freg_feature): Likewise.
7434 (riscv_virtual_feature): Likewise.
7435 (riscv_csr_feature): Likewise.
7436 (riscv_check_tdesc_feature): Take extra parameter, the csr
7437 tdesc_feature, rewrite the function to use the new
7438 riscv_register_feature::register_info::check function.
7439 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7440
865bad26
AB
74412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7442
7443 * features/Makefile: Remove all references to the deleted files
7444 below.
7445 * features/riscv/32bit-csr.c: Deleted.
7446 * features/riscv/32bit-csr.xml: Deleted.
7447 * features/riscv/64bit-csr.c: Deleted.
7448 * features/riscv/64bit-csr.xml: Deleted.
7449 * features/riscv/rebuild-csr-xml.sh: Deleted.
7450
ed69cbc8
AB
74512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7452
7453 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7454 whitespace error for declaration of names member variable.
7455 (struct riscv_register_feature): Add new prefer_first_name member
7456 variable, and fix whitespace error in declaration of registers.
7457 (riscv_xreg_feature): Initialize prefer_first_name field.
7458 (riscv_freg_feature): Likewise.
7459 (riscv_virtual_feature): Likewise.
7460 (riscv_csr_feature): Likewise.
7461 (riscv_register_name): Expand on comments. Remove register name
7462 modifications for CSR and virtual registers.
7463
4445e8f5
AB
74642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7465
7466 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7467 errors.
7468
767a879e
AB
74692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7470
7471 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7472 riscv-opc.h.
7473 (class riscv_pending_register_alias): New class.
7474 (riscv_check_tdesc_feature): Take vector of pending aliases and
7475 populate it as appropriate.
7476 (riscv_setup_register_aliases): Delete.
7477 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7478 to riscv_check_tdesc_feature in all cases. Use the vector to
7479 create the register aliases.
7480
bb6e55f3
RO
74812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7482
7483 * sol2-tdep.c (sol2_static_transform_name): Remove.
7484 (sol2_init_abi): Don't register it.
7485 * gdbarch.sh (static_transform_name): Remove.
7486 * gdbarch.c, gdbarch.h: Regenerate.
7487
7488 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7489 gdbarch_static_transform_name.
7490 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7491 * stabsread.c (define_symbol) <'X'>: Remove.
7492 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7493 handling.
7494 <'V'>: Likewise.
7495 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7496 <'S'>: Remove call to gdbarch_static_transform_name.
7497
c6d36836
RO
74982020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7499
7500 * procfs.c (procfs_pre_trace): New function.
7501 (procfs_target::create_inferior): Pass it to fork_inferior.
7502
a7e6196b
RO
75032020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7504
7505 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7506 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7507 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7508 sol2-tdep.o, sparc-sol2-tdep.o.
7509 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7510 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7511 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7512 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7513
d412e696
RO
75142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7515
7516 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7517 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7518 Call sol2_init_abi.
7519 Remove calls to set_gdbarch_skip_solib_resolver,
7520 set_gdbarch_core_pid_to_str.
7521 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7522 (i386_sol2_static_transform_name): Remove.
7523 (i386_sol2_init_abi): Call sol2_init_abi.
7524 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7525 set_gdbarch_static_transform_name,
7526 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7527 Use sol2_sigtramp_p.
7528 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7529 (sol2_sigtramp_p): New function.
7530 (sol2_static_transform_name): New function.
7531 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7532 (sol2_init_abi): New function.
7533 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7534 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7535 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7536 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7537 (sparc_sol2_static_transform_name): Remove.
7538 (sparc32_sol2_init_abi): Call sol2_init_abi.
7539 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7540 set_gdbarch_static_transform_name,
7541 set_gdbarch_skip_solib_resolver,
7542 set_gdbarch_core_pid_to_str.
7543 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7544 (sparc_sol2_static_transform_name): Remove
7545 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7546 call sol2_sigtramp_p.
7547 (sparc64_sol2_init_abi): Call sol2_init_abi.
7548 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7549 set_gdbarch_static_transform_name,
7550 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7551
a8654e7d
PW
75522020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7553
7554 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7555 * exec.c (validate_exec_file): If from_tty, set both
7556 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7557 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7558 and from_tty, unconditionally ask a confirmation.
7559
caa7fd04
AB
75602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7561
7562 * target-descriptions.c (tdesc_architecture_name): Protect against
7563 NULL pointer dereference.
7564 (maint_print_xml_tdesc_cmd): New function.
7565 (_initialize_target_descriptions): Register new 'maint print
7566 xml-tdesc' command and give it the filename completer.
7567 * NEWS: Mention new 'maint print xml-tdesc' command.
7568
fbf42f4e
AB
75692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7570
7571 * target-descriptions.c (class tdesc_compatible_info): New class.
7572 (struct target_desc): Change type of compatible vector.
7573 (tdesc_compatible_p): Update for change in type of
7574 target_desc::compatible.
7575 (tdesc_compatible_info_list): New function.
7576 (tdesc_compatible_info_arch_name): New function.
7577 (tdesc_add_compatible): Update for change in type of
7578 target_desc::compatible.
7579 (print_c_tdesc::visit_pre): Likewise.
7580
20821f4e
AB
75812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7582
7583 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7584 whitespace to underscore.
7585 (maint_print_c_tdesc_cmd): Use fake filename for target
7586 descriptions that came from the target.
7587 (_initialize_target_descriptions): Add filename command completion
7588 for 'maint print c-tdesc'.
7589
1fb5ee62
SM
75902020-06-23 Simon Marchi <simon.marchi@efficios.com>
7591
7592 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7593 lines.
7594
fc3ecb3e
SM
75952020-06-23 Simon Marchi <simon.marchi@efficios.com>
7596
7597 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7598 lines.
7599 (dwarf2_find_location_expression): Likewise.
7600 (call_site_parameter_matches): Likewise.
7601 (dwarf2_compile_expr_to_ax): Likewise.
7602 (disassemble_dwarf_expression): Likewise.
7603 (loclist_describe_location): Likewise.
7604
236ef034
PA
76052020-06-23 Pedro Alves <palves@redhat.com>
7606
7607 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7608 progspace-and-thread.h. Include scoped-mock-context.h instead.
7609 (register_to_value_test): Use scoped_mock_context.
7610 * regcache.c: Include "scoped-mock-context.h".
7611 (cooked_read_test): Don't error out if a target is already pushed.
7612 Use scoped_mock_context. Adjust.
7613 * scoped-mock-context.h: New file.
7614
39e7ecca
AB
76152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7616
7617 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7618 initializer.
7619 (ada_language::is_string_type_p): New member function.
7620 * c-lang.c (c_language_data): Delete la_is_string_type_p
7621 initializer.
7622 (cplus_language_data): Likewise.
7623 (asm_language_data): Likewise.
7624 (minimal_language_data): Likewise.
7625 * d-lang.c (d_language_data): Likewise.
7626 * f-lang.c (f_is_string_type_p): Delete function, implementation
7627 moved to f_language::is_string_type_p.
7628 (f_language_data): Delete la_is_string_type_p initializer.
7629 (f_language::is_string_type_p): New member function,
7630 implementation from f_is_string_type_p.
7631 * go-lang.c (go_is_string_type_p): Delete function, implementation
7632 moved to go_language::is_string_type_p.
7633 (go_language_data): Delete la_is_string_type_p initializer.
7634 (go_language::is_string_type_p): New member function,
7635 implementation from go_is_string_type_p.
7636 * language.c (language_defn::is_string_type_p): Define new member
7637 function.
7638 (default_is_string_type_p): Make static, add comment copied from
7639 header file.
7640 (unknown_language_data): Delete la_is_string_type_p initializer.
7641 (unknown_language::is_string_type_p): New member function.
7642 (auto_language_data): Delete la_is_string_type_p initializer.
7643 (auto_language::is_string_type_p): New member function.
7644 * language.h (language_data): Delete la_is_string_type_p field.
7645 (language_defn::is_string_type_p): Declare new function.
7646 (default_is_string_type_p): Delete desclaration, move comment to
7647 definition.
7648 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7649 moved to m2_language::is_string_type_p.
7650 (m2_language_data): Delete la_is_string_type_p initializer.
7651 (m2_language::is_string_type_p): New member function,
7652 implementation from m2_is_string_type_p.
7653 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7654 initializer.
7655 * opencl-lang.c (opencl_language_data): Likewise.
7656 * p-lang.c (pascal_is_string_type_p): Delete function,
7657 implementation moved to pascal_language::is_string_type_p.
7658 (pascal_language_data): Delete la_is_string_type_p initializer.
7659 (pascal_language::is_string_type_p): New member function,
7660 implementation from pascal_is_string_type_p.
7661 * rust-lang.c (rust_is_string_type_p): Delete function,
7662 implementation moved to rust_language::is_string_type_p.
7663 (rust_language_data): Delete la_is_string_type_p initializer.
7664 (rust_language::is_string_type_p): New member function,
7665 implementation from rust_is_string_type_p.
7666 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7667 is_string_type_p.
7668
4ffc13fb
AB
76692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7670
7671 * ada-lang.c (ada_language_data): Delete la_print_typedef
7672 initializer.
7673 (ada_language::print_typedef): New member function.
7674 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7675 (cplus_language_data): Likewise.
7676 (asm_language_data): Likewise.
7677 (minimal_language_data): Likewise.
7678 * d-lang.c (d_language_data): Likewise.
7679 * f-lang.c (f_language_data): Likewise.
7680 (f_language::print_typedef): New member function.
7681 * go-lang.c (go_language_data): Delete la_print_typedef
7682 initializer.
7683 * language.c (language_defn::print_typedef): Define member
7684 function.
7685 (unknown_language_data): Delete la_print_typedef initializer.
7686 (unknown_language::print_typedef): New member function.
7687 (auto_language_data): Delete la_print_typedef initializer.
7688 (auto_language::print_typedef): New member function.
7689 * language.h (language_data): Delete la_print_typedef field.
7690 (language_defn::print_typedef): Declare new member function.
7691 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7692 (default_print_typedef): Delete declaration.
7693 * m2-lang.c (m2_language_data): Delete la_print_typedef
7694 initializer.
7695 (m2_language::print_typedef): New member function.
7696 * objc-lang.c (objc_language_data): Delete la_print_typedef
7697 initializer.
7698 * opencl-lang.c (opencl_language_data): Likewise.
7699 * p-lang.c (pascal_language_data): Likewise.
7700 (pascal_language::print_typedef): New member function.
7701 * rust-lang.c (rust_print_typedef): Delete function,
7702 implementation moved to rust_language::print_typedef.
7703 (rust_language): Delete la_print_typedef initializer.
7704 (rust_language::print_typedef): New member function,
7705 implementation from rust_print_typedef.
7706 * typeprint.c (default_print_typedef): Delete.
7707
d711ee67
AB
77082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7709
7710 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7711 (ada_language::printstr): New member function.
7712 * c-lang.c (c_language_data): Delete la_printstr initializer.
7713 (cplus_language_data): Likewise.
7714 (asm_language_data): Likewise.
7715 (minimal_language_data): Likewise.
7716 * d-lang.c (d_language_data): Likewise.
7717 * f-lang.c (f_printstr): Rename to f_language::printstr.
7718 (f_language_data): Delete la_printstr initializer.
7719 (f_language::printstr): New member function, implementation from
7720 f_printstr.
7721 * go-lang.c (go_language_data): Delete la_printstr initializer.
7722 * language.c (language_defn::printstr): Define new member
7723 function.
7724 (unk_lang_printstr): Delete.
7725 (unknown_language_data): Delete la_printstr initializer.
7726 (unknown_language::printstr): New member function.
7727 (auto_language_data): Delete la_printstr initializer.
7728 (auto_language::printstr): New member function.
7729 * language.h (language_data): Delete la_printstr field.
7730 (language_defn::printstr): Declare new member function.
7731 (LA_PRINT_STRING): Update call to printstr.
7732 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7733 (m2_language_data): Delete la_printstr initializer.
7734 (m2_language::printstr): New member function, implementation from
7735 m2_printstr.
7736 * objc-lang.c (objc_language_data): Delete la_printstr
7737 initializer.
7738 * opencl-lang.c (opencl_language_data): Likewise.
7739 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7740 (pascal_language_data): Delete la_printstr initializer.
7741 (pascal_language::printstr): New member function, implementation
7742 from pascal_printstr.
7743 * p-lang.h (pascal_printstr): Delete declaration.
7744 * rust-lang.c (rust_printstr): Update header comment.
7745 (rust_language_data): Delete la_printstr initializer.
7746 (rust_language::printstr): New member function.
7747
52b50f2c
AB
77482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7749
7750 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7751 (ada_language::printchar): New member function.
7752 * c-lang.c (c_language_data): Delete la_printchar initializer.
7753 (cplus_language_data): Likewise.
7754 (asm_language_data): Likewise.
7755 (minimal_language_data): Likewise.
7756 * d-lang.c (d_language_data): Likewise.
7757 * f-lang.c (f_printchar): Rename to f_language::printchar.
7758 (f_language_data): Delete la_printchar initializer.
7759 (f_language::printchar): New member function, implementation from
7760 f_printchar.
7761 * go-lang.c (go_language_data): Delete la_printchar initializer.
7762 * language.c (unk_lang_printchar): Delete.
7763 (language_defn::printchar): Define new member function.
7764 (unknown_language_data): Delete la_printchar initializer.
7765 (unknown_language::printchar): New member function.
7766 (auto_language_data): Delete la_printchar initializer.
7767 (auto_language::printchar): New member function.
7768 * language.h (language_data): Delete la_printchar field.
7769 (language_defn::printchar): Declare new member function.
7770 (LA_PRINT_CHAR): Update call to printchar.
7771 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7772 (m2_language::printchar): New member function.
7773 * objc-lang.c (objc_language_data): Delete la_printchar
7774 initializer.
7775 * opencl-lang.c (opencl_language_data): Likewise.
7776 * p-lang.c (pascal_language_data): Delete la_printchar
7777 initializer.
7778 (pascal_language::printchar): New member function.
7779 * rust-lang.c (rust_printchar): Rename to
7780 rust_language::printchar.
7781 (rust_language_data): Delete la_printchar initializer.
7782 (rust_language::printchar): New member function, implementation
7783 from rust_printchar.
7784
ec8cec5b
AB
77852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7786
7787 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7788 (ada_language_data): Delete la_emitchar initializer.
7789 (ada_language::emitchar): New member function, implementation from
7790 emit_char.
7791 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7792 (cplus_language_data): Likewise.
7793 (asm_language_data): Likewise.
7794 (minimal_language_data): Likewise.
7795 * d-lang.c (d_language_data): Likewise.
7796 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7797 (f_language_data): Delete la_emitchar initializer.
7798 (f_language::emitchar): New member function, implementation from
7799 f_emit_char.
7800 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7801 * language.c (unk_lang_emit_char): Delete.
7802 (language_defn::emitchar): New member function definition.
7803 (unknown_language_data): Delete la_emitchar initializer.
7804 (unknown_language::emitchar): New member function.
7805 (auto_language_data): Delete la_emitchar initializer.
7806 (auto_language::emitchar): New member function.
7807 * language.h (language_data): Delete la_emitchar field.
7808 (language_defn::emitchar): New member field declaration.
7809 (LA_EMIT_CHAR): Update call to emitchar.
7810 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7811 (m2_language_data): Delete la_emitchar initializer.
7812 (m2_language::emitchar): New member function, implementation from
7813 m2_emit_char.
7814 * objc-lang.c (objc_language_data): Delete la_emitchar
7815 initializer.
7816 * opencl-lang.c (opencl_language_data): Likewise.
7817 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7818 (pascal_language_data): Delete la_emitchar initializer.
7819 (pascal_language::emitchar): New member function, implementation
7820 from pascal_emit_char.
7821 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7822 (rust_language_data): Delete la_emitchar initializer.
7823 (rust_language::emitchar): New member function, implementation
7824 from rust_emitchar.
7825
1bf9c363
AB
78262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7827
7828 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7829 (ada_language_data): Delete la_post_parser initializer.
7830 (ada_language::post_parser): New member function.
7831 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7832 (cplus_language_data): Likewise.
7833 (asm_language_data): Likewise.
7834 (minimal_language_data): Likewise.
7835 * d-lang.c (d_language_data): Likewise.
7836 * f-lang.c (f_language_data): Likewise.
7837 * go-lang.c (go_language_data): Likewise.
7838 * language.c (unknown_language_data): Likewise.
7839 (auto_language_data): Likewise.
7840 * language.h (language_data): Delete la_post_parser field.
7841 (language_defn::post_parser): New member function.
7842 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7843 * objc-lang.c (objc_language_data): Likewise.
7844 * opencl-lang.c (opencl_language_data): Likewise.
7845 * p-lang.c (pascal_language_data): Likewise.
7846 * parse.c (parse_exp_in_context): Update call to post_parser.
7847 (null_post_parser): Delete definition.
7848 * parser-defs.h (null_post_parser): Delete declaration.
7849 * rust-lang.c (rust_language_data): Delete la_post_parser
7850 initializer.
7851
87afa652
AB
78522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7853
7854 * ada-lang.c (parse): Rename to ada_language::parser.
7855 (ada_language_data): Delete la_parser initializer.
7856 (ada_language::parser): New member function, implementation from
7857 parse.
7858 * c-lang.c (c_language_data): Delete la_parser initializer.
7859 (cplus_language_data): Likewise.
7860 (asm_language_data): Likewise.
7861 (minimal_language_data): Likewise.
7862 * d-lang.c (d_language_data): Likewise.
7863 (d_language::parser): New member function.
7864 * f-lang.c (f_language_data): Delete la_parser initializer.
7865 (f_language::parser): New member function.
7866 * go-lang.c (go_language_data): Delete la_parser initializer.
7867 (go_language::parser): New member function.
7868 * language.c (unk_lang_parser): Delete.
7869 (language_defn::parser): Define new member function.
7870 (unknown_language_data): Delete la_parser initializer.
7871 (unknown_language::parser): New member function.
7872 (auto_language_data): Delete la_parser initializer.
7873 (auto_language::parser): New member function.
7874 * language.h (language_data): Delete la_parser field.
7875 (language_defn::parser): Declare new member function.
7876 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7877 (m2_language::parser): New member function.
7878 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7879 * opencl-lang.c (opencl_language_data): Likewise.
7880 * p-lang.c (pascal_language_data): Likewise.
7881 (pascal_language::parser): New member function.
7882 * parse.c (parse_exp_in_context): Update call to parser.
7883 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7884 (rust_language::parser): New member function.
7885
37825800
AB
78862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7887
7888 * top.c (print_gdb_configuration): Print --with-python-libdir
7889 configuration value.
7890
5b860c93
PW
78912020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7892
7893 * NEWS: Mention change to the alias command.
7894
cf00cd6f
PW
78952020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7896
7897 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7898 (alias_command_completer)
7899 (make_alias_options_def_group): New functions.
7900 (alias_opts, alias_option_defs): New struct and array.
7901 (alias_usage_error): Update usage.
7902 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7903 Use option framework.
7904 (_initialize_cli_cmds): Update alias command help.
7905 Update aliases command help.
7906 (show_user):
7907 Add NULL for new default_args lookup_cmd argument.
7908 (valid_command_p): Rename to validate_aliased_command.
7909 Add NULL for new default_args lookup_cmd argument. Verify that the
7910 aliased_command has no default args.
7911 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7912 (lookup_cmd_1, lookup_cmd): New argument default_args.
7913 (add_alias_cmd):
7914 Add NULL for new default_args lookup_cmd argument.
7915 (print_help_for_command): Show default args under the layout
7916 alias some_alias = some_aliased_cmd some_alias_default_arg.
7917 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7918 xfree default_args in destructor.
7919 * cli/cli-script.c (process_next_line, do_define_command):
7920 Add NULL for new default_args lookup_cmd argument.
7921 * command.h: Declare new default_args argument in lookup_cmd
7922 and lookup_cmd_1.
7923 * completer.c (complete_line_internal_1):
7924 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7925 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7926 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7927 Likewise.
7928 * infcmd.c (_initialize_infcmd): Likewise.
7929 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7930 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7931 * python/py-param.c (add_setshow_generic): Likewise.
7932 * remote.c (_initialize_remote): Likewise.
7933 * top.c (execute_command): Prepend default_args if command has some.
7934 (set_verbose):
7935 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7936 * tracepoint.c (validate_actionline, encode_actions_1):
7937 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7938
bd920864
TBA
79392020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7940
7941 * jit.c (jit_read_descriptor): Use bool as the return type.
7942 (jit_breakpoint_re_set_internal): Use bool as the return type.
7943 Invert the return value logic; return true if the jit breakpoint
7944 has been successfully initialized.
7945 (jit_inferior_init): Update the call to
7946 jit_breakpoint_re_set_internal.
7947
f8098322
PA
79482020-06-22 Pedro Alves <palves@redhat.com>
7949
7950 PR gdb/25939
7951 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7952 Use the current inferior instead. Don't return
7953 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7954 wait again.
7955 * sol-thread.c (sol_thread_target::wait): Don't reference
7956 inferior_ptid.
7957 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7958 (sol_update_thread_list_callback): Use the current inferior's pid
7959 instead of inferior_ptid.
7960
196535a6
RO
79612020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7962
7963 * procfs.c: Cleanup many comments.
7964
7965 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7966 (AFTER_WATCHFLAG): Replace by value.
7967
7968 (MAIN_PROC_NAME_FORMAT): Inline ...
7969 (create_procinfo): ... here.
7970
7971 (procfs_debug_inferior): Remove SYS_exec handling.
7972 (syscall_is_exec): Likewise.
7973 (procfs_set_exec_trap): Likewise.
7974
7975 (syscall_is_lwp_exit): Inline in callers.
7976 (syscall_is_exit): Likewise.
7977 (syscall_is_exec): Likewise.
7978 (syscall_is_lwp_create): Likewise.
7979
7980 (invalidate_cache): Remove #if 0 code.
7981
7982 (make_signal_thread_runnable): Remove.
7983 (procfs_target::resume): Remove #if 0 code.
7984
cf6f3e86
RO
79852020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7986
7987 PR gdb/25939
7988 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7989 call ...
7990 (procfs_target::create_inferior): ... here.
7991
48e9cc84
PW
79922020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7993
7994 * exec.c (validate_exec_file): Ensure the build-id is up to
7995 date by calling reopen_exec_file (that checks file timestamp
7996 to decide to re-read the file).
7997
3922b302
PA
79982020-06-18 Pedro Alves <palves@redhat.com>
7999
8000 PR gdb/25412
8001 * gdbthread.h (delete_thread, delete_thread_silent)
8002 (find_thread_ptid): Update comments.
8003 * thread.c (current_thread_): New global.
8004 (is_current_thread): Move higher, and reimplement.
8005 (inferior_thread): Reimplement.
8006 (set_thread_exited): Use bool. Add assertions.
8007 (add_thread_silent): Simplify thread-reuse handling by always
8008 calling delete_thread.
8009 (delete_thread): Remove intro comment.
8010 (find_thread_ptid): Skip exited threads.
8011 (switch_to_thread_no_regs): Write to current_thread_.
8012 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8013 INFERIOR_PTID. Clear current_thread_.
8014
6dbdab44
PA
80152020-06-18 Pedro Alves <palves@redhat.com>
8016
8017 * aix-thread.c (pd_update): Use switch_to_thread.
8018
2da4b788
PA
80192020-06-18 Pedro Alves <palves@redhat.com>
8020
8021 * ravenscar-thread.c (ravenscar_thread_target): Update.
8022 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8023 (ravenscar_thread_target::add_active_thread): ... this. Don't
8024 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8025 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8026
50838d1b
PA
80272020-06-18 Pedro Alves <palves@redhat.com>
8028
8029 * nat/windows-nat.c (current_windows_thread): Remove.
8030 * nat/windows-nat.h (current_windows_thread): Remove.
8031 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8032 Adjust.
8033 (display_selectors): Adjust to fetch the current
8034 windows_thread_info based on inferior_ptid.
8035 (fake_create_process): No longer write to current_windows_thread.
8036 (windows_nat_target::get_windows_debug_event):
8037 Don't set inferior_ptid or current_windows_thread.
8038 (windows_nat_target::wait): Adjust to not rely on
8039 current_windows_thread.
8040 (do_initial_windows_stuff): Now a method of windows_nat_target.
8041 Switch to the last_ptid thread.
8042 (windows_nat_target::attach): Adjust.
8043 (windows_nat_target::detach): Use switch_to_no_thread instead of
8044 writing to inferior_ptid directly.
8045 (windows_nat_target::create_inferior): Adjust.
8046
31ce04e9
PA
80472020-06-18 Pedro Alves <palves@redhat.com>
8048
8049 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8050
1ee1a363
PA
80512020-06-18 Pedro Alves <palves@redhat.com>
8052
8053 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8054 after creating it, instead of writing to inferior_ptid. Don't
8055 write to inferior_ptid.
8056
6d350754
PA
80572020-06-18 Pedro Alves <palves@redhat.com>
8058
8059 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8060
5d971d48
PA
80612020-06-18 Pedro Alves <palves@redhat.com>
8062
8063 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8064 it, instead of writing to inferior_ptid.
8065
86e57d1b
PA
80662020-06-18 Pedro Alves <palves@redhat.com>
8067
8068 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8069 to inferior_ptid.
8070
f2e1c129
PA
80712020-06-18 Pedro Alves <palves@redhat.com>
8072
8073 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8074 instead of writing to inferior_ptid directly.
8075
60db1b85
PA
80762020-06-18 Pedro Alves <palves@redhat.com>
8077
8078 * corelow.c (core_target::close): Use switch_to_no_thread instead
8079 of writing to inferior_ptid directly.
8080 (add_to_thread_list, core_target_open): Use switch_to_thread
8081 instead of writing to inferior_ptid directly.
8082
fe7d6a8d
PA
80832020-06-18 Pedro Alves <palves@redhat.com>
8084
8085 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8086 inferior_ptid.
8087 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8088 inferior_ptid.
8089 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8090 inferior_ptid directly.
8091 (darwin_nat_target::init_thread_list): Switch to thread, instead
8092 of writing to inferior_ptid.
8093 (darwin_nat_target::attach): Don't write to inferior_ptid.
8094 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8095
975f8708
PA
80962020-06-18 Pedro Alves <palves@redhat.com>
8097
8098 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8099 thread.
8100 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8101 Instead use switch_to_thread.
8102 (gnu_nat_target::detach): Use switch_to_no_thread
8103 instead of writing to inferior_ptid directly. Used passed-in
8104 inferior instead of looking up the inferior by pid.
8105
1a204730
PA
81062020-06-18 Pedro Alves <palves@redhat.com>
8107
8108 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8109 inferior_ptid.
8110
ebe84f23
PA
81112020-06-18 Pedro Alves <palves@redhat.com>
8112
8113 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8114 inferior_ptid.
8115 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8116 thread.
8117 (nto_procfs_target::detach): Avoid referencing
8118 inferior_ptid. Use switch_to_no_thread instead of writing to
8119 inferior_ptid directly.
8120 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8121 instead of writing to inferior_ptid directly.
8122 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8123 to thread.
8124
191f02e5
PA
81252020-06-18 Pedro Alves <palves@redhat.com>
8126
8127 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8128 after creating it, instead of writing to inferior_ptid.
8129 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8130 to inferior_ptid directly.
8131 (gdbsim_target::wait): Don't write to inferior_ptid.
8132
0ac55310
PA
81332020-06-18 Pedro Alves <palves@redhat.com>
8134
8135 * remote.c (remote_target::remote_notice_new_inferior): Use
8136 switch_to_thread instead of writing to inferior_ptid directly.
8137 (remote_target::add_current_inferior_and_thread): Use
8138 switch_to_no_thread instead of writing to inferior_ptid directly.
8139 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8140 and switch_to_thread instead of using set_current_inferior or
8141 writing to inferior_ptid directly.
8142
5233f39b
PA
81432020-06-18 Pedro Alves <palves@redhat.com>
8144
8145 * tracectf.c (ctf_target_open): Switch to added thread instead of
8146 writing to inferior_ptid directly.
8147 (ctf_target::close): Use switch_to_no_thread instead of writing to
8148 inferior_ptid directly.
8149
087e161b
PA
81502020-06-18 Pedro Alves <palves@redhat.com>
8151
8152 * tracefile-tfile.c (tfile_target_open): Don't write to
8153 inferior_ptid directly, instead switch to added thread.
8154 (tfile_target::close): Use switch_to_no_thread instead of writing
8155 to inferior_ptid directly.
8156
7fb43e53
PA
81572020-06-18 Pedro Alves <palves@redhat.com>
8158
8159 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8160 (procfs_target::detach): Use switch_to_no_thread
8161 instead of writing to inferior_ptid directly.
8162 (do_attach): Change return type to void. Switch to the added
8163 thread.
8164 (procfs_target::create_inferior): Switch to the added thread.
8165 (procfs_do_thread_registers): Don't write to inferior_ptid.
8166
18493a00
PA
81672020-06-18 Pedro Alves <palves@redhat.com>
8168
8169 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8170 of writing to inferior_ptid.
8171 (scoped_restore_exited_inferior): Delete.
8172 (handle_vfork_child_exec_or_exit): Simplify using
8173 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8174 instead of writing to inferior_ptid.
8175 (THREAD_STOPPED_BY): Delete.
8176 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8177 (thread_stopped_by_hw_breakpoint): Delete.
8178 (save_waitstatus): Use
8179 scoped_restore_current_thread+switch_to_thread, and call
8180 target_stopped_by_watchpoint instead of
8181 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8182 instead of thread_stopped_by_sw_breakpoint, and
8183 target_stopped_by_hw_breakpoint instead of
8184 thread_stopped_by_hw_breakpoint.
8185 (handle_inferior_event)
8186 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8187 inferior_ptid directly, nor
8188 set_current_inferior/set_current_program_space. Use
8189 switch_to_thread / switch_to_inferior_no_thread instead.
8190
a0776b13
PA
81912020-06-18 Pedro Alves <palves@redhat.com>
8192
8193 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8194 instead of writing to inferior_ptid.
8195
6155c136
PA
81962020-06-18 Pedro Alves <palves@redhat.com>
8197
8198 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8199 added thread.
8200 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8201 to the added thread.
8202 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8203 instead of writing to inferior_ptid.
8204
c5316fc6
PA
82052020-06-18 Pedro Alves <palves@redhat.com>
8206
8207 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8208 (register_to_value_test): Mock a program_space too. Heap-allocate
8209 the address space. Don't write to inferior_ptid. Use
8210 switch_to_thread instead.
8211
8df01799
PA
82122020-06-18 Pedro Alves <palves@redhat.com>
8213
8214 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8215 Delete.
8216 (find_signalled_thread()): New, factored out from
8217 linux_make_corefile_notes and adjusted to handle exited threads.
8218 (linux_make_corefile_notes): Adjust to use the new
8219 find_signalled_thread.
8220
41792d68
PA
82212020-06-18 Pedro Alves <palves@redhat.com>
8222
8223 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8224 of saving/restoring inferior_ptid.
8225
612f258a
TT
82262020-06-17 Tom Tromey <tom@tromey.com>
8227
8228 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8229 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8230 declare.
8231 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8232
efb763a5
SM
82332020-06-15 Simon Marchi <simon.marchi@efficios.com>
8234
8235 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8236 of partial symtabs.
8237
2951f6c0
SM
82382020-06-17 Simon Marchi <simon.marchi@efficios.com>
8239
8240 * regformats/reg-arm.dat: Remove.
8241 * regformats/reg-bfin.dat: Remove.
8242 * regformats/reg-cris.dat: Remove.
8243 * regformats/reg-crisv32.dat: Remove.
8244 * regformats/reg-m32r.dat: Remove.
8245 * regformats/reg-tilegx.dat: Remove.
8246 * regformats/reg-tilegx32.dat: Remove.
8247
7d458ea5
SM
82482020-06-17 Simon Marchi <simon.marchi@efficios.com>
8249
8250 * features/Makefile (WHICH): Remove arm files.
8251 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8252 * regformats/arm/arm-with-neon.dat: Remove.
8253 * regformats/arm/arm-with-vfpv2.dat: Remove.
8254 * regformats/arm/arm-with-vfpv3.dat: Remove.
8255
3af96c0d
SM
82562020-06-17 Simon Marchi <simon.marchi@efficios.com>
8257
8258 * features/Makefile (XMLTOC): Remove rx.xml.
8259
b25e22fd
PA
82602020-06-17 Pedro Alves <palves@redhat.com>
8261
8262 * gdbthread.h (thread_control_state) <trap_expected> Update
8263 comments.
8264
a78a19b1
AB
82652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8266
8267 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8268 ada_language::lookup_symbol_nonlocal.
8269 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8270 (ada_language::lookup_symbol_nonlocal): New member function,
8271 implementation from ada_lookup_symbol_nonlocal.
8272 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8273 initializer.
8274 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8275 initializer.
8276 (cplus_language::lookup_symbol_nonlocal): New member function.
8277 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8278 (minimal_language_data) Likewise.
8279 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8280 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8281 initializer.
8282 (d_language::lookup_symbol_nonlocal): New member function.
8283 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8284 initializer.
8285 (f_language::lookup_symbol_nonlocal): New member function.
8286 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8287 initializer.
8288 * language.c (unknown_language_data): Likewise.
8289 (auto_language_data): Likewise.
8290 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8291 field.
8292 (language_defn::lookup_symbol_nonlocal): New member function.
8293 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8294 initializer.
8295 * objc-lang.c (objc_language_data): Likewise.
8296 * opencl-lang.c (opencl_language_data): Likewise.
8297 * p-lang.c (pascal_language_data): Likewise.
8298 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8299 rust_language::lookup_symbol_nonlocal.
8300 (rust_language_data): Delete la_lookup_symbol_nonlocal
8301 initializer.
8302 (rust_language::lookup_symbol_nonlocal): New member function,
8303 implementation from rust_lookup_symbol_nonlocal.
8304 * symtab.c (lookup_symbol_aux): Update call to
8305 lookup_symbol_nonlocal.
8306 (basic_lookup_symbol_nonlocal): Rename to...
8307 (language_defn::lookup_symbol_nonlocal): ...this, and update
8308 header comment. Remove language_defn parameter, and replace with
8309 uses of `this'.
8310 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8311
ebe2334e
AB
83122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8313
8314 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8315 initializer.
8316 (ada_language::value_print_inner): New member function.
8317 * c-lang.c (c_language_data): Delete la_value_print_inner
8318 initializer.
8319 (cplus_language_data): Likewise.
8320 (asm_language_data): Likewise.
8321 (minimal_language_data): Likewise.
8322 * d-lang.c (d_language_data): Likewise.
8323 (d_language::value_print_inner): New member function.
8324 * f-lang.c (f_language_data): Delete la_value_print_inner
8325 initializer.
8326 (f_language::value_print_inner): New member function.
8327 * f-lang.h (f_value_print_innner): Rename to...
8328 (f_value_print_inner): ...this (note spelling of 'inner').
8329 * f-valprint.c (f_value_print_innner): Rename to...
8330 (f_value_print_inner): ...this (note spelling of 'inner').
8331 * go-lang.c (go_language_data): Delete la_value_print_inner
8332 initializer.
8333 (go_language::value_print_inner): New member function.
8334 * language.c (language_defn::value_print_inner): Define new member
8335 function.
8336 (unk_lang_value_print_inner): Delete.
8337 (unknown_language_data): Delete la_value_print_inner initializer.
8338 (unknown_language::value_print_inner): New member function.
8339 (auto_language_data): Delete la_value_print_inner initializer.
8340 (auto_language::value_print_inner): New member function.
8341 * language.h (language_data): Delete la_value_print_inner field.
8342 (language_defn::value_print_inner): Delcare new member function.
8343 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8344 initializer.
8345 (m2_language::value_print_inner): New member function.
8346 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8347 initializer.
8348 * opencl-lang.c (opencl_language_data): Likewise.
8349 * p-lang.c (pascal_language_data): Likewise.
8350 (pascal_language::value_print_inner): New member function.
8351 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8352 initializer.
8353 (rust_language::value_print_inner): New member function.
8354 * valprint.c (do_val_print): Update call to value_print_inner.
8355
a1d1fa3e
AB
83562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8357
8358 * ada-lang.c (ada_language_data): Delete la_value_print
8359 initializer.
8360 (ada_language::value_print): New member function.
8361 * c-lang.c (c_language_data): Delete la_value_print initializer.
8362 (cplus_language_data): Likewise.
8363 (asm_language_data): Likewise.
8364 (minimal_language_data): Likewise.
8365 * d-lang.c (d_language_data): Likewise.
8366 * f-lang.c (f_language_data): Likewise.
8367 * go-lang.c (go_language_data): Likewise.
8368 * language.c (unk_lang_value_print): Delete.
8369 (language_defn::value_print): Define new member function.
8370 (unknown_language_data): Delete la_value_print initializer.
8371 (unknown_language::value_print): New member function.
8372 (auto_language_data): Delete la_value_print initializer.
8373 (auto_language::value_print): New member function.
8374 * language.h (language_data): Delete la_value_print field.
8375 (language_defn::value_print): Declare new member function.
8376 (LA_VALUE_PRINT): Update call to value_print.
8377 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8378 * objc-lang.c (objc_language_data): Likewise.
8379 * opencl-lang.c (opencl_language_data): Likewise.
8380 * p-lang.c (pascal_language_data): Likewise.
8381 (pascal_language::value_print): New member function.
8382 * rust-lang.c (rust_language_data): Delete la_value_print
8383 initializer.
8384
f16a9f57
AB
83852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8386
8387 * ada-lang.c (ada_watch_location_expression): Rename to
8388 ada_language::watch_location_expression.
8389 (ada_language_data): Delete la_watch_location_expression
8390 initializer.
8391 (ada_language::watch_location_expression): New member function,
8392 implementation from ada_watch_location_expression.
8393 * breakpoint.c (watch_command_1): Update call to
8394 watch_location_expression.
8395 * c-lang.c (c_watch_location_expression): Rename to
8396 language_defn::watch_location_expression.
8397 (c_language_data): Delete la_watch_location_expression
8398 initializer.
8399 (cplus_language_data): Likewise.
8400 (asm_language_data): Likewise.
8401 (minimal_language_data): Likewise.
8402 * c-lang.h (c_watch_location_expression): Delete declaration.
8403 * d-lang.c (d_language_data): Delete la_watch_location_expression
8404 initializer.
8405 * f-lang.c (f_language_data): Likewise.
8406 * go-lang.c (go_language_data): Likewise.
8407 * language.c (language_defn::watch_location_expression): Member
8408 function implementation from c_watch_location_expression.
8409 (unknown_language_data): Delete la_watch_location_expression
8410 initializer.
8411 (auto_language_data): Likewise.
8412 * language.h (language_data): Delete la_watch_location_expression
8413 field.
8414 (language_defn::watch_location_expression): Declare new member
8415 function.
8416 * m2-lang.c (m2_language_data): Delete
8417 la_watch_location_expression initializer.
8418 * objc-lang.c (objc_language_data): Likewise.
8419 * opencl-lang.c (opencl_language_data): Likewise.
8420 * p-lang.c (pascal_language_data): Likewise.
8421 * rust-lang.c (rust_watch_location_expression): Rename to
8422 rust_language::watch_location_expression.
8423 (rust_language_data): Delete la_watch_location_expression
8424 initializer.
8425 (rust_language::watch_location_expression): New member function,
8426 implementation from rust_watch_location_expression.
8427
7e56227d
AB
84282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8429
8430 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8431 ada_language::collect_symbol_completion_matches.
8432 (ada_language_data): Delete la_collect_symbol_completion_matches
8433 initializer.
8434 (ada_language::collect_symbol_completion_matches): New member
8435 function, implementation from
8436 ada_collect_symbol_completion_matches.
8437 * c-lang.c (c_language_data): Delete
8438 la_collect_symbol_completion_matches initializer.
8439 (cplus_language_data): Likewise.
8440 (asm_language_data): Likewise.
8441 (minimal_language_data): Likewise.
8442 * d-lang.c (d_language_data): Likewise.
8443 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8444 f_language::collect_symbol_completion_matches.
8445 (f_language_data): Delete la_collect_symbol_completion_matches
8446 initializer.
8447 (f_language::collect_symbol_completion_matches) New member
8448 function, implementation from f_collect_symbol_completion_matches.
8449 * go-lang.c (go_language_data): Delete
8450 la_collect_symbol_completion_matches initializer.
8451 * language.c (unknown_language_data): Likewise.
8452 (auto_language_data): Likewise.
8453 * language.h (language_data): Delete
8454 la_collect_symbol_completion_matches field.
8455 (language_defn::collect_symbol_completion_matches): New member
8456 function.
8457 * m2-lang.c (m2_language_data): Delete
8458 la_collect_symbol_completion_matches initializer.
8459 * objc-lang.c (objc_language_data): Likewise.
8460 * opencl-lang.c (opencl_language_data): Likewise.
8461 * p-lang.c (pascal_language_data): Likewise.
8462 * rust-lang.c (rust_language_data): Likewise.
8463 * symtab.c (default_collect_symbol_completion_matches): Delete.
8464 (collect_symbol_completion_matches): Update call to
8465 collect_symbol_completion_matches.
8466 (collect_symbol_completion_matches_type): Likewise.
8467 * symtab.h (default_collect_symbol_completion_matches): Delete
8468 declaration.
8469
53fc67f8
AB
84702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8471
8472 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8473 (ada_language_data): Delete la_word_break_characters initializer.
8474 (ada_language::word_break_characters): New member function.
8475 * c-lang.c (c_language_data): Delete la_word_break_characters
8476 initializer.
8477 (cplus_language_data): Likewise.
8478 (asm_language_data): Likewise.
8479 (minimal_language_data): Likewise.
8480 * completer.c: Update global comment.
8481 (advance_to_expression_complete_word_point): Update call to
8482 word_break_characters.
8483 (complete_files_symbols): Likewise.
8484 (complete_line_internal_1): Likewise.
8485 (default_completer_handle_brkchars): Likewise.
8486 (skip_quoted_chars): Likewise.
8487 * d-lang.c (d_language_data): Delete la_word_break_characters
8488 initializer.
8489 * f-lang.c (f_word_break_characters): Delete.
8490 (f_language_data): Delete la_word_break_characters initializer.
8491 (f_language::word_break_characters): New member function.
8492 * go-lang.c (go_language_data): Delete la_word_break_characters
8493 initializer.
8494 * language.c (unknown_language_data): Likewise.
8495 (auto_language_data): Likewise.
8496 * language.h (default_word_break_characters): Move declaration to
8497 earlier in the file.
8498 (language_data): Delete la_word_break_characters field.
8499 (language_defn::word_break_characters): New member function.
8500 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8501 initializer.
8502 * objc-lang.c (objc_language_data): Likewise.
8503 * opencl-lang.c (opencl_language_data): Likewise.
8504 * p-lang.c (pascal_language_data): Likewise.
8505 * rust-lang.c (rust_language_data): Likewise.
8506
c9debfb9
AB
85072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8508
8509 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8510 (ada_language_data): Delete la_get_symbol_name_matcher
8511 initializer.
8512 (language_defn::get_symbol_name_matcher_inner): New member
8513 function.
8514 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8515 initializer.
8516 (cplus_language_data): Likewise.
8517 (cplus_language::get_symbol_name_matcher_inner): New member
8518 function.
8519 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8520 (minimal_language_data): Likewise.
8521 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8522 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8523 initializer.
8524 * dictionary.c (iter_match_first_hashed): Update call to
8525 get_symbol_name_matcher.
8526 (iter_match_next_hashed): Likewise.
8527 (iter_match_next_linear): Likewise.
8528 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8529 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8530 initializer.
8531 (f_language::get_symbol_name_matcher_inner): New member function.
8532 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8533 initializer.
8534 * language.c (default_symbol_name_matcher): Update header comment,
8535 make static.
8536 (language_defn::get_symbol_name_matcher): New definition.
8537 (language_defn::get_symbol_name_matcher_inner): Likewise.
8538 (get_symbol_name_matcher): Delete.
8539 (unknown_language_data): Delete la_get_symbol_name_matcher
8540 initializer.
8541 (auto_language_data): Likewise.
8542 * language.h (language_data): Delete la_get_symbol_name_matcher
8543 field.
8544 (language_defn::get_symbol_name_matcher): New member function.
8545 (language_defn::get_symbol_name_matcher_inner): Likewise.
8546 (default_symbol_name_matcher): Delete declaration.
8547 * linespec.c (find_methods): Update call to
8548 get_symbol_name_matcher.
8549 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8550 initializer.
8551 * minsyms.c (lookup_minimal_symbol): Update call to
8552 get_symbol_name_matcher.
8553 (iterate_over_minimal_symbols): Likewise.
8554 * objc-lang.c (objc_language_data): Delete
8555 la_get_symbol_name_matcher initializer.
8556 * opencl-lang.c (opencl_language_data): Likewise.
8557 * p-lang.c (pascal_language_data): Likewise.
8558 * psymtab.c (psymbol_name_matches): Update call to
8559 get_symbol_name_matcher.
8560 * rust-lang.c (rust_language_data): Delete
8561 la_get_symbol_name_matcher initializer.
8562 * symtab.c (symbol_matches_search_name): Update call to
8563 get_symbol_name_matcher.
8564 (compare_symbol_name): Likewise.
8565
9a49ad8c
AB
85662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8567
8568 * ada-lang.c (ada_language_data): Delete la_compute_program
8569 initializer.
8570 * c-lang.c (c_language_data): Likewise.
8571 (c_language::compute_program): New member function.
8572 (cplus_language_data): Delete la_compute_program initializer.
8573 (cplus_language::compute_program): New member function.
8574 (asm_language_data): Delete la_compute_program initializer.
8575 (minimal_language_data): Likewise.
8576 * c-lang.h (c_compute_program): Update comment.
8577 (cplus_compute_program): Likewise.
8578 * compile/compile-c-support.c (c_compute_program): Likewise.
8579 (cplus_compute_program): Likewise.
8580 * compile/compile.c (compile_to_object): Update call to
8581 la_compute_program.
8582 * d-lang.c (d_language_data): Delete la_compute_program
8583 initializer.
8584 * f-lang.c (f_language_data): Likewise.
8585 * go-lang.c (go_language_data): Likewise.
8586 * language.c (unknown_language_data): Likewise.
8587 (auto_language_data): Likewise.
8588 * language.h (language_data): Delete la_compute_program field.
8589 (language_defn::compute_program): New member function.
8590 * m2-lang.c (m2_language_data): Delete la_compute_program
8591 initializer.
8592 * objc-lang.c (objc_language_data): Likewise.
8593 * opencl-lang.c (opencl_language_data): Likewise.
8594 * p-lang.c (pascal_language_data): Likewise.
8595 * rust-lang.c (rust_language_data): Likewise.
8596
eff93b4d
AB
85972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8598
8599 * ada-lang.c (ada_language_data) Delete
8600 la_class_name_from_physname initializer.
8601 * c-lang.c (c_language_data): Likewise.
8602 (cplus_language_data): Likewise.
8603 (cplus_language::class_name_from_physname): New member function.
8604 (asm_language_data): Delete la_class_name_from_physname
8605 initializer.
8606 (minimal_language_data): Likewise.
8607 * d-lang.c (d_language_data): Likewise.
8608 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8609 method on language_defn class.
8610 (guess_full_die_structure_name): Likewise.
8611 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8612 initializer.
8613 * go-lang.c (go_language_data): Likewise.
8614 * language.c (language_class_name_from_physname): Delete.
8615 (unk_lang_class_name): Delete.
8616 (unknown_language_data): Delete la_class_name_from_physname
8617 initializer.
8618 (auto_language_data): Likewise.
8619 * language.h (language_data): Delete la_class_name_from_physname
8620 field.
8621 (language_defn::class_name_from_physname): New function.
8622 (language_class_name_from_physname): Delete declaration.
8623 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8624 initializer.
8625 * objc-lang.c (objc_language_data): Likewise.
8626 * opencl-lang.c (opencl_language_data): Likewise.
8627 * p-lang.c (pascal_language_data): Likewise.
8628 * rust-lang.c (rust_language_data): Likewise.
8629
de543742
TT
86302020-06-16 Tom Tromey <tom@tromey.com>
8631
8632 * tui/tui-data.h (STATUS_NAME): New macro.
8633 * tui/tui-layout.c (tui_remove_some_windows)
8634 (initialize_known_windows, tui_register_window)
8635 (tui_layout_split::remove_windows, initialize_layouts)
8636 (tui_new_layout_command): Don't use hard-coded window names.
8637
a350efd4
TT
86382020-06-16 Tom Tromey <tom@tromey.com>
8639
8640 PR tui/25348:
8641 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8642 tui_initialize_readline. Only run once. Call rl_initialize.
8643 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8644 tui_initialize_readline.
8645 * tui/tui-io.c (tui_setup_io): Call
8646 tui_ensure_readline_initialized.
8647 * tui/tui-interp.c (tui_interp::init): Update.
8648
39ec0490
TT
86492020-06-16 Tom Tromey <tom@tromey.com>
8650
8651 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8652 Also preserve the status window.
8653
d2d1ea20
TT
86542020-06-16 Tom Tromey <tom@tromey.com>
8655
8656 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8657 where m_window==nullptr.
8658
66920317
TT
86592020-06-15 Tom Tromey <tromey@adacore.com>
8660
8661 * windows-nat.c (windows_nat::handle_output_debug_string):
8662 Update.
8663 (windows_nat::handle_ms_vc_exception): Update.
8664 * target.h (target_read_string): Change API.
8665 * target.c (target_read_string): Change API.
8666 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8667 Update.
8668 * solib-frv.c (frv_current_sos): Update.
8669 * solib-dsbt.c (dsbt_current_sos): Update.
8670 * solib-darwin.c (darwin_current_sos): Update.
8671 * linux-thread-db.c (inferior_has_bug): Update.
8672 * expprint.c (print_subexp_standard): Update.
8673 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8674 (ada_exception_message_1): Update.
8675
a5d871dd
TT
86762020-06-15 Tom Tromey <tromey@adacore.com>
8677
8678 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8679
670e35fa
TT
86802020-06-15 Tom Tromey <tromey@adacore.com>
8681
8682 * valprint.c (read_string): Update comment.
8683 * target.c (MIN): Remove.
8684 (target_read_string): Rewrite.
8685
f5272a3b
TT
86862020-06-15 Tom Tromey <tromey@adacore.com>
8687
8688 * corefile.c (read_memory_string): Remove.
8689 * ada-valprint.c (ada_value_print_ptr): Update.
8690 * ada-lang.h (ada_tag_name): Change return type.
8691 * ada-lang.c (type_from_tag): Update.
8692 (ada_tag_name_from_tsd): Change return type. Use
8693 target_read_string.
8694 (ada_tag_name): Likewise.
8695 * gdbcore.h (read_memory_string): Don't declare.
8696
2c074f49
HD
86972020-06-14 Hannes Domani <ssbssa@yahoo.de>
8698
8699 * symtab.c (rbreak_command): Ignore Windows drive colon.
8700
6a17d503
SM
87012020-06-12 Simon Marchi <simon.marchi@efficios.com>
8702
8703 * NEWS: Mention removed GDBserver host support.
8704
453c733f
NC
87052020-06-12 Nelson Chu <nelson.chu@sifive.com>
8706
8707 * features/riscv/rebuild-csr-xml.sh: Updated.
8708
2b4e6a3f
TT
87092020-06-11 Tom Tromey <tom@tromey.com>
8710
8711 PR gdb/18318:
8712 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8713
4412332f
JG
87142020-06-09 Jonny Grant <jg@jguk.org>
87152020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8716
8717 * main.c (captured_main_1): Don't print new line after help.
8718 (print_gdb_help): add mailing list and IRC channel information
8719 to --help. Add new lines between items in the footer. Remove
8720 quotes around bug url.
8721
2f33032a
KS
87222020-06-11 Keith Seitz <keiths@redhat.com>
8723
8724 PR gdb/21356
8725 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8726 Resolve typedefs for type length calculations.
8727
7ab96794
TV
87282020-06-10 Tom de Vries <tdevries@suse.de>
8729
8730 PR ada/24713
8731 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8732 (write_psymbols): Enable .gdb_index for ada.
8733 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8734 ada.
8735
e5f3ece2
TV
87362020-06-10 Tom de Vries <tdevries@suse.de>
8737
8738 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8739 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8740 namei" instead of "const char *name" argument.
8741 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8742 dw2_symtab_iter_init.
8743
940da03e
SM
87442020-06-08 Simon Marchi <simon.marchi@efficios.com>
8745
8746 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8747 to use type::field and field::type instead.
8748
b6cdac4b
SM
87492020-06-08 Simon Marchi <simon.marchi@efficios.com>
8750
8751 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8752 to use field::type instead.
8753
5d14b6e5
SM
87542020-06-08 Simon Marchi <simon.marchi@efficios.com>
8755
8756 * gdbtypes.h (struct field) <type, set_type>: New methods.
8757 Rename `type` field to...
8758 <m_type>: ... this. Change references throughout to use type or
8759 set_type methods.
8760 (FIELD_TYPE): Use field::type. Change call sites that modify
8761 the field's type to use field::set_type instead.
8762
3d967001
SM
87632020-06-08 Simon Marchi <simon.marchi@efficios.com>
8764
8765 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8766 to use type::index_type instead.
8767
262abc0d
SM
87682020-06-08 Simon Marchi <simon.marchi@efficios.com>
8769
8770 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8771 methods.
8772 (TYPE_INDEX_TYPE): Use type::index_type.
8773 * gdbtypes.c (create_array_type_with_stride): Likewise.
8774
82836c92
TT
87752020-06-07 Tom Tromey <tom@tromey.com>
8776
8777 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8778 parameter.
8779 (generic_value_print): Update.
8780
940dace9
AB
87812020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8782
8783 Revert commit 982a38f60b0.
8784 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8785
982a38f6
AB
87862020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8787
8788 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8789 avoid use after free.
8790
82f06518
TV
87912020-06-05 Tom de Vries <tdevries@suse.de>
8792
8793 * NEWS: Fix typos.
8794
f8c41851
SM
87952020-06-04 Simon Marchi <simon.marchi@efficios.com>
8796
8797 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8798 the per_bfd object.
8799 (dwarf2_read_debug_names): Likewise.
8800 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8801 object when re-using a per_bfd object with an index.
8802
f9b5d5ea
TV
88032020-06-03 Tom de Vries <tdevries@suse.de>
8804
8805 PR symtab/26046
8806 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8807 children for C++.
8808 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8809 DW_TAG_subprogram.
8810
f6eee2d0
AB
88112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8812
8813 * ada-lang.c (ada_language_data): Delete skip_trampoline
8814 initializer.
8815 * c-lang.c (c_language_data): Likewise.
8816 (cplus_language_data): Likewise.
8817 (cplus_language::skip_trampoline): New member function.
8818 (asm_language_data): Delete skip_trampoline initializer.
8819 (minimal_language_data): Likewise.
8820 * d-lang.c (d_language_data): Likewise.
8821 * f-lang.c (f_language_data): Likewise.
8822 * go-lang.c (go_language_data): Likewise.
8823 * language.c (unk_lang_trampoline): Delete function.
8824 (skip_language_trampoline): Update.
8825 (unknown_language_data): Delete skip_trampoline initializer.
8826 (auto_language_data): Likewise.
8827 * language.h (language_data): Delete skip_trampoline field.
8828 (language_defn::skip_trampoline): New function.
8829 * m2-lang.c (m2_language_data): Delete skip_trampoline
8830 initializer.
8831 * objc-lang.c (objc_skip_trampoline): Delete function, move
8832 implementation to objc_language::skip_trampoline.
8833 (objc_language_data): Delete skip_trampoline initializer.
8834 (objc_language::skip_trampoline): New member function with
8835 implementation from objc_skip_trampoline.
8836 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8837 initializer.
8838 * p-lang.c (pascal_language_data): Likewise.
8839 * rust-lang.c (rust_language_data): Likewise.
8840
0a50df5d
AB
88412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8842
8843 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8844 (ada_language::demangle): New member function.
8845 * c-lang.c (c_language_data): Delete la_demangle initializer.
8846 (cplus_language_data): Delete la_demangle initializer.
8847 (cplus_language::demangle): New member function.
8848 (asm_language_data): Delete la_demangle initializer.
8849 (minimal_language_data): Delete la_demangle initializer.
8850 * d-lang.c (d_language_data): Delete la_demangle initializer.
8851 (d_language::demangle): New member function.
8852 * f-lang.c (f_language_data): Delete la_demangle initializer.
8853 (f_language::demangle): New member function.
8854 * go-lang.c (go_language_data): Delete la_demangle initializer.
8855 (go_language::demangle): New member function.
8856 * language.c (language_demangle): Update.
8857 (unk_lang_demangle): Delete.
8858 (unknown_language_data): Delete la_demangle initializer.
8859 (unknown_language::demangle): New member function.
8860 (auto_language_data): Delete la_demangle initializer.
8861 (auto_language::demangle): New member function.
8862 * language.h (language_data): Delete la_demangle field.
8863 (language_defn::demangle): New function.
8864 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8865 * objc-lang.c (objc_language_data): Delete la_demangle
8866 initializer.
8867 (objc_language::demangle): New member function.
8868 * opencl-lang.c (opencl_language_data): Delete la_demangle
8869 initializer.
8870 * p-lang.c (pascal_language_data): Likewise.
8871 * rust-lang.c (rust_language_data): Likewise.
8872 (rust_language::demangle): New member function.
8873
fbfb0a46
AB
88742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8875
8876 * ada-lang.c (ada_language_data): Delete la_print_type
8877 initializer.
8878 (ada_language::print_type): New member function.
8879 * c-lang.c (c_language_data): Delete la_print_type initializer.
8880 (c_language::print_type): New member function.
8881 (cplus_language_data): Delete la_print_type initializer.
8882 (cplus_language::print_type): New member function.
8883 (asm_language_data): Delete la_print_type initializer.
8884 (asm_language::print_type): New member function.
8885 (minimal_language_data): Delete la_print_type initializer.
8886 (minimal_language::print_type): New member function.
8887 * d-lang.c (d_language_data): Delete la_print_type initializer.
8888 (d_language::print_type): New member function.
8889 * f-lang.c (f_language_data): Delete la_print_type initializer.
8890 (f_language::print_type): New member function.
8891 * go-lang.c (go_language_data): Delete la_print_type initializer.
8892 (go_language::print_type): New member function.
8893 * language.c (unk_lang_print_type): Delete.
8894 (unknown_language_data): Delete la_print_type initializer.
8895 (unknown_language::print_type): New member function.
8896 (auto_language_data): Delete la_print_type initializer.
8897 (auto_language::print_type): New member function.
8898 * language.h (language_data): Delete la_print_type field.
8899 (language_defn::print_type): New function.
8900 (LA_PRINT_TYPE): Update.
8901 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8902 (m2_language::print_type): New member function.
8903 * objc-lang.c (objc_language_data): Delete la_print_type
8904 initializer.
8905 (objc_language::print_type): New member function.
8906 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8907 to opencl_language::print_type.
8908 (opencl_language_data): Delete la_print_type initializer.
8909 (opencl_language::print_type): New member function, implementation
8910 from opencl_print_type.
8911 * p-lang.c (pascal_language_data): Delete la_print_type
8912 initializer.
8913 (pascal_language::print_type): New member function.
8914 * rust-lang.c (rust_print_type): Delete, implementation moved to
8915 rust_language::print_type.
8916 (rust_language_data): Delete la_print_type initializer.
8917 (rust_language::print_type): New member function, implementation
8918 from rust_print_type.
8919
6f827019
AB
89202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8921
8922 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8923 implementation moves to...
8924 (ada_language::sniff_from_mangled_name): ...here. Update return
8925 type.
8926 (ada_language_data): Delete la_sniff_from_mangled_name
8927 initializer.
8928 * c-lang.c (c_language_data): Likewise.
8929 (cplus_language_data): Likewise.
8930 (cplus_language::sniff_from_mangled_name): New member function,
8931 implementation taken from gdb_sniff_from_mangled_name.
8932 (asm_language_data): Delete la_sniff_from_mangled_name
8933 initializer.
8934 (minimal_language_data): Likewise.
8935 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8936 implementation moves to cplus_language::sniff_from_mangled_name.
8937 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8938 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8939 moves to...
8940 (d_language::sniff_from_mangled_name): ...here.
8941 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8942 * f-lang.c (f_language_data): Likewise.
8943 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8944 moves to...
8945 (go_language::sniff_from_mangled_name): ...here.
8946 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8947 * language.c (language_sniff_from_mangled_name): Delete.
8948 (unknown_language_data): Delete la_sniff_from_mangled_name
8949 initializer.
8950 (auto_language_data): Likewise.
8951 * language.h (language_data): Delete la_sniff_from_mangled_name
8952 field.
8953 (language_defn::sniff_from_mangled_name): New function.
8954 (language_sniff_from_mangled_name): Delete declaration.
8955 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8956 field.
8957 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8958 implementation moves to...
8959 (objc_language::sniff_from_mangled_name): ...here.
8960 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8961 * opencl-lang.c (opencl_language_data): Likewise.
8962 * p-lang.c (pascal_language_data): Likewise.
8963 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8964 implementation moves to...
8965 (rust_language::sniff_from_mangled_name): ...here.
8966 (rust_language_data): Delete la_sniff_from_mangled_name
8967 initializer.
8968 * symtab.c (symbol_find_demangled_name): Call
8969 sniff_from_mangled_name member function.
8970
fb8006fd
AB
89712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8972
8973 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8974 initializer.
8975 * c-lang.c (c_language_data): Likewise.
8976 (cplus_language_data): Likewise.
8977 (cplus_language::search_name_hash): New member function.
8978 (asm_language_data): Delete la_search_name_hash initializer.
8979 (minimal_language_data): Likewise.
8980 * d-lang.c (d_language_data): Likewise.
8981 * dictionary.c (default_search_name_hash): Rename to...
8982 (language_defn::search_name_hash): ...this.
8983 * f-lang.c (f_language_data): Likewise.
8984 (f_language::search_name_hash): New member function.
8985 * go-lang.c (go_language_data): Delete la_search_name_hash
8986 initializer.
8987 * language.c (unknown_language_data): Likewise.
8988 (auto_language_data): Likewise.
8989 * language.h (struct language_data): Delete la_search_name_hash
8990 field.
8991 (language_defn::search_name_hash): Declare new member function.
8992 (default_search_name_hash): Delete declaration.
8993 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8994 initializer.
8995 * objc-lang.c (objc_language_data): Likewise.
8996 * opencl-lang.c (opencl_language_data): Likewise.
8997 * p-lang.c (pascal_language_data): Likewise.
8998 * rust-lang.c (rust_language_data): Likewise.
8999 * symtab.c (search_name_hash): Update call.
9000
8e25bafe
AB
90012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9002
9003 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9004 initializer.
9005 * c-lang.c (class compile_instance): Declare.
9006 (c_language_data): Delete la_get_compile_instance initializer.
9007 (c_language::get_compile_instance): New member function.
9008 (cplus_language_data): Delete la_get_compile_instance initializer.
9009 (cplus_language::get_compile_instance): New member function.
9010 (asm_language_data): Delete la_get_compile_instance initializer.
9011 (minimal_language_data): Likewise.
9012 * c-lang.h (c_get_compile_context): Update comment.
9013 (cplus_get_compile_context): Update comment.
9014 * compile/compile.c (compile_to_object): Update calls, don't rely
9015 on function pointer being NULL.
9016 * d-lang.c (d_language_data): Delete la_get_compile_instance
9017 initializer.
9018 * f-lang.c (f_language_data): Likewise.
9019 * go-lang.c (go_language_data): Likewise.
9020 * language.c (unknown_language_data): Likewise.
9021 (auto_language_data): Likewise.
9022 * language.h (language_data): Delete la_get_compile_instance field.
9023 (language_defn::get_compile_instance): New member function.
9024 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9025 initializer.
9026 * objc-lang.c (objc_language_data): Likewise.
9027 * opencl-lang.c (opencl_language_data): Likewise.
9028 * p-lang.c (pascal_language_data): Likewise.
9029 * rust-lang.c (rust_language_data): Likewise.
9030
4009ee92
AB
90312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9032
9033 * ada-lang.c (ada_add_all_symbols): Update comment.
9034 (ada_iterate_over_symbols): Delete, move implementation to...
9035 (ada_language::iterate_over_symbols): ...here, a new member
9036 function, rewrite to use range based for loop.
9037 (ada_language_data): Delete la_iterate_over_symbols initializer.
9038 * c-lang.c (c_language_data): Likewise.
9039 (cplus_language_data): Likewise.
9040 (asm_language_data): Likewise.
9041 (minimal_language_data): Likewise.
9042 * d-lang.c (d_language_data): Likewise.
9043 * f-lang.c (f_language_data): Likewise.
9044 * go-lang.c (go_language_data): Likewise.
9045 * language.c (unknown_language_data): Likewise.
9046 (auto_language_data): Likewise.
9047 * language.h (language_data): Delete la_iterate_over_symbols field.
9048 (language_defn::iterate_over_symbols): New member function.
9049 (LA_ITERATE_OVER_SYMBOLS): Update.
9050 * linespec.c (iterate_over_all_matching_symtabs): Update.
9051 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9052 initializer.
9053 * objc-lang.c (objc_language_data): Likewise.
9054 * opencl-lang.c (opencl_language_data): Likewise.
9055 * p-lang.c (pascal_language_data): Likewise.
9056 * rust-lang.c (rust_language_data): Likewise.
9057
54f4ca46
AB
90582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9059
9060 * ada-lang.c (ada_language_data): Delete
9061 la_lookup_transparent_type initializer.
9062 * c-lang.c (c_language_data): Likewise.
9063 (cplus_language_data): Likewise.
9064 (cplus_language::lookup_transparent_type): New member function.
9065 (asm_language_data): Delete la_lookup_transparent_type
9066 initializer.
9067 (minimal_language_data): Likewise.
9068 * d-lang.c (d_language_data): Likewise.
9069 * f-lang.c (f_language_data): Likewise.
9070 * go-lang.c (go_language_data): Likewise.
9071 * language.c (unknown_language_data): Likewise.
9072 (auto_language_data): Likewise.
9073 * language.h (struct language_data): Delete
9074 la_lookup_transparent_type field.
9075 (language_defn::lookup_transparent_type): New member function.
9076 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9077 initializer.
9078 * objc-lang.c (objc_language_data): Likewise.
9079 * opencl-lang.c (opencl_language_data): Likewise.
9080 * p-lang.c (pascal_language_data): Likewise.
9081 * rust-lang.c (rust_language_data): Likewise.
9082 * symtab.c (symbol_matches_domain): Update call.
9083
1fb314aa
AB
90842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9085
9086 * ada-lang.c (ada_language_arch_info): Delete function, move
9087 implementation to...
9088 (ada_language::language_arch_info): ...here, a new member
9089 function.
9090 (ada_language_data): Delete la_language_arch_info.
9091 * c-lang.c (c_language_data): Likewise.
9092 (c_language::language_arch_info): New member function.
9093 (cplus_language_arch_info): Delete function, move
9094 implementation to...
9095 (cplus_language::language_arch_info): ...here, a new member
9096 function.
9097 (cplus_language_data): Delete la_language_arch_info.
9098 (asm_language_data): Likewise.
9099 (asm_language::language_arch_info): New member function.
9100 (minimal_language_data): Delete la_language_arch_info.
9101 (minimal_language::language_arch_info): New member function.
9102 * d-lang.c (d_language_arch_info): Delete function, move
9103 implementation to...
9104 (d_language::language_arch_info): ...here, a new member
9105 function.
9106 (d_language_data): Delete la_language_arch_info.
9107 * f-lang.c (f_language_arch_info): Delete function, move
9108 implementation to...
9109 (f_language::language_arch_info): ...here, a new member
9110 function.
9111 (f_language_data): Delete la_language_arch_info.
9112 * go-lang.c (go_language_arch_info): Delete function, move
9113 implementation to...
9114 (go_language::language_arch_info): ...here, a new member
9115 function.
9116 (go_language_data): Delete la_language_arch_info.
9117 * language.c (unknown_language_data): Likewise.
9118 (unknown_language::language_arch_info): New member function.
9119 (auto_language_data): Delete la_language_arch_info.
9120 (auto_language::language_arch_info): New member function.
9121 (language_gdbarch_post_init): Update call to
9122 la_language_arch_info.
9123 * language.h (language_data): Delete la_language_arch_info
9124 function pointer.
9125 (language_defn::language_arch_info): New function.
9126 * m2-lang.c (m2_language_arch_info): Delete function, move
9127 implementation to...
9128 (m2_language::language_arch_info): ...here, a new member
9129 function.
9130 (m2_language_data): Delete la_language_arch_info.
9131 * objc-lang.c (objc_language_arch_info): Delete function, move
9132 implementation to...
9133 (objc_language::language_arch_info): ...here, a new member
9134 function.
9135 (objc_language_data): Delete la_language_arch_info.
9136 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9137 implementation to...
9138 (opencl_language::language_arch_info): ...here, a new member
9139 function.
9140 (opencl_language_data): Delete la_language_arch_info.
9141 * p-lang.c (pascal_language_arch_info): Delete function, move
9142 implementation to...
9143 (pascal_language::language_arch_info): ...here, a new member
9144 function.
9145 (pascal_language_data): Delete la_language_arch_info.
9146 * rust-lang.c (rust_language_arch_info): Delete function, move
9147 implementation to...
9148 (rust_language::language_arch_info): ...here, a new member
9149 function.
9150 (rust_language_data): Delete la_language_arch_info.
9151
48448202
AB
91522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9153
9154 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9155 initializer.
9156 * c-lang.c (c_language_data): Likewise.
9157 (cplus_language_data): Likewise.
9158 (cplus_language::pass_by_reference_info): New method.
9159 (asm_language_data): Delete la_pass_by_reference initializer.
9160 (minimal_language_data): Likewise.
9161 * cp-abi.c (cp_pass_by_reference): Remove use of
9162 default_pass_by_reference.
9163 * d-lang.c (d_language_data): Likewise.
9164 * f-lang.c (f_language_data): Likewise.
9165 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9166 default_pass_by_reference.
9167 * go-lang.c (go_language_data): Likewise.
9168 * language.c (language_pass_by_reference): Update.
9169 (default_pass_by_reference): Delete.
9170 (unknown_language_data): Delete la_pass_by_reference
9171 initializer.
9172 (auto_language_data): Likewise.
9173 * language.h (struct language_data): Delete la_pass_by_reference
9174 field.
9175 (language_defn::pass_by_reference_info): New member function.
9176 (default_pass_by_reference): Delete declaration.
9177 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9178 initializer.
9179 * objc-lang.c (objc_language_data): Likewise.
9180 * opencl-lang.c (opencl_language_data): Likewise.
9181 * p-lang.c (pascal_language_data): Likewise.
9182 * rust-lang.c (rust_language_data): Likewise.
9183
15e5fd35
AB
91842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9185
9186 * ada-lang.c (ada_read_var_value): Delete function, move
9187 implementation to...
9188 (ada_language::read_var_value): ...here.
9189 (ada_language_data): Delete la_read_var_value initializer.
9190 * c-lang.c (c_language_data): Likewise.
9191 (cplus_language_data): Likewise.
9192 (minimal_language_data): Likewise.
9193 * d-lang.c (d_language_data): Likewise.
9194 * f-lang.c (f_language_data): Likewise.
9195 * findvar.c (default_read_var_value): Rename to...
9196 (language_defn::read_var_value): ...this.
9197 * findvar.c (read_var_value): Update header comment, and change to
9198 call member function instead of function pointer.
9199 * go-lang.c (go_language_data): Likewise.
9200 * language.c (unknown_language_data): Delete la_read_var_value
9201 initializer.
9202 (auto_language_data): Likewise.
9203 * language.h (struct language_data): Delete la_read_var_value
9204 field.
9205 (language_defn::read_var_value): New member function.
9206 (default_read_var_value): Delete declaration.
9207 * m2-lang.c (m2_language_data): Delete la_read_var_value
9208 initializer.
9209 * objc-lang.c (objc_language_data): Likewise.
9210 * opencl-lang.c (opencl_language_data): Likewise.
9211 * p-lang.c (pascal_language_data): Likewise.
9212 * rust-lang.c (rust_language_data): Likewise.
9213 * value.h (default_read_var_value): Delete declaration.
9214
5bd40f2a
AB
92152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9216
9217 * ada-lang.c (ada_print_array_index): Delete function, move
9218 implementation to...
9219 (ada_language::print_array_index): ...here.
9220 (ada_language_data): Delete la_print_array_index initializer.
9221 * c-lang.c (c_language_data): Likewise.
9222 (cplus_language_data): Likewise.
9223 (minimal_language_data): Likewise.
9224 * d-lang.c (d_language_data): Likewise.
9225 * f-lang.c (f_language_data): Likewise.
9226 * go-lang.c (go_language_data): Likewise.
9227 * language.c (default_print_array_index): Delete function, move
9228 implementation to...
9229 (language_defn::print_array_index): ...here.
9230 (unknown_language_data): Delete la_print_array_index initializer.
9231 (auto_language_data): Likewise.
9232 * language.h (struct language_data): Delete la_print_array_index
9233 field.
9234 (language_defn::print_array_index): New member function.
9235 (LA_PRINT_ARRAY_INDEX): Update.
9236 (default_print_array_index): Delete declaration.
9237 * m2-lang.c (m2_language_data): Delete la_print_array_index
9238 initializer.
9239 * objc-lang.c (objc_language_data): Likewise.
9240 * opencl-lang.c (opencl_language_data): Likewise.
9241 * p-lang.c (pascal_language_data): Likewise.
9242 * rust-lang.c (rust_language_data): Likewise.
9243
0874fd07
AB
92442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9245
9246 * gdb/ada-lang.c (ada_language_defn): Convert to...
9247 (ada_language_data): ...this.
9248 (class ada_language): New class.
9249 (ada_language_defn): New static global.
9250 * gdb/c-lang.c (c_language_defn): Convert to...
9251 (c_language_data): ...this.
9252 (class c_language): New class.
9253 (c_language_defn): New static global.
9254 (cplus_language_defn): Convert to...
9255 (cplus_language_data): ...this.
9256 (class cplus_language): New class.
9257 (cplus_language_defn): New static global.
9258 (asm_language_defn): Convert to...
9259 (asm_language_data): ...this.
9260 (class asm_language): New class.
9261 (asm_language_defn): New static global.
9262 (minimal_language_defn): Convert to...
9263 (minimal_language_data): ...this.
9264 (class minimal_language): New class.
9265 (minimal_language_defn): New static global.
9266 * gdb/d-lang.c (d_language_defn): Convert to...
9267 (d_language_data): ...this.
9268 (class d_language): New class.
9269 (d_language_defn): New static global.
9270 * gdb/f-lang.c (f_language_defn): Convert to...
9271 (f_language_data): ...this.
9272 (class f_language): New class.
9273 (f_language_defn): New static global.
9274 * gdb/go-lang.c (go_language_defn): Convert to...
9275 (go_language_data): ...this.
9276 (class go_language): New class.
9277 (go_language_defn): New static global.
9278 * gdb/language.c (unknown_language_defn): Remove declaration.
9279 (current_language): Initialize to nullptr, real initialization is
9280 moved to _initialize_language.
9281 (languages): Delete global.
9282 (language_defn::languages): Define.
9283 (set_language_command): Use language_defn::languages.
9284 (set_language): Likewise.
9285 (range_error): Likewise.
9286 (language_enum): Likewise.
9287 (language_def): Likewise.
9288 (add_set_language_command): Use language_def::languages for the
9289 language list, and language_def to lookup language pointers.
9290 (skip_language_trampoline): Use language_defn::languages.
9291 (unknown_language_defn): Convert to...
9292 (unknown_language_data): ...this.
9293 (class unknown_language): New class.
9294 (unknown_language_defn): New static global.
9295 (auto_language_defn): Convert to...
9296 (auto_language_data): ...this.
9297 (class auto_language): New class.
9298 (auto_language_defn): New static global.
9299 (language_gdbarch_post_init): Use language_defn::languages.
9300 (_initialize_language): Initialize current_language.
9301 * gdb/language.h (struct language_defn): Rename to...
9302 (struct language_data): ...this.
9303 (struct language_defn): New.
9304 (auto_language_defn): Delete.
9305 (unknown_language_defn): Delete.
9306 (minimal_language_defn): Delete.
9307 (ada_language_defn): Delete.
9308 (asm_language_defn): Delete.
9309 (c_language_defn): Delete.
9310 (cplus_language_defn): Delete.
9311 (d_language_defn): Delete.
9312 (f_language_defn): Delete.
9313 (go_language_defn): Delete.
9314 (m2_language_defn): Delete.
9315 (objc_language_defn): Delete.
9316 (opencl_language_defn): Delete.
9317 (pascal_language_defn): Delete.
9318 (rust_language_defn): Delete.
9319 * gdb/m2-lang.c (m2_language_defn): Convert to...
9320 (m2_language_data): ...this.
9321 (class m2_language): New class.
9322 (m2_language_defn): New static global.
9323 * gdb/objc-lang.c (objc_language_defn): Convert to...
9324 (objc_language_data): ...this.
9325 (class objc_language): New class.
9326 (objc_language_defn): New static global.
9327 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9328 (opencl_language_data): ...this.
9329 (class opencl_language): New class.
9330 (opencl_language_defn): New static global.
9331 * gdb/p-lang.c (pascal_language_defn): Convert to...
9332 (pascal_language_data): ...this.
9333 (class pascal_language): New class.
9334 (pascal_language_defn): New static global.
9335 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9336 language pointer, update comment format.
9337 * gdb/rust-lang.c (rust_language_defn): Convert to...
9338 (rust_language_data): ...this.
9339 (class rust_language): New class.
9340 (rust_language_defn): New static global.
9341
1313c56e
AB
93422020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9343
9344 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9345 member variable.
9346 <m_stmt_at_address>: New member variable.
9347 (lnp_state_machine::record_line): Don't record some lines, update
9348 tracking of is_stmt at the same address.
9349 (lnp_state_machine::lnp_state_machine): Initialise new member
9350 variables.
9351
b7ed9f3d
ST
93522020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9353
9354 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9355 "-include gnu-nat-mig.h".
9356 * gnu-nat-mig.h: New file.
9357 * gnu-nat.c: Include "gnu-nat-mig.h".
9358 (exc_server, msg_reply_server, notify_server,
9359 process_reply_server): Remove declarations.
9360
14a8ad62
ST
93612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9362
9363 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9364 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9365 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9366 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9367 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9368 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9369 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9370 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9371 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9372 to gnu_nat_target class.
9373 * gnu-nat.c: Likewise.
9374 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9375 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9376 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9377 object.
9378 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9379 instead of `gnu_target'.
9380
0af5e106
ST
93812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9382
9383 * i386-gnu-tdep.c: Include "gdbcore.h"
9384 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9385 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9386 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9387 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9388 i386_gnu_sigcontext_addr): New functions
9389 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9390 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9391 tdep.
9392
078f2fc9
ST
93932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9394
9395 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9396 before fork_inferior call. Avoid calling it if target_is_pushed returns
9397 true.
9398
53dff92c
ST
93992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9400
9401 * gnu-nat.h (gnu_target): New variable declaration.
9402 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9403 gnu_target.
9404 * gnu-nat.c (gnu_target): New variable.
9405 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9406 add_thread_silent, and add_thread calls.
9407 (gnu_nat_target::create_inferior): Pass gnu_target to
9408 add_thread_silent, thread_change_ptid call.
9409 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9410 call.
9411
5a8b8627
ST
94122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9413
9414 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9415 (gnu_nat_target::find_memory_regions): Remove unused
9416 `old_address' variable.
9417
366f550a
ST
94182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9419
9420 * gnu-nat.c: Include "gdbarch.h".
9421
f14871bf
ST
94222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9423
9424 * reply_mig_hack.awk (Error return): Cast function through
9425 void *, to bypass compiler function call check.
9426
c6887cfb
ST
94272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9428
9429 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9430 $(srcdir)/reply_mig_hack.awk.
9431
6930bffe
ST
94322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9433
9434 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9435
112c22ed
JG
94362020-05-30 Jonny Grant <jg@jguk.org>
9437
9438 * configure.ac (ACX_BUGURL): change bug URL to https.
9439
f68f85b5
PA
94402020-05-30 Pedro Alves <palves@redhat.com>
9441
9442 * cp-support.c (replace_typedefs_template): New.
9443 (replace_typedefs_qualified_name): Handle
9444 DEMANGLE_COMPONENT_TEMPLATE.
9445
976ca316
SM
94462020-05-29 Simon Marchi <simon.marchi@efficios.com>
9447
9448 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9449 dwarf2/index-cache.h, dwarf2/index-write.c,
9450 dwarf2/index-write.h, dwarf2/line-header.c,
9451 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9452 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9453 variables and fields from `dwarf2_per_objfile` to just
9454 `per_objfile` throughout.
9455
989ade05
SM
94562020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9457
9458 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9459 <push_dwarf_reg_entry_value>: Add comment.
9460
c47bae85
KB
94612020-05-28 Kevin Buettner <kevinb@redhat.com>
9462 Keith Seitz <keiths@redhat.com>
9463
9464 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9465 instead of PyEval_ReleaseLock.
9466 (class gdbpy_gil): Move to earlier in file.
9467 (finalize_python): Set gdb_python_initialized.
9468 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9469 when not initialized.
9470
44486dcf
SM
94712020-05-28 Simon Marchi <simon.marchi@efficios.com>
9472
9473 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9474 <push_dwarf_reg_entry_value>: Remove assert. Override
9475 per_objfile with caller_per_objfile.
9476
f030440d
TV
94772020-05-28 Tom de Vries <tdevries@suse.de>
9478
9479 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9480 PR gold/15646 workaround to symbol kind "type".
9481
f0fbb768
TT
94822020-05-27 Tom Tromey <tromey@adacore.com>
9483
9484 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9485
af0b2a3e
TT
94862020-05-27 Tom Tromey <tromey@adacore.com>
9487
9488 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9489 Use htab_find_with_hash.
9490 <add_abbrev>: Remove "abbrev_number" parameter.
9491 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9492 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9493 (hash_abbrev): Add comment.
9494 (abbrev_table::lookup_abbrev): Move to header file.
9495 (abbrev_table::read): Update.
9496
7d00ffec
TT
94972020-05-27 Tom Tromey <tromey@adacore.com>
9498
9499 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9500 method.
9501 <canonical_name>: New member.
9502 <raw_name>: Rename from "name".
9503 (partial_die_info): Initialize canonical_name.
9504 (scan_partial_symbols): Check raw_name.
9505 (partial_die_parent_scope, partial_die_full_name)
9506 (add_partial_symbol, add_partial_subprogram)
9507 (add_partial_enumeration, load_partial_dies): Use "name" method.
9508 (partial_die_info::name): New method.
9509 (partial_die_info::read, guess_partial_die_structure_name)
9510 (partial_die_info::fixup): Update.
9511
697bba18
TT
95122020-05-27 Tom Tromey <tromey@adacore.com>
9513
9514 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9515 <get_ref_die_offset>: Inline.
9516 <get_ref_die_offset_complaint>: New method.
9517 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9518 (attribute::get_ref_die_offset_complaint): Rename from
9519 get_ref_die_offset. Just issue complaint.
9520
c17ace43
HD
95212020-05-27 Hannes Domani <ssbssa@yahoo.de>
9522
9523 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9524
96445f0b
HD
95252020-05-27 Hannes Domani <ssbssa@yahoo.de>
9526
9527 * exec.c (exec_file_attach): Use errno value of first openp failure.
9528
ac637ec3
HD
95292020-05-27 Hannes Domani <ssbssa@yahoo.de>
9530
9531 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9532 Don't close thread handle.
9533
17ee85fc
TT
95342020-05-27 Tom Tromey <tom@tromey.com>
9535 Simon Marchi <simon.marchi@efficios.com>
9536
9537 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9538 shared_ptr.
9539 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9540 member.
9541 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9542 dwarf2_per_bfd_objfile_data_key>: New globals.
9543 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9544 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9545 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9546 shared.
9547 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9548 short-circuit when sharing.
9549 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9550 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9551
39b16f87
SM
95522020-05-27 Simon Marchi <simon.marchi@efficios.com>
9553
9554 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9555 to...
9556 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9557 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9558
fcf23d5b
SM
95592020-05-27 Simon Marchi <simon.marchi@efficios.com>
9560
9561 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9562 build_name_components, find_name_components_bounds>:
9563 Add per_objfile parameter.
9564 (struct mapped_index) <symbol_name_at>: Likewise.
9565 (struct mapped_debug_names): Remove constructor.
9566 <dwarf2_per_objfile>: Remove field.
9567 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9568 (mapped_index_base::find_name_components_bounds,
9569 mapped_index_base::build_name_components,
9570 dw2_expand_symtabs_matching_symbol): Likewise.
9571 (class mock_mapped_index) <symbol_name_at>: Likewise.
9572 (check_match): Likewise.
9573 (check_find_bounds_finds): Likewise.
9574 (test_mapped_index_find_name_component_bounds): Update.
9575 (CHECK_MATCH): Update.
9576 (dw2_expand_symtabs_matching): Update.
9577 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9578 per_objfile parameter.
9579 <find_vec_in_debug_names>: Likewise.
9580 <m_per_objfile>: New field.
9581 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9582 parameter.
9583 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9584 (dw2_debug_names_iterator::next): Update.
9585 (dw2_debug_names_lookup_symbol): Update.
9586 (dw2_debug_names_expand_symtabs_for_function): Update.
9587 (dw2_debug_names_map_matching_symbols): Update.
9588 (dw2_debug_names_expand_symtabs_matching): Update.
9589 (dwarf2_read_debug_names): Update.
9590
7188ed02
SM
95912020-05-27 Simon Marchi <simon.marchi@efficios.com>
9592
9593 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9594 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9595 move to dwarf2_per_objfile.
9596 <read_in_chain>: Remove.
9597 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9598 remove_all_cus, age_comp_units>: New methods.
9599 <m_dwarf2_cus>: New member.
9600 (struct dwarf2_per_cu_data) <cu>: Remove.
9601 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9602 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9603 moved to methods of dwarf2_per_objfile.
9604 (dwarf2_clear_marks): Remove.
9605 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9606 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9607 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9608 (dwarf2_per_objfile::remove_all_cus): New.
9609 (class free_cached_comp_units) <~free_cached_comp_units>:
9610 Update.
9611 (load_cu): Update.
9612 (dw2_do_instantiate_symtab): Adjust.
9613 (fill_in_sig_entry_from_dwo_entry): Adjust.
9614 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9615 (cutu_reader::cutu_reader): Likewise.
9616 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9617 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9618 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9619 and dwarf2_per_objfile::age_comp_units.
9620 (load_partial_comp_unit): Update.
9621 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9622 (process_queue): Likewise.
9623 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9624 backlink.
9625 (dwarf2_read_addr_index): Likewise.
9626 (follow_die_offset): Likewise.
9627 (dwarf2_fetch_die_loc_sect_off): Likewise.
9628 (dwarf2_fetch_constant_bytes): Likewise.
9629 (dwarf2_fetch_die_type_sect_off): Likewise.
9630 (follow_die_sig_1): Likewise.
9631 (load_full_type_unit): Likewise.
9632 (read_signatured_type): Likewise.
9633 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9634 (dwarf2_cu::~dwarf2_cu): Remove.
9635 (dwarf2_per_objfile::get_cu): New.
9636 (dwarf2_per_objfile::set_cu): New.
9637 (age_cached_comp_units): Rename to...
9638 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9639 to std::unordered_map.
9640 (free_one_cached_comp_unit): Rename to...
9641 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9642 to std::unordered_map.
9643 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9644 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9645 a dwarf2_per_objfile in data.
9646 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9647 (dwarf2_clear_marks): Remove.
9648
2e671100
SM
96492020-05-27 Simon Marchi <simon.marchi@efficios.com>
9650
9651 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9652 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9653 (init_tu_and_read_dwo_dies): Likewise.
9654 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9655 (cutu_reader::cutu_reader): Likewise.
9656 (load_partial_comp_unit): Likewise.
9657 (process_psymtab_comp_unit): Update.
9658 (build_type_psymtabs_1): Update.
9659 (process_skeletonless_type_unit): Update.
9660 (load_full_comp_unit): Update.
9661 (find_partial_die): Update.
9662 (dwarf2_read_addr_index): Update.
9663 (read_signatured_type): Update.
9664
2e6a9f79
SM
96652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9666
9667 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9668 m_header_read_in>: New fields.
9669 <get_header>: New method.
9670 * dwarf2/read.c (per_cu_header_read_in): Remove.
9671 (dwarf2_per_cu_data::get_header): New.
9672 (dwarf2_per_cu_data::addr_size): Update.
9673 (dwarf2_per_cu_data::offset_size): Update.
9674 (dwarf2_per_cu_data::ref_addr_size): Update.
9675
1b555f17
SM
96762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9677
9678 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9679 (dw2_do_instantiate_symtab): Update.
9680 (queue_and_load_all_dwo_tus): Change parameter from
9681 dwarf2_per_cu_data to dwarf2_cu.
9682 (dwarf2_fetch_die_loc_sect_off): Update.
9683 (dwarf2_fetch_constant_bytes): Update.
9684 (dwarf2_fetch_die_type_sect_off): Update.
9685
8fc0b21d
SM
96862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9687
9688 * dwarf2/read.c (process_full_comp_unit,
9689 process_full_type_unit): Remove per_cu, per_objfile paramters.
9690 Add dwarf2_cu parameter.
9691 (process_queue): Update.
9692
168c9250
SM
96932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9694
9695 * dwarf2/read.c (create_cu_from_index_list): Replace
9696 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9697 (create_cus_from_index_list): Likewise.
9698 (create_cus_from_index): Likewise.
9699 (create_signatured_type_table_from_index): Likewise.
9700 (create_cus_from_debug_names_list): Likewise.
9701 (create_cus_from_debug_names): Likewise.
9702 (dwarf2_read_gdb_index): Update.
9703 (dwarf2_read_debug_names): Update.
9704
e286671b
TT
97052020-05-27 Tom Tromey <tom@tromey.com>
9706 Simon Marchi <simon.marchi@efficios.com>
9707
9708 * dwarf2/read.h (struct dwarf2_per_objfile)
9709 <get_type_for_signatured_type, set_type_for_signatured_type>:
9710 New methods.
9711 <m_type_map>: New member.
9712 (struct signatured_type) <type>: Remove.
9713 * dwarf2/read.c
9714 (dwarf2_per_objfile::get_type_for_signatured_type,
9715 dwarf2_per_objfile::set_type_for_signatured_type): New.
9716 (get_signatured_type): Use new methods.
9717
8adb8487
TT
97182020-05-27 Tom Tromey <tom@tromey.com>
9719 Simon Marchi <simon.marchi@efficios.com>
9720
9721 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9722 (struct dwarf2_per_objfile) <type_units>: New member.
9723 <get_type_unit_group_unshareable>: New method.
9724 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9725 num_symtabs, symtabs>: Remove; move to
9726 type_unit_group_unshareable.
9727 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9728 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9729 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9730
127bbf4b
SM
97312020-05-27 Simon Marchi <simon.marchi@efficios.com>
9732
9733 * dwarf2/read.h (struct dwarf2_per_cu_data):
9734 <dwarf2_per_objfile>: Remove.
9735 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9736 dwarf2_per_objfile.
9737 (create_signatured_type_table_from_index): Likewise.
9738 (create_signatured_type_table_from_debug_names): Likewise.
9739 (create_debug_type_hash_table): Likewise.
9740 (fill_in_sig_entry_from_dwo_entry): Likewise.
9741 (create_type_unit_group): Likewise.
9742 (read_comp_units_from_section): Likewise.
9743 (create_cus_hash_table): Likewise.
9744
f6e649dd
SM
97452020-05-27 Simon Marchi <simon.marchi@efficios.com>
9746
9747 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9748 dwarf2_per_cu_data::dwarf2_per_objfile.
9749 (compute_compunit_symtab_includes): Likewise.
9750 (dwarf2_cu::start_symtab): Likewise.
9751
aa66c379
SM
97522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9753
9754 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9755 parameter.
9756 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9757 (read_namespace_alias): Update.
9758 (lookup_die_type): Update.
9759 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9760 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9761 Update.
9762 (disassemble_dwarf_expression): Update.
9763
120ce1b5
SM
97642020-05-27 Simon Marchi <simon.marchi@efficios.com>
9765
9766 * dwarf2/read.h (struct dwarf2_queue_item): Add
9767 dwarf2_per_objfile parameter, assign new parameter.
9768 <per_objfile>: New field.
9769 * dwarf2/read.c (free_one_cached_comp_unit): Add
9770 dwarf2_per_objfile parameter.
9771 (queue_comp_unit): Likewise.
9772 (dw2_do_instantiate_symtab): Update.
9773 (process_psymtab_comp_unit): Update.
9774 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9775 (process_imported_unit_die): Update.
9776 (queue_and_load_dwo_tu): Update.
9777 (follow_die_offset): Update.
9778 (follow_die_sig_1): Update.
9779
9f47c707
SM
97802020-05-27 Simon Marchi <simon.marchi@efficios.com>
9781
9782 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9783 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9784 (read_call_site_scope): Assign per_objfile.
9785 (dwarf2_per_cu_data::objfile): Remove.
9786 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9787 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9788 dwarf2_per_objfile parameter.
9789 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9790 dwarf2_per_objfile parameter.
9791 (dwarf_expr_reg_to_entry_parameter): Add output
9792 dwarf2_per_objfile parameter.
9793 (locexpr_get_frame_base): Update.
9794 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9795 <push_dwarf_reg_entry_value>: Update.
9796 <call_site_to_target_addr>: Update.
9797 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9798 parameter.
9799 (value_of_dwarf_reg_entry): Update.
9800 (rw_pieced_value): Update.
9801 (indirect_synthetic_pointer): Update.
9802 (dwarf2_evaluate_property): Update.
9803 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9804 parameter.
9805 (locexpr_read_variable): Update.
9806 (locexpr_get_symbol_read_needs): Update.
9807 (loclist_read_variable): Update.
9808
14095eb3
SM
98092020-05-27 Simon Marchi <simon.marchi@efficios.com>
9810
9811 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9812 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9813 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9814 parameter.
9815 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9816 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9817 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9818 parameter.
9819 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9820 sect_variable_value): Add dwarf2_per_objfile parameter.
9821 (class dwarf_evaluate_loc_desc) <dwarf_call,
9822 dwarf_variable_value>: Update.
9823 (fetch_const_value_from_synthetic_pointer): Add
9824 dwarf2_per_objfile parameter.
9825 (fetch_const_value_from_synthetic_pointer): Update.
9826 (coerced_pieced_ref): Update.
9827 (class symbol_needs_eval_context) <dwarf_call,
9828 dwarf_variable_value>: Update.
9829 (dwarf2_compile_expr_to_ax): Update.
9830
3c3cd3d4
SM
98312020-05-27 Simon Marchi <simon.marchi@efficios.com>
9832
9833 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9834 parameter.
9835 (dwarf2_evaluate_loc_desc_full): Update.
9836
82ca3f51
SM
98372020-05-27 Simon Marchi <simon.marchi@efficios.com>
9838
9839 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9840 parameter.
9841 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9842 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9843 dwarf2_per_objfile parameter.
9844 (decode_debug_loc_dwo_addresses): Likewise.
9845 (dwarf2_find_location_expression): Update.
9846 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9847 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9848 parameter.
9849 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9850 parameter.
9851 (locexpr_describe_location_1): Likewise.
9852 (locexpr_describe_location): Update.
9853
4b167ea1
SM
98542020-05-27 Simon Marchi <simon.marchi@efficios.com>
9855
9856 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9857 Remove.
9858 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9859 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9860 (dwarf2_compile_property_to_c): Update.
9861 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9862 use text offset from objfile.
9863 (locexpr_tracepoint_var_ref): Update.
9864 (locexpr_generate_c_location): Update.
9865 (loclist_describe_location): Update.
9866 (loclist_tracepoint_var_ref): Update.
9867 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9868 dwarf2_per_objfile parameter.
9869 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9870 use text offset from objfile.
9871 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9872
89b07335
SM
98732020-05-27 Simon Marchi <simon.marchi@efficios.com>
9874
9875 * dwarf2/expr.h (struct dwarf_expr_context)
9876 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9877 <offset>: Remove.
9878 <per_objfile>: New member.
9879 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9880 dwarf2_per_objfile parameter. Don't set offset, set
9881 per_objfile.
9882 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9883 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9884 a dwarf2_per_objfile object instead of an offset.
9885 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9886 constructor.
9887 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9888 to dwarf2_expr_executor constructor. Don't set offset.
9889 (dwarf2_fetch_cfa_info): Update.
9890 (struct dwarf2_frame_cache) <text_offset>: Remove.
9891 <per_objfile>: New field.
9892 (dwarf2_frame_cache): Update.
9893 (dwarf2_frame_prev_register): Update.
9894 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9895 <dwarf_evaluate_loc_desc>: Add constructor.
9896 (dwarf2_evaluate_loc_desc_full): Update.
9897 (dwarf2_locexpr_baton_eval): Update.
9898 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9899 Add constructor.
9900 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9901
293e7e51
SM
99022020-05-27 Simon Marchi <simon.marchi@efficios.com>
9903
9904 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9905 addr_sized_int_type>: Move to dwarf2_cu.
9906 <int_type>: Move to dwarf2_per_objfile.
9907 (struct dwarf2_per_objfile) <int_type>: Move here.
9908 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9909 addr_sized_int_type>: Move here.
9910 (read_func_scope): Update.
9911 (read_array_type): Update.
9912 (read_tag_string_type): Update.
9913 (attr_to_dynamic_prop): Update.
9914 (dwarf2_per_cu_data::int_type): Rename to...
9915 (dwarf2_per_objfile::int_type): ... this.
9916 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9917 (dwarf2_cu::addr_sized_int_type): ... this.
9918 (read_subrange_type): Update.
9919 (dwarf2_per_cu_data::addr_type): Rename to...
9920 (dwarf2_cu::addr_type): ... this.
9921 (set_die_type): Update.
9922
64874a40
SM
99232020-05-27 Simon Marchi <simon.marchi@efficios.com>
9924
9925 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9926 data through per_cu->cu.
9927
4ab09049
SM
99282020-05-27 Simon Marchi <simon.marchi@efficios.com>
9929
9930 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9931 dwarf2_per_cu_data parameter fo dwarf2_cu.
9932 (lookup_dwo_type_unit): Likewise.
9933 (read_cutu_die_from_dwo): Likewise.
9934 (lookup_dwo_unit): Likewise.
9935 (open_and_init_dwo_file): Likewise.
9936 (lookup_dwo_cutu): Likewise.
9937 (lookup_dwo_comp_unit): Likewise.
9938 (lookup_dwo_type_unit): Likewise.
9939 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9940 (cutu_reader::cutu_reader): Update.
9941
47b14e86
SM
99422020-05-27 Simon Marchi <simon.marchi@efficios.com>
9943
9944 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9945 parameter.
9946 (process_full_type_unit): Likewise.
9947 (process_queue): Update.
9948
43182c09
SM
99492020-05-27 Simon Marchi <simon.marchi@efficios.com>
9950
9951 * dwarf2/read.c (recursively_compute_inclusions): Add
9952 dwarf2_per_objfile parameter.
9953 (compute_compunit_symtab_includes): Likewise.
9954 (process_cu_includes): Update.
9955
7aa104c4
SM
99562020-05-27 Simon Marchi <simon.marchi@efficios.com>
9957
9958 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9959 parameter.
9960 (create_type_unit_group): Update.
9961 (process_psymtab_comp_unit_reader): Update.
9962 (build_type_psymtabs_reader): Update.
9963
e3beb21d
SM
99642020-05-27 Simon Marchi <simon.marchi@efficios.com>
9965
9966 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9967 object through m_this_cu->cu.
9968
d460f660
SM
99692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9970
9971 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9972 the info parameter.
9973 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9974
ab432490
SM
99752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9976
9977 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9978 per_objfile parameter.
9979 (load_full_type_unit): Add per_objfile parameter.
9980 (read_signatured_type): Likewise.
9981 (load_full_comp_unit): Likewise.
9982 (load_cu): Likewise.
9983 (dw2_do_instantiate_symtab): Likewise.
9984 (dw2_get_file_names): Likewise.
9985 (dw2_map_symtabs_matching_filename): Update.
9986 (dw_expand_symtabs_matching_file_matcher): Update.
9987 (dw2_map_symbol_filenames): Update.
9988 (process_psymtab_comp_unit): Add per_objfile parameter.
9989 (build_type_psymtabs_1): Update.
9990 (process_skeletonless_type_unit): Update.
9991 (dwarf2_build_psymtabs_hard): Update.
9992 (load_partial_comp_unit): Add per_objfile parameter.
9993 (scan_partial_symbols): Update.
9994 (load_full_comp_unit): Add per_objfile parameter.
9995 (process_imported_unit_die): Update.
9996 (create_cus_hash_table): Update.
9997 (find_partial_die): Update.
9998 (dwarf2_read_addr_index): Update.
9999 (follow_die_offset): Update.
10000 (dwarf2_fetch_die_loc_sect_off): Update.
10001 (dwarf2_fetch_constant_bytes): Update.
10002 (dwarf2_fetch_die_type_sect_off): Update.
10003 (follow_die_sig_1): Update.
10004 (load_full_type_unit): Add per_objfile parameter.
10005 (read_signatured_type): Likewise.
10006
313bad1b
SM
100072020-05-27 Simon Marchi <simon.marchi@efficios.com>
10008
10009 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10010 of objfile_name.
10011
c3699833
SM
100122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10013
10014 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10015 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10016 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10017 field.
10018 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10019 (create_cus_from_index): Update.
10020 (dwarf2_read_gdb_index): Update.
10021 (create_cus_from_debug_names): Update.
10022 (dwarf2_read_debug_names): Update.
10023 (get_abbrev_section_for_cu): Update.
10024 (create_all_comp_units): Update.
10025 (read_attribute_value): Update.
10026 (get_debug_line_section): Update.
10027 * dwarf2/index-cache.c (index_cache::store): Update.
10028 * dwarf2/index-write.c (save_gdb_index_command): Update.
10029 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10030
1859c670
SM
100312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10032
10033 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10034 member.
10035 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10036 dwarf2_per_cu_data::per_bfd.
10037 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10038 (create_type_unit_group): Likewise.
10039 (queue_comp_unit): Remove reference to
10040 per_cu->dwarf2_per_objfile.
10041 (maybe_queue_comp_unit): Likewise.
10042 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10043 (create_cus_hash_table): Assign new field.
10044
5e22e966
SM
100452020-05-27 Simon Marchi <simon.marchi@efficios.com>
10046
10047 * dwarf2/read.c: Replace
10048 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10049 dwarf2_cu->per_objfile throughout.
10050
97a1449a
SM
100512020-05-27 Simon Marchi <simon.marchi@efficios.com>
10052
10053 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10054 parameter, don't use per_cu->dwarf2_per_objfile.
10055 (dw2_instantiate_symtab): Likewise.
10056 (dw2_find_last_source_symtab): Update.
10057 (dw2_map_expand_apply): Update.
10058 (dw2_lookup_symbol): Update.
10059 (dw2_expand_symtabs_for_function): Update.
10060 (dw2_expand_all_symtabs): Update.
10061 (dw2_expand_symtabs_with_fullname): Update.
10062 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10063 don't use per_cu->dwarf2_per_objfile.
10064 (dw2_expand_marked_cus): Update.
10065 (dw2_find_pc_sect_compunit_symtab): Update.
10066 (dw2_debug_names_lookup_symbol): Update.
10067 (dw2_debug_names_expand_symtabs_for_function): Update.
10068 (dw2_debug_names_map_matching_symbols): Update.
10069 (dwarf2_psymtab::expand_psymtab): Update.
10070
9e021579
SM
100712020-05-27 Simon Marchi <simon.marchi@efficios.com>
10072
10073 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10074 <per_objfile>: New member.
10075 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10076 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10077 call to dwarf2_cu.
10078 (cutu_reader::cutu_reader): Update.
10079 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10080
ae090bdb
SM
100812020-05-27 Simon Marchi <simon.marchi@efficios.com>
10082
10083 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10084 struct dwarf2_per_objfile.
10085 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10086 dwarf2_per_bfd.
10087 * dwarf2/read.c (set_die_type): Update.
10088 (get_die_type_at_offset): Update.
10089
af758d11
SM
100902020-05-27 Tom Tromey <tom@tromey.com>
10091 Simon Marchi <simon.marchi@efficios.com>
10092
10093 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10094 method.
10095 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10096 get_symtab, set_symtab>: New methods.
10097 <m_symtabs>: New field.
10098 (struct dwarf2_psymtab): Derive from partial_symtab.
10099 <readin_p, get_compunit_symtab>: Declare methods.
10100 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10101 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10102 New methods.
10103 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10104 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10105 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10106 (dw2_symtab_iter_next, dw2_print_stats)
10107 (dw2_expand_symtabs_with_fullname)
10108 (dw2_expand_symtabs_matching_one)
10109 (dw_expand_symtabs_matching_file_matcher)
10110 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10111 (dw2_debug_names_iterator::next)
10112 (dw2_debug_names_map_matching_symbols)
10113 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10114 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10115 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10116 New methods.
10117 (get_compunit_symtab, process_full_comp_unit)
10118 (process_full_type_unit): Update.
10119 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10120
5989a64e
SM
101212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10122
10123 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10124 then introduce a new dwarf2_per_objfile type.
10125 <read_line_string>: Move to the new dwarf2_per_objfile type.
10126 <objfile>: Likewise.
10127 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10128 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10129 dwarf2_per_objfile->per_bfd.
10130 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10131 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10132 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10133 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10134 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10135 (dwarf2_per_objfile::locate_sections): Rename to...
10136 (dwarf2_per_bfd::locate_sections): ... this.
10137 (dwarf2_per_objfile::get_cutu): Rename to...
10138 (dwarf2_per_bfd::get_cutu): ... this.
10139 (dwarf2_per_objfile::get_cu): Rename to...
10140 (dwarf2_per_bfd::get_cu): ... this.
10141 (dwarf2_per_objfile::get_tu): Rename to...
10142 (dwarf2_per_bfd::get_tu): ... this.
10143 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10144 (dwarf2_per_bfd::allocate_per_cu): ... this.
10145 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10146 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10147 (get_gdb_index_contents_ftype): Change parameter from
10148 dwarf2_per_objfile to dwarf2_per_bfd.
10149 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10150 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10151
a50264ba
TT
101522020-05-27 Tom Tromey <tom@tromey.com>
10153 Simon Marchi <simon.marchi@efficios.com>
10154
10155 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10156 (allocate_piece_closure): Set "per_objfile" member.
10157 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10158 (locexpr_describe_location, loclist_describe_location): Use new
10159 member.
10160 * dwarf2/read.c (read_call_site_scope)
10161 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10162 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10163 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10164 handle_data_member_location): Set per_objfile member.
10165 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10166 member.
10167 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10168
d3473f0c
TT
101692020-05-27 Tom Tromey <tom@tromey.com>
10170
10171 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10172 allocate_signatured_type>: Declare new methods.
10173 <m_num_psymtabs>: New member.
10174 (struct dwarf2_per_cu_data) <index>: New member.
10175 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10176 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10177 (create_cu_from_index_list): Use allocate_per_cu.
10178 (create_signatured_type_table_from_index)
10179 (create_signatured_type_table_from_debug_names)
10180 (create_debug_type_hash_table, add_type_unit)
10181 (read_comp_units_from_section): Use allocate_signatured_type.
10182
5717c425
TT
101832020-05-27 Tom Tromey <tom@tromey.com>
10184
10185 * psymtab.c (partial_map_expand_apply)
10186 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10187 (psym_lookup_global_symbol_language)
10188 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10189 (psym_print_stats, psym_expand_symtabs_for_function)
10190 (psym_map_symbol_filenames, psym_map_matching_symbols)
10191 (psym_expand_symtabs_matching)
10192 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10193 (maintenance_check_psymtabs): Update.
10194 * psympriv.h (struct partial_symtab) <readin_p,
10195 get_compunit_symtab>: Add objfile parameter.
10196 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10197 Likewise.
10198 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10199 get_compunit_symtab>: Likewise.
10200 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10201
45940949
TT
102022020-05-27 Tom Tromey <tom@tromey.com>
10203
10204 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10205 member.
10206 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10207 (create_cu_from_index_list)
10208 (create_signatured_type_table_from_index)
10209 (create_signatured_type_table_from_debug_names)
10210 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10211 (dwarf2_create_include_psymtab)
10212 (create_debug_type_hash_table, add_type_unit)
10213 (create_type_unit_group, read_comp_units_from_section)
10214 (dwarf2_compute_name, create_cus_hash_table)
10215 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10216 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10217 obstack.
10218 (dw2_get_real_path): Likewise. Change argument to
10219 dwarf2_per_objfile.
10220
f8c6d152
LM
102212020-05-27 Luis Machado <luis.machado@linaro.org>
10222
10223 PR tdep/26000
10224 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10225 for ldrd (immediate).
10226
e98d2e6d
PW
102272020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10228
10229 * command.h: Add comment giving the name of class_tui.
10230 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10231 create the fake command for the help for class_tui.
10232
53a47a3e
TT
102332020-05-26 Tom Tromey <tromey@adacore.com>
10234
10235 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10236 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10237 (val_atr): New function.
10238 (value_val_atr): Use it.
10239 * ada-valprint.c (print_optional_low_bound): Change low bound
10240 handling for enums.
10241 (val_print_packed_array_elements): Don't call discrete_position.
10242 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10243 discrete_position for enum types.
10244 * language.c (default_print_array_index): Change type.
10245 * language.h (struct language_defn) <la_print_array_index>: Add
10246 index_type parameter, change type of index_value.
10247 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10248 (default_print_array_index): Update.
10249 * valprint.c (maybe_print_array_index): Don't call
10250 value_from_longest. Update.
10251 (value_print_array_elements): Don't call discrete_position.
10252
0bc2354b
TT
102532020-05-26 Tom Tromey <tromey@adacore.com>
10254
10255 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10256 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10257
1218a4bf
CDA
102582020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10259
10260 PR gdb/13519
10261 * avr-tdep.c (avr_integer_to_address): Return data or code
10262 address accordingly to the second 'type' argument of the
10263 function.
10264
92651b1d
MW
102652020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10266
10267 * infcmd.c, inferior.h: (construct_inferior_arguments):
10268 Moved function from here to gdbsupport/common-inferior.{h,cc}
10269
0a4f5f8c
TT
102702020-05-23 Tom Tromey <tom@tromey.com>
10271
10272 Revert commit eca1f90c:
10273 * NEWS: Remove entry for completion styling.
10274 * completer.c (_rl_completion_prefix_display_length): Move
10275 declaration later.
10276 (gdb_fnprint): Revert.
10277 (gdb_display_match_list_1): Likewise.
10278 * cli/cli-style.c (completion_prefix_style)
10279 (completion_difference_style, completion_suffix_style): Remove.
10280 (_initialize_cli_style): Revert.
10281 * cli/cli-style.h (completion_prefix_style)
10282 (completion_difference_style, completion_suffix_style): Don't
10283 declare.
10284
e08bd6c5
PA
102852020-05-24 Pedro Alves <palves@redhat.com>
10286
10287 * symtab.c (completion_list_add_name): Return boolean indication
10288 of whether the symbol matched.
10289 (completion_list_add_symbol): Don't try to remove C++ aliases if
10290 the symbol didn't match in the first place.
10291 * symtab.h (completion_list_add_name): Return bool.
10292
ceacbf6e
SM
102932020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10294
10295 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10296 type::field.
10297
26f16254
JB
102982020-05-23 Joel Brobecker <brobecker@adacore.com>
10299
10300 GDB 9.2 released.
10301
eca1f90c
TT
103022020-05-23 Tom Tromey <tom@tromey.com>
10303
10304 * NEWS: Add entry for completion styling.
10305 * completer.c (_rl_completion_prefix_display_length): Move
10306 declaration earlier.
10307 (gdb_fnprint): Use completion_style.
10308 (gdb_display_match_list_1): Likewise.
10309 * cli/cli-style.c (completion_prefix_style)
10310 (completion_difference_style, completion_suffix_style): New
10311 globals.
10312 (_initialize_cli_style): Register new globals.
10313 * cli/cli-style.h (completion_prefix_style)
10314 (completion_difference_style, completion_suffix_style): Declare.
10315
51e2cfa2
PA
103162020-05-23 Pedro Alves <palves@redhat.com>
10317
10318 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10319 (parse_escape): Use ISDIGIT instead of isdigit.
10320 (puts_debug): Use gdb_isprint instead of isprint.
10321 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10322 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10323 ISSPACE instead of isspace.
10324 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10325 instead of isspace.
10326 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10327 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10328 instead of isxdigit and ISDIGIT instead of isdigit.
10329
80fc5e77
SM
103302020-05-22 Simon Marchi <simon.marchi@efficios.com>
10331
10332 * gdbtypes.h (struct type) <field>: New method.
10333 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10334 or type::field.
10335
3cabb6b0
SM
103362020-05-22 Simon Marchi <simon.marchi@efficios.com>
10337
10338 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10339 (TYPE_FIELDS): Use type::fields. Change all call sites that
10340 modify the propery to use type::set_fields instead.
10341
1f704f76
SM
103422020-05-22 Simon Marchi <simon.marchi@efficios.com>
10343
10344 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10345 type::num_fields instead.
10346
5e33d5f4
SM
103472020-05-22 Simon Marchi <simon.marchi@efficios.com>
10348
10349 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10350 methods.
10351 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10352 that modify the number of fields to use type::set_num_fields
10353 instead.
10354
9392ebb3
TT
103552020-05-22 Tom Tromey <tromey@adacore.com>
10356
10357 * compile/compile-object-load.h (munmap_list_free): Don't
10358 declare.
10359
7c13f4e8
AB
103602020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10361
10362 * annotate.c (annotate_source_line): Update return type, add call
10363 to update current symtab and line.
10364 * annotate.h (annotate_source_line): Update return type, and
10365 extend header comment.
10366 * source.c (info_line_command): Check annotation_level before
10367 calling annotate_source_line.
10368 * stack.c (print_frame_info): If calling annotate_source_line
10369 returns true, then don't print any other source line information.
10370
aa370940
SM
103712020-05-21 Simon Marchi <simon.marchi@efficios.com>
10372
10373 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10374
84d53fa9
SM
103752020-05-21 Simon Marchi <simon.marchi@efficios.com>
10376
10377 * coffread.c (patch_type): Remove NULL check before xfree.
10378 * corefile.c (set_gnutarget): Likewise.
10379 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10380 * exec.c (build_section_table): Likewise.
10381 * remote.c (remote_target::pass_signals): Likewise.
10382 * utils.c (n_spaces): Likewise.
10383 * cli/cli-script.c (document_command): Likewise.
10384 * i386-windows-tdep.c (core_process_module_section): Likewise.
10385 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10386
9d428aae
SM
103872020-05-20 Simon Marchi <simon.marchi@efficios.com>
10388
10389 * symfile.c (reread_symbols): Clear objfile's section_offsets
10390 vector and section indices, re-compute them by calling
10391 sym_offsets.
10392
250106a7
TT
103932020-05-20 Tom Tromey <tromey@adacore.com>
10394
10395 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10396 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10397
9a0bacfb
TV
103982020-05-20 Tom de Vries <tdevries@suse.de>
10399
10400 PR symtab/25833
10401 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10402
7b958a48
AM
104032020-05-20 Alan Modra <amodra@gmail.com>
10404
10405 PR 25993
10406 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10407 bfd_set_filename.
10408 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10409 passed to bfd_set_filename.
10410 * symfile-mem.c (add_vsyscall_page): Likewise for string
10411 passed to symbol_file_add_from_memory.
10412 (symbol_file_add_from_memory): Make name param a const char* and
10413 don't strdup.
10414
c7e97679
AM
104152020-05-20 Alan Modra <amodra@gmail.com>
10416
10417 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10418 rather than accessing bfd->filename directly.
10419 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10420 and use bfd_section_name.
10421 * dwarf2/frame.c (decode_frame_entry): Likewise.
10422 * exec.c (exec_set_section_address): Likewise.
10423 * solib-aix.c (solib_aix_bfd_open): Likewise.
10424 * stap-probe.c (get_stap_base_address): Likewise.
10425 * symfile.c (reread_symbols): Likewise.
10426
563c591b
TT
104272020-05-19 Tom Tromey <tromey@adacore.com>
10428
10429 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10430
f408d82c
SM
104312020-05-19 Simon Marchi <simon.marchi@efficios.com>
10432
10433 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10434
98c59b52
PA
104352020-05-19 Pedro Alves <palves@redhat.com>
10436
10437 * NEWS (set exec-file-mismatch): Adjust entry.
10438 * exec.c: Include "build-id.h".
10439 (validate_exec_file): Try to match build IDs instead of filenames.
10440 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10441 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10442 and pass down 'warn_if_slow'.
10443 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10444 gdb_bfd_open_closure to pass it down.
10445 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10446
4111f652
PA
104472020-05-19 Pedro Alves <palves@redhat.com>
10448
10449 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10450 * target.c (target_fileio_open_1): Rename to target_fileio_open
10451 and make extern. Use bool.
10452 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10453 (target_fileio_read_alloc_1): Adjust.
10454 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10455 (target_fileio_open_warn_if_slow): Delete declaration.
10456
ad80db5b
PA
104572020-05-19 Pedro Alves <palves@redhat.com>
10458
10459 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10460 Adjust all callers.
10461
1d6ce4d3
YS
104622020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10463
10464 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10465 whether disp is negative.
10466
9005fbbb
SM
104672020-05-19 Simon Marchi <simon.marchi@efficios.com>
10468
10469 * symfile.h (struct symfile_segment_data)
10470 <~symfile_segment_data>: Remove.
10471 <segment_info>: Change to std::vector.
10472 * symfile.c (default_symfile_segments): Update.
10473 * elfread.c (elf_symfile_segments): Update.
10474
68b888ff
SM
104752020-05-19 Simon Marchi <simon.marchi@efficios.com>
10476
10477 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10478 <segments>: New.
10479 <segment_bases, segment_sizes>: Remove.
10480 * symfile.c (default_symfile_segments): Update.
10481 * elfread.c (elf_symfile_segments): Update.
10482 * remote.c (remote_target::get_offsets): Update.
10483 * solib-target.c (solib_target_relocate_section_addresses):
10484 Update.
10485
62982abd
SM
104862020-05-19 Simon Marchi <simon.marchi@efficios.com>
10487
10488 * symfile.h (struct symfile_segment_data): Initialize fields.
10489 <~symfile_segment_data>: Add.
10490 (symfile_segment_data_up): New.
10491 (struct sym_fns) <sym_segments>: Return a
10492 symfile_segment_data_up.
10493 (default_symfile_segments): Return a symfile_segment_data_up.
10494 (free_symfile_segment_data): Remove.
10495 (get_symfile_segment_data): Return a symfile_segment_data_up.
10496 * symfile.c (default_symfile_segments): Likewise.
10497 (get_symfile_segment_data): Likewise.
10498 (free_symfile_segment_data): Remove.
10499 (symfile_find_segment_sections): Update.
10500 * elfread.c (elf_symfile_segments): Return a
10501 symfile_segment_data_up.
10502 * remote.c (remote_target::get_offsets): Update.
10503 * solib-target.c (solib_target_relocate_section_addresses):
10504 Update.
10505 * symfile-debug.c (debug_sym_segments): Return a
10506 symfile_segment_data_up.
10507
7f204339
RO
105082020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10509
e52a0f1b
RO
10510 PR build/25981
10511 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10512 Hardcode register numbers.
10513
7f204339
RO
10514 PR build/25981
10515 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10516 procfs_find_LDT_entry): Remove.
10517 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10518 procfs_find_LDT_entry): Remove.
10519 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10520 Remove.
10521
7f32a4d5
PA
105222020-05-17 Pedro Alves <palves@redhat.com>
10523 Andrew Burgess <andrew.burgess@embecosm.com>
10524 Keno Fischer <keno@juliacomputing.com>
10525
10526 PR gdb/25741
10527 * breakpoint.c (build_target_condition_list): Update comments.
10528 (build_target_command_list): Update comments and skip matching
10529 locations.
10530 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10531 a separate function. Simplify "set breakpoint auto-hw off"
10532 handling.
10533 (insert_breakpoints): Update comment.
10534 (tracepoint_locations_match): New parameter. For breakpoints,
10535 compare location types too, if the caller wants to.
10536 (handle_automatic_hardware_breakpoints): New functions.
10537 (bp_location_is_less_than): Also sort by location type and
10538 hardware breakpoint length.
10539 (update_global_location_list): Handle "set breakpoint auto-hw on"
10540 here.
10541 (update_breakpoint_locations): Ask breakpoint_locations_match to
10542 ignore location types.
10543
7d93a1e0
SM
105442020-05-16 Simon Marchi <simon.marchi@efficios.com>
10545
10546 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10547 type::name instead.
10548
d0e39ea2
SM
105492020-05-16 Simon Marchi <simon.marchi@efficios.com>
10550
10551 * gdbtypes.h (struct type) <name, set_name>: New methods.
10552 (TYPE_CODE): Use type::name. Change all call sites used to set
10553 the name to use type::set_name instead.
10554
2dab0c7b
TT
105552020-05-16 Tom Tromey <tom@tromey.com>
10556
10557 * top.c (quit_force): Update.
10558 * infrun.c (handle_no_resumed): Update.
10559 * top.h (all_uis): New function.
10560 (ALL_UIS): Remove.
10561
59f7bd8d
SM
105622020-05-16 Simon Marchi <simon.marchi@efficios.com>
10563
10564 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10565
9bf058f0
PA
105662020-05-16 Pedro Alves <palves@redhat.com>
10567
10568 * ia64-linux-nat.c
10569 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10570 Declare method.
10571 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10572
8f86ae1a
SM
105732020-05-15 Simon Marchi <simon.marchi@efficios.com>
10574
10575 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10576 (sparc64_adi_info): Likewise.
10577
d6bc0792
TT
105782020-05-15 Tom Tromey <tom@tromey.com>
10579
10580 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10581 block_objfile.
10582 (lookup_objfile_from_block): Remove.
10583 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10584 (lookup_global_symbol): Use block_objfile.
10585 * symtab.h (lookup_objfile_from_block): Don't declare.
10586 * printcmd.c (clear_dangling_display_expressions): Use
10587 block_objfile.
10588 * parse.c (operator_check_standard): Use block_objfile.
10589
8c14c3a3
TT
105902020-05-15 Tom Tromey <tom@tromey.com>
10591
10592 * language.c (language_alloc_type_symbol): Set
10593 SYMBOL_SECTION.
10594 * symtab.c (initialize_objfile_symbol): Remove.
10595 (allocate_symbol): Remove.
10596 (allocate_template_symbol): Remove.
10597 * dwarf2/read.c (fixup_go_packaging): Use "new".
10598 (new_symbol): Use "new".
10599 (read_variable): Don't call initialize_objfile_symbol. Use
10600 "new".
10601 (read_func_scope): Use "new".
10602 * xcoffread.c (process_xcoff_symbol): Don't call
10603 initialize_objfile_symbol.
10604 (SYMBOL_DUP): Remove.
10605 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10606 "new".
10607 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10608 (allocate_template_symbol): Don't declare.
10609 (struct symbol): Add copy constructor. Change defaults.
10610 * jit.c (finalize_symtab): Use "new".
10611 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10612 Use "new".
10613 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10614 (common_block_end): Use "new".
10615 * mdebugread.c (parse_symbol): Use "new".
10616 (new_symbol): Likewise.
10617
5b4a1a8d
PW
106182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10619
10620 * NEWS: Mention changes to help and apropos.
10621
57b4f16e
PW
106222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10623
10624 * command.h (enum command_class): Improve comments, document
10625 that class_alias is for user-defined aliases, give the class
10626 name for each class, remove unused class_xdb.
10627 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10628 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10629 by a precise class.
10630 * infcmd.c (_initialize_infcmd): Likewise.
10631 * reverse.c (_initialize_reverse): Likewise.
10632 * stack.c (_initialize_stack): Likewise.
10633 * symfile.c (_initialize_symfile): Likewise.
10634 * tracepoint.c (_initialize_tracepoint): Likewise.
10635
7c05caf7
PW
106362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10637
10638 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10639 when their aliased command is traversed.
10640 (help_cmd): Add fput_command_names_styled call to
10641 output command name and aliases when command has an alias.
10642
3b3aaacb
PW
106432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10644
10645 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10646 * cli/cli-decode.c (help_cmd_list): Declare as static,
10647 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10648 a command together with the command.
10649 (fput_command_name_styled, fput_command_names_styled): New functions.
10650 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10651 fput_command_name_styled.
10652 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10653 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10654
7aa1b46f
PW
106552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10656
10657 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10658 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10659 * command.h (cmd_show_list): Likewise.
10660 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10661 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10662
89bcba74
PW
106632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10664
10665 * unittests/command-def-selftests.c (traverse_command_structure):
10666 Verify all commands of a list have the same prefix command and
10667 that only the top cmdlist commands have a null prefix.
10668
3f4d92eb
PW
106692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10670
10671 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10672 as prefix, not one of its aliases.
10673 (set_cmd_prefix): Remove.
10674 (do_add_cmd): Centralize the setting of the prefix of a command, when
10675 command is defined after its full chain of prefix commands.
10676 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10677 (add_setshow_cmd_full): Likewise.
10678 (update_prefix_field_of_prefixed_commands): New function.
10679 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10680 update_prefix_field_of_prefixed_commands.
10681 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10682 addresses of remote_set_cmdlist and remote_show_cmdlist given
10683 as argument, not the address of an argument.
10684 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10685 * gdb/remote.c (_initialize_remote): Likewise.
10686
0605465f
PW
106872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10688
10689 * cli/cli-cmds.c (alias_command): Check for an existing alias
10690 using lookup_cmd_composition, as valid_command_p is too strict
10691 and forbids aliases that are the prefix of an existing alias
10692 or command.
10693 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10694 command is properly recognised as a valid command.
10695
58e6ac70
PW
106962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10697
10698 * unittests/help-doc-selftests.c: Rename to
10699 unittests/command-def-selftests.c
10700 * unittests/command-def-selftests.c (help_doc_tests): Update some
10701 comments.
10702 (command_structure_tests, traverse_command_structure): New namespace
10703 and function.
10704 (command_structure_invariants_tests): New function.
10705 (_initialize_command_def_selftests) Renamed from
10706 _initialize_help_doc_selftests, register command_structure_invariants
10707 selftest.
10708
a7b9ceb8
PW
107092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10710
10711 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10712 an alias of 'show'.
10713
b2188a06
JB
107142020-05-15 Joel Brobecker <brobecker@adacore.com>
10715
10716 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10717 ada_is_fixed_point_type. Update all callers.
10718 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10719 all callers.
10720 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10721 Update all callers.
10722 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10723 print_fixed_point_type. Update all callers.
10724 * ada-valprint.c (ada_value_print_num): Replace call to
10725 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10726
a51951c2
KB
107272020-05-14 Kevin Buettner <kevinb@redhat.com>
10728
10729 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10730 processors.
10731 (cpu_supports_bts): Add CV_AMD case.
10732
29d6859f
LM
107332020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10734 Simon Marchi <simon.marchi@efficios.com>
10735
10736 * infrun.c (stop_all_threads): Collect multiple wait events at
10737 each pass.
10738
78134374
SM
107392020-05-14 Simon Marchi <simon.marchi@efficios.com>
10740
10741 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10742 type::code instead.
10743
67607e24
SM
107442020-05-14 Simon Marchi <simon.marchi@efficios.com>
10745
10746 * gdbtypes.h (struct type) <code, set_code>: New methods.
10747 (TYPE_CODE): Use type::code. Change all call sites used to set
10748 the code to use type::set_code instead.
10749
a05575d3
TBA
107502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10751 Tom de Vries <tdevries@suse.de>
10752 Pedro Alves <palves@redhat.com>
10753
10754 PR threads/25478
10755 * infrun.c (stop_all_threads): Do NOT ignore
10756 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10757 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10758 received.
10759 (handle_no_resumed): Remove code handling a live inferior with no
10760 threads.
10761 * remote.c (has_single_non_exited_thread): New.
10762 (remote_target::update_thread_list): Do not delete a thread if is
10763 the last thread of the process.
10764 * thread.c (thread_select): Call delete_exited_threads instead of
10765 prune_threads.
10766
6ad82919
TBA
107672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10768
10769 * infrun.c (stop_all_threads): Enable/disable thread events of all
10770 targets. Move a debug message denoting the end of the function
10771 into the SCOPED_EXIT block.
10772
d890404b
TBA
107732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10774
10775 * process-stratum-target.h: Include <set>.
10776 (all_non_exited_process_targets, switch_to_target_no_thread): New
10777 function declarations.
10778 * process-stratum-target.c (all_non_exited_process_targets)
10779 (switch_to_target_no_thread): New function implementations.
10780
293b3ebc
TBA
107812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10782
10783 * infrun.c (handle_inferior_event): Extract out a piece of code
10784 into...
10785 (mark_non_executing_threads): ...this new function.
10786
7ca9b62a
TBA
107872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10788
10789 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10790 use.
10791
fc75c28b
TBA
107922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10793
10794 * regcache.c (regcache_read_pc_protected): New function
10795 implementation that returns 0 if the PC cannot read via
10796 'regcache_read_pc'.
10797 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10798 instead of 'regcache_read_pc'.
10799 (keep_going_pass_signal): Ditto.
10800
a89febbd
TT
108012020-05-13 Tom Tromey <tromey@adacore.com>
10802
10803 * ada-lang.c (align_value): Remove.
10804 (ada_template_to_fixed_record_type_1): Use align_up.
10805
f7e23710
TBA
108062020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10807
10808 * async-event.c: Update the copyright year.
10809 * async-event.h: Update the copyright year.
10810
02ff80c2
SM
108112020-05-12 Simon Marchi <simon.marchi@efficios.com>
10812
10813 * objfiles.h (is_addr_in_objfile,
10814 shared_objfile_contains_address_p): Return bool.
10815 * objfile.c (is_addr_in_objfile,
10816 shared_objfile_contains_address_p): Return bool.
10817
4fd6c7e8
TT
108182020-05-11 Tom Tromey <tromey@adacore.com>
10819
10820 * cli/cli-cmds.c (info_command): Restore.
10821 (_initialize_cli_cmds): Use add_prefix_command for "info".
10822 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10823
5eb68a39
TT
108242020-05-11 Tom Tromey <tromey@adacore.com>
10825
10826 * ada-lang.c (ada_value_primitive_field): Now public.
10827 * ada-lang.h (ada_value_primitive_field): Declare.
10828 * ada-valprint.c (print_field_values): Use
10829 ada_value_primitive_field for wrapper fields.
10830
7666722f
TV
108312020-05-11 Tom de Vries <tdevries@suse.de>
10832
10833 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10834 MODULE_DOMAIN.
10835
3ee6bb11
TV
108362020-05-11 Tom de Vries <tdevries@suse.de>
10837
10838 PR symtab/25941
10839 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10840 with length 0, if not gdb-produced.
10841 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10842
43434996
TV
108432020-05-09 Tom de Vries <tdevries@suse.de>
10844
10845 PR gdb/25955
10846 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10847 calculation.
10848
2f78cffc
TT
108492020-05-09 Tom Tromey <tom@tromey.com>
10850
10851 * top.c (server_command): Now bool.
10852 * top.h (server_command): Now bool.
10853
4f7bc5ed
TT
108542020-05-08 Tom Tromey <tromey@adacore.com>
10855
10856 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10857 already being processed.
10858
8be4b118
TT
108592020-05-08 Tom Tromey <tom@tromey.com>
10860
10861 * printcmd.c (struct display) <next>: Remove.
10862 <display>: New constructor.
10863 <exp_string>: Now a std::string.
10864 <enabled_p>: Now a bool.
10865 (display_number): Move definition earlier.
10866 (displays): Rename from display_chain. Now a std::vector.
10867 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10868 (display_command): Update.
10869 (do_one_display, disable_display)
10870 (enable_disable_display_command, do_enable_disable_display):
10871 Update.
10872 (free_display): Remove.
10873 (clear_displays): Rewrite.
10874 (delete_display): Update.
10875 (map_display_numbers): Use function_view. Remove "data"
10876 parameter. Update.
10877 (do_delete_display): Remove.
10878 (undisplay_command): Update.
10879 (do_one_display, do_displays, disable_display)
10880 (info_display_command): Update.
10881 (do_enable_disable_display): Remove.
10882 (enable_disable_display_command)
10883 (clear_dangling_display_expressions): Update.
10884
94c93c35
TT
108852020-05-08 Tom Tromey <tom@tromey.com>
10886
10887 * symtab.c (set_symbol_cache_size)
10888 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10889 (maintenance_print_symbol_cache_statistics): Update.
10890 * symmisc.c (print_symbol_bcache_statistics)
10891 (print_objfile_statistics, maintenance_print_objfiles)
10892 (maintenance_info_symtabs, maintenance_check_symtabs)
10893 (maintenance_expand_symtabs, maintenance_info_line_tables):
10894 Update.
10895 * symfile-debug.c (set_debug_symfile): Update.
10896 * source.c (forget_cached_source_info): Update.
10897 * python/python.c (gdbpy_progspaces): Update.
10898 * psymtab.c (maintenance_info_psymtabs): Update.
10899 * probe.c (parse_probes): Update.
10900 * linespec.c (iterate_over_all_matching_symtabs)
10901 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10902 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10903 * exec.c (exec_target::close): Update.
10904 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10905 * breakpoint.c (print_one_breakpoint_location)
10906 (create_longjmp_master_breakpoint)
10907 (create_std_terminate_master_breakpoint): Update.
10908 * progspace.c (program_spaces): Now a std::vector.
10909 (maybe_new_address_space): Update.
10910 (add_program_space): Remove.
10911 (program_space::program_space): Update.
10912 (remove_program_space): Update.
10913 (number_of_program_spaces): Remove.
10914 (print_program_space, update_address_spaces): Update.
10915 * progspace.h (program_spaces): Change type.
10916 (ALL_PSPACES): Remove.
10917 (number_of_program_spaces): Don't declare.
10918 (struct program_space) <next>: Remove.
10919
a1fd1ac9
TT
109202020-05-08 Tom Tromey <tom@tromey.com>
10921
10922 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10923 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10924 (enable_break): Update.
10925 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10926 (frv_fdpic_find_canonical_descriptor): Update.
10927 (frv_fetch_objfile_link_map): Update.
10928 * progspace.c (program_space::free_all_objfiles): Update.
10929 (program_space::solibs): New method.
10930 * progspace.h (struct program_space) <solibs>: New method.
10931 * solist.h (master_so_list): Don't declare.
10932 (ALL_SO_LIBS): Remove.
10933 * solib.h (so_list_head): Remove.
10934 (update_solib_list): Update comment.
10935 * solib.c (master_so_list): Remove.
10936 (solib_used, update_solib_list, solib_add)
10937 (info_sharedlibrary_command, clear_solib)
10938 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10939
38eae084
TT
109402020-05-08 Tom Tromey <tom@tromey.com>
10941
10942 * extension.c (extension_languages): Now a std::array.
10943 (ALL_EXTENSION_LANGUAGES): Remove.
10944 (get_ext_lang_defn, get_ext_lang_of_file)
10945 (eval_ext_lang_from_control_command): Update.
10946 (finish_ext_lang_initialization)
10947 (auto_load_ext_lang_scripts_for_objfile)
10948 (ext_lang_type_printers::ext_lang_type_printers)
10949 (apply_ext_lang_type_printers)
10950 (ext_lang_type_printers::~ext_lang_type_printers)
10951 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10952 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10953 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10954 (get_matching_xmethod_workers, ext_lang_colorize)
10955 (ext_lang_before_prompt): Update.
10956 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10957
596dc4ad
TT
109582020-05-08 Tom Tromey <tom@tromey.com>
10959
10960 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10961 overload.
10962 <swap_string, m_string>: Remove.
10963 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10964 Update.
10965 * stabsread.c (define_symbol, read_type): Update.
10966 * linespec.c (find_linespec_symbols): Update.
10967 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10968 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10969 * dbxread.c (read_dbx_symtab): Update.
10970 * cp-support.h (cp_canonicalize_string_full)
10971 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10972 Return unique_xmalloc_ptr.
10973 * cp-support.c (inspect_type): Update.
10974 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10975 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10976 Likewise.
10977 * c-typeprint.c (print_name_maybe_canonical): Update.
10978 * break-catch-throw.c (check_status_exception_catchpoint):
10979 Update.
10980
bf4cb9be
TV
109812020-05-08 Tom de Vries <tdevries@suse.de>
10982
10983 * infrun.c (follow_fork): Copy current_line and current_symtab to
10984 child thread.
10985
a1b68f28
SM
109862020-05-07 Simon Marchi <simon.marchi@efficios.com>
10987
10988 * async-event.c (struct async_signal_handler, struct
10989 async_event_handler): Reformat, remove typedef.
10990
98d48915
SM
109912020-05-07 Simon Marchi <simon.marchi@efficios.com>
10992
10993 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10994 access thistype->main_type->dyn_prop_list directly.
10995
7aa91313
SM
109962020-05-07 Simon Marchi <simon.marchi@efficios.com>
10997
10998 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10999 (remove_dyn_prop): Remove. Update all users to use
11000 type::remove_dyn_prop.
11001 * gdbtypes.c (remove_dyn_prop): Rename to...
11002 (type::remove_dyn_prop): ... this.
11003
5c54719c
SM
110042020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11005
11006 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11007 (add_dyn_prop): Remove. Update all users to use
11008 type::add_dyn_prop.
11009 * gdbtypes.c (add_dyn_prop): Rename to...
11010 (type::add_dyn_prop): ... this.
11011
24e99c6c
SM
110122020-05-07 Simon Marchi <simon.marchi@efficios.com>
11013
11014 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11015 (get_dyn_prop): Remove. Update all users to use
11016 type::dyn_prop.
11017 * gdbtypes.c (get_dyn_prop): Rename to...
11018 (type::dyn_prop): ... this.
11019
0d4bf016
SM
110202020-05-06 Simon Marchi <simon.marchi@efficios.com>
11021
11022 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11023
ac4a4f1c
SM
110242020-05-06 Simon Marchi <simon.marchi@efficios.com>
11025
11026 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11027 instruction, skip it if it's there.
11028
a3bbacc1
SM
110292020-05-05 Simon Marchi <simon.marchi@efficios.com>
11030
11031 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11032
c3236f84
SM
110332020-05-04 Simon Marchi <simon.marchi@efficios.com>
11034
11035 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11036 * gdbtypes.c (recursive_dump_type): Remove use of
11037 TYPE_INCOMPLETE.
11038
3b6acaee
TT
110392020-05-03 Tom Tromey <tom@tromey.com>
11040
11041 * breakpoint.c (catch_command, tcatch_command): Remove.
11042 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11043 add_show_prefix_cmd.
11044 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11045 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11046 Remove.
11047 (add_internal_problem_command): Use add_basic_prefix_cmd,
11048 add_show_prefix_cmd.
11049 * mips-tdep.c (set_mipsfpu_command): Remove.
11050 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11051 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11052 (_initialize_index_cache): Use add_basic_prefix_cmd.
11053 * memattr.c (dummy_cmd): Remove.
11054 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11055 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11056 (_initialize_tui_win): Use add_basic_prefix_cmd,
11057 add_show_prefix_cmd.
11058 * cli/cli-logging.c (set_logging_command): Remove.
11059 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11060 add_show_prefix_cmd.
11061 (show_logging_command): Remove.
11062 * target.c (target_command): Remove.
11063 (add_target): Use add_basic_prefix_cmd.
11064
a51119cd
HD
110652020-05-02 Hannes Domani <ssbssa@yahoo.de>
11066
11067 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11068
652fc23a 110692020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11070
652fc23a
PW
11071 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11072 info_command.
11073
117539e6
KR
110742020-04-30 Kamil Rytarowski <n54@gmx.com>
11075
11076 * nbsd-nat.c (nbsd_enable_proc_events)
11077 (nbsd_nat_target::post_startup_inferior): Add.
11078 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11079 (nbsd_nat_target::update_thread_list): Rewrite.
11080 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11081 "PTRACE_LWP_CREATE".
11082 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11083
102e38eb 110842020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11085
102e38eb
PW
11086 * stack.c (_initialize_stack): Remove duplicated creation
11087 of "frame" command and "f" alias.
11088
ee9d1e5f
HD
110892020-04-30 Hannes Domani <ssbssa@yahoo.de>
11090
11091 PR gdb/18706
11092 * gdbtypes.c (check_typedef): Calculate size of array of
11093 stubbed type.
11094
627c7fb8
HD
110952020-04-30 Hannes Domani <ssbssa@yahoo.de>
11096
11097 PR gdb/15559
11098 * i386-tdep.c (i386_push_dummy_call): Call
11099 i386_thiscall_push_dummy_call.
11100 (i386_thiscall_push_dummy_call): New function.
11101 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11102 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11103 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11104
ffc2844e
SM
111052020-04-29 Simon Marchi <simon.marchi@efficios.com>
11106
11107 * gdbarch.sh (do_read): Add shellcheck disable directive for
11108 warning SC2162.
11109
1207375d
SM
111102020-04-29 Simon Marchi <simon.marchi@efficios.com>
11111
11112 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11113 "referenced but not assigned" warning.
11114
9fdb2916
SM
111152020-04-29 Simon Marchi <simon.marchi@efficios.com>
11116
11117 * gdbarch.sh: Remove code that sets fallbackdefault.
11118
759cea5e
SM
111192020-04-29 Simon Marchi <simon.marchi@efficios.com>
11120
11121 * gdbarch.sh: Use shell operators && and || instead of
11122 -a and -o.
11123
cb02ab24
SM
111242020-04-29 Simon Marchi <simon.marchi@efficios.com>
11125
11126 * gdbarch.sh: Use $(...) instead of `...`.
11127
a6fc5ffc
SM
111282020-04-29 Simon Marchi <simon.marchi@efficios.com>
11129
11130 * gdbarch.sh: Use double quotes around variables.
11131
8d113d13
SM
111322020-04-29 Simon Marchi <simon.marchi@efficios.com>
11133
11134 * gdbarch.sh: Use %s with printf, instead of variables in the
11135 format string.
11136
ed6acedd
TT
111372020-04-29 Tom Tromey <tromey@adacore.com>
11138
11139 PR ada/25875:
11140 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11141 type fields here.
11142 (read_enumeration_type): Call
11143 update_enumeration_type_from_children later. Update comments.
11144 (process_enumeration_scope): Don't create type fields.
11145
b68b1b58
KR
111462020-04-29 Kamil Rytarowski <n54@gmx.com>
11147
11148 * nbsd-tdep.c: Include "xml-syscall.h".
11149 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11150
f94b2e03
KR
111512020-04-29 Kamil Rytarowski <n54@gmx.com>
11152
11153 * nbsd-nat.c: Include "sys/wait.h".
11154 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11155 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11156 (nbsd_nat_target::remove_exec_catchpoint)
11157 (nbsd_nat_target::set_syscall_catchpoint): Add.
11158 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11159 (nbsd_nat_target::insert_exec_catchpoint)
11160 (nbsd_nat_target::remove_exec_catchpoint)
11161 (nbsd_nat_target::set_syscall_catchpoint): Add.
11162 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11163 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11164 `nbsd_get_syscall_number'.
11165
fc49bc72
TT
111662020-04-29 Tom Tromey <tom@tromey.com>
11167
11168 * stack.c (print_block_frame_labels): Remove.
11169
d642b692
HD
111702020-04-29 Hannes Domani <ssbssa@yahoo.de>
11171
11172 PR gdb/17320
11173 * ada-valprint.c (val_print_packed_array_elements): Move array
11174 end bracket to new line.
11175 (ada_val_print_string): Remove extra spaces before first array
11176 element.
11177 * c-valprint.c (c_value_print_array): Likewise.
11178 * m2-valprint.c (m2_print_array_contents): Likewise.
11179 (m2_value_print_inner): Likewise.
11180 * p-valprint.c (pascal_value_print_inner): Likewise.
11181 * valprint.c (generic_val_print_array): Likewise.
11182 (value_print_array_elements): Move first array element and array
11183 end bracket to new line.
11184
ea90f227
TV
111852020-04-29 Tom de Vries <tdevries@suse.de>
11186
11187 PR symtab/25889
11188 * linespec.c (find_method): Fix ix calculation.
11189
4498ef4f
KR
111902020-04-28 Kamil Rytarowski <n54@gmx.com>
11191
11192 * syscalls/update-netbsd.sh: New file.
11193 * syscalls/netbsd.xml: Regenerate.
11194 * data-directory/Makefile.in: Register `netbsd.xml' in
11195 `SYSCALLS_FILES'.
11196
a55e30b5
SM
111972020-04-28 Simon Marchi <simon.marchi@efficios.com>
11198
11199 * syscalls/update-freebsd.sh: Add double quotes.
11200
2b2fbab8
TT
112012020-04-28 Tom Tromey <tom@tromey.com>
11202
11203 * NEWS: Update.
11204 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11205 (cmdpy_init): Allow class_tui.
11206
a65189c9
TV
112072020-04-28 Mark Williams <mark@myosotissp.com>
11208
11209 PR gdb/24480
11210 * dwarf2read.c: Add missing assingments to list_in_scope when
11211 start_symtab was already called.
11212
1b95cdb7
SM
112132020-04-28 Simon Marchi <simon.marchi@efficios.com>
11214
11215 PR gdb/25881
11216 * dwarf2/read.c (offset_map_type): Use
11217 gdb:hash_enum<sect_offset> as hash function.
11218
15cd93d0
TV
112192020-04-28 Tom de Vries <tdevries@suse.de>
11220
11221 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11222 with DW_AT_signature.
11223
1eb39914
SM
112242020-04-27 Simon Marchi <simon.marchi@efficios.com>
11225
11226 * configure.ac: Remove check for fs_base/gs_base in
11227 user_regs_struct.
11228 * configure: Re-generate.
11229 * config.in: Re-generate.
11230 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11231 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11232 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11233
991a3e2e
LM
112342020-04-27 Luis Machado <luis.machado@linaro.org>
11235
11236 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11237 problematic inline frame unwinding situation.
11238 * frame.c (frame_id_computed_p): New function.
11239 * frame.h (frame_id_computed_p): New prototype.
11240
361ba0e8
TT
112412020-04-26 Tom Tromey <tom@tromey.com>
11242
11243 * command.h (enum command_class) <class_pseudo>: Remove.
11244
bc3609fd
PW
112452020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11246
11247 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11248 and whitespace.
11249
b9771db7
KR
112502020-04-25 Kamil Rytarowski <n54@gmx.com>
11251
ec16513e
SM
11252 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11253 `PT_GET_PROCESS_STATE' block.
b9771db7 11254
7151c1af
TT
112552020-04-24 Tom Tromey <tom@tromey.com>
11256
11257 * symtab.h (symbol_get_demangled_name): Don't declare.
11258 * symtab.c (symbol_get_demangled_name): Remove.
11259 (general_symbol_info::natural_name)
11260 (general_symbol_info::demangled_name): Update.
11261
906bb4c5
TT
112622020-04-24 Tom Tromey <tom@tromey.com>
11263
11264 PR rust/25025:
11265 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11266
bcfe6157
TT
112672020-04-24 Tom Tromey <tom@tromey.com>
11268
11269 PR symtab/12707:
11270 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11271 exists.
11272 (new_symbol): Likewise.
11273 * compile/compile-object-load.c (get_out_value_type): Use
11274 symbol_matches_search_name.
11275
f049a313
TT
112762020-04-24 Tom Tromey <tom@tromey.com>
11277
11278 * dwarf2/read.c (add_partial_symbol): Do not call
11279 compute_and_set_names.
11280
76e288d1
TT
112812020-04-24 Tom Tromey <tom@tromey.com>
11282
11283 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11284 overload.
11285
2467f4f6
TT
112862020-04-24 Tom Tromey <tom@tromey.com>
11287
11288 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11289 (add_psymbol_to_list): New overload. Make old overload call new
11290 one.
11291 * psympriv.h (add_psymbol_to_list): New overload.
11292
e61108c9
TT
112932020-04-24 Tom Tromey <tom@tromey.com>
11294
11295 * dwarf2/read.c (partial_die_info::read) <case
11296 DW_AT_linkage_name>: Use value_as_string.
11297 (dwarf2_string_attr): Use value_as_string.
11298 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11299 method.
11300 * dwarf2/attribute.c (attribute::value_as_string): New method.
11301
8c87a452
TT
113022020-04-24 Tom Tromey <tom@tromey.com>
11303
11304 * symtab.c (general_symbol_info::natural_name)
11305 (general_symbol_info::demangled_name): Check for language_rust.
11306
787de330
TT
113072020-04-24 Tom Tromey <tom@tromey.com>
11308
11309 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11310 (dwarf2_physname): ... from here.
11311 (partial_die_info::read): Add Rust "{" hack.
11312
ff985671
TT
113132020-04-24 Tom Tromey <tom@tromey.com>
11314
11315 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11316 method.
11317 (symbol_set_demangled_name): Don't declare.
11318 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11319 symbol_set_demangled_name.
11320 (general_symbol_info::set_language)
11321 (general_symbol_info::compute_and_set_names): Update.
11322 * minsyms.c (minimal_symbol_reader::install): Update.
11323 * dwarf2/read.c (new_symbol): Update.
11324
1acda803
TT
113252020-04-24 Tom Tromey <tromey@adacore.com>
11326
11327 PR python/23662:
11328 * python/py-type.c (convert_field): Handle
11329 FIELD_LOC_KIND_DWARF_BLOCK.
11330 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11331 (typy_get_dynamic): Nw function.
11332 (type_object_getset): Add "dynamic".
11333 * NEWS: Add entry.
11334
d656f129
TT
113352020-04-24 Tom Tromey <tromey@adacore.com>
11336
11337 * ada-typeprint.c (print_choices, print_variant_part)
11338 (print_record_field_types_dynamic): New functions.
11339 (print_record_field_types): Use print_record_field_types_dynamic.
11340
7d79de9a
TT
113412020-04-24 Tom Tromey <tromey@adacore.com>
11342
11343 * dwarf2/read.c (handle_data_member_location): New overload.
11344 (dwarf2_add_field): Use it.
11345 (decode_locdesc): Add "computed" parameter. Update comment.
11346 * gdbtypes.c (is_dynamic_type_internal): Also look for
11347 FIELD_LOC_KIND_DWARF_BLOCK.
11348 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11349 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11350 virtual base classes.
11351 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11352 FIELD_LOC_KIND_DWARF_BLOCK.
11353
f8e89861
TT
113542020-04-24 Tom Tromey <tromey@adacore.com>
11355
11356 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11357 * gdbtypes.c (is_dynamic_type_internal): Check
11358 TYPE_HAS_DYNAMIC_LENGTH.
11359 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11360 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11361 New macros.
11362 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11363 constant.
11364
9c6a1327
TT
113652020-04-24 Tom Tromey <tromey@adacore.com>
11366
11367 * dwarf2/read.c (struct variant_field): Rewrite.
11368 (struct variant_part_builder): New.
11369 (struct nextfield): Remove "variant" field. Add "offset".
11370 (struct field_info): Add "current_variant_part" and
11371 "variant_parts".
11372 (alloc_discriminant_info): Remove.
11373 (alloc_rust_variant): New function.
11374 (quirk_rust_enum): Update.
11375 (dwarf2_add_field): Set "offset" member. Don't handle
11376 DW_TAG_variant_part.
11377 (offset_map_type): New typedef.
11378 (convert_variant_range, create_one_variant)
11379 (create_one_variant_part, create_variant_parts)
11380 (add_variant_property): New functions.
11381 (dwarf2_attach_fields_to_type): Call add_variant_property.
11382 (read_structure_type): Don't handle DW_TAG_variant_part.
11383 (handle_variant_part, handle_variant): New functions.
11384 (handle_struct_member_die): Use them.
11385 (process_structure_scope): Don't handle variant parts.
11386 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11387 (struct discriminant_info): Remove.
11388 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11389 (struct main_type) <flag_discriminated_union>: Remove.
11390 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11391 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11392 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11393 Update.
11394 * valops.c (value_union_variant): Remove.
11395 * value.h (value_union_variant): Don't declare.
11396
b249d2c2
TT
113972020-04-24 Tom Tromey <tromey@adacore.com>
11398
11399 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11400 (ada_value_primitive_packed_val): Update.
11401 * ada-valprint.c (ada_value_print_1): Update.
11402 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11403 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11404 just an address. Use evaluate_for_locexpr_baton.
11405 (dwarf2_evaluate_property): Update.
11406 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11407 array_view.
11408 * findvar.c (default_read_var_value): Update.
11409 * gdbtypes.c (compute_variant_fields_inner)
11410 (resolve_dynamic_type_internal): Update.
11411 (resolve_dynamic_type): Change type of valaddr parameter.
11412 * gdbtypes.h (resolve_dynamic_type): Update.
11413 * valarith.c (value_subscripted_rvalue): Update.
11414 * value.c (value_from_contents_and_address): Update.
11415
61122aa9
TT
114162020-04-24 Tom Tromey <tromey@adacore.com>
11417
11418 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11419 "push_initial_value" parameter.
11420 (dwarf2_evaluate_property): Likewise.
11421 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11422
ef83a141
TT
114232020-04-24 Tom Tromey <tromey@adacore.com>
11424
11425 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11426 (variant::matches, compute_variant_fields_recurse)
11427 (compute_variant_fields_inner, compute_variant_fields): New
11428 functions.
11429 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11430 Use resolved_type after type is made.
11431 (operator==): Add new cases.
11432 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11433 (struct discriminant_range, struct variant, struct variant_part):
11434 New.
11435 (union dynamic_prop_data) <variant_parts, original_type>: New
11436 members.
11437 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11438 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11439 constants.
11440 * value.c (unpack_bits_as_long): Now public.
11441 * value.h (unpack_bits_as_long): Declare.
11442
675127ec
TT
114432020-04-24 Tom Tromey <tromey@adacore.com>
11444
11445 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11446 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11447
9852ceef
HD
114482020-04-24 Hannes Domani <ssbssa@yahoo.de>
11449
11450 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11451
7632c6ce
KR
114522020-04-24 Kamil Rytarowski <n54@gmx.com>
11453
11454 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11455 (remove_fork_catchpoint, post_startup_inferior)
11456 (post_attach): Move...
11457 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11458 (remove_fork_catchpoint, post_startup_inferior)
11459 (post_attach): ...here.
11460 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11461 (remove_fork_catchpoint, post_startup_inferior)
11462 (post_attach): Move...
11463 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11464 (remove_fork_catchpoint, post_startup_inferior)
11465 (post_attach): ...here.
11466
7be2bb4f
TT
114672020-04-24 Tom Tromey <tromey@adacore.com>
11468
11469 * nat/windows-nat.h (struct windows_thread_info)
11470 <pc_adjusted>: New member.
11471 * windows-nat.c (windows_fetch_one_register): Check
11472 pc_adjusted.
11473 (windows_nat_target::get_windows_debug_event)
11474 (windows_nat_target::wait): Set pc_adjusted.
11475
f80cb3b4
TV
114762020-04-24 Tom de Vries <tdevries@suse.de>
11477
11478 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11479 Run gdb-add-index inside temp dir.
11480
29514b87
TT
114812020-04-23 Tom Tromey <tromey@adacore.com>
11482
11483 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11484 in loop.
11485
5939967b
LM
114862020-04-23 Luis Machado <luis.machado@linaro.org>
11487
11488 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11489 get_frame_register instead of gdbarch_unwind_pc.
11490
70bc38f5
TV
114912020-04-23 Tom de Vries <tdevries@suse.de>
11492
11493 * symtab.c (lookup_global_symbol): Prefer def over decl.
11494
de82891c
TV
114952020-04-23 Tom de Vries <tdevries@suse.de>
11496
11497 PR symtab/25807
11498 * block.c (best_symbol, better_symbol): Promote to external.
11499 * block.h (best_symbol, better_symbol): Declare.
11500 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11501 decl.
11502
ecc6c606
TT
115032020-04-23 Tom Tromey <tromey@adacore.com>
11504
11505 PR ada/25837:
11506 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11507 "const char *", not a "const std::string &".
11508 <name_and_matcher::operator==>: Update.
11509 * unittests/lookup_name_info-selftests.c: Change type of
11510 "result".
11511
740480b8
TT
115122020-04-23 Tom Tromey <tom@tromey.com>
11513
11514 * inferior.h (iterate_over_inferiors): Don't declare.
11515 * inferior.c (iterate_over_inferiors): Remove.
11516 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11517 Remove.
11518 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11519 use iterate_over_inferiors.
11520 (darwin_resume_inferior_it)
11521 (struct resume_inferior_threads_param)
11522 (darwin_resume_inferior_threads_it): Remove.
11523 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11524
ae3ab1f0
TV
115252020-04-23 Tom de Vries <tdevries@suse.de>
11526
11527 * blockframe.c (find_pc_partial_function): Use
11528 find_pc_sect_compunit_symtab rather than
11529 objfile->sf->qf->find_pc_sect_compunit_symtab.
11530
317d2668
TV
115312020-04-22 Tom de Vries <tdevries@suse.de>
11532
11533 PR symtab/25764
11534 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11535 in psymtabs.
11536
eea9e357
TV
115372020-04-22 Tom de Vries <tdevries@suse.de>
11538
11539 PR symtab/25801
11540 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11541 symtabs.
11542
3d5afab3
TV
115432020-04-22 Tom de Vries <tdevries@suse.de>
11544
11545 PR symtab/25700
11546 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11547 CU if already created.
11548
d43b7a2d
TBA
115492020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11550
11551 * infrun.c (displaced_step_fixup): Switch to the event_thread
11552 before calling displaced_step_restore, not after.
11553
d89edf9b
MM
115542020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11555
11556 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11557 its inferior is not recorded by us.
11558 (record_btrace_target_open): Replace call to
11559 all_non_exited_threads () with call to current_inferior
11560 ()->non_exited_threads ().
11561 (record_btrace_target::stop_recording): Likewise.
11562 (record_btrace_target::close): Likewise.
11563 (record_btrace_target::wait): Likewise.
11564 (record_btrace_target::record_stop_replaying): Likewise.
11565
5897fd49
MM
115662020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11567
11568 * btrace.c (btrace_enable): Throw an error on double enables and
11569 when enabling recording fails.
11570 (btrace_disable): Throw an error if the thread is not recorded.
11571
1a476b6d
MM
115722020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11573
11574 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11575 request if we do not have a thread_info.
11576
4778a5f8
TV
115772020-04-21 Tom de Vries <tdevries@suse.de>
11578
11579 PR gdb/25471
11580 * thread.c
11581 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11582 exception in get_frame_id.
11583
0fa7617d
TT
115842020-04-20 Tom Tromey <tromey@adacore.com>
11585
11586 * python/python.c (struct gdbpy_event): Mark move constructor as
11587 noexcept.
11588 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11589 constructor as noexcept.
11590 * completer.h (struct completion_result): Mark move constructor as
11591 noexcept.
11592 * completer.c (completion_result::completion_result): Use
11593 initialization style. Don't call reset_match_list.
11594
ad23bda0
MS
115952020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11596
11597 * MAINTAINERS (Write After Approval): Add myself.
11598
45e1f031
TT
115992020-04-18 Tom Tromey <tom@tromey.com>
11600
11601 * windows-tdep.c (init_w32_command_list)
11602 (w32_prefix_command_valid): Restore.
11603 (_initialize_windows_tdep): Call init_w32_command_list.
11604
08feed99
TT
116052020-04-18 Tom Tromey <tom@tromey.com>
11606
11607 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11608 * value.c (value_fn_field): Update.
11609 * valops.c (find_function_in_inferior)
11610 (value_allocate_space_in_inferior): Update.
11611 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11612 Update.
11613 * tui/tui-source.c (tui_source_window::set_contents): Update.
11614 * symtab.c (lookup_global_or_static_symbol)
11615 (find_function_start_sal_1, skip_prologue_sal)
11616 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11617 * symmisc.c (dump_msymbols, dump_symtab_1)
11618 (maintenance_print_one_line_table): Update.
11619 * symfile.c (init_entry_point_info, section_is_mapped)
11620 (list_overlays_command, simple_read_overlay_table)
11621 (simple_overlay_update_1): Update.
11622 * stap-probe.c (handle_stap_probe): Update.
11623 * stabsread.c (dbx_init_float_type, define_symbol)
11624 (read_one_struct_field, read_enum_type, read_range_type): Update.
11625 * source.c (info_line_command): Update.
11626 * python/python.c (gdbpy_source_objfile_script)
11627 (gdbpy_execute_objfile_script): Update.
11628 * python/py-type.c (save_objfile_types): Update.
11629 * python/py-objfile.c (py_free_objfile): Update.
11630 * python/py-inferior.c (python_new_objfile): Update.
11631 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11632 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11633 (maintenance_check_psymtabs): Update.
11634 * printcmd.c (info_address_command): Update.
11635 * objfiles.h (struct objfile) <arch>: New method, from
11636 get_objfile_arch.
11637 (get_objfile_arch): Don't declare.
11638 * objfiles.c (get_objfile_arch): Remove.
11639 (filter_overlapping_sections): Update.
11640 * minsyms.c (msymbol_is_function): Update.
11641 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11642 (output_nondebug_symbol): Update.
11643 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11644 (mdebug_expand_psymtab): Update.
11645 * machoread.c (macho_add_oso_symfile): Update.
11646 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11647 Update.
11648 * linux-fork.c (checkpoint_command): Update.
11649 * linespec.c (convert_linespec_to_sals): Update.
11650 * jit.c (finalize_symtab): Update.
11651 * infrun.c (insert_exception_resume_from_probe): Update.
11652 * ia64-tdep.c (ia64_find_unwind_table): Update.
11653 * hppa-tdep.c (internalize_unwinds): Update.
11654 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11655 Update.
11656 * gcore.c (call_target_sbrk): Update.
11657 * elfread.c (record_minimal_symbol, elf_symtab_read)
11658 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11659 (elf_gnu_ifunc_resolve_by_got): Update.
11660 * dwarf2/read.c (create_addrmap_from_index)
11661 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11662 (read_debug_names_from_section)
11663 (process_psymtab_comp_unit_reader, add_partial_symbol)
11664 (add_partial_subprogram, process_full_comp_unit)
11665 (read_file_scope, read_func_scope, read_lexical_block_scope)
11666 (read_call_site_scope, dwarf2_ranges_read)
11667 (dwarf2_record_block_ranges, dwarf2_add_field)
11668 (mark_common_block_symbol_computed, read_tag_pointer_type)
11669 (read_tag_string_type, dwarf2_init_float_type)
11670 (dwarf2_init_complex_target_type, read_base_type)
11671 (partial_die_info::read, partial_die_info::read)
11672 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11673 (dwarf2_fetch_die_loc_sect_off): Update.
11674 * dwarf2/loc.c (dwarf2_find_location_expression)
11675 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11676 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11677 (dwarf2_loc_desc_get_symbol_read_needs)
11678 (locexpr_describe_location_piece, locexpr_describe_location_1)
11679 (loclist_describe_location): Update.
11680 * dwarf2/index-write.c (write_debug_names): Update.
11681 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11682 * dtrace-probe.c (dtrace_process_dof): Update.
11683 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11684 (process_one_symbol): Update.
11685 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11686 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11687 (coff_read_enum_type): Update.
11688 * cli/cli-cmds.c (edit_command, list_command): Update.
11689 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11690 * breakpoint.c (create_overlay_event_breakpoint)
11691 (create_longjmp_master_breakpoint)
11692 (create_std_terminate_master_breakpoint)
11693 (create_exception_master_breakpoint, get_sal_arch): Update.
11694 * block.c (block_gdbarch): Update.
11695 * annotate.c (annotate_source_line): Update.
11696
0743fc83
TT
116972020-04-17 Tom Tromey <tromey@adacore.com>
11698
11699 * auto-load.c (show_auto_load_cmd): Remove.
11700 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11701 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11702 (maintenance_print_arc_command): Remove.
11703 * tui/tui-win.c (tui_command): Remove.
11704 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11705 * tui/tui-layout.c (tui_layout_command): Remove.
11706 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11707 * python/python.c (user_set_python, user_show_python): Remove.
11708 (_initialize_python): Use add_basic_prefix_cmd,
11709 add_show_prefix_cmd.
11710 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11711 (install_gdb_commands): Use add_basic_prefix_cmd,
11712 add_show_prefix_cmd.
11713 (info_guile_command): Remove.
11714 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11715 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11716 add_show_prefix_cmd.
11717 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11718 Remove do_set and do_show parameters.
11719 * cli/cli-style.c (set_style, show_style): Remove.
11720 (_initialize_cli_style): Use add_basic_prefix_cmd,
11721 add_show_prefix_cmd.
11722 (cli_style_option::add_setshow_commands): Remove do_set and
11723 do_show parameters.
11724 (cli_style_option::add_setshow_commands): Use
11725 add_basic_prefix_cmd, add_show_prefix_cmd.
11726 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11727 (set_style_name): Remove.
11728 * cli/cli-dump.c (dump_command, append_command): Remove.
11729 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11730 (tekhex_dump_command, binary_dump_command)
11731 (binary_append_command): Remove.
11732 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11733 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11734 (init_w32_command_list): Remove; move into ...
11735 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11736 * valprint.c (set_print, show_print, set_print_raw)
11737 (show_print_raw): Remove.
11738 (_initialize_valprint): Use add_basic_prefix_cmd,
11739 add_show_prefix_cmd.
11740 * typeprint.c (set_print_type, show_print_type): Remove.
11741 (_initialize_typeprint): Use add_basic_prefix_cmd,
11742 add_show_prefix_cmd.
11743 * record.c (set_record_command, show_record_command): Remove.
11744 (_initialize_record): Use add_basic_prefix_cmd,
11745 add_show_prefix_cmd.
11746 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11747 add_show_prefix_cmd.
11748 (info_command, show_command, set_debug, show_debug): Remove.
11749 * top.h (set_history, show_history): Don't declare.
11750 * top.c (set_history, show_history): Remove.
11751 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11752 (unset_tdesc_cmd): Remove.
11753 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11754 add_show_prefix_cmd.
11755 * symtab.c (info_module_command): Remove.
11756 (_initialize_symtab): Use add_basic_prefix_cmd.
11757 * symfile.c (overlay_command): Remove.
11758 (_initialize_symfile): Use add_basic_prefix_cmd.
11759 * sparc64-tdep.c (info_adi_command): Remove.
11760 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11761 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11762 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11763 add_show_prefix_cmd.
11764 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11765 (_initialize_serial): Use add_basic_prefix_cmd,
11766 add_show_prefix_cmd.
11767 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11768 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11769 add_show_prefix_cmd.
11770 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11771 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11772 add_show_prefix_cmd.
11773 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11774 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11775 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11776 add_show_prefix_cmd.
11777 * remote.c (remote_command, set_remote_cmd): Remove.
11778 (_initialize_remote): Use add_basic_prefix_cmd.
11779 * record-full.c (set_record_full_command)
11780 (show_record_full_command): Remove.
11781 (_initialize_record_full): Use add_basic_prefix_cmd,
11782 add_show_prefix_cmd.
11783 * record-btrace.c (cmd_set_record_btrace)
11784 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11785 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11786 (cmd_show_record_btrace_pt): Remove.
11787 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11788 add_show_prefix_cmd.
11789 * ravenscar-thread.c (set_ravenscar_command)
11790 (show_ravenscar_command): Remove.
11791 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11792 add_show_prefix_cmd.
11793 * mips-tdep.c (show_mips_command, set_mips_command)
11794 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11795 add_show_prefix_cmd.
11796 * maint.c (maintenance_command, maintenance_info_command)
11797 (maintenance_check_command, maintenance_print_command)
11798 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11799 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11800 add_show_prefix_cmd.
11801 (show_per_command_cmd): Remove.
11802 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11803 Remove.
11804 (maintenance_show_test_settings_cmd): Remove.
11805 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11806 add_show_prefix_cmd.
11807 * maint-test-options.c (maintenance_test_options_command):
11808 Remove.
11809 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11810 * macrocmd.c (macro_command): Remove
11811 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11812 * language.c (set_check, show_check): Remove.
11813 (_initialize_language): Use add_basic_prefix_cmd,
11814 add_show_prefix_cmd.
11815 * infcmd.c (unset_command): Remove.
11816 (_initialize_infcmd): Use add_basic_prefix_cmd.
11817 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11818 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11819 add_show_prefix_cmd.
11820 * go32-nat.c (go32_info_dos_command): Remove.
11821 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11822 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11823 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11824 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11825 (_initialize_frame): Use add_basic_prefix_cmd,
11826 add_show_prefix_cmd.
11827 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11828 (_initialize_dcache): Use add_basic_prefix_cmd,
11829 add_show_prefix_cmd.
11830 * cp-support.c (maint_cplus_command): Remove.
11831 (_initialize_cp_support): Use add_basic_prefix_cmd.
11832 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11833 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11834 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11835 add_basic_prefix_cmd, add_show_prefix_cmd.
11836 * breakpoint.c (save_command): Remove.
11837 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11838 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11839 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11840 add_show_prefix_cmd.
11841 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11842 (set_ada_command, show_ada_command): Remove.
11843 (_initialize_ada_language): Use add_basic_prefix_cmd,
11844 add_show_prefix_cmd.
11845 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11846
3557f442
KR
118472020-04-16 Kamil Rytarowski <n54@gmx.com>
11848
11849 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11850 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11851
16197208
SM
118522020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11853
11854 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11855 warning messages.
11856
00ac85d3
SM
118572020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11858
11859 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11860 import table is not at beginning of .idata section.
11861
381ce63f
PA
118622020-04-16 Pedro Alves <palves@redhat.com>
11863
11864 * inferior.c (delete_inferior): Use delete operator directly
11865 instead of delete_program_space.
11866 * progspace.c (add_program_space): New, factored out from
11867 program_space::program_space.
11868 (remove_program_space): New, factored out from
11869 delete_program_space.
11870 (program_space::program_space): Remove intro comment. Rewrite.
11871 (program_space::~program_space): Remove intro comment. Call
11872 remove_program_space.
11873 (delete_program_space): Delete.
11874 * progspace.h (program_space::program_space): Make explicit. Move
11875 intro comment here, adjusted.
11876 (program_space::~program_space): Move intro comment here,
11877 adjusted.
11878 (delete_program_space): Remove.
11879
a010605f
TT
118802020-04-16 Tom Tromey <tromey@adacore.com>
11881
11882 * windows-nat.c (windows_nat::handle_access_violation): New
11883 function.
11884 * nat/windows-nat.h (handle_access_violation): Declare.
11885 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11886 windows-nat.c. Call handle_access_violation.
11887
efba5c23
TV
118882020-04-16 Tom de Vries <tdevries@suse.de>
11889
11890 PR symtab/25791
11891 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11892 CUs without psymtab.
11893
97ed802d
KB
118942020-04-16 Kevin Buettner <kevinb@redhat.com>
11895
11896 * python/python.c (do_start_initialization): Don't call
11897 PyEval_InitThreads for Python 3.9 and beyond.
11898
c7d64809
KR
118992020-04-15 Kamil Rytarowski <n54@gmx.com>
11900
11901 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11902 thread functions.
11903 (obsd_nat_target::wait): Likewise.
11904
ce127a96
TT
119052020-04-15 Tom Tromey <tromey@adacore.com>
11906
11907 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11908 (DEBUG_EXCEPT): Use debug_printf.
11909
99f1bc6a
AB
119102020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11911
11912 * completer.c (class completion_tracker::completion_hash_entry)
11913 <hash_name>: New member function.
11914 (completion_tracker::discard_completions): New callback to hash a
11915 completion_hash_entry, pass this to htab_create_alloc.
11916
a0e9b532
JT
119172016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11918
11919 * windows-nat.c (windows_make_so): Warn rather than stopping with
11920 an error if realpath() fails.
11921
06ca5dd4
KR
119222020-04-14 Kamil Rytarowski <n54@gmx.com>
11923
11924 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11925 (nbsd_nat_target::info_proc): Add do_status.
11926
194d088f
TV
119272020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11928 Tom de Vries <tdevries@suse.de>
11929
11930 PR symtab/25718
11931 * psympriv.h (struct partial_symtab::read_symtab)
11932 (struct partial_symtab::expand_psymtab)
11933 (struct partial_symtab::read_dependencies): Update comments.
11934 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11935 read_symtab for includer.
11936 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11937 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11938 (struct dwarf2_include_psymtab::m_readin): Remove.
11939 (struct dwarf2_include_psymtab::includer): New member function.
11940 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11941
c1a66c06
TV
119422020-04-14 Tom de Vries <tdevries@suse.de>
11943
11944 PR symtab/25720
11945 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11946 with NULL symbol_matcher and lookup_name.
11947 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11948 and lookup_name.
11949 * dwarf2/read.c (dw2_expand_symtabs_matching)
11950 (dw2_debug_names_expand_symtabs_matching): Same.
11951 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11952 Make lookup_name a pointer. Update comment.
11953 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11954 lookup_name being a pointer.
11955 * symfile.c (expand_symtabs_matching): Same.
11956 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11957 * linespec.c (iterate_over_all_matching_symtabs): Same.
11958
400b5eca
TT
119592020-04-13 Tom Tromey <tom@tromey.com>
11960
11961 * run-on-main-thread.c: Update include.
11962 * unittests/main-thread-selftests.c: Update include.
11963 * tui/tui-win.c: Update include.
11964 * tui/tui-io.c: Update include.
11965 * tui/tui-interp.c: Update include.
11966 * tui/tui-hooks.c: Update include.
11967 * top.h: Update include.
11968 * top.c: Update include.
11969 * ser-base.c: Update include.
11970 * remote.c: Update include.
11971 * remote-notif.c: Update include.
11972 * remote-fileio.c: Update include.
11973 * record-full.c: Update include.
11974 * record-btrace.c: Update include.
11975 * python/python.c: Update include.
11976 * posix-hdep.c: Update include.
11977 * mingw-hdep.c: Update include.
11978 * mi/mi-main.c: Update include.
11979 * mi/mi-interp.c: Update include.
11980 * main.c: Update include.
11981 * linux-nat.c: Update include.
11982 * interps.c: Update include.
11983 * infrun.c: Update include.
11984 * inf-loop.c: Update include.
11985 * event-top.c: Update include.
11986 * event-loop.c: Move to ../gdbsupport/.
11987 * event-loop.h: Move to ../gdbsupport/.
11988 * async-event.h: Update include.
11989 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11990
93b54c8e
TT
119912020-04-13 Tom Tromey <tom@tromey.com>
11992
11993 * tui/tui-win.c: Include async-event.h.
11994 * remote.c: Include async-event.h.
11995 * remote-notif.c: Include async-event.h.
11996 * record-full.c: Include async-event.h.
11997 * record-btrace.c: Include async-event.h.
11998 * infrun.c: Include async-event.h.
11999 * event-top.c: Include async-event.h.
12000 * event-loop.h: Move some declarations to async-event.h.
12001 * event-loop.c: Don't include ser-event.h or top.h. Move some
12002 code to async-event.c.
12003 * async-event.h: New file.
12004 * async-event.c: New file.
12005 * Makefile.in (COMMON_SFILES): Add async-event.c.
12006 (HFILES_NO_SRCDIR): Add async-event.h.
12007
c1cd3163
TT
120082020-04-13 Tom Tromey <tom@tromey.com>
12009
12010 * utils.c (flush_streams): New function.
12011 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12012
29f2bf4f
TT
120132020-04-13 Tom Tromey <tom@tromey.com>
12014
12015 * event-loop.c (handle_file_event): Use warning, not
12016 printf_unfiltered.
12017
98029d02
TT
120182020-04-13 Tom Tromey <tom@tromey.com>
12019
12020 * event-loop.c: Include <chrono>.
12021
06cc9596
TT
120222020-04-13 Tom Tromey <tom@tromey.com>
12023
12024 * gdb_select.h: Move to ../gdbsupport/.
12025 * event-loop.c: Update include path.
12026 * top.c: Update include path.
12027 * ser-base.c: Update include path.
12028 * ui-file.c: Update include path.
12029 * ser-tcp.c: Update include path.
12030 * guile/scm-ports.c: Update include path.
12031 * posix-hdep.c: Update include path.
12032 * ser-unix.c: Update include path.
12033 * gdb_usleep.c: Update include path.
12034 * mingw-hdep.c: Update include path.
12035 * inflow.c: Update include path.
12036 * infrun.c: Update include path.
12037 * event-top.c: Update include path.
12038
8ae8e197
TT
120392020-04-13 Tom Tromey <tom@tromey.com>
12040
12041 * configure: Rebuild.
12042 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12043
58cf28e8
TT
120442020-04-13 Tom Tromey <tom@tromey.com>
12045
12046 * event-loop.h (start_event_loop): Don't declare.
12047 * event-loop.c (start_event_loop): Move...
12048 * main.c (start_event_loop): ...here. Now static.
12049
b7f999ae
SDJ
120502020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12051
12052 * MAINTAINERS: Update my email address.
12053
1085dfd4
KR
120542020-04-12 Kamil Rytarowski <n54@gmx.com>
12055
12056 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12057 IP_ALL.
12058
49d1d1f5
KR
120592020-04-12 Kamil Rytarowski <n54@gmx.com>
12060
12061 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12062 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12063
b4848d2a
KR
120642020-04-12 Kamil Rytarowski <n54@gmx.com>
12065
12066 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12067 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12068
51c133d5
KR
120692020-04-12 Kamil Rytarowski <n54@gmx.com>
12070
12071 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12072
54b8cbd0
KR
120732020-04-11 Kamil Rytarowski <n54@gmx.com>
12074
12075 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12076 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12077 (nbsd_nat_target::info_proc): New functions.
12078 * nbsd-nat.c (kinfo_get_vmmap): New function.
12079 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12080 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12081 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12082 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12083 functions.
12084 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12085 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12086 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12087 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12088 (KINFO_VME_FLAG_GROWS_DOWN): New.
12089
cf83625d
AS
120902020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12091
12092 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12093 bit shift.
12094
0c4311ab
TT
120952020-04-10 Tom Tromey <tromey@adacore.com>
12096
12097 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12098
3e65b3e9
TT
120992020-04-10 Tom Tromey <tromey@adacore.com>
12100
12101 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12102 separate debug files.
12103
13302e95
HD
121042020-04-10 Hannes Domani <ssbssa@yahoo.de>
12105
12106 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12107 Move to...
12108 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12109 ... here.
12110 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12111 Check for STATUS_WX86_BREAKPOINT.
12112 (windows_nat_target::wait): Same.
12113
bdfc1e8a
TV
121142020-04-10 Tom de Vries <tdevries@suse.de>
12115
12116 PR cli/25808
12117 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12118
f4460aec
SM
121192020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12120
12121 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12122 (Write After Approval): Remove Tom de Vries.
12123
a25198bb
BE
121242020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12125
12126 revert partially:
12127 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12128
aac66a4c
SM
12129 * buildsym.c (record_line): Fix undefined behavior and preserve
12130 lines at eof.
a25198bb 12131
206c98a6
KR
121322020-04-09 Kamil Rytarowski <n54@gmx.com>
12133
12134 * auxv.h (svr4_auxv_parse): New.
12135 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12136 and generic_auxv_parse.
12137 (svr4_auxv_parse): Add.
12138 * obsd-tdep.c: Include "auxv.h".
12139 (obsd_auxv_parse): Remove.
12140 (obsd_init_abi): Remove comment.
12141 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12142 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12143 * nbsd-tdep.c: Include "auxv.h".
12144 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12145
71fbdbaf
TT
121462020-04-08 Tom Tromey <tromey@adacore.com>
12147
12148 * nat/windows-nat.h (last_wait_event): Don't declare.
12149 (wait_for_debug_event): Update comment.
12150 * nat/windows-nat.c (last_wait_event): Now static.
12151
2c1d95e8
TT
121522020-04-08 Tom Tromey <tromey@adacore.com>
12153
12154 * windows-nat.c (wait_for_debug_event): Move to
12155 nat/windows-nat.c.
12156 * nat/windows-nat.h (wait_for_debug_event): Declare.
12157 * nat/windows-nat.c (wait_for_debug_event): Move from
12158 windows-nat.c. No longer static.
12159
d2977bc4
TT
121602020-04-08 Tom Tromey <tromey@adacore.com>
12161
12162 * windows-nat.c (get_windows_debug_event): Use
12163 fetch_pending_stop.
12164 * nat/windows-nat.h (fetch_pending_stop): Declare.
12165 * nat/windows-nat.c (fetch_pending_stop): New function.
12166
e758e19c
TT
121672020-04-08 Tom Tromey <tromey@adacore.com>
12168
12169 * windows-nat.c (windows_continue): Use matching_pending_stop and
12170 continue_last_debug_event.
12171 * nat/windows-nat.h (matching_pending_stop)
12172 (continue_last_debug_event): Declare.
12173 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12174 (matching_pending_stop, continue_last_debug_event): New
12175 functions.
12176
8d30e395
TT
121772020-04-08 Tom Tromey <tromey@adacore.com>
12178
12179 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12180 (handle_exception_result): Move to nat/windows-nat.h.
12181 (DEBUG_EXCEPTION_SIMPLE): Remove.
12182 (windows_nat::handle_ms_vc_exception): New function.
12183 (handle_exception): Move to nat/windows-nat.c.
12184 (get_windows_debug_event): Update.
12185 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12186 nat/windows-nat.c.
12187 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12188 (handle_exception_result): Move from windows-nat.c.
12189 (handle_exception): Declare.
12190 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12191 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12192 windows-nat.c.
12193
29de418d
TT
121942020-04-08 Tom Tromey <tromey@adacore.com>
12195
12196 * windows-nat.c (exception_count, event_count): Remove.
12197 (handle_exception, get_windows_debug_event)
12198 (do_initial_windows_stuff): Update.
12199
a816ba18
TT
122002020-04-08 Tom Tromey <tromey@adacore.com>
12201
12202 * windows-nat.c (windows_nat::handle_load_dll)
12203 (windows_nat::handle_unload_dll): Rename. No longer static.
12204 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12205 Declare.
12206
a00caa12
TT
122072020-04-08 Tom Tromey <tromey@adacore.com>
12208
12209 * complaints.h (stop_whining): Declare at top-level.
12210 (complaint): Don't declare stop_whining.
12211
d41b524f
TT
122122020-04-08 Tom Tromey <tromey@adacore.com>
12213
12214 * windows-nat.c (windows_nat::handle_output_debug_string):
12215 Rename. No longer static.
12216 * nat/windows-nat.h (handle_output_debug_string): Declare.
12217
3c76026d
TT
122182020-04-08 Tom Tromey <tromey@adacore.com>
12219
12220 * windows-nat.c (current_process_handle, current_process_id)
12221 (main_thread_id, last_sig, current_event, last_wait_event)
12222 (current_windows_thread, desired_stop_thread_id, pending_stops)
12223 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12224 (display_selectors, fake_create_process)
12225 (get_windows_debug_event): Update.
12226 * nat/windows-nat.h (current_process_handle, current_process_id)
12227 (main_thread_id, last_sig, current_event, last_wait_event)
12228 (current_windows_thread, desired_stop_thread_id, pending_stops)
12229 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12230 * nat/windows-nat.c (current_process_handle, current_process_id)
12231 (main_thread_id, last_sig, current_event, last_wait_event)
12232 (current_windows_thread, desired_stop_thread_id, pending_stops)
12233 (siginfo_er): New globals. Move from windows-nat.c.
12234
9d8679cc
TT
122352020-04-08 Tom Tromey <tromey@adacore.com>
12236
12237 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12238 (handle_load_dll): Update.
12239 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12240
28688adf
TT
122412020-04-08 Tom Tromey <tromey@adacore.com>
12242
12243 * windows-nat.c (enum thread_disposition_type): Move to
12244 nat/windows-nat.h.
12245 (windows_nat::thread_rec): Rename from thread_rec. No longer
12246 static.
12247 (windows_add_thread, windows_nat_target::fetch_registers)
12248 (windows_nat_target::store_registers, handle_exception)
12249 (windows_nat_target::resume, get_windows_debug_event)
12250 (windows_nat_target::get_tib_address)
12251 (windows_nat_target::thread_name)
12252 (windows_nat_target::thread_alive): Update.
12253 * nat/windows-nat.h (enum thread_disposition_type): Move from
12254 windows-nat.c.
12255 (thread_rec): Declare.
12256
4834dad0
TT
122572020-04-08 Tom Tromey <tromey@adacore.com>
12258
12259 * windows-nat.c: Add "using namespace".
12260 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12261 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12262
65bafd5b
TT
122632020-04-08 Tom Tromey <tromey@adacore.com>
12264
12265 * nat/windows-nat.h (struct windows_thread_info): Declare
12266 destructor.
12267 * nat/windows-nat.c (~windows_thread_info): New.
12268
0a4afda3
TT
122692020-04-08 Tom Tromey <tromey@adacore.com>
12270
12271 PR gdb/22992
12272 * windows-nat.c (current_event): Update comment.
12273 (last_wait_event, desired_stop_thread_id): New globals.
12274 (struct pending_stop): New.
12275 (pending_stops): New global.
12276 (windows_nat_target) <stopped_by_sw_breakpoint>
12277 <supports_stopped_by_sw_breakpoint>: New methods.
12278 (windows_fetch_one_register): Add assertions. Adjust PC.
12279 (windows_continue): Handle pending stops. Suspend other threads
12280 when stepping. Use last_wait_event
12281 (wait_for_debug_event): New function.
12282 (get_windows_debug_event): Use wait_for_debug_event. Handle
12283 pending stops. Queue spurious stops.
12284 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12285 (windows_nat_target::kill): Use wait_for_debug_event.
12286 * nat/windows-nat.h (struct windows_thread_info)
12287 <stopped_at_software_breakpoint>: New field.
12288 * nat/windows-nat.c (windows_thread_info::resume): Clear
12289 stopped_at_software_breakpoint.
12290
8e61ebec
TT
122912020-04-08 Tom Tromey <tromey@adacore.com>
12292
12293 * windows-nat.c (enum thread_disposition_type): New.
12294 (thread_rec): Replace "get_context" parameter with "disposition";
12295 change type.
12296 (windows_add_thread, windows_nat_target::fetch_registers)
12297 (windows_nat_target::store_registers, handle_exception)
12298 (windows_nat_target::resume, get_windows_debug_event)
12299 (windows_nat_target::get_tib_address)
12300 (windows_nat_target::thread_name)
12301 (windows_nat_target::thread_alive): Update.
12302
98a03287
TT
123032020-04-08 Tom Tromey <tromey@adacore.com>
12304
12305 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12306 (windows_continue): Use windows_continue::resume.
12307 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12308 resume>: Declare new methods.
12309 * nat/windows-nat.c: New file.
12310 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12311
7c7411bc
TT
123122020-04-08 Tom Tromey <tromey@adacore.com>
12313
12314 * windows-nat.c (windows_add_thread, windows_delete_thread)
12315 (windows_nat_target::fetch_registers)
12316 (windows_nat_target::store_registers, fake_create_process)
12317 (windows_nat_target::resume, windows_nat_target::resume)
12318 (get_windows_debug_event, windows_nat_target::wait)
12319 (windows_nat_target::pid_to_str)
12320 (windows_nat_target::get_tib_address)
12321 (windows_nat_target::get_ada_task_ptid)
12322 (windows_nat_target::thread_name)
12323 (windows_nat_target::thread_alive): Use lwp, not tid.
12324
2950fdf7
TT
123252020-04-08 Tom Tromey <tromey@adacore.com>
12326
12327 * windows-nat.c (handle_exception)
12328 (windows_nat_target::thread_name): Update.
12329 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12330 <name>: Now unique_xmalloc_ptr.
12331
62fe396b
TT
123322020-04-08 Tom Tromey <tromey@adacore.com>
12333
12334 * windows-nat.c (thread_rec)
12335 (windows_nat_target::fetch_registers): Update.
12336 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12337 Update comment.
12338 <debug_registers_changed, reload_context>: Now bool.
12339
e9534bd2
TT
123402020-04-08 Tom Tromey <tromey@adacore.com>
12341
12342 * windows-nat.c (windows_add_thread): Use new.
12343 (windows_init_thread_list, windows_delete_thread): Use delete.
12344 (get_windows_debug_event): Update.
12345 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12346 destructor, and initializers.
12347
ae1f8880
TT
123482020-04-08 Tom Tromey <tromey@adacore.com>
12349
12350 * windows-nat.c (struct windows_thread_info): Remove.
12351 * nat/windows-nat.h: New file.
12352
55a1e039
TT
123532020-04-08 Tom Tromey <tromey@adacore.com>
12354
12355 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12356 (thread_rec, windows_add_thread, windows_delete_thread)
12357 (windows_continue): Update.
12358
93366324
TT
123592020-04-08 Tom Tromey <tromey@adacore.com>
12360
12361 * windows-nat.c (struct windows_thread_info): Remove typedef.
12362 (thread_head): Remove.
12363 (thread_list): New global.
12364 (thread_rec, windows_add_thread, windows_init_thread_list)
12365 (windows_delete_thread, windows_continue): Update.
12366
0f2265e2
SM
123672020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12368
12369 * windows-tdep.h (windows_init_abi): Add comment.
12370 (cygwin_init_abi): New declaration.
12371 * windows-tdep.c: Split signal enumeration in two, one for
12372 Windows and one for Cygwin.
12373 (windows_gdb_signal_to_target): Only deal with signal of the
12374 Windows OS ABI.
12375 (cygwin_gdb_signal_to_target): New function.
12376 (windows_init_abi): Rename to windows_init_abi_common, don't set
12377 gdb_signal_to_target gdbarch method. Add new new function with
12378 this name.
12379 (cygwin_init_abi): New function.
12380 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12381 comment. Don't call windows_init_abi.
12382 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12383 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12384 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12385 i386_windows_init_abi_common, don't call windows_init_abi. Add
12386 a new function of this name.
12387 (i386_cygwin_init_abi): New function.
12388 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12389 OS ABI Cygwin.
12390
3810f182
SM
123912020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12392
12393 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12394 parameter.c.
12395 (dwarf2_read_gdb_index): Update.
12396
063f8e80
KR
123972020-04-07 Kamil Rytarowski <n54@gmx.com>
12398
12399 * nbsd-tdep.c: Include "objfiles.h".
12400 (nbsd_skip_solib_resolver): New.
12401 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12402
85a9510c 124032020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12404
12405 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12406 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12407 with DW_LLE_base_addressx are being emitted in DWARFv5.
12408 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12409 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12410 unsigned integer.
12411
9fc3eaae 124122020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12413
12414 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12415 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12416 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12417 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12418 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12419 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12420 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12421
12422
41144253 124232020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12424
12425 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12426 (read_loclist_index): New function definition.
12427 (lookup_loclist_base): New function definition.
12428 (read_loclist_header): New function definition.
12429 (dwarf2_cu): Add loclist_base and loclist_header field.
12430 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12431 (read_full_die_1): Read the value of DW_AT_loclists_base.
12432 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12433 (read_attribute_value): Handle DW_FORM_loclistx.
12434 (skip_one_die): Handle DW_FORM_loclistx.
12435 (loclist_header): New structure declaration.
12436 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12437
9f4e76a4
SM
124382020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12439
12440 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12441 constructor. Remove `addr` parameter from other constructor and
12442 add `per_cu` parameter.
12443 * dwarf2/read.c (create_partial_symtab): Update.
12444
25c11aca
TV
124452020-04-07 Tom de Vries <tdevries@suse.de>
12446
12447 PR symtab/25796
12448 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12449 (partial_die_info::fixup): Inherit has_const_value.
12450
5707e24b
TV
124512020-04-07 Tom de Vries <tdevries@suse.de>
12452
12453 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12454 symbols without address.
12455
05f00e22
KR
124562020-04-06 Kamil Rytarowski <n54@gmx.com>
12457
12458 * nbsd-nat.h (struct thread_info): Add forward declaration.
12459 (nbsd_nat_target::thread_alive): Add.
12460 (nbsd_nat_target::thread_name): Likewise.
12461 (nbsd_nat_target::update_thread_list): Likewise.
12462 (update_thread_list::post_attach): Likewise.
12463 (post_attach::pid_to_str): Likewise.
12464 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12465 (nbsd_thread_lister): Add.
12466 (nbsd_nat_target::thread_alive): Likewise.
12467 (nbsd_nat_target::thread_name): Likewise.
12468 (nbsd_add_threads): Likewise.
12469 (update_thread_list::post_attach): Likewise.
12470 (nbsd_nat_target::update_thread_list): Likewise.
12471 (post_attach::pid_to_str): Likewise.
12472
6ee448cc
TT
124732020-04-06 Tom Tromey <tromey@adacore.com>
12474
12475 * ada-valprint.c (print_variant_part): Extract the variant field.
12476 (print_field_values): Use the field as the outer value when
12477 recursing.
12478
dea34e8c
TT
124792020-04-06 Tom Tromey <tromey@adacore.com>
12480
12481 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12482 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12483 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12484 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12485 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12486
93689ce9
TT
124872020-04-06 Tom Tromey <tromey@adacore.com>
12488
12489 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12490 TYPE_CODE_ERROR.
12491
79743962
KR
124922020-04-06 Kamil Rytarowski <n54@gmx.com>
12493
12494 * nbsd-tdep.c: Include "gdbarch.h".
12495 Define enum with NetBSD signal numbers.
12496 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12497 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12498 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12499 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12500 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12501 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12502 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12503 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12504 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12505 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12506 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12507 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12508
9e7c9a03
HD
125092020-04-03 Hannes Domani <ssbssa@yahoo.de>
12510
12511 PR gdb/25325
12512 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12513
d9e49b61
TT
125142020-04-03 Tom Tromey <tromey@adacore.com>
12515
12516 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12517 Read constant block.
12518
e0fc5c3f
SM
125192020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12520
12521 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12522 (gdb_bfd_get_full_section_contents): New declaration.
12523 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12524 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12525 gdb_bfd_get_full_section_contents.
12526
e2ff18a0
SM
125272020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12528
12529 * exec.c (build_section_table): Replace internal_error with
12530 gdb_assert.
12531 (section_table_xfer_memory_partial): Likewise.
12532 * mdebugread.c (parse_partial_symbols): Likewise.
12533 * psymtab.c (lookup_partial_symbol): Likewise.
12534 * utils.c (wrap_here): Likewise.
12535
0830d301
TT
125362020-04-02 Tom Tromey <tromey@adacore.com>
12537
12538 * f-lang.c (build_fortran_types): Use arch_type to initialize
12539 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12540
e7da7f8f
TT
125412020-04-02 Tom Tromey <tromey@adacore.com>
12542
12543 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12544 of attributes.
12545
c90d28ac
AB
125462020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12547 Bernd Edlinger <bernd.edlinger@hotmail.de>
12548 Tom Tromey <tromey@adacore.com>
12549
12550 * buildsym.c (buildsym_compunit::record_line): Remove
12551 deduplication code.
12552
1aa98955
TV
125532020-04-02 Tom de Vries <tdevries@suse.de>
12554
12555 PR ada/24671
12556 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12557
d3214198
TV
125582020-04-02 Tom de Vries <tdevries@suse.de>
12559
12560 * dwarf2/read.c (dwarf2_gdb_index_functions,
12561 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12562 NULL.
12563 * psymtab.c (psym_lookup_global_symbol_language): New function.
12564 (psym_functions): Init psym_lookup_global_symbol_language with
12565 psym_lookup_global_symbol_language.
12566 * symfile-debug.c (debug_sym_quick_functions): Init
12567 lookup_global_symbol_language with NULL.
12568 * symfile.c (set_initial_language): Remove fixme comment.
12569 * symfile.h (struct quick_symbol_functions): Add
12570 lookup_global_symbol_language.
12571 * symtab.c (find_quick_global_symbol_language): New function.
12572 (find_main_name): Use find_quick_global_symbol_language.
12573
2836752f
SM
125742020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12575
12576 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12577
64dc2d4b
BE
125782020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12579
12580 * buildsym.c (record_line): Fix undefined behavior and preserve
12581 lines at eof.
12582
bbe3dc41
BE
125832020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12584
12585 * buildsym.c (record_line): Fix the resizing condition.
12586
6b4a335b
TT
125872020-04-01 Tom Tromey <tom@tromey.com>
12588
12589 * value.h (value_literal_complex): Add comment.
12590 * valops.c (value_literal_complex): Refer to value.h.
12591
3638a098
TT
125922020-04-01 Tom Tromey <tom@tromey.com>
12593
12594 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12595 (scalar_type): New rule, from typebase.
12596 (typebase): Use scalar_type. Recognize complex types.
12597 (field_name): Handle FLOAT_KEYWORD.
12598 (ident_tokens): Add _Complex and __complex__.
12599
c34e8714
TT
126002020-04-01 Tom Tromey <tom@tromey.com>
12601
12602 PR exp/25299:
12603 * valarith.c (promotion_type, complex_binop): New functions.
12604 (scalar_binop): Handle complex numbers. Use promotion_type.
12605 (value_pos, value_neg, value_complement): Handle complex numbers.
12606
fa649bb7
TT
126072020-04-01 Tom Tromey <tom@tromey.com>
12608
12609 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12610 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12611 (parse_number): Handle complex numbers.
12612
981c08ce
TT
126132020-04-01 Tom Tromey <tom@tromey.com>
12614
12615 * c-valprint.c (c_decorations): Change complex suffix to "i".
12616
4c99290d
TT
126172020-04-01 Tom Tromey <tom@tromey.com>
12618
12619 * valprint.c (generic_value_print_complex): Use accessors.
12620 * value.h (value_real_part, value_imaginary_part): Declare.
12621 * valops.c (value_real_part, value_imaginary_part): New
12622 functions.
12623 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12624
5b930b45
TT
126252020-04-01 Tom Tromey <tom@tromey.com>
12626
12627 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12628 (read_range_type): Update.
12629 * mdebugread.c (basic_type): Update.
12630 * go-lang.c (build_go_types): Use init_complex_type.
12631 * gdbtypes.h (struct main_type) <complex_type>: New member.
12632 (init_complex_type): Update.
12633 (arch_complex_type): Don't declare.
12634 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12635 Make name if none given. Use alloc_type_copy. Look for cached
12636 complex type.
12637 (arch_complex_type): Remove.
12638 (gdbtypes_post_init): Use init_complex_type.
12639 * f-lang.c (build_fortran_types): Use init_complex_type.
12640 * dwarf2/read.c (read_base_type): Update.
12641 * d-lang.c (build_d_types): Use init_complex_type.
12642 * ctfread.c (read_base_type): Update.
12643
53cccef1
TBA
126442020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12645
12646 * infrun.c (stop_all_threads): Update assertion, plus when
12647 stopping threads, take into account that we might be trying
12648 to stop an all-stop target.
12649 (stop_waiting): Call 'stop_all_threads' if there exists a
12650 non-stop target.
12651
a0714d30
TBA
126522020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12653
12654 * target.h (exists_non_stop_target): New function declaration.
12655 * target.c (exists_non_stop_target): New function.
12656
60e22c1e
HD
126572020-04-01 Hannes Domani <ssbssa@yahoo.de>
12658
12659 PR gdb/24789
12660 * eval.c (is_integral_or_integral_reference): New function.
12661 (evaluate_subexp_standard): Allow integer references in
12662 pointer arithmetic.
12663
e139a727
TBA
126642020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12665
12666 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12667 check for no ptid in the stop reply when the target is non-stop.
12668
e0802d59
TT
126692020-04-01 Tom Tromey <tromey@adacore.com>
12670
12671 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12672 "name" parameter to rvalue reference. Initialize m_name_holder.
12673 <lookup_name_info>: New overloads.
12674 <name>: Return gdb::string_view.
12675 <c_str>: New method.
12676 <make_ignore_params>: Update.
12677 <search_name_hash>: Update.
12678 <language_lookup_name>: Return const char *.
12679 <m_name>: Change type.
12680 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12681 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12682 (lookup_name_info::match_any): Update.
12683 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12684 Update.
12685 * minsyms.c (linkage_name_str): Update.
12686 * language.c (default_symbol_name_matcher): Update.
12687 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12688 Update.
12689 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12690 (ada_lookup_name_info::ada_lookup_name_info): Update.
12691 (literal_symbol_name_matcher): Update.
12692
8c072cb6
TT
126932020-04-01 Tom Tromey <tromey@adacore.com>
12694
12695 * psymtab.c (psymtab_search_name): Remove function.
12696 (psym_lookup_symbol): Create search name and lookup name here.
12697 (lookup_partial_symbol): Remove "name" parameter; add
12698 lookup_name.
12699 (psym_expand_symtabs_for_function): Update.
12700
6f29a534
TT
127012020-03-31 Joel Jones <joelkevinjones@gmail.com>
12702
12703 PR tui/25597:
12704 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12705
af62665e
TT
127062020-03-31 Tom Tromey <tromey@adacore.com>
12707
12708 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12709 memcpy.
12710
d1a89da5
NC
127112020-03-30 Nelson Chu <nelson.chu@sifive.com>
12712
12713 * features/riscv/32bit-csr.xml: Regenerated.
12714 * features/riscv/64bit-csr.xml: Regenerated.
12715
d8af9068
TT
127162020-03-30 Tom Tromey <tromey@adacore.com>
12717
12718 * ada-valprint.c (print_variant_part): Update.
12719 * ada-lang.h (ada_which_variant_applies): Update.
12720 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12721 outer_valaddr parameters; replace with "outer" value parameter.
12722 (to_fixed_variant_branch_type): Update.
12723
227c0bf4
PFC
127242020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12725
12726 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12727 <list>. Remove inclusion of observable.h.
12728 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12729 (struct arch_lwp_info): New struct.
12730 (class ppc_linux_dreg_interface): New class.
12731 (struct ppc_linux_process_info): New struct.
12732 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12733 <low_new_clone, low_forget_process, low_prepare_to_resume>
12734 <copy_thread_dreg_state, mark_thread_stale>
12735 <mark_debug_registers_changed, register_hw_breakpoint>
12736 <clear_hw_breakpoint, register_wp, clear_wp>
12737 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12738 <num_memory_accesses, get_trigger_type>
12739 <create_watchpoint_request, hwdebug_point_cmp>
12740 <init_arch_lwp_info, get_arch_lwp_info>
12741 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12742 methods.
12743 <struct ptid_hash>: New inner struct.
12744 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12745 members.
12746 (saved_dabr_value, hwdebug_info, max_slots_number)
12747 (struct hw_break_tuple, struct thread_points, ppc_threads)
12748 (have_ptrace_hwdebug_interface)
12749 (hwdebug_find_thread_points_by_tid)
12750 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12751 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12752 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12753 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12754 use m_dreg_interface.
12755 (hwdebug_point_cmp): Change to...
12756 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12757 reference arguments instead of pointers.
12758 (ppc_linux_nat_target::ranged_break_num_registers): Use
12759 m_dreg_interface.
12760 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12761 m_dreg_interface. Call register_hw_breakpoint.
12762 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12763 m_dreg_interface. Call clear_hw_breakpoint.
12764 (get_trigger_type): Change to...
12765 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12766 comment.
12767 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12768 use m_dreg_interface. Call register_hw_breakpoint.
12769 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12770 use m_dreg_interface. Call clear_hw_breakpoint.
12771 (can_use_watchpoint_cond_accel): Change to...
12772 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12773 method. Update comment, use m_dreg_interface and
12774 m_process_info.
12775 (calculate_dvc): Change to...
12776 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12777 m_dreg_interface.
12778 (num_memory_accesses): Change to...
12779 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12780 (check_condition): Change to...
12781 (ppc_linux_nat_target::check_condition): ...this method.
12782 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12783 comment, use m_dreg_interface.
12784 (create_watchpoint_request): Change to...
12785 (ppc_linux_nat_target::create_watchpoint_request): ...this
12786 method. Use m_dreg_interface.
12787 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12788 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12789 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12790 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12791 (ppc_linux_nat_target::low_forget_process)
12792 (ppc_linux_nat_target::low_new_fork)
12793 (ppc_linux_nat_target::low_new_clone)
12794 (ppc_linux_nat_target::low_delete_thread)
12795 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12796 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12797 only call mark_thread_stale.
12798 (ppc_linux_thread_exit): Remove.
12799 (ppc_linux_nat_target::stopped_data_address): Change to...
12800 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12801 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12802 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12803 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12804 comment. Call low_stopped_data_address.
12805 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12806 m_dreg_interface.
12807 (ppc_linux_nat_target::masked_watch_num_registers): Use
12808 m_dreg_interface.
12809 (ppc_linux_nat_target::copy_thread_dreg_state)
12810 (ppc_linux_nat_target::mark_thread_stale)
12811 (ppc_linux_nat_target::mark_debug_registers_changed)
12812 (ppc_linux_nat_target::register_hw_breakpoint)
12813 (ppc_linux_nat_target::clear_hw_breakpoint)
12814 (ppc_linux_nat_target::register_wp)
12815 (ppc_linux_nat_target::clear_wp)
12816 (ppc_linux_nat_target::init_arch_lwp_info)
12817 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12818 (_initialize_ppc_linux_nat): Remove observer callback.
12819
4db10d8f
PFC
128202020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12821
12822 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12823 (ppc_linux_nat_target::auxv_parse)
12824 (ppc_linux_nat_target::read_description)
12825 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12826 Move up.
12827
1310c1b0
PFC
128282020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12829
12830 * linux-nat.h (low_new_clone): New method.
12831 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12832
69b037c3
SM
128332020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12834
12835 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12836 (dbx_expand_psymtab): ... this.
12837 (start_psymtab): Update.
12838 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12839 (mdebug_expand_psymtab): ... this.
12840 (parse_partial_symbols): Update.
12841 (new_psymtab): Update.
12842 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12843 (xcoff_expand_psymtab): ... this.
12844 (xcoff_start_psymtab): Update.
12845
48993951
SM
128462020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12847
12848 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12849 <expand_dependencies>: ... this.
12850 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12851 (partial_symtab::expand_dependencies): ... this.
12852 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12853 Update.
12854 (dwarf2_psymtab::expand_psymtab): Update.
12855 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12856 * mdebugread.c (psymtab_to_symtab_1): Update.
12857 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12858
3ad83046
SM
128592020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12860
12861 * psympriv.h (discard_psymtab): Remove.
12862 * dbxread.c (dbx_end_psymtab): Update.
12863 * xcoffread.c (xcoff_end_psymtab): Update.
12864
4d1b9ab6
TT
128652020-03-28 Tom Tromey <tom@tromey.com>
12866
12867 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12868 comment.
12869
f1749218
TT
128702020-03-28 Tom Tromey <tom@tromey.com>
12871
12872 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12873
ebea7626
HD
128742020-03-27 Hannes Domani <ssbssa@yahoo.de>
12875
12876 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12877
a879b4d5
JB
128782020-03-26 John Baldwin <jhb@FreeBSD.org>
12879
12880 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12881
0826b30a
TT
128822020-03-26 Tom Tromey <tom@tromey.com>
12883
12884 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12885 (mark_common_block_symbol_computed, read_tag_string_type)
12886 (attr_to_dynamic_prop, read_subrange_type): Update.
12887 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12888 to be methods on struct attribute.
12889 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12890 (read_call_site_scope, partial_die_info::read)
12891 (partial_die_info::read, lookup_die_type, follow_die_ref):
12892 Update.
12893 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12894 from dwarf2_get_ref_die_offset.
12895 (attribute::constant_value): New method, from
12896 dwarf2_get_attr_constant_value.
12897 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12898 Declare method.
12899 <constant_value>: New method.
12900
2b2558bf
TT
129012020-03-26 Tom Tromey <tom@tromey.com>
12902
12903 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12904 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12905 (dwarf_type_encoding_name): Move to stringify.c.
12906 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12907 * dwarf2/stringify.c: New file.
12908 * dwarf2/stringify.h: New file.
12909
eeb64781
TT
129102020-03-26 Tom Tromey <tom@tromey.com>
12911
12912 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12913 Rewrite.
12914
a39fdb41
TT
129152020-03-26 Tom Tromey <tom@tromey.com>
12916
12917 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12918 methods.
12919 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12920 (lookup_ranges_base): Likewise.
12921 (read_cutu_die_from_dwo, read_full_die_1): Update.
12922
436c571c
TT
129232020-03-26 Tom Tromey <tom@tromey.com>
12924
12925 * dwarf2/read.c (read_import_statement, read_file_scope)
12926 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12927 (read_lexical_block_scope, read_call_site_scope)
12928 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12929 (handle_struct_member_die, process_structure_scope)
12930 (update_enumeration_type_from_children)
12931 (process_enumeration_scope, read_array_type, read_common_block)
12932 (read_namespace, read_module, read_subroutine_type): Update.
12933 (sibling_die): Remove.
12934
052c8bb8
TT
129352020-03-26 Tom Tromey <tom@tromey.com>
12936
12937 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12938 (build_type_psymtabs_reader, read_structure_type)
12939 (read_enumeration_type, read_full_die_1): Update.
12940 (dwarf2_attr_no_follow): Move to die.h.
12941 * dwarf2/die.h (struct die_info) <attr>: New method.
12942
2b24b6e4
TT
129432020-03-26 Tom Tromey <tom@tromey.com>
12944
12945 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12946 <base_address>: Now an optional.
12947 (dwarf2_find_base_address, dwarf2_rnglists_process)
12948 (dwarf2_ranges_process, fill_in_loclist_baton)
12949 (dwarf2_symbol_mark_computed): Update.
12950
c2d50fd0
TT
129512020-03-26 Tom Tromey <tom@tromey.com>
12952
12953 * dwarf2/read.c (struct die_info): Move to die.h.
12954 * dwarf2/die.h: New file.
12955
0df7ad3a
TT
129562020-03-26 Tom Tromey <tom@tromey.com>
12957
12958 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12959 * dwarf2/read.c
12960 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12961 Move to line-header.c.
12962 (read_checked_initial_length_and_offset, read_formatted_entries):
12963 Likewise.
12964 (dwarf_decode_line_header): Split into two.
12965 * dwarf2/line-header.c
12966 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12967 Move from read.c.
12968 (read_checked_initial_length_and_offset, read_formatted_entries):
12969 Likewise.
12970 (dwarf_decode_line_header): New function, split from read.c.
12971
86c0bb4c
TT
129722020-03-26 Tom Tromey <tom@tromey.com>
12973
12974 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12975 Declare method.
12976 * dwarf2/read.c (read_attribute_value): Update.
12977 (dwarf2_per_objfile::read_line_string): Rename from
12978 read_indirect_line_string.
12979 (read_formatted_entries): Update.
12980
2ef46c2f
TT
129812020-03-26 Tom Tromey <tom@tromey.com>
12982
12983 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12984 variable.
12985
4f9c1eda
TT
129862020-03-26 Tom Tromey <tom@tromey.com>
12987
12988 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12989 const.
12990 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12991 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12992 parameter const.
12993
5a0e026f
TT
129942020-03-26 Tom Tromey <tom@tromey.com>
12995
12996 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12997 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12998 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12999 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13000
8844c11b
TT
130012020-03-26 Tom Tromey <tom@tromey.com>
13002
13003 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13004 file_names_size, file_full_name, file_file_name>: Use const.
13005 <file_name_at, file_names>: Add const overload.
13006 * dwarf2/line-header.c (line_header::file_file_name)
13007 (line_header::file_full_name): Update.
13008
c90ec28a
TT
130092020-03-26 Tom Tromey <tom@tromey.com>
13010
13011 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13012 (macro_start_file, consume_improper_spaces)
13013 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13014 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13015 (dwarf_decode_macros): Move to macro.c.
13016 * dwarf2/macro.c: New file.
13017 * dwarf2/macro.h: New file.
13018 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13019
4f44ae6c
TT
130202020-03-26 Tom Tromey <tom@tromey.com>
13021
13022 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13023 method.
13024 * dwarf2/section.c: New method. From
13025 read_indirect_string_at_offset_from.
13026 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13027 (read_indirect_string_at_offset_from): Move to section.c.
13028 (read_indirect_string_at_offset): Rewrite.
13029 (read_indirect_line_string_at_offset): Remove.
13030 (read_indirect_string, read_indirect_line_string)
13031 (dwarf_decode_macro_bytes): Update.
13032
a0194fa8
TT
130332020-03-26 Tom Tromey <tom@tromey.com>
13034
13035 * dwarf2/section.h (struct dwarf2_section_info)
13036 <overload_complaint>: Declare.
13037 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13038 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13039 Rename from dwarf2_section_buffer_overflow_complaint.
13040 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13041 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13042
3d27bbdb
TT
130432020-03-26 Tom Tromey <tom@tromey.com>
13044
13045 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13046 Declare.
13047 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13048 Move from read.c.
13049 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13050 to section.c.
13051
9eac9650
TT
130522020-03-26 Tom Tromey <tom@tromey.com>
13053
13054 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13055
bf80d710
TT
130562020-03-26 Tom Tromey <tom@tromey.com>
13057
13058 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13059 "builder".
13060 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13061 parameter.
13062 (dwarf_decode_macros): Update.
13063
0314b390
TT
130642020-03-26 Tom Tromey <tom@tromey.com>
13065
13066 * dwarf2/read.c (read_attribute_value): Update.
13067 (read_indirect_string_from_dwz): Move to dwz.c; change into
13068 method.
13069 (dwarf_decode_macro_bytes): Update.
13070 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13071 * dwarf2/dwz.c: New file.
13072 * Makefile.in (COMMON_SFILES): Add dwz.c.
13073
9fda78b6
TT
130742020-03-26 Tom Tromey <tom@tromey.com>
13075
13076 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13077 * dwarf2/read.c: Add include.
13078 * dwarf2/index-write.c: Add include.
13079 * dwarf2/index-cache.c: Add include.
13080 * dwarf2/dwz.h: New file.
13081
33aa3c10
TT
130822020-03-25 Tom Tromey <tom@tromey.com>
13083
13084 * compile/compile-object-load.c (get_out_value_type): Mention
13085 correct symbol name in error message.
13086
d503b685
HD
130872020-03-25 Hannes Domani <ssbssa@yahoo.de>
13088
13089 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13090
7b1eff95
TV
130912020-03-25 Tom de Vries <tdevries@suse.de>
13092
13093 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13094 * symmisc.c (dump_symtab_1): Print user and includes fields.
13095 (maintenance_info_symtabs): Same.
13096
dd895392
AB
130972020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13098
13099 PR gdb/25534
13100 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13101 (riscv_regcache_cooked_write): New function.
13102 (riscv_push_dummy_call): Use new function.
13103 (riscv_return_value): Likewise.
13104
5ab2fbf1
SM
131052020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13106
13107 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13108 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13109 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13110 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13111 * infrun.c (follow_fork): Likewise.
13112 (follow_fork_inferior): Likewise.
13113 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13114 * linux-nat.h (class linux_nat_target): Likewise.
13115 * remote.c (class remote_target) <follow_fork>: Likewise.
13116 (remote_target::follow_fork): Likewise.
13117 * target-delegates.c: Re-generate.
13118 * target.c (default_follow_fork): Likewise.
13119 (target_follow_fork): Likewise.
13120 * target.h (struct target_ops) <follow_fork>: Likewise.
13121 (target_follow_fork): Likewise.
13122
a64fafb5
TV
131232020-03-24 Tom de Vries <tdevries@suse.de>
13124
13125 * psymtab.c (maintenance_info_psymtabs): Print user field.
13126
fe26d3a3
TT
131272020-03-20 Tom Tromey <tromey@adacore.com>
13128
13129 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13130 const.
13131 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13132 const.
13133
c884cc46
SM
131342020-03-20 Simon Marchi <simon.marchi@efficios.com>
13135
13136 * ptrace.m4: Don't check for ptrace declaration.
13137 * config.in: Re-generate.
13138 * configure: Re-generate.
13139 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13140 not defined.
13141
1ff700c2
KR
131422020-03-20 Kamil Rytarowski <n54@gmx.com>
13143
13144 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13145 `PTRACE_TYPE_RET'.
13146 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13147 * sparc-nat.c (gdb_ptrace): Likewise.
13148 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13149
f7d4f0b1
TT
131502020-03-20 Tom Tromey <tromey@adacore.com>
13151
13152 * c-exp.y (lex_one_token): Fix assert.
13153
f67210ff
TT
131542020-03-20 Tom Tromey <tromey@adacore.com>
13155
13156 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13157 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13158 strncpy call.
13159
1773be9e
TT
131602020-03-20 Tom Tromey <tromey@adacore.com>
13161
13162 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13163
70304be9
TT
131642020-03-20 Tom Tromey <tromey@adacore.com>
13165
13166 * ada-valprint.c (print_variant_part): Remove parameters; switch
13167 to value-based API.
13168 (print_field_values): Likewise.
13169 (ada_val_print_struct_union): Likewise.
13170 (ada_value_print_1): Update.
13171
9faa006d
KR
131722020-03-20 Kamil Rytarowski <n54@gmx.com>
13173
13174 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13175 nbsd_nat_target instead of inf_ptrace_target.
13176 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13177 nbsd_nat_target.
13178
4a90f062
KR
131792020-03-20 Kamil Rytarowski <n54@gmx.com>
13180
13181 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13182 it to the ptrace call.
13183 * (store_registers): Likewise.
13184
131852020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13186
13187 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13188 it to the ptrace call.
13189 * (store_registers): Likewise.
13190
2d07da27
LM
131912020-03-19 Luis Machado <luis.machado@linaro.org>
13192
13193 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13194 valid, fetch vg value from ptrace.
13195
f09db380
KR
131962020-03-19 Kamil Rytarowski <n54@gmx.com>
13197 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13198 * inf-ptrace.c: Likewise.
13199 * (gdb_ptrace): Add.
13200 * (inf_ptrace_target::resume): Update.
13201 * (inf_ptrace_target::xfer_partial): Likewise.
13202 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13203 * (inf_ptrace_peek_poke): Update.
13204
fcc7376e
KR
132052020-03-19 Kamil Rytarowski <n54@gmx.com>
13206
13207 * x86-bsd-nat.c (gdb_ptrace): New.
13208 * (x86bsd_dr_set): Add new argument `ptid'.
13209 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13210 x86bsd_dr_set_addr): Update.
13211
cada5fc9
AB
132122020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13213
13214 * remote.c (remote_target::process_stop_reply): Handle events for
13215 all threads differently.
13216
19a2740f
AB
132172020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13218
13219 * completer.c (completion_tracker::remove_completion): Define new
13220 function.
13221 * completer.h (completion_tracker::remove_completion): Declare new
13222 function.
13223 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13224 when adding a C++ function symbol.
13225
724fd9ba
AB
132262020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13227
13228 * completer.c (completion_tracker::completion_hash_entry): Define
13229 new class.
13230 (advance_to_filename_complete_word_point): Call
13231 recompute_lowest_common_denominator.
13232 (completion_tracker::completion_tracker): Call discard_completions
13233 to setup the hash table.
13234 (completion_tracker::discard_completions): Allow for being called
13235 from the constructor, pass new equal function, and element deleter
13236 when constructing the hash table. Initialise new class member
13237 variables.
13238 (completion_tracker::maybe_add_completion): Remove use of
13239 m_entries_vec, and store more information into m_entries_hash.
13240 (completion_tracker::recompute_lcd_visitor): New function, most
13241 content taken from...
13242 (completion_tracker::recompute_lowest_common_denominator):
13243 ...here, this now just visits each item in the hash calling the
13244 above visitor.
13245 (completion_tracker::build_completion_result): Remove use of
13246 m_entries_vec, call recompute_lowest_common_denominator.
13247 * completer.h (completion_tracker::have_completions): Remove use
13248 of m_entries_vec.
13249 (completion_tracker::completion_hash_entry): Declare new class.
13250 (completion_tracker::recompute_lowest_common_denominator): Change
13251 function signature.
13252 (completion_tracker::recompute_lcd_visitor): Declare new function.
13253 (completion_tracker::m_entries_vec): Delete.
13254 (completion_tracker::m_entries_hash): Initialize to NULL.
13255 (completion_tracker::m_lowest_common_denominator_valid): New
13256 member variable.
13257 (completion_tracker::m_lowest_common_denominator_max_length): New
13258 member variable.
13259
5a82b8a1
KR
132602020-03-17 Kamil Rytarowski <n54@gmx.com>
13261
13262 * regformats/regdef.h: Put reg in gdb namespace.
13263
fb516a69
KR
132642020-03-17 Kamil Rytarowski <n54@gmx.com>
13265
13266 * i386-bsd-nat.c (gdb_ptrace): New.
13267 * (i386bsd_fetch_inferior_registers,
13268 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13269 * (i386bsd_fetch_inferior_registers,
13270 i386bsd_store_inferior_registers) Use gdb_ptrace.
13271
1c0aa1fb
KR
132722020-03-17 Kamil Rytarowski <n54@gmx.com>
13273
13274 * amd64-bsd-nat.c (gdb_ptrace): New.
13275 * (amd64bsd_fetch_inferior_registers,
13276 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13277 * (amd64bsd_fetch_inferior_registers,
13278 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13279
5ccd2fb7
KR
132802020-03-17 Kamil Rytarowski <n54@gmx.com>
13281
13282 * user-regs.c (user_reg::read): Rename to...
13283 (user_reg::xread): ...this.
13284 * (append_user_reg): Rename argument `read' to `xread'.
13285 * (user_reg_add_builtin): Likewise.
13286 * (user_reg_add): Likewise.
13287 * (value_of_user_reg): Likewise.
13288
2108a63a
KR
132892020-03-17 Kamil Rytarowski <n54@gmx.com>
13290
13291 * sparc-nat.c (gdb_ptrace): New.
13292 * sparc-nat.c (sparc_fetch_inferior_registers)
13293 (sparc_store_inferior_registers) Remove obsolete comment.
13294 * sparc-nat.c (sparc_fetch_inferior_registers)
13295 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13296 * sparc-nat.c (sparc_fetch_inferior_registers)
13297 (sparc_store_inferior_registers) Use gdb_ptrace.
13298
a225c9a8
KR
132992020-03-17 Kamil Rytarowski <n54@gmx.com>
13300
13301 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13302 it to the ptrace call.
13303 * sh-nbsd-nat.c (store_registers): Likewise.
13304
98097623
KR
133052020-03-17 Kamil Rytarowski <n54@gmx.com>
13306
13307 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13308 nbsd_nat_target instead of inf_ptrace_target.
13309 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13310 nbsd_nat_target.
13311
9e38d619
KR
133122020-03-17 Kamil Rytarowski <n54@gmx.com>
13313
13314 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13315
a2ecbe9f
KR
133162020-03-17 Kamil Rytarowski <n54@gmx.com>
13317
13318 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13319 <sys/sysctl.h>.
13320 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13321
58990295
TV
133222020-03-17 Tom de Vries <tdevries@suse.de>
13323
13324 PR gdb/23710
13325 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13326 fields.
13327 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13328 fields.
13329 (process_imported_unit_die): Skip import of c++ CUs.
13330
771dd3a8
TT
133312020-03-16 Tom Tromey <tom@tromey.com>
13332
13333 * p-valprint.c (pascal_object_print_value): Initialize
13334 base_value.
13335
817a7585
AK
133362020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13337 Shahab Vahedi <shahab@synopsys.com>
13338
13339 * Makefile.in: Add arch/arc.o
13340 * configure.tgt: Likewise.
13341 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13342 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13343 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13344 * arc-tdep.h (arc_read_description): Add proto type.
13345 * arch/arc.c: New file.
13346 * arch/arc.h: Likewise.
13347 * features/Makefile: Replace old target descriptions with new.
13348 * features/arc-arcompact.c: Remove.
13349 * features/arc-arcompact.xml: Likewise.
13350 * features/arc-v2.c: Likewise
13351 * features/arc-v2.xml: Likewise
13352 * features/arc/aux-arcompact.xml: New file.
13353 * features/arc/aux-v2.xml: Likewise.
13354 * features/arc/core-arcompact.xml: Likewise.
13355 * features/arc/core-v2.xml: Likewise.
13356 * features/arc/aux-arcompact.c: Generate.
13357 * features/arc/aux-v2.c: Likewise.
13358 * features/arc/core-arcompact.c: Likewise.
13359 * features/arc/core-v2.c: Likewise.
13360 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13361
67430cd0
TT
133622020-03-16 Tom Tromey <tromey@adacore.com>
13363
13364 PR gdb/25663:
13365 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13366 putting value into bcache.
13367
30efb6c7
SM
133682020-03-16 Simon Marchi <simon.marchi@efficios.com>
13369
13370 PR gdb/21500
13371 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13372 to...
13373 (amd64_windows_init_abi_common): ... this. Don't set size of
13374 long type.
13375 (amd64_windows_init_abi): New function.
13376 (amd64_cygwin_init_abi): New function.
13377 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13378 the Cygwin OS ABI.
13379 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13380 comment.
13381
8db52437
SM
133822020-03-16 Simon Marchi <simon.marchi@efficios.com>
13383
13384 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13385 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13386 (pe_import_directory_entry): New struct type.
13387 (is_linked_with_cygwin_dll): New function.
13388 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13389 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13390 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13391
5982a56a
SM
133922020-03-16 Simon Marchi <simon.marchi@efficios.com>
13393
13394 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13395 i386_cygwin_core_osabi_sniffer.
13396
7a1998df
SM
133972020-03-16 Simon Marchi <simon.marchi@efficios.com>
13398
13399 * i386-cygwin-tdep.c: Rename to...
13400 * i386-windows-tdep.c: ... this.
13401 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13402 i386-windows-tdep.c.
13403 * configure.tgt: Likewise.
13404
053205cc
SM
134052020-03-16 Simon Marchi <simon.marchi@efficios.com>
13406
13407 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13408 * osabi.c (gdb_osabi_names): Add "Windows".
13409 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13410 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13411 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13412 i386_cygwin_osabi_sniffer.
13413 (_initialize_i386_cygwin_tdep): Register OS ABI
13414 GDB_OSABI_WINDOWS for i386.
13415 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13416 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13417 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13418 for x86-64.
13419 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13420 when the target matches '*-*-mingw*'.
13421
fe4b2ee6
SM
134222020-03-16 Simon Marchi <simon.marchi@efficios.com>
13423
13424 * defs.h (enum gdb_osabi): Move to...
13425 * osabi.h (enum gdb_osabi): ... here.
13426 * gdbarch.sh: Include osabi.h in gdbarch.h.
13427 * gdbarch.h: Re-generate.
13428
cb9b645d
SM
134292020-03-16 Simon Marchi <simon.marchi@efficios.com>
13430
13431 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13432 function.
13433 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13434
3293bbaf
TT
134352020-03-14 Tom Tromey <tom@tromey.com>
13436
13437 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13438 for C++.
13439 (c_type_print_modifier): Likewise. Add "language" parameter.
13440 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13441 (c_type_print_base_1): Update.
13442 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13443 constants.
13444 * type-stack.c (type_stack::insert): Handle tp_atomic and
13445 tp_restrict.
13446 (type_stack::follow_type_instance_flags): Likewise.
13447 (type_stack::follow_types): Likewise. Merge type-following code.
13448 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13449 (space_identifier, cv_with_space_id)
13450 (const_or_volatile_or_space_identifier_noopt)
13451 (const_or_volatile_or_space_identifier): Remove.
13452 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13453 rules.
13454 (ptr_operator, typebase): Update.
13455 (enum token_flag) <FLAG_C>: New constant.
13456 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13457 "_Atomic".
13458 (lex_one_token): Handle FLAG_C.
13459
154151a6
KR
134602020-03-14 Kamil Rytarowski <n54@gmx.com>
13461
13462 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13463 it to the ptrace call.
13464 * m68k-bsd-nat.c (store_registers): Likewise.
13465
bc107784
KR
134662020-03-14 Kamil Rytarowski <n54@gmx.com>
13467
13468 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13469 gdb_byte *.
13470 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13471 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13472 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13473
01a80117
KR
134742020-03-14 Kamil Rytarowski <n54@gmx.com>
13475
13476 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13477 nbsd_nat_target instead of inf_ptrace_target.
13478 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13479 nbsd_nat_target.
13480
f90280ca
KR
134812020-03-14 Kamil Rytarowski <n54@gmx.com>
13482
13483 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13484 register_t.
13485
6def66f1
KR
134862020-03-14 Kamil Rytarowski <n54@gmx.com>
13487
13488 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13489 it to the ptrace call.
13490 * alpha-bsd-nat.c (store_registers): Likewise.
13491
66eaca97
KR
134922020-03-14 Kamil Rytarowski <n54@gmx.com>
13493
13494 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13495 includes.
13496 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13497 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13498 fill_fpregset): Likewise.
13499
4fed520b
KR
135002020-03-14 Kamil Rytarowski <n54@gmx.com>
13501
13502 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13503 nbsd_nat_target instead of inf_ptrace_target.
13504 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13505 nbsd_nat_target.
13506
2190cf06
KR
135072020-03-14 Kamil Rytarowski <n54@gmx.com>
13508
13509 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13510 register_t.
13511
75c56d3d
KR
135122020-03-14 Kamil Rytarowski <n54@gmx.com>
13513
13514 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13515 it to the ptrace call.
13516 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13517 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13518 * arm-nbsd-nat.c (store_register): Likewise.
13519 * arm-nbsd-nat.c (store_regs): Likewise.
13520 * arm-nbsd-nat.c (store_fp_register): Likewise.
13521 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13522
6018d381
KR
135232020-03-14 Kamil Rytarowski <n54@gmx.com>
13524
13525 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13526 nbsd_nat_target instead of inf_ptrace_target.
13527 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13528 nbsd_nat_target.
13529
013f99f0
KR
135302020-03-14 Kamil Rytarowski <n54@gmx.com>
13531
13532 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13533 it to the ptrace call.
13534 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13535
12753073
KR
135362020-03-14 Kamil Rytarowski <n54@gmx.com>
13537
6227b330
KR
13538 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13539 it to the ptrace call.
13540 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13541
135422020-03-14 Kamil Rytarowski <n54@gmx.com>
13543
13544 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13545 gdb_byte *.
12753073
KR
13546 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13547
d5be5fa4
KR
135482020-03-14 Kamil Rytarowski <n54@gmx.com>
13549
13550 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13551 instead of inf_ptrace_target.
13552 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13553 nbsd_nat_target.
13554
8110f842
KR
135552020-03-14 Kamil Rytarowski <n54@gmx.com>
13556
13557 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13558 register_t.
13559
52feded7
KR
135602020-03-14 Kamil Rytarowski <n54@gmx.com>
13561
13562 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13563 register_t.
13564
25567eee
KR
135652020-03-14 Kamil Rytarowski <n54@gmx.com>
13566
13567 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13568 register_t.
13569
426a9c18
TT
135702020-03-13 Tom Tromey <tom@tromey.com>
13571
13572 * value.h (val_print): Don't declare.
13573 * valprint.h (val_print_array_elements)
13574 (val_print_scalar_formatted, generic_val_print): Don't declare.
13575 * valprint.c (generic_val_print_array): Take a struct value.
13576 (generic_val_print_ptr, generic_val_print_memberptr)
13577 (generic_val_print_bool, generic_val_print_int)
13578 (generic_val_print_char, generic_val_print_complex)
13579 (generic_val_print): Remove.
13580 (generic_value_print): Update.
13581 (do_val_print): Remove unused parameters. Don't call
13582 la_val_print.
13583 (val_print): Remove.
13584 (common_val_print): Update. Don't call value_check_printable.
13585 (val_print_scalar_formatted, val_print_array_elements): Remove.
13586 * rust-lang.c (rust_val_print): Remove.
13587 (rust_language_defn): Update.
13588 * p-valprint.c (pascal_val_print): Remove.
13589 (pascal_value_print_inner): Update.
13590 (pascal_object_print_val_fields, pascal_object_print_val):
13591 Remove.
13592 (pascal_object_print_static_field): Update.
13593 * p-lang.h (pascal_val_print): Don't declare.
13594 * p-lang.c (pascal_language_defn): Update.
13595 * opencl-lang.c (opencl_language_defn): Update.
13596 * objc-lang.c (objc_language_defn): Update.
13597 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13598 * m2-lang.h (m2_val_print): Don't declare.
13599 * m2-lang.c (m2_language_defn): Update.
13600 * language.h (struct language_defn) <la_val_print>: Remove.
13601 * language.c (unk_lang_value_print_inner): Rename. Change
13602 argument types.
13603 (unknown_language_defn, auto_language_defn): Update.
13604 * go-valprint.c (go_val_print): Remove.
13605 * go-lang.h (go_val_print): Don't declare.
13606 * go-lang.c (go_language_defn): Update.
13607 * f-valprint.c (f_val_print): Remove.
13608 * f-lang.h (f_value_print): Don't declare.
13609 * f-lang.c (f_language_defn): Update.
13610 * d-valprint.c (d_val_print): Remove.
13611 * d-lang.h (d_value_print): Don't declare.
13612 * d-lang.c (d_language_defn): Update.
13613 * cp-valprint.c (cp_print_value_fields)
13614 (cp_print_value_fields_rtti, cp_print_value): Remove.
13615 (cp_print_static_field): Update.
13616 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13617 (c_val_print_struct, c_val_print_union, c_val_print_int)
13618 (c_val_print_memberptr, c_val_print): Remove.
13619 * c-lang.h (c_val_print_array, cp_print_value_fields)
13620 (cp_print_value_fields_rtti): Don't declare.
13621 * c-lang.c (c_language_defn, cplus_language_defn)
13622 (asm_language_defn, minimal_language_defn): Update.
13623 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13624 (ada_val_print_enum): Take a struct value.
13625 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13626 (ada_val_print): Remove.
13627 (ada_value_print_1): Update.
13628 (printable_val_type): Remove.
13629 * ada-lang.h (ada_val_print): Don't declare.
13630 * ada-lang.c (ada_language_defn): Update.
13631
42331a1e
TT
136322020-03-13 Tom Tromey <tom@tromey.com>
13633
13634 * valprint.c (do_val_print): Update.
13635 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13636 a struct value.
13637 (value_to_value_object_no_release): Declare.
13638 * python/py-value.c (value_to_value_object_no_release): New
13639 function.
13640 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13641 struct value.
13642 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13643 function.
13644 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13645 a struct value.
13646 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13647 Declare.
13648 (gdbscm_apply_val_pretty_printer): Take a struct value.
13649 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13650 value.
13651 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13652 value.
13653 * extension-priv.h (struct extension_language_ops)
13654 <apply_val_pretty_printer>: Take a struct value.
13655 * cp-valprint.c (cp_print_value): Create a struct value.
13656 (cp_print_value): Update.
13657
3a916a97
TT
136582020-03-13 Tom Tromey <tom@tromey.com>
13659
13660 * ada-valprint.c (print_field_values): Call common_val_print.
13661
b59eac37
TT
136622020-03-13 Tom Tromey <tom@tromey.com>
13663
13664 * ada-valprint.c (val_print_packed_array_elements): Remove
13665 bitoffset and val parameters. Call common_val_print.
13666 (ada_val_print_string): Remove offset, address, and original_value
13667 parameters.
13668 (ada_val_print_array): Update.
13669 (ada_value_print_array): New function.
13670 (ada_value_print_1): Call it.
13671
03371129
TT
136722020-03-13 Tom Tromey <tom@tromey.com>
13673
13674 * ada-valprint.c (ada_value_print): Use common_val_print.
13675
2e088f8b
TT
136762020-03-13 Tom Tromey <tom@tromey.com>
13677
13678 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13679
39ef85a8
TT
136802020-03-13 Tom Tromey <tom@tromey.com>
13681
13682 * ada-valprint.c (ada_value_print_num): New function.
13683 (ada_value_print_1): Use it.
13684
b9fa6e07
TT
136852020-03-13 Tom Tromey <tom@tromey.com>
13686
13687 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13688
416595d6
TT
136892020-03-13 Tom Tromey <tom@tromey.com>
13690
13691 * ada-valprint.c (ada_value_print_ptr): New function.
13692 (ada_value_print_1): Use it.
13693
5b5e15ec
TT
136942020-03-13 Tom Tromey <tom@tromey.com>
13695
13696 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13697 call common_val_print.
13698 (ada_val_print_1): Update.
13699 (ada_value_print_1): New function.
13700 (ada_value_print_inner): Rewrite.
13701
fbf54e75
TT
137022020-03-13 Tom Tromey <tom@tromey.com>
13703
13704 * cp-valprint.c (cp_print_value_fields): Update.
13705 (cp_print_value): New function.
13706
64b653ca
TT
137072020-03-13 Tom Tromey <tom@tromey.com>
13708
13709 * m2-valprint.c (m2_value_print_inner): Use
13710 cp_print_value_fields.
13711 * cp-valprint.c (cp_print_value_fields): New function.
13712 * c-valprint.c (c_value_print_struct): New function.
13713 (c_value_print_inner): Use c_value_print_struct.
13714 * c-lang.h (cp_print_value_fields): Declare.
13715
6999f067
TT
137162020-03-13 Tom Tromey <tom@tromey.com>
13717
13718 * c-valprint.c (c_value_print_array): New function.
13719 (c_value_print_inner): Use it.
13720
ce80b8bd
TT
137212020-03-13 Tom Tromey <tom@tromey.com>
13722
13723 * c-valprint.c (c_value_print_memberptr): New function.
13724 (c_value_print_inner): Use it.
13725
2faac269
TT
137262020-03-13 Tom Tromey <tom@tromey.com>
13727
13728 * c-valprint.c (c_value_print_int): New function.
13729 (c_value_print_inner): Use it.
13730
da3e2c29
TT
137312020-03-13 Tom Tromey <tom@tromey.com>
13732
13733 * c-valprint.c (c_value_print_ptr): New function.
13734 (c_value_print_inner): Use it.
13735
50836231
TT
137362020-03-13 Tom Tromey <tom@tromey.com>
13737
13738 * c-valprint.c (c_value_print_inner): Rewrite.
13739
4f412b6e
TT
137402020-03-13 Tom Tromey <tom@tromey.com>
13741
13742 * valprint.c (generic_value_print_complex): New function.
13743 (generic_value_print): Use it.
13744
f5354008
TT
137452020-03-13 Tom Tromey <tom@tromey.com>
13746
13747 * valprint.c (generic_val_print_float): Don't call
13748 val_print_scalar_formatted.
13749 (generic_val_print, generic_value_print): Update.
13750
3eec3b05
TT
137512020-03-13 Tom Tromey <tom@tromey.com>
13752
13753 * valprint.c (generic_value_print_char): New function
13754 (generic_value_print): Use it.
13755
fdddfccb
TT
137562020-03-13 Tom Tromey <tom@tromey.com>
13757
13758 * valprint.c (generic_value_print_int): New function.
13759 (generic_value_print): Use it.
13760
6dde7521
TT
137612020-03-13 Tom Tromey <tom@tromey.com>
13762
13763 * valprint.c (generic_value_print_bool): New function.
13764 (generic_value_print): Use it.
13765
4112d2e6
TT
137662020-03-13 Tom Tromey <tom@tromey.com>
13767
13768 * valprint.c (generic_val_print_func): Simplify.
13769 (generic_val_print, generic_value_print): Update.
13770
65786af6
TT
137712020-03-13 Tom Tromey <tom@tromey.com>
13772
13773 * valprint.c (generic_val_print_flags): Remove.
13774 (generic_val_print, generic_value_print): Update.
13775 (val_print_type_code_flags): Add original_value parameter.
13776
40f3ce18
TT
137772020-03-13 Tom Tromey <tom@tromey.com>
13778
13779 * valprint.c (generic_val_print): Update.
13780 (generic_value_print): Update.
13781 * valprint.c (generic_val_print_enum): Don't call
13782 val_print_scalar_formatted.
13783
2a5b130b
TT
137842020-03-13 Tom Tromey <tom@tromey.com>
13785
13786 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13787 * valprint.c (generic_value_print_ptr): New function.
13788
abc66ce9
TT
137892020-03-13 Tom Tromey <tom@tromey.com>
13790
13791 * valprint.c (generic_value_print): Rewrite.
13792
07a32858
TT
137932020-03-13 Tom Tromey <tom@tromey.com>
13794
13795 * p-valprint.c (pascal_object_print_value_fields)
13796 (pascal_object_print_value): New functions.
13797
64d64d3a
TT
137982020-03-13 Tom Tromey <tom@tromey.com>
13799
13800 * p-valprint.c (pascal_value_print_inner): Rewrite.
13801
6a95a1f5
TT
138022020-03-13 Tom Tromey <tom@tromey.com>
13803
13804 * f-valprint.c (f_value_print_innner): Rewrite.
13805
59fcdac6
TT
138062020-03-13 Tom Tromey <tom@tromey.com>
13807
13808 * m2-valprint.c (m2_print_unbounded_array): New overload.
13809 (m2_print_unbounded_array): Update.
13810 (m2_print_array_contents): Take a struct value.
13811 (m2_value_print_inner): Rewrite.
13812
d133c3e1
TT
138132020-03-13 Tom Tromey <tom@tromey.com>
13814
13815 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13816 (d_value_print_inner): New function.
13817 * d-lang.h (d_value_print_inner): Declare.
13818 * d-lang.c (d_language_defn): Use d_value_print_inner.
13819
23b0f06b
TT
138202020-03-13 Tom Tromey <tom@tromey.com>
13821
13822 * go-valprint.c (go_value_print_inner): New function.
13823 * go-lang.h (go_value_print_inner): Declare.
13824 * go-lang.c (go_language_defn): Use go_value_print_inner.
13825
5f56f7cb
TT
138262020-03-13 Tom Tromey <tom@tromey.com>
13827
13828 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13829 API.
13830 (rust_val_print): Rewrite.
13831 (rust_value_print_inner): New function, from rust_val_print.
13832 (rust_language_defn): Use rust_value_print_inner.
13833
26792ee0
TT
138342020-03-13 Tom Tromey <tom@tromey.com>
13835
13836 * ada-valprint.c (ada_value_print_inner): New function.
13837 * ada-lang.h (ada_value_print_inner): Declare.
13838 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13839
24051bbe
TT
138402020-03-13 Tom Tromey <tom@tromey.com>
13841
13842 * f-valprint.c (f_value_print_innner): New function.
13843 * f-lang.h (f_value_print_innner): Declare.
13844 * f-lang.c (f_language_defn): Use f_value_print_innner.
13845
c0941be6
TT
138462020-03-13 Tom Tromey <tom@tromey.com>
13847
13848 * p-valprint.c (pascal_value_print_inner): New function.
13849 * p-lang.h (pascal_value_print_inner): Declare.
13850 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13851
62c4663d
TT
138522020-03-13 Tom Tromey <tom@tromey.com>
13853
13854 * m2-valprint.c (m2_value_print_inner): New function.
13855 * m2-lang.h (m2_value_print_inner): Declare.
13856 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13857
62182190
TT
138582020-03-13 Tom Tromey <tom@tromey.com>
13859
13860 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13861 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13862 * c-valprint.c (c_value_print_inner): New function.
13863 * c-lang.h (c_value_print_inner): Declare.
13864 * c-lang.c (c_language_defn, cplus_language_defn)
13865 (asm_language_defn, minimal_language_defn): Use
13866 c_value_print_inner.
13867
1e592a8a
TT
138682020-03-13 Tom Tromey <tom@tromey.com>
13869
13870 * p-valprint.c (pascal_object_print_value_fields): Now static.
13871 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13872
7fe471e9
TT
138732020-03-13 Tom Tromey <tom@tromey.com>
13874
13875 * c-valprint.c (c_val_print_array): Simplify.
13876
d121c6ce
TT
138772020-03-13 Tom Tromey <tom@tromey.com>
13878
13879 * valprint.c (value_print_array_elements): New function.
13880 * valprint.h (value_print_array_elements): Declare.
13881
4dba70ee
TT
138822020-03-13 Tom Tromey <tom@tromey.com>
13883
13884 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13885 * mips-tdep.c (mips_print_register): Use
13886 value_print_scalar_formatted.
13887
4f9ae810
TT
138882020-03-13 Tom Tromey <tom@tromey.com>
13889
13890 * valprint.h (value_print_scalar_formatted): Declare.
13891 * valprint.c (value_print_scalar_formatted): New function.
13892
156bfec9
TT
138932020-03-13 Tom Tromey <tom@tromey.com>
13894
13895 * valprint.h (generic_value_print): Declare.
13896 * valprint.c (generic_value_print): New function.
13897
2b4e573d
TT
138982020-03-13 Tom Tromey <tom@tromey.com>
13899
13900 * valprint.c (do_val_print): Call la_value_print_inner, if
13901 available.
13902 * rust-lang.c (rust_language_defn): Update.
13903 * p-lang.c (pascal_language_defn): Update.
13904 * opencl-lang.c (opencl_language_defn): Update.
13905 * objc-lang.c (objc_language_defn): Update.
13906 * m2-lang.c (m2_language_defn): Update.
13907 * language.h (struct language_defn) <la_value_print_inner>: New
13908 member.
13909 * language.c (unknown_language_defn, auto_language_defn): Update.
13910 * go-lang.c (go_language_defn): Update.
13911 * f-lang.c (f_language_defn): Update.
13912 * d-lang.c (d_language_defn): Update.
13913 * c-lang.c (c_language_defn, cplus_language_defn)
13914 (asm_language_defn, minimal_language_defn): Update.
13915 * ada-lang.c (ada_language_defn): Update.
13916
a1f6a07c
TT
139172020-03-13 Tom Tromey <tom@tromey.com>
13918
13919 * c-valprint.c (c_value_print): Use common_val_print.
13920
410cf315
TT
139212020-03-13 Tom Tromey <tom@tromey.com>
13922
13923 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13924
72a45c93
TT
139252020-03-13 Tom Tromey <tom@tromey.com>
13926
13927 * f-valprint.c (f77_print_array_1, f_val_print): Use
13928 common_val_print.
13929
040f66bd
TT
139302020-03-13 Tom Tromey <tom@tromey.com>
13931
13932 * riscv-tdep.c (riscv_print_one_register_info): Use
13933 common_val_print.
13934
a6e05a6c
TT
139352020-03-13 Tom Tromey <tom@tromey.com>
13936
13937 * mi/mi-main.c (output_register): Use common_val_print.
13938
3444c526
TT
139392020-03-13 Tom Tromey <tom@tromey.com>
13940
13941 * infcmd.c (default_print_one_register_info): Use
13942 common_val_print.
13943
c2a44efe
TT
139442020-03-13 Tom Tromey <tom@tromey.com>
13945
13946 * valprint.h (common_val_print_checked): Declare.
13947 * valprint.c (common_val_print_checked): New function.
13948 * stack.c (print_frame_arg): Use common_val_print_checked.
13949
b0c26e99
TT
139502020-03-13 Tom Tromey <tom@tromey.com>
13951
13952 * valprint.c (do_val_print): New function, from val_print.
13953 (val_print): Use do_val_print.
13954 (common_val_print): Use do_val_print.
13955
ce3acbe9
TT
139562020-03-13 Tom Tromey <tom@tromey.com>
13957
13958 * valprint.c (value_print): Use scoped_value_mark.
13959
96c7f873
TV
139602020-03-13 Tom de Vries <tdevries@suse.de>
13961
13962 PR symtab/25646
13963 * psymtab.c (partial_symtab::partial_symtab): Don't set
13964 globals_offset and statics_offset. Push element onto
13965 current_global_psymbols and current_static_psymbols stacks.
13966 (concat): New function.
13967 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13968 element from current_global_psymbols and current_static_psymbols
13969 stacks. Concat popped elements to global_psymbols and
13970 static_symbols.
13971 (add_psymbol_to_list): Use current_global_psymbols and
13972 current_static_psymbols stacks.
13973 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13974 current_static_psymbols fields.
13975
6ba0a321
CB
139762020-03-12 Christian Biesinger <cbiesinger@google.com>
13977
13978 * corelow.c (sniff_core_bfd): Remove.
13979 (class core_target) <m_core_vec>: Remove.
13980 (core_target::core_target): Update.
13981 (core_file_fns): Remove.
13982 (deprecated_add_core_fns): Remove.
13983 (default_core_sniffer): Remove.
13984 (sniff_core_bfd): Remove.
13985 (default_check_format): Remove.
13986 (gdb_check_format): Remove.
13987 (core_target_open): Update.
13988 (core_target::get_core_register_section): Update.
13989 (get_core_registers_cb): Update.
13990 (core_target::fetch_registers): Update.
13991 * gdbcore.h (struct core_fns): Remove.
13992 (deprecated_add_core_fns): Remove.
13993 (default_core_sniffer): Remove.
13994 (default_check_format): Remove.
13995
227031b2
TT
139962020-03-12 Tom Tromey <tom@tromey.com>
13997
13998 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13999 CORE_ADDR.
14000 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14001
53807e9f
TT
140022020-03-12 Tom Tromey <tom@tromey.com>
14003
14004 * remote.c (remote_target::download_tracepoint)
14005 (remote_target::enable_tracepoint)
14006 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14007 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14008 sprintf_vma.
14009
64f25102
TT
140102020-03-12 Tom Tromey <tom@tromey.com>
14011
14012 * symfile-mem.c: Update CORE_ADDR size assert.
14013
272cd5a3
SM
140142020-03-12 Simon Marchi <simon.marchi@efficios.com>
14015
14016 * selftest.m4: Move to gdbsupport/.
14017 * acinclude.m4: Update path to selftest.m4.
14018
74cd3f9d
SM
140192020-03-12 Simon Marchi <simon.marchi@efficios.com>
14020
14021 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14022 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14023 gdbarch-selfselftests.c and selftest-arch.c.
14024 (SUBDIR_UNITTESTS_OBS): Rename to...
14025 (SELFTESTS_OBS): ... this.
14026 (COMMON_SFILES): Remove disasm-selftests.c and
14027 gdbarch-selftests.c.
14028 * configure.ac: Don't add selftest-arch.{c,o} to
14029 CONFIG_{SRCS,OBS}.
14030 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14031 preprocessor conditions.
14032
db6878ac
SM
140332020-03-12 Simon Marchi <simon.marchi@efficios.com>
14034
14035 * configure.ac: Don't source bfd/development.sh.
14036 * selftest.m4: Modify comment.
14037 * configure: Re-generate.
14038
4d696a5c
SM
140392020-03-12 Simon Marchi <simon.marchi@efficios.com>
14040
14041 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14042 not "true" or "false".
14043 * configure: Re-generate.
14044
8dd8e1c7
CB
140452020-03-12 Christian Biesinger <cbiesinger@google.com>
14046
14047 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14048 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14049 renamed to arm_nbsd_supply_gregset.
14050 (fetch_register): Update to call arm_nbsd_supply_gregset.
14051 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14052 (arm_netbsd_nat_target::fetch_registers): Update.
14053 (fetch_elfcore_registers): Removed.
14054 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14055 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14056 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14057 not require NetBSD system headers.
14058 (arm_nbsd_regset): New struct.
14059 (arm_nbsd_iterate_over_regset_sections): New function.
14060 (arm_netbsd_init_abi_common): Updated to call
14061 set_gdbarch_iterate_over_regset_sections.
14062 * arm-nbsd-tdep.h: New file.
14063
dd69bf7a
KB
140642020-03-11 Kevin Buettner <kevinb@redhat.com>
14065
14066 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14067 recursion.
14068
a0761e34
SM
140692020-03-11 Simon Marchi <simon.marchi@efficios.com>
14070
14071 * configure: Re-generate.
14072
e7a82140
TT
140732020-03-11 Tom Tromey <tromey@adacore.com>
14074
14075 * ada-typeprint.c (print_choices): Fix comment.
14076
dcc050c8
AB
140772020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14078
14079 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14080 previous item in the list, when the list has no items.
14081
1c33af77
TV
140822020-03-11 Tom de Vries <tdevries@suse.de>
14083
14084 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14085 PROP_LOCLIST handling code.
14086
8c95582d
AB
140872020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14088
14089 * buildsym-legacy.c (record_line): Pass extra parameter to
14090 record_line.
14091 * buildsym.c (buildsym_compunit::record_line): Take an extra
14092 parameter, reduce duplication in the line table, and record the
14093 is_stmt flag in the line table.
14094 * buildsym.h (buildsym_compunit::record_line): Add extra
14095 parameter.
14096 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14097 non-statement lines.
14098 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14099 this to the symtab builder.
14100 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14101 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14102 through to dwarf_record_line_1.
14103 * infrun.c (process_event_stop_test): When stepping, don't stop at
14104 a non-statement instruction, and only refresh the step info when
14105 we land in the middle of a line's range. Also add an extra
14106 comment.
14107 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14108 field.
14109 * record-btrace.c (btrace_find_line_range): Only record lines
14110 marked as is-statement.
14111 * stack.c (frame_show_address): Show the frame address if we are
14112 in a non-statement sal.
14113 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14114 (maintenance_print_one_line_table): Print a header for the is_stmt
14115 column, and include is_stmt information in the output.
14116 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14117 preference to non-statements.
14118 (find_pcs_for_symtab_line): Prefer is-statement entries.
14119 (find_line_common): Likewise.
14120 * symtab.h (struct linetable_entry): Add is_stmt field.
14121 (struct symtab_and_line): Likewise.
14122 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14123 arranging the line table.
14124
e4003a34
TV
141252020-03-07 Tom de Vries <tdevries@suse.de>
14126
14127 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14128 DIE.
14129
e8932576
TT
141302020-03-07 Tom Tromey <tom@tromey.com>
14131
14132 * valops.c (value_literal_complex): Remove obsolete comment.
14133 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14134 comment.
14135
29734269
SM
141362020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14137
14138 * infrun.h: Forward-declare thread_info.
14139 (set_step_info): Add thread_info parameter, add doc.
14140 * infrun.c (set_step_info): Add thread_info parameter, move doc
14141 to header.
14142 * infrun.c (process_event_stop_test): Pass thread to
14143 set_step_info call.
14144 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14145 set_step_info.
14146 (prepare_one_step): Add thread_info parameter, pass it to
14147 set_step_frame and prepare_one_step (recursive) call.
14148 (step_1): Pass thread to prepare_one_step call.
14149 (step_command_fsm::should_stop): Pass thread to
14150 prepare_one_step.
14151 (until_next_fsm): Pass thread to set_step_frame call.
14152 (finish_command): Pass thread to set_step_info call.
14153
b7d64b29
HD
141542020-03-06 Hannes Domani <ssbssa@yahoo.de>
14155
14156 * windows-tdep.c (windows_solib_create_inferior_hook):
14157 Check if inferior is running.
14158
09f2921c
TV
141592020-03-06 Tom de Vries <tdevries@suse.de>
14160
14161 * NEWS: Fix "the the".
14162 * ctfread.c: Same.
14163
fd760e79
TV
141642020-03-06 Tom de Vries <tdevries@suse.de>
14165
14166 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14167
20ea4a60
AB
141682020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14169
14170 * .dir-locals.el: Add a comment referencing the other copies of
14171 this file.
14172
0afbabf0
JB
141732020-03-05 John Baldwin <jhb@FreeBSD.org>
14174
14175 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14176 psargs.
14177
842806cb
TBA
141782020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14179
14180 * .gitattributes: New file.
14181
be1e3d3e
TT
141822020-03-04 Tom Tromey <tom@tromey.com>
14183
14184 * symmisc.c (print_symbol_bcache_statistics)
14185 (print_objfile_statistics): Update.
14186 * symfile.c (allocate_symtab): Use intern.
14187 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14188 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14189 macro_cache>: Remove.
14190 <string_cache>: New member.
14191 (struct objfile) <intern>: New methods.
14192 * elfread.c (elf_symtab_read): Use intern.
14193 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14194 (dwarf2_compute_name, dwarf2_physname)
14195 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14196 names.
14197 (guess_partial_die_structure_name): Update.
14198 (partial_die_info::fixup): Intern name.
14199 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14200 name.
14201 (dwarf2_name): Intern name. Update.
14202 * buildsym.c (buildsym_compunit::get_macro_table): Use
14203 string_cache.
14204
4e7625fd
TT
142052020-03-04 Tom Tromey <tom@tromey.com>
14206
14207 * jit.c (bfd_open_from_target_memory): Make "target" const.
14208 * corefile.c (gnutarget): Now const.
14209 * gdbcore.h (gnutarget): Now const.
14210
46f9f931
HD
142112020-03-04 Hannes Domani <ssbssa@yahoo.de>
14212
14213 * NEWS: Mention support for WOW64 processes.
14214 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14215 (amd64_windows_segment_register_p): Remove static.
14216 (_initialize_amd64_windows_nat): Update.
14217 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14218 * i386-windows-nat.c (context_offset): Update.
14219 (i386_mappings): Rename and remove static.
14220 (i386_windows_segment_register_p): Remove static.
14221 (_initialize_i386_windows_nat): Update.
14222 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14223 (STATUS_WX86_SINGLE_STEP): New macro.
14224 (EnumProcessModulesEx): New macro.
14225 (Wow64SuspendThread): New macro.
14226 (Wow64GetThreadContext): New macro.
14227 (Wow64SetThreadContext): New macro.
14228 (Wow64GetThreadSelectorEntry): New macro.
14229 (windows_set_context_register_offsets): Add static.
14230 (windows_set_segment_register_p): Likewise.
14231 (windows_add_thread): Adapt for WOW64 processes.
14232 (windows_fetch_one_register): Likewise.
14233 (windows_nat_target::fetch_registers): Likewise.
14234 (windows_store_one_register): Likewise.
14235 (display_selector): Likewise.
14236 (display_selectors): Likewise.
14237 (handle_exception): Likewise.
14238 (windows_continue): Likewise.
14239 (windows_nat_target::resume): Likewise.
14240 (windows_add_all_dlls): Likewise.
14241 (do_initial_windows_stuff): Likewise.
14242 (windows_nat_target::attach): Likewise.
14243 (windows_get_exec_module_filename): Likewise.
14244 (windows_nat_target::create_inferior): Likewise.
14245 (windows_xfer_siginfo): Likewise.
14246 (_initialize_loadable): Initialize Wow64SuspendThread,
14247 Wow64GetThreadContext, Wow64SetThreadContext,
14248 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14249 * windows-nat.h (windows_set_context_register_offsets):
14250 Remove declaration.
14251 (windows_set_segment_register_p): Likewise.
14252 (i386_windows_segment_register_p): Add declaration.
14253 (amd64_windows_segment_register_p): Likewise.
14254
440cf44e
LM
142552020-03-04 Luis Machado <luis.machado@linaro.org>
14256
14257 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14258 in "info registers" for AArch64/ARM.
14259
14260 The change caused "info registers" to not print GPR's.
14261
14262 gdb/ChangeLog:
14263
14264 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14265
14266 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14267 when reg->group is empty and reggroup is not.
14268
1009d92f
TT
142692020-03-03 Tom Tromey <tromey@adacore.com>
14270
14271 * dwarf2/frame.c (struct dwarf2_frame_cache)
14272 <checked_tailcall_bottom, entry_cfa_sp_offset,
14273 entry_cfa_sp_offset_p>: Remove members.
14274 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14275 (dwarf2_frame_prev_register): Don't call
14276 dwarf2_tailcall_sniffer_first.
14277 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14278 * frame-unwind.c (add_unwinder): New fuction.
14279 (frame_unwind_init): Use it. Add tailcall unwinder.
14280
5e5d66b6
AB
142812020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14282 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14283
14284 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14285 value should be printed as true.
14286
584cf46d
HD
142872020-03-03 Hannes Domani <ssbssa@yahoo.de>
14288
14289 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14290 (windows_init_abi): Set and use windows_so_ops.
14291
7b973adc
SDJ
142922020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14293
14294 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14295 when verifying if dealing with a convenience variable.
14296
bb7b70ab
LM
142972020-03-03 Luis Machado <luis.machado@linaro.org>
14298
14299 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14300
9822cb57
SM
143012020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14302
14303 * infrun.c (gdbarch_supports_displaced_stepping): New.
14304 (use_displaced_stepping): Break up conditions in smaller pieces.
14305 Use gdbarch_supports_displaced_stepping.
14306 (displaced_step_prepare_throw): Use
14307 gdbarch_supports_displaced_stepping.
14308
63e163f2
AB
143092020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14310
14311 * NEWS: Mention new behaviour of the history filename.
14312 * top.c (write_history_p): Add comment.
14313 (show_write_history_p): Add header comment, give a different
14314 message when history writing is on, but the history filename is
14315 empty.
14316 (history_filename): Add comment.
14317 (history_filename_empty): New function.
14318 (show_history_filename): Add header comment, give a different
14319 message when the filename is empty.
14320 (init_history): Compare history_filename against nullptr, and only
14321 read history if the filename is not empty.
14322 (set_history_filename): Add header comment, and only make
14323 non-empty filenames absolute.
14324 (init_main): Make the filename argument to 'set history filename'
14325 optional.
14326
81b86b97
CB
143272020-03-02 Christian Biesinger <cbiesinger@google.com>
14328
14329 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14330 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14331 (fetch_fp_register): Update.
14332 (fetch_fp_regs): Update.
14333 (store_fp_register): Update.
14334 (store_fp_regs): Update.
14335 (arm_netbsd_nat_target::read_description): New function.
14336 (fetch_elfcore_registers): Update.
14337
24ed6739
AB
143382020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14339
14340 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14341 general_thread if the stop reply is missing a thread-id.
14342 (remote_target::process_stop_reply): Use the first non-exited
14343 thread if the target didn't pass a thread-id.
14344 * infrun.c (do_target_wait): Move call to
14345 switch_to_inferior_no_thread to ....
14346 (do_target_wait_1): ... here.
14347
a84bb2a0
JT
143482020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14349
14350 * debuginfod-support.c: Include defs.h first.
14351
658dadf0
TV
143522020-02-28 Tom de Vries <tdevries@suse.de>
14353
14354 * symfile.c (set_initial_language): Use default language for lookup.
14355
4ebe4877
SM
143562020-02-28 Simon Marchi <simon.marchi@efficios.com>
14357
14358 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14359 reader variable, pass `this` to read_cutu_die_from_dwo.
14360
e5da1139
AM
143612020-02-27 Aaron Merey <amerey@redhat.com>
14362
14363 * source.c (open_source_file): Check for nullptr when computing
14364 srcpath.
14365
317f7127
TT
143662020-02-27 Tom Tromey <tromey@adacore.com>
14367
14368 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14369 member.
14370 (dwarf2_add_field): Don't update nfields.
14371 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14372
3104d9ee
AB
143732020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14374
14375 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14376 abs.
14377
b83470bf
TT
143782020-02-26 Tom Tromey <tom@tromey.com>
14379
14380 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14381 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14382 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14383 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14384 per_cu_data.
14385
edfe0a0c
TT
143862020-02-26 Tom Tromey <tom@tromey.com>
14387
14388 * dwarf2/index-write.c (psym_index_map): Change type.
14389 (add_address_entry_worker, write_one_signatured_type)
14390 (recursively_count_psymbols, recursively_write_psymbols)
14391 (class debug_names, psyms_seen_size, write_gdbindex)
14392 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14393
0d79cdc4
AM
143942020-02-26 Aaron Merey <amerey@redhat.com>
14395
14396 * Makefile.in: Handle optional debuginfod support.
14397 * NEWS: Update.
14398 * README: Add --with-debuginfod summary.
14399 * config.in: Regenerate.
14400 * configure: Regenerate.
14401 * configure.ac: Handle optional debuginfod support.
14402 * debuginfod-support.c: debuginfod helper functions.
14403 * debuginfod-support.h: Ditto.
14404 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14405 summary.
14406 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14407 when a dwz file cannot be found.
14408 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14409 debuginfo file cannot be found.
14410 * source.c (open_source_file): Query debuginfod servers when a
14411 source file cannot be found.
14412 * top.c (print_gdb_configuration): Include
14413 --{with,without}-debuginfod in the output.
14414
b65ce565
JG
144152020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14416
14417 * thread.c (thr_try_catch_cmd): Print thread name.
14418
d4c9a4f8
SM
144192020-02-26 Simon Marchi <simon.marchi@efficios.com>
14420
14421 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14422 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14423 dwarf2_fetch_die_type_sect_off): Move to...
14424 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14425 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14426 dwarf2_fetch_die_type_sect_off): ... here.
14427 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14428 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14429 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14430
0dce4280
TV
144312020-02-26 Tom de Vries <tdevries@suse.de>
14432
14433 PR gdb/25603
14434 * symfile.c (set_initial_language): Exit-early if
14435 language_mode == language_mode_manual.
14436
450a1bfc
SM
144372020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14438
14439 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14440 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14441 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14442
9e80cfa1
AB
144432020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14444
14445 * gdbtypes.c (create_array_type_with_stride): Handle negative
14446 array strides.
14447 * valarith.c (value_subscripted_rvalue): Likewise.
14448
09624f1f
LM
144492020-02-25 Luis Machado <luis.machado@linaro.org>
14450
14451 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14452
8cb5117c
SM
144532020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14454
14455 * loc.h (dwarf2_get_die_type): Move to...
14456 * read.h (dwarf2_get_die_type): ... here.
14457 * read.c (dwarf2_get_die_type): Move doc to header.
14458
c325c44e
JB
144592020-02-25 Joel Brobecker <brobecker@adacore.com>
14460
14461 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14462 'gnulib/Makefile.in' to the list.
14463
4ac93832
TT
144642020-02-24 Tom Tromey <tom@tromey.com>
14465
14466 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14467 Remove.
14468 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14469 XOBNEWVEC.
14470
197400e8
TT
144712020-02-24 Tom Tromey <tom@tromey.com>
14472
14473 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14474 New method.
14475 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14476 (dw2_do_instantiate_symtab, dw2_get_file_names)
14477 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14478
76935768
TT
144792020-02-24 Tom Tromey <tom@tromey.com>
14480
14481 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14482 make_scoped_restore.
14483 (dwarf2_psymtab::read_symtab): Don't clear
14484 reading_partial_symbols.
14485
a88ef40d
TV
144862020-02-24 Tom de Vries <tdevries@suse.de>
14487
14488 PR gdb/25592
14489 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14490
c9af6521
TV
144912020-02-24 Tom de Vries <tdevries@suse.de>
14492
14493 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14494 commands layout next/prev/regs.
14495
5707a07a
TT
144962020-02-22 Tom Tromey <tom@tromey.com>
14497
14498 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14499 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14500
3b0fb49e
TT
145012020-02-22 Tom Tromey <tom@tromey.com>
14502
14503 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14504
283be8bf
TT
145052020-02-22 Tom Tromey <tom@tromey.com>
14506
14507 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14508 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14509 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14510 * tui/tui.c (_initialize_tui): Add usage text.
14511
ca793b96
TT
145122020-02-22 Tom Tromey <tom@tromey.com>
14513
14514 * tui/tui-win.c (tui_set_focus_command)
14515 (tui_set_win_height_command): Use error_no_arg.
14516 (_initialize_tui_win): Update help text.
14517 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14518
432b5c40
TT
145192020-02-22 Tom Tromey <tom@tromey.com>
14520
14521 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14522 * tui/tui-disasm.h (struct tui_disasm_window)
14523 <display_start_addr>: Declare.
14524 * tui/tui-source.h (struct tui_source_window)
14525 <display_start_addr>: Declare.
14526 * tui/tui-winsource.h (struct tui_source_window_base)
14527 <show_source_line, display_start_addr>: New methods.
14528 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14529 Rename and move to protected section.
14530 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14531 (tui_source_window_base::do_erase_source_content): Update.
14532 (tui_source_window_base::show_source_line): Now a method.
14533 (tui_source_window_base::show_source_content)
14534 (tui_source_window_base::tui_source_window_base)
14535 (tui_source_window_base::rerender)
14536 (tui_source_window_base::refill)
14537 (tui_source_window_base::do_scroll_horizontal)
14538 (tui_source_window_base::set_is_exec_point_at)
14539 (tui_source_window_base::update_breakpoint_info)
14540 (tui_source_window_base::update_exec_info): Update.
14541 * tui/tui-source.c (tui_source_window::set_contents)
14542 (tui_source_window::showing_source_p)
14543 (tui_source_window::do_scroll_vertical)
14544 (tui_source_window::location_matches_p)
14545 (tui_source_window::line_is_displayed): Update.
14546 (tui_source_window::display_start_addr): New method.
14547 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14548 (tui_disasm_window::do_scroll_vertical)
14549 (tui_disasm_window::location_matches_p): Update.
14550 (tui_disasm_window::display_start_addr): New method.
14551
01b1af32
TT
145522020-02-22 Tom Tromey <tom@tromey.com>
14553
14554 * NEWS: Add entry for gdb.register_window_type.
14555 * tui/tui-layout.h (window_factory): New typedef.
14556 (tui_register_window): Declare.
14557 * tui/tui-layout.c (saved_tui_windows): New global.
14558 (tui_apply_current_layout): Use it.
14559 (tui_register_window): New function.
14560 * python/python.c (do_start_initialization): Call
14561 gdbpy_initialize_tui.
14562 (python_GdbMethods): Add "register_window_type" function.
14563 * python/python-internal.h (gdbpy_register_tui_window)
14564 (gdbpy_initialize_tui): Declare.
14565 * python/py-tui.c: New file.
14566 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14567
fc96d20b
TT
145682020-02-22 Tom Tromey <tom@tromey.com>
14569
14570 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14571
935c78c0
TT
145722020-02-22 Tom Tromey <tom@tromey.com>
14573
14574 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14575 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14576 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14577 (tui_set_win_focus_to): Move from tui-win.c.
14578
0240c8f1
TT
145792020-02-22 Tom Tromey <tom@tromey.com>
14580
14581 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14582 functions.
14583 (known_window_types): New global.
14584 (tui_get_window_by_name): Reimplement.
14585 (initialize_known_windows): New function.
14586 (validate_window_name): Rewrite.
14587 (_initialize_tui_layout): Call initialize_known_windows.
14588
fdb01f0c
TT
145892020-02-22 Tom Tromey <tom@tromey.com>
14590
14591 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14592 Remove constants.
14593 * tui/tui-winsource.h (struct tui_source_window_base)
14594 <tui_source_window_base>: Remove parameter.
14595 * tui/tui-winsource.c
14596 (tui_source_window_base::tui_source_window_base): Remove
14597 parameter.
14598 (tui_source_window_base::refill): Update.
14599 * tui/tui-stack.h (struct tui_locator_window)
14600 <tui_locator_window>: Update.
14601 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14602 Default the constructor.
14603 * tui/tui-regs.h (struct tui_data_item_window)
14604 <tui_data_item_window>: Default the constructor.
14605 (struct tui_data_window) <tui_data_window>: Likewise.
14606 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14607 Default the constructor.
14608 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14609 Default the constructor.
14610 <type>: Remove.
14611 (struct tui_win_info) <tui_win_info>: Default the constructor.
14612 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14613 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14614 Default the constructor.
14615
865a5aec
TT
146162020-02-22 Tom Tromey <tom@tromey.com>
14617
14618 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14619 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14620 * tui/tui-win.c (tui_resize_all): Don't call
14621 tui_delete_invisible_windows.
14622 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14623 done.
14624 (tui_set_layout): Update.
14625 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14626 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14627 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14628
e098d18c
TT
146292020-02-22 Tom Tromey <tom@tromey.com>
14630
14631 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14632 correctly.
14633
eb9c8874
TT
146342020-02-22 Tom Tromey <tom@tromey.com>
14635
14636 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14637
7eed1a8e
TT
146382020-02-22 Tom Tromey <tom@tromey.com>
14639
14640 * tui/tui-winsource.h (struct tui_source_window_iterator)
14641 <inner_iterator>: New etytypedef.
14642 <tui_source_window_iterator>: Take "end" parameter.
14643 <tui_source_window_iterator>: Take iterator.
14644 <operator*, advance>: Update.
14645 <m_iter>: Change type.
14646 <m_end>: New field.
14647 (struct tui_source_windows) <begin, end>: Update.
14648 * tui/tui-layout.c (tui_windows): New global.
14649 (tui_apply_current_layout): Clear tui_windows.
14650 (tui_layout_window::apply): Update tui_windows.
14651 * tui/tui-data.h (tui_windows): Declare.
14652 (all_tui_windows): Now inline function.
14653 (class tui_window_iterator, struct all_tui_windows): Remove.
14654
7c043ba6
TT
146552020-02-22 Tom Tromey <tom@tromey.com>
14656
14657 PR tui/17850:
14658 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14659 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14660 "height" argument.
14661 (class tui_layout_window) <get_sizes>: Likewise.
14662 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14663 argument.
14664 <get_sizes>: Add "height" argument.
14665 <m_vertical>: New field.
14666 * tui/tui-layout.c (tui_layout_split::clone): Update.
14667 (tui_layout_split::get_sizes): Add "height" argument.
14668 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14669 (tui_new_layout_command): Parse "-horizontal".
14670 (_initialize_tui_layout): Update help string.
14671 (tui_layout_split::specification): Add "-horizontal" when needed.
14672 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14673 argument.
14674 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14675 New methods.
14676
6bc56648
TT
146772020-02-22 Tom Tromey <tom@tromey.com>
14678
14679 * tui/tui-layout.h (enum tui_adjust_result): New.
14680 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14681 (class tui_layout_window) <adjust_size>: Return
14682 tui_adjust_result. Rewrite.
14683 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14684 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14685
c22fef7e
TT
146862020-02-22 Tom Tromey <tom@tromey.com>
14687
14688 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14689 parameter and return types.
14690 (class tui_layout_base) <specification>: Add "depth".
14691 (class tui_layout_window) <specification>: Add "depth".
14692 (class tui_layout_split) <specification>: Add "depth".
14693 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14694 and return types.
14695 (tui_new_layout_command): Parse sub-layouts.
14696 (_initialize_tui_layout): Update help string.
14697 (tui_layout_window::specification): Add "depth".
14698 (add_layout_command): Update.
14699
ee325b61
TT
147002020-02-22 Tom Tromey <tom@tromey.com>
14701
14702 * NEWS: Add "tui new-layout" item.
14703 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14704 Add new-layout command to help text.
14705 (validate_window_name): New function.
14706 (tui_new_layout_command): New function.
14707 (_initialize_tui_layout): Register "new-layout".
14708 (tui_layout_window::specification): New method.
14709 (tui_layout_window::specification): New method.
14710 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14711 method.
14712 (class tui_layout_window) <specification>: New method.
14713 (class tui_layout_split) <specification>: New method.
14714
416eb92d
TT
147152020-02-22 Tom Tromey <tom@tromey.com>
14716
14717 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14718 * tui/tui-win.c (window_name_completer): Update comment.
14719 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14720 Declare method.
14721 (class tui_layout_window) <replace_window>: Likewise.
14722 (class tui_layout_split) <replace_window>: Likewise.
14723 (tui_set_layout): Don't declare.
14724 (tui_set_initial_layout): Declare function.
14725 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14726 (asm_regs_layout): New globals.
14727 (tui_current_layout, show_layout): Remove.
14728 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14729 (find_layout, tui_apply_layout): New function.
14730 (layout_completer): Remove.
14731 (tui_next_layout): Reimplement.
14732 (tui_next_layout_command): New function.
14733 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14734 (tui_regs_layout): Reimplement.
14735 (tui_regs_layout_command): New function.
14736 (extract_display_start_addr): Rewrite.
14737 (next_layout, prev_layout): Remove.
14738 (tui_layout_window::replace_window): New method.
14739 (tui_layout_split::replace_window): New method.
14740 (destroy_layout): New function.
14741 (layout_list): New global.
14742 (add_layout_command): New function.
14743 (initialize_layouts): Update.
14744 (tui_layout_command): New function.
14745 (_initialize_tui_layout): Install "layout" commands.
14746 * tui/tui-data.h (enum tui_layout_type): Remove.
14747 (tui_current_layout): Don't declare.
14748
0dbc2fc7
TT
147492020-02-22 Tom Tromey <tom@tromey.com>
14750
14751 * tui/tui-regs.c (tui_reg_layout): Remove.
14752 (tui_reg_command): Use tui_regs_layout.
14753 * tui/tui-layout.h (tui_reg_command): Declare.
14754 * tui/tui-layout.c (tui_reg_command): New function.
14755
5afe342e
TT
147562020-02-22 Tom Tromey <tom@tromey.com>
14757
14758 * tui/tui.c (tui_rl_delete_other_windows): Call
14759 tui_remove_some_windows.
14760 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14761 Declare method.
14762 (class tui_layout_window) <remove_windows>: New method.
14763 (class tui_layout_split) <remove_windows>: Declare.
14764 (tui_remove_some_windows): Declare.
14765 * tui/tui-layout.c (tui_remove_some_windows): New function.
14766 (tui_layout_split::remove_windows): New method.
14767
427326a8
TT
147682020-02-22 Tom Tromey <tom@tromey.com>
14769
14770 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14771 * tui/tui-layout.h (tui_next_layout): Declare.
14772 * tui/tui-layout.c (tui_next_layout): New function.
14773
3fe12b6d
TT
147742020-02-22 Tom Tromey <tom@tromey.com>
14775
14776 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14777 correct coordinates.
14778
59b8b5d2
TT
147792020-02-22 Tom Tromey <tom@tromey.com>
14780
14781 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14782 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14783 DATA_WIN case.
14784
2a3d458b
TT
147852020-02-22 Tom Tromey <tom@tromey.com>
14786
14787 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14788 TUI_DISASM_WIN, not tui_win_list.
14789
3f0cbb04
TT
147902020-02-22 Tom Tromey <tom@tromey.com>
14791
14792 * valprint.c (generic_val_print_enum_1)
14793 (val_print_type_code_flags): Style member names.
14794 * rust-lang.c (val_print_struct, rust_print_enum)
14795 (rust_print_struct_def, rust_internal_print_type): Style member
14796 names.
14797 * p-valprint.c (pascal_object_print_value_fields): Style member
14798 names. Only call fprintf_symbol_filtered for static members.
14799 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14800 * f-valprint.c (f_val_print): Style member names.
14801 * f-typeprint.c (f_type_print_base): Style member names.
14802 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14803 call fprintf_symbol_filtered for static members.
14804 (cp_print_class_member): Style member names.
14805 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14806 member names.
14807 * ada-valprint.c (ada_print_scalar): Style enum names.
14808 (ada_val_print_enum): Likewise.
14809 * ada-typeprint.c (print_enum_type): Style enum names.
14810
d4d947ae
TT
148112020-02-21 Tom Tromey <tom@tromey.com>
14812
14813 * psympriv.h (struct partial_symtab): Update comment.
14814
e94e944b
TT
148152020-02-21 Tom Tromey <tromey@adacore.com>
14816
14817 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14818 type is CORE_ADDR.
14819
1eb73179
TV
148202020-02-21 Tom de Vries <tdevries@suse.de>
14821
14822 PR gdb/25534
14823 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14824 if dependencies[i]->user != NULL.
14825
4f180d53
AT
148262020-02-21 Ali Tamur <tamur@google.com>
14827
14828 * dwarf2/read.c (dwarf2_name): Add null check.
14829
22b6cd70
TT
148302020-02-20 Tom Tromey <tom@tromey.com>
14831
14832 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14833 ">=", in binary search.
14834 (dwarf2_find_containing_comp_unit): New overload.
14835 (run_test): New self-test.
14836 (_initialize_dwarf2_read): Register new test.
14837
bd0cf5a6
NC
148382020-02-20 Nelson Chu <nelson.chu@sifive.com>
14839
14840 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14841 * riscv-tdep.h: Likewise.
14842 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14843 rv32-only CSR.
14844 * features/riscv/64bit-csr.xml: Regenerated.
14845
3f702acd
SDJ
148462020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14847 Tom Tromey <tom@tromey.com>
14848
14849 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14850 of 'fputc_unfiltered'.
14851 (putchar_unfiltered): Call 'fputc_unfiltered'.
14852 (fputc_unfiltered): Call 'fputs_unfiltered'.
14853
d13c7322
AB
148542020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14855
14856 * config.in: Regenerate.
14857 * configure: Regenerate.
14858 * configure.ac: Add --with-python-libdir option.
14859 * main.c: Use WITH_PYTHON_LIBDIR.
14860
869d8950
TT
148612020-02-19 Tom Tromey <tom@tromey.com>
14862
14863 * symtab.c (general_symbol_info::compute_and_set_names): Use
14864 obstack_strndup. Simplify call to symbol_set_demangled_name.
14865
298e9637
SM
148662020-02-19 Simon Marchi <simon.marchi@efficios.com>
14867
14868 * dwarf2/read.c (allocate_signatured_type_table,
14869 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14870 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14871 Remove objfile parameter, update all callers.
14872
08410482
DE
148732020-02-19 Doug Evans <dje@google.com>
14874
14875 PR rust/25535
14876 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14877 rust_enum_variant calculation.
14878
dfdeeca1
TT
148792020-02-19 Tom Tromey <tromey@adacore.com>
14880
14881 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14882
2ef5453b
TT
148832020-02-19 Tom Tromey <tromey@adacore.com>
14884
14885 * ada-lang.c (cache_symbol): Use obstack_strdup.
14886
9f1528a1
AB
148872020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14888
14889 * configure: Regenerate.
14890
d3c22fa8
TT
148912020-02-19 Tom Tromey <tromey@adacore.com>
14892
14893 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14894 NULL check.
14895
bf84f706
MR
148962020-02-19 Maciej W. Rozycki <macro@wdc.com>
14897
14898 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14899
d1c9b20f
AB
149002020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14901
14902 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14903 if GDBSERVER is not defined.
14904 (riscv_tdesc_cache): Likewise, also store const target_desc.
14905 (STATIC_IN_GDB): Define.
14906 (riscv_create_target_description): Update declaration with
14907 STATIC_IN_GDB.
14908 (riscv_lookup_target_description): New function, only define if
14909 GDBSERVER is not defined.
14910 * arch/riscv.h (riscv_create_target_description): Declare only
14911 when GDBSERVER is defined.
14912 (riscv_lookup_target_description): New declaration when GDBSERVER
14913 is not defined.
14914 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14915 (riscv_linux_read_features): ...this, and return
14916 riscv_gdbarch_features instead of target_desc.
14917 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14918 (riscv_linux_read_description): Rename to...
14919 (riscv_linux_read_features): ...this.
14920 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14921 Update to use riscv_gdbarch_features and
14922 riscv_lookup_target_description.
14923 * riscv-tdep.c (riscv_find_default_target_description): Use
14924 riscv_lookup_target_description instead of
14925 riscv_create_target_description.
14926
373d7ac0
SM
149272020-02-18 Simon Marchi <simon.marchi@efficios.com>
14928
14929 * valprint.c (generic_val_print_enum_1): When printing a flag
14930 enum with value 0 and there is no enumerator with value 0, print
14931 just "0" instead of "(unknown: 0x0)".
14932
b29a2df0
SM
149332020-02-18 Simon Marchi <simon.marchi@efficios.com>
14934
14935 * valprint.c (generic_val_print_enum_1): Print unknown part of
14936 flag enum in hex.
14937
6740f0cc
SM
149382020-02-18 Simon Marchi <simon.marchi@efficios.com>
14939
14940 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14941 flag enums to contain duplicate enumerators.
14942 * valprint.c (generic_val_print_enum_1): Update comment.
14943
edd45eb0
SM
149442020-02-18 Simon Marchi <simon.marchi@efficios.com>
14945
14946 * dwarf2/read.c: Include "count-one-bits.h".
14947 (update_enumeration_type_from_children): If an enumerator has
14948 multiple bits set, don't treat the enumeration as a "flag enum".
14949 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14950 of flag enums have 0 or 1 bit set.
14951
6d0cf446
BE
149522020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14953
14954 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14955 conversion.
14956 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14957 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14958 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14959 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14960 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14961
7001c1b7
SM
149622020-02-18 Simon Marchi <simon.marchi@efficios.com>
14963
14964 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14965
fdb61c6c
SM
149662020-02-14 Simon Marchi <simon.marchi@efficios.com>
14967
14968 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14969 displaced_step_closure_up.
14970 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14971 (struct displaced_step_closure_up):
14972 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14973 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14974 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14975 Likewise.
14976 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14977 * gdbarch.c, gdbarch.h: Re-generate.
14978 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14979 displaced_step_closure_up.
14980 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14981 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14982 * infrun.h (displaced_step_closure_up): New type alias.
14983 (struct displaced_step_inferior_state) <step_closure>: Change
14984 type to displaced_step_closure_up.
14985 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14986 displaced_step_closure_up.
14987 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14988
a4a38eb4
TT
149892020-02-14 Tom Tromey <tom@tromey.com>
14990
14991 * minidebug.c (gnu_debug_key): New global.
14992 (find_separate_debug_file_in_section): Use it.
14993
e8217e61
SM
149942020-02-14 Simon Marchi <simon.marchi@efficios.com>
14995
14996 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14997 std::unique_ptr.
14998 * gdbarch.c: Re-generate.
14999 * gdbarch.h: Re-generate.
15000 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15001 change.
15002 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15003 type to std::unique_ptr.
15004 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15005 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15006 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15007 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15008 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15009 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15010 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15011 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15012 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15013
d8d83535
SM
150142020-02-14 Simon Marchi <simon.marchi@efficios.com>
15015
15016 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15017 std::unique_ptr.
15018 (displaced_step_clear): Rename to...
15019 (displaced_step_reset): ... this. Just call displaced->reset ().
15020 (displaced_step_clear_cleanup): Rename to...
15021 (displaced_step_reset_cleanup): ... this.
15022 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15023 (displaced_step_fixup): Likewise.
15024 (resume_1): Likewise.
15025 (handle_inferior_event): Restore child's memory before calling
15026 displaced_step_fixup on the parent.
15027 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15028 to std::unique_ptr.
15029 <step_closure>: Change type to std::unique_ptr.
15030
5f661e03
SM
150312020-02-14 Simon Marchi <simon.marchi@efficios.com>
15032
15033 * arm-tdep.c: Include count-one-bits.h.
15034 (cleanup_block_store_pc): Use count_one_bits.
15035 (cleanup_block_load_pc): Use count_one_bits.
15036 (arm_copy_block_xfer): Use count_one_bits.
15037 (thumb2_copy_block_xfer): Use count_one_bits.
15038 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15039 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15040 (thumb_get_next_pcs_raw): Use count_one_bits.
15041 (arm_get_next_pcs_raw): Use count_one_bits_l.
15042 * arch/arm.c (bitcount): Remove.
15043 * arch/arm.h (bitcount): Remove.
15044
8084e579
TT
150452020-02-14 Tom Tromey <tromey@adacore.com>
15046
15047 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15048 Update.
15049 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15050 * dwarf2/loc.c (call_site_find_chain_1): Return
15051 unique_xmalloc_ptr.
15052 (call_site_find_chain): Likewise.
15053
258bf0ee
RB
150542020-02-14 Richard Biener <rguenther@suse.de>
15055
15056 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15057 on expression with division operators.
15058
f98a8458
AKS
150592020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15060
15061 * MAINTAINERS (Write After Approval): Adding myself.
15062
d1437c0e
TT
150632020-02-12 Tom Tromey <tom@tromey.com>
15064
15065 * event-loop.c (event_data, gdb_event, event_handler_func):
15066 Remove.
15067
3d4560f7
TT
150682020-02-12 Tom Tromey <tom@tromey.com>
15069
15070 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15071 (dwarf2_frame_objfile_data): Add comment.
15072 (find_comp_unit, set_comp_unit): New functions.
15073 (dwarf2_frame_find_fde): Use find_comp_unit.
15074 (dwarf2_build_frame_info): Use set_comp_unit.
15075
21982304
TT
150762020-02-12 Tom Tromey <tom@tromey.com>
15077
15078 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15079 (comp_unit): Don't initialize objfile.
15080 (execute_cfa_program): Add text_offset parameter.
15081 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15082 (dwarf2_frame_cache): Update.
15083 (dwarf2_build_frame_info): Don't set "objfile" member.
15084
4debb237
TT
150852020-02-12 Tom Tromey <tom@tromey.com>
15086
15087 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15088 (decode_frame_entry): Likewise.
15089 (dwarf2_build_frame_info): Update.
15090
0d404d44
TT
150912020-02-12 Tom Tromey <tom@tromey.com>
15092
15093 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15094 (decode_frame_entry_1): Use the comp_unit obstack.
15095
a7a3ae5c
TT
150962020-02-12 Tom Tromey <tom@tromey.com>
15097
15098 * dwarf2/frame.c (struct comp_unit): Add initializers and
15099 constructor.
15100 (dwarf2_frame_objfile_data): Store a comp_unit.
15101 (dwarf2_frame_find_fde): Update.
15102 (dwarf2_build_frame_info): Use "new".
15103
a9d65418
TT
151042020-02-12 Tom Tromey <tom@tromey.com>
15105
15106 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15107 (dwarf2_fde_table): Typedef for std::vector.
15108 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15109 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15110 (decode_frame_entry): Update.
15111 (dwarf2_build_frame_info): Use "new".
15112
7559c217
CB
151132020-02-12 Christian Biesinger <cbiesinger@google.com>
15114
15115 * arm-tdep.c (arm_gdbarch_init): Update.
15116 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15117 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15118 have_neon, is_m>: Change to bool.
15119
aeefc73c
CB
151202020-02-12 Christian Biesinger <cbiesinger@google.com>
15121
15122 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15123
d27b8e5f
TT
151242020-02-12 Tom Tromey <tom@tromey.com>
15125
15126 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15127
cd5900f3
HD
151282020-02-12 Hannes Domani <ssbssa@yahoo.de>
15129
15130 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15131 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15132
f056b22b
TT
151332020-02-11 Tom Tromey <tom@tromey.com>
15134
15135 * psymtab.h: Update comment.
15136
f92ff6b5
TT
151372020-02-11 Tom Tromey <tom@tromey.com>
15138
15139 * gdb_obstack.h (struct auto_obstack): Use
15140 DISABLE_COPY_AND_ASSIGN.
15141
3fd6912b
TT
151422020-02-11 Tom Tromey <tom@tromey.com>
15143
15144 * dwarf2/frame.h (struct objfile): Don't forward declare.
15145
69ed9b74
CB
151462020-02-11 Christian Biesinger <cbiesinger@google.com>
15147
15148 * cris-tdep.c (cris_supply_gregset): Change signature to match
15149 what struct regset expects.
15150 (cris_regset): New struct.
15151 (fetch_core_registers): Remove.
15152 (cris_iterate_over_regset_sections): New function.
15153 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15154 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15155
bda874f6
CB
151562020-02-11 Christian Biesinger <cbiesinger@google.com>
15157
15158 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15159 registers.
15160
754e1564
CB
151612020-02-11 Christian Biesinger <cbiesinger@google.com>
15162
15163 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15164
8ddd8e0e
SM
151652020-02-11 Simon Marchi <simon.marchi@efficios.com>
15166
15167 * configure: Re-generate.
15168
898e7f60
SM
151692020-02-11 Simon Marchi <simon.marchi@efficios.com>
15170
15171 * configure: Re-generate.
15172
58df732b
SM
151732020-02-11 Simon Marchi <simon.marchi@efficios.com>
15174
15175 * acinclude: Update warning.m4 path.
15176 * warning.m4: Move to gdbsupport.
15177
da5bd37e
TT
151782020-02-11 Tom Tromey <tromey@adacore.com>
15179
15180 * remote.c (remote_console_output): Update.
15181 * printcmd.c (printf_command): Update.
15182 * event-loop.c (gdb_wait_for_event): Update.
15183 * linux-nat.c (sigchld_handler): Update.
15184 * remote-sim.c (gdb_os_write_stdout): Update.
15185 (gdb_os_flush_stdout): Update.
15186 (gdb_os_flush_stderr): Update.
15187 (gdb_os_write_stderr): Update.
15188 * exceptions.c (print_exception): Update.
15189 * remote-fileio.c (remote_fileio_func_read): Update.
15190 (remote_fileio_func_write): Update.
15191 * tui/tui.c (tui_enable): Update.
15192 * tui/tui-interp.c (tui_interp::init): Update.
15193 * utils.c (init_page_info): Update.
15194 (putchar_unfiltered, fputc_unfiltered): Update.
15195 (gdb_flush): Update.
15196 (emit_style_escape): Update.
15197 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15198 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15199 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15200 (stderr_file::write): Update.
15201 (stderr_file::puts): Update.
15202 * ui-file.h (ui_file_isatty, ui_file_write)
15203 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15204 (ui_file_puts): Don't declare.
15205
85f0dd3c
TV
152062020-02-10 Tom de Vries <tdevries@suse.de>
15207
15208 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15209 sentinel to char *.
15210
2e927613
TV
152112020-02-09 Tom de Vries <tdevries@suse.de>
15212
15213 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15214 filename if it matches "<artificial>".
15215
6bafc845
HD
152162020-02-09 Hannes Domani <ssbssa@yahoo.de>
15217
15218 * windows-tdep.c (struct enum_value_name): New struct.
15219 (create_enum): New function.
15220 (windows_get_siginfo_type): Create and use enum types.
15221
7928d571
HD
152222020-02-09 Hannes Domani <ssbssa@yahoo.de>
15223
15224 * NEWS: Mention $_siginfo support for Windows.
15225 * windows-nat.c (handle_exception): Set siginfo_er.
15226 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15227 (windows_xfer_siginfo): New function.
15228 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15229 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15230 (init_windows_gdbarch_data): New function.
15231 (get_windows_gdbarch_data): New function.
15232 (windows_get_siginfo_type): New function.
15233 (windows_init_abi): Register windows_get_siginfo_type.
15234 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15235
6751ebae
TT
152362020-02-08 Tom Tromey <tom@tromey.com>
15237
15238 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15239 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15240 <keep>: Declare method.
15241 <m_keep>: Remove member.
15242 <~cutu_reader>: Remove.
15243 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15244 (cutu_reader::cutu_reader): Update.
15245 (cutu_reader::keep): Rename from ~cutu_reader.
15246 (process_psymtab_comp_unit, build_type_psymtabs_1)
15247 (process_skeletonless_type_unit, load_partial_comp_unit)
15248 (load_full_comp_unit, dwarf2_read_addr_index)
15249 (read_signatured_type): Update.
15250
135f5437
TT
152512020-02-08 Tom Tromey <tom@tromey.com>
15252
15253 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15254 "want_partial_unit" parameter.
15255 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15256 Inline check for DW_TAG_partial_unit.
15257 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15258
9f66ff1c
TT
152592020-02-08 Tom Tromey <tom@tromey.com>
15260
15261 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15262 read.c.
15263 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15264 read.c.
15265
c8a7a66f
TT
152662020-02-08 Tom Tromey <tom@tromey.com>
15267
15268 * dwarf2/read.c (read_address): Move to comp-unit.c.
15269 (dwarf2_rnglists_process, dwarf2_ranges_process)
15270 (read_attribute_value, dwarf_decode_lines_1)
15271 (var_decode_location, decode_locdesc): Update.
15272 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15273 read.c. Remove "cu" parameter.
15274 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15275 method.
15276
8266302d
TT
152772020-02-08 Tom Tromey <tom@tromey.com>
15278
15279 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15280 (read_indirect_line_string): Update.
15281 * dwarf2/comp-unit.c (read_offset): Remove.
15282 (read_comp_unit_head): Update.
15283 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15284 method.
15285 (read_offset): Don't declare.
15286
4057dfde
TT
152872020-02-08 Tom Tromey <tom@tromey.com>
15288
15289 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15290 * dwarf2/read.c (struct comp_unit_head): Move to
15291 dwarf2/comp-unit.h.
15292 (enum class rcuh_kind): Move to comp-unit.h.
15293 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15294 (read_comp_unit_head, error_check_comp_unit_head)
15295 (read_and_check_comp_unit_head): Move to comp-unit.c.
15296 (read_offset, dwarf_unit_type_name): Likewise.
15297 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15298 (cutu_reader::cutu_reader, read_call_site_scope)
15299 (find_partial_die, follow_die_offset): Update.
15300 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15301
24aa364d
TT
153022020-02-08 Tom Tromey <tom@tromey.com>
15303
15304 * dwarf2/read.c (read_offset_1): Move to leb.c.
15305 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15306 (dwarf_decode_macro_bytes): Update.
15307 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15308 * dwarf2/leb.h (read_offset): Declare.
15309
2c7d5afc
TT
153102020-02-08 Tom Tromey <tom@tromey.com>
15311
15312 * dwarf2/read.c (dwarf2_section_size): Remove.
15313 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15314 Update.
15315 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15316
4075cb26
TT
153172020-02-08 Tom Tromey <tom@tromey.com>
15318
15319 * dwarf2/read.c (read_initial_length): Move to leb.c.
15320 * dwarf2/leb.h (read_initial_length): Declare.
15321 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15322 handle_nonstd parameter.
15323 * dwarf2/frame.c (read_initial_length): Remove.
15324 (decode_frame_entry_1): Update.
15325
09ba997f
TT
153262020-02-08 Tom Tromey <tom@tromey.com>
15327
15328 * dwarf2/loc.c (dwarf2_find_location_expression)
15329 (dwarf_evaluate_loc_desc::get_tls_address)
15330 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15331 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15332 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15333 (dwarf2_compile_property_to_c)
15334 (dwarf2_loc_desc_get_symbol_read_needs)
15335 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15336 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15337 (loclist_describe_location, loclist_tracepoint_var_ref)
15338 (loclist_generate_c_location): Update.
15339 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15340 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15341 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15342 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15343 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15344 (dwarf2_per_cu_data::addr_size)
15345 (dwarf2_per_cu_data::ref_addr_size)
15346 (dwarf2_per_cu_data::text_offset)
15347 (dwarf2_per_cu_data::addr_type): Now methods.
15348 (per_cu_header_read_in): Make per_cu "const".
15349 (dwarf2_version): Remove.
15350 (dwarf2_per_cu_data::int_type): Now a method.
15351 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15352 (set_die_type, read_array_type, read_subrange_index_type)
15353 (read_tag_string_type, read_subrange_type): Update.
15354 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15355 offset_size, ref_addr_size, text_offset, addr_type, version,
15356 objfile, int_type, addr_sized_int_type>: Declare methods.
15357
96c738c0
TT
153582020-02-08 Tom Tromey <tom@tromey.com>
15359
15360 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15361 Move earlier.
15362
8fdd972c
TT
153632020-02-08 Tom Tromey <tom@tromey.com>
15364
15365 * dwarf2/read.h (dwarf_line_debug): Declare.
15366 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15367 * dwarf2/read.c: Move line_header code to new files.
15368 (dwarf_line_debug): No longer static.
15369 * dwarf2/line-header.c: New file.
15370 * dwarf2/line-header.h: New file.
15371
03075812
TT
153722020-02-08 Tom Tromey <tom@tromey.com>
15373
15374 * dwarf2/read.c (struct line_header) <file_full_name,
15375 file_file_name>: Return unique_xmalloc_ptr.
15376 (line_header::file_file_name): Update.
15377 (line_header::file_full_name): Update.
15378 (dw2_get_file_names_reader): Update.
15379 (macro_start_file): Update.
15380
bb822404
TT
153812020-02-08 Tom Tromey <tom@tromey.com>
15382
15383 * dwarf2/read.c (struct line_header) <file_full_name,
15384 file_file_name>: Declare methods.
15385 (dw2_get_file_names_reader): Update.
15386 (file_file_name): Now a method.
15387 (file_full_name): Likewise.
15388 (macro_start_file): Update.
15389
009b64fc
TT
153902020-02-08 Tom Tromey <tom@tromey.com>
15391
15392 * dwarf2/read.c (dwarf_always_disassemble)
15393 (show_dwarf_always_disassemble): Move to loc.c.
15394 (_initialize_dwarf2_read): Move "always-disassemble" registration
15395 to loc.c.
15396 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15397 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15398 static.
15399 (show_dwarf_always_disassemble): Move from read.c.
15400 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15401
5895093f
TT
154022020-02-08 Tom Tromey <tom@tromey.com>
15403
15404 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15405 (create_quick_file_names_table): Return htab_up.
15406 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15407 Update.
15408 * dwarf2/read.h (struct dwarf2_per_objfile)
15409 <quick_file_names_table>: Now htab_up.
15410
b3b32279
TT
154112020-02-08 Tom Tromey <tom@tromey.com>
15412
15413 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15414
1d33d811
TT
154152020-02-08 Tom Tromey <tom@tromey.com>
15416
15417 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15418 Rewrite.
15419 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15420 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15421 (abbrev_table::abbrev_table): No longer inline.
15422 (ABBREV_HASH_SIZE): Remove.
15423 (abbrev_table::m_abbrevs): Now an htab_up.
15424
86de1d91
TT
154252020-02-08 Tom Tromey <tom@tromey.com>
15426
15427 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15428 (cutu_reader): Update.
15429 (build_type_psymtabs_1): Update.
15430 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15431 (abbrev_table::alloc_abbrev): Update.
15432 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15433 (abbrev_table::read): New static method, renamed from
15434 abbrev_table_read_table.
15435 (abbrev_table::alloc_abbrev)
15436 (abbrev_table::add_abbrev): Now private.
15437 (abbrev_table::abbrev_table): Now private.
15438 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15439
0335378b
TT
154402020-02-08 Tom Tromey <tom@tromey.com>
15441
15442 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15443 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15444 htab_up.
15445
48b490f2
TT
154462020-02-08 Tom Tromey <tom@tromey.com>
15447
15448 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15449 htab_up.
15450 (lookup_dwo_unit_in_dwp): Update.
15451 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15452 on obstack.
15453
bc68fb19
TT
154542020-02-08 Tom Tromey <tom@tromey.com>
15455
15456 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15457 obstack.
15458
d15acc42
TT
154592020-02-08 Tom Tromey <tom@tromey.com>
15460
15461 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15462 line_header_hash.
15463 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15464 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15465 Change type to htab_up.
15466
eaa5fa8b
TT
154672020-02-08 Tom Tromey <tom@tromey.com>
15468
15469 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15470 htab_up. Don't allocate on obstack.
15471 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15472 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15473 Change type to htab_up.
15474
b0b6a987
TT
154752020-02-08 Tom Tromey <tom@tromey.com>
15476
15477 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15478 Change type to htab_up.
15479 * dwarf2/read.c (create_signatured_type_table_from_index)
15480 (create_signatured_type_table_from_debug_names)
15481 (create_all_type_units, add_type_unit)
15482 (lookup_dwo_signatured_type, lookup_signatured_type)
15483 (process_skeletonless_type_unit): Update.
15484 (create_debug_type_hash_table, create_debug_types_hash_table):
15485 Change type of types_htab.
15486 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15487 htab_up. Don't allocate on obstack.
15488 (create_cus_hash_table): Change type of cus_htab parameter.
15489 (struct dwo_file) <cus, tus>: Now htab_up.
15490 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15491 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15492 (queue_and_load_all_dwo_tus): Update.
15493 * dwarf2/index-write.c (write_gdbindex): Update.
15494 (write_debug_names): Update.
15495
39856def
TT
154962020-02-08 Tom Tromey <tom@tromey.com>
15497
15498 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15499 dwarf2/read.c. Remove "next" member. Add constructor ntad
15500 destructor.
15501 (struct dwarf2_per_objfile) <queue>: New member.
15502 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15503 dwarf2/read.h.
15504 (dwarf2_queue, dwarf2_queue_tail): Remove.
15505 (class dwarf2_queue_guard): Add parameter to constructor. Use
15506 DISABLE_COPY_AND_ASSIGN.
15507 <m_per_objfile>: New member.
15508 <~dwarf2_queue_guard>: Rewrite.
15509 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15510 Update.
15511 (~dwarf2_queue_item): New.
15512
3e225074
TT
155132020-02-08 Tom Tromey <tom@tromey.com>
15514
15515 * dwarf2/read.c (struct die_info) <has_children>: New member.
15516 (dw2_get_file_names_reader): Remove has_children.
15517 (dw2_get_file_names): Update.
15518 (read_cutu_die_from_dwo): Remove has_children.
15519 (cutu_reader::init_tu_and_read_dwo_dies)
15520 (cutu_reader::cutu_reader): Update.
15521 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15522 Remove has_children.
15523 (build_type_psymtabs_1, process_skeletonless_type_unit)
15524 (load_partial_comp_unit, load_full_comp_unit): Update.
15525 (create_dwo_cu_reader): Remove has_children.
15526 (create_cus_hash_table, read_die_and_children): Update.
15527 (read_full_die_1,read_full_die): Remove has_children.
15528 (read_signatured_type): Update.
15529 (class cutu_reader) <has_children>: Remove.
15530
82ca8957
TT
155312020-02-08 Tom Tromey <tom@tromey.com>
15532
15533 * dwarf2/expr.c: Rename from dwarf2expr.c.
15534 * dwarf2/expr.h: Rename from dwarf2expr.h.
15535 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15536 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15537 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15538 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15539 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15540 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15541 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15542 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15543 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15544 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15545 * dwarf2/loc.c: Rename from dwarf2loc.c.
15546 * dwarf2/loc.h: Rename from dwarf2loc.h.
15547 * dwarf2/read.c: Rename from dwarf2read.c.
15548 * dwarf2/read.h: Rename from dwarf2read.h.
15549 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15550 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15551 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15552 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15553 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15554 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15555 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15556 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15557 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15558 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15559 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15560 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15561 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15562 Update.
15563 * Makefile.in (COMMON_SFILES): Update.
15564 (HFILES_NO_SRCDIR): Update.
15565
9e35d499
TT
155662020-02-08 Tom Tromey <tom@tromey.com>
15567
15568 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15569 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15570
1eba2311
TT
155712020-02-08 Tom Tromey <tom@tromey.com>
15572
15573 * dwarf2read.h (struct die_info): Don't declare.
15574
e41c2da2
TT
155752020-02-08 Tom Tromey <tom@tromey.com>
15576
15577 * dwarf2read.h (die_info_ptr): Remove typedef.
15578
4fc6c0d5
TT
155792020-02-08 Tom Tromey <tom@tromey.com>
15580
15581 * dwarf2read.c (read_call_site_scope)
15582 (handle_data_member_location, dwarf2_add_member_fn)
15583 (mark_common_block_symbol_computed, read_common_block)
15584 (attr_to_dynamic_prop, partial_die_info::read)
15585 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15586 (dwarf2_symbol_mark_computed, set_die_type): Update.
15587 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15588 method.
15589 (attr_form_is_block): Don't declare.
15590 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15591
cd6c91b4
TT
155922020-02-08 Tom Tromey <tom@tromey.com>
15593
15594 * dwarf2read.c (dwarf2_find_base_address, )
15595 (read_call_site_scope, rust_containing_type)
15596 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15597 (handle_data_member_location, dwarf2_add_member_fn)
15598 (get_alignment, read_structure_type, process_structure_scope)
15599 (mark_common_block_symbol_computed, read_common_block)
15600 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15601 (partial_die_info::read, read_attribute_value, new_symbol)
15602 (lookup_die_type, dwarf2_get_ref_die_offset)
15603 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15604 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15605 (dwarf2_symbol_mark_computed): Update.
15606 * dwarf2/attribute.h (struct attribute) <value_as_address,
15607 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15608 methods.
15609 (value_as_address, attr_form_is_section_offset)
15610 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15611 * dwarf2/attribute.c (attribute::value_as_address)
15612 (attribute::form_is_section_offset, attribute::form_is_constant)
15613 (attribute::form_is_ref): Now methods.
15614
162dce55
TT
156152020-02-08 Tom Tromey <tom@tromey.com>
15616
15617 * dwarf2read.c (struct attribute, DW_STRING)
15618 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15619 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15620 (attr_form_is_block, attr_form_is_section_offset)
15621 (attr_form_is_constant, attr_form_is_ref): Move.
15622 * dwarf2/attribute.h: New file.
15623 * dwarf2/attribute.c: New file, from dwarf2read.c.
15624 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15625
3054dd54
TT
156262020-02-08 Tom Tromey <tom@tromey.com>
15627
15628 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15629 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15630 Move.
15631 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15632 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15633 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15634 abbrev.c.
15635 * dwarf2/abbrev.h: New file.
15636 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15637 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15638
96b79293
TT
156392020-02-08 Tom Tromey <tom@tromey.com>
15640
15641 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15642 (dwarf2_section_size, dwarf2_get_section_info)
15643 (create_signatured_type_table_from_debug_names)
15644 (create_addrmap_from_aranges, read_debug_names_from_section)
15645 (get_gdb_index_contents_from_section, read_comp_unit_head)
15646 (error_check_comp_unit_head, read_abbrev_offset)
15647 (create_debug_type_hash_table, init_cu_die_reader)
15648 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15649 (read_comp_units_from_section, create_cus_hash_table)
15650 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15651 (create_dwp_v2_section, dwarf2_rnglists_process)
15652 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15653 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15654 (read_indirect_string_from_dwz, read_addr_index_1)
15655 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15656 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15657 (fill_in_loclist_baton): Update.
15658 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15659 get_containing_section, get_bfd_owner, get_bfd_section,
15660 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15661 (dwarf2_read_section, get_section_name, get_section_file_name)
15662 (get_containing_section, get_section_bfd_owner)
15663 (get_section_bfd_section, get_section_name, get_section_file_name)
15664 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15665 declare.
15666 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15667 (dwarf2_section_info::get_bfd_owner)
15668 (dwarf2_section_info::get_bfd_section)
15669 (dwarf2_section_info::get_name)
15670 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15671 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15672 (dwarf2_section_info::read): Now methods.
15673 * dwarf-index-write.c (class debug_names): Update.
15674
2c86cff9
TT
156752020-02-08 Tom Tromey <tom@tromey.com>
15676
15677 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15678 Move to dwarf2/section.h.
15679 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15680 (get_section_bfd_section, get_section_name)
15681 (get_section_file_name, get_section_id, get_section_flags)
15682 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15683 dwarf2/section.c.
15684 * dwarf2/section.h: New file.
15685 * dwarf2/section.c: New file, from dwarf2read.c.
15686 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15687
f4382c45
TT
156882020-02-08 Tom Tromey <tom@tromey.com>
15689
15690 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15691 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15692 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15693 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15694 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15695 * dwarf2/leb.h: New file, from dwarf2read.c.
15696 * dwarf2/leb.c: New file, from dwarf2read.c.
15697 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15698 Remove.
15699 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15700 (COMMON_SFILES): Add dwarf2/leb.c.
15701
01840b7a
JB
157022020-02-08 Joel Brobecker <brobecker@adacore.com>
15703
15704 GDB 9.1 released.
15705
dfcb27e4
IB
157062020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15707
15708 PR gdb/25190:
aac66a4c
SM
15709 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15710 * gdb/remote.c (remote_console_output): Update.
15711 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15712 (ui_file_puts): ...this.
15713 * gdb/ui-file.h (ui_file_puts): Add declaration.
15714 * gdb/utils.c (emit_style_escape): Update.
15715 (flush_wrap_buffer): Update.
15716 (fputs_maybe_filtered): Update.
15717 (fputs_unfiltered): Add function.
dfcb27e4 15718
faa17681
IB
157192020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15720
aac66a4c
SM
15721 * gdb/event-loop.c (gdb_wait_for_event): Update.
15722 * gdb/printcmd.c (printf_command): Update.
15723 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15724 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15725 (gdb_os_flush_stderr): Update.
15726 * gdb/remote.c (remote_console_output): Update.
15727 * gdb/ui-file.c (gdb_flush): Rename to...
15728 (ui_file_flush): ...this.
15729 (stderr_file::write): Update.
15730 (stderr_file::puts): Update.
15731 * gdb/ui-file.h (gdb_flush): Rename to...
15732 (ui_file_flush): ...this.
15733 * gdb/utils.c (gdb_flush): Add function.
15734 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15735
5abbbe1d
TT
157362020-02-07 Tom Tromey <tromey@adacore.com>
15737
15738 PR breakpoints/24915:
15739 * source.c (find_and_open_source): Do not check basenames_may_differ.
15740
919adfe8
TT
157412020-02-07 Tom Tromey <tom@tromey.com>
15742
15743 * README: Update gdbserver documentation.
15744 * gdbserver: Move to top level.
15745 * configure.tgt (build_gdbserver): Remove.
15746 * configure.ac: Remove --enable-gdbserver.
15747 * configure: Rebuild.
15748 * Makefile.in (distclean): Don't mention gdbserver.
15749
1d5d29e7
SV
157502020-02-06 Shahab Vahedi <shahab@synopsys.com>
15751
15752 * source-cache.c (source_cache::ensure): Surround
15753 get_plain_source_lines with a try/catch.
15754 (source_cache::get_line_charpos): Get rid of try/catch
15755 and only check for the return value of "ensure".
15756 * tui/tui-source.c (tui_source_window::set_contents):
15757 Simplify "nlines" calculation.
15758
6eb1129c
SV
157592020-02-06 Shahab Vahedi <shahab@synopsys.com>
15760
15761 * MAINTAINERS (Write After Approval): Add myself.
15762
c6a42d11
CB
157632020-02-05 Christian Biesinger <cbiesinger@google.com>
15764
15765 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15766 function call.
15767
c8ecdda6
CB
157682020-02-05 Christian Biesinger <cbiesinger@google.com>
15769
15770 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15771
f6480e70
MR
157722020-02-05 Maciej W. Rozycki <macro@wdc.com>
15773
15774 * nat/riscv-linux-tdesc.h: New file.
15775 * nat/riscv-linux-tdesc.c: New file, taking code from...
15776 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15777 ... here.
15778 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15779 NATDEPFILES.
15780
dcc9fbc6
AB
157812020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15782
15783 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15784 we don't set the fake simulator ptid to the null_ptid.
15785
719546c4
SM
157862020-02-03 Simon Marchi <simon.marchi@efficios.com>
15787
15788 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15789 * gdbthread.h (class thread_info) <resumed>: Likewise.
15790 * infrun.c (resume_1): Likewise.
15791 (proceed): Likewise.
15792 (infrun_thread_stop_requested): Likewise.
15793 (stop_all_threads): Likewise.
15794 (handle_inferior_event): Likewise.
15795 (restart_threads): Likewise.
15796 (finish_step_over): Likewise.
15797 (keep_going_stepped_thread): Likewise.
15798 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15799 (linux_handle_extended_wait): Likewise.
15800 * record-btrace.c (get_thread_current_frame_id): Likewise.
15801 * record-full.c (record_full_wait_1): Likewise.
15802 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15803 * target.c (target_resume): Likewise.
15804 * thread.c (set_running_thread): Likewise.
15805
e409c542
AKS
158062020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15807
15808 * f-valprint.c (f77_print_array_1): Changed datatype of index
15809 variable to LONGEST from int to enable it to contain bound
15810 values correctly.
15811
ee98c0da
MR
158122020-02-03 Maciej W. Rozycki <macro@wdc.com>
15813
15814 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15815 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15816 offsets according to FLEN determined.
15817 (riscv_linux_nat_target::read_description): Determine FLEN
15818 dynamically.
15819 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15820 according to FLEN determined.
15821 (riscv_linux_nat_target::store_registers): Likewise.
15822
aa66aac4
SV
158232020-02-01 Shahab Vahedi <shahab@synopsys.com>
15824
15825 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15826 when reg->group is empty and reggroup is not.
15827
fd9faca8
TT
158282020-01-31 Tom Tromey <tromey@adacore.com>
15829
15830 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15831 Call beneath target's mourn_inferior after unpushing.
15832
42330a68
AB
158332020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15834
15835 PR tui/9765
15836 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15837 have enough lines to fill the screen, still return the lowest
15838 address we found.
15839
7a27a45b
AB
158402020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15841
15842 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15843 '-', '<', and '>' commands.
15844
c47f70e2
PA
158452020-01-29 Pedro Alves <palves@redhat.com>
15846 Sergio Durigan Junior <sergiodj@redhat.com>
15847
15848 * infcmd.c (construct_inferior_arguments): Assert that
15849 'argc' is greater than 0.
15850
5133a315
LM
158512020-01-29 Luis Machado <luis.machado@linaro.org>
15852
15853 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15854 (BRK_INSN_MASK): Define to 0xd4200000.
15855 (aarch64_program_breakpoint_here_p): New function.
15856 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15857 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15858 breakpoint.c.
15859 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15860 breakpoint.h
15861 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15862 call gdbarch_program_breakpoint_here_p.
15863 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15864 default_program_breakpoint_here_p, changed return type to bool and
15865 simplified.
15866 * breakpoint.h (program_breakpoint_here): Moved prototype to
15867 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15868 return type to bool.
15869 * gdbarch.c: Regenerate.
15870 * gdbarch.h: Regenerate.
15871 * gdbarch.sh (program_breakpoint_here_p): New method.
15872 * infrun.c (handle_signal_stop): Call
15873 gdbarch_program_breakpoint_here_p.
15874
168f8c6b
TT
158752020-01-26 Tom Tromey <tom@tromey.com>
15876
15877 * ctfread.c (struct ctf_fp_info): Reindent.
15878 (_initialize_ctfread): Remove.
15879
128a391f
TT
158802020-01-26 Tom Tromey <tom@tromey.com>
15881
15882 * psymtab.c (partial_map_expand_apply)
15883 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15884 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15885 (psym_print_stats, psym_expand_symtabs_for_function)
15886 (psym_map_symbol_filenames, psym_map_matching_symbols)
15887 (psym_expand_symtabs_matching)
15888 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15889 (maintenance_check_psymtabs): Use new methods.
15890 * psympriv.h (struct partial_symtab) <readin_p,
15891 get_compunit_symtab>: New methods.
15892 <readin, compunit_symtab>: Remove members.
15893 (struct standard_psymtab): New.
15894 (struct legacy_psymtab): Derive from standard_psymtab.
15895 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15896 standard_psymtab.
15897 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15898
0494dbec
TT
158992020-01-26 Tom Tromey <tom@tromey.com>
15900
15901 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15902 read_dependencies. Add assert.
15903 * psymtab.c (partial_symtab::read_dependencies): New method.
15904 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15905 method.
15906 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15907 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15908 read_dependencies.
15909 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15910 Add assert.
15911
8566b89b
TT
159122020-01-26 Tom Tromey <tom@tromey.com>
15913
15914 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15915 Call expand_psymtab.
15916 (xcoff_read_symtab): Call expand_psymtab.
15917 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15918 legacy_expand_psymtab.
15919 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15920 method.
15921 (struct legacy_psymtab) <expand_psymtab>: Implement.
15922 <legacy_expand_psymtab>: New member.
15923 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15924 (parse_partial_symbols): Set legacy_expand_psymtab.
15925 (psymtab_to_symtab_1): Change argument order. Call
15926 expand_psymtab.
15927 (new_psymtab): Set legacy_expand_psymtab.
15928 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15929 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15930 expand_psymtab.
15931 (dwarf2_psymtab::expand_psymtab): Rename from
15932 psymtab_to_symtab_1. Call expand_psymtab.
15933 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15934 (dbx_end_psymtab): Likewise.
15935 (dbx_psymtab_to_symtab_1): Change argument order. Call
15936 expand_psymtab.
15937 (dbx_read_symtab): Call expand_psymtab.
15938 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15939 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15940 (ctf_psymtab::read_symtab): Call expand_psymtab.
15941
077cbab2
TT
159422020-01-26 Tom Tromey <tom@tromey.com>
15943
15944 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15945 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15946 messages.
15947 * mdebugread.c (mdebug_read_symtab): Remove prints.
15948 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15949 assert.
15950 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15951
891813be
TT
159522020-01-26 Tom Tromey <tom@tromey.com>
15953
15954 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15955 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15956 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15957 legacy_symtab.
15958 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15959 * psymtab.c (psymtab_to_symtab): Call method.
15960 (dump_psymtab): Update.
15961 * psympriv.h (struct partial_symtab): Add virtual destructor.
15962 <read_symtab>: New method.
15963 (struct legacy_symtab): New.
15964 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15965 (struct pst_map) <pst>: Now a legacy_psymtab.
15966 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15967 (new_psymtab): Use legacy_psymtab.
15968 * dwarf2read.h (struct dwarf2_psymtab): New.
15969 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15970 * dwarf2read.c (dwarf2_create_include_psymtab)
15971 (dwarf2_build_include_psymtabs, create_type_unit_group)
15972 (create_partial_symtab, process_psymtab_comp_unit_reader)
15973 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15974 (set_partial_user): Use dwarf2_psymtab.
15975 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15976 (psymtab_to_symtab_1, process_full_comp_unit)
15977 (process_full_type_unit, dwarf2_ranges_read)
15978 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15979 (dwarf_decode_lines): Use dwarf2_psymtab.
15980 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15981 (add_address_entry_worker, write_one_signatured_type)
15982 (recursively_count_psymbols, recursively_write_psymbols)
15983 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15984 (write_debug_names): Likewise.
15985 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15986 <pst>: Now a legacy_psymtab.
15987 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15988 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15989 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15990 * ctfread.c (struct ctf_psymtab): New.
15991 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15992 ctf_psymtab.
15993 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15994 (create_partial_symtab): Return a ctf_psymtab.
15995 (scan_partial_symbols): Update.
15996
c3693a1d
TT
159972020-01-26 Tom Tromey <tom@tromey.com>
15998
15999 * xcoffread.c (xcoff_start_psymtab): Use new.
16000 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16001 renamed from start_psymtab_common.
16002 * psympriv.h (struct partial_symtab): Add new constructor.
16003 (start_psymtab_common): Don't declare.
16004 * mdebugread.c (parse_partial_symbols): Use new.
16005 * dwarf2read.c (create_partial_symtab): Use new.
16006 * dbxread.c (start_psymtab): Use new.
16007 * ctfread.c (create_partial_symtab): Use new.
16008
32caafd0
TT
160092020-01-26 Tom Tromey <tom@tromey.com>
16010
16011 * xcoffread.c (xcoff_end_psymtab): Use new.
16012 * psymtab.c (start_psymtab_common): Use new.
16013 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16014 Update.
16015 * psympriv.h (struct partial_symtab): Add parameters to
16016 constructor. Don't inline.
16017 (allocate_psymtab): Don't declare.
16018 * mdebugread.c (new_psymtab): Use new.
16019 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16020 * dbxread.c (dbx_end_psymtab): Use new.
16021
abaa2f23
TT
160222020-01-26 Tom Tromey <tom@tromey.com>
16023
16024 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16025 allocate_psymtab. Update documentation.
16026 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16027 allocate_psymtab. Do not use new.
16028 (allocate_psymtab): Use new. Update.
16029
6d94535f
TT
160302020-01-26 Tom Tromey <tom@tromey.com>
16031
16032 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16033 * psymtab.c (psym_print_stats): Update.
16034 * psympriv.h (struct partial_symtab) <readin,
16035 psymtabs_addrmap_supported, anonymous>: Now bool.
16036 * mdebugread.c (psymtab_to_symtab_1): Update.
16037 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16038 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16039 (process_full_comp_unit, process_full_type_unit): Update.
16040 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16041 * ctfread.c (psymtab_to_symtab): Update.
16042
6f17252b
TT
160432020-01-26 Tom Tromey <tom@tromey.com>
16044
16045 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16046 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16047 * psymtab.c (psymtab_storage): Delete psymtabs.
16048 (psymtab_storage::allocate_psymtab): Use new.
16049 (psymtab_storage::discard_psymtab): Use delete.
16050 * psympriv.h (struct partial_symtab): Add constructor and
16051 initializers.
16052
f6f1cebc
TT
160532020-01-26 Tom Tromey <tom@tromey.com>
16054
16055 * machoread.c: Do not include psympriv.h.
16056
e47e48f6
PW
160572020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16058
16059 * NEWS: Mention the new option and the set/show commands.
16060
a2fedca9
PW
160612020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16062
16063 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16064 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16065 (validate_exec_file): New variables, enums, functions.
16066 (exec_file_locate_attach, print_section_info): Style the filenames.
16067 (_initialize_exec): Install show_exec_file_mismatch_command and
16068 set_exec_file_mismatch_command.
16069 * gdbcore.h (validate_exec_file): Declare.
16070 * infcmd.c (attach_command): Call validate_exec_file.
16071 * remote.c ( remote_target::remote_add_inferior): Likewise.
16072
7ffa82e1
AB
160732020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16074
16075 * frame.c (find_frame_sal): Move call to get_next_frame into more
16076 inner scope.
16077 * inline-frame.c (inilne_state) <inline_state>: Update argument
16078 types.
16079 (inilne_state) <skipped_symbol>: Rename to...
16080 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16081 (skip_inline_frames): Build vector of skipped symbols and use this
16082 to reate the inline_state.
16083 (inline_skipped_symbol): Add a comment and some assertions, fetch
16084 skipped symbol from the list.
16085
3d92a3e3
AB
160862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16087
16088 * buildsym.c (lte_is_less_than): Delete.
16089 (buildsym_compunit::end_symtab_with_blockvector): Create local
16090 lambda function to sort line table entries, and use
16091 std::stable_sort instead of std::sort.
16092 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16093 markers when looking for a previous line.
16094
94a72be7
AB
160952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16096
16097 * dwarf2read.c (lnp_state_machine::record_line): Include
16098 end_sequence parameter in debug print out. Record the line if we
16099 are at an end_sequence marker even if it's not the start of a
16100 statement.
16101 * symmisc.c (maintenance_print_one_line_table): Print end of
16102 sequence markers with 'END' not '0'.
16103
53af73bf
PA
161042020-01-24 Pedro Alves <palves@redhat.com>
16105
16106 PR gdb/25410
16107 * thread.c (scoped_restore_current_thread::restore): Use
16108 switch_to_inferior_no_thread.
16109 * exec.c: Include "progspace-and-thread.h".
16110 (add_target_sections, remove_target_sections):
16111 scoped_restore_current_pspace_and_thread instead of
16112 scoped_restore_current_thread.
16113 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16114 and aspace to the inferior before calling clone_program_space.
16115 Remove stale comment.
16116
3050c6f4
CB
161172020-01-24 Christian Biesinger <cbiesinger@google.com>
16118
16119 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16120 (arm_netbsd_nat_target::fetch_registers): ...this.
16121 (arm_nbsd_nat_target::store_registers): Rename to...
16122 (arm_netbsd_nat_target::store_registers): ...this.
16123
73685c7e
CB
161242020-01-24 Christian Biesinger <cbiesinger@google.com>
16125
16126 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16127 register_t.
16128
89203d40
CB
161292020-01-24 Christian Biesinger <cbiesinger@google.com>
16130
16131 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16132 Update comment.
16133 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16134 Likewise.
16135 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16136 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16137 the correct replacement (iterate_over_regset_sections).
16138 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16139 Update comment.
16140
1ba1ac88
AB
161412020-01-24 Graham Markall <graham.markall@embecosm.com>
16142
16143 PR gdb/23718
16144 * gdb/python/python.c (execute_gdb_command): Call
16145 async_enable_stdin in catch block.
16146
f3364a6d
AB
161472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16148
16149 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16150 SWITCH_THRU_ALL_UIS.
16151
733d0a67
AB
161522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16153
16154 PR tui/9765
16155 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16156 comment, add extra parameter, and update to store previous symbol
16157 when appropriate.
16158 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16159 add extra parameter.
16160 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16161 remove unneeded parameter, add try/catch around gdb_print_insn,
16162 rewrite to add items to asm_lines vector.
16163 (tui_find_backward_disassembly_start_address): New function.
16164 (tui_find_disassembly_address): Updated throughout.
16165 (tui_disasm_window::set_contents): Update for changes to
16166 tui_disassemble.
16167 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16168 number of lines to scroll.
16169
b3b3bada
SM
161702020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16171
16172 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16173 (SECT_OFF_DATA): Likewise.
16174 (SECT_OFF_RODATA): Likewise.
16175 (SECT_OFF_TEXT): Likewise.
16176 (SECT_OFF_BSS): Likewise.
16177 (struct objfile) <text_section_offset, data_section_offset>: New
16178 methods.
16179 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16180 objfile::text_section_offset.
16181 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16182 * coffread.c (coff_symtab_read): Likewise.
16183 (enter_linenos): Likewise.
16184 (process_coff_symbol): Likewise.
16185 * ctfread.c (get_objfile_text_range): Likewise.
16186 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16187 Use objfile::data_section_offset.
16188 * dwarf2-frame.c (execute_cfa_program): Use
16189 objfile::text_section_offset.
16190 (dwarf2_frame_find_fde): Likewise.
16191 * dwarf2read.c (create_addrmap_from_index): Likewise.
16192 (create_addrmap_from_aranges): Likewise.
16193 (dw2_find_pc_sect_compunit_symtab): Likewise.
16194 (process_psymtab_comp_unit_reader): Likewise.
16195 (add_partial_symbol): Likewise.
16196 (add_partial_subprogram): Likewise.
16197 (process_full_comp_unit): Likewise.
16198 (read_file_scope): Likewise.
16199 (read_func_scope): Likewise.
16200 (read_lexical_block_scope): Likewise.
16201 (read_call_site_scope): Likewise.
16202 (dwarf2_rnglists_process): Likewise.
16203 (dwarf2_ranges_process): Likewise.
16204 (dwarf2_ranges_read): Likewise.
16205 (dwarf_decode_lines_1): Likewise.
16206 (new_symbol): Likewise.
16207 (dwarf2_fetch_die_loc_sect_off): Likewise.
16208 (dwarf2_per_cu_text_offset): Likewise.
16209 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16210 * hppa-tdep.c (read_unwind_info): Likewise.
16211 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16212 * psympriv.h (struct partial_symtab): Likewise.
16213 * psymtab.c (find_pc_sect_psymtab): Likewise.
16214 * solib-svr4.c (enable_break): Likewise.
16215 * stap-probe.c (relocate_address): Use
16216 objfile::data_section_offset.
16217 * xcoffread.c (enter_line_range): Use
16218 objfile::text_section_offset.
16219 (read_xcoff_symtab): Likewise.
16220
ab53f382
SM
162212020-01-23 Simon Marchi <simon.marchi@efficios.com>
16222
16223 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16224 declaration to narrower scopes.
16225
e7eee665
SM
162262020-01-23 Simon Marchi <simon.marchi@efficios.com>
16227
16228 * darwin-nat.h (struct darwin_exception_msg, enum
16229 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16230 Move up.
16231 (class darwin_nat_target) <wait_1, check_new_threads,
16232 decode_exception_message, decode_message, stop_inferior,
16233 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16234 * darwin-nat.c (darwin_check_new_threads): Rename to...
16235 (darwin_nat_target::check_new_threads): ... this.
16236 (darwin_suspend_inferior_it): Remove.
16237 (darwin_decode_exception_message): Rename to...
16238 (darwin_nat_target::decode_exception_message): ... this.
16239 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16240 (darwin_decode_message): Rename to...
16241 (darwin_nat_target::decode_message): ... this.
16242 (cancel_breakpoint): Rename to...
16243 (darwin_nat_target::cancel_breakpoint): ... this.
16244 (darwin_wait): Rename to...
16245 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16246 instead of iterate_over_inferiors.
16247 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16248 (darwin_stop_inferior): Rename to...
16249 (darwin_nat_target::stop_inferior): ... this.
16250 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16251 (darwin_init_thread_list): Rename to...
16252 (darwin_nat_target::init_thread_list): ... this.
16253 (darwin_ptrace_him): Rename to...
16254 (darwin_nat_target::ptrace_him): ... this.
16255 (darwin_nat_target::create_inferior): Pass lambda function to
16256 fork_inferior.
16257 (darwin_nat_target::detach): Call stop_inferior instead of
16258 darwin_stop_inferior.
16259 * fork-inferior.h (fork_inferior): Change init_trace_fun
16260 parameter to gdb::function_view.
16261 * fork-inferior.c (fork_inferior): Likewise.
16262
c162ed3e
HD
162632020-01-23 Hannes Domani <ssbssa@yahoo.de>
16264
16265 * i386-cygwin-tdep.c (core_process_module_section): Update.
16266 * windows-nat.c (struct lm_info_windows): Add text_offset.
16267 (windows_xfer_shared_libraries): Update.
16268 * windows-tdep.c (windows_xfer_shared_library):
16269 Add text_offset_cached argument.
16270 * windows-tdep.h (windows_xfer_shared_library): Update.
16271
a1237872
SM
162722020-01-21 Simon Marchi <simon.marchi@efficios.com>
16273
16274 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16275
b3ee6dd9
SM
162762020-01-21 Simon Marchi <simon.marchi@efficios.com>
16277
16278 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16279 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16280 replace with range-based for.
16281 (gdbsim_interrupt_inferior): Remove.
16282 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16283 with a range-based for. Inline code from
16284 gdbsim_interrupt_inferior.
16285
f9fac3c8
SM
162862020-01-21 Simon Marchi <simon.marchi@efficios.com>
16287
16288 * infrun.c (proceed): Fix indentation.
16289
f6474de9
TT
162902020-01-21 Tom Tromey <tromey@adacore.com>
16291
16292 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16293 * python/python.c (python_extension_ops): Update.
16294 (gdbpy_colorize): New function.
16295 * python/lib/gdb/__init__.py (colorize): New function.
16296 * extension.h (ext_lang_colorize): Declare.
16297 * extension.c (ext_lang_colorize): New function.
16298 * extension-priv.h (struct extension_language_ops) <colorize>: New
16299 member.
16300 * cli/cli-style.c (_initialize_cli_style): Update help text.
16301
f0c702d4
LM
163022020-01-21 Luis Machado <luis.machado@linaro.org>
16303
16304 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16305 <cond>: Change type to bool.
16306 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16307 (aarch64_displaced_step_cb): Likewise.
16308 (aarch64_displaced_step_tb): Likewise.
16309
1ab139e5
LM
163102020-01-21 Luis Machado <luis.machado@linaro.org>
16311
16312 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16313 output.
16314
0c271889
LM
163152020-01-21 Luis Machado <luis.machado@linaro.org>
16316
16317 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16318 <pc_adjust>: Adjust the documentation.
16319 (aarch64_displaced_step_fixup): Check if PC really moved before
16320 adjusting it.
16321
4d89c1c7
TT
163222020-01-19 Tom Tromey <tom@tromey.com>
16323
16324 * disasm.c (~gdb_disassembler): New destructor.
16325 (gdb_buffered_insn_length): Call disassemble_free_target.
16326 * disasm.h (class gdb_disassembler): Declare destructor. Use
16327 DISABLE_COPY_AND_ASSIGN.
16328
c0ab21c2
TT
163292020-01-19 Tom Tromey <tom@tromey.com>
16330
16331 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16332 (die_reader_func_ftype): Remove.
16333 (cutu_reader): New class.
16334 (dw2_get_file_names_reader): Remove "data" parameter.
16335 (dw2_get_file_names): Use cutu_reader.
16336 (create_debug_type_hash_table): Update.
16337 (read_cutu_die_from_dwo): Update comment.
16338 (lookup_dwo_unit): Add dwo_name parameter.
16339 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16340 die_reader_func_ftype and data parameters.
16341 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16342 Remove die_reader_func_ftype and data parameters.
16343 (~cutu_reader): New; from init_cutu_and_read_dies.
16344 (cutu_reader::cutu_reader): Rename from
16345 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16346 and data parameters.
16347 (init_cutu_and_read_dies_simple): Remove.
16348 (struct process_psymtab_comp_unit_data): Remove.
16349 (process_psymtab_comp_unit_reader): Remove data parameter; add
16350 want_partial_unit and pretend_language parameters.
16351 (process_psymtab_comp_unit): Use cutu_reader.
16352 (build_type_psymtabs_reader): Remove data parameter.
16353 (build_type_psymtabs_1): Use cutu_reader.
16354 (process_skeletonless_type_unit): Likewise.
16355 (load_partial_comp_unit_reader): Remove.
16356 (load_partial_comp_unit): Use cutu_reader.
16357 (load_full_comp_unit_reader): Remove.
16358 (load_full_comp_unit): Use cutu_reader.
16359 (struct create_dwo_cu_data): Remove.
16360 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16361 dwo_unit parameters.
16362 (create_cus_hash_table): Use cutu_reader.
16363 (struct dwarf2_read_addr_index_data): Remove.
16364 (dwarf2_read_addr_index_reader): Remove.
16365 (dwarf2_read_addr_index): Use cutu_reader.
16366 (read_signatured_type_reader): Remove.
16367 (read_signatured_type): Use cutu_reader.
16368
45bbae5c
TT
163692020-01-19 Tom Tromey <tom@tromey.com>
16370
16371 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16372 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16373 (tui_wrefresh): Declare.
16374 * tui/tui-wingeneral.c (suppress_output): New global.
16375 (tui_suppress_output, ~tui_suppress_output): New constructor and
16376 destructor.
16377 (tui_wrefresh): New function.
16378 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16379 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16380 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16381 method.
16382 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16383 tui_wrefresh.
16384 (tui_data_window::no_refresh): New method.
16385 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16386 (tui_reg_command): Use tui_suppress_output
16387 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16388 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16389 method.
16390 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16391
4f13c1c0
TT
163922020-01-19 Tom Tromey <tom@tromey.com>
16393
16394 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16395 Handle case where symtab is null.
16396
fa47e446
SM
163972020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16398
16399 * linux-fork.c (one_fork_p): Simplify.
16400
26f42329
SM
164012020-01-17 Simon Marchi <simon.marchi@efficios.com>
16402
16403 * top.c (struct qt_args): Remove.
16404 (kill_or_detach): Change return type to void, replace `void *`
16405 parameter with a proper one.
16406 (print_inferior_quit_action): Likewise.
16407 (quit_confirm): Use range-based for loop to iterate over inferiors.
16408 (quit_force): Likewise.
16409
a9ac81b1
SM
164102020-01-17 Simon Marchi <simon.marchi@efficios.com>
16411
16412 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16413 `void *` parameter with proper parameters.
16414 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16415 (print_one_inferior): Change return type to void, replace `void *`
16416 parameter with proper parameters.
16417 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16418 inferiors.
16419 (get_other_inferior): Remove.
16420 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16421 inferiors.
16422
788eca49
SM
164232020-01-17 Simon Marchi <simon.marchi@efficios.com>
16424
16425 * mi/mi-interp.c (report_initial_inferior): Remove.
16426 (mi_interp::init): Use range-based for to iterate over inferiors.
16427
d9bc85b6
SM
164282020-01-17 Simon Marchi <simon.marchi@efficios.com>
16429
16430 * python/py-inferior.c (build_inferior_list): Remove.
16431 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16432
40c94099
CB
164332020-01-16 Christian Biesinger <cbiesinger@google.com>
16434
16435 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16436 (btrace_stitch_trace): Likewise.
16437 * charset.c (intermediate_encoding): Likewise (vaild).
16438 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16439 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16440 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16441
e0cdfe3c
HD
164422020-01-16 Hannes Domani <ssbssa@yahoo.de>
16443
16444 * windows-tdep.c (windows_get_tlb_type):
16445 Add rtl_user_process_parameters type.
16446
790f1718 164472020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16448 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16449
16450 PR build/24805
16451 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16452 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16453 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16454 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16455 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16456 (ps_plog): Redeclare exported functions with default visibility.
16457
3112ed97
NA
164582020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16459
16460 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16461 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16462
8dc3273e
SM
164632020-01-15 Simon Marchi <simon.marchi@efficios.com>
16464
16465 * infcmd.c (post_create_inferior): Use get_thread_regcache
16466 instead of get_current_regcache.
16467
ff47f4f0
TT
164682020-01-14 Tom Tromey <tom@tromey.com>
16469
16470 PR symtab/12535:
16471 * python/python.c (gdbpy_decode_line): Treat empty string the same
16472 as no argument.
16473
975f45b7
TT
164742020-01-14 Tom Tromey <tom@tromey.com>
16475
16476 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16477
25e57356
TT
164782020-01-14 Tom Tromey <tom@tromey.com>
16479
16480 * nat/linux-btrace.c: Don't include <config.h>.
16481 * nat/linux-ptrace.c: Don't include <config.h>.
16482 * nat/x86-linux-dregs.c: Don't include <config.h>.
16483
05ea2a05
TT
164842020-01-14 Tom Tromey <tom@tromey.com>
16485
16486 * configure: Rebuild.
16487 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16488
01027315
TT
164892020-01-14 Tom Tromey <tom@tromey.com>
16490
16491 * nat/x86-linux-dregs.c: Include configh.h.
16492 * nat/linux-ptrace.c: Include configh.h.
16493 * nat/linux-btrace.c: Include configh.h.
16494 * defs.h: Include config.h, bfd.h.
16495 * configure.ac: Don't source common.host.
16496 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16497 * configure: Rebuild.
16498 * acinclude.m4: Update path.
16499 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16500 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16501 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16502 (CLIBS): Add LIBSUPPORT.
16503 (CDEPS): Likewise.
16504 (COMMON_SFILES): Remove gdbsupport files.
16505 (HFILES_NO_SRCDIR): Likewise.
16506 (stamp-version): Update path to create-version.sh.
16507 (ALLDEPFILES): Remove gdbsupport files.
16508
b2ceabe8
TT
165092020-01-14 Tom Tromey <tom@tromey.com>
16510
16511 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16512 USE_WIN32API when needed.
16513 * configure.ac (USE_WIN32API): Don't define.
16514 (WIN32LIBS): Use WIN32APILIBS.
16515 * configure: Rebuild.
16516
25c51f71
TT
165172020-01-14 Tom Tromey <tom@tromey.com>
16518
16519 * configure: Rebuild.
16520 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16521
717c684d
BE
165222020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16523
16524 * skip.c (skip_function_command): Make skip w/o arguments use the
16525 name of the inlined function if pc is inside any inlined function.
16526
7da6a5b9
LM
165272020-01-14 Luis Machado <luis.machado@linaro.org>
16528
16529 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16530 * infrun.c (resume_1): Likewise.
16531 (handle_inferior_event): Remove stale comment.
16532 * linux-nat.c (linux_nat_target::resume): Update comments.
16533 (save_stop_reason): Likewise.
16534 (linux_nat_filter_event): Likewise.
16535 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16536
44e4c775
AB
165372020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16538
16539 * elfread.c (record_minimal_symbol): Set section index to 0 for
16540 non-allocatable sections.
16541
18a8505e
AT
16542
165432020-01-13 Ali Tamur <tamur@google.com>
16544
16545 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16546 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16547 to gdb::optional. Update comments.
16548 (dwo_file): Update comments.
16549 (read_attribute): Update API to take an additional out parameter,
16550 need_reprocess. This is used to mark attributes that need other
16551 attributes (e.g. str_offsets_base) for correct computation which may not
16552 have been read yet.
16553 (read_attribute_reprocess): New function declaration.
16554 (read_addr_index): Likewise.
16555 (read_dwo_str_index): Likewise.
16556 (read_stub_str_index): Likewise.
16557 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16558 (lookup_addr_base): New function definition.
16559 (lookup_ranges_base): Likewise.
16560 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16561 lookup_ranges_base.
16562 (init_cutu_and_read_dies): Update comments.
16563 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16564 unit. This is used to inherit parent's str_offsets_base and addr_base.
16565 Update comments.
16566 (init_cutu_and_read_dies_simple): Reflect API changes.
16567 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16568 (create_cus_hash_table): Change API to take parent compile unit.
16569 Reflect API changes.
16570 (open_and_init_dwo_file): Reflect API changes.
16571 (dwarf2_get_pc_bounds): Update comments.
16572 (dwarf2_record_block_ranges): Likewise.
16573 (read_full_die_1): Change implementation to reprocess attributes that
16574 need str_offsets_base and addr_base.
16575 (partial_die_info::read): Likewise.
16576 (read_attribute_reprocess): New function definition.
16577 (read_attribute_value): Change API to take an additional out parameter,
16578 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16579 when a non-dwo compile unit has index based attributes.
16580 (read_attribute): Reflect API changes.
16581 (read_addr_index_1): Reflect API changes. Update comments.
16582 (dwarf2_read_addr_index_data): Reflect API changes.
16583 (dwarf2_read_addr_index): Likewise.
16584 (read_str_index): Change API and implementation. This becomes a helper
16585 to be used by the new string index related methods. Update error
16586 message and comments.
16587 (read_dwo_str_index): New function definition.
16588 (read_stub_str_index): Likewise.
16589 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16590 * symfile.h (dwarf2_debug_sections): Likewise.
16591 * xcoffread.c (dwarf2_debug_sections): Likewise.
16592
0cac9354
SM
165932020-01-13 Simon Marchi <simon.marchi@efficios.com>
16594
16595 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16596 core_reg_sect type to gdb_byte *.
16597 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16598 * cris-tdep.c (fetch_core_registers): Likewise.
16599 * corelow.c (core_target::get_core_register_section): Change
16600 type of `contents` to gdb::byte_vector.
16601
9a6d629c
AB
166022020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16603
16604 * tui/tui-wingeneral.c (box_win): Position the title in the center
16605 of the border.
16606
d8b2f9e3
SM
166072020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16608
16609 * corelow.c (core_target::get_core_register_section): Use
16610 std::vector instead of alloca.
16611
bb564c58
SM
166122020-01-13 Simon Marchi <simon.marchi@efficios.com>
16613
16614 * warning.m4: Add -Wmissing-declarations to build_warnings.
16615 * configure: Re-generate.
16616
6b366111
SM
166172020-01-13 Simon Marchi <simon.marchi@efficios.com>
16618
16619 * python/python.c (init__gdb_module): Add declaration.
16620
6c265988
SM
166212020-01-13 Simon Marchi <simon.marchi@efficios.com>
16622
16623 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16624 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16625 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16626 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16627 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16628 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16629 * ada-exp.y (_initialize_ada_exp): Add declaration.
16630 * ada-lang.c (_initialize_ada_language): Add declaration.
16631 * ada-tasks.c (_initialize_tasks): Add declaration.
16632 * agent.c (_initialize_agent): Add declaration.
16633 * aix-thread.c (_initialize_aix_thread): Add declaration.
16634 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16635 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16636 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16637 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16638 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16639 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16640 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16641 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16642 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16643 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16644 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16645 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16646 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16647 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16648 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16649 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16650 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16651 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16652 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16653 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16654 * annotate.c (_initialize_annotate): Add declaration.
16655 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16656 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16657 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16658 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16659 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16660 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16661 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16662 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16663 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16664 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16665 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16666 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16667 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16668 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16669 * auto-load.c (_initialize_auto_load): Add declaration.
16670 * auxv.c (_initialize_auxv): Add declaration.
16671 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16672 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16673 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16674 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16675 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16676 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16677 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16678 * breakpoint.c (_initialize_breakpoint): Add declaration.
16679 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16680 * btrace.c (_initialize_btrace): Add declaration.
16681 * charset.c (_initialize_charset): Add declaration.
16682 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16683 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16684 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16685 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16686 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16687 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16688 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16689 * coffread.c (_initialize_coffread): Add declaration.
16690 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16691 * compile/compile.c (_initialize_compile): Add declaration.
16692 * complaints.c (_initialize_complaints): Add declaration.
16693 * completer.c (_initialize_completer): Add declaration.
16694 * copying.c (_initialize_copying): Add declaration.
16695 * corefile.c (_initialize_core): Add declaration.
16696 * corelow.c (_initialize_corelow): Add declaration.
16697 * cp-abi.c (_initialize_cp_abi): Add declaration.
16698 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16699 * cp-support.c (_initialize_cp_support): Add declaration.
16700 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16701 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16702 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16703 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16704 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16705 * ctfread.c (_initialize_ctfread): Add declaration.
16706 * d-lang.c (_initialize_d_language): Add declaration.
16707 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16708 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16709 * dbxread.c (_initialize_dbxread): Add declaration.
16710 * dcache.c (_initialize_dcache): Add declaration.
16711 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16712 * disasm.c (_initialize_disasm): Add declaration.
16713 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16714 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16715 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16716 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16717 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16718 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16719 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16720 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16721 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16722 * elfread.c (_initialize_elfread): Add declaration.
16723 * exec.c (_initialize_exec): Add declaration.
16724 * extension.c (_initialize_extension): Add declaration.
16725 * f-lang.c (_initialize_f_language): Add declaration.
16726 * f-valprint.c (_initialize_f_valprint): Add declaration.
16727 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16728 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16729 * filesystem.c (_initialize_filesystem): Add declaration.
16730 * findcmd.c (_initialize_mem_search): Add declaration.
16731 * findvar.c (_initialize_findvar): Add declaration.
16732 * fork-child.c (_initialize_fork_child): Add declaration.
16733 * frame-base.c (_initialize_frame_base): Add declaration.
16734 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16735 * frame.c (_initialize_frame): Add declaration.
16736 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16737 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16738 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16739 * gcore.c (_initialize_gcore): Add declaration.
16740 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16741 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16742 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16743 * gdbarch.c (_initialize_gdbarch): Add declaration.
16744 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16745 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16746 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16747 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16748 * go-lang.c (_initialize_go_language): Add declaration.
16749 * go32-nat.c (_initialize_go32_nat): Add declaration.
16750 * guile/guile.c (_initialize_guile): Add declaration.
16751 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16752 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16753 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16754 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16755 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16756 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16757 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16758 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16759 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16760 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16761 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16762 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16763 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16764 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16765 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16766 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16767 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16768 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16769 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16770 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16771 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16772 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16773 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16774 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16775 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16776 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16777 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16778 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16779 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16780 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16781 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16782 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16783 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16784 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16785 * infcall.c (_initialize_infcall): Add declaration.
16786 * infcmd.c (_initialize_infcmd): Add declaration.
16787 * inflow.c (_initialize_inflow): Add declaration.
16788 * infrun.c (_initialize_infrun): Add declaration.
16789 * interps.c (_initialize_interpreter): Add declaration.
16790 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16791 * jit.c (_initialize_jit): Add declaration.
16792 * language.c (_initialize_language): Add declaration.
16793 * linux-fork.c (_initialize_linux_fork): Add declaration.
16794 * linux-nat.c (_initialize_linux_nat): Add declaration.
16795 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16796 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16797 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16798 * m2-lang.c (_initialize_m2_language): Add declaration.
16799 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16800 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16801 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16802 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16803 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16804 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16805 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16806 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16807 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16808 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16809 * machoread.c (_initialize_machoread): Add declaration.
16810 * macrocmd.c (_initialize_macrocmd): Add declaration.
16811 * macroscope.c (_initialize_macroscope): Add declaration.
16812 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16813 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16814 * maint.c (_initialize_maint_cmds): Add declaration.
16815 * mdebugread.c (_initialize_mdebugread): Add declaration.
16816 * memattr.c (_initialize_mem): Add declaration.
16817 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16818 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16819 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16820 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16821 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16822 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16823 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16824 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16825 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16826 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16827 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16828 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16829 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16830 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16831 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16832 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16833 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16834 * mipsread.c (_initialize_mipsread): Add declaration.
16835 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16836 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16837 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16838 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16839 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16840 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16841 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16842 * nto-procfs.c (_initialize_procfs): Add declaration.
16843 * objc-lang.c (_initialize_objc_language): Add declaration.
16844 * observable.c (_initialize_observer): Add declaration.
16845 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16846 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16847 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16848 * osabi.c (_initialize_gdb_osabi): Add declaration.
16849 * osdata.c (_initialize_osdata): Add declaration.
16850 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16851 * parse.c (_initialize_parse): Add declaration.
16852 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16853 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16854 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16855 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16856 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16857 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16858 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16859 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16860 * printcmd.c (_initialize_printcmd): Add declaration.
16861 * probe.c (_initialize_probe): Add declaration.
16862 * proc-api.c (_initialize_proc_api): Add declaration.
16863 * proc-events.c (_initialize_proc_events): Add declaration.
16864 * proc-service.c (_initialize_proc_service): Add declaration.
16865 * procfs.c (_initialize_procfs): Add declaration.
16866 * producer.c (_initialize_producer): Add declaration.
16867 * psymtab.c (_initialize_psymtab): Add declaration.
16868 * python/python.c (_initialize_python): Add declaration.
16869 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16870 * record-btrace.c (_initialize_record_btrace): Add declaration.
16871 * record-full.c (_initialize_record_full): Add declaration.
16872 * record.c (_initialize_record): Add declaration.
16873 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16874 * regcache.c (_initialize_regcache): Add declaration.
16875 * reggroups.c (_initialize_reggroup): Add declaration.
16876 * remote-notif.c (_initialize_notif): Add declaration.
16877 * remote-sim.c (_initialize_remote_sim): Add declaration.
16878 * remote.c (_initialize_remote): Add declaration.
16879 * reverse.c (_initialize_reverse): Add declaration.
16880 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16881 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16882 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16883 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16884 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16885 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16886 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16887 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16888 Add declaration.
16889 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16890 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16891 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16892 * rust-exp.y (_initialize_rust_exp): Add declaration.
16893 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16894 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16895 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16896 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16897 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16898 * score-tdep.c (_initialize_score_tdep): Add declaration.
16899 * ser-go32.c (_initialize_ser_dos): Add declaration.
16900 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16901 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16902 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16903 * ser-uds.c (_initialize_ser_socket): Add declaration.
16904 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16905 * serial.c (_initialize_serial): Add declaration.
16906 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16907 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16908 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16909 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16910 * skip.c (_initialize_step_skip): Add declaration.
16911 * sol-thread.c (_initialize_sol_thread): Add declaration.
16912 * solib-aix.c (_initialize_solib_aix): Add declaration.
16913 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16914 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16915 * solib-frv.c (_initialize_frv_solib): Add declaration.
16916 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16917 * solib-target.c (_initialize_solib_target): Add declaration.
16918 * solib.c (_initialize_solib): Add declaration.
16919 * source-cache.c (_initialize_source_cache): Add declaration.
16920 * source.c (_initialize_source): Add declaration.
16921 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16922 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16923 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16924 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16925 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16926 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16927 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16928 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16929 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16930 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16931 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16932 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16933 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16934 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16935 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16936 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16937 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16938 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16939 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16940 * stabsread.c (_initialize_stabsread): Add declaration.
16941 * stack.c (_initialize_stack): Add declaration.
16942 * stap-probe.c (_initialize_stap_probe): Add declaration.
16943 * std-regs.c (_initialize_frame_reg): Add declaration.
16944 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16945 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16946 * symfile.c (_initialize_symfile): Add declaration.
16947 * symmisc.c (_initialize_symmisc): Add declaration.
16948 * symtab.c (_initialize_symtab): Add declaration.
16949 * target.c (_initialize_target): Add declaration.
16950 * target-connection.c (_initialize_target_connection): Add
16951 declaration.
16952 * target-dcache.c (_initialize_target_dcache): Add declaration.
16953 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16954 * thread.c (_initialize_thread): Add declaration.
16955 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16956 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16957 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16958 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16959 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16960 * tracectf.c (_initialize_ctf): Add declaration.
16961 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16962 * tracefile.c (_initialize_tracefile): Add declaration.
16963 * tracepoint.c (_initialize_tracepoint): Add declaration.
16964 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16965 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16966 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16967 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16968 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16969 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16970 * tui/tui.c (_initialize_tui): Add declaration.
16971 * typeprint.c (_initialize_typeprint): Add declaration.
16972 * ui-style.c (_initialize_ui_style): Add declaration.
16973 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16974 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16975 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16976 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16977 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16978 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16979 * unittests/filtered_iterator-selftests.c
16980 (_initialize_filtered_iterator_selftests): Add declaration.
16981 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16982 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16983 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16984 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16985 * unittests/main-thread-selftests.c
16986 (_initialize_main_thread_selftests): Add declaration.
16987 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16988 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16989 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16990 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16991 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16992 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16993 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16994 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16995 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16996 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16997 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16998 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16999 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17000 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17001 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17002 declaration.
17003 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17004 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17005 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17006 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17007 * user-regs.c (_initialize_user_regs): Add declaration.
17008 * utils.c (_initialize_utils): Add declaration.
17009 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17010 * valops.c (_initialize_valops): Add declaration.
17011 * valprint.c (_initialize_valprint): Add declaration.
17012 * value.c (_initialize_values): Add declaration.
17013 * varobj.c (_initialize_varobj): Add declaration.
17014 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17015 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17016 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17017 * windows-nat.c (_initialize_windows_nat): Add declaration.
17018 (_initialize_check_for_gdb_ini): Add declaration.
17019 (_initialize_loadable): Add declaration.
17020 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17021 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17022 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17023 * xcoffread.c (_initialize_xcoffread): Add declaration.
17024 * xml-support.c (_initialize_xml_support): Add declaration.
17025 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17026 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17027 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17028 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17029
e2de1eec
SM
170302020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17031
17032 * regformats/regdat.sh: Generate declaration for init function.
17033
e0037b4c
SM
170342020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17035
17036 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17037 up.
17038 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17039 close_one_inferior>: New methods.
17040 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17041 pass down target to find_inferior_pid.
17042 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17043 Pass down target to find_inferior_ptid.
17044 (gdbsim_target::create_inferior): Pass down target to
17045 add_thread_silent.
17046 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17047 target down to find_inferior_ptid and switch_to_thread.
17048 (gdbsim_target::close): Update to call close_one_inferior.
17049 (struct resume_data): Remove.
17050 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17051 directly, rather than through a void pointer.
17052 (gdbsim_target::resume): Update to call resume_one_inferior.
17053
58920b5b
SM
170542020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17055
17056 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17057
4ec89149
PA
170582020-01-12 Pedro Alves <palves@redhat.com>
17059
17060 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17061 directly for the current inferior instead of
17062 discard_all_inferiors.
17063 (discard_all_inferiors): Delete.
17064
7c392d1d
TT
170652020-01-11 Tom Tromey <tom@tromey.com>
17066
17067 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17068 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17069 deprecated_safe_get_selected_frame.
17070
d9ebdab7
TBA
170712020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17072
17073 * inferior.c (print_inferior): Switch inferior before printing it.
17074
f3c469b9
PA
170752020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17076 Pedro Alves <palves@redhat.com>
17077
17078 * progspace-and-thread.c (switch_to_program_space_and_thread):
17079 Assert there's an inferior for PSPACE. Use
17080 switch_to_inferior_no_thread to switch the inferior too.
17081 * progspace.c (program_space::~program_space): Call
17082 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17083 (program_space::free_all_objfiles): Don't call clear_symtab_users
17084 here.
17085 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17086
65c574f6
PA
170872020-01-10 Pedro Alves <palves@redhat.com>
17088
17089 * NEWS: Mention multi-target debugging, "info connections", and
17090 "add-inferior -no-connection".
17091
2f4fcf00
PA
170922020-01-10 Pedro Alves <palves@redhat.com>
17093
17094 * infrun.c: Include "target-connection.h".
17095 (check_multi_target_resumption): New.
17096 (proceed): Call it.
17097 * target-connection.c (make_target_connection_string): Make
17098 extern.
17099 * target-connection.h (make_target_connection_string): Declare.
17100
121b3efd
PA
171012020-01-10 Pedro Alves <palves@redhat.com>
17102
17103 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17104 * inferior.c (uiout_field_connection): New function.
17105 (print_inferior): Add new "connection-id" column.
17106 (add_inferior_command): Show connection number/string of added
17107 inferior.
17108 * process-stratum-target.h
17109 (process_stratum_target::connection_string): New virtual method.
17110 (process_stratum_target::connection_number): New field.
17111 * remote.c (remote_target::connection_string): New override.
17112 * target-connection.c: New file.
17113 * target-connection.h: New file.
17114 * target.c (decref_target): Remove process_stratum targets from
17115 the connection list.
17116 (target_stack::push): Add process_stratum targets to the
17117 connection list.
17118
4f837581
PA
171192020-01-10 Pedro Alves <palves@redhat.com>
17120
17121 Revert:
17122 2016-04-12 Pedro Alves <palves@redhat.com>
17123 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17124 Remove references to name.
17125 * serial.h (struct serial) <name>: Delete.
17126
f4ec508e
PA
171272020-01-10 Pedro Alves <palves@redhat.com>
17128
17129 * gdbarch-selftests.c (register_to_value_test): Remove "target
17130 already pushed" check.
17131
5b6d1e4f
PA
171322020-01-10 Pedro Alves <palves@redhat.com>
17133 John Baldwin <jhb@FreeBSD.org>
17134
17135 * aarch64-linux-nat.c
17136 (aarch64_linux_nat_target::thread_architecture): Adjust.
17137 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17138 (task_command_1): Likewise.
17139 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17140 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17141 (aix_thread_target::store_registers)
17142 (aix_thread_target::thread_alive): Adjust.
17143 * amd64-fbsd-tdep.c: Include "inferior.h".
17144 (amd64fbsd_get_thread_local_address): Pass down target.
17145 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17146 thread's gdbarch instead of target_gdbarch.
17147 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17148 get_last_target_status.
17149 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17150 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17151 inferiors.
17152 (update_inserted_breakpoint_locations): Skip if inferiors with no
17153 execution.
17154 (update_global_location_list): When handling moribund locations,
17155 find representative inferior for location's pspace, and use thread
17156 count of its process_stratum target.
17157 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17158 * bsd-uthread.c (bsd_uthread_target::wait): Use
17159 as_process_stratum_target and adjust thread_change_ptid and
17160 add_thread calls.
17161 (bsd_uthread_target::update_thread_list): Use
17162 as_process_stratum_target and adjust find_thread_ptid,
17163 thread_change_ptid and add_thread calls.
17164 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17165 find_thread_ptid call.
17166 * corelow.c (add_to_thread_list): Adjust add_thread call.
17167 (core_target_open): Adjust add_thread_silent and thread_count
17168 calls.
17169 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17170 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17171 * event-top.c (async_disconnect): Pop targets from all inferiors.
17172 * exec.c (add_target_sections): Push exec target on all inferiors
17173 sharing the program space.
17174 (remove_target_sections): Remove the exec target from all
17175 inferiors sharing the program space.
17176 (exec_on_vfork): New.
17177 * exec.h (exec_on_vfork): Declare.
17178 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17179 Pass it down.
17180 (fbsd_nat_target::update_thread_list): Adjust.
17181 (fbsd_nat_target::resume): Adjust.
17182 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17183 down.
17184 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17185 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17186 get_thread_arch_regcache call.
17187 * fork-child.c (gdb_startup_inferior): Pass target down to
17188 startup_inferior and set_executing.
17189 * gdbthread.h (struct process_stratum_target): Forward declare.
17190 (add_thread, add_thread_silent, add_thread_with_info)
17191 (in_thread_list): Add process_stratum_target parameter.
17192 (find_thread_ptid(inferior*, ptid_t)): New overload.
17193 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17194 parameter.
17195 (all_threads()): Delete overload.
17196 (all_threads, all_non_exited_threads): Add process_stratum_target
17197 parameter.
17198 (all_threads_safe): Use brace initialization.
17199 (thread_count): Add process_stratum_target parameter.
17200 (set_resumed, set_running, set_stop_requested, set_executing)
17201 (threads_are_executing, finish_thread_state): Add
17202 process_stratum_target parameter.
17203 (switch_to_thread): Use is_current_thread.
17204 * i386-fbsd-tdep.c: Include "inferior.h".
17205 (i386fbsd_get_thread_local_address): Pass down target.
17206 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17207 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17208 have_inferiors check.
17209 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17210 (inf_ptrace_target::attach): Adjust.
17211 * infcall.c (run_inferior_call): Adjust.
17212 * infcmd.c (run_command_1): Pass target to
17213 scoped_finish_thread_state.
17214 (proceed_thread_callback): Skip inferiors with no execution.
17215 (continue_command): Rename 'all_threads' local to avoid hiding
17216 'all_threads' function. Adjust get_last_target_status call.
17217 (prepare_one_step): Adjust set_running call.
17218 (signal_command): Use user_visible_resume_target. Compare thread
17219 pointers instead of inferior_ptid.
17220 (info_program_command): Adjust to pass down target.
17221 (attach_command): Mark target's 'thread_executing' flag.
17222 (stop_current_target_threads_ns): New, factored out from ...
17223 (interrupt_target_1): ... this. Switch inferior before making
17224 target calls.
17225 * inferior-iter.h
17226 (struct all_inferiors_iterator, struct all_inferiors_range)
17227 (struct all_inferiors_safe_range)
17228 (struct all_non_exited_inferiors_range): Filter on
17229 process_stratum_target too. Remove explicit.
17230 * inferior.c (inferior::inferior): Push dummy target on target
17231 stack.
17232 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17233 Add process_stratum_target parameter, and pass it down.
17234 (have_live_inferiors): Adjust.
17235 (switch_to_inferior_and_push_target): New.
17236 (add_inferior_command, clone_inferior_command): Handle
17237 "-no-connection" parameter. Use
17238 switch_to_inferior_and_push_target.
17239 (_initialize_inferior): Mention "-no-connection" option in
17240 the help of "add-inferior" and "clone-inferior" commands.
17241 * inferior.h: Include "process-stratum-target.h".
17242 (interrupt_target_1): Use bool.
17243 (struct inferior) <push_target, unpush_target, target_is_pushed,
17244 find_target_beneath, top_target, process_target, target_at,
17245 m_stack>: New.
17246 (discard_all_inferiors): Delete.
17247 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17248 (all_inferiors, all_non_exited_inferiors): Add
17249 process_stratum_target parameter.
17250 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17251 (target_last_proc_target): New global.
17252 (follow_fork_inferior): Push target on new inferior. Pass target
17253 to add_thread_silent. Call exec_on_vfork. Handle target's
17254 reference count.
17255 (follow_fork): Adjust get_last_target_status call. Also consider
17256 target.
17257 (follow_exec): Push target on new inferior.
17258 (struct execution_control_state) <target>: New field.
17259 (user_visible_resume_target): New.
17260 (do_target_resume): Call target_async.
17261 (resume_1): Set target's threads_executing flag. Consider resume
17262 target.
17263 (commit_resume_all_targets): New.
17264 (proceed): Also consider resume target. Skip threads of inferiors
17265 with no execution. Commit resumtion in all targets.
17266 (start_remote): Pass current inferior to wait_for_inferior.
17267 (infrun_thread_stop_requested): Consider target as well. Pass
17268 thread_info pointer to clear_inline_frame_state instead of ptid.
17269 (infrun_thread_thread_exit): Consider target as well.
17270 (random_pending_event_thread): New inferior parameter. Use it.
17271 (do_target_wait): Rename to ...
17272 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17273 down.
17274 (threads_are_resumed_pending_p, do_target_wait): New.
17275 (prepare_for_detach): Adjust calls.
17276 (wait_for_inferior): New inferior parameter. Handle it. Use
17277 do_target_wait_1 instead of do_target_wait.
17278 (fetch_inferior_event): Adjust. Switch to representative
17279 inferior. Pass target down.
17280 (set_last_target_status): Add process_stratum_target parameter.
17281 Save target in global.
17282 (get_last_target_status): Add process_stratum_target parameter and
17283 handle it.
17284 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17285 (context_switch): Check inferior_ptid == null_ptid before calling
17286 inferior_thread().
17287 (get_inferior_stop_soon): Pass down target.
17288 (wait_one): Rename to ...
17289 (poll_one_curr_target): ... this.
17290 (struct wait_one_event): New.
17291 (wait_one): New.
17292 (stop_all_threads): Adjust.
17293 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17294 event's target.
17295 (switch_back_to_stepped_thread): Also consider target.
17296 (print_stop_event): Update.
17297 (normal_stop): Update. Also consider the resume target.
17298 * infrun.h (wait_for_inferior): Remove declaration.
17299 (user_visible_resume_target): New declaration.
17300 (get_last_target_status, set_last_target_status): New
17301 process_stratum_target parameter.
17302 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17303 process_stratum_target parameter, and use it.
17304 (clear_inline_frame_state (thread_info*)): New.
17305 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17306 process_stratum_target parameter.
17307 (clear_inline_frame_state (thread_info*)): Declare.
17308 * linux-fork.c (delete_checkpoint_command): Pass target down to
17309 find_thread_ptid.
17310 (checkpoint_command): Adjust.
17311 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17312 instead of just tweaking inferior_ptid.
17313 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17314 (exit_lwp): Pass target down to find_thread_ptid.
17315 (attach_proc_task_lwp_callback): Pass target down to
17316 add_thread/set_running/set_executing.
17317 (linux_nat_target::attach): Pass target down to
17318 thread_change_ptid.
17319 (get_detach_signal): Pass target down to find_thread_ptid.
17320 Consider last target status's target.
17321 (linux_resume_one_lwp_throw, resume_lwp)
17322 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17323 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17324 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17325 (linux_nat_target::async_wait_fd): New.
17326 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17327 target down.
17328 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17329 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17330 * linux-thread-db.c (struct thread_db_info::process_target): New
17331 field.
17332 (add_thread_db_info): Save target.
17333 (get_thread_db_info): New process_stratum_target parameter. Also
17334 match target.
17335 (delete_thread_db_info): New process_stratum_target parameter.
17336 Also match target.
17337 (thread_from_lwp): Adjust to pass down target.
17338 (thread_db_notice_clone): Pass down target.
17339 (check_thread_db_callback): Pass down target.
17340 (try_thread_db_load_1): Always push the thread_db target.
17341 (try_thread_db_load, record_thread): Pass target down.
17342 (thread_db_target::detach): Pass target down. Always unpush the
17343 thread_db target.
17344 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17345 target down. Always unpush the thread_db target.
17346 (find_new_threads_callback, thread_db_find_new_threads_2)
17347 (thread_db_target::update_thread_list): Pass target down.
17348 (thread_db_target::pid_to_str): Pass current inferior down.
17349 (thread_db_target::get_thread_local_address): Pass target down.
17350 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17351 target down.
17352 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17353 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17354 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17355 (procfs_init_inferior): Rename to ...
17356 (procfs_target::procfs_init_inferior): ... this and adjust.
17357 (procfs_target::create_inferior, procfs_notice_thread)
17358 (procfs_do_thread_registers): Adjust.
17359 * ppc-fbsd-tdep.c: Include "inferior.h".
17360 (ppcfbsd_get_thread_local_address): Pass down target.
17361 * proc-service.c (ps_xfer_memory): Switch current inferior and
17362 program space as well.
17363 (get_ps_regcache): Pass target down.
17364 * process-stratum-target.c
17365 (process_stratum_target::thread_address_space)
17366 (process_stratum_target::thread_architecture): Pass target down.
17367 * process-stratum-target.h
17368 (process_stratum_target::threads_executing): New field.
17369 (as_process_stratum_target): New.
17370 * ravenscar-thread.c
17371 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17372 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17373 down.
17374 * record-btrace.c (record_btrace_target::info_record): Adjust.
17375 (record_btrace_target::record_method)
17376 (record_btrace_target::record_is_replaying)
17377 (record_btrace_target::fetch_registers)
17378 (get_thread_current_frame_id, record_btrace_target::resume)
17379 (record_btrace_target::wait, record_btrace_target::stop): Pass
17380 target down.
17381 * record-full.c (record_full_wait_1): Switch to event thread.
17382 Pass target down.
17383 * regcache.c (regcache::regcache)
17384 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17385 process_stratum_target parameter and handle it.
17386 (current_thread_target): New global.
17387 (get_thread_regcache): Add process_stratum_target parameter and
17388 handle it. Switch inferior before calling target method.
17389 (get_thread_regcache): Pass target down.
17390 (get_thread_regcache_for_ptid): Pass target down.
17391 (registers_changed_ptid): Add process_stratum_target parameter and
17392 handle it.
17393 (registers_changed_thread, registers_changed): Pass target down.
17394 (test_get_thread_arch_aspace_regcache): New.
17395 (current_regcache_test): Define a couple local test_target_ops
17396 instances and use them for testing.
17397 (readwrite_regcache): Pass process_stratum_target parameter.
17398 (cooked_read_test, cooked_write_test): Pass mock_target down.
17399 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17400 (get_thread_arch_aspace_regcache): Add process_stratum_target
17401 parameter.
17402 (regcache::target): New method.
17403 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17404 (regcache::registers_changed_ptid): Add process_stratum_target
17405 parameter.
17406 (regcache::m_target): New field.
17407 (registers_changed_ptid): Add process_stratum_target parameter.
17408 * remote.c (remote_state::supports_vCont_probed): New field.
17409 (remote_target::async_wait_fd): New method.
17410 (remote_unpush_and_throw): Add remote_target parameter.
17411 (get_current_remote_target): Adjust.
17412 (remote_target::remote_add_inferior): Push target.
17413 (remote_target::remote_add_thread)
17414 (remote_target::remote_notice_new_inferior)
17415 (get_remote_thread_info): Pass target down.
17416 (remote_target::update_thread_list): Skip threads of inferiors
17417 bound to other targets. (remote_target::close): Don't discard
17418 inferiors. (remote_target::add_current_inferior_and_thread)
17419 (remote_target::process_initial_stop_replies)
17420 (remote_target::start_remote)
17421 (remote_target::remote_serial_quit_handler): Pass down target.
17422 (remote_target::remote_unpush_target): New remote_target
17423 parameter. Unpush the target from all inferiors.
17424 (remote_target::remote_unpush_and_throw): New remote_target
17425 parameter. Pass it down.
17426 (remote_target::open_1): Check whether the current inferior has
17427 execution instead of checking whether any inferior is live. Pass
17428 target down.
17429 (remote_target::remote_detach_1): Pass down target. Use
17430 remote_unpush_target.
17431 (extended_remote_target::attach): Pass down target.
17432 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17433 (remote_target::append_resumption): Pass down target.
17434 (remote_target::append_pending_thread_resumptions)
17435 (remote_target::remote_resume_with_hc, remote_target::resume)
17436 (remote_target::commit_resume): Pass down target.
17437 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17438 (remote_target::interrupt_query)
17439 (remote_target::remove_new_fork_children)
17440 (remote_target::check_pending_events_prevent_wildcard_vcont)
17441 (remote_target::remote_parse_stop_reply)
17442 (remote_target::process_stop_reply): Pass down target.
17443 (first_remote_resumed_thread): New remote_target parameter. Pass
17444 it down.
17445 (remote_target::wait_as): Pass down target.
17446 (unpush_and_perror): New remote_target parameter. Pass it down.
17447 (remote_target::readchar, remote_target::remote_serial_write)
17448 (remote_target::getpkt_or_notif_sane_1)
17449 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17450 down target.
17451 (remote_target::mourn_inferior): Pass down target. Use
17452 remote_unpush_target.
17453 (remote_target::core_of_thread)
17454 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17455 (remote_target::pid_to_exec_file)
17456 (remote_target::thread_handle_to_thread_info): Pass down target.
17457 (remote_target::async_wait_fd): New.
17458 * riscv-fbsd-tdep.c: Include "inferior.h".
17459 (riscv_fbsd_get_thread_local_address): Pass down target.
17460 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17461 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17462 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17463 Adjust.
17464 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17465 * solib-svr4.c (enable_break): Pass down target.
17466 * spu-multiarch.c (parse_spufs_run): Pass down target.
17467 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17468 * target-delegates.c: Regenerate.
17469 * target.c (g_target_stack): Delete.
17470 (current_top_target): Return the current inferior's top target.
17471 (target_has_execution_1): Refer to the passed-in inferior's top
17472 target.
17473 (target_supports_terminal_ours): Check whether the initial
17474 inferior was already created.
17475 (decref_target): New.
17476 (target_stack::push): Incref/decref the target.
17477 (push_target, push_target, unpush_target): Adjust.
17478 (target_stack::unpush): Defref target.
17479 (target_is_pushed): Return bool. Adjust to refer to the current
17480 inferior's target stack.
17481 (dispose_inferior): Delete, and inline parts ...
17482 (target_preopen): ... here. Only dispose of the current inferior.
17483 (target_detach): Hold strong target reference while detaching.
17484 Pass target down.
17485 (target_thread_name): Add assertion.
17486 (target_resume): Pass down target.
17487 (target_ops::beneath, find_target_at): Adjust to refer to the
17488 current inferior's target stack.
17489 (get_dummy_target): New.
17490 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17491 has a thread running.
17492 (initialize_targets): Rename to ...
17493 (_initialize_target): ... this.
17494 * target.h: Include "gdbsupport/refcounted-object.h".
17495 (struct target_ops): Inherit refcounted_object.
17496 (target_ops::shortname, target_ops::longname): Make const.
17497 (target_ops::async_wait_fd): New method.
17498 (decref_target): Declare.
17499 (struct target_ops_ref_policy): New.
17500 (target_ops_ref): New typedef.
17501 (get_dummy_target): Declare function.
17502 (target_is_pushed): Return bool.
17503 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17504 (all_matching_threads_iterator::all_matching_threads_iterator):
17505 Handle filter target.
17506 * thread-iter.h (struct all_matching_threads_iterator, struct
17507 all_matching_threads_range, class all_non_exited_threads_range):
17508 Filter by target too. Remove explicit.
17509 * thread.c (threads_executing): Delete.
17510 (inferior_thread): Pass down current inferior.
17511 (clear_thread_inferior_resources): Pass down thread pointer
17512 instead of ptid_t.
17513 (add_thread_silent, add_thread_with_info, add_thread): Add
17514 process_stratum_target parameter. Use it for thread and inferior
17515 searches.
17516 (is_current_thread): New.
17517 (thread_info::deletable): Use it.
17518 (find_thread_ptid, thread_count, in_thread_list)
17519 (thread_change_ptid, set_resumed, set_running): New
17520 process_stratum_target parameter. Pass it down.
17521 (set_executing): New process_stratum_target parameter. Pass it
17522 down. Adjust reference to 'threads_executing'.
17523 (threads_are_executing): New process_stratum_target parameter.
17524 Adjust reference to 'threads_executing'.
17525 (set_stop_requested, finish_thread_state): New
17526 process_stratum_target parameter. Pass it down.
17527 (switch_to_thread): Also match inferior.
17528 (switch_to_thread): New process_stratum_target parameter. Pass it
17529 down.
17530 (update_threads_executing): Reimplement.
17531 * top.c (quit_force): Pop targets from all inferior.
17532 (gdb_init): Don't call initialize_targets.
17533 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17534 Declare.
17535 (windows_add_thread, windows_delete_thread): Adjust.
17536 (get_windows_debug_event): Rename to ...
17537 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17538 * tracefile-tfile.c (tfile_target_open): Pass down target.
17539 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17540 Forward declare.
17541 (switch_to_thread): Add process_stratum_target parameter.
17542 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17543 parameter. Use it.
17544 (mi_on_resume): Pass target down.
17545 * nat/fork-inferior.c (startup_inferior): Add
17546 process_stratum_target parameter. Pass it down.
17547 * nat/fork-inferior.h (startup_inferior): Add
17548 process_stratum_target parameter.
17549 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17550
75c6c844
PA
175512020-01-10 Pedro Alves <palves@redhat.com>
17552
17553 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17554 directly. Instead find the first thread in the thread list and
17555 use switch_to_thread.
17556
78f2c40a
PA
175572020-01-10 Pedro Alves <palves@redhat.com>
17558
17559 * remote.c (remote_target::remote_add_inferior): Don't bind a
17560 process to the current inferior if the current inferior is already
17561 bound to a process.
17562
e7af6c70
TBA
175632020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17564 Pedro Alves <palves@redhat.com>
17565
17566 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17567 If no process is specified, return null_ptid instead of
17568 inferior_ptid.
17569 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17570 TARGET_WAITKIND_SIGNALLED with no pid.
17571
31ba933e
PA
175722020-01-10 Pedro Alves <palves@redhat.com>
17573
17574 * remote.c (first_remote_resumed_thread): New.
17575 (remote_target::wait_as): Use it as default event_ptid instead of
17576 inferior_ptid.
17577
735fc2ca
PA
175782020-01-10 Pedro Alves <palves@redhat.com>
17579
17580 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17581
c17e02e1
PA
175822020-01-10 Pedro Alves <palves@redhat.com>
17583
17584 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17585 not -1.
17586
ab1ddbcf
PA
175872020-01-10 Pedro Alves <palves@redhat.com>
17588
17589 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17590 ptid to get_last_target_status.
17591 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17592 ptid to get_last_target_status.
17593 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17594 get_last_target_status.
17595 (info_program_command): Don't pass a target_waitstatus to
17596 get_last_target_status.
17597 * infrun.c (init_wait_for_inferior): Use
17598 nullify_last_target_wait_ptid.
17599 (get_last_target_status): Handle nullptr arguments.
17600 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17601 (print_stop_event): Don't pass a ptid to get_last_target_status.
17602 (normal_stop): Don't pass a ptid to get_last_target_status.
17603 * infrun.h (get_last_target_status, set_last_target_status): Move
17604 comments here and update.
17605 (nullify_last_target_wait_ptid): Declare.
17606 * linux-fork.c (fork_load_infrun_state): Remove local extern
17607 declaration of nullify_last_target_wait_ptid.
17608 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17609 to get_last_target_status.
17610
f3f8ece4
PA
176112020-01-10 Pedro Alves <palves@redhat.com>
17612
17613 * gdbthread.h (scoped_restore_current_thread)
17614 <dont_restore, restore, m_dont_restore>: Declare.
17615 * thread.c (thread_alive): Add assertion. Return bool.
17616 (switch_to_thread_if_alive): New.
17617 (prune_threads): Switch inferior/thread.
17618 (print_thread_info_1): Switch thread before calling target methods.
17619 (scoped_restore_current_thread::restore): New, factored out from
17620 ...
17621 (scoped_restore_current_thread::~scoped_restore_current_thread):
17622 ... this.
17623 (scoped_restore_current_thread::scoped_restore_current_thread):
17624 Add assertion.
17625 (thread_apply_all_command, thread_select): Use
17626 switch_to_thread_if_alive.
17627 * infrun.c (proceed, restart_threads, handle_signal_stop)
17628 (switch_back_to_stepped_thread): Switch current thread before
17629 calling target methods.
17630
db2d40f7
PA
176312020-01-10 Pedro Alves <palves@redhat.com>
17632
17633 * inferior.c (switch_to_inferior_no_thread): New function,
17634 factored out from ...
17635 (inferior_command): ... here.
17636 * inferior.h (switch_to_inferior_no_thread): Declare.
17637 * mi/mi-main.c (run_one_inferior): Use
17638 switch_to_inferior_no_thread.
17639
bd420a2d
PA
176402020-01-10 Pedro Alves <palves@redhat.com>
17641
17642 * infcmd.c (kill_command): Remove dead code.
17643
ddf5db90
PA
176442020-01-10 Pedro Alves <palves@redhat.com>
17645
17646 * remote.c (remote_target::mourn_inferior): No longer check
17647 whether the target is running.
17648
5018ce90
PA
176492020-01-10 Pedro Alves <palves@redhat.com>
17650
17651 * corelow.c (core_target::has_execution): Change parameter type to
17652 inferior pointer.
17653 * inferior.c (number_of_live_inferiors): Use
17654 inferior::has_execution instead of target_has_execution_1.
17655 * inferior.h (inferior::has_execution): New.
17656 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17657 inferior::has_execution instead of target_has_execution_1.
17658 * process-stratum-target.c
17659 (process_stratum_target::has_execution): Change parameter type to
17660 inferior pointer. Check the inferior's PID instead of
17661 inferior_ptid.
17662 * process-stratum-target.h
17663 (process_stratum_target::has_execution): Change parameter type to
17664 inferior pointer.
17665 * record-full.c (record_full_core_target::has_execution): Change
17666 parameter type to inferior pointer.
17667 * target.c (target_has_execution_1): Change parameter type to
17668 inferior pointer.
17669 (target_has_execution_current): Adjust.
17670 * target.h (target_ops::has_execution): Change parameter type to
17671 inferior pointer.
17672 (target_has_execution_1): Change parameter type to inferior
17673 pointer. Change return type to bool.
17674 * tracefile.h (tracefile_target::has_execution): Change parameter
17675 type to inferior pointer.
17676
74375d18
PA
176772020-01-10 Pedro Alves <palves@redhat.com>
17678
17679 * exceptions.c (print_flush): Remove current_top_target() check.
17680
acdf84a6
PA
176812020-01-10 Pedro Alves <palves@redhat.com>
17682
17683 * remote.c (show_remote_exec_file): Show the current inferior's
17684 exec-file instead of the command variable's value.
17685
ec506636
PA
176862020-01-10 Pedro Alves <palves@redhat.com>
17687
17688 * record-full.c (record_full_resume_ptid): New global.
17689 (record_full_target::resume): Set it.
17690 (record_full_wait_1): Use record_full_resume_ptid instead of
17691 inferior_ptid.
17692
873657b9
PA
176932020-01-10 Pedro Alves <palves@redhat.com>
17694
17695 * gdbthread.h (scoped_restore_current_thread)
17696 <dont_restore, restore, m_dont_restore>: Declare.
17697 * thread.c (thread_alive): Add assertion. Return bool.
17698 (switch_to_thread_if_alive): New.
17699 (prune_threads): Switch inferior/thread.
17700 (print_thread_info_1): Switch thread before calling target methods.
17701 (scoped_restore_current_thread::restore): New, factored out from
17702 ...
17703 (scoped_restore_current_thread::~scoped_restore_current_thread):
17704 ... this.
17705 (scoped_restore_current_thread::scoped_restore_current_thread):
17706 Add assertion.
17707 (thread_apply_all_command, thread_select): Use
17708 switch_to_thread_if_alive.
17709
7f0ae84c
GB
177102020-01-10 George Barrett <bob@bob131.so>
17711
17712 * stap-probe.c (stap_modify_semaphore): Don't check for null
17713 semaphores.
17714 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17715 for null semaphores.
17716
f5a7c406
AB
177172020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17718
17719 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17720 all source windows, and maintain horizontal scroll status while
17721 doing so.
17722
9ae6bf64
TT
177232020-01-09 Tom Tromey <tom@tromey.com>
17724
17725 PR tui/18932:
17726 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17727 update_source_window, not print_source_lines.
17728
b2efe70c
AB
177292020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17730
17731 * tui/tui.c (tui_enable): Register tui hooks after calling
17732 tui_display_main.
17733
5f23a082
CB
177342020-01-09 Christian Biesinger <cbiesinger@google.com>
17735
17736 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17737
3061113b
SM
177382020-01-08 Simon Marchi <simon.marchi@efficios.com>
17739
17740 * thread.c (print_thread_info_1): Fix indentation.
17741
57d75002
CB
177422020-01-09 Christian Biesinger <cbiesinger@google.com>
17743
17744 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17745 unique_xmalloc_ptr outside the if to always free the demangled name.
17746
6a053cb1
TT
177472020-01-08 Tom Tromey <tromey@adacore.com>
17748
17749 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17750 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17751 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17752 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17753 Remove.
17754 (section_offsets): New typedef.
17755 * symtab.c (fixup_section, get_msymbol_address): Update.
17756 * symmisc.c (dump_msymbols): Update.
17757 * symfile.h (relative_addr_info_to_section_offsets)
17758 (symfile_map_offsets_to_segments): Update.
17759 * symfile.c (build_section_addr_info_from_objfile)
17760 (init_objfile_sect_indices): Update.
17761 (struct place_section_arg): Change type of "offsets".
17762 (place_section): Update.
17763 (relative_addr_info_to_section_offsets): Change type of
17764 "section_offsets". Remove "num_sections" parameter.
17765 (default_symfile_offsets, syms_from_objfile_1)
17766 (set_objfile_default_section_offset): Update.
17767 (reread_symbols): No need to preserve section offsets by hand.
17768 (symfile_map_offsets_to_segments): Change type of "offsets".
17769 * stap-probe.c (relocate_address): Update.
17770 * stabsread.h (process_one_symbol): Update.
17771 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17772 (solib_target_relocate_section_addresses): Update.
17773 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17774 Update.
17775 * solib-frv.c (frv_relocate_main_executable): Update.
17776 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17777 * solib-aix.c (solib_aix_get_section_offsets): Change return
17778 type.
17779 (solib_aix_solib_create_inferior_hook): Update.
17780 * remote.c (remote_target::get_offsets): Update.
17781 * psymtab.c (find_pc_sect_psymtab): Update.
17782 * psympriv.h (struct partial_symbol) <address, text_low,
17783 text_high>: Update.
17784 * objfiles.h (obj_section_offset): Update.
17785 (struct objfile) <section_offsets>: Change type.
17786 <num_sections>: Remove.
17787 (objfile_relocate): Update.
17788 * objfiles.c (entry_point_address_query): Update
17789 (relocate_one_symbol): Change type of "section_offsets".
17790 (objfile_relocate1, objfile_relocate1): Change type of
17791 "new_offsets".
17792 (objfile_rebase1): Update.
17793 * mipsread.c (mipscoff_symfile_read): Update.
17794 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17795 parameter.
17796 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17797 (parse_external, psymtab_to_symtab_1): Update.
17798 * machoread.c (macho_symfile_offsets): Update.
17799 * ia64-tdep.c (ia64_find_unwind_table): Update.
17800 * hppa-tdep.c (read_unwind_info): Update.
17801 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17802 * dwarf2read.c (create_addrmap_from_index)
17803 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17804 (process_psymtab_comp_unit_reader, add_partial_symbol)
17805 (add_partial_subprogram, process_full_comp_unit)
17806 (read_file_scope, read_func_scope, read_lexical_block_scope)
17807 (read_call_site_scope, dwarf2_rnglists_process)
17808 (dwarf2_ranges_process, dwarf2_ranges_read)
17809 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17810 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17811 Update.
17812 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17813 Update.
17814 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17815 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17816 (process_one_symbol): Change type of "section_offsets".
17817 * ctfread.c (get_objfile_text_range): Update.
17818 * coffread.c (coff_symtab_read, enter_linenos)
17819 (process_coff_symbol): Update.
17820 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17821 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17822
456e800a
TT
178232020-01-08 Tom Tromey <tromey@adacore.com>
17824
17825 * dwarf2read.c (parse_macro_definition): Use std::string.
17826 (parse_macro_definition): Likewise.
17827
6dfa2fc2
TT
178282020-01-08 Tom Tromey <tromey@adacore.com>
17829
17830 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17831 (ATTR_ALLOC_CHUNK): Remove.
17832
421d1616
TT
178332020-01-08 Tom Tromey <tromey@adacore.com>
17834
17835 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17836
43816ebc
TT
178372020-01-08 Tom Tromey <tromey@adacore.com>
17838
17839 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17840 (dwarf2_compute_name, open_dwo_file): Likewise.
17841 (process_enumeration_scope): Use std::vector.
17842 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17843 (partial_die_info::fixup, dwarf2_start_subfile)
17844 (guess_full_die_structure_name, dwarf2_name): Likewise.
17845 (determine_prefix): Update.
17846 (guess_full_die_structure_name): Make return type const.
17847 (partial_die_full_name): Return unique_xmalloc_ptr.
17848 (DW_FIELD_ALLOC_CHUNK): Remove.
17849
4212d509
TT
178502020-01-07 Tom Tromey <tromey@adacore.com>
17851
17852 PR build/24937:
17853 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17854
06a6207a
JT
178552020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17856
17857 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17858
153d79c4
AB
178592020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17860
17861 * stack.c (print_frame_info): Move disassemble_next_line code
17862 inside source_print block.
17863
66182876
EZ
178642020-01-06 Eli Zaretskii <eliz@gnu.org>
17865
17866 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17867 gdb/signals.h, as we are now using native signal symbols.
17868
cbfa8581
SV
178692020-01-06 Shahab Vahedi <shahab@synopsys.com>
17870
17871 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17872 overflow by an early check of content vs threshold.
aac66a4c 17873 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17874 Likewise.
17875
3f602821
EZ
178762020-01-06 Eli Zaretskii <eliz@gnu.org>
17877
17878 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17879
a08c904d
JT
178802020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17881
17882 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17883 export table if no section contains it's RVA.
17884
89a65580
EZ
178852020-01-06 Eli Zaretskii <eliz@gnu.org>
17886
17887 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17888
8b7fcda2
HD
178892020-01-06 Hannes Domani <ssbssa@yahoo.de>
17890
17891 * source.c (print_source_lines_base): Set last_line_listed.
17892
a61b4f69
SV
178932020-01-06 Shahab Vahedi <shahab@synopsys.com>
17894
17895 * tui/tui-disasm.c: Remove trailing spaces.
17896
559e7e50
EZ
178972020-01-06 Eli Zaretskii <eliz@gnu.org>
17898 Pedro Alves <palves@redhat.com>
17899
17900 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17901 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17902 (windows_gdb_signal_to_target): New function, uses the above
17903 enumeration to convert GDB internal signal codes to equivalent
17904 Windows codes.
17905 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17906 * windows-nat.c: Include "gdb_wait.h".
17907 (get_windows_debug_event): Extract the fatal exception from the
17908 exit status and convert to the equivalent Posix signal number.
17909 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17910 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17911 * gdbsupport/gdb_wait.c: New file, implements
17912 windows_status_to_termsig.
17913 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17914 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17915
f2302a34
AB
179162020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17917
17918 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17919 show_layout.
17920
6a5206eb
LM
179212020-01-05 Luis Machado <luis.machado@linaro.org>
17922
17923 * aarch64-linux-nat.c
17924 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17925 and bfd_mach_aarch64.
17926
6ec1d75e
PW
179272020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17928
17929 * ui-file.c (stdio_file::can_emit_style_escape)
17930 (tee_file::can_emit_style_escape): Ensure style is used also on
17931 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17932 to gdb_stdout.
17933 * main.c (set_gdb_data_directory): Use file style to output the
17934 warning that the given pathname is not a directory.
17935 * top.c (show_history_filename, gdb_safe_append_history)
17936 (show_gdb_datadir): Use file style.
17937
44f81a76
HD
179382020-01-03 Hannes Domani <ssbssa@yahoo.de>
17939
17940 * solib-target.c (struct lm_info_target):
17941 Change offsets to be a unique_xmalloc_ptr.
17942 (solib_target_relocate_section_addresses): Update.
17943
25057eb0
HD
179442020-01-03 Hannes Domani <ssbssa@yahoo.de>
17945
17946 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17947
6e2118f5
BE
179482020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17949
17950 * MAINTAINERS (Write After Approval): Add myself.
17951
8133c7dc
LM
179522020-01-02 Luis Machado <luis.machado@linaro.org>
17953
17954 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17955 Cell BE architecture.
17956 * target.h (struct target_ops) <thread_architecture>: Likewise.
17957
48189bec
HD
179582020-01-01 Hannes Domani <ssbssa@yahoo.de>
17959
17960 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17961
ead1063b
HD
179622020-01-01 Hannes Domani <ssbssa@yahoo.de>
17963
17964 * MAINTAINERS (Write After Approval): Add myself.
17965
e5d78223
JB
179662020-01-01 Joel Brobecker <brobecker@adacore.com>
17967
17968 * gdbarch.sh: Update copyright year range of generated files.
17969
b811d2c2
JB
179702020-01-01 Joel Brobecker <brobecker@adacore.com>
17971
17972 Update copyright year range in all GDB files.
17973
5f4def5c
JB
179742020-01-01 Joel Brobecker <brobecker@adacore.com>
17975
17976 * copyright.py: Convert to Python 3.
17977
51fd4002
JB
179782020-01-01 Joel Brobecker <brobecker@adacore.com>
17979
17980 * copyright.py: Adapt after move of gnulib directory from gdb
17981 directory to toplevel directory.
17982
5fb651f2
JB
179832020-01-01 Joel Brobecker <brobecker@adacore.com>
17984
17985 * copyright.py (main): Exit if run from the wrong directory.
17986
5dd8bf88
JB
179872020-01-01 Joel Brobecker <brobecker@adacore.com>
17988
17989 * top.c (print_gdb_version): Change copyright year to 2020.
17990
9f71dacb 179912020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17992
9f71dacb 17993 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17994
9f71dacb 17995For older changes see ChangeLog-2019.
c906108c
SS
17996\f
17997Local Variables:
17998mode: change-log
17999left-margin: 8
18000fill-column: 74
18001version-control: never
57da7796 18002coding: utf-8
c906108c 18003End: