]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: make displaced stepping implementation capable of managing multiple buffers
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
480af54c
SM
12020-12-04 Simon Marchi <simon.marchi@efficios.com>
2
3 * displaced-stepping.h (struct displaced_step_buffer): Rename
4 to...
5 (struct displaced_step_buffers): ... this.
6 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
7 <struct displaced_step_buffer>: New inner class.
8 <m_buffers>: New.
9 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
10 to...
11 (displaced_step_buffers::prepare): ... this, adjust for multiple
12 buffers.
13 (displaced_step_buffer::finish): Rename to...
14 (displaced_step_buffers::finish): ... this, adjust for multiple
15 buffers.
16 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
17 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
18 adjust for multiple buffers.
19 (displaced_step_buffer::restore_in_ptid): Rename to...
20 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
21 multiple buffers.
22 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
23 for num_disp_step_buffers.
24 * linux-tdep.c (struct linux_gdbarch_data)
25 <num_disp_step_buffers>: New field.
26 (struct linux_info) <disp_step_buf>: Rename to...
27 <disp_step_bufs>: ... this, change type to
28 displaced_step_buffers.
29 (linux_displaced_step_prepare): Use
30 linux_gdbarch_data::num_disp_step_buffers to create that number
31 of buffers.
32 (linux_displaced_step_finish): Adjust.
33 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
34 (linux_displaced_step_restore_all_in_ptid): Adjust.
35 (linux_init_abi): Change supports_displaced_step parameter for
36 num_disp_step_buffers, save it in linux_gdbarch_data.
37 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
38 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
39 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
40 supports_displaced_step parameter for num_disp_step_buffers.
41 (amd64_linux_init_abi): Adjust.
42 (amd64_x32_linux_init_abi): Adjust.
43 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
44 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
45 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
46 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
47 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
48 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
49 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
50 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
51 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
52 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
53 * m68k-linux-tdep.c (m68k_linux_init_abi):
54 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
55 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
56 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
57 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
58 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
59 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
60 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
61 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
62 Change type to displaced_step_buffers.
63 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
64 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
65 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
66 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
67 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
68 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
69 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
70
d9655058
SM
712020-12-04 Simon Marchi <simon.marchi@efficios.com>
72
73 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
74 obkstack.
75 (_initialize_linux_tdep): Register pre-init gdb data instead of
76 post-init.
77
187b041e
SM
782020-12-04 Simon Marchi <simon.marchi@efficios.com>
79
80 * displaced-stepping.h (struct
81 displaced_step_copy_insn_closure): Adjust comments.
82 (struct displaced_step_inferior_state) <step_thread,
83 step_gdbarch, step_closure, step_original, step_copy,
84 step_saved_copy>: Remove fields.
85 (struct displaced_step_thread_state): New.
86 (struct displaced_step_buffer): New.
87 * displaced-stepping.c (displaced_step_buffer::prepare): New.
88 (write_memory_ptid): Move from infrun.c.
89 (displaced_step_instruction_executed_successfully): New,
90 factored out of displaced_step_finish.
91 (displaced_step_buffer::finish): New.
92 (displaced_step_buffer::copy_insn_closure_by_addr): New.
93 (displaced_step_buffer::restore_in_ptid): New.
94 * gdbarch.sh (displaced_step_location): Remove.
95 (displaced_step_prepare, displaced_step_finish,
96 displaced_step_copy_insn_closure_by_addr,
97 displaced_step_restore_all_in_ptid): New.
98 * gdbarch.c: Re-generate.
99 * gdbarch.h: Re-generate.
100 * gdbthread.h (class thread_info) <displaced_step_state>: New
101 field.
102 (thread_step_over_chain_remove): New declaration.
103 (thread_step_over_chain_next): New declaration.
104 (thread_step_over_chain_length): New declaration.
105 * thread.c (thread_step_over_chain_remove): Make non-static.
106 (thread_step_over_chain_next): New.
107 (global_thread_step_over_chain_next): Use
108 thread_step_over_chain_next.
109 (thread_step_over_chain_length): New.
110 (global_thread_step_over_chain_enqueue): Add debug print.
111 (global_thread_step_over_chain_remove): Add debug print.
112 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
113 Remove.
114 * infrun.c (get_displaced_stepping_state): New.
115 (displaced_step_in_progress_any_inferior): Remove.
116 (displaced_step_in_progress_thread): Adjust.
117 (displaced_step_in_progress): Adjust.
118 (displaced_step_in_progress_any_thread): New.
119 (get_displaced_step_copy_insn_closure_by_addr): Remove.
120 (gdbarch_supports_displaced_stepping): Use
121 gdbarch_displaced_step_prepare_p.
122 (displaced_step_reset): Change parameter from inferior to
123 thread.
124 (displaced_step_prepare_throw): Implement using
125 gdbarch_displaced_step_prepare.
126 (write_memory_ptid): Move to displaced-step.c.
127 (displaced_step_restore): Remove.
128 (displaced_step_finish): Implement using
129 gdbarch_displaced_step_finish.
130 (start_step_over): Allow starting more than one displaced step.
131 (prepare_for_detach): Handle possibly multiple threads doing
132 displaced steps.
133 (handle_inferior_event): Handle possibility that fork event
134 happens while another thread displaced steps.
135 * linux-tdep.h (linux_displaced_step_prepare): New.
136 (linux_displaced_step_finish): New.
137 (linux_displaced_step_copy_insn_closure_by_addr): New.
138 (linux_displaced_step_restore_all_in_ptid): New.
139 (linux_init_abi): Add supports_displaced_step parameter.
140 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
141 (linux_displaced_step_prepare): New.
142 (linux_displaced_step_finish): New.
143 (linux_displaced_step_copy_insn_closure_by_addr): New.
144 (linux_displaced_step_restore_all_in_ptid): New.
145 (linux_init_abi): Add supports_displaced_step parameter,
146 register displaced step methods if true.
147 (_initialize_linux_tdep): Register inferior_execd observer.
148 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
149 supports_displaced_step parameter, adjust call to
150 linux_init_abi. Remove call to
151 set_gdbarch_displaced_step_location.
152 (amd64_linux_init_abi): Adjust call to
153 amd64_linux_init_abi_common.
154 (amd64_x32_linux_init_abi): Likewise.
155 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
156 linux_init_abi. Remove call to
157 set_gdbarch_displaced_step_location.
158 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
159 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
160 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
161 linux_init_abi.
162 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
163 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
164 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
165 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
166 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
167 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
168 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
169 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
170 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
171 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
172 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
173 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
174 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
175 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
176 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
177 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
178 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
179 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
180 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
181 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
182 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
183 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
184 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
185 linux_init_abi. Remove call to
186 set_gdbarch_displaced_step_location.
187 * arm-tdep.c (arm_pc_is_thumb): Call
188 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
189 get_displaced_step_copy_insn_closure_by_addr.
190 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
191 clear gdbarch methods.
192 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
193 (get_ppc_per_inferior): New function.
194 (ppc_displaced_step_prepare): New function.
195 (ppc_displaced_step_finish): New function.
196 (ppc_displaced_step_restore_all_in_ptid): New function.
197 (rs6000_gdbarch_init): Register new gdbarch methods.
198 * s390-tdep.c (s390_gdbarch_init): Don't call
199 set_gdbarch_displaced_step_location, set new gdbarch methods.
200
c7acb87b
SM
2012020-12-04 Simon Marchi <simon.marchi@efficios.com>
202
203 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
204 * aarch64-tdep.h: Include displaced-stepping.h.
205 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
206 Move here.
207 (displaced_step_copy_insn_closure_up): Move here.
208 (struct buf_displaced_step_copy_insn_closure): Move here.
209 (struct displaced_step_inferior_state): Move here.
210 (debug_displaced): Move here.
211 (displaced_debug_printf_1): Move here.
212 (displaced_debug_printf): Move here.
213 * displaced-stepping.c: New file.
214 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
215 * gdbarch.h: Re-generate.
216 * inferior.h: Include displaced-stepping.h.
217 * infrun.h (debug_displaced): Move to displaced-stepping.h.
218 (displaced_debug_printf_1): Likewise.
219 (displaced_debug_printf): Likewise.
220 (struct displaced_step_copy_insn_closure): Likewise.
221 (displaced_step_copy_insn_closure_up): Likewise.
222 (struct buf_displaced_step_copy_insn_closure): Likewise.
223 (struct displaced_step_inferior_state): Likewise.
224 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
225 (displaced_debug_printf_1): Likewise.
226 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
227 Likewise.
228 (_initialize_infrun): Don't register "set/show debug displaced".
229
94b24c74
SM
2302020-12-04 Simon Marchi <simon.marchi@efficios.com>
231
232 * linux-tdep.c (get_linux_inferior_data): Add inferior
233 parameter.
234 (linux_vsyscall_range): Pass current inferior.
235
bab37966
SM
2362020-12-04 Simon Marchi <simon.marchi@efficios.com>
237
238 * infrun.c (displaced_step_prepare_throw): Change return type to
239 displaced_step_prepare_status.
240 (displaced_step_prepare): Likewise.
241 (displaced_step_finish): Change return type to
242 displaced_step_finish_status.
243 (resume_1): Adjust.
244 (stop_all_threads): Adjust.
245 * displaced-stepping.h: New file.
246
7def77a1
SM
2472020-12-04 Simon Marchi <simon.marchi@efficios.com>
248
249 * infrun.c (displaced_step_fixup): Rename to...
250 (displaced_step_finish): ... this, update all callers.
251
1152d984
SM
2522020-12-04 Simon Marchi <simon.marchi@efficios.com>
253
254 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
255 (get_displaced_step_copy_insn_closure_by_addr): ... this.
256 Update all users.
257 (displaced_step_closure): Rename to...
258 (displaced_step_copy_insn_closure): ... this. Update all users.
259 (displaced_step_closure_up): Rename to...
260 (displaced_step_copy_insn_closure_up). ... this. Update all
261 users.
262 (buf_displaced_step_closure): Rename to...
263 (buf_displaced_step_copy_insn_closure): ... this. Update all
264 users.
265 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
266 (get_displaced_step_copy_insn_closure_by_addr): ... this.
267 Update all users.
268 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
269 (aarch64_displaced_step_copy_insn_closure): ... this. Update
270 all users.
271 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
272 (amd64_displaced_step_copy_insn_closure): ... this. Update all
273 users.
274 * arm-tdep.h (arm_displaced_step_closure): Rename to...
275 (arm_displaced_step_copy_insn_closure): ... this. Update all
276 users.
277 * i386-tdep.h (i386_displaced_step_closure): Rename to...
278 (i386_displaced_step_copy_insn_closure): ... this. Update all
279 users.
280 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
281 (ppc_displaced_step_copy_insn_closure): ... this. Update all
282 users.
283 * s390-tdep.c (s390_displaced_step_closure): Rename to...
284 (s390_displaced_step_copy_insn_closure): ... this. Update all
285 users.
286 * gdbarch.h: Re-generate.
287 * gdbarch.c: Re-generate.
288
28d5518b
SM
2892020-12-04 Simon Marchi <simon.marchi@efficios.com>
290
291 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
292 (global_thread_step_over_chain_enqueue): ... this. Update all
293 users.
294 (thread_step_over_chain_remove): Rename to...
295 (global_thread_step_over_chain_remove): ... this. Update all
296 users.
297 (thread_step_over_chain_next): Rename to...
298 (global_thread_step_over_chain_next): ... this. Update all
299 users.
300 * infrun.h (step_over_queue_head): Rename to...
301 (global_thread_step_over_chain_head): ... this. Update all
302 users.
303 * infrun.c (step_over_queue_head): Rename to...
304 (global_thread_step_over_chain_head): ... this. Update all
305 users.
306 * thread.c (step_over_chain_remove): Rename to...
307 (thread_step_over_chain_remove): ... this. Update all users.
308 (thread_step_over_chain_next): Rename to...
309 (global_thread_step_over_chain_next): ... this. Update all
310 users.
311 (thread_step_over_chain_enqueue): Rename to...
312 (global_thread_step_over_chain_enqueue): ... this. Update all
313 users.
314 (thread_step_over_chain_remove): Rename to...
315 (global_thread_step_over_chain_remove): ... this. Update all
316 users.
317
f5f01699
SM
3182020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
319
320 * infrun.c (get_displaced_stepping_state): Remove, change
321 callers to access the field directly.
322
c0aba012
SM
3232020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
324
325 * infrun.c (handle_inferior_event): Restore displaced step
326 buffer bytes in child process when handling fork, even if fork
327 happened in another thread than the displaced-stepping one.
328
3b7a962d
SM
3292020-12-04 Simon Marchi <simon.marchi@efficios.com>
330
331 * infrun.c (infrun_inferior_execd): New function.
332 (_initialize_infrun): Attach inferior_execd observer.
333
42a4fec5
SM
3342020-12-04 Simon Marchi <simon.marchi@efficios.com>
335
336 * observable.h (inferior_execd): Declare new observable.
337 * observable.c (inferior_execd): Declare new observable.
338 * infrun.c (follow_exec): Notify inferior_execd observer.
339 * jit.c (jit_inferior_created_hook): Make static.
340 (_initialize_jit): Register inferior_execd observer.
341 * jit.h (jit_inferior_created_hook): Remove declaration.
342 * solib.c (_initialize_solib): Register inferior_execd observer.
343
aafdfb4e
TV
3442020-12-04 Tom de Vries <tdevries@suse.de>
345
346 PR gdb/27003
347 * completer.c (completion_tracker::build_completion_result): Don't
348 access match_list[0][-1].
349
f99b5177
TT
3502020-12-04 Tom Tromey <tromey@adacore.com>
351
352 * linespec.c (struct linespec_token): Rename; remove typedef.
353 * guile/scm-block.c (struct block_smob): Remove typedef.
354 (struct block_syms_progress_smob): Likewise.
355 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
356 * guile/scm-symtab.c (symtab_smob): Remove typedef.
357 (struct sal_smob): Remove typedef.
358 * guile/scm-param.c (struct param_smob): Remove typedef.
359 * guile/scm-progspace.c (struct pspace_smob): Rename.
360 * guile/scm-objfile.c (struct objfile_smob): Rename.
361 * guile/scm-iterator.c (struct iterator_smob): Rename.
362 * guile/scm-frame.c (struct frame_smob): Rename.
363 * guile/scm-arch.c (struct arch_smob): Rename.
364 * guile/scm-type.c (struct field_smob): Remove typedef.
365 (struct type_smob): Rename.
366 * guile/scm-cmd.c (struct command_smob): Remove typedef.
367 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
368 * guile/scm-value.c (struct value_smob): Remove typedef.
369 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
370 * guile/guile-internal.h (struct scheme_variable)
371 (struct scheme_function, struct scheme_integer_constant)
372 (struct gdb_smob, struct chained_gdb_smob)
373 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
374 (objfile_smob, pspace_smob, type_smob): Remove typedef.
375 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
376 (struct pretty_printer_worker_smob): Remove typedef.
377 * guile/scm-exception.c (struct exception_smob): Remove typedef.
378 * python/py-block.c (struct block_object): Remove typedef.
379 (block_syms_iterator_object): Update.
380 (set_block): Update.
381 (block_syms_iterator_object): Remove typedef.
382 * python/py-inferior.c (struct membuf_object): Remove typedef.
383 * python/py-symtab.c (struct symtab_object): Remove typedef.
384 (set_symtab): Update.
385 (sal_object): Remove typedef.
386 (set_sal): Update.
387 * python/py-frame.c (frame_object): Remove typedef.
388 * python/py-record-btrace.c (struct btpy_list_object): Remove
389 typedef.
390 * python/py-arch.c (struct arch_object): Remove typedef.
391 * python/py-linetable.c (struct linetable_entry_object)
392 (linetable_object, struct ltpy_iterator_object): Remove typedef.
393 * python/py-events.h (eventregistry_object): Remove typedef.
394 (struct events_object): Remove typedef.
395 * python/python-internal.h (gdbpy_breakpoint_object): Remove
396 typedef.
397 (thread_object): Remove typedef.
398 * python/py-progspace.c (pspace_object): Remove typedef.
399 * python/py-value.c (struct value_object): Remove typedef.
400 * python/py-record.h (recpy_record_object): Remove typedef.
401 (struct recpy_element_object): Remove typedef.
402 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
403 * python/py-objfile.c (objfile_object): Remove typedef.
404 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
405 * python/py-type.c (type_object): Remove typedef.
406 (typy_iterator_object): Update.
407 (set_type): Update.
408 (field_object): Remove typedef.
409 (typy_iterator_object): Remove typedef.
410 * python/py-registers.c (register_descriptor_iterator_object):
411 Remove typedef.
412 (struct register_descriptor_object)
413 (struct reggroup_iterator_object, struct reggroup_object): Remove
414 typedef.
415 * python/py-record.c (recpy_gap_object): Remove typedef.
416 * python/py-symbol.c (symbol_object): Remove typedef.
417 (set_symbol): Update.
418 * python/py-event.h (event_object): Remove typedef.
419 * python/py-param.c (parmpy_object): Remove typedef.
420 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
421 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
422 (unwind_info_object, struct cached_frame_info): Likewise.
423
91f87213
TT
4242020-12-04 Tom Tromey <tromey@adacore.com>
425
426 * value.c (value_internal_function_name): Make return type const.
427 * value.h (value_internal_function_name): Make return type const.
428
5382f971
LM
4292020-12-04 Luis Machado <luis.machado@linaro.org>
430
431 * aarch64-tdep.c (submask, bit, bits): Remove.
432 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
433 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
434 (aarch64_decode_cb, aarch64_decode_tb)
435 (aarch64_decode_ldr_literal): Use sbits to extract a signed
436 immediate.
437 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
438
b6a6aa07
TV
4392020-12-04 Tom de Vries <tdevries@suse.de>
440
441 PR tdep/27007
442 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
443
0bc2e38d
SM
4442020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
445
446 PR gdb/26876
447 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
448 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
449
25428040
AB
4502020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
451
452 * arch/riscv.c: Include 'rv32e-xregs.c'.
453 (riscv_create_target_description): Update to handle rv32e.
454 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
455 member variable.
456 <operator==>: Update to account for new field.
457 <hash>: Likewise.
458 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
459 * features/riscv/rv32e-xregs.c: Generated.
460 * features/riscv/rv32e-xregs.xml: New file.
461 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
462 file.
463 (riscv_debug_infcall): Likewise.
464 (riscv_debug_unwinder): Likewise.
465 (riscv_debug_gdbarch): Likewise.
466 (enum riscv_register_required_status): Delete.
467 (struct riscv_register_feature): Add constructor, delete default
468 constructor, copy, and assign constructors.
469 (struct riscv_register_feature::register_info) <required>: Delete.
470 <check>: Update comment and arguments.
471 (struct riscv_register_feature) <name>: Change to member function.
472 <prefer_first_name>: Delete.
473 <tdesc_feature>: New member function.
474 <registers>: Rename to...
475 <m_registers>: ...this.
476 <m_feature_name>: New member variable.
477 (riscv_register_feature::register_info::check): Update arguments.
478 (riscv_xreg_feature): Rewrite as class, create a single static
479 instance of the class.
480 (riscv_freg_feature): Likewise.
481 (riscv_virtual_feature): Likewise.
482 (riscv_csr_feature): Likewise.
483 (riscv_create_csr_aliases): Has become a member function inside
484 riscv_csr_feature class.
485 (riscv_abi_embedded): New function definition.
486 (riscv_register_name): Adjust to use new feature objects.
487 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
488 and adjust available argument registers.
489 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
490 (riscv_check_tdesc_feature): Delete.
491 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
492 (riscv_gdbarch_init): Delete target description checking code, and
493 instead call to the new feature objects to perform the checks.
494 Reorder handling of no abi information case, allows small code
495 simplification.
496 (_initialize_riscv_tdep): Remove call, this is now done in the
497 riscv_csr_feature constructor.
498 * riscv-tdep.h (riscv_abi_embedded): Declare.
499
533b2ae0
AB
5002020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
501
502 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
503 DECLARE_CSR_ALIAS.
504
e4502042
AB
5052020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
506
507 * riscv-tdep.c (riscv_is_unknown_csr): New function,
508 implementation moved from riscv_register_reggroup_p.
509 (riscv_register_reggroup_p): Update group handling for unknown
510 CSRs.
511
2bf3b79d
SDJ
5122020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
513
514 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
515 (dwarf2_get_dwz_file): Convert 'filename' to a
516 std::string. Use dwz_search_other_debugdirs to search for DWZ
517 files in the debug-file-directories provided by the user as well.
518
77bf7e99
TT
5192020-12-01 Tom Tromey <tom@tromey.com>
520
521 * parse.c (expr_builder::expr_builder): Initialize expout.
522 (expr_builder::release): Use expression::resize.
523 (expression::expression, expression::~expression)
524 (expression::resize): New methods.
525 (write_exp_elt): Use expression::resize.
526 (prefixify_expression): Update.
527 (increase_expout_size): Use expression::resize.
528 * expression.h (struct expression): Add constructor, destructor.
529 <resize>: New method.
530 (expression_up): Change type.
531
539d71e8
RA
5322020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
533 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
534 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
535 set region.
536
7ce05d21
TV
5372020-11-30 Tom de Vries <tdevries@suse.de>
538
539 PR symtab/26905
540 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
541 is_reference parameter.
542 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
543
88b91969
TT
5442020-11-30 Tom Tromey <tom@tromey.com>
545
546 * rust-lang.c (rust_op_name): Remove.
547 (exp_descriptor_rust): Update.
548 * parser-defs.h (op_name_standard): Don't declare.
549 (struct exp_descriptor) <op_name>: Remove.
550 * parse.c (exp_descriptor_standard): Update.
551 * opencl-lang.c (exp_descriptor_opencl): Update.
552 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
553 * f-lang.c (op_name_f): Remove.
554 (f_language::exp_descriptor_tab): Update.
555 * expression.h (op_name): Update.
556 * expprint.c (op_name): Rewrite.
557 (op_name_standard): Remove.
558 (dump_raw_expression, dump_subexp): Update.
559 * c-lang.c (exp_descriptor_c): Update.
560 * ax-gdb.c (gen_expr): Update.
561 * ada-lang.c (ada_op_name): Remove.
562 (ada_exp_descriptor): Update.
563
1cd49c43
TT
5642020-11-30 Tom Tromey <tom@tromey.com>
565
566 * eval.c (init_array_element): Remove.
567 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
568
96fb9086
HD
5692020-11-29 Hannes Domani <ssbssa@yahoo.de>
570
571 PR tui/26973
572 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
573 static locator win info.
574
b4132322
AR
5752020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
576
577 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
578 program.
579
3df8c6af
AB
5802020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
581
582 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
583 is always initialized.
584
0ae45769
RA
5852020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
586 * MAINTAINERS (Write After Approval): Add myself.
587
239ca5e4
PW
5882020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
589
590 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
591 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
592
cbfa382a
TT
5932020-11-25 Tom Tromey <tom@tromey.com>
594
595 * eval.c (evaluate_subexp_standard): Remove unnecessary
596 variables.
597
af30c400
TT
5982020-11-25 Tom Tromey <tom@tromey.com>
599
600 * d-lang.c: Include parser-defs.h.
601 * rust-lang.c: Include parser-defs.h.
602 * c-lang.h: Do not include parser-defs.h.
603
1c64f6cb
SM
6042020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
605
606 * regcache.h (struct cached_reg): Remove typedef.
607
2c20a601
JB
6082020-11-24 Joel Brobecker <brobecker@adacore.com>
609
610 * README: Fix the URL of the MPFR library.
611
c609df64
JB
6122020-11-24 Joel Brobecker <brobecker@adacore.com>
613
614 * README: Document the --with-libgmp-prefix configure option.
615
fa123c32
JB
6162020-11-24 Joel Brobecker <brobecker@adacore.com>
617
618 * NEWS: Add entry documenting support for DWARF-based fixed
619 point types.
620
0fb8bb02
JB
6212020-11-24 Joel Brobecker <brobecker@adacore.com>
622
623 * NEWS: Document that building GDB now requires GMP.
624
4afa9fd9
JB
6252020-11-24 Joel Brobecker <brobecker@adacore.com>
626
627 * typeprint.c (print_type_scalar): Add handling of
628 TYPE_CODE_FIXED_POINT.
629
af619ce9
JB
6302020-11-24 Joel Brobecker <brobecker@adacore.com>
631
632 * valarith.c (fixed_point_binop): Replace the
633 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
634 users accordingly.
635
e6fcee3a
JB
6362020-11-24 Joel Brobecker <brobecker@adacore.com>
637
638 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
639 replacing fixed_point_scaling_factor. All callers updated
640 throughout this project.
641 (fixed_point_scaling_factor): Delete declaration.
642 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
643 fixed_point_scaling_factor. Adjust implementation accordingly.
644
d19937a7
JB
6452020-11-24 Joel Brobecker <brobecker@adacore.com>
646
647 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
648 replacing the fixed_point_type_base_type function. All callers
649 updated throughout this project.
650 (fixed_point_type_base_type): Remove declaration.
651 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
652 fixed_point_type_base_type. Adjust implementation accordingly.
653
2a12c336
JB
6542020-11-24 Joel Brobecker <brobecker@adacore.com>
655
656 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
657 New methods.
658 (INIT_FIXED_POINT_SPECIFIC): Adjust.
659 (TYPE_FIXED_POINT_INFO): Delete macro.
660 (allocate_fixed_point_type_info): Change return type to void.
661 * gdbtypes.c (copy_type_recursive): Replace the use of
662 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
663 (fixed_point_scaling_factor): Likewise.
664 (allocate_fixed_point_type_info): Change return type to void.
665 Adjust implementation accordingly.
666 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
667 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
668
c9f0b43f
JB
6692020-11-24 Joel Brobecker <brobecker@adacore.com>
670
671 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
672 into one single gdb::array_view parameter.
673 (gdb_mpz::write): Likewise.
674 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
675 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
676 into one single gdb::array_view parameter.
677 Adjust implementation accordingly.
678 (gdb_mpz::write): Likewise.
679 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
680 * unittests/gmp-utils-selftests.c: Adapt following changes above.
681 * valarith.c, valops.c, valprint.c, value.c: Likewise.
682
987b6703
JB
6832020-11-24 Joel Brobecker <brobecker@adacore.com>
684
685 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
686 Change return type to std::string. Update all callers.
687 * gmp-utils.c (gmp_string_printf): Likewise.
688
4fbb7cce
JB
6892020-11-24 Joel Brobecker <brobecker@adacore.com>
690
691 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
692 instead of mpq_set_ui to initialize our GMP rational.
693
d6ab69dd
TV
6942020-11-23 Tom de Vries <tdevries@suse.de>
695
696 * debuginfod-support.c (debuginfod_source_query)
697 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
698
dab72643
TT
6992020-11-21 Tom Tromey <tom@tromey.com>
700
701 * breakpoint.c (watchpoint_exp_is_const): Return bool.
702
c0ad05d5
SM
7032020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
704
705 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
706 Pass 2.0 to pow.
707 (gdb_mpz_write_all_from_small): Likewise.
708
a43b29c9
SM
7092020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
710
711 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
712 of abs.
713
ae41200b
NA
7142020-11-20 Nick Alcock <nick.alcock@oracle.com>
715
716 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
717 ctf_arc_open_by_name.
718
139633c3
NA
7192020-11-20 Nick Alcock <nick.alcock@oracle.com>
720
721 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
722 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
723
cbbcd7a7
PA
7242020-11-20 Pedro Alves <pedro@palves.net>
725
726 * language.c (language_arch_info::lookup_primitive_type): Use
727 gdb::function_view instead of gdb::function.
728 (template language_lookup_primitive_type): Rename to ...
729 (language_lookup_primitive_type_1): ... this, and make static.
730 (language_lookup_primitive_type(const struct language_defn *,
731 struct gdbarch *, const char *): Make non-template.
732 (language_lookup_primitive_type(const struct language_defn *,
733 struct gdbarch *, std::function<bool (struct type *)>): Make
734 non-template and use gdb::function_view.
735 * language.h (language_arch_info::lookup_primitive_type): Use
736 gdb::function_view instead of std::function.
737 (language_lookup_primitive_type): No longer template.
738 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
739 lambda instead of a std::function.
740
d5ef21c3
AA
7412020-11-19 Andreas Arnez <arnez@linux.ibm.com>
742
743 PR tdep/26916
744 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
745 and STOCFH.
746
a5adb8f3
SM
7472020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
748
749 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
750
70125a45
SM
7512020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
752
753 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
754 in `loop_cb` parameter.
755 * gdbarch.c: Re-generate.
756 * gdbarch.h: Re-generate.
757 * arch-utils.c (default_read_core_file_mappings): Remove `other`
758 parameter.
759 * arch-utils.h (default_read_core_file_mappings): Likewise.
760 * corelow.c (core_target::build_file_mappings): Likewise.
761 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
762 (linux_core_info_proc_mappings): Likewise.
763
a5c641b5
AB
7642020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
765
766 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
767 * NEWS: Mention new options.
768 * f-array-walker.h: New file.
769 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
770 (repack_array_slices): New static global.
771 (show_repack_array_slices): New function.
772 (fortran_array_slicing_debug): New static global.
773 (show_fortran_array_slicing_debug): New function.
774 (value_f90_subarray): Delete.
775 (skip_undetermined_arglist): Delete.
776 (class fortran_array_repacker_base_impl): New class.
777 (class fortran_lazy_array_repacker_impl): New class.
778 (class fortran_array_repacker_impl): New class.
779 (fortran_value_subarray): Complete rewrite.
780 (set_fortran_list): New static global.
781 (show_fortran_list): Likewise.
782 (_initialize_f_language): Register new commands.
783 (fortran_adjust_dynamic_array_base_address_hack): New function.
784 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
785 Declare.
786 * f-valprint.c: Include 'f-array-walker.h'.
787 (class fortran_array_printer_impl): New class.
788 (f77_print_array_1): Delete.
789 (f77_print_array): Delete.
790 (fortran_print_array): New.
791 (f_value_print_inner): Update to call fortran_print_array.
792 * gdbtypes.c: Include 'f-lang.h'.
793 (resolve_dynamic_type_internal): Call
794 fortran_adjust_dynamic_array_base_address_hack.
795
a15a5258
AB
7962020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
797
798 * breakpoint.c (struct watch_options): New struct.
799 (watch_option_defs): New static global.
800 (make_watch_options_def_group): New function.
801 (watch_maybe_just_location): Convert option parsing.
802 (watch_command_completer): New function.
803 (_initialize_breakpoint): Build help text using options mechanism.
804
2e362716
AB
8052020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
806
807 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
808 (watch_command_1): Update parameter types. Convert locals to
809 bool.
810 (watch_command_wrapper): Change parameter type.
811 (watch_maybe_just_location): Change locals to bool.
812 (rwatch_command_wrapper): Update parameter type.
813 (awatch_command_wrapper): Update parameter type.
814 * breakpoint.h (watch_command_wrapper): Change parameter type.
815 (rwatch_command_wrapper): Update parameter type.
816 (awatch_command_wrapper): Update parameter type.
817 * eval.c (fetch_subexp_value): Change parameter type.
818 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
819 'false' not '0'.
820 * value.h (fetch_subexp_value): Change parameter type in
821 declaration.
822
b3ff61f8
AB
8232020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
824
825 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
826 skip_spaces.
827
5b7d45d3
KS
8282020-11-18 Keith Seitz <keiths@redhat.com>
829
830 * linux-tdep.c (dump_note_entry_p): Return true instead of
831 checking `filename'.
832
c44191f8
TV
8332020-11-18 Tom de Vries <tdevries@suse.de>
834
835 * debuginfod-support.c (debuginfod_source_query)
836 (debuginfod_debuginfo_query): Also do early exit if
837 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
838
5d8254e1
TV
8392020-11-18 Tom de Vries <tdevries@suse.de>
840
841 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
842 warning.
843
584903d3
SM
8442020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
845
846 * gdbtypes.h (get_array_bounds): Return bool, adjust some
847 callers. Move doc here.
848 * gdbtypes.c (get_array_bounds): Return bool
849
6f2643db
AB
8502020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
851
852 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
853 assert.
854 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
855 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
856 case to the default.
857
037d7135
AB
8582020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
859
860 * printcmd.c: Include 'safe-ctype.c'.
861 (skip_over_slash_fmt): New function.
862 (print_command_completer): Call skip_over_slash_fmt.
863 (display_and_x_command_completer): New function.
864 (_initialize_printcmd): Add command completion for 'x' and
865 'display'.
866
2b3cb400
PA
8672020-11-16 Pedro Alves <pedro@palves.net>
868
869 * frame.c (get_prev_frame): Move get_frame_id call from here ...
870 (get_prev_frame_always_1): ... to here.
871 * inline-frame.c (inline_frame_this_id): Mention
872 get_prev_frame_always_1 in comment.
873
b74dbc20
JB
8742020-11-15 Joel Brobecker <brobecker@adacore.com>
875
876 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
877 handling.
878 (value_less): Add fixed-point handling.
879
0a12719e
JB
8802020-11-15 Joel Brobecker <brobecker@adacore.com>
881
882 * eval.c (binop_promote): Add fixed-point type handling.
883 * valarith.c (fixed_point_binop): New function.
884 (scalar_binop): Add fixed-point type handling.
885 (value_neg): Add fixed-point type handling.
886 * valops.c (value_cast_to_fixed_point): New function.
887 (value_cast): Add fixed-point type handling.
888
0c9150e4
JB
8892020-11-15 Joel Brobecker <brobecker@adacore.com>
890
891 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
892 range types.
893 * c-typeprint.c (c_type_print_varspec_prefix)
894 (c_type_print_varspec_suffix, c_type_print_base_1): Add
895 TYPE_CODE_FIXED_POINT handling.
896 * p-typeprint.c (pascal_type_print_varspec_prefix)
897 (pascal_type_print_varspec_suffix): Likewise.
898 * typeprint.c (print_type_fixed_point): New function.
899 * typeprint.h (print_type_fixed_point): Add declaration.
900
b26daff9
JB
9012020-11-15 Joel Brobecker <brobecker@adacore.com>
902
903 * printcmd.c (print_scalar_formatted): Add fixed-point type
904 handling when options->format is set.
905
09584414
JB
9062020-11-15 Joel Brobecker <brobecker@adacore.com>
907
908 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
909 * dwarf2/read.c (get_dwarf2_rational_constant)
910 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
911 (has_zero_over_zero_small_attribute): New functions.
912 read_base_type, set_die_type): Add fixed-point type handling.
913 * gdb-gdb.py.in: Add fixed-point type handling.
914 * gdbtypes.c: #include "gmp-utils.h".
915 (create_range_type, set_type_code): Add fixed-point type handling.
916 (init_fixed_point_type): New function.
917 (is_integral_type, is_scalar_type): Add fixed-point type handling.
918 (print_fixed_point_type_info): New function.
919 (recursive_dump_type, copy_type_recursive): Add fixed-point type
920 handling.
921 (fixed_point_type_storage): New typedef.
922 (fixed_point_objfile_key): New static global.
923 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
924 (fixed_point_type_base_type, fixed_point_scaling_factor): New
925 functions.
926 * gdbtypes.h: #include "gmp-utils.h".
927 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
928 (union type_specific) <fixed_point_info>: New field.
929 (struct fixed_point_type_info): New struct.
930 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
931 (init_fixed_point_type, is_fixed_point_type)
932 (fixed_point_type_base_type, fixed_point_scaling_factor)
933 (allocate_fixed_point_type_info): Add declarations.
934 * valprint.c (generic_val_print_fixed_point): New function.
935 (generic_value_print): Add fixed-point type handling.
936 * value.c (value_as_address, unpack_long): Add fixed-point type
937 handling.
938
e55c6530
JB
9392020-11-15 Joel Brobecker <brobecker@adacore.com>
940
941 * utils.h (uinteger_pow): Add declaration.
942 * utils.c (uinteger_pow): Moved here (without changes)...
943 * valarith.c (uinteger_pow): ... from here.
944
b34c74ab
JB
9452020-11-15 Joel Brobecker <brobecker@adacore.com>
946
40d9d2fd 947 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
948 * unittests/gmp-utils-selftests.c: New file.
949 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
950 unittests/gmp-utils-selftests.c.
951 (COMMON_SFILES) Add gmp-utils.c.
952 (HFILES_NO_SRCDIR): Add gmp-utils.h.
953
1b4ac058
JB
9542020-11-15 Joel Brobecker <brobecker@adacore.com>
955
956 * configure.ac: Generate an error if a usable GMP library
957 could not be found.
958 * configure: Regenerate.
959
2c947d9b
JB
9602020-11-15 Joel Brobecker <brobecker@adacore.com>
961
962 * configure.ac: Add support for --with-libgmp-prefix.
963 * Makefile.in (LIBGMP): New variable.
964 (CLIBS): Include $(LIBGMP).
965 * configure, config.in: Regenerate
966
9dd02fc0
AB
9672020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
968
969 PR cli/26879
970 * f-exp.y (COMPLETE): New token.
971 (exp): Two new rules for tab-completion.
972 (saw_name_at_eof): New static global.
973 (last_was_structop): Likewise.
974 (yylex): Set new variables, and return COMPLETE token at the end
975 of the input stream in some cases.
976
758cb810
TT
9772020-11-14 Tom Tromey <tom@tromey.com>
978
979 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
980
749065b7
TT
9812020-11-14 Tom Tromey <tom@tromey.com>
982
983 * opencl-lang.c (opencl_component_ref): Make "comps" const.
984
2c5b1849
SM
9852020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
986
987 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
988
e8b2f0d9
TT
9892020-11-13 Tom Tromey <tom@tromey.com>
990
991 * c-lang.c (convert_ucn, convert_octal, convert_hex)
992 (convert_escape, parse_one_string): Constify.
993
25f4c262
KS
9942020-11-13 Keith Seitz <keiths@redhat.com>
995
996 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
997 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
998 outside of ELF segments" warning for debugin
999
9d3ab915
KS
10002020-11-13 Keith Seitz <keiths@redhat.com>
1001
1002 PR gdb/23034
1003 * elfread.c (elf_symfile_segments): Output a BFD file name
1004 for the "Loadable section ... outside of ELF segments" warning.
1005
9ecab40c
SM
10062020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1007
1008 PR gdb/26835
1009 * arm-tdep.c (class arm_instruction_reader): New.
1010 (target_arm_instruction_reader): New.
1011 (arm_analyze_prologue): Add instruction reader parameter and use
1012 it. Use arm_expand_immediate.
1013 (class target_arm_instruction_reader): Adjust.
1014 (arm_skip_prologue): Adjust.
1015 (arm_expand_immediate): New.
1016 (arm_scan_prologue): Adjust.
1017 (arm_analyze_prologue_test): New.
1018 (class test_arm_instruction_reader): New.
1019
5a7cf527
AB
10202020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1021
1022 * f-lang.c (fortran_argument_convert): Add declaration. Add
1023 header comment, taken from f-lang.h. Make static.
1024 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1025 (fortran_argument_convert): Delete declaration.
1026
7bea47f0
AB
10272020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * ada-exp.y (find_primitive_type): Make parameter const.
1030 * ada-lang.c (enum ada_primitive_types): Delete.
1031 (ada_language::language_arch_info): Update.
1032 * c-lang.c (enum c_primitive_types): Delete.
1033 (c_language_arch_info): Update.
1034 (enum cplus_primitive_types): Delete.
1035 (cplus_language::language_arch_info): Update.
1036 * d-lang.c (enum d_primitive_types): Delete.
1037 (d_language::language_arch_info): Update.
1038 * f-lang.c (enum f_primitive_types): Delete.
1039 (f_language::language_arch_info): Update.
1040 * go-lang.c (enum go_primitive_types): Delete.
1041 (go_language::language_arch_info): Update.
1042 * language.c (auto_or_unknown_language::language_arch_info):
1043 Update.
1044 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1045 (language_string_char_type): Add header comment, call function in
1046 language_arch_info.
1047 (language_bool_type): Likewise
1048 (language_arch_info::bool_type): Define.
1049 (language_lookup_primitive_type_1): Delete.
1050 (language_lookup_primitive_type): Rewrite as a templated function
1051 to call function in language_arch_info, then instantiate twice.
1052 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1053 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1054 (language_arch_info::lookup_primitive_type): Define twice with
1055 different signatures.
1056 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1057 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1058 member function in language_arch_info.
1059 * language.h (language_arch_info): Complete rewrite.
1060 (language_lookup_primitive_type): Make templated.
1061 * m2-lang.c (enum m2_primitive_types): Delete.
1062 (m2_language::language_arch_info): Update.
1063 * opencl-lang.c (OCL_P_TYPE): Delete.
1064 (enum opencl_primitive_types): Delete.
1065 (opencl_type_data): Delete.
1066 (builtin_opencl_type): Delete.
1067 (lookup_opencl_vector_type): Update.
1068 (opencl_language::language_arch_info): Update, lots of content
1069 moved from...
1070 (build_opencl_types): ...here. This function is now deleted.
1071 (_initialize_opencl_language): Delete.
1072 * p-lang.c (enum pascal_primitive_types): Delete.
1073 (pascal_language::language_arch_info): Update.
1074 * rust-lang.c (enum rust_primitive_types): Delete.
1075 (rust_language::language_arch_info): Update.
1076
bf6e5d01
SM
10772020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1078
1079 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1080 dwarf2_queue_guard.
1081
1350c3b4
SM
10822020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1083
1084 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1085 comment.
1086
6f738b01
SM
10872020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1088
1089 * dwarf2/read.c (dwarf_read_debug_printf,
1090 dwarf_read_debug_printf_v): New macros, use throughout the file.
1091
10c19fad
SV
10922020-11-12 Shahab Vahedi <shahab@synopsys.com>
1093
10806efd 1094 PR tdep/27015
10c19fad
SV
1095 * arc-linux-tdep.c (collect_register): Populate "eret" by
1096 "pc" value from the regcache when asked for "pc" value.
1097
1f2624a3
TT
10982020-11-12 Tom Tromey <tom@tromey.com>
1099
1100 PR rust/26799:
1101 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1102 exist.
1103
ab33b152
AB
11042020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * features/Makefile (XMLTOC): Add rx.xml.
1107 (FEATURE_XMLFILES): Remove rx.xml.
1108 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1109 * features/rx.c: Regenerate.
1110 * features/rx.xml: Wrap in `target` tags, and reindent.
1111 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1112 structure.
1113 (maint_print_c_tdesc_opt_def): New typedef.
1114 (maint_print_c_tdesc_opt_defs): New static global.
1115 (make_maint_print_c_tdesc_options_def_group): New function.
1116 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1117 print single feature C file for target descriptions containing a
1118 single feature.
1119 (maint_print_c_tdesc_cmd_completer): New function.
1120 (_initialize_target_descriptions): Update call to register command
1121 completer, and include command line flag in help text.
1122
550820e1
AB
11232020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1124
1125 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1126 numbers.
1127 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1128 enum values.
1129
baf20f76
TT
11302020-11-10 Tom Tromey <tom@tromey.com>
1131
1132 * value.h (internalvar_name): Update.
1133 * value.c (internalvar_name): Make return type const.
1134
caaece0e
TT
11352020-11-10 Tom Tromey <tom@tromey.com>
1136
1137 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1138 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1139 const.
1140
8e20b4be
TT
11412020-11-10 Tom Tromey <tom@tromey.com>
1142
1143 * objc-lang.h (value_nsstring): Update.
1144 * objc-lang.c (value_nsstring): Make "ptr" const.
1145
86775fab
AB
11462020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1147
1148 * expprint.c (print_subexp_funcall): Increment expression position
1149 after reading argument count.
1150 * f-lang.c (print_subexp_f): Skip over opcode before calling
1151 common function.
1152 (dump_subexp_body_f): Likewise.
1153
3fed4c0b
RG
11542020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1155
1156 PR python/26832
1157 * configure: Regenerate.
1158 * configure.ac: Check for python modules ctypes instead of
1159 itertools.
1160
ac3d4064
PA
11612020-11-06 Pedro Alves <pedro@palves.net>
1162
1163 * macroexp.c (struct macro_buffer): Split in two classes. Add
1164 uses adjusted.
1165 (struct shared_macro_buffer): New, factored out from struct
1166 macro_buffer.
1167 (struct growable_macro_buffer): New, factored out from struct
1168 macro_buffer.
1169 (set_token, get_comment, get_identifier, get_pp_number)
1170 (get_character_constant, get_string_literal, get_punctuator)
1171 (get_next_token_for_substitution): Constify parameters.
1172 (substitute_args): Constify locals.
1173
606decb2
TT
11742020-11-05 Tom Tromey <tom@tromey.com>
1175
1176 * dwarf2/read.c (read_cutu_die_from_dwo)
1177 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1178 (build_type_psymtabs_1): Update.
1179 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1180 parameter.
1181 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1182 Don't read section. Add assert.
1183
9c91c725
TT
11842020-11-04 Tom Tromey <tromey@adacore.com>
1185
1186 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1187
8d9fd3a1
TT
11882020-11-04 Tom Tromey <tromey@adacore.com>
1189
1190 * ada-typeprint.c (ada_print_type): Handle __T types.
1191
d8f62e84
TT
11922020-11-04 Tom Tromey <tromey@adacore.com>
1193
1194 * dwarf2/read.c (add_partial_symbol, process_die):
1195 Handle DW_TAG_array_type.
1196 (is_type_tag_for_partial): Add "lang" parameter.
1197 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1198
7ff5b937
TT
11992020-11-04 Tom Tromey <tromey@adacore.com>
1200
1201 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1202
10f6a3ad
TT
12032020-11-04 Tom Tromey <tromey@adacore.com>
1204
1205 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1206 array.
1207
b72795a8
TT
12082020-11-04 Tom Tromey <tromey@adacore.com>
1209
1210 * gdbtypes.c (update_static_array_size): Handle bit stride.
1211
24aa1b02
TT
12122020-11-04 Tom Tromey <tromey@adacore.com>
1213
1214 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1215
c9a28cbe
TT
12162020-11-04 Tom Tromey <tromey@adacore.com>
1217
1218 * ada-lang.c (ada_is_any_packed_array_type): New function.
1219 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1220
57567375
TT
12212020-11-04 Tom Tromey <tromey@adacore.com>
1222
1223 * dwarf2/read.c (recognize_bound_expression)
1224 (quirk_ada_thick_pointer): New functions.
1225 (read_array_type): Call quirk_ada_thick_pointer.
1226 (set_die_type): Add "skip_data_location" parameter.
1227 (quirk_ada_thick_pointer): New function.
1228 (process_structure_scope): Call quirk_ada_thick_pointer.
1229 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1230 (decode_packed_array_bitsize): Handle thick pointers without
1231 parallel types.
1232 (ada_is_gnat_encoded_packed_array_type): Rename from
1233 ada_is_packed_array_type.
1234 (ada_is_constrained_packed_array_type): Update.
1235 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1236 (ada_value_print_1): Use ada_get_decoded_value.
1237
a7400e44
TT
12382020-11-04 Tom Tromey <tromey@adacore.com>
1239
1240 * ada-lang.c (recursively_update_array_bitsize): New function.
1241 (decode_constrained_packed_array_type): Call it.
1242
75fd6a26
TT
12432020-11-04 Tom Tromey <tromey@adacore.com>
1244
1245 * ada-lang.c (to_fixed_array_type): Error if
1246 decode_constrained_packed_array_type returns NULL.
1247
93f9561e
TT
12482020-11-04 Tom Tromey <tromey@adacore.com>
1249
1250 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1251
257e02d8
TT
12522020-11-02 Tom Tromey <tromey@adacore.com>
1253
1254 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1255 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1256 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1257 * amd64-ravenscar-thread.c: New file.
1258 * amd64-ravenscar-thread.h: New file.
1259 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1260 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1261
74d877e5
AB
12622020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1263
1264 * main.c (execute_cmdargs): New function.
1265 (captured_main_1): Make use of execute_cmdargs.
1266
64aaad63
AB
12672020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * NEWS: Mention changes to config file search path.
1270 * main.c
1271
5b3d3560
TT
12722020-11-02 Tom Tromey <tromey@adacore.com>
1273
1274 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1275 (python_GdbModuleDef): Move earlier. Now static.
1276 (do_start_initialization): Consolidate some IS_PY3K blocks.
1277
dda83cd7
SM
12782020-11-02 Simon Marchi <simon.marchi@efficios.com>
1279
1280 * aarch64-linux-tdep.c: Fix indentation.
1281 * aarch64-ravenscar-thread.c: Fix indentation.
1282 * aarch64-tdep.c: Fix indentation.
1283 * aarch64-tdep.h: Fix indentation.
1284 * ada-lang.c: Fix indentation.
1285 * ada-lang.h: Fix indentation.
1286 * ada-tasks.c: Fix indentation.
1287 * ada-typeprint.c: Fix indentation.
1288 * ada-valprint.c: Fix indentation.
1289 * ada-varobj.c: Fix indentation.
1290 * addrmap.c: Fix indentation.
1291 * addrmap.h: Fix indentation.
1292 * agent.c: Fix indentation.
1293 * aix-thread.c: Fix indentation.
1294 * alpha-bsd-nat.c: Fix indentation.
1295 * alpha-linux-tdep.c: Fix indentation.
1296 * alpha-mdebug-tdep.c: Fix indentation.
1297 * alpha-nbsd-tdep.c: Fix indentation.
1298 * alpha-obsd-tdep.c: Fix indentation.
1299 * alpha-tdep.c: Fix indentation.
1300 * amd64-bsd-nat.c: Fix indentation.
1301 * amd64-darwin-tdep.c: Fix indentation.
1302 * amd64-linux-nat.c: Fix indentation.
1303 * amd64-linux-tdep.c: Fix indentation.
1304 * amd64-nat.c: Fix indentation.
1305 * amd64-obsd-tdep.c: Fix indentation.
1306 * amd64-tdep.c: Fix indentation.
1307 * amd64-windows-tdep.c: Fix indentation.
1308 * annotate.c: Fix indentation.
1309 * arc-tdep.c: Fix indentation.
1310 * arch-utils.c: Fix indentation.
1311 * arch/arm-get-next-pcs.c: Fix indentation.
1312 * arch/arm.c: Fix indentation.
1313 * arm-linux-nat.c: Fix indentation.
1314 * arm-linux-tdep.c: Fix indentation.
1315 * arm-nbsd-tdep.c: Fix indentation.
1316 * arm-pikeos-tdep.c: Fix indentation.
1317 * arm-tdep.c: Fix indentation.
1318 * arm-tdep.h: Fix indentation.
1319 * arm-wince-tdep.c: Fix indentation.
1320 * auto-load.c: Fix indentation.
1321 * auxv.c: Fix indentation.
1322 * avr-tdep.c: Fix indentation.
1323 * ax-gdb.c: Fix indentation.
1324 * ax-general.c: Fix indentation.
1325 * bfin-linux-tdep.c: Fix indentation.
1326 * block.c: Fix indentation.
1327 * block.h: Fix indentation.
1328 * blockframe.c: Fix indentation.
1329 * bpf-tdep.c: Fix indentation.
1330 * break-catch-sig.c: Fix indentation.
1331 * break-catch-syscall.c: Fix indentation.
1332 * break-catch-throw.c: Fix indentation.
1333 * breakpoint.c: Fix indentation.
1334 * breakpoint.h: Fix indentation.
1335 * bsd-uthread.c: Fix indentation.
1336 * btrace.c: Fix indentation.
1337 * build-id.c: Fix indentation.
1338 * buildsym-legacy.h: Fix indentation.
1339 * buildsym.c: Fix indentation.
1340 * c-typeprint.c: Fix indentation.
1341 * c-valprint.c: Fix indentation.
1342 * c-varobj.c: Fix indentation.
1343 * charset.c: Fix indentation.
1344 * cli/cli-cmds.c: Fix indentation.
1345 * cli/cli-decode.c: Fix indentation.
1346 * cli/cli-decode.h: Fix indentation.
1347 * cli/cli-script.c: Fix indentation.
1348 * cli/cli-setshow.c: Fix indentation.
1349 * coff-pe-read.c: Fix indentation.
1350 * coffread.c: Fix indentation.
1351 * compile/compile-cplus-types.c: Fix indentation.
1352 * compile/compile-object-load.c: Fix indentation.
1353 * compile/compile-object-run.c: Fix indentation.
1354 * completer.c: Fix indentation.
1355 * corefile.c: Fix indentation.
1356 * corelow.c: Fix indentation.
1357 * cp-abi.h: Fix indentation.
1358 * cp-namespace.c: Fix indentation.
1359 * cp-support.c: Fix indentation.
1360 * cp-valprint.c: Fix indentation.
1361 * cris-linux-tdep.c: Fix indentation.
1362 * cris-tdep.c: Fix indentation.
1363 * darwin-nat-info.c: Fix indentation.
1364 * darwin-nat.c: Fix indentation.
1365 * darwin-nat.h: Fix indentation.
1366 * dbxread.c: Fix indentation.
1367 * dcache.c: Fix indentation.
1368 * disasm.c: Fix indentation.
1369 * dtrace-probe.c: Fix indentation.
1370 * dwarf2/abbrev.c: Fix indentation.
1371 * dwarf2/attribute.c: Fix indentation.
1372 * dwarf2/expr.c: Fix indentation.
1373 * dwarf2/frame.c: Fix indentation.
1374 * dwarf2/index-cache.c: Fix indentation.
1375 * dwarf2/index-write.c: Fix indentation.
1376 * dwarf2/line-header.c: Fix indentation.
1377 * dwarf2/loc.c: Fix indentation.
1378 * dwarf2/macro.c: Fix indentation.
1379 * dwarf2/read.c: Fix indentation.
1380 * dwarf2/read.h: Fix indentation.
1381 * elfread.c: Fix indentation.
1382 * eval.c: Fix indentation.
1383 * event-top.c: Fix indentation.
1384 * exec.c: Fix indentation.
1385 * exec.h: Fix indentation.
1386 * expprint.c: Fix indentation.
1387 * f-lang.c: Fix indentation.
1388 * f-typeprint.c: Fix indentation.
1389 * f-valprint.c: Fix indentation.
1390 * fbsd-nat.c: Fix indentation.
1391 * fbsd-tdep.c: Fix indentation.
1392 * findvar.c: Fix indentation.
1393 * fork-child.c: Fix indentation.
1394 * frame-unwind.c: Fix indentation.
1395 * frame-unwind.h: Fix indentation.
1396 * frame.c: Fix indentation.
1397 * frv-linux-tdep.c: Fix indentation.
1398 * frv-tdep.c: Fix indentation.
1399 * frv-tdep.h: Fix indentation.
1400 * ft32-tdep.c: Fix indentation.
1401 * gcore.c: Fix indentation.
1402 * gdb_bfd.c: Fix indentation.
1403 * gdbarch.sh: Fix indentation.
1404 * gdbarch.c: Re-generate
1405 * gdbarch.h: Re-generate.
1406 * gdbcore.h: Fix indentation.
1407 * gdbthread.h: Fix indentation.
1408 * gdbtypes.c: Fix indentation.
1409 * gdbtypes.h: Fix indentation.
1410 * glibc-tdep.c: Fix indentation.
1411 * gnu-nat.c: Fix indentation.
1412 * gnu-nat.h: Fix indentation.
1413 * gnu-v2-abi.c: Fix indentation.
1414 * gnu-v3-abi.c: Fix indentation.
1415 * go32-nat.c: Fix indentation.
1416 * guile/guile-internal.h: Fix indentation.
1417 * guile/scm-cmd.c: Fix indentation.
1418 * guile/scm-frame.c: Fix indentation.
1419 * guile/scm-iterator.c: Fix indentation.
1420 * guile/scm-math.c: Fix indentation.
1421 * guile/scm-ports.c: Fix indentation.
1422 * guile/scm-pretty-print.c: Fix indentation.
1423 * guile/scm-value.c: Fix indentation.
1424 * h8300-tdep.c: Fix indentation.
1425 * hppa-linux-nat.c: Fix indentation.
1426 * hppa-linux-tdep.c: Fix indentation.
1427 * hppa-nbsd-nat.c: Fix indentation.
1428 * hppa-nbsd-tdep.c: Fix indentation.
1429 * hppa-obsd-nat.c: Fix indentation.
1430 * hppa-tdep.c: Fix indentation.
1431 * hppa-tdep.h: Fix indentation.
1432 * i386-bsd-nat.c: Fix indentation.
1433 * i386-darwin-nat.c: Fix indentation.
1434 * i386-darwin-tdep.c: Fix indentation.
1435 * i386-dicos-tdep.c: Fix indentation.
1436 * i386-gnu-nat.c: Fix indentation.
1437 * i386-linux-nat.c: Fix indentation.
1438 * i386-linux-tdep.c: Fix indentation.
1439 * i386-nto-tdep.c: Fix indentation.
1440 * i386-obsd-tdep.c: Fix indentation.
1441 * i386-sol2-nat.c: Fix indentation.
1442 * i386-tdep.c: Fix indentation.
1443 * i386-tdep.h: Fix indentation.
1444 * i386-windows-tdep.c: Fix indentation.
1445 * i387-tdep.c: Fix indentation.
1446 * i387-tdep.h: Fix indentation.
1447 * ia64-libunwind-tdep.c: Fix indentation.
1448 * ia64-libunwind-tdep.h: Fix indentation.
1449 * ia64-linux-nat.c: Fix indentation.
1450 * ia64-linux-tdep.c: Fix indentation.
1451 * ia64-tdep.c: Fix indentation.
1452 * ia64-tdep.h: Fix indentation.
1453 * ia64-vms-tdep.c: Fix indentation.
1454 * infcall.c: Fix indentation.
1455 * infcmd.c: Fix indentation.
1456 * inferior.c: Fix indentation.
1457 * infrun.c: Fix indentation.
1458 * iq2000-tdep.c: Fix indentation.
1459 * language.c: Fix indentation.
1460 * linespec.c: Fix indentation.
1461 * linux-fork.c: Fix indentation.
1462 * linux-nat.c: Fix indentation.
1463 * linux-tdep.c: Fix indentation.
1464 * linux-thread-db.c: Fix indentation.
1465 * lm32-tdep.c: Fix indentation.
1466 * m2-lang.c: Fix indentation.
1467 * m2-typeprint.c: Fix indentation.
1468 * m2-valprint.c: Fix indentation.
1469 * m32c-tdep.c: Fix indentation.
1470 * m32r-linux-tdep.c: Fix indentation.
1471 * m32r-tdep.c: Fix indentation.
1472 * m68hc11-tdep.c: Fix indentation.
1473 * m68k-bsd-nat.c: Fix indentation.
1474 * m68k-linux-nat.c: Fix indentation.
1475 * m68k-linux-tdep.c: Fix indentation.
1476 * m68k-tdep.c: Fix indentation.
1477 * machoread.c: Fix indentation.
1478 * macrocmd.c: Fix indentation.
1479 * macroexp.c: Fix indentation.
1480 * macroscope.c: Fix indentation.
1481 * macrotab.c: Fix indentation.
1482 * macrotab.h: Fix indentation.
1483 * main.c: Fix indentation.
1484 * mdebugread.c: Fix indentation.
1485 * mep-tdep.c: Fix indentation.
1486 * mi/mi-cmd-catch.c: Fix indentation.
1487 * mi/mi-cmd-disas.c: Fix indentation.
1488 * mi/mi-cmd-env.c: Fix indentation.
1489 * mi/mi-cmd-stack.c: Fix indentation.
1490 * mi/mi-cmd-var.c: Fix indentation.
1491 * mi/mi-cmds.c: Fix indentation.
1492 * mi/mi-main.c: Fix indentation.
1493 * mi/mi-parse.c: Fix indentation.
1494 * microblaze-tdep.c: Fix indentation.
1495 * minidebug.c: Fix indentation.
1496 * minsyms.c: Fix indentation.
1497 * mips-linux-nat.c: Fix indentation.
1498 * mips-linux-tdep.c: Fix indentation.
1499 * mips-nbsd-tdep.c: Fix indentation.
1500 * mips-tdep.c: Fix indentation.
1501 * mn10300-linux-tdep.c: Fix indentation.
1502 * mn10300-tdep.c: Fix indentation.
1503 * moxie-tdep.c: Fix indentation.
1504 * msp430-tdep.c: Fix indentation.
1505 * namespace.h: Fix indentation.
1506 * nat/fork-inferior.c: Fix indentation.
1507 * nat/gdb_ptrace.h: Fix indentation.
1508 * nat/linux-namespaces.c: Fix indentation.
1509 * nat/linux-osdata.c: Fix indentation.
1510 * nat/netbsd-nat.c: Fix indentation.
1511 * nat/x86-dregs.c: Fix indentation.
1512 * nbsd-nat.c: Fix indentation.
1513 * nbsd-tdep.c: Fix indentation.
1514 * nios2-linux-tdep.c: Fix indentation.
1515 * nios2-tdep.c: Fix indentation.
1516 * nto-procfs.c: Fix indentation.
1517 * nto-tdep.c: Fix indentation.
1518 * objfiles.c: Fix indentation.
1519 * objfiles.h: Fix indentation.
1520 * opencl-lang.c: Fix indentation.
1521 * or1k-tdep.c: Fix indentation.
1522 * osabi.c: Fix indentation.
1523 * osabi.h: Fix indentation.
1524 * osdata.c: Fix indentation.
1525 * p-lang.c: Fix indentation.
1526 * p-typeprint.c: Fix indentation.
1527 * p-valprint.c: Fix indentation.
1528 * parse.c: Fix indentation.
1529 * ppc-linux-nat.c: Fix indentation.
1530 * ppc-linux-tdep.c: Fix indentation.
1531 * ppc-nbsd-nat.c: Fix indentation.
1532 * ppc-nbsd-tdep.c: Fix indentation.
1533 * ppc-obsd-nat.c: Fix indentation.
1534 * ppc-ravenscar-thread.c: Fix indentation.
1535 * ppc-sysv-tdep.c: Fix indentation.
1536 * ppc64-tdep.c: Fix indentation.
1537 * printcmd.c: Fix indentation.
1538 * proc-api.c: Fix indentation.
1539 * producer.c: Fix indentation.
1540 * producer.h: Fix indentation.
1541 * prologue-value.c: Fix indentation.
1542 * prologue-value.h: Fix indentation.
1543 * psymtab.c: Fix indentation.
1544 * python/py-arch.c: Fix indentation.
1545 * python/py-bpevent.c: Fix indentation.
1546 * python/py-event.c: Fix indentation.
1547 * python/py-event.h: Fix indentation.
1548 * python/py-finishbreakpoint.c: Fix indentation.
1549 * python/py-frame.c: Fix indentation.
1550 * python/py-framefilter.c: Fix indentation.
1551 * python/py-inferior.c: Fix indentation.
1552 * python/py-infthread.c: Fix indentation.
1553 * python/py-objfile.c: Fix indentation.
1554 * python/py-prettyprint.c: Fix indentation.
1555 * python/py-registers.c: Fix indentation.
1556 * python/py-signalevent.c: Fix indentation.
1557 * python/py-stopevent.c: Fix indentation.
1558 * python/py-stopevent.h: Fix indentation.
1559 * python/py-threadevent.c: Fix indentation.
1560 * python/py-tui.c: Fix indentation.
1561 * python/py-unwind.c: Fix indentation.
1562 * python/py-value.c: Fix indentation.
1563 * python/py-xmethods.c: Fix indentation.
1564 * python/python-internal.h: Fix indentation.
1565 * python/python.c: Fix indentation.
1566 * ravenscar-thread.c: Fix indentation.
1567 * record-btrace.c: Fix indentation.
1568 * record-full.c: Fix indentation.
1569 * record.c: Fix indentation.
1570 * reggroups.c: Fix indentation.
1571 * regset.h: Fix indentation.
1572 * remote-fileio.c: Fix indentation.
1573 * remote.c: Fix indentation.
1574 * reverse.c: Fix indentation.
1575 * riscv-linux-tdep.c: Fix indentation.
1576 * riscv-ravenscar-thread.c: Fix indentation.
1577 * riscv-tdep.c: Fix indentation.
1578 * rl78-tdep.c: Fix indentation.
1579 * rs6000-aix-tdep.c: Fix indentation.
1580 * rs6000-lynx178-tdep.c: Fix indentation.
1581 * rs6000-nat.c: Fix indentation.
1582 * rs6000-tdep.c: Fix indentation.
1583 * rust-lang.c: Fix indentation.
1584 * rx-tdep.c: Fix indentation.
1585 * s12z-tdep.c: Fix indentation.
1586 * s390-linux-tdep.c: Fix indentation.
1587 * score-tdep.c: Fix indentation.
1588 * ser-base.c: Fix indentation.
1589 * ser-mingw.c: Fix indentation.
1590 * ser-uds.c: Fix indentation.
1591 * ser-unix.c: Fix indentation.
1592 * serial.c: Fix indentation.
1593 * sh-linux-tdep.c: Fix indentation.
1594 * sh-nbsd-tdep.c: Fix indentation.
1595 * sh-tdep.c: Fix indentation.
1596 * skip.c: Fix indentation.
1597 * sol-thread.c: Fix indentation.
1598 * solib-aix.c: Fix indentation.
1599 * solib-darwin.c: Fix indentation.
1600 * solib-frv.c: Fix indentation.
1601 * solib-svr4.c: Fix indentation.
1602 * solib.c: Fix indentation.
1603 * source.c: Fix indentation.
1604 * sparc-linux-tdep.c: Fix indentation.
1605 * sparc-nbsd-tdep.c: Fix indentation.
1606 * sparc-obsd-tdep.c: Fix indentation.
1607 * sparc-ravenscar-thread.c: Fix indentation.
1608 * sparc-tdep.c: Fix indentation.
1609 * sparc64-linux-tdep.c: Fix indentation.
1610 * sparc64-nbsd-tdep.c: Fix indentation.
1611 * sparc64-obsd-tdep.c: Fix indentation.
1612 * sparc64-tdep.c: Fix indentation.
1613 * stabsread.c: Fix indentation.
1614 * stack.c: Fix indentation.
1615 * stap-probe.c: Fix indentation.
1616 * stubs/ia64vms-stub.c: Fix indentation.
1617 * stubs/m32r-stub.c: Fix indentation.
1618 * stubs/m68k-stub.c: Fix indentation.
1619 * stubs/sh-stub.c: Fix indentation.
1620 * stubs/sparc-stub.c: Fix indentation.
1621 * symfile-mem.c: Fix indentation.
1622 * symfile.c: Fix indentation.
1623 * symfile.h: Fix indentation.
1624 * symmisc.c: Fix indentation.
1625 * symtab.c: Fix indentation.
1626 * symtab.h: Fix indentation.
1627 * target-float.c: Fix indentation.
1628 * target.c: Fix indentation.
1629 * target.h: Fix indentation.
1630 * tic6x-tdep.c: Fix indentation.
1631 * tilegx-linux-tdep.c: Fix indentation.
1632 * tilegx-tdep.c: Fix indentation.
1633 * top.c: Fix indentation.
1634 * tracefile-tfile.c: Fix indentation.
1635 * tracepoint.c: Fix indentation.
1636 * tui/tui-disasm.c: Fix indentation.
1637 * tui/tui-io.c: Fix indentation.
1638 * tui/tui-regs.c: Fix indentation.
1639 * tui/tui-stack.c: Fix indentation.
1640 * tui/tui-win.c: Fix indentation.
1641 * tui/tui-winsource.c: Fix indentation.
1642 * tui/tui.c: Fix indentation.
1643 * typeprint.c: Fix indentation.
1644 * ui-out.h: Fix indentation.
1645 * unittests/copy_bitwise-selftests.c: Fix indentation.
1646 * unittests/memory-map-selftests.c: Fix indentation.
1647 * utils.c: Fix indentation.
1648 * v850-tdep.c: Fix indentation.
1649 * valarith.c: Fix indentation.
1650 * valops.c: Fix indentation.
1651 * valprint.c: Fix indentation.
1652 * valprint.h: Fix indentation.
1653 * value.c: Fix indentation.
1654 * value.h: Fix indentation.
1655 * varobj.c: Fix indentation.
1656 * vax-tdep.c: Fix indentation.
1657 * windows-nat.c: Fix indentation.
1658 * windows-tdep.c: Fix indentation.
1659 * xcoffread.c: Fix indentation.
1660 * xml-syscall.c: Fix indentation.
1661 * xml-tdesc.c: Fix indentation.
1662 * xstormy16-tdep.c: Fix indentation.
1663 * xtensa-config.c: Fix indentation.
1664 * xtensa-linux-nat.c: Fix indentation.
1665 * xtensa-linux-tdep.c: Fix indentation.
1666 * xtensa-tdep.c: Fix indentation.
1667
e1f57067
AB
16682020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1669 Craig Blackmore <craig.blackmore@embecosm.com>
1670
1671 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1672 as an unsigned value.
1673
ae7754b2
TT
16742020-11-01 Tom Tromey <tom@tromey.com>
1675
1676 * dbxread.c (dbx_end_psymtab): Update.
1677 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1678 (build_type_psymtabs_reader): Update.
1679 * xcoffread.c (xcoff_end_psymtab): Update.
1680 * ctfread.c (scan_partial_symbols): Update.
1681 * psymtab.c (sort_pst_symbols): Remove.
1682 (partial_symtab::end): Rename from end_psymtab_common. Inline
1683 sort_pst_symbols.
1684 * psympriv.h (struct partial_symtab) <end>: New method.
1685 (end_psymtab_common): Don't declare.
1686
0684bb51
TT
16872020-11-01 Tom Tromey <tom@tromey.com>
1688
1689 * symmisc.c (count_psyms): New function.
1690 (print_objfile_statistics): Use it.
1691 * psymtab.c (append_psymbol_to_list): Remove.
1692 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1693 * objfiles.h (struct objstats) <n_psyms>: Remove.
1694
089002bb
TT
16952020-11-01 Tom Tromey <tom@tromey.com>
1696
1697 * dbxread.c (dbx_end_psymtab): Update.
1698 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1699 (build_type_psymtabs_reader): Update.
1700 * xcoffread.c (xcoff_end_psymtab): Update.
1701 * ctfread.c (scan_partial_symbols): Update.
1702 * psympriv.h (end_psymtab_common): Update.
1703 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1704 (sort_pst_symbols): Likewise.
1705
525454d6
TT
17062020-11-01 Tom Tromey <tom@tromey.com>
1707
1708 * dbxread.c (dbx_symfile_read): Update.
1709 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1710 * xcoffread.c (xcoff_initial_scan): Update.
1711 * psympriv.h (init_psymbol_list): Don't declare.
1712 * psymtab.c (init_psymbol_list): Remove.
1713
60bd1d53
JB
17142020-11-01 Joel Brobecker <brobecker@adacore.com>
1715
1716 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1717 gnat_encoded_fixed_type_info. Update all callers.
1718
db99d0d0
JB
17192020-11-01 Joel Brobecker <brobecker@adacore.com>
1720
1721 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1722 line too long.
1723
75f24e86
JB
17242020-11-01 Joel Brobecker <brobecker@adacore.com>
1725
1726 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1727 cast_from_fixed. Update all callers.
1728 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1729 Update all callers.
1730 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1731 Update all callers.
1732 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1733 ada_scaling_factor.
1734 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1735 to print_gnat_encoded_fixed_point_type.
1736 * ada-valprint.c: Likewise.
1737
4f0469cd
AB
17382020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1739
1740 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1741 (debug_prefixed_printf): Add check of debug_displaced flag.
1742 * linux-nat.c (linux_nat_debug_printf): Add check of
1743 debug_linux_nat flag.
1744
17417fb0
SM
17452020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1746
1747 * infrun.c (infrun_debug_printf_1): Remove.
1748 (displaced_debug_printf_1): Remove.
1749 (stop_all_threads): Use debug_prefixed_printf.
1750 * infrun.h (infrun_debug_printf_1): Remove.
1751 (infrun_debug_printf): Use debug_prefixed_printf.
1752 (displaced_debug_printf_1): Remove.
1753 (displaced_debug_printf): Use debug_prefixed_printf.
1754 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1755 (linux_nat_debug_printf): Use debug_prefixed_printf.
1756
ad6dba1c
SM
17572020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1758
1759 * configure: Re-generate.
1760 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1761 AC_LANG_PROGRAM.
1762
b6fb30ed
SM
17632020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1764
1765 * configure: Re-generate.
1766
5164c117
SM
17672020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1768
1769 * configure: Re-generate.
1770
864ca435
SM
17712020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1772
1773 * configure: Re-generate.
1774
b9442ec1
SM
17752020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1776
1777 * configure: Re-generate.
1778
294f2697
SM
17792020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1780
1781 * acinclude.m4: Modernize.
1782 * configure: Re-generate.
1783
5593a99a
SM
17842020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1785
1786 * configure.ac: Modernize.
1787 * configure: Re-generate.
1788
e41fda1d
SM
17892020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1790
1791 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1792 * configure: Re-generate.
1793 * configure.ac: Remove AM_PROG_CC_STDC.
1794
91e1a0ed
SM
17952020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1796
1797 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1798 AC_CANONICAL_SYSTEM.
1799 * configure: Re-generate.
1800
136821d9
SM
18012020-10-30 Simon Marchi <simon.marchi@efficios.com>
1802
1803 * infrun.h (displaced_debug_printf): New macro. Replace
1804 displaced debug prints throughout to use it.
1805 (displaced_debug_printf_1): New declaration.
1806 (displaced_step_dump_bytes): Return string, remove ui_file
1807 parameter, update all callers.
1808 * infrun.c (displaced_debug_printf_1): New function.
1809 (displaced_step_dump_bytes): Return string, remove ui_file
1810 parameter
1811
aa2045e7
SM
18122020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1813
1814 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1815
b1ec2735
TT
18162020-10-30 Tom Tromey <tromey@adacore.com>
1817
1818 * Makefile.in (stamp-init): Depend on config.status.
1819
b78b3a29
TBA
18202020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1821
1822 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1823
d70bdd3c
PA
18242020-10-30 Pedro Alves <pedro@palves.net>
1825
1826 * thread.c (lookup_selected_frame): Move ...
1827 * frame.c (lookup_selected_frame): ... here.
1828
79952e69
PA
18292020-10-30 Pedro Alves <pedro@palves.net>
1830
1831 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1832 * frame.c
1833 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1834 Use save_selected_frame. Save language as well.
1835 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1836 Use restore_selected_frame, and restore language as well.
1837 (selected_frame_id, selected_frame_level): New.
1838 (selected_frame): Update comments.
1839 (save_selected_frame, restore_selected_frame): New.
1840 (get_selected_frame): Use lookup_selected_frame.
1841 (get_selected_frame_if_set): Delete.
1842 (select_frame): Record selected_frame_level and selected_frame_id.
1843 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1844 fields.
1845 (get_selected_frame): Make 'message' parameter optional.
1846 (get_selected_frame_if_set): Delete declaration.
1847 (select_frame): Update comments.
1848 (save_selected_frame, restore_selected_frame)
1849 (lookup_selected_frame): Declare.
1850 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1851 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1852 New field.
1853 (save_infcall_control_state): Use save_selected_frame.
1854 (restore_selected_frame): Delete.
1855 (restore_infcall_control_state): Use restore_selected_frame.
1856 * stack.c (select_frame_command_core, frame_command_core): Use
1857 get_selected_frame.
1858 * thread.c (restore_selected_frame): Rename to ...
1859 (lookup_selected_frame): ... this and make extern. Select the
1860 current frame if the frame level is -1.
1861 (scoped_restore_current_thread::restore): Also restore the
1862 language.
1863 (scoped_restore_current_thread::~scoped_restore_current_thread):
1864 Don't try/catch.
1865 (scoped_restore_current_thread::scoped_restore_current_thread):
1866 Save the language as well. Use save_selected_frame.
1867
58103c33
SM
18682020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1869
1870 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1871 documentation.
1872 * gdbarch.h: Re-generate.
1873
40a53766
SM
18742020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1875
1876 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1877 parameter.
1878 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1879 Likewise.
1880 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1881 Likewise.
1882 * arch-utils.c (default_displaced_step_hw_singlestep):
1883 Likewise.
1884 * arch-utils.h (default_displaced_step_hw_singlestep):
1885 Likewise.
1886 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1887 Likewise.
1888 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1889 Likewise.
1890 * gdbarch.c: Re-generate.
1891 * gdbarch.h: Re-generate.
1892 * infrun.c (resume_1): Adjust.
1893
8407f91b
TT
18942020-10-29 Tom Tromey <tom@tromey.com>
1895
1896 * progspace.c (program_space::~program_space): Don't call
1897 exec_close.
1898
5008b3b2
TT
18992020-10-29 Tom Tromey <tom@tromey.com>
1900
1901 * exec.c (exec_target::close): Don't change current program
1902 space.
1903
d9eebde0
TT
19042020-10-29 Tom Tromey <tom@tromey.com>
1905
1906 * symfile.c (add_symbol_file_command): Update.
1907 * exec.c (program_space::add_target_sections): Rename.
1908 * symfile-mem.c (symbol_file_add_from_memory): Update.
1909 * progspace.h (struct program_space) <add_target_sections>:
1910 Declare new overload.
1911 * exec.h (add_target_sections_of_objfile): Don't declare.
1912
3769e227
TT
19132020-10-29 Tom Tromey <tom@tromey.com>
1914
1915 * solib.c (solib_map_sections): Update.
1916 * exec.c (program_space::add_target_sections): Now a method.
1917 (exec_file_attach): Update.
1918 * exec.h (add_target_sections): Don't declare.
1919 * progspace.h (struct program_space) <add_target_sections>:
1920 Declare.
1921
2a3f84af
TT
19222020-10-29 Tom Tromey <tom@tromey.com>
1923
1924 * progspace.h (struct program_space) <remove_target_sections>:
1925 Declare.
1926 * exec.c (program_space::remove_target_sections): Now a method.
1927 * exec.h (remove_target_sections): Don't declare.
1928
004eecfd
TT
19292020-10-29 Tom Tromey <tom@tromey.com>
1930
1931 * inferior.c (delete_inferior): Update.
1932 * progspace.c (program_space::empty): Rename from
1933 program_space_empty_p. Return bool.
1934 * progspace.h (struct program_space) <empty>: New method.
1935 (program_space_empty_p): Don't declare.
1936
e39fb971
TT
19372020-10-29 Tom Tromey <tom@tromey.com>
1938
1939 * progspace.c (program_space::~program_space): Don't call
1940 clear_program_space_solib_cache.
1941 (program_space::clear_solib_cache): Rename from
1942 clear_solib_cache.
1943 * solib.c (handle_solib_event): Update.
1944 * progspace.h (struct program_space) <clear_solib_cache>: New
1945 method.
1946 (clear_program_space_solib_cache): Don't declare.
1947
a42d7dd8
TT
19482020-10-29 Tom Tromey <tom@tromey.com>
1949
1950 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1951 * target.c (info_target_command): Update.
1952 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1953 (symbol_file_clear, reread_symbols): Update.
1954 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1955 * stabsread.c (scan_file_globals): Update.
1956 * solib.c (update_solib_list): Update.
1957 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1958 (svr4_fetch_objfile_link_map, enable_break)
1959 (svr4_relocate_main_executable)
1960 (svr4_iterate_over_objfiles_in_search_order): Update.
1961 * solib-frv.c (lm_base, enable_break)
1962 (frv_relocate_main_executable): Update.
1963 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1964 (frv_fetch_objfile_link_map): Update.
1965 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1966 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1967 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1968 * remote.c (remote_target::get_offsets): Update.
1969 (remote_target::start_remote)
1970 (extended_remote_target::post_attach): Update.
1971 * objfiles.c (entry_point_address_query): Update.
1972 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1973 * minsyms.c (get_symbol_leading_char): Update.
1974 * frame.c (inside_main_func): Update.
1975 * progspace.h (symfile_objfile): Remove macro.
1976
19f6550e
TT
19772020-10-29 Tom Tromey <tom@tromey.com>
1978
1979 * exec.c (exec_file_attach): Update.
1980 * progspace.c (program_space::exec_close): Update.
1981 * progspace.h (struct program_space) <ebfd>: Now a
1982 gdb_bfd_ref_ptr.
1983 <set_exec_bfd>: Change argument type.
1984 <exec_bfd>: Update.
1985
7e10abd1
TT
19862020-10-29 Tom Tromey <tom@tromey.com>
1987
1988 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1989 * symfile.c (reread_symbols): Update.
1990 * symfile-mem.c (add_symbol_file_from_memory_command)
1991 (add_vsyscall_page): Update.
1992 * source-cache.c (source_cache::get_plain_source_lines): Update.
1993 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1994 (svr4_current_sos_direct, svr4_exec_displacement)
1995 (svr4_relocate_main_executable): Update.
1996 (svr4_iterate_over_objfiles_in_search_order): Update.
1997 * solib-frv.c (enable_break2, enable_break): Update.
1998 * solib-dsbt.c (lm_base, enable_break): Update.
1999 * solib-darwin.c (find_program_interpreter)
2000 (darwin_solib_create_inferior_hook): Update.
2001 * sol-thread.c (rw_common, ps_pdmodel): Update.
2002 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2003 * remote.c (compare_sections_command)
2004 (remote_target::trace_set_readonly_regions): Update.
2005 * remote-sim.c (get_sim_inferior_data)
2006 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2007 (gdbsim_target_open, gdbsim_target::files_info): Update.
2008 * exec.h (exec_bfd): Remove macro.
2009 * progspace.c (initialize_progspace): Update.
2010 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2011 Update.
2012 * nto-procfs.c (nto_procfs_target::post_attach)
2013 (nto_procfs_target::create_inferior): Update.
2014 * maint.c (maintenance_info_sections): Update.
2015 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2016 Update.
2017 * infcmd.c (post_create_inferior): Update.
2018 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2019 (objfile_find_memory_regions): Update.
2020 * exec.c (validate_exec_file, exec_file_attach)
2021 (exec_read_partial_read_only, print_section_info): Update.
2022 * corelow.c (core_target_open): Update.
2023 * corefile.c (reopen_exec_file, validate_files): Update.
2024 * arm-tdep.c (gdb_print_insn_arm): Update.
2025 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2026 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2027 methods.
2028
b55221ab
TT
20292020-10-29 Tom Tromey <tom@tromey.com>
2030
2031 * progspace.h (current_target_sections): Remove macro.
2032 * solib-svr4.c (scan_dyntag): Update.
2033 * solib-dsbt.c (scan_dyntag): Update.
2034 * exec.c (exec_target::close): Update.
2035 (add_target_sections, add_target_sections_of_objfile)
2036 (remove_target_sections, exec_target::get_section_table)
2037 (exec_target::files_info, set_section_command)
2038 (exec_set_section_address, exec_target::has_memory)
2039 (exec_target::has_memory): Update.
2040
5a36e715
TT
20412020-10-29 Tom Tromey <tom@tromey.com>
2042
2043 * source-cache.c (source_cache::get_plain_source_lines): Use
2044 current_program_space.
2045 * corefile.c (reopen_exec_file): Use current_program_space.
2046 * exec.c (exec_file_attach): Use current_program_space.
2047 * exec.h (exec_bfd_mtime): Remove.
2048
784c8592
TT
20492020-10-29 Tom Tromey <tom@tromey.com>
2050
2051 * gcore.c (default_gcore_mach): Remove.
2052 (create_gcore_bfd): Update.
2053
8a4f1402
TT
20542020-10-29 Tom Tromey <tom@tromey.com>
2055
2056 * progspace.c (program_space::exec_close): New method, from
2057 exec_close in exec.c.
2058 * exec.c (exec_close): Move to progspace.c.
2059 (exec_target::close, exec_file_attach): Update.
2060 * progspace.h (struct program_space) <exec_close>: Declare
2061 method.
2062
c20cb686
TT
20632020-10-29 Tom Tromey <tom@tromey.com>
2064
2065 * progspace.h (struct program_space) <exec_filename>: Rename from
2066 pspace_exec_filename. Now a unique_xmalloc_ptr.
2067 * inferior.c (print_selected_inferior): Update.
2068 (print_inferior): Update.
2069 * mi/mi-main.c (print_one_inferior): Update.
2070 * exec.h (exec_filename): Remove macro.
2071 * corefile.c (get_exec_file): Update.
2072 * exec.c (exec_close): Update.
2073 (exec_file_attach): Update.
2074 * progspace.c (clone_program_space): Update.
2075 (print_program_space): Update.
2076
6be2a9ab
TT
20772020-10-29 Tom Tromey <tom@tromey.com>
2078
2079 * target-section.h (struct target_section): Add constructor.
2080 * exec.c (build_section_table, add_target_sections_of_objfile):
2081 Update.
2082 * corelow.c (core_target::build_file_mappings): Update.
2083
cfaa8f76
TBA
20842020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2085
2086 PR gdb/19318
2087 * inferior.c (detach_inferior_command): Restore the current thread.
2088 (kill_inferior_command): Ditto.
2089
1b00ef06
TV
20902020-10-28 Tom de Vries <tdevries@suse.de>
2091
2092 PR symtab/26772
2093 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2094 map, check it in the "best match" loop.
2095
7f40ce1a
SM
20962020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2097
2098 * m32c-tdep.c: Remove unused includes.
2099
5eb9e3f5
SM
21002020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2101
2102 * xtensa-tdep.c: Remove includes.
2103
b1d4d8d1
TBA
21042020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2105
2106 * breakpoint.c (struct condition_command_opts): New struct.
2107 (condition_command_option_defs): New static global.
2108 (make_condition_command_options_def_group): New function.
2109 (condition_completer): Update to consider the '-force' flag.
2110 (condition_command): Use gdb::option for the '-force' flag.
2111
bd24c5d6
TV
21122020-10-27 Tom de Vries <tdevries@suse.de>
2113
2114 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2115 symbols in section check.
2116
61eb46a4
TV
21172020-10-27 Tom de Vries <tdevries@suse.de>
2118
2119 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2120
733d554a
TBA
21212020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2122
2123 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2124 * breakpoint.c: Update the help text of the 'condition' and 'break'
2125 commands.
2126 (set_breakpoint_condition): Take a new bool parameter
2127 to control whether condition definition should be forced even when
2128 the condition expression is invalid in all of the current locations.
2129 (condition_command): Update the call to 'set_breakpoint_condition'.
2130 (find_condition_and_thread): Take the "-force-condition" flag into
2131 account.
2132 * linespec.c (linespec_keywords): Add "-force-condition" as an
2133 element.
2134 (FORCE_KEYWORD_INDEX): New #define.
2135 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2136 as a keyword.
2137 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2138 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2139 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2140 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2141
b5fa468f
TBA
21422020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2143
2144 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2145 * breakpoint.c (set_breakpoint_location_condition): New function.
2146 (set_breakpoint_condition): Disable a breakpoint location if parsing
2147 the condition string gives an error.
2148 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2149 (build_target_condition_list): Ditto.
2150 (build_target_command_list): Ditto.
2151 (build_bpstat_chain): Ditto.
2152 (print_one_breakpoint_location): Ditto.
2153 (print_one_breakpoint): Ditto.
2154 (breakpoint_1): Ditto.
2155 (bp_location::bp_location): Ditto.
2156 (locations_are_equal): Ditto.
2157 (update_breakpoint_locations): Ditto.
2158 (enable_disable_bp_num_loc): Ditto.
2159 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2160 (find_condition_and_thread_for_sals): New static function.
2161 (create_breakpoint): Call find_condition_and_thread_for_sals.
2162 (location_to_sals): Call find_condition_and_thread_for_sals instead
2163 of find_condition_and_thread.
2164
1c47ec3e
TV
21652020-10-26 Tom de Vries <tdevries@suse.de>
2166
2167 * dwarf2/read.c (process_full_comp_unit): Call
2168 dwarf2_find_base_address.
2169
6390859c
TT
21702020-10-26 Tom Tromey <tromey@adacore.com>
2171
2172 * gdbtypes.c (create_range_type): Revert previous patch. Add
2173 comment.
2174
d744f0f9
PA
21752020-10-26 Pedro Alves <pedro@palves.net>
2176
2177 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2178 (my_waitpid): Use gdb::handle_eintr.
2179
006811bc
SM
21802020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2181
2182 * acinclude.m4: Update ptrace.m4 path.
2183 * ptrace.m4: Moved to gdbsupport.
2184
c75e31a1
SM
21852020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2186
2187 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2188 instead of target_gdbarch.
2189
32495661
SM
21902020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2191
2192 * jit.c (jit_reader_load_command): Pass current inferior.
2193 (jit_inferior_init): Change parameter type to inferior, use it.
2194 (jit_inferior_created): Remove.
2195 (jit_inferior_created_hook): Pass inferior parameter down.
2196 (_initialize_jit): Use jit_inferior_created_hook instead of
2197 jit_inferior_created.
2198 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2199 * infrun.c (follow_exec): Pass inferior to
2200 jit_inferior_created_hook.
2201
3f66685e
SM
22022020-10-24 Simon Marchi <simon.marchi@efficios.com>
2203
2204 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2205 parameter and use it.
2206 (thread_db_inferior_created): Pass inferior argument.
2207
a0ff652f
SM
22082020-10-24 Simon Marchi <simon.marchi@efficios.com>
2209
2210 * aix-thread.c (aix_thread_inferior_created): Add inferior
2211 parameter.
2212 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2213 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2214 * jit.c (jit_inferior_created): Likewise.
2215 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2216 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2217 * observable.h (inferior_created): Likewise.
2218 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2219 * symfile-mem.c (add_vsyscall_page): Likewise.
2220 * infcmd.c (post_create_inferior): Pass inferior argument.
2221
3c67532c
JB
22222020-10-24 Joel Brobecker <brobecker@adacore.com>
2223
2224 GDB 10.1 released.
2225
8747316e
JB
22262020-10-23 Joel Brobecker <brobecker@adacore.com>
2227
2228 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2229 to ada_check_typedef.
2230
1a0ea399
AB
22312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2232
2233 * f-exp.y (f_parse): Rename to...
2234 (f_language::parser): ...this.
2235 * f-lang.c (f_get_encoding): Rename to...
2236 (f_language::get_encoding): ...this.
2237 (f_op_print_tab): Rename to...
2238 (f_language::op_print_tab): ...this.
2239 (exp_descriptor_f): Rename to...
2240 (f_language::exp_descriptor_tab): ...this.
2241 (class f_language): Moved to f-lang.h.
2242 (f_language::language_arch_info): New function, moved out of class
2243 declaration.
2244 (f_language::search_name_hash): Likewise.
2245 (f_language::lookup_symbol_nonlocal): Likewise.
2246 (f_language::get_symbol_name_matcher_inner): Likewise.
2247 * f-lang.h: Add 'valprint.h' include.
2248 (class f_language): Moved here from f-lang.c.
2249 * f-typeprint.c (f_type_print_args): Delete commented out
2250 declaration.
2251 (f_print_typedef): Rename to...
2252 (f_language::print_typedef): ...this.
2253 (f_print_type): Rename to...
2254 (f_language::print_type): ...this.
2255 (f_type_print_varspec_prefix): Delete declaration and rename to...
2256 (f_language::f_type_print_varspec_prefix): ...this.
2257 (f_type_print_varspec_suffix): Delete declaration and rename to...
2258 (f_language::f_type_print_varspec_suffix): ...this.
2259 (f_type_print_base): Delete declaration and rename to...
2260 (f_language::f_type_print_base): ...this.
2261 * f-valprint.c (f_value_print_inner): Rename to...
2262 (f_language::value_print_inner): ...this.
2263 * parse.c: Delete 'f-lang.h' include.
2264
88cefd9b
AB
22652020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2266
2267 * language.h (language_defn::print_type): Add variable names in
2268 declaration, and update header comment.
2269
5399db93
AB
22702020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2271
2272 * ada-lang.c (ada_language::demangle): Rename to...
2273 (ada_language::demangle_symbol): ...this.
2274 * c-lang.c (cplus_language::demangle): Rename to...
2275 (cplus_language::demangle_symbol): ...this.
2276 * d-lang.c (d_language::demangle): Rename to...
2277 (d_language::demangle_symbol): ...this.
2278 * f-lang.c (f_language::demangle): Rename to...
2279 (f_language::demangle_symbol): ...this.
2280 * go-lang.c (go_language::demangle): Rename to...
2281 (go_language::demangle_symbol): ...this.
2282 * language.c (language_demangle): Update call to demangle_symbol.
2283 (auto_or_unknown_language::demangle): Rename to...
2284 (auto_or_unknown_language::demangle_symbol): ...this.
2285 * language.h (language_defn::demangle): Rename to...
2286 (language_defn::demangle_symbol): ...this.
2287 * objc-lang.c (objc_language::demangle): Rename to...
2288 (objc_language::demangle_symbol): ...this.
2289 * rust-lang.c (rust_language::demangle): Rename to...
2290 (rust_language::demangle_symbol): ...this.
2291
4b2f86ef
AB
22922020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2293
2294 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2295 (iterate_over_file_blocks): Replace use of macro with the macros
2296 definition.
2297
e74b39de
AB
22982020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2299
2300 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2301 * valprint.c (maybe_print_array_index): Replace use of macro with
2302 the macros definition.
2303
00c696a6
AB
23042020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2305
2306 * ada-lang.c (ada_language::print_array_index): Call value_print
2307 directly.
2308 * language.c (language_defn::print_array_index): Likewise.
2309 * language.h (LA_VALUE_PRINT): Delete.
2310 * valprint.c (value_print): Call value_print on the
2311 current_language directly.
2312
d3b67c56
AB
23132020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2314
2315 * language.h (LA_PRINT_TYPEDEF): Delete.
2316 * typeprint.c (typedef_print): Call print_typedef directly on the
2317 current_language object.
2318
790e2a12
AB
23192020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 * m2-exp.y (m2_parse): Rename to...
2322 (m2_language::parser): ...this. Update function signature.
2323 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2324 (m2_op_print): Rename to...
2325 (m2_language::op_print_tab): ...this, and make const.
2326 (exp_descriptor_modula2): Rename to...
2327 (m2_language::exp_descriptor_modula2): ...this.
2328 (class m2_language): Move to m2-lang.h.
2329 (m2_language::language_arch_info): New function, moved out of
2330 class declaration.
2331 (m2_language::printchar): New function, body from m2_printchar.
2332 (m2_language::printstr): New function, moved out of class
2333 declaration.
2334 (m2_language::emitchar): Likewise.
2335 * m2-lang.h (m2_parse): Delete declaration.
2336 (m2_print_typedef): Delete declaration.
2337 (m2_value_print_inner): Delete declaration.
2338 (class m2_language): Class declaration moved from m2-lang.c,
2339 larger functions are left in m2-lang.c.
2340 * m2-typeprint.c (m2_print_typedef): Rename to...
2341 (m2_language::print_typedef): ...this, and update function
2342 signature.
2343 * m2-valprint.c (m2_value_print_inner): Rename to...
2344 (m2_language::value_print_inner): ...this, replace use of
2345 LA_PRINT_STRING with a direct call to printstr member function,
2346 and update recursive call.
2347
b01175fc
AB
23482020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2349
2350 * language.c (default_is_string_type_p): Delete, implementation
2351 moved into auto_or_unknown_language::is_string_type_p.
2352 (unk_op_print_tab): Moved into
2353 auto_or_unknown_language::opcode_print_table.
2354 (unknown_language_arch_info): Delete, implementation moved into
2355 auto_or_unknown_language::language_arch_info.
2356 (class auto_or_unknown_language): New class, member functions
2357 copied from unknown_language class, with some updates.
2358 (class unknown_language): Most member functions moved into
2359 auto_or_unknown_language class. Inherit from
2360 auto_or_unknown_language class.
2361 (class auto_language): Inherit from auto_or_unknown_language.
2362 Delete most member functions.
2363
1a97fe8c
HD
23642020-10-22 Hannes Domani <ssbssa@yahoo.de>
2365
2366 * stabsread.c (read_member_functions): Remove gdb_assert.
2367
6b9d0dfd
HD
23682020-10-22 Hannes Domani <ssbssa@yahoo.de>
2369
2370 * gdbtypes.c (init_complex_type): Check target type name.
2371
4b4bb603
SM
23722020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2373
2374 * target-debug.h (target_debug_print_struct_target_ops_p):
2375 Remove.
2376 (target_debug_print_async_callback_ftype_p): Remove.
2377 (target_debug_print_struct_trace_state_variable_p): Remove.
2378 (target_debug_print_struct_traceframe_info_p): Remove.
2379 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2380 (target_debug_print_enum_btrace_format): Remove.
2381 (target_debug_print_enum_info_proc_what): Remove.
2382 (target_debug_print_thread_info_pp): Remove.
2383
24f5300a
SM
23842020-10-22 Simon Marchi <simon.marchi@efficios.com>
2385
2386 * target.h (struct target_ops) <make_corefile_notes>:
2387 Change return type to unique pointer.
2388 * target.c (dummy_make_corefile_notes): Likewise.
2389 * exec.c (struct exec_target) <make_corefile_notes>:
2390 Likewise.
2391 (exec_target::make_corefile_notes): Likewise.
2392 * procfs.c (class procfs_target) <make_corefile_notes>:
2393 Likewise.
2394 (procfs_do_thread_registers): Adjust to unique pointer.
2395 (struct procfs_corefile_thread_data): Add constructor.
2396 <note_data>: Change type to unique pointer.
2397 (procfs_corefile_thread_callback): Adjust to unique pointer.
2398 (procfs_target::make_corefile_notes): Change return type to
2399 unique pointer.
2400 * target-delegates.c: Re-generate.
2401 * gcore.c (write_gcore_file_1): Adjust.
2402 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2403 New.
2404
5fb4027f
TV
24052020-10-22 Tom de Vries <tdevries@suse.de>
2406
2407 * block.c (find_block_in_blockvector): Make sure the returned block
2408 contains pc.
2409
4a636814
SM
24102020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2411
2412 PR gdb/26693
2413 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2414 parameter.
2415 (load_cu): Pass existing CU.
2416 (process_imported_unit_die): Likewise.
2417 (follow_die_offset): Likewise.
2418
1bd57575
LM
24192020-10-22 Luis Machado <luis.machado@linaro.org>
2420
2421 * corelow.c (core_target::xfer_partial): Also check for an empty
2422 m_core_unavailable_mappings vector.
2423
6b4c676c
AB
24242020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2425
2426 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2427 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2428 * f-exp.y (arglist): Allow for a series of subranges.
2429 (subrange): Add cases for subranges with strides.
2430 * f-lang.c (value_f90_subarray): Catch use of array strides and
2431 throw an error.
2432 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2433
f2d8e4c5
AB
24342020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2435
2436 * expprint.c (print_subexp_standard): Change enum range_type to
2437 range_flag and rename variables to match.
2438 (dump_subexp_body_standard): Likewise.
2439 * expression.h (enum range_type): Rename to...
2440 (enum range_flag): ...this.
2441 (range_types): Rename to...
2442 (range_flags): ...this.
2443 * f-lang.c (value_f90_subarray): Change enum range_type to
2444 range_flag and rename variables to match.
2445 * parse.c (operator_length_standard): Likewise.
2446 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2447 range_type to range_flag.
2448 * rust-lang.c (rust_evaluate_funcall): Likewise.
2449 (rust_range): Likewise.
2450 (rust_compute_range): Likewise.
2451 (rust_subscript): Likewise.
2452
2f1b18db
AB
24532020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2454
2455 * expprint.c (print_subexp_standard): Update to reflect changes to
2456 enum range_type.
2457 (dump_subexp_body_standard): Likewise.
2458 * expression.h (enum range_type): Convert to a bit field enum, and
2459 make the enum unsigned.
2460 * f-exp.y (subrange): Update to reflect changes to enum
2461 range_type.
2462 * f-lang.c (value_f90_subarray): Likewise.
2463 * parse.c (operator_length_standard): Likewise.
2464 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2465 * rust-lang.c (rust_range): Likewise.
2466 (rust_compute_range): Likewise.
2467 (rust_subscript): Likewise.
2468
a46d1843
SM
24692020-10-21 Simon Marchi <simon.marchi@efficios.com>
2470
2471 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2472 (displaced_step_in_progress): Fix comment.
2473
c21f37a8
SM
24742020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2475
2476 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2477 * gdbarch.c: Re-generate.
2478 * gdbarch.h: Re-generate.
2479 * gcore.c (write_gcore_file_1): Adjust.
2480 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2481 constructor.
2482 <note_data>: Change type to unique pointer.
2483 <abort_iteration>: Change type to bool.
2484 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2485 (fbsd_collect_thread_registers): Return void, adjust.
2486 (struct fbsd_corefile_thread_data): Add construtor.
2487 <note_data>: Change type to unique pointer.
2488 (fbsd_corefile_thread): Adjust.
2489 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2490 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2491 to unique pointer, adjust.
2492 (struct linux_collect_regset_section_cb_data): Add constructor.
2493 <note_data>: Change type to unique pointer.
2494 <abort_iteration>: Change type to bool.
2495 (linux_collect_thread_registers): Return void, adjust.
2496 (struct linux_corefile_thread_data): Add constructor.
2497 <note_data>: Change type to unique pointer.
2498 (linux_corefile_thread): Adjust.
2499 (linux_make_corefile_notes): Return unique pointer, adjust.
2500
07fbbd01
SM
25012020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2502
2503 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2504 * gdbarch.c: Re-generate.
2505 * gdbarch.h: Re-generate.
2506 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2507 bool.
2508 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2509 Likewise.
2510 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2511 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2512 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2513 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2514
39535193
SM
25152020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2516
2517 * gdbarch.sh: Make generated predicates return bool.
2518 * gdbarch.c: Re-generate.
2519 * gdbarch.h: Re-generate.
2520
ad523d01
TT
25212020-10-20 Tom Tromey <tom@tromey.com>
2522
2523 * varobj-iter.h (struct varobj_item): Remove typedef.
2524
c4464ade
SM
25252020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2526
2527 * infrun.c (currently_stepping): Change int to bool
2528 (maybe_software_singlestep): Likewise.
2529 (show_stop_on_solib_events): Likewise.
2530 (stepping_past_nonsteppable_watchpoint): Likewise.
2531 (displaced_step_in_progress_any_inferior): Likewise.
2532 (displaced_step_in_progress_thread): Likewise.
2533 (keep_going_stepped_thread): Likewise.
2534 (thread_still_needs_step_over): Likewise.
2535 (start_step_over): Likewise.
2536 (do_target_resume): Likewise.
2537 (resume_1): Likewise.
2538 (clear_proceed_status): Likewise.
2539 (thread_still_needs_step_over_bp): Likewise.
2540 (proceed): Likewise.
2541 (switch_back_to_stepped_thread): Likewise.
2542 (adjust_pc_after_break): Likewise.
2543 (stepped_in_from): Likewise.
2544 (handle_stop_requested): Likewise.
2545 (handle_syscall_event): Likewise.
2546 (handle_no_resumed): Likewise.
2547 (handle_inferior_event): Likewise.
2548 (finish_step_over): Likewise.
2549 (handle_signal_stop): Likewise.
2550 (process_event_stop_test): Likewise.
2551
2eb20436
SM
25522020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2553
2554 * infrun.c (get_displaced_stepping_state): Fix comment.
2555
e0c45ded
AS
25562020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2557
2558 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2559
22cc388e
TT
25602020-10-19 Tom Tromey <tromey@adacore.com>
2561
2562 PR tui/26719
2563 * tui/tui-winsource.h (struct tui_source_window_base)
2564 <refresh_window>: Rename from refresh_pad.
2565 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2566 Rename from refresh_pad.
2567 (tui_source_window_base::show_source_content)
2568 (tui_source_window_base::do_scroll_horizontal): Update.
2569
3c6eb4d4
TBA
25702020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2571
2572 * thread.c (_initialize_thread): Fine-tune the help text of
2573 'info threads'.
2574
26703721
TBA
25752020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2576
2577 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2578
61c26be8
MS
25792020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2580
2581 * breakpoint.c (handle_jit_event): Add an argument, change how
2582 `jit_event_handler` is called.
2583
932539d7
TT
25842020-10-17 Tom Tromey <tom@tromey.com>
2585
2586 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2587 (scan_xcoff_symtab): Update.
2588 * psymtab.h (class psymtab_storage) <global_psymbols,
2589 static_psymbols, current_global_psymbols,
2590 current_static_psymbols>: Remove.
2591 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2592 (match_partial_symbol, lookup_partial_symbol): Update.
2593 (print_partial_symbols): Change parameters.
2594 (dump_psymtab, recursively_search_psymtabs)
2595 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2596 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2597 (concat): Remove.
2598 (end_psymtab_common): Simplify.
2599 (append_psymbol_to_list): Change parameters.
2600 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2601 (init_psymbol_list): Simplify.
2602 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2603 * psympriv.h (struct partial_symtab) <empty>: New method.
2604 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2605 Remove.
2606 <global_psymbols, static_psymbols>: New members.
2607 <add_psymbol>: New methods.
2608 (add_psymbol_to_list): Don't declare.
2609 (psymbol_placement): Move earlier.
2610 * mdebugread.c (parse_partial_symbols): Update.
2611 (handle_psymbol_enumerators): Change parameters.
2612 (mdebug_expand_psymtab): Update.
2613 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2614 (add_partial_symbol): Update.
2615 * dwarf2/index-write.c (write_psymbols): Change parameters.
2616 (write_one_signatured_type): Update.
2617 (recursively_count_psymbols): Update.
2618 (recursively_write_psymbols): Update.
2619 (class debug_names) <recursively_write_psymbols>: Update.
2620 <write_psymbols>: Change parameters.
2621 <write_one_signatured_type>: Update.
2622 * dbxread.c (read_dbx_symtab): Update.
2623 (dbx_end_psymtab): Use partial_symtab::empty.
2624 * ctfread.c (struct ctf_context) <pst>: New member.
2625 (create_partial_symtab): Set it.
2626 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2627 (scan_partial_symbols): Use the psymtab's context. Update.
2628
cfabbd35
TT
26292020-10-17 Tom Tromey <tom@tromey.com>
2630
2631 * valprint.c (generic_value_print): Remove comment.
2632 * m2-valprint.c (m2_value_print_inner): Remove comment.
2633 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2634 type.
2635
520596f2
TV
26362020-10-17 Tom de Vries <tdevries@suse.de>
2637
2638 PR symtab/26317
2639 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2640 symbol main.
2641
76547ab3
TV
26422020-10-14 Tom de Vries <tdevries@suse.de>
2643
2644 PR gdb/26733
2645 * solib.c (solib_contains_address_p): Handle
2646 'solib->sections == nullptr'.
2647
d3a07122
SM
26482020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2649
2650 PR gdb/26642
2651 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2652 target can't do async.
2653 * target.c (target_wait): Assert that we don't pass
2654 TARGET_WNOHANG to a target that can't async.
2655
1b71cfcf
KR
26562020-10-13 Kamil Rytarowski <n54@gmx.com>
2657
2658 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2659 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2660 * alpha-bsd-nat.c: Adjust include.
2661 * alpha-bsd-tdep.h: Adjust comment.
2662 * alpha-nbsd-tdep.c: Rename to ...
2663 * alpha-netbsd-tdep.c: ... this, adjust include.
2664 * amd64-nbsd-nat.c: Rename to ...
2665 * amd64-netbsd-nat.c: ... this, adjust include.
2666 * amd64-nbsd-tdep.c: Rename to ...
2667 * amd64-netbsd-tdep.c: ... this, adjust include.
2668 * amd64-tdep.h: Adjust include.
2669 * arm-nbsd-nat.c: Rename to ...
2670 * arm-netbsd-nat.c: ... this, adjust include.
2671 * arm-nbsd-tdep.c: Rename to ...
2672 * arm-netbsd-tdep.c: ... this, adjust include.
2673 * arm-nbsd-tdep.h: Rename to ...
2674 * arm-netbsd-tdep.h: ... this, adjust include.
2675 * configure.nat: Adjust file lists.
2676 * configure.tgt: Likewise.
2677 * hppa-nbsd-nat.c: Rename to ...
2678 * hppa-netbsd-nat.c: ... this, adjust include.
2679 * hppa-nbsd-tdep.c: Rename to ...
2680 * hppa-netbsd-tdep.c: ... this, adjust include.
2681 * i386-nbsd-nat.c: Rename to ...
2682 * i386-netbsd-nat.c: ... this, adjust include.
2683 * i386-nbsd-tdep.c: Rename to ...
2684 * i386-netbsd-tdep.c: ... this, adjust include.
2685 * m68k-bsd-nat.c: Adjust include.
2686 * mips-nbsd-nat.c: Rename to ...
2687 * mips-netbsd-nat.c: ... this, adjust include.
2688 * mips-nbsd-tdep.c: Rename to ...
2689 * mips-netbsd-tdep.c: ... this, adjust include.
2690 * mips-nbsd-tdep.h: Rename to ...
2691 * mips-netbsd-tdep.h: ... this.
2692 * nbsd-nat.c: Rename to ...
2693 * netbsd-nat.c: ... this, adjust include.
2694 * nbsd-nat.h: Rename to ...
2695 * netbsd-nat.h: ... this, adjust include.
2696 * nbsd-tdep.c: Rename to ...
2697 * netbsd-tdep.c: ... this, adjust include.
2698 * nbsd-tdep.h: Rename to ...
2699 * netbsd-tdep.h: ... this.
2700 * ppc-nbsd-nat.c: Rename to ...
2701 * ppc-netbsd-nat.c: ... this, adjust include.
2702 * ppc-nbsd-tdep.c: Rename to ...
2703 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2704 * ppc-nbsd-tdep.h: Rename to ...
2705 * ppc-netbsd-tdep.h: ... this.
2706 * sh-nbsd-nat.c: Rename to ...
2707 * sh-netbsd-nat.c: ... this, adjust include.
2708 * sh-nbsd-tdep.c: Rename to ...
2709 * sh-netbsd-tdep.c: ... this, adjust include.
2710 * sparc-nbsd-nat.c: Rename to ...
2711 * sparc-netbsd-nat.c: ... this.
2712 * sparc-nbsd-tdep.c: Rename to ...
2713 * sparc-netbsd-tdep.c: ... this, adjust include.
2714 * sparc64-nbsd-nat.c: Rename to ...
2715 * sparc64-netbsd-nat.c: ... this.
2716 * sparc64-nbsd-tdep.c: Rename to ...
2717 * sparc64-netbsd-tdep.c: ... this, adjust include.
2718 * sparc64-tdep.h: Adjust comment.
2719 * vax-bsd-nat.c: Adjust include.
2720 * vax-nbsd-tdep.c: Rename to ...
2721 * vax-netbsd-tdep.c: ... this, adjust include.
2722
d7a78e5c
TT
27232020-10-12 Tom Tromey <tom@tromey.com>
2724
2725 * target.h (struct target_ops) <get_section_table>: Update.
2726 (target_get_section_table): Update.
2727 * target.c (target_get_section_table, target_section_by_addr)
2728 (memory_xfer_partial_1): Update.
2729 * target-section.h (target_section_table): Now an alias.
2730 * target-delegates.c: Rebuild.
2731 * target-debug.h (target_debug_print_target_section_table_p):
2732 Rename from target_debug_print_struct_target_section_table_p.
2733 * symfile.c (build_section_addr_info_from_section_table): Update.
2734 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2735 * solib-svr4.c (scan_dyntag): Update.
2736 * solib-dsbt.c (scan_dyntag): Update.
2737 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2738 Update.
2739 * record-full.c (record_full_core_target::xfer_partial): Update.
2740 * progspace.h (struct program_space) <target_sections>: Update.
2741 * exec.h (print_section_info): Update.
2742 * exec.c (exec_target::close, build_section_table)
2743 (add_target_sections, add_target_sections_of_objfile)
2744 (remove_target_sections, exec_on_vfork)
2745 (section_table_available_memory)
2746 (section_table_xfer_memory_partial)
2747 (exec_target::get_section_table, exec_target::xfer_partial)
2748 (print_section_info, set_section_command)
2749 (exec_set_section_address, exec_target::has_memory): Update.
2750 * corelow.c (core_target::build_file_mappings)
2751 (core_target::xfer_partial, core_target::info_proc_mappings)
2752 (core_target::info_proc_mappings): Update.
2753 * bfd-target.c (class target_bfd): Update
2754
eda214ce
TT
27552020-10-12 Tom Tromey <tom@tromey.com>
2756
2757 * progspace.c (program_space::~program_space): Don't call
2758 clear_section_table.
2759 * exec.h (clear_section_table): Don't declare.
2760 * exec.c (exec_target::close): Update.
2761 (clear_section_table): Remove.
2762
91840ee3
TT
27632020-10-12 Tom Tromey <tom@tromey.com>
2764
2765 * exec.c (add_target_sections_of_objfile): Simplify.
2766
2d128614
TT
27672020-10-12 Tom Tromey <tom@tromey.com>
2768
2769 * solib.c (solib_map_sections): Update.
2770 * record-full.c (record_full_core_open_1): Update.
2771 * exec.h (build_section_table): Return a target_section_table.
2772 * exec.c (exec_file_attach): Update.
2773 (build_section_table): Return a target_section_table.
2774 * corelow.c (core_target::core_target): Update.
2775 * bfd-target.c (target_bfd::target_bfd): Update.
2776
bb2a6777
TT
27772020-10-12 Tom Tromey <tom@tromey.com>
2778
2779 * target.c (target_section_by_addr, memory_xfer_partial_1):
2780 Update.
2781 * target-section.h (struct target_section_table): Use
2782 std::vector.
2783 * symfile.h (build_section_addr_info_from_section_table): Take a
2784 target_section_table.
2785 * symfile.c (build_section_addr_info_from_section_table): Take a
2786 target_section_table.
2787 * solist.h (struct so_list) <sections>: Change type.
2788 <sections_end>: Remove.
2789 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2790 (solib_contains_address_p): Update.
2791 * solib-svr4.c (scan_dyntag): Update.
2792 * solib-dsbt.c (scan_dyntag): Update.
2793 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2794 Update.
2795 * record-full.c (record_full_core_start, record_full_core_end):
2796 Remove.
2797 (record_full_core_sections): New global.
2798 (record_full_core_open_1, record_full_core_target::xfer_partial):
2799 Update.
2800 * exec.h (build_section_table, section_table_xfer_memory_partial)
2801 (add_target_sections): Take a target_section_table.
2802 * exec.c (exec_file_attach, clear_section_table): Update.
2803 (resize_section_table): Remove.
2804 (build_section_table, add_target_sections): Take a
2805 target_section_table.
2806 (add_target_sections_of_objfile, remove_target_sections)
2807 (exec_on_vfork): Update.
2808 (section_table_available_memory): Take a target_section_table.
2809 (section_table_read_available_memory): Update.
2810 (section_table_xfer_memory_partial): Take a target_section_table.
2811 (print_section_info, set_section_command)
2812 (exec_set_section_address, exec_target::has_memory): Update.
2813 * corelow.c (class core_target) <m_core_section_table,
2814 m_core_file_mappings>: Remove braces.
2815 <~core_target>: Remove.
2816 (core_target::core_target): Update.
2817 (core_target::~core_target): Remove.
2818 (core_target::build_file_mappings)
2819 (core_target::xfer_memory_via_mappings)
2820 (core_target::xfer_partial, core_target::info_proc_mappings):
2821 Update.
2822 * bfd-target.c (target_bfd::xfer_partial): Update.
2823 (target_bfd::target_bfd): Update.
2824 (target_bfd::~target_bfd): Remove.
2825
7b466b10
TT
28262020-10-12 Tom Tromey <tom@tromey.com>
2827
2828 * target.h (struct target_section, struct target_section_table):
2829 Move to target-section.h.
2830 * target-section.h: New file.
2831
87a37e5e
PA
28322020-10-12 Pedro Alves <pedro@palves.net>
2833
2834 PR exp/26602
2835 * valops.c (struct struct_field_searcher): New.
2836 (update_search_result): Rename to ...
2837 (struct_field_searcher::update_result): ... this. Simplify
2838 prototype. Record all found fields.
2839 (do_search_struct_field): Rename to ...
2840 (struct_field_searcher::search): ... this. Simplify prototype.
2841 Maintain stack of visited baseclass path. Call update_result for
2842 fields too. Keep searching fields in baseclasses instead of
2843 stopping at the first found field.
2844 (search_struct_field): Use struct_field_searcher. When looking
2845 for fields, report ambiguous access attempts.
2846
9370fd51
AB
28472020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2848
2849 * frame.c (inside_main_func): Check full symbols as well as
2850 minimal symbols.
2851
59c8a30b
JB
28522020-10-09 Joel Brobecker <brobecker@adacore.com>
2853
2854 * ada-lang.c (advance_wild_match): Rewrite the function's
2855 description. Change the type of target0, t0 and t1 to char.
2856
7c184d33
TT
28572020-10-09 Tom Tromey <tromey@adacore.com>
2858
2859 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2860
5c4258f4
TT
28612020-10-09 Tom Tromey <tromey@adacore.com>
2862
2863 * ada-lang.h (ada_encode): Return std::string.
2864 * ada-lang.c (ada_encode_1): Return std::string.
2865 (ada_encode): Likewise.
2866 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2867 Update.
2868 * ada-exp.y (block_lookup, write_var_or_type): Update.
2869
3d87245c
HD
28702020-10-09 Hannes Domani <ssbssa@yahoo.de>
2871
2872 PR exp/26714
2873 * printcmd.c (print_formatted): Handle void results as
2874 unformatted prints.
2875
bbb826f5
AB
28762020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2877
2878 * arch/aarch32.c (aarch32_create_target_description): Release the
2879 target_desc_up as late as possible.
2880 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2881 * arch/amd64.c (amd64_create_target_description): Likewise.
2882 * arch/arc.c (arc_create_target_description): Return a
2883 target_desc_up, don't release it.
2884 * arch/arc.h (arc_create_target_description): Update declaration.
2885 (arc_lookup_target_description): Move target_desc_up into the
2886 cache, and return a borrowed pointer.
2887 * arch/arm.c (arm_create_target_description): Release the
2888 target_desc_up as late as possible.
2889 * arch/i386.c (i386_create_target_description): Likewise.
2890 * arch/riscv.h (riscv_create_target_description): Update
2891 declaration to match definition.
2892 * arch/tic6x.c (tic6x_create_target_description): Release the
2893 target_desc_up as late as possible.
2894
361cb219
AB
28952020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2896
2897 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2898 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2899
f5c4b229
JV
29002020-10-09 Jan Vrany <jan.vrany@labware.com>
2901
2902 * source.c (directory_command): Notify observers that "directories"
2903 parameter has changed.
2904
b2701685
TT
29052020-10-08 Tom Tromey <tom@tromey.com>
2906
2907 * cli/cli-cmds.c (print_disassembly): Style function name and
2908 addresses. Add _() wrappers.
2909
ada508b6
SV
29102020-10-08 Shahab Vahedi <shahab@synopsys.com>
2911
2912 * NEWS: Mention ARC support in GDBserver.
2913
51a948fd
AB
29142020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2915
2916 * arch/aarch32.c (aarch32_create_target_description): Release
2917 unique_ptr returned from allocate_target_description.
2918 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2919 * arch/amd64.c (amd64_create_target_description): Likewise.
2920 * arch/arc.c (arc_create_target_description): Likewise.
2921 * arch/arm.c (arm_create_target_description): Likewise.
2922 * arch/i386.c (i386_create_target_description): Likewise.
2923 * arch/riscv.c (riscv_create_target_description): Update return
2924 type. Handle allocate_target_description returning a unique_ptr.
2925 (riscv_lookup_target_description): Update to handle unique_ptr.
2926 * arch/tic6x.c (tic6x_create_target_description): Release
2927 unique_ptr returned from allocate_target_description.
2928 * features/microblaze-with-stack-protect.c: Regenerate.
2929 * features/microblaze.c: Regenerate.
2930 * features/mips-dsp-linux.c: Regenerate.
2931 * features/mips-linux.c: Regenerate.
2932 * features/mips64-dsp-linux.c: Regenerate.
2933 * features/mips64-linux.c: Regenerate.
2934 * features/nds32.c: Regenerate.
2935 * features/nios2.c: Regenerate.
2936 * features/or1k.c: Regenerate.
2937 * features/rs6000/powerpc-32.c: Regenerate.
2938 * features/rs6000/powerpc-32l.c: Regenerate.
2939 * features/rs6000/powerpc-403.c: Regenerate.
2940 * features/rs6000/powerpc-403gc.c: Regenerate.
2941 * features/rs6000/powerpc-405.c: Regenerate.
2942 * features/rs6000/powerpc-505.c: Regenerate.
2943 * features/rs6000/powerpc-601.c: Regenerate.
2944 * features/rs6000/powerpc-602.c: Regenerate.
2945 * features/rs6000/powerpc-603.c: Regenerate.
2946 * features/rs6000/powerpc-604.c: Regenerate.
2947 * features/rs6000/powerpc-64.c: Regenerate.
2948 * features/rs6000/powerpc-64l.c: Regenerate.
2949 * features/rs6000/powerpc-7400.c: Regenerate.
2950 * features/rs6000/powerpc-750.c: Regenerate.
2951 * features/rs6000/powerpc-860.c: Regenerate.
2952 * features/rs6000/powerpc-altivec32.c: Regenerate.
2953 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2954 * features/rs6000/powerpc-altivec64.c: Regenerate.
2955 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2956 * features/rs6000/powerpc-e500.c: Regenerate.
2957 * features/rs6000/powerpc-e500l.c: Regenerate.
2958 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2959 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2960 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2961 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2962 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2963 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2964 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2965 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2966 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2967 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2968 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2969 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2970 * features/rs6000/powerpc-vsx32.c: Regenerate.
2971 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2972 * features/rs6000/powerpc-vsx64.c: Regenerate.
2973 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2974 * features/rs6000/rs6000.c: Regenerate.
2975 * features/rx.c: Regenerate.
2976 * features/s390-gs-linux64.c: Regenerate.
2977 * features/s390-linux32.c: Regenerate.
2978 * features/s390-linux32v1.c: Regenerate.
2979 * features/s390-linux32v2.c: Regenerate.
2980 * features/s390-linux64.c: Regenerate.
2981 * features/s390-linux64v1.c: Regenerate.
2982 * features/s390-linux64v2.c: Regenerate.
2983 * features/s390-te-linux64.c: Regenerate.
2984 * features/s390-tevx-linux64.c: Regenerate.
2985 * features/s390-vx-linux64.c: Regenerate.
2986 * features/s390x-gs-linux64.c: Regenerate.
2987 * features/s390x-linux64.c: Regenerate.
2988 * features/s390x-linux64v1.c: Regenerate.
2989 * features/s390x-linux64v2.c: Regenerate.
2990 * features/s390x-te-linux64.c: Regenerate.
2991 * features/s390x-tevx-linux64.c: Regenerate.
2992 * features/s390x-vx-linux64.c: Regenerate.
2993 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2994 from allocate_target_description.
2995 * target-descriptions.c (allocate_target_description): Update
2996 return type.
2997 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2998 allocate_target_description.
2999
485c47e5
TT
30002020-10-07 Tom Tromey <tromey@adacore.com>
3001
3002 * unittests/search-memory-selftests.c: New file.
3003 * Makefile.in (SELFTESTS_SRCS): Add
3004 unittests/search-memory-selftests.c.
3005
3a135a91
TT
30062020-10-07 Tom Tromey <tromey@adacore.com>
3007
3008 PR gdb/16930:
3009 * findcmd.c (_initialize_mem_search): Mention that the range is
3010 inclusive.
3011
4a72de73
TT
30122020-10-07 Tom Tromey <tromey@adacore.com>
3013
3014 * target.h (simple_search_memory): Don't declare.
3015 * target.c (simple_search_memory): Move to gdbsupport.
3016 (default_search_memory): Update.
3017 * remote.c (remote_target::search_memory): Update.
3018
a038ffd8
SM
30192020-10-07 Simon Marchi <simon.marchi@efficios.com>
3020
3021 * Makefile.in (COMPILE): Add CXXFLAGS.
3022 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3023 (check-headers): Add CXXFLAGS.
3024
cc463201
AK
30252020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3026
3027 * arc-linux-tdep.h: New file.
3028 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3029 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3030 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3031 arc_linux_gregset, arc_linux_v2_regset,
3032 arc_linux_iterate_over_regset_sections,
3033 arc_linux_core_read_description): Implement.
3034 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3035 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3036 (arc_gdbarch_features_create): Add.
3037 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3038
e4bd363f
SV
30392020-10-07 Shahab Vahedi <shahab@synopsys.com>
3040
3041 * arch/arc.h: Rename "arc_gdbarch_features" to
3042 "arc_arch_features".
3043 * arc-tdep.h: Likewise.
3044 * arc-tdep.c: Likewise.
3045
b68bef99
TBA
30462020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3047
3048 * infcmd.c (attach_command): Remove the redundant call to
3049 `clear_proceed_status`.
3050
4641551a
KR
30512020-10-07 Kamil Rytarowski <n54@gmx.com>
3052
3053 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3054
91e5e8db
KR
30552020-10-07 Kamil Rytarowski <n54@gmx.com>
3056
3057 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3058 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3059 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3060
64c03bdb
SM
30612020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3062
3063 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3064 (_initialize_break_catch_sig): Don't allocate array.
3065
31a8f60f
AB
30662020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3067
3068 * symtab.c (find_pc_line): Return unmapped addresses when the
3069 requested address is also unmapped.
3070
9e6dbd8b
SM
30712020-10-05 Simon Marchi <simon.marchi@efficios.com>
3072
3073 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3074 tui/tui-out.h.
3075
a1d217e8
SM
30762020-10-05 Simon Marchi <simon.marchi@efficios.com>
3077
3078 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3079 type::is_vector instead of TYPE_VECTOR.
3080
7d144117
SM
30812020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3082
3083 * auto-load.c (auto_load_objfile_script_1): Don't use
3084 debugfile_holder as temporary variable when stripping drive
3085 letter.
3086
cd096ec8
HD
30872020-10-05 Hannes Domani <ssbssa@yahoo.de>
3088
3089 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3090 Add TYPE_CODE_COMPLEX.
3091 (amd64_windows_return_value): Fix types returned via XMM0.
3092
b58e7f72
AH
30932020-10-05 Alan Hayward <alan.hayward@arm.com>
3094
3095 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3096 AArch64/ARM maintainers.
3097
8d378f27
SM
30982020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3099
3100 * NEWS: Mention set/show debug event-loop.
3101
d5519913
TT
31022020-10-02 Tom Tromey <tromey@adacore.com>
3103
3104 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3105 REG_EXTENDED.
3106
18b67edc
SM
31072020-10-02 Simon Marchi <simon.marchi@efficios.com>
3108
3109 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3110 * procfs.c (procfs_inferior_created): Remove.
3111 (_initialize_procfs): Don't register procfs_inferior_created.
3112
6b01403b
SM
31132020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3114
3115 * async-event.c (invoke_async_signal_handlers): Add debug
3116 print.
3117 (check_async_event_handlers): Likewise.
3118 * event-top.c (show_debug_event_loop): New function.
3119 (_initialize_event_top): Register "set debug event-loop"
3120 setting.
3121
ba988419
SM
31222020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3123
3124 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3125 * debug.h: Remove.
3126 * infrun.c: Include gdbsupport/common-debug.h.
3127 * linux-nat.c: Likewise.
3128
db20ebdf
SM
31292020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3130
3131 * async-event.h (create_async_signal_handler): Add name
3132 parameter.
3133 (create_async_event_handler): Likewise.
3134 * async-event.c (struct async_signal_handler) <name>: New field.
3135 (struct async_event_handler) <name>: New field.
3136 (create_async_signal_handler): Assign name.
3137 (create_async_event_handler): Assign name.
3138 * event-top.c (async_init_signals): Pass name when creating
3139 handler.
3140 * infrun.c (_initialize_infrun): Likewise.
3141 * record-btrace.c (record_btrace_push_target): Likewise.
3142 * record-full.c (record_full_open): Likewise.
3143 * remote-notif.c (remote_notif_state_allocate): Likewise.
3144 * remote.c (remote_target::open_1): Likewise.
3145 * tui/tui-win.c (tui_initialize_win): Likewise.
3146
2554f6f5
SM
31472020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3148
3149 * async-event.c (initialize_async_signal_handlers): Pass name to
3150 add_file_handler
3151 * event-top.c (ui_register_input_event_handler): Likewise.
3152 * linux-nat.c (linux_nat_target::async): Likewise.
3153 * run-on-main-thread.c (_initialize_run_on_main_thread):
3154 Likewise
3155 * ser-base.c (reschedule): Likewise.
3156 (ser_base_async): Likewise.
3157 * tui/tui-io.c: Likewise.
3158 * top.h (struct ui) <num>: New field.
3159 * top.c (highest_ui_num): New variable.
3160 (ui::ui): Initialize num.
3161
a7aba266
SM
31622020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3163
3164 * observable.h <inferior_created>: Remove parameters. Update all
3165 listeners.
3166 * inferior.h (post_create_inferior): Remove target parameter.
3167 Update all callers.
3168
048fde1e 31692020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3170
3171 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3172 and DW_MACRO_undef_strx.
3173 (dwarf_decode_macros): Likewise
3174 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3175 which is the value of DW_AT_str_offsets_base.
3176 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3177 str_offsets_base.
3178
064280be
KR
31792020-10-01 Kamil Rytarowski <n54@gmx.com>
3180
3181 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3182
6ff33035
KR
31832020-10-01 Kamil Rytarowski <n54@gmx.com>
3184
3185 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3186 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3187
1eb6eb79
KR
31882020-10-01 Kamil Rytarowski <n54@gmx.com>
3189
3190 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3191
95eb9e54
TV
31922020-09-30 Tom de Vries <tdevries@suse.de>
3193
3194 PR symtab/26683
3195 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3196
cae21f8e
TT
31972020-09-30 Tom Tromey <tromey@adacore.com>
3198
3199 * dwarf2/read.c (handle_variant): Use constant_value.
3200
529908cb
TT
32012020-09-29 Tom Tromey <tom@tromey.com>
3202
3203 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3204 (read_file_scope, dwarf2_get_pc_bounds)
3205 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3206 (read_structure_type, handle_struct_member_die)
3207 (read_enumeration_type, read_array_type, read_set_type)
3208 (read_tag_pointer_type, read_tag_reference_type)
3209 (read_subroutine_type, read_base_type, read_subrange_type)
3210 (read_full_die_1, partial_die_info::read)
3211 (partial_die_info::read, by, new_symbol)
3212 (dwarf2_const_value_data, dwarf2_const_value_attr)
3213 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3214 (prepare_one_comp_unit): Update.
3215 * dwarf2/attribute.h (DW_UNSND): Remove.
3216
c45bc3f8
TT
32172020-09-29 Tom Tromey <tom@tromey.com>
3218
3219 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3220 (read_subroutine_type, partial_die_info::read)
3221 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3222 (dwarf2_add_member_fn): Update.
3223 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3224 * dwarf2/attribute.c (attribute::as_boolean): New method.
3225
23dca5c3
TT
32262020-09-29 Tom Tromey <tom@tromey.com>
3227
3228 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3229 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3230 method.
3231 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3232
52c14d11
TT
32332020-09-29 Tom Tromey <tom@tromey.com>
3234
3235 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3236 the attribute's form.
3237
e8e5c158
TT
32382020-09-29 Tom Tromey <tom@tromey.com>
3239
3240 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3241 (dwarf2_add_member_fn): Update.
3242 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3243 * dwarf2/attribute.c (attribute::defaulted): New method, from
3244 is_valid_DW_AT_defaulted.
3245
d4df075e
TT
32462020-09-29 Tom Tromey <tom@tromey.com>
3247
3248 * dwarf2/read.c (dw2_get_file_names_reader)
3249 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3250 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3251 (dwarf2_symbol_mark_computed): Use as_unsigned.
3252 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3253 method.
3254 <form_is_section_offset>: Update comment.
3255
bf23a268
TT
32562020-09-29 Tom Tromey <tom@tromey.com>
3257
3258 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3259 dwarf2_default_access_attribute. Look up attribute.
3260 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3261 Update.
3262
7a5f294d
TT
32632020-09-29 Tom Tromey <tom@tromey.com>
3264
3265 * dwarf2/read.c (skip_one_die): Update.
3266 (read_full_die_1): Change how reprocessing is done.
3267 (partial_die_info::read): Update.
3268 (read_attribute_value): Remove need_reprocess parameter.
3269 (read_attribute): Likewise.
3270 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3271 New method.
3272
36d378cf
TT
32732020-09-29 Tom Tromey <tom@tromey.com>
3274
3275 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3276 (dwarf2_const_value_attr, dump_die_shallow)
3277 (dwarf2_fetch_constant_bytes): Update.
3278 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3279 comment.
3280 <set_address>: New method.
3281 (DW_ADDR): Remove.
3282 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3283 (attribute::as_string, attribute::as_address): Add assert.
3284
fe56917a
TT
32852020-09-29 Tom Tromey <tom@tromey.com>
3286
3287 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3288 (read_attribute_reprocess, read_attribute_value): Update.
3289 (read_attribute): Clear requires_reprocessing.
3290 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3291 form_requires_reprocessing>: New methods.
3292 <string_init>: Clear requires_reprocessing.
3293 <set_unsigned_reprocess>: New method.
3294 <name>: Shrink by one bit.
3295 <requires_reprocessing>: New member.
3296 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3297 method.
3298
414ad644
TT
32992020-09-29 Tom Tromey <tom@tromey.com>
3300
3301 * dwarf2/read.c (read_attribute_value): Update.
3302 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3303 set_unsigned>: New methods.
3304 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3305
1bc397c5
TT
33062020-09-29 Tom Tromey <tom@tromey.com>
3307
3308 * dwarf2/read.c (get_alignment, read_array_order)
3309 (read_attribute_value, dwarf2_const_value_attr)
3310 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3311 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3312 New methods.
3313 (DW_SND): Remove.
3314
630ed6b9
TT
33152020-09-29 Tom Tromey <tom@tromey.com>
3316
3317 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3318 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3319 Update.
3320 * dwarf2/attribute.h (struct attribute) <as_signature,
3321 set_signature>: New methods.
3322 (DW_SIGNATURE): Remove.
3323
9d2246fc
TT
33242020-09-29 Tom Tromey <tom@tromey.com>
3325
3326 * dwarf2/read.c (read_call_site_scope)
3327 (handle_data_member_location, dwarf2_add_member_fn)
3328 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3329 (partial_die_info::read, read_attribute_value)
3330 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3331 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3332 (dwarf2_symbol_mark_computed): Update.
3333 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3334 methods.
3335 (DW_BLOCK): Remove.
3336 * dwarf2/attribute.c (attribute::form_is_block): Add
3337 DW_FORM_data16.
3338
c6481205
TT
33392020-09-29 Tom Tromey <tom@tromey.com>
3340
3341 * dwarf2/read.c (read_cutu_die_from_dwo)
3342 (read_attribute_reprocess, read_attribute_value, read_attribute)
3343 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3344 (dwarf2_fetch_constant_bytes): Update.
3345 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3346 <set_string_noncanonical, set_string_canonical>: New methods.
3347 <string_is_canonical>: Update comment.
3348 <canonical_string_p>: Add assert.
3349 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3350 * dwarf2/attribute.c (attribute::form_is_string): New method.
3351 (attribute::string): Use it.
3352
3b64bf15
TT
33532020-09-29 Tom Tromey <tom@tromey.com>
3354
3355 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3356 (dump_die_shallow): Use canonical_string_p.
3357 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3358 method.
3359
2c830f54
TT
33602020-09-29 Tom Tromey <tom@tromey.com>
3361
3362 * dwarf2/read.c (partial_die_info::read)
3363 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3364 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3365 attribute::as_string.
3366
6c412691
TT
33672020-09-29 Tom Tromey <tom@tromey.com>
3368
3369 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3370 DW_ADDR.
3371 (attribute::string): Don't use DW_STRING.
3372 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3373 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3374
95f982e5
TT
33752020-09-29 Tom Tromey <tom@tromey.com>
3376
3377 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3378 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3379 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3380 * dwarf2/attribute.h (struct attribute): Rename methods.
3381 * dwarf2/attribute.c (attribute::as_address): Rename from
3382 value_as_address.
3383 (attribute::as_string): Rename from value_as_string.
3384
f800b00e
TT
33852020-09-29 Tom Tromey <tom@tromey.com>
3386
3387 * dwarf2/read.c (partial_die_info::read) <case
3388 DW_AT_linkage_name>: Use value_as_string.
3389 (dwarf2_string_attr): Use value_as_string.
3390 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3391 method.
3392 * dwarf2/attribute.c (attribute::value_as_string): New method.
3393
de38d64a
PA
33942020-09-29 Pedro Alves <pedro@palves.net>
3395
3396 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3397 defined before using '#pragma GCC diagnostic' instead of checking
3398 __clang__.
3399
9aed480c
TT
34002020-09-28 Tom Tromey <tom@tromey.com>
3401
3402 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3403 (handle_signal_stop): Update.
3404 * procfs.c (procfs_target::insert_watchpoint): Update.
3405 * target.h (target_have_steppable_watchpoint): Now a function.
3406
8a3ecb79
TT
34072020-09-28 Tom Tromey <tom@tromey.com>
3408
3409 * infrun.c (set_schedlock_func): Update.
3410 * target.h (target_can_lock_scheduler): Now a function.
3411
55f6301a
TT
34122020-09-28 Tom Tromey <tom@tromey.com>
3413
3414 * inferior.h (class inferior) <has_execution>: Update.
3415 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3416 * valops.c (find_function_in_inferior)
3417 (value_allocate_space_in_inferior): Update.
3418 * top.c (kill_or_detach): Update.
3419 * target.c (target_preopen, set_target_permissions): Update.
3420 (target_has_execution_current): Remove.
3421 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3422 Update.
3423 * solib.c (update_solib_list, reload_shared_libraries): Update.
3424 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3425 * solib-dsbt.c (enable_break): Update.
3426 * score-tdep.c (score7_fetch_inst): Update.
3427 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3428 Update.
3429 * remote.c (remote_target::start_remote)
3430 (remote_target::remote_check_symbols, remote_target::open_1)
3431 (remote_target::remote_detach_1, remote_target::verify_memory)
3432 (remote_target::xfer_partial, remote_target::read_description)
3433 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3434 * record-full.c (record_full_open_1): Update.
3435 * record-btrace.c (record_btrace_target_open): Update.
3436 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3437 (value_nsstring): Update.
3438 * linux-thread-db.c (add_thread_db_info)
3439 (thread_db_find_new_threads_silently, check_thread_db_callback)
3440 (try_thread_db_load_1, record_thread): Update.
3441 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3442 Update.
3443 * linux-fork.c (checkpoint_command): Update.
3444 * infrun.c (set_non_stop, set_observer_mode)
3445 (check_multi_target_resumption, for_each_just_stopped_thread)
3446 (maybe_remove_breakpoints, normal_stop)
3447 (class infcall_suspend_state): Update.
3448 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3449 (info_program_command, attach_command): Update.
3450 * infcall.c (call_function_by_hand_dummy): Update.
3451 * inf-loop.c (inferior_event_handler): Update.
3452 * gcore.c (gcore_command, derive_heap_segment): Update.
3453 * exec.c (exec_file_command): Update.
3454 * eval.c (evaluate_subexp): Update.
3455 * compile/compile.c (compile_to_object): Update.
3456 * cli/cli-dump.c (restore_command): Update.
3457 * breakpoint.c (update_watchpoint)
3458 (update_inserted_breakpoint_locations)
3459 (insert_breakpoint_locations, get_bpstat_thread): Update.
3460 * target.h (target_has_execution): Remove macro.
3461 (target_has_execution_current): Don't declare.
3462 (target_has_execution): Rename from target_has_execution_1. Add
3463 argument default.
3464
05374cfd
TT
34652020-09-28 Tom Tromey <tom@tromey.com>
3466
3467 * mi/mi-main.c (exec_reverse_continue)
3468 (mi_cmd_list_target_features): Update.
3469 * infrun.c (set_exec_direction_func): Update.
3470 * target.c (default_execution_direction): Update.
3471 * reverse.c (exec_reverse_once): Update.
3472 * target.h (target_can_execute_reverse): Now a function.
3473
9dccd06e
TT
34742020-09-28 Tom Tromey <tom@tromey.com>
3475
3476 * tui/tui-regs.c (tui_get_register)
3477 (tui_data_window::show_registers): Update.
3478 * thread.c (scoped_restore_current_thread::restore)
3479 (scoped_restore_current_thread::scoped_restore_current_thread):
3480 Update.
3481 * regcache-dump.c (regcache_print): Update.
3482 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3483 Update.
3484 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3485 * mep-tdep.c (current_me_module, current_options): Update.
3486 * linux-thread-db.c (thread_db_load): Update.
3487 * infcmd.c (registers_info, info_vector_command)
3488 (info_float_command): Update.
3489 * ia64-tdep.c (ia64_frame_prev_register)
3490 (ia64_sigtramp_frame_prev_register): Update.
3491 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3492 * gcore.c (derive_stack_segment): Update.
3493 * frame.c (get_current_frame, has_stack_frames): Update.
3494 * findvar.c (language_defn::read_var_value): Update.
3495 * arm-tdep.c (arm_pc_is_thumb): Update.
3496 * target.c (target_has_registers): Rename from
3497 target_has_registers_1.
3498 * target.h (target_has_registers): Remove macro.
3499 (target_has_registers): Rename from target_has_registers_1.
3500
841de120
TT
35012020-09-28 Tom Tromey <tom@tromey.com>
3502
3503 * windows-tdep.c (tlb_make_value): Update.
3504 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3505 * thread.c (scoped_restore_current_thread::restore)
3506 (scoped_restore_current_thread::scoped_restore_current_thread)
3507 (thread_command): Update.
3508 * stack.c (backtrace_command_1, frame_apply_level_command)
3509 (frame_apply_all_command, frame_apply_command): Update.
3510 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3511 Update.
3512 * gcore.c (derive_stack_segment): Update.
3513 * frame.c (get_current_frame, has_stack_frames): Update.
3514 * auxv.c (info_auxv_command): Update.
3515 * ada-tasks.c (ada_build_task_list): Update.
3516 * target.c (target_has_stack): Rename from target_has_stack_1.
3517 * target.h (target_has_stack): Remove macro.
3518 (target_has_stack): Rename from target_has_stack_1.
3519
a739972c
TT
35202020-09-28 Tom Tromey <tom@tromey.com>
3521
3522 * target.c (target_has_memory): Rename from target_has_memory_1.
3523 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3524 * thread.c (scoped_restore_current_thread::restore)
3525 (scoped_restore_current_thread::scoped_restore_current_thread):
3526 Update.
3527 * frame.c (get_current_frame, has_stack_frames): Update.
3528 * target.h (target_has_memory): Remove macro.
3529 (target_has_memory): Rename from target_has_memory_1.
3530
5b8a4776
TT
35312020-09-28 Tom Tromey <tom@tromey.com>
3532
3533 * target.c (target_has_all_memory_1): Remove.
3534 * target.h (target_has_all_memory): Remove define.
3535 (target_has_all_memory_1): Don't declare.
3536
bd356ec6
SM
35372020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3538
3539 * ser-base.c: Adjust comments formatting.
3540
2c72d5e5
TT
35412020-09-27 Tom Tromey <tom@tromey.com>
3542
3543 PR tui/25342:
3544 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3545
35a98237
TT
35462020-09-27 Tom Tromey <tom@tromey.com>
3547
3548 PR tui/25342:
3549 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3550
9e820dec
TT
35512020-09-27 Tom Tromey <tom@tromey.com>
3552
3553 * unittests/tui-selftests.c: Update.
3554 * tui/tui-winsource.h (struct tui_source_window_base)
3555 <extra_margin, show_line_number, refresh_pad>: New methods.
3556 <m_max_length, m_pad>: New members.
3557 (tui_copy_source_line): Update.
3558 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3559 first_col, line_width, ndigits parameters. Add length.
3560 (tui_source_window_base::show_source_line): Write to pad. Line
3561 number now 0-based.
3562 (tui_source_window_base::refresh_pad): New method.
3563 (tui_source_window_base::show_source_content): Write to pad. Call
3564 refresh_pad.
3565 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3566 not refill.
3567 (tui_source_window_base::update_exec_info): Call
3568 show_line_number.
3569 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3570 method.
3571 <m_digits>: New member.
3572 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3573 and m_max_length.
3574 (tui_source_window::show_line_number): New method.
3575 * tui/tui-io.h (tui_puts): Fix comment.
3576 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3577 m_max_length.
3578
c15c15c8
TT
35792020-09-27 Tom Tromey <tom@tromey.com>
3580
3581 * tui/tui-winsource.c
3582 (tui_source_window_base::set_is_exec_point_at): Don't call
3583 show_source_line.
3584
149830c1
TT
35852020-09-27 Tom Tromey <tom@tromey.com>
3586
3587 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3588 method.
3589 <erase>: Update.
3590 <cursor_x, cursor_y>: Remove.
3591 <m_inner_window>: New member.
3592 (tui_py_window::rerender): Create inner window.
3593 (tui_py_window::output): Write to inner window.
3594
8f9929bb
GR
35952020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3596
3597 PR python/26586
3598 * cli/cli-script.c (execute_control_commands): don't set
3599 instream to nullptr here as this breaks the from_tty argument
3600 to gdb.execute in Python.
3601 (execute_user_command): set instream to nullptr here instead.
3602
956bdb59
SM
36032020-09-25 Simon Marchi <simon.marchi@efficios.com>
3604
3605 * infrun.h (infrun_debug_printf): Fix formatting.
3606 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3607
3b93626b
SJ
36082020-09-25 Saagar Jha <saagar@saagarjha.com>
3609
3610 * compile/compile-object-load.h (struct munmap_list): Add
3611 explicitly-defined move constructor.
3612
b551a89f
TT
36132020-09-24 Tom Tromey <tromey@adacore.com>
3614
3615 PR tui/26638:
3616 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3617 method.
3618 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3619 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3620 (tui_prev_win): Rewrite.
3621
99bb393f
HD
36222020-09-23 Hannes Domani <ssbssa@yahoo.de>
3623
3624 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3625 in WOW64 processes as SIGINT.
3626 * nat/windows-nat.h: Make wow64_process a shared variable.
3627 * windows-nat.c: Remove static wow64_process variable.
3628
20a5fcbd
TT
36292020-09-23 Tom Tromey <tom@tromey.com>
3630
3631 PR symtab/25470:
3632 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3633 offset and bit size.
3634 * printcmd.c (print_scalar_formatted): Handle zero-length
3635 integer.
3636 (print_scalar_formatted): Use bit_size_differs_p.
3637 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3638 constant.
3639 (union type_specific): <int_stuff>: New member.
3640 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3641 methods.
3642 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3643 TYPE_SPECIFIC_FIELD.
3644 (recursive_dump_type, copy_type_recursive): Update.
3645 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3646 DW_AT_data_bit_offset.
3647
bac51ab7
TT
36482020-09-23 Tom Tromey <tom@tromey.com>
3649
3650 * utils.h (class gdb_argv): Add move operators.
3651 <append>: New methods.
3652 * compile/compile.c (build_argc_argv): Remove.
3653 (compile_args_argc): Remove.
3654 (compile_args_argv): Change type.
3655 (set_compile_args): Simplify.
3656 (append_args): Remove.
3657 (filter_args): Remove argcp parameter.
3658 (get_args): Return gdb_argv. Simplify.
3659 (compile_to_object): Update.
3660
92677124
TT
36612020-09-23 Tom Tromey <tom@tromey.com>
3662
3663 * compile/compile-object-run.c (do_module_cleanup)
3664 <~do_module_cleanup> :Remove.
3665 (do_module_cleanup): Update.
3666 * compile/compile-object-load.h (struct munmap_list): Add move
3667 assignment operator.
3668 <source_file>: Now a std::string.
3669 <munmap_list>: Rename. No longer a pointer.
3670 * compile/compile-object-load.c (struct setup_sections_data): Add
3671 constructor.
3672 <setup_one_section>: Declare.
3673 <munmap_list>: Move earlier.
3674 <m_bfd>: New member.
3675 <m_last_size, m_last_section_first, m_last_prot,
3676 m_last_max_alignment>: Rename, add initializers where needed.
3677 (setup_sections_data::setup_one_section): Rename from
3678 setup_sections. Update.
3679 (compile_object_load): Update. Don't use bfd_map_over_sections.
3680
e616f60a
TT
36812020-09-23 Tom Tromey <tom@tromey.com>
3682
3683 * compile/compile-object-run.c (struct do_module_cleanup): Add
3684 parameters to constructor. Update destructor.
3685 <source_file, scope, scope_data, out_value_type, out_value_addr,
3686 munmap_list_head, objfile_name_string>: Remove.
3687 <module>: New member.
3688 (do_module_cleanup): Update.
3689 (compile_object_run): Update.
3690
e947a848
TT
36912020-09-23 Tom Tromey <tom@tromey.com>
3692
3693 * compile/compile.c (eval_compile_command): Update.
3694 * compile/compile-object-run.h (compile_object_run): Take a
3695 compile_module_up.
3696 * compile/compile-object-run.c (compile_object_run): Take a
3697 compile_module_up.
3698 * compile/compile-object-load.h (struct compile_module): Add
3699 constructor, destructor.
3700 (compile_module_up): New typedef.
3701 (compile_object_load): Return compile_object_up.
3702 * compile/compile-object-load.c (compile_object_load): Return
3703 compile_module_up.
3704
0dbf6ee6
TT
37052020-09-23 Tom Tromey <tom@tromey.com>
3706
3707 * compile/compile-object-run.c (struct do_module_cleanup): Add
3708 constructor, destructor.
3709 <objfile_name_string>: Don't use struct hack.
3710 (do_module_cleanup): Use delete.
3711 (compile_object_run): Use new.
3712
ebe824f5
TT
37132020-09-23 Tom Tromey <tom@tromey.com>
3714
3715 * compile/compile-cplus-types.c
3716 (compile_cplus_convert_struct_or_union): Use std::vector.
3717 (compile_cplus_convert_func): Likewise.
3718 * compile/compile-c-types.c (convert_func): Use std::vector.
3719
5dd918d9
TT
37202020-09-21 Tom Tromey <tromey@adacore.com>
3721
3722 * sparc-tdep.c (sparc32_skip_prologue): Use
3723 skip_prologue_using_sal.
3724
5486c517
TT
37252020-09-19 Tom Tromey <tom@tromey.com>
3726
3727 * symfile.c (add_section_size_callback): Remove.
3728 (load_one_section): Rename from load_section_callback. Change
3729 parameters.
3730 (generic_load): Use foreach.
3731
8a6bb1d1
TT
37322020-09-19 Tom Tromey <tom@tromey.com>
3733
3734 * exec.c (add_to_section_table): Remove.
3735 (build_section_table): Use foreach.
3736
08f93a1a
TT
37372020-09-19 Tom Tromey <tom@tromey.com>
3738
3739 * elfread.c (elf_locate_sections): Change parameters.
3740 (elf_symfile_read): Use foreach.
3741
03cd72b8
TT
37422020-09-19 Tom Tromey <tom@tromey.com>
3743
3744 * cli/cli-dump.c (struct callback_data): Remove.
3745 (restore_one_section): Rename from restore_section_callback.
3746 Change parameters.
3747 (restore_binary_file): Change parameters.
3748 (restore_command): Use foreach.
3749
f4f2b85f
TT
37502020-09-19 Tom Tromey <tom@tromey.com>
3751
3752 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3753 (gcore_copy_callback): Likewise.
3754 (gcore_memory_sections): Use foreach.
3755
b35c1d1c
TT
37562020-09-19 Tom Tromey <tom@tromey.com>
3757
3758 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3759 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3760 parameters.
3761 (generic_elf_osabi_sniffer): Use foreach.
3762 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3763 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3764
5bb6e9dd
TT
37652020-09-19 Tom Tromey <tom@tromey.com>
3766
3767 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3768 (dwarf2_get_dwz_file): Use foreach.
3769 (dwarf2_locate_dwo_sections): Change parameters.
3770 (open_and_init_dwo_file): Use foreach.
3771 (dwarf2_locate_common_dwp_sections): Change parameters.
3772 (open_and_init_dwp_file): Use foreach.
3773
ad7277da
TT
37742020-09-19 Tom Tromey <tom@tromey.com>
3775
3776 * symfile.h: (find_lowest_section): Don't declare.
3777 * symfile.c (find_lowest_section): Now static. Change
3778 parameters.
3779 (struct place_section_arg): Remove.
3780 (place_section): Change parameters.
3781 (addr_info_make_relative): Use foreach.
3782 (symfile_dummy_outputs): Remove.
3783 (default_symfile_relocate): Use foreach.
3784
cb814f2e
TT
37852020-09-19 Tom Tromey <tom@tromey.com>
3786
3787 * objfiles.c (add_to_objfile_sections): Rename from
3788 add_to_objfile_sections_full.
3789 (add_to_objfile_sections): Remove.
3790 (build_objfile_section_table): Use foreach.
3791
3cabfd26
TT
37922020-09-19 Tom Tromey <tom@tromey.com>
3793
3794 * stap-probe.c (get_stap_base_address_1): Remove.
3795 (get_stap_base_address): Use foreach.
3796
1ce51eb5
TT
37972020-09-19 Tom Tromey <tom@tromey.com>
3798
3799 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3800 parameters.
3801 (gdb_bfd_close_or_warn): Use foreach.
3802
a190fabb
TT
38032020-09-19 Tom Tromey <tom@tromey.com>
3804
3805 * corelow.c (add_to_thread_list): Change parameters.
3806 (core_target_open): Use foreach.
3807
cafb0d81
TT
38082020-09-19 Tom Tromey <tom@tromey.com>
3809
3810 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3811 existing function.
3812
c8d5abea
AB
38132020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3814
3815 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3816 for arrays.
3817
6d816919
AB
38182020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3819
3820 * eval.c: Remove 'f-lang.h' include.
3821 (value_f90_subarray): Moved to f-lang.c.
3822 (eval_call): Renamed to...
3823 (evaluate_subexp_do_call): ...this, is no longer static, header
3824 comment moved into header file.
3825 (evaluate_funcall): Update call to eval_call.
3826 (skip_undetermined_arglist): Moved to f-lang.c.
3827 (fortran_value_subarray): Likewise.
3828 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3829 moved to evaluate_subexp_f.
3830 (calc_f77_array_dims): Moved to f-lang.c
3831 * expprint.c (print_subexp_funcall): New function.
3832 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3833 moved to print_subexp_f, OP_FUNCALL uses new function.
3834 (dump_subexp_body_funcall): New function.
3835 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3836 moved to dump_subexp_f, OP_FUNCALL uses new function.
3837 * expression.h (evaluate_subexp_do_call): Declare.
3838 * f-lang.c (value_f90_subarray): Moved from eval.c.
3839 (skip_undetermined_arglist): Likewise.
3840 (calc_f77_array_dims): Likewise.
3841 (fortran_value_subarray): Likewise.
3842 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3843 (operator_length_f): Likewise.
3844 (print_subexp_f): Likewise.
3845 (dump_subexp_body_f): Likewise.
3846 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3847 declaration of this operation to here.
3848 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3849 support moved to operator_length_f.
3850 * parser-defs.h (dump_subexp_body_funcall): Declare.
3851 (print_subexp_funcall): Declare.
3852 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3853 fortran-operator.def.
3854
8c37706a
AB
38552020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3856
3857 * eval.c (fortran_value_subarray): New function, content is taken
3858 from...
3859 (evaluate_subexp_standard): ...here, in two places. Now arrays
3860 and strings both call the new function.
3861 (calc_f77_array_dims): Add header comment, handle strings.
3862
14f9473c
VC
38632020-09-18 Victor Collod <vcollod@nvidia.com>
3864
3865 PR gdb/26635
3866 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3867 (i386_analyze_prologue): Call i386_skip_endbr.
3868
b60cea74
TT
38692020-09-18 Tom Tromey <tromey@adacore.com>
3870
3871 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3872 (windows_nat_target::wait): Update.
3873 * target/wait.h (enum target_wait_flag): New. Use
3874 DEF_ENUM_FLAGS_TYPE.
3875 * target/target.h (target_wait): Change type of options.
3876 * target.h (target_options_to_string, default_target_wait):
3877 Update.
3878 (struct target_ops) <wait>: Change type of options.
3879 * target.c (target_wait, default_target_wait, do_option): Change
3880 type of "options".
3881 (target_options_to_string): Likewise.
3882 * target-delegates.c: Rebuild.
3883 * target-debug.h (target_debug_print_target_wait_flags): Rename
3884 from target_debug_print_options.
3885 * sol-thread.c (class sol_thread_target) <wait>: Update.
3886 (sol_thread_target::wait): Update.
3887 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3888 (rs6000_nat_target::wait): Update.
3889 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3890 Update.
3891 (remote_target::wait_ns, remote_target::wait_as): Change type of
3892 "options".
3893 (remote_target::wait): Update.
3894 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3895 (gdbsim_target::wait): Update.
3896 * record-full.c (class record_full_base_target) <wait>: Update.
3897 (record_full_wait_1): Change type of "options".
3898 (record_full_base_target::wait): Update.
3899 * record-btrace.c (class record_btrace_target) <wait>: Update.
3900 (record_btrace_target::wait): Update.
3901 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3902 Update.
3903 (ravenscar_thread_target::wait): Update.
3904 * procfs.c (class procfs_target) <wait>: Update.
3905 (procfs_target::wait): Update.
3906 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3907 * obsd-nat.c (obsd_nat_target::wait): Update.
3908 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3909 (nto_procfs_target::wait): Update.
3910 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3911 * nbsd-nat.c (nbsd_wait): Change type of "options".
3912 (nbsd_nat_target::wait): Update.
3913 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3914 (thread_db_target::wait): Update.
3915 * linux-nat.h (class linux_nat_target) <wait>: Update.
3916 * linux-nat.c (linux_nat_target::wait): Update.
3917 (linux_nat_wait_1): Update.
3918 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3919 "options".
3920 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3921 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3922 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3923 (go32_nat_target::wait): Update.
3924 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3925 * gnu-nat.c (gnu_nat_target::wait): Update.
3926 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3927 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3928 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3929 * darwin-nat.c (darwin_nat_target::wait): Update.
3930 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3931 (bsd_uthread_target::wait): Update.
3932 * aix-thread.c (class aix_thread_target) <wait>: Update.
3933 (aix_thread_target::wait): Update.
3934
0295dde6
AB
39352020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3936
3937 * compile/compile-object-run.c (create_copied_type_recursive): New
3938 function.
3939 (compile_object_run): Use new function.
3940
d3483b43
JT
39412020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3942
3943 * NEWS: Mention x86_64 Cygwin core file support.
3944
e7d612ad
JT
39452020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3946
3947 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3948 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3949
aff9d387
JT
39502020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3951
62a5151b
JT
3952 * windows-tdep.h: Add prototypes.
3953 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3954 (i386_windows_core_pid_to_str): Move and rename ...
3955 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3956 (windows_core_pid_to_str): ... and here.
3957 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3958
39592020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3960 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3961 (amd64_windows_init_abi_common): ... and register.
3962
7d155da3
JT
39632020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3964
3965 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3966 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3967
e8ef12b9
PA
39682020-09-18 Pedro Alves <pedro@palves.net>
3969
3970 PR gdb/26631
3971 * thread.c (thread_find_command): Switch inferior before calling
3972 target methods.
3973
c1e1314d
TT
39742020-09-17 Tom Tromey <tromey@adacore.com>
3975
3976 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3977 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3978 (tdesc_arch_data_up): New typedef.
3979 (tdesc_use_registers, tdesc_data_alloc): Update.
3980 (tdesc_data_cleanup): Don't declare.
3981 * target-descriptions.c (tdesc_data_alloc): Return a
3982 tdesc_arch_data_up.
3983 (tdesc_arch_data_deleter::operator()): Rename from
3984 tdesc_data_cleanup. Change argument type.
3985 (tdesc_use_registers): Change early_data to an rvalue reference.
3986 (tdesc_use_registers): Don't use delete.
3987 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3988 * s390-tdep.c (s390_gdbarch_init): Update.
3989 * rx-tdep.c (rx_gdbarch_init): Update.
3990 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3991 * riscv-tdep.c (riscv_gdbarch_init): Update.
3992 * or1k-tdep.c (or1k_gdbarch_init): Update.
3993 * nios2-tdep.c (nios2_gdbarch_init): Update.
3994 * nds32-tdep.c (nds32_gdbarch_init): Update.
3995 * mips-tdep.c (mips_gdbarch_init): Update.
3996 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3997 * m68k-tdep.c (m68k_gdbarch_init): Update.
3998 * i386-tdep.c (i386_gdbarch_init): Update.
3999 * arm-tdep.c (arm_gdbarch_init): Update.
4000 * arc-tdep.c (arc_tdesc_init): Update.
4001 (arc_gdbarch_init): Update.
4002 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4003
0363df3d
HD
40042020-09-17 Hannes Domani <ssbssa@yahoo.de>
4005
4006 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4007 for WOW64 processes.
4008
280a9412
TT
40092020-09-17 Tom Tromey <tom@tromey.com>
4010
4011 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4012
6108fd18
TT
40132020-09-17 Tom Tromey <tom@tromey.com>
4014
4015 * value.c (preserve_values): Update.
4016 * python/py-type.c (save_objfile_types): Update.
4017 * guile/scm-type.c (save_objfile_types): Update.
4018 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4019 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4020 * compile/compile-object-run.c (compile_object_run): Update.
4021
fa9b1164
TT
40222020-09-17 Tom Tromey <tom@tromey.com>
4023
4024 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4025 Remove.
4026 <m_table>: Now htab_up.
4027 * typeprint.c (typedef_hash_table::recursively_update)
4028 (typedef_hash_table::add_template_parameters)
4029 (typedef_hash_table::typedef_hash_table): Update.
4030 (typedef_hash_table::~typedef_hash_table): Remove.
4031 (typedef_hash_table::typedef_hash_table)
4032 (typedef_hash_table::find_global_typedef)
4033 (typedef_hash_table::find_typedef): Update.
4034
eb53f105
TT
40352020-09-17 Tom Tromey <tom@tromey.com>
4036
4037 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4038
7a8a5d47
TT
40392020-09-17 Tom Tromey <tom@tromey.com>
4040
4041 * linespec.c (class decode_compound_collector)
4042 <~decode_compound_collector>: Remove.
4043 <m_unique_syms>: Now htab_up.
4044 (decode_compound_collector::operator ()): Update.
4045 (class symtab_collector) <~symtab_collector>: Remove.
4046 <m_symtab_table>: Now htab_up.
4047 (symtab_collector::operator ()): Update.
4048
99032cfc
TT
40492020-09-17 Tom Tromey <tom@tromey.com>
4050
4051 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4052 (filename_seen_cache::clear): Update.
4053 (~filename_seen_cache): Remove.
4054 (filename_seen_cache::seen): Update.
4055 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4056 htab_up.
4057 <~filename_seen_cache>: Remove.
4058 <traverse>: Update.
4059
32580f6d
TT
40602020-09-17 Tom Tromey <tom@tromey.com>
4061
4062 * completer.c (completion_tracker::discard_completions)
4063 (completion_tracker::~completion_tracker)
4064 (completion_tracker::maybe_add_completion)
4065 (completion_tracker::remove_completion)
4066 (completion_tracker::recompute_lowest_common_denominator)
4067 (completion_tracker::build_completion_result): Update.
4068 * completer.h (class completion_tracker) <have_completions>:
4069 Update.
4070 <m_entries_hash>: Now htab_up.
4071
c1fb9836
TT
40722020-09-17 Tom Tromey <tom@tromey.com>
4073
4074 * breakpoint.c (ambiguous_names_p): Use htab_up.
4075
88f07206
TT
40762020-09-17 Tom Tromey <tom@tromey.com>
4077
4078 * auto-load.c (struct auto_load_pspace_info)
4079 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4080 <loaded_script_files, loaded_script_texts>: Change type to
4081 htab_up.
4082 (~auto_load_pspace_info) Remove.
4083 (init_loaded_scripts_info, maybe_add_script_file)
4084 (maybe_add_script_text, auto_load_info_scripts): Update.
4085
9519b2ee
TT
40862020-09-17 Tom Tromey <tromey@adacore.com>
4087
4088 * c-exp.y (name_obstack): Now static.
4089
d2cd4113
CC
40902020-09-17 Chungyi Chi <demonic@csie.io>
4091
4092 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4093
b650a282
SM
40942020-09-16 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4097 (add_solib_catchpoint): Likewise.
4098 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4099 to bool.
4100 (add_solib_catchpoint): Change int parameter/variable to bool.
4101 (catch_load_or_unload): Likewise.
4102 (init_catchpoint): Likewise.
4103 (create_fork_vfork_event_catchpoint): Likewise.
4104 (catch_fork_command_1): Likewise.
4105 (catch_exec_command_1): Likewise.
4106
4d0bcfcf
SM
41072020-09-16 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4110 Change instance_flags to m_instance_flags.
4111
fe830662
TT
41122020-09-16 Tom Tromey <tromey@adacore.com>
4113
4114 PR gdb/26598:
4115 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4116
fe5ddfc3
JB
41172020-09-16 John Baldwin <jhb@FreeBSD.org>
4118
4119 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4120 PL_FLAG_EXEC.
4121 (fbsd_nat_target::insert_exec_catchpoint)
4122 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4123 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4124 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4125
e911c666
JB
41262020-09-16 John Baldwin <jhb@FreeBSD.org>
4127
4128 * configure.ac: Remove check for kinfo_getvmmap().
4129 * configure, config.in: Regenerate.
4130 * fbsd-nat.c (fbsd_read_mapping): Remove
4131 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4132 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4133 kinfo_get_vmmap() are always present.
4134
1f17d372
JB
41352020-09-16 John Baldwin <jhb@FreeBSD.org>
4136
4137 * fbsd-nat.c: Always include support for
4138 TARGET_OBJECT_SIGNAL_INFO.
4139
bcb1da7f
JB
41402020-09-16 John Baldwin <jhb@FreeBSD.org>
4141
4142 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4143 sysctl and remove procfs fallback.
4144
5515f729
JB
41452020-09-16 John Baldwin <jhb@FreeBSD.org>
4146
4147 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4148 * fbsd-nat.h: Likewise.
4149
da1df1db
TBA
41502020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4151
4152 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4153 argument.
4154
0e25e767
AB
41552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4156
4157 * ada-lang.c (ada_language_data): Delete.
4158 (ada_language): Remove references to ada_language_data.
4159 * c-lang.c (c_language_data): Delete.
4160 (c_language): Remove references to c_language_data.
4161 (cplus_language_data): Delete.
4162 (cplus_language): Remove references to cplus_language_data.
4163 (asm_language_data): Delete.
4164 (asm_language): Remove references to asm_language_data.
4165 (minimal_language_data): Delete.
4166 (minimal_language): Remove references to minimal_language_data.
4167 * d-lang.c (d_language_data): Delete.
4168 (d_language): Remove references to d_language_data.
4169 * f-lang.c (f_language_data): Delete.
4170 (f_language): Remove references to f_language_data.
4171 * go-lang.c (go_language_data): Delete.
4172 (go_language): Remove references to go_language_data.
4173 * language.c (unknown_language_data): Delete.
4174 (unknown_language): Remove references to unknown_language_data.
4175 (auto_language_data): Delete.
4176 (auto_language): Remove references to auto_language_data.
4177 * language.h (language_data): Delete struct.
4178 (language_defn): No longer inherit from language_data.
4179 * m2-lang.c (m2_language_data): Delete.
4180 (m2_language): Remove references to m2_language_data.
4181 * objc-lang.c (objc_language_data): Delete.
4182 (objc_language): Remove references to objc_language_data.
4183 * opencl-lang.c (opencl_language_data): Delete.
4184 (opencl_language): Remove references to opencl_language_data.
4185 * p-lang.c (pascal_language_data): Delete.
4186 (pascal_language): Remove references to pascal_language_data.
4187 * rust-lang.c (rust_language_data): Delete.
4188 (rust_language): Remove references to rust_language_data.
4189
b7c6e27d
AB
41902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4191
4192 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4193 initializer.
4194 (ada_language::opcode_print_table): New member function.
4195 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4196 (c_language::opcode_print_table): New member function.
4197 (cplus_language_data): Remove la_op_print_tab initializer.
4198 (cplus_language::opcode_print_table): New member function.
4199 (asm_language_data): Remove la_op_print_tab initializer.
4200 (asm_language::opcode_print_table): New member function.
4201 (minimal_language_data): Remove la_op_print_tab initializer.
4202 (minimal_language::opcode_print_table): New member function.
4203 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4204 (d_language::opcode_print_table): New member function.
4205 * expprint.c (print_subexp_standard): Update call to
4206 opcode_print_table.
4207 (op_string): Likewise.
4208 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4209 (f_language::opcode_print_table): New member function.
4210 * go-lang.c (go_language_data): Remove la_op_print_tab
4211 initializer.
4212 (go_language::opcode_print_table): New member function.
4213 * language.c (unknown_language_data): Remove la_op_print_tab
4214 initializer.
4215 (unknown_language::opcode_print_table): New member function.
4216 (auto_language_data): Remove la_op_print_tab initializer.
4217 (auto_language::opcode_print_table): New member function.
4218 * language.h (language_data): Remove la_op_print_tab field.
4219 (language_defn::opcode_print_table): Declare new member function.
4220 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4221 initializer.
4222 (m2_language::opcode_print_table): New member function.
4223 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4224 initializer.
4225 (objc_language::opcode_print_table): New member function.
4226 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4227 initializer.
4228 (opencl_language::opcode_print_table): New member function.
4229 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4230 initializer.
4231 (pascal_language::opcode_print_table): New member function.
4232 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4233 initializer.
4234 (rust_language::opcode_print_table): New member function.
4235
5aba6ebe
AB
42362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4237
4238 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4239 (ada_language::expression_ops): New member function.
4240 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4241 (c_language::expression_ops): New member function.
4242 (cplus_language_data): Remove la_exp_desc initializer.
4243 (cplus_language::expression_ops): New member function.
4244 (asm_language_data): Remove la_exp_desc initializer.
4245 (asm_language::expression_ops): New member function.
4246 (minimal_language_data): Remove la_exp_desc initializer.
4247 (minimal_language::expression_ops): New member function.
4248 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4249 (d_language::expression_ops): New member function.
4250 * eval.c (evaluate_subexp): Update call to expression_ops.
4251 * expprint.c (print_subexp): Likewise.
4252 (op_name): Likewise.
4253 (dump_subexp_body): Likewise.
4254 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4255 (f_language::expression_ops): New member function.
4256 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4257 (go_language::expression_ops): New member function.
4258 * language.c (language_defn::expression_ops): New function.
4259 (unknown_language_data): Remove la_exp_desc initializer.
4260 (auto_language_data): Likewise.
4261 * language.h (language_data): Remove la_exp_desc field.
4262 (language_defn::expression_ops): Declare new member function.
4263 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4264 (m2_language::expression_ops): New member function.
4265 * objc-lang.c (objc_language_data): Remove la_exp_desc
4266 initializer.
4267 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4268 initializer.
4269 (opencl_language::expression_ops): New member function.
4270 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4271 * parse.c (operator_length): Update call to expression_ops.
4272 (exp_iterate): Likewise.
4273 * rust-lang.c (rust_language_data): Remove la_exp_desc
4274 initializer.
4275 (ruse_language::expression_ops): New member function.
4276
b63a3f3f
AB
42772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4278
4279 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4280 initializer.
4281 (ada_language::varobj_ops): New member function.
4282 * c-lang.c (c_language_data): Remove la_varobj_ops
4283 initializer.
4284 (cplus_language_data): Likewise.
4285 (cplus_language::varobj_ops): New member function.
4286 (asm_language_data): Remove la_varobj_ops initializer.
4287 (minimal_language_data): Likewise.
4288 * d-lang.c (d_language_data): Likewise.
4289 * f-lang.c (f_language_data): Likewise.
4290 * go-lang.c (go_language_data): Likewise.
4291 * language.c (language_defn::varobj_ops): New function.
4292 (unknown_language_data): Remove la_varobj_ops
4293 initializer.
4294 (auto_language_data): Likewise.
4295 * language.h (language_data): Remove la_varobj_ops field.
4296 (language_defn::varobj_ops): Declare new member function.
4297 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4298 * objc-lang.c (objc_language_data): Likewise.
4299 * opencl-lang.c (opencl_language_data): Likewise.
4300 * p-lang.c (pascal_language_data): Likewise.
4301 * rust-lang.c (rust_language_data): Likewise.
4302 * varobj.c (varobj_create): Update call to varobj_ops.
4303 * varobj.h (default_varobj_ops): Delete define.
4304
1ac14a04
AB
43052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4306
4307 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4308 initializer.
4309 * c-lang.c (c_language_data): Likewise.
4310 (c_language::macro_expansion): New member function.
4311 (cplus_language_data): Likewise.
4312 (cplus_language::macro_expansion): New member function.
4313 (asm_language_data): Likewise.
4314 (asm_language::macro_expansion): New member function.
4315 (minimal_language_data): Likewise.
4316 (minimal_language::macro_expansion): New member function.
4317 * d-lang.c (d_language_data): Remove la_macro_expansion
4318 initializer.
4319 * f-lang.c (f_language_data): Likewise.
4320 * go-lang.c (go_language_data): Likewise.
4321 * language.c (unknown_language_data): Likewise.
4322 (auto_language_data): Likewise.
4323 * language.h (language_data): Remove la_macro_expansion field.
4324 (language_defn::macro_expansion): New member function.
4325 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4326 initializer.
4327 * objc-lang.c (objc_language_data): Likewise.
4328 (objc_language::macro_expansion): New member function.
4329 * opencl-lang.c (opencl_language_data): Likewise.
4330 (opencl_language::macro_expansion): New member function.
4331 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4332 initializer.
4333 * rust-lang.c (rust_language_data): Likewise.
4334 * symtab.c (default_collect_symbol_completion_matches_break_on):
4335 Update call to macro_expansion.
4336
3a3440fb
AB
43372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4338
4339 * ada-lang.c (ada_language_data): Remove la_array_ordering
4340 initializer.
4341 * c-lang.c (c_language_data): Likewise.
4342 (cplus_language_data): Likewise.
4343 (asm_language_data): Likewise.
4344 (minimal_language_data): Likewise.
4345 * d-lang.c (d_language_data): Likewise.
4346 * dwarf2/read.c (read_array_order): Update for call to
4347 array_ordering.
4348 * f-lang.c (f_language_data): Remove la_array_ordering
4349 initializer.
4350 (f_language::array_ordering): New member function.
4351 * go-lang.c (go_language_data): Remove la_array_ordering
4352 initializer.
4353 * language.c (unknown_language_data): Likewise.
4354 (auto_language_data): Likewise.
4355 * language.h (language_data): Delete la_array_ordering field.
4356 (language_defn::array_ordering): New member function.
4357 * m2-lang.c (m2_language_data): Remove la_array_ordering
4358 initializer.
4359 * objc-lang.c (objc_language_data): Likewise.
4360 * opencl-lang.c (opencl_language_data): Likewise.
4361 * p-lang.c (pascal_language_data): Likewise.
4362 * rust-lang.c (rust_language_data): Likewise.
4363
0d201fa4
AB
43642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4365
4366 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4367 initializer.
4368 * c-lang.c (c_language_data): Likewise.
4369 (cplus_language_data): Likewise.
4370 (asm_language_data): Likewise.
4371 (minimal_language_data): Likewise.
4372 * d-lang.c (d_language_data): Likewise.
4373 * f-lang.c (f_language_data): Likewise.
4374 (f_language::case_sensitivity): New member function.
4375 * go-lang.c (go_language_data): Remove la_case_sensitivity
4376 initializer.
4377 * language.c (enum case_mode): Moved here from language.h.
4378 (case_mode): Make static.
4379 (show_case_command): Update for case_sensitivity being a method.
4380 (set_case_command): Likewise.
4381 (set_range_case): Likewise.
4382 (unknown_language_data): Remove la_case_sensitivity initializer.
4383 (auto_language_data): Likewise.
4384 * language.h (case_mode): Delete, move enum declaration to
4385 language.c.
4386 (language_data): Delete la_case_sensitivity field.
4387 (language_defn::case_sensitivity): New member function.
4388 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4389 initializer.
4390 * objc-lang.c (objc_language_data): Likewise.
4391 * opencl-lang.c (opencl_language_data): Likewise.
4392 * p-lang.c (pascal_language_data): Likewise.
4393 * rust-lang.c (rust_language_data): Likewise.
4394
efdf6a73
AB
43952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4396
4397 * ada-lang.c (ada_language_data): Remove la_range_check
4398 initializer.
4399 * c-lang.c (c_language_data): Likewise.
4400 (cplus_language_data): Likewise.
4401 (asm_language_data): Likewise.
4402 (minimal_language_data): Likewise.
4403 * d-lang.c (d_language_data): Likewise.
4404 * f-lang.c (f_language_data): Likewise.
4405 (f_language::range_checking_on_by_default): New member function.
4406 * go-lang.c (go_language_data): Remove la_range_check initializer.
4407 * language.c (enum range_mode): Moved here from language.h.
4408 (range_mode): Made static.
4409 (show_range_command): Update to use
4410 range_checking_on_by_default.
4411 (set_range_command): Likewise.
4412 (set_range_case): Likewise.
4413 (unknown_language_data): Remove la_range_check initializer.
4414 (auto_language_data): Likewise.
4415 * language.h (range_mode): Delete. Enum definition moved to
4416 language.c.
4417 (language_data): Remove la_range_check field.
4418 (language_defn::range_checking_on_by_default): New member
4419 function.
4420 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4421 (m2_language::range_checking_on_by_default): New member function.
4422 * objc-lang.c (objc_language_data): Remove la_range_check
4423 initializer.
4424 * opencl-lang.c (opencl_language_data): Likewise.
4425 * p-lang.c (pascal_language_data): Likewise.
4426 (pascal_language::range_checking_on_by_default): New member
4427 function.
4428 * rust-lang.c (rust_language_data): Remove la_range_check
4429 initializer.
4430 (rust_language::range_checking_on_by_default): New member
4431 function.
4432
bf92aec5
AB
44332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4434
4435 * dwarf2/read.c (dwarf2_physname): Remove special case for
4436 language_go.
4437 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4438 member function.
4439
d3355e4d
AB
44402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4441
4442 * ada-lang.c (ada_language_data): Remove
4443 la_store_sym_names_in_linkage_form_p initializer.
4444 (ada_language::store_sym_names_in_linkage_form_p): New member
4445 function.
4446 * c-lang.c (c_language_data): Remove
4447 la_store_sym_names_in_linkage_form_p initializer.
4448 (c_language::store_sym_names_in_linkage_form_p): New member
4449 function.
4450 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4451 initializer.
4452 (asm_language_data): Likewise.
4453 (asm_language::store_sym_names_in_linkage_form_p): New member
4454 function.
4455 (minimal_language_data): Remove
4456 la_store_sym_names_in_linkage_form_p initializer.
4457 (minimal_language::store_sym_names_in_linkage_form_p): New member
4458 function.
4459 * d-lang.c (d_language_data): Remove
4460 la_store_sym_names_in_linkage_form_p initializer.
4461 * dwarf2/read.c (dwarf2_physname): Update call to
4462 store_sym_names_in_linkage_form_p.
4463 * f-lang.c (f_language_data): Remove
4464 la_store_sym_names_in_linkage_form_p initializer.
4465 * go-lang.c (go_language_data): Remove
4466 la_store_sym_names_in_linkage_form_p initializer.
4467 * language.c (unknown_language_data): Remove
4468 la_store_sym_names_in_linkage_form_p initializer.
4469 (unknown_language::store_sym_names_in_linkage_form_p): New member
4470 function.
4471 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4472 initializer.
4473 (auto_language::store_sym_names_in_linkage_form_p): New member
4474 function.
4475 * language.h (language_data): Remove
4476 la_store_sym_names_in_linkage_form_p member variable.
4477 (language_defn::store_sym_names_in_linkage_form_p): New member
4478 function.
4479 * m2-lang.c (m2_language_data): Remove
4480 la_store_sym_names_in_linkage_form_p initializer.
4481 * objc-lang.c (objc_language_data): Likewise.
4482 * opencl-lang.c (opencl_language_data): Likewise.
4483 * p-lang.c (pascal_language_data): Likewise.
4484 * rust-lang.c (rust_language_data): Likewise.
4485
22c12a6c
AB
44862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4487
4488 * ada-lang.c (ada_language_data): Remove string_lower_bound
4489 initializer.
4490 * c-lang.c (c_language_data): Likewise.
4491 (cplus_language_data): Likewise.
4492 (asm_language_data): Likewise.
4493 (minimal_language_data): Likewise.
4494 * d-lang.c (d_language_data): Likewise.
4495 * f-lang.c (f_language_data): Likewise.
4496 * go-lang.c (go_language_data): Likewise.
4497 * language.c (unknown_language_data): Likewise.
4498 (auto_language_data): Likewise.
4499 * language.h (language_data): Remove string_lower_bound field.
4500 (language_defn::string_lower_bound): New member function.
4501 * m2-lang.c (m2_language_data): Remove string_lower_bound
4502 initializer.
4503 (m2_language::string_lower_bound): New member function.
4504 * objc-lang.c (objc_language_data): Remove string_lower_bound
4505 initializer.
4506 * opencl-lang.c (opencl_language_data): Likewise.
4507 * p-lang.c (pascal_language_data): Likewise.
4508 * rust-lang.c (rust_language_data): Likewise.
4509 * valops.c (value_cstring): Update call to string_lower_bound.
4510 (value_string): Likewise.
4511 * value.c (allocate_repeated_value): Likewise.
4512
1c236ddd
AB
45132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4514
4515 * valops.c (value_repeat): Fix incorrect argument name in comment.
4516
67bd3fd5
AB
45172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4518
4519 * ada-lang.c (ada_language_data): Remove c_style_arrays
4520 initializer.
4521 (ada_language::c_style_arrays_p): New member fuction.
4522 * c-lang.c (c_language_data): Remove c_style_arrays
4523 initializer.
4524 (cplus_language_data): Likewise.
4525 (asm_language_data): Likewise.
4526 (minimal_language_data): Likewise.
4527 * d-lang.c (d_language_data): Likewise.
4528 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4529 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4530 (f_language::c_style_arrays_p): New member function.
4531 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4532 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4533 * language.c (unknown_language_data): Remove c_style_arrays
4534 initializer.
4535 (auto_language_data): Likewise.
4536 * language.h (language_data): Remove c_style_arrays field.
4537 (language_defn::c_style_arrays_p): New member function.
4538 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4539 (m2_language::c_style_arrays_p): New member function.
4540 * objc-lang.c (objc_language_data): Remove c_style_arrays
4541 initializer.
4542 * opencl-lang.c (opencl_language_data): Likewise.
4543 * p-lang.c (pascal_language_data): Likewise.
4544 * rust-lang.c (rust_language_data): Likewise.
4545 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4546 and update local variable to a bool.
4547 * valops.c (value_cast): Update call to c_style_arrays_p.
4548 (value_array): Likewise.
4549 * value.c (coerce_array): Likewise.
4550
85967615
AB
45512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4552
4553 * ada-lang.c (ada_language_data): Remove la_language initializer.
4554 * c-lang.c (c_language_data): Likewise.
4555 (cplus_language_data): Likewise.
4556 (asm_language_data): Likewise.
4557 (minimal_language_data): Likewise.
4558 * d-lang.c (d_language_data): Likewise.
4559 * f-lang.c (f_language_data): Likewise.
4560 * go-lang.c (go_language_data): Likewise.
4561 * language.c (unknown_language_data): Likewise.
4562 (auto_language_data): Likewise.
4563 * language.h (language_data): Remove la_language field.
4564 (language_defn::language_defn): Initialise la_language field.
4565 (language_defn::la_language): New member variable.
4566 * m2-lang.c (m2_language_data): Remove la_language field.
4567 * objc-lang.c (objc_language_data): Likewise.
4568 * opencl-lang.c (opencl_language_data): Likewise.
4569 * p-lang.c (pascal_language_data): Likewise.
4570 * rust-lang.c (rust_language_data): Likewise.
4571
e171d6f1
AB
45722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4573
4574 * ada-lang.c (ada_extensions): Delete, moved into
4575 ada_language::filename_extensions.
4576 (ada_language_data): Remove la_filename_extensions initializer.
4577 (ada_language::filename_extensions): New member function.
4578 * c-lang.c (c_extensions): Delete, moved into
4579 c_language::filename_extensions.
4580 (c_language_data): Remove la_filename_extensions initializer.
4581 (c_language::filename_extensions): New member function.
4582 (cplus_extensions): Delete, moved into
4583 cplus_language::filename_extensions.
4584 (cplus_language_data): Remove la_filename_extensions initializer.
4585 (cplus_language::filename_extensions): New member function.
4586 (asm_extensions): Delete, moved into
4587 asm_language::filename_extensions.
4588 (asm_language_data): Remove la_filename_extensions initializer.
4589 (asm_language::filename_extensions): New member function.
4590 (minimal_language_data): Remove la_filename_extensions
4591 initializer.
4592 * d-lang.c (d_extensions): Delete, moved into
4593 d_language::filename_extensions.
4594 (d_language_data): Remove la_filename_extensions initializer.
4595 (d_language::filename_extensions): New member function.
4596 * f-lang.c (f_extensions): Delete, moved into
4597 f_language::filename_extensions.
4598 (f_language_data): Remove la_filename_extensions initializer.
4599 (f_language::filename_extensions): New member function.
4600 * go-lang.c (go_language_data): Remove la_filename_extensions
4601 initializer.
4602 * language.c (add_set_language_command): Update now that
4603 filename_extensions returns a vector.
4604 (unknown_language_data): Remove la_filename_extensions
4605 initializer.
4606 (auto_language_data): Likewise.
4607 * language.h (language_data): Remove la_filename_extensions field.
4608 (language_defn::filename_extensions): New member function.
4609 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4610 initializer.
4611 * objc-lang.c (objc_extensions): Delete, moved into
4612 objc_language::filename_extensions.
4613 (objc_language_data): Remove la_filename_extensions initializer.
4614 (objc_language::filename_extensions): New member function.
4615 * opencl-lang.c (opencl_language_data): Remove
4616 la_filename_extensions initializer.
4617 * p-lang.c (pascal_extensions): Delete, moved into
4618 pascal_language::filename_extensions.
4619 (pascal_language_data): Remove la_filename_extensions initializer.
4620 (pascal_language::filename_extensions): New member function.
4621 * rust-lang.c (rust_extensions): Delete, moved into
4622 rust_language::filename_extensions.
4623 (rust_language_data): Remove la_filename_extensions initializer.
4624 (rust_language::filename_extensions): New member function.
4625 * symfile.c (add_filename_language): Add new assert.
4626
6f7664a9
AB
46272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4628
4629 * ada-lang.c (ada_language_data): Remove la_name and
4630 la_natural_name initializers.
4631 (ada_language::name): New member function.
4632 (ada_language::natural_name): New member function.
4633 * c-lang.c (c_language_data): Remove la_name and
4634 la_natural_name initializers.
4635 (c_language::name): New member function.
4636 (c_language::natural_name): New member function.
4637 (cplus_language_data): Remove la_name and
4638 la_natural_name initializers.
4639 (cplus_language::name): New member function.
4640 (cplus_language::natural_name): New member function.
4641 (asm_language_data): Remove la_name and
4642 la_natural_name initializers.
4643 (asm_language::name): New member function.
4644 (asm_language::natural_name): New member function.
4645 (minimal_language_data): Remove la_name and
4646 la_natural_name initializers.
4647 (minimal_language::name): New member function.
4648 (minimal_language::natural_name): New member function.
4649 * compile/compile.c (compile_to_object): Update call to
4650 lanugage_defn::name.
4651 * d-lang.c (d_language_data): Remove la_name and
4652 la_natural_name initializers.
4653 (d_language::name): New member function.
4654 (d_language::natural_name): New member function.
4655 * expprint.c (print_subexp_standard): Update call to
4656 language_defn::name.
4657 (dump_raw_expression): Likewise
4658 (dump_prefix_expression): Likewise.
4659 * f-lang.c (f_language_data): Remove la_name and
4660 la_natural_name initializers.
4661 (f_language::name): New member function.
4662 (f_language::natural_name): New member function.
4663 * go-lang.c (go_language_data): Remove la_name and
4664 la_natural_name initializers.
4665 (go_language::name): New member function.
4666 (go_language::natural_name): New member function.
4667 * language.c (show_language_command): Update call to
4668 language_defn::name.
4669 (set_language_command): Likewise.
4670 (language_enum): Likewise.
4671 (language_str): Likewise.
4672 (add_set_language_command): Likewise, use
4673 language_defn::natural_name in the doc string.
4674 (unknown_language_data): Remove la_name and
4675 la_natural_name initializers.
4676 (unknown_language::name): New member function.
4677 (unknown_language::natural_name): New member function.
4678 (auto_language_data): Remove la_name and
4679 la_natural_name initializers.
4680 (auto_language::name): New member function.
4681 (auto_language::natural_name): New member function.
4682 (language_lookup_primitive_type_as_symbol): Update call to
4683 language_defn::name.
4684 * language.h (language_data): Remove la_name and la_natural_name
4685 member variables.
4686 (language_defn::name): New member function.
4687 (language_defn::natural_name): New member function.
4688 * m2-lang.c (m2_language_data): Remove la_name and
4689 la_natural_name initializers.
4690 (m2_language::name): New member function.
4691 (m2_language::natural_name): New member function.
4692 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4693 language_defn::natural_name.
4694 * objc-lang.c (objc_language_data): Remove la_name and
4695 la_natural_name initializers.
4696 (objc_language::name): New member function.
4697 (objc_language::natural_name): New member function.
4698 * opencl-lang.c (opencl_language_data): Remove la_name and
4699 la_natural_name initializers.
4700 (opencl_language::name): New member function.
4701 (opencl_language::natural_name): New member function.
4702 * p-lang.c (pascal_language_data): Remove la_name and
4703 la_natural_name initializers.
4704 (pascal_language::name): New member function.
4705 (pascal_language::natural_name): New member function.
4706 * rust-lang.c (rust_language_data): Remove la_name and
4707 la_natural_name initializers.
4708 (rust_language::name): New member function.
4709 (rust_language::natural_name): New member function.
4710 * symtab.c (lookup_language_this): Update call to
4711 language_defn::name.
4712
5bae7c4e
AB
47132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4714
4715 * ada-lang.c (ada_language_data): Remove la_name_of_this
4716 initializer.
4717 * ax-gdb.c (gen_expr): Update call to name_of_this.
4718 * c-exp.y (classify_name): Likewise.
4719 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4720 (cplus_language_data): Likewise.
4721 (cplus_language::name_of_this): New member function.
4722 (asm_language_data): Remove la_name_of_this initializer.
4723 (minimal_language_data): Likewise.
4724 * d-lang.c (d_language_data): Likewise.
4725 (d_language::name_of_this): New member function.
4726 * expprint.c (print_subexp_standard): Update call to name_of_this.
4727 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4728 * go-lang.c (go_language_data): Likewise.
4729 * language.c (unknown_language_data): Likewise.
4730 (unknown_language::name_of_this): New member function.
4731 (auto_language_data): Remove la_name_of_this initializer.
4732 (auto_language::name_of_this): New member function.
4733 * language.h (language_data): Delete la_name_of_this member
4734 variable.
4735 (language_defn::name_of_this): New member function.
4736 * m2-lang.c (m2_language_data): Remove la_name_of_this
4737 initializer.
4738 * objc-lang.c (objc_language_data): Likewise.
4739 (objc_language::name_of_this): New member function.
4740 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4741 initializer.
4742 * p-lang.c (pascal_language_data): Likewise.
4743 (pascal_language::name_of_this): New member function.
4744 * rust-lang.c (rust_language_data): Remove la_name_of_this
4745 initializer.
4746 * symtab.c (lookup_language_this): Update call to name_of_this.
4747 (lookup_symbol_aux): Likewise.
4748 * valops.c (value_of_this): Likewise.
4749
22e3f3ed
AB
47502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4751
4752 * ada-lang.c (ada_language_data): Remove
4753 la_struct_too_deep_ellipsis initializer.
4754 (ada_language::struct_too_deep_ellipsis): New member function.
4755 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4756 initializer.
4757 (cplus_language_data): Likewise.
4758 (asm_language_data): Likewise.
4759 (minimal_language_data): Likewise.
4760 * cp-valprint.c (cp_print_value): Update call to
4761 struct_too_deep_ellipsis.
4762 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4763 initializer.
4764 * f-lang.c (f_language_data): Likewise.
4765 (f_language::struct_too_deep_ellipsis): New member function.
4766 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4767 initializer.
4768 * language.c (unknown_language_data): Likewise.
4769 (auto_language_data): Likewise.
4770 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4771 member variable.
4772 (language_defn::struct_too_deep_ellipsis): New member function.
4773 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4774 initializer.Q
4775 * objc-lang.c (objc_language_data): Likewise.
4776 * opencl-lang.c (opencl_language_data): Likewise.
4777 * p-lang.c (pascal_language_data): Likewise.
4778 * rust-lang.c (rust_language_data): Likewise.
4779 * valprint.c (val_print_check_max_depth): Update call to
4780 struct_too_deep_ellipsis.
4781
ed29e1c7
FW
47822020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4783
4784 * MAINTAINERS (Write After Approval): Add myself.
4785
12d8f940
TT
47862020-09-15 Tom Tromey <tom@tromey.com>
4787
4788 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4789 Remove.
4790
6b5a7bc7
TT
47912020-09-15 Tom Tromey <tom@tromey.com>
4792
4793 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4794 and TYPE_CODE_METHODPTR cases.
4795 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4796 (c_value_print_inner): Update.
4797 * valprint.c (generic_value_print_memberptr): New function, from
4798 c_value_print_memberptr.
4799 (generic_value_print): Use it. Call cplus_print_method_ptr.
4800
47f0e2ff
TT
48012020-09-15 Tom Tromey <tromey@adacore.com>
4802
4803 * python/python-internal.h (PyInt_FromLong): Remove define.
4804 * python/py-value.c (convert_value_from_python): Use
4805 gdb_py_object_from_longest.
4806 * python/py-type.c (typy_get_code): Use
4807 gdb_py_object_from_longest.
4808 * python/py-symtab.c (salpy_get_line): Use
4809 gdb_py_object_from_longest.
4810 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4811 gdb_py_object_from_longest.
4812 * python/py-record.c (recpy_gap_reason_code): Use
4813 gdb_py_object_from_longest.
4814 * python/py-record-btrace.c (recpy_bt_insn_size)
4815 (recpy_bt_func_level, btpy_list_count): Use
4816 gdb_py_object_from_longest.
4817 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4818 gdb_py_object_from_longest. Fix error handling.
4819 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4820 gdb_py_object_from_longest.
4821 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4822 gdb_py_object_from_longest.
4823 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4824 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4825 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4826
512116ce
TT
48272020-09-15 Tom Tromey <tromey@adacore.com>
4828
4829 * python/python.c (gdbpy_parameter_value): Use
4830 gdb_py_object_from_ulongest.
4831
4ab1029c
TT
48322020-09-15 Tom Tromey <tromey@adacore.com>
4833
4834 * python/py-infevents.c (create_register_changed_event_object):
4835 Use gdb_py_object_from_longest.
4836 * python/py-exitedevent.c (create_exited_event_object): Use
4837 gdb_py_object_from_longest.
4838
062534d4
TT
48392020-09-15 Tom Tromey <tromey@adacore.com>
4840
4841 * python/python.c (gdbpy_parameter_value): Use
4842 gdb_py_object_from_longest.
4843 * python/py-type.c (convert_field, typy_range): Use
4844 gdb_py_object_from_longest.
4845 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4846 gdb_py_object_from_longest.
4847 * python/py-lazy-string.c (stpy_get_length): Use
4848 gdb_py_object_from_longest.
4849 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4850 gdb_py_object_from_longest.
4851 * python/py-infevents.c (create_memory_changed_event_object): Use
4852 gdb_py_object_from_longest.
4853 * python/py-inferior.c (infpy_get_num): Use
4854 gdb_py_object_from_longest.
4855 (infpy_get_pid): Likewise.
4856
d1cab987
TT
48572020-09-15 Tom Tromey <tromey@adacore.com>
4858
4859 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4860 defines.
4861 * python/py-value.c (valpy_long): Use
4862 gdb_py_object_from_ulongest.
4863 * python/py-symtab.c (salpy_get_pc): Use
4864 gdb_py_object_from_ulongest.
4865 (salpy_get_last): Likewise.
4866 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4867 gdb_py_object_from_ulongest.
4868 * python/py-lazy-string.c (stpy_get_address): Use
4869 gdb_py_object_from_ulongest.
4870 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4871 * python/py-arch.c (archpy_disassemble): Use
4872 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4873 error handling.
4874
4bde49dc
TT
48752020-09-15 Tom Tromey <tromey@adacore.com>
4876
4877 * python/python-internal.h (gdb_py_long_from_longest): Remove
4878 defines.
4879 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4880 * python/py-type.c (convert_field, typy_get_sizeof): Use
4881 gdb_py_object_from_longest.
4882 * python/py-record-btrace.c (btpy_list_index): Use
4883 gdb_py_object_from_longest.
4884
37431074
TT
48852020-09-15 Tom Tromey <tromey@adacore.com>
4886
4887 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4888 * python/py-record.c (recpy_element_number): Use
4889 gdb_py_object_from_longest.
4890 (recpy_gap_number): Likewise.
4891
cbe25684
TT
48922020-09-15 Tom Tromey <tromey@adacore.com>
4893
4894 * top.c (ui::ui): Update.
4895 (highest_ui_num): Remove.
4896 * top.h (struct ui) <num>: Remove.
4897
db92ac45
TT
48982020-09-15 Tom Tromey <tromey@adacore.com>
4899
4900 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4901 * ui-style.c (ansi_regex_text): Now array.
4902 * rust-exp.y (number_regex_text): Now array.
4903 * linespec.c (linespec_quote_characters): Now array.
4904 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4905 Now arrays.
4906
d2b31b67
SM
49072020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4908
4909 * debuginfod-support.c (debuginfod_client_deleter): New.
4910 (debuginfod_client_up): New.
4911 (debuginfod_init): Return debuginfod_client_up.
4912 (debuginfod_source_query): Adjust.
4913 (debuginfod_debuginfo_query): Adjust.
4914
3246bd8e
SM
49152020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4916
4917 * debuginfod-support.c (debuginfod_source_query): Use
4918 make_unique_xstrdup.
4919
10242f36
SM
49202020-09-14 Simon Marchi <simon.marchi@efficios.com>
4921
4922 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4923 with `type::instance_flags`.
4924
e1044e6a
MM
49252020-09-14 Michael Mullin <masmullin@gmail.com>
4926
4927 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4928 Remove baton parameter.
4929
04902b09
PA
49302020-09-14 Pedro Alves <pedro@palves.net>
4931
4932 * Makefile.in (SELFTESTS_SRCS): Add
4933 unittests/enum-flags-selftests.c.
4934 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4935 btrace_function_flags instead of enum btrace_function_flag.
4936 * compile/compile-c-types.c (convert_qualified): Use
4937 enum_flags::raw.
4938 * compile/compile-cplus-symbols.c (convert_one_symbol)
4939 (convert_symbol_bmsym):
4940 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4941 (compile_cplus_convert_struct_or_union_methods)
4942 (compile_cplus_instance::convert_qualified_base):
4943 * go-exp.y (parse_string_or_char): Add cast to int.
4944 * unittests/enum-flags-selftests.c: New file.
4945 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4946 type to btrace_thread_flags from btrace_thread_flag.
4947 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4948 local's type to btrace_thread_flags from btrace_thread_flag. Add
4949 cast in DEBUG call.
4950
69896a2c
PA
49512020-09-14 Pedro Alves <pedro@palves.net>
4952
4953 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4954 * gdbtypes.c (address_space_name_to_int): Rename to ...
4955 (address_space_name_to_type_instance_flags): ... this.
4956 (address_space_int_to_name): Rename to ...
4957 (address_space_type_instance_flags_to_name): ... this.
4958 * gdbtypes.h (address_space_name_to_int): Rename to ...
4959 (address_space_name_to_type_instance_flags): ... this.
4960 (address_space_int_to_name): Rename to ...
4961 (address_space_type_instance_flags_to_name): ... this.
4962 * type-stack.c (type_stack::insert): Adjust to rename.
4963 * type-stack.h (type_stack::insert): Likewise.
4964
314ad88d
PA
49652020-09-14 Pedro Alves <pedro@palves.net>
4966 Andrew Burgess <andrew.burgess@embecosm.com>
4967
4968 * avr-tdep.c (avr_address_class_type_flags): Return
4969 type_instance_flags.
4970 (avr_address_class_type_flags_to_name): Take a
4971 type_instance_flags.
4972 (avr_address_class_name_to_type_flags): Return bool and take a
4973 type_instance_flags.
4974 * d-lang.c (build_d_types): Use type::set_instance_flags.
4975 * ft32-tdep.c (ft32_address_class_type_flags): Return
4976 type_instance_flags.
4977 (ft32_address_class_type_flags_to_name): Take a
4978 type_instance_flags.
4979 (ft32_address_class_name_to_type_flags): Return bool and take a
4980 type_instance_flags.
4981 (ft32_gdbarch_init): Use type::set_instance_flags.
4982 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4983 * gdbarch.h, gdbarch.c: Regenerate.
4984 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4985 (address_class_name_to_type_flags): Use type_instance_flags and
4986 bool.
4987 * gdbtypes.c (address_space_name_to_int)
4988 (address_space_int_to_name, make_qualified_type): Use
4989 type_instance_flags.
4990 (make_qualified_type): Use type_instance_flags and
4991 type::set_instance_flags.
4992 (make_type_with_address_space, make_cv_type, make_vector_type)
4993 (check_typedef): Use type_instance_flags.
4994 (recursive_dump_type): Cast type_instance_flags to unsigned for
4995 printing.
4996 (copy_type_recursive): Use type::set_instance_flags.
4997 (gdbtypes_post_init): Use type::set_instance_flags.
4998 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4999 <m_instance_flags>: ... this.
5000 <instance_flags, set_instance_flags>: New methods.
5001 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5002 (SET_TYPE_INSTANCE_FLAGS): New.
5003 (address_space_name_to_int, address_space_int_to_name)
5004 (make_type_with_address_space): Pass flags using
5005 type_instance_flags instead of int.
5006 * stabsread.c (cleanup_undefined_types_noname): Use
5007 type::set_instance_flags.
5008 * s390-tdep.c (s390_address_class_type_flags): Return
5009 type_instance_flags.
5010 (s390_address_class_type_flags_to_name): Take a
5011 type_instance_flags.
5012 (s390_address_class_name_to_type_flags): Return bool and take a
5013 type_instance_flags.
5014 * type-stack.c (type_stack::follow_types): Use
5015 type_instance_flags.
5016 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5017
27087b7f
TT
50182020-09-14 Tom Tromey <tromey@adacore.com>
5019
5020 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5021 * x86-tdep.c (x86_is_thunk_register_name)
5022 (x86_in_indirect_branch_thunk): Update.
5023 * sparc64-tdep.c (sparc64_fpu_register_names)
5024 (sparc64_cp0_register_names, sparc64_register_names)
5025 (sparc64_pseudo_register_names): Now const.
5026 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5027 cp0_registers_num>: Now const.
5028 * sparc-tdep.c (sparc_core_register_names)
5029 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5030 (sparc32_pseudo_register_names): Now const.
5031 (validate_tdesc_registers): Update.
5032 * rust-lang.c (rust_extensions): Now const.
5033 * p-lang.c (p_extensions): Now const.
5034 * objc-lang.c (objc_extensions): Now const.
5035 * nto-tdep.c (nto_thread_state_str): Now const.
5036 * moxie-tdep.c (moxie_register_names): Now const.
5037 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5038 Now const.
5039 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5040 (mips_linux_reg_names): Now const.
5041 (mips_gdbarch_init): Update.
5042 * microblaze-tdep.c (microblaze_register_names): Now const.
5043 * m68k-tdep.c (m68k_register_names): Now const.
5044 * m32r-tdep.c (m32r_register_names): Now const.
5045 * ia64-tdep.c (ia64_register_names): Now const.
5046 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5047 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5048 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5049 ymm_avx512_register_names, pkeys_register_names>: Now const.
5050 * i386-tdep.c (i386_register_names, i386_zmm_names)
5051 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5052 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5053 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5054 * f-lang.c (f_extensions): Now const.
5055 * d-lang.c (d_extensions): Now const.
5056 * csky-tdep.c (csky_register_names): Now const.
5057 * charset.c (default_charset_names, charset_enum): Now const.
5058 (_initialize_charset): Update.
5059 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5060 const.
5061 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5062 (bsd_uthread_solib_loaded): Update.
5063 (bsd_uthread_state): Now const.
5064 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5065 (amd64_ymm_avx512_names, amd64_ymmh_names)
5066 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5067 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5068 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5069 (amd64_dword_names): Now const.
5070 * agent.c (can_use_agent_enum): Now const.
5071 * ada-tasks.c (task_states, long_task_states): Now const.
5072 * ada-lang.c (known_runtime_file_name_patterns)
5073 (known_auxiliary_function_name_patterns, attribute_names)
5074 (standard_exc, ada_extensions): Now const.
5075
89806626
SM
50762020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5077
5078 * bcache.h (struct bcache) <bcache>: Remove constructor.
5079 <m_hash_function, m_compare_function>: Remove.
5080 <~bcache>: Make virtual.
5081 <compare>: Remove static method, introduce virtual method.
5082 <default_hash>: Remove.
5083 <hash>: New virtual method.
5084 * bcache.c (bcache::expand_hash_table): Update.
5085 (bcache::insert): Update.
5086 (bcache::hash): New.
5087 (bcache::compare): Update comment and parameter names.
5088 * gdbtypes.c (types_deeply_equal): Update.
5089 * psymtab.h (struct psymbol_bcache): New struct.
5090 (class psymtab_storage) <psymtab_storage>: Make default.
5091 <psymbol_cache>: Change type to psymbol_bcache.
5092 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5093 (psymbol_hash): Change to...
5094 (psymbol_bcache::hash): ... this.
5095 (psymbol_compare): Change to...
5096 (psymbol_bcache::compare): ... this.
5097
677c92fe
SM
50982020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5099
5100 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5101 checking for initial lwp.
5102
3eba3a01
TT
51032020-09-14 Tom Tromey <tromey@adacore.com>
5104
5105 * m68k-tdep.c (m68k_extract_return_value): Use
5106 pointer_result_regnum.
5107 (m68k_store_return_value): Likewise.
5108 (m68k_reg_struct_return_p): Handle vectors and arrays.
5109 (m68k_return_value): Handle arrays.
5110 (m68k_svr4_return_value): Fix single-element aggregate handling.
5111 Handle long double. Adjust for embedded ABI.
5112 (m68k_svr4_init_abi): Set pointer_result_regnum.
5113 (m68k_embedded_init_abi): New function.
5114 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5115 (m68k_osabi_sniffer): New function.
5116 (_initialize_m68k_tdep): Register osabi sniffer.
5117 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5118 member.
5119
33f4dd48
SM
51202020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5121
5122 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5123 with gdb::unique_xmalloc_ptr<char>.
5124
8400a90d
SM
51252020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5126
5127 * xml-support.h (xml_fetch_another): Change type to be a
5128 function_view.
5129 (xml_process_xincludes): Remove baton parameter.
5130 (xml_fetch_content_from_file): Change baton parameter to
5131 dirname.
5132 * xml-support.c (struct xinclude_parsing_data)
5133 <xinclude_parsing_data>: Remove baton parameter.
5134 <fetcher_baton>: Remove.
5135 (xinclude_start_include): Adjust.
5136 (xml_process_xincludes): Adjust.
5137 (xml_fetch_content_from_file): Replace baton parameter with
5138 dirname.
5139 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5140 (xml_init_syscalls_info): Use a lambda.
5141 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5142 (file_read_description_xml): Use a lambda.
5143 (fetch_available_features_from_target): Change baton parameter
5144 to target_ops.
5145 (target_read_description_xml): Use a lambda.
5146 (target_fetch_description_xml): Use a lambda.
5147 (string_read_description_xml): Update.
5148
04f5bab2
SM
51492020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5150
5151 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5152 uses with type::endianity_is_not_default.
5153
db558e34
SM
51542020-09-14 Simon Marchi <simon.marchi@efficios.com>
5155
5156 * gdbtypes.h (struct type) <endianity_is_not_default,
5157 set_endianity_is_not_default>: New methods.
5158 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5159 type::endianity_is_not_default, change all write call sites to
5160 use type::set_endianity_is_not_default.
5161
22c4c60c
SM
51622020-09-14 Simon Marchi <simon.marchi@efficios.com>
5163
5164 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5165 uses with type::is_fixed_instance.
5166
9cdd0d12
SM
51672020-09-14 Simon Marchi <simon.marchi@efficios.com>
5168
5169 * gdbtypes.h (struct type) <is_fixed_instance,
5170 set_is_fixed_instance>: New methods.
5171 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5172 write call sites to use type::set_is_fixed_instance.
5173
0becda7a
SM
51742020-09-14 Simon Marchi <simon.marchi@efficios.com>
5175
5176 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5177 uses with type::is_gnu_ifunc.
5178
03cc7249
SM
51792020-09-14 Simon Marchi <simon.marchi@efficios.com>
5180
5181 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5182 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5183 use type::set_is_gnu_ifunc.
5184
3f46044c
SM
51852020-09-14 Simon Marchi <simon.marchi@efficios.com>
5186
5187 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5188 uses with type::stub_is_supported.
5189
9baccff6
SM
51902020-09-14 Simon Marchi <simon.marchi@efficios.com>
5191
5192 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5193 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5194 use type::set_stub_is_supported.
5195
bd63c870
SM
51962020-09-14 Simon Marchi <simon.marchi@efficios.com>
5197
5198 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5199 uses with type::is_vector.
5200
2062087b
SM
52012020-09-14 Simon Marchi <simon.marchi@efficios.com>
5202
5203 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5204 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5205 use type::set_is_vector.
5206
a409645d
SM
52072020-09-14 Simon Marchi <simon.marchi@efficios.com>
5208
5209 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5210 uses with type::has_varargs.
5211
1d6286ed
SM
52122020-09-14 Simon Marchi <simon.marchi@efficios.com>
5213
5214 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5215 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5216 use type::set_has_varargs.
5217
7f9f399b
SM
52182020-09-14 Simon Marchi <simon.marchi@efficios.com>
5219
5220 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5221 uses with type::is_prototyped.
5222
27e69b7a
SM
52232020-09-14 Simon Marchi <simon.marchi@efficios.com>
5224
5225 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5226 New methods.
5227 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5228 call sites to use type::set_is_prototyped.
5229
d2183968
SM
52302020-09-14 Simon Marchi <simon.marchi@efficios.com>
5231
5232 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5233 uses with type::target_is_stub.
5234
8f53807e
SM
52352020-09-14 Simon Marchi <simon.marchi@efficios.com>
5236
5237 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5238 New methods.
5239 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5240 sites to use type::set_target_is_stub.
5241
e46d3488
SM
52422020-09-14 Simon Marchi <simon.marchi@efficios.com>
5243
5244 * gdbtypes.h (TYPE_STUB): Remove, replace all
5245 uses with type::is_stub.
5246
b4b73759
SM
52472020-09-14 Simon Marchi <simon.marchi@efficios.com>
5248
5249 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5250 (TYPE_STUB): Use type::is_stub, change all write call sites to
5251 use type::set_is_stub.
5252
20ce4123
SM
52532020-09-14 Simon Marchi <simon.marchi@efficios.com>
5254
5255 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5256 type::has_no_signedness.
5257
15152a54
SM
52582020-09-14 Simon Marchi <simon.marchi@efficios.com>
5259
5260 * gdbtypes.h (struct type) <has_no_signedness,
5261 set_has_no_signedness>: New methods.
5262 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5263 call sites to use type::set_has_no_signedness.
5264
c6d940a9
SM
52652020-09-14 Simon Marchi <simon.marchi@efficios.com>
5266
5267 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5268 type::is_unsigned.
5269
653223d3
SM
52702020-09-14 Simon Marchi <simon.marchi@efficios.com>
5271
5272 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5273 methods.
5274 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5275 sites to use type::set_is_unsigned.
5276
55ea94da 52772020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5278 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5279
e851246a
SM
5280 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5281 pointer and stack frame offset when unwinding.
55ea94da 5282
6791b117
PA
52832020-09-13 Pedro Alves <pedro@palves.net>
5284
5285 * NEWS: Document "-break-insert --qualified".
5286 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5287
77f2120b
PA
52882020-09-13 Pedro Alves <pedro@palves.net>
5289
5290 * linespec.c (classify_mtype, compare_msyms): Delete.
5291 (search_minsyms_for_name): Remove classification logic. Instead
5292 filter out trampoline symbols if we also found an external
5293 function of the same name.
5294
ed6a896c
JB
52952020-09-13 Joel Brobecker <brobecker@adacore.com>
5296
5297 * NEWS: Create a new section for the next release branch.
5298 Rename the section of the current branch, now that it has
5299 been cut.
5300
32aea73e
JB
53012020-09-13 Joel Brobecker <brobecker@adacore.com>
5302
5303 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5304 * version.in: Bump version to 11.0.50.DATE-git.
5305
8087c3fa
JB
53062020-09-12 Joel Brobecker <brobecker@adacore.com>
5307
5308 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5309
2a67f09d
FW
53102020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5311 Felix Willgerodt <Felix.Willgerodt@intel.com>
5312
5313 * gdbarch.sh: Added bfloat16 type.
5314 * gdbarch.c: Regenerated.
5315 * gdbarch.h: Regenerated.
5316 * gdbtypes.c (floatformats_bfloat16): New struct.
5317 (gdbtypes_post_init): Add builtin_bfloat16.
5318 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5319 (floatformats_bfloat16): New struct.
5320 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5321 (i386_ymm_type): Add field "v16_bfloat16"
5322 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5323 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5324 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5325 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5326 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5327 * features/i386/64bit-avx512.c: Regenerated.
5328 * features/i386/64bit-sse.xml: Add bfloat16 type.
5329 * features/i386/64bit-sse.c: Regenerated.
5330
1347d111
FW
53312020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5332
5333 * i386-tdep.c (i386_zmm_type): Fix field names.
5334 (i386_ymm_type): Fix field names.
5335
7a4e8e7d
TBA
53362020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5337
5338 * breakpoint.c: Fix typo in the help message of the
5339 "set breakpoint condition-evaluation" command.
5340
cf4ac4be
KR
53412020-09-10 Kamil Rytarowski <n54@gmx.com>
5342
5343 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5344 * (nbsd_nat_target::pid_to_exec_file)
5345 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5346 (nbsd_nat_target::post_startup_inferior)
5347 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5348 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5349 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5350 * (nbsd_thread_lister): Remove.
5351
f404573e
KR
53522020-09-10 Kamil Rytarowski <n54@gmx.com>
5353
5354 * fork-inferior.c (startup_inferior): Avoid double free.
5355
1ccb2c17
KR
53562020-09-10 Kamil Rytarowski <n54@gmx.com>
5357
5358 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5359 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5360
feedfcc7
KR
53612020-09-10 Kamil Rytarowski <n54@gmx.com>
5362
5363 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5364 * netbsd-nat.c: Include <sys/ptrace.h>.
5365 * (netbsd_nat::enable_proc_events): Add.
5366
c489f8c6
KR
53672020-09-10 Kamil Rytarowski <n54@gmx.com>
5368
5369 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5370 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5371 (netbsd_nat::for_each_thread): Add.
5372 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5373 "gdbsupport/common-debug.h".
5374 * (netbsd_nat::netbsd_thread_lister)
5375 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5376 (netbsd_nat::for_each_thread): Add.
5377
330662f6
KR
53782020-09-10 Kamil Rytarowski <n54@gmx.com>
5379
5380 * netbsd-nat.h: Include <unistd.h>.
5381 * (netbsd_nat::pid_to_exec_file): Add.
5382 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5383 * (netbsd_nat::pid_to_exec_file) Add.
5384
70b67307
KR
53852020-09-10 Kamil Rytarowski <n54@gmx.com>
5386
5387 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5388
99cf6da6
KR
53892020-09-10 Kamil Rytarowski <n54@gmx.com>
5390
5391 * netbsd-nat.h: New file.
5392 * netbsd-nat.c: Likewise.
5393
1b788fb6
TT
53942020-09-09 Tom Tromey <tromey@adacore.com>
5395
5396 * ada-lang.c (remove_extra_symbols): Do not increment when
5397 removing an element
5398
03b0a45f
TT
53992020-09-08 Tom Tromey <tromey@adacore.com>
5400
5401 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5402
3cae4447
TT
54032020-09-08 Tom Tromey <tromey@adacore.com>
5404
5405 PR win32/25302:
5406 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5407 (gdb_bfd_init_data): New function.
5408 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5409
7f08fd51
TBA
54102020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5411
5412 * infrun.c (fetch_inferior_event): Use
5413 `switch_to_target_no_thread` to switch the target.
5414
3e6ff933
TT
54152020-09-06 Tom Tromey <tom@tromey.com>
5416
5417 * symfile.h (dwarf2_free_objfile): Don't declare.
5418
e56798df
AKS
54192020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5420
5421 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5422 to match 16 byte real/complex type generated by Flang compiler.
5423
8f5c6526
TV
54242020-09-03 Tom de Vries <tdevries@suse.de>
5425
5426 PR breakpoint/26546
5427 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5428 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5429
c5065df0
SM
54302020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5431
5432 * maint.c (index_digits): New function.
5433 (struct maint_print_section_data): Remove.
5434 (print_bfd_section_info): Remove print_data parameter, add arg
5435 and index_digits.
5436 (print_objfile_section_info): Likewise.
5437 (print_bfd_section_info_maybe_relocated): Likewise (plus
5438 objfile).
5439 (maintenance_info_sections): Adjust calls.
5440
02c6f3f1
TT
54412020-09-02 Tom Tromey <tromey@adacore.com>
5442
5443 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5444 for null pointers.
5445 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5446
ef5e5b0b
SM
54472020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5448
5449 * bcache.h (struct bcache) <insert>: Change type of `added` to
5450 pointer to bool.
5451 * bcache.c (bcache::insert): Likewise.
5452 * gdbtypes.c (check_types_worklist): Adjust.
5453 * psymtab.c (add_psymbol_to_bcache): Adjust.
5454
973695d6
KB
54552020-08-31 Kevin Buettner <kevinb@redhat.com>
5456
5457 * corelow.c (unordered_set): Include.
5458 (class core_target): Add field 'm_core_unavailable_mappings'.
5459 (core_target::build_file_mappings): Print only one warning
5460 per inaccessible file. Add unavailable/broken mappings
5461 to m_core_unavailable_mappings.
5462 (core_target::xfer_partial): Call...
5463 (core_target::xfer_memory_via_mappings): New method.
5464
264fc0e2
SM
54652020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5466
5467 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5468 type to bool.
5469
2de01bdb
SM
54702020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5471
5472 * dwarf2/read.c (struct field_info): Fix indentation.
5473
f3bd50f1
SM
54742020-08-31 Simon Marchi <simon.marchi@efficios.com>
5475
5476 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5477 ordering in comment.
5478 * frame.c (frame_id_eq): Fix indentation.
5479
22b9b4b0
SL
54802020-08-31 Scott Linder <scott@scottlinder.com>
5481 Simon Marchi <simon.marchi@efficios.com>
5482
5483 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5484 inline frame ids in outer frame.
5485
84154d16
SM
54862020-08-31 Simon Marchi <simon.marchi@efficios.com>
5487
5488 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5489 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5490 (outer_frame_id): Use FID_STACK_OUTER instead of
5491 FID_STACK_INVALID.
5492 (frame_id_p): Don't check for outer_frame_id.
5493
8efaf6b3
SM
54942020-08-31 Simon Marchi <simon.marchi@efficios.com>
5495
5496 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5497 regnum/frame in value. Call allocate_value_lazy.
5498 * frame.c (frame_unwind_register_value): Use
5499 val_print_not_saved.
5500
fe1fe7ea
SM
55012020-08-31 Simon Marchi <simon.marchi@efficios.com>
5502
5503 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5504
f7c7700d
PA
55052020-08-29 Pedro Alves <pedro@palves.net>
5506
5507 * progspace.c (print_program_space): Use all_inferiors. Switch to
5508 the inferior before calling target_pid_to_str.
5509
e0814aae
TT
55102020-08-28 Tom Tromey <tom@tromey.com>
5511
5512 * xcoffread.c (xcoff_end_psymtab): Update comment.
5513 * dbxread.c (dbx_end_psymtab): Update comment.
5514
626d2320
TV
55152020-08-28 Tom de Vries <tdevries@suse.de>
5516
5517 PR breakpoint/26544
5518 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5519 event_location.
5520 (create_breakpoint): Same.
5521 (base_breakpoint_decode_location): Same.
5522 (bkpt_create_sals_from_location): Same.
5523 (bkpt_decode_location): Same.
5524 (bkpt_probe_create_sals_from_location): Same.
5525 (bkpt_probe_decode_location): Same.
5526 (tracepoint_create_sals_from_location): Same.
5527 (tracepoint_decode_location): Same.
5528 (tracepoint_probe_decode_location): Same.
5529 (strace_marker_create_sals_from_location): Same.
5530 (strace_marker_decode_location): Same.
5531 (create_sals_from_location_default): Same.
5532 (decode_location_default): Same.
5533 * breakpoint.h (struct breakpoint_ops): Same.
5534 (create_breakpoint): Same.
5535 * linespec.h (decode_line_full): Same.
5536 * linespec.c (decode_line_full): Same. Throw error if
5537 result.size () == 0.
5538
df631783
PA
55392020-08-27 Pedro Alves <pedro@palves.net>
5540
5541 PR gdb/26524
5542 * breakpoint.c (until_break_fsm) <location_breakpoint,
5543 caller_breakpoint>: Delete fields.
5544 <breakpoints>: New field.
5545 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5546 two individual breakpoints.
5547 (until_break_fsm::should_stop): Loop over breakpoints in the
5548 breakpoint vector.
5549 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5550 vector.
5551 (until_break_command): Handle location expanding into multiple
5552 sals.
5553
b2b38aa4
PA
55542020-08-27 Pedro Alves <pedro@palves.net>
5555
5556 PR gdb/26523
5557 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5558 bp_until breakpoints user-specified locations. Update intro
5559 comment.
5560
b886559f
SM
55612020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5562
5563 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5564 gdb_bfd_sections): New.
5565 * maint.c (print_bfd_section_info): Change param type to
5566 maint_print_section_data.
5567 (print_objfile_section_info): Likewise.
5568 (print_bfd_section_info_maybe_relocated): Likewise.
5569 (maintenance_info_sections): Use gdb_bfd_sections.
5570
4c6e63bf
SV
55712020-08-25 Shahab Vahedi <shahab@synopsys.com>
5572
5573 * MAINTAINERS: Add ARC target and maintainer.
5574
8d7f0635
AK
55752020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5576
5577 * configure.tgt: ARC support for GNU/Linux.
5578 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5579 * arc-linux-tdep.c: New file.
5580 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5581 * arc-tdep.c (arc_write_pc): Use it.
5582
fdd8731b
SV
55832020-08-25 Shahab Vahedi <shahab@synopsys.com>
5584
5585 * arc-tdep.c (arc_check_for_hardware_loop): New.
5586 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5587
22459524
SV
55882020-08-25 Shahab Vahedi <shahab@synopsys.com>
5589
5590 * arc-tdep.h: Include "gdbarch.h".
5591
995d3a19
SV
55922020-08-25 Shahab Vahedi <shahab@synopsys.com>
5593
5594 * arch/arc.h
5595 (arc_gdbarch_features): New class to stir the selection of target XML.
5596 (arc_create_target_description): Use FEATURES to choose XML target.
5597 (arc_lookup_target_description): Use arc_create_target_description
5598 to create _new_ target descriptions or return the already created
5599 ones if the FEATURES is the same.
5600 * arch/arc.c: Implementation of prototypes described above.
5601 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5602 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5603 * arc-tdep.c (*_feature_name): Make feature names consistent.
5604 (arc_register_feature): A new struct to hold information about
5605 registers of a particular target/feature.
5606 (arc_check_tdesc_feature): Check if XML provides registers in
5607 compliance with ARC_REGISTER_FEATURE structs.
5608 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5609 (determine_*_reg_feature_set): Which feature name to look for.
5610 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5611 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5612 to expected ISA enums to be used in arc_gdbarch_features structs.
5613 * features/Makefile (FEATURE_XMLFILES): Add new files.
5614 * gdb/features/arc/v1-aux.c: New file.
5615 * gdb/features/arc/v1-aux.xml: Likewise.
5616 * gdb/features/arc/v1-core.c: Likewise.
5617 * gdb/features/arc/v1-core.xml: Likewise.
5618 * gdb/features/arc/v2-aux.c: Likewise.
5619 * gdb/features/arc/v2-aux.xml: Likewise.
5620 * gdb/features/arc/v2-core.c: Likewise.
5621 * gdb/features/arc/v2-core.xml: Likewise.
5622 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5623
3945d2d7
GM
56242020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5625 Andrew Burgess <andrew.burgess@embecosm.com>
5626
5627 PR m2/26372
fc5d6901 5628 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5629 an assert. Remove single element array indexing pattern as the
5630 MULTI_SUBSCRIPT support will handle this case too.
5631
2677f2d3
SM
56322020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5633
5634 * value.h (valprint_check_validity): Move declaration from
5635 here...
5636 * valprint.h (valprint_check_validity): ... to here.
5637
c426fddb
SM
56382020-08-24 Simon Marchi <simon.marchi@efficios.com>
5639
5640 * debug.h: New file.
5641 * debug.c (debug_prefixed_vprintf): New function.
5642 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5643 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5644
1eb8556f
SM
56452020-08-24 Simon Marchi <simon.marchi@efficios.com>
5646
5647 * infrun.h (infrun_debug_printf_1): New function declaration.
5648 (infrun_debug_printf): New macro.
5649 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5650 throughout.
5651 (infrun_debug_printf): New function.
5652 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5653 (handle_jit_event): Likewise.
5654
b8fff44e
MW
56552020-08-21 Mark Wielaard <mark@klomp.org>
5656
5657 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5658
d19c3068
SM
56592020-08-22 Simon Marchi <simon.marchi@efficios.com>
5660
5661 * frame.c (enum class frame_id_status): New.
5662 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5663 (fprintf_frame): Update.
5664 (compute_frame_id): Set frame id status to "computing" on entry.
5665 Set it back to "not_computed" on failure and to "computed" on
5666 success.
5667 (get_frame_id): Assert the frame id is not being computed.
5668 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5669 (create_new_frame): Likewise.
5670 (frame_cleanup_after_sniffer): Update assert.
5671
b70e516e
SM
56722020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5673
5674 * regcache.c (pid_ptid_regcache_map): New type.
5675 (target_ptid_regcache_map): Remove.
5676 (target_pid_ptid_regcache_map): New type.
5677 (regcaches): Change type to target_pid_ptid_regcache_map.
5678 (get_thread_arch_aspace_regcache): Update.
5679 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5680 case.
5681 (regcaches_size): Update.
5682 (regcache_count): Update.
5683 (registers_changed_ptid_target_pid_test): New.
5684 (_initialize_regcache): Register new test.
5685
cdd9148a
SM
56862020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5687
5688 * regcache.c (regcache_count): New.
5689 (struct regcache_test_data): New.
5690 (regcache_test_data_up): New.
5691 (populate_regcaches_for_test): New.
5692 (regcaches_test): Remove.
5693 (get_thread_arch_aspace_regcache_test): New.
5694 (registers_changed_ptid_all_test): New.
5695 (registers_changed_ptid_target_test): New.
5696 (registers_changed_ptid_target_ptid_test): New.
5697 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5698 (_initialize_regcache): Register new tests.
5699
dd125343
SM
57002020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5701
5702 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5703 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5704 gdbarch and aspace parameter. Use current inferior's aspace.
5705 Validate regcache's arch value.
5706 (regcaches_test): Update.
5707
3ee93972
SM
57082020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5709
5710 * regcache.c (regcaches_test): Call registers_changed.
5711
33bf4c5c
TBA
57122020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5713
5714 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5715
c2fd7fae
AKS
57162020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5717
5718 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5719 to find the end of prologue for flang compiled binaries.
5720 * arm-tdep.c (arm_skip_prologue): Likewise.
5721 * i386-tdep.c (i386_skip_prologue): Likewise.
5722 * producer.c (producer_is_llvm): New function.
5723 (producer_parsing_tests): Added new tests for clang/flang.
5724 * producer.h (producer_is_llvm): New declaration.
5725
9327494e
SM
57262020-08-18 Simon Marchi <simon.marchi@efficios.com>
5727
5728 * linux-nat.c (linux_nat_debug_printf): New function.
5729 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5730
d138725a
AM
57312020-08-18 Aaron Merey <amerey@redhat.com>
5732
5733 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5734 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5735 (CLIBS): Add DEBUGINFOD_LIBS.
5736
f9b11e6b
ST
57372020-08-17 Sergei Trofimovich <siarheit@google.com>
5738
5739 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5740 'gdbarch_num_regs'.
5741
3ae7ab99
TT
57422020-08-17 Tom Tromey <tromey@adacore.com>
5743
5744 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5745 ada_get_decoded_value returns NULL.
5746
b017825f
TT
57472020-08-17 Tom Tromey <tromey@adacore.com>
5748
5749 * python/py-inferior.c (infpy_search_memory): Use
5750 gdb_py_object_from_ulongest.
5751 * python/py-infevents.c (create_inferior_call_event_object)
5752 (create_memory_changed_event_object): Use
5753 gdb_py_object_from_ulongest.
5754 * python/py-linetable.c (ltpy_entry_get_pc): Use
5755 gdb_py_object_from_ulongest.
5756
7635cf79
SM
57572020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5758
5759 * loc.c (class symbol_needs_eval_context): Fix indentation.
5760
f54be24b
SM
57612020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5762
5763 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5764 bool.
5765
53d5a2a5
TV
57662020-08-17 Tom de Vries <tdevries@suse.de>
5767
5768 PR gdb/26393
5769 * gdbtypes.c (dump_dynamic_prop): New function.
5770 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5771
547ce8f0
TV
57722020-08-15 Tom de Vries <tdevries@suse.de>
5773
5774 PR backtrace/26390
5775 * stack.c (print_frame_args): Temporarily set the selected
5776 frame to FRAME while printing the frame's arguments.
5777
6ea815e7
PFC
57782020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5779
5780 PR breakpoints/26385
5781 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5782 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5783
6e562fa3
PFC
57842020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5785
5786 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5787 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5788 and >= to check return value instead of == -1 and != -1.
5789
d369b608
SM
57902020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5791
5792 * utils.h (class gdb_argv) <as_array_view>: New method.
5793 * utils.c (gdb_argv_as_array_view_test): New.
5794 (_initialize_utils): Register selftest.
5795 * maint.c (maintenance_selftest): Use the new method.
5796
b31488a3
KR
57972020-08-13 Kamil Rytarowski <n54@gmx.com>
5798
5799 * target.h (supports_dumpcore, dumpcore): New
5800 function declarations.
5801 * target.c (supports_dumpcore, dumpcore): New
5802 functions.
5803 * target-delegates.c: Rebuild.
5804 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5805 and target_dumpcore ().
5806
002a3166
AM
58072020-08-13 Aaron Merey <amerey@redhat.com>
5808
5809 * debuginfod-support.c: Replace global variables with user_data.
5810
ece5bc8a
SM
58112020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5812
5813 * maint.c (maintenance_selftest): Split args and pass array_view
5814 to run_tests.
5815
6d8a0a5e
LM
58162020-08-12 Luis Machado <luis.machado@linaro.org>
5817
5818 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5819 type's length.
5820 Use %s and pulongest to print the length.
5821
7cf663a9
PA
58222020-08-12 Pedro Alves <palves@redhat.com>
5823
5824 * NEWS: Move "Multi-target debugging support" item to the
5825 "Changes since GDB 9" section.
5826
27c7b875
PA
58272020-08-12 Pedro Alves <palves@redhat.com>
5828
5829 PR gdb/26336
5830 * progspace.c (program_space::remove_objfile): Invalidate the
5831 frame cache.
5832
1796a2a1
TV
58332020-08-11 Tom de Vries <tdevries@suse.de>
5834
5835 * MAINTAINERS: Mark ms1 as deleted.
5836
f8e3fe0d
LM
58372020-08-10 Luis Machado <luis.machado@linaro.org>
5838
5839 PR gdb/26310
5840
5841 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5842 act accordingly.
5843 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5844 movz/str/stur/stp skipping behavior.
5845
cc308722
LM
58462020-08-10 Luis Machado <luis.machado@linaro.org>
5847
5848 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5849 struct user_sve_header instead of struct sve_context.
5850
041d9819
SM
58512020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5852
5853 * read.h (dwarf2_fetch_die_loc_sect_off,
5854 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5855 `void *` parameter with function_view.
5856 * read.c (dwarf2_fetch_die_loc_sect_off,
5857 dwarf2_fetch_die_loc_cu_off): Likewise.
5858 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5859 (per_cu_dwarf_call): Adjust.
5860 (get_frame_address_in_block_wrapper): Remove.
5861 (indirect_synthetic_pointer): Adjust.
5862 (get_ax_pc): Remove.
5863 (dwarf2_compile_expr_to_ax): Adjust.
5864
38f8aa06
TV
58652020-08-08 Tom de Vries <tdevries@suse.de>
5866
5867 PR build/26344
5868 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5869 constructor.
5870 * regcache.c (get_thread_arch_aspace_regcache): Same.
5871
a52b3ae2
TT
58722020-08-07 Tom Tromey <tromey@adacore.com>
5873
5874 * ravenscar-thread.c
5875 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5876 New method.
5877 (ravenscar_thread_target::wait): Check
5878 runtime_initialized.
5879 (ravenscar_thread_target::prepare_to_store)
5880 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5881 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5882 (ravenscar_thread_target::stopped_by_watchpoint)
5883 (ravenscar_thread_target::stopped_data_address)
5884 (ravenscar_thread_target::core_of_thread): Use
5885 scoped_restore_current_thread and
5886 set_base_thread_from_ravenscar_task.
5887
0e29517d
TT
58882020-08-07 Tom Tromey <tromey@adacore.com>
5889
5890 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5891
592f9bd7
TT
58922020-08-07 Tom Tromey <tromey@adacore.com>
5893
5894 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5895 update_inferior_ptid before update_thread_list.
5896 (temporarily_change_regcache_ptid): New class.
5897 (ravenscar_thread_target::fetch_registers)
5898 (ravenscar_thread_target::store_registers)
5899 (ravenscar_thread_target::prepare_to_store): Use base thread when
5900 forwarding operation.
5901
39e2018a
TT
59022020-08-07 Tom Tromey <tromey@adacore.com>
5903
5904 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5905 "is_pid" case.
5906
2080266b
TT
59072020-08-07 Tom Tromey <tromey@adacore.com>
5908
5909 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5910 New methods.
5911 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5912 first.
5913 (ravenscar_thread_target::add_thread): Rename from
5914 ravenscar_add_thread.
5915 (ravenscar_thread_target::update_thread_list): Use a lambda.
5916 (ravenscar_thread_target::xfer_partial): New method.
5917
78c02f21
TT
59182020-08-07 Tom Tromey <tromey@adacore.com>
5919
5920 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5921 gdb::function_view.
5922 (iterate_over_live_ada_tasks): Change type of argument.
5923 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5924 of argument.
5925
d5d833af
TT
59262020-08-07 Tom Tromey <tromey@adacore.com>
5927
5928 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5929 Remove.
5930 (ravenscar_thread_target::extra_thread_info): Remove.
5931 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5932 defer to target beneath for non-Ravenscar threads.
5933
a8ac85bb
TT
59342020-08-07 Tom Tromey <tromey@adacore.com>
5935
5936 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5937 get_base_thread_from_ravenscar_task>: Now methods.
5938 <m_cpu_map>: New member.
5939 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5940 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5941 (ravenscar_thread_target::task_is_currently_active): Update.
5942 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5943 Now a method.
5944 (ravenscar_thread_target::add_active_thread): Put initial thread
5945 into the m_cpu_map.
5946
550ab58d
TT
59472020-08-07 Tom Tromey <tromey@adacore.com>
5948
5949 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5950 event_ptid.
5951
e9546579
TT
59522020-08-07 Tom Tromey <tromey@adacore.com>
5953
5954 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5955 runtime_initialized.
5956
3d4470e5
TT
59572020-08-07 Tom Tromey <tromey@adacore.com>
5958
5959 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5960 add_active_thread.
5961 (ravenscar_thread_target::add_active_thread): Now public.
5962 (ravenscar_inferior_created): Call add_active_thread after pushing
5963 the target.
5964
888bdb2b
SM
59652020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5966
5967 * regcache.c (ptid_regcache_map): New type.
5968 (target_ptid_regcache_map): New type.
5969 (regcaches): Change type to target_ptid_regcache_map.
5970 (get_thread_arch_aspace_regcache): Update to regcaches' new
5971 type.
5972 (regcache_thread_ptid_changed): Likewise.
5973 (registers_changed_ptid): Likewise.
5974 (regcaches_size): Likewise.
5975 (regcaches_test): Update.
5976 (regcache_thread_ptid_changed): Update.
5977 * regcache.h (regcache_up): New type.
5978 * gdbsupport/ptid.h (hash_ptid): New struct.
5979
b161a60d
SM
59802020-08-07 Simon Marchi <simon.marchi@efficios.com>
5981
5982 * observable.h (thread_ptid_changed): Add parameter
5983 `process_stratum_target *`.
5984 * infrun.c (infrun_thread_ptid_changed): Add parameter
5985 `process_stratum_target *` and use it.
5986 (selftests): New namespace.
5987 (infrun_thread_ptid_changed): New function.
5988 (_initialize_infrun): Register selftest.
5989 * regcache.c (regcache_thread_ptid_changed): Add parameter
5990 `process_stratum_target *` and use it.
5991 (regcache_thread_ptid_changed): New function.
5992 (_initialize_regcache): Register selftest.
5993 * thread.c (thread_change_ptid): Pass target to
5994 thread_ptid_changed observable.
5995
d2854d8d
CT
59962020-08-06 Caroline Tice <cmtice@google.com>
5997
fe4c3d43
SM
5998 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5999 (struct dwp_sections): Update field comments. Add loclists and
6000 rnglists fields.
6001 (struct virtual_v2_dwo_sections): Rename struct to
6002 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6003 size & offset fields for loclists and rnglists.
6004 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6005 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6006 skipping dummy type units.
6007 (create_dwp_hash_table): Update the large comment above the function to
6008 discuss Version 5 DWP files as well, with references. Update all the
6009 version checks in the function to check for version 5 as well. Add new
6010 section at the end to create dwp hash table for version 5.
6011 (create_dwp_v2_section): Rename function to
6012 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6013 Add V5 to error message text.
6014 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6015 into calls to create_dwp_v2_or_v5_section.
6016 (create_dwo_unit_in_dwp_v5): New function.
6017 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6018 check for version2; add else clause to handle version 5.
6019 (open_and_init_dwo_file): Add code to check dwarf version & only call
6020 create_debug_types_hash_table (with sections.types) if version is not 5;
6021 else call create_debug_type_hash_table, with sections.info.
6022 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6023 version 5.
6024 (dwarf2_locate_v5_dwp_sections): New function.
6025 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6026 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6027
159ed7d9
SM
60282020-08-06 Simon Marchi <simon.marchi@efficios.com>
6029
6030 * regcache.h (class regcache): Remove friend
6031 registers_changed_ptid.
6032 <regcache_thread_ptid_changed>: Remove.
6033 <regcaches>: Remove.
6034 * regcache.c (regcache::regcaches): Rename to...
6035 (regcaches): ... this. Make static.
6036 (get_thread_arch_aspace_regcache): Update.
6037 (regcache::regcache_thread_ptid_changed): Rename to...
6038 (regcache_thread_ptid_changed): ... this. Update.
6039 (class regcache_access): Remove.
6040 (regcaches_test): Update.
6041 (_initialize_regcache): Update.
6042 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6043 <forward_list>.
6044
174981ae
SM
60452020-08-06 Simon Marchi <simon.marchi@efficios.com>
6046
6047 * regcache.h (class regcache) <current_regcache>: Rename to...
6048 <regcaches>: ... this. Move doc here.
6049 * regcache.c (regcache::current_regcache) Rename to...
6050 (regcache::regcaches): ... this. Move doc to header.
6051 (get_thread_arch_aspace_regcache): Update.
6052 (regcache::regcache_thread_ptid_changed): Update.
6053 (registers_changed_ptid): Update.
6054 (class regcache_access) <current_regcache_size>: Rename to...
6055 <regcaches_size>: ... this.
6056 (current_regcache_test): Rename to...
6057 (regcaches_test): ... this.
6058 (_initialize_regcache): Update.
6059
ed908db6
VC
60602020-08-06 Victor Collod <vcollod@nvidia.com>
6061
6062 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6063
b5582ab7
KB
60642020-08-05 Kevin Buettner <kevinb@redhat.com>
6065
6066 * corelow.c (core_target::build_file_mappings): Don't output
6067 null pathname in warning.
6068
ea946b86
SM
60692020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6070
6071 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6072 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6073 gdb.dwarf2/dw2-single-line-discriminators.exp,
6074 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6075
57d02173
TT
60762020-08-05 Tom Tromey <tromey@adacore.com>
6077
6078 PR rust/26197:
6079 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6080 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6081 Fix off-by-one and type size errors in ordinary case.
6082
5555c86d
TV
60832020-08-05 Tom de Vries <tdevries@suse.de>
6084
6085 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6086 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6087
97916bfe
SM
60882020-08-04 Simon Marchi <simon.marchi@efficios.com>
6089
6090 * frame.h (frame_id_p): Return bool.
6091 (frame_id_artificial_p): Return bool.
6092 (frame_id_eq): Return bool.
6093 (has_stack_frames): Return bool.
6094 (get_selected_frame): Fix typo in comment.
6095 (get_frame_pc_if_available): Return bool.
6096 (get_frame_address_in_block_if_available): Return bool.
6097 (get_frame_func_if_available): Return bool.
6098 (read_frame_register_unsigned): Return bool.
6099 (get_frame_register_bytes): Return bool.
6100 (safe_frame_unwind_memory): Return bool.
6101 (deprecated_frame_register_read): Return bool.
6102 (frame_unwinder_is): Return bool.
6103 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6104 bool.
6105 <this_id::p>: Likewise.
6106 <prev_p>: Likewise.
6107 (frame_stash_add): Return bool.
6108 (get_frame_id): Use bool.
6109 (frame_id_build_special) Use bool.
6110 (frame_id_build_unavailable_stack): Use bool.
6111 (frame_id_build): Use bool.
6112 (frame_id_p): Return bool, use true/false instead of 1/0.
6113 (frame_id_artificial_p): Likewise.
6114 (frame_id_eq): Likewise.
6115 (frame_id_inner): Likewise.
6116 (get_frame_func_if_available): Likewise.
6117 (read_frame_register_unsigned): Likewise.
6118 (deprecated_frame_register_read): Likewise.
6119 (get_frame_register_bytes): Likewise.
6120 (has_stack_frames): Likewise.
6121 (inside_main_func): Likewise.
6122 (inside_entry_func): Likewise.
6123 (get_frame_pc_if_available): Likewise.
6124 (get_frame_address_in_block_if_available): Likewise.
6125 (frame_unwinder_is): Likewise.
6126 (safe_frame_unwind_memory): Likewise.
6127 (frame_unwind_arch): Likewise.
6128
fedfee88
SM
61292020-08-04 Simon Marchi <simon.marchi@efficios.com>
6130
6131 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6132 type to cached_copy_status.
6133 (fprintf_frame): Adjust.
6134 (get_frame_func_if_available): Adjust.
6135 (frame_cleanup_after_sniffer): Adjust.
6136
6cfa9b59
MW
61372020-08-04 Mark Wielaard <mark@klomp.org>
6138
6139 * MAINTAINERS (Write After Approval): Update email address.
6140
66d6346b
SM
61412020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6142
6143 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6144 dynamic_prop::const_val.
6145
8a6d5e35
SM
61462020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6147
6148 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6149 dynamic_prop::kind.
6150
51d6067d
SM
61512020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6152
6153 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6154
b26e2ae7
JM
61552020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6156
6157 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6158
39791af2
JM
61592020-08-04 Weimin Pan <weimin.pan@oracle.com>
6160 Jose E. Marchesi <jose.marchesi@oracle.com>
6161
6162 * configure.tgt: Add entry for bpf-*-*.
6163 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6164 (ALLDEPFILES): Add bpf-tdep.c.
6165 * bpf-tdep.c: New file.
6166 * MAINTAINERS: Add bpf target and maintainer.
6167 * NEWS: Mention the support for the new target.
6168
521894aa
TV
61692020-08-04 Tom de Vries <tdevries@suse.de>
6170
6171 PR symtab/23270
6172 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6173 Error.
6174
5d6356e9
JB
61752020-08-03 John Baldwin <jhb@FreeBSD.org>
6176
6177 * syscalls/freebsd.xml: Regenerate.
6178
0cf82b81
JB
61792020-08-03 John Baldwin <jhb@FreeBSD.org>
6180
6181 * syscalls/update-freebsd.sh: Fix usage and year range.
6182
8f34b746
TV
61832020-08-03 Tom de Vries <tdevries@suse.de>
6184
6185 PR symtab/26333
6186 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6187 DW_LNE_lo_user/DW_LNE_hi_user range.
6188
5e500d33
SM
61892020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6190
6191 PR ada/26318
6192 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6193 kind.
6194
78319c15
TBA
61952020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6196
6197 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6198
4c55e970
TBA
61992020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6200
6201 * breakpoint.c (set_breakpoint_condition): Update the condition
6202 expressions after checking that the input condition string parses
6203 successfully and does not contain junk at the end.
6204
1e620590
TBA
62052020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6206
6207 * breakpoint.c (set_breakpoint_condition): Update the
6208 condition string after parsing the new condition successfully.
6209
c8693053
RO
62102020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6211
6212 * proc-api.c (_STRUCTURED_PROC): Don't define.
6213 * proc-events.c: Likewise.
6214 * proc-flags.c: Likewise.
6215 * proc-why.c: Likewise.
6216 * procfs.c: Likewise.
6217
6218 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6219 * configure, config.in: Regenerate.
6220
5a99adb8
TV
62212020-07-30 Tom de Vries <tdevries@suse.de>
6222
6223 PR build/26320
6224 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6225 m_red/m_green/m_blue in a union.
6226
8ba83e91
TV
62272020-07-29 Tom de Vries <tdevries@suse.de>
6228
6229 PR tdep/26280
6230 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6231
f75a0693
AB
62322020-07-28 Tom Tromey <tromey@adacore.com>
6233
6234 PR symtab/26270:
6235 * symtab.h (find_pc_partial_function_sym): Declare.
6236 * cli/cli-cmds.c (disassemble_command): Use
6237 find_pc_partial_function_sym. Check asm_demangle.
6238 * blockframe.c (cache_pc_function_sym): New global.
6239 (cache_pc_function_name): Remove.
6240 (clear_pc_function_cache): Update.
6241 (find_pc_partial_function_sym): New function, from
6242 find_pc_partial_function.
6243 (find_pc_partial_function): Rewrite using
6244 find_pc_partial_function_sym.
6245
16f3242c
TT
62462020-07-28 Tom Tromey <tromey@adacore.com>
6247
6248 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6249 help. Add usage.
6250
4888741a
TT
62512020-07-28 Tom Tromey <tromey@adacore.com>
6252
6253 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6254 <DW_OP_GNU_variable_value>: Cast to address type.
6255
4d46f402
KR
62562020-07-28 Kamil Rytarowski <n54@gmx.com>
6257
6258 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6259 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6260 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6261 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6262 (nbsd_get_siginfo_type): New.
6263 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6264 (_initialize_nbsd_tdep): New.
6265
d70f978b
L
62662020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6267
6268 PR binutils/26301
6269 * configure: Regenerated.
6270
377170fa
L
62712020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6272
6273 PR binutils/26301
6274 * configure: Regenerated.
6275
43d5901d
AB
62762020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6277
6278 * python/py-frame.c: Remove 'user-regs.h' include.
6279 (frapy_read_register): Rewrite to make use of
6280 gdbpy_parse_register_id.
6281 * python/py-registers.c (gdbpy_parse_register_id): New function,
6282 moved here from python/py-unwind.c. Updated the return type, and
6283 also accepts register descriptor objects.
6284 * python/py-unwind.c: Remove 'user-regs.h' include.
6285 (pyuw_parse_register_id): Moved to python/py-registers.c.
6286 (unwind_infopy_add_saved_register): Update to use
6287 gdbpy_parse_register_id.
6288 (pending_framepy_read_register): Likewise.
6289 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6290
14fa8fb3
AB
62912020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6292
6293 * python/py-registers.c: Add 'user-regs.h' include.
6294 (register_descriptor_iter_find): New function.
6295 (register_descriptor_iterator_object_methods): New static global
6296 methods array.
6297 (register_descriptor_iterator_object_type): Add pointer to methods
6298 array.
6299
ddce1758
JB
63002020-07-27 John Baldwin <jhb@FreeBSD.org>
6301
6302 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6303 for all architectures on FreeBSD 11.3 and later.
6304
a4089f52
TT
63052020-07-27 Tom Tromey <tromey@adacore.com>
6306
6307 * gcore.h (load_corefile): Don't declare.
6308
95420d30
TV
63092020-07-27 Tom de Vries <tdevries@suse.de>
6310
6311 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6312 * config.in: Regenerate.
6313 * configure: Regenerate.
6314
05a6b8c2
EZ
63152020-07-26 Eli Zaretskii <eliz@gnu.org>
6316
6317 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6318 ws2tcpip.h. When checking whether socklen_t type is defined, use
6319 ws2tcpip.h if it is available and sys/socket.h isn't.
6320 * configure: Regenerate.
6321 * config.in: Regenerate.
6322
e79eb02f
AB
63232020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6324
6325 PR fortran/23051
6326 PR fortran/26139
6327 * valops.c (value_ind): Pass address to
6328 readjust_indirect_value_type.
6329 * value.c (readjust_indirect_value_type): Make parameter
6330 non-const, and add extra address parameter. Resolve original type
6331 before using it.
6332 * value.h (readjust_indirect_value_type): Update function
6333 signature and comment.
6334
876518dd
TV
63352020-07-25 Tom de Vries <tdevries@suse.de>
6336
6337 PR symtab/26243
6338 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6339 entries.
6340
f6720b1c
AM
63412020-07-24 Aaron Merey <amerey@redhat.com>
6342
6343 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6344 * configure: Rebuild.
6345
513487e1
KB
63462020-07-23 Kevin Buettner <kevinb@redhat.com>
6347
6348 PR corefiles/26294
6349 * corelow.c (_initialize_corelow): Add period to help text
6350 for "maintenance print core-file-backed-mappings".
6351
e7bc9db8
PA
63522020-07-23 Pedro Alves <pedro@palves.net>
6353
6354 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6355 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6356 meanwhile.
6357 * frame.c (frame_cache_generation, get_frame_cache_generation):
6358 New.
6359 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6360 (get_prev_frame_if_no_cycle): On exception, don't touch
6361 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6362 * frame.h (get_frame_cache_generation): Declare.
6363
90fcc466
TV
63642020-07-23 Tom de Vries <tdevries@suse.de>
6365
6366 PR tui/26282
6367 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6368 New default constructor.
6369
78344df7
AB
63702020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6371
6372 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6373 exclude non-statement entries.
6374
b089853a
KB
63752020-07-22 Kevin Buettner <kevinb@redhat.com>
6376
6377 * NEWS (New commands): Mention new command
6378 "maintenance print core-file-backed-mappings".
6379
09c2f5d4
KB
63802020-07-22 Kevin Buettner <kevinb@redhat.com>
6381
6382 * corelow.c (gdbcmd.h): Include.
6383 (core_target::info_proc_mappings): New method.
6384 (get_current_core_target): New function.
6385 (maintenance_print_core_file_backed_mappings): New function.
6386 (_initialize_corelow): Add core-file-backed-mappings to
6387 "maint print" commands.
6388
9c5ec5c2 63892020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6390
9c5ec5c2
KB
6391 * linux-tdep.c (dump_note_entry_p): New function.
6392 (linux_dump_mapping_p_ftype): New typedef.
6393 (linux_find_memory_regions_full): Add new parameter,
6394 should_dump_mapping_p.
6395 (linux_find_memory_regions): Adjust call to
6396 linux_find_memory_regions_full.
6397 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6398 call to linux_find_memory_regions_full.
6399
db082f59
KB
64002020-07-22 Kevin Buettner <kevinb@redhat.com>
6401
6402 * corelow.c (solist.h, unordered_map): Include.
6403 (class core_target): Add field m_core_file_mappings and
6404 method build_file_mappings.
6405 (core_target::core_target): Call build_file_mappings.
6406 (core_target::~core_target): Free memory associated with
6407 m_core_file_mappings.
6408 (core_target::build_file_mappings): New method.
6409 (core_target::xfer_partial): Use m_core_file_mappings
6410 for memory transfers.
6411 * linux-tdep.c (linux_read_core_file_mappings): New
6412 function.
6413 (linux_core_info_proc_mappings): Rewrite to use
6414 linux_read_core_file_mappings.
6415 (linux_init_abi): Register linux_read_core_file_mappings.
6416
7e183d27
KB
64172020-07-22 Kevin Buettner <kevinb@redhat.com>
6418
6419 * arch-utils.c (default_read_core_file_mappings): New function.
6420 * arch-utils.c (default_read_core_file_mappings): Declare.
6421 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6422 * gdbarch.h, gdbarch.c: Regenerate.
6423
2735d421
KB
64242020-07-22 Kevin Buettner <kevinb@redhat.com>
6425
6426 PR corefiles/25631
6427 * corelow.c (core_target:xfer_partial): Revise
6428 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6429 case after first checking the stratum beneath the core
6430 target.
6431 (has_all_memory): Return true.
6432 * target.c (raw_memory_xfer_partial): Revise comment
6433 regarding use of has_all_memory.
6434
e56cb451
KB
64352020-07-22 Kevin Buettner <kevinb@redhat.com>
6436
6437 * exec.h (section_table_xfer_memory): Revise declaration,
6438 replacing section name parameter with an optional callback
6439 predicate.
6440 * exec.c (section_table_xfer_memory): Likewise.
6441 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6442 of section_table_xfer_memory.
6443
32fa152e
TT
64442020-07-22 Tom Tromey <tromey@adacore.com>
6445
6446 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6447 lookup_symbol_search_name.
6448
a67a1c41
AB
64492020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6450
6451 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6452 redundant local variable.
6453 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6454 reference, not pointer, update code accordingly.
6455
a7b4ff4f
SM
64562020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6457 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6458
6459 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6460 * jit.c (jit_breakpoint_re_set_internal): Use the
6461 `skip_jit_symbol_lookup` field.
6462
2340e834
SM
64632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6464 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6465
6466 * jit.c (jit_read_descriptor): Define the descriptor address once,
6467 use twice.
6468 (jit_breakpoint_deleted): Move the declaration of the loop variable
6469 `iter` into the loop header.
6470 (jit_breakpoint_re_set_internal): Move the declaration of the local
6471 variable `objf_data` to the first point of definition.
6472 (jit_event_handler): Move the declaration of local variables
6473 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6474 Rename `objf` to `jited`.
6475
c1072906
SM
64762020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6477
6478 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6479 Remove.
6480 * jit.c (get_jiter_objfile_data): Update.
6481
c8474dc3
TBA
64822020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6483 Simon Marchi <simon.marchi@polymtl.ca>
6484
6485 * jit.c (struct jit_program_space_data): Remove.
6486 (jit_program_space_key): Remove.
6487 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6488 stuff.
6489 (get_jit_program_space_data): Remove.
6490 (jit_breakpoint_deleted): Iterate on all of the program space's
6491 objfiles.
6492 (jit_inferior_init): Likewise.
6493 (jit_breakpoint_re_set_internal): Likewise. Also change return
6494 type to void.
6495 (jit_breakpoint_re_set): Pass current_program_space to
6496 jit_breakpoint_re_set_internal.
6497
77208eb7
SM
64982020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6499
6500 * jit.h (struct jiter_objfile_data) <cached_code_address,
6501 jit_breakpoint>: Move to here from ...
6502 * jit.c (jit_program_space_data): ... here.
6503 (jiter_objfile_data::~jiter_objfile_data): Update.
6504 (jit_breakpoint_deleted): Update.
6505 (jit_breakpoint_re_set_internal): Update.
6506
8c1c720f
SM
65072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6508
6509 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6510 checks.
6511 (jit_read_descriptor): Remove NULL check.
6512 (jit_event_handler): Add an assertion.
6513
0e74a041
SM
65142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6515
6516 * jit.h (struct jit_objfile_data): Split into...
6517 (struct jiter_objfile_data): ... this ...
6518 (struct jited_objfile_data): ... and this.
6519 * objfiles.h (struct objfile) <jit_data>: Remove.
6520 <jiter_data, jited_data>: New fields.
6521 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6522 (jiter_objfile_data::~jiter_objfile_data): ... this.
6523 (get_jit_objfile_data): Rename to ...
6524 (get_jiter_objfile_data): ... this.
6525 (add_objfile_entry): Update.
6526 (jit_read_descriptor): Use get_jiter_objfile_data.
6527 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6528 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6529 (jit_inferior_exit_hook): Use objfile's jited_data field.
6530
238b5c9f
SM
65312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6532
6533 * jit.h: Forward-declare `struct minimal_symbol`.
6534 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6535 constructor, destructor, and an objfile* field.
6536 * jit.c (jit_objfile_data): Remove.
6537 (struct jit_objfile_data): Migrate from here to jit.h.
6538 (jit_objfile_data::~jit_objfile_data): New destructor
6539 implementation with code moved from free_objfile_data.
6540 (free_objfile_data): Delete.
6541 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6542 (jit_find_objf_with_entry_addr): Ditto.
6543 (jit_inferior_exit_hook): Ditto.
6544 (_initialize_jit): Remove the call to
6545 register_objfile_data_with_cleanup.
6546 * objfiles.h (struct objfile) <jit_data>: New field.
6547
fe053b9e
TBA
65482020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6549
6550 * jit.h: Forward-declare `struct objfile`.
6551 (jit_event_handler): Add a second parameter, the JITer objfile.
6552 * jit.c (jit_read_descriptor): Change the signature to take the
6553 JITer objfile as an argument instead of the jit_program_space_data.
6554 (jit_inferior_init): Update the call to jit_read_descriptor.
6555 (jit_event_handler): Use the new JITer objfile argument when calling
6556 jit_read_descriptor.
6557 * breakpoint.c (handle_jit_event): Update the call to
6558 jit_event_handler to pass the JITer objfile.
6559
4cec0c66
JB
65602020-07-21 John Baldwin <jhb@FreeBSD.org>
6561
6562 * gdbarch.c: Regenerate.
6563 * gdbarch.h: Regenerate.
6564 * gdbarch.sh (handle_segmentation_fault): Remove method.
6565 * infrun.c (handle_segmentation_fault): Remove.
6566 (print_signal_received_reason): Remove call to
6567 handle_segmentation_fault.
6568
0e42f66a
JB
65692020-07-21 John Baldwin <jhb@FreeBSD.org>
6570
6571 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6572 Rename to sparc64_linux_report_signal_info and add siggnal
6573 argument.
6574 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6575 instead of sparc64_linux_handle_segmentation_fault.
6576
77bdfeb2
JB
65772020-07-21 John Baldwin <jhb@FreeBSD.org>
6578
6579 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6580 i386_linux_report_signal_info instead of
6581 i386_linux_handle_segmentation_fault.
6582 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6583 to i386_linux_report_signal_info and add siggnal argument.
6584 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6585 of i386_linux_handle_segmentation_fault.
6586 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6587 to i386_linux_report_signal_info and add siggnal argument.
6588
ad97bfc5
JB
65892020-07-21 John Baldwin <jhb@FreeBSD.org>
6590
6591 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6592 hook if present.
6593
272bb05c
JB
65942020-07-21 John Baldwin <jhb@FreeBSD.org>
6595
6596 * gdbarch.c: Regenerate.
6597 * gdbarch.h: Regenerate.
6598 * gdbarch.sh (report_signal_info): New method.
6599 * infrun.c (print_signal_received_reason): Invoke gdbarch
6600 report_signal_info hook if present.
6601
baf8791e
AB
66022020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6603
6604 * python/py-registers.c : Add 'unordered_map' include.
6605 (gdbpy_new_reggroup): Renamed to...
6606 (gdbpy_get_reggroup): ...this. Update to only create register
6607 group descriptors when needed.
6608 (gdbpy_reggroup_iter_next): Update.
6609
f7306dac
AB
66102020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6611
6612 * python/py-registers.c (gdbpy_register_object_data): New static
6613 global.
6614 (gdbpy_register_object_data_init): New function.
6615 (gdbpy_new_register_descriptor): Renamed to...
6616 (gdbpy_get_register_descriptor): ...this, and update to reuse
6617 existing register descriptors where possible.
6618 (gdbpy_register_descriptor_iter_next): Update.
6619 (gdbpy_initialize_registers): Register new gdbarch data.
6620
05c309a8
SM
66212020-07-21 Simon Marchi <simon.marchi@efficios.com>
6622
6623 * linux-nat.c (stopped_pids): Make static.
6624
d1fd641e
SM
66252020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6626
6627 PR ada/26235
6628 * gdbtypes.c (ada_discrete_type_low_bound,
6629 ada_discrete_type_high_bound): Handle undefined bounds.
6630
1de14d77
KR
66312020-07-21 Kamil Rytarowski <n54@gmx.com>
6632
6633 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6634 declaration.
6635 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6636 function.
6637
ed810cc7
JB
66382020-07-20 John Baldwin <jhb@FreeBSD.org>
6639
6640 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6641 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6642 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6643 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6644 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6645 method.
6646
ae5369e7
LC
66472020-07-20 Ludovic Courtès <ludo@gnu.org>
6648
6649 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6650 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6651 which are deprecated in Guile 3.0.
6652 * configure.ac (try_guile_versions): Add "guile-3.0".
6653 * configure (try_guile_versions): Regenerate.
6654 * NEWS: Update entry.
6655
68cf161c
LC
66562020-07-20 Ludovic Courtès <ludo@gnu.org>
6657 Doug Evans <dje@google.com>
6658
6659 PR gdb/21104
6660 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6661 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6662 USING_GUILE_BEFORE_2_2.
6663 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6664 Change type to 'scm_t_port_type *'.
6665 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6666 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6667 parameter and honor it. Update callers.
6668 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6669 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6670 functions.
6671 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6672 USING_GUILE_BEFORE_2_2.
6673 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6674 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6675 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6676 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6677 and 'SCM_PORT_TYPE'.
6678 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6679 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6680 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6681 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6682 [!USING_GUILE_BEFORE_2_2]: New functions.
6683 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6684 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6685 'gdbscm_memory_port_read'.
6686 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6687 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6688 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6689 function.
6690 (ioscm_init_memory_port): Remove.
6691 (ioscm_init_memory_port_stream): New function
6692 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6693 function.
6694 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6695 Return scm_from_uint (0).
6696 (gdbscm_set_memory_port_read_buffer_size_x)
6697 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6698 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6699 Return scm_from_uint (0).
6700 (gdbscm_set_memory_port_write_buffer_size_x)
6701 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6702 * configure.ac (try_guile_versions): Add "guile-2.2".
6703 * configure: Regenerate.
6704 * NEWS: Add entry.
6705
aee91db3
TT
67062020-07-18 Tom Tromey <tom@tromey.com>
6707
6708 * linux-nat.c (linux_multi_process): Remove.
6709 (linux_nat_target::supports_multi_process): Return true.
6710
0e267416
AB
67112020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6712
6713 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6714 (riscv_lookup_target_description): Return pointer out of
6715 unique_ptr.
6716 * target-descriptions.c (allocate_target_description): Add
6717 comment.
6718 (target_desc_deleter::operator()): Likewise.
6719 * target-descriptions.h (struct target_desc_deleter): Moved to
6720 gdbsupport/tdesc.h.
6721 (target_desc_up): Likewise.
6722
f80c8ec4
TT
67232020-07-17 Tom Tromey <tromey@adacore.com>
6724
6725 * linux-nat.c (linux_nat_target::supports_non_stop)
6726 (linux_nat_target::always_non_stop_p): Use "true".
6727 (linux_nat_target::supports_disable_randomization): Use "true" and
6728 "false".
6729
d0ce17d8
CT
67302020-07-16 Caroline Tice <cmtice@google.com>
6731
6732 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6733 (RNGLIST_HEADER_SIZE64): New constant definition.
6734 (struct dwop_section_names): Add rnglists_dwo.
6735 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6736 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6737 (struct dwo_sections): Add rnglists field.
6738 (read_attribut_reprocess): Add tag parameter.
6739 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6740 (cu_debug_rnglists_section): New function (decl & definition).
6741 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6742 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6743 die whose range is being checked; get rnglist section from
6744 cu_debug_rnglists_section, to get from either objfile or dwo file as
6745 appropriate. Add cases for DW_RLE_base_addressx,
6746 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6747 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6748 test inside if-condition and updating complaint message.
6749 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6750 dwarf2_rnglists_process.
6751 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6752 dwarf2_ranges_process.
6753 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6754 need_ranges_base and update comment appropriately. Also pass die tag
6755 to dwarf2_ranges_read.
6756 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6757 need_ranges_base and update comment appropriately. Also pass die tag
6758 to dwarf2_ranges_process.
6759 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6760 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6761 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6762 need_ranges_base and update comment appropriately. Also pass die tag
6763 to read_attribute_reprocess and dwarf2_ranges_read.
6764 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6765 and update function comment appropriately.
6766 (read_loclist_index): Call read_loclists_rnglists_header instead of
6767 read_loclist_header.
6768 (read_rnglist_index): New function.
6769 (read_attribute_reprocess): Add tag parameter. Add code for
6770 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6771 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6772
3dcc261c
AB
67732020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6774
6775 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6776 being resolved.
6777
ccb9eba6
AB
67782020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6779
6780 * arch-utils.c (show_architecture): Update formatting of messages.
6781
cf88be68
SM
67822020-07-12 Simon Marchi <simon.marchi@efficios.com>
6783
6784 * gdbtypes.h (struct type) <bounds>: Handle array and string
6785 types.
6786 * ada-lang.c (assign_aggregate): Use type::bounds on
6787 array/string type.
6788 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6789 * c-varobj.c (c_number_of_children): Likewise.
6790 (c_describe_child): Likewise.
6791 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6792 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6793 (f_type_print_base): Likewise.
6794 * f-valprint.c (f77_array_offset_tbl): Likewise.
6795 (f77_get_upperbound): Likewise.
6796 (f77_print_array_1): Likewise.
6797 * guile/scm-type.c (gdbscm_type_range): Likewise.
6798 * m2-typeprint.c (m2_array): Likewise.
6799 (m2_is_long_set_of_type): Likewise.
6800 * m2-valprint.c (get_long_set_bounds): Likewise.
6801 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6802 * python/py-type.c (typy_range): Likewise.
6803 * rust-lang.c (rust_internal_print_type): Likewise.
6804 * type-stack.c (type_stack::follow_types): Likewise.
6805 * valarith.c (value_subscripted_rvalue): Likewise.
6806 * valops.c (value_cast): Likewise.
6807
509971ae
SM
68082020-07-12 Simon Marchi <simon.marchi@efficios.com>
6809
6810 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6811 callers to use the equivalent accessor methods.
6812
107406b7
SM
68132020-07-12 Simon Marchi <simon.marchi@efficios.com>
6814
6815 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6816 (struct type) <bit_stride>: New method.
6817 (TYPE_BIT_STRIDE): Remove.
6818 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6819
bb789949
SM
68202020-07-12 Simon Marchi <simon.marchi@efficios.com>
6821
6822 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6823 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6824 callers to use the equivalent accessor methods instead.
6825
39498edb
SM
68262020-07-12 Simon Marchi <simon.marchi@efficios.com>
6827
6828 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6829 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6830 callers to use the equivalent accessor methods instead.
6831
3b606f38
SM
68322020-07-12 Simon Marchi <simon.marchi@efficios.com>
6833
6834 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6835 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6836 to use dynamic_prop::kind.
6837
064d9cb9
SM
68382020-07-12 Simon Marchi <simon.marchi@efficios.com>
6839
6840 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6841 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6842 to get the bound property's kind and check against
6843 PROP_UNDEFINED.
6844
5537ddd0
SM
68452020-07-12 Simon Marchi <simon.marchi@efficios.com>
6846
6847 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6848 all callers to use type::range_bounds followed by
6849 dynamic_prop::{low,high}.
6850
8c2e4e06
SM
68512020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6852
6853 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6854 const_val, set_const_val, baton, set_locexpr, set_loclist,
6855 set_addr_offset, variant_parts, set_variant_parts,
6856 original_type, set_original_type>: New methods.
6857 <kind>: Rename to...
6858 <m_kind>: ... this. Update all users to use the new methods
6859 instead.
6860 <data>: Rename to...
6861 <m_data>: ... this. Update all users to use the new methods
6862 instead.
6863
7c6f2712
SM
68642020-07-12 Simon Marchi <simon.marchi@efficios.com>
6865
6866 * gdbtypes.c (get_discrete_bounds): Return failure if
6867 the range type's bounds are not both defined and constant
6868 values.
6869 (get_array_bounds): Update comment. Remove undefined bound check.
6870
599088e3
SM
68712020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6872
6873 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6874 the type::bounds method directly.
6875
c4dfcb36
SM
68762020-07-12 Simon Marchi <simon.marchi@efficios.com>
6877
6878 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6879 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6880 are used to set the range type's bounds to use set_bounds.
6881
0a278aa7
PW
68822020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6883
6884 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6885
cce20f10
PA
68862020-07-10 Pedro Alves <pedro@palves.net>
6887
6888 * gdbthread.h (inferior_ref): Define.
6889 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6890 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6891 * thread.c
6892 (scoped_restore_current_thread::restore):
6893 Adjust to gdb::ref_ptr.
6894 (scoped_restore_current_thread::~scoped_restore_current_thread):
6895 Remove manual decref handling.
6896 (scoped_restore_current_thread::scoped_restore_current_thread):
6897 Adjust to use
6898 inferior_ref::new_reference/thread_info_ref::new_reference.
6899 Incref the thread before calling get_frame_id instead of after.
6900 Let TARGET_CLOSE_ERROR propagate.
6901
6d7aa592
PA
69022020-07-10 Pedro Alves <pedro@palves.net>
6903
6904 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6905 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6906 NOT_AVAILABLE_ERROR.
6907 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6908 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6909
b3e3a4c1
SM
69102020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6911 Pedro Alves <pedro@palves.net>
6912
6913 PR gdb/26199
6914 * infrun.c (threads_are_resumed_pending_p): Delete.
6915 (do_target_wait): Remove threads_are_executing and
6916 threads_are_resumed_pending_p checks from the inferior_matches
6917 lambda. Update comments.
6918
d6cc5d98
PA
69192020-07-10 Pedro Alves <pedro@palves.net>
6920
6921 PR gdb/26199
6922 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6923 executing threads.
6924
7d3badc6
PA
69252020-07-10 Pedro Alves <pedro@palves.net>
6926
6927 PR gdb/26199
6928 * infrun.c (handle_no_resumed): Handle multiple targets.
6929
42bd97a6
PA
69302020-07-10 Pedro Alves <pedro@palves.net>
6931
6932 PR gdb/26199
6933 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6934 target_is_async_p.
6935
43667cc6
PA
69362020-07-10 Pedro Alves <pedro@palves.net>
6937
6938 PR gdb/26199
6939 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6940 threads, not all threads.
6941
96118d11
PA
69422020-07-10 Pedro Alves <pedro@palves.net>
6943
6944 PR gdb/26199
6945 * remote.c (remote_target::open_1): Pass remote target pointer as
6946 data to create_async_event_handler.
6947 (remote_async_inferior_event_handler): Mark async event handler
6948 before returning if the remote target still has either pending
6949 events or unacknowledged notifications.
6950
54904d81
JB
69512020-07-10 John Baldwin <jhb@FreeBSD.org>
6952
6953 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6954 declaration.
6955 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6956 function.
6957
f37e5866
JB
69582020-07-09 John Baldwin <jhb@FreeBSD.org>
6959
6960 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6961 inferior_ptid.
6962
fc238d4a
JB
69632020-07-09 John Baldwin <jhb@FreeBSD.org>
6964
6965 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6966 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6967 AT_FREEBSD_PS_STRINGS.
6968
6e2469ff
HD
69692020-07-08 Hannes Domani <ssbssa@yahoo.de>
6970
6971 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6972 of debugfile path on Windows.
6973
d1076c41
JB
69742020-07-08 John Baldwin <jhb@FreeBSD.org>
6975
6976 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6977 argument to 'data'.
6978
15f3b077
TT
69792020-07-08 Tom Tromey <tromey@adacore.com>
6980
6981 * ada-lang.c (ada_exception_message_1): Use read_memory.
6982
9fc501fd
AB
69832020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6984
6985 PR python/22748
6986 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6987 special handling for inline frames.
6988 * findvar.c (value_of_register_lazy): Skip inline frames when
6989 creating lazy register values.
6990 * frame.c (frame_id_computed_p): Delete definition.
6991 * frame.h (frame_id_computed_p): Delete declaration.
6992
64cb3757
AB
69932020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6994
6995 * NEWS: Mention additions to Python API.
6996 * python/py-arch.c (archpy_register_groups): New function.
6997 (arch_object_methods): Add 'register_groups' method.
6998 * python/py-registers.c (reggroup_iterator_object): New struct.
6999 (reggroup_object): New struct.
7000 (gdbpy_new_reggroup): New function.
7001 (gdbpy_reggroup_to_string): New function.
7002 (gdbpy_reggroup_name): New function.
7003 (gdbpy_reggroup_iter): New function.
7004 (gdbpy_reggroup_iter_next): New function.
7005 (gdbpy_new_reggroup_iterator): New function
7006 (gdbpy_initialize_registers): Register new types.
7007 (reggroup_iterator_object_type): Define new Python type.
7008 (gdbpy_reggroup_getset): New static global.
7009 (reggroup_object_type): Define new Python type.
7010 * python/python-internal.h
7011
0f767f94
AB
70122020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7013
7014 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7015 * python/py-arch.c (archpy_registers): New function.
7016 (arch_object_methods): Add 'registers' method.
7017 * python/py-registers.c: New file.
7018 * python/python-internal.h
7019 (gdbpy_new_register_descriptor_iterator): Declare.
7020 (gdbpy_initialize_registers): Declare.
7021 * python/python.c (do_start_initialization): Call
7022 gdbpy_initialize_registers.
7023 * NEWS: Mention additions to the Python API.
7024
87dbc774
AB
70252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7026
7027 * NEWS: Mention new Python API method.
7028 * python/py-unwind.c (pending_framepy_architecture): New function.
7029 (pending_frame_object_methods): Add architecture method.
7030
3bc98c0c
AB
70312020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7032
7033 * gdbarch.c: Regenerate.
7034 * gdbarch.h: Regenerate.
7035 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7036 (gdbarch_data): Use internal_error for the case where
7037 deprecated_set_gdbarch_data was originally needed.
7038 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7039 and use passed in obstack.
7040 (libunwind_frame_set_descr): Should no longer get back NULL from
7041 gdbarch_data.
7042 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7043 type.
7044 * user-regs.c (user_regs_init): Update parameters, and use passed
7045 in obstack.
7046 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7047 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7048
d8cc8af6
TV
70492020-07-06 Tom de Vries <tdevries@suse.de>
7050
7051 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7052 End-Of-Sequence in lte_is_less_than.
7053 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7054 "gdb: Don't reorder line table entries too much when sorting".
7055
947f7597
TV
70562020-07-06 Tom de Vries <tdevries@suse.de>
7057
7058 PR tui/26205
7059 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7060
1e7c1b22
TV
70612020-07-05 Tom de Vries <tdevries@suse.de>
7062
7063 PR build/26187
7064 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7065 std::uncaught_exceptions instead of deprecated
7066 std::uncaught_exception.
7067
a36158ec
SM
70682020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7069
7070 * macroexp.h (macro_stringify): Return
7071 gdb::unique_xmalloc_ptr<char>.
7072 * macroexp.c (macro_stringify): Likewise.
7073 * macrotab.c (fixup_definition): Update.
7074
14d960c8
SM
70752020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7076
7077 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7078 (lex_one_token): Update.
7079 * macroexp.c (struct macro_buffer) <release>: Return
7080 gdb::unique_xmalloc_ptr<char>.
7081 (macro_stringify): Update.
7082 (macro_expand): Update.
7083 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7084 * macroexp.h (macro_expand_next): Likewise.
7085
211d5b1c
SM
70862020-07-02 Simon Marchi <simon.marchi@efficios.com>
7087
7088 * macroexp.h (macro_lookup_ftype): Remove.
7089 (macro_expand, macro_expand_once, macro_expand_next): Remove
7090 lookup function parameters, add scope parameter.
7091 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7092 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7093 * macroscope.h (standard_macro_lookup): Change parameter type
7094 to macro_scope.
7095 * macroscope.c (standard_macro_lookup): Likewise.
7096 * c-exp.y (lex_one_token): Update.
7097 * macrocmd.c (macro_expand_command): Likewise.
7098 (macro_expand_once_command): Likewise.
7099
b1a35af2
SM
71002020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7101
7102 * inf-loop.c (inferior_event_handler): Remove client_data param.
7103 * inf-loop.h (inferior_event_handler): Likewise.
7104 * infcmd.c (step_1): Adjust.
7105 * infrun.c (proceed): Adjust.
7106 (fetch_inferior_event): Remove client_data param.
7107 (infrun_async_inferior_event_handler): Adjust.
7108 * infrun.h (fetch_inferior_event): Remove `void *` param.
7109 * linux-nat.c (handle_target_event): Adjust.
7110 * record-btrace.c (record_btrace_handle_async_inferior_event):
7111 Adjust.
7112 * record-full.c (record_full_async_inferior_event_handler):
7113 Adjust.
7114 * remote.c (remote_async_inferior_event_handler): Adjust.
7115
1cdf9e33
TT
71162020-07-01 Tom Tromey <tom@tromey.com>
7117
7118 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7119 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7120
32c1e210
TT
71212020-07-01 Tom Tromey <tom@tromey.com>
7122
7123 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7124 tui_gen_win_info.
7125 (tui_win_info::make_window): Merge with
7126 tui_gen_win_info::make_window.
7127 (tui_win_info::make_visible): Move from tui_gen_win_info.
7128 * tui/tui-win.c (tui_win_info::max_width): Move from
7129 tui_gen_win_info.
7130 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7131 type.
7132 <window_factory>: Likewise.
7133 * tui/tui-layout.c (tui_win_info::resize): Move from
7134 tui_gen_win_info.
7135 (make_standard_window): Change return type.
7136 (get_locator_window, tui_get_window_by_name): Likewise.
7137 (tui_layout_window::apply): Remove a cast.
7138 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7139 (struct tui_win_info): Merge with tui_gen_win_info.
7140 (struct tui_gen_win_info): Remove.
7141
a30cb6da
TT
71422020-07-01 Tom Tromey <tom@tromey.com>
7143
7144 * tui/tui-stack.h (struct tui_locator_window): Derive from
7145 tui_win_info.
7146 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7147 <can_box>: New method.
7148
1eb2161f
TT
71492020-07-01 Tom Tromey <tom@tromey.com>
7150
7151 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7152
7134f2eb
TT
71532020-07-01 Tom Tromey <tom@tromey.com>
7154
7155 * tui/tui-regs.c (tui_data_window::display_registers_from)
7156 (tui_data_window::display_registers_from)
7157 (tui_data_window::first_data_item_displayed)
7158 (tui_data_window::delete_data_content_windows): Update.
7159 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7160 Remove.
7161 (tui_data_window::check_register_values): Update.
7162 (tui_data_item_window::rerender): Add parameters. Update.
7163 (tui_data_item_window::refresh_window): Remove.
7164 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7165 virtual.
7166 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7167 tui_gen_win_info.
7168 <refresh_window, max_height, min_height>: Remove.
7169 <rerender>: Add parameters.
7170 <x, y, visible>: New members.
7171 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7172 <m_item_width>: New member.
7173
22b7b041
TT
71742020-07-01 Tom Tromey <tom@tromey.com>
7175
7176 * tui/tui-regs.c (tui_data_window::show_register_group)
7177 (tui_data_window::check_register_values): Update.
7178 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7179 from item_no.
7180
c9753adb
TT
71812020-07-01 Tom Tromey <tom@tromey.com>
7182
7183 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7184 useless "if".
7185
9ab26b4a
TT
71862020-07-01 Tom Tromey <tom@tromey.com>
7187
7188 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7189 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7190
e555083f
TT
71912020-07-01 Tom Tromey <tom@tromey.com>
7192
7193 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7194 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7195 (struct tui_line_or_address): Move from tui-data.h.
7196 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7197 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7198 (tui_cmd_window, tui_source_window_base, tui_source_window)
7199 (tui_disasm_window): Don't declare.
7200 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7201 to tui-winsource.h.
7202 (SINGLE_KEY): Move to tui-stack.c.
7203
7a02bab7
TT
72042020-07-01 Tom Tromey <tom@tromey.com>
7205
7206 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7207 std::string.
7208 * tui/tui-regs.c (class tab_expansion_file): New.
7209 (tab_expansion_file::write): New method.
7210 (tui_register_format): Change return type. Use
7211 tab_expansion_file.
7212 (tui_get_register, tui_data_window::display_registers_from)
7213 (tui_data_item_window::rerender): Update.
7214 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7215 * tui/tui-io.c (tui_expand_tabs): Remove.
7216
ea68593b
TT
72172020-07-01 Tom Tromey <tom@tromey.com>
7218
7219 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7220
a8caed5d
FS
72212020-07-01 Fangrui Song <maskray@google.com>
7222
7223 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7224
9cdf9820
AKS
72252020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7226
7227 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7228 forms for DW_AT_associated and DW_AT_allocated attributes,
7229 which is already checked in function attr_to_dynamic_prop.
7230
a1520ad8
TT
72312020-06-30 Tom Tromey <tromey@adacore.com>
7232
7233 * dwarf2/read.c (quirk_rust_enum): Correctly call
7234 alloc_rust_variant for default-less enum.
7235
5ac58899
TT
72362020-06-30 Tom Tromey <tromey@adacore.com>
7237
7238 PR build/26183:
7239 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7240 gdb::to_string.
7241
19b187a9
SM
72422020-06-29 Simon Marchi <simon.marchi@efficios.com>
7243
7244 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7245 * gdbarch.h: Re-generate.
7246
cd4c4c07
TT
72472020-06-28 Tom Tromey <tom@tromey.com>
7248
7249 * command.h (cmd_types): Remove.
7250 (cmd_type): Don't declare.
7251 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7252 typedef.
7253 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7254 * cli/cli-decode.c (cmd_type): Remove.
7255
05779d57
PA
72562020-06-27 Pedro Alves <palves@redhat.com>
7257
7258 * fork-child.c (prefork_hook): Adjust.
7259 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7260 Delete.
7261 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7262 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7263 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7264 Remove declarations.
7265 (struct inferior) <set_tty, tty>: New methods.
7266 (struct inferior) <terminal>: Rename to ...
7267 (struct inferior) <m_terminal>: ... this and make private.
7268 * main.c (captured_main_1): Adjust.
7269 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7270 (mi_cmd_inferior_tty_show): Adjust.
7271 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7272 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7273
1776e3e5
NA
72742020-06-26 Nick Alcock <nick.alcock@oracle.com>
7275
7276 * configure.ac: Add --enable-libctf: handle --disable-static
7277 properly.
7278 * acinclude.m4: sinclude ../config/enable.m4.
7279 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7280 (LIBCTF): Substitute in.
7281 (CTF_DEPS): New, likewise.
7282 (CLIBS): libctf needs symbols from libbfd: move earlier.
7283 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7284 flags.
7285 * ctfread.c: Surround in ENABLE_LIBCTF.
7286 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7287 * configure: Regenerate.
7288 * config.in: Likewise.
7289
58373b80
SM
72902020-06-25 Simon Marchi <simon.marchi@efficios.com>
7291
7292 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7293
277474ee
SM
72942020-06-25 Simon Marchi <simon.marchi@efficios.com>
7295
7296 * inferior.h (struct inferior) <terminal>: Change type to
7297 gdb::unique_xmalloc_ptr<char>.
7298 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7299 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7300 field, adjust to unique pointer.
7301 (get_inferior_io_terminal): Adjust to unique pointer.
7302
6d74da72
AB
73032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7304
7305 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7306 registers, not just the known core set of registers.
7307
2e52d038
AB
73082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7309
7310 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7311 fflags, frm, and fcsr registers.
7312 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7313 restore groups.
7314 (riscv_tdesc_unknown_reg): New function.
7315 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7316 tdesc_use_registers.
7317 * riscv-tdep.h (struct gdbarch_tdep): Add
7318 unknown_csrs_first_regnum, unknown_csrs_count,
7319 duplicate_fflags_regnum, duplicate_frm_regnum, and
7320 duplicate_fcsr_regnum fields.
7321
be64fd07
AB
73222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7323
7324 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7325 callback, use the callback (when not null) to help number unknown
7326 registers.
7327 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7328 (tdesc_use_registers): Add extra parameter to declaration.
7329
3b9fce96
AB
73302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7331
7332 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7333 in the file.
7334 (class riscv_pending_register_alias): Likewise.
7335 (riscv_register_feature::register_info): Change 'required_p' field
7336 to 'required', and change its type. Add 'check' member function.
7337 (riscv_register_feature::register_info::check): Define new member
7338 function.
7339 (riscv_xreg_feature): Change initialisation of 'required' field.
7340 (riscv_freg_feature): Likewise.
7341 (riscv_virtual_feature): Likewise.
7342 (riscv_csr_feature): Likewise.
7343 (riscv_check_tdesc_feature): Take extra parameter, the csr
7344 tdesc_feature, rewrite the function to use the new
7345 riscv_register_feature::register_info::check function.
7346 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7347
865bad26
AB
73482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7349
7350 * features/Makefile: Remove all references to the deleted files
7351 below.
7352 * features/riscv/32bit-csr.c: Deleted.
7353 * features/riscv/32bit-csr.xml: Deleted.
7354 * features/riscv/64bit-csr.c: Deleted.
7355 * features/riscv/64bit-csr.xml: Deleted.
7356 * features/riscv/rebuild-csr-xml.sh: Deleted.
7357
ed69cbc8
AB
73582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7359
7360 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7361 whitespace error for declaration of names member variable.
7362 (struct riscv_register_feature): Add new prefer_first_name member
7363 variable, and fix whitespace error in declaration of registers.
7364 (riscv_xreg_feature): Initialize prefer_first_name field.
7365 (riscv_freg_feature): Likewise.
7366 (riscv_virtual_feature): Likewise.
7367 (riscv_csr_feature): Likewise.
7368 (riscv_register_name): Expand on comments. Remove register name
7369 modifications for CSR and virtual registers.
7370
4445e8f5
AB
73712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7372
7373 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7374 errors.
7375
767a879e
AB
73762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7377
7378 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7379 riscv-opc.h.
7380 (class riscv_pending_register_alias): New class.
7381 (riscv_check_tdesc_feature): Take vector of pending aliases and
7382 populate it as appropriate.
7383 (riscv_setup_register_aliases): Delete.
7384 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7385 to riscv_check_tdesc_feature in all cases. Use the vector to
7386 create the register aliases.
7387
bb6e55f3
RO
73882020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7389
7390 * sol2-tdep.c (sol2_static_transform_name): Remove.
7391 (sol2_init_abi): Don't register it.
7392 * gdbarch.sh (static_transform_name): Remove.
7393 * gdbarch.c, gdbarch.h: Regenerate.
7394
7395 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7396 gdbarch_static_transform_name.
7397 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7398 * stabsread.c (define_symbol) <'X'>: Remove.
7399 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7400 handling.
7401 <'V'>: Likewise.
7402 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7403 <'S'>: Remove call to gdbarch_static_transform_name.
7404
c6d36836
RO
74052020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7406
7407 * procfs.c (procfs_pre_trace): New function.
7408 (procfs_target::create_inferior): Pass it to fork_inferior.
7409
a7e6196b
RO
74102020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7411
7412 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7413 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7414 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7415 sol2-tdep.o, sparc-sol2-tdep.o.
7416 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7417 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7418 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7419 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7420
d412e696
RO
74212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7422
7423 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7424 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7425 Call sol2_init_abi.
7426 Remove calls to set_gdbarch_skip_solib_resolver,
7427 set_gdbarch_core_pid_to_str.
7428 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7429 (i386_sol2_static_transform_name): Remove.
7430 (i386_sol2_init_abi): Call sol2_init_abi.
7431 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7432 set_gdbarch_static_transform_name,
7433 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7434 Use sol2_sigtramp_p.
7435 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7436 (sol2_sigtramp_p): New function.
7437 (sol2_static_transform_name): New function.
7438 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7439 (sol2_init_abi): New function.
7440 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7441 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7442 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7443 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7444 (sparc_sol2_static_transform_name): Remove.
7445 (sparc32_sol2_init_abi): Call sol2_init_abi.
7446 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7447 set_gdbarch_static_transform_name,
7448 set_gdbarch_skip_solib_resolver,
7449 set_gdbarch_core_pid_to_str.
7450 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7451 (sparc_sol2_static_transform_name): Remove
7452 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7453 call sol2_sigtramp_p.
7454 (sparc64_sol2_init_abi): Call sol2_init_abi.
7455 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7456 set_gdbarch_static_transform_name,
7457 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7458
a8654e7d
PW
74592020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7460
7461 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7462 * exec.c (validate_exec_file): If from_tty, set both
7463 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7464 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7465 and from_tty, unconditionally ask a confirmation.
7466
caa7fd04
AB
74672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7468
7469 * target-descriptions.c (tdesc_architecture_name): Protect against
7470 NULL pointer dereference.
7471 (maint_print_xml_tdesc_cmd): New function.
7472 (_initialize_target_descriptions): Register new 'maint print
7473 xml-tdesc' command and give it the filename completer.
7474 * NEWS: Mention new 'maint print xml-tdesc' command.
7475
fbf42f4e
AB
74762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7477
7478 * target-descriptions.c (class tdesc_compatible_info): New class.
7479 (struct target_desc): Change type of compatible vector.
7480 (tdesc_compatible_p): Update for change in type of
7481 target_desc::compatible.
7482 (tdesc_compatible_info_list): New function.
7483 (tdesc_compatible_info_arch_name): New function.
7484 (tdesc_add_compatible): Update for change in type of
7485 target_desc::compatible.
7486 (print_c_tdesc::visit_pre): Likewise.
7487
20821f4e
AB
74882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7489
7490 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7491 whitespace to underscore.
7492 (maint_print_c_tdesc_cmd): Use fake filename for target
7493 descriptions that came from the target.
7494 (_initialize_target_descriptions): Add filename command completion
7495 for 'maint print c-tdesc'.
7496
1fb5ee62
SM
74972020-06-23 Simon Marchi <simon.marchi@efficios.com>
7498
7499 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7500 lines.
7501
fc3ecb3e
SM
75022020-06-23 Simon Marchi <simon.marchi@efficios.com>
7503
7504 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7505 lines.
7506 (dwarf2_find_location_expression): Likewise.
7507 (call_site_parameter_matches): Likewise.
7508 (dwarf2_compile_expr_to_ax): Likewise.
7509 (disassemble_dwarf_expression): Likewise.
7510 (loclist_describe_location): Likewise.
7511
236ef034
PA
75122020-06-23 Pedro Alves <palves@redhat.com>
7513
7514 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7515 progspace-and-thread.h. Include scoped-mock-context.h instead.
7516 (register_to_value_test): Use scoped_mock_context.
7517 * regcache.c: Include "scoped-mock-context.h".
7518 (cooked_read_test): Don't error out if a target is already pushed.
7519 Use scoped_mock_context. Adjust.
7520 * scoped-mock-context.h: New file.
7521
39e7ecca
AB
75222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7523
7524 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7525 initializer.
7526 (ada_language::is_string_type_p): New member function.
7527 * c-lang.c (c_language_data): Delete la_is_string_type_p
7528 initializer.
7529 (cplus_language_data): Likewise.
7530 (asm_language_data): Likewise.
7531 (minimal_language_data): Likewise.
7532 * d-lang.c (d_language_data): Likewise.
7533 * f-lang.c (f_is_string_type_p): Delete function, implementation
7534 moved to f_language::is_string_type_p.
7535 (f_language_data): Delete la_is_string_type_p initializer.
7536 (f_language::is_string_type_p): New member function,
7537 implementation from f_is_string_type_p.
7538 * go-lang.c (go_is_string_type_p): Delete function, implementation
7539 moved to go_language::is_string_type_p.
7540 (go_language_data): Delete la_is_string_type_p initializer.
7541 (go_language::is_string_type_p): New member function,
7542 implementation from go_is_string_type_p.
7543 * language.c (language_defn::is_string_type_p): Define new member
7544 function.
7545 (default_is_string_type_p): Make static, add comment copied from
7546 header file.
7547 (unknown_language_data): Delete la_is_string_type_p initializer.
7548 (unknown_language::is_string_type_p): New member function.
7549 (auto_language_data): Delete la_is_string_type_p initializer.
7550 (auto_language::is_string_type_p): New member function.
7551 * language.h (language_data): Delete la_is_string_type_p field.
7552 (language_defn::is_string_type_p): Declare new function.
7553 (default_is_string_type_p): Delete desclaration, move comment to
7554 definition.
7555 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7556 moved to m2_language::is_string_type_p.
7557 (m2_language_data): Delete la_is_string_type_p initializer.
7558 (m2_language::is_string_type_p): New member function,
7559 implementation from m2_is_string_type_p.
7560 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7561 initializer.
7562 * opencl-lang.c (opencl_language_data): Likewise.
7563 * p-lang.c (pascal_is_string_type_p): Delete function,
7564 implementation moved to pascal_language::is_string_type_p.
7565 (pascal_language_data): Delete la_is_string_type_p initializer.
7566 (pascal_language::is_string_type_p): New member function,
7567 implementation from pascal_is_string_type_p.
7568 * rust-lang.c (rust_is_string_type_p): Delete function,
7569 implementation moved to rust_language::is_string_type_p.
7570 (rust_language_data): Delete la_is_string_type_p initializer.
7571 (rust_language::is_string_type_p): New member function,
7572 implementation from rust_is_string_type_p.
7573 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7574 is_string_type_p.
7575
4ffc13fb
AB
75762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7577
7578 * ada-lang.c (ada_language_data): Delete la_print_typedef
7579 initializer.
7580 (ada_language::print_typedef): New member function.
7581 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7582 (cplus_language_data): Likewise.
7583 (asm_language_data): Likewise.
7584 (minimal_language_data): Likewise.
7585 * d-lang.c (d_language_data): Likewise.
7586 * f-lang.c (f_language_data): Likewise.
7587 (f_language::print_typedef): New member function.
7588 * go-lang.c (go_language_data): Delete la_print_typedef
7589 initializer.
7590 * language.c (language_defn::print_typedef): Define member
7591 function.
7592 (unknown_language_data): Delete la_print_typedef initializer.
7593 (unknown_language::print_typedef): New member function.
7594 (auto_language_data): Delete la_print_typedef initializer.
7595 (auto_language::print_typedef): New member function.
7596 * language.h (language_data): Delete la_print_typedef field.
7597 (language_defn::print_typedef): Declare new member function.
7598 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7599 (default_print_typedef): Delete declaration.
7600 * m2-lang.c (m2_language_data): Delete la_print_typedef
7601 initializer.
7602 (m2_language::print_typedef): New member function.
7603 * objc-lang.c (objc_language_data): Delete la_print_typedef
7604 initializer.
7605 * opencl-lang.c (opencl_language_data): Likewise.
7606 * p-lang.c (pascal_language_data): Likewise.
7607 (pascal_language::print_typedef): New member function.
7608 * rust-lang.c (rust_print_typedef): Delete function,
7609 implementation moved to rust_language::print_typedef.
7610 (rust_language): Delete la_print_typedef initializer.
7611 (rust_language::print_typedef): New member function,
7612 implementation from rust_print_typedef.
7613 * typeprint.c (default_print_typedef): Delete.
7614
d711ee67
AB
76152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7616
7617 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7618 (ada_language::printstr): New member function.
7619 * c-lang.c (c_language_data): Delete la_printstr initializer.
7620 (cplus_language_data): Likewise.
7621 (asm_language_data): Likewise.
7622 (minimal_language_data): Likewise.
7623 * d-lang.c (d_language_data): Likewise.
7624 * f-lang.c (f_printstr): Rename to f_language::printstr.
7625 (f_language_data): Delete la_printstr initializer.
7626 (f_language::printstr): New member function, implementation from
7627 f_printstr.
7628 * go-lang.c (go_language_data): Delete la_printstr initializer.
7629 * language.c (language_defn::printstr): Define new member
7630 function.
7631 (unk_lang_printstr): Delete.
7632 (unknown_language_data): Delete la_printstr initializer.
7633 (unknown_language::printstr): New member function.
7634 (auto_language_data): Delete la_printstr initializer.
7635 (auto_language::printstr): New member function.
7636 * language.h (language_data): Delete la_printstr field.
7637 (language_defn::printstr): Declare new member function.
7638 (LA_PRINT_STRING): Update call to printstr.
7639 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7640 (m2_language_data): Delete la_printstr initializer.
7641 (m2_language::printstr): New member function, implementation from
7642 m2_printstr.
7643 * objc-lang.c (objc_language_data): Delete la_printstr
7644 initializer.
7645 * opencl-lang.c (opencl_language_data): Likewise.
7646 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7647 (pascal_language_data): Delete la_printstr initializer.
7648 (pascal_language::printstr): New member function, implementation
7649 from pascal_printstr.
7650 * p-lang.h (pascal_printstr): Delete declaration.
7651 * rust-lang.c (rust_printstr): Update header comment.
7652 (rust_language_data): Delete la_printstr initializer.
7653 (rust_language::printstr): New member function.
7654
52b50f2c
AB
76552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7656
7657 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7658 (ada_language::printchar): New member function.
7659 * c-lang.c (c_language_data): Delete la_printchar initializer.
7660 (cplus_language_data): Likewise.
7661 (asm_language_data): Likewise.
7662 (minimal_language_data): Likewise.
7663 * d-lang.c (d_language_data): Likewise.
7664 * f-lang.c (f_printchar): Rename to f_language::printchar.
7665 (f_language_data): Delete la_printchar initializer.
7666 (f_language::printchar): New member function, implementation from
7667 f_printchar.
7668 * go-lang.c (go_language_data): Delete la_printchar initializer.
7669 * language.c (unk_lang_printchar): Delete.
7670 (language_defn::printchar): Define new member function.
7671 (unknown_language_data): Delete la_printchar initializer.
7672 (unknown_language::printchar): New member function.
7673 (auto_language_data): Delete la_printchar initializer.
7674 (auto_language::printchar): New member function.
7675 * language.h (language_data): Delete la_printchar field.
7676 (language_defn::printchar): Declare new member function.
7677 (LA_PRINT_CHAR): Update call to printchar.
7678 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7679 (m2_language::printchar): New member function.
7680 * objc-lang.c (objc_language_data): Delete la_printchar
7681 initializer.
7682 * opencl-lang.c (opencl_language_data): Likewise.
7683 * p-lang.c (pascal_language_data): Delete la_printchar
7684 initializer.
7685 (pascal_language::printchar): New member function.
7686 * rust-lang.c (rust_printchar): Rename to
7687 rust_language::printchar.
7688 (rust_language_data): Delete la_printchar initializer.
7689 (rust_language::printchar): New member function, implementation
7690 from rust_printchar.
7691
ec8cec5b
AB
76922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7693
7694 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7695 (ada_language_data): Delete la_emitchar initializer.
7696 (ada_language::emitchar): New member function, implementation from
7697 emit_char.
7698 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7699 (cplus_language_data): Likewise.
7700 (asm_language_data): Likewise.
7701 (minimal_language_data): Likewise.
7702 * d-lang.c (d_language_data): Likewise.
7703 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7704 (f_language_data): Delete la_emitchar initializer.
7705 (f_language::emitchar): New member function, implementation from
7706 f_emit_char.
7707 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7708 * language.c (unk_lang_emit_char): Delete.
7709 (language_defn::emitchar): New member function definition.
7710 (unknown_language_data): Delete la_emitchar initializer.
7711 (unknown_language::emitchar): New member function.
7712 (auto_language_data): Delete la_emitchar initializer.
7713 (auto_language::emitchar): New member function.
7714 * language.h (language_data): Delete la_emitchar field.
7715 (language_defn::emitchar): New member field declaration.
7716 (LA_EMIT_CHAR): Update call to emitchar.
7717 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7718 (m2_language_data): Delete la_emitchar initializer.
7719 (m2_language::emitchar): New member function, implementation from
7720 m2_emit_char.
7721 * objc-lang.c (objc_language_data): Delete la_emitchar
7722 initializer.
7723 * opencl-lang.c (opencl_language_data): Likewise.
7724 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7725 (pascal_language_data): Delete la_emitchar initializer.
7726 (pascal_language::emitchar): New member function, implementation
7727 from pascal_emit_char.
7728 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7729 (rust_language_data): Delete la_emitchar initializer.
7730 (rust_language::emitchar): New member function, implementation
7731 from rust_emitchar.
7732
1bf9c363
AB
77332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7734
7735 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7736 (ada_language_data): Delete la_post_parser initializer.
7737 (ada_language::post_parser): New member function.
7738 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7739 (cplus_language_data): Likewise.
7740 (asm_language_data): Likewise.
7741 (minimal_language_data): Likewise.
7742 * d-lang.c (d_language_data): Likewise.
7743 * f-lang.c (f_language_data): Likewise.
7744 * go-lang.c (go_language_data): Likewise.
7745 * language.c (unknown_language_data): Likewise.
7746 (auto_language_data): Likewise.
7747 * language.h (language_data): Delete la_post_parser field.
7748 (language_defn::post_parser): New member function.
7749 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7750 * objc-lang.c (objc_language_data): Likewise.
7751 * opencl-lang.c (opencl_language_data): Likewise.
7752 * p-lang.c (pascal_language_data): Likewise.
7753 * parse.c (parse_exp_in_context): Update call to post_parser.
7754 (null_post_parser): Delete definition.
7755 * parser-defs.h (null_post_parser): Delete declaration.
7756 * rust-lang.c (rust_language_data): Delete la_post_parser
7757 initializer.
7758
87afa652
AB
77592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7760
7761 * ada-lang.c (parse): Rename to ada_language::parser.
7762 (ada_language_data): Delete la_parser initializer.
7763 (ada_language::parser): New member function, implementation from
7764 parse.
7765 * c-lang.c (c_language_data): Delete la_parser initializer.
7766 (cplus_language_data): Likewise.
7767 (asm_language_data): Likewise.
7768 (minimal_language_data): Likewise.
7769 * d-lang.c (d_language_data): Likewise.
7770 (d_language::parser): New member function.
7771 * f-lang.c (f_language_data): Delete la_parser initializer.
7772 (f_language::parser): New member function.
7773 * go-lang.c (go_language_data): Delete la_parser initializer.
7774 (go_language::parser): New member function.
7775 * language.c (unk_lang_parser): Delete.
7776 (language_defn::parser): Define new member function.
7777 (unknown_language_data): Delete la_parser initializer.
7778 (unknown_language::parser): New member function.
7779 (auto_language_data): Delete la_parser initializer.
7780 (auto_language::parser): New member function.
7781 * language.h (language_data): Delete la_parser field.
7782 (language_defn::parser): Declare new member function.
7783 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7784 (m2_language::parser): New member function.
7785 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7786 * opencl-lang.c (opencl_language_data): Likewise.
7787 * p-lang.c (pascal_language_data): Likewise.
7788 (pascal_language::parser): New member function.
7789 * parse.c (parse_exp_in_context): Update call to parser.
7790 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7791 (rust_language::parser): New member function.
7792
37825800
AB
77932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7794
7795 * top.c (print_gdb_configuration): Print --with-python-libdir
7796 configuration value.
7797
5b860c93
PW
77982020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7799
7800 * NEWS: Mention change to the alias command.
7801
cf00cd6f
PW
78022020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7803
7804 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7805 (alias_command_completer)
7806 (make_alias_options_def_group): New functions.
7807 (alias_opts, alias_option_defs): New struct and array.
7808 (alias_usage_error): Update usage.
7809 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7810 Use option framework.
7811 (_initialize_cli_cmds): Update alias command help.
7812 Update aliases command help.
7813 (show_user):
7814 Add NULL for new default_args lookup_cmd argument.
7815 (valid_command_p): Rename to validate_aliased_command.
7816 Add NULL for new default_args lookup_cmd argument. Verify that the
7817 aliased_command has no default args.
7818 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7819 (lookup_cmd_1, lookup_cmd): New argument default_args.
7820 (add_alias_cmd):
7821 Add NULL for new default_args lookup_cmd argument.
7822 (print_help_for_command): Show default args under the layout
7823 alias some_alias = some_aliased_cmd some_alias_default_arg.
7824 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7825 xfree default_args in destructor.
7826 * cli/cli-script.c (process_next_line, do_define_command):
7827 Add NULL for new default_args lookup_cmd argument.
7828 * command.h: Declare new default_args argument in lookup_cmd
7829 and lookup_cmd_1.
7830 * completer.c (complete_line_internal_1):
7831 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7832 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7833 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7834 Likewise.
7835 * infcmd.c (_initialize_infcmd): Likewise.
7836 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7837 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7838 * python/py-param.c (add_setshow_generic): Likewise.
7839 * remote.c (_initialize_remote): Likewise.
7840 * top.c (execute_command): Prepend default_args if command has some.
7841 (set_verbose):
7842 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7843 * tracepoint.c (validate_actionline, encode_actions_1):
7844 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7845
bd920864
TBA
78462020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7847
7848 * jit.c (jit_read_descriptor): Use bool as the return type.
7849 (jit_breakpoint_re_set_internal): Use bool as the return type.
7850 Invert the return value logic; return true if the jit breakpoint
7851 has been successfully initialized.
7852 (jit_inferior_init): Update the call to
7853 jit_breakpoint_re_set_internal.
7854
f8098322
PA
78552020-06-22 Pedro Alves <palves@redhat.com>
7856
7857 PR gdb/25939
7858 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7859 Use the current inferior instead. Don't return
7860 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7861 wait again.
7862 * sol-thread.c (sol_thread_target::wait): Don't reference
7863 inferior_ptid.
7864 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7865 (sol_update_thread_list_callback): Use the current inferior's pid
7866 instead of inferior_ptid.
7867
196535a6
RO
78682020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7869
7870 * procfs.c: Cleanup many comments.
7871
7872 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7873 (AFTER_WATCHFLAG): Replace by value.
7874
7875 (MAIN_PROC_NAME_FORMAT): Inline ...
7876 (create_procinfo): ... here.
7877
7878 (procfs_debug_inferior): Remove SYS_exec handling.
7879 (syscall_is_exec): Likewise.
7880 (procfs_set_exec_trap): Likewise.
7881
7882 (syscall_is_lwp_exit): Inline in callers.
7883 (syscall_is_exit): Likewise.
7884 (syscall_is_exec): Likewise.
7885 (syscall_is_lwp_create): Likewise.
7886
7887 (invalidate_cache): Remove #if 0 code.
7888
7889 (make_signal_thread_runnable): Remove.
7890 (procfs_target::resume): Remove #if 0 code.
7891
cf6f3e86
RO
78922020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7893
7894 PR gdb/25939
7895 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7896 call ...
7897 (procfs_target::create_inferior): ... here.
7898
48e9cc84
PW
78992020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7900
7901 * exec.c (validate_exec_file): Ensure the build-id is up to
7902 date by calling reopen_exec_file (that checks file timestamp
7903 to decide to re-read the file).
7904
3922b302
PA
79052020-06-18 Pedro Alves <palves@redhat.com>
7906
7907 PR gdb/25412
7908 * gdbthread.h (delete_thread, delete_thread_silent)
7909 (find_thread_ptid): Update comments.
7910 * thread.c (current_thread_): New global.
7911 (is_current_thread): Move higher, and reimplement.
7912 (inferior_thread): Reimplement.
7913 (set_thread_exited): Use bool. Add assertions.
7914 (add_thread_silent): Simplify thread-reuse handling by always
7915 calling delete_thread.
7916 (delete_thread): Remove intro comment.
7917 (find_thread_ptid): Skip exited threads.
7918 (switch_to_thread_no_regs): Write to current_thread_.
7919 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7920 INFERIOR_PTID. Clear current_thread_.
7921
6dbdab44
PA
79222020-06-18 Pedro Alves <palves@redhat.com>
7923
7924 * aix-thread.c (pd_update): Use switch_to_thread.
7925
2da4b788
PA
79262020-06-18 Pedro Alves <palves@redhat.com>
7927
7928 * ravenscar-thread.c (ravenscar_thread_target): Update.
7929 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7930 (ravenscar_thread_target::add_active_thread): ... this. Don't
7931 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7932 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7933
50838d1b
PA
79342020-06-18 Pedro Alves <palves@redhat.com>
7935
7936 * nat/windows-nat.c (current_windows_thread): Remove.
7937 * nat/windows-nat.h (current_windows_thread): Remove.
7938 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7939 Adjust.
7940 (display_selectors): Adjust to fetch the current
7941 windows_thread_info based on inferior_ptid.
7942 (fake_create_process): No longer write to current_windows_thread.
7943 (windows_nat_target::get_windows_debug_event):
7944 Don't set inferior_ptid or current_windows_thread.
7945 (windows_nat_target::wait): Adjust to not rely on
7946 current_windows_thread.
7947 (do_initial_windows_stuff): Now a method of windows_nat_target.
7948 Switch to the last_ptid thread.
7949 (windows_nat_target::attach): Adjust.
7950 (windows_nat_target::detach): Use switch_to_no_thread instead of
7951 writing to inferior_ptid directly.
7952 (windows_nat_target::create_inferior): Adjust.
7953
31ce04e9
PA
79542020-06-18 Pedro Alves <palves@redhat.com>
7955
7956 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7957
1ee1a363
PA
79582020-06-18 Pedro Alves <palves@redhat.com>
7959
7960 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7961 after creating it, instead of writing to inferior_ptid. Don't
7962 write to inferior_ptid.
7963
6d350754
PA
79642020-06-18 Pedro Alves <palves@redhat.com>
7965
7966 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7967
5d971d48
PA
79682020-06-18 Pedro Alves <palves@redhat.com>
7969
7970 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7971 it, instead of writing to inferior_ptid.
7972
86e57d1b
PA
79732020-06-18 Pedro Alves <palves@redhat.com>
7974
7975 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7976 to inferior_ptid.
7977
f2e1c129
PA
79782020-06-18 Pedro Alves <palves@redhat.com>
7979
7980 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7981 instead of writing to inferior_ptid directly.
7982
60db1b85
PA
79832020-06-18 Pedro Alves <palves@redhat.com>
7984
7985 * corelow.c (core_target::close): Use switch_to_no_thread instead
7986 of writing to inferior_ptid directly.
7987 (add_to_thread_list, core_target_open): Use switch_to_thread
7988 instead of writing to inferior_ptid directly.
7989
fe7d6a8d
PA
79902020-06-18 Pedro Alves <palves@redhat.com>
7991
7992 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7993 inferior_ptid.
7994 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7995 inferior_ptid.
7996 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7997 inferior_ptid directly.
7998 (darwin_nat_target::init_thread_list): Switch to thread, instead
7999 of writing to inferior_ptid.
8000 (darwin_nat_target::attach): Don't write to inferior_ptid.
8001 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8002
975f8708
PA
80032020-06-18 Pedro Alves <palves@redhat.com>
8004
8005 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8006 thread.
8007 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8008 Instead use switch_to_thread.
8009 (gnu_nat_target::detach): Use switch_to_no_thread
8010 instead of writing to inferior_ptid directly. Used passed-in
8011 inferior instead of looking up the inferior by pid.
8012
1a204730
PA
80132020-06-18 Pedro Alves <palves@redhat.com>
8014
8015 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8016 inferior_ptid.
8017
ebe84f23
PA
80182020-06-18 Pedro Alves <palves@redhat.com>
8019
8020 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8021 inferior_ptid.
8022 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8023 thread.
8024 (nto_procfs_target::detach): Avoid referencing
8025 inferior_ptid. Use switch_to_no_thread instead of writing to
8026 inferior_ptid directly.
8027 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8028 instead of writing to inferior_ptid directly.
8029 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8030 to thread.
8031
191f02e5
PA
80322020-06-18 Pedro Alves <palves@redhat.com>
8033
8034 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8035 after creating it, instead of writing to inferior_ptid.
8036 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8037 to inferior_ptid directly.
8038 (gdbsim_target::wait): Don't write to inferior_ptid.
8039
0ac55310
PA
80402020-06-18 Pedro Alves <palves@redhat.com>
8041
8042 * remote.c (remote_target::remote_notice_new_inferior): Use
8043 switch_to_thread instead of writing to inferior_ptid directly.
8044 (remote_target::add_current_inferior_and_thread): Use
8045 switch_to_no_thread instead of writing to inferior_ptid directly.
8046 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8047 and switch_to_thread instead of using set_current_inferior or
8048 writing to inferior_ptid directly.
8049
5233f39b
PA
80502020-06-18 Pedro Alves <palves@redhat.com>
8051
8052 * tracectf.c (ctf_target_open): Switch to added thread instead of
8053 writing to inferior_ptid directly.
8054 (ctf_target::close): Use switch_to_no_thread instead of writing to
8055 inferior_ptid directly.
8056
087e161b
PA
80572020-06-18 Pedro Alves <palves@redhat.com>
8058
8059 * tracefile-tfile.c (tfile_target_open): Don't write to
8060 inferior_ptid directly, instead switch to added thread.
8061 (tfile_target::close): Use switch_to_no_thread instead of writing
8062 to inferior_ptid directly.
8063
7fb43e53
PA
80642020-06-18 Pedro Alves <palves@redhat.com>
8065
8066 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8067 (procfs_target::detach): Use switch_to_no_thread
8068 instead of writing to inferior_ptid directly.
8069 (do_attach): Change return type to void. Switch to the added
8070 thread.
8071 (procfs_target::create_inferior): Switch to the added thread.
8072 (procfs_do_thread_registers): Don't write to inferior_ptid.
8073
18493a00
PA
80742020-06-18 Pedro Alves <palves@redhat.com>
8075
8076 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8077 of writing to inferior_ptid.
8078 (scoped_restore_exited_inferior): Delete.
8079 (handle_vfork_child_exec_or_exit): Simplify using
8080 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8081 instead of writing to inferior_ptid.
8082 (THREAD_STOPPED_BY): Delete.
8083 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8084 (thread_stopped_by_hw_breakpoint): Delete.
8085 (save_waitstatus): Use
8086 scoped_restore_current_thread+switch_to_thread, and call
8087 target_stopped_by_watchpoint instead of
8088 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8089 instead of thread_stopped_by_sw_breakpoint, and
8090 target_stopped_by_hw_breakpoint instead of
8091 thread_stopped_by_hw_breakpoint.
8092 (handle_inferior_event)
8093 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8094 inferior_ptid directly, nor
8095 set_current_inferior/set_current_program_space. Use
8096 switch_to_thread / switch_to_inferior_no_thread instead.
8097
a0776b13
PA
80982020-06-18 Pedro Alves <palves@redhat.com>
8099
8100 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8101 instead of writing to inferior_ptid.
8102
6155c136
PA
81032020-06-18 Pedro Alves <palves@redhat.com>
8104
8105 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8106 added thread.
8107 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8108 to the added thread.
8109 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8110 instead of writing to inferior_ptid.
8111
c5316fc6
PA
81122020-06-18 Pedro Alves <palves@redhat.com>
8113
8114 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8115 (register_to_value_test): Mock a program_space too. Heap-allocate
8116 the address space. Don't write to inferior_ptid. Use
8117 switch_to_thread instead.
8118
8df01799
PA
81192020-06-18 Pedro Alves <palves@redhat.com>
8120
8121 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8122 Delete.
8123 (find_signalled_thread()): New, factored out from
8124 linux_make_corefile_notes and adjusted to handle exited threads.
8125 (linux_make_corefile_notes): Adjust to use the new
8126 find_signalled_thread.
8127
41792d68
PA
81282020-06-18 Pedro Alves <palves@redhat.com>
8129
8130 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8131 of saving/restoring inferior_ptid.
8132
612f258a
TT
81332020-06-17 Tom Tromey <tom@tromey.com>
8134
8135 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8136 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8137 declare.
8138 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8139
efb763a5
SM
81402020-06-15 Simon Marchi <simon.marchi@efficios.com>
8141
8142 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8143 of partial symtabs.
8144
2951f6c0
SM
81452020-06-17 Simon Marchi <simon.marchi@efficios.com>
8146
8147 * regformats/reg-arm.dat: Remove.
8148 * regformats/reg-bfin.dat: Remove.
8149 * regformats/reg-cris.dat: Remove.
8150 * regformats/reg-crisv32.dat: Remove.
8151 * regformats/reg-m32r.dat: Remove.
8152 * regformats/reg-tilegx.dat: Remove.
8153 * regformats/reg-tilegx32.dat: Remove.
8154
7d458ea5
SM
81552020-06-17 Simon Marchi <simon.marchi@efficios.com>
8156
8157 * features/Makefile (WHICH): Remove arm files.
8158 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8159 * regformats/arm/arm-with-neon.dat: Remove.
8160 * regformats/arm/arm-with-vfpv2.dat: Remove.
8161 * regformats/arm/arm-with-vfpv3.dat: Remove.
8162
3af96c0d
SM
81632020-06-17 Simon Marchi <simon.marchi@efficios.com>
8164
8165 * features/Makefile (XMLTOC): Remove rx.xml.
8166
b25e22fd
PA
81672020-06-17 Pedro Alves <palves@redhat.com>
8168
8169 * gdbthread.h (thread_control_state) <trap_expected> Update
8170 comments.
8171
a78a19b1
AB
81722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8173
8174 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8175 ada_language::lookup_symbol_nonlocal.
8176 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8177 (ada_language::lookup_symbol_nonlocal): New member function,
8178 implementation from ada_lookup_symbol_nonlocal.
8179 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8180 initializer.
8181 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8182 initializer.
8183 (cplus_language::lookup_symbol_nonlocal): New member function.
8184 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8185 (minimal_language_data) Likewise.
8186 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8187 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8188 initializer.
8189 (d_language::lookup_symbol_nonlocal): New member function.
8190 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8191 initializer.
8192 (f_language::lookup_symbol_nonlocal): New member function.
8193 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8194 initializer.
8195 * language.c (unknown_language_data): Likewise.
8196 (auto_language_data): Likewise.
8197 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8198 field.
8199 (language_defn::lookup_symbol_nonlocal): New member function.
8200 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8201 initializer.
8202 * objc-lang.c (objc_language_data): Likewise.
8203 * opencl-lang.c (opencl_language_data): Likewise.
8204 * p-lang.c (pascal_language_data): Likewise.
8205 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8206 rust_language::lookup_symbol_nonlocal.
8207 (rust_language_data): Delete la_lookup_symbol_nonlocal
8208 initializer.
8209 (rust_language::lookup_symbol_nonlocal): New member function,
8210 implementation from rust_lookup_symbol_nonlocal.
8211 * symtab.c (lookup_symbol_aux): Update call to
8212 lookup_symbol_nonlocal.
8213 (basic_lookup_symbol_nonlocal): Rename to...
8214 (language_defn::lookup_symbol_nonlocal): ...this, and update
8215 header comment. Remove language_defn parameter, and replace with
8216 uses of `this'.
8217 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8218
ebe2334e
AB
82192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8220
8221 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8222 initializer.
8223 (ada_language::value_print_inner): New member function.
8224 * c-lang.c (c_language_data): Delete la_value_print_inner
8225 initializer.
8226 (cplus_language_data): Likewise.
8227 (asm_language_data): Likewise.
8228 (minimal_language_data): Likewise.
8229 * d-lang.c (d_language_data): Likewise.
8230 (d_language::value_print_inner): New member function.
8231 * f-lang.c (f_language_data): Delete la_value_print_inner
8232 initializer.
8233 (f_language::value_print_inner): New member function.
8234 * f-lang.h (f_value_print_innner): Rename to...
8235 (f_value_print_inner): ...this (note spelling of 'inner').
8236 * f-valprint.c (f_value_print_innner): Rename to...
8237 (f_value_print_inner): ...this (note spelling of 'inner').
8238 * go-lang.c (go_language_data): Delete la_value_print_inner
8239 initializer.
8240 (go_language::value_print_inner): New member function.
8241 * language.c (language_defn::value_print_inner): Define new member
8242 function.
8243 (unk_lang_value_print_inner): Delete.
8244 (unknown_language_data): Delete la_value_print_inner initializer.
8245 (unknown_language::value_print_inner): New member function.
8246 (auto_language_data): Delete la_value_print_inner initializer.
8247 (auto_language::value_print_inner): New member function.
8248 * language.h (language_data): Delete la_value_print_inner field.
8249 (language_defn::value_print_inner): Delcare new member function.
8250 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8251 initializer.
8252 (m2_language::value_print_inner): New member function.
8253 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8254 initializer.
8255 * opencl-lang.c (opencl_language_data): Likewise.
8256 * p-lang.c (pascal_language_data): Likewise.
8257 (pascal_language::value_print_inner): New member function.
8258 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8259 initializer.
8260 (rust_language::value_print_inner): New member function.
8261 * valprint.c (do_val_print): Update call to value_print_inner.
8262
a1d1fa3e
AB
82632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8264
8265 * ada-lang.c (ada_language_data): Delete la_value_print
8266 initializer.
8267 (ada_language::value_print): New member function.
8268 * c-lang.c (c_language_data): Delete la_value_print initializer.
8269 (cplus_language_data): Likewise.
8270 (asm_language_data): Likewise.
8271 (minimal_language_data): Likewise.
8272 * d-lang.c (d_language_data): Likewise.
8273 * f-lang.c (f_language_data): Likewise.
8274 * go-lang.c (go_language_data): Likewise.
8275 * language.c (unk_lang_value_print): Delete.
8276 (language_defn::value_print): Define new member function.
8277 (unknown_language_data): Delete la_value_print initializer.
8278 (unknown_language::value_print): New member function.
8279 (auto_language_data): Delete la_value_print initializer.
8280 (auto_language::value_print): New member function.
8281 * language.h (language_data): Delete la_value_print field.
8282 (language_defn::value_print): Declare new member function.
8283 (LA_VALUE_PRINT): Update call to value_print.
8284 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8285 * objc-lang.c (objc_language_data): Likewise.
8286 * opencl-lang.c (opencl_language_data): Likewise.
8287 * p-lang.c (pascal_language_data): Likewise.
8288 (pascal_language::value_print): New member function.
8289 * rust-lang.c (rust_language_data): Delete la_value_print
8290 initializer.
8291
f16a9f57
AB
82922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8293
8294 * ada-lang.c (ada_watch_location_expression): Rename to
8295 ada_language::watch_location_expression.
8296 (ada_language_data): Delete la_watch_location_expression
8297 initializer.
8298 (ada_language::watch_location_expression): New member function,
8299 implementation from ada_watch_location_expression.
8300 * breakpoint.c (watch_command_1): Update call to
8301 watch_location_expression.
8302 * c-lang.c (c_watch_location_expression): Rename to
8303 language_defn::watch_location_expression.
8304 (c_language_data): Delete la_watch_location_expression
8305 initializer.
8306 (cplus_language_data): Likewise.
8307 (asm_language_data): Likewise.
8308 (minimal_language_data): Likewise.
8309 * c-lang.h (c_watch_location_expression): Delete declaration.
8310 * d-lang.c (d_language_data): Delete la_watch_location_expression
8311 initializer.
8312 * f-lang.c (f_language_data): Likewise.
8313 * go-lang.c (go_language_data): Likewise.
8314 * language.c (language_defn::watch_location_expression): Member
8315 function implementation from c_watch_location_expression.
8316 (unknown_language_data): Delete la_watch_location_expression
8317 initializer.
8318 (auto_language_data): Likewise.
8319 * language.h (language_data): Delete la_watch_location_expression
8320 field.
8321 (language_defn::watch_location_expression): Declare new member
8322 function.
8323 * m2-lang.c (m2_language_data): Delete
8324 la_watch_location_expression initializer.
8325 * objc-lang.c (objc_language_data): Likewise.
8326 * opencl-lang.c (opencl_language_data): Likewise.
8327 * p-lang.c (pascal_language_data): Likewise.
8328 * rust-lang.c (rust_watch_location_expression): Rename to
8329 rust_language::watch_location_expression.
8330 (rust_language_data): Delete la_watch_location_expression
8331 initializer.
8332 (rust_language::watch_location_expression): New member function,
8333 implementation from rust_watch_location_expression.
8334
7e56227d
AB
83352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8336
8337 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8338 ada_language::collect_symbol_completion_matches.
8339 (ada_language_data): Delete la_collect_symbol_completion_matches
8340 initializer.
8341 (ada_language::collect_symbol_completion_matches): New member
8342 function, implementation from
8343 ada_collect_symbol_completion_matches.
8344 * c-lang.c (c_language_data): Delete
8345 la_collect_symbol_completion_matches initializer.
8346 (cplus_language_data): Likewise.
8347 (asm_language_data): Likewise.
8348 (minimal_language_data): Likewise.
8349 * d-lang.c (d_language_data): Likewise.
8350 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8351 f_language::collect_symbol_completion_matches.
8352 (f_language_data): Delete la_collect_symbol_completion_matches
8353 initializer.
8354 (f_language::collect_symbol_completion_matches) New member
8355 function, implementation from f_collect_symbol_completion_matches.
8356 * go-lang.c (go_language_data): Delete
8357 la_collect_symbol_completion_matches initializer.
8358 * language.c (unknown_language_data): Likewise.
8359 (auto_language_data): Likewise.
8360 * language.h (language_data): Delete
8361 la_collect_symbol_completion_matches field.
8362 (language_defn::collect_symbol_completion_matches): New member
8363 function.
8364 * m2-lang.c (m2_language_data): Delete
8365 la_collect_symbol_completion_matches initializer.
8366 * objc-lang.c (objc_language_data): Likewise.
8367 * opencl-lang.c (opencl_language_data): Likewise.
8368 * p-lang.c (pascal_language_data): Likewise.
8369 * rust-lang.c (rust_language_data): Likewise.
8370 * symtab.c (default_collect_symbol_completion_matches): Delete.
8371 (collect_symbol_completion_matches): Update call to
8372 collect_symbol_completion_matches.
8373 (collect_symbol_completion_matches_type): Likewise.
8374 * symtab.h (default_collect_symbol_completion_matches): Delete
8375 declaration.
8376
53fc67f8
AB
83772020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8378
8379 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8380 (ada_language_data): Delete la_word_break_characters initializer.
8381 (ada_language::word_break_characters): New member function.
8382 * c-lang.c (c_language_data): Delete la_word_break_characters
8383 initializer.
8384 (cplus_language_data): Likewise.
8385 (asm_language_data): Likewise.
8386 (minimal_language_data): Likewise.
8387 * completer.c: Update global comment.
8388 (advance_to_expression_complete_word_point): Update call to
8389 word_break_characters.
8390 (complete_files_symbols): Likewise.
8391 (complete_line_internal_1): Likewise.
8392 (default_completer_handle_brkchars): Likewise.
8393 (skip_quoted_chars): Likewise.
8394 * d-lang.c (d_language_data): Delete la_word_break_characters
8395 initializer.
8396 * f-lang.c (f_word_break_characters): Delete.
8397 (f_language_data): Delete la_word_break_characters initializer.
8398 (f_language::word_break_characters): New member function.
8399 * go-lang.c (go_language_data): Delete la_word_break_characters
8400 initializer.
8401 * language.c (unknown_language_data): Likewise.
8402 (auto_language_data): Likewise.
8403 * language.h (default_word_break_characters): Move declaration to
8404 earlier in the file.
8405 (language_data): Delete la_word_break_characters field.
8406 (language_defn::word_break_characters): New member function.
8407 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8408 initializer.
8409 * objc-lang.c (objc_language_data): Likewise.
8410 * opencl-lang.c (opencl_language_data): Likewise.
8411 * p-lang.c (pascal_language_data): Likewise.
8412 * rust-lang.c (rust_language_data): Likewise.
8413
c9debfb9
AB
84142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8415
8416 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8417 (ada_language_data): Delete la_get_symbol_name_matcher
8418 initializer.
8419 (language_defn::get_symbol_name_matcher_inner): New member
8420 function.
8421 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8422 initializer.
8423 (cplus_language_data): Likewise.
8424 (cplus_language::get_symbol_name_matcher_inner): New member
8425 function.
8426 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8427 (minimal_language_data): Likewise.
8428 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8429 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8430 initializer.
8431 * dictionary.c (iter_match_first_hashed): Update call to
8432 get_symbol_name_matcher.
8433 (iter_match_next_hashed): Likewise.
8434 (iter_match_next_linear): Likewise.
8435 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8436 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8437 initializer.
8438 (f_language::get_symbol_name_matcher_inner): New member function.
8439 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8440 initializer.
8441 * language.c (default_symbol_name_matcher): Update header comment,
8442 make static.
8443 (language_defn::get_symbol_name_matcher): New definition.
8444 (language_defn::get_symbol_name_matcher_inner): Likewise.
8445 (get_symbol_name_matcher): Delete.
8446 (unknown_language_data): Delete la_get_symbol_name_matcher
8447 initializer.
8448 (auto_language_data): Likewise.
8449 * language.h (language_data): Delete la_get_symbol_name_matcher
8450 field.
8451 (language_defn::get_symbol_name_matcher): New member function.
8452 (language_defn::get_symbol_name_matcher_inner): Likewise.
8453 (default_symbol_name_matcher): Delete declaration.
8454 * linespec.c (find_methods): Update call to
8455 get_symbol_name_matcher.
8456 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8457 initializer.
8458 * minsyms.c (lookup_minimal_symbol): Update call to
8459 get_symbol_name_matcher.
8460 (iterate_over_minimal_symbols): Likewise.
8461 * objc-lang.c (objc_language_data): Delete
8462 la_get_symbol_name_matcher initializer.
8463 * opencl-lang.c (opencl_language_data): Likewise.
8464 * p-lang.c (pascal_language_data): Likewise.
8465 * psymtab.c (psymbol_name_matches): Update call to
8466 get_symbol_name_matcher.
8467 * rust-lang.c (rust_language_data): Delete
8468 la_get_symbol_name_matcher initializer.
8469 * symtab.c (symbol_matches_search_name): Update call to
8470 get_symbol_name_matcher.
8471 (compare_symbol_name): Likewise.
8472
9a49ad8c
AB
84732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8474
8475 * ada-lang.c (ada_language_data): Delete la_compute_program
8476 initializer.
8477 * c-lang.c (c_language_data): Likewise.
8478 (c_language::compute_program): New member function.
8479 (cplus_language_data): Delete la_compute_program initializer.
8480 (cplus_language::compute_program): New member function.
8481 (asm_language_data): Delete la_compute_program initializer.
8482 (minimal_language_data): Likewise.
8483 * c-lang.h (c_compute_program): Update comment.
8484 (cplus_compute_program): Likewise.
8485 * compile/compile-c-support.c (c_compute_program): Likewise.
8486 (cplus_compute_program): Likewise.
8487 * compile/compile.c (compile_to_object): Update call to
8488 la_compute_program.
8489 * d-lang.c (d_language_data): Delete la_compute_program
8490 initializer.
8491 * f-lang.c (f_language_data): Likewise.
8492 * go-lang.c (go_language_data): Likewise.
8493 * language.c (unknown_language_data): Likewise.
8494 (auto_language_data): Likewise.
8495 * language.h (language_data): Delete la_compute_program field.
8496 (language_defn::compute_program): New member function.
8497 * m2-lang.c (m2_language_data): Delete la_compute_program
8498 initializer.
8499 * objc-lang.c (objc_language_data): Likewise.
8500 * opencl-lang.c (opencl_language_data): Likewise.
8501 * p-lang.c (pascal_language_data): Likewise.
8502 * rust-lang.c (rust_language_data): Likewise.
8503
eff93b4d
AB
85042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8505
8506 * ada-lang.c (ada_language_data) Delete
8507 la_class_name_from_physname initializer.
8508 * c-lang.c (c_language_data): Likewise.
8509 (cplus_language_data): Likewise.
8510 (cplus_language::class_name_from_physname): New member function.
8511 (asm_language_data): Delete la_class_name_from_physname
8512 initializer.
8513 (minimal_language_data): Likewise.
8514 * d-lang.c (d_language_data): Likewise.
8515 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8516 method on language_defn class.
8517 (guess_full_die_structure_name): Likewise.
8518 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8519 initializer.
8520 * go-lang.c (go_language_data): Likewise.
8521 * language.c (language_class_name_from_physname): Delete.
8522 (unk_lang_class_name): Delete.
8523 (unknown_language_data): Delete la_class_name_from_physname
8524 initializer.
8525 (auto_language_data): Likewise.
8526 * language.h (language_data): Delete la_class_name_from_physname
8527 field.
8528 (language_defn::class_name_from_physname): New function.
8529 (language_class_name_from_physname): Delete declaration.
8530 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8531 initializer.
8532 * objc-lang.c (objc_language_data): Likewise.
8533 * opencl-lang.c (opencl_language_data): Likewise.
8534 * p-lang.c (pascal_language_data): Likewise.
8535 * rust-lang.c (rust_language_data): Likewise.
8536
de543742
TT
85372020-06-16 Tom Tromey <tom@tromey.com>
8538
8539 * tui/tui-data.h (STATUS_NAME): New macro.
8540 * tui/tui-layout.c (tui_remove_some_windows)
8541 (initialize_known_windows, tui_register_window)
8542 (tui_layout_split::remove_windows, initialize_layouts)
8543 (tui_new_layout_command): Don't use hard-coded window names.
8544
a350efd4
TT
85452020-06-16 Tom Tromey <tom@tromey.com>
8546
8547 PR tui/25348:
8548 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8549 tui_initialize_readline. Only run once. Call rl_initialize.
8550 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8551 tui_initialize_readline.
8552 * tui/tui-io.c (tui_setup_io): Call
8553 tui_ensure_readline_initialized.
8554 * tui/tui-interp.c (tui_interp::init): Update.
8555
39ec0490
TT
85562020-06-16 Tom Tromey <tom@tromey.com>
8557
8558 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8559 Also preserve the status window.
8560
d2d1ea20
TT
85612020-06-16 Tom Tromey <tom@tromey.com>
8562
8563 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8564 where m_window==nullptr.
8565
66920317
TT
85662020-06-15 Tom Tromey <tromey@adacore.com>
8567
8568 * windows-nat.c (windows_nat::handle_output_debug_string):
8569 Update.
8570 (windows_nat::handle_ms_vc_exception): Update.
8571 * target.h (target_read_string): Change API.
8572 * target.c (target_read_string): Change API.
8573 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8574 Update.
8575 * solib-frv.c (frv_current_sos): Update.
8576 * solib-dsbt.c (dsbt_current_sos): Update.
8577 * solib-darwin.c (darwin_current_sos): Update.
8578 * linux-thread-db.c (inferior_has_bug): Update.
8579 * expprint.c (print_subexp_standard): Update.
8580 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8581 (ada_exception_message_1): Update.
8582
a5d871dd
TT
85832020-06-15 Tom Tromey <tromey@adacore.com>
8584
8585 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8586
670e35fa
TT
85872020-06-15 Tom Tromey <tromey@adacore.com>
8588
8589 * valprint.c (read_string): Update comment.
8590 * target.c (MIN): Remove.
8591 (target_read_string): Rewrite.
8592
f5272a3b
TT
85932020-06-15 Tom Tromey <tromey@adacore.com>
8594
8595 * corefile.c (read_memory_string): Remove.
8596 * ada-valprint.c (ada_value_print_ptr): Update.
8597 * ada-lang.h (ada_tag_name): Change return type.
8598 * ada-lang.c (type_from_tag): Update.
8599 (ada_tag_name_from_tsd): Change return type. Use
8600 target_read_string.
8601 (ada_tag_name): Likewise.
8602 * gdbcore.h (read_memory_string): Don't declare.
8603
2c074f49
HD
86042020-06-14 Hannes Domani <ssbssa@yahoo.de>
8605
8606 * symtab.c (rbreak_command): Ignore Windows drive colon.
8607
6a17d503
SM
86082020-06-12 Simon Marchi <simon.marchi@efficios.com>
8609
8610 * NEWS: Mention removed GDBserver host support.
8611
453c733f
NC
86122020-06-12 Nelson Chu <nelson.chu@sifive.com>
8613
8614 * features/riscv/rebuild-csr-xml.sh: Updated.
8615
2b4e6a3f
TT
86162020-06-11 Tom Tromey <tom@tromey.com>
8617
8618 PR gdb/18318:
8619 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8620
4412332f
JG
86212020-06-09 Jonny Grant <jg@jguk.org>
86222020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8623
8624 * main.c (captured_main_1): Don't print new line after help.
8625 (print_gdb_help): add mailing list and IRC channel information
8626 to --help. Add new lines between items in the footer. Remove
8627 quotes around bug url.
8628
2f33032a
KS
86292020-06-11 Keith Seitz <keiths@redhat.com>
8630
8631 PR gdb/21356
8632 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8633 Resolve typedefs for type length calculations.
8634
7ab96794
TV
86352020-06-10 Tom de Vries <tdevries@suse.de>
8636
8637 PR ada/24713
8638 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8639 (write_psymbols): Enable .gdb_index for ada.
8640 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8641 ada.
8642
e5f3ece2
TV
86432020-06-10 Tom de Vries <tdevries@suse.de>
8644
8645 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8646 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8647 namei" instead of "const char *name" argument.
8648 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8649 dw2_symtab_iter_init.
8650
940da03e
SM
86512020-06-08 Simon Marchi <simon.marchi@efficios.com>
8652
8653 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8654 to use type::field and field::type instead.
8655
b6cdac4b
SM
86562020-06-08 Simon Marchi <simon.marchi@efficios.com>
8657
8658 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8659 to use field::type instead.
8660
5d14b6e5
SM
86612020-06-08 Simon Marchi <simon.marchi@efficios.com>
8662
8663 * gdbtypes.h (struct field) <type, set_type>: New methods.
8664 Rename `type` field to...
8665 <m_type>: ... this. Change references throughout to use type or
8666 set_type methods.
8667 (FIELD_TYPE): Use field::type. Change call sites that modify
8668 the field's type to use field::set_type instead.
8669
3d967001
SM
86702020-06-08 Simon Marchi <simon.marchi@efficios.com>
8671
8672 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8673 to use type::index_type instead.
8674
262abc0d
SM
86752020-06-08 Simon Marchi <simon.marchi@efficios.com>
8676
8677 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8678 methods.
8679 (TYPE_INDEX_TYPE): Use type::index_type.
8680 * gdbtypes.c (create_array_type_with_stride): Likewise.
8681
82836c92
TT
86822020-06-07 Tom Tromey <tom@tromey.com>
8683
8684 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8685 parameter.
8686 (generic_value_print): Update.
8687
940dace9
AB
86882020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8689
8690 Revert commit 982a38f60b0.
8691 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8692
982a38f6
AB
86932020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8694
8695 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8696 avoid use after free.
8697
82f06518
TV
86982020-06-05 Tom de Vries <tdevries@suse.de>
8699
8700 * NEWS: Fix typos.
8701
f8c41851
SM
87022020-06-04 Simon Marchi <simon.marchi@efficios.com>
8703
8704 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8705 the per_bfd object.
8706 (dwarf2_read_debug_names): Likewise.
8707 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8708 object when re-using a per_bfd object with an index.
8709
f9b5d5ea
TV
87102020-06-03 Tom de Vries <tdevries@suse.de>
8711
8712 PR symtab/26046
8713 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8714 children for C++.
8715 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8716 DW_TAG_subprogram.
8717
f6eee2d0
AB
87182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8719
8720 * ada-lang.c (ada_language_data): Delete skip_trampoline
8721 initializer.
8722 * c-lang.c (c_language_data): Likewise.
8723 (cplus_language_data): Likewise.
8724 (cplus_language::skip_trampoline): New member function.
8725 (asm_language_data): Delete skip_trampoline initializer.
8726 (minimal_language_data): Likewise.
8727 * d-lang.c (d_language_data): Likewise.
8728 * f-lang.c (f_language_data): Likewise.
8729 * go-lang.c (go_language_data): Likewise.
8730 * language.c (unk_lang_trampoline): Delete function.
8731 (skip_language_trampoline): Update.
8732 (unknown_language_data): Delete skip_trampoline initializer.
8733 (auto_language_data): Likewise.
8734 * language.h (language_data): Delete skip_trampoline field.
8735 (language_defn::skip_trampoline): New function.
8736 * m2-lang.c (m2_language_data): Delete skip_trampoline
8737 initializer.
8738 * objc-lang.c (objc_skip_trampoline): Delete function, move
8739 implementation to objc_language::skip_trampoline.
8740 (objc_language_data): Delete skip_trampoline initializer.
8741 (objc_language::skip_trampoline): New member function with
8742 implementation from objc_skip_trampoline.
8743 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8744 initializer.
8745 * p-lang.c (pascal_language_data): Likewise.
8746 * rust-lang.c (rust_language_data): Likewise.
8747
0a50df5d
AB
87482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8749
8750 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8751 (ada_language::demangle): New member function.
8752 * c-lang.c (c_language_data): Delete la_demangle initializer.
8753 (cplus_language_data): Delete la_demangle initializer.
8754 (cplus_language::demangle): New member function.
8755 (asm_language_data): Delete la_demangle initializer.
8756 (minimal_language_data): Delete la_demangle initializer.
8757 * d-lang.c (d_language_data): Delete la_demangle initializer.
8758 (d_language::demangle): New member function.
8759 * f-lang.c (f_language_data): Delete la_demangle initializer.
8760 (f_language::demangle): New member function.
8761 * go-lang.c (go_language_data): Delete la_demangle initializer.
8762 (go_language::demangle): New member function.
8763 * language.c (language_demangle): Update.
8764 (unk_lang_demangle): Delete.
8765 (unknown_language_data): Delete la_demangle initializer.
8766 (unknown_language::demangle): New member function.
8767 (auto_language_data): Delete la_demangle initializer.
8768 (auto_language::demangle): New member function.
8769 * language.h (language_data): Delete la_demangle field.
8770 (language_defn::demangle): New function.
8771 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8772 * objc-lang.c (objc_language_data): Delete la_demangle
8773 initializer.
8774 (objc_language::demangle): New member function.
8775 * opencl-lang.c (opencl_language_data): Delete la_demangle
8776 initializer.
8777 * p-lang.c (pascal_language_data): Likewise.
8778 * rust-lang.c (rust_language_data): Likewise.
8779 (rust_language::demangle): New member function.
8780
fbfb0a46
AB
87812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8782
8783 * ada-lang.c (ada_language_data): Delete la_print_type
8784 initializer.
8785 (ada_language::print_type): New member function.
8786 * c-lang.c (c_language_data): Delete la_print_type initializer.
8787 (c_language::print_type): New member function.
8788 (cplus_language_data): Delete la_print_type initializer.
8789 (cplus_language::print_type): New member function.
8790 (asm_language_data): Delete la_print_type initializer.
8791 (asm_language::print_type): New member function.
8792 (minimal_language_data): Delete la_print_type initializer.
8793 (minimal_language::print_type): New member function.
8794 * d-lang.c (d_language_data): Delete la_print_type initializer.
8795 (d_language::print_type): New member function.
8796 * f-lang.c (f_language_data): Delete la_print_type initializer.
8797 (f_language::print_type): New member function.
8798 * go-lang.c (go_language_data): Delete la_print_type initializer.
8799 (go_language::print_type): New member function.
8800 * language.c (unk_lang_print_type): Delete.
8801 (unknown_language_data): Delete la_print_type initializer.
8802 (unknown_language::print_type): New member function.
8803 (auto_language_data): Delete la_print_type initializer.
8804 (auto_language::print_type): New member function.
8805 * language.h (language_data): Delete la_print_type field.
8806 (language_defn::print_type): New function.
8807 (LA_PRINT_TYPE): Update.
8808 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8809 (m2_language::print_type): New member function.
8810 * objc-lang.c (objc_language_data): Delete la_print_type
8811 initializer.
8812 (objc_language::print_type): New member function.
8813 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8814 to opencl_language::print_type.
8815 (opencl_language_data): Delete la_print_type initializer.
8816 (opencl_language::print_type): New member function, implementation
8817 from opencl_print_type.
8818 * p-lang.c (pascal_language_data): Delete la_print_type
8819 initializer.
8820 (pascal_language::print_type): New member function.
8821 * rust-lang.c (rust_print_type): Delete, implementation moved to
8822 rust_language::print_type.
8823 (rust_language_data): Delete la_print_type initializer.
8824 (rust_language::print_type): New member function, implementation
8825 from rust_print_type.
8826
6f827019
AB
88272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8828
8829 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8830 implementation moves to...
8831 (ada_language::sniff_from_mangled_name): ...here. Update return
8832 type.
8833 (ada_language_data): Delete la_sniff_from_mangled_name
8834 initializer.
8835 * c-lang.c (c_language_data): Likewise.
8836 (cplus_language_data): Likewise.
8837 (cplus_language::sniff_from_mangled_name): New member function,
8838 implementation taken from gdb_sniff_from_mangled_name.
8839 (asm_language_data): Delete la_sniff_from_mangled_name
8840 initializer.
8841 (minimal_language_data): Likewise.
8842 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8843 implementation moves to cplus_language::sniff_from_mangled_name.
8844 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8845 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8846 moves to...
8847 (d_language::sniff_from_mangled_name): ...here.
8848 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8849 * f-lang.c (f_language_data): Likewise.
8850 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8851 moves to...
8852 (go_language::sniff_from_mangled_name): ...here.
8853 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8854 * language.c (language_sniff_from_mangled_name): Delete.
8855 (unknown_language_data): Delete la_sniff_from_mangled_name
8856 initializer.
8857 (auto_language_data): Likewise.
8858 * language.h (language_data): Delete la_sniff_from_mangled_name
8859 field.
8860 (language_defn::sniff_from_mangled_name): New function.
8861 (language_sniff_from_mangled_name): Delete declaration.
8862 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8863 field.
8864 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8865 implementation moves to...
8866 (objc_language::sniff_from_mangled_name): ...here.
8867 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8868 * opencl-lang.c (opencl_language_data): Likewise.
8869 * p-lang.c (pascal_language_data): Likewise.
8870 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8871 implementation moves to...
8872 (rust_language::sniff_from_mangled_name): ...here.
8873 (rust_language_data): Delete la_sniff_from_mangled_name
8874 initializer.
8875 * symtab.c (symbol_find_demangled_name): Call
8876 sniff_from_mangled_name member function.
8877
fb8006fd
AB
88782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8879
8880 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8881 initializer.
8882 * c-lang.c (c_language_data): Likewise.
8883 (cplus_language_data): Likewise.
8884 (cplus_language::search_name_hash): New member function.
8885 (asm_language_data): Delete la_search_name_hash initializer.
8886 (minimal_language_data): Likewise.
8887 * d-lang.c (d_language_data): Likewise.
8888 * dictionary.c (default_search_name_hash): Rename to...
8889 (language_defn::search_name_hash): ...this.
8890 * f-lang.c (f_language_data): Likewise.
8891 (f_language::search_name_hash): New member function.
8892 * go-lang.c (go_language_data): Delete la_search_name_hash
8893 initializer.
8894 * language.c (unknown_language_data): Likewise.
8895 (auto_language_data): Likewise.
8896 * language.h (struct language_data): Delete la_search_name_hash
8897 field.
8898 (language_defn::search_name_hash): Declare new member function.
8899 (default_search_name_hash): Delete declaration.
8900 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8901 initializer.
8902 * objc-lang.c (objc_language_data): Likewise.
8903 * opencl-lang.c (opencl_language_data): Likewise.
8904 * p-lang.c (pascal_language_data): Likewise.
8905 * rust-lang.c (rust_language_data): Likewise.
8906 * symtab.c (search_name_hash): Update call.
8907
8e25bafe
AB
89082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8909
8910 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8911 initializer.
8912 * c-lang.c (class compile_instance): Declare.
8913 (c_language_data): Delete la_get_compile_instance initializer.
8914 (c_language::get_compile_instance): New member function.
8915 (cplus_language_data): Delete la_get_compile_instance initializer.
8916 (cplus_language::get_compile_instance): New member function.
8917 (asm_language_data): Delete la_get_compile_instance initializer.
8918 (minimal_language_data): Likewise.
8919 * c-lang.h (c_get_compile_context): Update comment.
8920 (cplus_get_compile_context): Update comment.
8921 * compile/compile.c (compile_to_object): Update calls, don't rely
8922 on function pointer being NULL.
8923 * d-lang.c (d_language_data): Delete la_get_compile_instance
8924 initializer.
8925 * f-lang.c (f_language_data): Likewise.
8926 * go-lang.c (go_language_data): Likewise.
8927 * language.c (unknown_language_data): Likewise.
8928 (auto_language_data): Likewise.
8929 * language.h (language_data): Delete la_get_compile_instance field.
8930 (language_defn::get_compile_instance): New member function.
8931 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8932 initializer.
8933 * objc-lang.c (objc_language_data): Likewise.
8934 * opencl-lang.c (opencl_language_data): Likewise.
8935 * p-lang.c (pascal_language_data): Likewise.
8936 * rust-lang.c (rust_language_data): Likewise.
8937
4009ee92
AB
89382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8939
8940 * ada-lang.c (ada_add_all_symbols): Update comment.
8941 (ada_iterate_over_symbols): Delete, move implementation to...
8942 (ada_language::iterate_over_symbols): ...here, a new member
8943 function, rewrite to use range based for loop.
8944 (ada_language_data): Delete la_iterate_over_symbols initializer.
8945 * c-lang.c (c_language_data): Likewise.
8946 (cplus_language_data): Likewise.
8947 (asm_language_data): Likewise.
8948 (minimal_language_data): Likewise.
8949 * d-lang.c (d_language_data): Likewise.
8950 * f-lang.c (f_language_data): Likewise.
8951 * go-lang.c (go_language_data): Likewise.
8952 * language.c (unknown_language_data): Likewise.
8953 (auto_language_data): Likewise.
8954 * language.h (language_data): Delete la_iterate_over_symbols field.
8955 (language_defn::iterate_over_symbols): New member function.
8956 (LA_ITERATE_OVER_SYMBOLS): Update.
8957 * linespec.c (iterate_over_all_matching_symtabs): Update.
8958 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8959 initializer.
8960 * objc-lang.c (objc_language_data): Likewise.
8961 * opencl-lang.c (opencl_language_data): Likewise.
8962 * p-lang.c (pascal_language_data): Likewise.
8963 * rust-lang.c (rust_language_data): Likewise.
8964
54f4ca46
AB
89652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8966
8967 * ada-lang.c (ada_language_data): Delete
8968 la_lookup_transparent_type initializer.
8969 * c-lang.c (c_language_data): Likewise.
8970 (cplus_language_data): Likewise.
8971 (cplus_language::lookup_transparent_type): New member function.
8972 (asm_language_data): Delete la_lookup_transparent_type
8973 initializer.
8974 (minimal_language_data): Likewise.
8975 * d-lang.c (d_language_data): Likewise.
8976 * f-lang.c (f_language_data): Likewise.
8977 * go-lang.c (go_language_data): Likewise.
8978 * language.c (unknown_language_data): Likewise.
8979 (auto_language_data): Likewise.
8980 * language.h (struct language_data): Delete
8981 la_lookup_transparent_type field.
8982 (language_defn::lookup_transparent_type): New member function.
8983 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8984 initializer.
8985 * objc-lang.c (objc_language_data): Likewise.
8986 * opencl-lang.c (opencl_language_data): Likewise.
8987 * p-lang.c (pascal_language_data): Likewise.
8988 * rust-lang.c (rust_language_data): Likewise.
8989 * symtab.c (symbol_matches_domain): Update call.
8990
1fb314aa
AB
89912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8992
8993 * ada-lang.c (ada_language_arch_info): Delete function, move
8994 implementation to...
8995 (ada_language::language_arch_info): ...here, a new member
8996 function.
8997 (ada_language_data): Delete la_language_arch_info.
8998 * c-lang.c (c_language_data): Likewise.
8999 (c_language::language_arch_info): New member function.
9000 (cplus_language_arch_info): Delete function, move
9001 implementation to...
9002 (cplus_language::language_arch_info): ...here, a new member
9003 function.
9004 (cplus_language_data): Delete la_language_arch_info.
9005 (asm_language_data): Likewise.
9006 (asm_language::language_arch_info): New member function.
9007 (minimal_language_data): Delete la_language_arch_info.
9008 (minimal_language::language_arch_info): New member function.
9009 * d-lang.c (d_language_arch_info): Delete function, move
9010 implementation to...
9011 (d_language::language_arch_info): ...here, a new member
9012 function.
9013 (d_language_data): Delete la_language_arch_info.
9014 * f-lang.c (f_language_arch_info): Delete function, move
9015 implementation to...
9016 (f_language::language_arch_info): ...here, a new member
9017 function.
9018 (f_language_data): Delete la_language_arch_info.
9019 * go-lang.c (go_language_arch_info): Delete function, move
9020 implementation to...
9021 (go_language::language_arch_info): ...here, a new member
9022 function.
9023 (go_language_data): Delete la_language_arch_info.
9024 * language.c (unknown_language_data): Likewise.
9025 (unknown_language::language_arch_info): New member function.
9026 (auto_language_data): Delete la_language_arch_info.
9027 (auto_language::language_arch_info): New member function.
9028 (language_gdbarch_post_init): Update call to
9029 la_language_arch_info.
9030 * language.h (language_data): Delete la_language_arch_info
9031 function pointer.
9032 (language_defn::language_arch_info): New function.
9033 * m2-lang.c (m2_language_arch_info): Delete function, move
9034 implementation to...
9035 (m2_language::language_arch_info): ...here, a new member
9036 function.
9037 (m2_language_data): Delete la_language_arch_info.
9038 * objc-lang.c (objc_language_arch_info): Delete function, move
9039 implementation to...
9040 (objc_language::language_arch_info): ...here, a new member
9041 function.
9042 (objc_language_data): Delete la_language_arch_info.
9043 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9044 implementation to...
9045 (opencl_language::language_arch_info): ...here, a new member
9046 function.
9047 (opencl_language_data): Delete la_language_arch_info.
9048 * p-lang.c (pascal_language_arch_info): Delete function, move
9049 implementation to...
9050 (pascal_language::language_arch_info): ...here, a new member
9051 function.
9052 (pascal_language_data): Delete la_language_arch_info.
9053 * rust-lang.c (rust_language_arch_info): Delete function, move
9054 implementation to...
9055 (rust_language::language_arch_info): ...here, a new member
9056 function.
9057 (rust_language_data): Delete la_language_arch_info.
9058
48448202
AB
90592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9060
9061 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9062 initializer.
9063 * c-lang.c (c_language_data): Likewise.
9064 (cplus_language_data): Likewise.
9065 (cplus_language::pass_by_reference_info): New method.
9066 (asm_language_data): Delete la_pass_by_reference initializer.
9067 (minimal_language_data): Likewise.
9068 * cp-abi.c (cp_pass_by_reference): Remove use of
9069 default_pass_by_reference.
9070 * d-lang.c (d_language_data): Likewise.
9071 * f-lang.c (f_language_data): Likewise.
9072 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9073 default_pass_by_reference.
9074 * go-lang.c (go_language_data): Likewise.
9075 * language.c (language_pass_by_reference): Update.
9076 (default_pass_by_reference): Delete.
9077 (unknown_language_data): Delete la_pass_by_reference
9078 initializer.
9079 (auto_language_data): Likewise.
9080 * language.h (struct language_data): Delete la_pass_by_reference
9081 field.
9082 (language_defn::pass_by_reference_info): New member function.
9083 (default_pass_by_reference): Delete declaration.
9084 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9085 initializer.
9086 * objc-lang.c (objc_language_data): Likewise.
9087 * opencl-lang.c (opencl_language_data): Likewise.
9088 * p-lang.c (pascal_language_data): Likewise.
9089 * rust-lang.c (rust_language_data): Likewise.
9090
15e5fd35
AB
90912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9092
9093 * ada-lang.c (ada_read_var_value): Delete function, move
9094 implementation to...
9095 (ada_language::read_var_value): ...here.
9096 (ada_language_data): Delete la_read_var_value initializer.
9097 * c-lang.c (c_language_data): Likewise.
9098 (cplus_language_data): Likewise.
9099 (minimal_language_data): Likewise.
9100 * d-lang.c (d_language_data): Likewise.
9101 * f-lang.c (f_language_data): Likewise.
9102 * findvar.c (default_read_var_value): Rename to...
9103 (language_defn::read_var_value): ...this.
9104 * findvar.c (read_var_value): Update header comment, and change to
9105 call member function instead of function pointer.
9106 * go-lang.c (go_language_data): Likewise.
9107 * language.c (unknown_language_data): Delete la_read_var_value
9108 initializer.
9109 (auto_language_data): Likewise.
9110 * language.h (struct language_data): Delete la_read_var_value
9111 field.
9112 (language_defn::read_var_value): New member function.
9113 (default_read_var_value): Delete declaration.
9114 * m2-lang.c (m2_language_data): Delete la_read_var_value
9115 initializer.
9116 * objc-lang.c (objc_language_data): Likewise.
9117 * opencl-lang.c (opencl_language_data): Likewise.
9118 * p-lang.c (pascal_language_data): Likewise.
9119 * rust-lang.c (rust_language_data): Likewise.
9120 * value.h (default_read_var_value): Delete declaration.
9121
5bd40f2a
AB
91222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9123
9124 * ada-lang.c (ada_print_array_index): Delete function, move
9125 implementation to...
9126 (ada_language::print_array_index): ...here.
9127 (ada_language_data): Delete la_print_array_index initializer.
9128 * c-lang.c (c_language_data): Likewise.
9129 (cplus_language_data): Likewise.
9130 (minimal_language_data): Likewise.
9131 * d-lang.c (d_language_data): Likewise.
9132 * f-lang.c (f_language_data): Likewise.
9133 * go-lang.c (go_language_data): Likewise.
9134 * language.c (default_print_array_index): Delete function, move
9135 implementation to...
9136 (language_defn::print_array_index): ...here.
9137 (unknown_language_data): Delete la_print_array_index initializer.
9138 (auto_language_data): Likewise.
9139 * language.h (struct language_data): Delete la_print_array_index
9140 field.
9141 (language_defn::print_array_index): New member function.
9142 (LA_PRINT_ARRAY_INDEX): Update.
9143 (default_print_array_index): Delete declaration.
9144 * m2-lang.c (m2_language_data): Delete la_print_array_index
9145 initializer.
9146 * objc-lang.c (objc_language_data): Likewise.
9147 * opencl-lang.c (opencl_language_data): Likewise.
9148 * p-lang.c (pascal_language_data): Likewise.
9149 * rust-lang.c (rust_language_data): Likewise.
9150
0874fd07
AB
91512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9152
9153 * gdb/ada-lang.c (ada_language_defn): Convert to...
9154 (ada_language_data): ...this.
9155 (class ada_language): New class.
9156 (ada_language_defn): New static global.
9157 * gdb/c-lang.c (c_language_defn): Convert to...
9158 (c_language_data): ...this.
9159 (class c_language): New class.
9160 (c_language_defn): New static global.
9161 (cplus_language_defn): Convert to...
9162 (cplus_language_data): ...this.
9163 (class cplus_language): New class.
9164 (cplus_language_defn): New static global.
9165 (asm_language_defn): Convert to...
9166 (asm_language_data): ...this.
9167 (class asm_language): New class.
9168 (asm_language_defn): New static global.
9169 (minimal_language_defn): Convert to...
9170 (minimal_language_data): ...this.
9171 (class minimal_language): New class.
9172 (minimal_language_defn): New static global.
9173 * gdb/d-lang.c (d_language_defn): Convert to...
9174 (d_language_data): ...this.
9175 (class d_language): New class.
9176 (d_language_defn): New static global.
9177 * gdb/f-lang.c (f_language_defn): Convert to...
9178 (f_language_data): ...this.
9179 (class f_language): New class.
9180 (f_language_defn): New static global.
9181 * gdb/go-lang.c (go_language_defn): Convert to...
9182 (go_language_data): ...this.
9183 (class go_language): New class.
9184 (go_language_defn): New static global.
9185 * gdb/language.c (unknown_language_defn): Remove declaration.
9186 (current_language): Initialize to nullptr, real initialization is
9187 moved to _initialize_language.
9188 (languages): Delete global.
9189 (language_defn::languages): Define.
9190 (set_language_command): Use language_defn::languages.
9191 (set_language): Likewise.
9192 (range_error): Likewise.
9193 (language_enum): Likewise.
9194 (language_def): Likewise.
9195 (add_set_language_command): Use language_def::languages for the
9196 language list, and language_def to lookup language pointers.
9197 (skip_language_trampoline): Use language_defn::languages.
9198 (unknown_language_defn): Convert to...
9199 (unknown_language_data): ...this.
9200 (class unknown_language): New class.
9201 (unknown_language_defn): New static global.
9202 (auto_language_defn): Convert to...
9203 (auto_language_data): ...this.
9204 (class auto_language): New class.
9205 (auto_language_defn): New static global.
9206 (language_gdbarch_post_init): Use language_defn::languages.
9207 (_initialize_language): Initialize current_language.
9208 * gdb/language.h (struct language_defn): Rename to...
9209 (struct language_data): ...this.
9210 (struct language_defn): New.
9211 (auto_language_defn): Delete.
9212 (unknown_language_defn): Delete.
9213 (minimal_language_defn): Delete.
9214 (ada_language_defn): Delete.
9215 (asm_language_defn): Delete.
9216 (c_language_defn): Delete.
9217 (cplus_language_defn): Delete.
9218 (d_language_defn): Delete.
9219 (f_language_defn): Delete.
9220 (go_language_defn): Delete.
9221 (m2_language_defn): Delete.
9222 (objc_language_defn): Delete.
9223 (opencl_language_defn): Delete.
9224 (pascal_language_defn): Delete.
9225 (rust_language_defn): Delete.
9226 * gdb/m2-lang.c (m2_language_defn): Convert to...
9227 (m2_language_data): ...this.
9228 (class m2_language): New class.
9229 (m2_language_defn): New static global.
9230 * gdb/objc-lang.c (objc_language_defn): Convert to...
9231 (objc_language_data): ...this.
9232 (class objc_language): New class.
9233 (objc_language_defn): New static global.
9234 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9235 (opencl_language_data): ...this.
9236 (class opencl_language): New class.
9237 (opencl_language_defn): New static global.
9238 * gdb/p-lang.c (pascal_language_defn): Convert to...
9239 (pascal_language_data): ...this.
9240 (class pascal_language): New class.
9241 (pascal_language_defn): New static global.
9242 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9243 language pointer, update comment format.
9244 * gdb/rust-lang.c (rust_language_defn): Convert to...
9245 (rust_language_data): ...this.
9246 (class rust_language): New class.
9247 (rust_language_defn): New static global.
9248
1313c56e
AB
92492020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9250
9251 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9252 member variable.
9253 <m_stmt_at_address>: New member variable.
9254 (lnp_state_machine::record_line): Don't record some lines, update
9255 tracking of is_stmt at the same address.
9256 (lnp_state_machine::lnp_state_machine): Initialise new member
9257 variables.
9258
b7ed9f3d
ST
92592020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9260
9261 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9262 "-include gnu-nat-mig.h".
9263 * gnu-nat-mig.h: New file.
9264 * gnu-nat.c: Include "gnu-nat-mig.h".
9265 (exc_server, msg_reply_server, notify_server,
9266 process_reply_server): Remove declarations.
9267
14a8ad62
ST
92682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9269
9270 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9271 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9272 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9273 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9274 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9275 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9276 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9277 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9278 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9279 to gnu_nat_target class.
9280 * gnu-nat.c: Likewise.
9281 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9282 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9283 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9284 object.
9285 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9286 instead of `gnu_target'.
9287
0af5e106
ST
92882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9289
9290 * i386-gnu-tdep.c: Include "gdbcore.h"
9291 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9292 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9293 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9294 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9295 i386_gnu_sigcontext_addr): New functions
9296 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9297 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9298 tdep.
9299
078f2fc9
ST
93002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9301
9302 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9303 before fork_inferior call. Avoid calling it if target_is_pushed returns
9304 true.
9305
53dff92c
ST
93062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9307
9308 * gnu-nat.h (gnu_target): New variable declaration.
9309 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9310 gnu_target.
9311 * gnu-nat.c (gnu_target): New variable.
9312 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9313 add_thread_silent, and add_thread calls.
9314 (gnu_nat_target::create_inferior): Pass gnu_target to
9315 add_thread_silent, thread_change_ptid call.
9316 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9317 call.
9318
5a8b8627
ST
93192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9320
9321 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9322 (gnu_nat_target::find_memory_regions): Remove unused
9323 `old_address' variable.
9324
366f550a
ST
93252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9326
9327 * gnu-nat.c: Include "gdbarch.h".
9328
f14871bf
ST
93292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9330
9331 * reply_mig_hack.awk (Error return): Cast function through
9332 void *, to bypass compiler function call check.
9333
c6887cfb
ST
93342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9335
9336 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9337 $(srcdir)/reply_mig_hack.awk.
9338
6930bffe
ST
93392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9340
9341 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9342
112c22ed
JG
93432020-05-30 Jonny Grant <jg@jguk.org>
9344
9345 * configure.ac (ACX_BUGURL): change bug URL to https.
9346
f68f85b5
PA
93472020-05-30 Pedro Alves <palves@redhat.com>
9348
9349 * cp-support.c (replace_typedefs_template): New.
9350 (replace_typedefs_qualified_name): Handle
9351 DEMANGLE_COMPONENT_TEMPLATE.
9352
976ca316
SM
93532020-05-29 Simon Marchi <simon.marchi@efficios.com>
9354
9355 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9356 dwarf2/index-cache.h, dwarf2/index-write.c,
9357 dwarf2/index-write.h, dwarf2/line-header.c,
9358 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9359 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9360 variables and fields from `dwarf2_per_objfile` to just
9361 `per_objfile` throughout.
9362
989ade05
SM
93632020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9364
9365 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9366 <push_dwarf_reg_entry_value>: Add comment.
9367
c47bae85
KB
93682020-05-28 Kevin Buettner <kevinb@redhat.com>
9369 Keith Seitz <keiths@redhat.com>
9370
9371 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9372 instead of PyEval_ReleaseLock.
9373 (class gdbpy_gil): Move to earlier in file.
9374 (finalize_python): Set gdb_python_initialized.
9375 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9376 when not initialized.
9377
44486dcf
SM
93782020-05-28 Simon Marchi <simon.marchi@efficios.com>
9379
9380 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9381 <push_dwarf_reg_entry_value>: Remove assert. Override
9382 per_objfile with caller_per_objfile.
9383
f030440d
TV
93842020-05-28 Tom de Vries <tdevries@suse.de>
9385
9386 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9387 PR gold/15646 workaround to symbol kind "type".
9388
f0fbb768
TT
93892020-05-27 Tom Tromey <tromey@adacore.com>
9390
9391 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9392
af0b2a3e
TT
93932020-05-27 Tom Tromey <tromey@adacore.com>
9394
9395 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9396 Use htab_find_with_hash.
9397 <add_abbrev>: Remove "abbrev_number" parameter.
9398 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9399 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9400 (hash_abbrev): Add comment.
9401 (abbrev_table::lookup_abbrev): Move to header file.
9402 (abbrev_table::read): Update.
9403
7d00ffec
TT
94042020-05-27 Tom Tromey <tromey@adacore.com>
9405
9406 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9407 method.
9408 <canonical_name>: New member.
9409 <raw_name>: Rename from "name".
9410 (partial_die_info): Initialize canonical_name.
9411 (scan_partial_symbols): Check raw_name.
9412 (partial_die_parent_scope, partial_die_full_name)
9413 (add_partial_symbol, add_partial_subprogram)
9414 (add_partial_enumeration, load_partial_dies): Use "name" method.
9415 (partial_die_info::name): New method.
9416 (partial_die_info::read, guess_partial_die_structure_name)
9417 (partial_die_info::fixup): Update.
9418
697bba18
TT
94192020-05-27 Tom Tromey <tromey@adacore.com>
9420
9421 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9422 <get_ref_die_offset>: Inline.
9423 <get_ref_die_offset_complaint>: New method.
9424 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9425 (attribute::get_ref_die_offset_complaint): Rename from
9426 get_ref_die_offset. Just issue complaint.
9427
c17ace43
HD
94282020-05-27 Hannes Domani <ssbssa@yahoo.de>
9429
9430 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9431
96445f0b
HD
94322020-05-27 Hannes Domani <ssbssa@yahoo.de>
9433
9434 * exec.c (exec_file_attach): Use errno value of first openp failure.
9435
ac637ec3
HD
94362020-05-27 Hannes Domani <ssbssa@yahoo.de>
9437
9438 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9439 Don't close thread handle.
9440
17ee85fc
TT
94412020-05-27 Tom Tromey <tom@tromey.com>
9442 Simon Marchi <simon.marchi@efficios.com>
9443
9444 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9445 shared_ptr.
9446 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9447 member.
9448 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9449 dwarf2_per_bfd_objfile_data_key>: New globals.
9450 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9451 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9452 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9453 shared.
9454 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9455 short-circuit when sharing.
9456 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9457 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9458
39b16f87
SM
94592020-05-27 Simon Marchi <simon.marchi@efficios.com>
9460
9461 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9462 to...
9463 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9464 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9465
fcf23d5b
SM
94662020-05-27 Simon Marchi <simon.marchi@efficios.com>
9467
9468 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9469 build_name_components, find_name_components_bounds>:
9470 Add per_objfile parameter.
9471 (struct mapped_index) <symbol_name_at>: Likewise.
9472 (struct mapped_debug_names): Remove constructor.
9473 <dwarf2_per_objfile>: Remove field.
9474 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9475 (mapped_index_base::find_name_components_bounds,
9476 mapped_index_base::build_name_components,
9477 dw2_expand_symtabs_matching_symbol): Likewise.
9478 (class mock_mapped_index) <symbol_name_at>: Likewise.
9479 (check_match): Likewise.
9480 (check_find_bounds_finds): Likewise.
9481 (test_mapped_index_find_name_component_bounds): Update.
9482 (CHECK_MATCH): Update.
9483 (dw2_expand_symtabs_matching): Update.
9484 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9485 per_objfile parameter.
9486 <find_vec_in_debug_names>: Likewise.
9487 <m_per_objfile>: New field.
9488 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9489 parameter.
9490 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9491 (dw2_debug_names_iterator::next): Update.
9492 (dw2_debug_names_lookup_symbol): Update.
9493 (dw2_debug_names_expand_symtabs_for_function): Update.
9494 (dw2_debug_names_map_matching_symbols): Update.
9495 (dw2_debug_names_expand_symtabs_matching): Update.
9496 (dwarf2_read_debug_names): Update.
9497
7188ed02
SM
94982020-05-27 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9501 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9502 move to dwarf2_per_objfile.
9503 <read_in_chain>: Remove.
9504 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9505 remove_all_cus, age_comp_units>: New methods.
9506 <m_dwarf2_cus>: New member.
9507 (struct dwarf2_per_cu_data) <cu>: Remove.
9508 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9509 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9510 moved to methods of dwarf2_per_objfile.
9511 (dwarf2_clear_marks): Remove.
9512 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9513 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9514 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9515 (dwarf2_per_objfile::remove_all_cus): New.
9516 (class free_cached_comp_units) <~free_cached_comp_units>:
9517 Update.
9518 (load_cu): Update.
9519 (dw2_do_instantiate_symtab): Adjust.
9520 (fill_in_sig_entry_from_dwo_entry): Adjust.
9521 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9522 (cutu_reader::cutu_reader): Likewise.
9523 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9524 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9525 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9526 and dwarf2_per_objfile::age_comp_units.
9527 (load_partial_comp_unit): Update.
9528 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9529 (process_queue): Likewise.
9530 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9531 backlink.
9532 (dwarf2_read_addr_index): Likewise.
9533 (follow_die_offset): Likewise.
9534 (dwarf2_fetch_die_loc_sect_off): Likewise.
9535 (dwarf2_fetch_constant_bytes): Likewise.
9536 (dwarf2_fetch_die_type_sect_off): Likewise.
9537 (follow_die_sig_1): Likewise.
9538 (load_full_type_unit): Likewise.
9539 (read_signatured_type): Likewise.
9540 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9541 (dwarf2_cu::~dwarf2_cu): Remove.
9542 (dwarf2_per_objfile::get_cu): New.
9543 (dwarf2_per_objfile::set_cu): New.
9544 (age_cached_comp_units): Rename to...
9545 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9546 to std::unordered_map.
9547 (free_one_cached_comp_unit): Rename to...
9548 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9549 to std::unordered_map.
9550 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9551 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9552 a dwarf2_per_objfile in data.
9553 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9554 (dwarf2_clear_marks): Remove.
9555
2e671100
SM
95562020-05-27 Simon Marchi <simon.marchi@efficios.com>
9557
9558 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9559 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9560 (init_tu_and_read_dwo_dies): Likewise.
9561 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9562 (cutu_reader::cutu_reader): Likewise.
9563 (load_partial_comp_unit): Likewise.
9564 (process_psymtab_comp_unit): Update.
9565 (build_type_psymtabs_1): Update.
9566 (process_skeletonless_type_unit): Update.
9567 (load_full_comp_unit): Update.
9568 (find_partial_die): Update.
9569 (dwarf2_read_addr_index): Update.
9570 (read_signatured_type): Update.
9571
2e6a9f79
SM
95722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9573
9574 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9575 m_header_read_in>: New fields.
9576 <get_header>: New method.
9577 * dwarf2/read.c (per_cu_header_read_in): Remove.
9578 (dwarf2_per_cu_data::get_header): New.
9579 (dwarf2_per_cu_data::addr_size): Update.
9580 (dwarf2_per_cu_data::offset_size): Update.
9581 (dwarf2_per_cu_data::ref_addr_size): Update.
9582
1b555f17
SM
95832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9584
9585 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9586 (dw2_do_instantiate_symtab): Update.
9587 (queue_and_load_all_dwo_tus): Change parameter from
9588 dwarf2_per_cu_data to dwarf2_cu.
9589 (dwarf2_fetch_die_loc_sect_off): Update.
9590 (dwarf2_fetch_constant_bytes): Update.
9591 (dwarf2_fetch_die_type_sect_off): Update.
9592
8fc0b21d
SM
95932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9594
9595 * dwarf2/read.c (process_full_comp_unit,
9596 process_full_type_unit): Remove per_cu, per_objfile paramters.
9597 Add dwarf2_cu parameter.
9598 (process_queue): Update.
9599
168c9250
SM
96002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9601
9602 * dwarf2/read.c (create_cu_from_index_list): Replace
9603 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9604 (create_cus_from_index_list): Likewise.
9605 (create_cus_from_index): Likewise.
9606 (create_signatured_type_table_from_index): Likewise.
9607 (create_cus_from_debug_names_list): Likewise.
9608 (create_cus_from_debug_names): Likewise.
9609 (dwarf2_read_gdb_index): Update.
9610 (dwarf2_read_debug_names): Update.
9611
e286671b
TT
96122020-05-27 Tom Tromey <tom@tromey.com>
9613 Simon Marchi <simon.marchi@efficios.com>
9614
9615 * dwarf2/read.h (struct dwarf2_per_objfile)
9616 <get_type_for_signatured_type, set_type_for_signatured_type>:
9617 New methods.
9618 <m_type_map>: New member.
9619 (struct signatured_type) <type>: Remove.
9620 * dwarf2/read.c
9621 (dwarf2_per_objfile::get_type_for_signatured_type,
9622 dwarf2_per_objfile::set_type_for_signatured_type): New.
9623 (get_signatured_type): Use new methods.
9624
8adb8487
TT
96252020-05-27 Tom Tromey <tom@tromey.com>
9626 Simon Marchi <simon.marchi@efficios.com>
9627
9628 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9629 (struct dwarf2_per_objfile) <type_units>: New member.
9630 <get_type_unit_group_unshareable>: New method.
9631 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9632 num_symtabs, symtabs>: Remove; move to
9633 type_unit_group_unshareable.
9634 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9635 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9636 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9637
127bbf4b
SM
96382020-05-27 Simon Marchi <simon.marchi@efficios.com>
9639
9640 * dwarf2/read.h (struct dwarf2_per_cu_data):
9641 <dwarf2_per_objfile>: Remove.
9642 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9643 dwarf2_per_objfile.
9644 (create_signatured_type_table_from_index): Likewise.
9645 (create_signatured_type_table_from_debug_names): Likewise.
9646 (create_debug_type_hash_table): Likewise.
9647 (fill_in_sig_entry_from_dwo_entry): Likewise.
9648 (create_type_unit_group): Likewise.
9649 (read_comp_units_from_section): Likewise.
9650 (create_cus_hash_table): Likewise.
9651
f6e649dd
SM
96522020-05-27 Simon Marchi <simon.marchi@efficios.com>
9653
9654 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9655 dwarf2_per_cu_data::dwarf2_per_objfile.
9656 (compute_compunit_symtab_includes): Likewise.
9657 (dwarf2_cu::start_symtab): Likewise.
9658
aa66c379
SM
96592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9660
9661 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9662 parameter.
9663 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9664 (read_namespace_alias): Update.
9665 (lookup_die_type): Update.
9666 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9667 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9668 Update.
9669 (disassemble_dwarf_expression): Update.
9670
120ce1b5
SM
96712020-05-27 Simon Marchi <simon.marchi@efficios.com>
9672
9673 * dwarf2/read.h (struct dwarf2_queue_item): Add
9674 dwarf2_per_objfile parameter, assign new parameter.
9675 <per_objfile>: New field.
9676 * dwarf2/read.c (free_one_cached_comp_unit): Add
9677 dwarf2_per_objfile parameter.
9678 (queue_comp_unit): Likewise.
9679 (dw2_do_instantiate_symtab): Update.
9680 (process_psymtab_comp_unit): Update.
9681 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9682 (process_imported_unit_die): Update.
9683 (queue_and_load_dwo_tu): Update.
9684 (follow_die_offset): Update.
9685 (follow_die_sig_1): Update.
9686
9f47c707
SM
96872020-05-27 Simon Marchi <simon.marchi@efficios.com>
9688
9689 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9690 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9691 (read_call_site_scope): Assign per_objfile.
9692 (dwarf2_per_cu_data::objfile): Remove.
9693 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9694 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9695 dwarf2_per_objfile parameter.
9696 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9697 dwarf2_per_objfile parameter.
9698 (dwarf_expr_reg_to_entry_parameter): Add output
9699 dwarf2_per_objfile parameter.
9700 (locexpr_get_frame_base): Update.
9701 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9702 <push_dwarf_reg_entry_value>: Update.
9703 <call_site_to_target_addr>: Update.
9704 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9705 parameter.
9706 (value_of_dwarf_reg_entry): Update.
9707 (rw_pieced_value): Update.
9708 (indirect_synthetic_pointer): Update.
9709 (dwarf2_evaluate_property): Update.
9710 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9711 parameter.
9712 (locexpr_read_variable): Update.
9713 (locexpr_get_symbol_read_needs): Update.
9714 (loclist_read_variable): Update.
9715
14095eb3
SM
97162020-05-27 Simon Marchi <simon.marchi@efficios.com>
9717
9718 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9719 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9720 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9721 parameter.
9722 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9723 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9724 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9725 parameter.
9726 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9727 sect_variable_value): Add dwarf2_per_objfile parameter.
9728 (class dwarf_evaluate_loc_desc) <dwarf_call,
9729 dwarf_variable_value>: Update.
9730 (fetch_const_value_from_synthetic_pointer): Add
9731 dwarf2_per_objfile parameter.
9732 (fetch_const_value_from_synthetic_pointer): Update.
9733 (coerced_pieced_ref): Update.
9734 (class symbol_needs_eval_context) <dwarf_call,
9735 dwarf_variable_value>: Update.
9736 (dwarf2_compile_expr_to_ax): Update.
9737
3c3cd3d4
SM
97382020-05-27 Simon Marchi <simon.marchi@efficios.com>
9739
9740 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9741 parameter.
9742 (dwarf2_evaluate_loc_desc_full): Update.
9743
82ca3f51
SM
97442020-05-27 Simon Marchi <simon.marchi@efficios.com>
9745
9746 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9747 parameter.
9748 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9749 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9750 dwarf2_per_objfile parameter.
9751 (decode_debug_loc_dwo_addresses): Likewise.
9752 (dwarf2_find_location_expression): Update.
9753 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9754 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9755 parameter.
9756 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9757 parameter.
9758 (locexpr_describe_location_1): Likewise.
9759 (locexpr_describe_location): Update.
9760
4b167ea1
SM
97612020-05-27 Simon Marchi <simon.marchi@efficios.com>
9762
9763 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9764 Remove.
9765 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9766 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9767 (dwarf2_compile_property_to_c): Update.
9768 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9769 use text offset from objfile.
9770 (locexpr_tracepoint_var_ref): Update.
9771 (locexpr_generate_c_location): Update.
9772 (loclist_describe_location): Update.
9773 (loclist_tracepoint_var_ref): Update.
9774 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9775 dwarf2_per_objfile parameter.
9776 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9777 use text offset from objfile.
9778 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9779
89b07335
SM
97802020-05-27 Simon Marchi <simon.marchi@efficios.com>
9781
9782 * dwarf2/expr.h (struct dwarf_expr_context)
9783 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9784 <offset>: Remove.
9785 <per_objfile>: New member.
9786 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9787 dwarf2_per_objfile parameter. Don't set offset, set
9788 per_objfile.
9789 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9790 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9791 a dwarf2_per_objfile object instead of an offset.
9792 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9793 constructor.
9794 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9795 to dwarf2_expr_executor constructor. Don't set offset.
9796 (dwarf2_fetch_cfa_info): Update.
9797 (struct dwarf2_frame_cache) <text_offset>: Remove.
9798 <per_objfile>: New field.
9799 (dwarf2_frame_cache): Update.
9800 (dwarf2_frame_prev_register): Update.
9801 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9802 <dwarf_evaluate_loc_desc>: Add constructor.
9803 (dwarf2_evaluate_loc_desc_full): Update.
9804 (dwarf2_locexpr_baton_eval): Update.
9805 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9806 Add constructor.
9807 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9808
293e7e51
SM
98092020-05-27 Simon Marchi <simon.marchi@efficios.com>
9810
9811 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9812 addr_sized_int_type>: Move to dwarf2_cu.
9813 <int_type>: Move to dwarf2_per_objfile.
9814 (struct dwarf2_per_objfile) <int_type>: Move here.
9815 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9816 addr_sized_int_type>: Move here.
9817 (read_func_scope): Update.
9818 (read_array_type): Update.
9819 (read_tag_string_type): Update.
9820 (attr_to_dynamic_prop): Update.
9821 (dwarf2_per_cu_data::int_type): Rename to...
9822 (dwarf2_per_objfile::int_type): ... this.
9823 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9824 (dwarf2_cu::addr_sized_int_type): ... this.
9825 (read_subrange_type): Update.
9826 (dwarf2_per_cu_data::addr_type): Rename to...
9827 (dwarf2_cu::addr_type): ... this.
9828 (set_die_type): Update.
9829
64874a40
SM
98302020-05-27 Simon Marchi <simon.marchi@efficios.com>
9831
9832 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9833 data through per_cu->cu.
9834
4ab09049
SM
98352020-05-27 Simon Marchi <simon.marchi@efficios.com>
9836
9837 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9838 dwarf2_per_cu_data parameter fo dwarf2_cu.
9839 (lookup_dwo_type_unit): Likewise.
9840 (read_cutu_die_from_dwo): Likewise.
9841 (lookup_dwo_unit): Likewise.
9842 (open_and_init_dwo_file): Likewise.
9843 (lookup_dwo_cutu): Likewise.
9844 (lookup_dwo_comp_unit): Likewise.
9845 (lookup_dwo_type_unit): Likewise.
9846 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9847 (cutu_reader::cutu_reader): Update.
9848
47b14e86
SM
98492020-05-27 Simon Marchi <simon.marchi@efficios.com>
9850
9851 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9852 parameter.
9853 (process_full_type_unit): Likewise.
9854 (process_queue): Update.
9855
43182c09
SM
98562020-05-27 Simon Marchi <simon.marchi@efficios.com>
9857
9858 * dwarf2/read.c (recursively_compute_inclusions): Add
9859 dwarf2_per_objfile parameter.
9860 (compute_compunit_symtab_includes): Likewise.
9861 (process_cu_includes): Update.
9862
7aa104c4
SM
98632020-05-27 Simon Marchi <simon.marchi@efficios.com>
9864
9865 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9866 parameter.
9867 (create_type_unit_group): Update.
9868 (process_psymtab_comp_unit_reader): Update.
9869 (build_type_psymtabs_reader): Update.
9870
e3beb21d
SM
98712020-05-27 Simon Marchi <simon.marchi@efficios.com>
9872
9873 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9874 object through m_this_cu->cu.
9875
d460f660
SM
98762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9877
9878 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9879 the info parameter.
9880 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9881
ab432490
SM
98822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9883
9884 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9885 per_objfile parameter.
9886 (load_full_type_unit): Add per_objfile parameter.
9887 (read_signatured_type): Likewise.
9888 (load_full_comp_unit): Likewise.
9889 (load_cu): Likewise.
9890 (dw2_do_instantiate_symtab): Likewise.
9891 (dw2_get_file_names): Likewise.
9892 (dw2_map_symtabs_matching_filename): Update.
9893 (dw_expand_symtabs_matching_file_matcher): Update.
9894 (dw2_map_symbol_filenames): Update.
9895 (process_psymtab_comp_unit): Add per_objfile parameter.
9896 (build_type_psymtabs_1): Update.
9897 (process_skeletonless_type_unit): Update.
9898 (dwarf2_build_psymtabs_hard): Update.
9899 (load_partial_comp_unit): Add per_objfile parameter.
9900 (scan_partial_symbols): Update.
9901 (load_full_comp_unit): Add per_objfile parameter.
9902 (process_imported_unit_die): Update.
9903 (create_cus_hash_table): Update.
9904 (find_partial_die): Update.
9905 (dwarf2_read_addr_index): Update.
9906 (follow_die_offset): Update.
9907 (dwarf2_fetch_die_loc_sect_off): Update.
9908 (dwarf2_fetch_constant_bytes): Update.
9909 (dwarf2_fetch_die_type_sect_off): Update.
9910 (follow_die_sig_1): Update.
9911 (load_full_type_unit): Add per_objfile parameter.
9912 (read_signatured_type): Likewise.
9913
313bad1b
SM
99142020-05-27 Simon Marchi <simon.marchi@efficios.com>
9915
9916 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9917 of objfile_name.
9918
c3699833
SM
99192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9920
9921 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9922 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9923 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9924 field.
9925 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9926 (create_cus_from_index): Update.
9927 (dwarf2_read_gdb_index): Update.
9928 (create_cus_from_debug_names): Update.
9929 (dwarf2_read_debug_names): Update.
9930 (get_abbrev_section_for_cu): Update.
9931 (create_all_comp_units): Update.
9932 (read_attribute_value): Update.
9933 (get_debug_line_section): Update.
9934 * dwarf2/index-cache.c (index_cache::store): Update.
9935 * dwarf2/index-write.c (save_gdb_index_command): Update.
9936 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9937
1859c670
SM
99382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9939
9940 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9941 member.
9942 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9943 dwarf2_per_cu_data::per_bfd.
9944 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9945 (create_type_unit_group): Likewise.
9946 (queue_comp_unit): Remove reference to
9947 per_cu->dwarf2_per_objfile.
9948 (maybe_queue_comp_unit): Likewise.
9949 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9950 (create_cus_hash_table): Assign new field.
9951
5e22e966
SM
99522020-05-27 Simon Marchi <simon.marchi@efficios.com>
9953
9954 * dwarf2/read.c: Replace
9955 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9956 dwarf2_cu->per_objfile throughout.
9957
97a1449a
SM
99582020-05-27 Simon Marchi <simon.marchi@efficios.com>
9959
9960 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9961 parameter, don't use per_cu->dwarf2_per_objfile.
9962 (dw2_instantiate_symtab): Likewise.
9963 (dw2_find_last_source_symtab): Update.
9964 (dw2_map_expand_apply): Update.
9965 (dw2_lookup_symbol): Update.
9966 (dw2_expand_symtabs_for_function): Update.
9967 (dw2_expand_all_symtabs): Update.
9968 (dw2_expand_symtabs_with_fullname): Update.
9969 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9970 don't use per_cu->dwarf2_per_objfile.
9971 (dw2_expand_marked_cus): Update.
9972 (dw2_find_pc_sect_compunit_symtab): Update.
9973 (dw2_debug_names_lookup_symbol): Update.
9974 (dw2_debug_names_expand_symtabs_for_function): Update.
9975 (dw2_debug_names_map_matching_symbols): Update.
9976 (dwarf2_psymtab::expand_psymtab): Update.
9977
9e021579
SM
99782020-05-27 Simon Marchi <simon.marchi@efficios.com>
9979
9980 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9981 <per_objfile>: New member.
9982 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9983 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9984 call to dwarf2_cu.
9985 (cutu_reader::cutu_reader): Update.
9986 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9987
ae090bdb
SM
99882020-05-27 Simon Marchi <simon.marchi@efficios.com>
9989
9990 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9991 struct dwarf2_per_objfile.
9992 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9993 dwarf2_per_bfd.
9994 * dwarf2/read.c (set_die_type): Update.
9995 (get_die_type_at_offset): Update.
9996
af758d11
SM
99972020-05-27 Tom Tromey <tom@tromey.com>
9998 Simon Marchi <simon.marchi@efficios.com>
9999
10000 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10001 method.
10002 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10003 get_symtab, set_symtab>: New methods.
10004 <m_symtabs>: New field.
10005 (struct dwarf2_psymtab): Derive from partial_symtab.
10006 <readin_p, get_compunit_symtab>: Declare methods.
10007 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10008 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10009 New methods.
10010 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10011 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10012 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10013 (dw2_symtab_iter_next, dw2_print_stats)
10014 (dw2_expand_symtabs_with_fullname)
10015 (dw2_expand_symtabs_matching_one)
10016 (dw_expand_symtabs_matching_file_matcher)
10017 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10018 (dw2_debug_names_iterator::next)
10019 (dw2_debug_names_map_matching_symbols)
10020 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10021 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10022 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10023 New methods.
10024 (get_compunit_symtab, process_full_comp_unit)
10025 (process_full_type_unit): Update.
10026 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10027
5989a64e
SM
100282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10029
10030 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10031 then introduce a new dwarf2_per_objfile type.
10032 <read_line_string>: Move to the new dwarf2_per_objfile type.
10033 <objfile>: Likewise.
10034 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10035 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10036 dwarf2_per_objfile->per_bfd.
10037 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10038 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10039 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10040 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10041 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10042 (dwarf2_per_objfile::locate_sections): Rename to...
10043 (dwarf2_per_bfd::locate_sections): ... this.
10044 (dwarf2_per_objfile::get_cutu): Rename to...
10045 (dwarf2_per_bfd::get_cutu): ... this.
10046 (dwarf2_per_objfile::get_cu): Rename to...
10047 (dwarf2_per_bfd::get_cu): ... this.
10048 (dwarf2_per_objfile::get_tu): Rename to...
10049 (dwarf2_per_bfd::get_tu): ... this.
10050 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10051 (dwarf2_per_bfd::allocate_per_cu): ... this.
10052 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10053 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10054 (get_gdb_index_contents_ftype): Change parameter from
10055 dwarf2_per_objfile to dwarf2_per_bfd.
10056 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10057 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10058
a50264ba
TT
100592020-05-27 Tom Tromey <tom@tromey.com>
10060 Simon Marchi <simon.marchi@efficios.com>
10061
10062 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10063 (allocate_piece_closure): Set "per_objfile" member.
10064 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10065 (locexpr_describe_location, loclist_describe_location): Use new
10066 member.
10067 * dwarf2/read.c (read_call_site_scope)
10068 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10069 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10070 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10071 handle_data_member_location): Set per_objfile member.
10072 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10073 member.
10074 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10075
d3473f0c
TT
100762020-05-27 Tom Tromey <tom@tromey.com>
10077
10078 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10079 allocate_signatured_type>: Declare new methods.
10080 <m_num_psymtabs>: New member.
10081 (struct dwarf2_per_cu_data) <index>: New member.
10082 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10083 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10084 (create_cu_from_index_list): Use allocate_per_cu.
10085 (create_signatured_type_table_from_index)
10086 (create_signatured_type_table_from_debug_names)
10087 (create_debug_type_hash_table, add_type_unit)
10088 (read_comp_units_from_section): Use allocate_signatured_type.
10089
5717c425
TT
100902020-05-27 Tom Tromey <tom@tromey.com>
10091
10092 * psymtab.c (partial_map_expand_apply)
10093 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10094 (psym_lookup_global_symbol_language)
10095 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10096 (psym_print_stats, psym_expand_symtabs_for_function)
10097 (psym_map_symbol_filenames, psym_map_matching_symbols)
10098 (psym_expand_symtabs_matching)
10099 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10100 (maintenance_check_psymtabs): Update.
10101 * psympriv.h (struct partial_symtab) <readin_p,
10102 get_compunit_symtab>: Add objfile parameter.
10103 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10104 Likewise.
10105 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10106 get_compunit_symtab>: Likewise.
10107 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10108
45940949
TT
101092020-05-27 Tom Tromey <tom@tromey.com>
10110
10111 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10112 member.
10113 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10114 (create_cu_from_index_list)
10115 (create_signatured_type_table_from_index)
10116 (create_signatured_type_table_from_debug_names)
10117 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10118 (dwarf2_create_include_psymtab)
10119 (create_debug_type_hash_table, add_type_unit)
10120 (create_type_unit_group, read_comp_units_from_section)
10121 (dwarf2_compute_name, create_cus_hash_table)
10122 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10123 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10124 obstack.
10125 (dw2_get_real_path): Likewise. Change argument to
10126 dwarf2_per_objfile.
10127
f8c6d152
LM
101282020-05-27 Luis Machado <luis.machado@linaro.org>
10129
10130 PR tdep/26000
10131 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10132 for ldrd (immediate).
10133
e98d2e6d
PW
101342020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10135
10136 * command.h: Add comment giving the name of class_tui.
10137 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10138 create the fake command for the help for class_tui.
10139
53a47a3e
TT
101402020-05-26 Tom Tromey <tromey@adacore.com>
10141
10142 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10143 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10144 (val_atr): New function.
10145 (value_val_atr): Use it.
10146 * ada-valprint.c (print_optional_low_bound): Change low bound
10147 handling for enums.
10148 (val_print_packed_array_elements): Don't call discrete_position.
10149 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10150 discrete_position for enum types.
10151 * language.c (default_print_array_index): Change type.
10152 * language.h (struct language_defn) <la_print_array_index>: Add
10153 index_type parameter, change type of index_value.
10154 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10155 (default_print_array_index): Update.
10156 * valprint.c (maybe_print_array_index): Don't call
10157 value_from_longest. Update.
10158 (value_print_array_elements): Don't call discrete_position.
10159
0bc2354b
TT
101602020-05-26 Tom Tromey <tromey@adacore.com>
10161
10162 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10163 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10164
1218a4bf
CDA
101652020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10166
10167 PR gdb/13519
10168 * avr-tdep.c (avr_integer_to_address): Return data or code
10169 address accordingly to the second 'type' argument of the
10170 function.
10171
92651b1d
MW
101722020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10173
10174 * infcmd.c, inferior.h: (construct_inferior_arguments):
10175 Moved function from here to gdbsupport/common-inferior.{h,cc}
10176
0a4f5f8c
TT
101772020-05-23 Tom Tromey <tom@tromey.com>
10178
10179 Revert commit eca1f90c:
10180 * NEWS: Remove entry for completion styling.
10181 * completer.c (_rl_completion_prefix_display_length): Move
10182 declaration later.
10183 (gdb_fnprint): Revert.
10184 (gdb_display_match_list_1): Likewise.
10185 * cli/cli-style.c (completion_prefix_style)
10186 (completion_difference_style, completion_suffix_style): Remove.
10187 (_initialize_cli_style): Revert.
10188 * cli/cli-style.h (completion_prefix_style)
10189 (completion_difference_style, completion_suffix_style): Don't
10190 declare.
10191
e08bd6c5
PA
101922020-05-24 Pedro Alves <palves@redhat.com>
10193
10194 * symtab.c (completion_list_add_name): Return boolean indication
10195 of whether the symbol matched.
10196 (completion_list_add_symbol): Don't try to remove C++ aliases if
10197 the symbol didn't match in the first place.
10198 * symtab.h (completion_list_add_name): Return bool.
10199
ceacbf6e
SM
102002020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10201
10202 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10203 type::field.
10204
26f16254
JB
102052020-05-23 Joel Brobecker <brobecker@adacore.com>
10206
10207 GDB 9.2 released.
10208
eca1f90c
TT
102092020-05-23 Tom Tromey <tom@tromey.com>
10210
10211 * NEWS: Add entry for completion styling.
10212 * completer.c (_rl_completion_prefix_display_length): Move
10213 declaration earlier.
10214 (gdb_fnprint): Use completion_style.
10215 (gdb_display_match_list_1): Likewise.
10216 * cli/cli-style.c (completion_prefix_style)
10217 (completion_difference_style, completion_suffix_style): New
10218 globals.
10219 (_initialize_cli_style): Register new globals.
10220 * cli/cli-style.h (completion_prefix_style)
10221 (completion_difference_style, completion_suffix_style): Declare.
10222
51e2cfa2
PA
102232020-05-23 Pedro Alves <palves@redhat.com>
10224
10225 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10226 (parse_escape): Use ISDIGIT instead of isdigit.
10227 (puts_debug): Use gdb_isprint instead of isprint.
10228 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10229 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10230 ISSPACE instead of isspace.
10231 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10232 instead of isspace.
10233 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10234 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10235 instead of isxdigit and ISDIGIT instead of isdigit.
10236
80fc5e77
SM
102372020-05-22 Simon Marchi <simon.marchi@efficios.com>
10238
10239 * gdbtypes.h (struct type) <field>: New method.
10240 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10241 or type::field.
10242
3cabb6b0
SM
102432020-05-22 Simon Marchi <simon.marchi@efficios.com>
10244
10245 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10246 (TYPE_FIELDS): Use type::fields. Change all call sites that
10247 modify the propery to use type::set_fields instead.
10248
1f704f76
SM
102492020-05-22 Simon Marchi <simon.marchi@efficios.com>
10250
10251 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10252 type::num_fields instead.
10253
5e33d5f4
SM
102542020-05-22 Simon Marchi <simon.marchi@efficios.com>
10255
10256 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10257 methods.
10258 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10259 that modify the number of fields to use type::set_num_fields
10260 instead.
10261
9392ebb3
TT
102622020-05-22 Tom Tromey <tromey@adacore.com>
10263
10264 * compile/compile-object-load.h (munmap_list_free): Don't
10265 declare.
10266
7c13f4e8
AB
102672020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10268
10269 * annotate.c (annotate_source_line): Update return type, add call
10270 to update current symtab and line.
10271 * annotate.h (annotate_source_line): Update return type, and
10272 extend header comment.
10273 * source.c (info_line_command): Check annotation_level before
10274 calling annotate_source_line.
10275 * stack.c (print_frame_info): If calling annotate_source_line
10276 returns true, then don't print any other source line information.
10277
aa370940
SM
102782020-05-21 Simon Marchi <simon.marchi@efficios.com>
10279
10280 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10281
84d53fa9
SM
102822020-05-21 Simon Marchi <simon.marchi@efficios.com>
10283
10284 * coffread.c (patch_type): Remove NULL check before xfree.
10285 * corefile.c (set_gnutarget): Likewise.
10286 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10287 * exec.c (build_section_table): Likewise.
10288 * remote.c (remote_target::pass_signals): Likewise.
10289 * utils.c (n_spaces): Likewise.
10290 * cli/cli-script.c (document_command): Likewise.
10291 * i386-windows-tdep.c (core_process_module_section): Likewise.
10292 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10293
9d428aae
SM
102942020-05-20 Simon Marchi <simon.marchi@efficios.com>
10295
10296 * symfile.c (reread_symbols): Clear objfile's section_offsets
10297 vector and section indices, re-compute them by calling
10298 sym_offsets.
10299
250106a7
TT
103002020-05-20 Tom Tromey <tromey@adacore.com>
10301
10302 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10303 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10304
9a0bacfb
TV
103052020-05-20 Tom de Vries <tdevries@suse.de>
10306
10307 PR symtab/25833
10308 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10309
7b958a48
AM
103102020-05-20 Alan Modra <amodra@gmail.com>
10311
10312 PR 25993
10313 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10314 bfd_set_filename.
10315 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10316 passed to bfd_set_filename.
10317 * symfile-mem.c (add_vsyscall_page): Likewise for string
10318 passed to symbol_file_add_from_memory.
10319 (symbol_file_add_from_memory): Make name param a const char* and
10320 don't strdup.
10321
c7e97679
AM
103222020-05-20 Alan Modra <amodra@gmail.com>
10323
10324 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10325 rather than accessing bfd->filename directly.
10326 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10327 and use bfd_section_name.
10328 * dwarf2/frame.c (decode_frame_entry): Likewise.
10329 * exec.c (exec_set_section_address): Likewise.
10330 * solib-aix.c (solib_aix_bfd_open): Likewise.
10331 * stap-probe.c (get_stap_base_address): Likewise.
10332 * symfile.c (reread_symbols): Likewise.
10333
563c591b
TT
103342020-05-19 Tom Tromey <tromey@adacore.com>
10335
10336 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10337
f408d82c
SM
103382020-05-19 Simon Marchi <simon.marchi@efficios.com>
10339
10340 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10341
98c59b52
PA
103422020-05-19 Pedro Alves <palves@redhat.com>
10343
10344 * NEWS (set exec-file-mismatch): Adjust entry.
10345 * exec.c: Include "build-id.h".
10346 (validate_exec_file): Try to match build IDs instead of filenames.
10347 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10348 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10349 and pass down 'warn_if_slow'.
10350 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10351 gdb_bfd_open_closure to pass it down.
10352 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10353
4111f652
PA
103542020-05-19 Pedro Alves <palves@redhat.com>
10355
10356 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10357 * target.c (target_fileio_open_1): Rename to target_fileio_open
10358 and make extern. Use bool.
10359 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10360 (target_fileio_read_alloc_1): Adjust.
10361 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10362 (target_fileio_open_warn_if_slow): Delete declaration.
10363
ad80db5b
PA
103642020-05-19 Pedro Alves <palves@redhat.com>
10365
10366 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10367 Adjust all callers.
10368
1d6ce4d3
YS
103692020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10370
10371 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10372 whether disp is negative.
10373
9005fbbb
SM
103742020-05-19 Simon Marchi <simon.marchi@efficios.com>
10375
10376 * symfile.h (struct symfile_segment_data)
10377 <~symfile_segment_data>: Remove.
10378 <segment_info>: Change to std::vector.
10379 * symfile.c (default_symfile_segments): Update.
10380 * elfread.c (elf_symfile_segments): Update.
10381
68b888ff
SM
103822020-05-19 Simon Marchi <simon.marchi@efficios.com>
10383
10384 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10385 <segments>: New.
10386 <segment_bases, segment_sizes>: Remove.
10387 * symfile.c (default_symfile_segments): Update.
10388 * elfread.c (elf_symfile_segments): Update.
10389 * remote.c (remote_target::get_offsets): Update.
10390 * solib-target.c (solib_target_relocate_section_addresses):
10391 Update.
10392
62982abd
SM
103932020-05-19 Simon Marchi <simon.marchi@efficios.com>
10394
10395 * symfile.h (struct symfile_segment_data): Initialize fields.
10396 <~symfile_segment_data>: Add.
10397 (symfile_segment_data_up): New.
10398 (struct sym_fns) <sym_segments>: Return a
10399 symfile_segment_data_up.
10400 (default_symfile_segments): Return a symfile_segment_data_up.
10401 (free_symfile_segment_data): Remove.
10402 (get_symfile_segment_data): Return a symfile_segment_data_up.
10403 * symfile.c (default_symfile_segments): Likewise.
10404 (get_symfile_segment_data): Likewise.
10405 (free_symfile_segment_data): Remove.
10406 (symfile_find_segment_sections): Update.
10407 * elfread.c (elf_symfile_segments): Return a
10408 symfile_segment_data_up.
10409 * remote.c (remote_target::get_offsets): Update.
10410 * solib-target.c (solib_target_relocate_section_addresses):
10411 Update.
10412 * symfile-debug.c (debug_sym_segments): Return a
10413 symfile_segment_data_up.
10414
7f204339
RO
104152020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10416
e52a0f1b
RO
10417 PR build/25981
10418 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10419 Hardcode register numbers.
10420
7f204339
RO
10421 PR build/25981
10422 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10423 procfs_find_LDT_entry): Remove.
10424 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10425 procfs_find_LDT_entry): Remove.
10426 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10427 Remove.
10428
7f32a4d5
PA
104292020-05-17 Pedro Alves <palves@redhat.com>
10430 Andrew Burgess <andrew.burgess@embecosm.com>
10431 Keno Fischer <keno@juliacomputing.com>
10432
10433 PR gdb/25741
10434 * breakpoint.c (build_target_condition_list): Update comments.
10435 (build_target_command_list): Update comments and skip matching
10436 locations.
10437 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10438 a separate function. Simplify "set breakpoint auto-hw off"
10439 handling.
10440 (insert_breakpoints): Update comment.
10441 (tracepoint_locations_match): New parameter. For breakpoints,
10442 compare location types too, if the caller wants to.
10443 (handle_automatic_hardware_breakpoints): New functions.
10444 (bp_location_is_less_than): Also sort by location type and
10445 hardware breakpoint length.
10446 (update_global_location_list): Handle "set breakpoint auto-hw on"
10447 here.
10448 (update_breakpoint_locations): Ask breakpoint_locations_match to
10449 ignore location types.
10450
7d93a1e0
SM
104512020-05-16 Simon Marchi <simon.marchi@efficios.com>
10452
10453 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10454 type::name instead.
10455
d0e39ea2
SM
104562020-05-16 Simon Marchi <simon.marchi@efficios.com>
10457
10458 * gdbtypes.h (struct type) <name, set_name>: New methods.
10459 (TYPE_CODE): Use type::name. Change all call sites used to set
10460 the name to use type::set_name instead.
10461
2dab0c7b
TT
104622020-05-16 Tom Tromey <tom@tromey.com>
10463
10464 * top.c (quit_force): Update.
10465 * infrun.c (handle_no_resumed): Update.
10466 * top.h (all_uis): New function.
10467 (ALL_UIS): Remove.
10468
59f7bd8d
SM
104692020-05-16 Simon Marchi <simon.marchi@efficios.com>
10470
10471 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10472
9bf058f0
PA
104732020-05-16 Pedro Alves <palves@redhat.com>
10474
10475 * ia64-linux-nat.c
10476 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10477 Declare method.
10478 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10479
8f86ae1a
SM
104802020-05-15 Simon Marchi <simon.marchi@efficios.com>
10481
10482 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10483 (sparc64_adi_info): Likewise.
10484
d6bc0792
TT
104852020-05-15 Tom Tromey <tom@tromey.com>
10486
10487 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10488 block_objfile.
10489 (lookup_objfile_from_block): Remove.
10490 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10491 (lookup_global_symbol): Use block_objfile.
10492 * symtab.h (lookup_objfile_from_block): Don't declare.
10493 * printcmd.c (clear_dangling_display_expressions): Use
10494 block_objfile.
10495 * parse.c (operator_check_standard): Use block_objfile.
10496
8c14c3a3
TT
104972020-05-15 Tom Tromey <tom@tromey.com>
10498
10499 * language.c (language_alloc_type_symbol): Set
10500 SYMBOL_SECTION.
10501 * symtab.c (initialize_objfile_symbol): Remove.
10502 (allocate_symbol): Remove.
10503 (allocate_template_symbol): Remove.
10504 * dwarf2/read.c (fixup_go_packaging): Use "new".
10505 (new_symbol): Use "new".
10506 (read_variable): Don't call initialize_objfile_symbol. Use
10507 "new".
10508 (read_func_scope): Use "new".
10509 * xcoffread.c (process_xcoff_symbol): Don't call
10510 initialize_objfile_symbol.
10511 (SYMBOL_DUP): Remove.
10512 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10513 "new".
10514 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10515 (allocate_template_symbol): Don't declare.
10516 (struct symbol): Add copy constructor. Change defaults.
10517 * jit.c (finalize_symtab): Use "new".
10518 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10519 Use "new".
10520 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10521 (common_block_end): Use "new".
10522 * mdebugread.c (parse_symbol): Use "new".
10523 (new_symbol): Likewise.
10524
5b4a1a8d
PW
105252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10526
10527 * NEWS: Mention changes to help and apropos.
10528
57b4f16e
PW
105292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10530
10531 * command.h (enum command_class): Improve comments, document
10532 that class_alias is for user-defined aliases, give the class
10533 name for each class, remove unused class_xdb.
10534 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10535 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10536 by a precise class.
10537 * infcmd.c (_initialize_infcmd): Likewise.
10538 * reverse.c (_initialize_reverse): Likewise.
10539 * stack.c (_initialize_stack): Likewise.
10540 * symfile.c (_initialize_symfile): Likewise.
10541 * tracepoint.c (_initialize_tracepoint): Likewise.
10542
7c05caf7
PW
105432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10544
10545 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10546 when their aliased command is traversed.
10547 (help_cmd): Add fput_command_names_styled call to
10548 output command name and aliases when command has an alias.
10549
3b3aaacb
PW
105502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10551
10552 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10553 * cli/cli-decode.c (help_cmd_list): Declare as static,
10554 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10555 a command together with the command.
10556 (fput_command_name_styled, fput_command_names_styled): New functions.
10557 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10558 fput_command_name_styled.
10559 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10560 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10561
7aa1b46f
PW
105622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10563
10564 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10565 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10566 * command.h (cmd_show_list): Likewise.
10567 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10568 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10569
89bcba74
PW
105702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10571
10572 * unittests/command-def-selftests.c (traverse_command_structure):
10573 Verify all commands of a list have the same prefix command and
10574 that only the top cmdlist commands have a null prefix.
10575
3f4d92eb
PW
105762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10577
10578 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10579 as prefix, not one of its aliases.
10580 (set_cmd_prefix): Remove.
10581 (do_add_cmd): Centralize the setting of the prefix of a command, when
10582 command is defined after its full chain of prefix commands.
10583 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10584 (add_setshow_cmd_full): Likewise.
10585 (update_prefix_field_of_prefixed_commands): New function.
10586 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10587 update_prefix_field_of_prefixed_commands.
10588 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10589 addresses of remote_set_cmdlist and remote_show_cmdlist given
10590 as argument, not the address of an argument.
10591 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10592 * gdb/remote.c (_initialize_remote): Likewise.
10593
0605465f
PW
105942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10595
10596 * cli/cli-cmds.c (alias_command): Check for an existing alias
10597 using lookup_cmd_composition, as valid_command_p is too strict
10598 and forbids aliases that are the prefix of an existing alias
10599 or command.
10600 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10601 command is properly recognised as a valid command.
10602
58e6ac70
PW
106032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10604
10605 * unittests/help-doc-selftests.c: Rename to
10606 unittests/command-def-selftests.c
10607 * unittests/command-def-selftests.c (help_doc_tests): Update some
10608 comments.
10609 (command_structure_tests, traverse_command_structure): New namespace
10610 and function.
10611 (command_structure_invariants_tests): New function.
10612 (_initialize_command_def_selftests) Renamed from
10613 _initialize_help_doc_selftests, register command_structure_invariants
10614 selftest.
10615
a7b9ceb8
PW
106162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10617
10618 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10619 an alias of 'show'.
10620
b2188a06
JB
106212020-05-15 Joel Brobecker <brobecker@adacore.com>
10622
10623 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10624 ada_is_fixed_point_type. Update all callers.
10625 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10626 all callers.
10627 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10628 Update all callers.
10629 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10630 print_fixed_point_type. Update all callers.
10631 * ada-valprint.c (ada_value_print_num): Replace call to
10632 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10633
a51951c2
KB
106342020-05-14 Kevin Buettner <kevinb@redhat.com>
10635
10636 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10637 processors.
10638 (cpu_supports_bts): Add CV_AMD case.
10639
29d6859f
LM
106402020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10641 Simon Marchi <simon.marchi@efficios.com>
10642
10643 * infrun.c (stop_all_threads): Collect multiple wait events at
10644 each pass.
10645
78134374
SM
106462020-05-14 Simon Marchi <simon.marchi@efficios.com>
10647
10648 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10649 type::code instead.
10650
67607e24
SM
106512020-05-14 Simon Marchi <simon.marchi@efficios.com>
10652
10653 * gdbtypes.h (struct type) <code, set_code>: New methods.
10654 (TYPE_CODE): Use type::code. Change all call sites used to set
10655 the code to use type::set_code instead.
10656
a05575d3
TBA
106572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10658 Tom de Vries <tdevries@suse.de>
10659 Pedro Alves <palves@redhat.com>
10660
10661 PR threads/25478
10662 * infrun.c (stop_all_threads): Do NOT ignore
10663 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10664 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10665 received.
10666 (handle_no_resumed): Remove code handling a live inferior with no
10667 threads.
10668 * remote.c (has_single_non_exited_thread): New.
10669 (remote_target::update_thread_list): Do not delete a thread if is
10670 the last thread of the process.
10671 * thread.c (thread_select): Call delete_exited_threads instead of
10672 prune_threads.
10673
6ad82919
TBA
106742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10675
10676 * infrun.c (stop_all_threads): Enable/disable thread events of all
10677 targets. Move a debug message denoting the end of the function
10678 into the SCOPED_EXIT block.
10679
d890404b
TBA
106802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10681
10682 * process-stratum-target.h: Include <set>.
10683 (all_non_exited_process_targets, switch_to_target_no_thread): New
10684 function declarations.
10685 * process-stratum-target.c (all_non_exited_process_targets)
10686 (switch_to_target_no_thread): New function implementations.
10687
293b3ebc
TBA
106882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10689
10690 * infrun.c (handle_inferior_event): Extract out a piece of code
10691 into...
10692 (mark_non_executing_threads): ...this new function.
10693
7ca9b62a
TBA
106942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10695
10696 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10697 use.
10698
fc75c28b
TBA
106992020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10700
10701 * regcache.c (regcache_read_pc_protected): New function
10702 implementation that returns 0 if the PC cannot read via
10703 'regcache_read_pc'.
10704 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10705 instead of 'regcache_read_pc'.
10706 (keep_going_pass_signal): Ditto.
10707
a89febbd
TT
107082020-05-13 Tom Tromey <tromey@adacore.com>
10709
10710 * ada-lang.c (align_value): Remove.
10711 (ada_template_to_fixed_record_type_1): Use align_up.
10712
f7e23710
TBA
107132020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10714
10715 * async-event.c: Update the copyright year.
10716 * async-event.h: Update the copyright year.
10717
02ff80c2
SM
107182020-05-12 Simon Marchi <simon.marchi@efficios.com>
10719
10720 * objfiles.h (is_addr_in_objfile,
10721 shared_objfile_contains_address_p): Return bool.
10722 * objfile.c (is_addr_in_objfile,
10723 shared_objfile_contains_address_p): Return bool.
10724
4fd6c7e8
TT
107252020-05-11 Tom Tromey <tromey@adacore.com>
10726
10727 * cli/cli-cmds.c (info_command): Restore.
10728 (_initialize_cli_cmds): Use add_prefix_command for "info".
10729 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10730
5eb68a39
TT
107312020-05-11 Tom Tromey <tromey@adacore.com>
10732
10733 * ada-lang.c (ada_value_primitive_field): Now public.
10734 * ada-lang.h (ada_value_primitive_field): Declare.
10735 * ada-valprint.c (print_field_values): Use
10736 ada_value_primitive_field for wrapper fields.
10737
7666722f
TV
107382020-05-11 Tom de Vries <tdevries@suse.de>
10739
10740 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10741 MODULE_DOMAIN.
10742
3ee6bb11
TV
107432020-05-11 Tom de Vries <tdevries@suse.de>
10744
10745 PR symtab/25941
10746 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10747 with length 0, if not gdb-produced.
10748 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10749
43434996
TV
107502020-05-09 Tom de Vries <tdevries@suse.de>
10751
10752 PR gdb/25955
10753 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10754 calculation.
10755
2f78cffc
TT
107562020-05-09 Tom Tromey <tom@tromey.com>
10757
10758 * top.c (server_command): Now bool.
10759 * top.h (server_command): Now bool.
10760
4f7bc5ed
TT
107612020-05-08 Tom Tromey <tromey@adacore.com>
10762
10763 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10764 already being processed.
10765
8be4b118
TT
107662020-05-08 Tom Tromey <tom@tromey.com>
10767
10768 * printcmd.c (struct display) <next>: Remove.
10769 <display>: New constructor.
10770 <exp_string>: Now a std::string.
10771 <enabled_p>: Now a bool.
10772 (display_number): Move definition earlier.
10773 (displays): Rename from display_chain. Now a std::vector.
10774 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10775 (display_command): Update.
10776 (do_one_display, disable_display)
10777 (enable_disable_display_command, do_enable_disable_display):
10778 Update.
10779 (free_display): Remove.
10780 (clear_displays): Rewrite.
10781 (delete_display): Update.
10782 (map_display_numbers): Use function_view. Remove "data"
10783 parameter. Update.
10784 (do_delete_display): Remove.
10785 (undisplay_command): Update.
10786 (do_one_display, do_displays, disable_display)
10787 (info_display_command): Update.
10788 (do_enable_disable_display): Remove.
10789 (enable_disable_display_command)
10790 (clear_dangling_display_expressions): Update.
10791
94c93c35
TT
107922020-05-08 Tom Tromey <tom@tromey.com>
10793
10794 * symtab.c (set_symbol_cache_size)
10795 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10796 (maintenance_print_symbol_cache_statistics): Update.
10797 * symmisc.c (print_symbol_bcache_statistics)
10798 (print_objfile_statistics, maintenance_print_objfiles)
10799 (maintenance_info_symtabs, maintenance_check_symtabs)
10800 (maintenance_expand_symtabs, maintenance_info_line_tables):
10801 Update.
10802 * symfile-debug.c (set_debug_symfile): Update.
10803 * source.c (forget_cached_source_info): Update.
10804 * python/python.c (gdbpy_progspaces): Update.
10805 * psymtab.c (maintenance_info_psymtabs): Update.
10806 * probe.c (parse_probes): Update.
10807 * linespec.c (iterate_over_all_matching_symtabs)
10808 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10809 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10810 * exec.c (exec_target::close): Update.
10811 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10812 * breakpoint.c (print_one_breakpoint_location)
10813 (create_longjmp_master_breakpoint)
10814 (create_std_terminate_master_breakpoint): Update.
10815 * progspace.c (program_spaces): Now a std::vector.
10816 (maybe_new_address_space): Update.
10817 (add_program_space): Remove.
10818 (program_space::program_space): Update.
10819 (remove_program_space): Update.
10820 (number_of_program_spaces): Remove.
10821 (print_program_space, update_address_spaces): Update.
10822 * progspace.h (program_spaces): Change type.
10823 (ALL_PSPACES): Remove.
10824 (number_of_program_spaces): Don't declare.
10825 (struct program_space) <next>: Remove.
10826
a1fd1ac9
TT
108272020-05-08 Tom Tromey <tom@tromey.com>
10828
10829 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10830 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10831 (enable_break): Update.
10832 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10833 (frv_fdpic_find_canonical_descriptor): Update.
10834 (frv_fetch_objfile_link_map): Update.
10835 * progspace.c (program_space::free_all_objfiles): Update.
10836 (program_space::solibs): New method.
10837 * progspace.h (struct program_space) <solibs>: New method.
10838 * solist.h (master_so_list): Don't declare.
10839 (ALL_SO_LIBS): Remove.
10840 * solib.h (so_list_head): Remove.
10841 (update_solib_list): Update comment.
10842 * solib.c (master_so_list): Remove.
10843 (solib_used, update_solib_list, solib_add)
10844 (info_sharedlibrary_command, clear_solib)
10845 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10846
38eae084
TT
108472020-05-08 Tom Tromey <tom@tromey.com>
10848
10849 * extension.c (extension_languages): Now a std::array.
10850 (ALL_EXTENSION_LANGUAGES): Remove.
10851 (get_ext_lang_defn, get_ext_lang_of_file)
10852 (eval_ext_lang_from_control_command): Update.
10853 (finish_ext_lang_initialization)
10854 (auto_load_ext_lang_scripts_for_objfile)
10855 (ext_lang_type_printers::ext_lang_type_printers)
10856 (apply_ext_lang_type_printers)
10857 (ext_lang_type_printers::~ext_lang_type_printers)
10858 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10859 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10860 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10861 (get_matching_xmethod_workers, ext_lang_colorize)
10862 (ext_lang_before_prompt): Update.
10863 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10864
596dc4ad
TT
108652020-05-08 Tom Tromey <tom@tromey.com>
10866
10867 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10868 overload.
10869 <swap_string, m_string>: Remove.
10870 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10871 Update.
10872 * stabsread.c (define_symbol, read_type): Update.
10873 * linespec.c (find_linespec_symbols): Update.
10874 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10875 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10876 * dbxread.c (read_dbx_symtab): Update.
10877 * cp-support.h (cp_canonicalize_string_full)
10878 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10879 Return unique_xmalloc_ptr.
10880 * cp-support.c (inspect_type): Update.
10881 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10882 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10883 Likewise.
10884 * c-typeprint.c (print_name_maybe_canonical): Update.
10885 * break-catch-throw.c (check_status_exception_catchpoint):
10886 Update.
10887
bf4cb9be
TV
108882020-05-08 Tom de Vries <tdevries@suse.de>
10889
10890 * infrun.c (follow_fork): Copy current_line and current_symtab to
10891 child thread.
10892
a1b68f28
SM
108932020-05-07 Simon Marchi <simon.marchi@efficios.com>
10894
10895 * async-event.c (struct async_signal_handler, struct
10896 async_event_handler): Reformat, remove typedef.
10897
98d48915
SM
108982020-05-07 Simon Marchi <simon.marchi@efficios.com>
10899
10900 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10901 access thistype->main_type->dyn_prop_list directly.
10902
7aa91313
SM
109032020-05-07 Simon Marchi <simon.marchi@efficios.com>
10904
10905 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10906 (remove_dyn_prop): Remove. Update all users to use
10907 type::remove_dyn_prop.
10908 * gdbtypes.c (remove_dyn_prop): Rename to...
10909 (type::remove_dyn_prop): ... this.
10910
5c54719c
SM
109112020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10912
10913 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10914 (add_dyn_prop): Remove. Update all users to use
10915 type::add_dyn_prop.
10916 * gdbtypes.c (add_dyn_prop): Rename to...
10917 (type::add_dyn_prop): ... this.
10918
24e99c6c
SM
109192020-05-07 Simon Marchi <simon.marchi@efficios.com>
10920
10921 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10922 (get_dyn_prop): Remove. Update all users to use
10923 type::dyn_prop.
10924 * gdbtypes.c (get_dyn_prop): Rename to...
10925 (type::dyn_prop): ... this.
10926
0d4bf016
SM
109272020-05-06 Simon Marchi <simon.marchi@efficios.com>
10928
10929 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10930
ac4a4f1c
SM
109312020-05-06 Simon Marchi <simon.marchi@efficios.com>
10932
10933 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10934 instruction, skip it if it's there.
10935
a3bbacc1
SM
109362020-05-05 Simon Marchi <simon.marchi@efficios.com>
10937
10938 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10939
c3236f84
SM
109402020-05-04 Simon Marchi <simon.marchi@efficios.com>
10941
10942 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10943 * gdbtypes.c (recursive_dump_type): Remove use of
10944 TYPE_INCOMPLETE.
10945
3b6acaee
TT
109462020-05-03 Tom Tromey <tom@tromey.com>
10947
10948 * breakpoint.c (catch_command, tcatch_command): Remove.
10949 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10950 add_show_prefix_cmd.
10951 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10952 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10953 Remove.
10954 (add_internal_problem_command): Use add_basic_prefix_cmd,
10955 add_show_prefix_cmd.
10956 * mips-tdep.c (set_mipsfpu_command): Remove.
10957 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10958 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10959 (_initialize_index_cache): Use add_basic_prefix_cmd.
10960 * memattr.c (dummy_cmd): Remove.
10961 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10962 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10963 (_initialize_tui_win): Use add_basic_prefix_cmd,
10964 add_show_prefix_cmd.
10965 * cli/cli-logging.c (set_logging_command): Remove.
10966 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10967 add_show_prefix_cmd.
10968 (show_logging_command): Remove.
10969 * target.c (target_command): Remove.
10970 (add_target): Use add_basic_prefix_cmd.
10971
a51119cd
HD
109722020-05-02 Hannes Domani <ssbssa@yahoo.de>
10973
10974 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10975
652fc23a 109762020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10977
652fc23a
PW
10978 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10979 info_command.
10980
117539e6
KR
109812020-04-30 Kamil Rytarowski <n54@gmx.com>
10982
10983 * nbsd-nat.c (nbsd_enable_proc_events)
10984 (nbsd_nat_target::post_startup_inferior): Add.
10985 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10986 (nbsd_nat_target::update_thread_list): Rewrite.
10987 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10988 "PTRACE_LWP_CREATE".
10989 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10990
102e38eb 109912020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10992
102e38eb
PW
10993 * stack.c (_initialize_stack): Remove duplicated creation
10994 of "frame" command and "f" alias.
10995
ee9d1e5f
HD
109962020-04-30 Hannes Domani <ssbssa@yahoo.de>
10997
10998 PR gdb/18706
10999 * gdbtypes.c (check_typedef): Calculate size of array of
11000 stubbed type.
11001
627c7fb8
HD
110022020-04-30 Hannes Domani <ssbssa@yahoo.de>
11003
11004 PR gdb/15559
11005 * i386-tdep.c (i386_push_dummy_call): Call
11006 i386_thiscall_push_dummy_call.
11007 (i386_thiscall_push_dummy_call): New function.
11008 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11009 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11010 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11011
ffc2844e
SM
110122020-04-29 Simon Marchi <simon.marchi@efficios.com>
11013
11014 * gdbarch.sh (do_read): Add shellcheck disable directive for
11015 warning SC2162.
11016
1207375d
SM
110172020-04-29 Simon Marchi <simon.marchi@efficios.com>
11018
11019 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11020 "referenced but not assigned" warning.
11021
9fdb2916
SM
110222020-04-29 Simon Marchi <simon.marchi@efficios.com>
11023
11024 * gdbarch.sh: Remove code that sets fallbackdefault.
11025
759cea5e
SM
110262020-04-29 Simon Marchi <simon.marchi@efficios.com>
11027
11028 * gdbarch.sh: Use shell operators && and || instead of
11029 -a and -o.
11030
cb02ab24
SM
110312020-04-29 Simon Marchi <simon.marchi@efficios.com>
11032
11033 * gdbarch.sh: Use $(...) instead of `...`.
11034
a6fc5ffc
SM
110352020-04-29 Simon Marchi <simon.marchi@efficios.com>
11036
11037 * gdbarch.sh: Use double quotes around variables.
11038
8d113d13
SM
110392020-04-29 Simon Marchi <simon.marchi@efficios.com>
11040
11041 * gdbarch.sh: Use %s with printf, instead of variables in the
11042 format string.
11043
ed6acedd
TT
110442020-04-29 Tom Tromey <tromey@adacore.com>
11045
11046 PR ada/25875:
11047 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11048 type fields here.
11049 (read_enumeration_type): Call
11050 update_enumeration_type_from_children later. Update comments.
11051 (process_enumeration_scope): Don't create type fields.
11052
b68b1b58
KR
110532020-04-29 Kamil Rytarowski <n54@gmx.com>
11054
11055 * nbsd-tdep.c: Include "xml-syscall.h".
11056 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11057
f94b2e03
KR
110582020-04-29 Kamil Rytarowski <n54@gmx.com>
11059
11060 * nbsd-nat.c: Include "sys/wait.h".
11061 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11062 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11063 (nbsd_nat_target::remove_exec_catchpoint)
11064 (nbsd_nat_target::set_syscall_catchpoint): Add.
11065 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11066 (nbsd_nat_target::insert_exec_catchpoint)
11067 (nbsd_nat_target::remove_exec_catchpoint)
11068 (nbsd_nat_target::set_syscall_catchpoint): Add.
11069 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11070 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11071 `nbsd_get_syscall_number'.
11072
fc49bc72
TT
110732020-04-29 Tom Tromey <tom@tromey.com>
11074
11075 * stack.c (print_block_frame_labels): Remove.
11076
d642b692
HD
110772020-04-29 Hannes Domani <ssbssa@yahoo.de>
11078
11079 PR gdb/17320
11080 * ada-valprint.c (val_print_packed_array_elements): Move array
11081 end bracket to new line.
11082 (ada_val_print_string): Remove extra spaces before first array
11083 element.
11084 * c-valprint.c (c_value_print_array): Likewise.
11085 * m2-valprint.c (m2_print_array_contents): Likewise.
11086 (m2_value_print_inner): Likewise.
11087 * p-valprint.c (pascal_value_print_inner): Likewise.
11088 * valprint.c (generic_val_print_array): Likewise.
11089 (value_print_array_elements): Move first array element and array
11090 end bracket to new line.
11091
ea90f227
TV
110922020-04-29 Tom de Vries <tdevries@suse.de>
11093
11094 PR symtab/25889
11095 * linespec.c (find_method): Fix ix calculation.
11096
4498ef4f
KR
110972020-04-28 Kamil Rytarowski <n54@gmx.com>
11098
11099 * syscalls/update-netbsd.sh: New file.
11100 * syscalls/netbsd.xml: Regenerate.
11101 * data-directory/Makefile.in: Register `netbsd.xml' in
11102 `SYSCALLS_FILES'.
11103
a55e30b5
SM
111042020-04-28 Simon Marchi <simon.marchi@efficios.com>
11105
11106 * syscalls/update-freebsd.sh: Add double quotes.
11107
2b2fbab8
TT
111082020-04-28 Tom Tromey <tom@tromey.com>
11109
11110 * NEWS: Update.
11111 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11112 (cmdpy_init): Allow class_tui.
11113
a65189c9
TV
111142020-04-28 Mark Williams <mark@myosotissp.com>
11115
11116 PR gdb/24480
11117 * dwarf2read.c: Add missing assingments to list_in_scope when
11118 start_symtab was already called.
11119
1b95cdb7
SM
111202020-04-28 Simon Marchi <simon.marchi@efficios.com>
11121
11122 PR gdb/25881
11123 * dwarf2/read.c (offset_map_type): Use
11124 gdb:hash_enum<sect_offset> as hash function.
11125
15cd93d0
TV
111262020-04-28 Tom de Vries <tdevries@suse.de>
11127
11128 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11129 with DW_AT_signature.
11130
1eb39914
SM
111312020-04-27 Simon Marchi <simon.marchi@efficios.com>
11132
11133 * configure.ac: Remove check for fs_base/gs_base in
11134 user_regs_struct.
11135 * configure: Re-generate.
11136 * config.in: Re-generate.
11137 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11138 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11139 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11140
991a3e2e
LM
111412020-04-27 Luis Machado <luis.machado@linaro.org>
11142
11143 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11144 problematic inline frame unwinding situation.
11145 * frame.c (frame_id_computed_p): New function.
11146 * frame.h (frame_id_computed_p): New prototype.
11147
361ba0e8
TT
111482020-04-26 Tom Tromey <tom@tromey.com>
11149
11150 * command.h (enum command_class) <class_pseudo>: Remove.
11151
bc3609fd
PW
111522020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11153
11154 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11155 and whitespace.
11156
b9771db7
KR
111572020-04-25 Kamil Rytarowski <n54@gmx.com>
11158
ec16513e
SM
11159 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11160 `PT_GET_PROCESS_STATE' block.
b9771db7 11161
7151c1af
TT
111622020-04-24 Tom Tromey <tom@tromey.com>
11163
11164 * symtab.h (symbol_get_demangled_name): Don't declare.
11165 * symtab.c (symbol_get_demangled_name): Remove.
11166 (general_symbol_info::natural_name)
11167 (general_symbol_info::demangled_name): Update.
11168
906bb4c5
TT
111692020-04-24 Tom Tromey <tom@tromey.com>
11170
11171 PR rust/25025:
11172 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11173
bcfe6157
TT
111742020-04-24 Tom Tromey <tom@tromey.com>
11175
11176 PR symtab/12707:
11177 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11178 exists.
11179 (new_symbol): Likewise.
11180 * compile/compile-object-load.c (get_out_value_type): Use
11181 symbol_matches_search_name.
11182
f049a313
TT
111832020-04-24 Tom Tromey <tom@tromey.com>
11184
11185 * dwarf2/read.c (add_partial_symbol): Do not call
11186 compute_and_set_names.
11187
76e288d1
TT
111882020-04-24 Tom Tromey <tom@tromey.com>
11189
11190 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11191 overload.
11192
2467f4f6
TT
111932020-04-24 Tom Tromey <tom@tromey.com>
11194
11195 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11196 (add_psymbol_to_list): New overload. Make old overload call new
11197 one.
11198 * psympriv.h (add_psymbol_to_list): New overload.
11199
e61108c9
TT
112002020-04-24 Tom Tromey <tom@tromey.com>
11201
11202 * dwarf2/read.c (partial_die_info::read) <case
11203 DW_AT_linkage_name>: Use value_as_string.
11204 (dwarf2_string_attr): Use value_as_string.
11205 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11206 method.
11207 * dwarf2/attribute.c (attribute::value_as_string): New method.
11208
8c87a452
TT
112092020-04-24 Tom Tromey <tom@tromey.com>
11210
11211 * symtab.c (general_symbol_info::natural_name)
11212 (general_symbol_info::demangled_name): Check for language_rust.
11213
787de330
TT
112142020-04-24 Tom Tromey <tom@tromey.com>
11215
11216 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11217 (dwarf2_physname): ... from here.
11218 (partial_die_info::read): Add Rust "{" hack.
11219
ff985671
TT
112202020-04-24 Tom Tromey <tom@tromey.com>
11221
11222 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11223 method.
11224 (symbol_set_demangled_name): Don't declare.
11225 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11226 symbol_set_demangled_name.
11227 (general_symbol_info::set_language)
11228 (general_symbol_info::compute_and_set_names): Update.
11229 * minsyms.c (minimal_symbol_reader::install): Update.
11230 * dwarf2/read.c (new_symbol): Update.
11231
1acda803
TT
112322020-04-24 Tom Tromey <tromey@adacore.com>
11233
11234 PR python/23662:
11235 * python/py-type.c (convert_field): Handle
11236 FIELD_LOC_KIND_DWARF_BLOCK.
11237 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11238 (typy_get_dynamic): Nw function.
11239 (type_object_getset): Add "dynamic".
11240 * NEWS: Add entry.
11241
d656f129
TT
112422020-04-24 Tom Tromey <tromey@adacore.com>
11243
11244 * ada-typeprint.c (print_choices, print_variant_part)
11245 (print_record_field_types_dynamic): New functions.
11246 (print_record_field_types): Use print_record_field_types_dynamic.
11247
7d79de9a
TT
112482020-04-24 Tom Tromey <tromey@adacore.com>
11249
11250 * dwarf2/read.c (handle_data_member_location): New overload.
11251 (dwarf2_add_field): Use it.
11252 (decode_locdesc): Add "computed" parameter. Update comment.
11253 * gdbtypes.c (is_dynamic_type_internal): Also look for
11254 FIELD_LOC_KIND_DWARF_BLOCK.
11255 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11256 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11257 virtual base classes.
11258 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11259 FIELD_LOC_KIND_DWARF_BLOCK.
11260
f8e89861
TT
112612020-04-24 Tom Tromey <tromey@adacore.com>
11262
11263 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11264 * gdbtypes.c (is_dynamic_type_internal): Check
11265 TYPE_HAS_DYNAMIC_LENGTH.
11266 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11267 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11268 New macros.
11269 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11270 constant.
11271
9c6a1327
TT
112722020-04-24 Tom Tromey <tromey@adacore.com>
11273
11274 * dwarf2/read.c (struct variant_field): Rewrite.
11275 (struct variant_part_builder): New.
11276 (struct nextfield): Remove "variant" field. Add "offset".
11277 (struct field_info): Add "current_variant_part" and
11278 "variant_parts".
11279 (alloc_discriminant_info): Remove.
11280 (alloc_rust_variant): New function.
11281 (quirk_rust_enum): Update.
11282 (dwarf2_add_field): Set "offset" member. Don't handle
11283 DW_TAG_variant_part.
11284 (offset_map_type): New typedef.
11285 (convert_variant_range, create_one_variant)
11286 (create_one_variant_part, create_variant_parts)
11287 (add_variant_property): New functions.
11288 (dwarf2_attach_fields_to_type): Call add_variant_property.
11289 (read_structure_type): Don't handle DW_TAG_variant_part.
11290 (handle_variant_part, handle_variant): New functions.
11291 (handle_struct_member_die): Use them.
11292 (process_structure_scope): Don't handle variant parts.
11293 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11294 (struct discriminant_info): Remove.
11295 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11296 (struct main_type) <flag_discriminated_union>: Remove.
11297 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11298 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11299 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11300 Update.
11301 * valops.c (value_union_variant): Remove.
11302 * value.h (value_union_variant): Don't declare.
11303
b249d2c2
TT
113042020-04-24 Tom Tromey <tromey@adacore.com>
11305
11306 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11307 (ada_value_primitive_packed_val): Update.
11308 * ada-valprint.c (ada_value_print_1): Update.
11309 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11310 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11311 just an address. Use evaluate_for_locexpr_baton.
11312 (dwarf2_evaluate_property): Update.
11313 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11314 array_view.
11315 * findvar.c (default_read_var_value): Update.
11316 * gdbtypes.c (compute_variant_fields_inner)
11317 (resolve_dynamic_type_internal): Update.
11318 (resolve_dynamic_type): Change type of valaddr parameter.
11319 * gdbtypes.h (resolve_dynamic_type): Update.
11320 * valarith.c (value_subscripted_rvalue): Update.
11321 * value.c (value_from_contents_and_address): Update.
11322
61122aa9
TT
113232020-04-24 Tom Tromey <tromey@adacore.com>
11324
11325 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11326 "push_initial_value" parameter.
11327 (dwarf2_evaluate_property): Likewise.
11328 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11329
ef83a141
TT
113302020-04-24 Tom Tromey <tromey@adacore.com>
11331
11332 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11333 (variant::matches, compute_variant_fields_recurse)
11334 (compute_variant_fields_inner, compute_variant_fields): New
11335 functions.
11336 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11337 Use resolved_type after type is made.
11338 (operator==): Add new cases.
11339 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11340 (struct discriminant_range, struct variant, struct variant_part):
11341 New.
11342 (union dynamic_prop_data) <variant_parts, original_type>: New
11343 members.
11344 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11345 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11346 constants.
11347 * value.c (unpack_bits_as_long): Now public.
11348 * value.h (unpack_bits_as_long): Declare.
11349
675127ec
TT
113502020-04-24 Tom Tromey <tromey@adacore.com>
11351
11352 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11353 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11354
9852ceef
HD
113552020-04-24 Hannes Domani <ssbssa@yahoo.de>
11356
11357 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11358
7632c6ce
KR
113592020-04-24 Kamil Rytarowski <n54@gmx.com>
11360
11361 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11362 (remove_fork_catchpoint, post_startup_inferior)
11363 (post_attach): Move...
11364 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11365 (remove_fork_catchpoint, post_startup_inferior)
11366 (post_attach): ...here.
11367 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11368 (remove_fork_catchpoint, post_startup_inferior)
11369 (post_attach): Move...
11370 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11371 (remove_fork_catchpoint, post_startup_inferior)
11372 (post_attach): ...here.
11373
7be2bb4f
TT
113742020-04-24 Tom Tromey <tromey@adacore.com>
11375
11376 * nat/windows-nat.h (struct windows_thread_info)
11377 <pc_adjusted>: New member.
11378 * windows-nat.c (windows_fetch_one_register): Check
11379 pc_adjusted.
11380 (windows_nat_target::get_windows_debug_event)
11381 (windows_nat_target::wait): Set pc_adjusted.
11382
f80cb3b4
TV
113832020-04-24 Tom de Vries <tdevries@suse.de>
11384
11385 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11386 Run gdb-add-index inside temp dir.
11387
29514b87
TT
113882020-04-23 Tom Tromey <tromey@adacore.com>
11389
11390 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11391 in loop.
11392
5939967b
LM
113932020-04-23 Luis Machado <luis.machado@linaro.org>
11394
11395 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11396 get_frame_register instead of gdbarch_unwind_pc.
11397
70bc38f5
TV
113982020-04-23 Tom de Vries <tdevries@suse.de>
11399
11400 * symtab.c (lookup_global_symbol): Prefer def over decl.
11401
de82891c
TV
114022020-04-23 Tom de Vries <tdevries@suse.de>
11403
11404 PR symtab/25807
11405 * block.c (best_symbol, better_symbol): Promote to external.
11406 * block.h (best_symbol, better_symbol): Declare.
11407 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11408 decl.
11409
ecc6c606
TT
114102020-04-23 Tom Tromey <tromey@adacore.com>
11411
11412 PR ada/25837:
11413 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11414 "const char *", not a "const std::string &".
11415 <name_and_matcher::operator==>: Update.
11416 * unittests/lookup_name_info-selftests.c: Change type of
11417 "result".
11418
740480b8
TT
114192020-04-23 Tom Tromey <tom@tromey.com>
11420
11421 * inferior.h (iterate_over_inferiors): Don't declare.
11422 * inferior.c (iterate_over_inferiors): Remove.
11423 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11424 Remove.
11425 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11426 use iterate_over_inferiors.
11427 (darwin_resume_inferior_it)
11428 (struct resume_inferior_threads_param)
11429 (darwin_resume_inferior_threads_it): Remove.
11430 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11431
ae3ab1f0
TV
114322020-04-23 Tom de Vries <tdevries@suse.de>
11433
11434 * blockframe.c (find_pc_partial_function): Use
11435 find_pc_sect_compunit_symtab rather than
11436 objfile->sf->qf->find_pc_sect_compunit_symtab.
11437
317d2668
TV
114382020-04-22 Tom de Vries <tdevries@suse.de>
11439
11440 PR symtab/25764
11441 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11442 in psymtabs.
11443
eea9e357
TV
114442020-04-22 Tom de Vries <tdevries@suse.de>
11445
11446 PR symtab/25801
11447 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11448 symtabs.
11449
3d5afab3
TV
114502020-04-22 Tom de Vries <tdevries@suse.de>
11451
11452 PR symtab/25700
11453 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11454 CU if already created.
11455
d43b7a2d
TBA
114562020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11457
11458 * infrun.c (displaced_step_fixup): Switch to the event_thread
11459 before calling displaced_step_restore, not after.
11460
d89edf9b
MM
114612020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11462
11463 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11464 its inferior is not recorded by us.
11465 (record_btrace_target_open): Replace call to
11466 all_non_exited_threads () with call to current_inferior
11467 ()->non_exited_threads ().
11468 (record_btrace_target::stop_recording): Likewise.
11469 (record_btrace_target::close): Likewise.
11470 (record_btrace_target::wait): Likewise.
11471 (record_btrace_target::record_stop_replaying): Likewise.
11472
5897fd49
MM
114732020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11474
11475 * btrace.c (btrace_enable): Throw an error on double enables and
11476 when enabling recording fails.
11477 (btrace_disable): Throw an error if the thread is not recorded.
11478
1a476b6d
MM
114792020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11480
11481 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11482 request if we do not have a thread_info.
11483
4778a5f8
TV
114842020-04-21 Tom de Vries <tdevries@suse.de>
11485
11486 PR gdb/25471
11487 * thread.c
11488 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11489 exception in get_frame_id.
11490
0fa7617d
TT
114912020-04-20 Tom Tromey <tromey@adacore.com>
11492
11493 * python/python.c (struct gdbpy_event): Mark move constructor as
11494 noexcept.
11495 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11496 constructor as noexcept.
11497 * completer.h (struct completion_result): Mark move constructor as
11498 noexcept.
11499 * completer.c (completion_result::completion_result): Use
11500 initialization style. Don't call reset_match_list.
11501
ad23bda0
MS
115022020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11503
11504 * MAINTAINERS (Write After Approval): Add myself.
11505
45e1f031
TT
115062020-04-18 Tom Tromey <tom@tromey.com>
11507
11508 * windows-tdep.c (init_w32_command_list)
11509 (w32_prefix_command_valid): Restore.
11510 (_initialize_windows_tdep): Call init_w32_command_list.
11511
08feed99
TT
115122020-04-18 Tom Tromey <tom@tromey.com>
11513
11514 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11515 * value.c (value_fn_field): Update.
11516 * valops.c (find_function_in_inferior)
11517 (value_allocate_space_in_inferior): Update.
11518 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11519 Update.
11520 * tui/tui-source.c (tui_source_window::set_contents): Update.
11521 * symtab.c (lookup_global_or_static_symbol)
11522 (find_function_start_sal_1, skip_prologue_sal)
11523 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11524 * symmisc.c (dump_msymbols, dump_symtab_1)
11525 (maintenance_print_one_line_table): Update.
11526 * symfile.c (init_entry_point_info, section_is_mapped)
11527 (list_overlays_command, simple_read_overlay_table)
11528 (simple_overlay_update_1): Update.
11529 * stap-probe.c (handle_stap_probe): Update.
11530 * stabsread.c (dbx_init_float_type, define_symbol)
11531 (read_one_struct_field, read_enum_type, read_range_type): Update.
11532 * source.c (info_line_command): Update.
11533 * python/python.c (gdbpy_source_objfile_script)
11534 (gdbpy_execute_objfile_script): Update.
11535 * python/py-type.c (save_objfile_types): Update.
11536 * python/py-objfile.c (py_free_objfile): Update.
11537 * python/py-inferior.c (python_new_objfile): Update.
11538 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11539 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11540 (maintenance_check_psymtabs): Update.
11541 * printcmd.c (info_address_command): Update.
11542 * objfiles.h (struct objfile) <arch>: New method, from
11543 get_objfile_arch.
11544 (get_objfile_arch): Don't declare.
11545 * objfiles.c (get_objfile_arch): Remove.
11546 (filter_overlapping_sections): Update.
11547 * minsyms.c (msymbol_is_function): Update.
11548 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11549 (output_nondebug_symbol): Update.
11550 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11551 (mdebug_expand_psymtab): Update.
11552 * machoread.c (macho_add_oso_symfile): Update.
11553 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11554 Update.
11555 * linux-fork.c (checkpoint_command): Update.
11556 * linespec.c (convert_linespec_to_sals): Update.
11557 * jit.c (finalize_symtab): Update.
11558 * infrun.c (insert_exception_resume_from_probe): Update.
11559 * ia64-tdep.c (ia64_find_unwind_table): Update.
11560 * hppa-tdep.c (internalize_unwinds): Update.
11561 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11562 Update.
11563 * gcore.c (call_target_sbrk): Update.
11564 * elfread.c (record_minimal_symbol, elf_symtab_read)
11565 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11566 (elf_gnu_ifunc_resolve_by_got): Update.
11567 * dwarf2/read.c (create_addrmap_from_index)
11568 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11569 (read_debug_names_from_section)
11570 (process_psymtab_comp_unit_reader, add_partial_symbol)
11571 (add_partial_subprogram, process_full_comp_unit)
11572 (read_file_scope, read_func_scope, read_lexical_block_scope)
11573 (read_call_site_scope, dwarf2_ranges_read)
11574 (dwarf2_record_block_ranges, dwarf2_add_field)
11575 (mark_common_block_symbol_computed, read_tag_pointer_type)
11576 (read_tag_string_type, dwarf2_init_float_type)
11577 (dwarf2_init_complex_target_type, read_base_type)
11578 (partial_die_info::read, partial_die_info::read)
11579 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11580 (dwarf2_fetch_die_loc_sect_off): Update.
11581 * dwarf2/loc.c (dwarf2_find_location_expression)
11582 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11583 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11584 (dwarf2_loc_desc_get_symbol_read_needs)
11585 (locexpr_describe_location_piece, locexpr_describe_location_1)
11586 (loclist_describe_location): Update.
11587 * dwarf2/index-write.c (write_debug_names): Update.
11588 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11589 * dtrace-probe.c (dtrace_process_dof): Update.
11590 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11591 (process_one_symbol): Update.
11592 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11593 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11594 (coff_read_enum_type): Update.
11595 * cli/cli-cmds.c (edit_command, list_command): Update.
11596 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11597 * breakpoint.c (create_overlay_event_breakpoint)
11598 (create_longjmp_master_breakpoint)
11599 (create_std_terminate_master_breakpoint)
11600 (create_exception_master_breakpoint, get_sal_arch): Update.
11601 * block.c (block_gdbarch): Update.
11602 * annotate.c (annotate_source_line): Update.
11603
0743fc83
TT
116042020-04-17 Tom Tromey <tromey@adacore.com>
11605
11606 * auto-load.c (show_auto_load_cmd): Remove.
11607 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11608 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11609 (maintenance_print_arc_command): Remove.
11610 * tui/tui-win.c (tui_command): Remove.
11611 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11612 * tui/tui-layout.c (tui_layout_command): Remove.
11613 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11614 * python/python.c (user_set_python, user_show_python): Remove.
11615 (_initialize_python): Use add_basic_prefix_cmd,
11616 add_show_prefix_cmd.
11617 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11618 (install_gdb_commands): Use add_basic_prefix_cmd,
11619 add_show_prefix_cmd.
11620 (info_guile_command): Remove.
11621 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11622 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11623 add_show_prefix_cmd.
11624 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11625 Remove do_set and do_show parameters.
11626 * cli/cli-style.c (set_style, show_style): Remove.
11627 (_initialize_cli_style): Use add_basic_prefix_cmd,
11628 add_show_prefix_cmd.
11629 (cli_style_option::add_setshow_commands): Remove do_set and
11630 do_show parameters.
11631 (cli_style_option::add_setshow_commands): Use
11632 add_basic_prefix_cmd, add_show_prefix_cmd.
11633 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11634 (set_style_name): Remove.
11635 * cli/cli-dump.c (dump_command, append_command): Remove.
11636 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11637 (tekhex_dump_command, binary_dump_command)
11638 (binary_append_command): Remove.
11639 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11640 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11641 (init_w32_command_list): Remove; move into ...
11642 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11643 * valprint.c (set_print, show_print, set_print_raw)
11644 (show_print_raw): Remove.
11645 (_initialize_valprint): Use add_basic_prefix_cmd,
11646 add_show_prefix_cmd.
11647 * typeprint.c (set_print_type, show_print_type): Remove.
11648 (_initialize_typeprint): Use add_basic_prefix_cmd,
11649 add_show_prefix_cmd.
11650 * record.c (set_record_command, show_record_command): Remove.
11651 (_initialize_record): Use add_basic_prefix_cmd,
11652 add_show_prefix_cmd.
11653 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11654 add_show_prefix_cmd.
11655 (info_command, show_command, set_debug, show_debug): Remove.
11656 * top.h (set_history, show_history): Don't declare.
11657 * top.c (set_history, show_history): Remove.
11658 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11659 (unset_tdesc_cmd): Remove.
11660 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11661 add_show_prefix_cmd.
11662 * symtab.c (info_module_command): Remove.
11663 (_initialize_symtab): Use add_basic_prefix_cmd.
11664 * symfile.c (overlay_command): Remove.
11665 (_initialize_symfile): Use add_basic_prefix_cmd.
11666 * sparc64-tdep.c (info_adi_command): Remove.
11667 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11668 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11669 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11670 add_show_prefix_cmd.
11671 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11672 (_initialize_serial): Use add_basic_prefix_cmd,
11673 add_show_prefix_cmd.
11674 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11675 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11676 add_show_prefix_cmd.
11677 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11678 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11679 add_show_prefix_cmd.
11680 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11681 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11682 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11683 add_show_prefix_cmd.
11684 * remote.c (remote_command, set_remote_cmd): Remove.
11685 (_initialize_remote): Use add_basic_prefix_cmd.
11686 * record-full.c (set_record_full_command)
11687 (show_record_full_command): Remove.
11688 (_initialize_record_full): Use add_basic_prefix_cmd,
11689 add_show_prefix_cmd.
11690 * record-btrace.c (cmd_set_record_btrace)
11691 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11692 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11693 (cmd_show_record_btrace_pt): Remove.
11694 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11695 add_show_prefix_cmd.
11696 * ravenscar-thread.c (set_ravenscar_command)
11697 (show_ravenscar_command): Remove.
11698 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11699 add_show_prefix_cmd.
11700 * mips-tdep.c (show_mips_command, set_mips_command)
11701 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11702 add_show_prefix_cmd.
11703 * maint.c (maintenance_command, maintenance_info_command)
11704 (maintenance_check_command, maintenance_print_command)
11705 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11706 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11707 add_show_prefix_cmd.
11708 (show_per_command_cmd): Remove.
11709 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11710 Remove.
11711 (maintenance_show_test_settings_cmd): Remove.
11712 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11713 add_show_prefix_cmd.
11714 * maint-test-options.c (maintenance_test_options_command):
11715 Remove.
11716 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11717 * macrocmd.c (macro_command): Remove
11718 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11719 * language.c (set_check, show_check): Remove.
11720 (_initialize_language): Use add_basic_prefix_cmd,
11721 add_show_prefix_cmd.
11722 * infcmd.c (unset_command): Remove.
11723 (_initialize_infcmd): Use add_basic_prefix_cmd.
11724 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11725 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11726 add_show_prefix_cmd.
11727 * go32-nat.c (go32_info_dos_command): Remove.
11728 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11729 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11730 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11731 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11732 (_initialize_frame): Use add_basic_prefix_cmd,
11733 add_show_prefix_cmd.
11734 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11735 (_initialize_dcache): Use add_basic_prefix_cmd,
11736 add_show_prefix_cmd.
11737 * cp-support.c (maint_cplus_command): Remove.
11738 (_initialize_cp_support): Use add_basic_prefix_cmd.
11739 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11740 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11741 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11742 add_basic_prefix_cmd, add_show_prefix_cmd.
11743 * breakpoint.c (save_command): Remove.
11744 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11745 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11746 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11747 add_show_prefix_cmd.
11748 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11749 (set_ada_command, show_ada_command): Remove.
11750 (_initialize_ada_language): Use add_basic_prefix_cmd,
11751 add_show_prefix_cmd.
11752 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11753
3557f442
KR
117542020-04-16 Kamil Rytarowski <n54@gmx.com>
11755
11756 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11757 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11758
16197208
SM
117592020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11760
11761 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11762 warning messages.
11763
00ac85d3
SM
117642020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11765
11766 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11767 import table is not at beginning of .idata section.
11768
381ce63f
PA
117692020-04-16 Pedro Alves <palves@redhat.com>
11770
11771 * inferior.c (delete_inferior): Use delete operator directly
11772 instead of delete_program_space.
11773 * progspace.c (add_program_space): New, factored out from
11774 program_space::program_space.
11775 (remove_program_space): New, factored out from
11776 delete_program_space.
11777 (program_space::program_space): Remove intro comment. Rewrite.
11778 (program_space::~program_space): Remove intro comment. Call
11779 remove_program_space.
11780 (delete_program_space): Delete.
11781 * progspace.h (program_space::program_space): Make explicit. Move
11782 intro comment here, adjusted.
11783 (program_space::~program_space): Move intro comment here,
11784 adjusted.
11785 (delete_program_space): Remove.
11786
a010605f
TT
117872020-04-16 Tom Tromey <tromey@adacore.com>
11788
11789 * windows-nat.c (windows_nat::handle_access_violation): New
11790 function.
11791 * nat/windows-nat.h (handle_access_violation): Declare.
11792 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11793 windows-nat.c. Call handle_access_violation.
11794
efba5c23
TV
117952020-04-16 Tom de Vries <tdevries@suse.de>
11796
11797 PR symtab/25791
11798 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11799 CUs without psymtab.
11800
97ed802d
KB
118012020-04-16 Kevin Buettner <kevinb@redhat.com>
11802
11803 * python/python.c (do_start_initialization): Don't call
11804 PyEval_InitThreads for Python 3.9 and beyond.
11805
c7d64809
KR
118062020-04-15 Kamil Rytarowski <n54@gmx.com>
11807
11808 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11809 thread functions.
11810 (obsd_nat_target::wait): Likewise.
11811
ce127a96
TT
118122020-04-15 Tom Tromey <tromey@adacore.com>
11813
11814 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11815 (DEBUG_EXCEPT): Use debug_printf.
11816
99f1bc6a
AB
118172020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11818
11819 * completer.c (class completion_tracker::completion_hash_entry)
11820 <hash_name>: New member function.
11821 (completion_tracker::discard_completions): New callback to hash a
11822 completion_hash_entry, pass this to htab_create_alloc.
11823
a0e9b532
JT
118242016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11825
11826 * windows-nat.c (windows_make_so): Warn rather than stopping with
11827 an error if realpath() fails.
11828
06ca5dd4
KR
118292020-04-14 Kamil Rytarowski <n54@gmx.com>
11830
11831 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11832 (nbsd_nat_target::info_proc): Add do_status.
11833
194d088f
TV
118342020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11835 Tom de Vries <tdevries@suse.de>
11836
11837 PR symtab/25718
11838 * psympriv.h (struct partial_symtab::read_symtab)
11839 (struct partial_symtab::expand_psymtab)
11840 (struct partial_symtab::read_dependencies): Update comments.
11841 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11842 read_symtab for includer.
11843 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11844 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11845 (struct dwarf2_include_psymtab::m_readin): Remove.
11846 (struct dwarf2_include_psymtab::includer): New member function.
11847 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11848
c1a66c06
TV
118492020-04-14 Tom de Vries <tdevries@suse.de>
11850
11851 PR symtab/25720
11852 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11853 with NULL symbol_matcher and lookup_name.
11854 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11855 and lookup_name.
11856 * dwarf2/read.c (dw2_expand_symtabs_matching)
11857 (dw2_debug_names_expand_symtabs_matching): Same.
11858 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11859 Make lookup_name a pointer. Update comment.
11860 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11861 lookup_name being a pointer.
11862 * symfile.c (expand_symtabs_matching): Same.
11863 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11864 * linespec.c (iterate_over_all_matching_symtabs): Same.
11865
400b5eca
TT
118662020-04-13 Tom Tromey <tom@tromey.com>
11867
11868 * run-on-main-thread.c: Update include.
11869 * unittests/main-thread-selftests.c: Update include.
11870 * tui/tui-win.c: Update include.
11871 * tui/tui-io.c: Update include.
11872 * tui/tui-interp.c: Update include.
11873 * tui/tui-hooks.c: Update include.
11874 * top.h: Update include.
11875 * top.c: Update include.
11876 * ser-base.c: Update include.
11877 * remote.c: Update include.
11878 * remote-notif.c: Update include.
11879 * remote-fileio.c: Update include.
11880 * record-full.c: Update include.
11881 * record-btrace.c: Update include.
11882 * python/python.c: Update include.
11883 * posix-hdep.c: Update include.
11884 * mingw-hdep.c: Update include.
11885 * mi/mi-main.c: Update include.
11886 * mi/mi-interp.c: Update include.
11887 * main.c: Update include.
11888 * linux-nat.c: Update include.
11889 * interps.c: Update include.
11890 * infrun.c: Update include.
11891 * inf-loop.c: Update include.
11892 * event-top.c: Update include.
11893 * event-loop.c: Move to ../gdbsupport/.
11894 * event-loop.h: Move to ../gdbsupport/.
11895 * async-event.h: Update include.
11896 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11897
93b54c8e
TT
118982020-04-13 Tom Tromey <tom@tromey.com>
11899
11900 * tui/tui-win.c: Include async-event.h.
11901 * remote.c: Include async-event.h.
11902 * remote-notif.c: Include async-event.h.
11903 * record-full.c: Include async-event.h.
11904 * record-btrace.c: Include async-event.h.
11905 * infrun.c: Include async-event.h.
11906 * event-top.c: Include async-event.h.
11907 * event-loop.h: Move some declarations to async-event.h.
11908 * event-loop.c: Don't include ser-event.h or top.h. Move some
11909 code to async-event.c.
11910 * async-event.h: New file.
11911 * async-event.c: New file.
11912 * Makefile.in (COMMON_SFILES): Add async-event.c.
11913 (HFILES_NO_SRCDIR): Add async-event.h.
11914
c1cd3163
TT
119152020-04-13 Tom Tromey <tom@tromey.com>
11916
11917 * utils.c (flush_streams): New function.
11918 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11919
29f2bf4f
TT
119202020-04-13 Tom Tromey <tom@tromey.com>
11921
11922 * event-loop.c (handle_file_event): Use warning, not
11923 printf_unfiltered.
11924
98029d02
TT
119252020-04-13 Tom Tromey <tom@tromey.com>
11926
11927 * event-loop.c: Include <chrono>.
11928
06cc9596
TT
119292020-04-13 Tom Tromey <tom@tromey.com>
11930
11931 * gdb_select.h: Move to ../gdbsupport/.
11932 * event-loop.c: Update include path.
11933 * top.c: Update include path.
11934 * ser-base.c: Update include path.
11935 * ui-file.c: Update include path.
11936 * ser-tcp.c: Update include path.
11937 * guile/scm-ports.c: Update include path.
11938 * posix-hdep.c: Update include path.
11939 * ser-unix.c: Update include path.
11940 * gdb_usleep.c: Update include path.
11941 * mingw-hdep.c: Update include path.
11942 * inflow.c: Update include path.
11943 * infrun.c: Update include path.
11944 * event-top.c: Update include path.
11945
8ae8e197
TT
119462020-04-13 Tom Tromey <tom@tromey.com>
11947
11948 * configure: Rebuild.
11949 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11950
58cf28e8
TT
119512020-04-13 Tom Tromey <tom@tromey.com>
11952
11953 * event-loop.h (start_event_loop): Don't declare.
11954 * event-loop.c (start_event_loop): Move...
11955 * main.c (start_event_loop): ...here. Now static.
11956
b7f999ae
SDJ
119572020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11958
11959 * MAINTAINERS: Update my email address.
11960
1085dfd4
KR
119612020-04-12 Kamil Rytarowski <n54@gmx.com>
11962
11963 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11964 IP_ALL.
11965
49d1d1f5
KR
119662020-04-12 Kamil Rytarowski <n54@gmx.com>
11967
11968 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11969 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11970
b4848d2a
KR
119712020-04-12 Kamil Rytarowski <n54@gmx.com>
11972
11973 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11974 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11975
51c133d5
KR
119762020-04-12 Kamil Rytarowski <n54@gmx.com>
11977
11978 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11979
54b8cbd0
KR
119802020-04-11 Kamil Rytarowski <n54@gmx.com>
11981
11982 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11983 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11984 (nbsd_nat_target::info_proc): New functions.
11985 * nbsd-nat.c (kinfo_get_vmmap): New function.
11986 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11987 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11988 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11989 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11990 functions.
11991 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11992 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11993 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11994 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11995 (KINFO_VME_FLAG_GROWS_DOWN): New.
11996
cf83625d
AS
119972020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11998
11999 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12000 bit shift.
12001
0c4311ab
TT
120022020-04-10 Tom Tromey <tromey@adacore.com>
12003
12004 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12005
3e65b3e9
TT
120062020-04-10 Tom Tromey <tromey@adacore.com>
12007
12008 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12009 separate debug files.
12010
13302e95
HD
120112020-04-10 Hannes Domani <ssbssa@yahoo.de>
12012
12013 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12014 Move to...
12015 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12016 ... here.
12017 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12018 Check for STATUS_WX86_BREAKPOINT.
12019 (windows_nat_target::wait): Same.
12020
bdfc1e8a
TV
120212020-04-10 Tom de Vries <tdevries@suse.de>
12022
12023 PR cli/25808
12024 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12025
f4460aec
SM
120262020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12027
12028 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12029 (Write After Approval): Remove Tom de Vries.
12030
a25198bb
BE
120312020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12032
12033 revert partially:
12034 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12035
aac66a4c
SM
12036 * buildsym.c (record_line): Fix undefined behavior and preserve
12037 lines at eof.
a25198bb 12038
206c98a6
KR
120392020-04-09 Kamil Rytarowski <n54@gmx.com>
12040
12041 * auxv.h (svr4_auxv_parse): New.
12042 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12043 and generic_auxv_parse.
12044 (svr4_auxv_parse): Add.
12045 * obsd-tdep.c: Include "auxv.h".
12046 (obsd_auxv_parse): Remove.
12047 (obsd_init_abi): Remove comment.
12048 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12049 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12050 * nbsd-tdep.c: Include "auxv.h".
12051 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12052
71fbdbaf
TT
120532020-04-08 Tom Tromey <tromey@adacore.com>
12054
12055 * nat/windows-nat.h (last_wait_event): Don't declare.
12056 (wait_for_debug_event): Update comment.
12057 * nat/windows-nat.c (last_wait_event): Now static.
12058
2c1d95e8
TT
120592020-04-08 Tom Tromey <tromey@adacore.com>
12060
12061 * windows-nat.c (wait_for_debug_event): Move to
12062 nat/windows-nat.c.
12063 * nat/windows-nat.h (wait_for_debug_event): Declare.
12064 * nat/windows-nat.c (wait_for_debug_event): Move from
12065 windows-nat.c. No longer static.
12066
d2977bc4
TT
120672020-04-08 Tom Tromey <tromey@adacore.com>
12068
12069 * windows-nat.c (get_windows_debug_event): Use
12070 fetch_pending_stop.
12071 * nat/windows-nat.h (fetch_pending_stop): Declare.
12072 * nat/windows-nat.c (fetch_pending_stop): New function.
12073
e758e19c
TT
120742020-04-08 Tom Tromey <tromey@adacore.com>
12075
12076 * windows-nat.c (windows_continue): Use matching_pending_stop and
12077 continue_last_debug_event.
12078 * nat/windows-nat.h (matching_pending_stop)
12079 (continue_last_debug_event): Declare.
12080 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12081 (matching_pending_stop, continue_last_debug_event): New
12082 functions.
12083
8d30e395
TT
120842020-04-08 Tom Tromey <tromey@adacore.com>
12085
12086 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12087 (handle_exception_result): Move to nat/windows-nat.h.
12088 (DEBUG_EXCEPTION_SIMPLE): Remove.
12089 (windows_nat::handle_ms_vc_exception): New function.
12090 (handle_exception): Move to nat/windows-nat.c.
12091 (get_windows_debug_event): Update.
12092 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12093 nat/windows-nat.c.
12094 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12095 (handle_exception_result): Move from windows-nat.c.
12096 (handle_exception): Declare.
12097 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12098 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12099 windows-nat.c.
12100
29de418d
TT
121012020-04-08 Tom Tromey <tromey@adacore.com>
12102
12103 * windows-nat.c (exception_count, event_count): Remove.
12104 (handle_exception, get_windows_debug_event)
12105 (do_initial_windows_stuff): Update.
12106
a816ba18
TT
121072020-04-08 Tom Tromey <tromey@adacore.com>
12108
12109 * windows-nat.c (windows_nat::handle_load_dll)
12110 (windows_nat::handle_unload_dll): Rename. No longer static.
12111 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12112 Declare.
12113
a00caa12
TT
121142020-04-08 Tom Tromey <tromey@adacore.com>
12115
12116 * complaints.h (stop_whining): Declare at top-level.
12117 (complaint): Don't declare stop_whining.
12118
d41b524f
TT
121192020-04-08 Tom Tromey <tromey@adacore.com>
12120
12121 * windows-nat.c (windows_nat::handle_output_debug_string):
12122 Rename. No longer static.
12123 * nat/windows-nat.h (handle_output_debug_string): Declare.
12124
3c76026d
TT
121252020-04-08 Tom Tromey <tromey@adacore.com>
12126
12127 * windows-nat.c (current_process_handle, current_process_id)
12128 (main_thread_id, last_sig, current_event, last_wait_event)
12129 (current_windows_thread, desired_stop_thread_id, pending_stops)
12130 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12131 (display_selectors, fake_create_process)
12132 (get_windows_debug_event): Update.
12133 * nat/windows-nat.h (current_process_handle, current_process_id)
12134 (main_thread_id, last_sig, current_event, last_wait_event)
12135 (current_windows_thread, desired_stop_thread_id, pending_stops)
12136 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12137 * nat/windows-nat.c (current_process_handle, current_process_id)
12138 (main_thread_id, last_sig, current_event, last_wait_event)
12139 (current_windows_thread, desired_stop_thread_id, pending_stops)
12140 (siginfo_er): New globals. Move from windows-nat.c.
12141
9d8679cc
TT
121422020-04-08 Tom Tromey <tromey@adacore.com>
12143
12144 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12145 (handle_load_dll): Update.
12146 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12147
28688adf
TT
121482020-04-08 Tom Tromey <tromey@adacore.com>
12149
12150 * windows-nat.c (enum thread_disposition_type): Move to
12151 nat/windows-nat.h.
12152 (windows_nat::thread_rec): Rename from thread_rec. No longer
12153 static.
12154 (windows_add_thread, windows_nat_target::fetch_registers)
12155 (windows_nat_target::store_registers, handle_exception)
12156 (windows_nat_target::resume, get_windows_debug_event)
12157 (windows_nat_target::get_tib_address)
12158 (windows_nat_target::thread_name)
12159 (windows_nat_target::thread_alive): Update.
12160 * nat/windows-nat.h (enum thread_disposition_type): Move from
12161 windows-nat.c.
12162 (thread_rec): Declare.
12163
4834dad0
TT
121642020-04-08 Tom Tromey <tromey@adacore.com>
12165
12166 * windows-nat.c: Add "using namespace".
12167 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12168 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12169
65bafd5b
TT
121702020-04-08 Tom Tromey <tromey@adacore.com>
12171
12172 * nat/windows-nat.h (struct windows_thread_info): Declare
12173 destructor.
12174 * nat/windows-nat.c (~windows_thread_info): New.
12175
0a4afda3
TT
121762020-04-08 Tom Tromey <tromey@adacore.com>
12177
12178 PR gdb/22992
12179 * windows-nat.c (current_event): Update comment.
12180 (last_wait_event, desired_stop_thread_id): New globals.
12181 (struct pending_stop): New.
12182 (pending_stops): New global.
12183 (windows_nat_target) <stopped_by_sw_breakpoint>
12184 <supports_stopped_by_sw_breakpoint>: New methods.
12185 (windows_fetch_one_register): Add assertions. Adjust PC.
12186 (windows_continue): Handle pending stops. Suspend other threads
12187 when stepping. Use last_wait_event
12188 (wait_for_debug_event): New function.
12189 (get_windows_debug_event): Use wait_for_debug_event. Handle
12190 pending stops. Queue spurious stops.
12191 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12192 (windows_nat_target::kill): Use wait_for_debug_event.
12193 * nat/windows-nat.h (struct windows_thread_info)
12194 <stopped_at_software_breakpoint>: New field.
12195 * nat/windows-nat.c (windows_thread_info::resume): Clear
12196 stopped_at_software_breakpoint.
12197
8e61ebec
TT
121982020-04-08 Tom Tromey <tromey@adacore.com>
12199
12200 * windows-nat.c (enum thread_disposition_type): New.
12201 (thread_rec): Replace "get_context" parameter with "disposition";
12202 change type.
12203 (windows_add_thread, windows_nat_target::fetch_registers)
12204 (windows_nat_target::store_registers, handle_exception)
12205 (windows_nat_target::resume, get_windows_debug_event)
12206 (windows_nat_target::get_tib_address)
12207 (windows_nat_target::thread_name)
12208 (windows_nat_target::thread_alive): Update.
12209
98a03287
TT
122102020-04-08 Tom Tromey <tromey@adacore.com>
12211
12212 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12213 (windows_continue): Use windows_continue::resume.
12214 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12215 resume>: Declare new methods.
12216 * nat/windows-nat.c: New file.
12217 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12218
7c7411bc
TT
122192020-04-08 Tom Tromey <tromey@adacore.com>
12220
12221 * windows-nat.c (windows_add_thread, windows_delete_thread)
12222 (windows_nat_target::fetch_registers)
12223 (windows_nat_target::store_registers, fake_create_process)
12224 (windows_nat_target::resume, windows_nat_target::resume)
12225 (get_windows_debug_event, windows_nat_target::wait)
12226 (windows_nat_target::pid_to_str)
12227 (windows_nat_target::get_tib_address)
12228 (windows_nat_target::get_ada_task_ptid)
12229 (windows_nat_target::thread_name)
12230 (windows_nat_target::thread_alive): Use lwp, not tid.
12231
2950fdf7
TT
122322020-04-08 Tom Tromey <tromey@adacore.com>
12233
12234 * windows-nat.c (handle_exception)
12235 (windows_nat_target::thread_name): Update.
12236 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12237 <name>: Now unique_xmalloc_ptr.
12238
62fe396b
TT
122392020-04-08 Tom Tromey <tromey@adacore.com>
12240
12241 * windows-nat.c (thread_rec)
12242 (windows_nat_target::fetch_registers): Update.
12243 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12244 Update comment.
12245 <debug_registers_changed, reload_context>: Now bool.
12246
e9534bd2
TT
122472020-04-08 Tom Tromey <tromey@adacore.com>
12248
12249 * windows-nat.c (windows_add_thread): Use new.
12250 (windows_init_thread_list, windows_delete_thread): Use delete.
12251 (get_windows_debug_event): Update.
12252 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12253 destructor, and initializers.
12254
ae1f8880
TT
122552020-04-08 Tom Tromey <tromey@adacore.com>
12256
12257 * windows-nat.c (struct windows_thread_info): Remove.
12258 * nat/windows-nat.h: New file.
12259
55a1e039
TT
122602020-04-08 Tom Tromey <tromey@adacore.com>
12261
12262 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12263 (thread_rec, windows_add_thread, windows_delete_thread)
12264 (windows_continue): Update.
12265
93366324
TT
122662020-04-08 Tom Tromey <tromey@adacore.com>
12267
12268 * windows-nat.c (struct windows_thread_info): Remove typedef.
12269 (thread_head): Remove.
12270 (thread_list): New global.
12271 (thread_rec, windows_add_thread, windows_init_thread_list)
12272 (windows_delete_thread, windows_continue): Update.
12273
0f2265e2
SM
122742020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12275
12276 * windows-tdep.h (windows_init_abi): Add comment.
12277 (cygwin_init_abi): New declaration.
12278 * windows-tdep.c: Split signal enumeration in two, one for
12279 Windows and one for Cygwin.
12280 (windows_gdb_signal_to_target): Only deal with signal of the
12281 Windows OS ABI.
12282 (cygwin_gdb_signal_to_target): New function.
12283 (windows_init_abi): Rename to windows_init_abi_common, don't set
12284 gdb_signal_to_target gdbarch method. Add new new function with
12285 this name.
12286 (cygwin_init_abi): New function.
12287 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12288 comment. Don't call windows_init_abi.
12289 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12290 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12291 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12292 i386_windows_init_abi_common, don't call windows_init_abi. Add
12293 a new function of this name.
12294 (i386_cygwin_init_abi): New function.
12295 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12296 OS ABI Cygwin.
12297
3810f182
SM
122982020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12299
12300 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12301 parameter.c.
12302 (dwarf2_read_gdb_index): Update.
12303
063f8e80
KR
123042020-04-07 Kamil Rytarowski <n54@gmx.com>
12305
12306 * nbsd-tdep.c: Include "objfiles.h".
12307 (nbsd_skip_solib_resolver): New.
12308 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12309
85a9510c 123102020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12311
12312 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12313 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12314 with DW_LLE_base_addressx are being emitted in DWARFv5.
12315 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12316 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12317 unsigned integer.
12318
9fc3eaae 123192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12320
12321 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12322 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12323 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12324 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12325 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12326 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12327 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12328
12329
41144253 123302020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12331
12332 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12333 (read_loclist_index): New function definition.
12334 (lookup_loclist_base): New function definition.
12335 (read_loclist_header): New function definition.
12336 (dwarf2_cu): Add loclist_base and loclist_header field.
12337 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12338 (read_full_die_1): Read the value of DW_AT_loclists_base.
12339 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12340 (read_attribute_value): Handle DW_FORM_loclistx.
12341 (skip_one_die): Handle DW_FORM_loclistx.
12342 (loclist_header): New structure declaration.
12343 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12344
9f4e76a4
SM
123452020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12346
12347 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12348 constructor. Remove `addr` parameter from other constructor and
12349 add `per_cu` parameter.
12350 * dwarf2/read.c (create_partial_symtab): Update.
12351
25c11aca
TV
123522020-04-07 Tom de Vries <tdevries@suse.de>
12353
12354 PR symtab/25796
12355 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12356 (partial_die_info::fixup): Inherit has_const_value.
12357
5707e24b
TV
123582020-04-07 Tom de Vries <tdevries@suse.de>
12359
12360 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12361 symbols without address.
12362
05f00e22
KR
123632020-04-06 Kamil Rytarowski <n54@gmx.com>
12364
12365 * nbsd-nat.h (struct thread_info): Add forward declaration.
12366 (nbsd_nat_target::thread_alive): Add.
12367 (nbsd_nat_target::thread_name): Likewise.
12368 (nbsd_nat_target::update_thread_list): Likewise.
12369 (update_thread_list::post_attach): Likewise.
12370 (post_attach::pid_to_str): Likewise.
12371 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12372 (nbsd_thread_lister): Add.
12373 (nbsd_nat_target::thread_alive): Likewise.
12374 (nbsd_nat_target::thread_name): Likewise.
12375 (nbsd_add_threads): Likewise.
12376 (update_thread_list::post_attach): Likewise.
12377 (nbsd_nat_target::update_thread_list): Likewise.
12378 (post_attach::pid_to_str): Likewise.
12379
6ee448cc
TT
123802020-04-06 Tom Tromey <tromey@adacore.com>
12381
12382 * ada-valprint.c (print_variant_part): Extract the variant field.
12383 (print_field_values): Use the field as the outer value when
12384 recursing.
12385
dea34e8c
TT
123862020-04-06 Tom Tromey <tromey@adacore.com>
12387
12388 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12389 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12390 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12391 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12392 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12393
93689ce9
TT
123942020-04-06 Tom Tromey <tromey@adacore.com>
12395
12396 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12397 TYPE_CODE_ERROR.
12398
79743962
KR
123992020-04-06 Kamil Rytarowski <n54@gmx.com>
12400
12401 * nbsd-tdep.c: Include "gdbarch.h".
12402 Define enum with NetBSD signal numbers.
12403 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12404 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12405 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12406 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12407 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12408 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12409 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12410 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12411 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12412 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12413 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12414 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12415
9e7c9a03
HD
124162020-04-03 Hannes Domani <ssbssa@yahoo.de>
12417
12418 PR gdb/25325
12419 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12420
d9e49b61
TT
124212020-04-03 Tom Tromey <tromey@adacore.com>
12422
12423 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12424 Read constant block.
12425
e0fc5c3f
SM
124262020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12427
12428 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12429 (gdb_bfd_get_full_section_contents): New declaration.
12430 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12431 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12432 gdb_bfd_get_full_section_contents.
12433
e2ff18a0
SM
124342020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12435
12436 * exec.c (build_section_table): Replace internal_error with
12437 gdb_assert.
12438 (section_table_xfer_memory_partial): Likewise.
12439 * mdebugread.c (parse_partial_symbols): Likewise.
12440 * psymtab.c (lookup_partial_symbol): Likewise.
12441 * utils.c (wrap_here): Likewise.
12442
0830d301
TT
124432020-04-02 Tom Tromey <tromey@adacore.com>
12444
12445 * f-lang.c (build_fortran_types): Use arch_type to initialize
12446 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12447
e7da7f8f
TT
124482020-04-02 Tom Tromey <tromey@adacore.com>
12449
12450 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12451 of attributes.
12452
c90d28ac
AB
124532020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12454 Bernd Edlinger <bernd.edlinger@hotmail.de>
12455 Tom Tromey <tromey@adacore.com>
12456
12457 * buildsym.c (buildsym_compunit::record_line): Remove
12458 deduplication code.
12459
1aa98955
TV
124602020-04-02 Tom de Vries <tdevries@suse.de>
12461
12462 PR ada/24671
12463 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12464
d3214198
TV
124652020-04-02 Tom de Vries <tdevries@suse.de>
12466
12467 * dwarf2/read.c (dwarf2_gdb_index_functions,
12468 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12469 NULL.
12470 * psymtab.c (psym_lookup_global_symbol_language): New function.
12471 (psym_functions): Init psym_lookup_global_symbol_language with
12472 psym_lookup_global_symbol_language.
12473 * symfile-debug.c (debug_sym_quick_functions): Init
12474 lookup_global_symbol_language with NULL.
12475 * symfile.c (set_initial_language): Remove fixme comment.
12476 * symfile.h (struct quick_symbol_functions): Add
12477 lookup_global_symbol_language.
12478 * symtab.c (find_quick_global_symbol_language): New function.
12479 (find_main_name): Use find_quick_global_symbol_language.
12480
2836752f
SM
124812020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12482
12483 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12484
64dc2d4b
BE
124852020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12486
12487 * buildsym.c (record_line): Fix undefined behavior and preserve
12488 lines at eof.
12489
bbe3dc41
BE
124902020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12491
12492 * buildsym.c (record_line): Fix the resizing condition.
12493
6b4a335b
TT
124942020-04-01 Tom Tromey <tom@tromey.com>
12495
12496 * value.h (value_literal_complex): Add comment.
12497 * valops.c (value_literal_complex): Refer to value.h.
12498
3638a098
TT
124992020-04-01 Tom Tromey <tom@tromey.com>
12500
12501 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12502 (scalar_type): New rule, from typebase.
12503 (typebase): Use scalar_type. Recognize complex types.
12504 (field_name): Handle FLOAT_KEYWORD.
12505 (ident_tokens): Add _Complex and __complex__.
12506
c34e8714
TT
125072020-04-01 Tom Tromey <tom@tromey.com>
12508
12509 PR exp/25299:
12510 * valarith.c (promotion_type, complex_binop): New functions.
12511 (scalar_binop): Handle complex numbers. Use promotion_type.
12512 (value_pos, value_neg, value_complement): Handle complex numbers.
12513
fa649bb7
TT
125142020-04-01 Tom Tromey <tom@tromey.com>
12515
12516 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12517 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12518 (parse_number): Handle complex numbers.
12519
981c08ce
TT
125202020-04-01 Tom Tromey <tom@tromey.com>
12521
12522 * c-valprint.c (c_decorations): Change complex suffix to "i".
12523
4c99290d
TT
125242020-04-01 Tom Tromey <tom@tromey.com>
12525
12526 * valprint.c (generic_value_print_complex): Use accessors.
12527 * value.h (value_real_part, value_imaginary_part): Declare.
12528 * valops.c (value_real_part, value_imaginary_part): New
12529 functions.
12530 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12531
5b930b45
TT
125322020-04-01 Tom Tromey <tom@tromey.com>
12533
12534 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12535 (read_range_type): Update.
12536 * mdebugread.c (basic_type): Update.
12537 * go-lang.c (build_go_types): Use init_complex_type.
12538 * gdbtypes.h (struct main_type) <complex_type>: New member.
12539 (init_complex_type): Update.
12540 (arch_complex_type): Don't declare.
12541 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12542 Make name if none given. Use alloc_type_copy. Look for cached
12543 complex type.
12544 (arch_complex_type): Remove.
12545 (gdbtypes_post_init): Use init_complex_type.
12546 * f-lang.c (build_fortran_types): Use init_complex_type.
12547 * dwarf2/read.c (read_base_type): Update.
12548 * d-lang.c (build_d_types): Use init_complex_type.
12549 * ctfread.c (read_base_type): Update.
12550
53cccef1
TBA
125512020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12552
12553 * infrun.c (stop_all_threads): Update assertion, plus when
12554 stopping threads, take into account that we might be trying
12555 to stop an all-stop target.
12556 (stop_waiting): Call 'stop_all_threads' if there exists a
12557 non-stop target.
12558
a0714d30
TBA
125592020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12560
12561 * target.h (exists_non_stop_target): New function declaration.
12562 * target.c (exists_non_stop_target): New function.
12563
60e22c1e
HD
125642020-04-01 Hannes Domani <ssbssa@yahoo.de>
12565
12566 PR gdb/24789
12567 * eval.c (is_integral_or_integral_reference): New function.
12568 (evaluate_subexp_standard): Allow integer references in
12569 pointer arithmetic.
12570
e139a727
TBA
125712020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12572
12573 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12574 check for no ptid in the stop reply when the target is non-stop.
12575
e0802d59
TT
125762020-04-01 Tom Tromey <tromey@adacore.com>
12577
12578 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12579 "name" parameter to rvalue reference. Initialize m_name_holder.
12580 <lookup_name_info>: New overloads.
12581 <name>: Return gdb::string_view.
12582 <c_str>: New method.
12583 <make_ignore_params>: Update.
12584 <search_name_hash>: Update.
12585 <language_lookup_name>: Return const char *.
12586 <m_name>: Change type.
12587 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12588 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12589 (lookup_name_info::match_any): Update.
12590 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12591 Update.
12592 * minsyms.c (linkage_name_str): Update.
12593 * language.c (default_symbol_name_matcher): Update.
12594 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12595 Update.
12596 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12597 (ada_lookup_name_info::ada_lookup_name_info): Update.
12598 (literal_symbol_name_matcher): Update.
12599
8c072cb6
TT
126002020-04-01 Tom Tromey <tromey@adacore.com>
12601
12602 * psymtab.c (psymtab_search_name): Remove function.
12603 (psym_lookup_symbol): Create search name and lookup name here.
12604 (lookup_partial_symbol): Remove "name" parameter; add
12605 lookup_name.
12606 (psym_expand_symtabs_for_function): Update.
12607
6f29a534
TT
126082020-03-31 Joel Jones <joelkevinjones@gmail.com>
12609
12610 PR tui/25597:
12611 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12612
af62665e
TT
126132020-03-31 Tom Tromey <tromey@adacore.com>
12614
12615 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12616 memcpy.
12617
d1a89da5
NC
126182020-03-30 Nelson Chu <nelson.chu@sifive.com>
12619
12620 * features/riscv/32bit-csr.xml: Regenerated.
12621 * features/riscv/64bit-csr.xml: Regenerated.
12622
d8af9068
TT
126232020-03-30 Tom Tromey <tromey@adacore.com>
12624
12625 * ada-valprint.c (print_variant_part): Update.
12626 * ada-lang.h (ada_which_variant_applies): Update.
12627 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12628 outer_valaddr parameters; replace with "outer" value parameter.
12629 (to_fixed_variant_branch_type): Update.
12630
227c0bf4
PFC
126312020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12632
12633 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12634 <list>. Remove inclusion of observable.h.
12635 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12636 (struct arch_lwp_info): New struct.
12637 (class ppc_linux_dreg_interface): New class.
12638 (struct ppc_linux_process_info): New struct.
12639 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12640 <low_new_clone, low_forget_process, low_prepare_to_resume>
12641 <copy_thread_dreg_state, mark_thread_stale>
12642 <mark_debug_registers_changed, register_hw_breakpoint>
12643 <clear_hw_breakpoint, register_wp, clear_wp>
12644 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12645 <num_memory_accesses, get_trigger_type>
12646 <create_watchpoint_request, hwdebug_point_cmp>
12647 <init_arch_lwp_info, get_arch_lwp_info>
12648 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12649 methods.
12650 <struct ptid_hash>: New inner struct.
12651 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12652 members.
12653 (saved_dabr_value, hwdebug_info, max_slots_number)
12654 (struct hw_break_tuple, struct thread_points, ppc_threads)
12655 (have_ptrace_hwdebug_interface)
12656 (hwdebug_find_thread_points_by_tid)
12657 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12658 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12659 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12660 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12661 use m_dreg_interface.
12662 (hwdebug_point_cmp): Change to...
12663 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12664 reference arguments instead of pointers.
12665 (ppc_linux_nat_target::ranged_break_num_registers): Use
12666 m_dreg_interface.
12667 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12668 m_dreg_interface. Call register_hw_breakpoint.
12669 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12670 m_dreg_interface. Call clear_hw_breakpoint.
12671 (get_trigger_type): Change to...
12672 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12673 comment.
12674 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12675 use m_dreg_interface. Call register_hw_breakpoint.
12676 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12677 use m_dreg_interface. Call clear_hw_breakpoint.
12678 (can_use_watchpoint_cond_accel): Change to...
12679 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12680 method. Update comment, use m_dreg_interface and
12681 m_process_info.
12682 (calculate_dvc): Change to...
12683 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12684 m_dreg_interface.
12685 (num_memory_accesses): Change to...
12686 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12687 (check_condition): Change to...
12688 (ppc_linux_nat_target::check_condition): ...this method.
12689 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12690 comment, use m_dreg_interface.
12691 (create_watchpoint_request): Change to...
12692 (ppc_linux_nat_target::create_watchpoint_request): ...this
12693 method. Use m_dreg_interface.
12694 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12695 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12696 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12697 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12698 (ppc_linux_nat_target::low_forget_process)
12699 (ppc_linux_nat_target::low_new_fork)
12700 (ppc_linux_nat_target::low_new_clone)
12701 (ppc_linux_nat_target::low_delete_thread)
12702 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12703 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12704 only call mark_thread_stale.
12705 (ppc_linux_thread_exit): Remove.
12706 (ppc_linux_nat_target::stopped_data_address): Change to...
12707 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12708 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12709 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12710 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12711 comment. Call low_stopped_data_address.
12712 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12713 m_dreg_interface.
12714 (ppc_linux_nat_target::masked_watch_num_registers): Use
12715 m_dreg_interface.
12716 (ppc_linux_nat_target::copy_thread_dreg_state)
12717 (ppc_linux_nat_target::mark_thread_stale)
12718 (ppc_linux_nat_target::mark_debug_registers_changed)
12719 (ppc_linux_nat_target::register_hw_breakpoint)
12720 (ppc_linux_nat_target::clear_hw_breakpoint)
12721 (ppc_linux_nat_target::register_wp)
12722 (ppc_linux_nat_target::clear_wp)
12723 (ppc_linux_nat_target::init_arch_lwp_info)
12724 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12725 (_initialize_ppc_linux_nat): Remove observer callback.
12726
4db10d8f
PFC
127272020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12728
12729 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12730 (ppc_linux_nat_target::auxv_parse)
12731 (ppc_linux_nat_target::read_description)
12732 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12733 Move up.
12734
1310c1b0
PFC
127352020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12736
12737 * linux-nat.h (low_new_clone): New method.
12738 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12739
69b037c3
SM
127402020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12741
12742 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12743 (dbx_expand_psymtab): ... this.
12744 (start_psymtab): Update.
12745 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12746 (mdebug_expand_psymtab): ... this.
12747 (parse_partial_symbols): Update.
12748 (new_psymtab): Update.
12749 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12750 (xcoff_expand_psymtab): ... this.
12751 (xcoff_start_psymtab): Update.
12752
48993951
SM
127532020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12754
12755 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12756 <expand_dependencies>: ... this.
12757 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12758 (partial_symtab::expand_dependencies): ... this.
12759 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12760 Update.
12761 (dwarf2_psymtab::expand_psymtab): Update.
12762 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12763 * mdebugread.c (psymtab_to_symtab_1): Update.
12764 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12765
3ad83046
SM
127662020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12767
12768 * psympriv.h (discard_psymtab): Remove.
12769 * dbxread.c (dbx_end_psymtab): Update.
12770 * xcoffread.c (xcoff_end_psymtab): Update.
12771
4d1b9ab6
TT
127722020-03-28 Tom Tromey <tom@tromey.com>
12773
12774 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12775 comment.
12776
f1749218
TT
127772020-03-28 Tom Tromey <tom@tromey.com>
12778
12779 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12780
ebea7626
HD
127812020-03-27 Hannes Domani <ssbssa@yahoo.de>
12782
12783 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12784
a879b4d5
JB
127852020-03-26 John Baldwin <jhb@FreeBSD.org>
12786
12787 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12788
0826b30a
TT
127892020-03-26 Tom Tromey <tom@tromey.com>
12790
12791 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12792 (mark_common_block_symbol_computed, read_tag_string_type)
12793 (attr_to_dynamic_prop, read_subrange_type): Update.
12794 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12795 to be methods on struct attribute.
12796 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12797 (read_call_site_scope, partial_die_info::read)
12798 (partial_die_info::read, lookup_die_type, follow_die_ref):
12799 Update.
12800 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12801 from dwarf2_get_ref_die_offset.
12802 (attribute::constant_value): New method, from
12803 dwarf2_get_attr_constant_value.
12804 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12805 Declare method.
12806 <constant_value>: New method.
12807
2b2558bf
TT
128082020-03-26 Tom Tromey <tom@tromey.com>
12809
12810 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12811 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12812 (dwarf_type_encoding_name): Move to stringify.c.
12813 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12814 * dwarf2/stringify.c: New file.
12815 * dwarf2/stringify.h: New file.
12816
eeb64781
TT
128172020-03-26 Tom Tromey <tom@tromey.com>
12818
12819 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12820 Rewrite.
12821
a39fdb41
TT
128222020-03-26 Tom Tromey <tom@tromey.com>
12823
12824 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12825 methods.
12826 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12827 (lookup_ranges_base): Likewise.
12828 (read_cutu_die_from_dwo, read_full_die_1): Update.
12829
436c571c
TT
128302020-03-26 Tom Tromey <tom@tromey.com>
12831
12832 * dwarf2/read.c (read_import_statement, read_file_scope)
12833 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12834 (read_lexical_block_scope, read_call_site_scope)
12835 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12836 (handle_struct_member_die, process_structure_scope)
12837 (update_enumeration_type_from_children)
12838 (process_enumeration_scope, read_array_type, read_common_block)
12839 (read_namespace, read_module, read_subroutine_type): Update.
12840 (sibling_die): Remove.
12841
052c8bb8
TT
128422020-03-26 Tom Tromey <tom@tromey.com>
12843
12844 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12845 (build_type_psymtabs_reader, read_structure_type)
12846 (read_enumeration_type, read_full_die_1): Update.
12847 (dwarf2_attr_no_follow): Move to die.h.
12848 * dwarf2/die.h (struct die_info) <attr>: New method.
12849
2b24b6e4
TT
128502020-03-26 Tom Tromey <tom@tromey.com>
12851
12852 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12853 <base_address>: Now an optional.
12854 (dwarf2_find_base_address, dwarf2_rnglists_process)
12855 (dwarf2_ranges_process, fill_in_loclist_baton)
12856 (dwarf2_symbol_mark_computed): Update.
12857
c2d50fd0
TT
128582020-03-26 Tom Tromey <tom@tromey.com>
12859
12860 * dwarf2/read.c (struct die_info): Move to die.h.
12861 * dwarf2/die.h: New file.
12862
0df7ad3a
TT
128632020-03-26 Tom Tromey <tom@tromey.com>
12864
12865 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12866 * dwarf2/read.c
12867 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12868 Move to line-header.c.
12869 (read_checked_initial_length_and_offset, read_formatted_entries):
12870 Likewise.
12871 (dwarf_decode_line_header): Split into two.
12872 * dwarf2/line-header.c
12873 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12874 Move from read.c.
12875 (read_checked_initial_length_and_offset, read_formatted_entries):
12876 Likewise.
12877 (dwarf_decode_line_header): New function, split from read.c.
12878
86c0bb4c
TT
128792020-03-26 Tom Tromey <tom@tromey.com>
12880
12881 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12882 Declare method.
12883 * dwarf2/read.c (read_attribute_value): Update.
12884 (dwarf2_per_objfile::read_line_string): Rename from
12885 read_indirect_line_string.
12886 (read_formatted_entries): Update.
12887
2ef46c2f
TT
128882020-03-26 Tom Tromey <tom@tromey.com>
12889
12890 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12891 variable.
12892
4f9c1eda
TT
128932020-03-26 Tom Tromey <tom@tromey.com>
12894
12895 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12896 const.
12897 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12898 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12899 parameter const.
12900
5a0e026f
TT
129012020-03-26 Tom Tromey <tom@tromey.com>
12902
12903 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12904 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12905 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12906 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12907
8844c11b
TT
129082020-03-26 Tom Tromey <tom@tromey.com>
12909
12910 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12911 file_names_size, file_full_name, file_file_name>: Use const.
12912 <file_name_at, file_names>: Add const overload.
12913 * dwarf2/line-header.c (line_header::file_file_name)
12914 (line_header::file_full_name): Update.
12915
c90ec28a
TT
129162020-03-26 Tom Tromey <tom@tromey.com>
12917
12918 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12919 (macro_start_file, consume_improper_spaces)
12920 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12921 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12922 (dwarf_decode_macros): Move to macro.c.
12923 * dwarf2/macro.c: New file.
12924 * dwarf2/macro.h: New file.
12925 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12926
4f44ae6c
TT
129272020-03-26 Tom Tromey <tom@tromey.com>
12928
12929 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12930 method.
12931 * dwarf2/section.c: New method. From
12932 read_indirect_string_at_offset_from.
12933 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12934 (read_indirect_string_at_offset_from): Move to section.c.
12935 (read_indirect_string_at_offset): Rewrite.
12936 (read_indirect_line_string_at_offset): Remove.
12937 (read_indirect_string, read_indirect_line_string)
12938 (dwarf_decode_macro_bytes): Update.
12939
a0194fa8
TT
129402020-03-26 Tom Tromey <tom@tromey.com>
12941
12942 * dwarf2/section.h (struct dwarf2_section_info)
12943 <overload_complaint>: Declare.
12944 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12945 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12946 Rename from dwarf2_section_buffer_overflow_complaint.
12947 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12948 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12949
3d27bbdb
TT
129502020-03-26 Tom Tromey <tom@tromey.com>
12951
12952 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12953 Declare.
12954 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12955 Move from read.c.
12956 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12957 to section.c.
12958
9eac9650
TT
129592020-03-26 Tom Tromey <tom@tromey.com>
12960
12961 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12962
bf80d710
TT
129632020-03-26 Tom Tromey <tom@tromey.com>
12964
12965 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12966 "builder".
12967 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12968 parameter.
12969 (dwarf_decode_macros): Update.
12970
0314b390
TT
129712020-03-26 Tom Tromey <tom@tromey.com>
12972
12973 * dwarf2/read.c (read_attribute_value): Update.
12974 (read_indirect_string_from_dwz): Move to dwz.c; change into
12975 method.
12976 (dwarf_decode_macro_bytes): Update.
12977 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12978 * dwarf2/dwz.c: New file.
12979 * Makefile.in (COMMON_SFILES): Add dwz.c.
12980
9fda78b6
TT
129812020-03-26 Tom Tromey <tom@tromey.com>
12982
12983 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12984 * dwarf2/read.c: Add include.
12985 * dwarf2/index-write.c: Add include.
12986 * dwarf2/index-cache.c: Add include.
12987 * dwarf2/dwz.h: New file.
12988
33aa3c10
TT
129892020-03-25 Tom Tromey <tom@tromey.com>
12990
12991 * compile/compile-object-load.c (get_out_value_type): Mention
12992 correct symbol name in error message.
12993
d503b685
HD
129942020-03-25 Hannes Domani <ssbssa@yahoo.de>
12995
12996 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12997
7b1eff95
TV
129982020-03-25 Tom de Vries <tdevries@suse.de>
12999
13000 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13001 * symmisc.c (dump_symtab_1): Print user and includes fields.
13002 (maintenance_info_symtabs): Same.
13003
dd895392
AB
130042020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13005
13006 PR gdb/25534
13007 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13008 (riscv_regcache_cooked_write): New function.
13009 (riscv_push_dummy_call): Use new function.
13010 (riscv_return_value): Likewise.
13011
5ab2fbf1
SM
130122020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13013
13014 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13015 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13016 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13017 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13018 * infrun.c (follow_fork): Likewise.
13019 (follow_fork_inferior): Likewise.
13020 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13021 * linux-nat.h (class linux_nat_target): Likewise.
13022 * remote.c (class remote_target) <follow_fork>: Likewise.
13023 (remote_target::follow_fork): Likewise.
13024 * target-delegates.c: Re-generate.
13025 * target.c (default_follow_fork): Likewise.
13026 (target_follow_fork): Likewise.
13027 * target.h (struct target_ops) <follow_fork>: Likewise.
13028 (target_follow_fork): Likewise.
13029
a64fafb5
TV
130302020-03-24 Tom de Vries <tdevries@suse.de>
13031
13032 * psymtab.c (maintenance_info_psymtabs): Print user field.
13033
fe26d3a3
TT
130342020-03-20 Tom Tromey <tromey@adacore.com>
13035
13036 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13037 const.
13038 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13039 const.
13040
c884cc46
SM
130412020-03-20 Simon Marchi <simon.marchi@efficios.com>
13042
13043 * ptrace.m4: Don't check for ptrace declaration.
13044 * config.in: Re-generate.
13045 * configure: Re-generate.
13046 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13047 not defined.
13048
1ff700c2
KR
130492020-03-20 Kamil Rytarowski <n54@gmx.com>
13050
13051 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13052 `PTRACE_TYPE_RET'.
13053 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13054 * sparc-nat.c (gdb_ptrace): Likewise.
13055 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13056
f7d4f0b1
TT
130572020-03-20 Tom Tromey <tromey@adacore.com>
13058
13059 * c-exp.y (lex_one_token): Fix assert.
13060
f67210ff
TT
130612020-03-20 Tom Tromey <tromey@adacore.com>
13062
13063 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13064 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13065 strncpy call.
13066
1773be9e
TT
130672020-03-20 Tom Tromey <tromey@adacore.com>
13068
13069 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13070
70304be9
TT
130712020-03-20 Tom Tromey <tromey@adacore.com>
13072
13073 * ada-valprint.c (print_variant_part): Remove parameters; switch
13074 to value-based API.
13075 (print_field_values): Likewise.
13076 (ada_val_print_struct_union): Likewise.
13077 (ada_value_print_1): Update.
13078
9faa006d
KR
130792020-03-20 Kamil Rytarowski <n54@gmx.com>
13080
13081 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13082 nbsd_nat_target instead of inf_ptrace_target.
13083 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13084 nbsd_nat_target.
13085
4a90f062
KR
130862020-03-20 Kamil Rytarowski <n54@gmx.com>
13087
13088 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13089 it to the ptrace call.
13090 * (store_registers): Likewise.
13091
130922020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13093
13094 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13095 it to the ptrace call.
13096 * (store_registers): Likewise.
13097
2d07da27
LM
130982020-03-19 Luis Machado <luis.machado@linaro.org>
13099
13100 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13101 valid, fetch vg value from ptrace.
13102
f09db380
KR
131032020-03-19 Kamil Rytarowski <n54@gmx.com>
13104 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13105 * inf-ptrace.c: Likewise.
13106 * (gdb_ptrace): Add.
13107 * (inf_ptrace_target::resume): Update.
13108 * (inf_ptrace_target::xfer_partial): Likewise.
13109 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13110 * (inf_ptrace_peek_poke): Update.
13111
fcc7376e
KR
131122020-03-19 Kamil Rytarowski <n54@gmx.com>
13113
13114 * x86-bsd-nat.c (gdb_ptrace): New.
13115 * (x86bsd_dr_set): Add new argument `ptid'.
13116 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13117 x86bsd_dr_set_addr): Update.
13118
cada5fc9
AB
131192020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13120
13121 * remote.c (remote_target::process_stop_reply): Handle events for
13122 all threads differently.
13123
19a2740f
AB
131242020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13125
13126 * completer.c (completion_tracker::remove_completion): Define new
13127 function.
13128 * completer.h (completion_tracker::remove_completion): Declare new
13129 function.
13130 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13131 when adding a C++ function symbol.
13132
724fd9ba
AB
131332020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13134
13135 * completer.c (completion_tracker::completion_hash_entry): Define
13136 new class.
13137 (advance_to_filename_complete_word_point): Call
13138 recompute_lowest_common_denominator.
13139 (completion_tracker::completion_tracker): Call discard_completions
13140 to setup the hash table.
13141 (completion_tracker::discard_completions): Allow for being called
13142 from the constructor, pass new equal function, and element deleter
13143 when constructing the hash table. Initialise new class member
13144 variables.
13145 (completion_tracker::maybe_add_completion): Remove use of
13146 m_entries_vec, and store more information into m_entries_hash.
13147 (completion_tracker::recompute_lcd_visitor): New function, most
13148 content taken from...
13149 (completion_tracker::recompute_lowest_common_denominator):
13150 ...here, this now just visits each item in the hash calling the
13151 above visitor.
13152 (completion_tracker::build_completion_result): Remove use of
13153 m_entries_vec, call recompute_lowest_common_denominator.
13154 * completer.h (completion_tracker::have_completions): Remove use
13155 of m_entries_vec.
13156 (completion_tracker::completion_hash_entry): Declare new class.
13157 (completion_tracker::recompute_lowest_common_denominator): Change
13158 function signature.
13159 (completion_tracker::recompute_lcd_visitor): Declare new function.
13160 (completion_tracker::m_entries_vec): Delete.
13161 (completion_tracker::m_entries_hash): Initialize to NULL.
13162 (completion_tracker::m_lowest_common_denominator_valid): New
13163 member variable.
13164 (completion_tracker::m_lowest_common_denominator_max_length): New
13165 member variable.
13166
5a82b8a1
KR
131672020-03-17 Kamil Rytarowski <n54@gmx.com>
13168
13169 * regformats/regdef.h: Put reg in gdb namespace.
13170
fb516a69
KR
131712020-03-17 Kamil Rytarowski <n54@gmx.com>
13172
13173 * i386-bsd-nat.c (gdb_ptrace): New.
13174 * (i386bsd_fetch_inferior_registers,
13175 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13176 * (i386bsd_fetch_inferior_registers,
13177 i386bsd_store_inferior_registers) Use gdb_ptrace.
13178
1c0aa1fb
KR
131792020-03-17 Kamil Rytarowski <n54@gmx.com>
13180
13181 * amd64-bsd-nat.c (gdb_ptrace): New.
13182 * (amd64bsd_fetch_inferior_registers,
13183 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13184 * (amd64bsd_fetch_inferior_registers,
13185 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13186
5ccd2fb7
KR
131872020-03-17 Kamil Rytarowski <n54@gmx.com>
13188
13189 * user-regs.c (user_reg::read): Rename to...
13190 (user_reg::xread): ...this.
13191 * (append_user_reg): Rename argument `read' to `xread'.
13192 * (user_reg_add_builtin): Likewise.
13193 * (user_reg_add): Likewise.
13194 * (value_of_user_reg): Likewise.
13195
2108a63a
KR
131962020-03-17 Kamil Rytarowski <n54@gmx.com>
13197
13198 * sparc-nat.c (gdb_ptrace): New.
13199 * sparc-nat.c (sparc_fetch_inferior_registers)
13200 (sparc_store_inferior_registers) Remove obsolete comment.
13201 * sparc-nat.c (sparc_fetch_inferior_registers)
13202 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13203 * sparc-nat.c (sparc_fetch_inferior_registers)
13204 (sparc_store_inferior_registers) Use gdb_ptrace.
13205
a225c9a8
KR
132062020-03-17 Kamil Rytarowski <n54@gmx.com>
13207
13208 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13209 it to the ptrace call.
13210 * sh-nbsd-nat.c (store_registers): Likewise.
13211
98097623
KR
132122020-03-17 Kamil Rytarowski <n54@gmx.com>
13213
13214 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13215 nbsd_nat_target instead of inf_ptrace_target.
13216 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13217 nbsd_nat_target.
13218
9e38d619
KR
132192020-03-17 Kamil Rytarowski <n54@gmx.com>
13220
13221 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13222
a2ecbe9f
KR
132232020-03-17 Kamil Rytarowski <n54@gmx.com>
13224
13225 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13226 <sys/sysctl.h>.
13227 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13228
58990295
TV
132292020-03-17 Tom de Vries <tdevries@suse.de>
13230
13231 PR gdb/23710
13232 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13233 fields.
13234 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13235 fields.
13236 (process_imported_unit_die): Skip import of c++ CUs.
13237
771dd3a8
TT
132382020-03-16 Tom Tromey <tom@tromey.com>
13239
13240 * p-valprint.c (pascal_object_print_value): Initialize
13241 base_value.
13242
817a7585
AK
132432020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13244 Shahab Vahedi <shahab@synopsys.com>
13245
13246 * Makefile.in: Add arch/arc.o
13247 * configure.tgt: Likewise.
13248 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13249 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13250 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13251 * arc-tdep.h (arc_read_description): Add proto type.
13252 * arch/arc.c: New file.
13253 * arch/arc.h: Likewise.
13254 * features/Makefile: Replace old target descriptions with new.
13255 * features/arc-arcompact.c: Remove.
13256 * features/arc-arcompact.xml: Likewise.
13257 * features/arc-v2.c: Likewise
13258 * features/arc-v2.xml: Likewise
13259 * features/arc/aux-arcompact.xml: New file.
13260 * features/arc/aux-v2.xml: Likewise.
13261 * features/arc/core-arcompact.xml: Likewise.
13262 * features/arc/core-v2.xml: Likewise.
13263 * features/arc/aux-arcompact.c: Generate.
13264 * features/arc/aux-v2.c: Likewise.
13265 * features/arc/core-arcompact.c: Likewise.
13266 * features/arc/core-v2.c: Likewise.
13267 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13268
67430cd0
TT
132692020-03-16 Tom Tromey <tromey@adacore.com>
13270
13271 PR gdb/25663:
13272 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13273 putting value into bcache.
13274
30efb6c7
SM
132752020-03-16 Simon Marchi <simon.marchi@efficios.com>
13276
13277 PR gdb/21500
13278 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13279 to...
13280 (amd64_windows_init_abi_common): ... this. Don't set size of
13281 long type.
13282 (amd64_windows_init_abi): New function.
13283 (amd64_cygwin_init_abi): New function.
13284 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13285 the Cygwin OS ABI.
13286 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13287 comment.
13288
8db52437
SM
132892020-03-16 Simon Marchi <simon.marchi@efficios.com>
13290
13291 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13292 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13293 (pe_import_directory_entry): New struct type.
13294 (is_linked_with_cygwin_dll): New function.
13295 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13296 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13297 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13298
5982a56a
SM
132992020-03-16 Simon Marchi <simon.marchi@efficios.com>
13300
13301 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13302 i386_cygwin_core_osabi_sniffer.
13303
7a1998df
SM
133042020-03-16 Simon Marchi <simon.marchi@efficios.com>
13305
13306 * i386-cygwin-tdep.c: Rename to...
13307 * i386-windows-tdep.c: ... this.
13308 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13309 i386-windows-tdep.c.
13310 * configure.tgt: Likewise.
13311
053205cc
SM
133122020-03-16 Simon Marchi <simon.marchi@efficios.com>
13313
13314 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13315 * osabi.c (gdb_osabi_names): Add "Windows".
13316 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13317 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13318 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13319 i386_cygwin_osabi_sniffer.
13320 (_initialize_i386_cygwin_tdep): Register OS ABI
13321 GDB_OSABI_WINDOWS for i386.
13322 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13323 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13324 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13325 for x86-64.
13326 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13327 when the target matches '*-*-mingw*'.
13328
fe4b2ee6
SM
133292020-03-16 Simon Marchi <simon.marchi@efficios.com>
13330
13331 * defs.h (enum gdb_osabi): Move to...
13332 * osabi.h (enum gdb_osabi): ... here.
13333 * gdbarch.sh: Include osabi.h in gdbarch.h.
13334 * gdbarch.h: Re-generate.
13335
cb9b645d
SM
133362020-03-16 Simon Marchi <simon.marchi@efficios.com>
13337
13338 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13339 function.
13340 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13341
3293bbaf
TT
133422020-03-14 Tom Tromey <tom@tromey.com>
13343
13344 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13345 for C++.
13346 (c_type_print_modifier): Likewise. Add "language" parameter.
13347 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13348 (c_type_print_base_1): Update.
13349 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13350 constants.
13351 * type-stack.c (type_stack::insert): Handle tp_atomic and
13352 tp_restrict.
13353 (type_stack::follow_type_instance_flags): Likewise.
13354 (type_stack::follow_types): Likewise. Merge type-following code.
13355 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13356 (space_identifier, cv_with_space_id)
13357 (const_or_volatile_or_space_identifier_noopt)
13358 (const_or_volatile_or_space_identifier): Remove.
13359 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13360 rules.
13361 (ptr_operator, typebase): Update.
13362 (enum token_flag) <FLAG_C>: New constant.
13363 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13364 "_Atomic".
13365 (lex_one_token): Handle FLAG_C.
13366
154151a6
KR
133672020-03-14 Kamil Rytarowski <n54@gmx.com>
13368
13369 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13370 it to the ptrace call.
13371 * m68k-bsd-nat.c (store_registers): Likewise.
13372
bc107784
KR
133732020-03-14 Kamil Rytarowski <n54@gmx.com>
13374
13375 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13376 gdb_byte *.
13377 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13378 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13379 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13380
01a80117
KR
133812020-03-14 Kamil Rytarowski <n54@gmx.com>
13382
13383 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13384 nbsd_nat_target instead of inf_ptrace_target.
13385 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13386 nbsd_nat_target.
13387
f90280ca
KR
133882020-03-14 Kamil Rytarowski <n54@gmx.com>
13389
13390 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13391 register_t.
13392
6def66f1
KR
133932020-03-14 Kamil Rytarowski <n54@gmx.com>
13394
13395 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13396 it to the ptrace call.
13397 * alpha-bsd-nat.c (store_registers): Likewise.
13398
66eaca97
KR
133992020-03-14 Kamil Rytarowski <n54@gmx.com>
13400
13401 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13402 includes.
13403 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13404 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13405 fill_fpregset): Likewise.
13406
4fed520b
KR
134072020-03-14 Kamil Rytarowski <n54@gmx.com>
13408
13409 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13410 nbsd_nat_target instead of inf_ptrace_target.
13411 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13412 nbsd_nat_target.
13413
2190cf06
KR
134142020-03-14 Kamil Rytarowski <n54@gmx.com>
13415
13416 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13417 register_t.
13418
75c56d3d
KR
134192020-03-14 Kamil Rytarowski <n54@gmx.com>
13420
13421 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13422 it to the ptrace call.
13423 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13424 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13425 * arm-nbsd-nat.c (store_register): Likewise.
13426 * arm-nbsd-nat.c (store_regs): Likewise.
13427 * arm-nbsd-nat.c (store_fp_register): Likewise.
13428 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13429
6018d381
KR
134302020-03-14 Kamil Rytarowski <n54@gmx.com>
13431
13432 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13433 nbsd_nat_target instead of inf_ptrace_target.
13434 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13435 nbsd_nat_target.
13436
013f99f0
KR
134372020-03-14 Kamil Rytarowski <n54@gmx.com>
13438
13439 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13440 it to the ptrace call.
13441 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13442
12753073
KR
134432020-03-14 Kamil Rytarowski <n54@gmx.com>
13444
6227b330
KR
13445 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13446 it to the ptrace call.
13447 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13448
134492020-03-14 Kamil Rytarowski <n54@gmx.com>
13450
13451 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13452 gdb_byte *.
12753073
KR
13453 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13454
d5be5fa4
KR
134552020-03-14 Kamil Rytarowski <n54@gmx.com>
13456
13457 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13458 instead of inf_ptrace_target.
13459 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13460 nbsd_nat_target.
13461
8110f842
KR
134622020-03-14 Kamil Rytarowski <n54@gmx.com>
13463
13464 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13465 register_t.
13466
52feded7
KR
134672020-03-14 Kamil Rytarowski <n54@gmx.com>
13468
13469 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13470 register_t.
13471
25567eee
KR
134722020-03-14 Kamil Rytarowski <n54@gmx.com>
13473
13474 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13475 register_t.
13476
426a9c18
TT
134772020-03-13 Tom Tromey <tom@tromey.com>
13478
13479 * value.h (val_print): Don't declare.
13480 * valprint.h (val_print_array_elements)
13481 (val_print_scalar_formatted, generic_val_print): Don't declare.
13482 * valprint.c (generic_val_print_array): Take a struct value.
13483 (generic_val_print_ptr, generic_val_print_memberptr)
13484 (generic_val_print_bool, generic_val_print_int)
13485 (generic_val_print_char, generic_val_print_complex)
13486 (generic_val_print): Remove.
13487 (generic_value_print): Update.
13488 (do_val_print): Remove unused parameters. Don't call
13489 la_val_print.
13490 (val_print): Remove.
13491 (common_val_print): Update. Don't call value_check_printable.
13492 (val_print_scalar_formatted, val_print_array_elements): Remove.
13493 * rust-lang.c (rust_val_print): Remove.
13494 (rust_language_defn): Update.
13495 * p-valprint.c (pascal_val_print): Remove.
13496 (pascal_value_print_inner): Update.
13497 (pascal_object_print_val_fields, pascal_object_print_val):
13498 Remove.
13499 (pascal_object_print_static_field): Update.
13500 * p-lang.h (pascal_val_print): Don't declare.
13501 * p-lang.c (pascal_language_defn): Update.
13502 * opencl-lang.c (opencl_language_defn): Update.
13503 * objc-lang.c (objc_language_defn): Update.
13504 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13505 * m2-lang.h (m2_val_print): Don't declare.
13506 * m2-lang.c (m2_language_defn): Update.
13507 * language.h (struct language_defn) <la_val_print>: Remove.
13508 * language.c (unk_lang_value_print_inner): Rename. Change
13509 argument types.
13510 (unknown_language_defn, auto_language_defn): Update.
13511 * go-valprint.c (go_val_print): Remove.
13512 * go-lang.h (go_val_print): Don't declare.
13513 * go-lang.c (go_language_defn): Update.
13514 * f-valprint.c (f_val_print): Remove.
13515 * f-lang.h (f_value_print): Don't declare.
13516 * f-lang.c (f_language_defn): Update.
13517 * d-valprint.c (d_val_print): Remove.
13518 * d-lang.h (d_value_print): Don't declare.
13519 * d-lang.c (d_language_defn): Update.
13520 * cp-valprint.c (cp_print_value_fields)
13521 (cp_print_value_fields_rtti, cp_print_value): Remove.
13522 (cp_print_static_field): Update.
13523 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13524 (c_val_print_struct, c_val_print_union, c_val_print_int)
13525 (c_val_print_memberptr, c_val_print): Remove.
13526 * c-lang.h (c_val_print_array, cp_print_value_fields)
13527 (cp_print_value_fields_rtti): Don't declare.
13528 * c-lang.c (c_language_defn, cplus_language_defn)
13529 (asm_language_defn, minimal_language_defn): Update.
13530 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13531 (ada_val_print_enum): Take a struct value.
13532 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13533 (ada_val_print): Remove.
13534 (ada_value_print_1): Update.
13535 (printable_val_type): Remove.
13536 * ada-lang.h (ada_val_print): Don't declare.
13537 * ada-lang.c (ada_language_defn): Update.
13538
42331a1e
TT
135392020-03-13 Tom Tromey <tom@tromey.com>
13540
13541 * valprint.c (do_val_print): Update.
13542 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13543 a struct value.
13544 (value_to_value_object_no_release): Declare.
13545 * python/py-value.c (value_to_value_object_no_release): New
13546 function.
13547 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13548 struct value.
13549 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13550 function.
13551 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13552 a struct value.
13553 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13554 Declare.
13555 (gdbscm_apply_val_pretty_printer): Take a struct value.
13556 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13557 value.
13558 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13559 value.
13560 * extension-priv.h (struct extension_language_ops)
13561 <apply_val_pretty_printer>: Take a struct value.
13562 * cp-valprint.c (cp_print_value): Create a struct value.
13563 (cp_print_value): Update.
13564
3a916a97
TT
135652020-03-13 Tom Tromey <tom@tromey.com>
13566
13567 * ada-valprint.c (print_field_values): Call common_val_print.
13568
b59eac37
TT
135692020-03-13 Tom Tromey <tom@tromey.com>
13570
13571 * ada-valprint.c (val_print_packed_array_elements): Remove
13572 bitoffset and val parameters. Call common_val_print.
13573 (ada_val_print_string): Remove offset, address, and original_value
13574 parameters.
13575 (ada_val_print_array): Update.
13576 (ada_value_print_array): New function.
13577 (ada_value_print_1): Call it.
13578
03371129
TT
135792020-03-13 Tom Tromey <tom@tromey.com>
13580
13581 * ada-valprint.c (ada_value_print): Use common_val_print.
13582
2e088f8b
TT
135832020-03-13 Tom Tromey <tom@tromey.com>
13584
13585 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13586
39ef85a8
TT
135872020-03-13 Tom Tromey <tom@tromey.com>
13588
13589 * ada-valprint.c (ada_value_print_num): New function.
13590 (ada_value_print_1): Use it.
13591
b9fa6e07
TT
135922020-03-13 Tom Tromey <tom@tromey.com>
13593
13594 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13595
416595d6
TT
135962020-03-13 Tom Tromey <tom@tromey.com>
13597
13598 * ada-valprint.c (ada_value_print_ptr): New function.
13599 (ada_value_print_1): Use it.
13600
5b5e15ec
TT
136012020-03-13 Tom Tromey <tom@tromey.com>
13602
13603 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13604 call common_val_print.
13605 (ada_val_print_1): Update.
13606 (ada_value_print_1): New function.
13607 (ada_value_print_inner): Rewrite.
13608
fbf54e75
TT
136092020-03-13 Tom Tromey <tom@tromey.com>
13610
13611 * cp-valprint.c (cp_print_value_fields): Update.
13612 (cp_print_value): New function.
13613
64b653ca
TT
136142020-03-13 Tom Tromey <tom@tromey.com>
13615
13616 * m2-valprint.c (m2_value_print_inner): Use
13617 cp_print_value_fields.
13618 * cp-valprint.c (cp_print_value_fields): New function.
13619 * c-valprint.c (c_value_print_struct): New function.
13620 (c_value_print_inner): Use c_value_print_struct.
13621 * c-lang.h (cp_print_value_fields): Declare.
13622
6999f067
TT
136232020-03-13 Tom Tromey <tom@tromey.com>
13624
13625 * c-valprint.c (c_value_print_array): New function.
13626 (c_value_print_inner): Use it.
13627
ce80b8bd
TT
136282020-03-13 Tom Tromey <tom@tromey.com>
13629
13630 * c-valprint.c (c_value_print_memberptr): New function.
13631 (c_value_print_inner): Use it.
13632
2faac269
TT
136332020-03-13 Tom Tromey <tom@tromey.com>
13634
13635 * c-valprint.c (c_value_print_int): New function.
13636 (c_value_print_inner): Use it.
13637
da3e2c29
TT
136382020-03-13 Tom Tromey <tom@tromey.com>
13639
13640 * c-valprint.c (c_value_print_ptr): New function.
13641 (c_value_print_inner): Use it.
13642
50836231
TT
136432020-03-13 Tom Tromey <tom@tromey.com>
13644
13645 * c-valprint.c (c_value_print_inner): Rewrite.
13646
4f412b6e
TT
136472020-03-13 Tom Tromey <tom@tromey.com>
13648
13649 * valprint.c (generic_value_print_complex): New function.
13650 (generic_value_print): Use it.
13651
f5354008
TT
136522020-03-13 Tom Tromey <tom@tromey.com>
13653
13654 * valprint.c (generic_val_print_float): Don't call
13655 val_print_scalar_formatted.
13656 (generic_val_print, generic_value_print): Update.
13657
3eec3b05
TT
136582020-03-13 Tom Tromey <tom@tromey.com>
13659
13660 * valprint.c (generic_value_print_char): New function
13661 (generic_value_print): Use it.
13662
fdddfccb
TT
136632020-03-13 Tom Tromey <tom@tromey.com>
13664
13665 * valprint.c (generic_value_print_int): New function.
13666 (generic_value_print): Use it.
13667
6dde7521
TT
136682020-03-13 Tom Tromey <tom@tromey.com>
13669
13670 * valprint.c (generic_value_print_bool): New function.
13671 (generic_value_print): Use it.
13672
4112d2e6
TT
136732020-03-13 Tom Tromey <tom@tromey.com>
13674
13675 * valprint.c (generic_val_print_func): Simplify.
13676 (generic_val_print, generic_value_print): Update.
13677
65786af6
TT
136782020-03-13 Tom Tromey <tom@tromey.com>
13679
13680 * valprint.c (generic_val_print_flags): Remove.
13681 (generic_val_print, generic_value_print): Update.
13682 (val_print_type_code_flags): Add original_value parameter.
13683
40f3ce18
TT
136842020-03-13 Tom Tromey <tom@tromey.com>
13685
13686 * valprint.c (generic_val_print): Update.
13687 (generic_value_print): Update.
13688 * valprint.c (generic_val_print_enum): Don't call
13689 val_print_scalar_formatted.
13690
2a5b130b
TT
136912020-03-13 Tom Tromey <tom@tromey.com>
13692
13693 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13694 * valprint.c (generic_value_print_ptr): New function.
13695
abc66ce9
TT
136962020-03-13 Tom Tromey <tom@tromey.com>
13697
13698 * valprint.c (generic_value_print): Rewrite.
13699
07a32858
TT
137002020-03-13 Tom Tromey <tom@tromey.com>
13701
13702 * p-valprint.c (pascal_object_print_value_fields)
13703 (pascal_object_print_value): New functions.
13704
64d64d3a
TT
137052020-03-13 Tom Tromey <tom@tromey.com>
13706
13707 * p-valprint.c (pascal_value_print_inner): Rewrite.
13708
6a95a1f5
TT
137092020-03-13 Tom Tromey <tom@tromey.com>
13710
13711 * f-valprint.c (f_value_print_innner): Rewrite.
13712
59fcdac6
TT
137132020-03-13 Tom Tromey <tom@tromey.com>
13714
13715 * m2-valprint.c (m2_print_unbounded_array): New overload.
13716 (m2_print_unbounded_array): Update.
13717 (m2_print_array_contents): Take a struct value.
13718 (m2_value_print_inner): Rewrite.
13719
d133c3e1
TT
137202020-03-13 Tom Tromey <tom@tromey.com>
13721
13722 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13723 (d_value_print_inner): New function.
13724 * d-lang.h (d_value_print_inner): Declare.
13725 * d-lang.c (d_language_defn): Use d_value_print_inner.
13726
23b0f06b
TT
137272020-03-13 Tom Tromey <tom@tromey.com>
13728
13729 * go-valprint.c (go_value_print_inner): New function.
13730 * go-lang.h (go_value_print_inner): Declare.
13731 * go-lang.c (go_language_defn): Use go_value_print_inner.
13732
5f56f7cb
TT
137332020-03-13 Tom Tromey <tom@tromey.com>
13734
13735 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13736 API.
13737 (rust_val_print): Rewrite.
13738 (rust_value_print_inner): New function, from rust_val_print.
13739 (rust_language_defn): Use rust_value_print_inner.
13740
26792ee0
TT
137412020-03-13 Tom Tromey <tom@tromey.com>
13742
13743 * ada-valprint.c (ada_value_print_inner): New function.
13744 * ada-lang.h (ada_value_print_inner): Declare.
13745 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13746
24051bbe
TT
137472020-03-13 Tom Tromey <tom@tromey.com>
13748
13749 * f-valprint.c (f_value_print_innner): New function.
13750 * f-lang.h (f_value_print_innner): Declare.
13751 * f-lang.c (f_language_defn): Use f_value_print_innner.
13752
c0941be6
TT
137532020-03-13 Tom Tromey <tom@tromey.com>
13754
13755 * p-valprint.c (pascal_value_print_inner): New function.
13756 * p-lang.h (pascal_value_print_inner): Declare.
13757 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13758
62c4663d
TT
137592020-03-13 Tom Tromey <tom@tromey.com>
13760
13761 * m2-valprint.c (m2_value_print_inner): New function.
13762 * m2-lang.h (m2_value_print_inner): Declare.
13763 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13764
62182190
TT
137652020-03-13 Tom Tromey <tom@tromey.com>
13766
13767 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13768 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13769 * c-valprint.c (c_value_print_inner): New function.
13770 * c-lang.h (c_value_print_inner): Declare.
13771 * c-lang.c (c_language_defn, cplus_language_defn)
13772 (asm_language_defn, minimal_language_defn): Use
13773 c_value_print_inner.
13774
1e592a8a
TT
137752020-03-13 Tom Tromey <tom@tromey.com>
13776
13777 * p-valprint.c (pascal_object_print_value_fields): Now static.
13778 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13779
7fe471e9
TT
137802020-03-13 Tom Tromey <tom@tromey.com>
13781
13782 * c-valprint.c (c_val_print_array): Simplify.
13783
d121c6ce
TT
137842020-03-13 Tom Tromey <tom@tromey.com>
13785
13786 * valprint.c (value_print_array_elements): New function.
13787 * valprint.h (value_print_array_elements): Declare.
13788
4dba70ee
TT
137892020-03-13 Tom Tromey <tom@tromey.com>
13790
13791 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13792 * mips-tdep.c (mips_print_register): Use
13793 value_print_scalar_formatted.
13794
4f9ae810
TT
137952020-03-13 Tom Tromey <tom@tromey.com>
13796
13797 * valprint.h (value_print_scalar_formatted): Declare.
13798 * valprint.c (value_print_scalar_formatted): New function.
13799
156bfec9
TT
138002020-03-13 Tom Tromey <tom@tromey.com>
13801
13802 * valprint.h (generic_value_print): Declare.
13803 * valprint.c (generic_value_print): New function.
13804
2b4e573d
TT
138052020-03-13 Tom Tromey <tom@tromey.com>
13806
13807 * valprint.c (do_val_print): Call la_value_print_inner, if
13808 available.
13809 * rust-lang.c (rust_language_defn): Update.
13810 * p-lang.c (pascal_language_defn): Update.
13811 * opencl-lang.c (opencl_language_defn): Update.
13812 * objc-lang.c (objc_language_defn): Update.
13813 * m2-lang.c (m2_language_defn): Update.
13814 * language.h (struct language_defn) <la_value_print_inner>: New
13815 member.
13816 * language.c (unknown_language_defn, auto_language_defn): Update.
13817 * go-lang.c (go_language_defn): Update.
13818 * f-lang.c (f_language_defn): Update.
13819 * d-lang.c (d_language_defn): Update.
13820 * c-lang.c (c_language_defn, cplus_language_defn)
13821 (asm_language_defn, minimal_language_defn): Update.
13822 * ada-lang.c (ada_language_defn): Update.
13823
a1f6a07c
TT
138242020-03-13 Tom Tromey <tom@tromey.com>
13825
13826 * c-valprint.c (c_value_print): Use common_val_print.
13827
410cf315
TT
138282020-03-13 Tom Tromey <tom@tromey.com>
13829
13830 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13831
72a45c93
TT
138322020-03-13 Tom Tromey <tom@tromey.com>
13833
13834 * f-valprint.c (f77_print_array_1, f_val_print): Use
13835 common_val_print.
13836
040f66bd
TT
138372020-03-13 Tom Tromey <tom@tromey.com>
13838
13839 * riscv-tdep.c (riscv_print_one_register_info): Use
13840 common_val_print.
13841
a6e05a6c
TT
138422020-03-13 Tom Tromey <tom@tromey.com>
13843
13844 * mi/mi-main.c (output_register): Use common_val_print.
13845
3444c526
TT
138462020-03-13 Tom Tromey <tom@tromey.com>
13847
13848 * infcmd.c (default_print_one_register_info): Use
13849 common_val_print.
13850
c2a44efe
TT
138512020-03-13 Tom Tromey <tom@tromey.com>
13852
13853 * valprint.h (common_val_print_checked): Declare.
13854 * valprint.c (common_val_print_checked): New function.
13855 * stack.c (print_frame_arg): Use common_val_print_checked.
13856
b0c26e99
TT
138572020-03-13 Tom Tromey <tom@tromey.com>
13858
13859 * valprint.c (do_val_print): New function, from val_print.
13860 (val_print): Use do_val_print.
13861 (common_val_print): Use do_val_print.
13862
ce3acbe9
TT
138632020-03-13 Tom Tromey <tom@tromey.com>
13864
13865 * valprint.c (value_print): Use scoped_value_mark.
13866
96c7f873
TV
138672020-03-13 Tom de Vries <tdevries@suse.de>
13868
13869 PR symtab/25646
13870 * psymtab.c (partial_symtab::partial_symtab): Don't set
13871 globals_offset and statics_offset. Push element onto
13872 current_global_psymbols and current_static_psymbols stacks.
13873 (concat): New function.
13874 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13875 element from current_global_psymbols and current_static_psymbols
13876 stacks. Concat popped elements to global_psymbols and
13877 static_symbols.
13878 (add_psymbol_to_list): Use current_global_psymbols and
13879 current_static_psymbols stacks.
13880 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13881 current_static_psymbols fields.
13882
6ba0a321
CB
138832020-03-12 Christian Biesinger <cbiesinger@google.com>
13884
13885 * corelow.c (sniff_core_bfd): Remove.
13886 (class core_target) <m_core_vec>: Remove.
13887 (core_target::core_target): Update.
13888 (core_file_fns): Remove.
13889 (deprecated_add_core_fns): Remove.
13890 (default_core_sniffer): Remove.
13891 (sniff_core_bfd): Remove.
13892 (default_check_format): Remove.
13893 (gdb_check_format): Remove.
13894 (core_target_open): Update.
13895 (core_target::get_core_register_section): Update.
13896 (get_core_registers_cb): Update.
13897 (core_target::fetch_registers): Update.
13898 * gdbcore.h (struct core_fns): Remove.
13899 (deprecated_add_core_fns): Remove.
13900 (default_core_sniffer): Remove.
13901 (default_check_format): Remove.
13902
227031b2
TT
139032020-03-12 Tom Tromey <tom@tromey.com>
13904
13905 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13906 CORE_ADDR.
13907 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13908
53807e9f
TT
139092020-03-12 Tom Tromey <tom@tromey.com>
13910
13911 * remote.c (remote_target::download_tracepoint)
13912 (remote_target::enable_tracepoint)
13913 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13914 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13915 sprintf_vma.
13916
64f25102
TT
139172020-03-12 Tom Tromey <tom@tromey.com>
13918
13919 * symfile-mem.c: Update CORE_ADDR size assert.
13920
272cd5a3
SM
139212020-03-12 Simon Marchi <simon.marchi@efficios.com>
13922
13923 * selftest.m4: Move to gdbsupport/.
13924 * acinclude.m4: Update path to selftest.m4.
13925
74cd3f9d
SM
139262020-03-12 Simon Marchi <simon.marchi@efficios.com>
13927
13928 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13929 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13930 gdbarch-selfselftests.c and selftest-arch.c.
13931 (SUBDIR_UNITTESTS_OBS): Rename to...
13932 (SELFTESTS_OBS): ... this.
13933 (COMMON_SFILES): Remove disasm-selftests.c and
13934 gdbarch-selftests.c.
13935 * configure.ac: Don't add selftest-arch.{c,o} to
13936 CONFIG_{SRCS,OBS}.
13937 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13938 preprocessor conditions.
13939
db6878ac
SM
139402020-03-12 Simon Marchi <simon.marchi@efficios.com>
13941
13942 * configure.ac: Don't source bfd/development.sh.
13943 * selftest.m4: Modify comment.
13944 * configure: Re-generate.
13945
4d696a5c
SM
139462020-03-12 Simon Marchi <simon.marchi@efficios.com>
13947
13948 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13949 not "true" or "false".
13950 * configure: Re-generate.
13951
8dd8e1c7
CB
139522020-03-12 Christian Biesinger <cbiesinger@google.com>
13953
13954 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13955 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13956 renamed to arm_nbsd_supply_gregset.
13957 (fetch_register): Update to call arm_nbsd_supply_gregset.
13958 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13959 (arm_netbsd_nat_target::fetch_registers): Update.
13960 (fetch_elfcore_registers): Removed.
13961 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13962 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13963 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13964 not require NetBSD system headers.
13965 (arm_nbsd_regset): New struct.
13966 (arm_nbsd_iterate_over_regset_sections): New function.
13967 (arm_netbsd_init_abi_common): Updated to call
13968 set_gdbarch_iterate_over_regset_sections.
13969 * arm-nbsd-tdep.h: New file.
13970
dd69bf7a
KB
139712020-03-11 Kevin Buettner <kevinb@redhat.com>
13972
13973 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13974 recursion.
13975
a0761e34
SM
139762020-03-11 Simon Marchi <simon.marchi@efficios.com>
13977
13978 * configure: Re-generate.
13979
e7a82140
TT
139802020-03-11 Tom Tromey <tromey@adacore.com>
13981
13982 * ada-typeprint.c (print_choices): Fix comment.
13983
dcc050c8
AB
139842020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13985
13986 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13987 previous item in the list, when the list has no items.
13988
1c33af77
TV
139892020-03-11 Tom de Vries <tdevries@suse.de>
13990
13991 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13992 PROP_LOCLIST handling code.
13993
8c95582d
AB
139942020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13995
13996 * buildsym-legacy.c (record_line): Pass extra parameter to
13997 record_line.
13998 * buildsym.c (buildsym_compunit::record_line): Take an extra
13999 parameter, reduce duplication in the line table, and record the
14000 is_stmt flag in the line table.
14001 * buildsym.h (buildsym_compunit::record_line): Add extra
14002 parameter.
14003 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14004 non-statement lines.
14005 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14006 this to the symtab builder.
14007 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14008 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14009 through to dwarf_record_line_1.
14010 * infrun.c (process_event_stop_test): When stepping, don't stop at
14011 a non-statement instruction, and only refresh the step info when
14012 we land in the middle of a line's range. Also add an extra
14013 comment.
14014 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14015 field.
14016 * record-btrace.c (btrace_find_line_range): Only record lines
14017 marked as is-statement.
14018 * stack.c (frame_show_address): Show the frame address if we are
14019 in a non-statement sal.
14020 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14021 (maintenance_print_one_line_table): Print a header for the is_stmt
14022 column, and include is_stmt information in the output.
14023 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14024 preference to non-statements.
14025 (find_pcs_for_symtab_line): Prefer is-statement entries.
14026 (find_line_common): Likewise.
14027 * symtab.h (struct linetable_entry): Add is_stmt field.
14028 (struct symtab_and_line): Likewise.
14029 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14030 arranging the line table.
14031
e4003a34
TV
140322020-03-07 Tom de Vries <tdevries@suse.de>
14033
14034 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14035 DIE.
14036
e8932576
TT
140372020-03-07 Tom Tromey <tom@tromey.com>
14038
14039 * valops.c (value_literal_complex): Remove obsolete comment.
14040 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14041 comment.
14042
29734269
SM
140432020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14044
14045 * infrun.h: Forward-declare thread_info.
14046 (set_step_info): Add thread_info parameter, add doc.
14047 * infrun.c (set_step_info): Add thread_info parameter, move doc
14048 to header.
14049 * infrun.c (process_event_stop_test): Pass thread to
14050 set_step_info call.
14051 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14052 set_step_info.
14053 (prepare_one_step): Add thread_info parameter, pass it to
14054 set_step_frame and prepare_one_step (recursive) call.
14055 (step_1): Pass thread to prepare_one_step call.
14056 (step_command_fsm::should_stop): Pass thread to
14057 prepare_one_step.
14058 (until_next_fsm): Pass thread to set_step_frame call.
14059 (finish_command): Pass thread to set_step_info call.
14060
b7d64b29
HD
140612020-03-06 Hannes Domani <ssbssa@yahoo.de>
14062
14063 * windows-tdep.c (windows_solib_create_inferior_hook):
14064 Check if inferior is running.
14065
09f2921c
TV
140662020-03-06 Tom de Vries <tdevries@suse.de>
14067
14068 * NEWS: Fix "the the".
14069 * ctfread.c: Same.
14070
fd760e79
TV
140712020-03-06 Tom de Vries <tdevries@suse.de>
14072
14073 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14074
20ea4a60
AB
140752020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14076
14077 * .dir-locals.el: Add a comment referencing the other copies of
14078 this file.
14079
0afbabf0
JB
140802020-03-05 John Baldwin <jhb@FreeBSD.org>
14081
14082 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14083 psargs.
14084
842806cb
TBA
140852020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14086
14087 * .gitattributes: New file.
14088
be1e3d3e
TT
140892020-03-04 Tom Tromey <tom@tromey.com>
14090
14091 * symmisc.c (print_symbol_bcache_statistics)
14092 (print_objfile_statistics): Update.
14093 * symfile.c (allocate_symtab): Use intern.
14094 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14095 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14096 macro_cache>: Remove.
14097 <string_cache>: New member.
14098 (struct objfile) <intern>: New methods.
14099 * elfread.c (elf_symtab_read): Use intern.
14100 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14101 (dwarf2_compute_name, dwarf2_physname)
14102 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14103 names.
14104 (guess_partial_die_structure_name): Update.
14105 (partial_die_info::fixup): Intern name.
14106 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14107 name.
14108 (dwarf2_name): Intern name. Update.
14109 * buildsym.c (buildsym_compunit::get_macro_table): Use
14110 string_cache.
14111
4e7625fd
TT
141122020-03-04 Tom Tromey <tom@tromey.com>
14113
14114 * jit.c (bfd_open_from_target_memory): Make "target" const.
14115 * corefile.c (gnutarget): Now const.
14116 * gdbcore.h (gnutarget): Now const.
14117
46f9f931
HD
141182020-03-04 Hannes Domani <ssbssa@yahoo.de>
14119
14120 * NEWS: Mention support for WOW64 processes.
14121 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14122 (amd64_windows_segment_register_p): Remove static.
14123 (_initialize_amd64_windows_nat): Update.
14124 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14125 * i386-windows-nat.c (context_offset): Update.
14126 (i386_mappings): Rename and remove static.
14127 (i386_windows_segment_register_p): Remove static.
14128 (_initialize_i386_windows_nat): Update.
14129 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14130 (STATUS_WX86_SINGLE_STEP): New macro.
14131 (EnumProcessModulesEx): New macro.
14132 (Wow64SuspendThread): New macro.
14133 (Wow64GetThreadContext): New macro.
14134 (Wow64SetThreadContext): New macro.
14135 (Wow64GetThreadSelectorEntry): New macro.
14136 (windows_set_context_register_offsets): Add static.
14137 (windows_set_segment_register_p): Likewise.
14138 (windows_add_thread): Adapt for WOW64 processes.
14139 (windows_fetch_one_register): Likewise.
14140 (windows_nat_target::fetch_registers): Likewise.
14141 (windows_store_one_register): Likewise.
14142 (display_selector): Likewise.
14143 (display_selectors): Likewise.
14144 (handle_exception): Likewise.
14145 (windows_continue): Likewise.
14146 (windows_nat_target::resume): Likewise.
14147 (windows_add_all_dlls): Likewise.
14148 (do_initial_windows_stuff): Likewise.
14149 (windows_nat_target::attach): Likewise.
14150 (windows_get_exec_module_filename): Likewise.
14151 (windows_nat_target::create_inferior): Likewise.
14152 (windows_xfer_siginfo): Likewise.
14153 (_initialize_loadable): Initialize Wow64SuspendThread,
14154 Wow64GetThreadContext, Wow64SetThreadContext,
14155 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14156 * windows-nat.h (windows_set_context_register_offsets):
14157 Remove declaration.
14158 (windows_set_segment_register_p): Likewise.
14159 (i386_windows_segment_register_p): Add declaration.
14160 (amd64_windows_segment_register_p): Likewise.
14161
440cf44e
LM
141622020-03-04 Luis Machado <luis.machado@linaro.org>
14163
14164 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14165 in "info registers" for AArch64/ARM.
14166
14167 The change caused "info registers" to not print GPR's.
14168
14169 gdb/ChangeLog:
14170
14171 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14172
14173 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14174 when reg->group is empty and reggroup is not.
14175
1009d92f
TT
141762020-03-03 Tom Tromey <tromey@adacore.com>
14177
14178 * dwarf2/frame.c (struct dwarf2_frame_cache)
14179 <checked_tailcall_bottom, entry_cfa_sp_offset,
14180 entry_cfa_sp_offset_p>: Remove members.
14181 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14182 (dwarf2_frame_prev_register): Don't call
14183 dwarf2_tailcall_sniffer_first.
14184 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14185 * frame-unwind.c (add_unwinder): New fuction.
14186 (frame_unwind_init): Use it. Add tailcall unwinder.
14187
5e5d66b6
AB
141882020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14189 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14190
14191 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14192 value should be printed as true.
14193
584cf46d
HD
141942020-03-03 Hannes Domani <ssbssa@yahoo.de>
14195
14196 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14197 (windows_init_abi): Set and use windows_so_ops.
14198
7b973adc
SDJ
141992020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14200
14201 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14202 when verifying if dealing with a convenience variable.
14203
bb7b70ab
LM
142042020-03-03 Luis Machado <luis.machado@linaro.org>
14205
14206 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14207
9822cb57
SM
142082020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14209
14210 * infrun.c (gdbarch_supports_displaced_stepping): New.
14211 (use_displaced_stepping): Break up conditions in smaller pieces.
14212 Use gdbarch_supports_displaced_stepping.
14213 (displaced_step_prepare_throw): Use
14214 gdbarch_supports_displaced_stepping.
14215
63e163f2
AB
142162020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14217
14218 * NEWS: Mention new behaviour of the history filename.
14219 * top.c (write_history_p): Add comment.
14220 (show_write_history_p): Add header comment, give a different
14221 message when history writing is on, but the history filename is
14222 empty.
14223 (history_filename): Add comment.
14224 (history_filename_empty): New function.
14225 (show_history_filename): Add header comment, give a different
14226 message when the filename is empty.
14227 (init_history): Compare history_filename against nullptr, and only
14228 read history if the filename is not empty.
14229 (set_history_filename): Add header comment, and only make
14230 non-empty filenames absolute.
14231 (init_main): Make the filename argument to 'set history filename'
14232 optional.
14233
81b86b97
CB
142342020-03-02 Christian Biesinger <cbiesinger@google.com>
14235
14236 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14237 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14238 (fetch_fp_register): Update.
14239 (fetch_fp_regs): Update.
14240 (store_fp_register): Update.
14241 (store_fp_regs): Update.
14242 (arm_netbsd_nat_target::read_description): New function.
14243 (fetch_elfcore_registers): Update.
14244
24ed6739
AB
142452020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14246
14247 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14248 general_thread if the stop reply is missing a thread-id.
14249 (remote_target::process_stop_reply): Use the first non-exited
14250 thread if the target didn't pass a thread-id.
14251 * infrun.c (do_target_wait): Move call to
14252 switch_to_inferior_no_thread to ....
14253 (do_target_wait_1): ... here.
14254
a84bb2a0
JT
142552020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14256
14257 * debuginfod-support.c: Include defs.h first.
14258
658dadf0
TV
142592020-02-28 Tom de Vries <tdevries@suse.de>
14260
14261 * symfile.c (set_initial_language): Use default language for lookup.
14262
4ebe4877
SM
142632020-02-28 Simon Marchi <simon.marchi@efficios.com>
14264
14265 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14266 reader variable, pass `this` to read_cutu_die_from_dwo.
14267
e5da1139
AM
142682020-02-27 Aaron Merey <amerey@redhat.com>
14269
14270 * source.c (open_source_file): Check for nullptr when computing
14271 srcpath.
14272
317f7127
TT
142732020-02-27 Tom Tromey <tromey@adacore.com>
14274
14275 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14276 member.
14277 (dwarf2_add_field): Don't update nfields.
14278 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14279
3104d9ee
AB
142802020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14281
14282 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14283 abs.
14284
b83470bf
TT
142852020-02-26 Tom Tromey <tom@tromey.com>
14286
14287 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14288 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14289 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14290 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14291 per_cu_data.
14292
edfe0a0c
TT
142932020-02-26 Tom Tromey <tom@tromey.com>
14294
14295 * dwarf2/index-write.c (psym_index_map): Change type.
14296 (add_address_entry_worker, write_one_signatured_type)
14297 (recursively_count_psymbols, recursively_write_psymbols)
14298 (class debug_names, psyms_seen_size, write_gdbindex)
14299 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14300
0d79cdc4
AM
143012020-02-26 Aaron Merey <amerey@redhat.com>
14302
14303 * Makefile.in: Handle optional debuginfod support.
14304 * NEWS: Update.
14305 * README: Add --with-debuginfod summary.
14306 * config.in: Regenerate.
14307 * configure: Regenerate.
14308 * configure.ac: Handle optional debuginfod support.
14309 * debuginfod-support.c: debuginfod helper functions.
14310 * debuginfod-support.h: Ditto.
14311 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14312 summary.
14313 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14314 when a dwz file cannot be found.
14315 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14316 debuginfo file cannot be found.
14317 * source.c (open_source_file): Query debuginfod servers when a
14318 source file cannot be found.
14319 * top.c (print_gdb_configuration): Include
14320 --{with,without}-debuginfod in the output.
14321
b65ce565
JG
143222020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14323
14324 * thread.c (thr_try_catch_cmd): Print thread name.
14325
d4c9a4f8
SM
143262020-02-26 Simon Marchi <simon.marchi@efficios.com>
14327
14328 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14329 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14330 dwarf2_fetch_die_type_sect_off): Move to...
14331 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14332 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14333 dwarf2_fetch_die_type_sect_off): ... here.
14334 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14335 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14336 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14337
0dce4280
TV
143382020-02-26 Tom de Vries <tdevries@suse.de>
14339
14340 PR gdb/25603
14341 * symfile.c (set_initial_language): Exit-early if
14342 language_mode == language_mode_manual.
14343
450a1bfc
SM
143442020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14345
14346 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14347 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14348 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14349
9e80cfa1
AB
143502020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14351
14352 * gdbtypes.c (create_array_type_with_stride): Handle negative
14353 array strides.
14354 * valarith.c (value_subscripted_rvalue): Likewise.
14355
09624f1f
LM
143562020-02-25 Luis Machado <luis.machado@linaro.org>
14357
14358 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14359
8cb5117c
SM
143602020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14361
14362 * loc.h (dwarf2_get_die_type): Move to...
14363 * read.h (dwarf2_get_die_type): ... here.
14364 * read.c (dwarf2_get_die_type): Move doc to header.
14365
c325c44e
JB
143662020-02-25 Joel Brobecker <brobecker@adacore.com>
14367
14368 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14369 'gnulib/Makefile.in' to the list.
14370
4ac93832
TT
143712020-02-24 Tom Tromey <tom@tromey.com>
14372
14373 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14374 Remove.
14375 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14376 XOBNEWVEC.
14377
197400e8
TT
143782020-02-24 Tom Tromey <tom@tromey.com>
14379
14380 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14381 New method.
14382 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14383 (dw2_do_instantiate_symtab, dw2_get_file_names)
14384 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14385
76935768
TT
143862020-02-24 Tom Tromey <tom@tromey.com>
14387
14388 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14389 make_scoped_restore.
14390 (dwarf2_psymtab::read_symtab): Don't clear
14391 reading_partial_symbols.
14392
a88ef40d
TV
143932020-02-24 Tom de Vries <tdevries@suse.de>
14394
14395 PR gdb/25592
14396 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14397
c9af6521
TV
143982020-02-24 Tom de Vries <tdevries@suse.de>
14399
14400 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14401 commands layout next/prev/regs.
14402
5707a07a
TT
144032020-02-22 Tom Tromey <tom@tromey.com>
14404
14405 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14406 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14407
3b0fb49e
TT
144082020-02-22 Tom Tromey <tom@tromey.com>
14409
14410 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14411
283be8bf
TT
144122020-02-22 Tom Tromey <tom@tromey.com>
14413
14414 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14415 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14416 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14417 * tui/tui.c (_initialize_tui): Add usage text.
14418
ca793b96
TT
144192020-02-22 Tom Tromey <tom@tromey.com>
14420
14421 * tui/tui-win.c (tui_set_focus_command)
14422 (tui_set_win_height_command): Use error_no_arg.
14423 (_initialize_tui_win): Update help text.
14424 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14425
432b5c40
TT
144262020-02-22 Tom Tromey <tom@tromey.com>
14427
14428 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14429 * tui/tui-disasm.h (struct tui_disasm_window)
14430 <display_start_addr>: Declare.
14431 * tui/tui-source.h (struct tui_source_window)
14432 <display_start_addr>: Declare.
14433 * tui/tui-winsource.h (struct tui_source_window_base)
14434 <show_source_line, display_start_addr>: New methods.
14435 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14436 Rename and move to protected section.
14437 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14438 (tui_source_window_base::do_erase_source_content): Update.
14439 (tui_source_window_base::show_source_line): Now a method.
14440 (tui_source_window_base::show_source_content)
14441 (tui_source_window_base::tui_source_window_base)
14442 (tui_source_window_base::rerender)
14443 (tui_source_window_base::refill)
14444 (tui_source_window_base::do_scroll_horizontal)
14445 (tui_source_window_base::set_is_exec_point_at)
14446 (tui_source_window_base::update_breakpoint_info)
14447 (tui_source_window_base::update_exec_info): Update.
14448 * tui/tui-source.c (tui_source_window::set_contents)
14449 (tui_source_window::showing_source_p)
14450 (tui_source_window::do_scroll_vertical)
14451 (tui_source_window::location_matches_p)
14452 (tui_source_window::line_is_displayed): Update.
14453 (tui_source_window::display_start_addr): New method.
14454 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14455 (tui_disasm_window::do_scroll_vertical)
14456 (tui_disasm_window::location_matches_p): Update.
14457 (tui_disasm_window::display_start_addr): New method.
14458
01b1af32
TT
144592020-02-22 Tom Tromey <tom@tromey.com>
14460
14461 * NEWS: Add entry for gdb.register_window_type.
14462 * tui/tui-layout.h (window_factory): New typedef.
14463 (tui_register_window): Declare.
14464 * tui/tui-layout.c (saved_tui_windows): New global.
14465 (tui_apply_current_layout): Use it.
14466 (tui_register_window): New function.
14467 * python/python.c (do_start_initialization): Call
14468 gdbpy_initialize_tui.
14469 (python_GdbMethods): Add "register_window_type" function.
14470 * python/python-internal.h (gdbpy_register_tui_window)
14471 (gdbpy_initialize_tui): Declare.
14472 * python/py-tui.c: New file.
14473 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14474
fc96d20b
TT
144752020-02-22 Tom Tromey <tom@tromey.com>
14476
14477 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14478
935c78c0
TT
144792020-02-22 Tom Tromey <tom@tromey.com>
14480
14481 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14482 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14483 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14484 (tui_set_win_focus_to): Move from tui-win.c.
14485
0240c8f1
TT
144862020-02-22 Tom Tromey <tom@tromey.com>
14487
14488 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14489 functions.
14490 (known_window_types): New global.
14491 (tui_get_window_by_name): Reimplement.
14492 (initialize_known_windows): New function.
14493 (validate_window_name): Rewrite.
14494 (_initialize_tui_layout): Call initialize_known_windows.
14495
fdb01f0c
TT
144962020-02-22 Tom Tromey <tom@tromey.com>
14497
14498 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14499 Remove constants.
14500 * tui/tui-winsource.h (struct tui_source_window_base)
14501 <tui_source_window_base>: Remove parameter.
14502 * tui/tui-winsource.c
14503 (tui_source_window_base::tui_source_window_base): Remove
14504 parameter.
14505 (tui_source_window_base::refill): Update.
14506 * tui/tui-stack.h (struct tui_locator_window)
14507 <tui_locator_window>: Update.
14508 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14509 Default the constructor.
14510 * tui/tui-regs.h (struct tui_data_item_window)
14511 <tui_data_item_window>: Default the constructor.
14512 (struct tui_data_window) <tui_data_window>: Likewise.
14513 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14514 Default the constructor.
14515 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14516 Default the constructor.
14517 <type>: Remove.
14518 (struct tui_win_info) <tui_win_info>: Default the constructor.
14519 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14520 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14521 Default the constructor.
14522
865a5aec
TT
145232020-02-22 Tom Tromey <tom@tromey.com>
14524
14525 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14526 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14527 * tui/tui-win.c (tui_resize_all): Don't call
14528 tui_delete_invisible_windows.
14529 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14530 done.
14531 (tui_set_layout): Update.
14532 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14533 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14534 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14535
e098d18c
TT
145362020-02-22 Tom Tromey <tom@tromey.com>
14537
14538 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14539 correctly.
14540
eb9c8874
TT
145412020-02-22 Tom Tromey <tom@tromey.com>
14542
14543 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14544
7eed1a8e
TT
145452020-02-22 Tom Tromey <tom@tromey.com>
14546
14547 * tui/tui-winsource.h (struct tui_source_window_iterator)
14548 <inner_iterator>: New etytypedef.
14549 <tui_source_window_iterator>: Take "end" parameter.
14550 <tui_source_window_iterator>: Take iterator.
14551 <operator*, advance>: Update.
14552 <m_iter>: Change type.
14553 <m_end>: New field.
14554 (struct tui_source_windows) <begin, end>: Update.
14555 * tui/tui-layout.c (tui_windows): New global.
14556 (tui_apply_current_layout): Clear tui_windows.
14557 (tui_layout_window::apply): Update tui_windows.
14558 * tui/tui-data.h (tui_windows): Declare.
14559 (all_tui_windows): Now inline function.
14560 (class tui_window_iterator, struct all_tui_windows): Remove.
14561
7c043ba6
TT
145622020-02-22 Tom Tromey <tom@tromey.com>
14563
14564 PR tui/17850:
14565 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14566 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14567 "height" argument.
14568 (class tui_layout_window) <get_sizes>: Likewise.
14569 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14570 argument.
14571 <get_sizes>: Add "height" argument.
14572 <m_vertical>: New field.
14573 * tui/tui-layout.c (tui_layout_split::clone): Update.
14574 (tui_layout_split::get_sizes): Add "height" argument.
14575 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14576 (tui_new_layout_command): Parse "-horizontal".
14577 (_initialize_tui_layout): Update help string.
14578 (tui_layout_split::specification): Add "-horizontal" when needed.
14579 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14580 argument.
14581 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14582 New methods.
14583
6bc56648
TT
145842020-02-22 Tom Tromey <tom@tromey.com>
14585
14586 * tui/tui-layout.h (enum tui_adjust_result): New.
14587 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14588 (class tui_layout_window) <adjust_size>: Return
14589 tui_adjust_result. Rewrite.
14590 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14591 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14592
c22fef7e
TT
145932020-02-22 Tom Tromey <tom@tromey.com>
14594
14595 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14596 parameter and return types.
14597 (class tui_layout_base) <specification>: Add "depth".
14598 (class tui_layout_window) <specification>: Add "depth".
14599 (class tui_layout_split) <specification>: Add "depth".
14600 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14601 and return types.
14602 (tui_new_layout_command): Parse sub-layouts.
14603 (_initialize_tui_layout): Update help string.
14604 (tui_layout_window::specification): Add "depth".
14605 (add_layout_command): Update.
14606
ee325b61
TT
146072020-02-22 Tom Tromey <tom@tromey.com>
14608
14609 * NEWS: Add "tui new-layout" item.
14610 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14611 Add new-layout command to help text.
14612 (validate_window_name): New function.
14613 (tui_new_layout_command): New function.
14614 (_initialize_tui_layout): Register "new-layout".
14615 (tui_layout_window::specification): New method.
14616 (tui_layout_window::specification): New method.
14617 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14618 method.
14619 (class tui_layout_window) <specification>: New method.
14620 (class tui_layout_split) <specification>: New method.
14621
416eb92d
TT
146222020-02-22 Tom Tromey <tom@tromey.com>
14623
14624 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14625 * tui/tui-win.c (window_name_completer): Update comment.
14626 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14627 Declare method.
14628 (class tui_layout_window) <replace_window>: Likewise.
14629 (class tui_layout_split) <replace_window>: Likewise.
14630 (tui_set_layout): Don't declare.
14631 (tui_set_initial_layout): Declare function.
14632 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14633 (asm_regs_layout): New globals.
14634 (tui_current_layout, show_layout): Remove.
14635 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14636 (find_layout, tui_apply_layout): New function.
14637 (layout_completer): Remove.
14638 (tui_next_layout): Reimplement.
14639 (tui_next_layout_command): New function.
14640 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14641 (tui_regs_layout): Reimplement.
14642 (tui_regs_layout_command): New function.
14643 (extract_display_start_addr): Rewrite.
14644 (next_layout, prev_layout): Remove.
14645 (tui_layout_window::replace_window): New method.
14646 (tui_layout_split::replace_window): New method.
14647 (destroy_layout): New function.
14648 (layout_list): New global.
14649 (add_layout_command): New function.
14650 (initialize_layouts): Update.
14651 (tui_layout_command): New function.
14652 (_initialize_tui_layout): Install "layout" commands.
14653 * tui/tui-data.h (enum tui_layout_type): Remove.
14654 (tui_current_layout): Don't declare.
14655
0dbc2fc7
TT
146562020-02-22 Tom Tromey <tom@tromey.com>
14657
14658 * tui/tui-regs.c (tui_reg_layout): Remove.
14659 (tui_reg_command): Use tui_regs_layout.
14660 * tui/tui-layout.h (tui_reg_command): Declare.
14661 * tui/tui-layout.c (tui_reg_command): New function.
14662
5afe342e
TT
146632020-02-22 Tom Tromey <tom@tromey.com>
14664
14665 * tui/tui.c (tui_rl_delete_other_windows): Call
14666 tui_remove_some_windows.
14667 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14668 Declare method.
14669 (class tui_layout_window) <remove_windows>: New method.
14670 (class tui_layout_split) <remove_windows>: Declare.
14671 (tui_remove_some_windows): Declare.
14672 * tui/tui-layout.c (tui_remove_some_windows): New function.
14673 (tui_layout_split::remove_windows): New method.
14674
427326a8
TT
146752020-02-22 Tom Tromey <tom@tromey.com>
14676
14677 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14678 * tui/tui-layout.h (tui_next_layout): Declare.
14679 * tui/tui-layout.c (tui_next_layout): New function.
14680
3fe12b6d
TT
146812020-02-22 Tom Tromey <tom@tromey.com>
14682
14683 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14684 correct coordinates.
14685
59b8b5d2
TT
146862020-02-22 Tom Tromey <tom@tromey.com>
14687
14688 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14689 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14690 DATA_WIN case.
14691
2a3d458b
TT
146922020-02-22 Tom Tromey <tom@tromey.com>
14693
14694 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14695 TUI_DISASM_WIN, not tui_win_list.
14696
3f0cbb04
TT
146972020-02-22 Tom Tromey <tom@tromey.com>
14698
14699 * valprint.c (generic_val_print_enum_1)
14700 (val_print_type_code_flags): Style member names.
14701 * rust-lang.c (val_print_struct, rust_print_enum)
14702 (rust_print_struct_def, rust_internal_print_type): Style member
14703 names.
14704 * p-valprint.c (pascal_object_print_value_fields): Style member
14705 names. Only call fprintf_symbol_filtered for static members.
14706 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14707 * f-valprint.c (f_val_print): Style member names.
14708 * f-typeprint.c (f_type_print_base): Style member names.
14709 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14710 call fprintf_symbol_filtered for static members.
14711 (cp_print_class_member): Style member names.
14712 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14713 member names.
14714 * ada-valprint.c (ada_print_scalar): Style enum names.
14715 (ada_val_print_enum): Likewise.
14716 * ada-typeprint.c (print_enum_type): Style enum names.
14717
d4d947ae
TT
147182020-02-21 Tom Tromey <tom@tromey.com>
14719
14720 * psympriv.h (struct partial_symtab): Update comment.
14721
e94e944b
TT
147222020-02-21 Tom Tromey <tromey@adacore.com>
14723
14724 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14725 type is CORE_ADDR.
14726
1eb73179
TV
147272020-02-21 Tom de Vries <tdevries@suse.de>
14728
14729 PR gdb/25534
14730 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14731 if dependencies[i]->user != NULL.
14732
4f180d53
AT
147332020-02-21 Ali Tamur <tamur@google.com>
14734
14735 * dwarf2/read.c (dwarf2_name): Add null check.
14736
22b6cd70
TT
147372020-02-20 Tom Tromey <tom@tromey.com>
14738
14739 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14740 ">=", in binary search.
14741 (dwarf2_find_containing_comp_unit): New overload.
14742 (run_test): New self-test.
14743 (_initialize_dwarf2_read): Register new test.
14744
bd0cf5a6
NC
147452020-02-20 Nelson Chu <nelson.chu@sifive.com>
14746
14747 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14748 * riscv-tdep.h: Likewise.
14749 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14750 rv32-only CSR.
14751 * features/riscv/64bit-csr.xml: Regenerated.
14752
3f702acd
SDJ
147532020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14754 Tom Tromey <tom@tromey.com>
14755
14756 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14757 of 'fputc_unfiltered'.
14758 (putchar_unfiltered): Call 'fputc_unfiltered'.
14759 (fputc_unfiltered): Call 'fputs_unfiltered'.
14760
d13c7322
AB
147612020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14762
14763 * config.in: Regenerate.
14764 * configure: Regenerate.
14765 * configure.ac: Add --with-python-libdir option.
14766 * main.c: Use WITH_PYTHON_LIBDIR.
14767
869d8950
TT
147682020-02-19 Tom Tromey <tom@tromey.com>
14769
14770 * symtab.c (general_symbol_info::compute_and_set_names): Use
14771 obstack_strndup. Simplify call to symbol_set_demangled_name.
14772
298e9637
SM
147732020-02-19 Simon Marchi <simon.marchi@efficios.com>
14774
14775 * dwarf2/read.c (allocate_signatured_type_table,
14776 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14777 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14778 Remove objfile parameter, update all callers.
14779
08410482
DE
147802020-02-19 Doug Evans <dje@google.com>
14781
14782 PR rust/25535
14783 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14784 rust_enum_variant calculation.
14785
dfdeeca1
TT
147862020-02-19 Tom Tromey <tromey@adacore.com>
14787
14788 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14789
2ef5453b
TT
147902020-02-19 Tom Tromey <tromey@adacore.com>
14791
14792 * ada-lang.c (cache_symbol): Use obstack_strdup.
14793
9f1528a1
AB
147942020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14795
14796 * configure: Regenerate.
14797
d3c22fa8
TT
147982020-02-19 Tom Tromey <tromey@adacore.com>
14799
14800 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14801 NULL check.
14802
bf84f706
MR
148032020-02-19 Maciej W. Rozycki <macro@wdc.com>
14804
14805 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14806
d1c9b20f
AB
148072020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14808
14809 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14810 if GDBSERVER is not defined.
14811 (riscv_tdesc_cache): Likewise, also store const target_desc.
14812 (STATIC_IN_GDB): Define.
14813 (riscv_create_target_description): Update declaration with
14814 STATIC_IN_GDB.
14815 (riscv_lookup_target_description): New function, only define if
14816 GDBSERVER is not defined.
14817 * arch/riscv.h (riscv_create_target_description): Declare only
14818 when GDBSERVER is defined.
14819 (riscv_lookup_target_description): New declaration when GDBSERVER
14820 is not defined.
14821 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14822 (riscv_linux_read_features): ...this, and return
14823 riscv_gdbarch_features instead of target_desc.
14824 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14825 (riscv_linux_read_description): Rename to...
14826 (riscv_linux_read_features): ...this.
14827 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14828 Update to use riscv_gdbarch_features and
14829 riscv_lookup_target_description.
14830 * riscv-tdep.c (riscv_find_default_target_description): Use
14831 riscv_lookup_target_description instead of
14832 riscv_create_target_description.
14833
373d7ac0
SM
148342020-02-18 Simon Marchi <simon.marchi@efficios.com>
14835
14836 * valprint.c (generic_val_print_enum_1): When printing a flag
14837 enum with value 0 and there is no enumerator with value 0, print
14838 just "0" instead of "(unknown: 0x0)".
14839
b29a2df0
SM
148402020-02-18 Simon Marchi <simon.marchi@efficios.com>
14841
14842 * valprint.c (generic_val_print_enum_1): Print unknown part of
14843 flag enum in hex.
14844
6740f0cc
SM
148452020-02-18 Simon Marchi <simon.marchi@efficios.com>
14846
14847 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14848 flag enums to contain duplicate enumerators.
14849 * valprint.c (generic_val_print_enum_1): Update comment.
14850
edd45eb0
SM
148512020-02-18 Simon Marchi <simon.marchi@efficios.com>
14852
14853 * dwarf2/read.c: Include "count-one-bits.h".
14854 (update_enumeration_type_from_children): If an enumerator has
14855 multiple bits set, don't treat the enumeration as a "flag enum".
14856 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14857 of flag enums have 0 or 1 bit set.
14858
6d0cf446
BE
148592020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14860
14861 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14862 conversion.
14863 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14864 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14865 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14866 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14867 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14868
7001c1b7
SM
148692020-02-18 Simon Marchi <simon.marchi@efficios.com>
14870
14871 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14872
fdb61c6c
SM
148732020-02-14 Simon Marchi <simon.marchi@efficios.com>
14874
14875 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14876 displaced_step_closure_up.
14877 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14878 (struct displaced_step_closure_up):
14879 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14880 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14881 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14882 Likewise.
14883 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14884 * gdbarch.c, gdbarch.h: Re-generate.
14885 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14886 displaced_step_closure_up.
14887 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14888 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14889 * infrun.h (displaced_step_closure_up): New type alias.
14890 (struct displaced_step_inferior_state) <step_closure>: Change
14891 type to displaced_step_closure_up.
14892 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14893 displaced_step_closure_up.
14894 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14895
a4a38eb4
TT
148962020-02-14 Tom Tromey <tom@tromey.com>
14897
14898 * minidebug.c (gnu_debug_key): New global.
14899 (find_separate_debug_file_in_section): Use it.
14900
e8217e61
SM
149012020-02-14 Simon Marchi <simon.marchi@efficios.com>
14902
14903 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14904 std::unique_ptr.
14905 * gdbarch.c: Re-generate.
14906 * gdbarch.h: Re-generate.
14907 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14908 change.
14909 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14910 type to std::unique_ptr.
14911 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14912 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14913 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14914 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14915 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14916 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14917 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14918 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14919 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14920
d8d83535
SM
149212020-02-14 Simon Marchi <simon.marchi@efficios.com>
14922
14923 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14924 std::unique_ptr.
14925 (displaced_step_clear): Rename to...
14926 (displaced_step_reset): ... this. Just call displaced->reset ().
14927 (displaced_step_clear_cleanup): Rename to...
14928 (displaced_step_reset_cleanup): ... this.
14929 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14930 (displaced_step_fixup): Likewise.
14931 (resume_1): Likewise.
14932 (handle_inferior_event): Restore child's memory before calling
14933 displaced_step_fixup on the parent.
14934 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14935 to std::unique_ptr.
14936 <step_closure>: Change type to std::unique_ptr.
14937
5f661e03
SM
149382020-02-14 Simon Marchi <simon.marchi@efficios.com>
14939
14940 * arm-tdep.c: Include count-one-bits.h.
14941 (cleanup_block_store_pc): Use count_one_bits.
14942 (cleanup_block_load_pc): Use count_one_bits.
14943 (arm_copy_block_xfer): Use count_one_bits.
14944 (thumb2_copy_block_xfer): Use count_one_bits.
14945 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14946 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14947 (thumb_get_next_pcs_raw): Use count_one_bits.
14948 (arm_get_next_pcs_raw): Use count_one_bits_l.
14949 * arch/arm.c (bitcount): Remove.
14950 * arch/arm.h (bitcount): Remove.
14951
8084e579
TT
149522020-02-14 Tom Tromey <tromey@adacore.com>
14953
14954 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14955 Update.
14956 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14957 * dwarf2/loc.c (call_site_find_chain_1): Return
14958 unique_xmalloc_ptr.
14959 (call_site_find_chain): Likewise.
14960
258bf0ee
RB
149612020-02-14 Richard Biener <rguenther@suse.de>
14962
14963 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14964 on expression with division operators.
14965
f98a8458
AKS
149662020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14967
14968 * MAINTAINERS (Write After Approval): Adding myself.
14969
d1437c0e
TT
149702020-02-12 Tom Tromey <tom@tromey.com>
14971
14972 * event-loop.c (event_data, gdb_event, event_handler_func):
14973 Remove.
14974
3d4560f7
TT
149752020-02-12 Tom Tromey <tom@tromey.com>
14976
14977 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14978 (dwarf2_frame_objfile_data): Add comment.
14979 (find_comp_unit, set_comp_unit): New functions.
14980 (dwarf2_frame_find_fde): Use find_comp_unit.
14981 (dwarf2_build_frame_info): Use set_comp_unit.
14982
21982304
TT
149832020-02-12 Tom Tromey <tom@tromey.com>
14984
14985 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14986 (comp_unit): Don't initialize objfile.
14987 (execute_cfa_program): Add text_offset parameter.
14988 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14989 (dwarf2_frame_cache): Update.
14990 (dwarf2_build_frame_info): Don't set "objfile" member.
14991
4debb237
TT
149922020-02-12 Tom Tromey <tom@tromey.com>
14993
14994 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14995 (decode_frame_entry): Likewise.
14996 (dwarf2_build_frame_info): Update.
14997
0d404d44
TT
149982020-02-12 Tom Tromey <tom@tromey.com>
14999
15000 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15001 (decode_frame_entry_1): Use the comp_unit obstack.
15002
a7a3ae5c
TT
150032020-02-12 Tom Tromey <tom@tromey.com>
15004
15005 * dwarf2/frame.c (struct comp_unit): Add initializers and
15006 constructor.
15007 (dwarf2_frame_objfile_data): Store a comp_unit.
15008 (dwarf2_frame_find_fde): Update.
15009 (dwarf2_build_frame_info): Use "new".
15010
a9d65418
TT
150112020-02-12 Tom Tromey <tom@tromey.com>
15012
15013 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15014 (dwarf2_fde_table): Typedef for std::vector.
15015 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15016 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15017 (decode_frame_entry): Update.
15018 (dwarf2_build_frame_info): Use "new".
15019
7559c217
CB
150202020-02-12 Christian Biesinger <cbiesinger@google.com>
15021
15022 * arm-tdep.c (arm_gdbarch_init): Update.
15023 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15024 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15025 have_neon, is_m>: Change to bool.
15026
aeefc73c
CB
150272020-02-12 Christian Biesinger <cbiesinger@google.com>
15028
15029 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15030
d27b8e5f
TT
150312020-02-12 Tom Tromey <tom@tromey.com>
15032
15033 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15034
cd5900f3
HD
150352020-02-12 Hannes Domani <ssbssa@yahoo.de>
15036
15037 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15038 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15039
f056b22b
TT
150402020-02-11 Tom Tromey <tom@tromey.com>
15041
15042 * psymtab.h: Update comment.
15043
f92ff6b5
TT
150442020-02-11 Tom Tromey <tom@tromey.com>
15045
15046 * gdb_obstack.h (struct auto_obstack): Use
15047 DISABLE_COPY_AND_ASSIGN.
15048
3fd6912b
TT
150492020-02-11 Tom Tromey <tom@tromey.com>
15050
15051 * dwarf2/frame.h (struct objfile): Don't forward declare.
15052
69ed9b74
CB
150532020-02-11 Christian Biesinger <cbiesinger@google.com>
15054
15055 * cris-tdep.c (cris_supply_gregset): Change signature to match
15056 what struct regset expects.
15057 (cris_regset): New struct.
15058 (fetch_core_registers): Remove.
15059 (cris_iterate_over_regset_sections): New function.
15060 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15061 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15062
bda874f6
CB
150632020-02-11 Christian Biesinger <cbiesinger@google.com>
15064
15065 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15066 registers.
15067
754e1564
CB
150682020-02-11 Christian Biesinger <cbiesinger@google.com>
15069
15070 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15071
8ddd8e0e
SM
150722020-02-11 Simon Marchi <simon.marchi@efficios.com>
15073
15074 * configure: Re-generate.
15075
898e7f60
SM
150762020-02-11 Simon Marchi <simon.marchi@efficios.com>
15077
15078 * configure: Re-generate.
15079
58df732b
SM
150802020-02-11 Simon Marchi <simon.marchi@efficios.com>
15081
15082 * acinclude: Update warning.m4 path.
15083 * warning.m4: Move to gdbsupport.
15084
da5bd37e
TT
150852020-02-11 Tom Tromey <tromey@adacore.com>
15086
15087 * remote.c (remote_console_output): Update.
15088 * printcmd.c (printf_command): Update.
15089 * event-loop.c (gdb_wait_for_event): Update.
15090 * linux-nat.c (sigchld_handler): Update.
15091 * remote-sim.c (gdb_os_write_stdout): Update.
15092 (gdb_os_flush_stdout): Update.
15093 (gdb_os_flush_stderr): Update.
15094 (gdb_os_write_stderr): Update.
15095 * exceptions.c (print_exception): Update.
15096 * remote-fileio.c (remote_fileio_func_read): Update.
15097 (remote_fileio_func_write): Update.
15098 * tui/tui.c (tui_enable): Update.
15099 * tui/tui-interp.c (tui_interp::init): Update.
15100 * utils.c (init_page_info): Update.
15101 (putchar_unfiltered, fputc_unfiltered): Update.
15102 (gdb_flush): Update.
15103 (emit_style_escape): Update.
15104 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15105 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15106 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15107 (stderr_file::write): Update.
15108 (stderr_file::puts): Update.
15109 * ui-file.h (ui_file_isatty, ui_file_write)
15110 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15111 (ui_file_puts): Don't declare.
15112
85f0dd3c
TV
151132020-02-10 Tom de Vries <tdevries@suse.de>
15114
15115 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15116 sentinel to char *.
15117
2e927613
TV
151182020-02-09 Tom de Vries <tdevries@suse.de>
15119
15120 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15121 filename if it matches "<artificial>".
15122
6bafc845
HD
151232020-02-09 Hannes Domani <ssbssa@yahoo.de>
15124
15125 * windows-tdep.c (struct enum_value_name): New struct.
15126 (create_enum): New function.
15127 (windows_get_siginfo_type): Create and use enum types.
15128
7928d571
HD
151292020-02-09 Hannes Domani <ssbssa@yahoo.de>
15130
15131 * NEWS: Mention $_siginfo support for Windows.
15132 * windows-nat.c (handle_exception): Set siginfo_er.
15133 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15134 (windows_xfer_siginfo): New function.
15135 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15136 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15137 (init_windows_gdbarch_data): New function.
15138 (get_windows_gdbarch_data): New function.
15139 (windows_get_siginfo_type): New function.
15140 (windows_init_abi): Register windows_get_siginfo_type.
15141 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15142
6751ebae
TT
151432020-02-08 Tom Tromey <tom@tromey.com>
15144
15145 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15146 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15147 <keep>: Declare method.
15148 <m_keep>: Remove member.
15149 <~cutu_reader>: Remove.
15150 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15151 (cutu_reader::cutu_reader): Update.
15152 (cutu_reader::keep): Rename from ~cutu_reader.
15153 (process_psymtab_comp_unit, build_type_psymtabs_1)
15154 (process_skeletonless_type_unit, load_partial_comp_unit)
15155 (load_full_comp_unit, dwarf2_read_addr_index)
15156 (read_signatured_type): Update.
15157
135f5437
TT
151582020-02-08 Tom Tromey <tom@tromey.com>
15159
15160 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15161 "want_partial_unit" parameter.
15162 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15163 Inline check for DW_TAG_partial_unit.
15164 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15165
9f66ff1c
TT
151662020-02-08 Tom Tromey <tom@tromey.com>
15167
15168 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15169 read.c.
15170 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15171 read.c.
15172
c8a7a66f
TT
151732020-02-08 Tom Tromey <tom@tromey.com>
15174
15175 * dwarf2/read.c (read_address): Move to comp-unit.c.
15176 (dwarf2_rnglists_process, dwarf2_ranges_process)
15177 (read_attribute_value, dwarf_decode_lines_1)
15178 (var_decode_location, decode_locdesc): Update.
15179 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15180 read.c. Remove "cu" parameter.
15181 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15182 method.
15183
8266302d
TT
151842020-02-08 Tom Tromey <tom@tromey.com>
15185
15186 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15187 (read_indirect_line_string): Update.
15188 * dwarf2/comp-unit.c (read_offset): Remove.
15189 (read_comp_unit_head): Update.
15190 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15191 method.
15192 (read_offset): Don't declare.
15193
4057dfde
TT
151942020-02-08 Tom Tromey <tom@tromey.com>
15195
15196 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15197 * dwarf2/read.c (struct comp_unit_head): Move to
15198 dwarf2/comp-unit.h.
15199 (enum class rcuh_kind): Move to comp-unit.h.
15200 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15201 (read_comp_unit_head, error_check_comp_unit_head)
15202 (read_and_check_comp_unit_head): Move to comp-unit.c.
15203 (read_offset, dwarf_unit_type_name): Likewise.
15204 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15205 (cutu_reader::cutu_reader, read_call_site_scope)
15206 (find_partial_die, follow_die_offset): Update.
15207 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15208
24aa364d
TT
152092020-02-08 Tom Tromey <tom@tromey.com>
15210
15211 * dwarf2/read.c (read_offset_1): Move to leb.c.
15212 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15213 (dwarf_decode_macro_bytes): Update.
15214 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15215 * dwarf2/leb.h (read_offset): Declare.
15216
2c7d5afc
TT
152172020-02-08 Tom Tromey <tom@tromey.com>
15218
15219 * dwarf2/read.c (dwarf2_section_size): Remove.
15220 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15221 Update.
15222 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15223
4075cb26
TT
152242020-02-08 Tom Tromey <tom@tromey.com>
15225
15226 * dwarf2/read.c (read_initial_length): Move to leb.c.
15227 * dwarf2/leb.h (read_initial_length): Declare.
15228 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15229 handle_nonstd parameter.
15230 * dwarf2/frame.c (read_initial_length): Remove.
15231 (decode_frame_entry_1): Update.
15232
09ba997f
TT
152332020-02-08 Tom Tromey <tom@tromey.com>
15234
15235 * dwarf2/loc.c (dwarf2_find_location_expression)
15236 (dwarf_evaluate_loc_desc::get_tls_address)
15237 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15238 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15239 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15240 (dwarf2_compile_property_to_c)
15241 (dwarf2_loc_desc_get_symbol_read_needs)
15242 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15243 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15244 (loclist_describe_location, loclist_tracepoint_var_ref)
15245 (loclist_generate_c_location): Update.
15246 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15247 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15248 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15249 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15250 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15251 (dwarf2_per_cu_data::addr_size)
15252 (dwarf2_per_cu_data::ref_addr_size)
15253 (dwarf2_per_cu_data::text_offset)
15254 (dwarf2_per_cu_data::addr_type): Now methods.
15255 (per_cu_header_read_in): Make per_cu "const".
15256 (dwarf2_version): Remove.
15257 (dwarf2_per_cu_data::int_type): Now a method.
15258 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15259 (set_die_type, read_array_type, read_subrange_index_type)
15260 (read_tag_string_type, read_subrange_type): Update.
15261 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15262 offset_size, ref_addr_size, text_offset, addr_type, version,
15263 objfile, int_type, addr_sized_int_type>: Declare methods.
15264
96c738c0
TT
152652020-02-08 Tom Tromey <tom@tromey.com>
15266
15267 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15268 Move earlier.
15269
8fdd972c
TT
152702020-02-08 Tom Tromey <tom@tromey.com>
15271
15272 * dwarf2/read.h (dwarf_line_debug): Declare.
15273 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15274 * dwarf2/read.c: Move line_header code to new files.
15275 (dwarf_line_debug): No longer static.
15276 * dwarf2/line-header.c: New file.
15277 * dwarf2/line-header.h: New file.
15278
03075812
TT
152792020-02-08 Tom Tromey <tom@tromey.com>
15280
15281 * dwarf2/read.c (struct line_header) <file_full_name,
15282 file_file_name>: Return unique_xmalloc_ptr.
15283 (line_header::file_file_name): Update.
15284 (line_header::file_full_name): Update.
15285 (dw2_get_file_names_reader): Update.
15286 (macro_start_file): Update.
15287
bb822404
TT
152882020-02-08 Tom Tromey <tom@tromey.com>
15289
15290 * dwarf2/read.c (struct line_header) <file_full_name,
15291 file_file_name>: Declare methods.
15292 (dw2_get_file_names_reader): Update.
15293 (file_file_name): Now a method.
15294 (file_full_name): Likewise.
15295 (macro_start_file): Update.
15296
009b64fc
TT
152972020-02-08 Tom Tromey <tom@tromey.com>
15298
15299 * dwarf2/read.c (dwarf_always_disassemble)
15300 (show_dwarf_always_disassemble): Move to loc.c.
15301 (_initialize_dwarf2_read): Move "always-disassemble" registration
15302 to loc.c.
15303 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15304 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15305 static.
15306 (show_dwarf_always_disassemble): Move from read.c.
15307 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15308
5895093f
TT
153092020-02-08 Tom Tromey <tom@tromey.com>
15310
15311 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15312 (create_quick_file_names_table): Return htab_up.
15313 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15314 Update.
15315 * dwarf2/read.h (struct dwarf2_per_objfile)
15316 <quick_file_names_table>: Now htab_up.
15317
b3b32279
TT
153182020-02-08 Tom Tromey <tom@tromey.com>
15319
15320 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15321
1d33d811
TT
153222020-02-08 Tom Tromey <tom@tromey.com>
15323
15324 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15325 Rewrite.
15326 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15327 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15328 (abbrev_table::abbrev_table): No longer inline.
15329 (ABBREV_HASH_SIZE): Remove.
15330 (abbrev_table::m_abbrevs): Now an htab_up.
15331
86de1d91
TT
153322020-02-08 Tom Tromey <tom@tromey.com>
15333
15334 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15335 (cutu_reader): Update.
15336 (build_type_psymtabs_1): Update.
15337 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15338 (abbrev_table::alloc_abbrev): Update.
15339 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15340 (abbrev_table::read): New static method, renamed from
15341 abbrev_table_read_table.
15342 (abbrev_table::alloc_abbrev)
15343 (abbrev_table::add_abbrev): Now private.
15344 (abbrev_table::abbrev_table): Now private.
15345 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15346
0335378b
TT
153472020-02-08 Tom Tromey <tom@tromey.com>
15348
15349 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15350 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15351 htab_up.
15352
48b490f2
TT
153532020-02-08 Tom Tromey <tom@tromey.com>
15354
15355 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15356 htab_up.
15357 (lookup_dwo_unit_in_dwp): Update.
15358 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15359 on obstack.
15360
bc68fb19
TT
153612020-02-08 Tom Tromey <tom@tromey.com>
15362
15363 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15364 obstack.
15365
d15acc42
TT
153662020-02-08 Tom Tromey <tom@tromey.com>
15367
15368 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15369 line_header_hash.
15370 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15371 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15372 Change type to htab_up.
15373
eaa5fa8b
TT
153742020-02-08 Tom Tromey <tom@tromey.com>
15375
15376 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15377 htab_up. Don't allocate on obstack.
15378 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15379 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15380 Change type to htab_up.
15381
b0b6a987
TT
153822020-02-08 Tom Tromey <tom@tromey.com>
15383
15384 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15385 Change type to htab_up.
15386 * dwarf2/read.c (create_signatured_type_table_from_index)
15387 (create_signatured_type_table_from_debug_names)
15388 (create_all_type_units, add_type_unit)
15389 (lookup_dwo_signatured_type, lookup_signatured_type)
15390 (process_skeletonless_type_unit): Update.
15391 (create_debug_type_hash_table, create_debug_types_hash_table):
15392 Change type of types_htab.
15393 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15394 htab_up. Don't allocate on obstack.
15395 (create_cus_hash_table): Change type of cus_htab parameter.
15396 (struct dwo_file) <cus, tus>: Now htab_up.
15397 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15398 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15399 (queue_and_load_all_dwo_tus): Update.
15400 * dwarf2/index-write.c (write_gdbindex): Update.
15401 (write_debug_names): Update.
15402
39856def
TT
154032020-02-08 Tom Tromey <tom@tromey.com>
15404
15405 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15406 dwarf2/read.c. Remove "next" member. Add constructor ntad
15407 destructor.
15408 (struct dwarf2_per_objfile) <queue>: New member.
15409 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15410 dwarf2/read.h.
15411 (dwarf2_queue, dwarf2_queue_tail): Remove.
15412 (class dwarf2_queue_guard): Add parameter to constructor. Use
15413 DISABLE_COPY_AND_ASSIGN.
15414 <m_per_objfile>: New member.
15415 <~dwarf2_queue_guard>: Rewrite.
15416 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15417 Update.
15418 (~dwarf2_queue_item): New.
15419
3e225074
TT
154202020-02-08 Tom Tromey <tom@tromey.com>
15421
15422 * dwarf2/read.c (struct die_info) <has_children>: New member.
15423 (dw2_get_file_names_reader): Remove has_children.
15424 (dw2_get_file_names): Update.
15425 (read_cutu_die_from_dwo): Remove has_children.
15426 (cutu_reader::init_tu_and_read_dwo_dies)
15427 (cutu_reader::cutu_reader): Update.
15428 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15429 Remove has_children.
15430 (build_type_psymtabs_1, process_skeletonless_type_unit)
15431 (load_partial_comp_unit, load_full_comp_unit): Update.
15432 (create_dwo_cu_reader): Remove has_children.
15433 (create_cus_hash_table, read_die_and_children): Update.
15434 (read_full_die_1,read_full_die): Remove has_children.
15435 (read_signatured_type): Update.
15436 (class cutu_reader) <has_children>: Remove.
15437
82ca8957
TT
154382020-02-08 Tom Tromey <tom@tromey.com>
15439
15440 * dwarf2/expr.c: Rename from dwarf2expr.c.
15441 * dwarf2/expr.h: Rename from dwarf2expr.h.
15442 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15443 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15444 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15445 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15446 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15447 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15448 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15449 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15450 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15451 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15452 * dwarf2/loc.c: Rename from dwarf2loc.c.
15453 * dwarf2/loc.h: Rename from dwarf2loc.h.
15454 * dwarf2/read.c: Rename from dwarf2read.c.
15455 * dwarf2/read.h: Rename from dwarf2read.h.
15456 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15457 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15458 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15459 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15460 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15461 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15462 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15463 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15464 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15465 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15466 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15467 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15468 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15469 Update.
15470 * Makefile.in (COMMON_SFILES): Update.
15471 (HFILES_NO_SRCDIR): Update.
15472
9e35d499
TT
154732020-02-08 Tom Tromey <tom@tromey.com>
15474
15475 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15476 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15477
1eba2311
TT
154782020-02-08 Tom Tromey <tom@tromey.com>
15479
15480 * dwarf2read.h (struct die_info): Don't declare.
15481
e41c2da2
TT
154822020-02-08 Tom Tromey <tom@tromey.com>
15483
15484 * dwarf2read.h (die_info_ptr): Remove typedef.
15485
4fc6c0d5
TT
154862020-02-08 Tom Tromey <tom@tromey.com>
15487
15488 * dwarf2read.c (read_call_site_scope)
15489 (handle_data_member_location, dwarf2_add_member_fn)
15490 (mark_common_block_symbol_computed, read_common_block)
15491 (attr_to_dynamic_prop, partial_die_info::read)
15492 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15493 (dwarf2_symbol_mark_computed, set_die_type): Update.
15494 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15495 method.
15496 (attr_form_is_block): Don't declare.
15497 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15498
cd6c91b4
TT
154992020-02-08 Tom Tromey <tom@tromey.com>
15500
15501 * dwarf2read.c (dwarf2_find_base_address, )
15502 (read_call_site_scope, rust_containing_type)
15503 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15504 (handle_data_member_location, dwarf2_add_member_fn)
15505 (get_alignment, read_structure_type, process_structure_scope)
15506 (mark_common_block_symbol_computed, read_common_block)
15507 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15508 (partial_die_info::read, read_attribute_value, new_symbol)
15509 (lookup_die_type, dwarf2_get_ref_die_offset)
15510 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15511 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15512 (dwarf2_symbol_mark_computed): Update.
15513 * dwarf2/attribute.h (struct attribute) <value_as_address,
15514 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15515 methods.
15516 (value_as_address, attr_form_is_section_offset)
15517 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15518 * dwarf2/attribute.c (attribute::value_as_address)
15519 (attribute::form_is_section_offset, attribute::form_is_constant)
15520 (attribute::form_is_ref): Now methods.
15521
162dce55
TT
155222020-02-08 Tom Tromey <tom@tromey.com>
15523
15524 * dwarf2read.c (struct attribute, DW_STRING)
15525 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15526 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15527 (attr_form_is_block, attr_form_is_section_offset)
15528 (attr_form_is_constant, attr_form_is_ref): Move.
15529 * dwarf2/attribute.h: New file.
15530 * dwarf2/attribute.c: New file, from dwarf2read.c.
15531 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15532
3054dd54
TT
155332020-02-08 Tom Tromey <tom@tromey.com>
15534
15535 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15536 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15537 Move.
15538 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15539 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15540 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15541 abbrev.c.
15542 * dwarf2/abbrev.h: New file.
15543 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15544 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15545
96b79293
TT
155462020-02-08 Tom Tromey <tom@tromey.com>
15547
15548 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15549 (dwarf2_section_size, dwarf2_get_section_info)
15550 (create_signatured_type_table_from_debug_names)
15551 (create_addrmap_from_aranges, read_debug_names_from_section)
15552 (get_gdb_index_contents_from_section, read_comp_unit_head)
15553 (error_check_comp_unit_head, read_abbrev_offset)
15554 (create_debug_type_hash_table, init_cu_die_reader)
15555 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15556 (read_comp_units_from_section, create_cus_hash_table)
15557 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15558 (create_dwp_v2_section, dwarf2_rnglists_process)
15559 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15560 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15561 (read_indirect_string_from_dwz, read_addr_index_1)
15562 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15563 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15564 (fill_in_loclist_baton): Update.
15565 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15566 get_containing_section, get_bfd_owner, get_bfd_section,
15567 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15568 (dwarf2_read_section, get_section_name, get_section_file_name)
15569 (get_containing_section, get_section_bfd_owner)
15570 (get_section_bfd_section, get_section_name, get_section_file_name)
15571 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15572 declare.
15573 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15574 (dwarf2_section_info::get_bfd_owner)
15575 (dwarf2_section_info::get_bfd_section)
15576 (dwarf2_section_info::get_name)
15577 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15578 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15579 (dwarf2_section_info::read): Now methods.
15580 * dwarf-index-write.c (class debug_names): Update.
15581
2c86cff9
TT
155822020-02-08 Tom Tromey <tom@tromey.com>
15583
15584 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15585 Move to dwarf2/section.h.
15586 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15587 (get_section_bfd_section, get_section_name)
15588 (get_section_file_name, get_section_id, get_section_flags)
15589 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15590 dwarf2/section.c.
15591 * dwarf2/section.h: New file.
15592 * dwarf2/section.c: New file, from dwarf2read.c.
15593 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15594
f4382c45
TT
155952020-02-08 Tom Tromey <tom@tromey.com>
15596
15597 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15598 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15599 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15600 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15601 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15602 * dwarf2/leb.h: New file, from dwarf2read.c.
15603 * dwarf2/leb.c: New file, from dwarf2read.c.
15604 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15605 Remove.
15606 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15607 (COMMON_SFILES): Add dwarf2/leb.c.
15608
01840b7a
JB
156092020-02-08 Joel Brobecker <brobecker@adacore.com>
15610
15611 GDB 9.1 released.
15612
dfcb27e4
IB
156132020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15614
15615 PR gdb/25190:
aac66a4c
SM
15616 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15617 * gdb/remote.c (remote_console_output): Update.
15618 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15619 (ui_file_puts): ...this.
15620 * gdb/ui-file.h (ui_file_puts): Add declaration.
15621 * gdb/utils.c (emit_style_escape): Update.
15622 (flush_wrap_buffer): Update.
15623 (fputs_maybe_filtered): Update.
15624 (fputs_unfiltered): Add function.
dfcb27e4 15625
faa17681
IB
156262020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15627
aac66a4c
SM
15628 * gdb/event-loop.c (gdb_wait_for_event): Update.
15629 * gdb/printcmd.c (printf_command): Update.
15630 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15631 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15632 (gdb_os_flush_stderr): Update.
15633 * gdb/remote.c (remote_console_output): Update.
15634 * gdb/ui-file.c (gdb_flush): Rename to...
15635 (ui_file_flush): ...this.
15636 (stderr_file::write): Update.
15637 (stderr_file::puts): Update.
15638 * gdb/ui-file.h (gdb_flush): Rename to...
15639 (ui_file_flush): ...this.
15640 * gdb/utils.c (gdb_flush): Add function.
15641 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15642
5abbbe1d
TT
156432020-02-07 Tom Tromey <tromey@adacore.com>
15644
15645 PR breakpoints/24915:
15646 * source.c (find_and_open_source): Do not check basenames_may_differ.
15647
919adfe8
TT
156482020-02-07 Tom Tromey <tom@tromey.com>
15649
15650 * README: Update gdbserver documentation.
15651 * gdbserver: Move to top level.
15652 * configure.tgt (build_gdbserver): Remove.
15653 * configure.ac: Remove --enable-gdbserver.
15654 * configure: Rebuild.
15655 * Makefile.in (distclean): Don't mention gdbserver.
15656
1d5d29e7
SV
156572020-02-06 Shahab Vahedi <shahab@synopsys.com>
15658
15659 * source-cache.c (source_cache::ensure): Surround
15660 get_plain_source_lines with a try/catch.
15661 (source_cache::get_line_charpos): Get rid of try/catch
15662 and only check for the return value of "ensure".
15663 * tui/tui-source.c (tui_source_window::set_contents):
15664 Simplify "nlines" calculation.
15665
6eb1129c
SV
156662020-02-06 Shahab Vahedi <shahab@synopsys.com>
15667
15668 * MAINTAINERS (Write After Approval): Add myself.
15669
c6a42d11
CB
156702020-02-05 Christian Biesinger <cbiesinger@google.com>
15671
15672 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15673 function call.
15674
c8ecdda6
CB
156752020-02-05 Christian Biesinger <cbiesinger@google.com>
15676
15677 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15678
f6480e70
MR
156792020-02-05 Maciej W. Rozycki <macro@wdc.com>
15680
15681 * nat/riscv-linux-tdesc.h: New file.
15682 * nat/riscv-linux-tdesc.c: New file, taking code from...
15683 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15684 ... here.
15685 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15686 NATDEPFILES.
15687
dcc9fbc6
AB
156882020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15689
15690 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15691 we don't set the fake simulator ptid to the null_ptid.
15692
719546c4
SM
156932020-02-03 Simon Marchi <simon.marchi@efficios.com>
15694
15695 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15696 * gdbthread.h (class thread_info) <resumed>: Likewise.
15697 * infrun.c (resume_1): Likewise.
15698 (proceed): Likewise.
15699 (infrun_thread_stop_requested): Likewise.
15700 (stop_all_threads): Likewise.
15701 (handle_inferior_event): Likewise.
15702 (restart_threads): Likewise.
15703 (finish_step_over): Likewise.
15704 (keep_going_stepped_thread): Likewise.
15705 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15706 (linux_handle_extended_wait): Likewise.
15707 * record-btrace.c (get_thread_current_frame_id): Likewise.
15708 * record-full.c (record_full_wait_1): Likewise.
15709 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15710 * target.c (target_resume): Likewise.
15711 * thread.c (set_running_thread): Likewise.
15712
e409c542
AKS
157132020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15714
15715 * f-valprint.c (f77_print_array_1): Changed datatype of index
15716 variable to LONGEST from int to enable it to contain bound
15717 values correctly.
15718
ee98c0da
MR
157192020-02-03 Maciej W. Rozycki <macro@wdc.com>
15720
15721 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15722 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15723 offsets according to FLEN determined.
15724 (riscv_linux_nat_target::read_description): Determine FLEN
15725 dynamically.
15726 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15727 according to FLEN determined.
15728 (riscv_linux_nat_target::store_registers): Likewise.
15729
aa66aac4
SV
157302020-02-01 Shahab Vahedi <shahab@synopsys.com>
15731
15732 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15733 when reg->group is empty and reggroup is not.
15734
fd9faca8
TT
157352020-01-31 Tom Tromey <tromey@adacore.com>
15736
15737 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15738 Call beneath target's mourn_inferior after unpushing.
15739
42330a68
AB
157402020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15741
15742 PR tui/9765
15743 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15744 have enough lines to fill the screen, still return the lowest
15745 address we found.
15746
7a27a45b
AB
157472020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15748
15749 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15750 '-', '<', and '>' commands.
15751
c47f70e2
PA
157522020-01-29 Pedro Alves <palves@redhat.com>
15753 Sergio Durigan Junior <sergiodj@redhat.com>
15754
15755 * infcmd.c (construct_inferior_arguments): Assert that
15756 'argc' is greater than 0.
15757
5133a315
LM
157582020-01-29 Luis Machado <luis.machado@linaro.org>
15759
15760 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15761 (BRK_INSN_MASK): Define to 0xd4200000.
15762 (aarch64_program_breakpoint_here_p): New function.
15763 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15764 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15765 breakpoint.c.
15766 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15767 breakpoint.h
15768 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15769 call gdbarch_program_breakpoint_here_p.
15770 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15771 default_program_breakpoint_here_p, changed return type to bool and
15772 simplified.
15773 * breakpoint.h (program_breakpoint_here): Moved prototype to
15774 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15775 return type to bool.
15776 * gdbarch.c: Regenerate.
15777 * gdbarch.h: Regenerate.
15778 * gdbarch.sh (program_breakpoint_here_p): New method.
15779 * infrun.c (handle_signal_stop): Call
15780 gdbarch_program_breakpoint_here_p.
15781
168f8c6b
TT
157822020-01-26 Tom Tromey <tom@tromey.com>
15783
15784 * ctfread.c (struct ctf_fp_info): Reindent.
15785 (_initialize_ctfread): Remove.
15786
128a391f
TT
157872020-01-26 Tom Tromey <tom@tromey.com>
15788
15789 * psymtab.c (partial_map_expand_apply)
15790 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15791 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15792 (psym_print_stats, psym_expand_symtabs_for_function)
15793 (psym_map_symbol_filenames, psym_map_matching_symbols)
15794 (psym_expand_symtabs_matching)
15795 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15796 (maintenance_check_psymtabs): Use new methods.
15797 * psympriv.h (struct partial_symtab) <readin_p,
15798 get_compunit_symtab>: New methods.
15799 <readin, compunit_symtab>: Remove members.
15800 (struct standard_psymtab): New.
15801 (struct legacy_psymtab): Derive from standard_psymtab.
15802 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15803 standard_psymtab.
15804 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15805
0494dbec
TT
158062020-01-26 Tom Tromey <tom@tromey.com>
15807
15808 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15809 read_dependencies. Add assert.
15810 * psymtab.c (partial_symtab::read_dependencies): New method.
15811 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15812 method.
15813 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15814 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15815 read_dependencies.
15816 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15817 Add assert.
15818
8566b89b
TT
158192020-01-26 Tom Tromey <tom@tromey.com>
15820
15821 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15822 Call expand_psymtab.
15823 (xcoff_read_symtab): Call expand_psymtab.
15824 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15825 legacy_expand_psymtab.
15826 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15827 method.
15828 (struct legacy_psymtab) <expand_psymtab>: Implement.
15829 <legacy_expand_psymtab>: New member.
15830 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15831 (parse_partial_symbols): Set legacy_expand_psymtab.
15832 (psymtab_to_symtab_1): Change argument order. Call
15833 expand_psymtab.
15834 (new_psymtab): Set legacy_expand_psymtab.
15835 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15836 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15837 expand_psymtab.
15838 (dwarf2_psymtab::expand_psymtab): Rename from
15839 psymtab_to_symtab_1. Call expand_psymtab.
15840 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15841 (dbx_end_psymtab): Likewise.
15842 (dbx_psymtab_to_symtab_1): Change argument order. Call
15843 expand_psymtab.
15844 (dbx_read_symtab): Call expand_psymtab.
15845 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15846 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15847 (ctf_psymtab::read_symtab): Call expand_psymtab.
15848
077cbab2
TT
158492020-01-26 Tom Tromey <tom@tromey.com>
15850
15851 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15852 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15853 messages.
15854 * mdebugread.c (mdebug_read_symtab): Remove prints.
15855 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15856 assert.
15857 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15858
891813be
TT
158592020-01-26 Tom Tromey <tom@tromey.com>
15860
15861 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15862 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15863 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15864 legacy_symtab.
15865 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15866 * psymtab.c (psymtab_to_symtab): Call method.
15867 (dump_psymtab): Update.
15868 * psympriv.h (struct partial_symtab): Add virtual destructor.
15869 <read_symtab>: New method.
15870 (struct legacy_symtab): New.
15871 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15872 (struct pst_map) <pst>: Now a legacy_psymtab.
15873 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15874 (new_psymtab): Use legacy_psymtab.
15875 * dwarf2read.h (struct dwarf2_psymtab): New.
15876 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15877 * dwarf2read.c (dwarf2_create_include_psymtab)
15878 (dwarf2_build_include_psymtabs, create_type_unit_group)
15879 (create_partial_symtab, process_psymtab_comp_unit_reader)
15880 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15881 (set_partial_user): Use dwarf2_psymtab.
15882 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15883 (psymtab_to_symtab_1, process_full_comp_unit)
15884 (process_full_type_unit, dwarf2_ranges_read)
15885 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15886 (dwarf_decode_lines): Use dwarf2_psymtab.
15887 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15888 (add_address_entry_worker, write_one_signatured_type)
15889 (recursively_count_psymbols, recursively_write_psymbols)
15890 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15891 (write_debug_names): Likewise.
15892 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15893 <pst>: Now a legacy_psymtab.
15894 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15895 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15896 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15897 * ctfread.c (struct ctf_psymtab): New.
15898 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15899 ctf_psymtab.
15900 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15901 (create_partial_symtab): Return a ctf_psymtab.
15902 (scan_partial_symbols): Update.
15903
c3693a1d
TT
159042020-01-26 Tom Tromey <tom@tromey.com>
15905
15906 * xcoffread.c (xcoff_start_psymtab): Use new.
15907 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15908 renamed from start_psymtab_common.
15909 * psympriv.h (struct partial_symtab): Add new constructor.
15910 (start_psymtab_common): Don't declare.
15911 * mdebugread.c (parse_partial_symbols): Use new.
15912 * dwarf2read.c (create_partial_symtab): Use new.
15913 * dbxread.c (start_psymtab): Use new.
15914 * ctfread.c (create_partial_symtab): Use new.
15915
32caafd0
TT
159162020-01-26 Tom Tromey <tom@tromey.com>
15917
15918 * xcoffread.c (xcoff_end_psymtab): Use new.
15919 * psymtab.c (start_psymtab_common): Use new.
15920 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15921 Update.
15922 * psympriv.h (struct partial_symtab): Add parameters to
15923 constructor. Don't inline.
15924 (allocate_psymtab): Don't declare.
15925 * mdebugread.c (new_psymtab): Use new.
15926 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15927 * dbxread.c (dbx_end_psymtab): Use new.
15928
abaa2f23
TT
159292020-01-26 Tom Tromey <tom@tromey.com>
15930
15931 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15932 allocate_psymtab. Update documentation.
15933 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15934 allocate_psymtab. Do not use new.
15935 (allocate_psymtab): Use new. Update.
15936
6d94535f
TT
159372020-01-26 Tom Tromey <tom@tromey.com>
15938
15939 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15940 * psymtab.c (psym_print_stats): Update.
15941 * psympriv.h (struct partial_symtab) <readin,
15942 psymtabs_addrmap_supported, anonymous>: Now bool.
15943 * mdebugread.c (psymtab_to_symtab_1): Update.
15944 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15945 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15946 (process_full_comp_unit, process_full_type_unit): Update.
15947 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15948 * ctfread.c (psymtab_to_symtab): Update.
15949
6f17252b
TT
159502020-01-26 Tom Tromey <tom@tromey.com>
15951
15952 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15953 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15954 * psymtab.c (psymtab_storage): Delete psymtabs.
15955 (psymtab_storage::allocate_psymtab): Use new.
15956 (psymtab_storage::discard_psymtab): Use delete.
15957 * psympriv.h (struct partial_symtab): Add constructor and
15958 initializers.
15959
f6f1cebc
TT
159602020-01-26 Tom Tromey <tom@tromey.com>
15961
15962 * machoread.c: Do not include psympriv.h.
15963
e47e48f6
PW
159642020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15965
15966 * NEWS: Mention the new option and the set/show commands.
15967
a2fedca9
PW
159682020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15969
15970 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15971 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15972 (validate_exec_file): New variables, enums, functions.
15973 (exec_file_locate_attach, print_section_info): Style the filenames.
15974 (_initialize_exec): Install show_exec_file_mismatch_command and
15975 set_exec_file_mismatch_command.
15976 * gdbcore.h (validate_exec_file): Declare.
15977 * infcmd.c (attach_command): Call validate_exec_file.
15978 * remote.c ( remote_target::remote_add_inferior): Likewise.
15979
7ffa82e1
AB
159802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15981
15982 * frame.c (find_frame_sal): Move call to get_next_frame into more
15983 inner scope.
15984 * inline-frame.c (inilne_state) <inline_state>: Update argument
15985 types.
15986 (inilne_state) <skipped_symbol>: Rename to...
15987 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15988 (skip_inline_frames): Build vector of skipped symbols and use this
15989 to reate the inline_state.
15990 (inline_skipped_symbol): Add a comment and some assertions, fetch
15991 skipped symbol from the list.
15992
3d92a3e3
AB
159932020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15994
15995 * buildsym.c (lte_is_less_than): Delete.
15996 (buildsym_compunit::end_symtab_with_blockvector): Create local
15997 lambda function to sort line table entries, and use
15998 std::stable_sort instead of std::sort.
15999 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16000 markers when looking for a previous line.
16001
94a72be7
AB
160022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16003
16004 * dwarf2read.c (lnp_state_machine::record_line): Include
16005 end_sequence parameter in debug print out. Record the line if we
16006 are at an end_sequence marker even if it's not the start of a
16007 statement.
16008 * symmisc.c (maintenance_print_one_line_table): Print end of
16009 sequence markers with 'END' not '0'.
16010
53af73bf
PA
160112020-01-24 Pedro Alves <palves@redhat.com>
16012
16013 PR gdb/25410
16014 * thread.c (scoped_restore_current_thread::restore): Use
16015 switch_to_inferior_no_thread.
16016 * exec.c: Include "progspace-and-thread.h".
16017 (add_target_sections, remove_target_sections):
16018 scoped_restore_current_pspace_and_thread instead of
16019 scoped_restore_current_thread.
16020 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16021 and aspace to the inferior before calling clone_program_space.
16022 Remove stale comment.
16023
3050c6f4
CB
160242020-01-24 Christian Biesinger <cbiesinger@google.com>
16025
16026 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16027 (arm_netbsd_nat_target::fetch_registers): ...this.
16028 (arm_nbsd_nat_target::store_registers): Rename to...
16029 (arm_netbsd_nat_target::store_registers): ...this.
16030
73685c7e
CB
160312020-01-24 Christian Biesinger <cbiesinger@google.com>
16032
16033 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16034 register_t.
16035
89203d40
CB
160362020-01-24 Christian Biesinger <cbiesinger@google.com>
16037
16038 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16039 Update comment.
16040 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16041 Likewise.
16042 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16043 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16044 the correct replacement (iterate_over_regset_sections).
16045 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16046 Update comment.
16047
1ba1ac88
AB
160482020-01-24 Graham Markall <graham.markall@embecosm.com>
16049
16050 PR gdb/23718
16051 * gdb/python/python.c (execute_gdb_command): Call
16052 async_enable_stdin in catch block.
16053
f3364a6d
AB
160542020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16055
16056 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16057 SWITCH_THRU_ALL_UIS.
16058
733d0a67
AB
160592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16060
16061 PR tui/9765
16062 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16063 comment, add extra parameter, and update to store previous symbol
16064 when appropriate.
16065 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16066 add extra parameter.
16067 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16068 remove unneeded parameter, add try/catch around gdb_print_insn,
16069 rewrite to add items to asm_lines vector.
16070 (tui_find_backward_disassembly_start_address): New function.
16071 (tui_find_disassembly_address): Updated throughout.
16072 (tui_disasm_window::set_contents): Update for changes to
16073 tui_disassemble.
16074 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16075 number of lines to scroll.
16076
b3b3bada
SM
160772020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16078
16079 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16080 (SECT_OFF_DATA): Likewise.
16081 (SECT_OFF_RODATA): Likewise.
16082 (SECT_OFF_TEXT): Likewise.
16083 (SECT_OFF_BSS): Likewise.
16084 (struct objfile) <text_section_offset, data_section_offset>: New
16085 methods.
16086 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16087 objfile::text_section_offset.
16088 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16089 * coffread.c (coff_symtab_read): Likewise.
16090 (enter_linenos): Likewise.
16091 (process_coff_symbol): Likewise.
16092 * ctfread.c (get_objfile_text_range): Likewise.
16093 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16094 Use objfile::data_section_offset.
16095 * dwarf2-frame.c (execute_cfa_program): Use
16096 objfile::text_section_offset.
16097 (dwarf2_frame_find_fde): Likewise.
16098 * dwarf2read.c (create_addrmap_from_index): Likewise.
16099 (create_addrmap_from_aranges): Likewise.
16100 (dw2_find_pc_sect_compunit_symtab): Likewise.
16101 (process_psymtab_comp_unit_reader): Likewise.
16102 (add_partial_symbol): Likewise.
16103 (add_partial_subprogram): Likewise.
16104 (process_full_comp_unit): Likewise.
16105 (read_file_scope): Likewise.
16106 (read_func_scope): Likewise.
16107 (read_lexical_block_scope): Likewise.
16108 (read_call_site_scope): Likewise.
16109 (dwarf2_rnglists_process): Likewise.
16110 (dwarf2_ranges_process): Likewise.
16111 (dwarf2_ranges_read): Likewise.
16112 (dwarf_decode_lines_1): Likewise.
16113 (new_symbol): Likewise.
16114 (dwarf2_fetch_die_loc_sect_off): Likewise.
16115 (dwarf2_per_cu_text_offset): Likewise.
16116 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16117 * hppa-tdep.c (read_unwind_info): Likewise.
16118 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16119 * psympriv.h (struct partial_symtab): Likewise.
16120 * psymtab.c (find_pc_sect_psymtab): Likewise.
16121 * solib-svr4.c (enable_break): Likewise.
16122 * stap-probe.c (relocate_address): Use
16123 objfile::data_section_offset.
16124 * xcoffread.c (enter_line_range): Use
16125 objfile::text_section_offset.
16126 (read_xcoff_symtab): Likewise.
16127
ab53f382
SM
161282020-01-23 Simon Marchi <simon.marchi@efficios.com>
16129
16130 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16131 declaration to narrower scopes.
16132
e7eee665
SM
161332020-01-23 Simon Marchi <simon.marchi@efficios.com>
16134
16135 * darwin-nat.h (struct darwin_exception_msg, enum
16136 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16137 Move up.
16138 (class darwin_nat_target) <wait_1, check_new_threads,
16139 decode_exception_message, decode_message, stop_inferior,
16140 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16141 * darwin-nat.c (darwin_check_new_threads): Rename to...
16142 (darwin_nat_target::check_new_threads): ... this.
16143 (darwin_suspend_inferior_it): Remove.
16144 (darwin_decode_exception_message): Rename to...
16145 (darwin_nat_target::decode_exception_message): ... this.
16146 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16147 (darwin_decode_message): Rename to...
16148 (darwin_nat_target::decode_message): ... this.
16149 (cancel_breakpoint): Rename to...
16150 (darwin_nat_target::cancel_breakpoint): ... this.
16151 (darwin_wait): Rename to...
16152 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16153 instead of iterate_over_inferiors.
16154 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16155 (darwin_stop_inferior): Rename to...
16156 (darwin_nat_target::stop_inferior): ... this.
16157 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16158 (darwin_init_thread_list): Rename to...
16159 (darwin_nat_target::init_thread_list): ... this.
16160 (darwin_ptrace_him): Rename to...
16161 (darwin_nat_target::ptrace_him): ... this.
16162 (darwin_nat_target::create_inferior): Pass lambda function to
16163 fork_inferior.
16164 (darwin_nat_target::detach): Call stop_inferior instead of
16165 darwin_stop_inferior.
16166 * fork-inferior.h (fork_inferior): Change init_trace_fun
16167 parameter to gdb::function_view.
16168 * fork-inferior.c (fork_inferior): Likewise.
16169
c162ed3e
HD
161702020-01-23 Hannes Domani <ssbssa@yahoo.de>
16171
16172 * i386-cygwin-tdep.c (core_process_module_section): Update.
16173 * windows-nat.c (struct lm_info_windows): Add text_offset.
16174 (windows_xfer_shared_libraries): Update.
16175 * windows-tdep.c (windows_xfer_shared_library):
16176 Add text_offset_cached argument.
16177 * windows-tdep.h (windows_xfer_shared_library): Update.
16178
a1237872
SM
161792020-01-21 Simon Marchi <simon.marchi@efficios.com>
16180
16181 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16182
b3ee6dd9
SM
161832020-01-21 Simon Marchi <simon.marchi@efficios.com>
16184
16185 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16186 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16187 replace with range-based for.
16188 (gdbsim_interrupt_inferior): Remove.
16189 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16190 with a range-based for. Inline code from
16191 gdbsim_interrupt_inferior.
16192
f9fac3c8
SM
161932020-01-21 Simon Marchi <simon.marchi@efficios.com>
16194
16195 * infrun.c (proceed): Fix indentation.
16196
f6474de9
TT
161972020-01-21 Tom Tromey <tromey@adacore.com>
16198
16199 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16200 * python/python.c (python_extension_ops): Update.
16201 (gdbpy_colorize): New function.
16202 * python/lib/gdb/__init__.py (colorize): New function.
16203 * extension.h (ext_lang_colorize): Declare.
16204 * extension.c (ext_lang_colorize): New function.
16205 * extension-priv.h (struct extension_language_ops) <colorize>: New
16206 member.
16207 * cli/cli-style.c (_initialize_cli_style): Update help text.
16208
f0c702d4
LM
162092020-01-21 Luis Machado <luis.machado@linaro.org>
16210
16211 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16212 <cond>: Change type to bool.
16213 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16214 (aarch64_displaced_step_cb): Likewise.
16215 (aarch64_displaced_step_tb): Likewise.
16216
1ab139e5
LM
162172020-01-21 Luis Machado <luis.machado@linaro.org>
16218
16219 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16220 output.
16221
0c271889
LM
162222020-01-21 Luis Machado <luis.machado@linaro.org>
16223
16224 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16225 <pc_adjust>: Adjust the documentation.
16226 (aarch64_displaced_step_fixup): Check if PC really moved before
16227 adjusting it.
16228
4d89c1c7
TT
162292020-01-19 Tom Tromey <tom@tromey.com>
16230
16231 * disasm.c (~gdb_disassembler): New destructor.
16232 (gdb_buffered_insn_length): Call disassemble_free_target.
16233 * disasm.h (class gdb_disassembler): Declare destructor. Use
16234 DISABLE_COPY_AND_ASSIGN.
16235
c0ab21c2
TT
162362020-01-19 Tom Tromey <tom@tromey.com>
16237
16238 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16239 (die_reader_func_ftype): Remove.
16240 (cutu_reader): New class.
16241 (dw2_get_file_names_reader): Remove "data" parameter.
16242 (dw2_get_file_names): Use cutu_reader.
16243 (create_debug_type_hash_table): Update.
16244 (read_cutu_die_from_dwo): Update comment.
16245 (lookup_dwo_unit): Add dwo_name parameter.
16246 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16247 die_reader_func_ftype and data parameters.
16248 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16249 Remove die_reader_func_ftype and data parameters.
16250 (~cutu_reader): New; from init_cutu_and_read_dies.
16251 (cutu_reader::cutu_reader): Rename from
16252 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16253 and data parameters.
16254 (init_cutu_and_read_dies_simple): Remove.
16255 (struct process_psymtab_comp_unit_data): Remove.
16256 (process_psymtab_comp_unit_reader): Remove data parameter; add
16257 want_partial_unit and pretend_language parameters.
16258 (process_psymtab_comp_unit): Use cutu_reader.
16259 (build_type_psymtabs_reader): Remove data parameter.
16260 (build_type_psymtabs_1): Use cutu_reader.
16261 (process_skeletonless_type_unit): Likewise.
16262 (load_partial_comp_unit_reader): Remove.
16263 (load_partial_comp_unit): Use cutu_reader.
16264 (load_full_comp_unit_reader): Remove.
16265 (load_full_comp_unit): Use cutu_reader.
16266 (struct create_dwo_cu_data): Remove.
16267 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16268 dwo_unit parameters.
16269 (create_cus_hash_table): Use cutu_reader.
16270 (struct dwarf2_read_addr_index_data): Remove.
16271 (dwarf2_read_addr_index_reader): Remove.
16272 (dwarf2_read_addr_index): Use cutu_reader.
16273 (read_signatured_type_reader): Remove.
16274 (read_signatured_type): Use cutu_reader.
16275
45bbae5c
TT
162762020-01-19 Tom Tromey <tom@tromey.com>
16277
16278 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16279 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16280 (tui_wrefresh): Declare.
16281 * tui/tui-wingeneral.c (suppress_output): New global.
16282 (tui_suppress_output, ~tui_suppress_output): New constructor and
16283 destructor.
16284 (tui_wrefresh): New function.
16285 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16286 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16287 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16288 method.
16289 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16290 tui_wrefresh.
16291 (tui_data_window::no_refresh): New method.
16292 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16293 (tui_reg_command): Use tui_suppress_output
16294 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16295 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16296 method.
16297 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16298
4f13c1c0
TT
162992020-01-19 Tom Tromey <tom@tromey.com>
16300
16301 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16302 Handle case where symtab is null.
16303
fa47e446
SM
163042020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16305
16306 * linux-fork.c (one_fork_p): Simplify.
16307
26f42329
SM
163082020-01-17 Simon Marchi <simon.marchi@efficios.com>
16309
16310 * top.c (struct qt_args): Remove.
16311 (kill_or_detach): Change return type to void, replace `void *`
16312 parameter with a proper one.
16313 (print_inferior_quit_action): Likewise.
16314 (quit_confirm): Use range-based for loop to iterate over inferiors.
16315 (quit_force): Likewise.
16316
a9ac81b1
SM
163172020-01-17 Simon Marchi <simon.marchi@efficios.com>
16318
16319 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16320 `void *` parameter with proper parameters.
16321 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16322 (print_one_inferior): Change return type to void, replace `void *`
16323 parameter with proper parameters.
16324 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16325 inferiors.
16326 (get_other_inferior): Remove.
16327 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16328 inferiors.
16329
788eca49
SM
163302020-01-17 Simon Marchi <simon.marchi@efficios.com>
16331
16332 * mi/mi-interp.c (report_initial_inferior): Remove.
16333 (mi_interp::init): Use range-based for to iterate over inferiors.
16334
d9bc85b6
SM
163352020-01-17 Simon Marchi <simon.marchi@efficios.com>
16336
16337 * python/py-inferior.c (build_inferior_list): Remove.
16338 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16339
40c94099
CB
163402020-01-16 Christian Biesinger <cbiesinger@google.com>
16341
16342 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16343 (btrace_stitch_trace): Likewise.
16344 * charset.c (intermediate_encoding): Likewise (vaild).
16345 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16346 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16347 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16348
e0cdfe3c
HD
163492020-01-16 Hannes Domani <ssbssa@yahoo.de>
16350
16351 * windows-tdep.c (windows_get_tlb_type):
16352 Add rtl_user_process_parameters type.
16353
790f1718 163542020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16355 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16356
16357 PR build/24805
16358 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16359 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16360 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16361 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16362 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16363 (ps_plog): Redeclare exported functions with default visibility.
16364
3112ed97
NA
163652020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16366
16367 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16368 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16369
8dc3273e
SM
163702020-01-15 Simon Marchi <simon.marchi@efficios.com>
16371
16372 * infcmd.c (post_create_inferior): Use get_thread_regcache
16373 instead of get_current_regcache.
16374
ff47f4f0
TT
163752020-01-14 Tom Tromey <tom@tromey.com>
16376
16377 PR symtab/12535:
16378 * python/python.c (gdbpy_decode_line): Treat empty string the same
16379 as no argument.
16380
975f45b7
TT
163812020-01-14 Tom Tromey <tom@tromey.com>
16382
16383 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16384
25e57356
TT
163852020-01-14 Tom Tromey <tom@tromey.com>
16386
16387 * nat/linux-btrace.c: Don't include <config.h>.
16388 * nat/linux-ptrace.c: Don't include <config.h>.
16389 * nat/x86-linux-dregs.c: Don't include <config.h>.
16390
05ea2a05
TT
163912020-01-14 Tom Tromey <tom@tromey.com>
16392
16393 * configure: Rebuild.
16394 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16395
01027315
TT
163962020-01-14 Tom Tromey <tom@tromey.com>
16397
16398 * nat/x86-linux-dregs.c: Include configh.h.
16399 * nat/linux-ptrace.c: Include configh.h.
16400 * nat/linux-btrace.c: Include configh.h.
16401 * defs.h: Include config.h, bfd.h.
16402 * configure.ac: Don't source common.host.
16403 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16404 * configure: Rebuild.
16405 * acinclude.m4: Update path.
16406 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16407 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16408 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16409 (CLIBS): Add LIBSUPPORT.
16410 (CDEPS): Likewise.
16411 (COMMON_SFILES): Remove gdbsupport files.
16412 (HFILES_NO_SRCDIR): Likewise.
16413 (stamp-version): Update path to create-version.sh.
16414 (ALLDEPFILES): Remove gdbsupport files.
16415
b2ceabe8
TT
164162020-01-14 Tom Tromey <tom@tromey.com>
16417
16418 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16419 USE_WIN32API when needed.
16420 * configure.ac (USE_WIN32API): Don't define.
16421 (WIN32LIBS): Use WIN32APILIBS.
16422 * configure: Rebuild.
16423
25c51f71
TT
164242020-01-14 Tom Tromey <tom@tromey.com>
16425
16426 * configure: Rebuild.
16427 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16428
717c684d
BE
164292020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16430
16431 * skip.c (skip_function_command): Make skip w/o arguments use the
16432 name of the inlined function if pc is inside any inlined function.
16433
7da6a5b9
LM
164342020-01-14 Luis Machado <luis.machado@linaro.org>
16435
16436 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16437 * infrun.c (resume_1): Likewise.
16438 (handle_inferior_event): Remove stale comment.
16439 * linux-nat.c (linux_nat_target::resume): Update comments.
16440 (save_stop_reason): Likewise.
16441 (linux_nat_filter_event): Likewise.
16442 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16443
44e4c775
AB
164442020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16445
16446 * elfread.c (record_minimal_symbol): Set section index to 0 for
16447 non-allocatable sections.
16448
18a8505e
AT
16449
164502020-01-13 Ali Tamur <tamur@google.com>
16451
16452 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16453 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16454 to gdb::optional. Update comments.
16455 (dwo_file): Update comments.
16456 (read_attribute): Update API to take an additional out parameter,
16457 need_reprocess. This is used to mark attributes that need other
16458 attributes (e.g. str_offsets_base) for correct computation which may not
16459 have been read yet.
16460 (read_attribute_reprocess): New function declaration.
16461 (read_addr_index): Likewise.
16462 (read_dwo_str_index): Likewise.
16463 (read_stub_str_index): Likewise.
16464 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16465 (lookup_addr_base): New function definition.
16466 (lookup_ranges_base): Likewise.
16467 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16468 lookup_ranges_base.
16469 (init_cutu_and_read_dies): Update comments.
16470 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16471 unit. This is used to inherit parent's str_offsets_base and addr_base.
16472 Update comments.
16473 (init_cutu_and_read_dies_simple): Reflect API changes.
16474 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16475 (create_cus_hash_table): Change API to take parent compile unit.
16476 Reflect API changes.
16477 (open_and_init_dwo_file): Reflect API changes.
16478 (dwarf2_get_pc_bounds): Update comments.
16479 (dwarf2_record_block_ranges): Likewise.
16480 (read_full_die_1): Change implementation to reprocess attributes that
16481 need str_offsets_base and addr_base.
16482 (partial_die_info::read): Likewise.
16483 (read_attribute_reprocess): New function definition.
16484 (read_attribute_value): Change API to take an additional out parameter,
16485 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16486 when a non-dwo compile unit has index based attributes.
16487 (read_attribute): Reflect API changes.
16488 (read_addr_index_1): Reflect API changes. Update comments.
16489 (dwarf2_read_addr_index_data): Reflect API changes.
16490 (dwarf2_read_addr_index): Likewise.
16491 (read_str_index): Change API and implementation. This becomes a helper
16492 to be used by the new string index related methods. Update error
16493 message and comments.
16494 (read_dwo_str_index): New function definition.
16495 (read_stub_str_index): Likewise.
16496 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16497 * symfile.h (dwarf2_debug_sections): Likewise.
16498 * xcoffread.c (dwarf2_debug_sections): Likewise.
16499
0cac9354
SM
165002020-01-13 Simon Marchi <simon.marchi@efficios.com>
16501
16502 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16503 core_reg_sect type to gdb_byte *.
16504 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16505 * cris-tdep.c (fetch_core_registers): Likewise.
16506 * corelow.c (core_target::get_core_register_section): Change
16507 type of `contents` to gdb::byte_vector.
16508
9a6d629c
AB
165092020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16510
16511 * tui/tui-wingeneral.c (box_win): Position the title in the center
16512 of the border.
16513
d8b2f9e3
SM
165142020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16515
16516 * corelow.c (core_target::get_core_register_section): Use
16517 std::vector instead of alloca.
16518
bb564c58
SM
165192020-01-13 Simon Marchi <simon.marchi@efficios.com>
16520
16521 * warning.m4: Add -Wmissing-declarations to build_warnings.
16522 * configure: Re-generate.
16523
6b366111
SM
165242020-01-13 Simon Marchi <simon.marchi@efficios.com>
16525
16526 * python/python.c (init__gdb_module): Add declaration.
16527
6c265988
SM
165282020-01-13 Simon Marchi <simon.marchi@efficios.com>
16529
16530 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16531 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16532 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16533 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16534 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16535 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16536 * ada-exp.y (_initialize_ada_exp): Add declaration.
16537 * ada-lang.c (_initialize_ada_language): Add declaration.
16538 * ada-tasks.c (_initialize_tasks): Add declaration.
16539 * agent.c (_initialize_agent): Add declaration.
16540 * aix-thread.c (_initialize_aix_thread): Add declaration.
16541 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16542 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16543 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16544 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16545 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16546 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16547 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16548 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16549 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16550 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16551 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16552 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16553 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16554 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16555 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16556 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16557 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16558 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16559 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16560 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16561 * annotate.c (_initialize_annotate): Add declaration.
16562 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16563 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16564 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16565 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16566 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16567 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16568 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16569 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16570 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16571 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16572 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16573 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16574 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16575 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16576 * auto-load.c (_initialize_auto_load): Add declaration.
16577 * auxv.c (_initialize_auxv): Add declaration.
16578 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16579 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16580 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16581 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16582 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16583 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16584 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16585 * breakpoint.c (_initialize_breakpoint): Add declaration.
16586 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16587 * btrace.c (_initialize_btrace): Add declaration.
16588 * charset.c (_initialize_charset): Add declaration.
16589 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16590 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16591 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16592 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16593 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16594 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16595 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16596 * coffread.c (_initialize_coffread): Add declaration.
16597 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16598 * compile/compile.c (_initialize_compile): Add declaration.
16599 * complaints.c (_initialize_complaints): Add declaration.
16600 * completer.c (_initialize_completer): Add declaration.
16601 * copying.c (_initialize_copying): Add declaration.
16602 * corefile.c (_initialize_core): Add declaration.
16603 * corelow.c (_initialize_corelow): Add declaration.
16604 * cp-abi.c (_initialize_cp_abi): Add declaration.
16605 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16606 * cp-support.c (_initialize_cp_support): Add declaration.
16607 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16608 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16609 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16610 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16611 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16612 * ctfread.c (_initialize_ctfread): Add declaration.
16613 * d-lang.c (_initialize_d_language): Add declaration.
16614 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16615 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16616 * dbxread.c (_initialize_dbxread): Add declaration.
16617 * dcache.c (_initialize_dcache): Add declaration.
16618 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16619 * disasm.c (_initialize_disasm): Add declaration.
16620 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16621 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16622 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16623 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16624 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16625 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16626 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16627 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16628 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16629 * elfread.c (_initialize_elfread): Add declaration.
16630 * exec.c (_initialize_exec): Add declaration.
16631 * extension.c (_initialize_extension): Add declaration.
16632 * f-lang.c (_initialize_f_language): Add declaration.
16633 * f-valprint.c (_initialize_f_valprint): Add declaration.
16634 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16635 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16636 * filesystem.c (_initialize_filesystem): Add declaration.
16637 * findcmd.c (_initialize_mem_search): Add declaration.
16638 * findvar.c (_initialize_findvar): Add declaration.
16639 * fork-child.c (_initialize_fork_child): Add declaration.
16640 * frame-base.c (_initialize_frame_base): Add declaration.
16641 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16642 * frame.c (_initialize_frame): Add declaration.
16643 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16644 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16645 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16646 * gcore.c (_initialize_gcore): Add declaration.
16647 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16648 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16649 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16650 * gdbarch.c (_initialize_gdbarch): Add declaration.
16651 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16652 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16653 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16654 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16655 * go-lang.c (_initialize_go_language): Add declaration.
16656 * go32-nat.c (_initialize_go32_nat): Add declaration.
16657 * guile/guile.c (_initialize_guile): Add declaration.
16658 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16659 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16660 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16661 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16662 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16663 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16664 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16665 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16666 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16667 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16668 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16669 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16670 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16671 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16672 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16673 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16674 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16675 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16676 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16677 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16678 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16679 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16680 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16681 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16682 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16683 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16684 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16685 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16686 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16687 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16688 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16689 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16690 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16691 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16692 * infcall.c (_initialize_infcall): Add declaration.
16693 * infcmd.c (_initialize_infcmd): Add declaration.
16694 * inflow.c (_initialize_inflow): Add declaration.
16695 * infrun.c (_initialize_infrun): Add declaration.
16696 * interps.c (_initialize_interpreter): Add declaration.
16697 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16698 * jit.c (_initialize_jit): Add declaration.
16699 * language.c (_initialize_language): Add declaration.
16700 * linux-fork.c (_initialize_linux_fork): Add declaration.
16701 * linux-nat.c (_initialize_linux_nat): Add declaration.
16702 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16703 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16704 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16705 * m2-lang.c (_initialize_m2_language): Add declaration.
16706 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16707 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16708 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16709 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16710 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16711 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16712 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16713 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16714 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16715 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16716 * machoread.c (_initialize_machoread): Add declaration.
16717 * macrocmd.c (_initialize_macrocmd): Add declaration.
16718 * macroscope.c (_initialize_macroscope): Add declaration.
16719 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16720 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16721 * maint.c (_initialize_maint_cmds): Add declaration.
16722 * mdebugread.c (_initialize_mdebugread): Add declaration.
16723 * memattr.c (_initialize_mem): Add declaration.
16724 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16725 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16726 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16727 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16728 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16729 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16730 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16731 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16732 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16733 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16734 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16735 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16736 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16737 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16738 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16739 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16740 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16741 * mipsread.c (_initialize_mipsread): Add declaration.
16742 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16743 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16744 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16745 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16746 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16747 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16748 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16749 * nto-procfs.c (_initialize_procfs): Add declaration.
16750 * objc-lang.c (_initialize_objc_language): Add declaration.
16751 * observable.c (_initialize_observer): Add declaration.
16752 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16753 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16754 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16755 * osabi.c (_initialize_gdb_osabi): Add declaration.
16756 * osdata.c (_initialize_osdata): Add declaration.
16757 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16758 * parse.c (_initialize_parse): Add declaration.
16759 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16760 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16761 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16762 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16763 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16764 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16765 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16766 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16767 * printcmd.c (_initialize_printcmd): Add declaration.
16768 * probe.c (_initialize_probe): Add declaration.
16769 * proc-api.c (_initialize_proc_api): Add declaration.
16770 * proc-events.c (_initialize_proc_events): Add declaration.
16771 * proc-service.c (_initialize_proc_service): Add declaration.
16772 * procfs.c (_initialize_procfs): Add declaration.
16773 * producer.c (_initialize_producer): Add declaration.
16774 * psymtab.c (_initialize_psymtab): Add declaration.
16775 * python/python.c (_initialize_python): Add declaration.
16776 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16777 * record-btrace.c (_initialize_record_btrace): Add declaration.
16778 * record-full.c (_initialize_record_full): Add declaration.
16779 * record.c (_initialize_record): Add declaration.
16780 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16781 * regcache.c (_initialize_regcache): Add declaration.
16782 * reggroups.c (_initialize_reggroup): Add declaration.
16783 * remote-notif.c (_initialize_notif): Add declaration.
16784 * remote-sim.c (_initialize_remote_sim): Add declaration.
16785 * remote.c (_initialize_remote): Add declaration.
16786 * reverse.c (_initialize_reverse): Add declaration.
16787 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16788 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16789 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16790 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16791 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16792 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16793 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16794 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16795 Add declaration.
16796 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16797 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16798 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16799 * rust-exp.y (_initialize_rust_exp): Add declaration.
16800 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16801 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16802 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16803 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16804 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16805 * score-tdep.c (_initialize_score_tdep): Add declaration.
16806 * ser-go32.c (_initialize_ser_dos): Add declaration.
16807 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16808 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16809 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16810 * ser-uds.c (_initialize_ser_socket): Add declaration.
16811 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16812 * serial.c (_initialize_serial): Add declaration.
16813 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16814 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16815 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16816 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16817 * skip.c (_initialize_step_skip): Add declaration.
16818 * sol-thread.c (_initialize_sol_thread): Add declaration.
16819 * solib-aix.c (_initialize_solib_aix): Add declaration.
16820 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16821 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16822 * solib-frv.c (_initialize_frv_solib): Add declaration.
16823 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16824 * solib-target.c (_initialize_solib_target): Add declaration.
16825 * solib.c (_initialize_solib): Add declaration.
16826 * source-cache.c (_initialize_source_cache): Add declaration.
16827 * source.c (_initialize_source): Add declaration.
16828 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16829 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16830 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16831 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16832 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16833 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16834 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16835 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16836 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16837 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16838 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16839 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16840 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16841 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16842 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16843 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16844 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16845 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16846 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16847 * stabsread.c (_initialize_stabsread): Add declaration.
16848 * stack.c (_initialize_stack): Add declaration.
16849 * stap-probe.c (_initialize_stap_probe): Add declaration.
16850 * std-regs.c (_initialize_frame_reg): Add declaration.
16851 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16852 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16853 * symfile.c (_initialize_symfile): Add declaration.
16854 * symmisc.c (_initialize_symmisc): Add declaration.
16855 * symtab.c (_initialize_symtab): Add declaration.
16856 * target.c (_initialize_target): Add declaration.
16857 * target-connection.c (_initialize_target_connection): Add
16858 declaration.
16859 * target-dcache.c (_initialize_target_dcache): Add declaration.
16860 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16861 * thread.c (_initialize_thread): Add declaration.
16862 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16863 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16864 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16865 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16866 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16867 * tracectf.c (_initialize_ctf): Add declaration.
16868 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16869 * tracefile.c (_initialize_tracefile): Add declaration.
16870 * tracepoint.c (_initialize_tracepoint): Add declaration.
16871 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16872 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16873 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16874 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16875 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16876 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16877 * tui/tui.c (_initialize_tui): Add declaration.
16878 * typeprint.c (_initialize_typeprint): Add declaration.
16879 * ui-style.c (_initialize_ui_style): Add declaration.
16880 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16881 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16882 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16883 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16884 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16885 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16886 * unittests/filtered_iterator-selftests.c
16887 (_initialize_filtered_iterator_selftests): Add declaration.
16888 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16889 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16890 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16891 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16892 * unittests/main-thread-selftests.c
16893 (_initialize_main_thread_selftests): Add declaration.
16894 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16895 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16896 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16897 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16898 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16899 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16900 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16901 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16902 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16903 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16904 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16905 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16906 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16907 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16908 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16909 declaration.
16910 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16911 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16912 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16913 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16914 * user-regs.c (_initialize_user_regs): Add declaration.
16915 * utils.c (_initialize_utils): Add declaration.
16916 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16917 * valops.c (_initialize_valops): Add declaration.
16918 * valprint.c (_initialize_valprint): Add declaration.
16919 * value.c (_initialize_values): Add declaration.
16920 * varobj.c (_initialize_varobj): Add declaration.
16921 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16922 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16923 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16924 * windows-nat.c (_initialize_windows_nat): Add declaration.
16925 (_initialize_check_for_gdb_ini): Add declaration.
16926 (_initialize_loadable): Add declaration.
16927 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16928 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16929 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16930 * xcoffread.c (_initialize_xcoffread): Add declaration.
16931 * xml-support.c (_initialize_xml_support): Add declaration.
16932 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16933 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16934 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16935 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16936
e2de1eec
SM
169372020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16938
16939 * regformats/regdat.sh: Generate declaration for init function.
16940
e0037b4c
SM
169412020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16942
16943 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16944 up.
16945 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16946 close_one_inferior>: New methods.
16947 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16948 pass down target to find_inferior_pid.
16949 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16950 Pass down target to find_inferior_ptid.
16951 (gdbsim_target::create_inferior): Pass down target to
16952 add_thread_silent.
16953 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16954 target down to find_inferior_ptid and switch_to_thread.
16955 (gdbsim_target::close): Update to call close_one_inferior.
16956 (struct resume_data): Remove.
16957 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16958 directly, rather than through a void pointer.
16959 (gdbsim_target::resume): Update to call resume_one_inferior.
16960
58920b5b
SM
169612020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16962
16963 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16964
4ec89149
PA
169652020-01-12 Pedro Alves <palves@redhat.com>
16966
16967 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16968 directly for the current inferior instead of
16969 discard_all_inferiors.
16970 (discard_all_inferiors): Delete.
16971
7c392d1d
TT
169722020-01-11 Tom Tromey <tom@tromey.com>
16973
16974 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16975 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16976 deprecated_safe_get_selected_frame.
16977
d9ebdab7
TBA
169782020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16979
16980 * inferior.c (print_inferior): Switch inferior before printing it.
16981
f3c469b9
PA
169822020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16983 Pedro Alves <palves@redhat.com>
16984
16985 * progspace-and-thread.c (switch_to_program_space_and_thread):
16986 Assert there's an inferior for PSPACE. Use
16987 switch_to_inferior_no_thread to switch the inferior too.
16988 * progspace.c (program_space::~program_space): Call
16989 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16990 (program_space::free_all_objfiles): Don't call clear_symtab_users
16991 here.
16992 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16993
65c574f6
PA
169942020-01-10 Pedro Alves <palves@redhat.com>
16995
16996 * NEWS: Mention multi-target debugging, "info connections", and
16997 "add-inferior -no-connection".
16998
2f4fcf00
PA
169992020-01-10 Pedro Alves <palves@redhat.com>
17000
17001 * infrun.c: Include "target-connection.h".
17002 (check_multi_target_resumption): New.
17003 (proceed): Call it.
17004 * target-connection.c (make_target_connection_string): Make
17005 extern.
17006 * target-connection.h (make_target_connection_string): Declare.
17007
121b3efd
PA
170082020-01-10 Pedro Alves <palves@redhat.com>
17009
17010 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17011 * inferior.c (uiout_field_connection): New function.
17012 (print_inferior): Add new "connection-id" column.
17013 (add_inferior_command): Show connection number/string of added
17014 inferior.
17015 * process-stratum-target.h
17016 (process_stratum_target::connection_string): New virtual method.
17017 (process_stratum_target::connection_number): New field.
17018 * remote.c (remote_target::connection_string): New override.
17019 * target-connection.c: New file.
17020 * target-connection.h: New file.
17021 * target.c (decref_target): Remove process_stratum targets from
17022 the connection list.
17023 (target_stack::push): Add process_stratum targets to the
17024 connection list.
17025
4f837581
PA
170262020-01-10 Pedro Alves <palves@redhat.com>
17027
17028 Revert:
17029 2016-04-12 Pedro Alves <palves@redhat.com>
17030 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17031 Remove references to name.
17032 * serial.h (struct serial) <name>: Delete.
17033
f4ec508e
PA
170342020-01-10 Pedro Alves <palves@redhat.com>
17035
17036 * gdbarch-selftests.c (register_to_value_test): Remove "target
17037 already pushed" check.
17038
5b6d1e4f
PA
170392020-01-10 Pedro Alves <palves@redhat.com>
17040 John Baldwin <jhb@FreeBSD.org>
17041
17042 * aarch64-linux-nat.c
17043 (aarch64_linux_nat_target::thread_architecture): Adjust.
17044 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17045 (task_command_1): Likewise.
17046 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17047 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17048 (aix_thread_target::store_registers)
17049 (aix_thread_target::thread_alive): Adjust.
17050 * amd64-fbsd-tdep.c: Include "inferior.h".
17051 (amd64fbsd_get_thread_local_address): Pass down target.
17052 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17053 thread's gdbarch instead of target_gdbarch.
17054 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17055 get_last_target_status.
17056 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17057 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17058 inferiors.
17059 (update_inserted_breakpoint_locations): Skip if inferiors with no
17060 execution.
17061 (update_global_location_list): When handling moribund locations,
17062 find representative inferior for location's pspace, and use thread
17063 count of its process_stratum target.
17064 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17065 * bsd-uthread.c (bsd_uthread_target::wait): Use
17066 as_process_stratum_target and adjust thread_change_ptid and
17067 add_thread calls.
17068 (bsd_uthread_target::update_thread_list): Use
17069 as_process_stratum_target and adjust find_thread_ptid,
17070 thread_change_ptid and add_thread calls.
17071 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17072 find_thread_ptid call.
17073 * corelow.c (add_to_thread_list): Adjust add_thread call.
17074 (core_target_open): Adjust add_thread_silent and thread_count
17075 calls.
17076 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17077 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17078 * event-top.c (async_disconnect): Pop targets from all inferiors.
17079 * exec.c (add_target_sections): Push exec target on all inferiors
17080 sharing the program space.
17081 (remove_target_sections): Remove the exec target from all
17082 inferiors sharing the program space.
17083 (exec_on_vfork): New.
17084 * exec.h (exec_on_vfork): Declare.
17085 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17086 Pass it down.
17087 (fbsd_nat_target::update_thread_list): Adjust.
17088 (fbsd_nat_target::resume): Adjust.
17089 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17090 down.
17091 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17092 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17093 get_thread_arch_regcache call.
17094 * fork-child.c (gdb_startup_inferior): Pass target down to
17095 startup_inferior and set_executing.
17096 * gdbthread.h (struct process_stratum_target): Forward declare.
17097 (add_thread, add_thread_silent, add_thread_with_info)
17098 (in_thread_list): Add process_stratum_target parameter.
17099 (find_thread_ptid(inferior*, ptid_t)): New overload.
17100 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17101 parameter.
17102 (all_threads()): Delete overload.
17103 (all_threads, all_non_exited_threads): Add process_stratum_target
17104 parameter.
17105 (all_threads_safe): Use brace initialization.
17106 (thread_count): Add process_stratum_target parameter.
17107 (set_resumed, set_running, set_stop_requested, set_executing)
17108 (threads_are_executing, finish_thread_state): Add
17109 process_stratum_target parameter.
17110 (switch_to_thread): Use is_current_thread.
17111 * i386-fbsd-tdep.c: Include "inferior.h".
17112 (i386fbsd_get_thread_local_address): Pass down target.
17113 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17114 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17115 have_inferiors check.
17116 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17117 (inf_ptrace_target::attach): Adjust.
17118 * infcall.c (run_inferior_call): Adjust.
17119 * infcmd.c (run_command_1): Pass target to
17120 scoped_finish_thread_state.
17121 (proceed_thread_callback): Skip inferiors with no execution.
17122 (continue_command): Rename 'all_threads' local to avoid hiding
17123 'all_threads' function. Adjust get_last_target_status call.
17124 (prepare_one_step): Adjust set_running call.
17125 (signal_command): Use user_visible_resume_target. Compare thread
17126 pointers instead of inferior_ptid.
17127 (info_program_command): Adjust to pass down target.
17128 (attach_command): Mark target's 'thread_executing' flag.
17129 (stop_current_target_threads_ns): New, factored out from ...
17130 (interrupt_target_1): ... this. Switch inferior before making
17131 target calls.
17132 * inferior-iter.h
17133 (struct all_inferiors_iterator, struct all_inferiors_range)
17134 (struct all_inferiors_safe_range)
17135 (struct all_non_exited_inferiors_range): Filter on
17136 process_stratum_target too. Remove explicit.
17137 * inferior.c (inferior::inferior): Push dummy target on target
17138 stack.
17139 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17140 Add process_stratum_target parameter, and pass it down.
17141 (have_live_inferiors): Adjust.
17142 (switch_to_inferior_and_push_target): New.
17143 (add_inferior_command, clone_inferior_command): Handle
17144 "-no-connection" parameter. Use
17145 switch_to_inferior_and_push_target.
17146 (_initialize_inferior): Mention "-no-connection" option in
17147 the help of "add-inferior" and "clone-inferior" commands.
17148 * inferior.h: Include "process-stratum-target.h".
17149 (interrupt_target_1): Use bool.
17150 (struct inferior) <push_target, unpush_target, target_is_pushed,
17151 find_target_beneath, top_target, process_target, target_at,
17152 m_stack>: New.
17153 (discard_all_inferiors): Delete.
17154 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17155 (all_inferiors, all_non_exited_inferiors): Add
17156 process_stratum_target parameter.
17157 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17158 (target_last_proc_target): New global.
17159 (follow_fork_inferior): Push target on new inferior. Pass target
17160 to add_thread_silent. Call exec_on_vfork. Handle target's
17161 reference count.
17162 (follow_fork): Adjust get_last_target_status call. Also consider
17163 target.
17164 (follow_exec): Push target on new inferior.
17165 (struct execution_control_state) <target>: New field.
17166 (user_visible_resume_target): New.
17167 (do_target_resume): Call target_async.
17168 (resume_1): Set target's threads_executing flag. Consider resume
17169 target.
17170 (commit_resume_all_targets): New.
17171 (proceed): Also consider resume target. Skip threads of inferiors
17172 with no execution. Commit resumtion in all targets.
17173 (start_remote): Pass current inferior to wait_for_inferior.
17174 (infrun_thread_stop_requested): Consider target as well. Pass
17175 thread_info pointer to clear_inline_frame_state instead of ptid.
17176 (infrun_thread_thread_exit): Consider target as well.
17177 (random_pending_event_thread): New inferior parameter. Use it.
17178 (do_target_wait): Rename to ...
17179 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17180 down.
17181 (threads_are_resumed_pending_p, do_target_wait): New.
17182 (prepare_for_detach): Adjust calls.
17183 (wait_for_inferior): New inferior parameter. Handle it. Use
17184 do_target_wait_1 instead of do_target_wait.
17185 (fetch_inferior_event): Adjust. Switch to representative
17186 inferior. Pass target down.
17187 (set_last_target_status): Add process_stratum_target parameter.
17188 Save target in global.
17189 (get_last_target_status): Add process_stratum_target parameter and
17190 handle it.
17191 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17192 (context_switch): Check inferior_ptid == null_ptid before calling
17193 inferior_thread().
17194 (get_inferior_stop_soon): Pass down target.
17195 (wait_one): Rename to ...
17196 (poll_one_curr_target): ... this.
17197 (struct wait_one_event): New.
17198 (wait_one): New.
17199 (stop_all_threads): Adjust.
17200 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17201 event's target.
17202 (switch_back_to_stepped_thread): Also consider target.
17203 (print_stop_event): Update.
17204 (normal_stop): Update. Also consider the resume target.
17205 * infrun.h (wait_for_inferior): Remove declaration.
17206 (user_visible_resume_target): New declaration.
17207 (get_last_target_status, set_last_target_status): New
17208 process_stratum_target parameter.
17209 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17210 process_stratum_target parameter, and use it.
17211 (clear_inline_frame_state (thread_info*)): New.
17212 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17213 process_stratum_target parameter.
17214 (clear_inline_frame_state (thread_info*)): Declare.
17215 * linux-fork.c (delete_checkpoint_command): Pass target down to
17216 find_thread_ptid.
17217 (checkpoint_command): Adjust.
17218 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17219 instead of just tweaking inferior_ptid.
17220 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17221 (exit_lwp): Pass target down to find_thread_ptid.
17222 (attach_proc_task_lwp_callback): Pass target down to
17223 add_thread/set_running/set_executing.
17224 (linux_nat_target::attach): Pass target down to
17225 thread_change_ptid.
17226 (get_detach_signal): Pass target down to find_thread_ptid.
17227 Consider last target status's target.
17228 (linux_resume_one_lwp_throw, resume_lwp)
17229 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17230 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17231 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17232 (linux_nat_target::async_wait_fd): New.
17233 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17234 target down.
17235 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17236 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17237 * linux-thread-db.c (struct thread_db_info::process_target): New
17238 field.
17239 (add_thread_db_info): Save target.
17240 (get_thread_db_info): New process_stratum_target parameter. Also
17241 match target.
17242 (delete_thread_db_info): New process_stratum_target parameter.
17243 Also match target.
17244 (thread_from_lwp): Adjust to pass down target.
17245 (thread_db_notice_clone): Pass down target.
17246 (check_thread_db_callback): Pass down target.
17247 (try_thread_db_load_1): Always push the thread_db target.
17248 (try_thread_db_load, record_thread): Pass target down.
17249 (thread_db_target::detach): Pass target down. Always unpush the
17250 thread_db target.
17251 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17252 target down. Always unpush the thread_db target.
17253 (find_new_threads_callback, thread_db_find_new_threads_2)
17254 (thread_db_target::update_thread_list): Pass target down.
17255 (thread_db_target::pid_to_str): Pass current inferior down.
17256 (thread_db_target::get_thread_local_address): Pass target down.
17257 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17258 target down.
17259 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17260 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17261 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17262 (procfs_init_inferior): Rename to ...
17263 (procfs_target::procfs_init_inferior): ... this and adjust.
17264 (procfs_target::create_inferior, procfs_notice_thread)
17265 (procfs_do_thread_registers): Adjust.
17266 * ppc-fbsd-tdep.c: Include "inferior.h".
17267 (ppcfbsd_get_thread_local_address): Pass down target.
17268 * proc-service.c (ps_xfer_memory): Switch current inferior and
17269 program space as well.
17270 (get_ps_regcache): Pass target down.
17271 * process-stratum-target.c
17272 (process_stratum_target::thread_address_space)
17273 (process_stratum_target::thread_architecture): Pass target down.
17274 * process-stratum-target.h
17275 (process_stratum_target::threads_executing): New field.
17276 (as_process_stratum_target): New.
17277 * ravenscar-thread.c
17278 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17279 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17280 down.
17281 * record-btrace.c (record_btrace_target::info_record): Adjust.
17282 (record_btrace_target::record_method)
17283 (record_btrace_target::record_is_replaying)
17284 (record_btrace_target::fetch_registers)
17285 (get_thread_current_frame_id, record_btrace_target::resume)
17286 (record_btrace_target::wait, record_btrace_target::stop): Pass
17287 target down.
17288 * record-full.c (record_full_wait_1): Switch to event thread.
17289 Pass target down.
17290 * regcache.c (regcache::regcache)
17291 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17292 process_stratum_target parameter and handle it.
17293 (current_thread_target): New global.
17294 (get_thread_regcache): Add process_stratum_target parameter and
17295 handle it. Switch inferior before calling target method.
17296 (get_thread_regcache): Pass target down.
17297 (get_thread_regcache_for_ptid): Pass target down.
17298 (registers_changed_ptid): Add process_stratum_target parameter and
17299 handle it.
17300 (registers_changed_thread, registers_changed): Pass target down.
17301 (test_get_thread_arch_aspace_regcache): New.
17302 (current_regcache_test): Define a couple local test_target_ops
17303 instances and use them for testing.
17304 (readwrite_regcache): Pass process_stratum_target parameter.
17305 (cooked_read_test, cooked_write_test): Pass mock_target down.
17306 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17307 (get_thread_arch_aspace_regcache): Add process_stratum_target
17308 parameter.
17309 (regcache::target): New method.
17310 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17311 (regcache::registers_changed_ptid): Add process_stratum_target
17312 parameter.
17313 (regcache::m_target): New field.
17314 (registers_changed_ptid): Add process_stratum_target parameter.
17315 * remote.c (remote_state::supports_vCont_probed): New field.
17316 (remote_target::async_wait_fd): New method.
17317 (remote_unpush_and_throw): Add remote_target parameter.
17318 (get_current_remote_target): Adjust.
17319 (remote_target::remote_add_inferior): Push target.
17320 (remote_target::remote_add_thread)
17321 (remote_target::remote_notice_new_inferior)
17322 (get_remote_thread_info): Pass target down.
17323 (remote_target::update_thread_list): Skip threads of inferiors
17324 bound to other targets. (remote_target::close): Don't discard
17325 inferiors. (remote_target::add_current_inferior_and_thread)
17326 (remote_target::process_initial_stop_replies)
17327 (remote_target::start_remote)
17328 (remote_target::remote_serial_quit_handler): Pass down target.
17329 (remote_target::remote_unpush_target): New remote_target
17330 parameter. Unpush the target from all inferiors.
17331 (remote_target::remote_unpush_and_throw): New remote_target
17332 parameter. Pass it down.
17333 (remote_target::open_1): Check whether the current inferior has
17334 execution instead of checking whether any inferior is live. Pass
17335 target down.
17336 (remote_target::remote_detach_1): Pass down target. Use
17337 remote_unpush_target.
17338 (extended_remote_target::attach): Pass down target.
17339 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17340 (remote_target::append_resumption): Pass down target.
17341 (remote_target::append_pending_thread_resumptions)
17342 (remote_target::remote_resume_with_hc, remote_target::resume)
17343 (remote_target::commit_resume): Pass down target.
17344 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17345 (remote_target::interrupt_query)
17346 (remote_target::remove_new_fork_children)
17347 (remote_target::check_pending_events_prevent_wildcard_vcont)
17348 (remote_target::remote_parse_stop_reply)
17349 (remote_target::process_stop_reply): Pass down target.
17350 (first_remote_resumed_thread): New remote_target parameter. Pass
17351 it down.
17352 (remote_target::wait_as): Pass down target.
17353 (unpush_and_perror): New remote_target parameter. Pass it down.
17354 (remote_target::readchar, remote_target::remote_serial_write)
17355 (remote_target::getpkt_or_notif_sane_1)
17356 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17357 down target.
17358 (remote_target::mourn_inferior): Pass down target. Use
17359 remote_unpush_target.
17360 (remote_target::core_of_thread)
17361 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17362 (remote_target::pid_to_exec_file)
17363 (remote_target::thread_handle_to_thread_info): Pass down target.
17364 (remote_target::async_wait_fd): New.
17365 * riscv-fbsd-tdep.c: Include "inferior.h".
17366 (riscv_fbsd_get_thread_local_address): Pass down target.
17367 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17368 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17369 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17370 Adjust.
17371 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17372 * solib-svr4.c (enable_break): Pass down target.
17373 * spu-multiarch.c (parse_spufs_run): Pass down target.
17374 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17375 * target-delegates.c: Regenerate.
17376 * target.c (g_target_stack): Delete.
17377 (current_top_target): Return the current inferior's top target.
17378 (target_has_execution_1): Refer to the passed-in inferior's top
17379 target.
17380 (target_supports_terminal_ours): Check whether the initial
17381 inferior was already created.
17382 (decref_target): New.
17383 (target_stack::push): Incref/decref the target.
17384 (push_target, push_target, unpush_target): Adjust.
17385 (target_stack::unpush): Defref target.
17386 (target_is_pushed): Return bool. Adjust to refer to the current
17387 inferior's target stack.
17388 (dispose_inferior): Delete, and inline parts ...
17389 (target_preopen): ... here. Only dispose of the current inferior.
17390 (target_detach): Hold strong target reference while detaching.
17391 Pass target down.
17392 (target_thread_name): Add assertion.
17393 (target_resume): Pass down target.
17394 (target_ops::beneath, find_target_at): Adjust to refer to the
17395 current inferior's target stack.
17396 (get_dummy_target): New.
17397 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17398 has a thread running.
17399 (initialize_targets): Rename to ...
17400 (_initialize_target): ... this.
17401 * target.h: Include "gdbsupport/refcounted-object.h".
17402 (struct target_ops): Inherit refcounted_object.
17403 (target_ops::shortname, target_ops::longname): Make const.
17404 (target_ops::async_wait_fd): New method.
17405 (decref_target): Declare.
17406 (struct target_ops_ref_policy): New.
17407 (target_ops_ref): New typedef.
17408 (get_dummy_target): Declare function.
17409 (target_is_pushed): Return bool.
17410 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17411 (all_matching_threads_iterator::all_matching_threads_iterator):
17412 Handle filter target.
17413 * thread-iter.h (struct all_matching_threads_iterator, struct
17414 all_matching_threads_range, class all_non_exited_threads_range):
17415 Filter by target too. Remove explicit.
17416 * thread.c (threads_executing): Delete.
17417 (inferior_thread): Pass down current inferior.
17418 (clear_thread_inferior_resources): Pass down thread pointer
17419 instead of ptid_t.
17420 (add_thread_silent, add_thread_with_info, add_thread): Add
17421 process_stratum_target parameter. Use it for thread and inferior
17422 searches.
17423 (is_current_thread): New.
17424 (thread_info::deletable): Use it.
17425 (find_thread_ptid, thread_count, in_thread_list)
17426 (thread_change_ptid, set_resumed, set_running): New
17427 process_stratum_target parameter. Pass it down.
17428 (set_executing): New process_stratum_target parameter. Pass it
17429 down. Adjust reference to 'threads_executing'.
17430 (threads_are_executing): New process_stratum_target parameter.
17431 Adjust reference to 'threads_executing'.
17432 (set_stop_requested, finish_thread_state): New
17433 process_stratum_target parameter. Pass it down.
17434 (switch_to_thread): Also match inferior.
17435 (switch_to_thread): New process_stratum_target parameter. Pass it
17436 down.
17437 (update_threads_executing): Reimplement.
17438 * top.c (quit_force): Pop targets from all inferior.
17439 (gdb_init): Don't call initialize_targets.
17440 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17441 Declare.
17442 (windows_add_thread, windows_delete_thread): Adjust.
17443 (get_windows_debug_event): Rename to ...
17444 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17445 * tracefile-tfile.c (tfile_target_open): Pass down target.
17446 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17447 Forward declare.
17448 (switch_to_thread): Add process_stratum_target parameter.
17449 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17450 parameter. Use it.
17451 (mi_on_resume): Pass target down.
17452 * nat/fork-inferior.c (startup_inferior): Add
17453 process_stratum_target parameter. Pass it down.
17454 * nat/fork-inferior.h (startup_inferior): Add
17455 process_stratum_target parameter.
17456 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17457
75c6c844
PA
174582020-01-10 Pedro Alves <palves@redhat.com>
17459
17460 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17461 directly. Instead find the first thread in the thread list and
17462 use switch_to_thread.
17463
78f2c40a
PA
174642020-01-10 Pedro Alves <palves@redhat.com>
17465
17466 * remote.c (remote_target::remote_add_inferior): Don't bind a
17467 process to the current inferior if the current inferior is already
17468 bound to a process.
17469
e7af6c70
TBA
174702020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17471 Pedro Alves <palves@redhat.com>
17472
17473 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17474 If no process is specified, return null_ptid instead of
17475 inferior_ptid.
17476 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17477 TARGET_WAITKIND_SIGNALLED with no pid.
17478
31ba933e
PA
174792020-01-10 Pedro Alves <palves@redhat.com>
17480
17481 * remote.c (first_remote_resumed_thread): New.
17482 (remote_target::wait_as): Use it as default event_ptid instead of
17483 inferior_ptid.
17484
735fc2ca
PA
174852020-01-10 Pedro Alves <palves@redhat.com>
17486
17487 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17488
c17e02e1
PA
174892020-01-10 Pedro Alves <palves@redhat.com>
17490
17491 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17492 not -1.
17493
ab1ddbcf
PA
174942020-01-10 Pedro Alves <palves@redhat.com>
17495
17496 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17497 ptid to get_last_target_status.
17498 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17499 ptid to get_last_target_status.
17500 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17501 get_last_target_status.
17502 (info_program_command): Don't pass a target_waitstatus to
17503 get_last_target_status.
17504 * infrun.c (init_wait_for_inferior): Use
17505 nullify_last_target_wait_ptid.
17506 (get_last_target_status): Handle nullptr arguments.
17507 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17508 (print_stop_event): Don't pass a ptid to get_last_target_status.
17509 (normal_stop): Don't pass a ptid to get_last_target_status.
17510 * infrun.h (get_last_target_status, set_last_target_status): Move
17511 comments here and update.
17512 (nullify_last_target_wait_ptid): Declare.
17513 * linux-fork.c (fork_load_infrun_state): Remove local extern
17514 declaration of nullify_last_target_wait_ptid.
17515 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17516 to get_last_target_status.
17517
f3f8ece4
PA
175182020-01-10 Pedro Alves <palves@redhat.com>
17519
17520 * gdbthread.h (scoped_restore_current_thread)
17521 <dont_restore, restore, m_dont_restore>: Declare.
17522 * thread.c (thread_alive): Add assertion. Return bool.
17523 (switch_to_thread_if_alive): New.
17524 (prune_threads): Switch inferior/thread.
17525 (print_thread_info_1): Switch thread before calling target methods.
17526 (scoped_restore_current_thread::restore): New, factored out from
17527 ...
17528 (scoped_restore_current_thread::~scoped_restore_current_thread):
17529 ... this.
17530 (scoped_restore_current_thread::scoped_restore_current_thread):
17531 Add assertion.
17532 (thread_apply_all_command, thread_select): Use
17533 switch_to_thread_if_alive.
17534 * infrun.c (proceed, restart_threads, handle_signal_stop)
17535 (switch_back_to_stepped_thread): Switch current thread before
17536 calling target methods.
17537
db2d40f7
PA
175382020-01-10 Pedro Alves <palves@redhat.com>
17539
17540 * inferior.c (switch_to_inferior_no_thread): New function,
17541 factored out from ...
17542 (inferior_command): ... here.
17543 * inferior.h (switch_to_inferior_no_thread): Declare.
17544 * mi/mi-main.c (run_one_inferior): Use
17545 switch_to_inferior_no_thread.
17546
bd420a2d
PA
175472020-01-10 Pedro Alves <palves@redhat.com>
17548
17549 * infcmd.c (kill_command): Remove dead code.
17550
ddf5db90
PA
175512020-01-10 Pedro Alves <palves@redhat.com>
17552
17553 * remote.c (remote_target::mourn_inferior): No longer check
17554 whether the target is running.
17555
5018ce90
PA
175562020-01-10 Pedro Alves <palves@redhat.com>
17557
17558 * corelow.c (core_target::has_execution): Change parameter type to
17559 inferior pointer.
17560 * inferior.c (number_of_live_inferiors): Use
17561 inferior::has_execution instead of target_has_execution_1.
17562 * inferior.h (inferior::has_execution): New.
17563 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17564 inferior::has_execution instead of target_has_execution_1.
17565 * process-stratum-target.c
17566 (process_stratum_target::has_execution): Change parameter type to
17567 inferior pointer. Check the inferior's PID instead of
17568 inferior_ptid.
17569 * process-stratum-target.h
17570 (process_stratum_target::has_execution): Change parameter type to
17571 inferior pointer.
17572 * record-full.c (record_full_core_target::has_execution): Change
17573 parameter type to inferior pointer.
17574 * target.c (target_has_execution_1): Change parameter type to
17575 inferior pointer.
17576 (target_has_execution_current): Adjust.
17577 * target.h (target_ops::has_execution): Change parameter type to
17578 inferior pointer.
17579 (target_has_execution_1): Change parameter type to inferior
17580 pointer. Change return type to bool.
17581 * tracefile.h (tracefile_target::has_execution): Change parameter
17582 type to inferior pointer.
17583
74375d18
PA
175842020-01-10 Pedro Alves <palves@redhat.com>
17585
17586 * exceptions.c (print_flush): Remove current_top_target() check.
17587
acdf84a6
PA
175882020-01-10 Pedro Alves <palves@redhat.com>
17589
17590 * remote.c (show_remote_exec_file): Show the current inferior's
17591 exec-file instead of the command variable's value.
17592
ec506636
PA
175932020-01-10 Pedro Alves <palves@redhat.com>
17594
17595 * record-full.c (record_full_resume_ptid): New global.
17596 (record_full_target::resume): Set it.
17597 (record_full_wait_1): Use record_full_resume_ptid instead of
17598 inferior_ptid.
17599
873657b9
PA
176002020-01-10 Pedro Alves <palves@redhat.com>
17601
17602 * gdbthread.h (scoped_restore_current_thread)
17603 <dont_restore, restore, m_dont_restore>: Declare.
17604 * thread.c (thread_alive): Add assertion. Return bool.
17605 (switch_to_thread_if_alive): New.
17606 (prune_threads): Switch inferior/thread.
17607 (print_thread_info_1): Switch thread before calling target methods.
17608 (scoped_restore_current_thread::restore): New, factored out from
17609 ...
17610 (scoped_restore_current_thread::~scoped_restore_current_thread):
17611 ... this.
17612 (scoped_restore_current_thread::scoped_restore_current_thread):
17613 Add assertion.
17614 (thread_apply_all_command, thread_select): Use
17615 switch_to_thread_if_alive.
17616
7f0ae84c
GB
176172020-01-10 George Barrett <bob@bob131.so>
17618
17619 * stap-probe.c (stap_modify_semaphore): Don't check for null
17620 semaphores.
17621 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17622 for null semaphores.
17623
f5a7c406
AB
176242020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17625
17626 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17627 all source windows, and maintain horizontal scroll status while
17628 doing so.
17629
9ae6bf64
TT
176302020-01-09 Tom Tromey <tom@tromey.com>
17631
17632 PR tui/18932:
17633 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17634 update_source_window, not print_source_lines.
17635
b2efe70c
AB
176362020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17637
17638 * tui/tui.c (tui_enable): Register tui hooks after calling
17639 tui_display_main.
17640
5f23a082
CB
176412020-01-09 Christian Biesinger <cbiesinger@google.com>
17642
17643 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17644
3061113b
SM
176452020-01-08 Simon Marchi <simon.marchi@efficios.com>
17646
17647 * thread.c (print_thread_info_1): Fix indentation.
17648
57d75002
CB
176492020-01-09 Christian Biesinger <cbiesinger@google.com>
17650
17651 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17652 unique_xmalloc_ptr outside the if to always free the demangled name.
17653
6a053cb1
TT
176542020-01-08 Tom Tromey <tromey@adacore.com>
17655
17656 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17657 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17658 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17659 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17660 Remove.
17661 (section_offsets): New typedef.
17662 * symtab.c (fixup_section, get_msymbol_address): Update.
17663 * symmisc.c (dump_msymbols): Update.
17664 * symfile.h (relative_addr_info_to_section_offsets)
17665 (symfile_map_offsets_to_segments): Update.
17666 * symfile.c (build_section_addr_info_from_objfile)
17667 (init_objfile_sect_indices): Update.
17668 (struct place_section_arg): Change type of "offsets".
17669 (place_section): Update.
17670 (relative_addr_info_to_section_offsets): Change type of
17671 "section_offsets". Remove "num_sections" parameter.
17672 (default_symfile_offsets, syms_from_objfile_1)
17673 (set_objfile_default_section_offset): Update.
17674 (reread_symbols): No need to preserve section offsets by hand.
17675 (symfile_map_offsets_to_segments): Change type of "offsets".
17676 * stap-probe.c (relocate_address): Update.
17677 * stabsread.h (process_one_symbol): Update.
17678 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17679 (solib_target_relocate_section_addresses): Update.
17680 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17681 Update.
17682 * solib-frv.c (frv_relocate_main_executable): Update.
17683 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17684 * solib-aix.c (solib_aix_get_section_offsets): Change return
17685 type.
17686 (solib_aix_solib_create_inferior_hook): Update.
17687 * remote.c (remote_target::get_offsets): Update.
17688 * psymtab.c (find_pc_sect_psymtab): Update.
17689 * psympriv.h (struct partial_symbol) <address, text_low,
17690 text_high>: Update.
17691 * objfiles.h (obj_section_offset): Update.
17692 (struct objfile) <section_offsets>: Change type.
17693 <num_sections>: Remove.
17694 (objfile_relocate): Update.
17695 * objfiles.c (entry_point_address_query): Update
17696 (relocate_one_symbol): Change type of "section_offsets".
17697 (objfile_relocate1, objfile_relocate1): Change type of
17698 "new_offsets".
17699 (objfile_rebase1): Update.
17700 * mipsread.c (mipscoff_symfile_read): Update.
17701 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17702 parameter.
17703 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17704 (parse_external, psymtab_to_symtab_1): Update.
17705 * machoread.c (macho_symfile_offsets): Update.
17706 * ia64-tdep.c (ia64_find_unwind_table): Update.
17707 * hppa-tdep.c (read_unwind_info): Update.
17708 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17709 * dwarf2read.c (create_addrmap_from_index)
17710 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17711 (process_psymtab_comp_unit_reader, add_partial_symbol)
17712 (add_partial_subprogram, process_full_comp_unit)
17713 (read_file_scope, read_func_scope, read_lexical_block_scope)
17714 (read_call_site_scope, dwarf2_rnglists_process)
17715 (dwarf2_ranges_process, dwarf2_ranges_read)
17716 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17717 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17718 Update.
17719 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17720 Update.
17721 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17722 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17723 (process_one_symbol): Change type of "section_offsets".
17724 * ctfread.c (get_objfile_text_range): Update.
17725 * coffread.c (coff_symtab_read, enter_linenos)
17726 (process_coff_symbol): Update.
17727 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17728 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17729
456e800a
TT
177302020-01-08 Tom Tromey <tromey@adacore.com>
17731
17732 * dwarf2read.c (parse_macro_definition): Use std::string.
17733 (parse_macro_definition): Likewise.
17734
6dfa2fc2
TT
177352020-01-08 Tom Tromey <tromey@adacore.com>
17736
17737 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17738 (ATTR_ALLOC_CHUNK): Remove.
17739
421d1616
TT
177402020-01-08 Tom Tromey <tromey@adacore.com>
17741
17742 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17743
43816ebc
TT
177442020-01-08 Tom Tromey <tromey@adacore.com>
17745
17746 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17747 (dwarf2_compute_name, open_dwo_file): Likewise.
17748 (process_enumeration_scope): Use std::vector.
17749 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17750 (partial_die_info::fixup, dwarf2_start_subfile)
17751 (guess_full_die_structure_name, dwarf2_name): Likewise.
17752 (determine_prefix): Update.
17753 (guess_full_die_structure_name): Make return type const.
17754 (partial_die_full_name): Return unique_xmalloc_ptr.
17755 (DW_FIELD_ALLOC_CHUNK): Remove.
17756
4212d509
TT
177572020-01-07 Tom Tromey <tromey@adacore.com>
17758
17759 PR build/24937:
17760 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17761
06a6207a
JT
177622020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17763
17764 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17765
153d79c4
AB
177662020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17767
17768 * stack.c (print_frame_info): Move disassemble_next_line code
17769 inside source_print block.
17770
66182876
EZ
177712020-01-06 Eli Zaretskii <eliz@gnu.org>
17772
17773 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17774 gdb/signals.h, as we are now using native signal symbols.
17775
cbfa8581
SV
177762020-01-06 Shahab Vahedi <shahab@synopsys.com>
17777
17778 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17779 overflow by an early check of content vs threshold.
aac66a4c 17780 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17781 Likewise.
17782
3f602821
EZ
177832020-01-06 Eli Zaretskii <eliz@gnu.org>
17784
17785 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17786
a08c904d
JT
177872020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17788
17789 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17790 export table if no section contains it's RVA.
17791
89a65580
EZ
177922020-01-06 Eli Zaretskii <eliz@gnu.org>
17793
17794 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17795
8b7fcda2
HD
177962020-01-06 Hannes Domani <ssbssa@yahoo.de>
17797
17798 * source.c (print_source_lines_base): Set last_line_listed.
17799
a61b4f69
SV
178002020-01-06 Shahab Vahedi <shahab@synopsys.com>
17801
17802 * tui/tui-disasm.c: Remove trailing spaces.
17803
559e7e50
EZ
178042020-01-06 Eli Zaretskii <eliz@gnu.org>
17805 Pedro Alves <palves@redhat.com>
17806
17807 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17808 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17809 (windows_gdb_signal_to_target): New function, uses the above
17810 enumeration to convert GDB internal signal codes to equivalent
17811 Windows codes.
17812 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17813 * windows-nat.c: Include "gdb_wait.h".
17814 (get_windows_debug_event): Extract the fatal exception from the
17815 exit status and convert to the equivalent Posix signal number.
17816 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17817 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17818 * gdbsupport/gdb_wait.c: New file, implements
17819 windows_status_to_termsig.
17820 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17821 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17822
f2302a34
AB
178232020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17824
17825 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17826 show_layout.
17827
6a5206eb
LM
178282020-01-05 Luis Machado <luis.machado@linaro.org>
17829
17830 * aarch64-linux-nat.c
17831 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17832 and bfd_mach_aarch64.
17833
6ec1d75e
PW
178342020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17835
17836 * ui-file.c (stdio_file::can_emit_style_escape)
17837 (tee_file::can_emit_style_escape): Ensure style is used also on
17838 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17839 to gdb_stdout.
17840 * main.c (set_gdb_data_directory): Use file style to output the
17841 warning that the given pathname is not a directory.
17842 * top.c (show_history_filename, gdb_safe_append_history)
17843 (show_gdb_datadir): Use file style.
17844
44f81a76
HD
178452020-01-03 Hannes Domani <ssbssa@yahoo.de>
17846
17847 * solib-target.c (struct lm_info_target):
17848 Change offsets to be a unique_xmalloc_ptr.
17849 (solib_target_relocate_section_addresses): Update.
17850
25057eb0
HD
178512020-01-03 Hannes Domani <ssbssa@yahoo.de>
17852
17853 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17854
6e2118f5
BE
178552020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17856
17857 * MAINTAINERS (Write After Approval): Add myself.
17858
8133c7dc
LM
178592020-01-02 Luis Machado <luis.machado@linaro.org>
17860
17861 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17862 Cell BE architecture.
17863 * target.h (struct target_ops) <thread_architecture>: Likewise.
17864
48189bec
HD
178652020-01-01 Hannes Domani <ssbssa@yahoo.de>
17866
17867 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17868
ead1063b
HD
178692020-01-01 Hannes Domani <ssbssa@yahoo.de>
17870
17871 * MAINTAINERS (Write After Approval): Add myself.
17872
e5d78223
JB
178732020-01-01 Joel Brobecker <brobecker@adacore.com>
17874
17875 * gdbarch.sh: Update copyright year range of generated files.
17876
b811d2c2
JB
178772020-01-01 Joel Brobecker <brobecker@adacore.com>
17878
17879 Update copyright year range in all GDB files.
17880
5f4def5c
JB
178812020-01-01 Joel Brobecker <brobecker@adacore.com>
17882
17883 * copyright.py: Convert to Python 3.
17884
51fd4002
JB
178852020-01-01 Joel Brobecker <brobecker@adacore.com>
17886
17887 * copyright.py: Adapt after move of gnulib directory from gdb
17888 directory to toplevel directory.
17889
5fb651f2
JB
178902020-01-01 Joel Brobecker <brobecker@adacore.com>
17891
17892 * copyright.py (main): Exit if run from the wrong directory.
17893
5dd8bf88
JB
178942020-01-01 Joel Brobecker <brobecker@adacore.com>
17895
17896 * top.c (print_gdb_version): Change copyright year to 2020.
17897
9f71dacb 178982020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17899
9f71dacb 17900 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17901
9f71dacb 17902For older changes see ChangeLog-2019.
c906108c
SS
17903\f
17904Local Variables:
17905mode: change-log
17906left-margin: 8
17907fill-column: 74
17908version-control: never
57da7796 17909coding: utf-8
c906108c 17910End: