gdb: use two displaced step buffers on amd64/Linux
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
2
3 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
4 number of displaced step buffers.
5
6 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
7
8 * displaced-stepping.h (struct displaced_step_buffer): Rename
9 to...
10 (struct displaced_step_buffers): ... this.
11 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
12 <struct displaced_step_buffer>: New inner class.
13 <m_buffers>: New.
14 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
15 to...
16 (displaced_step_buffers::prepare): ... this, adjust for multiple
17 buffers.
18 (displaced_step_buffer::finish): Rename to...
19 (displaced_step_buffers::finish): ... this, adjust for multiple
20 buffers.
21 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
22 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
23 adjust for multiple buffers.
24 (displaced_step_buffer::restore_in_ptid): Rename to...
25 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
26 multiple buffers.
27 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
28 for num_disp_step_buffers.
29 * linux-tdep.c (struct linux_gdbarch_data)
30 <num_disp_step_buffers>: New field.
31 (struct linux_info) <disp_step_buf>: Rename to...
32 <disp_step_bufs>: ... this, change type to
33 displaced_step_buffers.
34 (linux_displaced_step_prepare): Use
35 linux_gdbarch_data::num_disp_step_buffers to create that number
36 of buffers.
37 (linux_displaced_step_finish): Adjust.
38 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
39 (linux_displaced_step_restore_all_in_ptid): Adjust.
40 (linux_init_abi): Change supports_displaced_step parameter for
41 num_disp_step_buffers, save it in linux_gdbarch_data.
42 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
43 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
44 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
45 supports_displaced_step parameter for num_disp_step_buffers.
46 (amd64_linux_init_abi): Adjust.
47 (amd64_x32_linux_init_abi): Adjust.
48 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
49 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
50 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
51 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
52 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
53 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
54 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
55 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
56 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
57 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
58 * m68k-linux-tdep.c (m68k_linux_init_abi):
59 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
60 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
61 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
62 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
63 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
64 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
65 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
66 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
67 Change type to displaced_step_buffers.
68 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
69 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
70 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
71 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
72 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
73 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
74 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
75
76 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
77
78 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
79 obkstack.
80 (_initialize_linux_tdep): Register pre-init gdb data instead of
81 post-init.
82
83 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
84
85 * displaced-stepping.h (struct
86 displaced_step_copy_insn_closure): Adjust comments.
87 (struct displaced_step_inferior_state) <step_thread,
88 step_gdbarch, step_closure, step_original, step_copy,
89 step_saved_copy>: Remove fields.
90 (struct displaced_step_thread_state): New.
91 (struct displaced_step_buffer): New.
92 * displaced-stepping.c (displaced_step_buffer::prepare): New.
93 (write_memory_ptid): Move from infrun.c.
94 (displaced_step_instruction_executed_successfully): New,
95 factored out of displaced_step_finish.
96 (displaced_step_buffer::finish): New.
97 (displaced_step_buffer::copy_insn_closure_by_addr): New.
98 (displaced_step_buffer::restore_in_ptid): New.
99 * gdbarch.sh (displaced_step_location): Remove.
100 (displaced_step_prepare, displaced_step_finish,
101 displaced_step_copy_insn_closure_by_addr,
102 displaced_step_restore_all_in_ptid): New.
103 * gdbarch.c: Re-generate.
104 * gdbarch.h: Re-generate.
105 * gdbthread.h (class thread_info) <displaced_step_state>: New
106 field.
107 (thread_step_over_chain_remove): New declaration.
108 (thread_step_over_chain_next): New declaration.
109 (thread_step_over_chain_length): New declaration.
110 * thread.c (thread_step_over_chain_remove): Make non-static.
111 (thread_step_over_chain_next): New.
112 (global_thread_step_over_chain_next): Use
113 thread_step_over_chain_next.
114 (thread_step_over_chain_length): New.
115 (global_thread_step_over_chain_enqueue): Add debug print.
116 (global_thread_step_over_chain_remove): Add debug print.
117 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
118 Remove.
119 * infrun.c (get_displaced_stepping_state): New.
120 (displaced_step_in_progress_any_inferior): Remove.
121 (displaced_step_in_progress_thread): Adjust.
122 (displaced_step_in_progress): Adjust.
123 (displaced_step_in_progress_any_thread): New.
124 (get_displaced_step_copy_insn_closure_by_addr): Remove.
125 (gdbarch_supports_displaced_stepping): Use
126 gdbarch_displaced_step_prepare_p.
127 (displaced_step_reset): Change parameter from inferior to
128 thread.
129 (displaced_step_prepare_throw): Implement using
130 gdbarch_displaced_step_prepare.
131 (write_memory_ptid): Move to displaced-step.c.
132 (displaced_step_restore): Remove.
133 (displaced_step_finish): Implement using
134 gdbarch_displaced_step_finish.
135 (start_step_over): Allow starting more than one displaced step.
136 (prepare_for_detach): Handle possibly multiple threads doing
137 displaced steps.
138 (handle_inferior_event): Handle possibility that fork event
139 happens while another thread displaced steps.
140 * linux-tdep.h (linux_displaced_step_prepare): New.
141 (linux_displaced_step_finish): New.
142 (linux_displaced_step_copy_insn_closure_by_addr): New.
143 (linux_displaced_step_restore_all_in_ptid): New.
144 (linux_init_abi): Add supports_displaced_step parameter.
145 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
146 (linux_displaced_step_prepare): New.
147 (linux_displaced_step_finish): New.
148 (linux_displaced_step_copy_insn_closure_by_addr): New.
149 (linux_displaced_step_restore_all_in_ptid): New.
150 (linux_init_abi): Add supports_displaced_step parameter,
151 register displaced step methods if true.
152 (_initialize_linux_tdep): Register inferior_execd observer.
153 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
154 supports_displaced_step parameter, adjust call to
155 linux_init_abi. Remove call to
156 set_gdbarch_displaced_step_location.
157 (amd64_linux_init_abi): Adjust call to
158 amd64_linux_init_abi_common.
159 (amd64_x32_linux_init_abi): Likewise.
160 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
161 linux_init_abi. Remove call to
162 set_gdbarch_displaced_step_location.
163 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
164 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
165 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
166 linux_init_abi.
167 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
168 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
169 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
170 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
171 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
172 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
173 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
174 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
175 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
176 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
177 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
178 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
179 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
180 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
181 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
182 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
183 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
184 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
185 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
186 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
187 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
188 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
189 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
190 linux_init_abi. Remove call to
191 set_gdbarch_displaced_step_location.
192 * arm-tdep.c (arm_pc_is_thumb): Call
193 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
194 get_displaced_step_copy_insn_closure_by_addr.
195 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
196 clear gdbarch methods.
197 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
198 (get_ppc_per_inferior): New function.
199 (ppc_displaced_step_prepare): New function.
200 (ppc_displaced_step_finish): New function.
201 (ppc_displaced_step_restore_all_in_ptid): New function.
202 (rs6000_gdbarch_init): Register new gdbarch methods.
203 * s390-tdep.c (s390_gdbarch_init): Don't call
204 set_gdbarch_displaced_step_location, set new gdbarch methods.
205
206 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
207
208 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
209 * aarch64-tdep.h: Include displaced-stepping.h.
210 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
211 Move here.
212 (displaced_step_copy_insn_closure_up): Move here.
213 (struct buf_displaced_step_copy_insn_closure): Move here.
214 (struct displaced_step_inferior_state): Move here.
215 (debug_displaced): Move here.
216 (displaced_debug_printf_1): Move here.
217 (displaced_debug_printf): Move here.
218 * displaced-stepping.c: New file.
219 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
220 * gdbarch.h: Re-generate.
221 * inferior.h: Include displaced-stepping.h.
222 * infrun.h (debug_displaced): Move to displaced-stepping.h.
223 (displaced_debug_printf_1): Likewise.
224 (displaced_debug_printf): Likewise.
225 (struct displaced_step_copy_insn_closure): Likewise.
226 (displaced_step_copy_insn_closure_up): Likewise.
227 (struct buf_displaced_step_copy_insn_closure): Likewise.
228 (struct displaced_step_inferior_state): Likewise.
229 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
230 (displaced_debug_printf_1): Likewise.
231 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
232 Likewise.
233 (_initialize_infrun): Don't register "set/show debug displaced".
234
235 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
236
237 * linux-tdep.c (get_linux_inferior_data): Add inferior
238 parameter.
239 (linux_vsyscall_range): Pass current inferior.
240
241 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
242
243 * infrun.c (displaced_step_prepare_throw): Change return type to
244 displaced_step_prepare_status.
245 (displaced_step_prepare): Likewise.
246 (displaced_step_finish): Change return type to
247 displaced_step_finish_status.
248 (resume_1): Adjust.
249 (stop_all_threads): Adjust.
250 * displaced-stepping.h: New file.
251
252 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
253
254 * infrun.c (displaced_step_fixup): Rename to...
255 (displaced_step_finish): ... this, update all callers.
256
257 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
258
259 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
260 (get_displaced_step_copy_insn_closure_by_addr): ... this.
261 Update all users.
262 (displaced_step_closure): Rename to...
263 (displaced_step_copy_insn_closure): ... this. Update all users.
264 (displaced_step_closure_up): Rename to...
265 (displaced_step_copy_insn_closure_up). ... this. Update all
266 users.
267 (buf_displaced_step_closure): Rename to...
268 (buf_displaced_step_copy_insn_closure): ... this. Update all
269 users.
270 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
271 (get_displaced_step_copy_insn_closure_by_addr): ... this.
272 Update all users.
273 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
274 (aarch64_displaced_step_copy_insn_closure): ... this. Update
275 all users.
276 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
277 (amd64_displaced_step_copy_insn_closure): ... this. Update all
278 users.
279 * arm-tdep.h (arm_displaced_step_closure): Rename to...
280 (arm_displaced_step_copy_insn_closure): ... this. Update all
281 users.
282 * i386-tdep.h (i386_displaced_step_closure): Rename to...
283 (i386_displaced_step_copy_insn_closure): ... this. Update all
284 users.
285 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
286 (ppc_displaced_step_copy_insn_closure): ... this. Update all
287 users.
288 * s390-tdep.c (s390_displaced_step_closure): Rename to...
289 (s390_displaced_step_copy_insn_closure): ... this. Update all
290 users.
291 * gdbarch.h: Re-generate.
292 * gdbarch.c: Re-generate.
293
294 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
295
296 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
297 (global_thread_step_over_chain_enqueue): ... this. Update all
298 users.
299 (thread_step_over_chain_remove): Rename to...
300 (global_thread_step_over_chain_remove): ... this. Update all
301 users.
302 (thread_step_over_chain_next): Rename to...
303 (global_thread_step_over_chain_next): ... this. Update all
304 users.
305 * infrun.h (step_over_queue_head): Rename to...
306 (global_thread_step_over_chain_head): ... this. Update all
307 users.
308 * infrun.c (step_over_queue_head): Rename to...
309 (global_thread_step_over_chain_head): ... this. Update all
310 users.
311 * thread.c (step_over_chain_remove): Rename to...
312 (thread_step_over_chain_remove): ... this. Update all users.
313 (thread_step_over_chain_next): Rename to...
314 (global_thread_step_over_chain_next): ... this. Update all
315 users.
316 (thread_step_over_chain_enqueue): Rename to...
317 (global_thread_step_over_chain_enqueue): ... this. Update all
318 users.
319 (thread_step_over_chain_remove): Rename to...
320 (global_thread_step_over_chain_remove): ... this. Update all
321 users.
322
323 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
324
325 * infrun.c (get_displaced_stepping_state): Remove, change
326 callers to access the field directly.
327
328 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
329
330 * infrun.c (handle_inferior_event): Restore displaced step
331 buffer bytes in child process when handling fork, even if fork
332 happened in another thread than the displaced-stepping one.
333
334 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
335
336 * infrun.c (infrun_inferior_execd): New function.
337 (_initialize_infrun): Attach inferior_execd observer.
338
339 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
340
341 * observable.h (inferior_execd): Declare new observable.
342 * observable.c (inferior_execd): Declare new observable.
343 * infrun.c (follow_exec): Notify inferior_execd observer.
344 * jit.c (jit_inferior_created_hook): Make static.
345 (_initialize_jit): Register inferior_execd observer.
346 * jit.h (jit_inferior_created_hook): Remove declaration.
347 * solib.c (_initialize_solib): Register inferior_execd observer.
348
349 2020-12-04 Tom de Vries <tdevries@suse.de>
350
351 PR gdb/27003
352 * completer.c (completion_tracker::build_completion_result): Don't
353 access match_list[0][-1].
354
355 2020-12-04 Tom Tromey <tromey@adacore.com>
356
357 * linespec.c (struct linespec_token): Rename; remove typedef.
358 * guile/scm-block.c (struct block_smob): Remove typedef.
359 (struct block_syms_progress_smob): Likewise.
360 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
361 * guile/scm-symtab.c (symtab_smob): Remove typedef.
362 (struct sal_smob): Remove typedef.
363 * guile/scm-param.c (struct param_smob): Remove typedef.
364 * guile/scm-progspace.c (struct pspace_smob): Rename.
365 * guile/scm-objfile.c (struct objfile_smob): Rename.
366 * guile/scm-iterator.c (struct iterator_smob): Rename.
367 * guile/scm-frame.c (struct frame_smob): Rename.
368 * guile/scm-arch.c (struct arch_smob): Rename.
369 * guile/scm-type.c (struct field_smob): Remove typedef.
370 (struct type_smob): Rename.
371 * guile/scm-cmd.c (struct command_smob): Remove typedef.
372 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
373 * guile/scm-value.c (struct value_smob): Remove typedef.
374 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
375 * guile/guile-internal.h (struct scheme_variable)
376 (struct scheme_function, struct scheme_integer_constant)
377 (struct gdb_smob, struct chained_gdb_smob)
378 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
379 (objfile_smob, pspace_smob, type_smob): Remove typedef.
380 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
381 (struct pretty_printer_worker_smob): Remove typedef.
382 * guile/scm-exception.c (struct exception_smob): Remove typedef.
383 * python/py-block.c (struct block_object): Remove typedef.
384 (block_syms_iterator_object): Update.
385 (set_block): Update.
386 (block_syms_iterator_object): Remove typedef.
387 * python/py-inferior.c (struct membuf_object): Remove typedef.
388 * python/py-symtab.c (struct symtab_object): Remove typedef.
389 (set_symtab): Update.
390 (sal_object): Remove typedef.
391 (set_sal): Update.
392 * python/py-frame.c (frame_object): Remove typedef.
393 * python/py-record-btrace.c (struct btpy_list_object): Remove
394 typedef.
395 * python/py-arch.c (struct arch_object): Remove typedef.
396 * python/py-linetable.c (struct linetable_entry_object)
397 (linetable_object, struct ltpy_iterator_object): Remove typedef.
398 * python/py-events.h (eventregistry_object): Remove typedef.
399 (struct events_object): Remove typedef.
400 * python/python-internal.h (gdbpy_breakpoint_object): Remove
401 typedef.
402 (thread_object): Remove typedef.
403 * python/py-progspace.c (pspace_object): Remove typedef.
404 * python/py-value.c (struct value_object): Remove typedef.
405 * python/py-record.h (recpy_record_object): Remove typedef.
406 (struct recpy_element_object): Remove typedef.
407 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
408 * python/py-objfile.c (objfile_object): Remove typedef.
409 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
410 * python/py-type.c (type_object): Remove typedef.
411 (typy_iterator_object): Update.
412 (set_type): Update.
413 (field_object): Remove typedef.
414 (typy_iterator_object): Remove typedef.
415 * python/py-registers.c (register_descriptor_iterator_object):
416 Remove typedef.
417 (struct register_descriptor_object)
418 (struct reggroup_iterator_object, struct reggroup_object): Remove
419 typedef.
420 * python/py-record.c (recpy_gap_object): Remove typedef.
421 * python/py-symbol.c (symbol_object): Remove typedef.
422 (set_symbol): Update.
423 * python/py-event.h (event_object): Remove typedef.
424 * python/py-param.c (parmpy_object): Remove typedef.
425 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
426 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
427 (unwind_info_object, struct cached_frame_info): Likewise.
428
429 2020-12-04 Tom Tromey <tromey@adacore.com>
430
431 * value.c (value_internal_function_name): Make return type const.
432 * value.h (value_internal_function_name): Make return type const.
433
434 2020-12-04 Luis Machado <luis.machado@linaro.org>
435
436 * aarch64-tdep.c (submask, bit, bits): Remove.
437 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
438 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
439 (aarch64_decode_cb, aarch64_decode_tb)
440 (aarch64_decode_ldr_literal): Use sbits to extract a signed
441 immediate.
442 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
443
444 2020-12-04 Tom de Vries <tdevries@suse.de>
445
446 PR tdep/27007
447 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
448
449 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
450
451 PR gdb/26876
452 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
453 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
454
455 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
456
457 * arch/riscv.c: Include 'rv32e-xregs.c'.
458 (riscv_create_target_description): Update to handle rv32e.
459 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
460 member variable.
461 <operator==>: Update to account for new field.
462 <hash>: Likewise.
463 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
464 * features/riscv/rv32e-xregs.c: Generated.
465 * features/riscv/rv32e-xregs.xml: New file.
466 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
467 file.
468 (riscv_debug_infcall): Likewise.
469 (riscv_debug_unwinder): Likewise.
470 (riscv_debug_gdbarch): Likewise.
471 (enum riscv_register_required_status): Delete.
472 (struct riscv_register_feature): Add constructor, delete default
473 constructor, copy, and assign constructors.
474 (struct riscv_register_feature::register_info) <required>: Delete.
475 <check>: Update comment and arguments.
476 (struct riscv_register_feature) <name>: Change to member function.
477 <prefer_first_name>: Delete.
478 <tdesc_feature>: New member function.
479 <registers>: Rename to...
480 <m_registers>: ...this.
481 <m_feature_name>: New member variable.
482 (riscv_register_feature::register_info::check): Update arguments.
483 (riscv_xreg_feature): Rewrite as class, create a single static
484 instance of the class.
485 (riscv_freg_feature): Likewise.
486 (riscv_virtual_feature): Likewise.
487 (riscv_csr_feature): Likewise.
488 (riscv_create_csr_aliases): Has become a member function inside
489 riscv_csr_feature class.
490 (riscv_abi_embedded): New function definition.
491 (riscv_register_name): Adjust to use new feature objects.
492 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
493 and adjust available argument registers.
494 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
495 (riscv_check_tdesc_feature): Delete.
496 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
497 (riscv_gdbarch_init): Delete target description checking code, and
498 instead call to the new feature objects to perform the checks.
499 Reorder handling of no abi information case, allows small code
500 simplification.
501 (_initialize_riscv_tdep): Remove call, this is now done in the
502 riscv_csr_feature constructor.
503 * riscv-tdep.h (riscv_abi_embedded): Declare.
504
505 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
506
507 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
508 DECLARE_CSR_ALIAS.
509
510 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
511
512 * riscv-tdep.c (riscv_is_unknown_csr): New function,
513 implementation moved from riscv_register_reggroup_p.
514 (riscv_register_reggroup_p): Update group handling for unknown
515 CSRs.
516
517 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
518
519 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
520 (dwarf2_get_dwz_file): Convert 'filename' to a
521 std::string. Use dwz_search_other_debugdirs to search for DWZ
522 files in the debug-file-directories provided by the user as well.
523
524 2020-12-01 Tom Tromey <tom@tromey.com>
525
526 * parse.c (expr_builder::expr_builder): Initialize expout.
527 (expr_builder::release): Use expression::resize.
528 (expression::expression, expression::~expression)
529 (expression::resize): New methods.
530 (write_exp_elt): Use expression::resize.
531 (prefixify_expression): Update.
532 (increase_expout_size): Use expression::resize.
533 * expression.h (struct expression): Add constructor, destructor.
534 <resize>: New method.
535 (expression_up): Change type.
536
537 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
538 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
539 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
540 set region.
541
542 2020-11-30 Tom de Vries <tdevries@suse.de>
543
544 PR symtab/26905
545 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
546 is_reference parameter.
547 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
548
549 2020-11-30 Tom Tromey <tom@tromey.com>
550
551 * rust-lang.c (rust_op_name): Remove.
552 (exp_descriptor_rust): Update.
553 * parser-defs.h (op_name_standard): Don't declare.
554 (struct exp_descriptor) <op_name>: Remove.
555 * parse.c (exp_descriptor_standard): Update.
556 * opencl-lang.c (exp_descriptor_opencl): Update.
557 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
558 * f-lang.c (op_name_f): Remove.
559 (f_language::exp_descriptor_tab): Update.
560 * expression.h (op_name): Update.
561 * expprint.c (op_name): Rewrite.
562 (op_name_standard): Remove.
563 (dump_raw_expression, dump_subexp): Update.
564 * c-lang.c (exp_descriptor_c): Update.
565 * ax-gdb.c (gen_expr): Update.
566 * ada-lang.c (ada_op_name): Remove.
567 (ada_exp_descriptor): Update.
568
569 2020-11-30 Tom Tromey <tom@tromey.com>
570
571 * eval.c (init_array_element): Remove.
572 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
573
574 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
575
576 PR tui/26973
577 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
578 static locator win info.
579
580 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
581
582 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
583 program.
584
585 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
586
587 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
588 is always initialized.
589
590 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
591 * MAINTAINERS (Write After Approval): Add myself.
592
593 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
594
595 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
596 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
597
598 2020-11-25 Tom Tromey <tom@tromey.com>
599
600 * eval.c (evaluate_subexp_standard): Remove unnecessary
601 variables.
602
603 2020-11-25 Tom Tromey <tom@tromey.com>
604
605 * d-lang.c: Include parser-defs.h.
606 * rust-lang.c: Include parser-defs.h.
607 * c-lang.h: Do not include parser-defs.h.
608
609 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
610
611 * regcache.h (struct cached_reg): Remove typedef.
612
613 2020-11-24 Joel Brobecker <brobecker@adacore.com>
614
615 * README: Fix the URL of the MPFR library.
616
617 2020-11-24 Joel Brobecker <brobecker@adacore.com>
618
619 * README: Document the --with-libgmp-prefix configure option.
620
621 2020-11-24 Joel Brobecker <brobecker@adacore.com>
622
623 * NEWS: Add entry documenting support for DWARF-based fixed
624 point types.
625
626 2020-11-24 Joel Brobecker <brobecker@adacore.com>
627
628 * NEWS: Document that building GDB now requires GMP.
629
630 2020-11-24 Joel Brobecker <brobecker@adacore.com>
631
632 * typeprint.c (print_type_scalar): Add handling of
633 TYPE_CODE_FIXED_POINT.
634
635 2020-11-24 Joel Brobecker <brobecker@adacore.com>
636
637 * valarith.c (fixed_point_binop): Replace the
638 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
639 users accordingly.
640
641 2020-11-24 Joel Brobecker <brobecker@adacore.com>
642
643 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
644 replacing fixed_point_scaling_factor. All callers updated
645 throughout this project.
646 (fixed_point_scaling_factor): Delete declaration.
647 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
648 fixed_point_scaling_factor. Adjust implementation accordingly.
649
650 2020-11-24 Joel Brobecker <brobecker@adacore.com>
651
652 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
653 replacing the fixed_point_type_base_type function. All callers
654 updated throughout this project.
655 (fixed_point_type_base_type): Remove declaration.
656 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
657 fixed_point_type_base_type. Adjust implementation accordingly.
658
659 2020-11-24 Joel Brobecker <brobecker@adacore.com>
660
661 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
662 New methods.
663 (INIT_FIXED_POINT_SPECIFIC): Adjust.
664 (TYPE_FIXED_POINT_INFO): Delete macro.
665 (allocate_fixed_point_type_info): Change return type to void.
666 * gdbtypes.c (copy_type_recursive): Replace the use of
667 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
668 (fixed_point_scaling_factor): Likewise.
669 (allocate_fixed_point_type_info): Change return type to void.
670 Adjust implementation accordingly.
671 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
672 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
673
674 2020-11-24 Joel Brobecker <brobecker@adacore.com>
675
676 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
677 into one single gdb::array_view parameter.
678 (gdb_mpz::write): Likewise.
679 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
680 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
681 into one single gdb::array_view parameter.
682 Adjust implementation accordingly.
683 (gdb_mpz::write): Likewise.
684 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
685 * unittests/gmp-utils-selftests.c: Adapt following changes above.
686 * valarith.c, valops.c, valprint.c, value.c: Likewise.
687
688 2020-11-24 Joel Brobecker <brobecker@adacore.com>
689
690 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
691 Change return type to std::string. Update all callers.
692 * gmp-utils.c (gmp_string_printf): Likewise.
693
694 2020-11-24 Joel Brobecker <brobecker@adacore.com>
695
696 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
697 instead of mpq_set_ui to initialize our GMP rational.
698
699 2020-11-23 Tom de Vries <tdevries@suse.de>
700
701 * debuginfod-support.c (debuginfod_source_query)
702 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
703
704 2020-11-21 Tom Tromey <tom@tromey.com>
705
706 * breakpoint.c (watchpoint_exp_is_const): Return bool.
707
708 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
709
710 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
711 Pass 2.0 to pow.
712 (gdb_mpz_write_all_from_small): Likewise.
713
714 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
715
716 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
717 of abs.
718
719 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
720
721 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
722 ctf_arc_open_by_name.
723
724 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
725
726 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
727 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
728
729 2020-11-20 Pedro Alves <pedro@palves.net>
730
731 * language.c (language_arch_info::lookup_primitive_type): Use
732 gdb::function_view instead of gdb::function.
733 (template language_lookup_primitive_type): Rename to ...
734 (language_lookup_primitive_type_1): ... this, and make static.
735 (language_lookup_primitive_type(const struct language_defn *,
736 struct gdbarch *, const char *): Make non-template.
737 (language_lookup_primitive_type(const struct language_defn *,
738 struct gdbarch *, std::function<bool (struct type *)>): Make
739 non-template and use gdb::function_view.
740 * language.h (language_arch_info::lookup_primitive_type): Use
741 gdb::function_view instead of std::function.
742 (language_lookup_primitive_type): No longer template.
743 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
744 lambda instead of a std::function.
745
746 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
747
748 PR tdep/26916
749 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
750 and STOCFH.
751
752 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
753
754 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
755
756 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
757
758 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
759 in `loop_cb` parameter.
760 * gdbarch.c: Re-generate.
761 * gdbarch.h: Re-generate.
762 * arch-utils.c (default_read_core_file_mappings): Remove `other`
763 parameter.
764 * arch-utils.h (default_read_core_file_mappings): Likewise.
765 * corelow.c (core_target::build_file_mappings): Likewise.
766 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
767 (linux_core_info_proc_mappings): Likewise.
768
769 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
772 * NEWS: Mention new options.
773 * f-array-walker.h: New file.
774 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
775 (repack_array_slices): New static global.
776 (show_repack_array_slices): New function.
777 (fortran_array_slicing_debug): New static global.
778 (show_fortran_array_slicing_debug): New function.
779 (value_f90_subarray): Delete.
780 (skip_undetermined_arglist): Delete.
781 (class fortran_array_repacker_base_impl): New class.
782 (class fortran_lazy_array_repacker_impl): New class.
783 (class fortran_array_repacker_impl): New class.
784 (fortran_value_subarray): Complete rewrite.
785 (set_fortran_list): New static global.
786 (show_fortran_list): Likewise.
787 (_initialize_f_language): Register new commands.
788 (fortran_adjust_dynamic_array_base_address_hack): New function.
789 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
790 Declare.
791 * f-valprint.c: Include 'f-array-walker.h'.
792 (class fortran_array_printer_impl): New class.
793 (f77_print_array_1): Delete.
794 (f77_print_array): Delete.
795 (fortran_print_array): New.
796 (f_value_print_inner): Update to call fortran_print_array.
797 * gdbtypes.c: Include 'f-lang.h'.
798 (resolve_dynamic_type_internal): Call
799 fortran_adjust_dynamic_array_base_address_hack.
800
801 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
802
803 * breakpoint.c (struct watch_options): New struct.
804 (watch_option_defs): New static global.
805 (make_watch_options_def_group): New function.
806 (watch_maybe_just_location): Convert option parsing.
807 (watch_command_completer): New function.
808 (_initialize_breakpoint): Build help text using options mechanism.
809
810 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
811
812 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
813 (watch_command_1): Update parameter types. Convert locals to
814 bool.
815 (watch_command_wrapper): Change parameter type.
816 (watch_maybe_just_location): Change locals to bool.
817 (rwatch_command_wrapper): Update parameter type.
818 (awatch_command_wrapper): Update parameter type.
819 * breakpoint.h (watch_command_wrapper): Change parameter type.
820 (rwatch_command_wrapper): Update parameter type.
821 (awatch_command_wrapper): Update parameter type.
822 * eval.c (fetch_subexp_value): Change parameter type.
823 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
824 'false' not '0'.
825 * value.h (fetch_subexp_value): Change parameter type in
826 declaration.
827
828 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
829
830 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
831 skip_spaces.
832
833 2020-11-18 Keith Seitz <keiths@redhat.com>
834
835 * linux-tdep.c (dump_note_entry_p): Return true instead of
836 checking `filename'.
837
838 2020-11-18 Tom de Vries <tdevries@suse.de>
839
840 * debuginfod-support.c (debuginfod_source_query)
841 (debuginfod_debuginfo_query): Also do early exit if
842 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
843
844 2020-11-18 Tom de Vries <tdevries@suse.de>
845
846 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
847 warning.
848
849 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
850
851 * gdbtypes.h (get_array_bounds): Return bool, adjust some
852 callers. Move doc here.
853 * gdbtypes.c (get_array_bounds): Return bool
854
855 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
856
857 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
858 assert.
859 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
860 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
861 case to the default.
862
863 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
864
865 * printcmd.c: Include 'safe-ctype.c'.
866 (skip_over_slash_fmt): New function.
867 (print_command_completer): Call skip_over_slash_fmt.
868 (display_and_x_command_completer): New function.
869 (_initialize_printcmd): Add command completion for 'x' and
870 'display'.
871
872 2020-11-16 Pedro Alves <pedro@palves.net>
873
874 * frame.c (get_prev_frame): Move get_frame_id call from here ...
875 (get_prev_frame_always_1): ... to here.
876 * inline-frame.c (inline_frame_this_id): Mention
877 get_prev_frame_always_1 in comment.
878
879 2020-11-15 Joel Brobecker <brobecker@adacore.com>
880
881 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
882 handling.
883 (value_less): Add fixed-point handling.
884
885 2020-11-15 Joel Brobecker <brobecker@adacore.com>
886
887 * eval.c (binop_promote): Add fixed-point type handling.
888 * valarith.c (fixed_point_binop): New function.
889 (scalar_binop): Add fixed-point type handling.
890 (value_neg): Add fixed-point type handling.
891 * valops.c (value_cast_to_fixed_point): New function.
892 (value_cast): Add fixed-point type handling.
893
894 2020-11-15 Joel Brobecker <brobecker@adacore.com>
895
896 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
897 range types.
898 * c-typeprint.c (c_type_print_varspec_prefix)
899 (c_type_print_varspec_suffix, c_type_print_base_1): Add
900 TYPE_CODE_FIXED_POINT handling.
901 * p-typeprint.c (pascal_type_print_varspec_prefix)
902 (pascal_type_print_varspec_suffix): Likewise.
903 * typeprint.c (print_type_fixed_point): New function.
904 * typeprint.h (print_type_fixed_point): Add declaration.
905
906 2020-11-15 Joel Brobecker <brobecker@adacore.com>
907
908 * printcmd.c (print_scalar_formatted): Add fixed-point type
909 handling when options->format is set.
910
911 2020-11-15 Joel Brobecker <brobecker@adacore.com>
912
913 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
914 * dwarf2/read.c (get_dwarf2_rational_constant)
915 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
916 (has_zero_over_zero_small_attribute): New functions.
917 read_base_type, set_die_type): Add fixed-point type handling.
918 * gdb-gdb.py.in: Add fixed-point type handling.
919 * gdbtypes.c: #include "gmp-utils.h".
920 (create_range_type, set_type_code): Add fixed-point type handling.
921 (init_fixed_point_type): New function.
922 (is_integral_type, is_scalar_type): Add fixed-point type handling.
923 (print_fixed_point_type_info): New function.
924 (recursive_dump_type, copy_type_recursive): Add fixed-point type
925 handling.
926 (fixed_point_type_storage): New typedef.
927 (fixed_point_objfile_key): New static global.
928 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
929 (fixed_point_type_base_type, fixed_point_scaling_factor): New
930 functions.
931 * gdbtypes.h: #include "gmp-utils.h".
932 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
933 (union type_specific) <fixed_point_info>: New field.
934 (struct fixed_point_type_info): New struct.
935 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
936 (init_fixed_point_type, is_fixed_point_type)
937 (fixed_point_type_base_type, fixed_point_scaling_factor)
938 (allocate_fixed_point_type_info): Add declarations.
939 * valprint.c (generic_val_print_fixed_point): New function.
940 (generic_value_print): Add fixed-point type handling.
941 * value.c (value_as_address, unpack_long): Add fixed-point type
942 handling.
943
944 2020-11-15 Joel Brobecker <brobecker@adacore.com>
945
946 * utils.h (uinteger_pow): Add declaration.
947 * utils.c (uinteger_pow): Moved here (without changes)...
948 * valarith.c (uinteger_pow): ... from here.
949
950 2020-11-15 Joel Brobecker <brobecker@adacore.com>
951
952 * gmp-utils.h, gmp-utils.c: New file.
953 * unittests/gmp-utils-selftests.c: New file.
954 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
955 unittests/gmp-utils-selftests.c.
956 (COMMON_SFILES) Add gmp-utils.c.
957 (HFILES_NO_SRCDIR): Add gmp-utils.h.
958
959 2020-11-15 Joel Brobecker <brobecker@adacore.com>
960
961 * configure.ac: Generate an error if a usable GMP library
962 could not be found.
963 * configure: Regenerate.
964
965 2020-11-15 Joel Brobecker <brobecker@adacore.com>
966
967 * configure.ac: Add support for --with-libgmp-prefix.
968 * Makefile.in (LIBGMP): New variable.
969 (CLIBS): Include $(LIBGMP).
970 * configure, config.in: Regenerate
971
972 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
973
974 PR cli/26879
975 * f-exp.y (COMPLETE): New token.
976 (exp): Two new rules for tab-completion.
977 (saw_name_at_eof): New static global.
978 (last_was_structop): Likewise.
979 (yylex): Set new variables, and return COMPLETE token at the end
980 of the input stream in some cases.
981
982 2020-11-14 Tom Tromey <tom@tromey.com>
983
984 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
985
986 2020-11-14 Tom Tromey <tom@tromey.com>
987
988 * opencl-lang.c (opencl_component_ref): Make "comps" const.
989
990 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
991
992 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
993
994 2020-11-13 Tom Tromey <tom@tromey.com>
995
996 * c-lang.c (convert_ucn, convert_octal, convert_hex)
997 (convert_escape, parse_one_string): Constify.
998
999 2020-11-13 Keith Seitz <keiths@redhat.com>
1000
1001 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1002 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1003 outside of ELF segments" warning for debugin
1004
1005 2020-11-13 Keith Seitz <keiths@redhat.com>
1006
1007 PR gdb/23034
1008 * elfread.c (elf_symfile_segments): Output a BFD file name
1009 for the "Loadable section ... outside of ELF segments" warning.
1010
1011 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1012
1013 PR gdb/26835
1014 * arm-tdep.c (class arm_instruction_reader): New.
1015 (target_arm_instruction_reader): New.
1016 (arm_analyze_prologue): Add instruction reader parameter and use
1017 it. Use arm_expand_immediate.
1018 (class target_arm_instruction_reader): Adjust.
1019 (arm_skip_prologue): Adjust.
1020 (arm_expand_immediate): New.
1021 (arm_scan_prologue): Adjust.
1022 (arm_analyze_prologue_test): New.
1023 (class test_arm_instruction_reader): New.
1024
1025 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1026
1027 * f-lang.c (fortran_argument_convert): Add declaration. Add
1028 header comment, taken from f-lang.h. Make static.
1029 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1030 (fortran_argument_convert): Delete declaration.
1031
1032 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1033
1034 * ada-exp.y (find_primitive_type): Make parameter const.
1035 * ada-lang.c (enum ada_primitive_types): Delete.
1036 (ada_language::language_arch_info): Update.
1037 * c-lang.c (enum c_primitive_types): Delete.
1038 (c_language_arch_info): Update.
1039 (enum cplus_primitive_types): Delete.
1040 (cplus_language::language_arch_info): Update.
1041 * d-lang.c (enum d_primitive_types): Delete.
1042 (d_language::language_arch_info): Update.
1043 * f-lang.c (enum f_primitive_types): Delete.
1044 (f_language::language_arch_info): Update.
1045 * go-lang.c (enum go_primitive_types): Delete.
1046 (go_language::language_arch_info): Update.
1047 * language.c (auto_or_unknown_language::language_arch_info):
1048 Update.
1049 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1050 (language_string_char_type): Add header comment, call function in
1051 language_arch_info.
1052 (language_bool_type): Likewise
1053 (language_arch_info::bool_type): Define.
1054 (language_lookup_primitive_type_1): Delete.
1055 (language_lookup_primitive_type): Rewrite as a templated function
1056 to call function in language_arch_info, then instantiate twice.
1057 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1058 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1059 (language_arch_info::lookup_primitive_type): Define twice with
1060 different signatures.
1061 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1062 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1063 member function in language_arch_info.
1064 * language.h (language_arch_info): Complete rewrite.
1065 (language_lookup_primitive_type): Make templated.
1066 * m2-lang.c (enum m2_primitive_types): Delete.
1067 (m2_language::language_arch_info): Update.
1068 * opencl-lang.c (OCL_P_TYPE): Delete.
1069 (enum opencl_primitive_types): Delete.
1070 (opencl_type_data): Delete.
1071 (builtin_opencl_type): Delete.
1072 (lookup_opencl_vector_type): Update.
1073 (opencl_language::language_arch_info): Update, lots of content
1074 moved from...
1075 (build_opencl_types): ...here. This function is now deleted.
1076 (_initialize_opencl_language): Delete.
1077 * p-lang.c (enum pascal_primitive_types): Delete.
1078 (pascal_language::language_arch_info): Update.
1079 * rust-lang.c (enum rust_primitive_types): Delete.
1080 (rust_language::language_arch_info): Update.
1081
1082 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1083
1084 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1085 dwarf2_queue_guard.
1086
1087 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1088
1089 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1090 comment.
1091
1092 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1093
1094 * dwarf2/read.c (dwarf_read_debug_printf,
1095 dwarf_read_debug_printf_v): New macros, use throughout the file.
1096
1097 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1098
1099 PR tdep/27015
1100 * arc-linux-tdep.c (collect_register): Populate "eret" by
1101 "pc" value from the regcache when asked for "pc" value.
1102
1103 2020-11-12 Tom Tromey <tom@tromey.com>
1104
1105 PR rust/26799:
1106 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1107 exist.
1108
1109 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1110
1111 * features/Makefile (XMLTOC): Add rx.xml.
1112 (FEATURE_XMLFILES): Remove rx.xml.
1113 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1114 * features/rx.c: Regenerate.
1115 * features/rx.xml: Wrap in `target` tags, and reindent.
1116 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1117 structure.
1118 (maint_print_c_tdesc_opt_def): New typedef.
1119 (maint_print_c_tdesc_opt_defs): New static global.
1120 (make_maint_print_c_tdesc_options_def_group): New function.
1121 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1122 print single feature C file for target descriptions containing a
1123 single feature.
1124 (maint_print_c_tdesc_cmd_completer): New function.
1125 (_initialize_target_descriptions): Update call to register command
1126 completer, and include command line flag in help text.
1127
1128 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1129
1130 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1131 numbers.
1132 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1133 enum values.
1134
1135 2020-11-10 Tom Tromey <tom@tromey.com>
1136
1137 * value.h (internalvar_name): Update.
1138 * value.c (internalvar_name): Make return type const.
1139
1140 2020-11-10 Tom Tromey <tom@tromey.com>
1141
1142 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1143 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1144 const.
1145
1146 2020-11-10 Tom Tromey <tom@tromey.com>
1147
1148 * objc-lang.h (value_nsstring): Update.
1149 * objc-lang.c (value_nsstring): Make "ptr" const.
1150
1151 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1152
1153 * expprint.c (print_subexp_funcall): Increment expression position
1154 after reading argument count.
1155 * f-lang.c (print_subexp_f): Skip over opcode before calling
1156 common function.
1157 (dump_subexp_body_f): Likewise.
1158
1159 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1160
1161 PR python/26832
1162 * configure: Regenerate.
1163 * configure.ac: Check for python modules ctypes instead of
1164 itertools.
1165
1166 2020-11-06 Pedro Alves <pedro@palves.net>
1167
1168 * macroexp.c (struct macro_buffer): Split in two classes. Add
1169 uses adjusted.
1170 (struct shared_macro_buffer): New, factored out from struct
1171 macro_buffer.
1172 (struct growable_macro_buffer): New, factored out from struct
1173 macro_buffer.
1174 (set_token, get_comment, get_identifier, get_pp_number)
1175 (get_character_constant, get_string_literal, get_punctuator)
1176 (get_next_token_for_substitution): Constify parameters.
1177 (substitute_args): Constify locals.
1178
1179 2020-11-05 Tom Tromey <tom@tromey.com>
1180
1181 * dwarf2/read.c (read_cutu_die_from_dwo)
1182 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1183 (build_type_psymtabs_1): Update.
1184 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1185 parameter.
1186 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1187 Don't read section. Add assert.
1188
1189 2020-11-04 Tom Tromey <tromey@adacore.com>
1190
1191 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1192
1193 2020-11-04 Tom Tromey <tromey@adacore.com>
1194
1195 * ada-typeprint.c (ada_print_type): Handle __T types.
1196
1197 2020-11-04 Tom Tromey <tromey@adacore.com>
1198
1199 * dwarf2/read.c (add_partial_symbol, process_die):
1200 Handle DW_TAG_array_type.
1201 (is_type_tag_for_partial): Add "lang" parameter.
1202 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1203
1204 2020-11-04 Tom Tromey <tromey@adacore.com>
1205
1206 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1207
1208 2020-11-04 Tom Tromey <tromey@adacore.com>
1209
1210 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1211 array.
1212
1213 2020-11-04 Tom Tromey <tromey@adacore.com>
1214
1215 * gdbtypes.c (update_static_array_size): Handle bit stride.
1216
1217 2020-11-04 Tom Tromey <tromey@adacore.com>
1218
1219 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1220
1221 2020-11-04 Tom Tromey <tromey@adacore.com>
1222
1223 * ada-lang.c (ada_is_any_packed_array_type): New function.
1224 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1225
1226 2020-11-04 Tom Tromey <tromey@adacore.com>
1227
1228 * dwarf2/read.c (recognize_bound_expression)
1229 (quirk_ada_thick_pointer): New functions.
1230 (read_array_type): Call quirk_ada_thick_pointer.
1231 (set_die_type): Add "skip_data_location" parameter.
1232 (quirk_ada_thick_pointer): New function.
1233 (process_structure_scope): Call quirk_ada_thick_pointer.
1234 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1235 (decode_packed_array_bitsize): Handle thick pointers without
1236 parallel types.
1237 (ada_is_gnat_encoded_packed_array_type): Rename from
1238 ada_is_packed_array_type.
1239 (ada_is_constrained_packed_array_type): Update.
1240 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1241 (ada_value_print_1): Use ada_get_decoded_value.
1242
1243 2020-11-04 Tom Tromey <tromey@adacore.com>
1244
1245 * ada-lang.c (recursively_update_array_bitsize): New function.
1246 (decode_constrained_packed_array_type): Call it.
1247
1248 2020-11-04 Tom Tromey <tromey@adacore.com>
1249
1250 * ada-lang.c (to_fixed_array_type): Error if
1251 decode_constrained_packed_array_type returns NULL.
1252
1253 2020-11-04 Tom Tromey <tromey@adacore.com>
1254
1255 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1256
1257 2020-11-02 Tom Tromey <tromey@adacore.com>
1258
1259 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1260 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1261 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1262 * amd64-ravenscar-thread.c: New file.
1263 * amd64-ravenscar-thread.h: New file.
1264 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1265 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1266
1267 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * main.c (execute_cmdargs): New function.
1270 (captured_main_1): Make use of execute_cmdargs.
1271
1272 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 * NEWS: Mention changes to config file search path.
1275 * main.c
1276
1277 2020-11-02 Tom Tromey <tromey@adacore.com>
1278
1279 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1280 (python_GdbModuleDef): Move earlier. Now static.
1281 (do_start_initialization): Consolidate some IS_PY3K blocks.
1282
1283 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1284
1285 * aarch64-linux-tdep.c: Fix indentation.
1286 * aarch64-ravenscar-thread.c: Fix indentation.
1287 * aarch64-tdep.c: Fix indentation.
1288 * aarch64-tdep.h: Fix indentation.
1289 * ada-lang.c: Fix indentation.
1290 * ada-lang.h: Fix indentation.
1291 * ada-tasks.c: Fix indentation.
1292 * ada-typeprint.c: Fix indentation.
1293 * ada-valprint.c: Fix indentation.
1294 * ada-varobj.c: Fix indentation.
1295 * addrmap.c: Fix indentation.
1296 * addrmap.h: Fix indentation.
1297 * agent.c: Fix indentation.
1298 * aix-thread.c: Fix indentation.
1299 * alpha-bsd-nat.c: Fix indentation.
1300 * alpha-linux-tdep.c: Fix indentation.
1301 * alpha-mdebug-tdep.c: Fix indentation.
1302 * alpha-nbsd-tdep.c: Fix indentation.
1303 * alpha-obsd-tdep.c: Fix indentation.
1304 * alpha-tdep.c: Fix indentation.
1305 * amd64-bsd-nat.c: Fix indentation.
1306 * amd64-darwin-tdep.c: Fix indentation.
1307 * amd64-linux-nat.c: Fix indentation.
1308 * amd64-linux-tdep.c: Fix indentation.
1309 * amd64-nat.c: Fix indentation.
1310 * amd64-obsd-tdep.c: Fix indentation.
1311 * amd64-tdep.c: Fix indentation.
1312 * amd64-windows-tdep.c: Fix indentation.
1313 * annotate.c: Fix indentation.
1314 * arc-tdep.c: Fix indentation.
1315 * arch-utils.c: Fix indentation.
1316 * arch/arm-get-next-pcs.c: Fix indentation.
1317 * arch/arm.c: Fix indentation.
1318 * arm-linux-nat.c: Fix indentation.
1319 * arm-linux-tdep.c: Fix indentation.
1320 * arm-nbsd-tdep.c: Fix indentation.
1321 * arm-pikeos-tdep.c: Fix indentation.
1322 * arm-tdep.c: Fix indentation.
1323 * arm-tdep.h: Fix indentation.
1324 * arm-wince-tdep.c: Fix indentation.
1325 * auto-load.c: Fix indentation.
1326 * auxv.c: Fix indentation.
1327 * avr-tdep.c: Fix indentation.
1328 * ax-gdb.c: Fix indentation.
1329 * ax-general.c: Fix indentation.
1330 * bfin-linux-tdep.c: Fix indentation.
1331 * block.c: Fix indentation.
1332 * block.h: Fix indentation.
1333 * blockframe.c: Fix indentation.
1334 * bpf-tdep.c: Fix indentation.
1335 * break-catch-sig.c: Fix indentation.
1336 * break-catch-syscall.c: Fix indentation.
1337 * break-catch-throw.c: Fix indentation.
1338 * breakpoint.c: Fix indentation.
1339 * breakpoint.h: Fix indentation.
1340 * bsd-uthread.c: Fix indentation.
1341 * btrace.c: Fix indentation.
1342 * build-id.c: Fix indentation.
1343 * buildsym-legacy.h: Fix indentation.
1344 * buildsym.c: Fix indentation.
1345 * c-typeprint.c: Fix indentation.
1346 * c-valprint.c: Fix indentation.
1347 * c-varobj.c: Fix indentation.
1348 * charset.c: Fix indentation.
1349 * cli/cli-cmds.c: Fix indentation.
1350 * cli/cli-decode.c: Fix indentation.
1351 * cli/cli-decode.h: Fix indentation.
1352 * cli/cli-script.c: Fix indentation.
1353 * cli/cli-setshow.c: Fix indentation.
1354 * coff-pe-read.c: Fix indentation.
1355 * coffread.c: Fix indentation.
1356 * compile/compile-cplus-types.c: Fix indentation.
1357 * compile/compile-object-load.c: Fix indentation.
1358 * compile/compile-object-run.c: Fix indentation.
1359 * completer.c: Fix indentation.
1360 * corefile.c: Fix indentation.
1361 * corelow.c: Fix indentation.
1362 * cp-abi.h: Fix indentation.
1363 * cp-namespace.c: Fix indentation.
1364 * cp-support.c: Fix indentation.
1365 * cp-valprint.c: Fix indentation.
1366 * cris-linux-tdep.c: Fix indentation.
1367 * cris-tdep.c: Fix indentation.
1368 * darwin-nat-info.c: Fix indentation.
1369 * darwin-nat.c: Fix indentation.
1370 * darwin-nat.h: Fix indentation.
1371 * dbxread.c: Fix indentation.
1372 * dcache.c: Fix indentation.
1373 * disasm.c: Fix indentation.
1374 * dtrace-probe.c: Fix indentation.
1375 * dwarf2/abbrev.c: Fix indentation.
1376 * dwarf2/attribute.c: Fix indentation.
1377 * dwarf2/expr.c: Fix indentation.
1378 * dwarf2/frame.c: Fix indentation.
1379 * dwarf2/index-cache.c: Fix indentation.
1380 * dwarf2/index-write.c: Fix indentation.
1381 * dwarf2/line-header.c: Fix indentation.
1382 * dwarf2/loc.c: Fix indentation.
1383 * dwarf2/macro.c: Fix indentation.
1384 * dwarf2/read.c: Fix indentation.
1385 * dwarf2/read.h: Fix indentation.
1386 * elfread.c: Fix indentation.
1387 * eval.c: Fix indentation.
1388 * event-top.c: Fix indentation.
1389 * exec.c: Fix indentation.
1390 * exec.h: Fix indentation.
1391 * expprint.c: Fix indentation.
1392 * f-lang.c: Fix indentation.
1393 * f-typeprint.c: Fix indentation.
1394 * f-valprint.c: Fix indentation.
1395 * fbsd-nat.c: Fix indentation.
1396 * fbsd-tdep.c: Fix indentation.
1397 * findvar.c: Fix indentation.
1398 * fork-child.c: Fix indentation.
1399 * frame-unwind.c: Fix indentation.
1400 * frame-unwind.h: Fix indentation.
1401 * frame.c: Fix indentation.
1402 * frv-linux-tdep.c: Fix indentation.
1403 * frv-tdep.c: Fix indentation.
1404 * frv-tdep.h: Fix indentation.
1405 * ft32-tdep.c: Fix indentation.
1406 * gcore.c: Fix indentation.
1407 * gdb_bfd.c: Fix indentation.
1408 * gdbarch.sh: Fix indentation.
1409 * gdbarch.c: Re-generate
1410 * gdbarch.h: Re-generate.
1411 * gdbcore.h: Fix indentation.
1412 * gdbthread.h: Fix indentation.
1413 * gdbtypes.c: Fix indentation.
1414 * gdbtypes.h: Fix indentation.
1415 * glibc-tdep.c: Fix indentation.
1416 * gnu-nat.c: Fix indentation.
1417 * gnu-nat.h: Fix indentation.
1418 * gnu-v2-abi.c: Fix indentation.
1419 * gnu-v3-abi.c: Fix indentation.
1420 * go32-nat.c: Fix indentation.
1421 * guile/guile-internal.h: Fix indentation.
1422 * guile/scm-cmd.c: Fix indentation.
1423 * guile/scm-frame.c: Fix indentation.
1424 * guile/scm-iterator.c: Fix indentation.
1425 * guile/scm-math.c: Fix indentation.
1426 * guile/scm-ports.c: Fix indentation.
1427 * guile/scm-pretty-print.c: Fix indentation.
1428 * guile/scm-value.c: Fix indentation.
1429 * h8300-tdep.c: Fix indentation.
1430 * hppa-linux-nat.c: Fix indentation.
1431 * hppa-linux-tdep.c: Fix indentation.
1432 * hppa-nbsd-nat.c: Fix indentation.
1433 * hppa-nbsd-tdep.c: Fix indentation.
1434 * hppa-obsd-nat.c: Fix indentation.
1435 * hppa-tdep.c: Fix indentation.
1436 * hppa-tdep.h: Fix indentation.
1437 * i386-bsd-nat.c: Fix indentation.
1438 * i386-darwin-nat.c: Fix indentation.
1439 * i386-darwin-tdep.c: Fix indentation.
1440 * i386-dicos-tdep.c: Fix indentation.
1441 * i386-gnu-nat.c: Fix indentation.
1442 * i386-linux-nat.c: Fix indentation.
1443 * i386-linux-tdep.c: Fix indentation.
1444 * i386-nto-tdep.c: Fix indentation.
1445 * i386-obsd-tdep.c: Fix indentation.
1446 * i386-sol2-nat.c: Fix indentation.
1447 * i386-tdep.c: Fix indentation.
1448 * i386-tdep.h: Fix indentation.
1449 * i386-windows-tdep.c: Fix indentation.
1450 * i387-tdep.c: Fix indentation.
1451 * i387-tdep.h: Fix indentation.
1452 * ia64-libunwind-tdep.c: Fix indentation.
1453 * ia64-libunwind-tdep.h: Fix indentation.
1454 * ia64-linux-nat.c: Fix indentation.
1455 * ia64-linux-tdep.c: Fix indentation.
1456 * ia64-tdep.c: Fix indentation.
1457 * ia64-tdep.h: Fix indentation.
1458 * ia64-vms-tdep.c: Fix indentation.
1459 * infcall.c: Fix indentation.
1460 * infcmd.c: Fix indentation.
1461 * inferior.c: Fix indentation.
1462 * infrun.c: Fix indentation.
1463 * iq2000-tdep.c: Fix indentation.
1464 * language.c: Fix indentation.
1465 * linespec.c: Fix indentation.
1466 * linux-fork.c: Fix indentation.
1467 * linux-nat.c: Fix indentation.
1468 * linux-tdep.c: Fix indentation.
1469 * linux-thread-db.c: Fix indentation.
1470 * lm32-tdep.c: Fix indentation.
1471 * m2-lang.c: Fix indentation.
1472 * m2-typeprint.c: Fix indentation.
1473 * m2-valprint.c: Fix indentation.
1474 * m32c-tdep.c: Fix indentation.
1475 * m32r-linux-tdep.c: Fix indentation.
1476 * m32r-tdep.c: Fix indentation.
1477 * m68hc11-tdep.c: Fix indentation.
1478 * m68k-bsd-nat.c: Fix indentation.
1479 * m68k-linux-nat.c: Fix indentation.
1480 * m68k-linux-tdep.c: Fix indentation.
1481 * m68k-tdep.c: Fix indentation.
1482 * machoread.c: Fix indentation.
1483 * macrocmd.c: Fix indentation.
1484 * macroexp.c: Fix indentation.
1485 * macroscope.c: Fix indentation.
1486 * macrotab.c: Fix indentation.
1487 * macrotab.h: Fix indentation.
1488 * main.c: Fix indentation.
1489 * mdebugread.c: Fix indentation.
1490 * mep-tdep.c: Fix indentation.
1491 * mi/mi-cmd-catch.c: Fix indentation.
1492 * mi/mi-cmd-disas.c: Fix indentation.
1493 * mi/mi-cmd-env.c: Fix indentation.
1494 * mi/mi-cmd-stack.c: Fix indentation.
1495 * mi/mi-cmd-var.c: Fix indentation.
1496 * mi/mi-cmds.c: Fix indentation.
1497 * mi/mi-main.c: Fix indentation.
1498 * mi/mi-parse.c: Fix indentation.
1499 * microblaze-tdep.c: Fix indentation.
1500 * minidebug.c: Fix indentation.
1501 * minsyms.c: Fix indentation.
1502 * mips-linux-nat.c: Fix indentation.
1503 * mips-linux-tdep.c: Fix indentation.
1504 * mips-nbsd-tdep.c: Fix indentation.
1505 * mips-tdep.c: Fix indentation.
1506 * mn10300-linux-tdep.c: Fix indentation.
1507 * mn10300-tdep.c: Fix indentation.
1508 * moxie-tdep.c: Fix indentation.
1509 * msp430-tdep.c: Fix indentation.
1510 * namespace.h: Fix indentation.
1511 * nat/fork-inferior.c: Fix indentation.
1512 * nat/gdb_ptrace.h: Fix indentation.
1513 * nat/linux-namespaces.c: Fix indentation.
1514 * nat/linux-osdata.c: Fix indentation.
1515 * nat/netbsd-nat.c: Fix indentation.
1516 * nat/x86-dregs.c: Fix indentation.
1517 * nbsd-nat.c: Fix indentation.
1518 * nbsd-tdep.c: Fix indentation.
1519 * nios2-linux-tdep.c: Fix indentation.
1520 * nios2-tdep.c: Fix indentation.
1521 * nto-procfs.c: Fix indentation.
1522 * nto-tdep.c: Fix indentation.
1523 * objfiles.c: Fix indentation.
1524 * objfiles.h: Fix indentation.
1525 * opencl-lang.c: Fix indentation.
1526 * or1k-tdep.c: Fix indentation.
1527 * osabi.c: Fix indentation.
1528 * osabi.h: Fix indentation.
1529 * osdata.c: Fix indentation.
1530 * p-lang.c: Fix indentation.
1531 * p-typeprint.c: Fix indentation.
1532 * p-valprint.c: Fix indentation.
1533 * parse.c: Fix indentation.
1534 * ppc-linux-nat.c: Fix indentation.
1535 * ppc-linux-tdep.c: Fix indentation.
1536 * ppc-nbsd-nat.c: Fix indentation.
1537 * ppc-nbsd-tdep.c: Fix indentation.
1538 * ppc-obsd-nat.c: Fix indentation.
1539 * ppc-ravenscar-thread.c: Fix indentation.
1540 * ppc-sysv-tdep.c: Fix indentation.
1541 * ppc64-tdep.c: Fix indentation.
1542 * printcmd.c: Fix indentation.
1543 * proc-api.c: Fix indentation.
1544 * producer.c: Fix indentation.
1545 * producer.h: Fix indentation.
1546 * prologue-value.c: Fix indentation.
1547 * prologue-value.h: Fix indentation.
1548 * psymtab.c: Fix indentation.
1549 * python/py-arch.c: Fix indentation.
1550 * python/py-bpevent.c: Fix indentation.
1551 * python/py-event.c: Fix indentation.
1552 * python/py-event.h: Fix indentation.
1553 * python/py-finishbreakpoint.c: Fix indentation.
1554 * python/py-frame.c: Fix indentation.
1555 * python/py-framefilter.c: Fix indentation.
1556 * python/py-inferior.c: Fix indentation.
1557 * python/py-infthread.c: Fix indentation.
1558 * python/py-objfile.c: Fix indentation.
1559 * python/py-prettyprint.c: Fix indentation.
1560 * python/py-registers.c: Fix indentation.
1561 * python/py-signalevent.c: Fix indentation.
1562 * python/py-stopevent.c: Fix indentation.
1563 * python/py-stopevent.h: Fix indentation.
1564 * python/py-threadevent.c: Fix indentation.
1565 * python/py-tui.c: Fix indentation.
1566 * python/py-unwind.c: Fix indentation.
1567 * python/py-value.c: Fix indentation.
1568 * python/py-xmethods.c: Fix indentation.
1569 * python/python-internal.h: Fix indentation.
1570 * python/python.c: Fix indentation.
1571 * ravenscar-thread.c: Fix indentation.
1572 * record-btrace.c: Fix indentation.
1573 * record-full.c: Fix indentation.
1574 * record.c: Fix indentation.
1575 * reggroups.c: Fix indentation.
1576 * regset.h: Fix indentation.
1577 * remote-fileio.c: Fix indentation.
1578 * remote.c: Fix indentation.
1579 * reverse.c: Fix indentation.
1580 * riscv-linux-tdep.c: Fix indentation.
1581 * riscv-ravenscar-thread.c: Fix indentation.
1582 * riscv-tdep.c: Fix indentation.
1583 * rl78-tdep.c: Fix indentation.
1584 * rs6000-aix-tdep.c: Fix indentation.
1585 * rs6000-lynx178-tdep.c: Fix indentation.
1586 * rs6000-nat.c: Fix indentation.
1587 * rs6000-tdep.c: Fix indentation.
1588 * rust-lang.c: Fix indentation.
1589 * rx-tdep.c: Fix indentation.
1590 * s12z-tdep.c: Fix indentation.
1591 * s390-linux-tdep.c: Fix indentation.
1592 * score-tdep.c: Fix indentation.
1593 * ser-base.c: Fix indentation.
1594 * ser-mingw.c: Fix indentation.
1595 * ser-uds.c: Fix indentation.
1596 * ser-unix.c: Fix indentation.
1597 * serial.c: Fix indentation.
1598 * sh-linux-tdep.c: Fix indentation.
1599 * sh-nbsd-tdep.c: Fix indentation.
1600 * sh-tdep.c: Fix indentation.
1601 * skip.c: Fix indentation.
1602 * sol-thread.c: Fix indentation.
1603 * solib-aix.c: Fix indentation.
1604 * solib-darwin.c: Fix indentation.
1605 * solib-frv.c: Fix indentation.
1606 * solib-svr4.c: Fix indentation.
1607 * solib.c: Fix indentation.
1608 * source.c: Fix indentation.
1609 * sparc-linux-tdep.c: Fix indentation.
1610 * sparc-nbsd-tdep.c: Fix indentation.
1611 * sparc-obsd-tdep.c: Fix indentation.
1612 * sparc-ravenscar-thread.c: Fix indentation.
1613 * sparc-tdep.c: Fix indentation.
1614 * sparc64-linux-tdep.c: Fix indentation.
1615 * sparc64-nbsd-tdep.c: Fix indentation.
1616 * sparc64-obsd-tdep.c: Fix indentation.
1617 * sparc64-tdep.c: Fix indentation.
1618 * stabsread.c: Fix indentation.
1619 * stack.c: Fix indentation.
1620 * stap-probe.c: Fix indentation.
1621 * stubs/ia64vms-stub.c: Fix indentation.
1622 * stubs/m32r-stub.c: Fix indentation.
1623 * stubs/m68k-stub.c: Fix indentation.
1624 * stubs/sh-stub.c: Fix indentation.
1625 * stubs/sparc-stub.c: Fix indentation.
1626 * symfile-mem.c: Fix indentation.
1627 * symfile.c: Fix indentation.
1628 * symfile.h: Fix indentation.
1629 * symmisc.c: Fix indentation.
1630 * symtab.c: Fix indentation.
1631 * symtab.h: Fix indentation.
1632 * target-float.c: Fix indentation.
1633 * target.c: Fix indentation.
1634 * target.h: Fix indentation.
1635 * tic6x-tdep.c: Fix indentation.
1636 * tilegx-linux-tdep.c: Fix indentation.
1637 * tilegx-tdep.c: Fix indentation.
1638 * top.c: Fix indentation.
1639 * tracefile-tfile.c: Fix indentation.
1640 * tracepoint.c: Fix indentation.
1641 * tui/tui-disasm.c: Fix indentation.
1642 * tui/tui-io.c: Fix indentation.
1643 * tui/tui-regs.c: Fix indentation.
1644 * tui/tui-stack.c: Fix indentation.
1645 * tui/tui-win.c: Fix indentation.
1646 * tui/tui-winsource.c: Fix indentation.
1647 * tui/tui.c: Fix indentation.
1648 * typeprint.c: Fix indentation.
1649 * ui-out.h: Fix indentation.
1650 * unittests/copy_bitwise-selftests.c: Fix indentation.
1651 * unittests/memory-map-selftests.c: Fix indentation.
1652 * utils.c: Fix indentation.
1653 * v850-tdep.c: Fix indentation.
1654 * valarith.c: Fix indentation.
1655 * valops.c: Fix indentation.
1656 * valprint.c: Fix indentation.
1657 * valprint.h: Fix indentation.
1658 * value.c: Fix indentation.
1659 * value.h: Fix indentation.
1660 * varobj.c: Fix indentation.
1661 * vax-tdep.c: Fix indentation.
1662 * windows-nat.c: Fix indentation.
1663 * windows-tdep.c: Fix indentation.
1664 * xcoffread.c: Fix indentation.
1665 * xml-syscall.c: Fix indentation.
1666 * xml-tdesc.c: Fix indentation.
1667 * xstormy16-tdep.c: Fix indentation.
1668 * xtensa-config.c: Fix indentation.
1669 * xtensa-linux-nat.c: Fix indentation.
1670 * xtensa-linux-tdep.c: Fix indentation.
1671 * xtensa-tdep.c: Fix indentation.
1672
1673 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1674 Craig Blackmore <craig.blackmore@embecosm.com>
1675
1676 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1677 as an unsigned value.
1678
1679 2020-11-01 Tom Tromey <tom@tromey.com>
1680
1681 * dbxread.c (dbx_end_psymtab): Update.
1682 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1683 (build_type_psymtabs_reader): Update.
1684 * xcoffread.c (xcoff_end_psymtab): Update.
1685 * ctfread.c (scan_partial_symbols): Update.
1686 * psymtab.c (sort_pst_symbols): Remove.
1687 (partial_symtab::end): Rename from end_psymtab_common. Inline
1688 sort_pst_symbols.
1689 * psympriv.h (struct partial_symtab) <end>: New method.
1690 (end_psymtab_common): Don't declare.
1691
1692 2020-11-01 Tom Tromey <tom@tromey.com>
1693
1694 * symmisc.c (count_psyms): New function.
1695 (print_objfile_statistics): Use it.
1696 * psymtab.c (append_psymbol_to_list): Remove.
1697 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1698 * objfiles.h (struct objstats) <n_psyms>: Remove.
1699
1700 2020-11-01 Tom Tromey <tom@tromey.com>
1701
1702 * dbxread.c (dbx_end_psymtab): Update.
1703 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1704 (build_type_psymtabs_reader): Update.
1705 * xcoffread.c (xcoff_end_psymtab): Update.
1706 * ctfread.c (scan_partial_symbols): Update.
1707 * psympriv.h (end_psymtab_common): Update.
1708 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1709 (sort_pst_symbols): Likewise.
1710
1711 2020-11-01 Tom Tromey <tom@tromey.com>
1712
1713 * dbxread.c (dbx_symfile_read): Update.
1714 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1715 * xcoffread.c (xcoff_initial_scan): Update.
1716 * psympriv.h (init_psymbol_list): Don't declare.
1717 * psymtab.c (init_psymbol_list): Remove.
1718
1719 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1720
1721 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1722 gnat_encoded_fixed_type_info. Update all callers.
1723
1724 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1725
1726 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1727 line too long.
1728
1729 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1730
1731 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1732 cast_from_fixed. Update all callers.
1733 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1734 Update all callers.
1735 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1736 Update all callers.
1737 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1738 ada_scaling_factor.
1739 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1740 to print_gnat_encoded_fixed_point_type.
1741 * ada-valprint.c: Likewise.
1742
1743 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1744
1745 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1746 (debug_prefixed_printf): Add check of debug_displaced flag.
1747 * linux-nat.c (linux_nat_debug_printf): Add check of
1748 debug_linux_nat flag.
1749
1750 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1751
1752 * infrun.c (infrun_debug_printf_1): Remove.
1753 (displaced_debug_printf_1): Remove.
1754 (stop_all_threads): Use debug_prefixed_printf.
1755 * infrun.h (infrun_debug_printf_1): Remove.
1756 (infrun_debug_printf): Use debug_prefixed_printf.
1757 (displaced_debug_printf_1): Remove.
1758 (displaced_debug_printf): Use debug_prefixed_printf.
1759 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1760 (linux_nat_debug_printf): Use debug_prefixed_printf.
1761
1762 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1763
1764 * configure: Re-generate.
1765 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1766 AC_LANG_PROGRAM.
1767
1768 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1769
1770 * configure: Re-generate.
1771
1772 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1773
1774 * configure: Re-generate.
1775
1776 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1777
1778 * configure: Re-generate.
1779
1780 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1781
1782 * configure: Re-generate.
1783
1784 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1785
1786 * acinclude.m4: Modernize.
1787 * configure: Re-generate.
1788
1789 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1790
1791 * configure.ac: Modernize.
1792 * configure: Re-generate.
1793
1794 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1795
1796 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1797 * configure: Re-generate.
1798 * configure.ac: Remove AM_PROG_CC_STDC.
1799
1800 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1801
1802 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1803 AC_CANONICAL_SYSTEM.
1804 * configure: Re-generate.
1805
1806 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1807
1808 * infrun.h (displaced_debug_printf): New macro. Replace
1809 displaced debug prints throughout to use it.
1810 (displaced_debug_printf_1): New declaration.
1811 (displaced_step_dump_bytes): Return string, remove ui_file
1812 parameter, update all callers.
1813 * infrun.c (displaced_debug_printf_1): New function.
1814 (displaced_step_dump_bytes): Return string, remove ui_file
1815 parameter
1816
1817 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1818
1819 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1820
1821 2020-10-30 Tom Tromey <tromey@adacore.com>
1822
1823 * Makefile.in (stamp-init): Depend on config.status.
1824
1825 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1826
1827 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1828
1829 2020-10-30 Pedro Alves <pedro@palves.net>
1830
1831 * thread.c (lookup_selected_frame): Move ...
1832 * frame.c (lookup_selected_frame): ... here.
1833
1834 2020-10-30 Pedro Alves <pedro@palves.net>
1835
1836 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1837 * frame.c
1838 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1839 Use save_selected_frame. Save language as well.
1840 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1841 Use restore_selected_frame, and restore language as well.
1842 (selected_frame_id, selected_frame_level): New.
1843 (selected_frame): Update comments.
1844 (save_selected_frame, restore_selected_frame): New.
1845 (get_selected_frame): Use lookup_selected_frame.
1846 (get_selected_frame_if_set): Delete.
1847 (select_frame): Record selected_frame_level and selected_frame_id.
1848 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1849 fields.
1850 (get_selected_frame): Make 'message' parameter optional.
1851 (get_selected_frame_if_set): Delete declaration.
1852 (select_frame): Update comments.
1853 (save_selected_frame, restore_selected_frame)
1854 (lookup_selected_frame): Declare.
1855 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1856 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1857 New field.
1858 (save_infcall_control_state): Use save_selected_frame.
1859 (restore_selected_frame): Delete.
1860 (restore_infcall_control_state): Use restore_selected_frame.
1861 * stack.c (select_frame_command_core, frame_command_core): Use
1862 get_selected_frame.
1863 * thread.c (restore_selected_frame): Rename to ...
1864 (lookup_selected_frame): ... this and make extern. Select the
1865 current frame if the frame level is -1.
1866 (scoped_restore_current_thread::restore): Also restore the
1867 language.
1868 (scoped_restore_current_thread::~scoped_restore_current_thread):
1869 Don't try/catch.
1870 (scoped_restore_current_thread::scoped_restore_current_thread):
1871 Save the language as well. Use save_selected_frame.
1872
1873 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1874
1875 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1876 documentation.
1877 * gdbarch.h: Re-generate.
1878
1879 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1880
1881 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1882 parameter.
1883 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1884 Likewise.
1885 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1886 Likewise.
1887 * arch-utils.c (default_displaced_step_hw_singlestep):
1888 Likewise.
1889 * arch-utils.h (default_displaced_step_hw_singlestep):
1890 Likewise.
1891 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1892 Likewise.
1893 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1894 Likewise.
1895 * gdbarch.c: Re-generate.
1896 * gdbarch.h: Re-generate.
1897 * infrun.c (resume_1): Adjust.
1898
1899 2020-10-29 Tom Tromey <tom@tromey.com>
1900
1901 * progspace.c (program_space::~program_space): Don't call
1902 exec_close.
1903
1904 2020-10-29 Tom Tromey <tom@tromey.com>
1905
1906 * exec.c (exec_target::close): Don't change current program
1907 space.
1908
1909 2020-10-29 Tom Tromey <tom@tromey.com>
1910
1911 * symfile.c (add_symbol_file_command): Update.
1912 * exec.c (program_space::add_target_sections): Rename.
1913 * symfile-mem.c (symbol_file_add_from_memory): Update.
1914 * progspace.h (struct program_space) <add_target_sections>:
1915 Declare new overload.
1916 * exec.h (add_target_sections_of_objfile): Don't declare.
1917
1918 2020-10-29 Tom Tromey <tom@tromey.com>
1919
1920 * solib.c (solib_map_sections): Update.
1921 * exec.c (program_space::add_target_sections): Now a method.
1922 (exec_file_attach): Update.
1923 * exec.h (add_target_sections): Don't declare.
1924 * progspace.h (struct program_space) <add_target_sections>:
1925 Declare.
1926
1927 2020-10-29 Tom Tromey <tom@tromey.com>
1928
1929 * progspace.h (struct program_space) <remove_target_sections>:
1930 Declare.
1931 * exec.c (program_space::remove_target_sections): Now a method.
1932 * exec.h (remove_target_sections): Don't declare.
1933
1934 2020-10-29 Tom Tromey <tom@tromey.com>
1935
1936 * inferior.c (delete_inferior): Update.
1937 * progspace.c (program_space::empty): Rename from
1938 program_space_empty_p. Return bool.
1939 * progspace.h (struct program_space) <empty>: New method.
1940 (program_space_empty_p): Don't declare.
1941
1942 2020-10-29 Tom Tromey <tom@tromey.com>
1943
1944 * progspace.c (program_space::~program_space): Don't call
1945 clear_program_space_solib_cache.
1946 (program_space::clear_solib_cache): Rename from
1947 clear_solib_cache.
1948 * solib.c (handle_solib_event): Update.
1949 * progspace.h (struct program_space) <clear_solib_cache>: New
1950 method.
1951 (clear_program_space_solib_cache): Don't declare.
1952
1953 2020-10-29 Tom Tromey <tom@tromey.com>
1954
1955 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1956 * target.c (info_target_command): Update.
1957 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1958 (symbol_file_clear, reread_symbols): Update.
1959 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1960 * stabsread.c (scan_file_globals): Update.
1961 * solib.c (update_solib_list): Update.
1962 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1963 (svr4_fetch_objfile_link_map, enable_break)
1964 (svr4_relocate_main_executable)
1965 (svr4_iterate_over_objfiles_in_search_order): Update.
1966 * solib-frv.c (lm_base, enable_break)
1967 (frv_relocate_main_executable): Update.
1968 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1969 (frv_fetch_objfile_link_map): Update.
1970 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1971 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1972 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1973 * remote.c (remote_target::get_offsets): Update.
1974 (remote_target::start_remote)
1975 (extended_remote_target::post_attach): Update.
1976 * objfiles.c (entry_point_address_query): Update.
1977 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1978 * minsyms.c (get_symbol_leading_char): Update.
1979 * frame.c (inside_main_func): Update.
1980 * progspace.h (symfile_objfile): Remove macro.
1981
1982 2020-10-29 Tom Tromey <tom@tromey.com>
1983
1984 * exec.c (exec_file_attach): Update.
1985 * progspace.c (program_space::exec_close): Update.
1986 * progspace.h (struct program_space) <ebfd>: Now a
1987 gdb_bfd_ref_ptr.
1988 <set_exec_bfd>: Change argument type.
1989 <exec_bfd>: Update.
1990
1991 2020-10-29 Tom Tromey <tom@tromey.com>
1992
1993 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1994 * symfile.c (reread_symbols): Update.
1995 * symfile-mem.c (add_symbol_file_from_memory_command)
1996 (add_vsyscall_page): Update.
1997 * source-cache.c (source_cache::get_plain_source_lines): Update.
1998 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1999 (svr4_current_sos_direct, svr4_exec_displacement)
2000 (svr4_relocate_main_executable): Update.
2001 (svr4_iterate_over_objfiles_in_search_order): Update.
2002 * solib-frv.c (enable_break2, enable_break): Update.
2003 * solib-dsbt.c (lm_base, enable_break): Update.
2004 * solib-darwin.c (find_program_interpreter)
2005 (darwin_solib_create_inferior_hook): Update.
2006 * sol-thread.c (rw_common, ps_pdmodel): Update.
2007 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2008 * remote.c (compare_sections_command)
2009 (remote_target::trace_set_readonly_regions): Update.
2010 * remote-sim.c (get_sim_inferior_data)
2011 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2012 (gdbsim_target_open, gdbsim_target::files_info): Update.
2013 * exec.h (exec_bfd): Remove macro.
2014 * progspace.c (initialize_progspace): Update.
2015 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2016 Update.
2017 * nto-procfs.c (nto_procfs_target::post_attach)
2018 (nto_procfs_target::create_inferior): Update.
2019 * maint.c (maintenance_info_sections): Update.
2020 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2021 Update.
2022 * infcmd.c (post_create_inferior): Update.
2023 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2024 (objfile_find_memory_regions): Update.
2025 * exec.c (validate_exec_file, exec_file_attach)
2026 (exec_read_partial_read_only, print_section_info): Update.
2027 * corelow.c (core_target_open): Update.
2028 * corefile.c (reopen_exec_file, validate_files): Update.
2029 * arm-tdep.c (gdb_print_insn_arm): Update.
2030 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2031 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2032 methods.
2033
2034 2020-10-29 Tom Tromey <tom@tromey.com>
2035
2036 * progspace.h (current_target_sections): Remove macro.
2037 * solib-svr4.c (scan_dyntag): Update.
2038 * solib-dsbt.c (scan_dyntag): Update.
2039 * exec.c (exec_target::close): Update.
2040 (add_target_sections, add_target_sections_of_objfile)
2041 (remove_target_sections, exec_target::get_section_table)
2042 (exec_target::files_info, set_section_command)
2043 (exec_set_section_address, exec_target::has_memory)
2044 (exec_target::has_memory): Update.
2045
2046 2020-10-29 Tom Tromey <tom@tromey.com>
2047
2048 * source-cache.c (source_cache::get_plain_source_lines): Use
2049 current_program_space.
2050 * corefile.c (reopen_exec_file): Use current_program_space.
2051 * exec.c (exec_file_attach): Use current_program_space.
2052 * exec.h (exec_bfd_mtime): Remove.
2053
2054 2020-10-29 Tom Tromey <tom@tromey.com>
2055
2056 * gcore.c (default_gcore_mach): Remove.
2057 (create_gcore_bfd): Update.
2058
2059 2020-10-29 Tom Tromey <tom@tromey.com>
2060
2061 * progspace.c (program_space::exec_close): New method, from
2062 exec_close in exec.c.
2063 * exec.c (exec_close): Move to progspace.c.
2064 (exec_target::close, exec_file_attach): Update.
2065 * progspace.h (struct program_space) <exec_close>: Declare
2066 method.
2067
2068 2020-10-29 Tom Tromey <tom@tromey.com>
2069
2070 * progspace.h (struct program_space) <exec_filename>: Rename from
2071 pspace_exec_filename. Now a unique_xmalloc_ptr.
2072 * inferior.c (print_selected_inferior): Update.
2073 (print_inferior): Update.
2074 * mi/mi-main.c (print_one_inferior): Update.
2075 * exec.h (exec_filename): Remove macro.
2076 * corefile.c (get_exec_file): Update.
2077 * exec.c (exec_close): Update.
2078 (exec_file_attach): Update.
2079 * progspace.c (clone_program_space): Update.
2080 (print_program_space): Update.
2081
2082 2020-10-29 Tom Tromey <tom@tromey.com>
2083
2084 * target-section.h (struct target_section): Add constructor.
2085 * exec.c (build_section_table, add_target_sections_of_objfile):
2086 Update.
2087 * corelow.c (core_target::build_file_mappings): Update.
2088
2089 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2090
2091 PR gdb/19318
2092 * inferior.c (detach_inferior_command): Restore the current thread.
2093 (kill_inferior_command): Ditto.
2094
2095 2020-10-28 Tom de Vries <tdevries@suse.de>
2096
2097 PR symtab/26772
2098 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2099 map, check it in the "best match" loop.
2100
2101 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2102
2103 * m32c-tdep.c: Remove unused includes.
2104
2105 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2106
2107 * xtensa-tdep.c: Remove includes.
2108
2109 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2110
2111 * breakpoint.c (struct condition_command_opts): New struct.
2112 (condition_command_option_defs): New static global.
2113 (make_condition_command_options_def_group): New function.
2114 (condition_completer): Update to consider the '-force' flag.
2115 (condition_command): Use gdb::option for the '-force' flag.
2116
2117 2020-10-27 Tom de Vries <tdevries@suse.de>
2118
2119 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2120 symbols in section check.
2121
2122 2020-10-27 Tom de Vries <tdevries@suse.de>
2123
2124 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2125
2126 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2127
2128 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2129 * breakpoint.c: Update the help text of the 'condition' and 'break'
2130 commands.
2131 (set_breakpoint_condition): Take a new bool parameter
2132 to control whether condition definition should be forced even when
2133 the condition expression is invalid in all of the current locations.
2134 (condition_command): Update the call to 'set_breakpoint_condition'.
2135 (find_condition_and_thread): Take the "-force-condition" flag into
2136 account.
2137 * linespec.c (linespec_keywords): Add "-force-condition" as an
2138 element.
2139 (FORCE_KEYWORD_INDEX): New #define.
2140 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2141 as a keyword.
2142 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2143 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2144 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2145 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2146
2147 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2148
2149 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2150 * breakpoint.c (set_breakpoint_location_condition): New function.
2151 (set_breakpoint_condition): Disable a breakpoint location if parsing
2152 the condition string gives an error.
2153 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2154 (build_target_condition_list): Ditto.
2155 (build_target_command_list): Ditto.
2156 (build_bpstat_chain): Ditto.
2157 (print_one_breakpoint_location): Ditto.
2158 (print_one_breakpoint): Ditto.
2159 (breakpoint_1): Ditto.
2160 (bp_location::bp_location): Ditto.
2161 (locations_are_equal): Ditto.
2162 (update_breakpoint_locations): Ditto.
2163 (enable_disable_bp_num_loc): Ditto.
2164 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2165 (find_condition_and_thread_for_sals): New static function.
2166 (create_breakpoint): Call find_condition_and_thread_for_sals.
2167 (location_to_sals): Call find_condition_and_thread_for_sals instead
2168 of find_condition_and_thread.
2169
2170 2020-10-26 Tom de Vries <tdevries@suse.de>
2171
2172 * dwarf2/read.c (process_full_comp_unit): Call
2173 dwarf2_find_base_address.
2174
2175 2020-10-26 Tom Tromey <tromey@adacore.com>
2176
2177 * gdbtypes.c (create_range_type): Revert previous patch. Add
2178 comment.
2179
2180 2020-10-26 Pedro Alves <pedro@palves.net>
2181
2182 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2183 (my_waitpid): Use gdb::handle_eintr.
2184
2185 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2186
2187 * acinclude.m4: Update ptrace.m4 path.
2188 * ptrace.m4: Moved to gdbsupport.
2189
2190 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2191
2192 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2193 instead of target_gdbarch.
2194
2195 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2196
2197 * jit.c (jit_reader_load_command): Pass current inferior.
2198 (jit_inferior_init): Change parameter type to inferior, use it.
2199 (jit_inferior_created): Remove.
2200 (jit_inferior_created_hook): Pass inferior parameter down.
2201 (_initialize_jit): Use jit_inferior_created_hook instead of
2202 jit_inferior_created.
2203 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2204 * infrun.c (follow_exec): Pass inferior to
2205 jit_inferior_created_hook.
2206
2207 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2208
2209 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2210 parameter and use it.
2211 (thread_db_inferior_created): Pass inferior argument.
2212
2213 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2214
2215 * aix-thread.c (aix_thread_inferior_created): Add inferior
2216 parameter.
2217 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2218 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2219 * jit.c (jit_inferior_created): Likewise.
2220 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2221 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2222 * observable.h (inferior_created): Likewise.
2223 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2224 * symfile-mem.c (add_vsyscall_page): Likewise.
2225 * infcmd.c (post_create_inferior): Pass inferior argument.
2226
2227 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2228
2229 GDB 10.1 released.
2230
2231 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2232
2233 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2234 to ada_check_typedef.
2235
2236 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2237
2238 * f-exp.y (f_parse): Rename to...
2239 (f_language::parser): ...this.
2240 * f-lang.c (f_get_encoding): Rename to...
2241 (f_language::get_encoding): ...this.
2242 (f_op_print_tab): Rename to...
2243 (f_language::op_print_tab): ...this.
2244 (exp_descriptor_f): Rename to...
2245 (f_language::exp_descriptor_tab): ...this.
2246 (class f_language): Moved to f-lang.h.
2247 (f_language::language_arch_info): New function, moved out of class
2248 declaration.
2249 (f_language::search_name_hash): Likewise.
2250 (f_language::lookup_symbol_nonlocal): Likewise.
2251 (f_language::get_symbol_name_matcher_inner): Likewise.
2252 * f-lang.h: Add 'valprint.h' include.
2253 (class f_language): Moved here from f-lang.c.
2254 * f-typeprint.c (f_type_print_args): Delete commented out
2255 declaration.
2256 (f_print_typedef): Rename to...
2257 (f_language::print_typedef): ...this.
2258 (f_print_type): Rename to...
2259 (f_language::print_type): ...this.
2260 (f_type_print_varspec_prefix): Delete declaration and rename to...
2261 (f_language::f_type_print_varspec_prefix): ...this.
2262 (f_type_print_varspec_suffix): Delete declaration and rename to...
2263 (f_language::f_type_print_varspec_suffix): ...this.
2264 (f_type_print_base): Delete declaration and rename to...
2265 (f_language::f_type_print_base): ...this.
2266 * f-valprint.c (f_value_print_inner): Rename to...
2267 (f_language::value_print_inner): ...this.
2268 * parse.c: Delete 'f-lang.h' include.
2269
2270 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2271
2272 * language.h (language_defn::print_type): Add variable names in
2273 declaration, and update header comment.
2274
2275 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2276
2277 * ada-lang.c (ada_language::demangle): Rename to...
2278 (ada_language::demangle_symbol): ...this.
2279 * c-lang.c (cplus_language::demangle): Rename to...
2280 (cplus_language::demangle_symbol): ...this.
2281 * d-lang.c (d_language::demangle): Rename to...
2282 (d_language::demangle_symbol): ...this.
2283 * f-lang.c (f_language::demangle): Rename to...
2284 (f_language::demangle_symbol): ...this.
2285 * go-lang.c (go_language::demangle): Rename to...
2286 (go_language::demangle_symbol): ...this.
2287 * language.c (language_demangle): Update call to demangle_symbol.
2288 (auto_or_unknown_language::demangle): Rename to...
2289 (auto_or_unknown_language::demangle_symbol): ...this.
2290 * language.h (language_defn::demangle): Rename to...
2291 (language_defn::demangle_symbol): ...this.
2292 * objc-lang.c (objc_language::demangle): Rename to...
2293 (objc_language::demangle_symbol): ...this.
2294 * rust-lang.c (rust_language::demangle): Rename to...
2295 (rust_language::demangle_symbol): ...this.
2296
2297 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2298
2299 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2300 (iterate_over_file_blocks): Replace use of macro with the macros
2301 definition.
2302
2303 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2304
2305 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2306 * valprint.c (maybe_print_array_index): Replace use of macro with
2307 the macros definition.
2308
2309 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2310
2311 * ada-lang.c (ada_language::print_array_index): Call value_print
2312 directly.
2313 * language.c (language_defn::print_array_index): Likewise.
2314 * language.h (LA_VALUE_PRINT): Delete.
2315 * valprint.c (value_print): Call value_print on the
2316 current_language directly.
2317
2318 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2319
2320 * language.h (LA_PRINT_TYPEDEF): Delete.
2321 * typeprint.c (typedef_print): Call print_typedef directly on the
2322 current_language object.
2323
2324 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2325
2326 * m2-exp.y (m2_parse): Rename to...
2327 (m2_language::parser): ...this. Update function signature.
2328 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2329 (m2_op_print): Rename to...
2330 (m2_language::op_print_tab): ...this, and make const.
2331 (exp_descriptor_modula2): Rename to...
2332 (m2_language::exp_descriptor_modula2): ...this.
2333 (class m2_language): Move to m2-lang.h.
2334 (m2_language::language_arch_info): New function, moved out of
2335 class declaration.
2336 (m2_language::printchar): New function, body from m2_printchar.
2337 (m2_language::printstr): New function, moved out of class
2338 declaration.
2339 (m2_language::emitchar): Likewise.
2340 * m2-lang.h (m2_parse): Delete declaration.
2341 (m2_print_typedef): Delete declaration.
2342 (m2_value_print_inner): Delete declaration.
2343 (class m2_language): Class declaration moved from m2-lang.c,
2344 larger functions are left in m2-lang.c.
2345 * m2-typeprint.c (m2_print_typedef): Rename to...
2346 (m2_language::print_typedef): ...this, and update function
2347 signature.
2348 * m2-valprint.c (m2_value_print_inner): Rename to...
2349 (m2_language::value_print_inner): ...this, replace use of
2350 LA_PRINT_STRING with a direct call to printstr member function,
2351 and update recursive call.
2352
2353 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2354
2355 * language.c (default_is_string_type_p): Delete, implementation
2356 moved into auto_or_unknown_language::is_string_type_p.
2357 (unk_op_print_tab): Moved into
2358 auto_or_unknown_language::opcode_print_table.
2359 (unknown_language_arch_info): Delete, implementation moved into
2360 auto_or_unknown_language::language_arch_info.
2361 (class auto_or_unknown_language): New class, member functions
2362 copied from unknown_language class, with some updates.
2363 (class unknown_language): Most member functions moved into
2364 auto_or_unknown_language class. Inherit from
2365 auto_or_unknown_language class.
2366 (class auto_language): Inherit from auto_or_unknown_language.
2367 Delete most member functions.
2368
2369 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2370
2371 * stabsread.c (read_member_functions): Remove gdb_assert.
2372
2373 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2374
2375 * gdbtypes.c (init_complex_type): Check target type name.
2376
2377 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2378
2379 * target-debug.h (target_debug_print_struct_target_ops_p):
2380 Remove.
2381 (target_debug_print_async_callback_ftype_p): Remove.
2382 (target_debug_print_struct_trace_state_variable_p): Remove.
2383 (target_debug_print_struct_traceframe_info_p): Remove.
2384 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2385 (target_debug_print_enum_btrace_format): Remove.
2386 (target_debug_print_enum_info_proc_what): Remove.
2387 (target_debug_print_thread_info_pp): Remove.
2388
2389 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2390
2391 * target.h (struct target_ops) <make_corefile_notes>:
2392 Change return type to unique pointer.
2393 * target.c (dummy_make_corefile_notes): Likewise.
2394 * exec.c (struct exec_target) <make_corefile_notes>:
2395 Likewise.
2396 (exec_target::make_corefile_notes): Likewise.
2397 * procfs.c (class procfs_target) <make_corefile_notes>:
2398 Likewise.
2399 (procfs_do_thread_registers): Adjust to unique pointer.
2400 (struct procfs_corefile_thread_data): Add constructor.
2401 <note_data>: Change type to unique pointer.
2402 (procfs_corefile_thread_callback): Adjust to unique pointer.
2403 (procfs_target::make_corefile_notes): Change return type to
2404 unique pointer.
2405 * target-delegates.c: Re-generate.
2406 * gcore.c (write_gcore_file_1): Adjust.
2407 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2408 New.
2409
2410 2020-10-22 Tom de Vries <tdevries@suse.de>
2411
2412 * block.c (find_block_in_blockvector): Make sure the returned block
2413 contains pc.
2414
2415 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2416
2417 PR gdb/26693
2418 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2419 parameter.
2420 (load_cu): Pass existing CU.
2421 (process_imported_unit_die): Likewise.
2422 (follow_die_offset): Likewise.
2423
2424 2020-10-22 Luis Machado <luis.machado@linaro.org>
2425
2426 * corelow.c (core_target::xfer_partial): Also check for an empty
2427 m_core_unavailable_mappings vector.
2428
2429 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2430
2431 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2432 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2433 * f-exp.y (arglist): Allow for a series of subranges.
2434 (subrange): Add cases for subranges with strides.
2435 * f-lang.c (value_f90_subarray): Catch use of array strides and
2436 throw an error.
2437 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2438
2439 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2440
2441 * expprint.c (print_subexp_standard): Change enum range_type to
2442 range_flag and rename variables to match.
2443 (dump_subexp_body_standard): Likewise.
2444 * expression.h (enum range_type): Rename to...
2445 (enum range_flag): ...this.
2446 (range_types): Rename to...
2447 (range_flags): ...this.
2448 * f-lang.c (value_f90_subarray): Change enum range_type to
2449 range_flag and rename variables to match.
2450 * parse.c (operator_length_standard): Likewise.
2451 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2452 range_type to range_flag.
2453 * rust-lang.c (rust_evaluate_funcall): Likewise.
2454 (rust_range): Likewise.
2455 (rust_compute_range): Likewise.
2456 (rust_subscript): Likewise.
2457
2458 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2459
2460 * expprint.c (print_subexp_standard): Update to reflect changes to
2461 enum range_type.
2462 (dump_subexp_body_standard): Likewise.
2463 * expression.h (enum range_type): Convert to a bit field enum, and
2464 make the enum unsigned.
2465 * f-exp.y (subrange): Update to reflect changes to enum
2466 range_type.
2467 * f-lang.c (value_f90_subarray): Likewise.
2468 * parse.c (operator_length_standard): Likewise.
2469 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2470 * rust-lang.c (rust_range): Likewise.
2471 (rust_compute_range): Likewise.
2472 (rust_subscript): Likewise.
2473
2474 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2475
2476 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2477 (displaced_step_in_progress): Fix comment.
2478
2479 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2480
2481 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2482 * gdbarch.c: Re-generate.
2483 * gdbarch.h: Re-generate.
2484 * gcore.c (write_gcore_file_1): Adjust.
2485 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2486 constructor.
2487 <note_data>: Change type to unique pointer.
2488 <abort_iteration>: Change type to bool.
2489 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2490 (fbsd_collect_thread_registers): Return void, adjust.
2491 (struct fbsd_corefile_thread_data): Add construtor.
2492 <note_data>: Change type to unique pointer.
2493 (fbsd_corefile_thread): Adjust.
2494 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2495 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2496 to unique pointer, adjust.
2497 (struct linux_collect_regset_section_cb_data): Add constructor.
2498 <note_data>: Change type to unique pointer.
2499 <abort_iteration>: Change type to bool.
2500 (linux_collect_thread_registers): Return void, adjust.
2501 (struct linux_corefile_thread_data): Add constructor.
2502 <note_data>: Change type to unique pointer.
2503 (linux_corefile_thread): Adjust.
2504 (linux_make_corefile_notes): Return unique pointer, adjust.
2505
2506 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2509 * gdbarch.c: Re-generate.
2510 * gdbarch.h: Re-generate.
2511 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2512 bool.
2513 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2514 Likewise.
2515 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2516 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2517 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2518 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2519
2520 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2521
2522 * gdbarch.sh: Make generated predicates return bool.
2523 * gdbarch.c: Re-generate.
2524 * gdbarch.h: Re-generate.
2525
2526 2020-10-20 Tom Tromey <tom@tromey.com>
2527
2528 * varobj-iter.h (struct varobj_item): Remove typedef.
2529
2530 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2531
2532 * infrun.c (currently_stepping): Change int to bool
2533 (maybe_software_singlestep): Likewise.
2534 (show_stop_on_solib_events): Likewise.
2535 (stepping_past_nonsteppable_watchpoint): Likewise.
2536 (displaced_step_in_progress_any_inferior): Likewise.
2537 (displaced_step_in_progress_thread): Likewise.
2538 (keep_going_stepped_thread): Likewise.
2539 (thread_still_needs_step_over): Likewise.
2540 (start_step_over): Likewise.
2541 (do_target_resume): Likewise.
2542 (resume_1): Likewise.
2543 (clear_proceed_status): Likewise.
2544 (thread_still_needs_step_over_bp): Likewise.
2545 (proceed): Likewise.
2546 (switch_back_to_stepped_thread): Likewise.
2547 (adjust_pc_after_break): Likewise.
2548 (stepped_in_from): Likewise.
2549 (handle_stop_requested): Likewise.
2550 (handle_syscall_event): Likewise.
2551 (handle_no_resumed): Likewise.
2552 (handle_inferior_event): Likewise.
2553 (finish_step_over): Likewise.
2554 (handle_signal_stop): Likewise.
2555 (process_event_stop_test): Likewise.
2556
2557 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * infrun.c (get_displaced_stepping_state): Fix comment.
2560
2561 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2562
2563 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2564
2565 2020-10-19 Tom Tromey <tromey@adacore.com>
2566
2567 PR tui/26719
2568 * tui/tui-winsource.h (struct tui_source_window_base)
2569 <refresh_window>: Rename from refresh_pad.
2570 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2571 Rename from refresh_pad.
2572 (tui_source_window_base::show_source_content)
2573 (tui_source_window_base::do_scroll_horizontal): Update.
2574
2575 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2576
2577 * thread.c (_initialize_thread): Fine-tune the help text of
2578 'info threads'.
2579
2580 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2581
2582 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2583
2584 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2585
2586 * breakpoint.c (handle_jit_event): Add an argument, change how
2587 `jit_event_handler` is called.
2588
2589 2020-10-17 Tom Tromey <tom@tromey.com>
2590
2591 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2592 (scan_xcoff_symtab): Update.
2593 * psymtab.h (class psymtab_storage) <global_psymbols,
2594 static_psymbols, current_global_psymbols,
2595 current_static_psymbols>: Remove.
2596 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2597 (match_partial_symbol, lookup_partial_symbol): Update.
2598 (print_partial_symbols): Change parameters.
2599 (dump_psymtab, recursively_search_psymtabs)
2600 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2601 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2602 (concat): Remove.
2603 (end_psymtab_common): Simplify.
2604 (append_psymbol_to_list): Change parameters.
2605 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2606 (init_psymbol_list): Simplify.
2607 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2608 * psympriv.h (struct partial_symtab) <empty>: New method.
2609 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2610 Remove.
2611 <global_psymbols, static_psymbols>: New members.
2612 <add_psymbol>: New methods.
2613 (add_psymbol_to_list): Don't declare.
2614 (psymbol_placement): Move earlier.
2615 * mdebugread.c (parse_partial_symbols): Update.
2616 (handle_psymbol_enumerators): Change parameters.
2617 (mdebug_expand_psymtab): Update.
2618 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2619 (add_partial_symbol): Update.
2620 * dwarf2/index-write.c (write_psymbols): Change parameters.
2621 (write_one_signatured_type): Update.
2622 (recursively_count_psymbols): Update.
2623 (recursively_write_psymbols): Update.
2624 (class debug_names) <recursively_write_psymbols>: Update.
2625 <write_psymbols>: Change parameters.
2626 <write_one_signatured_type>: Update.
2627 * dbxread.c (read_dbx_symtab): Update.
2628 (dbx_end_psymtab): Use partial_symtab::empty.
2629 * ctfread.c (struct ctf_context) <pst>: New member.
2630 (create_partial_symtab): Set it.
2631 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2632 (scan_partial_symbols): Use the psymtab's context. Update.
2633
2634 2020-10-17 Tom Tromey <tom@tromey.com>
2635
2636 * valprint.c (generic_value_print): Remove comment.
2637 * m2-valprint.c (m2_value_print_inner): Remove comment.
2638 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2639 type.
2640
2641 2020-10-17 Tom de Vries <tdevries@suse.de>
2642
2643 PR symtab/26317
2644 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2645 symbol main.
2646
2647 2020-10-14 Tom de Vries <tdevries@suse.de>
2648
2649 PR gdb/26733
2650 * solib.c (solib_contains_address_p): Handle
2651 'solib->sections == nullptr'.
2652
2653 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2654
2655 PR gdb/26642
2656 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2657 target can't do async.
2658 * target.c (target_wait): Assert that we don't pass
2659 TARGET_WNOHANG to a target that can't async.
2660
2661 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2662
2663 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2664 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2665 * alpha-bsd-nat.c: Adjust include.
2666 * alpha-bsd-tdep.h: Adjust comment.
2667 * alpha-nbsd-tdep.c: Rename to ...
2668 * alpha-netbsd-tdep.c: ... this, adjust include.
2669 * amd64-nbsd-nat.c: Rename to ...
2670 * amd64-netbsd-nat.c: ... this, adjust include.
2671 * amd64-nbsd-tdep.c: Rename to ...
2672 * amd64-netbsd-tdep.c: ... this, adjust include.
2673 * amd64-tdep.h: Adjust include.
2674 * arm-nbsd-nat.c: Rename to ...
2675 * arm-netbsd-nat.c: ... this, adjust include.
2676 * arm-nbsd-tdep.c: Rename to ...
2677 * arm-netbsd-tdep.c: ... this, adjust include.
2678 * arm-nbsd-tdep.h: Rename to ...
2679 * arm-netbsd-tdep.h: ... this, adjust include.
2680 * configure.nat: Adjust file lists.
2681 * configure.tgt: Likewise.
2682 * hppa-nbsd-nat.c: Rename to ...
2683 * hppa-netbsd-nat.c: ... this, adjust include.
2684 * hppa-nbsd-tdep.c: Rename to ...
2685 * hppa-netbsd-tdep.c: ... this, adjust include.
2686 * i386-nbsd-nat.c: Rename to ...
2687 * i386-netbsd-nat.c: ... this, adjust include.
2688 * i386-nbsd-tdep.c: Rename to ...
2689 * i386-netbsd-tdep.c: ... this, adjust include.
2690 * m68k-bsd-nat.c: Adjust include.
2691 * mips-nbsd-nat.c: Rename to ...
2692 * mips-netbsd-nat.c: ... this, adjust include.
2693 * mips-nbsd-tdep.c: Rename to ...
2694 * mips-netbsd-tdep.c: ... this, adjust include.
2695 * mips-nbsd-tdep.h: Rename to ...
2696 * mips-netbsd-tdep.h: ... this.
2697 * nbsd-nat.c: Rename to ...
2698 * netbsd-nat.c: ... this, adjust include.
2699 * nbsd-nat.h: Rename to ...
2700 * netbsd-nat.h: ... this, adjust include.
2701 * nbsd-tdep.c: Rename to ...
2702 * netbsd-tdep.c: ... this, adjust include.
2703 * nbsd-tdep.h: Rename to ...
2704 * netbsd-tdep.h: ... this.
2705 * ppc-nbsd-nat.c: Rename to ...
2706 * ppc-netbsd-nat.c: ... this, adjust include.
2707 * ppc-nbsd-tdep.c: Rename to ...
2708 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2709 * ppc-nbsd-tdep.h: Rename to ...
2710 * ppc-netbsd-tdep.h: ... this.
2711 * sh-nbsd-nat.c: Rename to ...
2712 * sh-netbsd-nat.c: ... this, adjust include.
2713 * sh-nbsd-tdep.c: Rename to ...
2714 * sh-netbsd-tdep.c: ... this, adjust include.
2715 * sparc-nbsd-nat.c: Rename to ...
2716 * sparc-netbsd-nat.c: ... this.
2717 * sparc-nbsd-tdep.c: Rename to ...
2718 * sparc-netbsd-tdep.c: ... this, adjust include.
2719 * sparc64-nbsd-nat.c: Rename to ...
2720 * sparc64-netbsd-nat.c: ... this.
2721 * sparc64-nbsd-tdep.c: Rename to ...
2722 * sparc64-netbsd-tdep.c: ... this, adjust include.
2723 * sparc64-tdep.h: Adjust comment.
2724 * vax-bsd-nat.c: Adjust include.
2725 * vax-nbsd-tdep.c: Rename to ...
2726 * vax-netbsd-tdep.c: ... this, adjust include.
2727
2728 2020-10-12 Tom Tromey <tom@tromey.com>
2729
2730 * target.h (struct target_ops) <get_section_table>: Update.
2731 (target_get_section_table): Update.
2732 * target.c (target_get_section_table, target_section_by_addr)
2733 (memory_xfer_partial_1): Update.
2734 * target-section.h (target_section_table): Now an alias.
2735 * target-delegates.c: Rebuild.
2736 * target-debug.h (target_debug_print_target_section_table_p):
2737 Rename from target_debug_print_struct_target_section_table_p.
2738 * symfile.c (build_section_addr_info_from_section_table): Update.
2739 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2740 * solib-svr4.c (scan_dyntag): Update.
2741 * solib-dsbt.c (scan_dyntag): Update.
2742 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2743 Update.
2744 * record-full.c (record_full_core_target::xfer_partial): Update.
2745 * progspace.h (struct program_space) <target_sections>: Update.
2746 * exec.h (print_section_info): Update.
2747 * exec.c (exec_target::close, build_section_table)
2748 (add_target_sections, add_target_sections_of_objfile)
2749 (remove_target_sections, exec_on_vfork)
2750 (section_table_available_memory)
2751 (section_table_xfer_memory_partial)
2752 (exec_target::get_section_table, exec_target::xfer_partial)
2753 (print_section_info, set_section_command)
2754 (exec_set_section_address, exec_target::has_memory): Update.
2755 * corelow.c (core_target::build_file_mappings)
2756 (core_target::xfer_partial, core_target::info_proc_mappings)
2757 (core_target::info_proc_mappings): Update.
2758 * bfd-target.c (class target_bfd): Update
2759
2760 2020-10-12 Tom Tromey <tom@tromey.com>
2761
2762 * progspace.c (program_space::~program_space): Don't call
2763 clear_section_table.
2764 * exec.h (clear_section_table): Don't declare.
2765 * exec.c (exec_target::close): Update.
2766 (clear_section_table): Remove.
2767
2768 2020-10-12 Tom Tromey <tom@tromey.com>
2769
2770 * exec.c (add_target_sections_of_objfile): Simplify.
2771
2772 2020-10-12 Tom Tromey <tom@tromey.com>
2773
2774 * solib.c (solib_map_sections): Update.
2775 * record-full.c (record_full_core_open_1): Update.
2776 * exec.h (build_section_table): Return a target_section_table.
2777 * exec.c (exec_file_attach): Update.
2778 (build_section_table): Return a target_section_table.
2779 * corelow.c (core_target::core_target): Update.
2780 * bfd-target.c (target_bfd::target_bfd): Update.
2781
2782 2020-10-12 Tom Tromey <tom@tromey.com>
2783
2784 * target.c (target_section_by_addr, memory_xfer_partial_1):
2785 Update.
2786 * target-section.h (struct target_section_table): Use
2787 std::vector.
2788 * symfile.h (build_section_addr_info_from_section_table): Take a
2789 target_section_table.
2790 * symfile.c (build_section_addr_info_from_section_table): Take a
2791 target_section_table.
2792 * solist.h (struct so_list) <sections>: Change type.
2793 <sections_end>: Remove.
2794 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2795 (solib_contains_address_p): Update.
2796 * solib-svr4.c (scan_dyntag): Update.
2797 * solib-dsbt.c (scan_dyntag): Update.
2798 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2799 Update.
2800 * record-full.c (record_full_core_start, record_full_core_end):
2801 Remove.
2802 (record_full_core_sections): New global.
2803 (record_full_core_open_1, record_full_core_target::xfer_partial):
2804 Update.
2805 * exec.h (build_section_table, section_table_xfer_memory_partial)
2806 (add_target_sections): Take a target_section_table.
2807 * exec.c (exec_file_attach, clear_section_table): Update.
2808 (resize_section_table): Remove.
2809 (build_section_table, add_target_sections): Take a
2810 target_section_table.
2811 (add_target_sections_of_objfile, remove_target_sections)
2812 (exec_on_vfork): Update.
2813 (section_table_available_memory): Take a target_section_table.
2814 (section_table_read_available_memory): Update.
2815 (section_table_xfer_memory_partial): Take a target_section_table.
2816 (print_section_info, set_section_command)
2817 (exec_set_section_address, exec_target::has_memory): Update.
2818 * corelow.c (class core_target) <m_core_section_table,
2819 m_core_file_mappings>: Remove braces.
2820 <~core_target>: Remove.
2821 (core_target::core_target): Update.
2822 (core_target::~core_target): Remove.
2823 (core_target::build_file_mappings)
2824 (core_target::xfer_memory_via_mappings)
2825 (core_target::xfer_partial, core_target::info_proc_mappings):
2826 Update.
2827 * bfd-target.c (target_bfd::xfer_partial): Update.
2828 (target_bfd::target_bfd): Update.
2829 (target_bfd::~target_bfd): Remove.
2830
2831 2020-10-12 Tom Tromey <tom@tromey.com>
2832
2833 * target.h (struct target_section, struct target_section_table):
2834 Move to target-section.h.
2835 * target-section.h: New file.
2836
2837 2020-10-12 Pedro Alves <pedro@palves.net>
2838
2839 PR exp/26602
2840 * valops.c (struct struct_field_searcher): New.
2841 (update_search_result): Rename to ...
2842 (struct_field_searcher::update_result): ... this. Simplify
2843 prototype. Record all found fields.
2844 (do_search_struct_field): Rename to ...
2845 (struct_field_searcher::search): ... this. Simplify prototype.
2846 Maintain stack of visited baseclass path. Call update_result for
2847 fields too. Keep searching fields in baseclasses instead of
2848 stopping at the first found field.
2849 (search_struct_field): Use struct_field_searcher. When looking
2850 for fields, report ambiguous access attempts.
2851
2852 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2853
2854 * frame.c (inside_main_func): Check full symbols as well as
2855 minimal symbols.
2856
2857 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2858
2859 * ada-lang.c (advance_wild_match): Rewrite the function's
2860 description. Change the type of target0, t0 and t1 to char.
2861
2862 2020-10-09 Tom Tromey <tromey@adacore.com>
2863
2864 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2865
2866 2020-10-09 Tom Tromey <tromey@adacore.com>
2867
2868 * ada-lang.h (ada_encode): Return std::string.
2869 * ada-lang.c (ada_encode_1): Return std::string.
2870 (ada_encode): Likewise.
2871 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2872 Update.
2873 * ada-exp.y (block_lookup, write_var_or_type): Update.
2874
2875 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2876
2877 PR exp/26714
2878 * printcmd.c (print_formatted): Handle void results as
2879 unformatted prints.
2880
2881 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2882
2883 * arch/aarch32.c (aarch32_create_target_description): Release the
2884 target_desc_up as late as possible.
2885 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2886 * arch/amd64.c (amd64_create_target_description): Likewise.
2887 * arch/arc.c (arc_create_target_description): Return a
2888 target_desc_up, don't release it.
2889 * arch/arc.h (arc_create_target_description): Update declaration.
2890 (arc_lookup_target_description): Move target_desc_up into the
2891 cache, and return a borrowed pointer.
2892 * arch/arm.c (arm_create_target_description): Release the
2893 target_desc_up as late as possible.
2894 * arch/i386.c (i386_create_target_description): Likewise.
2895 * arch/riscv.h (riscv_create_target_description): Update
2896 declaration to match definition.
2897 * arch/tic6x.c (tic6x_create_target_description): Release the
2898 target_desc_up as late as possible.
2899
2900 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2901
2902 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2903 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2904
2905 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2906
2907 * source.c (directory_command): Notify observers that "directories"
2908 parameter has changed.
2909
2910 2020-10-08 Tom Tromey <tom@tromey.com>
2911
2912 * cli/cli-cmds.c (print_disassembly): Style function name and
2913 addresses. Add _() wrappers.
2914
2915 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2916
2917 * NEWS: Mention ARC support in GDBserver.
2918
2919 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2920
2921 * arch/aarch32.c (aarch32_create_target_description): Release
2922 unique_ptr returned from allocate_target_description.
2923 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2924 * arch/amd64.c (amd64_create_target_description): Likewise.
2925 * arch/arc.c (arc_create_target_description): Likewise.
2926 * arch/arm.c (arm_create_target_description): Likewise.
2927 * arch/i386.c (i386_create_target_description): Likewise.
2928 * arch/riscv.c (riscv_create_target_description): Update return
2929 type. Handle allocate_target_description returning a unique_ptr.
2930 (riscv_lookup_target_description): Update to handle unique_ptr.
2931 * arch/tic6x.c (tic6x_create_target_description): Release
2932 unique_ptr returned from allocate_target_description.
2933 * features/microblaze-with-stack-protect.c: Regenerate.
2934 * features/microblaze.c: Regenerate.
2935 * features/mips-dsp-linux.c: Regenerate.
2936 * features/mips-linux.c: Regenerate.
2937 * features/mips64-dsp-linux.c: Regenerate.
2938 * features/mips64-linux.c: Regenerate.
2939 * features/nds32.c: Regenerate.
2940 * features/nios2.c: Regenerate.
2941 * features/or1k.c: Regenerate.
2942 * features/rs6000/powerpc-32.c: Regenerate.
2943 * features/rs6000/powerpc-32l.c: Regenerate.
2944 * features/rs6000/powerpc-403.c: Regenerate.
2945 * features/rs6000/powerpc-403gc.c: Regenerate.
2946 * features/rs6000/powerpc-405.c: Regenerate.
2947 * features/rs6000/powerpc-505.c: Regenerate.
2948 * features/rs6000/powerpc-601.c: Regenerate.
2949 * features/rs6000/powerpc-602.c: Regenerate.
2950 * features/rs6000/powerpc-603.c: Regenerate.
2951 * features/rs6000/powerpc-604.c: Regenerate.
2952 * features/rs6000/powerpc-64.c: Regenerate.
2953 * features/rs6000/powerpc-64l.c: Regenerate.
2954 * features/rs6000/powerpc-7400.c: Regenerate.
2955 * features/rs6000/powerpc-750.c: Regenerate.
2956 * features/rs6000/powerpc-860.c: Regenerate.
2957 * features/rs6000/powerpc-altivec32.c: Regenerate.
2958 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2959 * features/rs6000/powerpc-altivec64.c: Regenerate.
2960 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2961 * features/rs6000/powerpc-e500.c: Regenerate.
2962 * features/rs6000/powerpc-e500l.c: Regenerate.
2963 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2964 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2965 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2966 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2967 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2968 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2969 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2970 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2971 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2972 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2973 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2974 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2975 * features/rs6000/powerpc-vsx32.c: Regenerate.
2976 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2977 * features/rs6000/powerpc-vsx64.c: Regenerate.
2978 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2979 * features/rs6000/rs6000.c: Regenerate.
2980 * features/rx.c: Regenerate.
2981 * features/s390-gs-linux64.c: Regenerate.
2982 * features/s390-linux32.c: Regenerate.
2983 * features/s390-linux32v1.c: Regenerate.
2984 * features/s390-linux32v2.c: Regenerate.
2985 * features/s390-linux64.c: Regenerate.
2986 * features/s390-linux64v1.c: Regenerate.
2987 * features/s390-linux64v2.c: Regenerate.
2988 * features/s390-te-linux64.c: Regenerate.
2989 * features/s390-tevx-linux64.c: Regenerate.
2990 * features/s390-vx-linux64.c: Regenerate.
2991 * features/s390x-gs-linux64.c: Regenerate.
2992 * features/s390x-linux64.c: Regenerate.
2993 * features/s390x-linux64v1.c: Regenerate.
2994 * features/s390x-linux64v2.c: Regenerate.
2995 * features/s390x-te-linux64.c: Regenerate.
2996 * features/s390x-tevx-linux64.c: Regenerate.
2997 * features/s390x-vx-linux64.c: Regenerate.
2998 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2999 from allocate_target_description.
3000 * target-descriptions.c (allocate_target_description): Update
3001 return type.
3002 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3003 allocate_target_description.
3004
3005 2020-10-07 Tom Tromey <tromey@adacore.com>
3006
3007 * unittests/search-memory-selftests.c: New file.
3008 * Makefile.in (SELFTESTS_SRCS): Add
3009 unittests/search-memory-selftests.c.
3010
3011 2020-10-07 Tom Tromey <tromey@adacore.com>
3012
3013 PR gdb/16930:
3014 * findcmd.c (_initialize_mem_search): Mention that the range is
3015 inclusive.
3016
3017 2020-10-07 Tom Tromey <tromey@adacore.com>
3018
3019 * target.h (simple_search_memory): Don't declare.
3020 * target.c (simple_search_memory): Move to gdbsupport.
3021 (default_search_memory): Update.
3022 * remote.c (remote_target::search_memory): Update.
3023
3024 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3025
3026 * Makefile.in (COMPILE): Add CXXFLAGS.
3027 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3028 (check-headers): Add CXXFLAGS.
3029
3030 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3031
3032 * arc-linux-tdep.h: New file.
3033 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3034 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3035 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3036 arc_linux_gregset, arc_linux_v2_regset,
3037 arc_linux_iterate_over_regset_sections,
3038 arc_linux_core_read_description): Implement.
3039 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3040 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3041 (arc_gdbarch_features_create): Add.
3042 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3043
3044 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3045
3046 * arch/arc.h: Rename "arc_gdbarch_features" to
3047 "arc_arch_features".
3048 * arc-tdep.h: Likewise.
3049 * arc-tdep.c: Likewise.
3050
3051 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3052
3053 * infcmd.c (attach_command): Remove the redundant call to
3054 `clear_proceed_status`.
3055
3056 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3057
3058 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3059
3060 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3061
3062 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3063 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3064 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3065
3066 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3067
3068 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3069 (_initialize_break_catch_sig): Don't allocate array.
3070
3071 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3072
3073 * symtab.c (find_pc_line): Return unmapped addresses when the
3074 requested address is also unmapped.
3075
3076 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3077
3078 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3079 tui/tui-out.h.
3080
3081 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3082
3083 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3084 type::is_vector instead of TYPE_VECTOR.
3085
3086 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3087
3088 * auto-load.c (auto_load_objfile_script_1): Don't use
3089 debugfile_holder as temporary variable when stripping drive
3090 letter.
3091
3092 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3093
3094 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3095 Add TYPE_CODE_COMPLEX.
3096 (amd64_windows_return_value): Fix types returned via XMM0.
3097
3098 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3099
3100 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3101 AArch64/ARM maintainers.
3102
3103 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3104
3105 * NEWS: Mention set/show debug event-loop.
3106
3107 2020-10-02 Tom Tromey <tromey@adacore.com>
3108
3109 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3110 REG_EXTENDED.
3111
3112 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3113
3114 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3115 * procfs.c (procfs_inferior_created): Remove.
3116 (_initialize_procfs): Don't register procfs_inferior_created.
3117
3118 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3119
3120 * async-event.c (invoke_async_signal_handlers): Add debug
3121 print.
3122 (check_async_event_handlers): Likewise.
3123 * event-top.c (show_debug_event_loop): New function.
3124 (_initialize_event_top): Register "set debug event-loop"
3125 setting.
3126
3127 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3128
3129 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3130 * debug.h: Remove.
3131 * infrun.c: Include gdbsupport/common-debug.h.
3132 * linux-nat.c: Likewise.
3133
3134 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3135
3136 * async-event.h (create_async_signal_handler): Add name
3137 parameter.
3138 (create_async_event_handler): Likewise.
3139 * async-event.c (struct async_signal_handler) <name>: New field.
3140 (struct async_event_handler) <name>: New field.
3141 (create_async_signal_handler): Assign name.
3142 (create_async_event_handler): Assign name.
3143 * event-top.c (async_init_signals): Pass name when creating
3144 handler.
3145 * infrun.c (_initialize_infrun): Likewise.
3146 * record-btrace.c (record_btrace_push_target): Likewise.
3147 * record-full.c (record_full_open): Likewise.
3148 * remote-notif.c (remote_notif_state_allocate): Likewise.
3149 * remote.c (remote_target::open_1): Likewise.
3150 * tui/tui-win.c (tui_initialize_win): Likewise.
3151
3152 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3153
3154 * async-event.c (initialize_async_signal_handlers): Pass name to
3155 add_file_handler
3156 * event-top.c (ui_register_input_event_handler): Likewise.
3157 * linux-nat.c (linux_nat_target::async): Likewise.
3158 * run-on-main-thread.c (_initialize_run_on_main_thread):
3159 Likewise
3160 * ser-base.c (reschedule): Likewise.
3161 (ser_base_async): Likewise.
3162 * tui/tui-io.c: Likewise.
3163 * top.h (struct ui) <num>: New field.
3164 * top.c (highest_ui_num): New variable.
3165 (ui::ui): Initialize num.
3166
3167 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3168
3169 * observable.h <inferior_created>: Remove parameters. Update all
3170 listeners.
3171 * inferior.h (post_create_inferior): Remove target parameter.
3172 Update all callers.
3173
3174 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3175
3176 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3177 and DW_MACRO_undef_strx.
3178 (dwarf_decode_macros): Likewise
3179 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3180 which is the value of DW_AT_str_offsets_base.
3181 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3182 str_offsets_base.
3183
3184 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3185
3186 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3187
3188 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3189
3190 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3191 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3192
3193 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3194
3195 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3196
3197 2020-09-30 Tom de Vries <tdevries@suse.de>
3198
3199 PR symtab/26683
3200 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3201
3202 2020-09-30 Tom Tromey <tromey@adacore.com>
3203
3204 * dwarf2/read.c (handle_variant): Use constant_value.
3205
3206 2020-09-29 Tom Tromey <tom@tromey.com>
3207
3208 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3209 (read_file_scope, dwarf2_get_pc_bounds)
3210 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3211 (read_structure_type, handle_struct_member_die)
3212 (read_enumeration_type, read_array_type, read_set_type)
3213 (read_tag_pointer_type, read_tag_reference_type)
3214 (read_subroutine_type, read_base_type, read_subrange_type)
3215 (read_full_die_1, partial_die_info::read)
3216 (partial_die_info::read, by, new_symbol)
3217 (dwarf2_const_value_data, dwarf2_const_value_attr)
3218 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3219 (prepare_one_comp_unit): Update.
3220 * dwarf2/attribute.h (DW_UNSND): Remove.
3221
3222 2020-09-29 Tom Tromey <tom@tromey.com>
3223
3224 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3225 (read_subroutine_type, partial_die_info::read)
3226 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3227 (dwarf2_add_member_fn): Update.
3228 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3229 * dwarf2/attribute.c (attribute::as_boolean): New method.
3230
3231 2020-09-29 Tom Tromey <tom@tromey.com>
3232
3233 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3234 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3235 method.
3236 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3237
3238 2020-09-29 Tom Tromey <tom@tromey.com>
3239
3240 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3241 the attribute's form.
3242
3243 2020-09-29 Tom Tromey <tom@tromey.com>
3244
3245 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3246 (dwarf2_add_member_fn): Update.
3247 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3248 * dwarf2/attribute.c (attribute::defaulted): New method, from
3249 is_valid_DW_AT_defaulted.
3250
3251 2020-09-29 Tom Tromey <tom@tromey.com>
3252
3253 * dwarf2/read.c (dw2_get_file_names_reader)
3254 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3255 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3256 (dwarf2_symbol_mark_computed): Use as_unsigned.
3257 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3258 method.
3259 <form_is_section_offset>: Update comment.
3260
3261 2020-09-29 Tom Tromey <tom@tromey.com>
3262
3263 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3264 dwarf2_default_access_attribute. Look up attribute.
3265 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3266 Update.
3267
3268 2020-09-29 Tom Tromey <tom@tromey.com>
3269
3270 * dwarf2/read.c (skip_one_die): Update.
3271 (read_full_die_1): Change how reprocessing is done.
3272 (partial_die_info::read): Update.
3273 (read_attribute_value): Remove need_reprocess parameter.
3274 (read_attribute): Likewise.
3275 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3276 New method.
3277
3278 2020-09-29 Tom Tromey <tom@tromey.com>
3279
3280 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3281 (dwarf2_const_value_attr, dump_die_shallow)
3282 (dwarf2_fetch_constant_bytes): Update.
3283 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3284 comment.
3285 <set_address>: New method.
3286 (DW_ADDR): Remove.
3287 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3288 (attribute::as_string, attribute::as_address): Add assert.
3289
3290 2020-09-29 Tom Tromey <tom@tromey.com>
3291
3292 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3293 (read_attribute_reprocess, read_attribute_value): Update.
3294 (read_attribute): Clear requires_reprocessing.
3295 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3296 form_requires_reprocessing>: New methods.
3297 <string_init>: Clear requires_reprocessing.
3298 <set_unsigned_reprocess>: New method.
3299 <name>: Shrink by one bit.
3300 <requires_reprocessing>: New member.
3301 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3302 method.
3303
3304 2020-09-29 Tom Tromey <tom@tromey.com>
3305
3306 * dwarf2/read.c (read_attribute_value): Update.
3307 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3308 set_unsigned>: New methods.
3309 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3310
3311 2020-09-29 Tom Tromey <tom@tromey.com>
3312
3313 * dwarf2/read.c (get_alignment, read_array_order)
3314 (read_attribute_value, dwarf2_const_value_attr)
3315 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3316 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3317 New methods.
3318 (DW_SND): Remove.
3319
3320 2020-09-29 Tom Tromey <tom@tromey.com>
3321
3322 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3323 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3324 Update.
3325 * dwarf2/attribute.h (struct attribute) <as_signature,
3326 set_signature>: New methods.
3327 (DW_SIGNATURE): Remove.
3328
3329 2020-09-29 Tom Tromey <tom@tromey.com>
3330
3331 * dwarf2/read.c (read_call_site_scope)
3332 (handle_data_member_location, dwarf2_add_member_fn)
3333 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3334 (partial_die_info::read, read_attribute_value)
3335 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3336 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3337 (dwarf2_symbol_mark_computed): Update.
3338 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3339 methods.
3340 (DW_BLOCK): Remove.
3341 * dwarf2/attribute.c (attribute::form_is_block): Add
3342 DW_FORM_data16.
3343
3344 2020-09-29 Tom Tromey <tom@tromey.com>
3345
3346 * dwarf2/read.c (read_cutu_die_from_dwo)
3347 (read_attribute_reprocess, read_attribute_value, read_attribute)
3348 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3349 (dwarf2_fetch_constant_bytes): Update.
3350 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3351 <set_string_noncanonical, set_string_canonical>: New methods.
3352 <string_is_canonical>: Update comment.
3353 <canonical_string_p>: Add assert.
3354 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3355 * dwarf2/attribute.c (attribute::form_is_string): New method.
3356 (attribute::string): Use it.
3357
3358 2020-09-29 Tom Tromey <tom@tromey.com>
3359
3360 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3361 (dump_die_shallow): Use canonical_string_p.
3362 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3363 method.
3364
3365 2020-09-29 Tom Tromey <tom@tromey.com>
3366
3367 * dwarf2/read.c (partial_die_info::read)
3368 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3369 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3370 attribute::as_string.
3371
3372 2020-09-29 Tom Tromey <tom@tromey.com>
3373
3374 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3375 DW_ADDR.
3376 (attribute::string): Don't use DW_STRING.
3377 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3378 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3379
3380 2020-09-29 Tom Tromey <tom@tromey.com>
3381
3382 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3383 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3384 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3385 * dwarf2/attribute.h (struct attribute): Rename methods.
3386 * dwarf2/attribute.c (attribute::as_address): Rename from
3387 value_as_address.
3388 (attribute::as_string): Rename from value_as_string.
3389
3390 2020-09-29 Tom Tromey <tom@tromey.com>
3391
3392 * dwarf2/read.c (partial_die_info::read) <case
3393 DW_AT_linkage_name>: Use value_as_string.
3394 (dwarf2_string_attr): Use value_as_string.
3395 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3396 method.
3397 * dwarf2/attribute.c (attribute::value_as_string): New method.
3398
3399 2020-09-29 Pedro Alves <pedro@palves.net>
3400
3401 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3402 defined before using '#pragma GCC diagnostic' instead of checking
3403 __clang__.
3404
3405 2020-09-28 Tom Tromey <tom@tromey.com>
3406
3407 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3408 (handle_signal_stop): Update.
3409 * procfs.c (procfs_target::insert_watchpoint): Update.
3410 * target.h (target_have_steppable_watchpoint): Now a function.
3411
3412 2020-09-28 Tom Tromey <tom@tromey.com>
3413
3414 * infrun.c (set_schedlock_func): Update.
3415 * target.h (target_can_lock_scheduler): Now a function.
3416
3417 2020-09-28 Tom Tromey <tom@tromey.com>
3418
3419 * inferior.h (class inferior) <has_execution>: Update.
3420 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3421 * valops.c (find_function_in_inferior)
3422 (value_allocate_space_in_inferior): Update.
3423 * top.c (kill_or_detach): Update.
3424 * target.c (target_preopen, set_target_permissions): Update.
3425 (target_has_execution_current): Remove.
3426 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3427 Update.
3428 * solib.c (update_solib_list, reload_shared_libraries): Update.
3429 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3430 * solib-dsbt.c (enable_break): Update.
3431 * score-tdep.c (score7_fetch_inst): Update.
3432 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3433 Update.
3434 * remote.c (remote_target::start_remote)
3435 (remote_target::remote_check_symbols, remote_target::open_1)
3436 (remote_target::remote_detach_1, remote_target::verify_memory)
3437 (remote_target::xfer_partial, remote_target::read_description)
3438 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3439 * record-full.c (record_full_open_1): Update.
3440 * record-btrace.c (record_btrace_target_open): Update.
3441 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3442 (value_nsstring): Update.
3443 * linux-thread-db.c (add_thread_db_info)
3444 (thread_db_find_new_threads_silently, check_thread_db_callback)
3445 (try_thread_db_load_1, record_thread): Update.
3446 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3447 Update.
3448 * linux-fork.c (checkpoint_command): Update.
3449 * infrun.c (set_non_stop, set_observer_mode)
3450 (check_multi_target_resumption, for_each_just_stopped_thread)
3451 (maybe_remove_breakpoints, normal_stop)
3452 (class infcall_suspend_state): Update.
3453 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3454 (info_program_command, attach_command): Update.
3455 * infcall.c (call_function_by_hand_dummy): Update.
3456 * inf-loop.c (inferior_event_handler): Update.
3457 * gcore.c (gcore_command, derive_heap_segment): Update.
3458 * exec.c (exec_file_command): Update.
3459 * eval.c (evaluate_subexp): Update.
3460 * compile/compile.c (compile_to_object): Update.
3461 * cli/cli-dump.c (restore_command): Update.
3462 * breakpoint.c (update_watchpoint)
3463 (update_inserted_breakpoint_locations)
3464 (insert_breakpoint_locations, get_bpstat_thread): Update.
3465 * target.h (target_has_execution): Remove macro.
3466 (target_has_execution_current): Don't declare.
3467 (target_has_execution): Rename from target_has_execution_1. Add
3468 argument default.
3469
3470 2020-09-28 Tom Tromey <tom@tromey.com>
3471
3472 * mi/mi-main.c (exec_reverse_continue)
3473 (mi_cmd_list_target_features): Update.
3474 * infrun.c (set_exec_direction_func): Update.
3475 * target.c (default_execution_direction): Update.
3476 * reverse.c (exec_reverse_once): Update.
3477 * target.h (target_can_execute_reverse): Now a function.
3478
3479 2020-09-28 Tom Tromey <tom@tromey.com>
3480
3481 * tui/tui-regs.c (tui_get_register)
3482 (tui_data_window::show_registers): Update.
3483 * thread.c (scoped_restore_current_thread::restore)
3484 (scoped_restore_current_thread::scoped_restore_current_thread):
3485 Update.
3486 * regcache-dump.c (regcache_print): Update.
3487 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3488 Update.
3489 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3490 * mep-tdep.c (current_me_module, current_options): Update.
3491 * linux-thread-db.c (thread_db_load): Update.
3492 * infcmd.c (registers_info, info_vector_command)
3493 (info_float_command): Update.
3494 * ia64-tdep.c (ia64_frame_prev_register)
3495 (ia64_sigtramp_frame_prev_register): Update.
3496 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3497 * gcore.c (derive_stack_segment): Update.
3498 * frame.c (get_current_frame, has_stack_frames): Update.
3499 * findvar.c (language_defn::read_var_value): Update.
3500 * arm-tdep.c (arm_pc_is_thumb): Update.
3501 * target.c (target_has_registers): Rename from
3502 target_has_registers_1.
3503 * target.h (target_has_registers): Remove macro.
3504 (target_has_registers): Rename from target_has_registers_1.
3505
3506 2020-09-28 Tom Tromey <tom@tromey.com>
3507
3508 * windows-tdep.c (tlb_make_value): Update.
3509 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3510 * thread.c (scoped_restore_current_thread::restore)
3511 (scoped_restore_current_thread::scoped_restore_current_thread)
3512 (thread_command): Update.
3513 * stack.c (backtrace_command_1, frame_apply_level_command)
3514 (frame_apply_all_command, frame_apply_command): Update.
3515 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3516 Update.
3517 * gcore.c (derive_stack_segment): Update.
3518 * frame.c (get_current_frame, has_stack_frames): Update.
3519 * auxv.c (info_auxv_command): Update.
3520 * ada-tasks.c (ada_build_task_list): Update.
3521 * target.c (target_has_stack): Rename from target_has_stack_1.
3522 * target.h (target_has_stack): Remove macro.
3523 (target_has_stack): Rename from target_has_stack_1.
3524
3525 2020-09-28 Tom Tromey <tom@tromey.com>
3526
3527 * target.c (target_has_memory): Rename from target_has_memory_1.
3528 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3529 * thread.c (scoped_restore_current_thread::restore)
3530 (scoped_restore_current_thread::scoped_restore_current_thread):
3531 Update.
3532 * frame.c (get_current_frame, has_stack_frames): Update.
3533 * target.h (target_has_memory): Remove macro.
3534 (target_has_memory): Rename from target_has_memory_1.
3535
3536 2020-09-28 Tom Tromey <tom@tromey.com>
3537
3538 * target.c (target_has_all_memory_1): Remove.
3539 * target.h (target_has_all_memory): Remove define.
3540 (target_has_all_memory_1): Don't declare.
3541
3542 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3543
3544 * ser-base.c: Adjust comments formatting.
3545
3546 2020-09-27 Tom Tromey <tom@tromey.com>
3547
3548 PR tui/25342:
3549 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3550
3551 2020-09-27 Tom Tromey <tom@tromey.com>
3552
3553 PR tui/25342:
3554 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3555
3556 2020-09-27 Tom Tromey <tom@tromey.com>
3557
3558 * unittests/tui-selftests.c: Update.
3559 * tui/tui-winsource.h (struct tui_source_window_base)
3560 <extra_margin, show_line_number, refresh_pad>: New methods.
3561 <m_max_length, m_pad>: New members.
3562 (tui_copy_source_line): Update.
3563 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3564 first_col, line_width, ndigits parameters. Add length.
3565 (tui_source_window_base::show_source_line): Write to pad. Line
3566 number now 0-based.
3567 (tui_source_window_base::refresh_pad): New method.
3568 (tui_source_window_base::show_source_content): Write to pad. Call
3569 refresh_pad.
3570 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3571 not refill.
3572 (tui_source_window_base::update_exec_info): Call
3573 show_line_number.
3574 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3575 method.
3576 <m_digits>: New member.
3577 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3578 and m_max_length.
3579 (tui_source_window::show_line_number): New method.
3580 * tui/tui-io.h (tui_puts): Fix comment.
3581 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3582 m_max_length.
3583
3584 2020-09-27 Tom Tromey <tom@tromey.com>
3585
3586 * tui/tui-winsource.c
3587 (tui_source_window_base::set_is_exec_point_at): Don't call
3588 show_source_line.
3589
3590 2020-09-27 Tom Tromey <tom@tromey.com>
3591
3592 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3593 method.
3594 <erase>: Update.
3595 <cursor_x, cursor_y>: Remove.
3596 <m_inner_window>: New member.
3597 (tui_py_window::rerender): Create inner window.
3598 (tui_py_window::output): Write to inner window.
3599
3600 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3601
3602 PR python/26586
3603 * cli/cli-script.c (execute_control_commands): don't set
3604 instream to nullptr here as this breaks the from_tty argument
3605 to gdb.execute in Python.
3606 (execute_user_command): set instream to nullptr here instead.
3607
3608 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3609
3610 * infrun.h (infrun_debug_printf): Fix formatting.
3611 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3612
3613 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3614
3615 * compile/compile-object-load.h (struct munmap_list): Add
3616 explicitly-defined move constructor.
3617
3618 2020-09-24 Tom Tromey <tromey@adacore.com>
3619
3620 PR tui/26638:
3621 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3622 method.
3623 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3624 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3625 (tui_prev_win): Rewrite.
3626
3627 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3628
3629 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3630 in WOW64 processes as SIGINT.
3631 * nat/windows-nat.h: Make wow64_process a shared variable.
3632 * windows-nat.c: Remove static wow64_process variable.
3633
3634 2020-09-23 Tom Tromey <tom@tromey.com>
3635
3636 PR symtab/25470:
3637 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3638 offset and bit size.
3639 * printcmd.c (print_scalar_formatted): Handle zero-length
3640 integer.
3641 (print_scalar_formatted): Use bit_size_differs_p.
3642 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3643 constant.
3644 (union type_specific): <int_stuff>: New member.
3645 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3646 methods.
3647 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3648 TYPE_SPECIFIC_FIELD.
3649 (recursive_dump_type, copy_type_recursive): Update.
3650 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3651 DW_AT_data_bit_offset.
3652
3653 2020-09-23 Tom Tromey <tom@tromey.com>
3654
3655 * utils.h (class gdb_argv): Add move operators.
3656 <append>: New methods.
3657 * compile/compile.c (build_argc_argv): Remove.
3658 (compile_args_argc): Remove.
3659 (compile_args_argv): Change type.
3660 (set_compile_args): Simplify.
3661 (append_args): Remove.
3662 (filter_args): Remove argcp parameter.
3663 (get_args): Return gdb_argv. Simplify.
3664 (compile_to_object): Update.
3665
3666 2020-09-23 Tom Tromey <tom@tromey.com>
3667
3668 * compile/compile-object-run.c (do_module_cleanup)
3669 <~do_module_cleanup> :Remove.
3670 (do_module_cleanup): Update.
3671 * compile/compile-object-load.h (struct munmap_list): Add move
3672 assignment operator.
3673 <source_file>: Now a std::string.
3674 <munmap_list>: Rename. No longer a pointer.
3675 * compile/compile-object-load.c (struct setup_sections_data): Add
3676 constructor.
3677 <setup_one_section>: Declare.
3678 <munmap_list>: Move earlier.
3679 <m_bfd>: New member.
3680 <m_last_size, m_last_section_first, m_last_prot,
3681 m_last_max_alignment>: Rename, add initializers where needed.
3682 (setup_sections_data::setup_one_section): Rename from
3683 setup_sections. Update.
3684 (compile_object_load): Update. Don't use bfd_map_over_sections.
3685
3686 2020-09-23 Tom Tromey <tom@tromey.com>
3687
3688 * compile/compile-object-run.c (struct do_module_cleanup): Add
3689 parameters to constructor. Update destructor.
3690 <source_file, scope, scope_data, out_value_type, out_value_addr,
3691 munmap_list_head, objfile_name_string>: Remove.
3692 <module>: New member.
3693 (do_module_cleanup): Update.
3694 (compile_object_run): Update.
3695
3696 2020-09-23 Tom Tromey <tom@tromey.com>
3697
3698 * compile/compile.c (eval_compile_command): Update.
3699 * compile/compile-object-run.h (compile_object_run): Take a
3700 compile_module_up.
3701 * compile/compile-object-run.c (compile_object_run): Take a
3702 compile_module_up.
3703 * compile/compile-object-load.h (struct compile_module): Add
3704 constructor, destructor.
3705 (compile_module_up): New typedef.
3706 (compile_object_load): Return compile_object_up.
3707 * compile/compile-object-load.c (compile_object_load): Return
3708 compile_module_up.
3709
3710 2020-09-23 Tom Tromey <tom@tromey.com>
3711
3712 * compile/compile-object-run.c (struct do_module_cleanup): Add
3713 constructor, destructor.
3714 <objfile_name_string>: Don't use struct hack.
3715 (do_module_cleanup): Use delete.
3716 (compile_object_run): Use new.
3717
3718 2020-09-23 Tom Tromey <tom@tromey.com>
3719
3720 * compile/compile-cplus-types.c
3721 (compile_cplus_convert_struct_or_union): Use std::vector.
3722 (compile_cplus_convert_func): Likewise.
3723 * compile/compile-c-types.c (convert_func): Use std::vector.
3724
3725 2020-09-21 Tom Tromey <tromey@adacore.com>
3726
3727 * sparc-tdep.c (sparc32_skip_prologue): Use
3728 skip_prologue_using_sal.
3729
3730 2020-09-19 Tom Tromey <tom@tromey.com>
3731
3732 * symfile.c (add_section_size_callback): Remove.
3733 (load_one_section): Rename from load_section_callback. Change
3734 parameters.
3735 (generic_load): Use foreach.
3736
3737 2020-09-19 Tom Tromey <tom@tromey.com>
3738
3739 * exec.c (add_to_section_table): Remove.
3740 (build_section_table): Use foreach.
3741
3742 2020-09-19 Tom Tromey <tom@tromey.com>
3743
3744 * elfread.c (elf_locate_sections): Change parameters.
3745 (elf_symfile_read): Use foreach.
3746
3747 2020-09-19 Tom Tromey <tom@tromey.com>
3748
3749 * cli/cli-dump.c (struct callback_data): Remove.
3750 (restore_one_section): Rename from restore_section_callback.
3751 Change parameters.
3752 (restore_binary_file): Change parameters.
3753 (restore_command): Use foreach.
3754
3755 2020-09-19 Tom Tromey <tom@tromey.com>
3756
3757 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3758 (gcore_copy_callback): Likewise.
3759 (gcore_memory_sections): Use foreach.
3760
3761 2020-09-19 Tom Tromey <tom@tromey.com>
3762
3763 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3764 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3765 parameters.
3766 (generic_elf_osabi_sniffer): Use foreach.
3767 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3768 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3769
3770 2020-09-19 Tom Tromey <tom@tromey.com>
3771
3772 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3773 (dwarf2_get_dwz_file): Use foreach.
3774 (dwarf2_locate_dwo_sections): Change parameters.
3775 (open_and_init_dwo_file): Use foreach.
3776 (dwarf2_locate_common_dwp_sections): Change parameters.
3777 (open_and_init_dwp_file): Use foreach.
3778
3779 2020-09-19 Tom Tromey <tom@tromey.com>
3780
3781 * symfile.h: (find_lowest_section): Don't declare.
3782 * symfile.c (find_lowest_section): Now static. Change
3783 parameters.
3784 (struct place_section_arg): Remove.
3785 (place_section): Change parameters.
3786 (addr_info_make_relative): Use foreach.
3787 (symfile_dummy_outputs): Remove.
3788 (default_symfile_relocate): Use foreach.
3789
3790 2020-09-19 Tom Tromey <tom@tromey.com>
3791
3792 * objfiles.c (add_to_objfile_sections): Rename from
3793 add_to_objfile_sections_full.
3794 (add_to_objfile_sections): Remove.
3795 (build_objfile_section_table): Use foreach.
3796
3797 2020-09-19 Tom Tromey <tom@tromey.com>
3798
3799 * stap-probe.c (get_stap_base_address_1): Remove.
3800 (get_stap_base_address): Use foreach.
3801
3802 2020-09-19 Tom Tromey <tom@tromey.com>
3803
3804 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3805 parameters.
3806 (gdb_bfd_close_or_warn): Use foreach.
3807
3808 2020-09-19 Tom Tromey <tom@tromey.com>
3809
3810 * corelow.c (add_to_thread_list): Change parameters.
3811 (core_target_open): Use foreach.
3812
3813 2020-09-19 Tom Tromey <tom@tromey.com>
3814
3815 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3816 existing function.
3817
3818 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3819
3820 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3821 for arrays.
3822
3823 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3824
3825 * eval.c: Remove 'f-lang.h' include.
3826 (value_f90_subarray): Moved to f-lang.c.
3827 (eval_call): Renamed to...
3828 (evaluate_subexp_do_call): ...this, is no longer static, header
3829 comment moved into header file.
3830 (evaluate_funcall): Update call to eval_call.
3831 (skip_undetermined_arglist): Moved to f-lang.c.
3832 (fortran_value_subarray): Likewise.
3833 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3834 moved to evaluate_subexp_f.
3835 (calc_f77_array_dims): Moved to f-lang.c
3836 * expprint.c (print_subexp_funcall): New function.
3837 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3838 moved to print_subexp_f, OP_FUNCALL uses new function.
3839 (dump_subexp_body_funcall): New function.
3840 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3841 moved to dump_subexp_f, OP_FUNCALL uses new function.
3842 * expression.h (evaluate_subexp_do_call): Declare.
3843 * f-lang.c (value_f90_subarray): Moved from eval.c.
3844 (skip_undetermined_arglist): Likewise.
3845 (calc_f77_array_dims): Likewise.
3846 (fortran_value_subarray): Likewise.
3847 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3848 (operator_length_f): Likewise.
3849 (print_subexp_f): Likewise.
3850 (dump_subexp_body_f): Likewise.
3851 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3852 declaration of this operation to here.
3853 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3854 support moved to operator_length_f.
3855 * parser-defs.h (dump_subexp_body_funcall): Declare.
3856 (print_subexp_funcall): Declare.
3857 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3858 fortran-operator.def.
3859
3860 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3861
3862 * eval.c (fortran_value_subarray): New function, content is taken
3863 from...
3864 (evaluate_subexp_standard): ...here, in two places. Now arrays
3865 and strings both call the new function.
3866 (calc_f77_array_dims): Add header comment, handle strings.
3867
3868 2020-09-18 Victor Collod <vcollod@nvidia.com>
3869
3870 PR gdb/26635
3871 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3872 (i386_analyze_prologue): Call i386_skip_endbr.
3873
3874 2020-09-18 Tom Tromey <tromey@adacore.com>
3875
3876 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3877 (windows_nat_target::wait): Update.
3878 * target/wait.h (enum target_wait_flag): New. Use
3879 DEF_ENUM_FLAGS_TYPE.
3880 * target/target.h (target_wait): Change type of options.
3881 * target.h (target_options_to_string, default_target_wait):
3882 Update.
3883 (struct target_ops) <wait>: Change type of options.
3884 * target.c (target_wait, default_target_wait, do_option): Change
3885 type of "options".
3886 (target_options_to_string): Likewise.
3887 * target-delegates.c: Rebuild.
3888 * target-debug.h (target_debug_print_target_wait_flags): Rename
3889 from target_debug_print_options.
3890 * sol-thread.c (class sol_thread_target) <wait>: Update.
3891 (sol_thread_target::wait): Update.
3892 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3893 (rs6000_nat_target::wait): Update.
3894 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3895 Update.
3896 (remote_target::wait_ns, remote_target::wait_as): Change type of
3897 "options".
3898 (remote_target::wait): Update.
3899 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3900 (gdbsim_target::wait): Update.
3901 * record-full.c (class record_full_base_target) <wait>: Update.
3902 (record_full_wait_1): Change type of "options".
3903 (record_full_base_target::wait): Update.
3904 * record-btrace.c (class record_btrace_target) <wait>: Update.
3905 (record_btrace_target::wait): Update.
3906 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3907 Update.
3908 (ravenscar_thread_target::wait): Update.
3909 * procfs.c (class procfs_target) <wait>: Update.
3910 (procfs_target::wait): Update.
3911 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3912 * obsd-nat.c (obsd_nat_target::wait): Update.
3913 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3914 (nto_procfs_target::wait): Update.
3915 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3916 * nbsd-nat.c (nbsd_wait): Change type of "options".
3917 (nbsd_nat_target::wait): Update.
3918 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3919 (thread_db_target::wait): Update.
3920 * linux-nat.h (class linux_nat_target) <wait>: Update.
3921 * linux-nat.c (linux_nat_target::wait): Update.
3922 (linux_nat_wait_1): Update.
3923 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3924 "options".
3925 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3926 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3927 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3928 (go32_nat_target::wait): Update.
3929 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3930 * gnu-nat.c (gnu_nat_target::wait): Update.
3931 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3932 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3933 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3934 * darwin-nat.c (darwin_nat_target::wait): Update.
3935 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3936 (bsd_uthread_target::wait): Update.
3937 * aix-thread.c (class aix_thread_target) <wait>: Update.
3938 (aix_thread_target::wait): Update.
3939
3940 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3941
3942 * compile/compile-object-run.c (create_copied_type_recursive): New
3943 function.
3944 (compile_object_run): Use new function.
3945
3946 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3947
3948 * NEWS: Mention x86_64 Cygwin core file support.
3949
3950 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3951
3952 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3953 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3954
3955 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3956
3957 * windows-tdep.h: Add prototypes.
3958 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3959 (i386_windows_core_pid_to_str): Move and rename ...
3960 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3961 (windows_core_pid_to_str): ... and here.
3962 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3963
3964 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3965 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3966 (amd64_windows_init_abi_common): ... and register.
3967
3968 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3969
3970 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3971 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3972
3973 2020-09-18 Pedro Alves <pedro@palves.net>
3974
3975 PR gdb/26631
3976 * thread.c (thread_find_command): Switch inferior before calling
3977 target methods.
3978
3979 2020-09-17 Tom Tromey <tromey@adacore.com>
3980
3981 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3982 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3983 (tdesc_arch_data_up): New typedef.
3984 (tdesc_use_registers, tdesc_data_alloc): Update.
3985 (tdesc_data_cleanup): Don't declare.
3986 * target-descriptions.c (tdesc_data_alloc): Return a
3987 tdesc_arch_data_up.
3988 (tdesc_arch_data_deleter::operator()): Rename from
3989 tdesc_data_cleanup. Change argument type.
3990 (tdesc_use_registers): Change early_data to an rvalue reference.
3991 (tdesc_use_registers): Don't use delete.
3992 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3993 * s390-tdep.c (s390_gdbarch_init): Update.
3994 * rx-tdep.c (rx_gdbarch_init): Update.
3995 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3996 * riscv-tdep.c (riscv_gdbarch_init): Update.
3997 * or1k-tdep.c (or1k_gdbarch_init): Update.
3998 * nios2-tdep.c (nios2_gdbarch_init): Update.
3999 * nds32-tdep.c (nds32_gdbarch_init): Update.
4000 * mips-tdep.c (mips_gdbarch_init): Update.
4001 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4002 * m68k-tdep.c (m68k_gdbarch_init): Update.
4003 * i386-tdep.c (i386_gdbarch_init): Update.
4004 * arm-tdep.c (arm_gdbarch_init): Update.
4005 * arc-tdep.c (arc_tdesc_init): Update.
4006 (arc_gdbarch_init): Update.
4007 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4008
4009 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4010
4011 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4012 for WOW64 processes.
4013
4014 2020-09-17 Tom Tromey <tom@tromey.com>
4015
4016 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4017
4018 2020-09-17 Tom Tromey <tom@tromey.com>
4019
4020 * value.c (preserve_values): Update.
4021 * python/py-type.c (save_objfile_types): Update.
4022 * guile/scm-type.c (save_objfile_types): Update.
4023 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4024 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4025 * compile/compile-object-run.c (compile_object_run): Update.
4026
4027 2020-09-17 Tom Tromey <tom@tromey.com>
4028
4029 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4030 Remove.
4031 <m_table>: Now htab_up.
4032 * typeprint.c (typedef_hash_table::recursively_update)
4033 (typedef_hash_table::add_template_parameters)
4034 (typedef_hash_table::typedef_hash_table): Update.
4035 (typedef_hash_table::~typedef_hash_table): Remove.
4036 (typedef_hash_table::typedef_hash_table)
4037 (typedef_hash_table::find_global_typedef)
4038 (typedef_hash_table::find_typedef): Update.
4039
4040 2020-09-17 Tom Tromey <tom@tromey.com>
4041
4042 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4043
4044 2020-09-17 Tom Tromey <tom@tromey.com>
4045
4046 * linespec.c (class decode_compound_collector)
4047 <~decode_compound_collector>: Remove.
4048 <m_unique_syms>: Now htab_up.
4049 (decode_compound_collector::operator ()): Update.
4050 (class symtab_collector) <~symtab_collector>: Remove.
4051 <m_symtab_table>: Now htab_up.
4052 (symtab_collector::operator ()): Update.
4053
4054 2020-09-17 Tom Tromey <tom@tromey.com>
4055
4056 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4057 (filename_seen_cache::clear): Update.
4058 (~filename_seen_cache): Remove.
4059 (filename_seen_cache::seen): Update.
4060 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4061 htab_up.
4062 <~filename_seen_cache>: Remove.
4063 <traverse>: Update.
4064
4065 2020-09-17 Tom Tromey <tom@tromey.com>
4066
4067 * completer.c (completion_tracker::discard_completions)
4068 (completion_tracker::~completion_tracker)
4069 (completion_tracker::maybe_add_completion)
4070 (completion_tracker::remove_completion)
4071 (completion_tracker::recompute_lowest_common_denominator)
4072 (completion_tracker::build_completion_result): Update.
4073 * completer.h (class completion_tracker) <have_completions>:
4074 Update.
4075 <m_entries_hash>: Now htab_up.
4076
4077 2020-09-17 Tom Tromey <tom@tromey.com>
4078
4079 * breakpoint.c (ambiguous_names_p): Use htab_up.
4080
4081 2020-09-17 Tom Tromey <tom@tromey.com>
4082
4083 * auto-load.c (struct auto_load_pspace_info)
4084 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4085 <loaded_script_files, loaded_script_texts>: Change type to
4086 htab_up.
4087 (~auto_load_pspace_info) Remove.
4088 (init_loaded_scripts_info, maybe_add_script_file)
4089 (maybe_add_script_text, auto_load_info_scripts): Update.
4090
4091 2020-09-17 Tom Tromey <tromey@adacore.com>
4092
4093 * c-exp.y (name_obstack): Now static.
4094
4095 2020-09-17 Chungyi Chi <demonic@csie.io>
4096
4097 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4098
4099 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4100
4101 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4102 (add_solib_catchpoint): Likewise.
4103 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4104 to bool.
4105 (add_solib_catchpoint): Change int parameter/variable to bool.
4106 (catch_load_or_unload): Likewise.
4107 (init_catchpoint): Likewise.
4108 (create_fork_vfork_event_catchpoint): Likewise.
4109 (catch_fork_command_1): Likewise.
4110 (catch_exec_command_1): Likewise.
4111
4112 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4113
4114 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4115 Change instance_flags to m_instance_flags.
4116
4117 2020-09-16 Tom Tromey <tromey@adacore.com>
4118
4119 PR gdb/26598:
4120 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4121
4122 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4123
4124 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4125 PL_FLAG_EXEC.
4126 (fbsd_nat_target::insert_exec_catchpoint)
4127 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4128 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4129 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4130
4131 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4132
4133 * configure.ac: Remove check for kinfo_getvmmap().
4134 * configure, config.in: Regenerate.
4135 * fbsd-nat.c (fbsd_read_mapping): Remove
4136 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4137 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4138 kinfo_get_vmmap() are always present.
4139
4140 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4141
4142 * fbsd-nat.c: Always include support for
4143 TARGET_OBJECT_SIGNAL_INFO.
4144
4145 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4146
4147 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4148 sysctl and remove procfs fallback.
4149
4150 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4151
4152 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4153 * fbsd-nat.h: Likewise.
4154
4155 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4156
4157 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4158 argument.
4159
4160 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4161
4162 * ada-lang.c (ada_language_data): Delete.
4163 (ada_language): Remove references to ada_language_data.
4164 * c-lang.c (c_language_data): Delete.
4165 (c_language): Remove references to c_language_data.
4166 (cplus_language_data): Delete.
4167 (cplus_language): Remove references to cplus_language_data.
4168 (asm_language_data): Delete.
4169 (asm_language): Remove references to asm_language_data.
4170 (minimal_language_data): Delete.
4171 (minimal_language): Remove references to minimal_language_data.
4172 * d-lang.c (d_language_data): Delete.
4173 (d_language): Remove references to d_language_data.
4174 * f-lang.c (f_language_data): Delete.
4175 (f_language): Remove references to f_language_data.
4176 * go-lang.c (go_language_data): Delete.
4177 (go_language): Remove references to go_language_data.
4178 * language.c (unknown_language_data): Delete.
4179 (unknown_language): Remove references to unknown_language_data.
4180 (auto_language_data): Delete.
4181 (auto_language): Remove references to auto_language_data.
4182 * language.h (language_data): Delete struct.
4183 (language_defn): No longer inherit from language_data.
4184 * m2-lang.c (m2_language_data): Delete.
4185 (m2_language): Remove references to m2_language_data.
4186 * objc-lang.c (objc_language_data): Delete.
4187 (objc_language): Remove references to objc_language_data.
4188 * opencl-lang.c (opencl_language_data): Delete.
4189 (opencl_language): Remove references to opencl_language_data.
4190 * p-lang.c (pascal_language_data): Delete.
4191 (pascal_language): Remove references to pascal_language_data.
4192 * rust-lang.c (rust_language_data): Delete.
4193 (rust_language): Remove references to rust_language_data.
4194
4195 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4196
4197 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4198 initializer.
4199 (ada_language::opcode_print_table): New member function.
4200 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4201 (c_language::opcode_print_table): New member function.
4202 (cplus_language_data): Remove la_op_print_tab initializer.
4203 (cplus_language::opcode_print_table): New member function.
4204 (asm_language_data): Remove la_op_print_tab initializer.
4205 (asm_language::opcode_print_table): New member function.
4206 (minimal_language_data): Remove la_op_print_tab initializer.
4207 (minimal_language::opcode_print_table): New member function.
4208 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4209 (d_language::opcode_print_table): New member function.
4210 * expprint.c (print_subexp_standard): Update call to
4211 opcode_print_table.
4212 (op_string): Likewise.
4213 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4214 (f_language::opcode_print_table): New member function.
4215 * go-lang.c (go_language_data): Remove la_op_print_tab
4216 initializer.
4217 (go_language::opcode_print_table): New member function.
4218 * language.c (unknown_language_data): Remove la_op_print_tab
4219 initializer.
4220 (unknown_language::opcode_print_table): New member function.
4221 (auto_language_data): Remove la_op_print_tab initializer.
4222 (auto_language::opcode_print_table): New member function.
4223 * language.h (language_data): Remove la_op_print_tab field.
4224 (language_defn::opcode_print_table): Declare new member function.
4225 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4226 initializer.
4227 (m2_language::opcode_print_table): New member function.
4228 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4229 initializer.
4230 (objc_language::opcode_print_table): New member function.
4231 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4232 initializer.
4233 (opencl_language::opcode_print_table): New member function.
4234 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4235 initializer.
4236 (pascal_language::opcode_print_table): New member function.
4237 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4238 initializer.
4239 (rust_language::opcode_print_table): New member function.
4240
4241 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4242
4243 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4244 (ada_language::expression_ops): New member function.
4245 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4246 (c_language::expression_ops): New member function.
4247 (cplus_language_data): Remove la_exp_desc initializer.
4248 (cplus_language::expression_ops): New member function.
4249 (asm_language_data): Remove la_exp_desc initializer.
4250 (asm_language::expression_ops): New member function.
4251 (minimal_language_data): Remove la_exp_desc initializer.
4252 (minimal_language::expression_ops): New member function.
4253 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4254 (d_language::expression_ops): New member function.
4255 * eval.c (evaluate_subexp): Update call to expression_ops.
4256 * expprint.c (print_subexp): Likewise.
4257 (op_name): Likewise.
4258 (dump_subexp_body): Likewise.
4259 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4260 (f_language::expression_ops): New member function.
4261 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4262 (go_language::expression_ops): New member function.
4263 * language.c (language_defn::expression_ops): New function.
4264 (unknown_language_data): Remove la_exp_desc initializer.
4265 (auto_language_data): Likewise.
4266 * language.h (language_data): Remove la_exp_desc field.
4267 (language_defn::expression_ops): Declare new member function.
4268 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4269 (m2_language::expression_ops): New member function.
4270 * objc-lang.c (objc_language_data): Remove la_exp_desc
4271 initializer.
4272 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4273 initializer.
4274 (opencl_language::expression_ops): New member function.
4275 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4276 * parse.c (operator_length): Update call to expression_ops.
4277 (exp_iterate): Likewise.
4278 * rust-lang.c (rust_language_data): Remove la_exp_desc
4279 initializer.
4280 (ruse_language::expression_ops): New member function.
4281
4282 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4283
4284 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4285 initializer.
4286 (ada_language::varobj_ops): New member function.
4287 * c-lang.c (c_language_data): Remove la_varobj_ops
4288 initializer.
4289 (cplus_language_data): Likewise.
4290 (cplus_language::varobj_ops): New member function.
4291 (asm_language_data): Remove la_varobj_ops initializer.
4292 (minimal_language_data): Likewise.
4293 * d-lang.c (d_language_data): Likewise.
4294 * f-lang.c (f_language_data): Likewise.
4295 * go-lang.c (go_language_data): Likewise.
4296 * language.c (language_defn::varobj_ops): New function.
4297 (unknown_language_data): Remove la_varobj_ops
4298 initializer.
4299 (auto_language_data): Likewise.
4300 * language.h (language_data): Remove la_varobj_ops field.
4301 (language_defn::varobj_ops): Declare new member function.
4302 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4303 * objc-lang.c (objc_language_data): Likewise.
4304 * opencl-lang.c (opencl_language_data): Likewise.
4305 * p-lang.c (pascal_language_data): Likewise.
4306 * rust-lang.c (rust_language_data): Likewise.
4307 * varobj.c (varobj_create): Update call to varobj_ops.
4308 * varobj.h (default_varobj_ops): Delete define.
4309
4310 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4311
4312 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4313 initializer.
4314 * c-lang.c (c_language_data): Likewise.
4315 (c_language::macro_expansion): New member function.
4316 (cplus_language_data): Likewise.
4317 (cplus_language::macro_expansion): New member function.
4318 (asm_language_data): Likewise.
4319 (asm_language::macro_expansion): New member function.
4320 (minimal_language_data): Likewise.
4321 (minimal_language::macro_expansion): New member function.
4322 * d-lang.c (d_language_data): Remove la_macro_expansion
4323 initializer.
4324 * f-lang.c (f_language_data): Likewise.
4325 * go-lang.c (go_language_data): Likewise.
4326 * language.c (unknown_language_data): Likewise.
4327 (auto_language_data): Likewise.
4328 * language.h (language_data): Remove la_macro_expansion field.
4329 (language_defn::macro_expansion): New member function.
4330 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4331 initializer.
4332 * objc-lang.c (objc_language_data): Likewise.
4333 (objc_language::macro_expansion): New member function.
4334 * opencl-lang.c (opencl_language_data): Likewise.
4335 (opencl_language::macro_expansion): New member function.
4336 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4337 initializer.
4338 * rust-lang.c (rust_language_data): Likewise.
4339 * symtab.c (default_collect_symbol_completion_matches_break_on):
4340 Update call to macro_expansion.
4341
4342 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4343
4344 * ada-lang.c (ada_language_data): Remove la_array_ordering
4345 initializer.
4346 * c-lang.c (c_language_data): Likewise.
4347 (cplus_language_data): Likewise.
4348 (asm_language_data): Likewise.
4349 (minimal_language_data): Likewise.
4350 * d-lang.c (d_language_data): Likewise.
4351 * dwarf2/read.c (read_array_order): Update for call to
4352 array_ordering.
4353 * f-lang.c (f_language_data): Remove la_array_ordering
4354 initializer.
4355 (f_language::array_ordering): New member function.
4356 * go-lang.c (go_language_data): Remove la_array_ordering
4357 initializer.
4358 * language.c (unknown_language_data): Likewise.
4359 (auto_language_data): Likewise.
4360 * language.h (language_data): Delete la_array_ordering field.
4361 (language_defn::array_ordering): New member function.
4362 * m2-lang.c (m2_language_data): Remove la_array_ordering
4363 initializer.
4364 * objc-lang.c (objc_language_data): Likewise.
4365 * opencl-lang.c (opencl_language_data): Likewise.
4366 * p-lang.c (pascal_language_data): Likewise.
4367 * rust-lang.c (rust_language_data): Likewise.
4368
4369 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4370
4371 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4372 initializer.
4373 * c-lang.c (c_language_data): Likewise.
4374 (cplus_language_data): Likewise.
4375 (asm_language_data): Likewise.
4376 (minimal_language_data): Likewise.
4377 * d-lang.c (d_language_data): Likewise.
4378 * f-lang.c (f_language_data): Likewise.
4379 (f_language::case_sensitivity): New member function.
4380 * go-lang.c (go_language_data): Remove la_case_sensitivity
4381 initializer.
4382 * language.c (enum case_mode): Moved here from language.h.
4383 (case_mode): Make static.
4384 (show_case_command): Update for case_sensitivity being a method.
4385 (set_case_command): Likewise.
4386 (set_range_case): Likewise.
4387 (unknown_language_data): Remove la_case_sensitivity initializer.
4388 (auto_language_data): Likewise.
4389 * language.h (case_mode): Delete, move enum declaration to
4390 language.c.
4391 (language_data): Delete la_case_sensitivity field.
4392 (language_defn::case_sensitivity): New member function.
4393 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4394 initializer.
4395 * objc-lang.c (objc_language_data): Likewise.
4396 * opencl-lang.c (opencl_language_data): Likewise.
4397 * p-lang.c (pascal_language_data): Likewise.
4398 * rust-lang.c (rust_language_data): Likewise.
4399
4400 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4401
4402 * ada-lang.c (ada_language_data): Remove la_range_check
4403 initializer.
4404 * c-lang.c (c_language_data): Likewise.
4405 (cplus_language_data): Likewise.
4406 (asm_language_data): Likewise.
4407 (minimal_language_data): Likewise.
4408 * d-lang.c (d_language_data): Likewise.
4409 * f-lang.c (f_language_data): Likewise.
4410 (f_language::range_checking_on_by_default): New member function.
4411 * go-lang.c (go_language_data): Remove la_range_check initializer.
4412 * language.c (enum range_mode): Moved here from language.h.
4413 (range_mode): Made static.
4414 (show_range_command): Update to use
4415 range_checking_on_by_default.
4416 (set_range_command): Likewise.
4417 (set_range_case): Likewise.
4418 (unknown_language_data): Remove la_range_check initializer.
4419 (auto_language_data): Likewise.
4420 * language.h (range_mode): Delete. Enum definition moved to
4421 language.c.
4422 (language_data): Remove la_range_check field.
4423 (language_defn::range_checking_on_by_default): New member
4424 function.
4425 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4426 (m2_language::range_checking_on_by_default): New member function.
4427 * objc-lang.c (objc_language_data): Remove la_range_check
4428 initializer.
4429 * opencl-lang.c (opencl_language_data): Likewise.
4430 * p-lang.c (pascal_language_data): Likewise.
4431 (pascal_language::range_checking_on_by_default): New member
4432 function.
4433 * rust-lang.c (rust_language_data): Remove la_range_check
4434 initializer.
4435 (rust_language::range_checking_on_by_default): New member
4436 function.
4437
4438 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4439
4440 * dwarf2/read.c (dwarf2_physname): Remove special case for
4441 language_go.
4442 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4443 member function.
4444
4445 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4446
4447 * ada-lang.c (ada_language_data): Remove
4448 la_store_sym_names_in_linkage_form_p initializer.
4449 (ada_language::store_sym_names_in_linkage_form_p): New member
4450 function.
4451 * c-lang.c (c_language_data): Remove
4452 la_store_sym_names_in_linkage_form_p initializer.
4453 (c_language::store_sym_names_in_linkage_form_p): New member
4454 function.
4455 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4456 initializer.
4457 (asm_language_data): Likewise.
4458 (asm_language::store_sym_names_in_linkage_form_p): New member
4459 function.
4460 (minimal_language_data): Remove
4461 la_store_sym_names_in_linkage_form_p initializer.
4462 (minimal_language::store_sym_names_in_linkage_form_p): New member
4463 function.
4464 * d-lang.c (d_language_data): Remove
4465 la_store_sym_names_in_linkage_form_p initializer.
4466 * dwarf2/read.c (dwarf2_physname): Update call to
4467 store_sym_names_in_linkage_form_p.
4468 * f-lang.c (f_language_data): Remove
4469 la_store_sym_names_in_linkage_form_p initializer.
4470 * go-lang.c (go_language_data): Remove
4471 la_store_sym_names_in_linkage_form_p initializer.
4472 * language.c (unknown_language_data): Remove
4473 la_store_sym_names_in_linkage_form_p initializer.
4474 (unknown_language::store_sym_names_in_linkage_form_p): New member
4475 function.
4476 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4477 initializer.
4478 (auto_language::store_sym_names_in_linkage_form_p): New member
4479 function.
4480 * language.h (language_data): Remove
4481 la_store_sym_names_in_linkage_form_p member variable.
4482 (language_defn::store_sym_names_in_linkage_form_p): New member
4483 function.
4484 * m2-lang.c (m2_language_data): Remove
4485 la_store_sym_names_in_linkage_form_p initializer.
4486 * objc-lang.c (objc_language_data): Likewise.
4487 * opencl-lang.c (opencl_language_data): Likewise.
4488 * p-lang.c (pascal_language_data): Likewise.
4489 * rust-lang.c (rust_language_data): Likewise.
4490
4491 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4492
4493 * ada-lang.c (ada_language_data): Remove string_lower_bound
4494 initializer.
4495 * c-lang.c (c_language_data): Likewise.
4496 (cplus_language_data): Likewise.
4497 (asm_language_data): Likewise.
4498 (minimal_language_data): Likewise.
4499 * d-lang.c (d_language_data): Likewise.
4500 * f-lang.c (f_language_data): Likewise.
4501 * go-lang.c (go_language_data): Likewise.
4502 * language.c (unknown_language_data): Likewise.
4503 (auto_language_data): Likewise.
4504 * language.h (language_data): Remove string_lower_bound field.
4505 (language_defn::string_lower_bound): New member function.
4506 * m2-lang.c (m2_language_data): Remove string_lower_bound
4507 initializer.
4508 (m2_language::string_lower_bound): New member function.
4509 * objc-lang.c (objc_language_data): Remove string_lower_bound
4510 initializer.
4511 * opencl-lang.c (opencl_language_data): Likewise.
4512 * p-lang.c (pascal_language_data): Likewise.
4513 * rust-lang.c (rust_language_data): Likewise.
4514 * valops.c (value_cstring): Update call to string_lower_bound.
4515 (value_string): Likewise.
4516 * value.c (allocate_repeated_value): Likewise.
4517
4518 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4519
4520 * valops.c (value_repeat): Fix incorrect argument name in comment.
4521
4522 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4523
4524 * ada-lang.c (ada_language_data): Remove c_style_arrays
4525 initializer.
4526 (ada_language::c_style_arrays_p): New member fuction.
4527 * c-lang.c (c_language_data): Remove c_style_arrays
4528 initializer.
4529 (cplus_language_data): Likewise.
4530 (asm_language_data): Likewise.
4531 (minimal_language_data): Likewise.
4532 * d-lang.c (d_language_data): Likewise.
4533 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4534 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4535 (f_language::c_style_arrays_p): New member function.
4536 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4537 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4538 * language.c (unknown_language_data): Remove c_style_arrays
4539 initializer.
4540 (auto_language_data): Likewise.
4541 * language.h (language_data): Remove c_style_arrays field.
4542 (language_defn::c_style_arrays_p): New member function.
4543 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4544 (m2_language::c_style_arrays_p): New member function.
4545 * objc-lang.c (objc_language_data): Remove c_style_arrays
4546 initializer.
4547 * opencl-lang.c (opencl_language_data): Likewise.
4548 * p-lang.c (pascal_language_data): Likewise.
4549 * rust-lang.c (rust_language_data): Likewise.
4550 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4551 and update local variable to a bool.
4552 * valops.c (value_cast): Update call to c_style_arrays_p.
4553 (value_array): Likewise.
4554 * value.c (coerce_array): Likewise.
4555
4556 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4557
4558 * ada-lang.c (ada_language_data): Remove la_language initializer.
4559 * c-lang.c (c_language_data): Likewise.
4560 (cplus_language_data): Likewise.
4561 (asm_language_data): Likewise.
4562 (minimal_language_data): Likewise.
4563 * d-lang.c (d_language_data): Likewise.
4564 * f-lang.c (f_language_data): Likewise.
4565 * go-lang.c (go_language_data): Likewise.
4566 * language.c (unknown_language_data): Likewise.
4567 (auto_language_data): Likewise.
4568 * language.h (language_data): Remove la_language field.
4569 (language_defn::language_defn): Initialise la_language field.
4570 (language_defn::la_language): New member variable.
4571 * m2-lang.c (m2_language_data): Remove la_language field.
4572 * objc-lang.c (objc_language_data): Likewise.
4573 * opencl-lang.c (opencl_language_data): Likewise.
4574 * p-lang.c (pascal_language_data): Likewise.
4575 * rust-lang.c (rust_language_data): Likewise.
4576
4577 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4578
4579 * ada-lang.c (ada_extensions): Delete, moved into
4580 ada_language::filename_extensions.
4581 (ada_language_data): Remove la_filename_extensions initializer.
4582 (ada_language::filename_extensions): New member function.
4583 * c-lang.c (c_extensions): Delete, moved into
4584 c_language::filename_extensions.
4585 (c_language_data): Remove la_filename_extensions initializer.
4586 (c_language::filename_extensions): New member function.
4587 (cplus_extensions): Delete, moved into
4588 cplus_language::filename_extensions.
4589 (cplus_language_data): Remove la_filename_extensions initializer.
4590 (cplus_language::filename_extensions): New member function.
4591 (asm_extensions): Delete, moved into
4592 asm_language::filename_extensions.
4593 (asm_language_data): Remove la_filename_extensions initializer.
4594 (asm_language::filename_extensions): New member function.
4595 (minimal_language_data): Remove la_filename_extensions
4596 initializer.
4597 * d-lang.c (d_extensions): Delete, moved into
4598 d_language::filename_extensions.
4599 (d_language_data): Remove la_filename_extensions initializer.
4600 (d_language::filename_extensions): New member function.
4601 * f-lang.c (f_extensions): Delete, moved into
4602 f_language::filename_extensions.
4603 (f_language_data): Remove la_filename_extensions initializer.
4604 (f_language::filename_extensions): New member function.
4605 * go-lang.c (go_language_data): Remove la_filename_extensions
4606 initializer.
4607 * language.c (add_set_language_command): Update now that
4608 filename_extensions returns a vector.
4609 (unknown_language_data): Remove la_filename_extensions
4610 initializer.
4611 (auto_language_data): Likewise.
4612 * language.h (language_data): Remove la_filename_extensions field.
4613 (language_defn::filename_extensions): New member function.
4614 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4615 initializer.
4616 * objc-lang.c (objc_extensions): Delete, moved into
4617 objc_language::filename_extensions.
4618 (objc_language_data): Remove la_filename_extensions initializer.
4619 (objc_language::filename_extensions): New member function.
4620 * opencl-lang.c (opencl_language_data): Remove
4621 la_filename_extensions initializer.
4622 * p-lang.c (pascal_extensions): Delete, moved into
4623 pascal_language::filename_extensions.
4624 (pascal_language_data): Remove la_filename_extensions initializer.
4625 (pascal_language::filename_extensions): New member function.
4626 * rust-lang.c (rust_extensions): Delete, moved into
4627 rust_language::filename_extensions.
4628 (rust_language_data): Remove la_filename_extensions initializer.
4629 (rust_language::filename_extensions): New member function.
4630 * symfile.c (add_filename_language): Add new assert.
4631
4632 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4633
4634 * ada-lang.c (ada_language_data): Remove la_name and
4635 la_natural_name initializers.
4636 (ada_language::name): New member function.
4637 (ada_language::natural_name): New member function.
4638 * c-lang.c (c_language_data): Remove la_name and
4639 la_natural_name initializers.
4640 (c_language::name): New member function.
4641 (c_language::natural_name): New member function.
4642 (cplus_language_data): Remove la_name and
4643 la_natural_name initializers.
4644 (cplus_language::name): New member function.
4645 (cplus_language::natural_name): New member function.
4646 (asm_language_data): Remove la_name and
4647 la_natural_name initializers.
4648 (asm_language::name): New member function.
4649 (asm_language::natural_name): New member function.
4650 (minimal_language_data): Remove la_name and
4651 la_natural_name initializers.
4652 (minimal_language::name): New member function.
4653 (minimal_language::natural_name): New member function.
4654 * compile/compile.c (compile_to_object): Update call to
4655 lanugage_defn::name.
4656 * d-lang.c (d_language_data): Remove la_name and
4657 la_natural_name initializers.
4658 (d_language::name): New member function.
4659 (d_language::natural_name): New member function.
4660 * expprint.c (print_subexp_standard): Update call to
4661 language_defn::name.
4662 (dump_raw_expression): Likewise
4663 (dump_prefix_expression): Likewise.
4664 * f-lang.c (f_language_data): Remove la_name and
4665 la_natural_name initializers.
4666 (f_language::name): New member function.
4667 (f_language::natural_name): New member function.
4668 * go-lang.c (go_language_data): Remove la_name and
4669 la_natural_name initializers.
4670 (go_language::name): New member function.
4671 (go_language::natural_name): New member function.
4672 * language.c (show_language_command): Update call to
4673 language_defn::name.
4674 (set_language_command): Likewise.
4675 (language_enum): Likewise.
4676 (language_str): Likewise.
4677 (add_set_language_command): Likewise, use
4678 language_defn::natural_name in the doc string.
4679 (unknown_language_data): Remove la_name and
4680 la_natural_name initializers.
4681 (unknown_language::name): New member function.
4682 (unknown_language::natural_name): New member function.
4683 (auto_language_data): Remove la_name and
4684 la_natural_name initializers.
4685 (auto_language::name): New member function.
4686 (auto_language::natural_name): New member function.
4687 (language_lookup_primitive_type_as_symbol): Update call to
4688 language_defn::name.
4689 * language.h (language_data): Remove la_name and la_natural_name
4690 member variables.
4691 (language_defn::name): New member function.
4692 (language_defn::natural_name): New member function.
4693 * m2-lang.c (m2_language_data): Remove la_name and
4694 la_natural_name initializers.
4695 (m2_language::name): New member function.
4696 (m2_language::natural_name): New member function.
4697 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4698 language_defn::natural_name.
4699 * objc-lang.c (objc_language_data): Remove la_name and
4700 la_natural_name initializers.
4701 (objc_language::name): New member function.
4702 (objc_language::natural_name): New member function.
4703 * opencl-lang.c (opencl_language_data): Remove la_name and
4704 la_natural_name initializers.
4705 (opencl_language::name): New member function.
4706 (opencl_language::natural_name): New member function.
4707 * p-lang.c (pascal_language_data): Remove la_name and
4708 la_natural_name initializers.
4709 (pascal_language::name): New member function.
4710 (pascal_language::natural_name): New member function.
4711 * rust-lang.c (rust_language_data): Remove la_name and
4712 la_natural_name initializers.
4713 (rust_language::name): New member function.
4714 (rust_language::natural_name): New member function.
4715 * symtab.c (lookup_language_this): Update call to
4716 language_defn::name.
4717
4718 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4719
4720 * ada-lang.c (ada_language_data): Remove la_name_of_this
4721 initializer.
4722 * ax-gdb.c (gen_expr): Update call to name_of_this.
4723 * c-exp.y (classify_name): Likewise.
4724 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4725 (cplus_language_data): Likewise.
4726 (cplus_language::name_of_this): New member function.
4727 (asm_language_data): Remove la_name_of_this initializer.
4728 (minimal_language_data): Likewise.
4729 * d-lang.c (d_language_data): Likewise.
4730 (d_language::name_of_this): New member function.
4731 * expprint.c (print_subexp_standard): Update call to name_of_this.
4732 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4733 * go-lang.c (go_language_data): Likewise.
4734 * language.c (unknown_language_data): Likewise.
4735 (unknown_language::name_of_this): New member function.
4736 (auto_language_data): Remove la_name_of_this initializer.
4737 (auto_language::name_of_this): New member function.
4738 * language.h (language_data): Delete la_name_of_this member
4739 variable.
4740 (language_defn::name_of_this): New member function.
4741 * m2-lang.c (m2_language_data): Remove la_name_of_this
4742 initializer.
4743 * objc-lang.c (objc_language_data): Likewise.
4744 (objc_language::name_of_this): New member function.
4745 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4746 initializer.
4747 * p-lang.c (pascal_language_data): Likewise.
4748 (pascal_language::name_of_this): New member function.
4749 * rust-lang.c (rust_language_data): Remove la_name_of_this
4750 initializer.
4751 * symtab.c (lookup_language_this): Update call to name_of_this.
4752 (lookup_symbol_aux): Likewise.
4753 * valops.c (value_of_this): Likewise.
4754
4755 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4756
4757 * ada-lang.c (ada_language_data): Remove
4758 la_struct_too_deep_ellipsis initializer.
4759 (ada_language::struct_too_deep_ellipsis): New member function.
4760 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4761 initializer.
4762 (cplus_language_data): Likewise.
4763 (asm_language_data): Likewise.
4764 (minimal_language_data): Likewise.
4765 * cp-valprint.c (cp_print_value): Update call to
4766 struct_too_deep_ellipsis.
4767 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4768 initializer.
4769 * f-lang.c (f_language_data): Likewise.
4770 (f_language::struct_too_deep_ellipsis): New member function.
4771 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4772 initializer.
4773 * language.c (unknown_language_data): Likewise.
4774 (auto_language_data): Likewise.
4775 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4776 member variable.
4777 (language_defn::struct_too_deep_ellipsis): New member function.
4778 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4779 initializer.Q
4780 * objc-lang.c (objc_language_data): Likewise.
4781 * opencl-lang.c (opencl_language_data): Likewise.
4782 * p-lang.c (pascal_language_data): Likewise.
4783 * rust-lang.c (rust_language_data): Likewise.
4784 * valprint.c (val_print_check_max_depth): Update call to
4785 struct_too_deep_ellipsis.
4786
4787 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4788
4789 * MAINTAINERS (Write After Approval): Add myself.
4790
4791 2020-09-15 Tom Tromey <tom@tromey.com>
4792
4793 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4794 Remove.
4795
4796 2020-09-15 Tom Tromey <tom@tromey.com>
4797
4798 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4799 and TYPE_CODE_METHODPTR cases.
4800 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4801 (c_value_print_inner): Update.
4802 * valprint.c (generic_value_print_memberptr): New function, from
4803 c_value_print_memberptr.
4804 (generic_value_print): Use it. Call cplus_print_method_ptr.
4805
4806 2020-09-15 Tom Tromey <tromey@adacore.com>
4807
4808 * python/python-internal.h (PyInt_FromLong): Remove define.
4809 * python/py-value.c (convert_value_from_python): Use
4810 gdb_py_object_from_longest.
4811 * python/py-type.c (typy_get_code): Use
4812 gdb_py_object_from_longest.
4813 * python/py-symtab.c (salpy_get_line): Use
4814 gdb_py_object_from_longest.
4815 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4816 gdb_py_object_from_longest.
4817 * python/py-record.c (recpy_gap_reason_code): Use
4818 gdb_py_object_from_longest.
4819 * python/py-record-btrace.c (recpy_bt_insn_size)
4820 (recpy_bt_func_level, btpy_list_count): Use
4821 gdb_py_object_from_longest.
4822 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4823 gdb_py_object_from_longest. Fix error handling.
4824 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4825 gdb_py_object_from_longest.
4826 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4827 gdb_py_object_from_longest.
4828 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4829 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4830 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4831
4832 2020-09-15 Tom Tromey <tromey@adacore.com>
4833
4834 * python/python.c (gdbpy_parameter_value): Use
4835 gdb_py_object_from_ulongest.
4836
4837 2020-09-15 Tom Tromey <tromey@adacore.com>
4838
4839 * python/py-infevents.c (create_register_changed_event_object):
4840 Use gdb_py_object_from_longest.
4841 * python/py-exitedevent.c (create_exited_event_object): Use
4842 gdb_py_object_from_longest.
4843
4844 2020-09-15 Tom Tromey <tromey@adacore.com>
4845
4846 * python/python.c (gdbpy_parameter_value): Use
4847 gdb_py_object_from_longest.
4848 * python/py-type.c (convert_field, typy_range): Use
4849 gdb_py_object_from_longest.
4850 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4851 gdb_py_object_from_longest.
4852 * python/py-lazy-string.c (stpy_get_length): Use
4853 gdb_py_object_from_longest.
4854 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4855 gdb_py_object_from_longest.
4856 * python/py-infevents.c (create_memory_changed_event_object): Use
4857 gdb_py_object_from_longest.
4858 * python/py-inferior.c (infpy_get_num): Use
4859 gdb_py_object_from_longest.
4860 (infpy_get_pid): Likewise.
4861
4862 2020-09-15 Tom Tromey <tromey@adacore.com>
4863
4864 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4865 defines.
4866 * python/py-value.c (valpy_long): Use
4867 gdb_py_object_from_ulongest.
4868 * python/py-symtab.c (salpy_get_pc): Use
4869 gdb_py_object_from_ulongest.
4870 (salpy_get_last): Likewise.
4871 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4872 gdb_py_object_from_ulongest.
4873 * python/py-lazy-string.c (stpy_get_address): Use
4874 gdb_py_object_from_ulongest.
4875 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4876 * python/py-arch.c (archpy_disassemble): Use
4877 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4878 error handling.
4879
4880 2020-09-15 Tom Tromey <tromey@adacore.com>
4881
4882 * python/python-internal.h (gdb_py_long_from_longest): Remove
4883 defines.
4884 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4885 * python/py-type.c (convert_field, typy_get_sizeof): Use
4886 gdb_py_object_from_longest.
4887 * python/py-record-btrace.c (btpy_list_index): Use
4888 gdb_py_object_from_longest.
4889
4890 2020-09-15 Tom Tromey <tromey@adacore.com>
4891
4892 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4893 * python/py-record.c (recpy_element_number): Use
4894 gdb_py_object_from_longest.
4895 (recpy_gap_number): Likewise.
4896
4897 2020-09-15 Tom Tromey <tromey@adacore.com>
4898
4899 * top.c (ui::ui): Update.
4900 (highest_ui_num): Remove.
4901 * top.h (struct ui) <num>: Remove.
4902
4903 2020-09-15 Tom Tromey <tromey@adacore.com>
4904
4905 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4906 * ui-style.c (ansi_regex_text): Now array.
4907 * rust-exp.y (number_regex_text): Now array.
4908 * linespec.c (linespec_quote_characters): Now array.
4909 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4910 Now arrays.
4911
4912 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4913
4914 * debuginfod-support.c (debuginfod_client_deleter): New.
4915 (debuginfod_client_up): New.
4916 (debuginfod_init): Return debuginfod_client_up.
4917 (debuginfod_source_query): Adjust.
4918 (debuginfod_debuginfo_query): Adjust.
4919
4920 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4921
4922 * debuginfod-support.c (debuginfod_source_query): Use
4923 make_unique_xstrdup.
4924
4925 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4926
4927 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4928 with `type::instance_flags`.
4929
4930 2020-09-14 Michael Mullin <masmullin@gmail.com>
4931
4932 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4933 Remove baton parameter.
4934
4935 2020-09-14 Pedro Alves <pedro@palves.net>
4936
4937 * Makefile.in (SELFTESTS_SRCS): Add
4938 unittests/enum-flags-selftests.c.
4939 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4940 btrace_function_flags instead of enum btrace_function_flag.
4941 * compile/compile-c-types.c (convert_qualified): Use
4942 enum_flags::raw.
4943 * compile/compile-cplus-symbols.c (convert_one_symbol)
4944 (convert_symbol_bmsym):
4945 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4946 (compile_cplus_convert_struct_or_union_methods)
4947 (compile_cplus_instance::convert_qualified_base):
4948 * go-exp.y (parse_string_or_char): Add cast to int.
4949 * unittests/enum-flags-selftests.c: New file.
4950 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4951 type to btrace_thread_flags from btrace_thread_flag.
4952 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4953 local's type to btrace_thread_flags from btrace_thread_flag. Add
4954 cast in DEBUG call.
4955
4956 2020-09-14 Pedro Alves <pedro@palves.net>
4957
4958 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4959 * gdbtypes.c (address_space_name_to_int): Rename to ...
4960 (address_space_name_to_type_instance_flags): ... this.
4961 (address_space_int_to_name): Rename to ...
4962 (address_space_type_instance_flags_to_name): ... this.
4963 * gdbtypes.h (address_space_name_to_int): Rename to ...
4964 (address_space_name_to_type_instance_flags): ... this.
4965 (address_space_int_to_name): Rename to ...
4966 (address_space_type_instance_flags_to_name): ... this.
4967 * type-stack.c (type_stack::insert): Adjust to rename.
4968 * type-stack.h (type_stack::insert): Likewise.
4969
4970 2020-09-14 Pedro Alves <pedro@palves.net>
4971 Andrew Burgess <andrew.burgess@embecosm.com>
4972
4973 * avr-tdep.c (avr_address_class_type_flags): Return
4974 type_instance_flags.
4975 (avr_address_class_type_flags_to_name): Take a
4976 type_instance_flags.
4977 (avr_address_class_name_to_type_flags): Return bool and take a
4978 type_instance_flags.
4979 * d-lang.c (build_d_types): Use type::set_instance_flags.
4980 * ft32-tdep.c (ft32_address_class_type_flags): Return
4981 type_instance_flags.
4982 (ft32_address_class_type_flags_to_name): Take a
4983 type_instance_flags.
4984 (ft32_address_class_name_to_type_flags): Return bool and take a
4985 type_instance_flags.
4986 (ft32_gdbarch_init): Use type::set_instance_flags.
4987 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4988 * gdbarch.h, gdbarch.c: Regenerate.
4989 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4990 (address_class_name_to_type_flags): Use type_instance_flags and
4991 bool.
4992 * gdbtypes.c (address_space_name_to_int)
4993 (address_space_int_to_name, make_qualified_type): Use
4994 type_instance_flags.
4995 (make_qualified_type): Use type_instance_flags and
4996 type::set_instance_flags.
4997 (make_type_with_address_space, make_cv_type, make_vector_type)
4998 (check_typedef): Use type_instance_flags.
4999 (recursive_dump_type): Cast type_instance_flags to unsigned for
5000 printing.
5001 (copy_type_recursive): Use type::set_instance_flags.
5002 (gdbtypes_post_init): Use type::set_instance_flags.
5003 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5004 <m_instance_flags>: ... this.
5005 <instance_flags, set_instance_flags>: New methods.
5006 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5007 (SET_TYPE_INSTANCE_FLAGS): New.
5008 (address_space_name_to_int, address_space_int_to_name)
5009 (make_type_with_address_space): Pass flags using
5010 type_instance_flags instead of int.
5011 * stabsread.c (cleanup_undefined_types_noname): Use
5012 type::set_instance_flags.
5013 * s390-tdep.c (s390_address_class_type_flags): Return
5014 type_instance_flags.
5015 (s390_address_class_type_flags_to_name): Take a
5016 type_instance_flags.
5017 (s390_address_class_name_to_type_flags): Return bool and take a
5018 type_instance_flags.
5019 * type-stack.c (type_stack::follow_types): Use
5020 type_instance_flags.
5021 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5022
5023 2020-09-14 Tom Tromey <tromey@adacore.com>
5024
5025 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5026 * x86-tdep.c (x86_is_thunk_register_name)
5027 (x86_in_indirect_branch_thunk): Update.
5028 * sparc64-tdep.c (sparc64_fpu_register_names)
5029 (sparc64_cp0_register_names, sparc64_register_names)
5030 (sparc64_pseudo_register_names): Now const.
5031 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5032 cp0_registers_num>: Now const.
5033 * sparc-tdep.c (sparc_core_register_names)
5034 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5035 (sparc32_pseudo_register_names): Now const.
5036 (validate_tdesc_registers): Update.
5037 * rust-lang.c (rust_extensions): Now const.
5038 * p-lang.c (p_extensions): Now const.
5039 * objc-lang.c (objc_extensions): Now const.
5040 * nto-tdep.c (nto_thread_state_str): Now const.
5041 * moxie-tdep.c (moxie_register_names): Now const.
5042 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5043 Now const.
5044 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5045 (mips_linux_reg_names): Now const.
5046 (mips_gdbarch_init): Update.
5047 * microblaze-tdep.c (microblaze_register_names): Now const.
5048 * m68k-tdep.c (m68k_register_names): Now const.
5049 * m32r-tdep.c (m32r_register_names): Now const.
5050 * ia64-tdep.c (ia64_register_names): Now const.
5051 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5052 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5053 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5054 ymm_avx512_register_names, pkeys_register_names>: Now const.
5055 * i386-tdep.c (i386_register_names, i386_zmm_names)
5056 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5057 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5058 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5059 * f-lang.c (f_extensions): Now const.
5060 * d-lang.c (d_extensions): Now const.
5061 * csky-tdep.c (csky_register_names): Now const.
5062 * charset.c (default_charset_names, charset_enum): Now const.
5063 (_initialize_charset): Update.
5064 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5065 const.
5066 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5067 (bsd_uthread_solib_loaded): Update.
5068 (bsd_uthread_state): Now const.
5069 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5070 (amd64_ymm_avx512_names, amd64_ymmh_names)
5071 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5072 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5073 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5074 (amd64_dword_names): Now const.
5075 * agent.c (can_use_agent_enum): Now const.
5076 * ada-tasks.c (task_states, long_task_states): Now const.
5077 * ada-lang.c (known_runtime_file_name_patterns)
5078 (known_auxiliary_function_name_patterns, attribute_names)
5079 (standard_exc, ada_extensions): Now const.
5080
5081 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5082
5083 * bcache.h (struct bcache) <bcache>: Remove constructor.
5084 <m_hash_function, m_compare_function>: Remove.
5085 <~bcache>: Make virtual.
5086 <compare>: Remove static method, introduce virtual method.
5087 <default_hash>: Remove.
5088 <hash>: New virtual method.
5089 * bcache.c (bcache::expand_hash_table): Update.
5090 (bcache::insert): Update.
5091 (bcache::hash): New.
5092 (bcache::compare): Update comment and parameter names.
5093 * gdbtypes.c (types_deeply_equal): Update.
5094 * psymtab.h (struct psymbol_bcache): New struct.
5095 (class psymtab_storage) <psymtab_storage>: Make default.
5096 <psymbol_cache>: Change type to psymbol_bcache.
5097 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5098 (psymbol_hash): Change to...
5099 (psymbol_bcache::hash): ... this.
5100 (psymbol_compare): Change to...
5101 (psymbol_bcache::compare): ... this.
5102
5103 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5104
5105 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5106 checking for initial lwp.
5107
5108 2020-09-14 Tom Tromey <tromey@adacore.com>
5109
5110 * m68k-tdep.c (m68k_extract_return_value): Use
5111 pointer_result_regnum.
5112 (m68k_store_return_value): Likewise.
5113 (m68k_reg_struct_return_p): Handle vectors and arrays.
5114 (m68k_return_value): Handle arrays.
5115 (m68k_svr4_return_value): Fix single-element aggregate handling.
5116 Handle long double. Adjust for embedded ABI.
5117 (m68k_svr4_init_abi): Set pointer_result_regnum.
5118 (m68k_embedded_init_abi): New function.
5119 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5120 (m68k_osabi_sniffer): New function.
5121 (_initialize_m68k_tdep): Register osabi sniffer.
5122 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5123 member.
5124
5125 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5126
5127 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5128 with gdb::unique_xmalloc_ptr<char>.
5129
5130 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5131
5132 * xml-support.h (xml_fetch_another): Change type to be a
5133 function_view.
5134 (xml_process_xincludes): Remove baton parameter.
5135 (xml_fetch_content_from_file): Change baton parameter to
5136 dirname.
5137 * xml-support.c (struct xinclude_parsing_data)
5138 <xinclude_parsing_data>: Remove baton parameter.
5139 <fetcher_baton>: Remove.
5140 (xinclude_start_include): Adjust.
5141 (xml_process_xincludes): Adjust.
5142 (xml_fetch_content_from_file): Replace baton parameter with
5143 dirname.
5144 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5145 (xml_init_syscalls_info): Use a lambda.
5146 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5147 (file_read_description_xml): Use a lambda.
5148 (fetch_available_features_from_target): Change baton parameter
5149 to target_ops.
5150 (target_read_description_xml): Use a lambda.
5151 (target_fetch_description_xml): Use a lambda.
5152 (string_read_description_xml): Update.
5153
5154 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5155
5156 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5157 uses with type::endianity_is_not_default.
5158
5159 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5160
5161 * gdbtypes.h (struct type) <endianity_is_not_default,
5162 set_endianity_is_not_default>: New methods.
5163 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5164 type::endianity_is_not_default, change all write call sites to
5165 use type::set_endianity_is_not_default.
5166
5167 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5168
5169 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5170 uses with type::is_fixed_instance.
5171
5172 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5173
5174 * gdbtypes.h (struct type) <is_fixed_instance,
5175 set_is_fixed_instance>: New methods.
5176 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5177 write call sites to use type::set_is_fixed_instance.
5178
5179 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5180
5181 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5182 uses with type::is_gnu_ifunc.
5183
5184 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5185
5186 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5187 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5188 use type::set_is_gnu_ifunc.
5189
5190 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5191
5192 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5193 uses with type::stub_is_supported.
5194
5195 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5196
5197 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5198 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5199 use type::set_stub_is_supported.
5200
5201 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5202
5203 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5204 uses with type::is_vector.
5205
5206 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5207
5208 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5209 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5210 use type::set_is_vector.
5211
5212 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5213
5214 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5215 uses with type::has_varargs.
5216
5217 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5218
5219 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5220 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5221 use type::set_has_varargs.
5222
5223 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5224
5225 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5226 uses with type::is_prototyped.
5227
5228 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5229
5230 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5231 New methods.
5232 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5233 call sites to use type::set_is_prototyped.
5234
5235 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5236
5237 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5238 uses with type::target_is_stub.
5239
5240 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5241
5242 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5243 New methods.
5244 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5245 sites to use type::set_target_is_stub.
5246
5247 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5248
5249 * gdbtypes.h (TYPE_STUB): Remove, replace all
5250 uses with type::is_stub.
5251
5252 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5253
5254 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5255 (TYPE_STUB): Use type::is_stub, change all write call sites to
5256 use type::set_is_stub.
5257
5258 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5259
5260 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5261 type::has_no_signedness.
5262
5263 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5264
5265 * gdbtypes.h (struct type) <has_no_signedness,
5266 set_has_no_signedness>: New methods.
5267 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5268 call sites to use type::set_has_no_signedness.
5269
5270 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5271
5272 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5273 type::is_unsigned.
5274
5275 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5276
5277 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5278 methods.
5279 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5280 sites to use type::set_is_unsigned.
5281
5282 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5283 Adam Renquinha <arenquinha@cimeq.qc.ca>
5284
5285 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5286 pointer and stack frame offset when unwinding.
5287
5288 2020-09-13 Pedro Alves <pedro@palves.net>
5289
5290 * NEWS: Document "-break-insert --qualified".
5291 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5292
5293 2020-09-13 Pedro Alves <pedro@palves.net>
5294
5295 * linespec.c (classify_mtype, compare_msyms): Delete.
5296 (search_minsyms_for_name): Remove classification logic. Instead
5297 filter out trampoline symbols if we also found an external
5298 function of the same name.
5299
5300 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5301
5302 * NEWS: Create a new section for the next release branch.
5303 Rename the section of the current branch, now that it has
5304 been cut.
5305
5306 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5307
5308 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5309 * version.in: Bump version to 11.0.50.DATE-git.
5310
5311 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5312
5313 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5314
5315 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5316 Felix Willgerodt <Felix.Willgerodt@intel.com>
5317
5318 * gdbarch.sh: Added bfloat16 type.
5319 * gdbarch.c: Regenerated.
5320 * gdbarch.h: Regenerated.
5321 * gdbtypes.c (floatformats_bfloat16): New struct.
5322 (gdbtypes_post_init): Add builtin_bfloat16.
5323 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5324 (floatformats_bfloat16): New struct.
5325 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5326 (i386_ymm_type): Add field "v16_bfloat16"
5327 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5328 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5329 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5330 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5331 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5332 * features/i386/64bit-avx512.c: Regenerated.
5333 * features/i386/64bit-sse.xml: Add bfloat16 type.
5334 * features/i386/64bit-sse.c: Regenerated.
5335
5336 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5337
5338 * i386-tdep.c (i386_zmm_type): Fix field names.
5339 (i386_ymm_type): Fix field names.
5340
5341 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5342
5343 * breakpoint.c: Fix typo in the help message of the
5344 "set breakpoint condition-evaluation" command.
5345
5346 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5347
5348 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5349 * (nbsd_nat_target::pid_to_exec_file)
5350 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5351 (nbsd_nat_target::post_startup_inferior)
5352 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5353 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5354 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5355 * (nbsd_thread_lister): Remove.
5356
5357 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5358
5359 * fork-inferior.c (startup_inferior): Avoid double free.
5360
5361 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5362
5363 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5364 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5365
5366 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5367
5368 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5369 * netbsd-nat.c: Include <sys/ptrace.h>.
5370 * (netbsd_nat::enable_proc_events): Add.
5371
5372 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5373
5374 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5375 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5376 (netbsd_nat::for_each_thread): Add.
5377 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5378 "gdbsupport/common-debug.h".
5379 * (netbsd_nat::netbsd_thread_lister)
5380 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5381 (netbsd_nat::for_each_thread): Add.
5382
5383 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5384
5385 * netbsd-nat.h: Include <unistd.h>.
5386 * (netbsd_nat::pid_to_exec_file): Add.
5387 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5388 * (netbsd_nat::pid_to_exec_file) Add.
5389
5390 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5391
5392 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5393
5394 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5395
5396 * netbsd-nat.h: New file.
5397 * netbsd-nat.c: Likewise.
5398
5399 2020-09-09 Tom Tromey <tromey@adacore.com>
5400
5401 * ada-lang.c (remove_extra_symbols): Do not increment when
5402 removing an element
5403
5404 2020-09-08 Tom Tromey <tromey@adacore.com>
5405
5406 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5407
5408 2020-09-08 Tom Tromey <tromey@adacore.com>
5409
5410 PR win32/25302:
5411 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5412 (gdb_bfd_init_data): New function.
5413 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5414
5415 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5416
5417 * infrun.c (fetch_inferior_event): Use
5418 `switch_to_target_no_thread` to switch the target.
5419
5420 2020-09-06 Tom Tromey <tom@tromey.com>
5421
5422 * symfile.h (dwarf2_free_objfile): Don't declare.
5423
5424 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5425
5426 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5427 to match 16 byte real/complex type generated by Flang compiler.
5428
5429 2020-09-03 Tom de Vries <tdevries@suse.de>
5430
5431 PR breakpoint/26546
5432 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5433 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5434
5435 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5436
5437 * maint.c (index_digits): New function.
5438 (struct maint_print_section_data): Remove.
5439 (print_bfd_section_info): Remove print_data parameter, add arg
5440 and index_digits.
5441 (print_objfile_section_info): Likewise.
5442 (print_bfd_section_info_maybe_relocated): Likewise (plus
5443 objfile).
5444 (maintenance_info_sections): Adjust calls.
5445
5446 2020-09-02 Tom Tromey <tromey@adacore.com>
5447
5448 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5449 for null pointers.
5450 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5451
5452 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5453
5454 * bcache.h (struct bcache) <insert>: Change type of `added` to
5455 pointer to bool.
5456 * bcache.c (bcache::insert): Likewise.
5457 * gdbtypes.c (check_types_worklist): Adjust.
5458 * psymtab.c (add_psymbol_to_bcache): Adjust.
5459
5460 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5461
5462 * corelow.c (unordered_set): Include.
5463 (class core_target): Add field 'm_core_unavailable_mappings'.
5464 (core_target::build_file_mappings): Print only one warning
5465 per inaccessible file. Add unavailable/broken mappings
5466 to m_core_unavailable_mappings.
5467 (core_target::xfer_partial): Call...
5468 (core_target::xfer_memory_via_mappings): New method.
5469
5470 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5471
5472 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5473 type to bool.
5474
5475 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5476
5477 * dwarf2/read.c (struct field_info): Fix indentation.
5478
5479 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5480
5481 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5482 ordering in comment.
5483 * frame.c (frame_id_eq): Fix indentation.
5484
5485 2020-08-31 Scott Linder <scott@scottlinder.com>
5486 Simon Marchi <simon.marchi@efficios.com>
5487
5488 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5489 inline frame ids in outer frame.
5490
5491 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5492
5493 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5494 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5495 (outer_frame_id): Use FID_STACK_OUTER instead of
5496 FID_STACK_INVALID.
5497 (frame_id_p): Don't check for outer_frame_id.
5498
5499 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5500
5501 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5502 regnum/frame in value. Call allocate_value_lazy.
5503 * frame.c (frame_unwind_register_value): Use
5504 val_print_not_saved.
5505
5506 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5507
5508 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5509
5510 2020-08-29 Pedro Alves <pedro@palves.net>
5511
5512 * progspace.c (print_program_space): Use all_inferiors. Switch to
5513 the inferior before calling target_pid_to_str.
5514
5515 2020-08-28 Tom Tromey <tom@tromey.com>
5516
5517 * xcoffread.c (xcoff_end_psymtab): Update comment.
5518 * dbxread.c (dbx_end_psymtab): Update comment.
5519
5520 2020-08-28 Tom de Vries <tdevries@suse.de>
5521
5522 PR breakpoint/26544
5523 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5524 event_location.
5525 (create_breakpoint): Same.
5526 (base_breakpoint_decode_location): Same.
5527 (bkpt_create_sals_from_location): Same.
5528 (bkpt_decode_location): Same.
5529 (bkpt_probe_create_sals_from_location): Same.
5530 (bkpt_probe_decode_location): Same.
5531 (tracepoint_create_sals_from_location): Same.
5532 (tracepoint_decode_location): Same.
5533 (tracepoint_probe_decode_location): Same.
5534 (strace_marker_create_sals_from_location): Same.
5535 (strace_marker_decode_location): Same.
5536 (create_sals_from_location_default): Same.
5537 (decode_location_default): Same.
5538 * breakpoint.h (struct breakpoint_ops): Same.
5539 (create_breakpoint): Same.
5540 * linespec.h (decode_line_full): Same.
5541 * linespec.c (decode_line_full): Same. Throw error if
5542 result.size () == 0.
5543
5544 2020-08-27 Pedro Alves <pedro@palves.net>
5545
5546 PR gdb/26524
5547 * breakpoint.c (until_break_fsm) <location_breakpoint,
5548 caller_breakpoint>: Delete fields.
5549 <breakpoints>: New field.
5550 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5551 two individual breakpoints.
5552 (until_break_fsm::should_stop): Loop over breakpoints in the
5553 breakpoint vector.
5554 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5555 vector.
5556 (until_break_command): Handle location expanding into multiple
5557 sals.
5558
5559 2020-08-27 Pedro Alves <pedro@palves.net>
5560
5561 PR gdb/26523
5562 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5563 bp_until breakpoints user-specified locations. Update intro
5564 comment.
5565
5566 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5567
5568 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5569 gdb_bfd_sections): New.
5570 * maint.c (print_bfd_section_info): Change param type to
5571 maint_print_section_data.
5572 (print_objfile_section_info): Likewise.
5573 (print_bfd_section_info_maybe_relocated): Likewise.
5574 (maintenance_info_sections): Use gdb_bfd_sections.
5575
5576 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5577
5578 * MAINTAINERS: Add ARC target and maintainer.
5579
5580 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5581
5582 * configure.tgt: ARC support for GNU/Linux.
5583 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5584 * arc-linux-tdep.c: New file.
5585 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5586 * arc-tdep.c (arc_write_pc): Use it.
5587
5588 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5589
5590 * arc-tdep.c (arc_check_for_hardware_loop): New.
5591 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5592
5593 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5594
5595 * arc-tdep.h: Include "gdbarch.h".
5596
5597 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5598
5599 * arch/arc.h
5600 (arc_gdbarch_features): New class to stir the selection of target XML.
5601 (arc_create_target_description): Use FEATURES to choose XML target.
5602 (arc_lookup_target_description): Use arc_create_target_description
5603 to create _new_ target descriptions or return the already created
5604 ones if the FEATURES is the same.
5605 * arch/arc.c: Implementation of prototypes described above.
5606 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5607 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5608 * arc-tdep.c (*_feature_name): Make feature names consistent.
5609 (arc_register_feature): A new struct to hold information about
5610 registers of a particular target/feature.
5611 (arc_check_tdesc_feature): Check if XML provides registers in
5612 compliance with ARC_REGISTER_FEATURE structs.
5613 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5614 (determine_*_reg_feature_set): Which feature name to look for.
5615 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5616 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5617 to expected ISA enums to be used in arc_gdbarch_features structs.
5618 * features/Makefile (FEATURE_XMLFILES): Add new files.
5619 * gdb/features/arc/v1-aux.c: New file.
5620 * gdb/features/arc/v1-aux.xml: Likewise.
5621 * gdb/features/arc/v1-core.c: Likewise.
5622 * gdb/features/arc/v1-core.xml: Likewise.
5623 * gdb/features/arc/v2-aux.c: Likewise.
5624 * gdb/features/arc/v2-aux.xml: Likewise.
5625 * gdb/features/arc/v2-core.c: Likewise.
5626 * gdb/features/arc/v2-core.xml: Likewise.
5627 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5628
5629 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5630 Andrew Burgess <andrew.burgess@embecosm.com>
5631
5632 PR m2/26372
5633 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5634 an assert. Remove single element array indexing pattern as the
5635 MULTI_SUBSCRIPT support will handle this case too.
5636
5637 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5638
5639 * value.h (valprint_check_validity): Move declaration from
5640 here...
5641 * valprint.h (valprint_check_validity): ... to here.
5642
5643 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5644
5645 * debug.h: New file.
5646 * debug.c (debug_prefixed_vprintf): New function.
5647 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5648 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5649
5650 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5651
5652 * infrun.h (infrun_debug_printf_1): New function declaration.
5653 (infrun_debug_printf): New macro.
5654 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5655 throughout.
5656 (infrun_debug_printf): New function.
5657 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5658 (handle_jit_event): Likewise.
5659
5660 2020-08-21 Mark Wielaard <mark@klomp.org>
5661
5662 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5663
5664 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5665
5666 * frame.c (enum class frame_id_status): New.
5667 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5668 (fprintf_frame): Update.
5669 (compute_frame_id): Set frame id status to "computing" on entry.
5670 Set it back to "not_computed" on failure and to "computed" on
5671 success.
5672 (get_frame_id): Assert the frame id is not being computed.
5673 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5674 (create_new_frame): Likewise.
5675 (frame_cleanup_after_sniffer): Update assert.
5676
5677 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5678
5679 * regcache.c (pid_ptid_regcache_map): New type.
5680 (target_ptid_regcache_map): Remove.
5681 (target_pid_ptid_regcache_map): New type.
5682 (regcaches): Change type to target_pid_ptid_regcache_map.
5683 (get_thread_arch_aspace_regcache): Update.
5684 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5685 case.
5686 (regcaches_size): Update.
5687 (regcache_count): Update.
5688 (registers_changed_ptid_target_pid_test): New.
5689 (_initialize_regcache): Register new test.
5690
5691 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5692
5693 * regcache.c (regcache_count): New.
5694 (struct regcache_test_data): New.
5695 (regcache_test_data_up): New.
5696 (populate_regcaches_for_test): New.
5697 (regcaches_test): Remove.
5698 (get_thread_arch_aspace_regcache_test): New.
5699 (registers_changed_ptid_all_test): New.
5700 (registers_changed_ptid_target_test): New.
5701 (registers_changed_ptid_target_ptid_test): New.
5702 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5703 (_initialize_regcache): Register new tests.
5704
5705 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5706
5707 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5708 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5709 gdbarch and aspace parameter. Use current inferior's aspace.
5710 Validate regcache's arch value.
5711 (regcaches_test): Update.
5712
5713 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5714
5715 * regcache.c (regcaches_test): Call registers_changed.
5716
5717 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5718
5719 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5720
5721 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5722
5723 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5724 to find the end of prologue for flang compiled binaries.
5725 * arm-tdep.c (arm_skip_prologue): Likewise.
5726 * i386-tdep.c (i386_skip_prologue): Likewise.
5727 * producer.c (producer_is_llvm): New function.
5728 (producer_parsing_tests): Added new tests for clang/flang.
5729 * producer.h (producer_is_llvm): New declaration.
5730
5731 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5732
5733 * linux-nat.c (linux_nat_debug_printf): New function.
5734 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5735
5736 2020-08-18 Aaron Merey <amerey@redhat.com>
5737
5738 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5739 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5740 (CLIBS): Add DEBUGINFOD_LIBS.
5741
5742 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5743
5744 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5745 'gdbarch_num_regs'.
5746
5747 2020-08-17 Tom Tromey <tromey@adacore.com>
5748
5749 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5750 ada_get_decoded_value returns NULL.
5751
5752 2020-08-17 Tom Tromey <tromey@adacore.com>
5753
5754 * python/py-inferior.c (infpy_search_memory): Use
5755 gdb_py_object_from_ulongest.
5756 * python/py-infevents.c (create_inferior_call_event_object)
5757 (create_memory_changed_event_object): Use
5758 gdb_py_object_from_ulongest.
5759 * python/py-linetable.c (ltpy_entry_get_pc): Use
5760 gdb_py_object_from_ulongest.
5761
5762 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5763
5764 * loc.c (class symbol_needs_eval_context): Fix indentation.
5765
5766 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5767
5768 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5769 bool.
5770
5771 2020-08-17 Tom de Vries <tdevries@suse.de>
5772
5773 PR gdb/26393
5774 * gdbtypes.c (dump_dynamic_prop): New function.
5775 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5776
5777 2020-08-15 Tom de Vries <tdevries@suse.de>
5778
5779 PR backtrace/26390
5780 * stack.c (print_frame_args): Temporarily set the selected
5781 frame to FRAME while printing the frame's arguments.
5782
5783 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5784
5785 PR breakpoints/26385
5786 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5787 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5788
5789 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5790
5791 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5792 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5793 and >= to check return value instead of == -1 and != -1.
5794
5795 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5796
5797 * utils.h (class gdb_argv) <as_array_view>: New method.
5798 * utils.c (gdb_argv_as_array_view_test): New.
5799 (_initialize_utils): Register selftest.
5800 * maint.c (maintenance_selftest): Use the new method.
5801
5802 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5803
5804 * target.h (supports_dumpcore, dumpcore): New
5805 function declarations.
5806 * target.c (supports_dumpcore, dumpcore): New
5807 functions.
5808 * target-delegates.c: Rebuild.
5809 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5810 and target_dumpcore ().
5811
5812 2020-08-13 Aaron Merey <amerey@redhat.com>
5813
5814 * debuginfod-support.c: Replace global variables with user_data.
5815
5816 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5817
5818 * maint.c (maintenance_selftest): Split args and pass array_view
5819 to run_tests.
5820
5821 2020-08-12 Luis Machado <luis.machado@linaro.org>
5822
5823 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5824 type's length.
5825 Use %s and pulongest to print the length.
5826
5827 2020-08-12 Pedro Alves <palves@redhat.com>
5828
5829 * NEWS: Move "Multi-target debugging support" item to the
5830 "Changes since GDB 9" section.
5831
5832 2020-08-12 Pedro Alves <palves@redhat.com>
5833
5834 PR gdb/26336
5835 * progspace.c (program_space::remove_objfile): Invalidate the
5836 frame cache.
5837
5838 2020-08-11 Tom de Vries <tdevries@suse.de>
5839
5840 * MAINTAINERS: Mark ms1 as deleted.
5841
5842 2020-08-10 Luis Machado <luis.machado@linaro.org>
5843
5844 PR gdb/26310
5845
5846 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5847 act accordingly.
5848 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5849 movz/str/stur/stp skipping behavior.
5850
5851 2020-08-10 Luis Machado <luis.machado@linaro.org>
5852
5853 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5854 struct user_sve_header instead of struct sve_context.
5855
5856 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5857
5858 * read.h (dwarf2_fetch_die_loc_sect_off,
5859 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5860 `void *` parameter with function_view.
5861 * read.c (dwarf2_fetch_die_loc_sect_off,
5862 dwarf2_fetch_die_loc_cu_off): Likewise.
5863 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5864 (per_cu_dwarf_call): Adjust.
5865 (get_frame_address_in_block_wrapper): Remove.
5866 (indirect_synthetic_pointer): Adjust.
5867 (get_ax_pc): Remove.
5868 (dwarf2_compile_expr_to_ax): Adjust.
5869
5870 2020-08-08 Tom de Vries <tdevries@suse.de>
5871
5872 PR build/26344
5873 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5874 constructor.
5875 * regcache.c (get_thread_arch_aspace_regcache): Same.
5876
5877 2020-08-07 Tom Tromey <tromey@adacore.com>
5878
5879 * ravenscar-thread.c
5880 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5881 New method.
5882 (ravenscar_thread_target::wait): Check
5883 runtime_initialized.
5884 (ravenscar_thread_target::prepare_to_store)
5885 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5886 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5887 (ravenscar_thread_target::stopped_by_watchpoint)
5888 (ravenscar_thread_target::stopped_data_address)
5889 (ravenscar_thread_target::core_of_thread): Use
5890 scoped_restore_current_thread and
5891 set_base_thread_from_ravenscar_task.
5892
5893 2020-08-07 Tom Tromey <tromey@adacore.com>
5894
5895 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5896
5897 2020-08-07 Tom Tromey <tromey@adacore.com>
5898
5899 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5900 update_inferior_ptid before update_thread_list.
5901 (temporarily_change_regcache_ptid): New class.
5902 (ravenscar_thread_target::fetch_registers)
5903 (ravenscar_thread_target::store_registers)
5904 (ravenscar_thread_target::prepare_to_store): Use base thread when
5905 forwarding operation.
5906
5907 2020-08-07 Tom Tromey <tromey@adacore.com>
5908
5909 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5910 "is_pid" case.
5911
5912 2020-08-07 Tom Tromey <tromey@adacore.com>
5913
5914 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5915 New methods.
5916 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5917 first.
5918 (ravenscar_thread_target::add_thread): Rename from
5919 ravenscar_add_thread.
5920 (ravenscar_thread_target::update_thread_list): Use a lambda.
5921 (ravenscar_thread_target::xfer_partial): New method.
5922
5923 2020-08-07 Tom Tromey <tromey@adacore.com>
5924
5925 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5926 gdb::function_view.
5927 (iterate_over_live_ada_tasks): Change type of argument.
5928 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5929 of argument.
5930
5931 2020-08-07 Tom Tromey <tromey@adacore.com>
5932
5933 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5934 Remove.
5935 (ravenscar_thread_target::extra_thread_info): Remove.
5936 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5937 defer to target beneath for non-Ravenscar threads.
5938
5939 2020-08-07 Tom Tromey <tromey@adacore.com>
5940
5941 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5942 get_base_thread_from_ravenscar_task>: Now methods.
5943 <m_cpu_map>: New member.
5944 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5945 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5946 (ravenscar_thread_target::task_is_currently_active): Update.
5947 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5948 Now a method.
5949 (ravenscar_thread_target::add_active_thread): Put initial thread
5950 into the m_cpu_map.
5951
5952 2020-08-07 Tom Tromey <tromey@adacore.com>
5953
5954 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5955 event_ptid.
5956
5957 2020-08-07 Tom Tromey <tromey@adacore.com>
5958
5959 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5960 runtime_initialized.
5961
5962 2020-08-07 Tom Tromey <tromey@adacore.com>
5963
5964 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5965 add_active_thread.
5966 (ravenscar_thread_target::add_active_thread): Now public.
5967 (ravenscar_inferior_created): Call add_active_thread after pushing
5968 the target.
5969
5970 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5971
5972 * regcache.c (ptid_regcache_map): New type.
5973 (target_ptid_regcache_map): New type.
5974 (regcaches): Change type to target_ptid_regcache_map.
5975 (get_thread_arch_aspace_regcache): Update to regcaches' new
5976 type.
5977 (regcache_thread_ptid_changed): Likewise.
5978 (registers_changed_ptid): Likewise.
5979 (regcaches_size): Likewise.
5980 (regcaches_test): Update.
5981 (regcache_thread_ptid_changed): Update.
5982 * regcache.h (regcache_up): New type.
5983 * gdbsupport/ptid.h (hash_ptid): New struct.
5984
5985 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5986
5987 * observable.h (thread_ptid_changed): Add parameter
5988 `process_stratum_target *`.
5989 * infrun.c (infrun_thread_ptid_changed): Add parameter
5990 `process_stratum_target *` and use it.
5991 (selftests): New namespace.
5992 (infrun_thread_ptid_changed): New function.
5993 (_initialize_infrun): Register selftest.
5994 * regcache.c (regcache_thread_ptid_changed): Add parameter
5995 `process_stratum_target *` and use it.
5996 (regcache_thread_ptid_changed): New function.
5997 (_initialize_regcache): Register selftest.
5998 * thread.c (thread_change_ptid): Pass target to
5999 thread_ptid_changed observable.
6000
6001 2020-08-06 Caroline Tice <cmtice@google.com>
6002
6003 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6004 (struct dwp_sections): Update field comments. Add loclists and
6005 rnglists fields.
6006 (struct virtual_v2_dwo_sections): Rename struct to
6007 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6008 size & offset fields for loclists and rnglists.
6009 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6010 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6011 skipping dummy type units.
6012 (create_dwp_hash_table): Update the large comment above the function to
6013 discuss Version 5 DWP files as well, with references. Update all the
6014 version checks in the function to check for version 5 as well. Add new
6015 section at the end to create dwp hash table for version 5.
6016 (create_dwp_v2_section): Rename function to
6017 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6018 Add V5 to error message text.
6019 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6020 into calls to create_dwp_v2_or_v5_section.
6021 (create_dwo_unit_in_dwp_v5): New function.
6022 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6023 check for version2; add else clause to handle version 5.
6024 (open_and_init_dwo_file): Add code to check dwarf version & only call
6025 create_debug_types_hash_table (with sections.types) if version is not 5;
6026 else call create_debug_type_hash_table, with sections.info.
6027 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6028 version 5.
6029 (dwarf2_locate_v5_dwp_sections): New function.
6030 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6031 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6032
6033 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6034
6035 * regcache.h (class regcache): Remove friend
6036 registers_changed_ptid.
6037 <regcache_thread_ptid_changed>: Remove.
6038 <regcaches>: Remove.
6039 * regcache.c (regcache::regcaches): Rename to...
6040 (regcaches): ... this. Make static.
6041 (get_thread_arch_aspace_regcache): Update.
6042 (regcache::regcache_thread_ptid_changed): Rename to...
6043 (regcache_thread_ptid_changed): ... this. Update.
6044 (class regcache_access): Remove.
6045 (regcaches_test): Update.
6046 (_initialize_regcache): Update.
6047 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6048 <forward_list>.
6049
6050 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6051
6052 * regcache.h (class regcache) <current_regcache>: Rename to...
6053 <regcaches>: ... this. Move doc here.
6054 * regcache.c (regcache::current_regcache) Rename to...
6055 (regcache::regcaches): ... this. Move doc to header.
6056 (get_thread_arch_aspace_regcache): Update.
6057 (regcache::regcache_thread_ptid_changed): Update.
6058 (registers_changed_ptid): Update.
6059 (class regcache_access) <current_regcache_size>: Rename to...
6060 <regcaches_size>: ... this.
6061 (current_regcache_test): Rename to...
6062 (regcaches_test): ... this.
6063 (_initialize_regcache): Update.
6064
6065 2020-08-06 Victor Collod <vcollod@nvidia.com>
6066
6067 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6068
6069 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6070
6071 * corelow.c (core_target::build_file_mappings): Don't output
6072 null pathname in warning.
6073
6074 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6075
6076 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6077 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6078 gdb.dwarf2/dw2-single-line-discriminators.exp,
6079 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6080
6081 2020-08-05 Tom Tromey <tromey@adacore.com>
6082
6083 PR rust/26197:
6084 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6085 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6086 Fix off-by-one and type size errors in ordinary case.
6087
6088 2020-08-05 Tom de Vries <tdevries@suse.de>
6089
6090 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6091 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6092
6093 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6094
6095 * frame.h (frame_id_p): Return bool.
6096 (frame_id_artificial_p): Return bool.
6097 (frame_id_eq): Return bool.
6098 (has_stack_frames): Return bool.
6099 (get_selected_frame): Fix typo in comment.
6100 (get_frame_pc_if_available): Return bool.
6101 (get_frame_address_in_block_if_available): Return bool.
6102 (get_frame_func_if_available): Return bool.
6103 (read_frame_register_unsigned): Return bool.
6104 (get_frame_register_bytes): Return bool.
6105 (safe_frame_unwind_memory): Return bool.
6106 (deprecated_frame_register_read): Return bool.
6107 (frame_unwinder_is): Return bool.
6108 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6109 bool.
6110 <this_id::p>: Likewise.
6111 <prev_p>: Likewise.
6112 (frame_stash_add): Return bool.
6113 (get_frame_id): Use bool.
6114 (frame_id_build_special) Use bool.
6115 (frame_id_build_unavailable_stack): Use bool.
6116 (frame_id_build): Use bool.
6117 (frame_id_p): Return bool, use true/false instead of 1/0.
6118 (frame_id_artificial_p): Likewise.
6119 (frame_id_eq): Likewise.
6120 (frame_id_inner): Likewise.
6121 (get_frame_func_if_available): Likewise.
6122 (read_frame_register_unsigned): Likewise.
6123 (deprecated_frame_register_read): Likewise.
6124 (get_frame_register_bytes): Likewise.
6125 (has_stack_frames): Likewise.
6126 (inside_main_func): Likewise.
6127 (inside_entry_func): Likewise.
6128 (get_frame_pc_if_available): Likewise.
6129 (get_frame_address_in_block_if_available): Likewise.
6130 (frame_unwinder_is): Likewise.
6131 (safe_frame_unwind_memory): Likewise.
6132 (frame_unwind_arch): Likewise.
6133
6134 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6135
6136 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6137 type to cached_copy_status.
6138 (fprintf_frame): Adjust.
6139 (get_frame_func_if_available): Adjust.
6140 (frame_cleanup_after_sniffer): Adjust.
6141
6142 2020-08-04 Mark Wielaard <mark@klomp.org>
6143
6144 * MAINTAINERS (Write After Approval): Update email address.
6145
6146 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6147
6148 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6149 dynamic_prop::const_val.
6150
6151 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6152
6153 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6154 dynamic_prop::kind.
6155
6156 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6157
6158 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6159
6160 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6161
6162 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6163
6164 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6165 Jose E. Marchesi <jose.marchesi@oracle.com>
6166
6167 * configure.tgt: Add entry for bpf-*-*.
6168 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6169 (ALLDEPFILES): Add bpf-tdep.c.
6170 * bpf-tdep.c: New file.
6171 * MAINTAINERS: Add bpf target and maintainer.
6172 * NEWS: Mention the support for the new target.
6173
6174 2020-08-04 Tom de Vries <tdevries@suse.de>
6175
6176 PR symtab/23270
6177 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6178 Error.
6179
6180 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6181
6182 * syscalls/freebsd.xml: Regenerate.
6183
6184 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6185
6186 * syscalls/update-freebsd.sh: Fix usage and year range.
6187
6188 2020-08-03 Tom de Vries <tdevries@suse.de>
6189
6190 PR symtab/26333
6191 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6192 DW_LNE_lo_user/DW_LNE_hi_user range.
6193
6194 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6195
6196 PR ada/26318
6197 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6198 kind.
6199
6200 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6201
6202 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6203
6204 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6205
6206 * breakpoint.c (set_breakpoint_condition): Update the condition
6207 expressions after checking that the input condition string parses
6208 successfully and does not contain junk at the end.
6209
6210 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6211
6212 * breakpoint.c (set_breakpoint_condition): Update the
6213 condition string after parsing the new condition successfully.
6214
6215 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6216
6217 * proc-api.c (_STRUCTURED_PROC): Don't define.
6218 * proc-events.c: Likewise.
6219 * proc-flags.c: Likewise.
6220 * proc-why.c: Likewise.
6221 * procfs.c: Likewise.
6222
6223 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6224 * configure, config.in: Regenerate.
6225
6226 2020-07-30 Tom de Vries <tdevries@suse.de>
6227
6228 PR build/26320
6229 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6230 m_red/m_green/m_blue in a union.
6231
6232 2020-07-29 Tom de Vries <tdevries@suse.de>
6233
6234 PR tdep/26280
6235 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6236
6237 2020-07-28 Tom Tromey <tromey@adacore.com>
6238
6239 PR symtab/26270:
6240 * symtab.h (find_pc_partial_function_sym): Declare.
6241 * cli/cli-cmds.c (disassemble_command): Use
6242 find_pc_partial_function_sym. Check asm_demangle.
6243 * blockframe.c (cache_pc_function_sym): New global.
6244 (cache_pc_function_name): Remove.
6245 (clear_pc_function_cache): Update.
6246 (find_pc_partial_function_sym): New function, from
6247 find_pc_partial_function.
6248 (find_pc_partial_function): Rewrite using
6249 find_pc_partial_function_sym.
6250
6251 2020-07-28 Tom Tromey <tromey@adacore.com>
6252
6253 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6254 help. Add usage.
6255
6256 2020-07-28 Tom Tromey <tromey@adacore.com>
6257
6258 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6259 <DW_OP_GNU_variable_value>: Cast to address type.
6260
6261 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6262
6263 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6264 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6265 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6266 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6267 (nbsd_get_siginfo_type): New.
6268 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6269 (_initialize_nbsd_tdep): New.
6270
6271 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6272
6273 PR binutils/26301
6274 * configure: Regenerated.
6275
6276 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6277
6278 PR binutils/26301
6279 * configure: Regenerated.
6280
6281 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6282
6283 * python/py-frame.c: Remove 'user-regs.h' include.
6284 (frapy_read_register): Rewrite to make use of
6285 gdbpy_parse_register_id.
6286 * python/py-registers.c (gdbpy_parse_register_id): New function,
6287 moved here from python/py-unwind.c. Updated the return type, and
6288 also accepts register descriptor objects.
6289 * python/py-unwind.c: Remove 'user-regs.h' include.
6290 (pyuw_parse_register_id): Moved to python/py-registers.c.
6291 (unwind_infopy_add_saved_register): Update to use
6292 gdbpy_parse_register_id.
6293 (pending_framepy_read_register): Likewise.
6294 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6295
6296 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6297
6298 * python/py-registers.c: Add 'user-regs.h' include.
6299 (register_descriptor_iter_find): New function.
6300 (register_descriptor_iterator_object_methods): New static global
6301 methods array.
6302 (register_descriptor_iterator_object_type): Add pointer to methods
6303 array.
6304
6305 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6306
6307 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6308 for all architectures on FreeBSD 11.3 and later.
6309
6310 2020-07-27 Tom Tromey <tromey@adacore.com>
6311
6312 * gcore.h (load_corefile): Don't declare.
6313
6314 2020-07-27 Tom de Vries <tdevries@suse.de>
6315
6316 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6317 * config.in: Regenerate.
6318 * configure: Regenerate.
6319
6320 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6321
6322 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6323 ws2tcpip.h. When checking whether socklen_t type is defined, use
6324 ws2tcpip.h if it is available and sys/socket.h isn't.
6325 * configure: Regenerate.
6326 * config.in: Regenerate.
6327
6328 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6329
6330 PR fortran/23051
6331 PR fortran/26139
6332 * valops.c (value_ind): Pass address to
6333 readjust_indirect_value_type.
6334 * value.c (readjust_indirect_value_type): Make parameter
6335 non-const, and add extra address parameter. Resolve original type
6336 before using it.
6337 * value.h (readjust_indirect_value_type): Update function
6338 signature and comment.
6339
6340 2020-07-25 Tom de Vries <tdevries@suse.de>
6341
6342 PR symtab/26243
6343 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6344 entries.
6345
6346 2020-07-24 Aaron Merey <amerey@redhat.com>
6347
6348 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6349 * configure: Rebuild.
6350
6351 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6352
6353 PR corefiles/26294
6354 * corelow.c (_initialize_corelow): Add period to help text
6355 for "maintenance print core-file-backed-mappings".
6356
6357 2020-07-23 Pedro Alves <pedro@palves.net>
6358
6359 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6360 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6361 meanwhile.
6362 * frame.c (frame_cache_generation, get_frame_cache_generation):
6363 New.
6364 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6365 (get_prev_frame_if_no_cycle): On exception, don't touch
6366 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6367 * frame.h (get_frame_cache_generation): Declare.
6368
6369 2020-07-23 Tom de Vries <tdevries@suse.de>
6370
6371 PR tui/26282
6372 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6373 New default constructor.
6374
6375 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6376
6377 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6378 exclude non-statement entries.
6379
6380 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6381
6382 * NEWS (New commands): Mention new command
6383 "maintenance print core-file-backed-mappings".
6384
6385 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6386
6387 * corelow.c (gdbcmd.h): Include.
6388 (core_target::info_proc_mappings): New method.
6389 (get_current_core_target): New function.
6390 (maintenance_print_core_file_backed_mappings): New function.
6391 (_initialize_corelow): Add core-file-backed-mappings to
6392 "maint print" commands.
6393
6394 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6395
6396 * linux-tdep.c (dump_note_entry_p): New function.
6397 (linux_dump_mapping_p_ftype): New typedef.
6398 (linux_find_memory_regions_full): Add new parameter,
6399 should_dump_mapping_p.
6400 (linux_find_memory_regions): Adjust call to
6401 linux_find_memory_regions_full.
6402 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6403 call to linux_find_memory_regions_full.
6404
6405 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6406
6407 * corelow.c (solist.h, unordered_map): Include.
6408 (class core_target): Add field m_core_file_mappings and
6409 method build_file_mappings.
6410 (core_target::core_target): Call build_file_mappings.
6411 (core_target::~core_target): Free memory associated with
6412 m_core_file_mappings.
6413 (core_target::build_file_mappings): New method.
6414 (core_target::xfer_partial): Use m_core_file_mappings
6415 for memory transfers.
6416 * linux-tdep.c (linux_read_core_file_mappings): New
6417 function.
6418 (linux_core_info_proc_mappings): Rewrite to use
6419 linux_read_core_file_mappings.
6420 (linux_init_abi): Register linux_read_core_file_mappings.
6421
6422 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6423
6424 * arch-utils.c (default_read_core_file_mappings): New function.
6425 * arch-utils.c (default_read_core_file_mappings): Declare.
6426 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6427 * gdbarch.h, gdbarch.c: Regenerate.
6428
6429 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6430
6431 PR corefiles/25631
6432 * corelow.c (core_target:xfer_partial): Revise
6433 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6434 case after first checking the stratum beneath the core
6435 target.
6436 (has_all_memory): Return true.
6437 * target.c (raw_memory_xfer_partial): Revise comment
6438 regarding use of has_all_memory.
6439
6440 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6441
6442 * exec.h (section_table_xfer_memory): Revise declaration,
6443 replacing section name parameter with an optional callback
6444 predicate.
6445 * exec.c (section_table_xfer_memory): Likewise.
6446 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6447 of section_table_xfer_memory.
6448
6449 2020-07-22 Tom Tromey <tromey@adacore.com>
6450
6451 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6452 lookup_symbol_search_name.
6453
6454 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6455
6456 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6457 redundant local variable.
6458 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6459 reference, not pointer, update code accordingly.
6460
6461 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6462 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6463
6464 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6465 * jit.c (jit_breakpoint_re_set_internal): Use the
6466 `skip_jit_symbol_lookup` field.
6467
6468 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6469 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6470
6471 * jit.c (jit_read_descriptor): Define the descriptor address once,
6472 use twice.
6473 (jit_breakpoint_deleted): Move the declaration of the loop variable
6474 `iter` into the loop header.
6475 (jit_breakpoint_re_set_internal): Move the declaration of the local
6476 variable `objf_data` to the first point of definition.
6477 (jit_event_handler): Move the declaration of local variables
6478 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6479 Rename `objf` to `jited`.
6480
6481 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6482
6483 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6484 Remove.
6485 * jit.c (get_jiter_objfile_data): Update.
6486
6487 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6488 Simon Marchi <simon.marchi@polymtl.ca>
6489
6490 * jit.c (struct jit_program_space_data): Remove.
6491 (jit_program_space_key): Remove.
6492 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6493 stuff.
6494 (get_jit_program_space_data): Remove.
6495 (jit_breakpoint_deleted): Iterate on all of the program space's
6496 objfiles.
6497 (jit_inferior_init): Likewise.
6498 (jit_breakpoint_re_set_internal): Likewise. Also change return
6499 type to void.
6500 (jit_breakpoint_re_set): Pass current_program_space to
6501 jit_breakpoint_re_set_internal.
6502
6503 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6504
6505 * jit.h (struct jiter_objfile_data) <cached_code_address,
6506 jit_breakpoint>: Move to here from ...
6507 * jit.c (jit_program_space_data): ... here.
6508 (jiter_objfile_data::~jiter_objfile_data): Update.
6509 (jit_breakpoint_deleted): Update.
6510 (jit_breakpoint_re_set_internal): Update.
6511
6512 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6513
6514 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6515 checks.
6516 (jit_read_descriptor): Remove NULL check.
6517 (jit_event_handler): Add an assertion.
6518
6519 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6520
6521 * jit.h (struct jit_objfile_data): Split into...
6522 (struct jiter_objfile_data): ... this ...
6523 (struct jited_objfile_data): ... and this.
6524 * objfiles.h (struct objfile) <jit_data>: Remove.
6525 <jiter_data, jited_data>: New fields.
6526 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6527 (jiter_objfile_data::~jiter_objfile_data): ... this.
6528 (get_jit_objfile_data): Rename to ...
6529 (get_jiter_objfile_data): ... this.
6530 (add_objfile_entry): Update.
6531 (jit_read_descriptor): Use get_jiter_objfile_data.
6532 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6533 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6534 (jit_inferior_exit_hook): Use objfile's jited_data field.
6535
6536 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6537
6538 * jit.h: Forward-declare `struct minimal_symbol`.
6539 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6540 constructor, destructor, and an objfile* field.
6541 * jit.c (jit_objfile_data): Remove.
6542 (struct jit_objfile_data): Migrate from here to jit.h.
6543 (jit_objfile_data::~jit_objfile_data): New destructor
6544 implementation with code moved from free_objfile_data.
6545 (free_objfile_data): Delete.
6546 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6547 (jit_find_objf_with_entry_addr): Ditto.
6548 (jit_inferior_exit_hook): Ditto.
6549 (_initialize_jit): Remove the call to
6550 register_objfile_data_with_cleanup.
6551 * objfiles.h (struct objfile) <jit_data>: New field.
6552
6553 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6554
6555 * jit.h: Forward-declare `struct objfile`.
6556 (jit_event_handler): Add a second parameter, the JITer objfile.
6557 * jit.c (jit_read_descriptor): Change the signature to take the
6558 JITer objfile as an argument instead of the jit_program_space_data.
6559 (jit_inferior_init): Update the call to jit_read_descriptor.
6560 (jit_event_handler): Use the new JITer objfile argument when calling
6561 jit_read_descriptor.
6562 * breakpoint.c (handle_jit_event): Update the call to
6563 jit_event_handler to pass the JITer objfile.
6564
6565 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6566
6567 * gdbarch.c: Regenerate.
6568 * gdbarch.h: Regenerate.
6569 * gdbarch.sh (handle_segmentation_fault): Remove method.
6570 * infrun.c (handle_segmentation_fault): Remove.
6571 (print_signal_received_reason): Remove call to
6572 handle_segmentation_fault.
6573
6574 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6575
6576 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6577 Rename to sparc64_linux_report_signal_info and add siggnal
6578 argument.
6579 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6580 instead of sparc64_linux_handle_segmentation_fault.
6581
6582 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6583
6584 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6585 i386_linux_report_signal_info instead of
6586 i386_linux_handle_segmentation_fault.
6587 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6588 to i386_linux_report_signal_info and add siggnal argument.
6589 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6590 of i386_linux_handle_segmentation_fault.
6591 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6592 to i386_linux_report_signal_info and add siggnal argument.
6593
6594 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6595
6596 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6597 hook if present.
6598
6599 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6600
6601 * gdbarch.c: Regenerate.
6602 * gdbarch.h: Regenerate.
6603 * gdbarch.sh (report_signal_info): New method.
6604 * infrun.c (print_signal_received_reason): Invoke gdbarch
6605 report_signal_info hook if present.
6606
6607 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6608
6609 * python/py-registers.c : Add 'unordered_map' include.
6610 (gdbpy_new_reggroup): Renamed to...
6611 (gdbpy_get_reggroup): ...this. Update to only create register
6612 group descriptors when needed.
6613 (gdbpy_reggroup_iter_next): Update.
6614
6615 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6616
6617 * python/py-registers.c (gdbpy_register_object_data): New static
6618 global.
6619 (gdbpy_register_object_data_init): New function.
6620 (gdbpy_new_register_descriptor): Renamed to...
6621 (gdbpy_get_register_descriptor): ...this, and update to reuse
6622 existing register descriptors where possible.
6623 (gdbpy_register_descriptor_iter_next): Update.
6624 (gdbpy_initialize_registers): Register new gdbarch data.
6625
6626 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6627
6628 * linux-nat.c (stopped_pids): Make static.
6629
6630 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6631
6632 PR ada/26235
6633 * gdbtypes.c (ada_discrete_type_low_bound,
6634 ada_discrete_type_high_bound): Handle undefined bounds.
6635
6636 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6637
6638 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6639 declaration.
6640 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6641 function.
6642
6643 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6644
6645 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6646 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6647 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6648 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6649 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6650 method.
6651
6652 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6653
6654 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6655 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6656 which are deprecated in Guile 3.0.
6657 * configure.ac (try_guile_versions): Add "guile-3.0".
6658 * configure (try_guile_versions): Regenerate.
6659 * NEWS: Update entry.
6660
6661 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6662 Doug Evans <dje@google.com>
6663
6664 PR gdb/21104
6665 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6666 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6667 USING_GUILE_BEFORE_2_2.
6668 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6669 Change type to 'scm_t_port_type *'.
6670 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6671 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6672 parameter and honor it. Update callers.
6673 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6674 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6675 functions.
6676 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6677 USING_GUILE_BEFORE_2_2.
6678 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6679 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6680 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6681 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6682 and 'SCM_PORT_TYPE'.
6683 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6684 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6685 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6686 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6687 [!USING_GUILE_BEFORE_2_2]: New functions.
6688 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6689 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6690 'gdbscm_memory_port_read'.
6691 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6692 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6693 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6694 function.
6695 (ioscm_init_memory_port): Remove.
6696 (ioscm_init_memory_port_stream): New function
6697 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6698 function.
6699 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6700 Return scm_from_uint (0).
6701 (gdbscm_set_memory_port_read_buffer_size_x)
6702 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6703 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6704 Return scm_from_uint (0).
6705 (gdbscm_set_memory_port_write_buffer_size_x)
6706 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6707 * configure.ac (try_guile_versions): Add "guile-2.2".
6708 * configure: Regenerate.
6709 * NEWS: Add entry.
6710
6711 2020-07-18 Tom Tromey <tom@tromey.com>
6712
6713 * linux-nat.c (linux_multi_process): Remove.
6714 (linux_nat_target::supports_multi_process): Return true.
6715
6716 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6717
6718 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6719 (riscv_lookup_target_description): Return pointer out of
6720 unique_ptr.
6721 * target-descriptions.c (allocate_target_description): Add
6722 comment.
6723 (target_desc_deleter::operator()): Likewise.
6724 * target-descriptions.h (struct target_desc_deleter): Moved to
6725 gdbsupport/tdesc.h.
6726 (target_desc_up): Likewise.
6727
6728 2020-07-17 Tom Tromey <tromey@adacore.com>
6729
6730 * linux-nat.c (linux_nat_target::supports_non_stop)
6731 (linux_nat_target::always_non_stop_p): Use "true".
6732 (linux_nat_target::supports_disable_randomization): Use "true" and
6733 "false".
6734
6735 2020-07-16 Caroline Tice <cmtice@google.com>
6736
6737 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6738 (RNGLIST_HEADER_SIZE64): New constant definition.
6739 (struct dwop_section_names): Add rnglists_dwo.
6740 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6741 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6742 (struct dwo_sections): Add rnglists field.
6743 (read_attribut_reprocess): Add tag parameter.
6744 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6745 (cu_debug_rnglists_section): New function (decl & definition).
6746 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6747 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6748 die whose range is being checked; get rnglist section from
6749 cu_debug_rnglists_section, to get from either objfile or dwo file as
6750 appropriate. Add cases for DW_RLE_base_addressx,
6751 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6752 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6753 test inside if-condition and updating complaint message.
6754 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6755 dwarf2_rnglists_process.
6756 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6757 dwarf2_ranges_process.
6758 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6759 need_ranges_base and update comment appropriately. Also pass die tag
6760 to dwarf2_ranges_read.
6761 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6762 need_ranges_base and update comment appropriately. Also pass die tag
6763 to dwarf2_ranges_process.
6764 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6765 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6766 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6767 need_ranges_base and update comment appropriately. Also pass die tag
6768 to read_attribute_reprocess and dwarf2_ranges_read.
6769 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6770 and update function comment appropriately.
6771 (read_loclist_index): Call read_loclists_rnglists_header instead of
6772 read_loclist_header.
6773 (read_rnglist_index): New function.
6774 (read_attribute_reprocess): Add tag parameter. Add code for
6775 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6776 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6777
6778 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6779
6780 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6781 being resolved.
6782
6783 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6784
6785 * arch-utils.c (show_architecture): Update formatting of messages.
6786
6787 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6788
6789 * gdbtypes.h (struct type) <bounds>: Handle array and string
6790 types.
6791 * ada-lang.c (assign_aggregate): Use type::bounds on
6792 array/string type.
6793 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6794 * c-varobj.c (c_number_of_children): Likewise.
6795 (c_describe_child): Likewise.
6796 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6797 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6798 (f_type_print_base): Likewise.
6799 * f-valprint.c (f77_array_offset_tbl): Likewise.
6800 (f77_get_upperbound): Likewise.
6801 (f77_print_array_1): Likewise.
6802 * guile/scm-type.c (gdbscm_type_range): Likewise.
6803 * m2-typeprint.c (m2_array): Likewise.
6804 (m2_is_long_set_of_type): Likewise.
6805 * m2-valprint.c (get_long_set_bounds): Likewise.
6806 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6807 * python/py-type.c (typy_range): Likewise.
6808 * rust-lang.c (rust_internal_print_type): Likewise.
6809 * type-stack.c (type_stack::follow_types): Likewise.
6810 * valarith.c (value_subscripted_rvalue): Likewise.
6811 * valops.c (value_cast): Likewise.
6812
6813 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6814
6815 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6816 callers to use the equivalent accessor methods.
6817
6818 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6819
6820 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6821 (struct type) <bit_stride>: New method.
6822 (TYPE_BIT_STRIDE): Remove.
6823 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6824
6825 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6826
6827 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6828 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6829 callers to use the equivalent accessor methods instead.
6830
6831 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6832
6833 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6834 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6835 callers to use the equivalent accessor methods instead.
6836
6837 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6838
6839 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6840 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6841 to use dynamic_prop::kind.
6842
6843 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6844
6845 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6846 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6847 to get the bound property's kind and check against
6848 PROP_UNDEFINED.
6849
6850 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6851
6852 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6853 all callers to use type::range_bounds followed by
6854 dynamic_prop::{low,high}.
6855
6856 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6857
6858 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6859 const_val, set_const_val, baton, set_locexpr, set_loclist,
6860 set_addr_offset, variant_parts, set_variant_parts,
6861 original_type, set_original_type>: New methods.
6862 <kind>: Rename to...
6863 <m_kind>: ... this. Update all users to use the new methods
6864 instead.
6865 <data>: Rename to...
6866 <m_data>: ... this. Update all users to use the new methods
6867 instead.
6868
6869 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6870
6871 * gdbtypes.c (get_discrete_bounds): Return failure if
6872 the range type's bounds are not both defined and constant
6873 values.
6874 (get_array_bounds): Update comment. Remove undefined bound check.
6875
6876 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6877
6878 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6879 the type::bounds method directly.
6880
6881 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6882
6883 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6884 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6885 are used to set the range type's bounds to use set_bounds.
6886
6887 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6888
6889 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6890
6891 2020-07-10 Pedro Alves <pedro@palves.net>
6892
6893 * gdbthread.h (inferior_ref): Define.
6894 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6895 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6896 * thread.c
6897 (scoped_restore_current_thread::restore):
6898 Adjust to gdb::ref_ptr.
6899 (scoped_restore_current_thread::~scoped_restore_current_thread):
6900 Remove manual decref handling.
6901 (scoped_restore_current_thread::scoped_restore_current_thread):
6902 Adjust to use
6903 inferior_ref::new_reference/thread_info_ref::new_reference.
6904 Incref the thread before calling get_frame_id instead of after.
6905 Let TARGET_CLOSE_ERROR propagate.
6906
6907 2020-07-10 Pedro Alves <pedro@palves.net>
6908
6909 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6910 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6911 NOT_AVAILABLE_ERROR.
6912 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6913 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6914
6915 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6916 Pedro Alves <pedro@palves.net>
6917
6918 PR gdb/26199
6919 * infrun.c (threads_are_resumed_pending_p): Delete.
6920 (do_target_wait): Remove threads_are_executing and
6921 threads_are_resumed_pending_p checks from the inferior_matches
6922 lambda. Update comments.
6923
6924 2020-07-10 Pedro Alves <pedro@palves.net>
6925
6926 PR gdb/26199
6927 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6928 executing threads.
6929
6930 2020-07-10 Pedro Alves <pedro@palves.net>
6931
6932 PR gdb/26199
6933 * infrun.c (handle_no_resumed): Handle multiple targets.
6934
6935 2020-07-10 Pedro Alves <pedro@palves.net>
6936
6937 PR gdb/26199
6938 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6939 target_is_async_p.
6940
6941 2020-07-10 Pedro Alves <pedro@palves.net>
6942
6943 PR gdb/26199
6944 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6945 threads, not all threads.
6946
6947 2020-07-10 Pedro Alves <pedro@palves.net>
6948
6949 PR gdb/26199
6950 * remote.c (remote_target::open_1): Pass remote target pointer as
6951 data to create_async_event_handler.
6952 (remote_async_inferior_event_handler): Mark async event handler
6953 before returning if the remote target still has either pending
6954 events or unacknowledged notifications.
6955
6956 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6957
6958 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6959 declaration.
6960 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6961 function.
6962
6963 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6964
6965 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6966 inferior_ptid.
6967
6968 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6969
6970 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6971 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6972 AT_FREEBSD_PS_STRINGS.
6973
6974 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6975
6976 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6977 of debugfile path on Windows.
6978
6979 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6980
6981 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6982 argument to 'data'.
6983
6984 2020-07-08 Tom Tromey <tromey@adacore.com>
6985
6986 * ada-lang.c (ada_exception_message_1): Use read_memory.
6987
6988 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6989
6990 PR python/22748
6991 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6992 special handling for inline frames.
6993 * findvar.c (value_of_register_lazy): Skip inline frames when
6994 creating lazy register values.
6995 * frame.c (frame_id_computed_p): Delete definition.
6996 * frame.h (frame_id_computed_p): Delete declaration.
6997
6998 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6999
7000 * NEWS: Mention additions to Python API.
7001 * python/py-arch.c (archpy_register_groups): New function.
7002 (arch_object_methods): Add 'register_groups' method.
7003 * python/py-registers.c (reggroup_iterator_object): New struct.
7004 (reggroup_object): New struct.
7005 (gdbpy_new_reggroup): New function.
7006 (gdbpy_reggroup_to_string): New function.
7007 (gdbpy_reggroup_name): New function.
7008 (gdbpy_reggroup_iter): New function.
7009 (gdbpy_reggroup_iter_next): New function.
7010 (gdbpy_new_reggroup_iterator): New function
7011 (gdbpy_initialize_registers): Register new types.
7012 (reggroup_iterator_object_type): Define new Python type.
7013 (gdbpy_reggroup_getset): New static global.
7014 (reggroup_object_type): Define new Python type.
7015 * python/python-internal.h
7016
7017 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7018
7019 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7020 * python/py-arch.c (archpy_registers): New function.
7021 (arch_object_methods): Add 'registers' method.
7022 * python/py-registers.c: New file.
7023 * python/python-internal.h
7024 (gdbpy_new_register_descriptor_iterator): Declare.
7025 (gdbpy_initialize_registers): Declare.
7026 * python/python.c (do_start_initialization): Call
7027 gdbpy_initialize_registers.
7028 * NEWS: Mention additions to the Python API.
7029
7030 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7031
7032 * NEWS: Mention new Python API method.
7033 * python/py-unwind.c (pending_framepy_architecture): New function.
7034 (pending_frame_object_methods): Add architecture method.
7035
7036 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7037
7038 * gdbarch.c: Regenerate.
7039 * gdbarch.h: Regenerate.
7040 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7041 (gdbarch_data): Use internal_error for the case where
7042 deprecated_set_gdbarch_data was originally needed.
7043 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7044 and use passed in obstack.
7045 (libunwind_frame_set_descr): Should no longer get back NULL from
7046 gdbarch_data.
7047 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7048 type.
7049 * user-regs.c (user_regs_init): Update parameters, and use passed
7050 in obstack.
7051 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7052 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7053
7054 2020-07-06 Tom de Vries <tdevries@suse.de>
7055
7056 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7057 End-Of-Sequence in lte_is_less_than.
7058 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7059 "gdb: Don't reorder line table entries too much when sorting".
7060
7061 2020-07-06 Tom de Vries <tdevries@suse.de>
7062
7063 PR tui/26205
7064 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7065
7066 2020-07-05 Tom de Vries <tdevries@suse.de>
7067
7068 PR build/26187
7069 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7070 std::uncaught_exceptions instead of deprecated
7071 std::uncaught_exception.
7072
7073 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7074
7075 * macroexp.h (macro_stringify): Return
7076 gdb::unique_xmalloc_ptr<char>.
7077 * macroexp.c (macro_stringify): Likewise.
7078 * macrotab.c (fixup_definition): Update.
7079
7080 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7081
7082 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7083 (lex_one_token): Update.
7084 * macroexp.c (struct macro_buffer) <release>: Return
7085 gdb::unique_xmalloc_ptr<char>.
7086 (macro_stringify): Update.
7087 (macro_expand): Update.
7088 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7089 * macroexp.h (macro_expand_next): Likewise.
7090
7091 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7092
7093 * macroexp.h (macro_lookup_ftype): Remove.
7094 (macro_expand, macro_expand_once, macro_expand_next): Remove
7095 lookup function parameters, add scope parameter.
7096 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7097 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7098 * macroscope.h (standard_macro_lookup): Change parameter type
7099 to macro_scope.
7100 * macroscope.c (standard_macro_lookup): Likewise.
7101 * c-exp.y (lex_one_token): Update.
7102 * macrocmd.c (macro_expand_command): Likewise.
7103 (macro_expand_once_command): Likewise.
7104
7105 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7106
7107 * inf-loop.c (inferior_event_handler): Remove client_data param.
7108 * inf-loop.h (inferior_event_handler): Likewise.
7109 * infcmd.c (step_1): Adjust.
7110 * infrun.c (proceed): Adjust.
7111 (fetch_inferior_event): Remove client_data param.
7112 (infrun_async_inferior_event_handler): Adjust.
7113 * infrun.h (fetch_inferior_event): Remove `void *` param.
7114 * linux-nat.c (handle_target_event): Adjust.
7115 * record-btrace.c (record_btrace_handle_async_inferior_event):
7116 Adjust.
7117 * record-full.c (record_full_async_inferior_event_handler):
7118 Adjust.
7119 * remote.c (remote_async_inferior_event_handler): Adjust.
7120
7121 2020-07-01 Tom Tromey <tom@tromey.com>
7122
7123 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7124 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7125
7126 2020-07-01 Tom Tromey <tom@tromey.com>
7127
7128 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7129 tui_gen_win_info.
7130 (tui_win_info::make_window): Merge with
7131 tui_gen_win_info::make_window.
7132 (tui_win_info::make_visible): Move from tui_gen_win_info.
7133 * tui/tui-win.c (tui_win_info::max_width): Move from
7134 tui_gen_win_info.
7135 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7136 type.
7137 <window_factory>: Likewise.
7138 * tui/tui-layout.c (tui_win_info::resize): Move from
7139 tui_gen_win_info.
7140 (make_standard_window): Change return type.
7141 (get_locator_window, tui_get_window_by_name): Likewise.
7142 (tui_layout_window::apply): Remove a cast.
7143 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7144 (struct tui_win_info): Merge with tui_gen_win_info.
7145 (struct tui_gen_win_info): Remove.
7146
7147 2020-07-01 Tom Tromey <tom@tromey.com>
7148
7149 * tui/tui-stack.h (struct tui_locator_window): Derive from
7150 tui_win_info.
7151 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7152 <can_box>: New method.
7153
7154 2020-07-01 Tom Tromey <tom@tromey.com>
7155
7156 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7157
7158 2020-07-01 Tom Tromey <tom@tromey.com>
7159
7160 * tui/tui-regs.c (tui_data_window::display_registers_from)
7161 (tui_data_window::display_registers_from)
7162 (tui_data_window::first_data_item_displayed)
7163 (tui_data_window::delete_data_content_windows): Update.
7164 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7165 Remove.
7166 (tui_data_window::check_register_values): Update.
7167 (tui_data_item_window::rerender): Add parameters. Update.
7168 (tui_data_item_window::refresh_window): Remove.
7169 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7170 virtual.
7171 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7172 tui_gen_win_info.
7173 <refresh_window, max_height, min_height>: Remove.
7174 <rerender>: Add parameters.
7175 <x, y, visible>: New members.
7176 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7177 <m_item_width>: New member.
7178
7179 2020-07-01 Tom Tromey <tom@tromey.com>
7180
7181 * tui/tui-regs.c (tui_data_window::show_register_group)
7182 (tui_data_window::check_register_values): Update.
7183 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7184 from item_no.
7185
7186 2020-07-01 Tom Tromey <tom@tromey.com>
7187
7188 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7189 useless "if".
7190
7191 2020-07-01 Tom Tromey <tom@tromey.com>
7192
7193 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7194 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7195
7196 2020-07-01 Tom Tromey <tom@tromey.com>
7197
7198 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7199 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7200 (struct tui_line_or_address): Move from tui-data.h.
7201 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7202 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7203 (tui_cmd_window, tui_source_window_base, tui_source_window)
7204 (tui_disasm_window): Don't declare.
7205 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7206 to tui-winsource.h.
7207 (SINGLE_KEY): Move to tui-stack.c.
7208
7209 2020-07-01 Tom Tromey <tom@tromey.com>
7210
7211 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7212 std::string.
7213 * tui/tui-regs.c (class tab_expansion_file): New.
7214 (tab_expansion_file::write): New method.
7215 (tui_register_format): Change return type. Use
7216 tab_expansion_file.
7217 (tui_get_register, tui_data_window::display_registers_from)
7218 (tui_data_item_window::rerender): Update.
7219 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7220 * tui/tui-io.c (tui_expand_tabs): Remove.
7221
7222 2020-07-01 Tom Tromey <tom@tromey.com>
7223
7224 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7225
7226 2020-07-01 Fangrui Song <maskray@google.com>
7227
7228 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7229
7230 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7231
7232 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7233 forms for DW_AT_associated and DW_AT_allocated attributes,
7234 which is already checked in function attr_to_dynamic_prop.
7235
7236 2020-06-30 Tom Tromey <tromey@adacore.com>
7237
7238 * dwarf2/read.c (quirk_rust_enum): Correctly call
7239 alloc_rust_variant for default-less enum.
7240
7241 2020-06-30 Tom Tromey <tromey@adacore.com>
7242
7243 PR build/26183:
7244 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7245 gdb::to_string.
7246
7247 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7248
7249 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7250 * gdbarch.h: Re-generate.
7251
7252 2020-06-28 Tom Tromey <tom@tromey.com>
7253
7254 * command.h (cmd_types): Remove.
7255 (cmd_type): Don't declare.
7256 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7257 typedef.
7258 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7259 * cli/cli-decode.c (cmd_type): Remove.
7260
7261 2020-06-27 Pedro Alves <palves@redhat.com>
7262
7263 * fork-child.c (prefork_hook): Adjust.
7264 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7265 Delete.
7266 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7267 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7268 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7269 Remove declarations.
7270 (struct inferior) <set_tty, tty>: New methods.
7271 (struct inferior) <terminal>: Rename to ...
7272 (struct inferior) <m_terminal>: ... this and make private.
7273 * main.c (captured_main_1): Adjust.
7274 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7275 (mi_cmd_inferior_tty_show): Adjust.
7276 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7277 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7278
7279 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7280
7281 * configure.ac: Add --enable-libctf: handle --disable-static
7282 properly.
7283 * acinclude.m4: sinclude ../config/enable.m4.
7284 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7285 (LIBCTF): Substitute in.
7286 (CTF_DEPS): New, likewise.
7287 (CLIBS): libctf needs symbols from libbfd: move earlier.
7288 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7289 flags.
7290 * ctfread.c: Surround in ENABLE_LIBCTF.
7291 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7292 * configure: Regenerate.
7293 * config.in: Likewise.
7294
7295 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7296
7297 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7298
7299 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7300
7301 * inferior.h (struct inferior) <terminal>: Change type to
7302 gdb::unique_xmalloc_ptr<char>.
7303 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7304 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7305 field, adjust to unique pointer.
7306 (get_inferior_io_terminal): Adjust to unique pointer.
7307
7308 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7309
7310 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7311 registers, not just the known core set of registers.
7312
7313 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7314
7315 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7316 fflags, frm, and fcsr registers.
7317 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7318 restore groups.
7319 (riscv_tdesc_unknown_reg): New function.
7320 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7321 tdesc_use_registers.
7322 * riscv-tdep.h (struct gdbarch_tdep): Add
7323 unknown_csrs_first_regnum, unknown_csrs_count,
7324 duplicate_fflags_regnum, duplicate_frm_regnum, and
7325 duplicate_fcsr_regnum fields.
7326
7327 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7328
7329 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7330 callback, use the callback (when not null) to help number unknown
7331 registers.
7332 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7333 (tdesc_use_registers): Add extra parameter to declaration.
7334
7335 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7336
7337 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7338 in the file.
7339 (class riscv_pending_register_alias): Likewise.
7340 (riscv_register_feature::register_info): Change 'required_p' field
7341 to 'required', and change its type. Add 'check' member function.
7342 (riscv_register_feature::register_info::check): Define new member
7343 function.
7344 (riscv_xreg_feature): Change initialisation of 'required' field.
7345 (riscv_freg_feature): Likewise.
7346 (riscv_virtual_feature): Likewise.
7347 (riscv_csr_feature): Likewise.
7348 (riscv_check_tdesc_feature): Take extra parameter, the csr
7349 tdesc_feature, rewrite the function to use the new
7350 riscv_register_feature::register_info::check function.
7351 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7352
7353 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7354
7355 * features/Makefile: Remove all references to the deleted files
7356 below.
7357 * features/riscv/32bit-csr.c: Deleted.
7358 * features/riscv/32bit-csr.xml: Deleted.
7359 * features/riscv/64bit-csr.c: Deleted.
7360 * features/riscv/64bit-csr.xml: Deleted.
7361 * features/riscv/rebuild-csr-xml.sh: Deleted.
7362
7363 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7364
7365 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7366 whitespace error for declaration of names member variable.
7367 (struct riscv_register_feature): Add new prefer_first_name member
7368 variable, and fix whitespace error in declaration of registers.
7369 (riscv_xreg_feature): Initialize prefer_first_name field.
7370 (riscv_freg_feature): Likewise.
7371 (riscv_virtual_feature): Likewise.
7372 (riscv_csr_feature): Likewise.
7373 (riscv_register_name): Expand on comments. Remove register name
7374 modifications for CSR and virtual registers.
7375
7376 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7377
7378 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7379 errors.
7380
7381 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7382
7383 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7384 riscv-opc.h.
7385 (class riscv_pending_register_alias): New class.
7386 (riscv_check_tdesc_feature): Take vector of pending aliases and
7387 populate it as appropriate.
7388 (riscv_setup_register_aliases): Delete.
7389 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7390 to riscv_check_tdesc_feature in all cases. Use the vector to
7391 create the register aliases.
7392
7393 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7394
7395 * sol2-tdep.c (sol2_static_transform_name): Remove.
7396 (sol2_init_abi): Don't register it.
7397 * gdbarch.sh (static_transform_name): Remove.
7398 * gdbarch.c, gdbarch.h: Regenerate.
7399
7400 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7401 gdbarch_static_transform_name.
7402 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7403 * stabsread.c (define_symbol) <'X'>: Remove.
7404 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7405 handling.
7406 <'V'>: Likewise.
7407 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7408 <'S'>: Remove call to gdbarch_static_transform_name.
7409
7410 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7411
7412 * procfs.c (procfs_pre_trace): New function.
7413 (procfs_target::create_inferior): Pass it to fork_inferior.
7414
7415 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7416
7417 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7418 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7419 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7420 sol2-tdep.o, sparc-sol2-tdep.o.
7421 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7422 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7423 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7424 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7425
7426 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7427
7428 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7429 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7430 Call sol2_init_abi.
7431 Remove calls to set_gdbarch_skip_solib_resolver,
7432 set_gdbarch_core_pid_to_str.
7433 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7434 (i386_sol2_static_transform_name): Remove.
7435 (i386_sol2_init_abi): Call sol2_init_abi.
7436 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7437 set_gdbarch_static_transform_name,
7438 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7439 Use sol2_sigtramp_p.
7440 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7441 (sol2_sigtramp_p): New function.
7442 (sol2_static_transform_name): New function.
7443 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7444 (sol2_init_abi): New function.
7445 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7446 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7447 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7448 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7449 (sparc_sol2_static_transform_name): Remove.
7450 (sparc32_sol2_init_abi): Call sol2_init_abi.
7451 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7452 set_gdbarch_static_transform_name,
7453 set_gdbarch_skip_solib_resolver,
7454 set_gdbarch_core_pid_to_str.
7455 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7456 (sparc_sol2_static_transform_name): Remove
7457 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7458 call sol2_sigtramp_p.
7459 (sparc64_sol2_init_abi): Call sol2_init_abi.
7460 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7461 set_gdbarch_static_transform_name,
7462 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7463
7464 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7465
7466 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7467 * exec.c (validate_exec_file): If from_tty, set both
7468 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7469 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7470 and from_tty, unconditionally ask a confirmation.
7471
7472 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7473
7474 * target-descriptions.c (tdesc_architecture_name): Protect against
7475 NULL pointer dereference.
7476 (maint_print_xml_tdesc_cmd): New function.
7477 (_initialize_target_descriptions): Register new 'maint print
7478 xml-tdesc' command and give it the filename completer.
7479 * NEWS: Mention new 'maint print xml-tdesc' command.
7480
7481 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7482
7483 * target-descriptions.c (class tdesc_compatible_info): New class.
7484 (struct target_desc): Change type of compatible vector.
7485 (tdesc_compatible_p): Update for change in type of
7486 target_desc::compatible.
7487 (tdesc_compatible_info_list): New function.
7488 (tdesc_compatible_info_arch_name): New function.
7489 (tdesc_add_compatible): Update for change in type of
7490 target_desc::compatible.
7491 (print_c_tdesc::visit_pre): Likewise.
7492
7493 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7494
7495 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7496 whitespace to underscore.
7497 (maint_print_c_tdesc_cmd): Use fake filename for target
7498 descriptions that came from the target.
7499 (_initialize_target_descriptions): Add filename command completion
7500 for 'maint print c-tdesc'.
7501
7502 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7503
7504 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7505 lines.
7506
7507 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7508
7509 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7510 lines.
7511 (dwarf2_find_location_expression): Likewise.
7512 (call_site_parameter_matches): Likewise.
7513 (dwarf2_compile_expr_to_ax): Likewise.
7514 (disassemble_dwarf_expression): Likewise.
7515 (loclist_describe_location): Likewise.
7516
7517 2020-06-23 Pedro Alves <palves@redhat.com>
7518
7519 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7520 progspace-and-thread.h. Include scoped-mock-context.h instead.
7521 (register_to_value_test): Use scoped_mock_context.
7522 * regcache.c: Include "scoped-mock-context.h".
7523 (cooked_read_test): Don't error out if a target is already pushed.
7524 Use scoped_mock_context. Adjust.
7525 * scoped-mock-context.h: New file.
7526
7527 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7528
7529 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7530 initializer.
7531 (ada_language::is_string_type_p): New member function.
7532 * c-lang.c (c_language_data): Delete la_is_string_type_p
7533 initializer.
7534 (cplus_language_data): Likewise.
7535 (asm_language_data): Likewise.
7536 (minimal_language_data): Likewise.
7537 * d-lang.c (d_language_data): Likewise.
7538 * f-lang.c (f_is_string_type_p): Delete function, implementation
7539 moved to f_language::is_string_type_p.
7540 (f_language_data): Delete la_is_string_type_p initializer.
7541 (f_language::is_string_type_p): New member function,
7542 implementation from f_is_string_type_p.
7543 * go-lang.c (go_is_string_type_p): Delete function, implementation
7544 moved to go_language::is_string_type_p.
7545 (go_language_data): Delete la_is_string_type_p initializer.
7546 (go_language::is_string_type_p): New member function,
7547 implementation from go_is_string_type_p.
7548 * language.c (language_defn::is_string_type_p): Define new member
7549 function.
7550 (default_is_string_type_p): Make static, add comment copied from
7551 header file.
7552 (unknown_language_data): Delete la_is_string_type_p initializer.
7553 (unknown_language::is_string_type_p): New member function.
7554 (auto_language_data): Delete la_is_string_type_p initializer.
7555 (auto_language::is_string_type_p): New member function.
7556 * language.h (language_data): Delete la_is_string_type_p field.
7557 (language_defn::is_string_type_p): Declare new function.
7558 (default_is_string_type_p): Delete desclaration, move comment to
7559 definition.
7560 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7561 moved to m2_language::is_string_type_p.
7562 (m2_language_data): Delete la_is_string_type_p initializer.
7563 (m2_language::is_string_type_p): New member function,
7564 implementation from m2_is_string_type_p.
7565 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7566 initializer.
7567 * opencl-lang.c (opencl_language_data): Likewise.
7568 * p-lang.c (pascal_is_string_type_p): Delete function,
7569 implementation moved to pascal_language::is_string_type_p.
7570 (pascal_language_data): Delete la_is_string_type_p initializer.
7571 (pascal_language::is_string_type_p): New member function,
7572 implementation from pascal_is_string_type_p.
7573 * rust-lang.c (rust_is_string_type_p): Delete function,
7574 implementation moved to rust_language::is_string_type_p.
7575 (rust_language_data): Delete la_is_string_type_p initializer.
7576 (rust_language::is_string_type_p): New member function,
7577 implementation from rust_is_string_type_p.
7578 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7579 is_string_type_p.
7580
7581 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7582
7583 * ada-lang.c (ada_language_data): Delete la_print_typedef
7584 initializer.
7585 (ada_language::print_typedef): New member function.
7586 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7587 (cplus_language_data): Likewise.
7588 (asm_language_data): Likewise.
7589 (minimal_language_data): Likewise.
7590 * d-lang.c (d_language_data): Likewise.
7591 * f-lang.c (f_language_data): Likewise.
7592 (f_language::print_typedef): New member function.
7593 * go-lang.c (go_language_data): Delete la_print_typedef
7594 initializer.
7595 * language.c (language_defn::print_typedef): Define member
7596 function.
7597 (unknown_language_data): Delete la_print_typedef initializer.
7598 (unknown_language::print_typedef): New member function.
7599 (auto_language_data): Delete la_print_typedef initializer.
7600 (auto_language::print_typedef): New member function.
7601 * language.h (language_data): Delete la_print_typedef field.
7602 (language_defn::print_typedef): Declare new member function.
7603 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7604 (default_print_typedef): Delete declaration.
7605 * m2-lang.c (m2_language_data): Delete la_print_typedef
7606 initializer.
7607 (m2_language::print_typedef): New member function.
7608 * objc-lang.c (objc_language_data): Delete la_print_typedef
7609 initializer.
7610 * opencl-lang.c (opencl_language_data): Likewise.
7611 * p-lang.c (pascal_language_data): Likewise.
7612 (pascal_language::print_typedef): New member function.
7613 * rust-lang.c (rust_print_typedef): Delete function,
7614 implementation moved to rust_language::print_typedef.
7615 (rust_language): Delete la_print_typedef initializer.
7616 (rust_language::print_typedef): New member function,
7617 implementation from rust_print_typedef.
7618 * typeprint.c (default_print_typedef): Delete.
7619
7620 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7621
7622 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7623 (ada_language::printstr): New member function.
7624 * c-lang.c (c_language_data): Delete la_printstr initializer.
7625 (cplus_language_data): Likewise.
7626 (asm_language_data): Likewise.
7627 (minimal_language_data): Likewise.
7628 * d-lang.c (d_language_data): Likewise.
7629 * f-lang.c (f_printstr): Rename to f_language::printstr.
7630 (f_language_data): Delete la_printstr initializer.
7631 (f_language::printstr): New member function, implementation from
7632 f_printstr.
7633 * go-lang.c (go_language_data): Delete la_printstr initializer.
7634 * language.c (language_defn::printstr): Define new member
7635 function.
7636 (unk_lang_printstr): Delete.
7637 (unknown_language_data): Delete la_printstr initializer.
7638 (unknown_language::printstr): New member function.
7639 (auto_language_data): Delete la_printstr initializer.
7640 (auto_language::printstr): New member function.
7641 * language.h (language_data): Delete la_printstr field.
7642 (language_defn::printstr): Declare new member function.
7643 (LA_PRINT_STRING): Update call to printstr.
7644 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7645 (m2_language_data): Delete la_printstr initializer.
7646 (m2_language::printstr): New member function, implementation from
7647 m2_printstr.
7648 * objc-lang.c (objc_language_data): Delete la_printstr
7649 initializer.
7650 * opencl-lang.c (opencl_language_data): Likewise.
7651 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7652 (pascal_language_data): Delete la_printstr initializer.
7653 (pascal_language::printstr): New member function, implementation
7654 from pascal_printstr.
7655 * p-lang.h (pascal_printstr): Delete declaration.
7656 * rust-lang.c (rust_printstr): Update header comment.
7657 (rust_language_data): Delete la_printstr initializer.
7658 (rust_language::printstr): New member function.
7659
7660 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7661
7662 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7663 (ada_language::printchar): New member function.
7664 * c-lang.c (c_language_data): Delete la_printchar initializer.
7665 (cplus_language_data): Likewise.
7666 (asm_language_data): Likewise.
7667 (minimal_language_data): Likewise.
7668 * d-lang.c (d_language_data): Likewise.
7669 * f-lang.c (f_printchar): Rename to f_language::printchar.
7670 (f_language_data): Delete la_printchar initializer.
7671 (f_language::printchar): New member function, implementation from
7672 f_printchar.
7673 * go-lang.c (go_language_data): Delete la_printchar initializer.
7674 * language.c (unk_lang_printchar): Delete.
7675 (language_defn::printchar): Define new member function.
7676 (unknown_language_data): Delete la_printchar initializer.
7677 (unknown_language::printchar): New member function.
7678 (auto_language_data): Delete la_printchar initializer.
7679 (auto_language::printchar): New member function.
7680 * language.h (language_data): Delete la_printchar field.
7681 (language_defn::printchar): Declare new member function.
7682 (LA_PRINT_CHAR): Update call to printchar.
7683 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7684 (m2_language::printchar): New member function.
7685 * objc-lang.c (objc_language_data): Delete la_printchar
7686 initializer.
7687 * opencl-lang.c (opencl_language_data): Likewise.
7688 * p-lang.c (pascal_language_data): Delete la_printchar
7689 initializer.
7690 (pascal_language::printchar): New member function.
7691 * rust-lang.c (rust_printchar): Rename to
7692 rust_language::printchar.
7693 (rust_language_data): Delete la_printchar initializer.
7694 (rust_language::printchar): New member function, implementation
7695 from rust_printchar.
7696
7697 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7698
7699 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7700 (ada_language_data): Delete la_emitchar initializer.
7701 (ada_language::emitchar): New member function, implementation from
7702 emit_char.
7703 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7704 (cplus_language_data): Likewise.
7705 (asm_language_data): Likewise.
7706 (minimal_language_data): Likewise.
7707 * d-lang.c (d_language_data): Likewise.
7708 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7709 (f_language_data): Delete la_emitchar initializer.
7710 (f_language::emitchar): New member function, implementation from
7711 f_emit_char.
7712 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7713 * language.c (unk_lang_emit_char): Delete.
7714 (language_defn::emitchar): New member function definition.
7715 (unknown_language_data): Delete la_emitchar initializer.
7716 (unknown_language::emitchar): New member function.
7717 (auto_language_data): Delete la_emitchar initializer.
7718 (auto_language::emitchar): New member function.
7719 * language.h (language_data): Delete la_emitchar field.
7720 (language_defn::emitchar): New member field declaration.
7721 (LA_EMIT_CHAR): Update call to emitchar.
7722 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7723 (m2_language_data): Delete la_emitchar initializer.
7724 (m2_language::emitchar): New member function, implementation from
7725 m2_emit_char.
7726 * objc-lang.c (objc_language_data): Delete la_emitchar
7727 initializer.
7728 * opencl-lang.c (opencl_language_data): Likewise.
7729 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7730 (pascal_language_data): Delete la_emitchar initializer.
7731 (pascal_language::emitchar): New member function, implementation
7732 from pascal_emit_char.
7733 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7734 (rust_language_data): Delete la_emitchar initializer.
7735 (rust_language::emitchar): New member function, implementation
7736 from rust_emitchar.
7737
7738 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7739
7740 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7741 (ada_language_data): Delete la_post_parser initializer.
7742 (ada_language::post_parser): New member function.
7743 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7744 (cplus_language_data): Likewise.
7745 (asm_language_data): Likewise.
7746 (minimal_language_data): Likewise.
7747 * d-lang.c (d_language_data): Likewise.
7748 * f-lang.c (f_language_data): Likewise.
7749 * go-lang.c (go_language_data): Likewise.
7750 * language.c (unknown_language_data): Likewise.
7751 (auto_language_data): Likewise.
7752 * language.h (language_data): Delete la_post_parser field.
7753 (language_defn::post_parser): New member function.
7754 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7755 * objc-lang.c (objc_language_data): Likewise.
7756 * opencl-lang.c (opencl_language_data): Likewise.
7757 * p-lang.c (pascal_language_data): Likewise.
7758 * parse.c (parse_exp_in_context): Update call to post_parser.
7759 (null_post_parser): Delete definition.
7760 * parser-defs.h (null_post_parser): Delete declaration.
7761 * rust-lang.c (rust_language_data): Delete la_post_parser
7762 initializer.
7763
7764 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7765
7766 * ada-lang.c (parse): Rename to ada_language::parser.
7767 (ada_language_data): Delete la_parser initializer.
7768 (ada_language::parser): New member function, implementation from
7769 parse.
7770 * c-lang.c (c_language_data): Delete la_parser initializer.
7771 (cplus_language_data): Likewise.
7772 (asm_language_data): Likewise.
7773 (minimal_language_data): Likewise.
7774 * d-lang.c (d_language_data): Likewise.
7775 (d_language::parser): New member function.
7776 * f-lang.c (f_language_data): Delete la_parser initializer.
7777 (f_language::parser): New member function.
7778 * go-lang.c (go_language_data): Delete la_parser initializer.
7779 (go_language::parser): New member function.
7780 * language.c (unk_lang_parser): Delete.
7781 (language_defn::parser): Define new member function.
7782 (unknown_language_data): Delete la_parser initializer.
7783 (unknown_language::parser): New member function.
7784 (auto_language_data): Delete la_parser initializer.
7785 (auto_language::parser): New member function.
7786 * language.h (language_data): Delete la_parser field.
7787 (language_defn::parser): Declare new member function.
7788 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7789 (m2_language::parser): New member function.
7790 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7791 * opencl-lang.c (opencl_language_data): Likewise.
7792 * p-lang.c (pascal_language_data): Likewise.
7793 (pascal_language::parser): New member function.
7794 * parse.c (parse_exp_in_context): Update call to parser.
7795 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7796 (rust_language::parser): New member function.
7797
7798 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7799
7800 * top.c (print_gdb_configuration): Print --with-python-libdir
7801 configuration value.
7802
7803 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7804
7805 * NEWS: Mention change to the alias command.
7806
7807 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7808
7809 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7810 (alias_command_completer)
7811 (make_alias_options_def_group): New functions.
7812 (alias_opts, alias_option_defs): New struct and array.
7813 (alias_usage_error): Update usage.
7814 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7815 Use option framework.
7816 (_initialize_cli_cmds): Update alias command help.
7817 Update aliases command help.
7818 (show_user):
7819 Add NULL for new default_args lookup_cmd argument.
7820 (valid_command_p): Rename to validate_aliased_command.
7821 Add NULL for new default_args lookup_cmd argument. Verify that the
7822 aliased_command has no default args.
7823 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7824 (lookup_cmd_1, lookup_cmd): New argument default_args.
7825 (add_alias_cmd):
7826 Add NULL for new default_args lookup_cmd argument.
7827 (print_help_for_command): Show default args under the layout
7828 alias some_alias = some_aliased_cmd some_alias_default_arg.
7829 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7830 xfree default_args in destructor.
7831 * cli/cli-script.c (process_next_line, do_define_command):
7832 Add NULL for new default_args lookup_cmd argument.
7833 * command.h: Declare new default_args argument in lookup_cmd
7834 and lookup_cmd_1.
7835 * completer.c (complete_line_internal_1):
7836 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7837 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7838 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7839 Likewise.
7840 * infcmd.c (_initialize_infcmd): Likewise.
7841 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7842 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7843 * python/py-param.c (add_setshow_generic): Likewise.
7844 * remote.c (_initialize_remote): Likewise.
7845 * top.c (execute_command): Prepend default_args if command has some.
7846 (set_verbose):
7847 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7848 * tracepoint.c (validate_actionline, encode_actions_1):
7849 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7850
7851 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7852
7853 * jit.c (jit_read_descriptor): Use bool as the return type.
7854 (jit_breakpoint_re_set_internal): Use bool as the return type.
7855 Invert the return value logic; return true if the jit breakpoint
7856 has been successfully initialized.
7857 (jit_inferior_init): Update the call to
7858 jit_breakpoint_re_set_internal.
7859
7860 2020-06-22 Pedro Alves <palves@redhat.com>
7861
7862 PR gdb/25939
7863 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7864 Use the current inferior instead. Don't return
7865 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7866 wait again.
7867 * sol-thread.c (sol_thread_target::wait): Don't reference
7868 inferior_ptid.
7869 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7870 (sol_update_thread_list_callback): Use the current inferior's pid
7871 instead of inferior_ptid.
7872
7873 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7874
7875 * procfs.c: Cleanup many comments.
7876
7877 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7878 (AFTER_WATCHFLAG): Replace by value.
7879
7880 (MAIN_PROC_NAME_FORMAT): Inline ...
7881 (create_procinfo): ... here.
7882
7883 (procfs_debug_inferior): Remove SYS_exec handling.
7884 (syscall_is_exec): Likewise.
7885 (procfs_set_exec_trap): Likewise.
7886
7887 (syscall_is_lwp_exit): Inline in callers.
7888 (syscall_is_exit): Likewise.
7889 (syscall_is_exec): Likewise.
7890 (syscall_is_lwp_create): Likewise.
7891
7892 (invalidate_cache): Remove #if 0 code.
7893
7894 (make_signal_thread_runnable): Remove.
7895 (procfs_target::resume): Remove #if 0 code.
7896
7897 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7898
7899 PR gdb/25939
7900 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7901 call ...
7902 (procfs_target::create_inferior): ... here.
7903
7904 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7905
7906 * exec.c (validate_exec_file): Ensure the build-id is up to
7907 date by calling reopen_exec_file (that checks file timestamp
7908 to decide to re-read the file).
7909
7910 2020-06-18 Pedro Alves <palves@redhat.com>
7911
7912 PR gdb/25412
7913 * gdbthread.h (delete_thread, delete_thread_silent)
7914 (find_thread_ptid): Update comments.
7915 * thread.c (current_thread_): New global.
7916 (is_current_thread): Move higher, and reimplement.
7917 (inferior_thread): Reimplement.
7918 (set_thread_exited): Use bool. Add assertions.
7919 (add_thread_silent): Simplify thread-reuse handling by always
7920 calling delete_thread.
7921 (delete_thread): Remove intro comment.
7922 (find_thread_ptid): Skip exited threads.
7923 (switch_to_thread_no_regs): Write to current_thread_.
7924 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7925 INFERIOR_PTID. Clear current_thread_.
7926
7927 2020-06-18 Pedro Alves <palves@redhat.com>
7928
7929 * aix-thread.c (pd_update): Use switch_to_thread.
7930
7931 2020-06-18 Pedro Alves <palves@redhat.com>
7932
7933 * ravenscar-thread.c (ravenscar_thread_target): Update.
7934 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7935 (ravenscar_thread_target::add_active_thread): ... this. Don't
7936 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7937 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7938
7939 2020-06-18 Pedro Alves <palves@redhat.com>
7940
7941 * nat/windows-nat.c (current_windows_thread): Remove.
7942 * nat/windows-nat.h (current_windows_thread): Remove.
7943 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7944 Adjust.
7945 (display_selectors): Adjust to fetch the current
7946 windows_thread_info based on inferior_ptid.
7947 (fake_create_process): No longer write to current_windows_thread.
7948 (windows_nat_target::get_windows_debug_event):
7949 Don't set inferior_ptid or current_windows_thread.
7950 (windows_nat_target::wait): Adjust to not rely on
7951 current_windows_thread.
7952 (do_initial_windows_stuff): Now a method of windows_nat_target.
7953 Switch to the last_ptid thread.
7954 (windows_nat_target::attach): Adjust.
7955 (windows_nat_target::detach): Use switch_to_no_thread instead of
7956 writing to inferior_ptid directly.
7957 (windows_nat_target::create_inferior): Adjust.
7958
7959 2020-06-18 Pedro Alves <palves@redhat.com>
7960
7961 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7962
7963 2020-06-18 Pedro Alves <palves@redhat.com>
7964
7965 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7966 after creating it, instead of writing to inferior_ptid. Don't
7967 write to inferior_ptid.
7968
7969 2020-06-18 Pedro Alves <palves@redhat.com>
7970
7971 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7972
7973 2020-06-18 Pedro Alves <palves@redhat.com>
7974
7975 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7976 it, instead of writing to inferior_ptid.
7977
7978 2020-06-18 Pedro Alves <palves@redhat.com>
7979
7980 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7981 to inferior_ptid.
7982
7983 2020-06-18 Pedro Alves <palves@redhat.com>
7984
7985 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7986 instead of writing to inferior_ptid directly.
7987
7988 2020-06-18 Pedro Alves <palves@redhat.com>
7989
7990 * corelow.c (core_target::close): Use switch_to_no_thread instead
7991 of writing to inferior_ptid directly.
7992 (add_to_thread_list, core_target_open): Use switch_to_thread
7993 instead of writing to inferior_ptid directly.
7994
7995 2020-06-18 Pedro Alves <palves@redhat.com>
7996
7997 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7998 inferior_ptid.
7999 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8000 inferior_ptid.
8001 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8002 inferior_ptid directly.
8003 (darwin_nat_target::init_thread_list): Switch to thread, instead
8004 of writing to inferior_ptid.
8005 (darwin_nat_target::attach): Don't write to inferior_ptid.
8006 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8007
8008 2020-06-18 Pedro Alves <palves@redhat.com>
8009
8010 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8011 thread.
8012 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8013 Instead use switch_to_thread.
8014 (gnu_nat_target::detach): Use switch_to_no_thread
8015 instead of writing to inferior_ptid directly. Used passed-in
8016 inferior instead of looking up the inferior by pid.
8017
8018 2020-06-18 Pedro Alves <palves@redhat.com>
8019
8020 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8021 inferior_ptid.
8022
8023 2020-06-18 Pedro Alves <palves@redhat.com>
8024
8025 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8026 inferior_ptid.
8027 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8028 thread.
8029 (nto_procfs_target::detach): Avoid referencing
8030 inferior_ptid. Use switch_to_no_thread instead of writing to
8031 inferior_ptid directly.
8032 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8033 instead of writing to inferior_ptid directly.
8034 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8035 to thread.
8036
8037 2020-06-18 Pedro Alves <palves@redhat.com>
8038
8039 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8040 after creating it, instead of writing to inferior_ptid.
8041 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8042 to inferior_ptid directly.
8043 (gdbsim_target::wait): Don't write to inferior_ptid.
8044
8045 2020-06-18 Pedro Alves <palves@redhat.com>
8046
8047 * remote.c (remote_target::remote_notice_new_inferior): Use
8048 switch_to_thread instead of writing to inferior_ptid directly.
8049 (remote_target::add_current_inferior_and_thread): Use
8050 switch_to_no_thread instead of writing to inferior_ptid directly.
8051 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8052 and switch_to_thread instead of using set_current_inferior or
8053 writing to inferior_ptid directly.
8054
8055 2020-06-18 Pedro Alves <palves@redhat.com>
8056
8057 * tracectf.c (ctf_target_open): Switch to added thread instead of
8058 writing to inferior_ptid directly.
8059 (ctf_target::close): Use switch_to_no_thread instead of writing to
8060 inferior_ptid directly.
8061
8062 2020-06-18 Pedro Alves <palves@redhat.com>
8063
8064 * tracefile-tfile.c (tfile_target_open): Don't write to
8065 inferior_ptid directly, instead switch to added thread.
8066 (tfile_target::close): Use switch_to_no_thread instead of writing
8067 to inferior_ptid directly.
8068
8069 2020-06-18 Pedro Alves <palves@redhat.com>
8070
8071 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8072 (procfs_target::detach): Use switch_to_no_thread
8073 instead of writing to inferior_ptid directly.
8074 (do_attach): Change return type to void. Switch to the added
8075 thread.
8076 (procfs_target::create_inferior): Switch to the added thread.
8077 (procfs_do_thread_registers): Don't write to inferior_ptid.
8078
8079 2020-06-18 Pedro Alves <palves@redhat.com>
8080
8081 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8082 of writing to inferior_ptid.
8083 (scoped_restore_exited_inferior): Delete.
8084 (handle_vfork_child_exec_or_exit): Simplify using
8085 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8086 instead of writing to inferior_ptid.
8087 (THREAD_STOPPED_BY): Delete.
8088 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8089 (thread_stopped_by_hw_breakpoint): Delete.
8090 (save_waitstatus): Use
8091 scoped_restore_current_thread+switch_to_thread, and call
8092 target_stopped_by_watchpoint instead of
8093 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8094 instead of thread_stopped_by_sw_breakpoint, and
8095 target_stopped_by_hw_breakpoint instead of
8096 thread_stopped_by_hw_breakpoint.
8097 (handle_inferior_event)
8098 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8099 inferior_ptid directly, nor
8100 set_current_inferior/set_current_program_space. Use
8101 switch_to_thread / switch_to_inferior_no_thread instead.
8102
8103 2020-06-18 Pedro Alves <palves@redhat.com>
8104
8105 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8106 instead of writing to inferior_ptid.
8107
8108 2020-06-18 Pedro Alves <palves@redhat.com>
8109
8110 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8111 added thread.
8112 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8113 to the added thread.
8114 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8115 instead of writing to inferior_ptid.
8116
8117 2020-06-18 Pedro Alves <palves@redhat.com>
8118
8119 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8120 (register_to_value_test): Mock a program_space too. Heap-allocate
8121 the address space. Don't write to inferior_ptid. Use
8122 switch_to_thread instead.
8123
8124 2020-06-18 Pedro Alves <palves@redhat.com>
8125
8126 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8127 Delete.
8128 (find_signalled_thread()): New, factored out from
8129 linux_make_corefile_notes and adjusted to handle exited threads.
8130 (linux_make_corefile_notes): Adjust to use the new
8131 find_signalled_thread.
8132
8133 2020-06-18 Pedro Alves <palves@redhat.com>
8134
8135 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8136 of saving/restoring inferior_ptid.
8137
8138 2020-06-17 Tom Tromey <tom@tromey.com>
8139
8140 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8141 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8142 declare.
8143 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8144
8145 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8146
8147 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8148 of partial symtabs.
8149
8150 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8151
8152 * regformats/reg-arm.dat: Remove.
8153 * regformats/reg-bfin.dat: Remove.
8154 * regformats/reg-cris.dat: Remove.
8155 * regformats/reg-crisv32.dat: Remove.
8156 * regformats/reg-m32r.dat: Remove.
8157 * regformats/reg-tilegx.dat: Remove.
8158 * regformats/reg-tilegx32.dat: Remove.
8159
8160 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8161
8162 * features/Makefile (WHICH): Remove arm files.
8163 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8164 * regformats/arm/arm-with-neon.dat: Remove.
8165 * regformats/arm/arm-with-vfpv2.dat: Remove.
8166 * regformats/arm/arm-with-vfpv3.dat: Remove.
8167
8168 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8169
8170 * features/Makefile (XMLTOC): Remove rx.xml.
8171
8172 2020-06-17 Pedro Alves <palves@redhat.com>
8173
8174 * gdbthread.h (thread_control_state) <trap_expected> Update
8175 comments.
8176
8177 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8178
8179 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8180 ada_language::lookup_symbol_nonlocal.
8181 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8182 (ada_language::lookup_symbol_nonlocal): New member function,
8183 implementation from ada_lookup_symbol_nonlocal.
8184 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8185 initializer.
8186 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8187 initializer.
8188 (cplus_language::lookup_symbol_nonlocal): New member function.
8189 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8190 (minimal_language_data) Likewise.
8191 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8192 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8193 initializer.
8194 (d_language::lookup_symbol_nonlocal): New member function.
8195 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8196 initializer.
8197 (f_language::lookup_symbol_nonlocal): New member function.
8198 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8199 initializer.
8200 * language.c (unknown_language_data): Likewise.
8201 (auto_language_data): Likewise.
8202 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8203 field.
8204 (language_defn::lookup_symbol_nonlocal): New member function.
8205 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8206 initializer.
8207 * objc-lang.c (objc_language_data): Likewise.
8208 * opencl-lang.c (opencl_language_data): Likewise.
8209 * p-lang.c (pascal_language_data): Likewise.
8210 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8211 rust_language::lookup_symbol_nonlocal.
8212 (rust_language_data): Delete la_lookup_symbol_nonlocal
8213 initializer.
8214 (rust_language::lookup_symbol_nonlocal): New member function,
8215 implementation from rust_lookup_symbol_nonlocal.
8216 * symtab.c (lookup_symbol_aux): Update call to
8217 lookup_symbol_nonlocal.
8218 (basic_lookup_symbol_nonlocal): Rename to...
8219 (language_defn::lookup_symbol_nonlocal): ...this, and update
8220 header comment. Remove language_defn parameter, and replace with
8221 uses of `this'.
8222 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8223
8224 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8225
8226 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8227 initializer.
8228 (ada_language::value_print_inner): New member function.
8229 * c-lang.c (c_language_data): Delete la_value_print_inner
8230 initializer.
8231 (cplus_language_data): Likewise.
8232 (asm_language_data): Likewise.
8233 (minimal_language_data): Likewise.
8234 * d-lang.c (d_language_data): Likewise.
8235 (d_language::value_print_inner): New member function.
8236 * f-lang.c (f_language_data): Delete la_value_print_inner
8237 initializer.
8238 (f_language::value_print_inner): New member function.
8239 * f-lang.h (f_value_print_innner): Rename to...
8240 (f_value_print_inner): ...this (note spelling of 'inner').
8241 * f-valprint.c (f_value_print_innner): Rename to...
8242 (f_value_print_inner): ...this (note spelling of 'inner').
8243 * go-lang.c (go_language_data): Delete la_value_print_inner
8244 initializer.
8245 (go_language::value_print_inner): New member function.
8246 * language.c (language_defn::value_print_inner): Define new member
8247 function.
8248 (unk_lang_value_print_inner): Delete.
8249 (unknown_language_data): Delete la_value_print_inner initializer.
8250 (unknown_language::value_print_inner): New member function.
8251 (auto_language_data): Delete la_value_print_inner initializer.
8252 (auto_language::value_print_inner): New member function.
8253 * language.h (language_data): Delete la_value_print_inner field.
8254 (language_defn::value_print_inner): Delcare new member function.
8255 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8256 initializer.
8257 (m2_language::value_print_inner): New member function.
8258 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8259 initializer.
8260 * opencl-lang.c (opencl_language_data): Likewise.
8261 * p-lang.c (pascal_language_data): Likewise.
8262 (pascal_language::value_print_inner): New member function.
8263 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8264 initializer.
8265 (rust_language::value_print_inner): New member function.
8266 * valprint.c (do_val_print): Update call to value_print_inner.
8267
8268 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8269
8270 * ada-lang.c (ada_language_data): Delete la_value_print
8271 initializer.
8272 (ada_language::value_print): New member function.
8273 * c-lang.c (c_language_data): Delete la_value_print initializer.
8274 (cplus_language_data): Likewise.
8275 (asm_language_data): Likewise.
8276 (minimal_language_data): Likewise.
8277 * d-lang.c (d_language_data): Likewise.
8278 * f-lang.c (f_language_data): Likewise.
8279 * go-lang.c (go_language_data): Likewise.
8280 * language.c (unk_lang_value_print): Delete.
8281 (language_defn::value_print): Define new member function.
8282 (unknown_language_data): Delete la_value_print initializer.
8283 (unknown_language::value_print): New member function.
8284 (auto_language_data): Delete la_value_print initializer.
8285 (auto_language::value_print): New member function.
8286 * language.h (language_data): Delete la_value_print field.
8287 (language_defn::value_print): Declare new member function.
8288 (LA_VALUE_PRINT): Update call to value_print.
8289 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8290 * objc-lang.c (objc_language_data): Likewise.
8291 * opencl-lang.c (opencl_language_data): Likewise.
8292 * p-lang.c (pascal_language_data): Likewise.
8293 (pascal_language::value_print): New member function.
8294 * rust-lang.c (rust_language_data): Delete la_value_print
8295 initializer.
8296
8297 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8298
8299 * ada-lang.c (ada_watch_location_expression): Rename to
8300 ada_language::watch_location_expression.
8301 (ada_language_data): Delete la_watch_location_expression
8302 initializer.
8303 (ada_language::watch_location_expression): New member function,
8304 implementation from ada_watch_location_expression.
8305 * breakpoint.c (watch_command_1): Update call to
8306 watch_location_expression.
8307 * c-lang.c (c_watch_location_expression): Rename to
8308 language_defn::watch_location_expression.
8309 (c_language_data): Delete la_watch_location_expression
8310 initializer.
8311 (cplus_language_data): Likewise.
8312 (asm_language_data): Likewise.
8313 (minimal_language_data): Likewise.
8314 * c-lang.h (c_watch_location_expression): Delete declaration.
8315 * d-lang.c (d_language_data): Delete la_watch_location_expression
8316 initializer.
8317 * f-lang.c (f_language_data): Likewise.
8318 * go-lang.c (go_language_data): Likewise.
8319 * language.c (language_defn::watch_location_expression): Member
8320 function implementation from c_watch_location_expression.
8321 (unknown_language_data): Delete la_watch_location_expression
8322 initializer.
8323 (auto_language_data): Likewise.
8324 * language.h (language_data): Delete la_watch_location_expression
8325 field.
8326 (language_defn::watch_location_expression): Declare new member
8327 function.
8328 * m2-lang.c (m2_language_data): Delete
8329 la_watch_location_expression initializer.
8330 * objc-lang.c (objc_language_data): Likewise.
8331 * opencl-lang.c (opencl_language_data): Likewise.
8332 * p-lang.c (pascal_language_data): Likewise.
8333 * rust-lang.c (rust_watch_location_expression): Rename to
8334 rust_language::watch_location_expression.
8335 (rust_language_data): Delete la_watch_location_expression
8336 initializer.
8337 (rust_language::watch_location_expression): New member function,
8338 implementation from rust_watch_location_expression.
8339
8340 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8341
8342 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8343 ada_language::collect_symbol_completion_matches.
8344 (ada_language_data): Delete la_collect_symbol_completion_matches
8345 initializer.
8346 (ada_language::collect_symbol_completion_matches): New member
8347 function, implementation from
8348 ada_collect_symbol_completion_matches.
8349 * c-lang.c (c_language_data): Delete
8350 la_collect_symbol_completion_matches initializer.
8351 (cplus_language_data): Likewise.
8352 (asm_language_data): Likewise.
8353 (minimal_language_data): Likewise.
8354 * d-lang.c (d_language_data): Likewise.
8355 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8356 f_language::collect_symbol_completion_matches.
8357 (f_language_data): Delete la_collect_symbol_completion_matches
8358 initializer.
8359 (f_language::collect_symbol_completion_matches) New member
8360 function, implementation from f_collect_symbol_completion_matches.
8361 * go-lang.c (go_language_data): Delete
8362 la_collect_symbol_completion_matches initializer.
8363 * language.c (unknown_language_data): Likewise.
8364 (auto_language_data): Likewise.
8365 * language.h (language_data): Delete
8366 la_collect_symbol_completion_matches field.
8367 (language_defn::collect_symbol_completion_matches): New member
8368 function.
8369 * m2-lang.c (m2_language_data): Delete
8370 la_collect_symbol_completion_matches initializer.
8371 * objc-lang.c (objc_language_data): Likewise.
8372 * opencl-lang.c (opencl_language_data): Likewise.
8373 * p-lang.c (pascal_language_data): Likewise.
8374 * rust-lang.c (rust_language_data): Likewise.
8375 * symtab.c (default_collect_symbol_completion_matches): Delete.
8376 (collect_symbol_completion_matches): Update call to
8377 collect_symbol_completion_matches.
8378 (collect_symbol_completion_matches_type): Likewise.
8379 * symtab.h (default_collect_symbol_completion_matches): Delete
8380 declaration.
8381
8382 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8383
8384 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8385 (ada_language_data): Delete la_word_break_characters initializer.
8386 (ada_language::word_break_characters): New member function.
8387 * c-lang.c (c_language_data): Delete la_word_break_characters
8388 initializer.
8389 (cplus_language_data): Likewise.
8390 (asm_language_data): Likewise.
8391 (minimal_language_data): Likewise.
8392 * completer.c: Update global comment.
8393 (advance_to_expression_complete_word_point): Update call to
8394 word_break_characters.
8395 (complete_files_symbols): Likewise.
8396 (complete_line_internal_1): Likewise.
8397 (default_completer_handle_brkchars): Likewise.
8398 (skip_quoted_chars): Likewise.
8399 * d-lang.c (d_language_data): Delete la_word_break_characters
8400 initializer.
8401 * f-lang.c (f_word_break_characters): Delete.
8402 (f_language_data): Delete la_word_break_characters initializer.
8403 (f_language::word_break_characters): New member function.
8404 * go-lang.c (go_language_data): Delete la_word_break_characters
8405 initializer.
8406 * language.c (unknown_language_data): Likewise.
8407 (auto_language_data): Likewise.
8408 * language.h (default_word_break_characters): Move declaration to
8409 earlier in the file.
8410 (language_data): Delete la_word_break_characters field.
8411 (language_defn::word_break_characters): New member function.
8412 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8413 initializer.
8414 * objc-lang.c (objc_language_data): Likewise.
8415 * opencl-lang.c (opencl_language_data): Likewise.
8416 * p-lang.c (pascal_language_data): Likewise.
8417 * rust-lang.c (rust_language_data): Likewise.
8418
8419 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8420
8421 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8422 (ada_language_data): Delete la_get_symbol_name_matcher
8423 initializer.
8424 (language_defn::get_symbol_name_matcher_inner): New member
8425 function.
8426 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8427 initializer.
8428 (cplus_language_data): Likewise.
8429 (cplus_language::get_symbol_name_matcher_inner): New member
8430 function.
8431 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8432 (minimal_language_data): Likewise.
8433 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8434 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8435 initializer.
8436 * dictionary.c (iter_match_first_hashed): Update call to
8437 get_symbol_name_matcher.
8438 (iter_match_next_hashed): Likewise.
8439 (iter_match_next_linear): Likewise.
8440 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8441 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8442 initializer.
8443 (f_language::get_symbol_name_matcher_inner): New member function.
8444 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8445 initializer.
8446 * language.c (default_symbol_name_matcher): Update header comment,
8447 make static.
8448 (language_defn::get_symbol_name_matcher): New definition.
8449 (language_defn::get_symbol_name_matcher_inner): Likewise.
8450 (get_symbol_name_matcher): Delete.
8451 (unknown_language_data): Delete la_get_symbol_name_matcher
8452 initializer.
8453 (auto_language_data): Likewise.
8454 * language.h (language_data): Delete la_get_symbol_name_matcher
8455 field.
8456 (language_defn::get_symbol_name_matcher): New member function.
8457 (language_defn::get_symbol_name_matcher_inner): Likewise.
8458 (default_symbol_name_matcher): Delete declaration.
8459 * linespec.c (find_methods): Update call to
8460 get_symbol_name_matcher.
8461 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8462 initializer.
8463 * minsyms.c (lookup_minimal_symbol): Update call to
8464 get_symbol_name_matcher.
8465 (iterate_over_minimal_symbols): Likewise.
8466 * objc-lang.c (objc_language_data): Delete
8467 la_get_symbol_name_matcher initializer.
8468 * opencl-lang.c (opencl_language_data): Likewise.
8469 * p-lang.c (pascal_language_data): Likewise.
8470 * psymtab.c (psymbol_name_matches): Update call to
8471 get_symbol_name_matcher.
8472 * rust-lang.c (rust_language_data): Delete
8473 la_get_symbol_name_matcher initializer.
8474 * symtab.c (symbol_matches_search_name): Update call to
8475 get_symbol_name_matcher.
8476 (compare_symbol_name): Likewise.
8477
8478 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8479
8480 * ada-lang.c (ada_language_data): Delete la_compute_program
8481 initializer.
8482 * c-lang.c (c_language_data): Likewise.
8483 (c_language::compute_program): New member function.
8484 (cplus_language_data): Delete la_compute_program initializer.
8485 (cplus_language::compute_program): New member function.
8486 (asm_language_data): Delete la_compute_program initializer.
8487 (minimal_language_data): Likewise.
8488 * c-lang.h (c_compute_program): Update comment.
8489 (cplus_compute_program): Likewise.
8490 * compile/compile-c-support.c (c_compute_program): Likewise.
8491 (cplus_compute_program): Likewise.
8492 * compile/compile.c (compile_to_object): Update call to
8493 la_compute_program.
8494 * d-lang.c (d_language_data): Delete la_compute_program
8495 initializer.
8496 * f-lang.c (f_language_data): Likewise.
8497 * go-lang.c (go_language_data): Likewise.
8498 * language.c (unknown_language_data): Likewise.
8499 (auto_language_data): Likewise.
8500 * language.h (language_data): Delete la_compute_program field.
8501 (language_defn::compute_program): New member function.
8502 * m2-lang.c (m2_language_data): Delete la_compute_program
8503 initializer.
8504 * objc-lang.c (objc_language_data): Likewise.
8505 * opencl-lang.c (opencl_language_data): Likewise.
8506 * p-lang.c (pascal_language_data): Likewise.
8507 * rust-lang.c (rust_language_data): Likewise.
8508
8509 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8510
8511 * ada-lang.c (ada_language_data) Delete
8512 la_class_name_from_physname initializer.
8513 * c-lang.c (c_language_data): Likewise.
8514 (cplus_language_data): Likewise.
8515 (cplus_language::class_name_from_physname): New member function.
8516 (asm_language_data): Delete la_class_name_from_physname
8517 initializer.
8518 (minimal_language_data): Likewise.
8519 * d-lang.c (d_language_data): Likewise.
8520 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8521 method on language_defn class.
8522 (guess_full_die_structure_name): Likewise.
8523 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8524 initializer.
8525 * go-lang.c (go_language_data): Likewise.
8526 * language.c (language_class_name_from_physname): Delete.
8527 (unk_lang_class_name): Delete.
8528 (unknown_language_data): Delete la_class_name_from_physname
8529 initializer.
8530 (auto_language_data): Likewise.
8531 * language.h (language_data): Delete la_class_name_from_physname
8532 field.
8533 (language_defn::class_name_from_physname): New function.
8534 (language_class_name_from_physname): Delete declaration.
8535 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8536 initializer.
8537 * objc-lang.c (objc_language_data): Likewise.
8538 * opencl-lang.c (opencl_language_data): Likewise.
8539 * p-lang.c (pascal_language_data): Likewise.
8540 * rust-lang.c (rust_language_data): Likewise.
8541
8542 2020-06-16 Tom Tromey <tom@tromey.com>
8543
8544 * tui/tui-data.h (STATUS_NAME): New macro.
8545 * tui/tui-layout.c (tui_remove_some_windows)
8546 (initialize_known_windows, tui_register_window)
8547 (tui_layout_split::remove_windows, initialize_layouts)
8548 (tui_new_layout_command): Don't use hard-coded window names.
8549
8550 2020-06-16 Tom Tromey <tom@tromey.com>
8551
8552 PR tui/25348:
8553 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8554 tui_initialize_readline. Only run once. Call rl_initialize.
8555 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8556 tui_initialize_readline.
8557 * tui/tui-io.c (tui_setup_io): Call
8558 tui_ensure_readline_initialized.
8559 * tui/tui-interp.c (tui_interp::init): Update.
8560
8561 2020-06-16 Tom Tromey <tom@tromey.com>
8562
8563 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8564 Also preserve the status window.
8565
8566 2020-06-16 Tom Tromey <tom@tromey.com>
8567
8568 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8569 where m_window==nullptr.
8570
8571 2020-06-15 Tom Tromey <tromey@adacore.com>
8572
8573 * windows-nat.c (windows_nat::handle_output_debug_string):
8574 Update.
8575 (windows_nat::handle_ms_vc_exception): Update.
8576 * target.h (target_read_string): Change API.
8577 * target.c (target_read_string): Change API.
8578 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8579 Update.
8580 * solib-frv.c (frv_current_sos): Update.
8581 * solib-dsbt.c (dsbt_current_sos): Update.
8582 * solib-darwin.c (darwin_current_sos): Update.
8583 * linux-thread-db.c (inferior_has_bug): Update.
8584 * expprint.c (print_subexp_standard): Update.
8585 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8586 (ada_exception_message_1): Update.
8587
8588 2020-06-15 Tom Tromey <tromey@adacore.com>
8589
8590 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8591
8592 2020-06-15 Tom Tromey <tromey@adacore.com>
8593
8594 * valprint.c (read_string): Update comment.
8595 * target.c (MIN): Remove.
8596 (target_read_string): Rewrite.
8597
8598 2020-06-15 Tom Tromey <tromey@adacore.com>
8599
8600 * corefile.c (read_memory_string): Remove.
8601 * ada-valprint.c (ada_value_print_ptr): Update.
8602 * ada-lang.h (ada_tag_name): Change return type.
8603 * ada-lang.c (type_from_tag): Update.
8604 (ada_tag_name_from_tsd): Change return type. Use
8605 target_read_string.
8606 (ada_tag_name): Likewise.
8607 * gdbcore.h (read_memory_string): Don't declare.
8608
8609 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8610
8611 * symtab.c (rbreak_command): Ignore Windows drive colon.
8612
8613 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8614
8615 * NEWS: Mention removed GDBserver host support.
8616
8617 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8618
8619 * features/riscv/rebuild-csr-xml.sh: Updated.
8620
8621 2020-06-11 Tom Tromey <tom@tromey.com>
8622
8623 PR gdb/18318:
8624 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8625
8626 2020-06-09 Jonny Grant <jg@jguk.org>
8627 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8628
8629 * main.c (captured_main_1): Don't print new line after help.
8630 (print_gdb_help): add mailing list and IRC channel information
8631 to --help. Add new lines between items in the footer. Remove
8632 quotes around bug url.
8633
8634 2020-06-11 Keith Seitz <keiths@redhat.com>
8635
8636 PR gdb/21356
8637 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8638 Resolve typedefs for type length calculations.
8639
8640 2020-06-10 Tom de Vries <tdevries@suse.de>
8641
8642 PR ada/24713
8643 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8644 (write_psymbols): Enable .gdb_index for ada.
8645 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8646 ada.
8647
8648 2020-06-10 Tom de Vries <tdevries@suse.de>
8649
8650 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8651 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8652 namei" instead of "const char *name" argument.
8653 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8654 dw2_symtab_iter_init.
8655
8656 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8657
8658 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8659 to use type::field and field::type instead.
8660
8661 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8662
8663 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8664 to use field::type instead.
8665
8666 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8667
8668 * gdbtypes.h (struct field) <type, set_type>: New methods.
8669 Rename `type` field to...
8670 <m_type>: ... this. Change references throughout to use type or
8671 set_type methods.
8672 (FIELD_TYPE): Use field::type. Change call sites that modify
8673 the field's type to use field::set_type instead.
8674
8675 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8676
8677 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8678 to use type::index_type instead.
8679
8680 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8681
8682 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8683 methods.
8684 (TYPE_INDEX_TYPE): Use type::index_type.
8685 * gdbtypes.c (create_array_type_with_stride): Likewise.
8686
8687 2020-06-07 Tom Tromey <tom@tromey.com>
8688
8689 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8690 parameter.
8691 (generic_value_print): Update.
8692
8693 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8694
8695 Revert commit 982a38f60b0.
8696 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8697
8698 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8699
8700 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8701 avoid use after free.
8702
8703 2020-06-05 Tom de Vries <tdevries@suse.de>
8704
8705 * NEWS: Fix typos.
8706
8707 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8708
8709 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8710 the per_bfd object.
8711 (dwarf2_read_debug_names): Likewise.
8712 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8713 object when re-using a per_bfd object with an index.
8714
8715 2020-06-03 Tom de Vries <tdevries@suse.de>
8716
8717 PR symtab/26046
8718 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8719 children for C++.
8720 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8721 DW_TAG_subprogram.
8722
8723 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8724
8725 * ada-lang.c (ada_language_data): Delete skip_trampoline
8726 initializer.
8727 * c-lang.c (c_language_data): Likewise.
8728 (cplus_language_data): Likewise.
8729 (cplus_language::skip_trampoline): New member function.
8730 (asm_language_data): Delete skip_trampoline initializer.
8731 (minimal_language_data): Likewise.
8732 * d-lang.c (d_language_data): Likewise.
8733 * f-lang.c (f_language_data): Likewise.
8734 * go-lang.c (go_language_data): Likewise.
8735 * language.c (unk_lang_trampoline): Delete function.
8736 (skip_language_trampoline): Update.
8737 (unknown_language_data): Delete skip_trampoline initializer.
8738 (auto_language_data): Likewise.
8739 * language.h (language_data): Delete skip_trampoline field.
8740 (language_defn::skip_trampoline): New function.
8741 * m2-lang.c (m2_language_data): Delete skip_trampoline
8742 initializer.
8743 * objc-lang.c (objc_skip_trampoline): Delete function, move
8744 implementation to objc_language::skip_trampoline.
8745 (objc_language_data): Delete skip_trampoline initializer.
8746 (objc_language::skip_trampoline): New member function with
8747 implementation from objc_skip_trampoline.
8748 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8749 initializer.
8750 * p-lang.c (pascal_language_data): Likewise.
8751 * rust-lang.c (rust_language_data): Likewise.
8752
8753 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8754
8755 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8756 (ada_language::demangle): New member function.
8757 * c-lang.c (c_language_data): Delete la_demangle initializer.
8758 (cplus_language_data): Delete la_demangle initializer.
8759 (cplus_language::demangle): New member function.
8760 (asm_language_data): Delete la_demangle initializer.
8761 (minimal_language_data): Delete la_demangle initializer.
8762 * d-lang.c (d_language_data): Delete la_demangle initializer.
8763 (d_language::demangle): New member function.
8764 * f-lang.c (f_language_data): Delete la_demangle initializer.
8765 (f_language::demangle): New member function.
8766 * go-lang.c (go_language_data): Delete la_demangle initializer.
8767 (go_language::demangle): New member function.
8768 * language.c (language_demangle): Update.
8769 (unk_lang_demangle): Delete.
8770 (unknown_language_data): Delete la_demangle initializer.
8771 (unknown_language::demangle): New member function.
8772 (auto_language_data): Delete la_demangle initializer.
8773 (auto_language::demangle): New member function.
8774 * language.h (language_data): Delete la_demangle field.
8775 (language_defn::demangle): New function.
8776 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8777 * objc-lang.c (objc_language_data): Delete la_demangle
8778 initializer.
8779 (objc_language::demangle): New member function.
8780 * opencl-lang.c (opencl_language_data): Delete la_demangle
8781 initializer.
8782 * p-lang.c (pascal_language_data): Likewise.
8783 * rust-lang.c (rust_language_data): Likewise.
8784 (rust_language::demangle): New member function.
8785
8786 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8787
8788 * ada-lang.c (ada_language_data): Delete la_print_type
8789 initializer.
8790 (ada_language::print_type): New member function.
8791 * c-lang.c (c_language_data): Delete la_print_type initializer.
8792 (c_language::print_type): New member function.
8793 (cplus_language_data): Delete la_print_type initializer.
8794 (cplus_language::print_type): New member function.
8795 (asm_language_data): Delete la_print_type initializer.
8796 (asm_language::print_type): New member function.
8797 (minimal_language_data): Delete la_print_type initializer.
8798 (minimal_language::print_type): New member function.
8799 * d-lang.c (d_language_data): Delete la_print_type initializer.
8800 (d_language::print_type): New member function.
8801 * f-lang.c (f_language_data): Delete la_print_type initializer.
8802 (f_language::print_type): New member function.
8803 * go-lang.c (go_language_data): Delete la_print_type initializer.
8804 (go_language::print_type): New member function.
8805 * language.c (unk_lang_print_type): Delete.
8806 (unknown_language_data): Delete la_print_type initializer.
8807 (unknown_language::print_type): New member function.
8808 (auto_language_data): Delete la_print_type initializer.
8809 (auto_language::print_type): New member function.
8810 * language.h (language_data): Delete la_print_type field.
8811 (language_defn::print_type): New function.
8812 (LA_PRINT_TYPE): Update.
8813 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8814 (m2_language::print_type): New member function.
8815 * objc-lang.c (objc_language_data): Delete la_print_type
8816 initializer.
8817 (objc_language::print_type): New member function.
8818 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8819 to opencl_language::print_type.
8820 (opencl_language_data): Delete la_print_type initializer.
8821 (opencl_language::print_type): New member function, implementation
8822 from opencl_print_type.
8823 * p-lang.c (pascal_language_data): Delete la_print_type
8824 initializer.
8825 (pascal_language::print_type): New member function.
8826 * rust-lang.c (rust_print_type): Delete, implementation moved to
8827 rust_language::print_type.
8828 (rust_language_data): Delete la_print_type initializer.
8829 (rust_language::print_type): New member function, implementation
8830 from rust_print_type.
8831
8832 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8833
8834 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8835 implementation moves to...
8836 (ada_language::sniff_from_mangled_name): ...here. Update return
8837 type.
8838 (ada_language_data): Delete la_sniff_from_mangled_name
8839 initializer.
8840 * c-lang.c (c_language_data): Likewise.
8841 (cplus_language_data): Likewise.
8842 (cplus_language::sniff_from_mangled_name): New member function,
8843 implementation taken from gdb_sniff_from_mangled_name.
8844 (asm_language_data): Delete la_sniff_from_mangled_name
8845 initializer.
8846 (minimal_language_data): Likewise.
8847 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8848 implementation moves to cplus_language::sniff_from_mangled_name.
8849 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8850 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8851 moves to...
8852 (d_language::sniff_from_mangled_name): ...here.
8853 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8854 * f-lang.c (f_language_data): Likewise.
8855 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8856 moves to...
8857 (go_language::sniff_from_mangled_name): ...here.
8858 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8859 * language.c (language_sniff_from_mangled_name): Delete.
8860 (unknown_language_data): Delete la_sniff_from_mangled_name
8861 initializer.
8862 (auto_language_data): Likewise.
8863 * language.h (language_data): Delete la_sniff_from_mangled_name
8864 field.
8865 (language_defn::sniff_from_mangled_name): New function.
8866 (language_sniff_from_mangled_name): Delete declaration.
8867 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8868 field.
8869 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8870 implementation moves to...
8871 (objc_language::sniff_from_mangled_name): ...here.
8872 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8873 * opencl-lang.c (opencl_language_data): Likewise.
8874 * p-lang.c (pascal_language_data): Likewise.
8875 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8876 implementation moves to...
8877 (rust_language::sniff_from_mangled_name): ...here.
8878 (rust_language_data): Delete la_sniff_from_mangled_name
8879 initializer.
8880 * symtab.c (symbol_find_demangled_name): Call
8881 sniff_from_mangled_name member function.
8882
8883 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8884
8885 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8886 initializer.
8887 * c-lang.c (c_language_data): Likewise.
8888 (cplus_language_data): Likewise.
8889 (cplus_language::search_name_hash): New member function.
8890 (asm_language_data): Delete la_search_name_hash initializer.
8891 (minimal_language_data): Likewise.
8892 * d-lang.c (d_language_data): Likewise.
8893 * dictionary.c (default_search_name_hash): Rename to...
8894 (language_defn::search_name_hash): ...this.
8895 * f-lang.c (f_language_data): Likewise.
8896 (f_language::search_name_hash): New member function.
8897 * go-lang.c (go_language_data): Delete la_search_name_hash
8898 initializer.
8899 * language.c (unknown_language_data): Likewise.
8900 (auto_language_data): Likewise.
8901 * language.h (struct language_data): Delete la_search_name_hash
8902 field.
8903 (language_defn::search_name_hash): Declare new member function.
8904 (default_search_name_hash): Delete declaration.
8905 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8906 initializer.
8907 * objc-lang.c (objc_language_data): Likewise.
8908 * opencl-lang.c (opencl_language_data): Likewise.
8909 * p-lang.c (pascal_language_data): Likewise.
8910 * rust-lang.c (rust_language_data): Likewise.
8911 * symtab.c (search_name_hash): Update call.
8912
8913 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8914
8915 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8916 initializer.
8917 * c-lang.c (class compile_instance): Declare.
8918 (c_language_data): Delete la_get_compile_instance initializer.
8919 (c_language::get_compile_instance): New member function.
8920 (cplus_language_data): Delete la_get_compile_instance initializer.
8921 (cplus_language::get_compile_instance): New member function.
8922 (asm_language_data): Delete la_get_compile_instance initializer.
8923 (minimal_language_data): Likewise.
8924 * c-lang.h (c_get_compile_context): Update comment.
8925 (cplus_get_compile_context): Update comment.
8926 * compile/compile.c (compile_to_object): Update calls, don't rely
8927 on function pointer being NULL.
8928 * d-lang.c (d_language_data): Delete la_get_compile_instance
8929 initializer.
8930 * f-lang.c (f_language_data): Likewise.
8931 * go-lang.c (go_language_data): Likewise.
8932 * language.c (unknown_language_data): Likewise.
8933 (auto_language_data): Likewise.
8934 * language.h (language_data): Delete la_get_compile_instance field.
8935 (language_defn::get_compile_instance): New member function.
8936 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8937 initializer.
8938 * objc-lang.c (objc_language_data): Likewise.
8939 * opencl-lang.c (opencl_language_data): Likewise.
8940 * p-lang.c (pascal_language_data): Likewise.
8941 * rust-lang.c (rust_language_data): Likewise.
8942
8943 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8944
8945 * ada-lang.c (ada_add_all_symbols): Update comment.
8946 (ada_iterate_over_symbols): Delete, move implementation to...
8947 (ada_language::iterate_over_symbols): ...here, a new member
8948 function, rewrite to use range based for loop.
8949 (ada_language_data): Delete la_iterate_over_symbols initializer.
8950 * c-lang.c (c_language_data): Likewise.
8951 (cplus_language_data): Likewise.
8952 (asm_language_data): Likewise.
8953 (minimal_language_data): Likewise.
8954 * d-lang.c (d_language_data): Likewise.
8955 * f-lang.c (f_language_data): Likewise.
8956 * go-lang.c (go_language_data): Likewise.
8957 * language.c (unknown_language_data): Likewise.
8958 (auto_language_data): Likewise.
8959 * language.h (language_data): Delete la_iterate_over_symbols field.
8960 (language_defn::iterate_over_symbols): New member function.
8961 (LA_ITERATE_OVER_SYMBOLS): Update.
8962 * linespec.c (iterate_over_all_matching_symtabs): Update.
8963 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8964 initializer.
8965 * objc-lang.c (objc_language_data): Likewise.
8966 * opencl-lang.c (opencl_language_data): Likewise.
8967 * p-lang.c (pascal_language_data): Likewise.
8968 * rust-lang.c (rust_language_data): Likewise.
8969
8970 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8971
8972 * ada-lang.c (ada_language_data): Delete
8973 la_lookup_transparent_type initializer.
8974 * c-lang.c (c_language_data): Likewise.
8975 (cplus_language_data): Likewise.
8976 (cplus_language::lookup_transparent_type): New member function.
8977 (asm_language_data): Delete la_lookup_transparent_type
8978 initializer.
8979 (minimal_language_data): Likewise.
8980 * d-lang.c (d_language_data): Likewise.
8981 * f-lang.c (f_language_data): Likewise.
8982 * go-lang.c (go_language_data): Likewise.
8983 * language.c (unknown_language_data): Likewise.
8984 (auto_language_data): Likewise.
8985 * language.h (struct language_data): Delete
8986 la_lookup_transparent_type field.
8987 (language_defn::lookup_transparent_type): New member function.
8988 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8989 initializer.
8990 * objc-lang.c (objc_language_data): Likewise.
8991 * opencl-lang.c (opencl_language_data): Likewise.
8992 * p-lang.c (pascal_language_data): Likewise.
8993 * rust-lang.c (rust_language_data): Likewise.
8994 * symtab.c (symbol_matches_domain): Update call.
8995
8996 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8997
8998 * ada-lang.c (ada_language_arch_info): Delete function, move
8999 implementation to...
9000 (ada_language::language_arch_info): ...here, a new member
9001 function.
9002 (ada_language_data): Delete la_language_arch_info.
9003 * c-lang.c (c_language_data): Likewise.
9004 (c_language::language_arch_info): New member function.
9005 (cplus_language_arch_info): Delete function, move
9006 implementation to...
9007 (cplus_language::language_arch_info): ...here, a new member
9008 function.
9009 (cplus_language_data): Delete la_language_arch_info.
9010 (asm_language_data): Likewise.
9011 (asm_language::language_arch_info): New member function.
9012 (minimal_language_data): Delete la_language_arch_info.
9013 (minimal_language::language_arch_info): New member function.
9014 * d-lang.c (d_language_arch_info): Delete function, move
9015 implementation to...
9016 (d_language::language_arch_info): ...here, a new member
9017 function.
9018 (d_language_data): Delete la_language_arch_info.
9019 * f-lang.c (f_language_arch_info): Delete function, move
9020 implementation to...
9021 (f_language::language_arch_info): ...here, a new member
9022 function.
9023 (f_language_data): Delete la_language_arch_info.
9024 * go-lang.c (go_language_arch_info): Delete function, move
9025 implementation to...
9026 (go_language::language_arch_info): ...here, a new member
9027 function.
9028 (go_language_data): Delete la_language_arch_info.
9029 * language.c (unknown_language_data): Likewise.
9030 (unknown_language::language_arch_info): New member function.
9031 (auto_language_data): Delete la_language_arch_info.
9032 (auto_language::language_arch_info): New member function.
9033 (language_gdbarch_post_init): Update call to
9034 la_language_arch_info.
9035 * language.h (language_data): Delete la_language_arch_info
9036 function pointer.
9037 (language_defn::language_arch_info): New function.
9038 * m2-lang.c (m2_language_arch_info): Delete function, move
9039 implementation to...
9040 (m2_language::language_arch_info): ...here, a new member
9041 function.
9042 (m2_language_data): Delete la_language_arch_info.
9043 * objc-lang.c (objc_language_arch_info): Delete function, move
9044 implementation to...
9045 (objc_language::language_arch_info): ...here, a new member
9046 function.
9047 (objc_language_data): Delete la_language_arch_info.
9048 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9049 implementation to...
9050 (opencl_language::language_arch_info): ...here, a new member
9051 function.
9052 (opencl_language_data): Delete la_language_arch_info.
9053 * p-lang.c (pascal_language_arch_info): Delete function, move
9054 implementation to...
9055 (pascal_language::language_arch_info): ...here, a new member
9056 function.
9057 (pascal_language_data): Delete la_language_arch_info.
9058 * rust-lang.c (rust_language_arch_info): Delete function, move
9059 implementation to...
9060 (rust_language::language_arch_info): ...here, a new member
9061 function.
9062 (rust_language_data): Delete la_language_arch_info.
9063
9064 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9065
9066 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9067 initializer.
9068 * c-lang.c (c_language_data): Likewise.
9069 (cplus_language_data): Likewise.
9070 (cplus_language::pass_by_reference_info): New method.
9071 (asm_language_data): Delete la_pass_by_reference initializer.
9072 (minimal_language_data): Likewise.
9073 * cp-abi.c (cp_pass_by_reference): Remove use of
9074 default_pass_by_reference.
9075 * d-lang.c (d_language_data): Likewise.
9076 * f-lang.c (f_language_data): Likewise.
9077 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9078 default_pass_by_reference.
9079 * go-lang.c (go_language_data): Likewise.
9080 * language.c (language_pass_by_reference): Update.
9081 (default_pass_by_reference): Delete.
9082 (unknown_language_data): Delete la_pass_by_reference
9083 initializer.
9084 (auto_language_data): Likewise.
9085 * language.h (struct language_data): Delete la_pass_by_reference
9086 field.
9087 (language_defn::pass_by_reference_info): New member function.
9088 (default_pass_by_reference): Delete declaration.
9089 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9090 initializer.
9091 * objc-lang.c (objc_language_data): Likewise.
9092 * opencl-lang.c (opencl_language_data): Likewise.
9093 * p-lang.c (pascal_language_data): Likewise.
9094 * rust-lang.c (rust_language_data): Likewise.
9095
9096 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9097
9098 * ada-lang.c (ada_read_var_value): Delete function, move
9099 implementation to...
9100 (ada_language::read_var_value): ...here.
9101 (ada_language_data): Delete la_read_var_value initializer.
9102 * c-lang.c (c_language_data): Likewise.
9103 (cplus_language_data): Likewise.
9104 (minimal_language_data): Likewise.
9105 * d-lang.c (d_language_data): Likewise.
9106 * f-lang.c (f_language_data): Likewise.
9107 * findvar.c (default_read_var_value): Rename to...
9108 (language_defn::read_var_value): ...this.
9109 * findvar.c (read_var_value): Update header comment, and change to
9110 call member function instead of function pointer.
9111 * go-lang.c (go_language_data): Likewise.
9112 * language.c (unknown_language_data): Delete la_read_var_value
9113 initializer.
9114 (auto_language_data): Likewise.
9115 * language.h (struct language_data): Delete la_read_var_value
9116 field.
9117 (language_defn::read_var_value): New member function.
9118 (default_read_var_value): Delete declaration.
9119 * m2-lang.c (m2_language_data): Delete la_read_var_value
9120 initializer.
9121 * objc-lang.c (objc_language_data): Likewise.
9122 * opencl-lang.c (opencl_language_data): Likewise.
9123 * p-lang.c (pascal_language_data): Likewise.
9124 * rust-lang.c (rust_language_data): Likewise.
9125 * value.h (default_read_var_value): Delete declaration.
9126
9127 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9128
9129 * ada-lang.c (ada_print_array_index): Delete function, move
9130 implementation to...
9131 (ada_language::print_array_index): ...here.
9132 (ada_language_data): Delete la_print_array_index initializer.
9133 * c-lang.c (c_language_data): Likewise.
9134 (cplus_language_data): Likewise.
9135 (minimal_language_data): Likewise.
9136 * d-lang.c (d_language_data): Likewise.
9137 * f-lang.c (f_language_data): Likewise.
9138 * go-lang.c (go_language_data): Likewise.
9139 * language.c (default_print_array_index): Delete function, move
9140 implementation to...
9141 (language_defn::print_array_index): ...here.
9142 (unknown_language_data): Delete la_print_array_index initializer.
9143 (auto_language_data): Likewise.
9144 * language.h (struct language_data): Delete la_print_array_index
9145 field.
9146 (language_defn::print_array_index): New member function.
9147 (LA_PRINT_ARRAY_INDEX): Update.
9148 (default_print_array_index): Delete declaration.
9149 * m2-lang.c (m2_language_data): Delete la_print_array_index
9150 initializer.
9151 * objc-lang.c (objc_language_data): Likewise.
9152 * opencl-lang.c (opencl_language_data): Likewise.
9153 * p-lang.c (pascal_language_data): Likewise.
9154 * rust-lang.c (rust_language_data): Likewise.
9155
9156 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9157
9158 * gdb/ada-lang.c (ada_language_defn): Convert to...
9159 (ada_language_data): ...this.
9160 (class ada_language): New class.
9161 (ada_language_defn): New static global.
9162 * gdb/c-lang.c (c_language_defn): Convert to...
9163 (c_language_data): ...this.
9164 (class c_language): New class.
9165 (c_language_defn): New static global.
9166 (cplus_language_defn): Convert to...
9167 (cplus_language_data): ...this.
9168 (class cplus_language): New class.
9169 (cplus_language_defn): New static global.
9170 (asm_language_defn): Convert to...
9171 (asm_language_data): ...this.
9172 (class asm_language): New class.
9173 (asm_language_defn): New static global.
9174 (minimal_language_defn): Convert to...
9175 (minimal_language_data): ...this.
9176 (class minimal_language): New class.
9177 (minimal_language_defn): New static global.
9178 * gdb/d-lang.c (d_language_defn): Convert to...
9179 (d_language_data): ...this.
9180 (class d_language): New class.
9181 (d_language_defn): New static global.
9182 * gdb/f-lang.c (f_language_defn): Convert to...
9183 (f_language_data): ...this.
9184 (class f_language): New class.
9185 (f_language_defn): New static global.
9186 * gdb/go-lang.c (go_language_defn): Convert to...
9187 (go_language_data): ...this.
9188 (class go_language): New class.
9189 (go_language_defn): New static global.
9190 * gdb/language.c (unknown_language_defn): Remove declaration.
9191 (current_language): Initialize to nullptr, real initialization is
9192 moved to _initialize_language.
9193 (languages): Delete global.
9194 (language_defn::languages): Define.
9195 (set_language_command): Use language_defn::languages.
9196 (set_language): Likewise.
9197 (range_error): Likewise.
9198 (language_enum): Likewise.
9199 (language_def): Likewise.
9200 (add_set_language_command): Use language_def::languages for the
9201 language list, and language_def to lookup language pointers.
9202 (skip_language_trampoline): Use language_defn::languages.
9203 (unknown_language_defn): Convert to...
9204 (unknown_language_data): ...this.
9205 (class unknown_language): New class.
9206 (unknown_language_defn): New static global.
9207 (auto_language_defn): Convert to...
9208 (auto_language_data): ...this.
9209 (class auto_language): New class.
9210 (auto_language_defn): New static global.
9211 (language_gdbarch_post_init): Use language_defn::languages.
9212 (_initialize_language): Initialize current_language.
9213 * gdb/language.h (struct language_defn): Rename to...
9214 (struct language_data): ...this.
9215 (struct language_defn): New.
9216 (auto_language_defn): Delete.
9217 (unknown_language_defn): Delete.
9218 (minimal_language_defn): Delete.
9219 (ada_language_defn): Delete.
9220 (asm_language_defn): Delete.
9221 (c_language_defn): Delete.
9222 (cplus_language_defn): Delete.
9223 (d_language_defn): Delete.
9224 (f_language_defn): Delete.
9225 (go_language_defn): Delete.
9226 (m2_language_defn): Delete.
9227 (objc_language_defn): Delete.
9228 (opencl_language_defn): Delete.
9229 (pascal_language_defn): Delete.
9230 (rust_language_defn): Delete.
9231 * gdb/m2-lang.c (m2_language_defn): Convert to...
9232 (m2_language_data): ...this.
9233 (class m2_language): New class.
9234 (m2_language_defn): New static global.
9235 * gdb/objc-lang.c (objc_language_defn): Convert to...
9236 (objc_language_data): ...this.
9237 (class objc_language): New class.
9238 (objc_language_defn): New static global.
9239 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9240 (opencl_language_data): ...this.
9241 (class opencl_language): New class.
9242 (opencl_language_defn): New static global.
9243 * gdb/p-lang.c (pascal_language_defn): Convert to...
9244 (pascal_language_data): ...this.
9245 (class pascal_language): New class.
9246 (pascal_language_defn): New static global.
9247 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9248 language pointer, update comment format.
9249 * gdb/rust-lang.c (rust_language_defn): Convert to...
9250 (rust_language_data): ...this.
9251 (class rust_language): New class.
9252 (rust_language_defn): New static global.
9253
9254 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9255
9256 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9257 member variable.
9258 <m_stmt_at_address>: New member variable.
9259 (lnp_state_machine::record_line): Don't record some lines, update
9260 tracking of is_stmt at the same address.
9261 (lnp_state_machine::lnp_state_machine): Initialise new member
9262 variables.
9263
9264 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9265
9266 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9267 "-include gnu-nat-mig.h".
9268 * gnu-nat-mig.h: New file.
9269 * gnu-nat.c: Include "gnu-nat-mig.h".
9270 (exc_server, msg_reply_server, notify_server,
9271 process_reply_server): Remove declarations.
9272
9273 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9274
9275 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9276 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9277 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9278 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9279 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9280 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9281 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9282 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9283 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9284 to gnu_nat_target class.
9285 * gnu-nat.c: Likewise.
9286 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9287 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9288 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9289 object.
9290 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9291 instead of `gnu_target'.
9292
9293 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9294
9295 * i386-gnu-tdep.c: Include "gdbcore.h"
9296 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9297 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9298 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9299 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9300 i386_gnu_sigcontext_addr): New functions
9301 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9302 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9303 tdep.
9304
9305 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9306
9307 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9308 before fork_inferior call. Avoid calling it if target_is_pushed returns
9309 true.
9310
9311 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9312
9313 * gnu-nat.h (gnu_target): New variable declaration.
9314 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9315 gnu_target.
9316 * gnu-nat.c (gnu_target): New variable.
9317 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9318 add_thread_silent, and add_thread calls.
9319 (gnu_nat_target::create_inferior): Pass gnu_target to
9320 add_thread_silent, thread_change_ptid call.
9321 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9322 call.
9323
9324 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9325
9326 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9327 (gnu_nat_target::find_memory_regions): Remove unused
9328 `old_address' variable.
9329
9330 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9331
9332 * gnu-nat.c: Include "gdbarch.h".
9333
9334 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9335
9336 * reply_mig_hack.awk (Error return): Cast function through
9337 void *, to bypass compiler function call check.
9338
9339 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9340
9341 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9342 $(srcdir)/reply_mig_hack.awk.
9343
9344 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9345
9346 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9347
9348 2020-05-30 Jonny Grant <jg@jguk.org>
9349
9350 * configure.ac (ACX_BUGURL): change bug URL to https.
9351
9352 2020-05-30 Pedro Alves <palves@redhat.com>
9353
9354 * cp-support.c (replace_typedefs_template): New.
9355 (replace_typedefs_qualified_name): Handle
9356 DEMANGLE_COMPONENT_TEMPLATE.
9357
9358 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9359
9360 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9361 dwarf2/index-cache.h, dwarf2/index-write.c,
9362 dwarf2/index-write.h, dwarf2/line-header.c,
9363 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9364 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9365 variables and fields from `dwarf2_per_objfile` to just
9366 `per_objfile` throughout.
9367
9368 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9369
9370 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9371 <push_dwarf_reg_entry_value>: Add comment.
9372
9373 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9374 Keith Seitz <keiths@redhat.com>
9375
9376 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9377 instead of PyEval_ReleaseLock.
9378 (class gdbpy_gil): Move to earlier in file.
9379 (finalize_python): Set gdb_python_initialized.
9380 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9381 when not initialized.
9382
9383 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9384
9385 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9386 <push_dwarf_reg_entry_value>: Remove assert. Override
9387 per_objfile with caller_per_objfile.
9388
9389 2020-05-28 Tom de Vries <tdevries@suse.de>
9390
9391 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9392 PR gold/15646 workaround to symbol kind "type".
9393
9394 2020-05-27 Tom Tromey <tromey@adacore.com>
9395
9396 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9397
9398 2020-05-27 Tom Tromey <tromey@adacore.com>
9399
9400 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9401 Use htab_find_with_hash.
9402 <add_abbrev>: Remove "abbrev_number" parameter.
9403 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9404 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9405 (hash_abbrev): Add comment.
9406 (abbrev_table::lookup_abbrev): Move to header file.
9407 (abbrev_table::read): Update.
9408
9409 2020-05-27 Tom Tromey <tromey@adacore.com>
9410
9411 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9412 method.
9413 <canonical_name>: New member.
9414 <raw_name>: Rename from "name".
9415 (partial_die_info): Initialize canonical_name.
9416 (scan_partial_symbols): Check raw_name.
9417 (partial_die_parent_scope, partial_die_full_name)
9418 (add_partial_symbol, add_partial_subprogram)
9419 (add_partial_enumeration, load_partial_dies): Use "name" method.
9420 (partial_die_info::name): New method.
9421 (partial_die_info::read, guess_partial_die_structure_name)
9422 (partial_die_info::fixup): Update.
9423
9424 2020-05-27 Tom Tromey <tromey@adacore.com>
9425
9426 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9427 <get_ref_die_offset>: Inline.
9428 <get_ref_die_offset_complaint>: New method.
9429 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9430 (attribute::get_ref_die_offset_complaint): Rename from
9431 get_ref_die_offset. Just issue complaint.
9432
9433 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9434
9435 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9436
9437 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9438
9439 * exec.c (exec_file_attach): Use errno value of first openp failure.
9440
9441 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9442
9443 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9444 Don't close thread handle.
9445
9446 2020-05-27 Tom Tromey <tom@tromey.com>
9447 Simon Marchi <simon.marchi@efficios.com>
9448
9449 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9450 shared_ptr.
9451 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9452 member.
9453 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9454 dwarf2_per_bfd_objfile_data_key>: New globals.
9455 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9456 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9457 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9458 shared.
9459 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9460 short-circuit when sharing.
9461 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9462 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9463
9464 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9465
9466 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9467 to...
9468 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9469 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9470
9471 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9472
9473 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9474 build_name_components, find_name_components_bounds>:
9475 Add per_objfile parameter.
9476 (struct mapped_index) <symbol_name_at>: Likewise.
9477 (struct mapped_debug_names): Remove constructor.
9478 <dwarf2_per_objfile>: Remove field.
9479 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9480 (mapped_index_base::find_name_components_bounds,
9481 mapped_index_base::build_name_components,
9482 dw2_expand_symtabs_matching_symbol): Likewise.
9483 (class mock_mapped_index) <symbol_name_at>: Likewise.
9484 (check_match): Likewise.
9485 (check_find_bounds_finds): Likewise.
9486 (test_mapped_index_find_name_component_bounds): Update.
9487 (CHECK_MATCH): Update.
9488 (dw2_expand_symtabs_matching): Update.
9489 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9490 per_objfile parameter.
9491 <find_vec_in_debug_names>: Likewise.
9492 <m_per_objfile>: New field.
9493 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9494 parameter.
9495 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9496 (dw2_debug_names_iterator::next): Update.
9497 (dw2_debug_names_lookup_symbol): Update.
9498 (dw2_debug_names_expand_symtabs_for_function): Update.
9499 (dw2_debug_names_map_matching_symbols): Update.
9500 (dw2_debug_names_expand_symtabs_matching): Update.
9501 (dwarf2_read_debug_names): Update.
9502
9503 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9504
9505 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9506 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9507 move to dwarf2_per_objfile.
9508 <read_in_chain>: Remove.
9509 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9510 remove_all_cus, age_comp_units>: New methods.
9511 <m_dwarf2_cus>: New member.
9512 (struct dwarf2_per_cu_data) <cu>: Remove.
9513 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9514 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9515 moved to methods of dwarf2_per_objfile.
9516 (dwarf2_clear_marks): Remove.
9517 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9518 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9519 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9520 (dwarf2_per_objfile::remove_all_cus): New.
9521 (class free_cached_comp_units) <~free_cached_comp_units>:
9522 Update.
9523 (load_cu): Update.
9524 (dw2_do_instantiate_symtab): Adjust.
9525 (fill_in_sig_entry_from_dwo_entry): Adjust.
9526 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9527 (cutu_reader::cutu_reader): Likewise.
9528 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9529 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9530 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9531 and dwarf2_per_objfile::age_comp_units.
9532 (load_partial_comp_unit): Update.
9533 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9534 (process_queue): Likewise.
9535 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9536 backlink.
9537 (dwarf2_read_addr_index): Likewise.
9538 (follow_die_offset): Likewise.
9539 (dwarf2_fetch_die_loc_sect_off): Likewise.
9540 (dwarf2_fetch_constant_bytes): Likewise.
9541 (dwarf2_fetch_die_type_sect_off): Likewise.
9542 (follow_die_sig_1): Likewise.
9543 (load_full_type_unit): Likewise.
9544 (read_signatured_type): Likewise.
9545 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9546 (dwarf2_cu::~dwarf2_cu): Remove.
9547 (dwarf2_per_objfile::get_cu): New.
9548 (dwarf2_per_objfile::set_cu): New.
9549 (age_cached_comp_units): Rename to...
9550 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9551 to std::unordered_map.
9552 (free_one_cached_comp_unit): Rename to...
9553 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9554 to std::unordered_map.
9555 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9556 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9557 a dwarf2_per_objfile in data.
9558 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9559 (dwarf2_clear_marks): Remove.
9560
9561 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9562
9563 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9564 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9565 (init_tu_and_read_dwo_dies): Likewise.
9566 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9567 (cutu_reader::cutu_reader): Likewise.
9568 (load_partial_comp_unit): Likewise.
9569 (process_psymtab_comp_unit): Update.
9570 (build_type_psymtabs_1): Update.
9571 (process_skeletonless_type_unit): Update.
9572 (load_full_comp_unit): Update.
9573 (find_partial_die): Update.
9574 (dwarf2_read_addr_index): Update.
9575 (read_signatured_type): Update.
9576
9577 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9578
9579 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9580 m_header_read_in>: New fields.
9581 <get_header>: New method.
9582 * dwarf2/read.c (per_cu_header_read_in): Remove.
9583 (dwarf2_per_cu_data::get_header): New.
9584 (dwarf2_per_cu_data::addr_size): Update.
9585 (dwarf2_per_cu_data::offset_size): Update.
9586 (dwarf2_per_cu_data::ref_addr_size): Update.
9587
9588 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9589
9590 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9591 (dw2_do_instantiate_symtab): Update.
9592 (queue_and_load_all_dwo_tus): Change parameter from
9593 dwarf2_per_cu_data to dwarf2_cu.
9594 (dwarf2_fetch_die_loc_sect_off): Update.
9595 (dwarf2_fetch_constant_bytes): Update.
9596 (dwarf2_fetch_die_type_sect_off): Update.
9597
9598 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9599
9600 * dwarf2/read.c (process_full_comp_unit,
9601 process_full_type_unit): Remove per_cu, per_objfile paramters.
9602 Add dwarf2_cu parameter.
9603 (process_queue): Update.
9604
9605 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9606
9607 * dwarf2/read.c (create_cu_from_index_list): Replace
9608 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9609 (create_cus_from_index_list): Likewise.
9610 (create_cus_from_index): Likewise.
9611 (create_signatured_type_table_from_index): Likewise.
9612 (create_cus_from_debug_names_list): Likewise.
9613 (create_cus_from_debug_names): Likewise.
9614 (dwarf2_read_gdb_index): Update.
9615 (dwarf2_read_debug_names): Update.
9616
9617 2020-05-27 Tom Tromey <tom@tromey.com>
9618 Simon Marchi <simon.marchi@efficios.com>
9619
9620 * dwarf2/read.h (struct dwarf2_per_objfile)
9621 <get_type_for_signatured_type, set_type_for_signatured_type>:
9622 New methods.
9623 <m_type_map>: New member.
9624 (struct signatured_type) <type>: Remove.
9625 * dwarf2/read.c
9626 (dwarf2_per_objfile::get_type_for_signatured_type,
9627 dwarf2_per_objfile::set_type_for_signatured_type): New.
9628 (get_signatured_type): Use new methods.
9629
9630 2020-05-27 Tom Tromey <tom@tromey.com>
9631 Simon Marchi <simon.marchi@efficios.com>
9632
9633 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9634 (struct dwarf2_per_objfile) <type_units>: New member.
9635 <get_type_unit_group_unshareable>: New method.
9636 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9637 num_symtabs, symtabs>: Remove; move to
9638 type_unit_group_unshareable.
9639 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9640 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9641 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9642
9643 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9644
9645 * dwarf2/read.h (struct dwarf2_per_cu_data):
9646 <dwarf2_per_objfile>: Remove.
9647 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9648 dwarf2_per_objfile.
9649 (create_signatured_type_table_from_index): Likewise.
9650 (create_signatured_type_table_from_debug_names): Likewise.
9651 (create_debug_type_hash_table): Likewise.
9652 (fill_in_sig_entry_from_dwo_entry): Likewise.
9653 (create_type_unit_group): Likewise.
9654 (read_comp_units_from_section): Likewise.
9655 (create_cus_hash_table): Likewise.
9656
9657 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9658
9659 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9660 dwarf2_per_cu_data::dwarf2_per_objfile.
9661 (compute_compunit_symtab_includes): Likewise.
9662 (dwarf2_cu::start_symtab): Likewise.
9663
9664 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9665
9666 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9667 parameter.
9668 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9669 (read_namespace_alias): Update.
9670 (lookup_die_type): Update.
9671 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9672 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9673 Update.
9674 (disassemble_dwarf_expression): Update.
9675
9676 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9677
9678 * dwarf2/read.h (struct dwarf2_queue_item): Add
9679 dwarf2_per_objfile parameter, assign new parameter.
9680 <per_objfile>: New field.
9681 * dwarf2/read.c (free_one_cached_comp_unit): Add
9682 dwarf2_per_objfile parameter.
9683 (queue_comp_unit): Likewise.
9684 (dw2_do_instantiate_symtab): Update.
9685 (process_psymtab_comp_unit): Update.
9686 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9687 (process_imported_unit_die): Update.
9688 (queue_and_load_dwo_tu): Update.
9689 (follow_die_offset): Update.
9690 (follow_die_sig_1): Update.
9691
9692 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9693
9694 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9695 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9696 (read_call_site_scope): Assign per_objfile.
9697 (dwarf2_per_cu_data::objfile): Remove.
9698 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9699 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9700 dwarf2_per_objfile parameter.
9701 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9702 dwarf2_per_objfile parameter.
9703 (dwarf_expr_reg_to_entry_parameter): Add output
9704 dwarf2_per_objfile parameter.
9705 (locexpr_get_frame_base): Update.
9706 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9707 <push_dwarf_reg_entry_value>: Update.
9708 <call_site_to_target_addr>: Update.
9709 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9710 parameter.
9711 (value_of_dwarf_reg_entry): Update.
9712 (rw_pieced_value): Update.
9713 (indirect_synthetic_pointer): Update.
9714 (dwarf2_evaluate_property): Update.
9715 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9716 parameter.
9717 (locexpr_read_variable): Update.
9718 (locexpr_get_symbol_read_needs): Update.
9719 (loclist_read_variable): Update.
9720
9721 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9722
9723 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9724 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9725 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9726 parameter.
9727 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9728 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9729 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9730 parameter.
9731 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9732 sect_variable_value): Add dwarf2_per_objfile parameter.
9733 (class dwarf_evaluate_loc_desc) <dwarf_call,
9734 dwarf_variable_value>: Update.
9735 (fetch_const_value_from_synthetic_pointer): Add
9736 dwarf2_per_objfile parameter.
9737 (fetch_const_value_from_synthetic_pointer): Update.
9738 (coerced_pieced_ref): Update.
9739 (class symbol_needs_eval_context) <dwarf_call,
9740 dwarf_variable_value>: Update.
9741 (dwarf2_compile_expr_to_ax): Update.
9742
9743 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9744
9745 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9746 parameter.
9747 (dwarf2_evaluate_loc_desc_full): Update.
9748
9749 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9750
9751 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9752 parameter.
9753 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9754 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9755 dwarf2_per_objfile parameter.
9756 (decode_debug_loc_dwo_addresses): Likewise.
9757 (dwarf2_find_location_expression): Update.
9758 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9759 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9760 parameter.
9761 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9762 parameter.
9763 (locexpr_describe_location_1): Likewise.
9764 (locexpr_describe_location): Update.
9765
9766 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9767
9768 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9769 Remove.
9770 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9771 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9772 (dwarf2_compile_property_to_c): Update.
9773 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9774 use text offset from objfile.
9775 (locexpr_tracepoint_var_ref): Update.
9776 (locexpr_generate_c_location): Update.
9777 (loclist_describe_location): Update.
9778 (loclist_tracepoint_var_ref): Update.
9779 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9780 dwarf2_per_objfile parameter.
9781 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9782 use text offset from objfile.
9783 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9784
9785 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9786
9787 * dwarf2/expr.h (struct dwarf_expr_context)
9788 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9789 <offset>: Remove.
9790 <per_objfile>: New member.
9791 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9792 dwarf2_per_objfile parameter. Don't set offset, set
9793 per_objfile.
9794 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9795 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9796 a dwarf2_per_objfile object instead of an offset.
9797 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9798 constructor.
9799 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9800 to dwarf2_expr_executor constructor. Don't set offset.
9801 (dwarf2_fetch_cfa_info): Update.
9802 (struct dwarf2_frame_cache) <text_offset>: Remove.
9803 <per_objfile>: New field.
9804 (dwarf2_frame_cache): Update.
9805 (dwarf2_frame_prev_register): Update.
9806 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9807 <dwarf_evaluate_loc_desc>: Add constructor.
9808 (dwarf2_evaluate_loc_desc_full): Update.
9809 (dwarf2_locexpr_baton_eval): Update.
9810 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9811 Add constructor.
9812 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9813
9814 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9815
9816 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9817 addr_sized_int_type>: Move to dwarf2_cu.
9818 <int_type>: Move to dwarf2_per_objfile.
9819 (struct dwarf2_per_objfile) <int_type>: Move here.
9820 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9821 addr_sized_int_type>: Move here.
9822 (read_func_scope): Update.
9823 (read_array_type): Update.
9824 (read_tag_string_type): Update.
9825 (attr_to_dynamic_prop): Update.
9826 (dwarf2_per_cu_data::int_type): Rename to...
9827 (dwarf2_per_objfile::int_type): ... this.
9828 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9829 (dwarf2_cu::addr_sized_int_type): ... this.
9830 (read_subrange_type): Update.
9831 (dwarf2_per_cu_data::addr_type): Rename to...
9832 (dwarf2_cu::addr_type): ... this.
9833 (set_die_type): Update.
9834
9835 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9836
9837 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9838 data through per_cu->cu.
9839
9840 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9841
9842 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9843 dwarf2_per_cu_data parameter fo dwarf2_cu.
9844 (lookup_dwo_type_unit): Likewise.
9845 (read_cutu_die_from_dwo): Likewise.
9846 (lookup_dwo_unit): Likewise.
9847 (open_and_init_dwo_file): Likewise.
9848 (lookup_dwo_cutu): Likewise.
9849 (lookup_dwo_comp_unit): Likewise.
9850 (lookup_dwo_type_unit): Likewise.
9851 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9852 (cutu_reader::cutu_reader): Update.
9853
9854 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9855
9856 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9857 parameter.
9858 (process_full_type_unit): Likewise.
9859 (process_queue): Update.
9860
9861 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9862
9863 * dwarf2/read.c (recursively_compute_inclusions): Add
9864 dwarf2_per_objfile parameter.
9865 (compute_compunit_symtab_includes): Likewise.
9866 (process_cu_includes): Update.
9867
9868 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9869
9870 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9871 parameter.
9872 (create_type_unit_group): Update.
9873 (process_psymtab_comp_unit_reader): Update.
9874 (build_type_psymtabs_reader): Update.
9875
9876 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9877
9878 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9879 object through m_this_cu->cu.
9880
9881 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9882
9883 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9884 the info parameter.
9885 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9886
9887 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9888
9889 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9890 per_objfile parameter.
9891 (load_full_type_unit): Add per_objfile parameter.
9892 (read_signatured_type): Likewise.
9893 (load_full_comp_unit): Likewise.
9894 (load_cu): Likewise.
9895 (dw2_do_instantiate_symtab): Likewise.
9896 (dw2_get_file_names): Likewise.
9897 (dw2_map_symtabs_matching_filename): Update.
9898 (dw_expand_symtabs_matching_file_matcher): Update.
9899 (dw2_map_symbol_filenames): Update.
9900 (process_psymtab_comp_unit): Add per_objfile parameter.
9901 (build_type_psymtabs_1): Update.
9902 (process_skeletonless_type_unit): Update.
9903 (dwarf2_build_psymtabs_hard): Update.
9904 (load_partial_comp_unit): Add per_objfile parameter.
9905 (scan_partial_symbols): Update.
9906 (load_full_comp_unit): Add per_objfile parameter.
9907 (process_imported_unit_die): Update.
9908 (create_cus_hash_table): Update.
9909 (find_partial_die): Update.
9910 (dwarf2_read_addr_index): Update.
9911 (follow_die_offset): Update.
9912 (dwarf2_fetch_die_loc_sect_off): Update.
9913 (dwarf2_fetch_constant_bytes): Update.
9914 (dwarf2_fetch_die_type_sect_off): Update.
9915 (follow_die_sig_1): Update.
9916 (load_full_type_unit): Add per_objfile parameter.
9917 (read_signatured_type): Likewise.
9918
9919 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9920
9921 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9922 of objfile_name.
9923
9924 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9925
9926 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9927 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9928 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9929 field.
9930 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9931 (create_cus_from_index): Update.
9932 (dwarf2_read_gdb_index): Update.
9933 (create_cus_from_debug_names): Update.
9934 (dwarf2_read_debug_names): Update.
9935 (get_abbrev_section_for_cu): Update.
9936 (create_all_comp_units): Update.
9937 (read_attribute_value): Update.
9938 (get_debug_line_section): Update.
9939 * dwarf2/index-cache.c (index_cache::store): Update.
9940 * dwarf2/index-write.c (save_gdb_index_command): Update.
9941 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9942
9943 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9944
9945 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9946 member.
9947 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9948 dwarf2_per_cu_data::per_bfd.
9949 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9950 (create_type_unit_group): Likewise.
9951 (queue_comp_unit): Remove reference to
9952 per_cu->dwarf2_per_objfile.
9953 (maybe_queue_comp_unit): Likewise.
9954 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9955 (create_cus_hash_table): Assign new field.
9956
9957 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9958
9959 * dwarf2/read.c: Replace
9960 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9961 dwarf2_cu->per_objfile throughout.
9962
9963 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9964
9965 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9966 parameter, don't use per_cu->dwarf2_per_objfile.
9967 (dw2_instantiate_symtab): Likewise.
9968 (dw2_find_last_source_symtab): Update.
9969 (dw2_map_expand_apply): Update.
9970 (dw2_lookup_symbol): Update.
9971 (dw2_expand_symtabs_for_function): Update.
9972 (dw2_expand_all_symtabs): Update.
9973 (dw2_expand_symtabs_with_fullname): Update.
9974 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9975 don't use per_cu->dwarf2_per_objfile.
9976 (dw2_expand_marked_cus): Update.
9977 (dw2_find_pc_sect_compunit_symtab): Update.
9978 (dw2_debug_names_lookup_symbol): Update.
9979 (dw2_debug_names_expand_symtabs_for_function): Update.
9980 (dw2_debug_names_map_matching_symbols): Update.
9981 (dwarf2_psymtab::expand_psymtab): Update.
9982
9983 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9984
9985 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9986 <per_objfile>: New member.
9987 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9988 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9989 call to dwarf2_cu.
9990 (cutu_reader::cutu_reader): Update.
9991 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9992
9993 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9994
9995 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9996 struct dwarf2_per_objfile.
9997 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9998 dwarf2_per_bfd.
9999 * dwarf2/read.c (set_die_type): Update.
10000 (get_die_type_at_offset): Update.
10001
10002 2020-05-27 Tom Tromey <tom@tromey.com>
10003 Simon Marchi <simon.marchi@efficios.com>
10004
10005 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10006 method.
10007 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10008 get_symtab, set_symtab>: New methods.
10009 <m_symtabs>: New field.
10010 (struct dwarf2_psymtab): Derive from partial_symtab.
10011 <readin_p, get_compunit_symtab>: Declare methods.
10012 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10013 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10014 New methods.
10015 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10016 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10017 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10018 (dw2_symtab_iter_next, dw2_print_stats)
10019 (dw2_expand_symtabs_with_fullname)
10020 (dw2_expand_symtabs_matching_one)
10021 (dw_expand_symtabs_matching_file_matcher)
10022 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10023 (dw2_debug_names_iterator::next)
10024 (dw2_debug_names_map_matching_symbols)
10025 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10026 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10027 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10028 New methods.
10029 (get_compunit_symtab, process_full_comp_unit)
10030 (process_full_type_unit): Update.
10031 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10032
10033 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10034
10035 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10036 then introduce a new dwarf2_per_objfile type.
10037 <read_line_string>: Move to the new dwarf2_per_objfile type.
10038 <objfile>: Likewise.
10039 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10040 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10041 dwarf2_per_objfile->per_bfd.
10042 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10043 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10044 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10045 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10046 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10047 (dwarf2_per_objfile::locate_sections): Rename to...
10048 (dwarf2_per_bfd::locate_sections): ... this.
10049 (dwarf2_per_objfile::get_cutu): Rename to...
10050 (dwarf2_per_bfd::get_cutu): ... this.
10051 (dwarf2_per_objfile::get_cu): Rename to...
10052 (dwarf2_per_bfd::get_cu): ... this.
10053 (dwarf2_per_objfile::get_tu): Rename to...
10054 (dwarf2_per_bfd::get_tu): ... this.
10055 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10056 (dwarf2_per_bfd::allocate_per_cu): ... this.
10057 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10058 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10059 (get_gdb_index_contents_ftype): Change parameter from
10060 dwarf2_per_objfile to dwarf2_per_bfd.
10061 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10062 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10063
10064 2020-05-27 Tom Tromey <tom@tromey.com>
10065 Simon Marchi <simon.marchi@efficios.com>
10066
10067 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10068 (allocate_piece_closure): Set "per_objfile" member.
10069 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10070 (locexpr_describe_location, loclist_describe_location): Use new
10071 member.
10072 * dwarf2/read.c (read_call_site_scope)
10073 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10074 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10075 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10076 handle_data_member_location): Set per_objfile member.
10077 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10078 member.
10079 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10080
10081 2020-05-27 Tom Tromey <tom@tromey.com>
10082
10083 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10084 allocate_signatured_type>: Declare new methods.
10085 <m_num_psymtabs>: New member.
10086 (struct dwarf2_per_cu_data) <index>: New member.
10087 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10088 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10089 (create_cu_from_index_list): Use allocate_per_cu.
10090 (create_signatured_type_table_from_index)
10091 (create_signatured_type_table_from_debug_names)
10092 (create_debug_type_hash_table, add_type_unit)
10093 (read_comp_units_from_section): Use allocate_signatured_type.
10094
10095 2020-05-27 Tom Tromey <tom@tromey.com>
10096
10097 * psymtab.c (partial_map_expand_apply)
10098 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10099 (psym_lookup_global_symbol_language)
10100 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10101 (psym_print_stats, psym_expand_symtabs_for_function)
10102 (psym_map_symbol_filenames, psym_map_matching_symbols)
10103 (psym_expand_symtabs_matching)
10104 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10105 (maintenance_check_psymtabs): Update.
10106 * psympriv.h (struct partial_symtab) <readin_p,
10107 get_compunit_symtab>: Add objfile parameter.
10108 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10109 Likewise.
10110 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10111 get_compunit_symtab>: Likewise.
10112 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10113
10114 2020-05-27 Tom Tromey <tom@tromey.com>
10115
10116 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10117 member.
10118 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10119 (create_cu_from_index_list)
10120 (create_signatured_type_table_from_index)
10121 (create_signatured_type_table_from_debug_names)
10122 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10123 (dwarf2_create_include_psymtab)
10124 (create_debug_type_hash_table, add_type_unit)
10125 (create_type_unit_group, read_comp_units_from_section)
10126 (dwarf2_compute_name, create_cus_hash_table)
10127 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10128 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10129 obstack.
10130 (dw2_get_real_path): Likewise. Change argument to
10131 dwarf2_per_objfile.
10132
10133 2020-05-27 Luis Machado <luis.machado@linaro.org>
10134
10135 PR tdep/26000
10136 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10137 for ldrd (immediate).
10138
10139 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10140
10141 * command.h: Add comment giving the name of class_tui.
10142 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10143 create the fake command for the help for class_tui.
10144
10145 2020-05-26 Tom Tromey <tromey@adacore.com>
10146
10147 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10148 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10149 (val_atr): New function.
10150 (value_val_atr): Use it.
10151 * ada-valprint.c (print_optional_low_bound): Change low bound
10152 handling for enums.
10153 (val_print_packed_array_elements): Don't call discrete_position.
10154 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10155 discrete_position for enum types.
10156 * language.c (default_print_array_index): Change type.
10157 * language.h (struct language_defn) <la_print_array_index>: Add
10158 index_type parameter, change type of index_value.
10159 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10160 (default_print_array_index): Update.
10161 * valprint.c (maybe_print_array_index): Don't call
10162 value_from_longest. Update.
10163 (value_print_array_elements): Don't call discrete_position.
10164
10165 2020-05-26 Tom Tromey <tromey@adacore.com>
10166
10167 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10168 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10169
10170 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10171
10172 PR gdb/13519
10173 * avr-tdep.c (avr_integer_to_address): Return data or code
10174 address accordingly to the second 'type' argument of the
10175 function.
10176
10177 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10178
10179 * infcmd.c, inferior.h: (construct_inferior_arguments):
10180 Moved function from here to gdbsupport/common-inferior.{h,cc}
10181
10182 2020-05-23 Tom Tromey <tom@tromey.com>
10183
10184 Revert commit eca1f90c:
10185 * NEWS: Remove entry for completion styling.
10186 * completer.c (_rl_completion_prefix_display_length): Move
10187 declaration later.
10188 (gdb_fnprint): Revert.
10189 (gdb_display_match_list_1): Likewise.
10190 * cli/cli-style.c (completion_prefix_style)
10191 (completion_difference_style, completion_suffix_style): Remove.
10192 (_initialize_cli_style): Revert.
10193 * cli/cli-style.h (completion_prefix_style)
10194 (completion_difference_style, completion_suffix_style): Don't
10195 declare.
10196
10197 2020-05-24 Pedro Alves <palves@redhat.com>
10198
10199 * symtab.c (completion_list_add_name): Return boolean indication
10200 of whether the symbol matched.
10201 (completion_list_add_symbol): Don't try to remove C++ aliases if
10202 the symbol didn't match in the first place.
10203 * symtab.h (completion_list_add_name): Return bool.
10204
10205 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10206
10207 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10208 type::field.
10209
10210 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10211
10212 GDB 9.2 released.
10213
10214 2020-05-23 Tom Tromey <tom@tromey.com>
10215
10216 * NEWS: Add entry for completion styling.
10217 * completer.c (_rl_completion_prefix_display_length): Move
10218 declaration earlier.
10219 (gdb_fnprint): Use completion_style.
10220 (gdb_display_match_list_1): Likewise.
10221 * cli/cli-style.c (completion_prefix_style)
10222 (completion_difference_style, completion_suffix_style): New
10223 globals.
10224 (_initialize_cli_style): Register new globals.
10225 * cli/cli-style.h (completion_prefix_style)
10226 (completion_difference_style, completion_suffix_style): Declare.
10227
10228 2020-05-23 Pedro Alves <palves@redhat.com>
10229
10230 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10231 (parse_escape): Use ISDIGIT instead of isdigit.
10232 (puts_debug): Use gdb_isprint instead of isprint.
10233 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10234 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10235 ISSPACE instead of isspace.
10236 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10237 instead of isspace.
10238 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10239 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10240 instead of isxdigit and ISDIGIT instead of isdigit.
10241
10242 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10243
10244 * gdbtypes.h (struct type) <field>: New method.
10245 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10246 or type::field.
10247
10248 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10249
10250 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10251 (TYPE_FIELDS): Use type::fields. Change all call sites that
10252 modify the propery to use type::set_fields instead.
10253
10254 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10255
10256 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10257 type::num_fields instead.
10258
10259 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10260
10261 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10262 methods.
10263 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10264 that modify the number of fields to use type::set_num_fields
10265 instead.
10266
10267 2020-05-22 Tom Tromey <tromey@adacore.com>
10268
10269 * compile/compile-object-load.h (munmap_list_free): Don't
10270 declare.
10271
10272 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10273
10274 * annotate.c (annotate_source_line): Update return type, add call
10275 to update current symtab and line.
10276 * annotate.h (annotate_source_line): Update return type, and
10277 extend header comment.
10278 * source.c (info_line_command): Check annotation_level before
10279 calling annotate_source_line.
10280 * stack.c (print_frame_info): If calling annotate_source_line
10281 returns true, then don't print any other source line information.
10282
10283 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10284
10285 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10286
10287 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10288
10289 * coffread.c (patch_type): Remove NULL check before xfree.
10290 * corefile.c (set_gnutarget): Likewise.
10291 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10292 * exec.c (build_section_table): Likewise.
10293 * remote.c (remote_target::pass_signals): Likewise.
10294 * utils.c (n_spaces): Likewise.
10295 * cli/cli-script.c (document_command): Likewise.
10296 * i386-windows-tdep.c (core_process_module_section): Likewise.
10297 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10298
10299 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10300
10301 * symfile.c (reread_symbols): Clear objfile's section_offsets
10302 vector and section indices, re-compute them by calling
10303 sym_offsets.
10304
10305 2020-05-20 Tom Tromey <tromey@adacore.com>
10306
10307 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10308 (desc_one_bound, desc_index_type): Compute field name.
10309
10310 2020-05-20 Tom de Vries <tdevries@suse.de>
10311
10312 PR symtab/25833
10313 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10314
10315 2020-05-20 Alan Modra <amodra@gmail.com>
10316
10317 PR 25993
10318 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10319 bfd_set_filename.
10320 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10321 passed to bfd_set_filename.
10322 * symfile-mem.c (add_vsyscall_page): Likewise for string
10323 passed to symbol_file_add_from_memory.
10324 (symbol_file_add_from_memory): Make name param a const char* and
10325 don't strdup.
10326
10327 2020-05-20 Alan Modra <amodra@gmail.com>
10328
10329 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10330 rather than accessing bfd->filename directly.
10331 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10332 and use bfd_section_name.
10333 * dwarf2/frame.c (decode_frame_entry): Likewise.
10334 * exec.c (exec_set_section_address): Likewise.
10335 * solib-aix.c (solib_aix_bfd_open): Likewise.
10336 * stap-probe.c (get_stap_base_address): Likewise.
10337 * symfile.c (reread_symbols): Likewise.
10338
10339 2020-05-19 Tom Tromey <tromey@adacore.com>
10340
10341 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10342
10343 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10344
10345 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10346
10347 2020-05-19 Pedro Alves <palves@redhat.com>
10348
10349 * NEWS (set exec-file-mismatch): Adjust entry.
10350 * exec.c: Include "build-id.h".
10351 (validate_exec_file): Try to match build IDs instead of filenames.
10352 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10353 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10354 and pass down 'warn_if_slow'.
10355 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10356 gdb_bfd_open_closure to pass it down.
10357 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10358
10359 2020-05-19 Pedro Alves <palves@redhat.com>
10360
10361 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10362 * target.c (target_fileio_open_1): Rename to target_fileio_open
10363 and make extern. Use bool.
10364 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10365 (target_fileio_read_alloc_1): Adjust.
10366 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10367 (target_fileio_open_warn_if_slow): Delete declaration.
10368
10369 2020-05-19 Pedro Alves <palves@redhat.com>
10370
10371 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10372 Adjust all callers.
10373
10374 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10375
10376 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10377 whether disp is negative.
10378
10379 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10380
10381 * symfile.h (struct symfile_segment_data)
10382 <~symfile_segment_data>: Remove.
10383 <segment_info>: Change to std::vector.
10384 * symfile.c (default_symfile_segments): Update.
10385 * elfread.c (elf_symfile_segments): Update.
10386
10387 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10388
10389 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10390 <segments>: New.
10391 <segment_bases, segment_sizes>: Remove.
10392 * symfile.c (default_symfile_segments): Update.
10393 * elfread.c (elf_symfile_segments): Update.
10394 * remote.c (remote_target::get_offsets): Update.
10395 * solib-target.c (solib_target_relocate_section_addresses):
10396 Update.
10397
10398 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10399
10400 * symfile.h (struct symfile_segment_data): Initialize fields.
10401 <~symfile_segment_data>: Add.
10402 (symfile_segment_data_up): New.
10403 (struct sym_fns) <sym_segments>: Return a
10404 symfile_segment_data_up.
10405 (default_symfile_segments): Return a symfile_segment_data_up.
10406 (free_symfile_segment_data): Remove.
10407 (get_symfile_segment_data): Return a symfile_segment_data_up.
10408 * symfile.c (default_symfile_segments): Likewise.
10409 (get_symfile_segment_data): Likewise.
10410 (free_symfile_segment_data): Remove.
10411 (symfile_find_segment_sections): Update.
10412 * elfread.c (elf_symfile_segments): Return a
10413 symfile_segment_data_up.
10414 * remote.c (remote_target::get_offsets): Update.
10415 * solib-target.c (solib_target_relocate_section_addresses):
10416 Update.
10417 * symfile-debug.c (debug_sym_segments): Return a
10418 symfile_segment_data_up.
10419
10420 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10421
10422 PR build/25981
10423 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10424 Hardcode register numbers.
10425
10426 PR build/25981
10427 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10428 procfs_find_LDT_entry): Remove.
10429 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10430 procfs_find_LDT_entry): Remove.
10431 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10432 Remove.
10433
10434 2020-05-17 Pedro Alves <palves@redhat.com>
10435 Andrew Burgess <andrew.burgess@embecosm.com>
10436 Keno Fischer <keno@juliacomputing.com>
10437
10438 PR gdb/25741
10439 * breakpoint.c (build_target_condition_list): Update comments.
10440 (build_target_command_list): Update comments and skip matching
10441 locations.
10442 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10443 a separate function. Simplify "set breakpoint auto-hw off"
10444 handling.
10445 (insert_breakpoints): Update comment.
10446 (tracepoint_locations_match): New parameter. For breakpoints,
10447 compare location types too, if the caller wants to.
10448 (handle_automatic_hardware_breakpoints): New functions.
10449 (bp_location_is_less_than): Also sort by location type and
10450 hardware breakpoint length.
10451 (update_global_location_list): Handle "set breakpoint auto-hw on"
10452 here.
10453 (update_breakpoint_locations): Ask breakpoint_locations_match to
10454 ignore location types.
10455
10456 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10457
10458 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10459 type::name instead.
10460
10461 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10462
10463 * gdbtypes.h (struct type) <name, set_name>: New methods.
10464 (TYPE_CODE): Use type::name. Change all call sites used to set
10465 the name to use type::set_name instead.
10466
10467 2020-05-16 Tom Tromey <tom@tromey.com>
10468
10469 * top.c (quit_force): Update.
10470 * infrun.c (handle_no_resumed): Update.
10471 * top.h (all_uis): New function.
10472 (ALL_UIS): Remove.
10473
10474 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10475
10476 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10477
10478 2020-05-16 Pedro Alves <palves@redhat.com>
10479
10480 * ia64-linux-nat.c
10481 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10482 Declare method.
10483 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10484
10485 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10486
10487 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10488 (sparc64_adi_info): Likewise.
10489
10490 2020-05-15 Tom Tromey <tom@tromey.com>
10491
10492 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10493 block_objfile.
10494 (lookup_objfile_from_block): Remove.
10495 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10496 (lookup_global_symbol): Use block_objfile.
10497 * symtab.h (lookup_objfile_from_block): Don't declare.
10498 * printcmd.c (clear_dangling_display_expressions): Use
10499 block_objfile.
10500 * parse.c (operator_check_standard): Use block_objfile.
10501
10502 2020-05-15 Tom Tromey <tom@tromey.com>
10503
10504 * language.c (language_alloc_type_symbol): Set
10505 SYMBOL_SECTION.
10506 * symtab.c (initialize_objfile_symbol): Remove.
10507 (allocate_symbol): Remove.
10508 (allocate_template_symbol): Remove.
10509 * dwarf2/read.c (fixup_go_packaging): Use "new".
10510 (new_symbol): Use "new".
10511 (read_variable): Don't call initialize_objfile_symbol. Use
10512 "new".
10513 (read_func_scope): Use "new".
10514 * xcoffread.c (process_xcoff_symbol): Don't call
10515 initialize_objfile_symbol.
10516 (SYMBOL_DUP): Remove.
10517 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10518 "new".
10519 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10520 (allocate_template_symbol): Don't declare.
10521 (struct symbol): Add copy constructor. Change defaults.
10522 * jit.c (finalize_symtab): Use "new".
10523 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10524 Use "new".
10525 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10526 (common_block_end): Use "new".
10527 * mdebugread.c (parse_symbol): Use "new".
10528 (new_symbol): Likewise.
10529
10530 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10531
10532 * NEWS: Mention changes to help and apropos.
10533
10534 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10535
10536 * command.h (enum command_class): Improve comments, document
10537 that class_alias is for user-defined aliases, give the class
10538 name for each class, remove unused class_xdb.
10539 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10540 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10541 by a precise class.
10542 * infcmd.c (_initialize_infcmd): Likewise.
10543 * reverse.c (_initialize_reverse): Likewise.
10544 * stack.c (_initialize_stack): Likewise.
10545 * symfile.c (_initialize_symfile): Likewise.
10546 * tracepoint.c (_initialize_tracepoint): Likewise.
10547
10548 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10549
10550 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10551 when their aliased command is traversed.
10552 (help_cmd): Add fput_command_names_styled call to
10553 output command name and aliases when command has an alias.
10554
10555 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10556
10557 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10558 * cli/cli-decode.c (help_cmd_list): Declare as static,
10559 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10560 a command together with the command.
10561 (fput_command_name_styled, fput_command_names_styled): New functions.
10562 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10563 fput_command_name_styled.
10564 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10565 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10566
10567 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10568
10569 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10570 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10571 * command.h (cmd_show_list): Likewise.
10572 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10573 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10574
10575 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10576
10577 * unittests/command-def-selftests.c (traverse_command_structure):
10578 Verify all commands of a list have the same prefix command and
10579 that only the top cmdlist commands have a null prefix.
10580
10581 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10582
10583 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10584 as prefix, not one of its aliases.
10585 (set_cmd_prefix): Remove.
10586 (do_add_cmd): Centralize the setting of the prefix of a command, when
10587 command is defined after its full chain of prefix commands.
10588 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10589 (add_setshow_cmd_full): Likewise.
10590 (update_prefix_field_of_prefixed_commands): New function.
10591 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10592 update_prefix_field_of_prefixed_commands.
10593 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10594 addresses of remote_set_cmdlist and remote_show_cmdlist given
10595 as argument, not the address of an argument.
10596 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10597 * gdb/remote.c (_initialize_remote): Likewise.
10598
10599 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10600
10601 * cli/cli-cmds.c (alias_command): Check for an existing alias
10602 using lookup_cmd_composition, as valid_command_p is too strict
10603 and forbids aliases that are the prefix of an existing alias
10604 or command.
10605 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10606 command is properly recognised as a valid command.
10607
10608 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10609
10610 * unittests/help-doc-selftests.c: Rename to
10611 unittests/command-def-selftests.c
10612 * unittests/command-def-selftests.c (help_doc_tests): Update some
10613 comments.
10614 (command_structure_tests, traverse_command_structure): New namespace
10615 and function.
10616 (command_structure_invariants_tests): New function.
10617 (_initialize_command_def_selftests) Renamed from
10618 _initialize_help_doc_selftests, register command_structure_invariants
10619 selftest.
10620
10621 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10622
10623 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10624 an alias of 'show'.
10625
10626 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10627
10628 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10629 ada_is_fixed_point_type. Update all callers.
10630 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10631 all callers.
10632 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10633 Update all callers.
10634 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10635 print_fixed_point_type. Update all callers.
10636 * ada-valprint.c (ada_value_print_num): Replace call to
10637 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10638
10639 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10640
10641 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10642 processors.
10643 (cpu_supports_bts): Add CV_AMD case.
10644
10645 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10646 Simon Marchi <simon.marchi@efficios.com>
10647
10648 * infrun.c (stop_all_threads): Collect multiple wait events at
10649 each pass.
10650
10651 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10652
10653 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10654 type::code instead.
10655
10656 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10657
10658 * gdbtypes.h (struct type) <code, set_code>: New methods.
10659 (TYPE_CODE): Use type::code. Change all call sites used to set
10660 the code to use type::set_code instead.
10661
10662 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10663 Tom de Vries <tdevries@suse.de>
10664 Pedro Alves <palves@redhat.com>
10665
10666 PR threads/25478
10667 * infrun.c (stop_all_threads): Do NOT ignore
10668 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10669 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10670 received.
10671 (handle_no_resumed): Remove code handling a live inferior with no
10672 threads.
10673 * remote.c (has_single_non_exited_thread): New.
10674 (remote_target::update_thread_list): Do not delete a thread if is
10675 the last thread of the process.
10676 * thread.c (thread_select): Call delete_exited_threads instead of
10677 prune_threads.
10678
10679 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10680
10681 * infrun.c (stop_all_threads): Enable/disable thread events of all
10682 targets. Move a debug message denoting the end of the function
10683 into the SCOPED_EXIT block.
10684
10685 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10686
10687 * process-stratum-target.h: Include <set>.
10688 (all_non_exited_process_targets, switch_to_target_no_thread): New
10689 function declarations.
10690 * process-stratum-target.c (all_non_exited_process_targets)
10691 (switch_to_target_no_thread): New function implementations.
10692
10693 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10694
10695 * infrun.c (handle_inferior_event): Extract out a piece of code
10696 into...
10697 (mark_non_executing_threads): ...this new function.
10698
10699 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10700
10701 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10702 use.
10703
10704 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10705
10706 * regcache.c (regcache_read_pc_protected): New function
10707 implementation that returns 0 if the PC cannot read via
10708 'regcache_read_pc'.
10709 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10710 instead of 'regcache_read_pc'.
10711 (keep_going_pass_signal): Ditto.
10712
10713 2020-05-13 Tom Tromey <tromey@adacore.com>
10714
10715 * ada-lang.c (align_value): Remove.
10716 (ada_template_to_fixed_record_type_1): Use align_up.
10717
10718 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10719
10720 * async-event.c: Update the copyright year.
10721 * async-event.h: Update the copyright year.
10722
10723 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10724
10725 * objfiles.h (is_addr_in_objfile,
10726 shared_objfile_contains_address_p): Return bool.
10727 * objfile.c (is_addr_in_objfile,
10728 shared_objfile_contains_address_p): Return bool.
10729
10730 2020-05-11 Tom Tromey <tromey@adacore.com>
10731
10732 * cli/cli-cmds.c (info_command): Restore.
10733 (_initialize_cli_cmds): Use add_prefix_command for "info".
10734 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10735
10736 2020-05-11 Tom Tromey <tromey@adacore.com>
10737
10738 * ada-lang.c (ada_value_primitive_field): Now public.
10739 * ada-lang.h (ada_value_primitive_field): Declare.
10740 * ada-valprint.c (print_field_values): Use
10741 ada_value_primitive_field for wrapper fields.
10742
10743 2020-05-11 Tom de Vries <tdevries@suse.de>
10744
10745 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10746 MODULE_DOMAIN.
10747
10748 2020-05-11 Tom de Vries <tdevries@suse.de>
10749
10750 PR symtab/25941
10751 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10752 with length 0, if not gdb-produced.
10753 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10754
10755 2020-05-09 Tom de Vries <tdevries@suse.de>
10756
10757 PR gdb/25955
10758 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10759 calculation.
10760
10761 2020-05-09 Tom Tromey <tom@tromey.com>
10762
10763 * top.c (server_command): Now bool.
10764 * top.h (server_command): Now bool.
10765
10766 2020-05-08 Tom Tromey <tromey@adacore.com>
10767
10768 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10769 already being processed.
10770
10771 2020-05-08 Tom Tromey <tom@tromey.com>
10772
10773 * printcmd.c (struct display) <next>: Remove.
10774 <display>: New constructor.
10775 <exp_string>: Now a std::string.
10776 <enabled_p>: Now a bool.
10777 (display_number): Move definition earlier.
10778 (displays): Rename from display_chain. Now a std::vector.
10779 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10780 (display_command): Update.
10781 (do_one_display, disable_display)
10782 (enable_disable_display_command, do_enable_disable_display):
10783 Update.
10784 (free_display): Remove.
10785 (clear_displays): Rewrite.
10786 (delete_display): Update.
10787 (map_display_numbers): Use function_view. Remove "data"
10788 parameter. Update.
10789 (do_delete_display): Remove.
10790 (undisplay_command): Update.
10791 (do_one_display, do_displays, disable_display)
10792 (info_display_command): Update.
10793 (do_enable_disable_display): Remove.
10794 (enable_disable_display_command)
10795 (clear_dangling_display_expressions): Update.
10796
10797 2020-05-08 Tom Tromey <tom@tromey.com>
10798
10799 * symtab.c (set_symbol_cache_size)
10800 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10801 (maintenance_print_symbol_cache_statistics): Update.
10802 * symmisc.c (print_symbol_bcache_statistics)
10803 (print_objfile_statistics, maintenance_print_objfiles)
10804 (maintenance_info_symtabs, maintenance_check_symtabs)
10805 (maintenance_expand_symtabs, maintenance_info_line_tables):
10806 Update.
10807 * symfile-debug.c (set_debug_symfile): Update.
10808 * source.c (forget_cached_source_info): Update.
10809 * python/python.c (gdbpy_progspaces): Update.
10810 * psymtab.c (maintenance_info_psymtabs): Update.
10811 * probe.c (parse_probes): Update.
10812 * linespec.c (iterate_over_all_matching_symtabs)
10813 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10814 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10815 * exec.c (exec_target::close): Update.
10816 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10817 * breakpoint.c (print_one_breakpoint_location)
10818 (create_longjmp_master_breakpoint)
10819 (create_std_terminate_master_breakpoint): Update.
10820 * progspace.c (program_spaces): Now a std::vector.
10821 (maybe_new_address_space): Update.
10822 (add_program_space): Remove.
10823 (program_space::program_space): Update.
10824 (remove_program_space): Update.
10825 (number_of_program_spaces): Remove.
10826 (print_program_space, update_address_spaces): Update.
10827 * progspace.h (program_spaces): Change type.
10828 (ALL_PSPACES): Remove.
10829 (number_of_program_spaces): Don't declare.
10830 (struct program_space) <next>: Remove.
10831
10832 2020-05-08 Tom Tromey <tom@tromey.com>
10833
10834 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10835 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10836 (enable_break): Update.
10837 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10838 (frv_fdpic_find_canonical_descriptor): Update.
10839 (frv_fetch_objfile_link_map): Update.
10840 * progspace.c (program_space::free_all_objfiles): Update.
10841 (program_space::solibs): New method.
10842 * progspace.h (struct program_space) <solibs>: New method.
10843 * solist.h (master_so_list): Don't declare.
10844 (ALL_SO_LIBS): Remove.
10845 * solib.h (so_list_head): Remove.
10846 (update_solib_list): Update comment.
10847 * solib.c (master_so_list): Remove.
10848 (solib_used, update_solib_list, solib_add)
10849 (info_sharedlibrary_command, clear_solib)
10850 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10851
10852 2020-05-08 Tom Tromey <tom@tromey.com>
10853
10854 * extension.c (extension_languages): Now a std::array.
10855 (ALL_EXTENSION_LANGUAGES): Remove.
10856 (get_ext_lang_defn, get_ext_lang_of_file)
10857 (eval_ext_lang_from_control_command): Update.
10858 (finish_ext_lang_initialization)
10859 (auto_load_ext_lang_scripts_for_objfile)
10860 (ext_lang_type_printers::ext_lang_type_printers)
10861 (apply_ext_lang_type_printers)
10862 (ext_lang_type_printers::~ext_lang_type_printers)
10863 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10864 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10865 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10866 (get_matching_xmethod_workers, ext_lang_colorize)
10867 (ext_lang_before_prompt): Update.
10868 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10869
10870 2020-05-08 Tom Tromey <tom@tromey.com>
10871
10872 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10873 overload.
10874 <swap_string, m_string>: Remove.
10875 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10876 Update.
10877 * stabsread.c (define_symbol, read_type): Update.
10878 * linespec.c (find_linespec_symbols): Update.
10879 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10880 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10881 * dbxread.c (read_dbx_symtab): Update.
10882 * cp-support.h (cp_canonicalize_string_full)
10883 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10884 Return unique_xmalloc_ptr.
10885 * cp-support.c (inspect_type): Update.
10886 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10887 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10888 Likewise.
10889 * c-typeprint.c (print_name_maybe_canonical): Update.
10890 * break-catch-throw.c (check_status_exception_catchpoint):
10891 Update.
10892
10893 2020-05-08 Tom de Vries <tdevries@suse.de>
10894
10895 * infrun.c (follow_fork): Copy current_line and current_symtab to
10896 child thread.
10897
10898 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10899
10900 * async-event.c (struct async_signal_handler, struct
10901 async_event_handler): Reformat, remove typedef.
10902
10903 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10904
10905 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10906 access thistype->main_type->dyn_prop_list directly.
10907
10908 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10909
10910 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10911 (remove_dyn_prop): Remove. Update all users to use
10912 type::remove_dyn_prop.
10913 * gdbtypes.c (remove_dyn_prop): Rename to...
10914 (type::remove_dyn_prop): ... this.
10915
10916 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10917
10918 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10919 (add_dyn_prop): Remove. Update all users to use
10920 type::add_dyn_prop.
10921 * gdbtypes.c (add_dyn_prop): Rename to...
10922 (type::add_dyn_prop): ... this.
10923
10924 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10925
10926 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10927 (get_dyn_prop): Remove. Update all users to use
10928 type::dyn_prop.
10929 * gdbtypes.c (get_dyn_prop): Rename to...
10930 (type::dyn_prop): ... this.
10931
10932 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10933
10934 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10935
10936 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10937
10938 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10939 instruction, skip it if it's there.
10940
10941 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10942
10943 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10944
10945 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10946
10947 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10948 * gdbtypes.c (recursive_dump_type): Remove use of
10949 TYPE_INCOMPLETE.
10950
10951 2020-05-03 Tom Tromey <tom@tromey.com>
10952
10953 * breakpoint.c (catch_command, tcatch_command): Remove.
10954 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10955 add_show_prefix_cmd.
10956 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10957 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10958 Remove.
10959 (add_internal_problem_command): Use add_basic_prefix_cmd,
10960 add_show_prefix_cmd.
10961 * mips-tdep.c (set_mipsfpu_command): Remove.
10962 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10963 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10964 (_initialize_index_cache): Use add_basic_prefix_cmd.
10965 * memattr.c (dummy_cmd): Remove.
10966 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10967 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10968 (_initialize_tui_win): Use add_basic_prefix_cmd,
10969 add_show_prefix_cmd.
10970 * cli/cli-logging.c (set_logging_command): Remove.
10971 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10972 add_show_prefix_cmd.
10973 (show_logging_command): Remove.
10974 * target.c (target_command): Remove.
10975 (add_target): Use add_basic_prefix_cmd.
10976
10977 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10978
10979 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10980
10981 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10982
10983 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10984 info_command.
10985
10986 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10987
10988 * nbsd-nat.c (nbsd_enable_proc_events)
10989 (nbsd_nat_target::post_startup_inferior): Add.
10990 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10991 (nbsd_nat_target::update_thread_list): Rewrite.
10992 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10993 "PTRACE_LWP_CREATE".
10994 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10995
10996 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10997
10998 * stack.c (_initialize_stack): Remove duplicated creation
10999 of "frame" command and "f" alias.
11000
11001 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11002
11003 PR gdb/18706
11004 * gdbtypes.c (check_typedef): Calculate size of array of
11005 stubbed type.
11006
11007 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11008
11009 PR gdb/15559
11010 * i386-tdep.c (i386_push_dummy_call): Call
11011 i386_thiscall_push_dummy_call.
11012 (i386_thiscall_push_dummy_call): New function.
11013 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11014 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11015 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11016
11017 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11018
11019 * gdbarch.sh (do_read): Add shellcheck disable directive for
11020 warning SC2162.
11021
11022 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11023
11024 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11025 "referenced but not assigned" warning.
11026
11027 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11028
11029 * gdbarch.sh: Remove code that sets fallbackdefault.
11030
11031 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11032
11033 * gdbarch.sh: Use shell operators && and || instead of
11034 -a and -o.
11035
11036 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11037
11038 * gdbarch.sh: Use $(...) instead of `...`.
11039
11040 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11041
11042 * gdbarch.sh: Use double quotes around variables.
11043
11044 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11045
11046 * gdbarch.sh: Use %s with printf, instead of variables in the
11047 format string.
11048
11049 2020-04-29 Tom Tromey <tromey@adacore.com>
11050
11051 PR ada/25875:
11052 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11053 type fields here.
11054 (read_enumeration_type): Call
11055 update_enumeration_type_from_children later. Update comments.
11056 (process_enumeration_scope): Don't create type fields.
11057
11058 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11059
11060 * nbsd-tdep.c: Include "xml-syscall.h".
11061 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11062
11063 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11064
11065 * nbsd-nat.c: Include "sys/wait.h".
11066 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11067 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11068 (nbsd_nat_target::remove_exec_catchpoint)
11069 (nbsd_nat_target::set_syscall_catchpoint): Add.
11070 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11071 (nbsd_nat_target::insert_exec_catchpoint)
11072 (nbsd_nat_target::remove_exec_catchpoint)
11073 (nbsd_nat_target::set_syscall_catchpoint): Add.
11074 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11075 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11076 `nbsd_get_syscall_number'.
11077
11078 2020-04-29 Tom Tromey <tom@tromey.com>
11079
11080 * stack.c (print_block_frame_labels): Remove.
11081
11082 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11083
11084 PR gdb/17320
11085 * ada-valprint.c (val_print_packed_array_elements): Move array
11086 end bracket to new line.
11087 (ada_val_print_string): Remove extra spaces before first array
11088 element.
11089 * c-valprint.c (c_value_print_array): Likewise.
11090 * m2-valprint.c (m2_print_array_contents): Likewise.
11091 (m2_value_print_inner): Likewise.
11092 * p-valprint.c (pascal_value_print_inner): Likewise.
11093 * valprint.c (generic_val_print_array): Likewise.
11094 (value_print_array_elements): Move first array element and array
11095 end bracket to new line.
11096
11097 2020-04-29 Tom de Vries <tdevries@suse.de>
11098
11099 PR symtab/25889
11100 * linespec.c (find_method): Fix ix calculation.
11101
11102 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11103
11104 * syscalls/update-netbsd.sh: New file.
11105 * syscalls/netbsd.xml: Regenerate.
11106 * data-directory/Makefile.in: Register `netbsd.xml' in
11107 `SYSCALLS_FILES'.
11108
11109 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11110
11111 * syscalls/update-freebsd.sh: Add double quotes.
11112
11113 2020-04-28 Tom Tromey <tom@tromey.com>
11114
11115 * NEWS: Update.
11116 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11117 (cmdpy_init): Allow class_tui.
11118
11119 2020-04-28 Mark Williams <mark@myosotissp.com>
11120
11121 PR gdb/24480
11122 * dwarf2read.c: Add missing assingments to list_in_scope when
11123 start_symtab was already called.
11124
11125 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11126
11127 PR gdb/25881
11128 * dwarf2/read.c (offset_map_type): Use
11129 gdb:hash_enum<sect_offset> as hash function.
11130
11131 2020-04-28 Tom de Vries <tdevries@suse.de>
11132
11133 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11134 with DW_AT_signature.
11135
11136 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11137
11138 * configure.ac: Remove check for fs_base/gs_base in
11139 user_regs_struct.
11140 * configure: Re-generate.
11141 * config.in: Re-generate.
11142 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11143 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11144 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11145
11146 2020-04-27 Luis Machado <luis.machado@linaro.org>
11147
11148 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11149 problematic inline frame unwinding situation.
11150 * frame.c (frame_id_computed_p): New function.
11151 * frame.h (frame_id_computed_p): New prototype.
11152
11153 2020-04-26 Tom Tromey <tom@tromey.com>
11154
11155 * command.h (enum command_class) <class_pseudo>: Remove.
11156
11157 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11158
11159 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11160 and whitespace.
11161
11162 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11163
11164 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11165 `PT_GET_PROCESS_STATE' block.
11166
11167 2020-04-24 Tom Tromey <tom@tromey.com>
11168
11169 * symtab.h (symbol_get_demangled_name): Don't declare.
11170 * symtab.c (symbol_get_demangled_name): Remove.
11171 (general_symbol_info::natural_name)
11172 (general_symbol_info::demangled_name): Update.
11173
11174 2020-04-24 Tom Tromey <tom@tromey.com>
11175
11176 PR rust/25025:
11177 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11178
11179 2020-04-24 Tom Tromey <tom@tromey.com>
11180
11181 PR symtab/12707:
11182 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11183 exists.
11184 (new_symbol): Likewise.
11185 * compile/compile-object-load.c (get_out_value_type): Use
11186 symbol_matches_search_name.
11187
11188 2020-04-24 Tom Tromey <tom@tromey.com>
11189
11190 * dwarf2/read.c (add_partial_symbol): Do not call
11191 compute_and_set_names.
11192
11193 2020-04-24 Tom Tromey <tom@tromey.com>
11194
11195 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11196 overload.
11197
11198 2020-04-24 Tom Tromey <tom@tromey.com>
11199
11200 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11201 (add_psymbol_to_list): New overload. Make old overload call new
11202 one.
11203 * psympriv.h (add_psymbol_to_list): New overload.
11204
11205 2020-04-24 Tom Tromey <tom@tromey.com>
11206
11207 * dwarf2/read.c (partial_die_info::read) <case
11208 DW_AT_linkage_name>: Use value_as_string.
11209 (dwarf2_string_attr): Use value_as_string.
11210 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11211 method.
11212 * dwarf2/attribute.c (attribute::value_as_string): New method.
11213
11214 2020-04-24 Tom Tromey <tom@tromey.com>
11215
11216 * symtab.c (general_symbol_info::natural_name)
11217 (general_symbol_info::demangled_name): Check for language_rust.
11218
11219 2020-04-24 Tom Tromey <tom@tromey.com>
11220
11221 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11222 (dwarf2_physname): ... from here.
11223 (partial_die_info::read): Add Rust "{" hack.
11224
11225 2020-04-24 Tom Tromey <tom@tromey.com>
11226
11227 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11228 method.
11229 (symbol_set_demangled_name): Don't declare.
11230 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11231 symbol_set_demangled_name.
11232 (general_symbol_info::set_language)
11233 (general_symbol_info::compute_and_set_names): Update.
11234 * minsyms.c (minimal_symbol_reader::install): Update.
11235 * dwarf2/read.c (new_symbol): Update.
11236
11237 2020-04-24 Tom Tromey <tromey@adacore.com>
11238
11239 PR python/23662:
11240 * python/py-type.c (convert_field): Handle
11241 FIELD_LOC_KIND_DWARF_BLOCK.
11242 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11243 (typy_get_dynamic): Nw function.
11244 (type_object_getset): Add "dynamic".
11245 * NEWS: Add entry.
11246
11247 2020-04-24 Tom Tromey <tromey@adacore.com>
11248
11249 * ada-typeprint.c (print_choices, print_variant_part)
11250 (print_record_field_types_dynamic): New functions.
11251 (print_record_field_types): Use print_record_field_types_dynamic.
11252
11253 2020-04-24 Tom Tromey <tromey@adacore.com>
11254
11255 * dwarf2/read.c (handle_data_member_location): New overload.
11256 (dwarf2_add_field): Use it.
11257 (decode_locdesc): Add "computed" parameter. Update comment.
11258 * gdbtypes.c (is_dynamic_type_internal): Also look for
11259 FIELD_LOC_KIND_DWARF_BLOCK.
11260 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11261 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11262 virtual base classes.
11263 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11264 FIELD_LOC_KIND_DWARF_BLOCK.
11265
11266 2020-04-24 Tom Tromey <tromey@adacore.com>
11267
11268 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11269 * gdbtypes.c (is_dynamic_type_internal): Check
11270 TYPE_HAS_DYNAMIC_LENGTH.
11271 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11272 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11273 New macros.
11274 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11275 constant.
11276
11277 2020-04-24 Tom Tromey <tromey@adacore.com>
11278
11279 * dwarf2/read.c (struct variant_field): Rewrite.
11280 (struct variant_part_builder): New.
11281 (struct nextfield): Remove "variant" field. Add "offset".
11282 (struct field_info): Add "current_variant_part" and
11283 "variant_parts".
11284 (alloc_discriminant_info): Remove.
11285 (alloc_rust_variant): New function.
11286 (quirk_rust_enum): Update.
11287 (dwarf2_add_field): Set "offset" member. Don't handle
11288 DW_TAG_variant_part.
11289 (offset_map_type): New typedef.
11290 (convert_variant_range, create_one_variant)
11291 (create_one_variant_part, create_variant_parts)
11292 (add_variant_property): New functions.
11293 (dwarf2_attach_fields_to_type): Call add_variant_property.
11294 (read_structure_type): Don't handle DW_TAG_variant_part.
11295 (handle_variant_part, handle_variant): New functions.
11296 (handle_struct_member_die): Use them.
11297 (process_structure_scope): Don't handle variant parts.
11298 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11299 (struct discriminant_info): Remove.
11300 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11301 (struct main_type) <flag_discriminated_union>: Remove.
11302 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11303 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11304 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11305 Update.
11306 * valops.c (value_union_variant): Remove.
11307 * value.h (value_union_variant): Don't declare.
11308
11309 2020-04-24 Tom Tromey <tromey@adacore.com>
11310
11311 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11312 (ada_value_primitive_packed_val): Update.
11313 * ada-valprint.c (ada_value_print_1): Update.
11314 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11315 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11316 just an address. Use evaluate_for_locexpr_baton.
11317 (dwarf2_evaluate_property): Update.
11318 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11319 array_view.
11320 * findvar.c (default_read_var_value): Update.
11321 * gdbtypes.c (compute_variant_fields_inner)
11322 (resolve_dynamic_type_internal): Update.
11323 (resolve_dynamic_type): Change type of valaddr parameter.
11324 * gdbtypes.h (resolve_dynamic_type): Update.
11325 * valarith.c (value_subscripted_rvalue): Update.
11326 * value.c (value_from_contents_and_address): Update.
11327
11328 2020-04-24 Tom Tromey <tromey@adacore.com>
11329
11330 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11331 "push_initial_value" parameter.
11332 (dwarf2_evaluate_property): Likewise.
11333 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11334
11335 2020-04-24 Tom Tromey <tromey@adacore.com>
11336
11337 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11338 (variant::matches, compute_variant_fields_recurse)
11339 (compute_variant_fields_inner, compute_variant_fields): New
11340 functions.
11341 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11342 Use resolved_type after type is made.
11343 (operator==): Add new cases.
11344 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11345 (struct discriminant_range, struct variant, struct variant_part):
11346 New.
11347 (union dynamic_prop_data) <variant_parts, original_type>: New
11348 members.
11349 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11350 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11351 constants.
11352 * value.c (unpack_bits_as_long): Now public.
11353 * value.h (unpack_bits_as_long): Declare.
11354
11355 2020-04-24 Tom Tromey <tromey@adacore.com>
11356
11357 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11358 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11359
11360 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11361
11362 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11363
11364 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11365
11366 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11367 (remove_fork_catchpoint, post_startup_inferior)
11368 (post_attach): Move...
11369 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11370 (remove_fork_catchpoint, post_startup_inferior)
11371 (post_attach): ...here.
11372 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11373 (remove_fork_catchpoint, post_startup_inferior)
11374 (post_attach): Move...
11375 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11376 (remove_fork_catchpoint, post_startup_inferior)
11377 (post_attach): ...here.
11378
11379 2020-04-24 Tom Tromey <tromey@adacore.com>
11380
11381 * nat/windows-nat.h (struct windows_thread_info)
11382 <pc_adjusted>: New member.
11383 * windows-nat.c (windows_fetch_one_register): Check
11384 pc_adjusted.
11385 (windows_nat_target::get_windows_debug_event)
11386 (windows_nat_target::wait): Set pc_adjusted.
11387
11388 2020-04-24 Tom de Vries <tdevries@suse.de>
11389
11390 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11391 Run gdb-add-index inside temp dir.
11392
11393 2020-04-23 Tom Tromey <tromey@adacore.com>
11394
11395 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11396 in loop.
11397
11398 2020-04-23 Luis Machado <luis.machado@linaro.org>
11399
11400 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11401 get_frame_register instead of gdbarch_unwind_pc.
11402
11403 2020-04-23 Tom de Vries <tdevries@suse.de>
11404
11405 * symtab.c (lookup_global_symbol): Prefer def over decl.
11406
11407 2020-04-23 Tom de Vries <tdevries@suse.de>
11408
11409 PR symtab/25807
11410 * block.c (best_symbol, better_symbol): Promote to external.
11411 * block.h (best_symbol, better_symbol): Declare.
11412 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11413 decl.
11414
11415 2020-04-23 Tom Tromey <tromey@adacore.com>
11416
11417 PR ada/25837:
11418 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11419 "const char *", not a "const std::string &".
11420 <name_and_matcher::operator==>: Update.
11421 * unittests/lookup_name_info-selftests.c: Change type of
11422 "result".
11423
11424 2020-04-23 Tom Tromey <tom@tromey.com>
11425
11426 * inferior.h (iterate_over_inferiors): Don't declare.
11427 * inferior.c (iterate_over_inferiors): Remove.
11428 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11429 Remove.
11430 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11431 use iterate_over_inferiors.
11432 (darwin_resume_inferior_it)
11433 (struct resume_inferior_threads_param)
11434 (darwin_resume_inferior_threads_it): Remove.
11435 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11436
11437 2020-04-23 Tom de Vries <tdevries@suse.de>
11438
11439 * blockframe.c (find_pc_partial_function): Use
11440 find_pc_sect_compunit_symtab rather than
11441 objfile->sf->qf->find_pc_sect_compunit_symtab.
11442
11443 2020-04-22 Tom de Vries <tdevries@suse.de>
11444
11445 PR symtab/25764
11446 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11447 in psymtabs.
11448
11449 2020-04-22 Tom de Vries <tdevries@suse.de>
11450
11451 PR symtab/25801
11452 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11453 symtabs.
11454
11455 2020-04-22 Tom de Vries <tdevries@suse.de>
11456
11457 PR symtab/25700
11458 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11459 CU if already created.
11460
11461 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11462
11463 * infrun.c (displaced_step_fixup): Switch to the event_thread
11464 before calling displaced_step_restore, not after.
11465
11466 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11467
11468 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11469 its inferior is not recorded by us.
11470 (record_btrace_target_open): Replace call to
11471 all_non_exited_threads () with call to current_inferior
11472 ()->non_exited_threads ().
11473 (record_btrace_target::stop_recording): Likewise.
11474 (record_btrace_target::close): Likewise.
11475 (record_btrace_target::wait): Likewise.
11476 (record_btrace_target::record_stop_replaying): Likewise.
11477
11478 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11479
11480 * btrace.c (btrace_enable): Throw an error on double enables and
11481 when enabling recording fails.
11482 (btrace_disable): Throw an error if the thread is not recorded.
11483
11484 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11485
11486 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11487 request if we do not have a thread_info.
11488
11489 2020-04-21 Tom de Vries <tdevries@suse.de>
11490
11491 PR gdb/25471
11492 * thread.c
11493 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11494 exception in get_frame_id.
11495
11496 2020-04-20 Tom Tromey <tromey@adacore.com>
11497
11498 * python/python.c (struct gdbpy_event): Mark move constructor as
11499 noexcept.
11500 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11501 constructor as noexcept.
11502 * completer.h (struct completion_result): Mark move constructor as
11503 noexcept.
11504 * completer.c (completion_result::completion_result): Use
11505 initialization style. Don't call reset_match_list.
11506
11507 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11508
11509 * MAINTAINERS (Write After Approval): Add myself.
11510
11511 2020-04-18 Tom Tromey <tom@tromey.com>
11512
11513 * windows-tdep.c (init_w32_command_list)
11514 (w32_prefix_command_valid): Restore.
11515 (_initialize_windows_tdep): Call init_w32_command_list.
11516
11517 2020-04-18 Tom Tromey <tom@tromey.com>
11518
11519 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11520 * value.c (value_fn_field): Update.
11521 * valops.c (find_function_in_inferior)
11522 (value_allocate_space_in_inferior): Update.
11523 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11524 Update.
11525 * tui/tui-source.c (tui_source_window::set_contents): Update.
11526 * symtab.c (lookup_global_or_static_symbol)
11527 (find_function_start_sal_1, skip_prologue_sal)
11528 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11529 * symmisc.c (dump_msymbols, dump_symtab_1)
11530 (maintenance_print_one_line_table): Update.
11531 * symfile.c (init_entry_point_info, section_is_mapped)
11532 (list_overlays_command, simple_read_overlay_table)
11533 (simple_overlay_update_1): Update.
11534 * stap-probe.c (handle_stap_probe): Update.
11535 * stabsread.c (dbx_init_float_type, define_symbol)
11536 (read_one_struct_field, read_enum_type, read_range_type): Update.
11537 * source.c (info_line_command): Update.
11538 * python/python.c (gdbpy_source_objfile_script)
11539 (gdbpy_execute_objfile_script): Update.
11540 * python/py-type.c (save_objfile_types): Update.
11541 * python/py-objfile.c (py_free_objfile): Update.
11542 * python/py-inferior.c (python_new_objfile): Update.
11543 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11544 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11545 (maintenance_check_psymtabs): Update.
11546 * printcmd.c (info_address_command): Update.
11547 * objfiles.h (struct objfile) <arch>: New method, from
11548 get_objfile_arch.
11549 (get_objfile_arch): Don't declare.
11550 * objfiles.c (get_objfile_arch): Remove.
11551 (filter_overlapping_sections): Update.
11552 * minsyms.c (msymbol_is_function): Update.
11553 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11554 (output_nondebug_symbol): Update.
11555 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11556 (mdebug_expand_psymtab): Update.
11557 * machoread.c (macho_add_oso_symfile): Update.
11558 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11559 Update.
11560 * linux-fork.c (checkpoint_command): Update.
11561 * linespec.c (convert_linespec_to_sals): Update.
11562 * jit.c (finalize_symtab): Update.
11563 * infrun.c (insert_exception_resume_from_probe): Update.
11564 * ia64-tdep.c (ia64_find_unwind_table): Update.
11565 * hppa-tdep.c (internalize_unwinds): Update.
11566 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11567 Update.
11568 * gcore.c (call_target_sbrk): Update.
11569 * elfread.c (record_minimal_symbol, elf_symtab_read)
11570 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11571 (elf_gnu_ifunc_resolve_by_got): Update.
11572 * dwarf2/read.c (create_addrmap_from_index)
11573 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11574 (read_debug_names_from_section)
11575 (process_psymtab_comp_unit_reader, add_partial_symbol)
11576 (add_partial_subprogram, process_full_comp_unit)
11577 (read_file_scope, read_func_scope, read_lexical_block_scope)
11578 (read_call_site_scope, dwarf2_ranges_read)
11579 (dwarf2_record_block_ranges, dwarf2_add_field)
11580 (mark_common_block_symbol_computed, read_tag_pointer_type)
11581 (read_tag_string_type, dwarf2_init_float_type)
11582 (dwarf2_init_complex_target_type, read_base_type)
11583 (partial_die_info::read, partial_die_info::read)
11584 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11585 (dwarf2_fetch_die_loc_sect_off): Update.
11586 * dwarf2/loc.c (dwarf2_find_location_expression)
11587 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11588 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11589 (dwarf2_loc_desc_get_symbol_read_needs)
11590 (locexpr_describe_location_piece, locexpr_describe_location_1)
11591 (loclist_describe_location): Update.
11592 * dwarf2/index-write.c (write_debug_names): Update.
11593 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11594 * dtrace-probe.c (dtrace_process_dof): Update.
11595 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11596 (process_one_symbol): Update.
11597 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11598 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11599 (coff_read_enum_type): Update.
11600 * cli/cli-cmds.c (edit_command, list_command): Update.
11601 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11602 * breakpoint.c (create_overlay_event_breakpoint)
11603 (create_longjmp_master_breakpoint)
11604 (create_std_terminate_master_breakpoint)
11605 (create_exception_master_breakpoint, get_sal_arch): Update.
11606 * block.c (block_gdbarch): Update.
11607 * annotate.c (annotate_source_line): Update.
11608
11609 2020-04-17 Tom Tromey <tromey@adacore.com>
11610
11611 * auto-load.c (show_auto_load_cmd): Remove.
11612 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11613 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11614 (maintenance_print_arc_command): Remove.
11615 * tui/tui-win.c (tui_command): Remove.
11616 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11617 * tui/tui-layout.c (tui_layout_command): Remove.
11618 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11619 * python/python.c (user_set_python, user_show_python): Remove.
11620 (_initialize_python): Use add_basic_prefix_cmd,
11621 add_show_prefix_cmd.
11622 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11623 (install_gdb_commands): Use add_basic_prefix_cmd,
11624 add_show_prefix_cmd.
11625 (info_guile_command): Remove.
11626 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11627 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11628 add_show_prefix_cmd.
11629 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11630 Remove do_set and do_show parameters.
11631 * cli/cli-style.c (set_style, show_style): Remove.
11632 (_initialize_cli_style): Use add_basic_prefix_cmd,
11633 add_show_prefix_cmd.
11634 (cli_style_option::add_setshow_commands): Remove do_set and
11635 do_show parameters.
11636 (cli_style_option::add_setshow_commands): Use
11637 add_basic_prefix_cmd, add_show_prefix_cmd.
11638 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11639 (set_style_name): Remove.
11640 * cli/cli-dump.c (dump_command, append_command): Remove.
11641 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11642 (tekhex_dump_command, binary_dump_command)
11643 (binary_append_command): Remove.
11644 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11645 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11646 (init_w32_command_list): Remove; move into ...
11647 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11648 * valprint.c (set_print, show_print, set_print_raw)
11649 (show_print_raw): Remove.
11650 (_initialize_valprint): Use add_basic_prefix_cmd,
11651 add_show_prefix_cmd.
11652 * typeprint.c (set_print_type, show_print_type): Remove.
11653 (_initialize_typeprint): Use add_basic_prefix_cmd,
11654 add_show_prefix_cmd.
11655 * record.c (set_record_command, show_record_command): Remove.
11656 (_initialize_record): Use add_basic_prefix_cmd,
11657 add_show_prefix_cmd.
11658 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11659 add_show_prefix_cmd.
11660 (info_command, show_command, set_debug, show_debug): Remove.
11661 * top.h (set_history, show_history): Don't declare.
11662 * top.c (set_history, show_history): Remove.
11663 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11664 (unset_tdesc_cmd): Remove.
11665 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11666 add_show_prefix_cmd.
11667 * symtab.c (info_module_command): Remove.
11668 (_initialize_symtab): Use add_basic_prefix_cmd.
11669 * symfile.c (overlay_command): Remove.
11670 (_initialize_symfile): Use add_basic_prefix_cmd.
11671 * sparc64-tdep.c (info_adi_command): Remove.
11672 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11673 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11674 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11675 add_show_prefix_cmd.
11676 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11677 (_initialize_serial): Use add_basic_prefix_cmd,
11678 add_show_prefix_cmd.
11679 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11680 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11681 add_show_prefix_cmd.
11682 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11683 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11684 add_show_prefix_cmd.
11685 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11686 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11687 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11688 add_show_prefix_cmd.
11689 * remote.c (remote_command, set_remote_cmd): Remove.
11690 (_initialize_remote): Use add_basic_prefix_cmd.
11691 * record-full.c (set_record_full_command)
11692 (show_record_full_command): Remove.
11693 (_initialize_record_full): Use add_basic_prefix_cmd,
11694 add_show_prefix_cmd.
11695 * record-btrace.c (cmd_set_record_btrace)
11696 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11697 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11698 (cmd_show_record_btrace_pt): Remove.
11699 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11700 add_show_prefix_cmd.
11701 * ravenscar-thread.c (set_ravenscar_command)
11702 (show_ravenscar_command): Remove.
11703 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11704 add_show_prefix_cmd.
11705 * mips-tdep.c (show_mips_command, set_mips_command)
11706 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11707 add_show_prefix_cmd.
11708 * maint.c (maintenance_command, maintenance_info_command)
11709 (maintenance_check_command, maintenance_print_command)
11710 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11711 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11712 add_show_prefix_cmd.
11713 (show_per_command_cmd): Remove.
11714 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11715 Remove.
11716 (maintenance_show_test_settings_cmd): Remove.
11717 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11718 add_show_prefix_cmd.
11719 * maint-test-options.c (maintenance_test_options_command):
11720 Remove.
11721 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11722 * macrocmd.c (macro_command): Remove
11723 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11724 * language.c (set_check, show_check): Remove.
11725 (_initialize_language): Use add_basic_prefix_cmd,
11726 add_show_prefix_cmd.
11727 * infcmd.c (unset_command): Remove.
11728 (_initialize_infcmd): Use add_basic_prefix_cmd.
11729 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11730 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11731 add_show_prefix_cmd.
11732 * go32-nat.c (go32_info_dos_command): Remove.
11733 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11734 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11735 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11736 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11737 (_initialize_frame): Use add_basic_prefix_cmd,
11738 add_show_prefix_cmd.
11739 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11740 (_initialize_dcache): Use add_basic_prefix_cmd,
11741 add_show_prefix_cmd.
11742 * cp-support.c (maint_cplus_command): Remove.
11743 (_initialize_cp_support): Use add_basic_prefix_cmd.
11744 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11745 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11746 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11747 add_basic_prefix_cmd, add_show_prefix_cmd.
11748 * breakpoint.c (save_command): Remove.
11749 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11750 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11751 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11752 add_show_prefix_cmd.
11753 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11754 (set_ada_command, show_ada_command): Remove.
11755 (_initialize_ada_language): Use add_basic_prefix_cmd,
11756 add_show_prefix_cmd.
11757 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11758
11759 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11760
11761 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11762 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11763
11764 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11765
11766 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11767 warning messages.
11768
11769 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11770
11771 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11772 import table is not at beginning of .idata section.
11773
11774 2020-04-16 Pedro Alves <palves@redhat.com>
11775
11776 * inferior.c (delete_inferior): Use delete operator directly
11777 instead of delete_program_space.
11778 * progspace.c (add_program_space): New, factored out from
11779 program_space::program_space.
11780 (remove_program_space): New, factored out from
11781 delete_program_space.
11782 (program_space::program_space): Remove intro comment. Rewrite.
11783 (program_space::~program_space): Remove intro comment. Call
11784 remove_program_space.
11785 (delete_program_space): Delete.
11786 * progspace.h (program_space::program_space): Make explicit. Move
11787 intro comment here, adjusted.
11788 (program_space::~program_space): Move intro comment here,
11789 adjusted.
11790 (delete_program_space): Remove.
11791
11792 2020-04-16 Tom Tromey <tromey@adacore.com>
11793
11794 * windows-nat.c (windows_nat::handle_access_violation): New
11795 function.
11796 * nat/windows-nat.h (handle_access_violation): Declare.
11797 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11798 windows-nat.c. Call handle_access_violation.
11799
11800 2020-04-16 Tom de Vries <tdevries@suse.de>
11801
11802 PR symtab/25791
11803 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11804 CUs without psymtab.
11805
11806 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11807
11808 * python/python.c (do_start_initialization): Don't call
11809 PyEval_InitThreads for Python 3.9 and beyond.
11810
11811 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11812
11813 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11814 thread functions.
11815 (obsd_nat_target::wait): Likewise.
11816
11817 2020-04-15 Tom Tromey <tromey@adacore.com>
11818
11819 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11820 (DEBUG_EXCEPT): Use debug_printf.
11821
11822 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11823
11824 * completer.c (class completion_tracker::completion_hash_entry)
11825 <hash_name>: New member function.
11826 (completion_tracker::discard_completions): New callback to hash a
11827 completion_hash_entry, pass this to htab_create_alloc.
11828
11829 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11830
11831 * windows-nat.c (windows_make_so): Warn rather than stopping with
11832 an error if realpath() fails.
11833
11834 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11835
11836 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11837 (nbsd_nat_target::info_proc): Add do_status.
11838
11839 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11840 Tom de Vries <tdevries@suse.de>
11841
11842 PR symtab/25718
11843 * psympriv.h (struct partial_symtab::read_symtab)
11844 (struct partial_symtab::expand_psymtab)
11845 (struct partial_symtab::read_dependencies): Update comments.
11846 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11847 read_symtab for includer.
11848 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11849 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11850 (struct dwarf2_include_psymtab::m_readin): Remove.
11851 (struct dwarf2_include_psymtab::includer): New member function.
11852 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11853
11854 2020-04-14 Tom de Vries <tdevries@suse.de>
11855
11856 PR symtab/25720
11857 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11858 with NULL symbol_matcher and lookup_name.
11859 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11860 and lookup_name.
11861 * dwarf2/read.c (dw2_expand_symtabs_matching)
11862 (dw2_debug_names_expand_symtabs_matching): Same.
11863 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11864 Make lookup_name a pointer. Update comment.
11865 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11866 lookup_name being a pointer.
11867 * symfile.c (expand_symtabs_matching): Same.
11868 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11869 * linespec.c (iterate_over_all_matching_symtabs): Same.
11870
11871 2020-04-13 Tom Tromey <tom@tromey.com>
11872
11873 * run-on-main-thread.c: Update include.
11874 * unittests/main-thread-selftests.c: Update include.
11875 * tui/tui-win.c: Update include.
11876 * tui/tui-io.c: Update include.
11877 * tui/tui-interp.c: Update include.
11878 * tui/tui-hooks.c: Update include.
11879 * top.h: Update include.
11880 * top.c: Update include.
11881 * ser-base.c: Update include.
11882 * remote.c: Update include.
11883 * remote-notif.c: Update include.
11884 * remote-fileio.c: Update include.
11885 * record-full.c: Update include.
11886 * record-btrace.c: Update include.
11887 * python/python.c: Update include.
11888 * posix-hdep.c: Update include.
11889 * mingw-hdep.c: Update include.
11890 * mi/mi-main.c: Update include.
11891 * mi/mi-interp.c: Update include.
11892 * main.c: Update include.
11893 * linux-nat.c: Update include.
11894 * interps.c: Update include.
11895 * infrun.c: Update include.
11896 * inf-loop.c: Update include.
11897 * event-top.c: Update include.
11898 * event-loop.c: Move to ../gdbsupport/.
11899 * event-loop.h: Move to ../gdbsupport/.
11900 * async-event.h: Update include.
11901 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11902
11903 2020-04-13 Tom Tromey <tom@tromey.com>
11904
11905 * tui/tui-win.c: Include async-event.h.
11906 * remote.c: Include async-event.h.
11907 * remote-notif.c: Include async-event.h.
11908 * record-full.c: Include async-event.h.
11909 * record-btrace.c: Include async-event.h.
11910 * infrun.c: Include async-event.h.
11911 * event-top.c: Include async-event.h.
11912 * event-loop.h: Move some declarations to async-event.h.
11913 * event-loop.c: Don't include ser-event.h or top.h. Move some
11914 code to async-event.c.
11915 * async-event.h: New file.
11916 * async-event.c: New file.
11917 * Makefile.in (COMMON_SFILES): Add async-event.c.
11918 (HFILES_NO_SRCDIR): Add async-event.h.
11919
11920 2020-04-13 Tom Tromey <tom@tromey.com>
11921
11922 * utils.c (flush_streams): New function.
11923 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11924
11925 2020-04-13 Tom Tromey <tom@tromey.com>
11926
11927 * event-loop.c (handle_file_event): Use warning, not
11928 printf_unfiltered.
11929
11930 2020-04-13 Tom Tromey <tom@tromey.com>
11931
11932 * event-loop.c: Include <chrono>.
11933
11934 2020-04-13 Tom Tromey <tom@tromey.com>
11935
11936 * gdb_select.h: Move to ../gdbsupport/.
11937 * event-loop.c: Update include path.
11938 * top.c: Update include path.
11939 * ser-base.c: Update include path.
11940 * ui-file.c: Update include path.
11941 * ser-tcp.c: Update include path.
11942 * guile/scm-ports.c: Update include path.
11943 * posix-hdep.c: Update include path.
11944 * ser-unix.c: Update include path.
11945 * gdb_usleep.c: Update include path.
11946 * mingw-hdep.c: Update include path.
11947 * inflow.c: Update include path.
11948 * infrun.c: Update include path.
11949 * event-top.c: Update include path.
11950
11951 2020-04-13 Tom Tromey <tom@tromey.com>
11952
11953 * configure: Rebuild.
11954 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11955
11956 2020-04-13 Tom Tromey <tom@tromey.com>
11957
11958 * event-loop.h (start_event_loop): Don't declare.
11959 * event-loop.c (start_event_loop): Move...
11960 * main.c (start_event_loop): ...here. Now static.
11961
11962 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11963
11964 * MAINTAINERS: Update my email address.
11965
11966 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11967
11968 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11969 IP_ALL.
11970
11971 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11972
11973 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11974 (nbsd_nat_target::info_proc): Add do_cmdline.
11975
11976 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11977
11978 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11979 (nbsd_nat_target::info_proc): Add do_cwd.
11980
11981 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11982
11983 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11984
11985 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11986
11987 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11988 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11989 (nbsd_nat_target::info_proc): New functions.
11990 * nbsd-nat.c (kinfo_get_vmmap): New function.
11991 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11992 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11993 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11994 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11995 functions.
11996 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11997 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11998 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11999 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12000 (KINFO_VME_FLAG_GROWS_DOWN): New.
12001
12002 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12003
12004 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12005 bit shift.
12006
12007 2020-04-10 Tom Tromey <tromey@adacore.com>
12008
12009 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12010
12011 2020-04-10 Tom Tromey <tromey@adacore.com>
12012
12013 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12014 separate debug files.
12015
12016 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12017
12018 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12019 Move to...
12020 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12021 ... here.
12022 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12023 Check for STATUS_WX86_BREAKPOINT.
12024 (windows_nat_target::wait): Same.
12025
12026 2020-04-10 Tom de Vries <tdevries@suse.de>
12027
12028 PR cli/25808
12029 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12030
12031 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12032
12033 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12034 (Write After Approval): Remove Tom de Vries.
12035
12036 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12037
12038 revert partially:
12039 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12040
12041 * buildsym.c (record_line): Fix undefined behavior and preserve
12042 lines at eof.
12043
12044 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12045
12046 * auxv.h (svr4_auxv_parse): New.
12047 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12048 and generic_auxv_parse.
12049 (svr4_auxv_parse): Add.
12050 * obsd-tdep.c: Include "auxv.h".
12051 (obsd_auxv_parse): Remove.
12052 (obsd_init_abi): Remove comment.
12053 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12054 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12055 * nbsd-tdep.c: Include "auxv.h".
12056 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12057
12058 2020-04-08 Tom Tromey <tromey@adacore.com>
12059
12060 * nat/windows-nat.h (last_wait_event): Don't declare.
12061 (wait_for_debug_event): Update comment.
12062 * nat/windows-nat.c (last_wait_event): Now static.
12063
12064 2020-04-08 Tom Tromey <tromey@adacore.com>
12065
12066 * windows-nat.c (wait_for_debug_event): Move to
12067 nat/windows-nat.c.
12068 * nat/windows-nat.h (wait_for_debug_event): Declare.
12069 * nat/windows-nat.c (wait_for_debug_event): Move from
12070 windows-nat.c. No longer static.
12071
12072 2020-04-08 Tom Tromey <tromey@adacore.com>
12073
12074 * windows-nat.c (get_windows_debug_event): Use
12075 fetch_pending_stop.
12076 * nat/windows-nat.h (fetch_pending_stop): Declare.
12077 * nat/windows-nat.c (fetch_pending_stop): New function.
12078
12079 2020-04-08 Tom Tromey <tromey@adacore.com>
12080
12081 * windows-nat.c (windows_continue): Use matching_pending_stop and
12082 continue_last_debug_event.
12083 * nat/windows-nat.h (matching_pending_stop)
12084 (continue_last_debug_event): Declare.
12085 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12086 (matching_pending_stop, continue_last_debug_event): New
12087 functions.
12088
12089 2020-04-08 Tom Tromey <tromey@adacore.com>
12090
12091 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12092 (handle_exception_result): Move to nat/windows-nat.h.
12093 (DEBUG_EXCEPTION_SIMPLE): Remove.
12094 (windows_nat::handle_ms_vc_exception): New function.
12095 (handle_exception): Move to nat/windows-nat.c.
12096 (get_windows_debug_event): Update.
12097 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12098 nat/windows-nat.c.
12099 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12100 (handle_exception_result): Move from windows-nat.c.
12101 (handle_exception): Declare.
12102 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12103 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12104 windows-nat.c.
12105
12106 2020-04-08 Tom Tromey <tromey@adacore.com>
12107
12108 * windows-nat.c (exception_count, event_count): Remove.
12109 (handle_exception, get_windows_debug_event)
12110 (do_initial_windows_stuff): Update.
12111
12112 2020-04-08 Tom Tromey <tromey@adacore.com>
12113
12114 * windows-nat.c (windows_nat::handle_load_dll)
12115 (windows_nat::handle_unload_dll): Rename. No longer static.
12116 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12117 Declare.
12118
12119 2020-04-08 Tom Tromey <tromey@adacore.com>
12120
12121 * complaints.h (stop_whining): Declare at top-level.
12122 (complaint): Don't declare stop_whining.
12123
12124 2020-04-08 Tom Tromey <tromey@adacore.com>
12125
12126 * windows-nat.c (windows_nat::handle_output_debug_string):
12127 Rename. No longer static.
12128 * nat/windows-nat.h (handle_output_debug_string): Declare.
12129
12130 2020-04-08 Tom Tromey <tromey@adacore.com>
12131
12132 * windows-nat.c (current_process_handle, current_process_id)
12133 (main_thread_id, last_sig, current_event, last_wait_event)
12134 (current_windows_thread, desired_stop_thread_id, pending_stops)
12135 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12136 (display_selectors, fake_create_process)
12137 (get_windows_debug_event): Update.
12138 * nat/windows-nat.h (current_process_handle, current_process_id)
12139 (main_thread_id, last_sig, current_event, last_wait_event)
12140 (current_windows_thread, desired_stop_thread_id, pending_stops)
12141 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12142 * nat/windows-nat.c (current_process_handle, current_process_id)
12143 (main_thread_id, last_sig, current_event, last_wait_event)
12144 (current_windows_thread, desired_stop_thread_id, pending_stops)
12145 (siginfo_er): New globals. Move from windows-nat.c.
12146
12147 2020-04-08 Tom Tromey <tromey@adacore.com>
12148
12149 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12150 (handle_load_dll): Update.
12151 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12152
12153 2020-04-08 Tom Tromey <tromey@adacore.com>
12154
12155 * windows-nat.c (enum thread_disposition_type): Move to
12156 nat/windows-nat.h.
12157 (windows_nat::thread_rec): Rename from thread_rec. No longer
12158 static.
12159 (windows_add_thread, windows_nat_target::fetch_registers)
12160 (windows_nat_target::store_registers, handle_exception)
12161 (windows_nat_target::resume, get_windows_debug_event)
12162 (windows_nat_target::get_tib_address)
12163 (windows_nat_target::thread_name)
12164 (windows_nat_target::thread_alive): Update.
12165 * nat/windows-nat.h (enum thread_disposition_type): Move from
12166 windows-nat.c.
12167 (thread_rec): Declare.
12168
12169 2020-04-08 Tom Tromey <tromey@adacore.com>
12170
12171 * windows-nat.c: Add "using namespace".
12172 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12173 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12174
12175 2020-04-08 Tom Tromey <tromey@adacore.com>
12176
12177 * nat/windows-nat.h (struct windows_thread_info): Declare
12178 destructor.
12179 * nat/windows-nat.c (~windows_thread_info): New.
12180
12181 2020-04-08 Tom Tromey <tromey@adacore.com>
12182
12183 PR gdb/22992
12184 * windows-nat.c (current_event): Update comment.
12185 (last_wait_event, desired_stop_thread_id): New globals.
12186 (struct pending_stop): New.
12187 (pending_stops): New global.
12188 (windows_nat_target) <stopped_by_sw_breakpoint>
12189 <supports_stopped_by_sw_breakpoint>: New methods.
12190 (windows_fetch_one_register): Add assertions. Adjust PC.
12191 (windows_continue): Handle pending stops. Suspend other threads
12192 when stepping. Use last_wait_event
12193 (wait_for_debug_event): New function.
12194 (get_windows_debug_event): Use wait_for_debug_event. Handle
12195 pending stops. Queue spurious stops.
12196 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12197 (windows_nat_target::kill): Use wait_for_debug_event.
12198 * nat/windows-nat.h (struct windows_thread_info)
12199 <stopped_at_software_breakpoint>: New field.
12200 * nat/windows-nat.c (windows_thread_info::resume): Clear
12201 stopped_at_software_breakpoint.
12202
12203 2020-04-08 Tom Tromey <tromey@adacore.com>
12204
12205 * windows-nat.c (enum thread_disposition_type): New.
12206 (thread_rec): Replace "get_context" parameter with "disposition";
12207 change type.
12208 (windows_add_thread, windows_nat_target::fetch_registers)
12209 (windows_nat_target::store_registers, handle_exception)
12210 (windows_nat_target::resume, get_windows_debug_event)
12211 (windows_nat_target::get_tib_address)
12212 (windows_nat_target::thread_name)
12213 (windows_nat_target::thread_alive): Update.
12214
12215 2020-04-08 Tom Tromey <tromey@adacore.com>
12216
12217 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12218 (windows_continue): Use windows_continue::resume.
12219 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12220 resume>: Declare new methods.
12221 * nat/windows-nat.c: New file.
12222 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12223
12224 2020-04-08 Tom Tromey <tromey@adacore.com>
12225
12226 * windows-nat.c (windows_add_thread, windows_delete_thread)
12227 (windows_nat_target::fetch_registers)
12228 (windows_nat_target::store_registers, fake_create_process)
12229 (windows_nat_target::resume, windows_nat_target::resume)
12230 (get_windows_debug_event, windows_nat_target::wait)
12231 (windows_nat_target::pid_to_str)
12232 (windows_nat_target::get_tib_address)
12233 (windows_nat_target::get_ada_task_ptid)
12234 (windows_nat_target::thread_name)
12235 (windows_nat_target::thread_alive): Use lwp, not tid.
12236
12237 2020-04-08 Tom Tromey <tromey@adacore.com>
12238
12239 * windows-nat.c (handle_exception)
12240 (windows_nat_target::thread_name): Update.
12241 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12242 <name>: Now unique_xmalloc_ptr.
12243
12244 2020-04-08 Tom Tromey <tromey@adacore.com>
12245
12246 * windows-nat.c (thread_rec)
12247 (windows_nat_target::fetch_registers): Update.
12248 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12249 Update comment.
12250 <debug_registers_changed, reload_context>: Now bool.
12251
12252 2020-04-08 Tom Tromey <tromey@adacore.com>
12253
12254 * windows-nat.c (windows_add_thread): Use new.
12255 (windows_init_thread_list, windows_delete_thread): Use delete.
12256 (get_windows_debug_event): Update.
12257 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12258 destructor, and initializers.
12259
12260 2020-04-08 Tom Tromey <tromey@adacore.com>
12261
12262 * windows-nat.c (struct windows_thread_info): Remove.
12263 * nat/windows-nat.h: New file.
12264
12265 2020-04-08 Tom Tromey <tromey@adacore.com>
12266
12267 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12268 (thread_rec, windows_add_thread, windows_delete_thread)
12269 (windows_continue): Update.
12270
12271 2020-04-08 Tom Tromey <tromey@adacore.com>
12272
12273 * windows-nat.c (struct windows_thread_info): Remove typedef.
12274 (thread_head): Remove.
12275 (thread_list): New global.
12276 (thread_rec, windows_add_thread, windows_init_thread_list)
12277 (windows_delete_thread, windows_continue): Update.
12278
12279 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12280
12281 * windows-tdep.h (windows_init_abi): Add comment.
12282 (cygwin_init_abi): New declaration.
12283 * windows-tdep.c: Split signal enumeration in two, one for
12284 Windows and one for Cygwin.
12285 (windows_gdb_signal_to_target): Only deal with signal of the
12286 Windows OS ABI.
12287 (cygwin_gdb_signal_to_target): New function.
12288 (windows_init_abi): Rename to windows_init_abi_common, don't set
12289 gdb_signal_to_target gdbarch method. Add new new function with
12290 this name.
12291 (cygwin_init_abi): New function.
12292 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12293 comment. Don't call windows_init_abi.
12294 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12295 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12296 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12297 i386_windows_init_abi_common, don't call windows_init_abi. Add
12298 a new function of this name.
12299 (i386_cygwin_init_abi): New function.
12300 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12301 OS ABI Cygwin.
12302
12303 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12304
12305 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12306 parameter.c.
12307 (dwarf2_read_gdb_index): Update.
12308
12309 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12310
12311 * nbsd-tdep.c: Include "objfiles.h".
12312 (nbsd_skip_solib_resolver): New.
12313 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12314
12315 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12316
12317 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12318 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12319 with DW_LLE_base_addressx are being emitted in DWARFv5.
12320 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12321 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12322 unsigned integer.
12323
12324 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12325
12326 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12327 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12328 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12329 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12330 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12331 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12332 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12333
12334
12335 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12336
12337 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12338 (read_loclist_index): New function definition.
12339 (lookup_loclist_base): New function definition.
12340 (read_loclist_header): New function definition.
12341 (dwarf2_cu): Add loclist_base and loclist_header field.
12342 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12343 (read_full_die_1): Read the value of DW_AT_loclists_base.
12344 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12345 (read_attribute_value): Handle DW_FORM_loclistx.
12346 (skip_one_die): Handle DW_FORM_loclistx.
12347 (loclist_header): New structure declaration.
12348 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12349
12350 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12351
12352 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12353 constructor. Remove `addr` parameter from other constructor and
12354 add `per_cu` parameter.
12355 * dwarf2/read.c (create_partial_symtab): Update.
12356
12357 2020-04-07 Tom de Vries <tdevries@suse.de>
12358
12359 PR symtab/25796
12360 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12361 (partial_die_info::fixup): Inherit has_const_value.
12362
12363 2020-04-07 Tom de Vries <tdevries@suse.de>
12364
12365 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12366 symbols without address.
12367
12368 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12369
12370 * nbsd-nat.h (struct thread_info): Add forward declaration.
12371 (nbsd_nat_target::thread_alive): Add.
12372 (nbsd_nat_target::thread_name): Likewise.
12373 (nbsd_nat_target::update_thread_list): Likewise.
12374 (update_thread_list::post_attach): Likewise.
12375 (post_attach::pid_to_str): Likewise.
12376 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12377 (nbsd_thread_lister): Add.
12378 (nbsd_nat_target::thread_alive): Likewise.
12379 (nbsd_nat_target::thread_name): Likewise.
12380 (nbsd_add_threads): Likewise.
12381 (update_thread_list::post_attach): Likewise.
12382 (nbsd_nat_target::update_thread_list): Likewise.
12383 (post_attach::pid_to_str): Likewise.
12384
12385 2020-04-06 Tom Tromey <tromey@adacore.com>
12386
12387 * ada-valprint.c (print_variant_part): Extract the variant field.
12388 (print_field_values): Use the field as the outer value when
12389 recursing.
12390
12391 2020-04-06 Tom Tromey <tromey@adacore.com>
12392
12393 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12394 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12395 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12396 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12397 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12398
12399 2020-04-06 Tom Tromey <tromey@adacore.com>
12400
12401 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12402 TYPE_CODE_ERROR.
12403
12404 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12405
12406 * nbsd-tdep.c: Include "gdbarch.h".
12407 Define enum with NetBSD signal numbers.
12408 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12409 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12410 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12411 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12412 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12413 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12414 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12415 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12416 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12417 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12418 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12419 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12420
12421 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12422
12423 PR gdb/25325
12424 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12425
12426 2020-04-03 Tom Tromey <tromey@adacore.com>
12427
12428 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12429 Read constant block.
12430
12431 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12432
12433 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12434 (gdb_bfd_get_full_section_contents): New declaration.
12435 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12436 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12437 gdb_bfd_get_full_section_contents.
12438
12439 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12440
12441 * exec.c (build_section_table): Replace internal_error with
12442 gdb_assert.
12443 (section_table_xfer_memory_partial): Likewise.
12444 * mdebugread.c (parse_partial_symbols): Likewise.
12445 * psymtab.c (lookup_partial_symbol): Likewise.
12446 * utils.c (wrap_here): Likewise.
12447
12448 2020-04-02 Tom Tromey <tromey@adacore.com>
12449
12450 * f-lang.c (build_fortran_types): Use arch_type to initialize
12451 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12452
12453 2020-04-02 Tom Tromey <tromey@adacore.com>
12454
12455 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12456 of attributes.
12457
12458 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12459 Bernd Edlinger <bernd.edlinger@hotmail.de>
12460 Tom Tromey <tromey@adacore.com>
12461
12462 * buildsym.c (buildsym_compunit::record_line): Remove
12463 deduplication code.
12464
12465 2020-04-02 Tom de Vries <tdevries@suse.de>
12466
12467 PR ada/24671
12468 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12469
12470 2020-04-02 Tom de Vries <tdevries@suse.de>
12471
12472 * dwarf2/read.c (dwarf2_gdb_index_functions,
12473 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12474 NULL.
12475 * psymtab.c (psym_lookup_global_symbol_language): New function.
12476 (psym_functions): Init psym_lookup_global_symbol_language with
12477 psym_lookup_global_symbol_language.
12478 * symfile-debug.c (debug_sym_quick_functions): Init
12479 lookup_global_symbol_language with NULL.
12480 * symfile.c (set_initial_language): Remove fixme comment.
12481 * symfile.h (struct quick_symbol_functions): Add
12482 lookup_global_symbol_language.
12483 * symtab.c (find_quick_global_symbol_language): New function.
12484 (find_main_name): Use find_quick_global_symbol_language.
12485
12486 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12487
12488 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12489
12490 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12491
12492 * buildsym.c (record_line): Fix undefined behavior and preserve
12493 lines at eof.
12494
12495 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12496
12497 * buildsym.c (record_line): Fix the resizing condition.
12498
12499 2020-04-01 Tom Tromey <tom@tromey.com>
12500
12501 * value.h (value_literal_complex): Add comment.
12502 * valops.c (value_literal_complex): Refer to value.h.
12503
12504 2020-04-01 Tom Tromey <tom@tromey.com>
12505
12506 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12507 (scalar_type): New rule, from typebase.
12508 (typebase): Use scalar_type. Recognize complex types.
12509 (field_name): Handle FLOAT_KEYWORD.
12510 (ident_tokens): Add _Complex and __complex__.
12511
12512 2020-04-01 Tom Tromey <tom@tromey.com>
12513
12514 PR exp/25299:
12515 * valarith.c (promotion_type, complex_binop): New functions.
12516 (scalar_binop): Handle complex numbers. Use promotion_type.
12517 (value_pos, value_neg, value_complement): Handle complex numbers.
12518
12519 2020-04-01 Tom Tromey <tom@tromey.com>
12520
12521 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12522 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12523 (parse_number): Handle complex numbers.
12524
12525 2020-04-01 Tom Tromey <tom@tromey.com>
12526
12527 * c-valprint.c (c_decorations): Change complex suffix to "i".
12528
12529 2020-04-01 Tom Tromey <tom@tromey.com>
12530
12531 * valprint.c (generic_value_print_complex): Use accessors.
12532 * value.h (value_real_part, value_imaginary_part): Declare.
12533 * valops.c (value_real_part, value_imaginary_part): New
12534 functions.
12535 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12536
12537 2020-04-01 Tom Tromey <tom@tromey.com>
12538
12539 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12540 (read_range_type): Update.
12541 * mdebugread.c (basic_type): Update.
12542 * go-lang.c (build_go_types): Use init_complex_type.
12543 * gdbtypes.h (struct main_type) <complex_type>: New member.
12544 (init_complex_type): Update.
12545 (arch_complex_type): Don't declare.
12546 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12547 Make name if none given. Use alloc_type_copy. Look for cached
12548 complex type.
12549 (arch_complex_type): Remove.
12550 (gdbtypes_post_init): Use init_complex_type.
12551 * f-lang.c (build_fortran_types): Use init_complex_type.
12552 * dwarf2/read.c (read_base_type): Update.
12553 * d-lang.c (build_d_types): Use init_complex_type.
12554 * ctfread.c (read_base_type): Update.
12555
12556 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12557
12558 * infrun.c (stop_all_threads): Update assertion, plus when
12559 stopping threads, take into account that we might be trying
12560 to stop an all-stop target.
12561 (stop_waiting): Call 'stop_all_threads' if there exists a
12562 non-stop target.
12563
12564 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12565
12566 * target.h (exists_non_stop_target): New function declaration.
12567 * target.c (exists_non_stop_target): New function.
12568
12569 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12570
12571 PR gdb/24789
12572 * eval.c (is_integral_or_integral_reference): New function.
12573 (evaluate_subexp_standard): Allow integer references in
12574 pointer arithmetic.
12575
12576 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12577
12578 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12579 check for no ptid in the stop reply when the target is non-stop.
12580
12581 2020-04-01 Tom Tromey <tromey@adacore.com>
12582
12583 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12584 "name" parameter to rvalue reference. Initialize m_name_holder.
12585 <lookup_name_info>: New overloads.
12586 <name>: Return gdb::string_view.
12587 <c_str>: New method.
12588 <make_ignore_params>: Update.
12589 <search_name_hash>: Update.
12590 <language_lookup_name>: Return const char *.
12591 <m_name>: Change type.
12592 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12593 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12594 (lookup_name_info::match_any): Update.
12595 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12596 Update.
12597 * minsyms.c (linkage_name_str): Update.
12598 * language.c (default_symbol_name_matcher): Update.
12599 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12600 Update.
12601 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12602 (ada_lookup_name_info::ada_lookup_name_info): Update.
12603 (literal_symbol_name_matcher): Update.
12604
12605 2020-04-01 Tom Tromey <tromey@adacore.com>
12606
12607 * psymtab.c (psymtab_search_name): Remove function.
12608 (psym_lookup_symbol): Create search name and lookup name here.
12609 (lookup_partial_symbol): Remove "name" parameter; add
12610 lookup_name.
12611 (psym_expand_symtabs_for_function): Update.
12612
12613 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12614
12615 PR tui/25597:
12616 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12617
12618 2020-03-31 Tom Tromey <tromey@adacore.com>
12619
12620 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12621 memcpy.
12622
12623 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12624
12625 * features/riscv/32bit-csr.xml: Regenerated.
12626 * features/riscv/64bit-csr.xml: Regenerated.
12627
12628 2020-03-30 Tom Tromey <tromey@adacore.com>
12629
12630 * ada-valprint.c (print_variant_part): Update.
12631 * ada-lang.h (ada_which_variant_applies): Update.
12632 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12633 outer_valaddr parameters; replace with "outer" value parameter.
12634 (to_fixed_variant_branch_type): Update.
12635
12636 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12637
12638 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12639 <list>. Remove inclusion of observable.h.
12640 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12641 (struct arch_lwp_info): New struct.
12642 (class ppc_linux_dreg_interface): New class.
12643 (struct ppc_linux_process_info): New struct.
12644 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12645 <low_new_clone, low_forget_process, low_prepare_to_resume>
12646 <copy_thread_dreg_state, mark_thread_stale>
12647 <mark_debug_registers_changed, register_hw_breakpoint>
12648 <clear_hw_breakpoint, register_wp, clear_wp>
12649 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12650 <num_memory_accesses, get_trigger_type>
12651 <create_watchpoint_request, hwdebug_point_cmp>
12652 <init_arch_lwp_info, get_arch_lwp_info>
12653 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12654 methods.
12655 <struct ptid_hash>: New inner struct.
12656 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12657 members.
12658 (saved_dabr_value, hwdebug_info, max_slots_number)
12659 (struct hw_break_tuple, struct thread_points, ppc_threads)
12660 (have_ptrace_hwdebug_interface)
12661 (hwdebug_find_thread_points_by_tid)
12662 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12663 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12664 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12665 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12666 use m_dreg_interface.
12667 (hwdebug_point_cmp): Change to...
12668 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12669 reference arguments instead of pointers.
12670 (ppc_linux_nat_target::ranged_break_num_registers): Use
12671 m_dreg_interface.
12672 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12673 m_dreg_interface. Call register_hw_breakpoint.
12674 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12675 m_dreg_interface. Call clear_hw_breakpoint.
12676 (get_trigger_type): Change to...
12677 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12678 comment.
12679 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12680 use m_dreg_interface. Call register_hw_breakpoint.
12681 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12682 use m_dreg_interface. Call clear_hw_breakpoint.
12683 (can_use_watchpoint_cond_accel): Change to...
12684 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12685 method. Update comment, use m_dreg_interface and
12686 m_process_info.
12687 (calculate_dvc): Change to...
12688 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12689 m_dreg_interface.
12690 (num_memory_accesses): Change to...
12691 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12692 (check_condition): Change to...
12693 (ppc_linux_nat_target::check_condition): ...this method.
12694 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12695 comment, use m_dreg_interface.
12696 (create_watchpoint_request): Change to...
12697 (ppc_linux_nat_target::create_watchpoint_request): ...this
12698 method. Use m_dreg_interface.
12699 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12700 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12701 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12702 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12703 (ppc_linux_nat_target::low_forget_process)
12704 (ppc_linux_nat_target::low_new_fork)
12705 (ppc_linux_nat_target::low_new_clone)
12706 (ppc_linux_nat_target::low_delete_thread)
12707 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12708 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12709 only call mark_thread_stale.
12710 (ppc_linux_thread_exit): Remove.
12711 (ppc_linux_nat_target::stopped_data_address): Change to...
12712 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12713 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12714 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12715 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12716 comment. Call low_stopped_data_address.
12717 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12718 m_dreg_interface.
12719 (ppc_linux_nat_target::masked_watch_num_registers): Use
12720 m_dreg_interface.
12721 (ppc_linux_nat_target::copy_thread_dreg_state)
12722 (ppc_linux_nat_target::mark_thread_stale)
12723 (ppc_linux_nat_target::mark_debug_registers_changed)
12724 (ppc_linux_nat_target::register_hw_breakpoint)
12725 (ppc_linux_nat_target::clear_hw_breakpoint)
12726 (ppc_linux_nat_target::register_wp)
12727 (ppc_linux_nat_target::clear_wp)
12728 (ppc_linux_nat_target::init_arch_lwp_info)
12729 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12730 (_initialize_ppc_linux_nat): Remove observer callback.
12731
12732 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12733
12734 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12735 (ppc_linux_nat_target::auxv_parse)
12736 (ppc_linux_nat_target::read_description)
12737 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12738 Move up.
12739
12740 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12741
12742 * linux-nat.h (low_new_clone): New method.
12743 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12744
12745 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12746
12747 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12748 (dbx_expand_psymtab): ... this.
12749 (start_psymtab): Update.
12750 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12751 (mdebug_expand_psymtab): ... this.
12752 (parse_partial_symbols): Update.
12753 (new_psymtab): Update.
12754 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12755 (xcoff_expand_psymtab): ... this.
12756 (xcoff_start_psymtab): Update.
12757
12758 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12759
12760 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12761 <expand_dependencies>: ... this.
12762 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12763 (partial_symtab::expand_dependencies): ... this.
12764 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12765 Update.
12766 (dwarf2_psymtab::expand_psymtab): Update.
12767 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12768 * mdebugread.c (psymtab_to_symtab_1): Update.
12769 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12770
12771 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12772
12773 * psympriv.h (discard_psymtab): Remove.
12774 * dbxread.c (dbx_end_psymtab): Update.
12775 * xcoffread.c (xcoff_end_psymtab): Update.
12776
12777 2020-03-28 Tom Tromey <tom@tromey.com>
12778
12779 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12780 comment.
12781
12782 2020-03-28 Tom Tromey <tom@tromey.com>
12783
12784 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12785
12786 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12787
12788 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12789
12790 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12791
12792 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12793
12794 2020-03-26 Tom Tromey <tom@tromey.com>
12795
12796 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12797 (mark_common_block_symbol_computed, read_tag_string_type)
12798 (attr_to_dynamic_prop, read_subrange_type): Update.
12799 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12800 to be methods on struct attribute.
12801 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12802 (read_call_site_scope, partial_die_info::read)
12803 (partial_die_info::read, lookup_die_type, follow_die_ref):
12804 Update.
12805 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12806 from dwarf2_get_ref_die_offset.
12807 (attribute::constant_value): New method, from
12808 dwarf2_get_attr_constant_value.
12809 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12810 Declare method.
12811 <constant_value>: New method.
12812
12813 2020-03-26 Tom Tromey <tom@tromey.com>
12814
12815 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12816 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12817 (dwarf_type_encoding_name): Move to stringify.c.
12818 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12819 * dwarf2/stringify.c: New file.
12820 * dwarf2/stringify.h: New file.
12821
12822 2020-03-26 Tom Tromey <tom@tromey.com>
12823
12824 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12825 Rewrite.
12826
12827 2020-03-26 Tom Tromey <tom@tromey.com>
12828
12829 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12830 methods.
12831 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12832 (lookup_ranges_base): Likewise.
12833 (read_cutu_die_from_dwo, read_full_die_1): Update.
12834
12835 2020-03-26 Tom Tromey <tom@tromey.com>
12836
12837 * dwarf2/read.c (read_import_statement, read_file_scope)
12838 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12839 (read_lexical_block_scope, read_call_site_scope)
12840 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12841 (handle_struct_member_die, process_structure_scope)
12842 (update_enumeration_type_from_children)
12843 (process_enumeration_scope, read_array_type, read_common_block)
12844 (read_namespace, read_module, read_subroutine_type): Update.
12845 (sibling_die): Remove.
12846
12847 2020-03-26 Tom Tromey <tom@tromey.com>
12848
12849 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12850 (build_type_psymtabs_reader, read_structure_type)
12851 (read_enumeration_type, read_full_die_1): Update.
12852 (dwarf2_attr_no_follow): Move to die.h.
12853 * dwarf2/die.h (struct die_info) <attr>: New method.
12854
12855 2020-03-26 Tom Tromey <tom@tromey.com>
12856
12857 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12858 <base_address>: Now an optional.
12859 (dwarf2_find_base_address, dwarf2_rnglists_process)
12860 (dwarf2_ranges_process, fill_in_loclist_baton)
12861 (dwarf2_symbol_mark_computed): Update.
12862
12863 2020-03-26 Tom Tromey <tom@tromey.com>
12864
12865 * dwarf2/read.c (struct die_info): Move to die.h.
12866 * dwarf2/die.h: New file.
12867
12868 2020-03-26 Tom Tromey <tom@tromey.com>
12869
12870 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12871 * dwarf2/read.c
12872 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12873 Move to line-header.c.
12874 (read_checked_initial_length_and_offset, read_formatted_entries):
12875 Likewise.
12876 (dwarf_decode_line_header): Split into two.
12877 * dwarf2/line-header.c
12878 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12879 Move from read.c.
12880 (read_checked_initial_length_and_offset, read_formatted_entries):
12881 Likewise.
12882 (dwarf_decode_line_header): New function, split from read.c.
12883
12884 2020-03-26 Tom Tromey <tom@tromey.com>
12885
12886 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12887 Declare method.
12888 * dwarf2/read.c (read_attribute_value): Update.
12889 (dwarf2_per_objfile::read_line_string): Rename from
12890 read_indirect_line_string.
12891 (read_formatted_entries): Update.
12892
12893 2020-03-26 Tom Tromey <tom@tromey.com>
12894
12895 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12896 variable.
12897
12898 2020-03-26 Tom Tromey <tom@tromey.com>
12899
12900 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12901 const.
12902 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12903 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12904 parameter const.
12905
12906 2020-03-26 Tom Tromey <tom@tromey.com>
12907
12908 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12909 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12910 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12911 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12912
12913 2020-03-26 Tom Tromey <tom@tromey.com>
12914
12915 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12916 file_names_size, file_full_name, file_file_name>: Use const.
12917 <file_name_at, file_names>: Add const overload.
12918 * dwarf2/line-header.c (line_header::file_file_name)
12919 (line_header::file_full_name): Update.
12920
12921 2020-03-26 Tom Tromey <tom@tromey.com>
12922
12923 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12924 (macro_start_file, consume_improper_spaces)
12925 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12926 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12927 (dwarf_decode_macros): Move to macro.c.
12928 * dwarf2/macro.c: New file.
12929 * dwarf2/macro.h: New file.
12930 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12931
12932 2020-03-26 Tom Tromey <tom@tromey.com>
12933
12934 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12935 method.
12936 * dwarf2/section.c: New method. From
12937 read_indirect_string_at_offset_from.
12938 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12939 (read_indirect_string_at_offset_from): Move to section.c.
12940 (read_indirect_string_at_offset): Rewrite.
12941 (read_indirect_line_string_at_offset): Remove.
12942 (read_indirect_string, read_indirect_line_string)
12943 (dwarf_decode_macro_bytes): Update.
12944
12945 2020-03-26 Tom Tromey <tom@tromey.com>
12946
12947 * dwarf2/section.h (struct dwarf2_section_info)
12948 <overload_complaint>: Declare.
12949 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12950 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12951 Rename from dwarf2_section_buffer_overflow_complaint.
12952 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12953 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12954
12955 2020-03-26 Tom Tromey <tom@tromey.com>
12956
12957 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12958 Declare.
12959 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12960 Move from read.c.
12961 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12962 to section.c.
12963
12964 2020-03-26 Tom Tromey <tom@tromey.com>
12965
12966 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12967
12968 2020-03-26 Tom Tromey <tom@tromey.com>
12969
12970 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12971 "builder".
12972 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12973 parameter.
12974 (dwarf_decode_macros): Update.
12975
12976 2020-03-26 Tom Tromey <tom@tromey.com>
12977
12978 * dwarf2/read.c (read_attribute_value): Update.
12979 (read_indirect_string_from_dwz): Move to dwz.c; change into
12980 method.
12981 (dwarf_decode_macro_bytes): Update.
12982 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12983 * dwarf2/dwz.c: New file.
12984 * Makefile.in (COMMON_SFILES): Add dwz.c.
12985
12986 2020-03-26 Tom Tromey <tom@tromey.com>
12987
12988 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12989 * dwarf2/read.c: Add include.
12990 * dwarf2/index-write.c: Add include.
12991 * dwarf2/index-cache.c: Add include.
12992 * dwarf2/dwz.h: New file.
12993
12994 2020-03-25 Tom Tromey <tom@tromey.com>
12995
12996 * compile/compile-object-load.c (get_out_value_type): Mention
12997 correct symbol name in error message.
12998
12999 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13000
13001 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13002
13003 2020-03-25 Tom de Vries <tdevries@suse.de>
13004
13005 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13006 * symmisc.c (dump_symtab_1): Print user and includes fields.
13007 (maintenance_info_symtabs): Same.
13008
13009 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13010
13011 PR gdb/25534
13012 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13013 (riscv_regcache_cooked_write): New function.
13014 (riscv_push_dummy_call): Use new function.
13015 (riscv_return_value): Likewise.
13016
13017 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13018
13019 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13020 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13021 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13022 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13023 * infrun.c (follow_fork): Likewise.
13024 (follow_fork_inferior): Likewise.
13025 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13026 * linux-nat.h (class linux_nat_target): Likewise.
13027 * remote.c (class remote_target) <follow_fork>: Likewise.
13028 (remote_target::follow_fork): Likewise.
13029 * target-delegates.c: Re-generate.
13030 * target.c (default_follow_fork): Likewise.
13031 (target_follow_fork): Likewise.
13032 * target.h (struct target_ops) <follow_fork>: Likewise.
13033 (target_follow_fork): Likewise.
13034
13035 2020-03-24 Tom de Vries <tdevries@suse.de>
13036
13037 * psymtab.c (maintenance_info_psymtabs): Print user field.
13038
13039 2020-03-20 Tom Tromey <tromey@adacore.com>
13040
13041 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13042 const.
13043 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13044 const.
13045
13046 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13047
13048 * ptrace.m4: Don't check for ptrace declaration.
13049 * config.in: Re-generate.
13050 * configure: Re-generate.
13051 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13052 not defined.
13053
13054 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13055
13056 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13057 `PTRACE_TYPE_RET'.
13058 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13059 * sparc-nat.c (gdb_ptrace): Likewise.
13060 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13061
13062 2020-03-20 Tom Tromey <tromey@adacore.com>
13063
13064 * c-exp.y (lex_one_token): Fix assert.
13065
13066 2020-03-20 Tom Tromey <tromey@adacore.com>
13067
13068 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13069 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13070 strncpy call.
13071
13072 2020-03-20 Tom Tromey <tromey@adacore.com>
13073
13074 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13075
13076 2020-03-20 Tom Tromey <tromey@adacore.com>
13077
13078 * ada-valprint.c (print_variant_part): Remove parameters; switch
13079 to value-based API.
13080 (print_field_values): Likewise.
13081 (ada_val_print_struct_union): Likewise.
13082 (ada_value_print_1): Update.
13083
13084 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13085
13086 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13087 nbsd_nat_target instead of inf_ptrace_target.
13088 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13089 nbsd_nat_target.
13090
13091 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13092
13093 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13094 it to the ptrace call.
13095 * (store_registers): Likewise.
13096
13097 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13098
13099 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13100 it to the ptrace call.
13101 * (store_registers): Likewise.
13102
13103 2020-03-19 Luis Machado <luis.machado@linaro.org>
13104
13105 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13106 valid, fetch vg value from ptrace.
13107
13108 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13109 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13110 * inf-ptrace.c: Likewise.
13111 * (gdb_ptrace): Add.
13112 * (inf_ptrace_target::resume): Update.
13113 * (inf_ptrace_target::xfer_partial): Likewise.
13114 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13115 * (inf_ptrace_peek_poke): Update.
13116
13117 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13118
13119 * x86-bsd-nat.c (gdb_ptrace): New.
13120 * (x86bsd_dr_set): Add new argument `ptid'.
13121 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13122 x86bsd_dr_set_addr): Update.
13123
13124 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13125
13126 * remote.c (remote_target::process_stop_reply): Handle events for
13127 all threads differently.
13128
13129 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13130
13131 * completer.c (completion_tracker::remove_completion): Define new
13132 function.
13133 * completer.h (completion_tracker::remove_completion): Declare new
13134 function.
13135 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13136 when adding a C++ function symbol.
13137
13138 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13139
13140 * completer.c (completion_tracker::completion_hash_entry): Define
13141 new class.
13142 (advance_to_filename_complete_word_point): Call
13143 recompute_lowest_common_denominator.
13144 (completion_tracker::completion_tracker): Call discard_completions
13145 to setup the hash table.
13146 (completion_tracker::discard_completions): Allow for being called
13147 from the constructor, pass new equal function, and element deleter
13148 when constructing the hash table. Initialise new class member
13149 variables.
13150 (completion_tracker::maybe_add_completion): Remove use of
13151 m_entries_vec, and store more information into m_entries_hash.
13152 (completion_tracker::recompute_lcd_visitor): New function, most
13153 content taken from...
13154 (completion_tracker::recompute_lowest_common_denominator):
13155 ...here, this now just visits each item in the hash calling the
13156 above visitor.
13157 (completion_tracker::build_completion_result): Remove use of
13158 m_entries_vec, call recompute_lowest_common_denominator.
13159 * completer.h (completion_tracker::have_completions): Remove use
13160 of m_entries_vec.
13161 (completion_tracker::completion_hash_entry): Declare new class.
13162 (completion_tracker::recompute_lowest_common_denominator): Change
13163 function signature.
13164 (completion_tracker::recompute_lcd_visitor): Declare new function.
13165 (completion_tracker::m_entries_vec): Delete.
13166 (completion_tracker::m_entries_hash): Initialize to NULL.
13167 (completion_tracker::m_lowest_common_denominator_valid): New
13168 member variable.
13169 (completion_tracker::m_lowest_common_denominator_max_length): New
13170 member variable.
13171
13172 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13173
13174 * regformats/regdef.h: Put reg in gdb namespace.
13175
13176 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13177
13178 * i386-bsd-nat.c (gdb_ptrace): New.
13179 * (i386bsd_fetch_inferior_registers,
13180 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13181 * (i386bsd_fetch_inferior_registers,
13182 i386bsd_store_inferior_registers) Use gdb_ptrace.
13183
13184 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13185
13186 * amd64-bsd-nat.c (gdb_ptrace): New.
13187 * (amd64bsd_fetch_inferior_registers,
13188 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13189 * (amd64bsd_fetch_inferior_registers,
13190 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13191
13192 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13193
13194 * user-regs.c (user_reg::read): Rename to...
13195 (user_reg::xread): ...this.
13196 * (append_user_reg): Rename argument `read' to `xread'.
13197 * (user_reg_add_builtin): Likewise.
13198 * (user_reg_add): Likewise.
13199 * (value_of_user_reg): Likewise.
13200
13201 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13202
13203 * sparc-nat.c (gdb_ptrace): New.
13204 * sparc-nat.c (sparc_fetch_inferior_registers)
13205 (sparc_store_inferior_registers) Remove obsolete comment.
13206 * sparc-nat.c (sparc_fetch_inferior_registers)
13207 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13208 * sparc-nat.c (sparc_fetch_inferior_registers)
13209 (sparc_store_inferior_registers) Use gdb_ptrace.
13210
13211 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13212
13213 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13214 it to the ptrace call.
13215 * sh-nbsd-nat.c (store_registers): Likewise.
13216
13217 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13218
13219 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13220 nbsd_nat_target instead of inf_ptrace_target.
13221 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13222 nbsd_nat_target.
13223
13224 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13225
13226 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13227
13228 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13229
13230 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13231 <sys/sysctl.h>.
13232 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13233
13234 2020-03-17 Tom de Vries <tdevries@suse.de>
13235
13236 PR gdb/23710
13237 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13238 fields.
13239 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13240 fields.
13241 (process_imported_unit_die): Skip import of c++ CUs.
13242
13243 2020-03-16 Tom Tromey <tom@tromey.com>
13244
13245 * p-valprint.c (pascal_object_print_value): Initialize
13246 base_value.
13247
13248 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13249 Shahab Vahedi <shahab@synopsys.com>
13250
13251 * Makefile.in: Add arch/arc.o
13252 * configure.tgt: Likewise.
13253 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13254 (_initialize_arc_tdep): Don't initialize old target descriptions.
13255 (arc_read_description): New function to cache target descriptions.
13256 * arc-tdep.h (arc_read_description): Add proto type.
13257 * arch/arc.c: New file.
13258 * arch/arc.h: Likewise.
13259 * features/Makefile: Replace old target descriptions with new.
13260 * features/arc-arcompact.c: Remove.
13261 * features/arc-arcompact.xml: Likewise.
13262 * features/arc-v2.c: Likewise
13263 * features/arc-v2.xml: Likewise
13264 * features/arc/aux-arcompact.xml: New file.
13265 * features/arc/aux-v2.xml: Likewise.
13266 * features/arc/core-arcompact.xml: Likewise.
13267 * features/arc/core-v2.xml: Likewise.
13268 * features/arc/aux-arcompact.c: Generate.
13269 * features/arc/aux-v2.c: Likewise.
13270 * features/arc/core-arcompact.c: Likewise.
13271 * features/arc/core-v2.c: Likewise.
13272 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13273
13274 2020-03-16 Tom Tromey <tromey@adacore.com>
13275
13276 PR gdb/25663:
13277 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13278 putting value into bcache.
13279
13280 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13281
13282 PR gdb/21500
13283 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13284 to...
13285 (amd64_windows_init_abi_common): ... this. Don't set size of
13286 long type.
13287 (amd64_windows_init_abi): New function.
13288 (amd64_cygwin_init_abi): New function.
13289 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13290 the Cygwin OS ABI.
13291 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13292 comment.
13293
13294 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13295
13296 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13297 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13298 (pe_import_directory_entry): New struct type.
13299 (is_linked_with_cygwin_dll): New function.
13300 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13301 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13302 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13303
13304 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13305
13306 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13307 i386_cygwin_core_osabi_sniffer.
13308
13309 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13310
13311 * i386-cygwin-tdep.c: Rename to...
13312 * i386-windows-tdep.c: ... this.
13313 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13314 i386-windows-tdep.c.
13315 * configure.tgt: Likewise.
13316
13317 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13318
13319 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13320 * osabi.c (gdb_osabi_names): Add "Windows".
13321 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13322 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13323 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13324 i386_cygwin_osabi_sniffer.
13325 (_initialize_i386_cygwin_tdep): Register OS ABI
13326 GDB_OSABI_WINDOWS for i386.
13327 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13328 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13329 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13330 for x86-64.
13331 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13332 when the target matches '*-*-mingw*'.
13333
13334 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13335
13336 * defs.h (enum gdb_osabi): Move to...
13337 * osabi.h (enum gdb_osabi): ... here.
13338 * gdbarch.sh: Include osabi.h in gdbarch.h.
13339 * gdbarch.h: Re-generate.
13340
13341 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13342
13343 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13344 function.
13345 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13346
13347 2020-03-14 Tom Tromey <tom@tromey.com>
13348
13349 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13350 for C++.
13351 (c_type_print_modifier): Likewise. Add "language" parameter.
13352 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13353 (c_type_print_base_1): Update.
13354 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13355 constants.
13356 * type-stack.c (type_stack::insert): Handle tp_atomic and
13357 tp_restrict.
13358 (type_stack::follow_type_instance_flags): Likewise.
13359 (type_stack::follow_types): Likewise. Merge type-following code.
13360 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13361 (space_identifier, cv_with_space_id)
13362 (const_or_volatile_or_space_identifier_noopt)
13363 (const_or_volatile_or_space_identifier): Remove.
13364 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13365 rules.
13366 (ptr_operator, typebase): Update.
13367 (enum token_flag) <FLAG_C>: New constant.
13368 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13369 "_Atomic".
13370 (lex_one_token): Handle FLAG_C.
13371
13372 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13373
13374 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13375 it to the ptrace call.
13376 * m68k-bsd-nat.c (store_registers): Likewise.
13377
13378 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13379
13380 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13381 gdb_byte *.
13382 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13383 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13384 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13385
13386 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13387
13388 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13389 nbsd_nat_target instead of inf_ptrace_target.
13390 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13391 nbsd_nat_target.
13392
13393 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13394
13395 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13396 register_t.
13397
13398 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13399
13400 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13401 it to the ptrace call.
13402 * alpha-bsd-nat.c (store_registers): Likewise.
13403
13404 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13405
13406 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13407 includes.
13408 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13409 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13410 fill_fpregset): Likewise.
13411
13412 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13413
13414 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13415 nbsd_nat_target instead of inf_ptrace_target.
13416 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13417 nbsd_nat_target.
13418
13419 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13420
13421 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13422 register_t.
13423
13424 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13425
13426 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13427 it to the ptrace call.
13428 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13429 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13430 * arm-nbsd-nat.c (store_register): Likewise.
13431 * arm-nbsd-nat.c (store_regs): Likewise.
13432 * arm-nbsd-nat.c (store_fp_register): Likewise.
13433 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13434
13435 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13436
13437 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13438 nbsd_nat_target instead of inf_ptrace_target.
13439 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13440 nbsd_nat_target.
13441
13442 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13443
13444 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13445 it to the ptrace call.
13446 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13447
13448 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13449
13450 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13451 it to the ptrace call.
13452 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13453
13454 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13455
13456 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13457 gdb_byte *.
13458 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13459
13460 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13461
13462 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13463 instead of inf_ptrace_target.
13464 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13465 nbsd_nat_target.
13466
13467 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13468
13469 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13470 register_t.
13471
13472 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13473
13474 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13475 register_t.
13476
13477 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13478
13479 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13480 register_t.
13481
13482 2020-03-13 Tom Tromey <tom@tromey.com>
13483
13484 * value.h (val_print): Don't declare.
13485 * valprint.h (val_print_array_elements)
13486 (val_print_scalar_formatted, generic_val_print): Don't declare.
13487 * valprint.c (generic_val_print_array): Take a struct value.
13488 (generic_val_print_ptr, generic_val_print_memberptr)
13489 (generic_val_print_bool, generic_val_print_int)
13490 (generic_val_print_char, generic_val_print_complex)
13491 (generic_val_print): Remove.
13492 (generic_value_print): Update.
13493 (do_val_print): Remove unused parameters. Don't call
13494 la_val_print.
13495 (val_print): Remove.
13496 (common_val_print): Update. Don't call value_check_printable.
13497 (val_print_scalar_formatted, val_print_array_elements): Remove.
13498 * rust-lang.c (rust_val_print): Remove.
13499 (rust_language_defn): Update.
13500 * p-valprint.c (pascal_val_print): Remove.
13501 (pascal_value_print_inner): Update.
13502 (pascal_object_print_val_fields, pascal_object_print_val):
13503 Remove.
13504 (pascal_object_print_static_field): Update.
13505 * p-lang.h (pascal_val_print): Don't declare.
13506 * p-lang.c (pascal_language_defn): Update.
13507 * opencl-lang.c (opencl_language_defn): Update.
13508 * objc-lang.c (objc_language_defn): Update.
13509 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13510 * m2-lang.h (m2_val_print): Don't declare.
13511 * m2-lang.c (m2_language_defn): Update.
13512 * language.h (struct language_defn) <la_val_print>: Remove.
13513 * language.c (unk_lang_value_print_inner): Rename. Change
13514 argument types.
13515 (unknown_language_defn, auto_language_defn): Update.
13516 * go-valprint.c (go_val_print): Remove.
13517 * go-lang.h (go_val_print): Don't declare.
13518 * go-lang.c (go_language_defn): Update.
13519 * f-valprint.c (f_val_print): Remove.
13520 * f-lang.h (f_value_print): Don't declare.
13521 * f-lang.c (f_language_defn): Update.
13522 * d-valprint.c (d_val_print): Remove.
13523 * d-lang.h (d_value_print): Don't declare.
13524 * d-lang.c (d_language_defn): Update.
13525 * cp-valprint.c (cp_print_value_fields)
13526 (cp_print_value_fields_rtti, cp_print_value): Remove.
13527 (cp_print_static_field): Update.
13528 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13529 (c_val_print_struct, c_val_print_union, c_val_print_int)
13530 (c_val_print_memberptr, c_val_print): Remove.
13531 * c-lang.h (c_val_print_array, cp_print_value_fields)
13532 (cp_print_value_fields_rtti): Don't declare.
13533 * c-lang.c (c_language_defn, cplus_language_defn)
13534 (asm_language_defn, minimal_language_defn): Update.
13535 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13536 (ada_val_print_enum): Take a struct value.
13537 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13538 (ada_val_print): Remove.
13539 (ada_value_print_1): Update.
13540 (printable_val_type): Remove.
13541 * ada-lang.h (ada_val_print): Don't declare.
13542 * ada-lang.c (ada_language_defn): Update.
13543
13544 2020-03-13 Tom Tromey <tom@tromey.com>
13545
13546 * valprint.c (do_val_print): Update.
13547 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13548 a struct value.
13549 (value_to_value_object_no_release): Declare.
13550 * python/py-value.c (value_to_value_object_no_release): New
13551 function.
13552 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13553 struct value.
13554 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13555 function.
13556 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13557 a struct value.
13558 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13559 Declare.
13560 (gdbscm_apply_val_pretty_printer): Take a struct value.
13561 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13562 value.
13563 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13564 value.
13565 * extension-priv.h (struct extension_language_ops)
13566 <apply_val_pretty_printer>: Take a struct value.
13567 * cp-valprint.c (cp_print_value): Create a struct value.
13568 (cp_print_value): Update.
13569
13570 2020-03-13 Tom Tromey <tom@tromey.com>
13571
13572 * ada-valprint.c (print_field_values): Call common_val_print.
13573
13574 2020-03-13 Tom Tromey <tom@tromey.com>
13575
13576 * ada-valprint.c (val_print_packed_array_elements): Remove
13577 bitoffset and val parameters. Call common_val_print.
13578 (ada_val_print_string): Remove offset, address, and original_value
13579 parameters.
13580 (ada_val_print_array): Update.
13581 (ada_value_print_array): New function.
13582 (ada_value_print_1): Call it.
13583
13584 2020-03-13 Tom Tromey <tom@tromey.com>
13585
13586 * ada-valprint.c (ada_value_print): Use common_val_print.
13587
13588 2020-03-13 Tom Tromey <tom@tromey.com>
13589
13590 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13591
13592 2020-03-13 Tom Tromey <tom@tromey.com>
13593
13594 * ada-valprint.c (ada_value_print_num): New function.
13595 (ada_value_print_1): Use it.
13596
13597 2020-03-13 Tom Tromey <tom@tromey.com>
13598
13599 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13600
13601 2020-03-13 Tom Tromey <tom@tromey.com>
13602
13603 * ada-valprint.c (ada_value_print_ptr): New function.
13604 (ada_value_print_1): Use it.
13605
13606 2020-03-13 Tom Tromey <tom@tromey.com>
13607
13608 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13609 call common_val_print.
13610 (ada_val_print_1): Update.
13611 (ada_value_print_1): New function.
13612 (ada_value_print_inner): Rewrite.
13613
13614 2020-03-13 Tom Tromey <tom@tromey.com>
13615
13616 * cp-valprint.c (cp_print_value_fields): Update.
13617 (cp_print_value): New function.
13618
13619 2020-03-13 Tom Tromey <tom@tromey.com>
13620
13621 * m2-valprint.c (m2_value_print_inner): Use
13622 cp_print_value_fields.
13623 * cp-valprint.c (cp_print_value_fields): New function.
13624 * c-valprint.c (c_value_print_struct): New function.
13625 (c_value_print_inner): Use c_value_print_struct.
13626 * c-lang.h (cp_print_value_fields): Declare.
13627
13628 2020-03-13 Tom Tromey <tom@tromey.com>
13629
13630 * c-valprint.c (c_value_print_array): New function.
13631 (c_value_print_inner): Use it.
13632
13633 2020-03-13 Tom Tromey <tom@tromey.com>
13634
13635 * c-valprint.c (c_value_print_memberptr): New function.
13636 (c_value_print_inner): Use it.
13637
13638 2020-03-13 Tom Tromey <tom@tromey.com>
13639
13640 * c-valprint.c (c_value_print_int): New function.
13641 (c_value_print_inner): Use it.
13642
13643 2020-03-13 Tom Tromey <tom@tromey.com>
13644
13645 * c-valprint.c (c_value_print_ptr): New function.
13646 (c_value_print_inner): Use it.
13647
13648 2020-03-13 Tom Tromey <tom@tromey.com>
13649
13650 * c-valprint.c (c_value_print_inner): Rewrite.
13651
13652 2020-03-13 Tom Tromey <tom@tromey.com>
13653
13654 * valprint.c (generic_value_print_complex): New function.
13655 (generic_value_print): Use it.
13656
13657 2020-03-13 Tom Tromey <tom@tromey.com>
13658
13659 * valprint.c (generic_val_print_float): Don't call
13660 val_print_scalar_formatted.
13661 (generic_val_print, generic_value_print): Update.
13662
13663 2020-03-13 Tom Tromey <tom@tromey.com>
13664
13665 * valprint.c (generic_value_print_char): New function
13666 (generic_value_print): Use it.
13667
13668 2020-03-13 Tom Tromey <tom@tromey.com>
13669
13670 * valprint.c (generic_value_print_int): New function.
13671 (generic_value_print): Use it.
13672
13673 2020-03-13 Tom Tromey <tom@tromey.com>
13674
13675 * valprint.c (generic_value_print_bool): New function.
13676 (generic_value_print): Use it.
13677
13678 2020-03-13 Tom Tromey <tom@tromey.com>
13679
13680 * valprint.c (generic_val_print_func): Simplify.
13681 (generic_val_print, generic_value_print): Update.
13682
13683 2020-03-13 Tom Tromey <tom@tromey.com>
13684
13685 * valprint.c (generic_val_print_flags): Remove.
13686 (generic_val_print, generic_value_print): Update.
13687 (val_print_type_code_flags): Add original_value parameter.
13688
13689 2020-03-13 Tom Tromey <tom@tromey.com>
13690
13691 * valprint.c (generic_val_print): Update.
13692 (generic_value_print): Update.
13693 * valprint.c (generic_val_print_enum): Don't call
13694 val_print_scalar_formatted.
13695
13696 2020-03-13 Tom Tromey <tom@tromey.com>
13697
13698 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13699 * valprint.c (generic_value_print_ptr): New function.
13700
13701 2020-03-13 Tom Tromey <tom@tromey.com>
13702
13703 * valprint.c (generic_value_print): Rewrite.
13704
13705 2020-03-13 Tom Tromey <tom@tromey.com>
13706
13707 * p-valprint.c (pascal_object_print_value_fields)
13708 (pascal_object_print_value): New functions.
13709
13710 2020-03-13 Tom Tromey <tom@tromey.com>
13711
13712 * p-valprint.c (pascal_value_print_inner): Rewrite.
13713
13714 2020-03-13 Tom Tromey <tom@tromey.com>
13715
13716 * f-valprint.c (f_value_print_innner): Rewrite.
13717
13718 2020-03-13 Tom Tromey <tom@tromey.com>
13719
13720 * m2-valprint.c (m2_print_unbounded_array): New overload.
13721 (m2_print_unbounded_array): Update.
13722 (m2_print_array_contents): Take a struct value.
13723 (m2_value_print_inner): Rewrite.
13724
13725 2020-03-13 Tom Tromey <tom@tromey.com>
13726
13727 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13728 (d_value_print_inner): New function.
13729 * d-lang.h (d_value_print_inner): Declare.
13730 * d-lang.c (d_language_defn): Use d_value_print_inner.
13731
13732 2020-03-13 Tom Tromey <tom@tromey.com>
13733
13734 * go-valprint.c (go_value_print_inner): New function.
13735 * go-lang.h (go_value_print_inner): Declare.
13736 * go-lang.c (go_language_defn): Use go_value_print_inner.
13737
13738 2020-03-13 Tom Tromey <tom@tromey.com>
13739
13740 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13741 API.
13742 (rust_val_print): Rewrite.
13743 (rust_value_print_inner): New function, from rust_val_print.
13744 (rust_language_defn): Use rust_value_print_inner.
13745
13746 2020-03-13 Tom Tromey <tom@tromey.com>
13747
13748 * ada-valprint.c (ada_value_print_inner): New function.
13749 * ada-lang.h (ada_value_print_inner): Declare.
13750 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13751
13752 2020-03-13 Tom Tromey <tom@tromey.com>
13753
13754 * f-valprint.c (f_value_print_innner): New function.
13755 * f-lang.h (f_value_print_innner): Declare.
13756 * f-lang.c (f_language_defn): Use f_value_print_innner.
13757
13758 2020-03-13 Tom Tromey <tom@tromey.com>
13759
13760 * p-valprint.c (pascal_value_print_inner): New function.
13761 * p-lang.h (pascal_value_print_inner): Declare.
13762 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13763
13764 2020-03-13 Tom Tromey <tom@tromey.com>
13765
13766 * m2-valprint.c (m2_value_print_inner): New function.
13767 * m2-lang.h (m2_value_print_inner): Declare.
13768 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13769
13770 2020-03-13 Tom Tromey <tom@tromey.com>
13771
13772 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13773 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13774 * c-valprint.c (c_value_print_inner): New function.
13775 * c-lang.h (c_value_print_inner): Declare.
13776 * c-lang.c (c_language_defn, cplus_language_defn)
13777 (asm_language_defn, minimal_language_defn): Use
13778 c_value_print_inner.
13779
13780 2020-03-13 Tom Tromey <tom@tromey.com>
13781
13782 * p-valprint.c (pascal_object_print_value_fields): Now static.
13783 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13784
13785 2020-03-13 Tom Tromey <tom@tromey.com>
13786
13787 * c-valprint.c (c_val_print_array): Simplify.
13788
13789 2020-03-13 Tom Tromey <tom@tromey.com>
13790
13791 * valprint.c (value_print_array_elements): New function.
13792 * valprint.h (value_print_array_elements): Declare.
13793
13794 2020-03-13 Tom Tromey <tom@tromey.com>
13795
13796 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13797 * mips-tdep.c (mips_print_register): Use
13798 value_print_scalar_formatted.
13799
13800 2020-03-13 Tom Tromey <tom@tromey.com>
13801
13802 * valprint.h (value_print_scalar_formatted): Declare.
13803 * valprint.c (value_print_scalar_formatted): New function.
13804
13805 2020-03-13 Tom Tromey <tom@tromey.com>
13806
13807 * valprint.h (generic_value_print): Declare.
13808 * valprint.c (generic_value_print): New function.
13809
13810 2020-03-13 Tom Tromey <tom@tromey.com>
13811
13812 * valprint.c (do_val_print): Call la_value_print_inner, if
13813 available.
13814 * rust-lang.c (rust_language_defn): Update.
13815 * p-lang.c (pascal_language_defn): Update.
13816 * opencl-lang.c (opencl_language_defn): Update.
13817 * objc-lang.c (objc_language_defn): Update.
13818 * m2-lang.c (m2_language_defn): Update.
13819 * language.h (struct language_defn) <la_value_print_inner>: New
13820 member.
13821 * language.c (unknown_language_defn, auto_language_defn): Update.
13822 * go-lang.c (go_language_defn): Update.
13823 * f-lang.c (f_language_defn): Update.
13824 * d-lang.c (d_language_defn): Update.
13825 * c-lang.c (c_language_defn, cplus_language_defn)
13826 (asm_language_defn, minimal_language_defn): Update.
13827 * ada-lang.c (ada_language_defn): Update.
13828
13829 2020-03-13 Tom Tromey <tom@tromey.com>
13830
13831 * c-valprint.c (c_value_print): Use common_val_print.
13832
13833 2020-03-13 Tom Tromey <tom@tromey.com>
13834
13835 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13836
13837 2020-03-13 Tom Tromey <tom@tromey.com>
13838
13839 * f-valprint.c (f77_print_array_1, f_val_print): Use
13840 common_val_print.
13841
13842 2020-03-13 Tom Tromey <tom@tromey.com>
13843
13844 * riscv-tdep.c (riscv_print_one_register_info): Use
13845 common_val_print.
13846
13847 2020-03-13 Tom Tromey <tom@tromey.com>
13848
13849 * mi/mi-main.c (output_register): Use common_val_print.
13850
13851 2020-03-13 Tom Tromey <tom@tromey.com>
13852
13853 * infcmd.c (default_print_one_register_info): Use
13854 common_val_print.
13855
13856 2020-03-13 Tom Tromey <tom@tromey.com>
13857
13858 * valprint.h (common_val_print_checked): Declare.
13859 * valprint.c (common_val_print_checked): New function.
13860 * stack.c (print_frame_arg): Use common_val_print_checked.
13861
13862 2020-03-13 Tom Tromey <tom@tromey.com>
13863
13864 * valprint.c (do_val_print): New function, from val_print.
13865 (val_print): Use do_val_print.
13866 (common_val_print): Use do_val_print.
13867
13868 2020-03-13 Tom Tromey <tom@tromey.com>
13869
13870 * valprint.c (value_print): Use scoped_value_mark.
13871
13872 2020-03-13 Tom de Vries <tdevries@suse.de>
13873
13874 PR symtab/25646
13875 * psymtab.c (partial_symtab::partial_symtab): Don't set
13876 globals_offset and statics_offset. Push element onto
13877 current_global_psymbols and current_static_psymbols stacks.
13878 (concat): New function.
13879 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13880 element from current_global_psymbols and current_static_psymbols
13881 stacks. Concat popped elements to global_psymbols and
13882 static_symbols.
13883 (add_psymbol_to_list): Use current_global_psymbols and
13884 current_static_psymbols stacks.
13885 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13886 current_static_psymbols fields.
13887
13888 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13889
13890 * corelow.c (sniff_core_bfd): Remove.
13891 (class core_target) <m_core_vec>: Remove.
13892 (core_target::core_target): Update.
13893 (core_file_fns): Remove.
13894 (deprecated_add_core_fns): Remove.
13895 (default_core_sniffer): Remove.
13896 (sniff_core_bfd): Remove.
13897 (default_check_format): Remove.
13898 (gdb_check_format): Remove.
13899 (core_target_open): Update.
13900 (core_target::get_core_register_section): Update.
13901 (get_core_registers_cb): Update.
13902 (core_target::fetch_registers): Update.
13903 * gdbcore.h (struct core_fns): Remove.
13904 (deprecated_add_core_fns): Remove.
13905 (default_core_sniffer): Remove.
13906 (default_check_format): Remove.
13907
13908 2020-03-12 Tom Tromey <tom@tromey.com>
13909
13910 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13911 CORE_ADDR.
13912 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13913
13914 2020-03-12 Tom Tromey <tom@tromey.com>
13915
13916 * remote.c (remote_target::download_tracepoint)
13917 (remote_target::enable_tracepoint)
13918 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13919 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13920 sprintf_vma.
13921
13922 2020-03-12 Tom Tromey <tom@tromey.com>
13923
13924 * symfile-mem.c: Update CORE_ADDR size assert.
13925
13926 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13927
13928 * selftest.m4: Move to gdbsupport/.
13929 * acinclude.m4: Update path to selftest.m4.
13930
13931 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13932
13933 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13934 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13935 gdbarch-selfselftests.c and selftest-arch.c.
13936 (SUBDIR_UNITTESTS_OBS): Rename to...
13937 (SELFTESTS_OBS): ... this.
13938 (COMMON_SFILES): Remove disasm-selftests.c and
13939 gdbarch-selftests.c.
13940 * configure.ac: Don't add selftest-arch.{c,o} to
13941 CONFIG_{SRCS,OBS}.
13942 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13943 preprocessor conditions.
13944
13945 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13946
13947 * configure.ac: Don't source bfd/development.sh.
13948 * selftest.m4: Modify comment.
13949 * configure: Re-generate.
13950
13951 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13952
13953 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13954 not "true" or "false".
13955 * configure: Re-generate.
13956
13957 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13958
13959 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13960 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13961 renamed to arm_nbsd_supply_gregset.
13962 (fetch_register): Update to call arm_nbsd_supply_gregset.
13963 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13964 (arm_netbsd_nat_target::fetch_registers): Update.
13965 (fetch_elfcore_registers): Removed.
13966 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13967 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13968 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13969 not require NetBSD system headers.
13970 (arm_nbsd_regset): New struct.
13971 (arm_nbsd_iterate_over_regset_sections): New function.
13972 (arm_netbsd_init_abi_common): Updated to call
13973 set_gdbarch_iterate_over_regset_sections.
13974 * arm-nbsd-tdep.h: New file.
13975
13976 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13977
13978 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13979 recursion.
13980
13981 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13982
13983 * configure: Re-generate.
13984
13985 2020-03-11 Tom Tromey <tromey@adacore.com>
13986
13987 * ada-typeprint.c (print_choices): Fix comment.
13988
13989 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13990
13991 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13992 previous item in the list, when the list has no items.
13993
13994 2020-03-11 Tom de Vries <tdevries@suse.de>
13995
13996 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13997 PROP_LOCLIST handling code.
13998
13999 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14000
14001 * buildsym-legacy.c (record_line): Pass extra parameter to
14002 record_line.
14003 * buildsym.c (buildsym_compunit::record_line): Take an extra
14004 parameter, reduce duplication in the line table, and record the
14005 is_stmt flag in the line table.
14006 * buildsym.h (buildsym_compunit::record_line): Add extra
14007 parameter.
14008 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14009 non-statement lines.
14010 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14011 this to the symtab builder.
14012 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14013 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14014 through to dwarf_record_line_1.
14015 * infrun.c (process_event_stop_test): When stepping, don't stop at
14016 a non-statement instruction, and only refresh the step info when
14017 we land in the middle of a line's range. Also add an extra
14018 comment.
14019 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14020 field.
14021 * record-btrace.c (btrace_find_line_range): Only record lines
14022 marked as is-statement.
14023 * stack.c (frame_show_address): Show the frame address if we are
14024 in a non-statement sal.
14025 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14026 (maintenance_print_one_line_table): Print a header for the is_stmt
14027 column, and include is_stmt information in the output.
14028 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14029 preference to non-statements.
14030 (find_pcs_for_symtab_line): Prefer is-statement entries.
14031 (find_line_common): Likewise.
14032 * symtab.h (struct linetable_entry): Add is_stmt field.
14033 (struct symtab_and_line): Likewise.
14034 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14035 arranging the line table.
14036
14037 2020-03-07 Tom de Vries <tdevries@suse.de>
14038
14039 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14040 DIE.
14041
14042 2020-03-07 Tom Tromey <tom@tromey.com>
14043
14044 * valops.c (value_literal_complex): Remove obsolete comment.
14045 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14046 comment.
14047
14048 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14049
14050 * infrun.h: Forward-declare thread_info.
14051 (set_step_info): Add thread_info parameter, add doc.
14052 * infrun.c (set_step_info): Add thread_info parameter, move doc
14053 to header.
14054 * infrun.c (process_event_stop_test): Pass thread to
14055 set_step_info call.
14056 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14057 set_step_info.
14058 (prepare_one_step): Add thread_info parameter, pass it to
14059 set_step_frame and prepare_one_step (recursive) call.
14060 (step_1): Pass thread to prepare_one_step call.
14061 (step_command_fsm::should_stop): Pass thread to
14062 prepare_one_step.
14063 (until_next_fsm): Pass thread to set_step_frame call.
14064 (finish_command): Pass thread to set_step_info call.
14065
14066 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14067
14068 * windows-tdep.c (windows_solib_create_inferior_hook):
14069 Check if inferior is running.
14070
14071 2020-03-06 Tom de Vries <tdevries@suse.de>
14072
14073 * NEWS: Fix "the the".
14074 * ctfread.c: Same.
14075
14076 2020-03-06 Tom de Vries <tdevries@suse.de>
14077
14078 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14079
14080 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14081
14082 * .dir-locals.el: Add a comment referencing the other copies of
14083 this file.
14084
14085 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14086
14087 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14088 psargs.
14089
14090 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14091
14092 * .gitattributes: New file.
14093
14094 2020-03-04 Tom Tromey <tom@tromey.com>
14095
14096 * symmisc.c (print_symbol_bcache_statistics)
14097 (print_objfile_statistics): Update.
14098 * symfile.c (allocate_symtab): Use intern.
14099 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14100 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14101 macro_cache>: Remove.
14102 <string_cache>: New member.
14103 (struct objfile) <intern>: New methods.
14104 * elfread.c (elf_symtab_read): Use intern.
14105 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14106 (dwarf2_compute_name, dwarf2_physname)
14107 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14108 names.
14109 (guess_partial_die_structure_name): Update.
14110 (partial_die_info::fixup): Intern name.
14111 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14112 name.
14113 (dwarf2_name): Intern name. Update.
14114 * buildsym.c (buildsym_compunit::get_macro_table): Use
14115 string_cache.
14116
14117 2020-03-04 Tom Tromey <tom@tromey.com>
14118
14119 * jit.c (bfd_open_from_target_memory): Make "target" const.
14120 * corefile.c (gnutarget): Now const.
14121 * gdbcore.h (gnutarget): Now const.
14122
14123 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14124
14125 * NEWS: Mention support for WOW64 processes.
14126 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14127 (amd64_windows_segment_register_p): Remove static.
14128 (_initialize_amd64_windows_nat): Update.
14129 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14130 * i386-windows-nat.c (context_offset): Update.
14131 (i386_mappings): Rename and remove static.
14132 (i386_windows_segment_register_p): Remove static.
14133 (_initialize_i386_windows_nat): Update.
14134 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14135 (STATUS_WX86_SINGLE_STEP): New macro.
14136 (EnumProcessModulesEx): New macro.
14137 (Wow64SuspendThread): New macro.
14138 (Wow64GetThreadContext): New macro.
14139 (Wow64SetThreadContext): New macro.
14140 (Wow64GetThreadSelectorEntry): New macro.
14141 (windows_set_context_register_offsets): Add static.
14142 (windows_set_segment_register_p): Likewise.
14143 (windows_add_thread): Adapt for WOW64 processes.
14144 (windows_fetch_one_register): Likewise.
14145 (windows_nat_target::fetch_registers): Likewise.
14146 (windows_store_one_register): Likewise.
14147 (display_selector): Likewise.
14148 (display_selectors): Likewise.
14149 (handle_exception): Likewise.
14150 (windows_continue): Likewise.
14151 (windows_nat_target::resume): Likewise.
14152 (windows_add_all_dlls): Likewise.
14153 (do_initial_windows_stuff): Likewise.
14154 (windows_nat_target::attach): Likewise.
14155 (windows_get_exec_module_filename): Likewise.
14156 (windows_nat_target::create_inferior): Likewise.
14157 (windows_xfer_siginfo): Likewise.
14158 (_initialize_loadable): Initialize Wow64SuspendThread,
14159 Wow64GetThreadContext, Wow64SetThreadContext,
14160 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14161 * windows-nat.h (windows_set_context_register_offsets):
14162 Remove declaration.
14163 (windows_set_segment_register_p): Likewise.
14164 (i386_windows_segment_register_p): Add declaration.
14165 (amd64_windows_segment_register_p): Likewise.
14166
14167 2020-03-04 Luis Machado <luis.machado@linaro.org>
14168
14169 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14170 in "info registers" for AArch64/ARM.
14171
14172 The change caused "info registers" to not print GPR's.
14173
14174 gdb/ChangeLog:
14175
14176 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14177
14178 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14179 when reg->group is empty and reggroup is not.
14180
14181 2020-03-03 Tom Tromey <tromey@adacore.com>
14182
14183 * dwarf2/frame.c (struct dwarf2_frame_cache)
14184 <checked_tailcall_bottom, entry_cfa_sp_offset,
14185 entry_cfa_sp_offset_p>: Remove members.
14186 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14187 (dwarf2_frame_prev_register): Don't call
14188 dwarf2_tailcall_sniffer_first.
14189 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14190 * frame-unwind.c (add_unwinder): New fuction.
14191 (frame_unwind_init): Use it. Add tailcall unwinder.
14192
14193 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14194 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14195
14196 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14197 value should be printed as true.
14198
14199 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14200
14201 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14202 (windows_init_abi): Set and use windows_so_ops.
14203
14204 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14205
14206 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14207 when verifying if dealing with a convenience variable.
14208
14209 2020-03-03 Luis Machado <luis.machado@linaro.org>
14210
14211 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14212
14213 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14214
14215 * infrun.c (gdbarch_supports_displaced_stepping): New.
14216 (use_displaced_stepping): Break up conditions in smaller pieces.
14217 Use gdbarch_supports_displaced_stepping.
14218 (displaced_step_prepare_throw): Use
14219 gdbarch_supports_displaced_stepping.
14220
14221 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14222
14223 * NEWS: Mention new behaviour of the history filename.
14224 * top.c (write_history_p): Add comment.
14225 (show_write_history_p): Add header comment, give a different
14226 message when history writing is on, but the history filename is
14227 empty.
14228 (history_filename): Add comment.
14229 (history_filename_empty): New function.
14230 (show_history_filename): Add header comment, give a different
14231 message when the filename is empty.
14232 (init_history): Compare history_filename against nullptr, and only
14233 read history if the filename is not empty.
14234 (set_history_filename): Add header comment, and only make
14235 non-empty filenames absolute.
14236 (init_main): Make the filename argument to 'set history filename'
14237 optional.
14238
14239 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14240
14241 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14242 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14243 (fetch_fp_register): Update.
14244 (fetch_fp_regs): Update.
14245 (store_fp_register): Update.
14246 (store_fp_regs): Update.
14247 (arm_netbsd_nat_target::read_description): New function.
14248 (fetch_elfcore_registers): Update.
14249
14250 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14251
14252 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14253 general_thread if the stop reply is missing a thread-id.
14254 (remote_target::process_stop_reply): Use the first non-exited
14255 thread if the target didn't pass a thread-id.
14256 * infrun.c (do_target_wait): Move call to
14257 switch_to_inferior_no_thread to ....
14258 (do_target_wait_1): ... here.
14259
14260 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14261
14262 * debuginfod-support.c: Include defs.h first.
14263
14264 2020-02-28 Tom de Vries <tdevries@suse.de>
14265
14266 * symfile.c (set_initial_language): Use default language for lookup.
14267
14268 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14269
14270 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14271 reader variable, pass `this` to read_cutu_die_from_dwo.
14272
14273 2020-02-27 Aaron Merey <amerey@redhat.com>
14274
14275 * source.c (open_source_file): Check for nullptr when computing
14276 srcpath.
14277
14278 2020-02-27 Tom Tromey <tromey@adacore.com>
14279
14280 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14281 member.
14282 (dwarf2_add_field): Don't update nfields.
14283 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14284
14285 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14286
14287 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14288 abs.
14289
14290 2020-02-26 Tom Tromey <tom@tromey.com>
14291
14292 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14293 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14294 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14295 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14296 per_cu_data.
14297
14298 2020-02-26 Tom Tromey <tom@tromey.com>
14299
14300 * dwarf2/index-write.c (psym_index_map): Change type.
14301 (add_address_entry_worker, write_one_signatured_type)
14302 (recursively_count_psymbols, recursively_write_psymbols)
14303 (class debug_names, psyms_seen_size, write_gdbindex)
14304 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14305
14306 2020-02-26 Aaron Merey <amerey@redhat.com>
14307
14308 * Makefile.in: Handle optional debuginfod support.
14309 * NEWS: Update.
14310 * README: Add --with-debuginfod summary.
14311 * config.in: Regenerate.
14312 * configure: Regenerate.
14313 * configure.ac: Handle optional debuginfod support.
14314 * debuginfod-support.c: debuginfod helper functions.
14315 * debuginfod-support.h: Ditto.
14316 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14317 summary.
14318 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14319 when a dwz file cannot be found.
14320 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14321 debuginfo file cannot be found.
14322 * source.c (open_source_file): Query debuginfod servers when a
14323 source file cannot be found.
14324 * top.c (print_gdb_configuration): Include
14325 --{with,without}-debuginfod in the output.
14326
14327 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14328
14329 * thread.c (thr_try_catch_cmd): Print thread name.
14330
14331 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14332
14333 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14334 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14335 dwarf2_fetch_die_type_sect_off): Move to...
14336 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14337 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14338 dwarf2_fetch_die_type_sect_off): ... here.
14339 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14340 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14341 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14342
14343 2020-02-26 Tom de Vries <tdevries@suse.de>
14344
14345 PR gdb/25603
14346 * symfile.c (set_initial_language): Exit-early if
14347 language_mode == language_mode_manual.
14348
14349 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14350
14351 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14352 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14353 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14354
14355 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14356
14357 * gdbtypes.c (create_array_type_with_stride): Handle negative
14358 array strides.
14359 * valarith.c (value_subscripted_rvalue): Likewise.
14360
14361 2020-02-25 Luis Machado <luis.machado@linaro.org>
14362
14363 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14364
14365 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14366
14367 * loc.h (dwarf2_get_die_type): Move to...
14368 * read.h (dwarf2_get_die_type): ... here.
14369 * read.c (dwarf2_get_die_type): Move doc to header.
14370
14371 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14372
14373 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14374 'gnulib/Makefile.in' to the list.
14375
14376 2020-02-24 Tom Tromey <tom@tromey.com>
14377
14378 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14379 Remove.
14380 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14381 XOBNEWVEC.
14382
14383 2020-02-24 Tom Tromey <tom@tromey.com>
14384
14385 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14386 New method.
14387 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14388 (dw2_do_instantiate_symtab, dw2_get_file_names)
14389 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14390
14391 2020-02-24 Tom Tromey <tom@tromey.com>
14392
14393 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14394 make_scoped_restore.
14395 (dwarf2_psymtab::read_symtab): Don't clear
14396 reading_partial_symbols.
14397
14398 2020-02-24 Tom de Vries <tdevries@suse.de>
14399
14400 PR gdb/25592
14401 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14402
14403 2020-02-24 Tom de Vries <tdevries@suse.de>
14404
14405 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14406 commands layout next/prev/regs.
14407
14408 2020-02-22 Tom Tromey <tom@tromey.com>
14409
14410 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14411 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14412
14413 2020-02-22 Tom Tromey <tom@tromey.com>
14414
14415 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14416
14417 2020-02-22 Tom Tromey <tom@tromey.com>
14418
14419 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14420 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14421 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14422 * tui/tui.c (_initialize_tui): Add usage text.
14423
14424 2020-02-22 Tom Tromey <tom@tromey.com>
14425
14426 * tui/tui-win.c (tui_set_focus_command)
14427 (tui_set_win_height_command): Use error_no_arg.
14428 (_initialize_tui_win): Update help text.
14429 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14430
14431 2020-02-22 Tom Tromey <tom@tromey.com>
14432
14433 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14434 * tui/tui-disasm.h (struct tui_disasm_window)
14435 <display_start_addr>: Declare.
14436 * tui/tui-source.h (struct tui_source_window)
14437 <display_start_addr>: Declare.
14438 * tui/tui-winsource.h (struct tui_source_window_base)
14439 <show_source_line, display_start_addr>: New methods.
14440 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14441 Rename and move to protected section.
14442 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14443 (tui_source_window_base::do_erase_source_content): Update.
14444 (tui_source_window_base::show_source_line): Now a method.
14445 (tui_source_window_base::show_source_content)
14446 (tui_source_window_base::tui_source_window_base)
14447 (tui_source_window_base::rerender)
14448 (tui_source_window_base::refill)
14449 (tui_source_window_base::do_scroll_horizontal)
14450 (tui_source_window_base::set_is_exec_point_at)
14451 (tui_source_window_base::update_breakpoint_info)
14452 (tui_source_window_base::update_exec_info): Update.
14453 * tui/tui-source.c (tui_source_window::set_contents)
14454 (tui_source_window::showing_source_p)
14455 (tui_source_window::do_scroll_vertical)
14456 (tui_source_window::location_matches_p)
14457 (tui_source_window::line_is_displayed): Update.
14458 (tui_source_window::display_start_addr): New method.
14459 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14460 (tui_disasm_window::do_scroll_vertical)
14461 (tui_disasm_window::location_matches_p): Update.
14462 (tui_disasm_window::display_start_addr): New method.
14463
14464 2020-02-22 Tom Tromey <tom@tromey.com>
14465
14466 * NEWS: Add entry for gdb.register_window_type.
14467 * tui/tui-layout.h (window_factory): New typedef.
14468 (tui_register_window): Declare.
14469 * tui/tui-layout.c (saved_tui_windows): New global.
14470 (tui_apply_current_layout): Use it.
14471 (tui_register_window): New function.
14472 * python/python.c (do_start_initialization): Call
14473 gdbpy_initialize_tui.
14474 (python_GdbMethods): Add "register_window_type" function.
14475 * python/python-internal.h (gdbpy_register_tui_window)
14476 (gdbpy_initialize_tui): Declare.
14477 * python/py-tui.c: New file.
14478 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14479
14480 2020-02-22 Tom Tromey <tom@tromey.com>
14481
14482 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14483
14484 2020-02-22 Tom Tromey <tom@tromey.com>
14485
14486 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14487 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14488 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14489 (tui_set_win_focus_to): Move from tui-win.c.
14490
14491 2020-02-22 Tom Tromey <tom@tromey.com>
14492
14493 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14494 functions.
14495 (known_window_types): New global.
14496 (tui_get_window_by_name): Reimplement.
14497 (initialize_known_windows): New function.
14498 (validate_window_name): Rewrite.
14499 (_initialize_tui_layout): Call initialize_known_windows.
14500
14501 2020-02-22 Tom Tromey <tom@tromey.com>
14502
14503 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14504 Remove constants.
14505 * tui/tui-winsource.h (struct tui_source_window_base)
14506 <tui_source_window_base>: Remove parameter.
14507 * tui/tui-winsource.c
14508 (tui_source_window_base::tui_source_window_base): Remove
14509 parameter.
14510 (tui_source_window_base::refill): Update.
14511 * tui/tui-stack.h (struct tui_locator_window)
14512 <tui_locator_window>: Update.
14513 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14514 Default the constructor.
14515 * tui/tui-regs.h (struct tui_data_item_window)
14516 <tui_data_item_window>: Default the constructor.
14517 (struct tui_data_window) <tui_data_window>: Likewise.
14518 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14519 Default the constructor.
14520 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14521 Default the constructor.
14522 <type>: Remove.
14523 (struct tui_win_info) <tui_win_info>: Default the constructor.
14524 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14525 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14526 Default the constructor.
14527
14528 2020-02-22 Tom Tromey <tom@tromey.com>
14529
14530 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14531 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14532 * tui/tui-win.c (tui_resize_all): Don't call
14533 tui_delete_invisible_windows.
14534 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14535 done.
14536 (tui_set_layout): Update.
14537 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14538 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14539 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14540
14541 2020-02-22 Tom Tromey <tom@tromey.com>
14542
14543 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14544 correctly.
14545
14546 2020-02-22 Tom Tromey <tom@tromey.com>
14547
14548 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14549
14550 2020-02-22 Tom Tromey <tom@tromey.com>
14551
14552 * tui/tui-winsource.h (struct tui_source_window_iterator)
14553 <inner_iterator>: New etytypedef.
14554 <tui_source_window_iterator>: Take "end" parameter.
14555 <tui_source_window_iterator>: Take iterator.
14556 <operator*, advance>: Update.
14557 <m_iter>: Change type.
14558 <m_end>: New field.
14559 (struct tui_source_windows) <begin, end>: Update.
14560 * tui/tui-layout.c (tui_windows): New global.
14561 (tui_apply_current_layout): Clear tui_windows.
14562 (tui_layout_window::apply): Update tui_windows.
14563 * tui/tui-data.h (tui_windows): Declare.
14564 (all_tui_windows): Now inline function.
14565 (class tui_window_iterator, struct all_tui_windows): Remove.
14566
14567 2020-02-22 Tom Tromey <tom@tromey.com>
14568
14569 PR tui/17850:
14570 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14571 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14572 "height" argument.
14573 (class tui_layout_window) <get_sizes>: Likewise.
14574 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14575 argument.
14576 <get_sizes>: Add "height" argument.
14577 <m_vertical>: New field.
14578 * tui/tui-layout.c (tui_layout_split::clone): Update.
14579 (tui_layout_split::get_sizes): Add "height" argument.
14580 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14581 (tui_new_layout_command): Parse "-horizontal".
14582 (_initialize_tui_layout): Update help string.
14583 (tui_layout_split::specification): Add "-horizontal" when needed.
14584 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14585 argument.
14586 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14587 New methods.
14588
14589 2020-02-22 Tom Tromey <tom@tromey.com>
14590
14591 * tui/tui-layout.h (enum tui_adjust_result): New.
14592 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14593 (class tui_layout_window) <adjust_size>: Return
14594 tui_adjust_result. Rewrite.
14595 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14596 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14597
14598 2020-02-22 Tom Tromey <tom@tromey.com>
14599
14600 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14601 parameter and return types.
14602 (class tui_layout_base) <specification>: Add "depth".
14603 (class tui_layout_window) <specification>: Add "depth".
14604 (class tui_layout_split) <specification>: Add "depth".
14605 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14606 and return types.
14607 (tui_new_layout_command): Parse sub-layouts.
14608 (_initialize_tui_layout): Update help string.
14609 (tui_layout_window::specification): Add "depth".
14610 (add_layout_command): Update.
14611
14612 2020-02-22 Tom Tromey <tom@tromey.com>
14613
14614 * NEWS: Add "tui new-layout" item.
14615 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14616 Add new-layout command to help text.
14617 (validate_window_name): New function.
14618 (tui_new_layout_command): New function.
14619 (_initialize_tui_layout): Register "new-layout".
14620 (tui_layout_window::specification): New method.
14621 (tui_layout_window::specification): New method.
14622 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14623 method.
14624 (class tui_layout_window) <specification>: New method.
14625 (class tui_layout_split) <specification>: New method.
14626
14627 2020-02-22 Tom Tromey <tom@tromey.com>
14628
14629 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14630 * tui/tui-win.c (window_name_completer): Update comment.
14631 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14632 Declare method.
14633 (class tui_layout_window) <replace_window>: Likewise.
14634 (class tui_layout_split) <replace_window>: Likewise.
14635 (tui_set_layout): Don't declare.
14636 (tui_set_initial_layout): Declare function.
14637 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14638 (asm_regs_layout): New globals.
14639 (tui_current_layout, show_layout): Remove.
14640 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14641 (find_layout, tui_apply_layout): New function.
14642 (layout_completer): Remove.
14643 (tui_next_layout): Reimplement.
14644 (tui_next_layout_command): New function.
14645 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14646 (tui_regs_layout): Reimplement.
14647 (tui_regs_layout_command): New function.
14648 (extract_display_start_addr): Rewrite.
14649 (next_layout, prev_layout): Remove.
14650 (tui_layout_window::replace_window): New method.
14651 (tui_layout_split::replace_window): New method.
14652 (destroy_layout): New function.
14653 (layout_list): New global.
14654 (add_layout_command): New function.
14655 (initialize_layouts): Update.
14656 (tui_layout_command): New function.
14657 (_initialize_tui_layout): Install "layout" commands.
14658 * tui/tui-data.h (enum tui_layout_type): Remove.
14659 (tui_current_layout): Don't declare.
14660
14661 2020-02-22 Tom Tromey <tom@tromey.com>
14662
14663 * tui/tui-regs.c (tui_reg_layout): Remove.
14664 (tui_reg_command): Use tui_regs_layout.
14665 * tui/tui-layout.h (tui_reg_command): Declare.
14666 * tui/tui-layout.c (tui_reg_command): New function.
14667
14668 2020-02-22 Tom Tromey <tom@tromey.com>
14669
14670 * tui/tui.c (tui_rl_delete_other_windows): Call
14671 tui_remove_some_windows.
14672 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14673 Declare method.
14674 (class tui_layout_window) <remove_windows>: New method.
14675 (class tui_layout_split) <remove_windows>: Declare.
14676 (tui_remove_some_windows): Declare.
14677 * tui/tui-layout.c (tui_remove_some_windows): New function.
14678 (tui_layout_split::remove_windows): New method.
14679
14680 2020-02-22 Tom Tromey <tom@tromey.com>
14681
14682 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14683 * tui/tui-layout.h (tui_next_layout): Declare.
14684 * tui/tui-layout.c (tui_next_layout): New function.
14685
14686 2020-02-22 Tom Tromey <tom@tromey.com>
14687
14688 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14689 correct coordinates.
14690
14691 2020-02-22 Tom Tromey <tom@tromey.com>
14692
14693 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14694 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14695 DATA_WIN case.
14696
14697 2020-02-22 Tom Tromey <tom@tromey.com>
14698
14699 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14700 TUI_DISASM_WIN, not tui_win_list.
14701
14702 2020-02-22 Tom Tromey <tom@tromey.com>
14703
14704 * valprint.c (generic_val_print_enum_1)
14705 (val_print_type_code_flags): Style member names.
14706 * rust-lang.c (val_print_struct, rust_print_enum)
14707 (rust_print_struct_def, rust_internal_print_type): Style member
14708 names.
14709 * p-valprint.c (pascal_object_print_value_fields): Style member
14710 names. Only call fprintf_symbol_filtered for static members.
14711 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14712 * f-valprint.c (f_val_print): Style member names.
14713 * f-typeprint.c (f_type_print_base): Style member names.
14714 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14715 call fprintf_symbol_filtered for static members.
14716 (cp_print_class_member): Style member names.
14717 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14718 member names.
14719 * ada-valprint.c (ada_print_scalar): Style enum names.
14720 (ada_val_print_enum): Likewise.
14721 * ada-typeprint.c (print_enum_type): Style enum names.
14722
14723 2020-02-21 Tom Tromey <tom@tromey.com>
14724
14725 * psympriv.h (struct partial_symtab): Update comment.
14726
14727 2020-02-21 Tom Tromey <tromey@adacore.com>
14728
14729 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14730 type is CORE_ADDR.
14731
14732 2020-02-21 Tom de Vries <tdevries@suse.de>
14733
14734 PR gdb/25534
14735 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14736 if dependencies[i]->user != NULL.
14737
14738 2020-02-21 Ali Tamur <tamur@google.com>
14739
14740 * dwarf2/read.c (dwarf2_name): Add null check.
14741
14742 2020-02-20 Tom Tromey <tom@tromey.com>
14743
14744 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14745 ">=", in binary search.
14746 (dwarf2_find_containing_comp_unit): New overload.
14747 (run_test): New self-test.
14748 (_initialize_dwarf2_read): Register new test.
14749
14750 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14751
14752 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14753 * riscv-tdep.h: Likewise.
14754 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14755 rv32-only CSR.
14756 * features/riscv/64bit-csr.xml: Regenerated.
14757
14758 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14759 Tom Tromey <tom@tromey.com>
14760
14761 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14762 of 'fputc_unfiltered'.
14763 (putchar_unfiltered): Call 'fputc_unfiltered'.
14764 (fputc_unfiltered): Call 'fputs_unfiltered'.
14765
14766 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14767
14768 * config.in: Regenerate.
14769 * configure: Regenerate.
14770 * configure.ac: Add --with-python-libdir option.
14771 * main.c: Use WITH_PYTHON_LIBDIR.
14772
14773 2020-02-19 Tom Tromey <tom@tromey.com>
14774
14775 * symtab.c (general_symbol_info::compute_and_set_names): Use
14776 obstack_strndup. Simplify call to symbol_set_demangled_name.
14777
14778 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14779
14780 * dwarf2/read.c (allocate_signatured_type_table,
14781 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14782 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14783 Remove objfile parameter, update all callers.
14784
14785 2020-02-19 Doug Evans <dje@google.com>
14786
14787 PR rust/25535
14788 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14789 rust_enum_variant calculation.
14790
14791 2020-02-19 Tom Tromey <tromey@adacore.com>
14792
14793 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14794
14795 2020-02-19 Tom Tromey <tromey@adacore.com>
14796
14797 * ada-lang.c (cache_symbol): Use obstack_strdup.
14798
14799 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14800
14801 * configure: Regenerate.
14802
14803 2020-02-19 Tom Tromey <tromey@adacore.com>
14804
14805 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14806 NULL check.
14807
14808 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14809
14810 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14811
14812 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14813
14814 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14815 if GDBSERVER is not defined.
14816 (riscv_tdesc_cache): Likewise, also store const target_desc.
14817 (STATIC_IN_GDB): Define.
14818 (riscv_create_target_description): Update declaration with
14819 STATIC_IN_GDB.
14820 (riscv_lookup_target_description): New function, only define if
14821 GDBSERVER is not defined.
14822 * arch/riscv.h (riscv_create_target_description): Declare only
14823 when GDBSERVER is defined.
14824 (riscv_lookup_target_description): New declaration when GDBSERVER
14825 is not defined.
14826 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14827 (riscv_linux_read_features): ...this, and return
14828 riscv_gdbarch_features instead of target_desc.
14829 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14830 (riscv_linux_read_description): Rename to...
14831 (riscv_linux_read_features): ...this.
14832 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14833 Update to use riscv_gdbarch_features and
14834 riscv_lookup_target_description.
14835 * riscv-tdep.c (riscv_find_default_target_description): Use
14836 riscv_lookup_target_description instead of
14837 riscv_create_target_description.
14838
14839 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14840
14841 * valprint.c (generic_val_print_enum_1): When printing a flag
14842 enum with value 0 and there is no enumerator with value 0, print
14843 just "0" instead of "(unknown: 0x0)".
14844
14845 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14846
14847 * valprint.c (generic_val_print_enum_1): Print unknown part of
14848 flag enum in hex.
14849
14850 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14851
14852 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14853 flag enums to contain duplicate enumerators.
14854 * valprint.c (generic_val_print_enum_1): Update comment.
14855
14856 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14857
14858 * dwarf2/read.c: Include "count-one-bits.h".
14859 (update_enumeration_type_from_children): If an enumerator has
14860 multiple bits set, don't treat the enumeration as a "flag enum".
14861 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14862 of flag enums have 0 or 1 bit set.
14863
14864 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14865
14866 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14867 conversion.
14868 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14869 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14870 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14871 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14872 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14873
14874 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14875
14876 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14877
14878 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14879
14880 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14881 displaced_step_closure_up.
14882 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14883 (struct displaced_step_closure_up):
14884 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14885 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14886 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14887 Likewise.
14888 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14889 * gdbarch.c, gdbarch.h: Re-generate.
14890 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14891 displaced_step_closure_up.
14892 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14893 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14894 * infrun.h (displaced_step_closure_up): New type alias.
14895 (struct displaced_step_inferior_state) <step_closure>: Change
14896 type to displaced_step_closure_up.
14897 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14898 displaced_step_closure_up.
14899 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14900
14901 2020-02-14 Tom Tromey <tom@tromey.com>
14902
14903 * minidebug.c (gnu_debug_key): New global.
14904 (find_separate_debug_file_in_section): Use it.
14905
14906 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14907
14908 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14909 std::unique_ptr.
14910 * gdbarch.c: Re-generate.
14911 * gdbarch.h: Re-generate.
14912 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14913 change.
14914 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14915 type to std::unique_ptr.
14916 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14917 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14918 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14919 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14920 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14921 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14922 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14923 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14924 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14925
14926 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14927
14928 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14929 std::unique_ptr.
14930 (displaced_step_clear): Rename to...
14931 (displaced_step_reset): ... this. Just call displaced->reset ().
14932 (displaced_step_clear_cleanup): Rename to...
14933 (displaced_step_reset_cleanup): ... this.
14934 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14935 (displaced_step_fixup): Likewise.
14936 (resume_1): Likewise.
14937 (handle_inferior_event): Restore child's memory before calling
14938 displaced_step_fixup on the parent.
14939 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14940 to std::unique_ptr.
14941 <step_closure>: Change type to std::unique_ptr.
14942
14943 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14944
14945 * arm-tdep.c: Include count-one-bits.h.
14946 (cleanup_block_store_pc): Use count_one_bits.
14947 (cleanup_block_load_pc): Use count_one_bits.
14948 (arm_copy_block_xfer): Use count_one_bits.
14949 (thumb2_copy_block_xfer): Use count_one_bits.
14950 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14951 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14952 (thumb_get_next_pcs_raw): Use count_one_bits.
14953 (arm_get_next_pcs_raw): Use count_one_bits_l.
14954 * arch/arm.c (bitcount): Remove.
14955 * arch/arm.h (bitcount): Remove.
14956
14957 2020-02-14 Tom Tromey <tromey@adacore.com>
14958
14959 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14960 Update.
14961 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14962 * dwarf2/loc.c (call_site_find_chain_1): Return
14963 unique_xmalloc_ptr.
14964 (call_site_find_chain): Likewise.
14965
14966 2020-02-14 Richard Biener <rguenther@suse.de>
14967
14968 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14969 on expression with division operators.
14970
14971 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14972
14973 * MAINTAINERS (Write After Approval): Adding myself.
14974
14975 2020-02-12 Tom Tromey <tom@tromey.com>
14976
14977 * event-loop.c (event_data, gdb_event, event_handler_func):
14978 Remove.
14979
14980 2020-02-12 Tom Tromey <tom@tromey.com>
14981
14982 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14983 (dwarf2_frame_objfile_data): Add comment.
14984 (find_comp_unit, set_comp_unit): New functions.
14985 (dwarf2_frame_find_fde): Use find_comp_unit.
14986 (dwarf2_build_frame_info): Use set_comp_unit.
14987
14988 2020-02-12 Tom Tromey <tom@tromey.com>
14989
14990 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14991 (comp_unit): Don't initialize objfile.
14992 (execute_cfa_program): Add text_offset parameter.
14993 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14994 (dwarf2_frame_cache): Update.
14995 (dwarf2_build_frame_info): Don't set "objfile" member.
14996
14997 2020-02-12 Tom Tromey <tom@tromey.com>
14998
14999 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15000 (decode_frame_entry): Likewise.
15001 (dwarf2_build_frame_info): Update.
15002
15003 2020-02-12 Tom Tromey <tom@tromey.com>
15004
15005 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15006 (decode_frame_entry_1): Use the comp_unit obstack.
15007
15008 2020-02-12 Tom Tromey <tom@tromey.com>
15009
15010 * dwarf2/frame.c (struct comp_unit): Add initializers and
15011 constructor.
15012 (dwarf2_frame_objfile_data): Store a comp_unit.
15013 (dwarf2_frame_find_fde): Update.
15014 (dwarf2_build_frame_info): Use "new".
15015
15016 2020-02-12 Tom Tromey <tom@tromey.com>
15017
15018 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15019 (dwarf2_fde_table): Typedef for std::vector.
15020 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15021 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15022 (decode_frame_entry): Update.
15023 (dwarf2_build_frame_info): Use "new".
15024
15025 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15026
15027 * arm-tdep.c (arm_gdbarch_init): Update.
15028 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15029 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15030 have_neon, is_m>: Change to bool.
15031
15032 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15033
15034 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15035
15036 2020-02-12 Tom Tromey <tom@tromey.com>
15037
15038 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15039
15040 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15041
15042 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15043 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15044
15045 2020-02-11 Tom Tromey <tom@tromey.com>
15046
15047 * psymtab.h: Update comment.
15048
15049 2020-02-11 Tom Tromey <tom@tromey.com>
15050
15051 * gdb_obstack.h (struct auto_obstack): Use
15052 DISABLE_COPY_AND_ASSIGN.
15053
15054 2020-02-11 Tom Tromey <tom@tromey.com>
15055
15056 * dwarf2/frame.h (struct objfile): Don't forward declare.
15057
15058 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15059
15060 * cris-tdep.c (cris_supply_gregset): Change signature to match
15061 what struct regset expects.
15062 (cris_regset): New struct.
15063 (fetch_core_registers): Remove.
15064 (cris_iterate_over_regset_sections): New function.
15065 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15066 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15067
15068 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15069
15070 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15071 registers.
15072
15073 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15074
15075 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15076
15077 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15078
15079 * configure: Re-generate.
15080
15081 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15082
15083 * configure: Re-generate.
15084
15085 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15086
15087 * acinclude: Update warning.m4 path.
15088 * warning.m4: Move to gdbsupport.
15089
15090 2020-02-11 Tom Tromey <tromey@adacore.com>
15091
15092 * remote.c (remote_console_output): Update.
15093 * printcmd.c (printf_command): Update.
15094 * event-loop.c (gdb_wait_for_event): Update.
15095 * linux-nat.c (sigchld_handler): Update.
15096 * remote-sim.c (gdb_os_write_stdout): Update.
15097 (gdb_os_flush_stdout): Update.
15098 (gdb_os_flush_stderr): Update.
15099 (gdb_os_write_stderr): Update.
15100 * exceptions.c (print_exception): Update.
15101 * remote-fileio.c (remote_fileio_func_read): Update.
15102 (remote_fileio_func_write): Update.
15103 * tui/tui.c (tui_enable): Update.
15104 * tui/tui-interp.c (tui_interp::init): Update.
15105 * utils.c (init_page_info): Update.
15106 (putchar_unfiltered, fputc_unfiltered): Update.
15107 (gdb_flush): Update.
15108 (emit_style_escape): Update.
15109 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15110 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15111 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15112 (stderr_file::write): Update.
15113 (stderr_file::puts): Update.
15114 * ui-file.h (ui_file_isatty, ui_file_write)
15115 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15116 (ui_file_puts): Don't declare.
15117
15118 2020-02-10 Tom de Vries <tdevries@suse.de>
15119
15120 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15121 sentinel to char *.
15122
15123 2020-02-09 Tom de Vries <tdevries@suse.de>
15124
15125 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15126 filename if it matches "<artificial>".
15127
15128 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15129
15130 * windows-tdep.c (struct enum_value_name): New struct.
15131 (create_enum): New function.
15132 (windows_get_siginfo_type): Create and use enum types.
15133
15134 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15135
15136 * NEWS: Mention $_siginfo support for Windows.
15137 * windows-nat.c (handle_exception): Set siginfo_er.
15138 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15139 (windows_xfer_siginfo): New function.
15140 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15141 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15142 (init_windows_gdbarch_data): New function.
15143 (get_windows_gdbarch_data): New function.
15144 (windows_get_siginfo_type): New function.
15145 (windows_init_abi): Register windows_get_siginfo_type.
15146 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15147
15148 2020-02-08 Tom Tromey <tom@tromey.com>
15149
15150 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15151 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15152 <keep>: Declare method.
15153 <m_keep>: Remove member.
15154 <~cutu_reader>: Remove.
15155 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15156 (cutu_reader::cutu_reader): Update.
15157 (cutu_reader::keep): Rename from ~cutu_reader.
15158 (process_psymtab_comp_unit, build_type_psymtabs_1)
15159 (process_skeletonless_type_unit, load_partial_comp_unit)
15160 (load_full_comp_unit, dwarf2_read_addr_index)
15161 (read_signatured_type): Update.
15162
15163 2020-02-08 Tom Tromey <tom@tromey.com>
15164
15165 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15166 "want_partial_unit" parameter.
15167 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15168 Inline check for DW_TAG_partial_unit.
15169 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15170
15171 2020-02-08 Tom Tromey <tom@tromey.com>
15172
15173 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15174 read.c.
15175 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15176 read.c.
15177
15178 2020-02-08 Tom Tromey <tom@tromey.com>
15179
15180 * dwarf2/read.c (read_address): Move to comp-unit.c.
15181 (dwarf2_rnglists_process, dwarf2_ranges_process)
15182 (read_attribute_value, dwarf_decode_lines_1)
15183 (var_decode_location, decode_locdesc): Update.
15184 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15185 read.c. Remove "cu" parameter.
15186 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15187 method.
15188
15189 2020-02-08 Tom Tromey <tom@tromey.com>
15190
15191 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15192 (read_indirect_line_string): Update.
15193 * dwarf2/comp-unit.c (read_offset): Remove.
15194 (read_comp_unit_head): Update.
15195 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15196 method.
15197 (read_offset): Don't declare.
15198
15199 2020-02-08 Tom Tromey <tom@tromey.com>
15200
15201 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15202 * dwarf2/read.c (struct comp_unit_head): Move to
15203 dwarf2/comp-unit.h.
15204 (enum class rcuh_kind): Move to comp-unit.h.
15205 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15206 (read_comp_unit_head, error_check_comp_unit_head)
15207 (read_and_check_comp_unit_head): Move to comp-unit.c.
15208 (read_offset, dwarf_unit_type_name): Likewise.
15209 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15210 (cutu_reader::cutu_reader, read_call_site_scope)
15211 (find_partial_die, follow_die_offset): Update.
15212 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15213
15214 2020-02-08 Tom Tromey <tom@tromey.com>
15215
15216 * dwarf2/read.c (read_offset_1): Move to leb.c.
15217 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15218 (dwarf_decode_macro_bytes): Update.
15219 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15220 * dwarf2/leb.h (read_offset): Declare.
15221
15222 2020-02-08 Tom Tromey <tom@tromey.com>
15223
15224 * dwarf2/read.c (dwarf2_section_size): Remove.
15225 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15226 Update.
15227 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15228
15229 2020-02-08 Tom Tromey <tom@tromey.com>
15230
15231 * dwarf2/read.c (read_initial_length): Move to leb.c.
15232 * dwarf2/leb.h (read_initial_length): Declare.
15233 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15234 handle_nonstd parameter.
15235 * dwarf2/frame.c (read_initial_length): Remove.
15236 (decode_frame_entry_1): Update.
15237
15238 2020-02-08 Tom Tromey <tom@tromey.com>
15239
15240 * dwarf2/loc.c (dwarf2_find_location_expression)
15241 (dwarf_evaluate_loc_desc::get_tls_address)
15242 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15243 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15244 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15245 (dwarf2_compile_property_to_c)
15246 (dwarf2_loc_desc_get_symbol_read_needs)
15247 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15248 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15249 (loclist_describe_location, loclist_tracepoint_var_ref)
15250 (loclist_generate_c_location): Update.
15251 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15252 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15253 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15254 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15255 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15256 (dwarf2_per_cu_data::addr_size)
15257 (dwarf2_per_cu_data::ref_addr_size)
15258 (dwarf2_per_cu_data::text_offset)
15259 (dwarf2_per_cu_data::addr_type): Now methods.
15260 (per_cu_header_read_in): Make per_cu "const".
15261 (dwarf2_version): Remove.
15262 (dwarf2_per_cu_data::int_type): Now a method.
15263 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15264 (set_die_type, read_array_type, read_subrange_index_type)
15265 (read_tag_string_type, read_subrange_type): Update.
15266 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15267 offset_size, ref_addr_size, text_offset, addr_type, version,
15268 objfile, int_type, addr_sized_int_type>: Declare methods.
15269
15270 2020-02-08 Tom Tromey <tom@tromey.com>
15271
15272 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15273 Move earlier.
15274
15275 2020-02-08 Tom Tromey <tom@tromey.com>
15276
15277 * dwarf2/read.h (dwarf_line_debug): Declare.
15278 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15279 * dwarf2/read.c: Move line_header code to new files.
15280 (dwarf_line_debug): No longer static.
15281 * dwarf2/line-header.c: New file.
15282 * dwarf2/line-header.h: New file.
15283
15284 2020-02-08 Tom Tromey <tom@tromey.com>
15285
15286 * dwarf2/read.c (struct line_header) <file_full_name,
15287 file_file_name>: Return unique_xmalloc_ptr.
15288 (line_header::file_file_name): Update.
15289 (line_header::file_full_name): Update.
15290 (dw2_get_file_names_reader): Update.
15291 (macro_start_file): Update.
15292
15293 2020-02-08 Tom Tromey <tom@tromey.com>
15294
15295 * dwarf2/read.c (struct line_header) <file_full_name,
15296 file_file_name>: Declare methods.
15297 (dw2_get_file_names_reader): Update.
15298 (file_file_name): Now a method.
15299 (file_full_name): Likewise.
15300 (macro_start_file): Update.
15301
15302 2020-02-08 Tom Tromey <tom@tromey.com>
15303
15304 * dwarf2/read.c (dwarf_always_disassemble)
15305 (show_dwarf_always_disassemble): Move to loc.c.
15306 (_initialize_dwarf2_read): Move "always-disassemble" registration
15307 to loc.c.
15308 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15309 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15310 static.
15311 (show_dwarf_always_disassemble): Move from read.c.
15312 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15313
15314 2020-02-08 Tom Tromey <tom@tromey.com>
15315
15316 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15317 (create_quick_file_names_table): Return htab_up.
15318 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15319 Update.
15320 * dwarf2/read.h (struct dwarf2_per_objfile)
15321 <quick_file_names_table>: Now htab_up.
15322
15323 2020-02-08 Tom Tromey <tom@tromey.com>
15324
15325 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15326
15327 2020-02-08 Tom Tromey <tom@tromey.com>
15328
15329 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15330 Rewrite.
15331 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15332 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15333 (abbrev_table::abbrev_table): No longer inline.
15334 (ABBREV_HASH_SIZE): Remove.
15335 (abbrev_table::m_abbrevs): Now an htab_up.
15336
15337 2020-02-08 Tom Tromey <tom@tromey.com>
15338
15339 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15340 (cutu_reader): Update.
15341 (build_type_psymtabs_1): Update.
15342 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15343 (abbrev_table::alloc_abbrev): Update.
15344 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15345 (abbrev_table::read): New static method, renamed from
15346 abbrev_table_read_table.
15347 (abbrev_table::alloc_abbrev)
15348 (abbrev_table::add_abbrev): Now private.
15349 (abbrev_table::abbrev_table): Now private.
15350 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15351
15352 2020-02-08 Tom Tromey <tom@tromey.com>
15353
15354 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15355 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15356 htab_up.
15357
15358 2020-02-08 Tom Tromey <tom@tromey.com>
15359
15360 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15361 htab_up.
15362 (lookup_dwo_unit_in_dwp): Update.
15363 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15364 on obstack.
15365
15366 2020-02-08 Tom Tromey <tom@tromey.com>
15367
15368 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15369 obstack.
15370
15371 2020-02-08 Tom Tromey <tom@tromey.com>
15372
15373 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15374 line_header_hash.
15375 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15376 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15377 Change type to htab_up.
15378
15379 2020-02-08 Tom Tromey <tom@tromey.com>
15380
15381 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15382 htab_up. Don't allocate on obstack.
15383 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15384 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15385 Change type to htab_up.
15386
15387 2020-02-08 Tom Tromey <tom@tromey.com>
15388
15389 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15390 Change type to htab_up.
15391 * dwarf2/read.c (create_signatured_type_table_from_index)
15392 (create_signatured_type_table_from_debug_names)
15393 (create_all_type_units, add_type_unit)
15394 (lookup_dwo_signatured_type, lookup_signatured_type)
15395 (process_skeletonless_type_unit): Update.
15396 (create_debug_type_hash_table, create_debug_types_hash_table):
15397 Change type of types_htab.
15398 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15399 htab_up. Don't allocate on obstack.
15400 (create_cus_hash_table): Change type of cus_htab parameter.
15401 (struct dwo_file) <cus, tus>: Now htab_up.
15402 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15403 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15404 (queue_and_load_all_dwo_tus): Update.
15405 * dwarf2/index-write.c (write_gdbindex): Update.
15406 (write_debug_names): Update.
15407
15408 2020-02-08 Tom Tromey <tom@tromey.com>
15409
15410 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15411 dwarf2/read.c. Remove "next" member. Add constructor ntad
15412 destructor.
15413 (struct dwarf2_per_objfile) <queue>: New member.
15414 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15415 dwarf2/read.h.
15416 (dwarf2_queue, dwarf2_queue_tail): Remove.
15417 (class dwarf2_queue_guard): Add parameter to constructor. Use
15418 DISABLE_COPY_AND_ASSIGN.
15419 <m_per_objfile>: New member.
15420 <~dwarf2_queue_guard>: Rewrite.
15421 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15422 Update.
15423 (~dwarf2_queue_item): New.
15424
15425 2020-02-08 Tom Tromey <tom@tromey.com>
15426
15427 * dwarf2/read.c (struct die_info) <has_children>: New member.
15428 (dw2_get_file_names_reader): Remove has_children.
15429 (dw2_get_file_names): Update.
15430 (read_cutu_die_from_dwo): Remove has_children.
15431 (cutu_reader::init_tu_and_read_dwo_dies)
15432 (cutu_reader::cutu_reader): Update.
15433 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15434 Remove has_children.
15435 (build_type_psymtabs_1, process_skeletonless_type_unit)
15436 (load_partial_comp_unit, load_full_comp_unit): Update.
15437 (create_dwo_cu_reader): Remove has_children.
15438 (create_cus_hash_table, read_die_and_children): Update.
15439 (read_full_die_1,read_full_die): Remove has_children.
15440 (read_signatured_type): Update.
15441 (class cutu_reader) <has_children>: Remove.
15442
15443 2020-02-08 Tom Tromey <tom@tromey.com>
15444
15445 * dwarf2/expr.c: Rename from dwarf2expr.c.
15446 * dwarf2/expr.h: Rename from dwarf2expr.h.
15447 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15448 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15449 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15450 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15451 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15452 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15453 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15454 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15455 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15456 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15457 * dwarf2/loc.c: Rename from dwarf2loc.c.
15458 * dwarf2/loc.h: Rename from dwarf2loc.h.
15459 * dwarf2/read.c: Rename from dwarf2read.c.
15460 * dwarf2/read.h: Rename from dwarf2read.h.
15461 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15462 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15463 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15464 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15465 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15466 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15467 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15468 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15469 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15470 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15471 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15472 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15473 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15474 Update.
15475 * Makefile.in (COMMON_SFILES): Update.
15476 (HFILES_NO_SRCDIR): Update.
15477
15478 2020-02-08 Tom Tromey <tom@tromey.com>
15479
15480 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15481 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15482
15483 2020-02-08 Tom Tromey <tom@tromey.com>
15484
15485 * dwarf2read.h (struct die_info): Don't declare.
15486
15487 2020-02-08 Tom Tromey <tom@tromey.com>
15488
15489 * dwarf2read.h (die_info_ptr): Remove typedef.
15490
15491 2020-02-08 Tom Tromey <tom@tromey.com>
15492
15493 * dwarf2read.c (read_call_site_scope)
15494 (handle_data_member_location, dwarf2_add_member_fn)
15495 (mark_common_block_symbol_computed, read_common_block)
15496 (attr_to_dynamic_prop, partial_die_info::read)
15497 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15498 (dwarf2_symbol_mark_computed, set_die_type): Update.
15499 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15500 method.
15501 (attr_form_is_block): Don't declare.
15502 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15503
15504 2020-02-08 Tom Tromey <tom@tromey.com>
15505
15506 * dwarf2read.c (dwarf2_find_base_address, )
15507 (read_call_site_scope, rust_containing_type)
15508 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15509 (handle_data_member_location, dwarf2_add_member_fn)
15510 (get_alignment, read_structure_type, process_structure_scope)
15511 (mark_common_block_symbol_computed, read_common_block)
15512 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15513 (partial_die_info::read, read_attribute_value, new_symbol)
15514 (lookup_die_type, dwarf2_get_ref_die_offset)
15515 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15516 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15517 (dwarf2_symbol_mark_computed): Update.
15518 * dwarf2/attribute.h (struct attribute) <value_as_address,
15519 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15520 methods.
15521 (value_as_address, attr_form_is_section_offset)
15522 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15523 * dwarf2/attribute.c (attribute::value_as_address)
15524 (attribute::form_is_section_offset, attribute::form_is_constant)
15525 (attribute::form_is_ref): Now methods.
15526
15527 2020-02-08 Tom Tromey <tom@tromey.com>
15528
15529 * dwarf2read.c (struct attribute, DW_STRING)
15530 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15531 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15532 (attr_form_is_block, attr_form_is_section_offset)
15533 (attr_form_is_constant, attr_form_is_ref): Move.
15534 * dwarf2/attribute.h: New file.
15535 * dwarf2/attribute.c: New file, from dwarf2read.c.
15536 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15537
15538 2020-02-08 Tom Tromey <tom@tromey.com>
15539
15540 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15541 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15542 Move.
15543 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15544 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15545 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15546 abbrev.c.
15547 * dwarf2/abbrev.h: New file.
15548 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15549 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15550
15551 2020-02-08 Tom Tromey <tom@tromey.com>
15552
15553 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15554 (dwarf2_section_size, dwarf2_get_section_info)
15555 (create_signatured_type_table_from_debug_names)
15556 (create_addrmap_from_aranges, read_debug_names_from_section)
15557 (get_gdb_index_contents_from_section, read_comp_unit_head)
15558 (error_check_comp_unit_head, read_abbrev_offset)
15559 (create_debug_type_hash_table, init_cu_die_reader)
15560 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15561 (read_comp_units_from_section, create_cus_hash_table)
15562 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15563 (create_dwp_v2_section, dwarf2_rnglists_process)
15564 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15565 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15566 (read_indirect_string_from_dwz, read_addr_index_1)
15567 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15568 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15569 (fill_in_loclist_baton): Update.
15570 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15571 get_containing_section, get_bfd_owner, get_bfd_section,
15572 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15573 (dwarf2_read_section, get_section_name, get_section_file_name)
15574 (get_containing_section, get_section_bfd_owner)
15575 (get_section_bfd_section, get_section_name, get_section_file_name)
15576 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15577 declare.
15578 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15579 (dwarf2_section_info::get_bfd_owner)
15580 (dwarf2_section_info::get_bfd_section)
15581 (dwarf2_section_info::get_name)
15582 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15583 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15584 (dwarf2_section_info::read): Now methods.
15585 * dwarf-index-write.c (class debug_names): Update.
15586
15587 2020-02-08 Tom Tromey <tom@tromey.com>
15588
15589 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15590 Move to dwarf2/section.h.
15591 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15592 (get_section_bfd_section, get_section_name)
15593 (get_section_file_name, get_section_id, get_section_flags)
15594 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15595 dwarf2/section.c.
15596 * dwarf2/section.h: New file.
15597 * dwarf2/section.c: New file, from dwarf2read.c.
15598 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15599
15600 2020-02-08 Tom Tromey <tom@tromey.com>
15601
15602 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15603 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15604 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15605 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15606 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15607 * dwarf2/leb.h: New file, from dwarf2read.c.
15608 * dwarf2/leb.c: New file, from dwarf2read.c.
15609 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15610 Remove.
15611 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15612 (COMMON_SFILES): Add dwarf2/leb.c.
15613
15614 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15615
15616 GDB 9.1 released.
15617
15618 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15619
15620 PR gdb/25190:
15621 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15622 * gdb/remote.c (remote_console_output): Update.
15623 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15624 (ui_file_puts): ...this.
15625 * gdb/ui-file.h (ui_file_puts): Add declaration.
15626 * gdb/utils.c (emit_style_escape): Update.
15627 (flush_wrap_buffer): Update.
15628 (fputs_maybe_filtered): Update.
15629 (fputs_unfiltered): Add function.
15630
15631 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15632
15633 * gdb/event-loop.c (gdb_wait_for_event): Update.
15634 * gdb/printcmd.c (printf_command): Update.
15635 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15636 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15637 (gdb_os_flush_stderr): Update.
15638 * gdb/remote.c (remote_console_output): Update.
15639 * gdb/ui-file.c (gdb_flush): Rename to...
15640 (ui_file_flush): ...this.
15641 (stderr_file::write): Update.
15642 (stderr_file::puts): Update.
15643 * gdb/ui-file.h (gdb_flush): Rename to...
15644 (ui_file_flush): ...this.
15645 * gdb/utils.c (gdb_flush): Add function.
15646 * gdb/utils.h (gdb_flush): Add declaration.
15647
15648 2020-02-07 Tom Tromey <tromey@adacore.com>
15649
15650 PR breakpoints/24915:
15651 * source.c (find_and_open_source): Do not check basenames_may_differ.
15652
15653 2020-02-07 Tom Tromey <tom@tromey.com>
15654
15655 * README: Update gdbserver documentation.
15656 * gdbserver: Move to top level.
15657 * configure.tgt (build_gdbserver): Remove.
15658 * configure.ac: Remove --enable-gdbserver.
15659 * configure: Rebuild.
15660 * Makefile.in (distclean): Don't mention gdbserver.
15661
15662 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15663
15664 * source-cache.c (source_cache::ensure): Surround
15665 get_plain_source_lines with a try/catch.
15666 (source_cache::get_line_charpos): Get rid of try/catch
15667 and only check for the return value of "ensure".
15668 * tui/tui-source.c (tui_source_window::set_contents):
15669 Simplify "nlines" calculation.
15670
15671 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15672
15673 * MAINTAINERS (Write After Approval): Add myself.
15674
15675 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15676
15677 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15678 function call.
15679
15680 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15681
15682 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15683
15684 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15685
15686 * nat/riscv-linux-tdesc.h: New file.
15687 * nat/riscv-linux-tdesc.c: New file, taking code from...
15688 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15689 ... here.
15690 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15691 NATDEPFILES.
15692
15693 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15694
15695 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15696 we don't set the fake simulator ptid to the null_ptid.
15697
15698 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15699
15700 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15701 * gdbthread.h (class thread_info) <resumed>: Likewise.
15702 * infrun.c (resume_1): Likewise.
15703 (proceed): Likewise.
15704 (infrun_thread_stop_requested): Likewise.
15705 (stop_all_threads): Likewise.
15706 (handle_inferior_event): Likewise.
15707 (restart_threads): Likewise.
15708 (finish_step_over): Likewise.
15709 (keep_going_stepped_thread): Likewise.
15710 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15711 (linux_handle_extended_wait): Likewise.
15712 * record-btrace.c (get_thread_current_frame_id): Likewise.
15713 * record-full.c (record_full_wait_1): Likewise.
15714 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15715 * target.c (target_resume): Likewise.
15716 * thread.c (set_running_thread): Likewise.
15717
15718 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15719
15720 * f-valprint.c (f77_print_array_1): Changed datatype of index
15721 variable to LONGEST from int to enable it to contain bound
15722 values correctly.
15723
15724 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15725
15726 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15727 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15728 offsets according to FLEN determined.
15729 (riscv_linux_nat_target::read_description): Determine FLEN
15730 dynamically.
15731 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15732 according to FLEN determined.
15733 (riscv_linux_nat_target::store_registers): Likewise.
15734
15735 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15736
15737 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15738 when reg->group is empty and reggroup is not.
15739
15740 2020-01-31 Tom Tromey <tromey@adacore.com>
15741
15742 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15743 Call beneath target's mourn_inferior after unpushing.
15744
15745 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15746
15747 PR tui/9765
15748 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15749 have enough lines to fill the screen, still return the lowest
15750 address we found.
15751
15752 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15753
15754 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15755 '-', '<', and '>' commands.
15756
15757 2020-01-29 Pedro Alves <palves@redhat.com>
15758 Sergio Durigan Junior <sergiodj@redhat.com>
15759
15760 * infcmd.c (construct_inferior_arguments): Assert that
15761 'argc' is greater than 0.
15762
15763 2020-01-29 Luis Machado <luis.machado@linaro.org>
15764
15765 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15766 (BRK_INSN_MASK): Define to 0xd4200000.
15767 (aarch64_program_breakpoint_here_p): New function.
15768 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15769 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15770 breakpoint.c.
15771 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15772 breakpoint.h
15773 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15774 call gdbarch_program_breakpoint_here_p.
15775 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15776 default_program_breakpoint_here_p, changed return type to bool and
15777 simplified.
15778 * breakpoint.h (program_breakpoint_here): Moved prototype to
15779 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15780 return type to bool.
15781 * gdbarch.c: Regenerate.
15782 * gdbarch.h: Regenerate.
15783 * gdbarch.sh (program_breakpoint_here_p): New method.
15784 * infrun.c (handle_signal_stop): Call
15785 gdbarch_program_breakpoint_here_p.
15786
15787 2020-01-26 Tom Tromey <tom@tromey.com>
15788
15789 * ctfread.c (struct ctf_fp_info): Reindent.
15790 (_initialize_ctfread): Remove.
15791
15792 2020-01-26 Tom Tromey <tom@tromey.com>
15793
15794 * psymtab.c (partial_map_expand_apply)
15795 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15796 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15797 (psym_print_stats, psym_expand_symtabs_for_function)
15798 (psym_map_symbol_filenames, psym_map_matching_symbols)
15799 (psym_expand_symtabs_matching)
15800 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15801 (maintenance_check_psymtabs): Use new methods.
15802 * psympriv.h (struct partial_symtab) <readin_p,
15803 get_compunit_symtab>: New methods.
15804 <readin, compunit_symtab>: Remove members.
15805 (struct standard_psymtab): New.
15806 (struct legacy_psymtab): Derive from standard_psymtab.
15807 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15808 standard_psymtab.
15809 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15810
15811 2020-01-26 Tom Tromey <tom@tromey.com>
15812
15813 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15814 read_dependencies. Add assert.
15815 * psymtab.c (partial_symtab::read_dependencies): New method.
15816 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15817 method.
15818 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15819 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15820 read_dependencies.
15821 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15822 Add assert.
15823
15824 2020-01-26 Tom Tromey <tom@tromey.com>
15825
15826 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15827 Call expand_psymtab.
15828 (xcoff_read_symtab): Call expand_psymtab.
15829 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15830 legacy_expand_psymtab.
15831 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15832 method.
15833 (struct legacy_psymtab) <expand_psymtab>: Implement.
15834 <legacy_expand_psymtab>: New member.
15835 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15836 (parse_partial_symbols): Set legacy_expand_psymtab.
15837 (psymtab_to_symtab_1): Change argument order. Call
15838 expand_psymtab.
15839 (new_psymtab): Set legacy_expand_psymtab.
15840 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15841 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15842 expand_psymtab.
15843 (dwarf2_psymtab::expand_psymtab): Rename from
15844 psymtab_to_symtab_1. Call expand_psymtab.
15845 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15846 (dbx_end_psymtab): Likewise.
15847 (dbx_psymtab_to_symtab_1): Change argument order. Call
15848 expand_psymtab.
15849 (dbx_read_symtab): Call expand_psymtab.
15850 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15851 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15852 (ctf_psymtab::read_symtab): Call expand_psymtab.
15853
15854 2020-01-26 Tom Tromey <tom@tromey.com>
15855
15856 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15857 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15858 messages.
15859 * mdebugread.c (mdebug_read_symtab): Remove prints.
15860 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15861 assert.
15862 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15863
15864 2020-01-26 Tom Tromey <tom@tromey.com>
15865
15866 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15867 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15868 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15869 legacy_symtab.
15870 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15871 * psymtab.c (psymtab_to_symtab): Call method.
15872 (dump_psymtab): Update.
15873 * psympriv.h (struct partial_symtab): Add virtual destructor.
15874 <read_symtab>: New method.
15875 (struct legacy_symtab): New.
15876 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15877 (struct pst_map) <pst>: Now a legacy_psymtab.
15878 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15879 (new_psymtab): Use legacy_psymtab.
15880 * dwarf2read.h (struct dwarf2_psymtab): New.
15881 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15882 * dwarf2read.c (dwarf2_create_include_psymtab)
15883 (dwarf2_build_include_psymtabs, create_type_unit_group)
15884 (create_partial_symtab, process_psymtab_comp_unit_reader)
15885 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15886 (set_partial_user): Use dwarf2_psymtab.
15887 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15888 (psymtab_to_symtab_1, process_full_comp_unit)
15889 (process_full_type_unit, dwarf2_ranges_read)
15890 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15891 (dwarf_decode_lines): Use dwarf2_psymtab.
15892 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15893 (add_address_entry_worker, write_one_signatured_type)
15894 (recursively_count_psymbols, recursively_write_psymbols)
15895 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15896 (write_debug_names): Likewise.
15897 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15898 <pst>: Now a legacy_psymtab.
15899 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15900 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15901 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15902 * ctfread.c (struct ctf_psymtab): New.
15903 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15904 ctf_psymtab.
15905 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15906 (create_partial_symtab): Return a ctf_psymtab.
15907 (scan_partial_symbols): Update.
15908
15909 2020-01-26 Tom Tromey <tom@tromey.com>
15910
15911 * xcoffread.c (xcoff_start_psymtab): Use new.
15912 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15913 renamed from start_psymtab_common.
15914 * psympriv.h (struct partial_symtab): Add new constructor.
15915 (start_psymtab_common): Don't declare.
15916 * mdebugread.c (parse_partial_symbols): Use new.
15917 * dwarf2read.c (create_partial_symtab): Use new.
15918 * dbxread.c (start_psymtab): Use new.
15919 * ctfread.c (create_partial_symtab): Use new.
15920
15921 2020-01-26 Tom Tromey <tom@tromey.com>
15922
15923 * xcoffread.c (xcoff_end_psymtab): Use new.
15924 * psymtab.c (start_psymtab_common): Use new.
15925 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15926 Update.
15927 * psympriv.h (struct partial_symtab): Add parameters to
15928 constructor. Don't inline.
15929 (allocate_psymtab): Don't declare.
15930 * mdebugread.c (new_psymtab): Use new.
15931 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15932 * dbxread.c (dbx_end_psymtab): Use new.
15933
15934 2020-01-26 Tom Tromey <tom@tromey.com>
15935
15936 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15937 allocate_psymtab. Update documentation.
15938 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15939 allocate_psymtab. Do not use new.
15940 (allocate_psymtab): Use new. Update.
15941
15942 2020-01-26 Tom Tromey <tom@tromey.com>
15943
15944 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15945 * psymtab.c (psym_print_stats): Update.
15946 * psympriv.h (struct partial_symtab) <readin,
15947 psymtabs_addrmap_supported, anonymous>: Now bool.
15948 * mdebugread.c (psymtab_to_symtab_1): Update.
15949 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15950 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15951 (process_full_comp_unit, process_full_type_unit): Update.
15952 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15953 * ctfread.c (psymtab_to_symtab): Update.
15954
15955 2020-01-26 Tom Tromey <tom@tromey.com>
15956
15957 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15958 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15959 * psymtab.c (psymtab_storage): Delete psymtabs.
15960 (psymtab_storage::allocate_psymtab): Use new.
15961 (psymtab_storage::discard_psymtab): Use delete.
15962 * psympriv.h (struct partial_symtab): Add constructor and
15963 initializers.
15964
15965 2020-01-26 Tom Tromey <tom@tromey.com>
15966
15967 * machoread.c: Do not include psympriv.h.
15968
15969 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15970
15971 * NEWS: Mention the new option and the set/show commands.
15972
15973 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15974
15975 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15976 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15977 (validate_exec_file): New variables, enums, functions.
15978 (exec_file_locate_attach, print_section_info): Style the filenames.
15979 (_initialize_exec): Install show_exec_file_mismatch_command and
15980 set_exec_file_mismatch_command.
15981 * gdbcore.h (validate_exec_file): Declare.
15982 * infcmd.c (attach_command): Call validate_exec_file.
15983 * remote.c ( remote_target::remote_add_inferior): Likewise.
15984
15985 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15986
15987 * frame.c (find_frame_sal): Move call to get_next_frame into more
15988 inner scope.
15989 * inline-frame.c (inilne_state) <inline_state>: Update argument
15990 types.
15991 (inilne_state) <skipped_symbol>: Rename to...
15992 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15993 (skip_inline_frames): Build vector of skipped symbols and use this
15994 to reate the inline_state.
15995 (inline_skipped_symbol): Add a comment and some assertions, fetch
15996 skipped symbol from the list.
15997
15998 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15999
16000 * buildsym.c (lte_is_less_than): Delete.
16001 (buildsym_compunit::end_symtab_with_blockvector): Create local
16002 lambda function to sort line table entries, and use
16003 std::stable_sort instead of std::sort.
16004 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16005 markers when looking for a previous line.
16006
16007 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16008
16009 * dwarf2read.c (lnp_state_machine::record_line): Include
16010 end_sequence parameter in debug print out. Record the line if we
16011 are at an end_sequence marker even if it's not the start of a
16012 statement.
16013 * symmisc.c (maintenance_print_one_line_table): Print end of
16014 sequence markers with 'END' not '0'.
16015
16016 2020-01-24 Pedro Alves <palves@redhat.com>
16017
16018 PR gdb/25410
16019 * thread.c (scoped_restore_current_thread::restore): Use
16020 switch_to_inferior_no_thread.
16021 * exec.c: Include "progspace-and-thread.h".
16022 (add_target_sections, remove_target_sections):
16023 scoped_restore_current_pspace_and_thread instead of
16024 scoped_restore_current_thread.
16025 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16026 and aspace to the inferior before calling clone_program_space.
16027 Remove stale comment.
16028
16029 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16030
16031 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16032 (arm_netbsd_nat_target::fetch_registers): ...this.
16033 (arm_nbsd_nat_target::store_registers): Rename to...
16034 (arm_netbsd_nat_target::store_registers): ...this.
16035
16036 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16037
16038 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16039 register_t.
16040
16041 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16042
16043 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16044 Update comment.
16045 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16046 Likewise.
16047 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16048 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16049 the correct replacement (iterate_over_regset_sections).
16050 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16051 Update comment.
16052
16053 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16054
16055 PR gdb/23718
16056 * gdb/python/python.c (execute_gdb_command): Call
16057 async_enable_stdin in catch block.
16058
16059 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16060
16061 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16062 SWITCH_THRU_ALL_UIS.
16063
16064 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16065
16066 PR tui/9765
16067 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16068 comment, add extra parameter, and update to store previous symbol
16069 when appropriate.
16070 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16071 add extra parameter.
16072 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16073 remove unneeded parameter, add try/catch around gdb_print_insn,
16074 rewrite to add items to asm_lines vector.
16075 (tui_find_backward_disassembly_start_address): New function.
16076 (tui_find_disassembly_address): Updated throughout.
16077 (tui_disasm_window::set_contents): Update for changes to
16078 tui_disassemble.
16079 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16080 number of lines to scroll.
16081
16082 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16083
16084 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16085 (SECT_OFF_DATA): Likewise.
16086 (SECT_OFF_RODATA): Likewise.
16087 (SECT_OFF_TEXT): Likewise.
16088 (SECT_OFF_BSS): Likewise.
16089 (struct objfile) <text_section_offset, data_section_offset>: New
16090 methods.
16091 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16092 objfile::text_section_offset.
16093 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16094 * coffread.c (coff_symtab_read): Likewise.
16095 (enter_linenos): Likewise.
16096 (process_coff_symbol): Likewise.
16097 * ctfread.c (get_objfile_text_range): Likewise.
16098 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16099 Use objfile::data_section_offset.
16100 * dwarf2-frame.c (execute_cfa_program): Use
16101 objfile::text_section_offset.
16102 (dwarf2_frame_find_fde): Likewise.
16103 * dwarf2read.c (create_addrmap_from_index): Likewise.
16104 (create_addrmap_from_aranges): Likewise.
16105 (dw2_find_pc_sect_compunit_symtab): Likewise.
16106 (process_psymtab_comp_unit_reader): Likewise.
16107 (add_partial_symbol): Likewise.
16108 (add_partial_subprogram): Likewise.
16109 (process_full_comp_unit): Likewise.
16110 (read_file_scope): Likewise.
16111 (read_func_scope): Likewise.
16112 (read_lexical_block_scope): Likewise.
16113 (read_call_site_scope): Likewise.
16114 (dwarf2_rnglists_process): Likewise.
16115 (dwarf2_ranges_process): Likewise.
16116 (dwarf2_ranges_read): Likewise.
16117 (dwarf_decode_lines_1): Likewise.
16118 (new_symbol): Likewise.
16119 (dwarf2_fetch_die_loc_sect_off): Likewise.
16120 (dwarf2_per_cu_text_offset): Likewise.
16121 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16122 * hppa-tdep.c (read_unwind_info): Likewise.
16123 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16124 * psympriv.h (struct partial_symtab): Likewise.
16125 * psymtab.c (find_pc_sect_psymtab): Likewise.
16126 * solib-svr4.c (enable_break): Likewise.
16127 * stap-probe.c (relocate_address): Use
16128 objfile::data_section_offset.
16129 * xcoffread.c (enter_line_range): Use
16130 objfile::text_section_offset.
16131 (read_xcoff_symtab): Likewise.
16132
16133 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16134
16135 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16136 declaration to narrower scopes.
16137
16138 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16139
16140 * darwin-nat.h (struct darwin_exception_msg, enum
16141 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16142 Move up.
16143 (class darwin_nat_target) <wait_1, check_new_threads,
16144 decode_exception_message, decode_message, stop_inferior,
16145 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16146 * darwin-nat.c (darwin_check_new_threads): Rename to...
16147 (darwin_nat_target::check_new_threads): ... this.
16148 (darwin_suspend_inferior_it): Remove.
16149 (darwin_decode_exception_message): Rename to...
16150 (darwin_nat_target::decode_exception_message): ... this.
16151 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16152 (darwin_decode_message): Rename to...
16153 (darwin_nat_target::decode_message): ... this.
16154 (cancel_breakpoint): Rename to...
16155 (darwin_nat_target::cancel_breakpoint): ... this.
16156 (darwin_wait): Rename to...
16157 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16158 instead of iterate_over_inferiors.
16159 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16160 (darwin_stop_inferior): Rename to...
16161 (darwin_nat_target::stop_inferior): ... this.
16162 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16163 (darwin_init_thread_list): Rename to...
16164 (darwin_nat_target::init_thread_list): ... this.
16165 (darwin_ptrace_him): Rename to...
16166 (darwin_nat_target::ptrace_him): ... this.
16167 (darwin_nat_target::create_inferior): Pass lambda function to
16168 fork_inferior.
16169 (darwin_nat_target::detach): Call stop_inferior instead of
16170 darwin_stop_inferior.
16171 * fork-inferior.h (fork_inferior): Change init_trace_fun
16172 parameter to gdb::function_view.
16173 * fork-inferior.c (fork_inferior): Likewise.
16174
16175 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16176
16177 * i386-cygwin-tdep.c (core_process_module_section): Update.
16178 * windows-nat.c (struct lm_info_windows): Add text_offset.
16179 (windows_xfer_shared_libraries): Update.
16180 * windows-tdep.c (windows_xfer_shared_library):
16181 Add text_offset_cached argument.
16182 * windows-tdep.h (windows_xfer_shared_library): Update.
16183
16184 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16185
16186 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16187
16188 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16189
16190 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16191 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16192 replace with range-based for.
16193 (gdbsim_interrupt_inferior): Remove.
16194 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16195 with a range-based for. Inline code from
16196 gdbsim_interrupt_inferior.
16197
16198 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16199
16200 * infrun.c (proceed): Fix indentation.
16201
16202 2020-01-21 Tom Tromey <tromey@adacore.com>
16203
16204 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16205 * python/python.c (python_extension_ops): Update.
16206 (gdbpy_colorize): New function.
16207 * python/lib/gdb/__init__.py (colorize): New function.
16208 * extension.h (ext_lang_colorize): Declare.
16209 * extension.c (ext_lang_colorize): New function.
16210 * extension-priv.h (struct extension_language_ops) <colorize>: New
16211 member.
16212 * cli/cli-style.c (_initialize_cli_style): Update help text.
16213
16214 2020-01-21 Luis Machado <luis.machado@linaro.org>
16215
16216 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16217 <cond>: Change type to bool.
16218 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16219 (aarch64_displaced_step_cb): Likewise.
16220 (aarch64_displaced_step_tb): Likewise.
16221
16222 2020-01-21 Luis Machado <luis.machado@linaro.org>
16223
16224 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16225 output.
16226
16227 2020-01-21 Luis Machado <luis.machado@linaro.org>
16228
16229 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16230 <pc_adjust>: Adjust the documentation.
16231 (aarch64_displaced_step_fixup): Check if PC really moved before
16232 adjusting it.
16233
16234 2020-01-19 Tom Tromey <tom@tromey.com>
16235
16236 * disasm.c (~gdb_disassembler): New destructor.
16237 (gdb_buffered_insn_length): Call disassemble_free_target.
16238 * disasm.h (class gdb_disassembler): Declare destructor. Use
16239 DISABLE_COPY_AND_ASSIGN.
16240
16241 2020-01-19 Tom Tromey <tom@tromey.com>
16242
16243 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16244 (die_reader_func_ftype): Remove.
16245 (cutu_reader): New class.
16246 (dw2_get_file_names_reader): Remove "data" parameter.
16247 (dw2_get_file_names): Use cutu_reader.
16248 (create_debug_type_hash_table): Update.
16249 (read_cutu_die_from_dwo): Update comment.
16250 (lookup_dwo_unit): Add dwo_name parameter.
16251 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16252 die_reader_func_ftype and data parameters.
16253 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16254 Remove die_reader_func_ftype and data parameters.
16255 (~cutu_reader): New; from init_cutu_and_read_dies.
16256 (cutu_reader::cutu_reader): Rename from
16257 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16258 and data parameters.
16259 (init_cutu_and_read_dies_simple): Remove.
16260 (struct process_psymtab_comp_unit_data): Remove.
16261 (process_psymtab_comp_unit_reader): Remove data parameter; add
16262 want_partial_unit and pretend_language parameters.
16263 (process_psymtab_comp_unit): Use cutu_reader.
16264 (build_type_psymtabs_reader): Remove data parameter.
16265 (build_type_psymtabs_1): Use cutu_reader.
16266 (process_skeletonless_type_unit): Likewise.
16267 (load_partial_comp_unit_reader): Remove.
16268 (load_partial_comp_unit): Use cutu_reader.
16269 (load_full_comp_unit_reader): Remove.
16270 (load_full_comp_unit): Use cutu_reader.
16271 (struct create_dwo_cu_data): Remove.
16272 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16273 dwo_unit parameters.
16274 (create_cus_hash_table): Use cutu_reader.
16275 (struct dwarf2_read_addr_index_data): Remove.
16276 (dwarf2_read_addr_index_reader): Remove.
16277 (dwarf2_read_addr_index): Use cutu_reader.
16278 (read_signatured_type_reader): Remove.
16279 (read_signatured_type): Use cutu_reader.
16280
16281 2020-01-19 Tom Tromey <tom@tromey.com>
16282
16283 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16284 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16285 (tui_wrefresh): Declare.
16286 * tui/tui-wingeneral.c (suppress_output): New global.
16287 (tui_suppress_output, ~tui_suppress_output): New constructor and
16288 destructor.
16289 (tui_wrefresh): New function.
16290 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16291 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16292 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16293 method.
16294 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16295 tui_wrefresh.
16296 (tui_data_window::no_refresh): New method.
16297 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16298 (tui_reg_command): Use tui_suppress_output
16299 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16300 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16301 method.
16302 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16303
16304 2020-01-19 Tom Tromey <tom@tromey.com>
16305
16306 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16307 Handle case where symtab is null.
16308
16309 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16310
16311 * linux-fork.c (one_fork_p): Simplify.
16312
16313 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16314
16315 * top.c (struct qt_args): Remove.
16316 (kill_or_detach): Change return type to void, replace `void *`
16317 parameter with a proper one.
16318 (print_inferior_quit_action): Likewise.
16319 (quit_confirm): Use range-based for loop to iterate over inferiors.
16320 (quit_force): Likewise.
16321
16322 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16323
16324 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16325 `void *` parameter with proper parameters.
16326 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16327 (print_one_inferior): Change return type to void, replace `void *`
16328 parameter with proper parameters.
16329 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16330 inferiors.
16331 (get_other_inferior): Remove.
16332 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16333 inferiors.
16334
16335 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16336
16337 * mi/mi-interp.c (report_initial_inferior): Remove.
16338 (mi_interp::init): Use range-based for to iterate over inferiors.
16339
16340 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16341
16342 * python/py-inferior.c (build_inferior_list): Remove.
16343 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16344
16345 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16346
16347 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16348 (btrace_stitch_trace): Likewise.
16349 * charset.c (intermediate_encoding): Likewise (vaild).
16350 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16351 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16352 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16353
16354 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16355
16356 * windows-tdep.c (windows_get_tlb_type):
16357 Add rtl_user_process_parameters type.
16358
16359 2020-01-16 Pedro Alves <palves@redhat.com>
16360 Norbert Lange <nolange79@gmail.com>
16361
16362 PR build/24805
16363 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16364 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16365 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16366 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16367 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16368 (ps_plog): Redeclare exported functions with default visibility.
16369
16370 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16371
16372 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16373 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16374
16375 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16376
16377 * infcmd.c (post_create_inferior): Use get_thread_regcache
16378 instead of get_current_regcache.
16379
16380 2020-01-14 Tom Tromey <tom@tromey.com>
16381
16382 PR symtab/12535:
16383 * python/python.c (gdbpy_decode_line): Treat empty string the same
16384 as no argument.
16385
16386 2020-01-14 Tom Tromey <tom@tromey.com>
16387
16388 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16389
16390 2020-01-14 Tom Tromey <tom@tromey.com>
16391
16392 * nat/linux-btrace.c: Don't include <config.h>.
16393 * nat/linux-ptrace.c: Don't include <config.h>.
16394 * nat/x86-linux-dregs.c: Don't include <config.h>.
16395
16396 2020-01-14 Tom Tromey <tom@tromey.com>
16397
16398 * configure: Rebuild.
16399 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16400
16401 2020-01-14 Tom Tromey <tom@tromey.com>
16402
16403 * nat/x86-linux-dregs.c: Include configh.h.
16404 * nat/linux-ptrace.c: Include configh.h.
16405 * nat/linux-btrace.c: Include configh.h.
16406 * defs.h: Include config.h, bfd.h.
16407 * configure.ac: Don't source common.host.
16408 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16409 * configure: Rebuild.
16410 * acinclude.m4: Update path.
16411 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16412 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16413 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16414 (CLIBS): Add LIBSUPPORT.
16415 (CDEPS): Likewise.
16416 (COMMON_SFILES): Remove gdbsupport files.
16417 (HFILES_NO_SRCDIR): Likewise.
16418 (stamp-version): Update path to create-version.sh.
16419 (ALLDEPFILES): Remove gdbsupport files.
16420
16421 2020-01-14 Tom Tromey <tom@tromey.com>
16422
16423 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16424 USE_WIN32API when needed.
16425 * configure.ac (USE_WIN32API): Don't define.
16426 (WIN32LIBS): Use WIN32APILIBS.
16427 * configure: Rebuild.
16428
16429 2020-01-14 Tom Tromey <tom@tromey.com>
16430
16431 * configure: Rebuild.
16432 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16433
16434 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16435
16436 * skip.c (skip_function_command): Make skip w/o arguments use the
16437 name of the inlined function if pc is inside any inlined function.
16438
16439 2020-01-14 Luis Machado <luis.machado@linaro.org>
16440
16441 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16442 * infrun.c (resume_1): Likewise.
16443 (handle_inferior_event): Remove stale comment.
16444 * linux-nat.c (linux_nat_target::resume): Update comments.
16445 (save_stop_reason): Likewise.
16446 (linux_nat_filter_event): Likewise.
16447 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16448
16449 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16450
16451 * elfread.c (record_minimal_symbol): Set section index to 0 for
16452 non-allocatable sections.
16453
16454
16455 2020-01-13 Ali Tamur <tamur@google.com>
16456
16457 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16458 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16459 to gdb::optional. Update comments.
16460 (dwo_file): Update comments.
16461 (read_attribute): Update API to take an additional out parameter,
16462 need_reprocess. This is used to mark attributes that need other
16463 attributes (e.g. str_offsets_base) for correct computation which may not
16464 have been read yet.
16465 (read_attribute_reprocess): New function declaration.
16466 (read_addr_index): Likewise.
16467 (read_dwo_str_index): Likewise.
16468 (read_stub_str_index): Likewise.
16469 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16470 (lookup_addr_base): New function definition.
16471 (lookup_ranges_base): Likewise.
16472 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16473 lookup_ranges_base.
16474 (init_cutu_and_read_dies): Update comments.
16475 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16476 unit. This is used to inherit parent's str_offsets_base and addr_base.
16477 Update comments.
16478 (init_cutu_and_read_dies_simple): Reflect API changes.
16479 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16480 (create_cus_hash_table): Change API to take parent compile unit.
16481 Reflect API changes.
16482 (open_and_init_dwo_file): Reflect API changes.
16483 (dwarf2_get_pc_bounds): Update comments.
16484 (dwarf2_record_block_ranges): Likewise.
16485 (read_full_die_1): Change implementation to reprocess attributes that
16486 need str_offsets_base and addr_base.
16487 (partial_die_info::read): Likewise.
16488 (read_attribute_reprocess): New function definition.
16489 (read_attribute_value): Change API to take an additional out parameter,
16490 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16491 when a non-dwo compile unit has index based attributes.
16492 (read_attribute): Reflect API changes.
16493 (read_addr_index_1): Reflect API changes. Update comments.
16494 (dwarf2_read_addr_index_data): Reflect API changes.
16495 (dwarf2_read_addr_index): Likewise.
16496 (read_str_index): Change API and implementation. This becomes a helper
16497 to be used by the new string index related methods. Update error
16498 message and comments.
16499 (read_dwo_str_index): New function definition.
16500 (read_stub_str_index): Likewise.
16501 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16502 * symfile.h (dwarf2_debug_sections): Likewise.
16503 * xcoffread.c (dwarf2_debug_sections): Likewise.
16504
16505 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16506
16507 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16508 core_reg_sect type to gdb_byte *.
16509 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16510 * cris-tdep.c (fetch_core_registers): Likewise.
16511 * corelow.c (core_target::get_core_register_section): Change
16512 type of `contents` to gdb::byte_vector.
16513
16514 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16515
16516 * tui/tui-wingeneral.c (box_win): Position the title in the center
16517 of the border.
16518
16519 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16520
16521 * corelow.c (core_target::get_core_register_section): Use
16522 std::vector instead of alloca.
16523
16524 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16525
16526 * warning.m4: Add -Wmissing-declarations to build_warnings.
16527 * configure: Re-generate.
16528
16529 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16530
16531 * python/python.c (init__gdb_module): Add declaration.
16532
16533 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16534
16535 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16536 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16537 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16538 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16539 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16540 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16541 * ada-exp.y (_initialize_ada_exp): Add declaration.
16542 * ada-lang.c (_initialize_ada_language): Add declaration.
16543 * ada-tasks.c (_initialize_tasks): Add declaration.
16544 * agent.c (_initialize_agent): Add declaration.
16545 * aix-thread.c (_initialize_aix_thread): Add declaration.
16546 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16547 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16548 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16549 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16550 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16551 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16552 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16553 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16554 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16555 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16556 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16557 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16558 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16559 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16560 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16561 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16562 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16563 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16564 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16565 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16566 * annotate.c (_initialize_annotate): Add declaration.
16567 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16568 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16569 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16570 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16571 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16572 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16573 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16574 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16575 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16576 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16577 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16578 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16579 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16580 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16581 * auto-load.c (_initialize_auto_load): Add declaration.
16582 * auxv.c (_initialize_auxv): Add declaration.
16583 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16584 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16585 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16586 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16587 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16588 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16589 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16590 * breakpoint.c (_initialize_breakpoint): Add declaration.
16591 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16592 * btrace.c (_initialize_btrace): Add declaration.
16593 * charset.c (_initialize_charset): Add declaration.
16594 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16595 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16596 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16597 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16598 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16599 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16600 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16601 * coffread.c (_initialize_coffread): Add declaration.
16602 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16603 * compile/compile.c (_initialize_compile): Add declaration.
16604 * complaints.c (_initialize_complaints): Add declaration.
16605 * completer.c (_initialize_completer): Add declaration.
16606 * copying.c (_initialize_copying): Add declaration.
16607 * corefile.c (_initialize_core): Add declaration.
16608 * corelow.c (_initialize_corelow): Add declaration.
16609 * cp-abi.c (_initialize_cp_abi): Add declaration.
16610 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16611 * cp-support.c (_initialize_cp_support): Add declaration.
16612 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16613 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16614 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16615 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16616 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16617 * ctfread.c (_initialize_ctfread): Add declaration.
16618 * d-lang.c (_initialize_d_language): Add declaration.
16619 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16620 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16621 * dbxread.c (_initialize_dbxread): Add declaration.
16622 * dcache.c (_initialize_dcache): Add declaration.
16623 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16624 * disasm.c (_initialize_disasm): Add declaration.
16625 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16626 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16627 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16628 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16629 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16630 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16631 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16632 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16633 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16634 * elfread.c (_initialize_elfread): Add declaration.
16635 * exec.c (_initialize_exec): Add declaration.
16636 * extension.c (_initialize_extension): Add declaration.
16637 * f-lang.c (_initialize_f_language): Add declaration.
16638 * f-valprint.c (_initialize_f_valprint): Add declaration.
16639 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16640 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16641 * filesystem.c (_initialize_filesystem): Add declaration.
16642 * findcmd.c (_initialize_mem_search): Add declaration.
16643 * findvar.c (_initialize_findvar): Add declaration.
16644 * fork-child.c (_initialize_fork_child): Add declaration.
16645 * frame-base.c (_initialize_frame_base): Add declaration.
16646 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16647 * frame.c (_initialize_frame): Add declaration.
16648 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16649 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16650 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16651 * gcore.c (_initialize_gcore): Add declaration.
16652 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16653 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16654 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16655 * gdbarch.c (_initialize_gdbarch): Add declaration.
16656 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16657 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16658 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16659 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16660 * go-lang.c (_initialize_go_language): Add declaration.
16661 * go32-nat.c (_initialize_go32_nat): Add declaration.
16662 * guile/guile.c (_initialize_guile): Add declaration.
16663 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16664 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16665 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16666 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16667 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16668 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16669 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16670 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16671 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16672 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16673 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16674 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16675 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16676 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16677 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16678 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16679 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16680 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16681 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16682 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16683 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16684 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16685 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16686 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16687 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16688 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16689 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16690 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16691 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16692 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16693 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16694 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16695 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16696 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16697 * infcall.c (_initialize_infcall): Add declaration.
16698 * infcmd.c (_initialize_infcmd): Add declaration.
16699 * inflow.c (_initialize_inflow): Add declaration.
16700 * infrun.c (_initialize_infrun): Add declaration.
16701 * interps.c (_initialize_interpreter): Add declaration.
16702 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16703 * jit.c (_initialize_jit): Add declaration.
16704 * language.c (_initialize_language): Add declaration.
16705 * linux-fork.c (_initialize_linux_fork): Add declaration.
16706 * linux-nat.c (_initialize_linux_nat): Add declaration.
16707 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16708 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16709 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16710 * m2-lang.c (_initialize_m2_language): Add declaration.
16711 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16712 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16713 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16714 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16715 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16716 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16717 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16718 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16719 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16720 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16721 * machoread.c (_initialize_machoread): Add declaration.
16722 * macrocmd.c (_initialize_macrocmd): Add declaration.
16723 * macroscope.c (_initialize_macroscope): Add declaration.
16724 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16725 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16726 * maint.c (_initialize_maint_cmds): Add declaration.
16727 * mdebugread.c (_initialize_mdebugread): Add declaration.
16728 * memattr.c (_initialize_mem): Add declaration.
16729 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16730 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16731 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16732 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16733 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16734 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16735 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16736 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16737 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16738 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16739 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16740 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16741 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16742 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16743 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16744 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16745 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16746 * mipsread.c (_initialize_mipsread): Add declaration.
16747 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16748 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16749 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16750 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16751 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16752 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16753 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16754 * nto-procfs.c (_initialize_procfs): Add declaration.
16755 * objc-lang.c (_initialize_objc_language): Add declaration.
16756 * observable.c (_initialize_observer): Add declaration.
16757 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16758 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16759 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16760 * osabi.c (_initialize_gdb_osabi): Add declaration.
16761 * osdata.c (_initialize_osdata): Add declaration.
16762 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16763 * parse.c (_initialize_parse): Add declaration.
16764 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16765 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16766 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16767 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16768 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16769 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16770 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16771 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16772 * printcmd.c (_initialize_printcmd): Add declaration.
16773 * probe.c (_initialize_probe): Add declaration.
16774 * proc-api.c (_initialize_proc_api): Add declaration.
16775 * proc-events.c (_initialize_proc_events): Add declaration.
16776 * proc-service.c (_initialize_proc_service): Add declaration.
16777 * procfs.c (_initialize_procfs): Add declaration.
16778 * producer.c (_initialize_producer): Add declaration.
16779 * psymtab.c (_initialize_psymtab): Add declaration.
16780 * python/python.c (_initialize_python): Add declaration.
16781 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16782 * record-btrace.c (_initialize_record_btrace): Add declaration.
16783 * record-full.c (_initialize_record_full): Add declaration.
16784 * record.c (_initialize_record): Add declaration.
16785 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16786 * regcache.c (_initialize_regcache): Add declaration.
16787 * reggroups.c (_initialize_reggroup): Add declaration.
16788 * remote-notif.c (_initialize_notif): Add declaration.
16789 * remote-sim.c (_initialize_remote_sim): Add declaration.
16790 * remote.c (_initialize_remote): Add declaration.
16791 * reverse.c (_initialize_reverse): Add declaration.
16792 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16793 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16794 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16795 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16796 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16797 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16798 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16799 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16800 Add declaration.
16801 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16802 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16803 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16804 * rust-exp.y (_initialize_rust_exp): Add declaration.
16805 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16806 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16807 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16808 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16809 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16810 * score-tdep.c (_initialize_score_tdep): Add declaration.
16811 * ser-go32.c (_initialize_ser_dos): Add declaration.
16812 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16813 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16814 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16815 * ser-uds.c (_initialize_ser_socket): Add declaration.
16816 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16817 * serial.c (_initialize_serial): Add declaration.
16818 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16819 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16820 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16821 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16822 * skip.c (_initialize_step_skip): Add declaration.
16823 * sol-thread.c (_initialize_sol_thread): Add declaration.
16824 * solib-aix.c (_initialize_solib_aix): Add declaration.
16825 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16826 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16827 * solib-frv.c (_initialize_frv_solib): Add declaration.
16828 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16829 * solib-target.c (_initialize_solib_target): Add declaration.
16830 * solib.c (_initialize_solib): Add declaration.
16831 * source-cache.c (_initialize_source_cache): Add declaration.
16832 * source.c (_initialize_source): Add declaration.
16833 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16834 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16835 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16836 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16837 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16838 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16839 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16840 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16841 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16842 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16843 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16844 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16845 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16846 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16847 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16848 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16849 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16850 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16851 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16852 * stabsread.c (_initialize_stabsread): Add declaration.
16853 * stack.c (_initialize_stack): Add declaration.
16854 * stap-probe.c (_initialize_stap_probe): Add declaration.
16855 * std-regs.c (_initialize_frame_reg): Add declaration.
16856 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16857 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16858 * symfile.c (_initialize_symfile): Add declaration.
16859 * symmisc.c (_initialize_symmisc): Add declaration.
16860 * symtab.c (_initialize_symtab): Add declaration.
16861 * target.c (_initialize_target): Add declaration.
16862 * target-connection.c (_initialize_target_connection): Add
16863 declaration.
16864 * target-dcache.c (_initialize_target_dcache): Add declaration.
16865 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16866 * thread.c (_initialize_thread): Add declaration.
16867 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16868 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16869 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16870 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16871 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16872 * tracectf.c (_initialize_ctf): Add declaration.
16873 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16874 * tracefile.c (_initialize_tracefile): Add declaration.
16875 * tracepoint.c (_initialize_tracepoint): Add declaration.
16876 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16877 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16878 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16879 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16880 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16881 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16882 * tui/tui.c (_initialize_tui): Add declaration.
16883 * typeprint.c (_initialize_typeprint): Add declaration.
16884 * ui-style.c (_initialize_ui_style): Add declaration.
16885 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16886 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16887 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16888 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16889 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16890 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16891 * unittests/filtered_iterator-selftests.c
16892 (_initialize_filtered_iterator_selftests): Add declaration.
16893 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16894 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16895 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16896 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16897 * unittests/main-thread-selftests.c
16898 (_initialize_main_thread_selftests): Add declaration.
16899 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16900 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16901 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16902 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16903 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16904 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16905 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16906 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16907 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16908 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16909 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16910 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16911 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16912 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16913 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16914 declaration.
16915 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16916 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16917 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16918 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16919 * user-regs.c (_initialize_user_regs): Add declaration.
16920 * utils.c (_initialize_utils): Add declaration.
16921 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16922 * valops.c (_initialize_valops): Add declaration.
16923 * valprint.c (_initialize_valprint): Add declaration.
16924 * value.c (_initialize_values): Add declaration.
16925 * varobj.c (_initialize_varobj): Add declaration.
16926 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16927 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16928 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16929 * windows-nat.c (_initialize_windows_nat): Add declaration.
16930 (_initialize_check_for_gdb_ini): Add declaration.
16931 (_initialize_loadable): Add declaration.
16932 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16933 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16934 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16935 * xcoffread.c (_initialize_xcoffread): Add declaration.
16936 * xml-support.c (_initialize_xml_support): Add declaration.
16937 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16938 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16939 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16940 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16941
16942 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16943
16944 * regformats/regdat.sh: Generate declaration for init function.
16945
16946 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16947
16948 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16949 up.
16950 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16951 close_one_inferior>: New methods.
16952 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16953 pass down target to find_inferior_pid.
16954 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16955 Pass down target to find_inferior_ptid.
16956 (gdbsim_target::create_inferior): Pass down target to
16957 add_thread_silent.
16958 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16959 target down to find_inferior_ptid and switch_to_thread.
16960 (gdbsim_target::close): Update to call close_one_inferior.
16961 (struct resume_data): Remove.
16962 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16963 directly, rather than through a void pointer.
16964 (gdbsim_target::resume): Update to call resume_one_inferior.
16965
16966 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16967
16968 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16969
16970 2020-01-12 Pedro Alves <palves@redhat.com>
16971
16972 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16973 directly for the current inferior instead of
16974 discard_all_inferiors.
16975 (discard_all_inferiors): Delete.
16976
16977 2020-01-11 Tom Tromey <tom@tromey.com>
16978
16979 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16980 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16981 deprecated_safe_get_selected_frame.
16982
16983 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16984
16985 * inferior.c (print_inferior): Switch inferior before printing it.
16986
16987 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16988 Pedro Alves <palves@redhat.com>
16989
16990 * progspace-and-thread.c (switch_to_program_space_and_thread):
16991 Assert there's an inferior for PSPACE. Use
16992 switch_to_inferior_no_thread to switch the inferior too.
16993 * progspace.c (program_space::~program_space): Call
16994 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16995 (program_space::free_all_objfiles): Don't call clear_symtab_users
16996 here.
16997 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16998
16999 2020-01-10 Pedro Alves <palves@redhat.com>
17000
17001 * NEWS: Mention multi-target debugging, "info connections", and
17002 "add-inferior -no-connection".
17003
17004 2020-01-10 Pedro Alves <palves@redhat.com>
17005
17006 * infrun.c: Include "target-connection.h".
17007 (check_multi_target_resumption): New.
17008 (proceed): Call it.
17009 * target-connection.c (make_target_connection_string): Make
17010 extern.
17011 * target-connection.h (make_target_connection_string): Declare.
17012
17013 2020-01-10 Pedro Alves <palves@redhat.com>
17014
17015 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17016 * inferior.c (uiout_field_connection): New function.
17017 (print_inferior): Add new "connection-id" column.
17018 (add_inferior_command): Show connection number/string of added
17019 inferior.
17020 * process-stratum-target.h
17021 (process_stratum_target::connection_string): New virtual method.
17022 (process_stratum_target::connection_number): New field.
17023 * remote.c (remote_target::connection_string): New override.
17024 * target-connection.c: New file.
17025 * target-connection.h: New file.
17026 * target.c (decref_target): Remove process_stratum targets from
17027 the connection list.
17028 (target_stack::push): Add process_stratum targets to the
17029 connection list.
17030
17031 2020-01-10 Pedro Alves <palves@redhat.com>
17032
17033 Revert:
17034 2016-04-12 Pedro Alves <palves@redhat.com>
17035 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17036 Remove references to name.
17037 * serial.h (struct serial) <name>: Delete.
17038
17039 2020-01-10 Pedro Alves <palves@redhat.com>
17040
17041 * gdbarch-selftests.c (register_to_value_test): Remove "target
17042 already pushed" check.
17043
17044 2020-01-10 Pedro Alves <palves@redhat.com>
17045 John Baldwin <jhb@FreeBSD.org>
17046
17047 * aarch64-linux-nat.c
17048 (aarch64_linux_nat_target::thread_architecture): Adjust.
17049 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17050 (task_command_1): Likewise.
17051 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17052 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17053 (aix_thread_target::store_registers)
17054 (aix_thread_target::thread_alive): Adjust.
17055 * amd64-fbsd-tdep.c: Include "inferior.h".
17056 (amd64fbsd_get_thread_local_address): Pass down target.
17057 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17058 thread's gdbarch instead of target_gdbarch.
17059 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17060 get_last_target_status.
17061 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17062 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17063 inferiors.
17064 (update_inserted_breakpoint_locations): Skip if inferiors with no
17065 execution.
17066 (update_global_location_list): When handling moribund locations,
17067 find representative inferior for location's pspace, and use thread
17068 count of its process_stratum target.
17069 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17070 * bsd-uthread.c (bsd_uthread_target::wait): Use
17071 as_process_stratum_target and adjust thread_change_ptid and
17072 add_thread calls.
17073 (bsd_uthread_target::update_thread_list): Use
17074 as_process_stratum_target and adjust find_thread_ptid,
17075 thread_change_ptid and add_thread calls.
17076 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17077 find_thread_ptid call.
17078 * corelow.c (add_to_thread_list): Adjust add_thread call.
17079 (core_target_open): Adjust add_thread_silent and thread_count
17080 calls.
17081 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17082 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17083 * event-top.c (async_disconnect): Pop targets from all inferiors.
17084 * exec.c (add_target_sections): Push exec target on all inferiors
17085 sharing the program space.
17086 (remove_target_sections): Remove the exec target from all
17087 inferiors sharing the program space.
17088 (exec_on_vfork): New.
17089 * exec.h (exec_on_vfork): Declare.
17090 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17091 Pass it down.
17092 (fbsd_nat_target::update_thread_list): Adjust.
17093 (fbsd_nat_target::resume): Adjust.
17094 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17095 down.
17096 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17097 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17098 get_thread_arch_regcache call.
17099 * fork-child.c (gdb_startup_inferior): Pass target down to
17100 startup_inferior and set_executing.
17101 * gdbthread.h (struct process_stratum_target): Forward declare.
17102 (add_thread, add_thread_silent, add_thread_with_info)
17103 (in_thread_list): Add process_stratum_target parameter.
17104 (find_thread_ptid(inferior*, ptid_t)): New overload.
17105 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17106 parameter.
17107 (all_threads()): Delete overload.
17108 (all_threads, all_non_exited_threads): Add process_stratum_target
17109 parameter.
17110 (all_threads_safe): Use brace initialization.
17111 (thread_count): Add process_stratum_target parameter.
17112 (set_resumed, set_running, set_stop_requested, set_executing)
17113 (threads_are_executing, finish_thread_state): Add
17114 process_stratum_target parameter.
17115 (switch_to_thread): Use is_current_thread.
17116 * i386-fbsd-tdep.c: Include "inferior.h".
17117 (i386fbsd_get_thread_local_address): Pass down target.
17118 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17119 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17120 have_inferiors check.
17121 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17122 (inf_ptrace_target::attach): Adjust.
17123 * infcall.c (run_inferior_call): Adjust.
17124 * infcmd.c (run_command_1): Pass target to
17125 scoped_finish_thread_state.
17126 (proceed_thread_callback): Skip inferiors with no execution.
17127 (continue_command): Rename 'all_threads' local to avoid hiding
17128 'all_threads' function. Adjust get_last_target_status call.
17129 (prepare_one_step): Adjust set_running call.
17130 (signal_command): Use user_visible_resume_target. Compare thread
17131 pointers instead of inferior_ptid.
17132 (info_program_command): Adjust to pass down target.
17133 (attach_command): Mark target's 'thread_executing' flag.
17134 (stop_current_target_threads_ns): New, factored out from ...
17135 (interrupt_target_1): ... this. Switch inferior before making
17136 target calls.
17137 * inferior-iter.h
17138 (struct all_inferiors_iterator, struct all_inferiors_range)
17139 (struct all_inferiors_safe_range)
17140 (struct all_non_exited_inferiors_range): Filter on
17141 process_stratum_target too. Remove explicit.
17142 * inferior.c (inferior::inferior): Push dummy target on target
17143 stack.
17144 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17145 Add process_stratum_target parameter, and pass it down.
17146 (have_live_inferiors): Adjust.
17147 (switch_to_inferior_and_push_target): New.
17148 (add_inferior_command, clone_inferior_command): Handle
17149 "-no-connection" parameter. Use
17150 switch_to_inferior_and_push_target.
17151 (_initialize_inferior): Mention "-no-connection" option in
17152 the help of "add-inferior" and "clone-inferior" commands.
17153 * inferior.h: Include "process-stratum-target.h".
17154 (interrupt_target_1): Use bool.
17155 (struct inferior) <push_target, unpush_target, target_is_pushed,
17156 find_target_beneath, top_target, process_target, target_at,
17157 m_stack>: New.
17158 (discard_all_inferiors): Delete.
17159 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17160 (all_inferiors, all_non_exited_inferiors): Add
17161 process_stratum_target parameter.
17162 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17163 (target_last_proc_target): New global.
17164 (follow_fork_inferior): Push target on new inferior. Pass target
17165 to add_thread_silent. Call exec_on_vfork. Handle target's
17166 reference count.
17167 (follow_fork): Adjust get_last_target_status call. Also consider
17168 target.
17169 (follow_exec): Push target on new inferior.
17170 (struct execution_control_state) <target>: New field.
17171 (user_visible_resume_target): New.
17172 (do_target_resume): Call target_async.
17173 (resume_1): Set target's threads_executing flag. Consider resume
17174 target.
17175 (commit_resume_all_targets): New.
17176 (proceed): Also consider resume target. Skip threads of inferiors
17177 with no execution. Commit resumtion in all targets.
17178 (start_remote): Pass current inferior to wait_for_inferior.
17179 (infrun_thread_stop_requested): Consider target as well. Pass
17180 thread_info pointer to clear_inline_frame_state instead of ptid.
17181 (infrun_thread_thread_exit): Consider target as well.
17182 (random_pending_event_thread): New inferior parameter. Use it.
17183 (do_target_wait): Rename to ...
17184 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17185 down.
17186 (threads_are_resumed_pending_p, do_target_wait): New.
17187 (prepare_for_detach): Adjust calls.
17188 (wait_for_inferior): New inferior parameter. Handle it. Use
17189 do_target_wait_1 instead of do_target_wait.
17190 (fetch_inferior_event): Adjust. Switch to representative
17191 inferior. Pass target down.
17192 (set_last_target_status): Add process_stratum_target parameter.
17193 Save target in global.
17194 (get_last_target_status): Add process_stratum_target parameter and
17195 handle it.
17196 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17197 (context_switch): Check inferior_ptid == null_ptid before calling
17198 inferior_thread().
17199 (get_inferior_stop_soon): Pass down target.
17200 (wait_one): Rename to ...
17201 (poll_one_curr_target): ... this.
17202 (struct wait_one_event): New.
17203 (wait_one): New.
17204 (stop_all_threads): Adjust.
17205 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17206 event's target.
17207 (switch_back_to_stepped_thread): Also consider target.
17208 (print_stop_event): Update.
17209 (normal_stop): Update. Also consider the resume target.
17210 * infrun.h (wait_for_inferior): Remove declaration.
17211 (user_visible_resume_target): New declaration.
17212 (get_last_target_status, set_last_target_status): New
17213 process_stratum_target parameter.
17214 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17215 process_stratum_target parameter, and use it.
17216 (clear_inline_frame_state (thread_info*)): New.
17217 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17218 process_stratum_target parameter.
17219 (clear_inline_frame_state (thread_info*)): Declare.
17220 * linux-fork.c (delete_checkpoint_command): Pass target down to
17221 find_thread_ptid.
17222 (checkpoint_command): Adjust.
17223 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17224 instead of just tweaking inferior_ptid.
17225 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17226 (exit_lwp): Pass target down to find_thread_ptid.
17227 (attach_proc_task_lwp_callback): Pass target down to
17228 add_thread/set_running/set_executing.
17229 (linux_nat_target::attach): Pass target down to
17230 thread_change_ptid.
17231 (get_detach_signal): Pass target down to find_thread_ptid.
17232 Consider last target status's target.
17233 (linux_resume_one_lwp_throw, resume_lwp)
17234 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17235 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17236 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17237 (linux_nat_target::async_wait_fd): New.
17238 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17239 target down.
17240 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17241 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17242 * linux-thread-db.c (struct thread_db_info::process_target): New
17243 field.
17244 (add_thread_db_info): Save target.
17245 (get_thread_db_info): New process_stratum_target parameter. Also
17246 match target.
17247 (delete_thread_db_info): New process_stratum_target parameter.
17248 Also match target.
17249 (thread_from_lwp): Adjust to pass down target.
17250 (thread_db_notice_clone): Pass down target.
17251 (check_thread_db_callback): Pass down target.
17252 (try_thread_db_load_1): Always push the thread_db target.
17253 (try_thread_db_load, record_thread): Pass target down.
17254 (thread_db_target::detach): Pass target down. Always unpush the
17255 thread_db target.
17256 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17257 target down. Always unpush the thread_db target.
17258 (find_new_threads_callback, thread_db_find_new_threads_2)
17259 (thread_db_target::update_thread_list): Pass target down.
17260 (thread_db_target::pid_to_str): Pass current inferior down.
17261 (thread_db_target::get_thread_local_address): Pass target down.
17262 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17263 target down.
17264 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17265 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17266 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17267 (procfs_init_inferior): Rename to ...
17268 (procfs_target::procfs_init_inferior): ... this and adjust.
17269 (procfs_target::create_inferior, procfs_notice_thread)
17270 (procfs_do_thread_registers): Adjust.
17271 * ppc-fbsd-tdep.c: Include "inferior.h".
17272 (ppcfbsd_get_thread_local_address): Pass down target.
17273 * proc-service.c (ps_xfer_memory): Switch current inferior and
17274 program space as well.
17275 (get_ps_regcache): Pass target down.
17276 * process-stratum-target.c
17277 (process_stratum_target::thread_address_space)
17278 (process_stratum_target::thread_architecture): Pass target down.
17279 * process-stratum-target.h
17280 (process_stratum_target::threads_executing): New field.
17281 (as_process_stratum_target): New.
17282 * ravenscar-thread.c
17283 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17284 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17285 down.
17286 * record-btrace.c (record_btrace_target::info_record): Adjust.
17287 (record_btrace_target::record_method)
17288 (record_btrace_target::record_is_replaying)
17289 (record_btrace_target::fetch_registers)
17290 (get_thread_current_frame_id, record_btrace_target::resume)
17291 (record_btrace_target::wait, record_btrace_target::stop): Pass
17292 target down.
17293 * record-full.c (record_full_wait_1): Switch to event thread.
17294 Pass target down.
17295 * regcache.c (regcache::regcache)
17296 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17297 process_stratum_target parameter and handle it.
17298 (current_thread_target): New global.
17299 (get_thread_regcache): Add process_stratum_target parameter and
17300 handle it. Switch inferior before calling target method.
17301 (get_thread_regcache): Pass target down.
17302 (get_thread_regcache_for_ptid): Pass target down.
17303 (registers_changed_ptid): Add process_stratum_target parameter and
17304 handle it.
17305 (registers_changed_thread, registers_changed): Pass target down.
17306 (test_get_thread_arch_aspace_regcache): New.
17307 (current_regcache_test): Define a couple local test_target_ops
17308 instances and use them for testing.
17309 (readwrite_regcache): Pass process_stratum_target parameter.
17310 (cooked_read_test, cooked_write_test): Pass mock_target down.
17311 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17312 (get_thread_arch_aspace_regcache): Add process_stratum_target
17313 parameter.
17314 (regcache::target): New method.
17315 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17316 (regcache::registers_changed_ptid): Add process_stratum_target
17317 parameter.
17318 (regcache::m_target): New field.
17319 (registers_changed_ptid): Add process_stratum_target parameter.
17320 * remote.c (remote_state::supports_vCont_probed): New field.
17321 (remote_target::async_wait_fd): New method.
17322 (remote_unpush_and_throw): Add remote_target parameter.
17323 (get_current_remote_target): Adjust.
17324 (remote_target::remote_add_inferior): Push target.
17325 (remote_target::remote_add_thread)
17326 (remote_target::remote_notice_new_inferior)
17327 (get_remote_thread_info): Pass target down.
17328 (remote_target::update_thread_list): Skip threads of inferiors
17329 bound to other targets. (remote_target::close): Don't discard
17330 inferiors. (remote_target::add_current_inferior_and_thread)
17331 (remote_target::process_initial_stop_replies)
17332 (remote_target::start_remote)
17333 (remote_target::remote_serial_quit_handler): Pass down target.
17334 (remote_target::remote_unpush_target): New remote_target
17335 parameter. Unpush the target from all inferiors.
17336 (remote_target::remote_unpush_and_throw): New remote_target
17337 parameter. Pass it down.
17338 (remote_target::open_1): Check whether the current inferior has
17339 execution instead of checking whether any inferior is live. Pass
17340 target down.
17341 (remote_target::remote_detach_1): Pass down target. Use
17342 remote_unpush_target.
17343 (extended_remote_target::attach): Pass down target.
17344 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17345 (remote_target::append_resumption): Pass down target.
17346 (remote_target::append_pending_thread_resumptions)
17347 (remote_target::remote_resume_with_hc, remote_target::resume)
17348 (remote_target::commit_resume): Pass down target.
17349 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17350 (remote_target::interrupt_query)
17351 (remote_target::remove_new_fork_children)
17352 (remote_target::check_pending_events_prevent_wildcard_vcont)
17353 (remote_target::remote_parse_stop_reply)
17354 (remote_target::process_stop_reply): Pass down target.
17355 (first_remote_resumed_thread): New remote_target parameter. Pass
17356 it down.
17357 (remote_target::wait_as): Pass down target.
17358 (unpush_and_perror): New remote_target parameter. Pass it down.
17359 (remote_target::readchar, remote_target::remote_serial_write)
17360 (remote_target::getpkt_or_notif_sane_1)
17361 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17362 down target.
17363 (remote_target::mourn_inferior): Pass down target. Use
17364 remote_unpush_target.
17365 (remote_target::core_of_thread)
17366 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17367 (remote_target::pid_to_exec_file)
17368 (remote_target::thread_handle_to_thread_info): Pass down target.
17369 (remote_target::async_wait_fd): New.
17370 * riscv-fbsd-tdep.c: Include "inferior.h".
17371 (riscv_fbsd_get_thread_local_address): Pass down target.
17372 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17373 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17374 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17375 Adjust.
17376 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17377 * solib-svr4.c (enable_break): Pass down target.
17378 * spu-multiarch.c (parse_spufs_run): Pass down target.
17379 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17380 * target-delegates.c: Regenerate.
17381 * target.c (g_target_stack): Delete.
17382 (current_top_target): Return the current inferior's top target.
17383 (target_has_execution_1): Refer to the passed-in inferior's top
17384 target.
17385 (target_supports_terminal_ours): Check whether the initial
17386 inferior was already created.
17387 (decref_target): New.
17388 (target_stack::push): Incref/decref the target.
17389 (push_target, push_target, unpush_target): Adjust.
17390 (target_stack::unpush): Defref target.
17391 (target_is_pushed): Return bool. Adjust to refer to the current
17392 inferior's target stack.
17393 (dispose_inferior): Delete, and inline parts ...
17394 (target_preopen): ... here. Only dispose of the current inferior.
17395 (target_detach): Hold strong target reference while detaching.
17396 Pass target down.
17397 (target_thread_name): Add assertion.
17398 (target_resume): Pass down target.
17399 (target_ops::beneath, find_target_at): Adjust to refer to the
17400 current inferior's target stack.
17401 (get_dummy_target): New.
17402 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17403 has a thread running.
17404 (initialize_targets): Rename to ...
17405 (_initialize_target): ... this.
17406 * target.h: Include "gdbsupport/refcounted-object.h".
17407 (struct target_ops): Inherit refcounted_object.
17408 (target_ops::shortname, target_ops::longname): Make const.
17409 (target_ops::async_wait_fd): New method.
17410 (decref_target): Declare.
17411 (struct target_ops_ref_policy): New.
17412 (target_ops_ref): New typedef.
17413 (get_dummy_target): Declare function.
17414 (target_is_pushed): Return bool.
17415 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17416 (all_matching_threads_iterator::all_matching_threads_iterator):
17417 Handle filter target.
17418 * thread-iter.h (struct all_matching_threads_iterator, struct
17419 all_matching_threads_range, class all_non_exited_threads_range):
17420 Filter by target too. Remove explicit.
17421 * thread.c (threads_executing): Delete.
17422 (inferior_thread): Pass down current inferior.
17423 (clear_thread_inferior_resources): Pass down thread pointer
17424 instead of ptid_t.
17425 (add_thread_silent, add_thread_with_info, add_thread): Add
17426 process_stratum_target parameter. Use it for thread and inferior
17427 searches.
17428 (is_current_thread): New.
17429 (thread_info::deletable): Use it.
17430 (find_thread_ptid, thread_count, in_thread_list)
17431 (thread_change_ptid, set_resumed, set_running): New
17432 process_stratum_target parameter. Pass it down.
17433 (set_executing): New process_stratum_target parameter. Pass it
17434 down. Adjust reference to 'threads_executing'.
17435 (threads_are_executing): New process_stratum_target parameter.
17436 Adjust reference to 'threads_executing'.
17437 (set_stop_requested, finish_thread_state): New
17438 process_stratum_target parameter. Pass it down.
17439 (switch_to_thread): Also match inferior.
17440 (switch_to_thread): New process_stratum_target parameter. Pass it
17441 down.
17442 (update_threads_executing): Reimplement.
17443 * top.c (quit_force): Pop targets from all inferior.
17444 (gdb_init): Don't call initialize_targets.
17445 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17446 Declare.
17447 (windows_add_thread, windows_delete_thread): Adjust.
17448 (get_windows_debug_event): Rename to ...
17449 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17450 * tracefile-tfile.c (tfile_target_open): Pass down target.
17451 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17452 Forward declare.
17453 (switch_to_thread): Add process_stratum_target parameter.
17454 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17455 parameter. Use it.
17456 (mi_on_resume): Pass target down.
17457 * nat/fork-inferior.c (startup_inferior): Add
17458 process_stratum_target parameter. Pass it down.
17459 * nat/fork-inferior.h (startup_inferior): Add
17460 process_stratum_target parameter.
17461 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17462
17463 2020-01-10 Pedro Alves <palves@redhat.com>
17464
17465 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17466 directly. Instead find the first thread in the thread list and
17467 use switch_to_thread.
17468
17469 2020-01-10 Pedro Alves <palves@redhat.com>
17470
17471 * remote.c (remote_target::remote_add_inferior): Don't bind a
17472 process to the current inferior if the current inferior is already
17473 bound to a process.
17474
17475 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17476 Pedro Alves <palves@redhat.com>
17477
17478 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17479 If no process is specified, return null_ptid instead of
17480 inferior_ptid.
17481 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17482 TARGET_WAITKIND_SIGNALLED with no pid.
17483
17484 2020-01-10 Pedro Alves <palves@redhat.com>
17485
17486 * remote.c (first_remote_resumed_thread): New.
17487 (remote_target::wait_as): Use it as default event_ptid instead of
17488 inferior_ptid.
17489
17490 2020-01-10 Pedro Alves <palves@redhat.com>
17491
17492 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17493
17494 2020-01-10 Pedro Alves <palves@redhat.com>
17495
17496 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17497 not -1.
17498
17499 2020-01-10 Pedro Alves <palves@redhat.com>
17500
17501 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17502 ptid to get_last_target_status.
17503 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17504 ptid to get_last_target_status.
17505 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17506 get_last_target_status.
17507 (info_program_command): Don't pass a target_waitstatus to
17508 get_last_target_status.
17509 * infrun.c (init_wait_for_inferior): Use
17510 nullify_last_target_wait_ptid.
17511 (get_last_target_status): Handle nullptr arguments.
17512 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17513 (print_stop_event): Don't pass a ptid to get_last_target_status.
17514 (normal_stop): Don't pass a ptid to get_last_target_status.
17515 * infrun.h (get_last_target_status, set_last_target_status): Move
17516 comments here and update.
17517 (nullify_last_target_wait_ptid): Declare.
17518 * linux-fork.c (fork_load_infrun_state): Remove local extern
17519 declaration of nullify_last_target_wait_ptid.
17520 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17521 to get_last_target_status.
17522
17523 2020-01-10 Pedro Alves <palves@redhat.com>
17524
17525 * gdbthread.h (scoped_restore_current_thread)
17526 <dont_restore, restore, m_dont_restore>: Declare.
17527 * thread.c (thread_alive): Add assertion. Return bool.
17528 (switch_to_thread_if_alive): New.
17529 (prune_threads): Switch inferior/thread.
17530 (print_thread_info_1): Switch thread before calling target methods.
17531 (scoped_restore_current_thread::restore): New, factored out from
17532 ...
17533 (scoped_restore_current_thread::~scoped_restore_current_thread):
17534 ... this.
17535 (scoped_restore_current_thread::scoped_restore_current_thread):
17536 Add assertion.
17537 (thread_apply_all_command, thread_select): Use
17538 switch_to_thread_if_alive.
17539 * infrun.c (proceed, restart_threads, handle_signal_stop)
17540 (switch_back_to_stepped_thread): Switch current thread before
17541 calling target methods.
17542
17543 2020-01-10 Pedro Alves <palves@redhat.com>
17544
17545 * inferior.c (switch_to_inferior_no_thread): New function,
17546 factored out from ...
17547 (inferior_command): ... here.
17548 * inferior.h (switch_to_inferior_no_thread): Declare.
17549 * mi/mi-main.c (run_one_inferior): Use
17550 switch_to_inferior_no_thread.
17551
17552 2020-01-10 Pedro Alves <palves@redhat.com>
17553
17554 * infcmd.c (kill_command): Remove dead code.
17555
17556 2020-01-10 Pedro Alves <palves@redhat.com>
17557
17558 * remote.c (remote_target::mourn_inferior): No longer check
17559 whether the target is running.
17560
17561 2020-01-10 Pedro Alves <palves@redhat.com>
17562
17563 * corelow.c (core_target::has_execution): Change parameter type to
17564 inferior pointer.
17565 * inferior.c (number_of_live_inferiors): Use
17566 inferior::has_execution instead of target_has_execution_1.
17567 * inferior.h (inferior::has_execution): New.
17568 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17569 inferior::has_execution instead of target_has_execution_1.
17570 * process-stratum-target.c
17571 (process_stratum_target::has_execution): Change parameter type to
17572 inferior pointer. Check the inferior's PID instead of
17573 inferior_ptid.
17574 * process-stratum-target.h
17575 (process_stratum_target::has_execution): Change parameter type to
17576 inferior pointer.
17577 * record-full.c (record_full_core_target::has_execution): Change
17578 parameter type to inferior pointer.
17579 * target.c (target_has_execution_1): Change parameter type to
17580 inferior pointer.
17581 (target_has_execution_current): Adjust.
17582 * target.h (target_ops::has_execution): Change parameter type to
17583 inferior pointer.
17584 (target_has_execution_1): Change parameter type to inferior
17585 pointer. Change return type to bool.
17586 * tracefile.h (tracefile_target::has_execution): Change parameter
17587 type to inferior pointer.
17588
17589 2020-01-10 Pedro Alves <palves@redhat.com>
17590
17591 * exceptions.c (print_flush): Remove current_top_target() check.
17592
17593 2020-01-10 Pedro Alves <palves@redhat.com>
17594
17595 * remote.c (show_remote_exec_file): Show the current inferior's
17596 exec-file instead of the command variable's value.
17597
17598 2020-01-10 Pedro Alves <palves@redhat.com>
17599
17600 * record-full.c (record_full_resume_ptid): New global.
17601 (record_full_target::resume): Set it.
17602 (record_full_wait_1): Use record_full_resume_ptid instead of
17603 inferior_ptid.
17604
17605 2020-01-10 Pedro Alves <palves@redhat.com>
17606
17607 * gdbthread.h (scoped_restore_current_thread)
17608 <dont_restore, restore, m_dont_restore>: Declare.
17609 * thread.c (thread_alive): Add assertion. Return bool.
17610 (switch_to_thread_if_alive): New.
17611 (prune_threads): Switch inferior/thread.
17612 (print_thread_info_1): Switch thread before calling target methods.
17613 (scoped_restore_current_thread::restore): New, factored out from
17614 ...
17615 (scoped_restore_current_thread::~scoped_restore_current_thread):
17616 ... this.
17617 (scoped_restore_current_thread::scoped_restore_current_thread):
17618 Add assertion.
17619 (thread_apply_all_command, thread_select): Use
17620 switch_to_thread_if_alive.
17621
17622 2020-01-10 George Barrett <bob@bob131.so>
17623
17624 * stap-probe.c (stap_modify_semaphore): Don't check for null
17625 semaphores.
17626 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17627 for null semaphores.
17628
17629 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17630
17631 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17632 all source windows, and maintain horizontal scroll status while
17633 doing so.
17634
17635 2020-01-09 Tom Tromey <tom@tromey.com>
17636
17637 PR tui/18932:
17638 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17639 update_source_window, not print_source_lines.
17640
17641 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17642
17643 * tui/tui.c (tui_enable): Register tui hooks after calling
17644 tui_display_main.
17645
17646 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17647
17648 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17649
17650 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17651
17652 * thread.c (print_thread_info_1): Fix indentation.
17653
17654 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17655
17656 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17657 unique_xmalloc_ptr outside the if to always free the demangled name.
17658
17659 2020-01-08 Tom Tromey <tromey@adacore.com>
17660
17661 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17662 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17663 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17664 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17665 Remove.
17666 (section_offsets): New typedef.
17667 * symtab.c (fixup_section, get_msymbol_address): Update.
17668 * symmisc.c (dump_msymbols): Update.
17669 * symfile.h (relative_addr_info_to_section_offsets)
17670 (symfile_map_offsets_to_segments): Update.
17671 * symfile.c (build_section_addr_info_from_objfile)
17672 (init_objfile_sect_indices): Update.
17673 (struct place_section_arg): Change type of "offsets".
17674 (place_section): Update.
17675 (relative_addr_info_to_section_offsets): Change type of
17676 "section_offsets". Remove "num_sections" parameter.
17677 (default_symfile_offsets, syms_from_objfile_1)
17678 (set_objfile_default_section_offset): Update.
17679 (reread_symbols): No need to preserve section offsets by hand.
17680 (symfile_map_offsets_to_segments): Change type of "offsets".
17681 * stap-probe.c (relocate_address): Update.
17682 * stabsread.h (process_one_symbol): Update.
17683 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17684 (solib_target_relocate_section_addresses): Update.
17685 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17686 Update.
17687 * solib-frv.c (frv_relocate_main_executable): Update.
17688 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17689 * solib-aix.c (solib_aix_get_section_offsets): Change return
17690 type.
17691 (solib_aix_solib_create_inferior_hook): Update.
17692 * remote.c (remote_target::get_offsets): Update.
17693 * psymtab.c (find_pc_sect_psymtab): Update.
17694 * psympriv.h (struct partial_symbol) <address, text_low,
17695 text_high>: Update.
17696 * objfiles.h (obj_section_offset): Update.
17697 (struct objfile) <section_offsets>: Change type.
17698 <num_sections>: Remove.
17699 (objfile_relocate): Update.
17700 * objfiles.c (entry_point_address_query): Update
17701 (relocate_one_symbol): Change type of "section_offsets".
17702 (objfile_relocate1, objfile_relocate1): Change type of
17703 "new_offsets".
17704 (objfile_rebase1): Update.
17705 * mipsread.c (mipscoff_symfile_read): Update.
17706 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17707 parameter.
17708 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17709 (parse_external, psymtab_to_symtab_1): Update.
17710 * machoread.c (macho_symfile_offsets): Update.
17711 * ia64-tdep.c (ia64_find_unwind_table): Update.
17712 * hppa-tdep.c (read_unwind_info): Update.
17713 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17714 * dwarf2read.c (create_addrmap_from_index)
17715 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17716 (process_psymtab_comp_unit_reader, add_partial_symbol)
17717 (add_partial_subprogram, process_full_comp_unit)
17718 (read_file_scope, read_func_scope, read_lexical_block_scope)
17719 (read_call_site_scope, dwarf2_rnglists_process)
17720 (dwarf2_ranges_process, dwarf2_ranges_read)
17721 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17722 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17723 Update.
17724 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17725 Update.
17726 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17727 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17728 (process_one_symbol): Change type of "section_offsets".
17729 * ctfread.c (get_objfile_text_range): Update.
17730 * coffread.c (coff_symtab_read, enter_linenos)
17731 (process_coff_symbol): Update.
17732 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17733 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17734
17735 2020-01-08 Tom Tromey <tromey@adacore.com>
17736
17737 * dwarf2read.c (parse_macro_definition): Use std::string.
17738 (parse_macro_definition): Likewise.
17739
17740 2020-01-08 Tom Tromey <tromey@adacore.com>
17741
17742 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17743 (ATTR_ALLOC_CHUNK): Remove.
17744
17745 2020-01-08 Tom Tromey <tromey@adacore.com>
17746
17747 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17748
17749 2020-01-08 Tom Tromey <tromey@adacore.com>
17750
17751 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17752 (dwarf2_compute_name, open_dwo_file): Likewise.
17753 (process_enumeration_scope): Use std::vector.
17754 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17755 (partial_die_info::fixup, dwarf2_start_subfile)
17756 (guess_full_die_structure_name, dwarf2_name): Likewise.
17757 (determine_prefix): Update.
17758 (guess_full_die_structure_name): Make return type const.
17759 (partial_die_full_name): Return unique_xmalloc_ptr.
17760 (DW_FIELD_ALLOC_CHUNK): Remove.
17761
17762 2020-01-07 Tom Tromey <tromey@adacore.com>
17763
17764 PR build/24937:
17765 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17766
17767 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17768
17769 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17770
17771 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17772
17773 * stack.c (print_frame_info): Move disassemble_next_line code
17774 inside source_print block.
17775
17776 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17777
17778 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17779 gdb/signals.h, as we are now using native signal symbols.
17780
17781 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17782
17783 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17784 overflow by an early check of content vs threshold.
17785 * tui/tui-source.c (tui_source_window::line_is_displayed):
17786 Likewise.
17787
17788 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17789
17790 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17791
17792 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17793
17794 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17795 export table if no section contains it's RVA.
17796
17797 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17798
17799 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17800
17801 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17802
17803 * source.c (print_source_lines_base): Set last_line_listed.
17804
17805 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17806
17807 * tui/tui-disasm.c: Remove trailing spaces.
17808
17809 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17810 Pedro Alves <palves@redhat.com>
17811
17812 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17813 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17814 (windows_gdb_signal_to_target): New function, uses the above
17815 enumeration to convert GDB internal signal codes to equivalent
17816 Windows codes.
17817 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17818 * windows-nat.c: Include "gdb_wait.h".
17819 (get_windows_debug_event): Extract the fatal exception from the
17820 exit status and convert to the equivalent Posix signal number.
17821 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17822 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17823 * gdbsupport/gdb_wait.c: New file, implements
17824 windows_status_to_termsig.
17825 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17826 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17827
17828 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17829
17830 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17831 show_layout.
17832
17833 2020-01-05 Luis Machado <luis.machado@linaro.org>
17834
17835 * aarch64-linux-nat.c
17836 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17837 and bfd_mach_aarch64.
17838
17839 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17840
17841 * ui-file.c (stdio_file::can_emit_style_escape)
17842 (tee_file::can_emit_style_escape): Ensure style is used also on
17843 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17844 to gdb_stdout.
17845 * main.c (set_gdb_data_directory): Use file style to output the
17846 warning that the given pathname is not a directory.
17847 * top.c (show_history_filename, gdb_safe_append_history)
17848 (show_gdb_datadir): Use file style.
17849
17850 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17851
17852 * solib-target.c (struct lm_info_target):
17853 Change offsets to be a unique_xmalloc_ptr.
17854 (solib_target_relocate_section_addresses): Update.
17855
17856 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17857
17858 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17859
17860 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17861
17862 * MAINTAINERS (Write After Approval): Add myself.
17863
17864 2020-01-02 Luis Machado <luis.machado@linaro.org>
17865
17866 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17867 Cell BE architecture.
17868 * target.h (struct target_ops) <thread_architecture>: Likewise.
17869
17870 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17871
17872 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17873
17874 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17875
17876 * MAINTAINERS (Write After Approval): Add myself.
17877
17878 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17879
17880 * gdbarch.sh: Update copyright year range of generated files.
17881
17882 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17883
17884 Update copyright year range in all GDB files.
17885
17886 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17887
17888 * copyright.py: Convert to Python 3.
17889
17890 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17891
17892 * copyright.py: Adapt after move of gnulib directory from gdb
17893 directory to toplevel directory.
17894
17895 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17896
17897 * copyright.py (main): Exit if run from the wrong directory.
17898
17899 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17900
17901 * top.c (print_gdb_version): Change copyright year to 2020.
17902
17903 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17904
17905 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17906
17907 For older changes see ChangeLog-2019.
17908 \f
17909 Local Variables:
17910 mode: change-log
17911 left-margin: 8
17912 fill-column: 74
17913 version-control: never
17914 coding: utf-8
17915 End:
This page took 0.363565 seconds and 5 git commands to generate.