gmp-utils: protect gdb_mpz exports against out-of-range values
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-06 Joel Brobecker <brobecker@adacore.com>
2
3 * gmp-utils.h (gdb_mpz::safe_export): New private method.
4 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
5 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
6 (gdb_mpz::safe_export): New method.
7 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
8 Update function description.
9 (check_as_integer_raises_out_of_range_error): New function.
10 (gdb_mpz_as_integer_out_of_range): New function.
11 (_initialize_gmp_utils_selftests): Register
12 gdb_mpz_as_integer_out_of_range as a selftest.
13
14 2020-12-05 Joel Brobecker <brobecker@adacore.com>
15
16 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
17 TARGET_CHAR_BIT.
18 (gdb_mpz::write): Likewise.
19
20 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
21
22 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
23 number of displaced step buffers.
24
25 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
26
27 * displaced-stepping.h (struct displaced_step_buffer): Rename
28 to...
29 (struct displaced_step_buffers): ... this.
30 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
31 <struct displaced_step_buffer>: New inner class.
32 <m_buffers>: New.
33 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
34 to...
35 (displaced_step_buffers::prepare): ... this, adjust for multiple
36 buffers.
37 (displaced_step_buffer::finish): Rename to...
38 (displaced_step_buffers::finish): ... this, adjust for multiple
39 buffers.
40 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
41 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
42 adjust for multiple buffers.
43 (displaced_step_buffer::restore_in_ptid): Rename to...
44 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
45 multiple buffers.
46 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
47 for num_disp_step_buffers.
48 * linux-tdep.c (struct linux_gdbarch_data)
49 <num_disp_step_buffers>: New field.
50 (struct linux_info) <disp_step_buf>: Rename to...
51 <disp_step_bufs>: ... this, change type to
52 displaced_step_buffers.
53 (linux_displaced_step_prepare): Use
54 linux_gdbarch_data::num_disp_step_buffers to create that number
55 of buffers.
56 (linux_displaced_step_finish): Adjust.
57 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
58 (linux_displaced_step_restore_all_in_ptid): Adjust.
59 (linux_init_abi): Change supports_displaced_step parameter for
60 num_disp_step_buffers, save it in linux_gdbarch_data.
61 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
62 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
63 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
64 supports_displaced_step parameter for num_disp_step_buffers.
65 (amd64_linux_init_abi): Adjust.
66 (amd64_x32_linux_init_abi): Adjust.
67 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
68 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
69 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
70 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
71 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
72 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
73 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
74 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
75 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
76 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
77 * m68k-linux-tdep.c (m68k_linux_init_abi):
78 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
79 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
80 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
81 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
82 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
83 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
84 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
85 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
86 Change type to displaced_step_buffers.
87 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
88 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
89 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
90 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
91 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
92 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
93 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
94
95 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
96
97 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
98 obkstack.
99 (_initialize_linux_tdep): Register pre-init gdb data instead of
100 post-init.
101
102 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
103
104 * displaced-stepping.h (struct
105 displaced_step_copy_insn_closure): Adjust comments.
106 (struct displaced_step_inferior_state) <step_thread,
107 step_gdbarch, step_closure, step_original, step_copy,
108 step_saved_copy>: Remove fields.
109 (struct displaced_step_thread_state): New.
110 (struct displaced_step_buffer): New.
111 * displaced-stepping.c (displaced_step_buffer::prepare): New.
112 (write_memory_ptid): Move from infrun.c.
113 (displaced_step_instruction_executed_successfully): New,
114 factored out of displaced_step_finish.
115 (displaced_step_buffer::finish): New.
116 (displaced_step_buffer::copy_insn_closure_by_addr): New.
117 (displaced_step_buffer::restore_in_ptid): New.
118 * gdbarch.sh (displaced_step_location): Remove.
119 (displaced_step_prepare, displaced_step_finish,
120 displaced_step_copy_insn_closure_by_addr,
121 displaced_step_restore_all_in_ptid): New.
122 * gdbarch.c: Re-generate.
123 * gdbarch.h: Re-generate.
124 * gdbthread.h (class thread_info) <displaced_step_state>: New
125 field.
126 (thread_step_over_chain_remove): New declaration.
127 (thread_step_over_chain_next): New declaration.
128 (thread_step_over_chain_length): New declaration.
129 * thread.c (thread_step_over_chain_remove): Make non-static.
130 (thread_step_over_chain_next): New.
131 (global_thread_step_over_chain_next): Use
132 thread_step_over_chain_next.
133 (thread_step_over_chain_length): New.
134 (global_thread_step_over_chain_enqueue): Add debug print.
135 (global_thread_step_over_chain_remove): Add debug print.
136 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
137 Remove.
138 * infrun.c (get_displaced_stepping_state): New.
139 (displaced_step_in_progress_any_inferior): Remove.
140 (displaced_step_in_progress_thread): Adjust.
141 (displaced_step_in_progress): Adjust.
142 (displaced_step_in_progress_any_thread): New.
143 (get_displaced_step_copy_insn_closure_by_addr): Remove.
144 (gdbarch_supports_displaced_stepping): Use
145 gdbarch_displaced_step_prepare_p.
146 (displaced_step_reset): Change parameter from inferior to
147 thread.
148 (displaced_step_prepare_throw): Implement using
149 gdbarch_displaced_step_prepare.
150 (write_memory_ptid): Move to displaced-step.c.
151 (displaced_step_restore): Remove.
152 (displaced_step_finish): Implement using
153 gdbarch_displaced_step_finish.
154 (start_step_over): Allow starting more than one displaced step.
155 (prepare_for_detach): Handle possibly multiple threads doing
156 displaced steps.
157 (handle_inferior_event): Handle possibility that fork event
158 happens while another thread displaced steps.
159 * linux-tdep.h (linux_displaced_step_prepare): New.
160 (linux_displaced_step_finish): New.
161 (linux_displaced_step_copy_insn_closure_by_addr): New.
162 (linux_displaced_step_restore_all_in_ptid): New.
163 (linux_init_abi): Add supports_displaced_step parameter.
164 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
165 (linux_displaced_step_prepare): New.
166 (linux_displaced_step_finish): New.
167 (linux_displaced_step_copy_insn_closure_by_addr): New.
168 (linux_displaced_step_restore_all_in_ptid): New.
169 (linux_init_abi): Add supports_displaced_step parameter,
170 register displaced step methods if true.
171 (_initialize_linux_tdep): Register inferior_execd observer.
172 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
173 supports_displaced_step parameter, adjust call to
174 linux_init_abi. Remove call to
175 set_gdbarch_displaced_step_location.
176 (amd64_linux_init_abi): Adjust call to
177 amd64_linux_init_abi_common.
178 (amd64_x32_linux_init_abi): Likewise.
179 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
180 linux_init_abi. Remove call to
181 set_gdbarch_displaced_step_location.
182 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
183 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
184 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
185 linux_init_abi.
186 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
187 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
188 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
189 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
190 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
191 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
192 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
193 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
194 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
195 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
196 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
197 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
198 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
199 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
200 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
201 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
202 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
203 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
204 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
205 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
206 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
207 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
208 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
209 linux_init_abi. Remove call to
210 set_gdbarch_displaced_step_location.
211 * arm-tdep.c (arm_pc_is_thumb): Call
212 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
213 get_displaced_step_copy_insn_closure_by_addr.
214 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
215 clear gdbarch methods.
216 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
217 (get_ppc_per_inferior): New function.
218 (ppc_displaced_step_prepare): New function.
219 (ppc_displaced_step_finish): New function.
220 (ppc_displaced_step_restore_all_in_ptid): New function.
221 (rs6000_gdbarch_init): Register new gdbarch methods.
222 * s390-tdep.c (s390_gdbarch_init): Don't call
223 set_gdbarch_displaced_step_location, set new gdbarch methods.
224
225 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
226
227 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
228 * aarch64-tdep.h: Include displaced-stepping.h.
229 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
230 Move here.
231 (displaced_step_copy_insn_closure_up): Move here.
232 (struct buf_displaced_step_copy_insn_closure): Move here.
233 (struct displaced_step_inferior_state): Move here.
234 (debug_displaced): Move here.
235 (displaced_debug_printf_1): Move here.
236 (displaced_debug_printf): Move here.
237 * displaced-stepping.c: New file.
238 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
239 * gdbarch.h: Re-generate.
240 * inferior.h: Include displaced-stepping.h.
241 * infrun.h (debug_displaced): Move to displaced-stepping.h.
242 (displaced_debug_printf_1): Likewise.
243 (displaced_debug_printf): Likewise.
244 (struct displaced_step_copy_insn_closure): Likewise.
245 (displaced_step_copy_insn_closure_up): Likewise.
246 (struct buf_displaced_step_copy_insn_closure): Likewise.
247 (struct displaced_step_inferior_state): Likewise.
248 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
249 (displaced_debug_printf_1): Likewise.
250 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
251 Likewise.
252 (_initialize_infrun): Don't register "set/show debug displaced".
253
254 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
255
256 * linux-tdep.c (get_linux_inferior_data): Add inferior
257 parameter.
258 (linux_vsyscall_range): Pass current inferior.
259
260 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
261
262 * infrun.c (displaced_step_prepare_throw): Change return type to
263 displaced_step_prepare_status.
264 (displaced_step_prepare): Likewise.
265 (displaced_step_finish): Change return type to
266 displaced_step_finish_status.
267 (resume_1): Adjust.
268 (stop_all_threads): Adjust.
269 * displaced-stepping.h: New file.
270
271 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
272
273 * infrun.c (displaced_step_fixup): Rename to...
274 (displaced_step_finish): ... this, update all callers.
275
276 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
277
278 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
279 (get_displaced_step_copy_insn_closure_by_addr): ... this.
280 Update all users.
281 (displaced_step_closure): Rename to...
282 (displaced_step_copy_insn_closure): ... this. Update all users.
283 (displaced_step_closure_up): Rename to...
284 (displaced_step_copy_insn_closure_up). ... this. Update all
285 users.
286 (buf_displaced_step_closure): Rename to...
287 (buf_displaced_step_copy_insn_closure): ... this. Update all
288 users.
289 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
290 (get_displaced_step_copy_insn_closure_by_addr): ... this.
291 Update all users.
292 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
293 (aarch64_displaced_step_copy_insn_closure): ... this. Update
294 all users.
295 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
296 (amd64_displaced_step_copy_insn_closure): ... this. Update all
297 users.
298 * arm-tdep.h (arm_displaced_step_closure): Rename to...
299 (arm_displaced_step_copy_insn_closure): ... this. Update all
300 users.
301 * i386-tdep.h (i386_displaced_step_closure): Rename to...
302 (i386_displaced_step_copy_insn_closure): ... this. Update all
303 users.
304 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
305 (ppc_displaced_step_copy_insn_closure): ... this. Update all
306 users.
307 * s390-tdep.c (s390_displaced_step_closure): Rename to...
308 (s390_displaced_step_copy_insn_closure): ... this. Update all
309 users.
310 * gdbarch.h: Re-generate.
311 * gdbarch.c: Re-generate.
312
313 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
314
315 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
316 (global_thread_step_over_chain_enqueue): ... this. Update all
317 users.
318 (thread_step_over_chain_remove): Rename to...
319 (global_thread_step_over_chain_remove): ... this. Update all
320 users.
321 (thread_step_over_chain_next): Rename to...
322 (global_thread_step_over_chain_next): ... this. Update all
323 users.
324 * infrun.h (step_over_queue_head): Rename to...
325 (global_thread_step_over_chain_head): ... this. Update all
326 users.
327 * infrun.c (step_over_queue_head): Rename to...
328 (global_thread_step_over_chain_head): ... this. Update all
329 users.
330 * thread.c (step_over_chain_remove): Rename to...
331 (thread_step_over_chain_remove): ... this. Update all users.
332 (thread_step_over_chain_next): Rename to...
333 (global_thread_step_over_chain_next): ... this. Update all
334 users.
335 (thread_step_over_chain_enqueue): Rename to...
336 (global_thread_step_over_chain_enqueue): ... this. Update all
337 users.
338 (thread_step_over_chain_remove): Rename to...
339 (global_thread_step_over_chain_remove): ... this. Update all
340 users.
341
342 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
343
344 * infrun.c (get_displaced_stepping_state): Remove, change
345 callers to access the field directly.
346
347 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
348
349 * infrun.c (handle_inferior_event): Restore displaced step
350 buffer bytes in child process when handling fork, even if fork
351 happened in another thread than the displaced-stepping one.
352
353 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
354
355 * infrun.c (infrun_inferior_execd): New function.
356 (_initialize_infrun): Attach inferior_execd observer.
357
358 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
359
360 * observable.h (inferior_execd): Declare new observable.
361 * observable.c (inferior_execd): Declare new observable.
362 * infrun.c (follow_exec): Notify inferior_execd observer.
363 * jit.c (jit_inferior_created_hook): Make static.
364 (_initialize_jit): Register inferior_execd observer.
365 * jit.h (jit_inferior_created_hook): Remove declaration.
366 * solib.c (_initialize_solib): Register inferior_execd observer.
367
368 2020-12-04 Tom de Vries <tdevries@suse.de>
369
370 PR gdb/27003
371 * completer.c (completion_tracker::build_completion_result): Don't
372 access match_list[0][-1].
373
374 2020-12-04 Tom Tromey <tromey@adacore.com>
375
376 * linespec.c (struct linespec_token): Rename; remove typedef.
377 * guile/scm-block.c (struct block_smob): Remove typedef.
378 (struct block_syms_progress_smob): Likewise.
379 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
380 * guile/scm-symtab.c (symtab_smob): Remove typedef.
381 (struct sal_smob): Remove typedef.
382 * guile/scm-param.c (struct param_smob): Remove typedef.
383 * guile/scm-progspace.c (struct pspace_smob): Rename.
384 * guile/scm-objfile.c (struct objfile_smob): Rename.
385 * guile/scm-iterator.c (struct iterator_smob): Rename.
386 * guile/scm-frame.c (struct frame_smob): Rename.
387 * guile/scm-arch.c (struct arch_smob): Rename.
388 * guile/scm-type.c (struct field_smob): Remove typedef.
389 (struct type_smob): Rename.
390 * guile/scm-cmd.c (struct command_smob): Remove typedef.
391 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
392 * guile/scm-value.c (struct value_smob): Remove typedef.
393 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
394 * guile/guile-internal.h (struct scheme_variable)
395 (struct scheme_function, struct scheme_integer_constant)
396 (struct gdb_smob, struct chained_gdb_smob)
397 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
398 (objfile_smob, pspace_smob, type_smob): Remove typedef.
399 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
400 (struct pretty_printer_worker_smob): Remove typedef.
401 * guile/scm-exception.c (struct exception_smob): Remove typedef.
402 * python/py-block.c (struct block_object): Remove typedef.
403 (block_syms_iterator_object): Update.
404 (set_block): Update.
405 (block_syms_iterator_object): Remove typedef.
406 * python/py-inferior.c (struct membuf_object): Remove typedef.
407 * python/py-symtab.c (struct symtab_object): Remove typedef.
408 (set_symtab): Update.
409 (sal_object): Remove typedef.
410 (set_sal): Update.
411 * python/py-frame.c (frame_object): Remove typedef.
412 * python/py-record-btrace.c (struct btpy_list_object): Remove
413 typedef.
414 * python/py-arch.c (struct arch_object): Remove typedef.
415 * python/py-linetable.c (struct linetable_entry_object)
416 (linetable_object, struct ltpy_iterator_object): Remove typedef.
417 * python/py-events.h (eventregistry_object): Remove typedef.
418 (struct events_object): Remove typedef.
419 * python/python-internal.h (gdbpy_breakpoint_object): Remove
420 typedef.
421 (thread_object): Remove typedef.
422 * python/py-progspace.c (pspace_object): Remove typedef.
423 * python/py-value.c (struct value_object): Remove typedef.
424 * python/py-record.h (recpy_record_object): Remove typedef.
425 (struct recpy_element_object): Remove typedef.
426 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
427 * python/py-objfile.c (objfile_object): Remove typedef.
428 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
429 * python/py-type.c (type_object): Remove typedef.
430 (typy_iterator_object): Update.
431 (set_type): Update.
432 (field_object): Remove typedef.
433 (typy_iterator_object): Remove typedef.
434 * python/py-registers.c (register_descriptor_iterator_object):
435 Remove typedef.
436 (struct register_descriptor_object)
437 (struct reggroup_iterator_object, struct reggroup_object): Remove
438 typedef.
439 * python/py-record.c (recpy_gap_object): Remove typedef.
440 * python/py-symbol.c (symbol_object): Remove typedef.
441 (set_symbol): Update.
442 * python/py-event.h (event_object): Remove typedef.
443 * python/py-param.c (parmpy_object): Remove typedef.
444 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
445 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
446 (unwind_info_object, struct cached_frame_info): Likewise.
447
448 2020-12-04 Tom Tromey <tromey@adacore.com>
449
450 * value.c (value_internal_function_name): Make return type const.
451 * value.h (value_internal_function_name): Make return type const.
452
453 2020-12-04 Luis Machado <luis.machado@linaro.org>
454
455 * aarch64-tdep.c (submask, bit, bits): Remove.
456 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
457 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
458 (aarch64_decode_cb, aarch64_decode_tb)
459 (aarch64_decode_ldr_literal): Use sbits to extract a signed
460 immediate.
461 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
462
463 2020-12-04 Tom de Vries <tdevries@suse.de>
464
465 PR tdep/27007
466 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
467
468 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
469
470 PR gdb/26876
471 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
472 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
473
474 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
475
476 * arch/riscv.c: Include 'rv32e-xregs.c'.
477 (riscv_create_target_description): Update to handle rv32e.
478 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
479 member variable.
480 <operator==>: Update to account for new field.
481 <hash>: Likewise.
482 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
483 * features/riscv/rv32e-xregs.c: Generated.
484 * features/riscv/rv32e-xregs.xml: New file.
485 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
486 file.
487 (riscv_debug_infcall): Likewise.
488 (riscv_debug_unwinder): Likewise.
489 (riscv_debug_gdbarch): Likewise.
490 (enum riscv_register_required_status): Delete.
491 (struct riscv_register_feature): Add constructor, delete default
492 constructor, copy, and assign constructors.
493 (struct riscv_register_feature::register_info) <required>: Delete.
494 <check>: Update comment and arguments.
495 (struct riscv_register_feature) <name>: Change to member function.
496 <prefer_first_name>: Delete.
497 <tdesc_feature>: New member function.
498 <registers>: Rename to...
499 <m_registers>: ...this.
500 <m_feature_name>: New member variable.
501 (riscv_register_feature::register_info::check): Update arguments.
502 (riscv_xreg_feature): Rewrite as class, create a single static
503 instance of the class.
504 (riscv_freg_feature): Likewise.
505 (riscv_virtual_feature): Likewise.
506 (riscv_csr_feature): Likewise.
507 (riscv_create_csr_aliases): Has become a member function inside
508 riscv_csr_feature class.
509 (riscv_abi_embedded): New function definition.
510 (riscv_register_name): Adjust to use new feature objects.
511 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
512 and adjust available argument registers.
513 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
514 (riscv_check_tdesc_feature): Delete.
515 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
516 (riscv_gdbarch_init): Delete target description checking code, and
517 instead call to the new feature objects to perform the checks.
518 Reorder handling of no abi information case, allows small code
519 simplification.
520 (_initialize_riscv_tdep): Remove call, this is now done in the
521 riscv_csr_feature constructor.
522 * riscv-tdep.h (riscv_abi_embedded): Declare.
523
524 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
525
526 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
527 DECLARE_CSR_ALIAS.
528
529 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
530
531 * riscv-tdep.c (riscv_is_unknown_csr): New function,
532 implementation moved from riscv_register_reggroup_p.
533 (riscv_register_reggroup_p): Update group handling for unknown
534 CSRs.
535
536 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
537
538 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
539 (dwarf2_get_dwz_file): Convert 'filename' to a
540 std::string. Use dwz_search_other_debugdirs to search for DWZ
541 files in the debug-file-directories provided by the user as well.
542
543 2020-12-01 Tom Tromey <tom@tromey.com>
544
545 * parse.c (expr_builder::expr_builder): Initialize expout.
546 (expr_builder::release): Use expression::resize.
547 (expression::expression, expression::~expression)
548 (expression::resize): New methods.
549 (write_exp_elt): Use expression::resize.
550 (prefixify_expression): Update.
551 (increase_expout_size): Use expression::resize.
552 * expression.h (struct expression): Add constructor, destructor.
553 <resize>: New method.
554 (expression_up): Change type.
555
556 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
557 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
558 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
559 set region.
560
561 2020-11-30 Tom de Vries <tdevries@suse.de>
562
563 PR symtab/26905
564 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
565 is_reference parameter.
566 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
567
568 2020-11-30 Tom Tromey <tom@tromey.com>
569
570 * rust-lang.c (rust_op_name): Remove.
571 (exp_descriptor_rust): Update.
572 * parser-defs.h (op_name_standard): Don't declare.
573 (struct exp_descriptor) <op_name>: Remove.
574 * parse.c (exp_descriptor_standard): Update.
575 * opencl-lang.c (exp_descriptor_opencl): Update.
576 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
577 * f-lang.c (op_name_f): Remove.
578 (f_language::exp_descriptor_tab): Update.
579 * expression.h (op_name): Update.
580 * expprint.c (op_name): Rewrite.
581 (op_name_standard): Remove.
582 (dump_raw_expression, dump_subexp): Update.
583 * c-lang.c (exp_descriptor_c): Update.
584 * ax-gdb.c (gen_expr): Update.
585 * ada-lang.c (ada_op_name): Remove.
586 (ada_exp_descriptor): Update.
587
588 2020-11-30 Tom Tromey <tom@tromey.com>
589
590 * eval.c (init_array_element): Remove.
591 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
592
593 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
594
595 PR tui/26973
596 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
597 static locator win info.
598
599 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
600
601 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
602 program.
603
604 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
605
606 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
607 is always initialized.
608
609 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
610 * MAINTAINERS (Write After Approval): Add myself.
611
612 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
613
614 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
615 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
616
617 2020-11-25 Tom Tromey <tom@tromey.com>
618
619 * eval.c (evaluate_subexp_standard): Remove unnecessary
620 variables.
621
622 2020-11-25 Tom Tromey <tom@tromey.com>
623
624 * d-lang.c: Include parser-defs.h.
625 * rust-lang.c: Include parser-defs.h.
626 * c-lang.h: Do not include parser-defs.h.
627
628 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
629
630 * regcache.h (struct cached_reg): Remove typedef.
631
632 2020-11-24 Joel Brobecker <brobecker@adacore.com>
633
634 * README: Fix the URL of the MPFR library.
635
636 2020-11-24 Joel Brobecker <brobecker@adacore.com>
637
638 * README: Document the --with-libgmp-prefix configure option.
639
640 2020-11-24 Joel Brobecker <brobecker@adacore.com>
641
642 * NEWS: Add entry documenting support for DWARF-based fixed
643 point types.
644
645 2020-11-24 Joel Brobecker <brobecker@adacore.com>
646
647 * NEWS: Document that building GDB now requires GMP.
648
649 2020-11-24 Joel Brobecker <brobecker@adacore.com>
650
651 * typeprint.c (print_type_scalar): Add handling of
652 TYPE_CODE_FIXED_POINT.
653
654 2020-11-24 Joel Brobecker <brobecker@adacore.com>
655
656 * valarith.c (fixed_point_binop): Replace the
657 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
658 users accordingly.
659
660 2020-11-24 Joel Brobecker <brobecker@adacore.com>
661
662 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
663 replacing fixed_point_scaling_factor. All callers updated
664 throughout this project.
665 (fixed_point_scaling_factor): Delete declaration.
666 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
667 fixed_point_scaling_factor. Adjust implementation accordingly.
668
669 2020-11-24 Joel Brobecker <brobecker@adacore.com>
670
671 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
672 replacing the fixed_point_type_base_type function. All callers
673 updated throughout this project.
674 (fixed_point_type_base_type): Remove declaration.
675 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
676 fixed_point_type_base_type. Adjust implementation accordingly.
677
678 2020-11-24 Joel Brobecker <brobecker@adacore.com>
679
680 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
681 New methods.
682 (INIT_FIXED_POINT_SPECIFIC): Adjust.
683 (TYPE_FIXED_POINT_INFO): Delete macro.
684 (allocate_fixed_point_type_info): Change return type to void.
685 * gdbtypes.c (copy_type_recursive): Replace the use of
686 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
687 (fixed_point_scaling_factor): Likewise.
688 (allocate_fixed_point_type_info): Change return type to void.
689 Adjust implementation accordingly.
690 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
691 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
692
693 2020-11-24 Joel Brobecker <brobecker@adacore.com>
694
695 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
696 into one single gdb::array_view parameter.
697 (gdb_mpz::write): Likewise.
698 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
699 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
700 into one single gdb::array_view parameter.
701 Adjust implementation accordingly.
702 (gdb_mpz::write): Likewise.
703 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
704 * unittests/gmp-utils-selftests.c: Adapt following changes above.
705 * valarith.c, valops.c, valprint.c, value.c: Likewise.
706
707 2020-11-24 Joel Brobecker <brobecker@adacore.com>
708
709 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
710 Change return type to std::string. Update all callers.
711 * gmp-utils.c (gmp_string_printf): Likewise.
712
713 2020-11-24 Joel Brobecker <brobecker@adacore.com>
714
715 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
716 instead of mpq_set_ui to initialize our GMP rational.
717
718 2020-11-23 Tom de Vries <tdevries@suse.de>
719
720 * debuginfod-support.c (debuginfod_source_query)
721 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
722
723 2020-11-21 Tom Tromey <tom@tromey.com>
724
725 * breakpoint.c (watchpoint_exp_is_const): Return bool.
726
727 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
728
729 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
730 Pass 2.0 to pow.
731 (gdb_mpz_write_all_from_small): Likewise.
732
733 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
734
735 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
736 of abs.
737
738 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
739
740 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
741 ctf_arc_open_by_name.
742
743 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
744
745 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
746 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
747
748 2020-11-20 Pedro Alves <pedro@palves.net>
749
750 * language.c (language_arch_info::lookup_primitive_type): Use
751 gdb::function_view instead of gdb::function.
752 (template language_lookup_primitive_type): Rename to ...
753 (language_lookup_primitive_type_1): ... this, and make static.
754 (language_lookup_primitive_type(const struct language_defn *,
755 struct gdbarch *, const char *): Make non-template.
756 (language_lookup_primitive_type(const struct language_defn *,
757 struct gdbarch *, std::function<bool (struct type *)>): Make
758 non-template and use gdb::function_view.
759 * language.h (language_arch_info::lookup_primitive_type): Use
760 gdb::function_view instead of std::function.
761 (language_lookup_primitive_type): No longer template.
762 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
763 lambda instead of a std::function.
764
765 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
766
767 PR tdep/26916
768 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
769 and STOCFH.
770
771 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
772
773 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
774
775 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
776
777 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
778 in `loop_cb` parameter.
779 * gdbarch.c: Re-generate.
780 * gdbarch.h: Re-generate.
781 * arch-utils.c (default_read_core_file_mappings): Remove `other`
782 parameter.
783 * arch-utils.h (default_read_core_file_mappings): Likewise.
784 * corelow.c (core_target::build_file_mappings): Likewise.
785 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
786 (linux_core_info_proc_mappings): Likewise.
787
788 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
789
790 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
791 * NEWS: Mention new options.
792 * f-array-walker.h: New file.
793 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
794 (repack_array_slices): New static global.
795 (show_repack_array_slices): New function.
796 (fortran_array_slicing_debug): New static global.
797 (show_fortran_array_slicing_debug): New function.
798 (value_f90_subarray): Delete.
799 (skip_undetermined_arglist): Delete.
800 (class fortran_array_repacker_base_impl): New class.
801 (class fortran_lazy_array_repacker_impl): New class.
802 (class fortran_array_repacker_impl): New class.
803 (fortran_value_subarray): Complete rewrite.
804 (set_fortran_list): New static global.
805 (show_fortran_list): Likewise.
806 (_initialize_f_language): Register new commands.
807 (fortran_adjust_dynamic_array_base_address_hack): New function.
808 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
809 Declare.
810 * f-valprint.c: Include 'f-array-walker.h'.
811 (class fortran_array_printer_impl): New class.
812 (f77_print_array_1): Delete.
813 (f77_print_array): Delete.
814 (fortran_print_array): New.
815 (f_value_print_inner): Update to call fortran_print_array.
816 * gdbtypes.c: Include 'f-lang.h'.
817 (resolve_dynamic_type_internal): Call
818 fortran_adjust_dynamic_array_base_address_hack.
819
820 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
821
822 * breakpoint.c (struct watch_options): New struct.
823 (watch_option_defs): New static global.
824 (make_watch_options_def_group): New function.
825 (watch_maybe_just_location): Convert option parsing.
826 (watch_command_completer): New function.
827 (_initialize_breakpoint): Build help text using options mechanism.
828
829 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
830
831 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
832 (watch_command_1): Update parameter types. Convert locals to
833 bool.
834 (watch_command_wrapper): Change parameter type.
835 (watch_maybe_just_location): Change locals to bool.
836 (rwatch_command_wrapper): Update parameter type.
837 (awatch_command_wrapper): Update parameter type.
838 * breakpoint.h (watch_command_wrapper): Change parameter type.
839 (rwatch_command_wrapper): Update parameter type.
840 (awatch_command_wrapper): Update parameter type.
841 * eval.c (fetch_subexp_value): Change parameter type.
842 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
843 'false' not '0'.
844 * value.h (fetch_subexp_value): Change parameter type in
845 declaration.
846
847 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
850 skip_spaces.
851
852 2020-11-18 Keith Seitz <keiths@redhat.com>
853
854 * linux-tdep.c (dump_note_entry_p): Return true instead of
855 checking `filename'.
856
857 2020-11-18 Tom de Vries <tdevries@suse.de>
858
859 * debuginfod-support.c (debuginfod_source_query)
860 (debuginfod_debuginfo_query): Also do early exit if
861 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
862
863 2020-11-18 Tom de Vries <tdevries@suse.de>
864
865 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
866 warning.
867
868 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
869
870 * gdbtypes.h (get_array_bounds): Return bool, adjust some
871 callers. Move doc here.
872 * gdbtypes.c (get_array_bounds): Return bool
873
874 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
875
876 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
877 assert.
878 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
879 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
880 case to the default.
881
882 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
883
884 * printcmd.c: Include 'safe-ctype.c'.
885 (skip_over_slash_fmt): New function.
886 (print_command_completer): Call skip_over_slash_fmt.
887 (display_and_x_command_completer): New function.
888 (_initialize_printcmd): Add command completion for 'x' and
889 'display'.
890
891 2020-11-16 Pedro Alves <pedro@palves.net>
892
893 * frame.c (get_prev_frame): Move get_frame_id call from here ...
894 (get_prev_frame_always_1): ... to here.
895 * inline-frame.c (inline_frame_this_id): Mention
896 get_prev_frame_always_1 in comment.
897
898 2020-11-15 Joel Brobecker <brobecker@adacore.com>
899
900 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
901 handling.
902 (value_less): Add fixed-point handling.
903
904 2020-11-15 Joel Brobecker <brobecker@adacore.com>
905
906 * eval.c (binop_promote): Add fixed-point type handling.
907 * valarith.c (fixed_point_binop): New function.
908 (scalar_binop): Add fixed-point type handling.
909 (value_neg): Add fixed-point type handling.
910 * valops.c (value_cast_to_fixed_point): New function.
911 (value_cast): Add fixed-point type handling.
912
913 2020-11-15 Joel Brobecker <brobecker@adacore.com>
914
915 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
916 range types.
917 * c-typeprint.c (c_type_print_varspec_prefix)
918 (c_type_print_varspec_suffix, c_type_print_base_1): Add
919 TYPE_CODE_FIXED_POINT handling.
920 * p-typeprint.c (pascal_type_print_varspec_prefix)
921 (pascal_type_print_varspec_suffix): Likewise.
922 * typeprint.c (print_type_fixed_point): New function.
923 * typeprint.h (print_type_fixed_point): Add declaration.
924
925 2020-11-15 Joel Brobecker <brobecker@adacore.com>
926
927 * printcmd.c (print_scalar_formatted): Add fixed-point type
928 handling when options->format is set.
929
930 2020-11-15 Joel Brobecker <brobecker@adacore.com>
931
932 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
933 * dwarf2/read.c (get_dwarf2_rational_constant)
934 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
935 (has_zero_over_zero_small_attribute): New functions.
936 read_base_type, set_die_type): Add fixed-point type handling.
937 * gdb-gdb.py.in: Add fixed-point type handling.
938 * gdbtypes.c: #include "gmp-utils.h".
939 (create_range_type, set_type_code): Add fixed-point type handling.
940 (init_fixed_point_type): New function.
941 (is_integral_type, is_scalar_type): Add fixed-point type handling.
942 (print_fixed_point_type_info): New function.
943 (recursive_dump_type, copy_type_recursive): Add fixed-point type
944 handling.
945 (fixed_point_type_storage): New typedef.
946 (fixed_point_objfile_key): New static global.
947 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
948 (fixed_point_type_base_type, fixed_point_scaling_factor): New
949 functions.
950 * gdbtypes.h: #include "gmp-utils.h".
951 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
952 (union type_specific) <fixed_point_info>: New field.
953 (struct fixed_point_type_info): New struct.
954 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
955 (init_fixed_point_type, is_fixed_point_type)
956 (fixed_point_type_base_type, fixed_point_scaling_factor)
957 (allocate_fixed_point_type_info): Add declarations.
958 * valprint.c (generic_val_print_fixed_point): New function.
959 (generic_value_print): Add fixed-point type handling.
960 * value.c (value_as_address, unpack_long): Add fixed-point type
961 handling.
962
963 2020-11-15 Joel Brobecker <brobecker@adacore.com>
964
965 * utils.h (uinteger_pow): Add declaration.
966 * utils.c (uinteger_pow): Moved here (without changes)...
967 * valarith.c (uinteger_pow): ... from here.
968
969 2020-11-15 Joel Brobecker <brobecker@adacore.com>
970
971 * gmp-utils.h, gmp-utils.c: New file.
972 * unittests/gmp-utils-selftests.c: New file.
973 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
974 unittests/gmp-utils-selftests.c.
975 (COMMON_SFILES) Add gmp-utils.c.
976 (HFILES_NO_SRCDIR): Add gmp-utils.h.
977
978 2020-11-15 Joel Brobecker <brobecker@adacore.com>
979
980 * configure.ac: Generate an error if a usable GMP library
981 could not be found.
982 * configure: Regenerate.
983
984 2020-11-15 Joel Brobecker <brobecker@adacore.com>
985
986 * configure.ac: Add support for --with-libgmp-prefix.
987 * Makefile.in (LIBGMP): New variable.
988 (CLIBS): Include $(LIBGMP).
989 * configure, config.in: Regenerate
990
991 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
992
993 PR cli/26879
994 * f-exp.y (COMPLETE): New token.
995 (exp): Two new rules for tab-completion.
996 (saw_name_at_eof): New static global.
997 (last_was_structop): Likewise.
998 (yylex): Set new variables, and return COMPLETE token at the end
999 of the input stream in some cases.
1000
1001 2020-11-14 Tom Tromey <tom@tromey.com>
1002
1003 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1004
1005 2020-11-14 Tom Tromey <tom@tromey.com>
1006
1007 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1008
1009 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1010
1011 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1012
1013 2020-11-13 Tom Tromey <tom@tromey.com>
1014
1015 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1016 (convert_escape, parse_one_string): Constify.
1017
1018 2020-11-13 Keith Seitz <keiths@redhat.com>
1019
1020 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1021 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1022 outside of ELF segments" warning for debugin
1023
1024 2020-11-13 Keith Seitz <keiths@redhat.com>
1025
1026 PR gdb/23034
1027 * elfread.c (elf_symfile_segments): Output a BFD file name
1028 for the "Loadable section ... outside of ELF segments" warning.
1029
1030 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1031
1032 PR gdb/26835
1033 * arm-tdep.c (class arm_instruction_reader): New.
1034 (target_arm_instruction_reader): New.
1035 (arm_analyze_prologue): Add instruction reader parameter and use
1036 it. Use arm_expand_immediate.
1037 (class target_arm_instruction_reader): Adjust.
1038 (arm_skip_prologue): Adjust.
1039 (arm_expand_immediate): New.
1040 (arm_scan_prologue): Adjust.
1041 (arm_analyze_prologue_test): New.
1042 (class test_arm_instruction_reader): New.
1043
1044 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1045
1046 * f-lang.c (fortran_argument_convert): Add declaration. Add
1047 header comment, taken from f-lang.h. Make static.
1048 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1049 (fortran_argument_convert): Delete declaration.
1050
1051 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1052
1053 * ada-exp.y (find_primitive_type): Make parameter const.
1054 * ada-lang.c (enum ada_primitive_types): Delete.
1055 (ada_language::language_arch_info): Update.
1056 * c-lang.c (enum c_primitive_types): Delete.
1057 (c_language_arch_info): Update.
1058 (enum cplus_primitive_types): Delete.
1059 (cplus_language::language_arch_info): Update.
1060 * d-lang.c (enum d_primitive_types): Delete.
1061 (d_language::language_arch_info): Update.
1062 * f-lang.c (enum f_primitive_types): Delete.
1063 (f_language::language_arch_info): Update.
1064 * go-lang.c (enum go_primitive_types): Delete.
1065 (go_language::language_arch_info): Update.
1066 * language.c (auto_or_unknown_language::language_arch_info):
1067 Update.
1068 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1069 (language_string_char_type): Add header comment, call function in
1070 language_arch_info.
1071 (language_bool_type): Likewise
1072 (language_arch_info::bool_type): Define.
1073 (language_lookup_primitive_type_1): Delete.
1074 (language_lookup_primitive_type): Rewrite as a templated function
1075 to call function in language_arch_info, then instantiate twice.
1076 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1077 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1078 (language_arch_info::lookup_primitive_type): Define twice with
1079 different signatures.
1080 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1081 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1082 member function in language_arch_info.
1083 * language.h (language_arch_info): Complete rewrite.
1084 (language_lookup_primitive_type): Make templated.
1085 * m2-lang.c (enum m2_primitive_types): Delete.
1086 (m2_language::language_arch_info): Update.
1087 * opencl-lang.c (OCL_P_TYPE): Delete.
1088 (enum opencl_primitive_types): Delete.
1089 (opencl_type_data): Delete.
1090 (builtin_opencl_type): Delete.
1091 (lookup_opencl_vector_type): Update.
1092 (opencl_language::language_arch_info): Update, lots of content
1093 moved from...
1094 (build_opencl_types): ...here. This function is now deleted.
1095 (_initialize_opencl_language): Delete.
1096 * p-lang.c (enum pascal_primitive_types): Delete.
1097 (pascal_language::language_arch_info): Update.
1098 * rust-lang.c (enum rust_primitive_types): Delete.
1099 (rust_language::language_arch_info): Update.
1100
1101 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1102
1103 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1104 dwarf2_queue_guard.
1105
1106 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1107
1108 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1109 comment.
1110
1111 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1112
1113 * dwarf2/read.c (dwarf_read_debug_printf,
1114 dwarf_read_debug_printf_v): New macros, use throughout the file.
1115
1116 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1117
1118 PR tdep/27015
1119 * arc-linux-tdep.c (collect_register): Populate "eret" by
1120 "pc" value from the regcache when asked for "pc" value.
1121
1122 2020-11-12 Tom Tromey <tom@tromey.com>
1123
1124 PR rust/26799:
1125 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1126 exist.
1127
1128 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1129
1130 * features/Makefile (XMLTOC): Add rx.xml.
1131 (FEATURE_XMLFILES): Remove rx.xml.
1132 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1133 * features/rx.c: Regenerate.
1134 * features/rx.xml: Wrap in `target` tags, and reindent.
1135 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1136 structure.
1137 (maint_print_c_tdesc_opt_def): New typedef.
1138 (maint_print_c_tdesc_opt_defs): New static global.
1139 (make_maint_print_c_tdesc_options_def_group): New function.
1140 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1141 print single feature C file for target descriptions containing a
1142 single feature.
1143 (maint_print_c_tdesc_cmd_completer): New function.
1144 (_initialize_target_descriptions): Update call to register command
1145 completer, and include command line flag in help text.
1146
1147 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1148
1149 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1150 numbers.
1151 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1152 enum values.
1153
1154 2020-11-10 Tom Tromey <tom@tromey.com>
1155
1156 * value.h (internalvar_name): Update.
1157 * value.c (internalvar_name): Make return type const.
1158
1159 2020-11-10 Tom Tromey <tom@tromey.com>
1160
1161 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1162 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1163 const.
1164
1165 2020-11-10 Tom Tromey <tom@tromey.com>
1166
1167 * objc-lang.h (value_nsstring): Update.
1168 * objc-lang.c (value_nsstring): Make "ptr" const.
1169
1170 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1171
1172 * expprint.c (print_subexp_funcall): Increment expression position
1173 after reading argument count.
1174 * f-lang.c (print_subexp_f): Skip over opcode before calling
1175 common function.
1176 (dump_subexp_body_f): Likewise.
1177
1178 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1179
1180 PR python/26832
1181 * configure: Regenerate.
1182 * configure.ac: Check for python modules ctypes instead of
1183 itertools.
1184
1185 2020-11-06 Pedro Alves <pedro@palves.net>
1186
1187 * macroexp.c (struct macro_buffer): Split in two classes. Add
1188 uses adjusted.
1189 (struct shared_macro_buffer): New, factored out from struct
1190 macro_buffer.
1191 (struct growable_macro_buffer): New, factored out from struct
1192 macro_buffer.
1193 (set_token, get_comment, get_identifier, get_pp_number)
1194 (get_character_constant, get_string_literal, get_punctuator)
1195 (get_next_token_for_substitution): Constify parameters.
1196 (substitute_args): Constify locals.
1197
1198 2020-11-05 Tom Tromey <tom@tromey.com>
1199
1200 * dwarf2/read.c (read_cutu_die_from_dwo)
1201 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1202 (build_type_psymtabs_1): Update.
1203 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1204 parameter.
1205 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1206 Don't read section. Add assert.
1207
1208 2020-11-04 Tom Tromey <tromey@adacore.com>
1209
1210 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1211
1212 2020-11-04 Tom Tromey <tromey@adacore.com>
1213
1214 * ada-typeprint.c (ada_print_type): Handle __T types.
1215
1216 2020-11-04 Tom Tromey <tromey@adacore.com>
1217
1218 * dwarf2/read.c (add_partial_symbol, process_die):
1219 Handle DW_TAG_array_type.
1220 (is_type_tag_for_partial): Add "lang" parameter.
1221 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1222
1223 2020-11-04 Tom Tromey <tromey@adacore.com>
1224
1225 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1226
1227 2020-11-04 Tom Tromey <tromey@adacore.com>
1228
1229 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1230 array.
1231
1232 2020-11-04 Tom Tromey <tromey@adacore.com>
1233
1234 * gdbtypes.c (update_static_array_size): Handle bit stride.
1235
1236 2020-11-04 Tom Tromey <tromey@adacore.com>
1237
1238 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1239
1240 2020-11-04 Tom Tromey <tromey@adacore.com>
1241
1242 * ada-lang.c (ada_is_any_packed_array_type): New function.
1243 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1244
1245 2020-11-04 Tom Tromey <tromey@adacore.com>
1246
1247 * dwarf2/read.c (recognize_bound_expression)
1248 (quirk_ada_thick_pointer): New functions.
1249 (read_array_type): Call quirk_ada_thick_pointer.
1250 (set_die_type): Add "skip_data_location" parameter.
1251 (quirk_ada_thick_pointer): New function.
1252 (process_structure_scope): Call quirk_ada_thick_pointer.
1253 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1254 (decode_packed_array_bitsize): Handle thick pointers without
1255 parallel types.
1256 (ada_is_gnat_encoded_packed_array_type): Rename from
1257 ada_is_packed_array_type.
1258 (ada_is_constrained_packed_array_type): Update.
1259 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1260 (ada_value_print_1): Use ada_get_decoded_value.
1261
1262 2020-11-04 Tom Tromey <tromey@adacore.com>
1263
1264 * ada-lang.c (recursively_update_array_bitsize): New function.
1265 (decode_constrained_packed_array_type): Call it.
1266
1267 2020-11-04 Tom Tromey <tromey@adacore.com>
1268
1269 * ada-lang.c (to_fixed_array_type): Error if
1270 decode_constrained_packed_array_type returns NULL.
1271
1272 2020-11-04 Tom Tromey <tromey@adacore.com>
1273
1274 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1275
1276 2020-11-02 Tom Tromey <tromey@adacore.com>
1277
1278 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1279 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1280 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1281 * amd64-ravenscar-thread.c: New file.
1282 * amd64-ravenscar-thread.h: New file.
1283 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1284 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1285
1286 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1287
1288 * main.c (execute_cmdargs): New function.
1289 (captured_main_1): Make use of execute_cmdargs.
1290
1291 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1292
1293 * NEWS: Mention changes to config file search path.
1294 * main.c
1295
1296 2020-11-02 Tom Tromey <tromey@adacore.com>
1297
1298 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1299 (python_GdbModuleDef): Move earlier. Now static.
1300 (do_start_initialization): Consolidate some IS_PY3K blocks.
1301
1302 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1303
1304 * aarch64-linux-tdep.c: Fix indentation.
1305 * aarch64-ravenscar-thread.c: Fix indentation.
1306 * aarch64-tdep.c: Fix indentation.
1307 * aarch64-tdep.h: Fix indentation.
1308 * ada-lang.c: Fix indentation.
1309 * ada-lang.h: Fix indentation.
1310 * ada-tasks.c: Fix indentation.
1311 * ada-typeprint.c: Fix indentation.
1312 * ada-valprint.c: Fix indentation.
1313 * ada-varobj.c: Fix indentation.
1314 * addrmap.c: Fix indentation.
1315 * addrmap.h: Fix indentation.
1316 * agent.c: Fix indentation.
1317 * aix-thread.c: Fix indentation.
1318 * alpha-bsd-nat.c: Fix indentation.
1319 * alpha-linux-tdep.c: Fix indentation.
1320 * alpha-mdebug-tdep.c: Fix indentation.
1321 * alpha-nbsd-tdep.c: Fix indentation.
1322 * alpha-obsd-tdep.c: Fix indentation.
1323 * alpha-tdep.c: Fix indentation.
1324 * amd64-bsd-nat.c: Fix indentation.
1325 * amd64-darwin-tdep.c: Fix indentation.
1326 * amd64-linux-nat.c: Fix indentation.
1327 * amd64-linux-tdep.c: Fix indentation.
1328 * amd64-nat.c: Fix indentation.
1329 * amd64-obsd-tdep.c: Fix indentation.
1330 * amd64-tdep.c: Fix indentation.
1331 * amd64-windows-tdep.c: Fix indentation.
1332 * annotate.c: Fix indentation.
1333 * arc-tdep.c: Fix indentation.
1334 * arch-utils.c: Fix indentation.
1335 * arch/arm-get-next-pcs.c: Fix indentation.
1336 * arch/arm.c: Fix indentation.
1337 * arm-linux-nat.c: Fix indentation.
1338 * arm-linux-tdep.c: Fix indentation.
1339 * arm-nbsd-tdep.c: Fix indentation.
1340 * arm-pikeos-tdep.c: Fix indentation.
1341 * arm-tdep.c: Fix indentation.
1342 * arm-tdep.h: Fix indentation.
1343 * arm-wince-tdep.c: Fix indentation.
1344 * auto-load.c: Fix indentation.
1345 * auxv.c: Fix indentation.
1346 * avr-tdep.c: Fix indentation.
1347 * ax-gdb.c: Fix indentation.
1348 * ax-general.c: Fix indentation.
1349 * bfin-linux-tdep.c: Fix indentation.
1350 * block.c: Fix indentation.
1351 * block.h: Fix indentation.
1352 * blockframe.c: Fix indentation.
1353 * bpf-tdep.c: Fix indentation.
1354 * break-catch-sig.c: Fix indentation.
1355 * break-catch-syscall.c: Fix indentation.
1356 * break-catch-throw.c: Fix indentation.
1357 * breakpoint.c: Fix indentation.
1358 * breakpoint.h: Fix indentation.
1359 * bsd-uthread.c: Fix indentation.
1360 * btrace.c: Fix indentation.
1361 * build-id.c: Fix indentation.
1362 * buildsym-legacy.h: Fix indentation.
1363 * buildsym.c: Fix indentation.
1364 * c-typeprint.c: Fix indentation.
1365 * c-valprint.c: Fix indentation.
1366 * c-varobj.c: Fix indentation.
1367 * charset.c: Fix indentation.
1368 * cli/cli-cmds.c: Fix indentation.
1369 * cli/cli-decode.c: Fix indentation.
1370 * cli/cli-decode.h: Fix indentation.
1371 * cli/cli-script.c: Fix indentation.
1372 * cli/cli-setshow.c: Fix indentation.
1373 * coff-pe-read.c: Fix indentation.
1374 * coffread.c: Fix indentation.
1375 * compile/compile-cplus-types.c: Fix indentation.
1376 * compile/compile-object-load.c: Fix indentation.
1377 * compile/compile-object-run.c: Fix indentation.
1378 * completer.c: Fix indentation.
1379 * corefile.c: Fix indentation.
1380 * corelow.c: Fix indentation.
1381 * cp-abi.h: Fix indentation.
1382 * cp-namespace.c: Fix indentation.
1383 * cp-support.c: Fix indentation.
1384 * cp-valprint.c: Fix indentation.
1385 * cris-linux-tdep.c: Fix indentation.
1386 * cris-tdep.c: Fix indentation.
1387 * darwin-nat-info.c: Fix indentation.
1388 * darwin-nat.c: Fix indentation.
1389 * darwin-nat.h: Fix indentation.
1390 * dbxread.c: Fix indentation.
1391 * dcache.c: Fix indentation.
1392 * disasm.c: Fix indentation.
1393 * dtrace-probe.c: Fix indentation.
1394 * dwarf2/abbrev.c: Fix indentation.
1395 * dwarf2/attribute.c: Fix indentation.
1396 * dwarf2/expr.c: Fix indentation.
1397 * dwarf2/frame.c: Fix indentation.
1398 * dwarf2/index-cache.c: Fix indentation.
1399 * dwarf2/index-write.c: Fix indentation.
1400 * dwarf2/line-header.c: Fix indentation.
1401 * dwarf2/loc.c: Fix indentation.
1402 * dwarf2/macro.c: Fix indentation.
1403 * dwarf2/read.c: Fix indentation.
1404 * dwarf2/read.h: Fix indentation.
1405 * elfread.c: Fix indentation.
1406 * eval.c: Fix indentation.
1407 * event-top.c: Fix indentation.
1408 * exec.c: Fix indentation.
1409 * exec.h: Fix indentation.
1410 * expprint.c: Fix indentation.
1411 * f-lang.c: Fix indentation.
1412 * f-typeprint.c: Fix indentation.
1413 * f-valprint.c: Fix indentation.
1414 * fbsd-nat.c: Fix indentation.
1415 * fbsd-tdep.c: Fix indentation.
1416 * findvar.c: Fix indentation.
1417 * fork-child.c: Fix indentation.
1418 * frame-unwind.c: Fix indentation.
1419 * frame-unwind.h: Fix indentation.
1420 * frame.c: Fix indentation.
1421 * frv-linux-tdep.c: Fix indentation.
1422 * frv-tdep.c: Fix indentation.
1423 * frv-tdep.h: Fix indentation.
1424 * ft32-tdep.c: Fix indentation.
1425 * gcore.c: Fix indentation.
1426 * gdb_bfd.c: Fix indentation.
1427 * gdbarch.sh: Fix indentation.
1428 * gdbarch.c: Re-generate
1429 * gdbarch.h: Re-generate.
1430 * gdbcore.h: Fix indentation.
1431 * gdbthread.h: Fix indentation.
1432 * gdbtypes.c: Fix indentation.
1433 * gdbtypes.h: Fix indentation.
1434 * glibc-tdep.c: Fix indentation.
1435 * gnu-nat.c: Fix indentation.
1436 * gnu-nat.h: Fix indentation.
1437 * gnu-v2-abi.c: Fix indentation.
1438 * gnu-v3-abi.c: Fix indentation.
1439 * go32-nat.c: Fix indentation.
1440 * guile/guile-internal.h: Fix indentation.
1441 * guile/scm-cmd.c: Fix indentation.
1442 * guile/scm-frame.c: Fix indentation.
1443 * guile/scm-iterator.c: Fix indentation.
1444 * guile/scm-math.c: Fix indentation.
1445 * guile/scm-ports.c: Fix indentation.
1446 * guile/scm-pretty-print.c: Fix indentation.
1447 * guile/scm-value.c: Fix indentation.
1448 * h8300-tdep.c: Fix indentation.
1449 * hppa-linux-nat.c: Fix indentation.
1450 * hppa-linux-tdep.c: Fix indentation.
1451 * hppa-nbsd-nat.c: Fix indentation.
1452 * hppa-nbsd-tdep.c: Fix indentation.
1453 * hppa-obsd-nat.c: Fix indentation.
1454 * hppa-tdep.c: Fix indentation.
1455 * hppa-tdep.h: Fix indentation.
1456 * i386-bsd-nat.c: Fix indentation.
1457 * i386-darwin-nat.c: Fix indentation.
1458 * i386-darwin-tdep.c: Fix indentation.
1459 * i386-dicos-tdep.c: Fix indentation.
1460 * i386-gnu-nat.c: Fix indentation.
1461 * i386-linux-nat.c: Fix indentation.
1462 * i386-linux-tdep.c: Fix indentation.
1463 * i386-nto-tdep.c: Fix indentation.
1464 * i386-obsd-tdep.c: Fix indentation.
1465 * i386-sol2-nat.c: Fix indentation.
1466 * i386-tdep.c: Fix indentation.
1467 * i386-tdep.h: Fix indentation.
1468 * i386-windows-tdep.c: Fix indentation.
1469 * i387-tdep.c: Fix indentation.
1470 * i387-tdep.h: Fix indentation.
1471 * ia64-libunwind-tdep.c: Fix indentation.
1472 * ia64-libunwind-tdep.h: Fix indentation.
1473 * ia64-linux-nat.c: Fix indentation.
1474 * ia64-linux-tdep.c: Fix indentation.
1475 * ia64-tdep.c: Fix indentation.
1476 * ia64-tdep.h: Fix indentation.
1477 * ia64-vms-tdep.c: Fix indentation.
1478 * infcall.c: Fix indentation.
1479 * infcmd.c: Fix indentation.
1480 * inferior.c: Fix indentation.
1481 * infrun.c: Fix indentation.
1482 * iq2000-tdep.c: Fix indentation.
1483 * language.c: Fix indentation.
1484 * linespec.c: Fix indentation.
1485 * linux-fork.c: Fix indentation.
1486 * linux-nat.c: Fix indentation.
1487 * linux-tdep.c: Fix indentation.
1488 * linux-thread-db.c: Fix indentation.
1489 * lm32-tdep.c: Fix indentation.
1490 * m2-lang.c: Fix indentation.
1491 * m2-typeprint.c: Fix indentation.
1492 * m2-valprint.c: Fix indentation.
1493 * m32c-tdep.c: Fix indentation.
1494 * m32r-linux-tdep.c: Fix indentation.
1495 * m32r-tdep.c: Fix indentation.
1496 * m68hc11-tdep.c: Fix indentation.
1497 * m68k-bsd-nat.c: Fix indentation.
1498 * m68k-linux-nat.c: Fix indentation.
1499 * m68k-linux-tdep.c: Fix indentation.
1500 * m68k-tdep.c: Fix indentation.
1501 * machoread.c: Fix indentation.
1502 * macrocmd.c: Fix indentation.
1503 * macroexp.c: Fix indentation.
1504 * macroscope.c: Fix indentation.
1505 * macrotab.c: Fix indentation.
1506 * macrotab.h: Fix indentation.
1507 * main.c: Fix indentation.
1508 * mdebugread.c: Fix indentation.
1509 * mep-tdep.c: Fix indentation.
1510 * mi/mi-cmd-catch.c: Fix indentation.
1511 * mi/mi-cmd-disas.c: Fix indentation.
1512 * mi/mi-cmd-env.c: Fix indentation.
1513 * mi/mi-cmd-stack.c: Fix indentation.
1514 * mi/mi-cmd-var.c: Fix indentation.
1515 * mi/mi-cmds.c: Fix indentation.
1516 * mi/mi-main.c: Fix indentation.
1517 * mi/mi-parse.c: Fix indentation.
1518 * microblaze-tdep.c: Fix indentation.
1519 * minidebug.c: Fix indentation.
1520 * minsyms.c: Fix indentation.
1521 * mips-linux-nat.c: Fix indentation.
1522 * mips-linux-tdep.c: Fix indentation.
1523 * mips-nbsd-tdep.c: Fix indentation.
1524 * mips-tdep.c: Fix indentation.
1525 * mn10300-linux-tdep.c: Fix indentation.
1526 * mn10300-tdep.c: Fix indentation.
1527 * moxie-tdep.c: Fix indentation.
1528 * msp430-tdep.c: Fix indentation.
1529 * namespace.h: Fix indentation.
1530 * nat/fork-inferior.c: Fix indentation.
1531 * nat/gdb_ptrace.h: Fix indentation.
1532 * nat/linux-namespaces.c: Fix indentation.
1533 * nat/linux-osdata.c: Fix indentation.
1534 * nat/netbsd-nat.c: Fix indentation.
1535 * nat/x86-dregs.c: Fix indentation.
1536 * nbsd-nat.c: Fix indentation.
1537 * nbsd-tdep.c: Fix indentation.
1538 * nios2-linux-tdep.c: Fix indentation.
1539 * nios2-tdep.c: Fix indentation.
1540 * nto-procfs.c: Fix indentation.
1541 * nto-tdep.c: Fix indentation.
1542 * objfiles.c: Fix indentation.
1543 * objfiles.h: Fix indentation.
1544 * opencl-lang.c: Fix indentation.
1545 * or1k-tdep.c: Fix indentation.
1546 * osabi.c: Fix indentation.
1547 * osabi.h: Fix indentation.
1548 * osdata.c: Fix indentation.
1549 * p-lang.c: Fix indentation.
1550 * p-typeprint.c: Fix indentation.
1551 * p-valprint.c: Fix indentation.
1552 * parse.c: Fix indentation.
1553 * ppc-linux-nat.c: Fix indentation.
1554 * ppc-linux-tdep.c: Fix indentation.
1555 * ppc-nbsd-nat.c: Fix indentation.
1556 * ppc-nbsd-tdep.c: Fix indentation.
1557 * ppc-obsd-nat.c: Fix indentation.
1558 * ppc-ravenscar-thread.c: Fix indentation.
1559 * ppc-sysv-tdep.c: Fix indentation.
1560 * ppc64-tdep.c: Fix indentation.
1561 * printcmd.c: Fix indentation.
1562 * proc-api.c: Fix indentation.
1563 * producer.c: Fix indentation.
1564 * producer.h: Fix indentation.
1565 * prologue-value.c: Fix indentation.
1566 * prologue-value.h: Fix indentation.
1567 * psymtab.c: Fix indentation.
1568 * python/py-arch.c: Fix indentation.
1569 * python/py-bpevent.c: Fix indentation.
1570 * python/py-event.c: Fix indentation.
1571 * python/py-event.h: Fix indentation.
1572 * python/py-finishbreakpoint.c: Fix indentation.
1573 * python/py-frame.c: Fix indentation.
1574 * python/py-framefilter.c: Fix indentation.
1575 * python/py-inferior.c: Fix indentation.
1576 * python/py-infthread.c: Fix indentation.
1577 * python/py-objfile.c: Fix indentation.
1578 * python/py-prettyprint.c: Fix indentation.
1579 * python/py-registers.c: Fix indentation.
1580 * python/py-signalevent.c: Fix indentation.
1581 * python/py-stopevent.c: Fix indentation.
1582 * python/py-stopevent.h: Fix indentation.
1583 * python/py-threadevent.c: Fix indentation.
1584 * python/py-tui.c: Fix indentation.
1585 * python/py-unwind.c: Fix indentation.
1586 * python/py-value.c: Fix indentation.
1587 * python/py-xmethods.c: Fix indentation.
1588 * python/python-internal.h: Fix indentation.
1589 * python/python.c: Fix indentation.
1590 * ravenscar-thread.c: Fix indentation.
1591 * record-btrace.c: Fix indentation.
1592 * record-full.c: Fix indentation.
1593 * record.c: Fix indentation.
1594 * reggroups.c: Fix indentation.
1595 * regset.h: Fix indentation.
1596 * remote-fileio.c: Fix indentation.
1597 * remote.c: Fix indentation.
1598 * reverse.c: Fix indentation.
1599 * riscv-linux-tdep.c: Fix indentation.
1600 * riscv-ravenscar-thread.c: Fix indentation.
1601 * riscv-tdep.c: Fix indentation.
1602 * rl78-tdep.c: Fix indentation.
1603 * rs6000-aix-tdep.c: Fix indentation.
1604 * rs6000-lynx178-tdep.c: Fix indentation.
1605 * rs6000-nat.c: Fix indentation.
1606 * rs6000-tdep.c: Fix indentation.
1607 * rust-lang.c: Fix indentation.
1608 * rx-tdep.c: Fix indentation.
1609 * s12z-tdep.c: Fix indentation.
1610 * s390-linux-tdep.c: Fix indentation.
1611 * score-tdep.c: Fix indentation.
1612 * ser-base.c: Fix indentation.
1613 * ser-mingw.c: Fix indentation.
1614 * ser-uds.c: Fix indentation.
1615 * ser-unix.c: Fix indentation.
1616 * serial.c: Fix indentation.
1617 * sh-linux-tdep.c: Fix indentation.
1618 * sh-nbsd-tdep.c: Fix indentation.
1619 * sh-tdep.c: Fix indentation.
1620 * skip.c: Fix indentation.
1621 * sol-thread.c: Fix indentation.
1622 * solib-aix.c: Fix indentation.
1623 * solib-darwin.c: Fix indentation.
1624 * solib-frv.c: Fix indentation.
1625 * solib-svr4.c: Fix indentation.
1626 * solib.c: Fix indentation.
1627 * source.c: Fix indentation.
1628 * sparc-linux-tdep.c: Fix indentation.
1629 * sparc-nbsd-tdep.c: Fix indentation.
1630 * sparc-obsd-tdep.c: Fix indentation.
1631 * sparc-ravenscar-thread.c: Fix indentation.
1632 * sparc-tdep.c: Fix indentation.
1633 * sparc64-linux-tdep.c: Fix indentation.
1634 * sparc64-nbsd-tdep.c: Fix indentation.
1635 * sparc64-obsd-tdep.c: Fix indentation.
1636 * sparc64-tdep.c: Fix indentation.
1637 * stabsread.c: Fix indentation.
1638 * stack.c: Fix indentation.
1639 * stap-probe.c: Fix indentation.
1640 * stubs/ia64vms-stub.c: Fix indentation.
1641 * stubs/m32r-stub.c: Fix indentation.
1642 * stubs/m68k-stub.c: Fix indentation.
1643 * stubs/sh-stub.c: Fix indentation.
1644 * stubs/sparc-stub.c: Fix indentation.
1645 * symfile-mem.c: Fix indentation.
1646 * symfile.c: Fix indentation.
1647 * symfile.h: Fix indentation.
1648 * symmisc.c: Fix indentation.
1649 * symtab.c: Fix indentation.
1650 * symtab.h: Fix indentation.
1651 * target-float.c: Fix indentation.
1652 * target.c: Fix indentation.
1653 * target.h: Fix indentation.
1654 * tic6x-tdep.c: Fix indentation.
1655 * tilegx-linux-tdep.c: Fix indentation.
1656 * tilegx-tdep.c: Fix indentation.
1657 * top.c: Fix indentation.
1658 * tracefile-tfile.c: Fix indentation.
1659 * tracepoint.c: Fix indentation.
1660 * tui/tui-disasm.c: Fix indentation.
1661 * tui/tui-io.c: Fix indentation.
1662 * tui/tui-regs.c: Fix indentation.
1663 * tui/tui-stack.c: Fix indentation.
1664 * tui/tui-win.c: Fix indentation.
1665 * tui/tui-winsource.c: Fix indentation.
1666 * tui/tui.c: Fix indentation.
1667 * typeprint.c: Fix indentation.
1668 * ui-out.h: Fix indentation.
1669 * unittests/copy_bitwise-selftests.c: Fix indentation.
1670 * unittests/memory-map-selftests.c: Fix indentation.
1671 * utils.c: Fix indentation.
1672 * v850-tdep.c: Fix indentation.
1673 * valarith.c: Fix indentation.
1674 * valops.c: Fix indentation.
1675 * valprint.c: Fix indentation.
1676 * valprint.h: Fix indentation.
1677 * value.c: Fix indentation.
1678 * value.h: Fix indentation.
1679 * varobj.c: Fix indentation.
1680 * vax-tdep.c: Fix indentation.
1681 * windows-nat.c: Fix indentation.
1682 * windows-tdep.c: Fix indentation.
1683 * xcoffread.c: Fix indentation.
1684 * xml-syscall.c: Fix indentation.
1685 * xml-tdesc.c: Fix indentation.
1686 * xstormy16-tdep.c: Fix indentation.
1687 * xtensa-config.c: Fix indentation.
1688 * xtensa-linux-nat.c: Fix indentation.
1689 * xtensa-linux-tdep.c: Fix indentation.
1690 * xtensa-tdep.c: Fix indentation.
1691
1692 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1693 Craig Blackmore <craig.blackmore@embecosm.com>
1694
1695 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1696 as an unsigned value.
1697
1698 2020-11-01 Tom Tromey <tom@tromey.com>
1699
1700 * dbxread.c (dbx_end_psymtab): Update.
1701 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1702 (build_type_psymtabs_reader): Update.
1703 * xcoffread.c (xcoff_end_psymtab): Update.
1704 * ctfread.c (scan_partial_symbols): Update.
1705 * psymtab.c (sort_pst_symbols): Remove.
1706 (partial_symtab::end): Rename from end_psymtab_common. Inline
1707 sort_pst_symbols.
1708 * psympriv.h (struct partial_symtab) <end>: New method.
1709 (end_psymtab_common): Don't declare.
1710
1711 2020-11-01 Tom Tromey <tom@tromey.com>
1712
1713 * symmisc.c (count_psyms): New function.
1714 (print_objfile_statistics): Use it.
1715 * psymtab.c (append_psymbol_to_list): Remove.
1716 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1717 * objfiles.h (struct objstats) <n_psyms>: Remove.
1718
1719 2020-11-01 Tom Tromey <tom@tromey.com>
1720
1721 * dbxread.c (dbx_end_psymtab): Update.
1722 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1723 (build_type_psymtabs_reader): Update.
1724 * xcoffread.c (xcoff_end_psymtab): Update.
1725 * ctfread.c (scan_partial_symbols): Update.
1726 * psympriv.h (end_psymtab_common): Update.
1727 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1728 (sort_pst_symbols): Likewise.
1729
1730 2020-11-01 Tom Tromey <tom@tromey.com>
1731
1732 * dbxread.c (dbx_symfile_read): Update.
1733 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1734 * xcoffread.c (xcoff_initial_scan): Update.
1735 * psympriv.h (init_psymbol_list): Don't declare.
1736 * psymtab.c (init_psymbol_list): Remove.
1737
1738 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1739
1740 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1741 gnat_encoded_fixed_type_info. Update all callers.
1742
1743 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1744
1745 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1746 line too long.
1747
1748 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1749
1750 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1751 cast_from_fixed. Update all callers.
1752 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1753 Update all callers.
1754 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1755 Update all callers.
1756 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1757 ada_scaling_factor.
1758 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1759 to print_gnat_encoded_fixed_point_type.
1760 * ada-valprint.c: Likewise.
1761
1762 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1763
1764 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1765 (debug_prefixed_printf): Add check of debug_displaced flag.
1766 * linux-nat.c (linux_nat_debug_printf): Add check of
1767 debug_linux_nat flag.
1768
1769 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1770
1771 * infrun.c (infrun_debug_printf_1): Remove.
1772 (displaced_debug_printf_1): Remove.
1773 (stop_all_threads): Use debug_prefixed_printf.
1774 * infrun.h (infrun_debug_printf_1): Remove.
1775 (infrun_debug_printf): Use debug_prefixed_printf.
1776 (displaced_debug_printf_1): Remove.
1777 (displaced_debug_printf): Use debug_prefixed_printf.
1778 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1779 (linux_nat_debug_printf): Use debug_prefixed_printf.
1780
1781 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1782
1783 * configure: Re-generate.
1784 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1785 AC_LANG_PROGRAM.
1786
1787 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1788
1789 * configure: Re-generate.
1790
1791 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1792
1793 * configure: Re-generate.
1794
1795 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1796
1797 * configure: Re-generate.
1798
1799 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1800
1801 * configure: Re-generate.
1802
1803 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1804
1805 * acinclude.m4: Modernize.
1806 * configure: Re-generate.
1807
1808 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1809
1810 * configure.ac: Modernize.
1811 * configure: Re-generate.
1812
1813 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1814
1815 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1816 * configure: Re-generate.
1817 * configure.ac: Remove AM_PROG_CC_STDC.
1818
1819 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1820
1821 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1822 AC_CANONICAL_SYSTEM.
1823 * configure: Re-generate.
1824
1825 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1826
1827 * infrun.h (displaced_debug_printf): New macro. Replace
1828 displaced debug prints throughout to use it.
1829 (displaced_debug_printf_1): New declaration.
1830 (displaced_step_dump_bytes): Return string, remove ui_file
1831 parameter, update all callers.
1832 * infrun.c (displaced_debug_printf_1): New function.
1833 (displaced_step_dump_bytes): Return string, remove ui_file
1834 parameter
1835
1836 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1837
1838 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1839
1840 2020-10-30 Tom Tromey <tromey@adacore.com>
1841
1842 * Makefile.in (stamp-init): Depend on config.status.
1843
1844 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1845
1846 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1847
1848 2020-10-30 Pedro Alves <pedro@palves.net>
1849
1850 * thread.c (lookup_selected_frame): Move ...
1851 * frame.c (lookup_selected_frame): ... here.
1852
1853 2020-10-30 Pedro Alves <pedro@palves.net>
1854
1855 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1856 * frame.c
1857 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1858 Use save_selected_frame. Save language as well.
1859 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1860 Use restore_selected_frame, and restore language as well.
1861 (selected_frame_id, selected_frame_level): New.
1862 (selected_frame): Update comments.
1863 (save_selected_frame, restore_selected_frame): New.
1864 (get_selected_frame): Use lookup_selected_frame.
1865 (get_selected_frame_if_set): Delete.
1866 (select_frame): Record selected_frame_level and selected_frame_id.
1867 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1868 fields.
1869 (get_selected_frame): Make 'message' parameter optional.
1870 (get_selected_frame_if_set): Delete declaration.
1871 (select_frame): Update comments.
1872 (save_selected_frame, restore_selected_frame)
1873 (lookup_selected_frame): Declare.
1874 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1875 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1876 New field.
1877 (save_infcall_control_state): Use save_selected_frame.
1878 (restore_selected_frame): Delete.
1879 (restore_infcall_control_state): Use restore_selected_frame.
1880 * stack.c (select_frame_command_core, frame_command_core): Use
1881 get_selected_frame.
1882 * thread.c (restore_selected_frame): Rename to ...
1883 (lookup_selected_frame): ... this and make extern. Select the
1884 current frame if the frame level is -1.
1885 (scoped_restore_current_thread::restore): Also restore the
1886 language.
1887 (scoped_restore_current_thread::~scoped_restore_current_thread):
1888 Don't try/catch.
1889 (scoped_restore_current_thread::scoped_restore_current_thread):
1890 Save the language as well. Use save_selected_frame.
1891
1892 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1893
1894 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1895 documentation.
1896 * gdbarch.h: Re-generate.
1897
1898 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1899
1900 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1901 parameter.
1902 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1903 Likewise.
1904 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1905 Likewise.
1906 * arch-utils.c (default_displaced_step_hw_singlestep):
1907 Likewise.
1908 * arch-utils.h (default_displaced_step_hw_singlestep):
1909 Likewise.
1910 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1911 Likewise.
1912 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1913 Likewise.
1914 * gdbarch.c: Re-generate.
1915 * gdbarch.h: Re-generate.
1916 * infrun.c (resume_1): Adjust.
1917
1918 2020-10-29 Tom Tromey <tom@tromey.com>
1919
1920 * progspace.c (program_space::~program_space): Don't call
1921 exec_close.
1922
1923 2020-10-29 Tom Tromey <tom@tromey.com>
1924
1925 * exec.c (exec_target::close): Don't change current program
1926 space.
1927
1928 2020-10-29 Tom Tromey <tom@tromey.com>
1929
1930 * symfile.c (add_symbol_file_command): Update.
1931 * exec.c (program_space::add_target_sections): Rename.
1932 * symfile-mem.c (symbol_file_add_from_memory): Update.
1933 * progspace.h (struct program_space) <add_target_sections>:
1934 Declare new overload.
1935 * exec.h (add_target_sections_of_objfile): Don't declare.
1936
1937 2020-10-29 Tom Tromey <tom@tromey.com>
1938
1939 * solib.c (solib_map_sections): Update.
1940 * exec.c (program_space::add_target_sections): Now a method.
1941 (exec_file_attach): Update.
1942 * exec.h (add_target_sections): Don't declare.
1943 * progspace.h (struct program_space) <add_target_sections>:
1944 Declare.
1945
1946 2020-10-29 Tom Tromey <tom@tromey.com>
1947
1948 * progspace.h (struct program_space) <remove_target_sections>:
1949 Declare.
1950 * exec.c (program_space::remove_target_sections): Now a method.
1951 * exec.h (remove_target_sections): Don't declare.
1952
1953 2020-10-29 Tom Tromey <tom@tromey.com>
1954
1955 * inferior.c (delete_inferior): Update.
1956 * progspace.c (program_space::empty): Rename from
1957 program_space_empty_p. Return bool.
1958 * progspace.h (struct program_space) <empty>: New method.
1959 (program_space_empty_p): Don't declare.
1960
1961 2020-10-29 Tom Tromey <tom@tromey.com>
1962
1963 * progspace.c (program_space::~program_space): Don't call
1964 clear_program_space_solib_cache.
1965 (program_space::clear_solib_cache): Rename from
1966 clear_solib_cache.
1967 * solib.c (handle_solib_event): Update.
1968 * progspace.h (struct program_space) <clear_solib_cache>: New
1969 method.
1970 (clear_program_space_solib_cache): Don't declare.
1971
1972 2020-10-29 Tom Tromey <tom@tromey.com>
1973
1974 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1975 * target.c (info_target_command): Update.
1976 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1977 (symbol_file_clear, reread_symbols): Update.
1978 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1979 * stabsread.c (scan_file_globals): Update.
1980 * solib.c (update_solib_list): Update.
1981 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1982 (svr4_fetch_objfile_link_map, enable_break)
1983 (svr4_relocate_main_executable)
1984 (svr4_iterate_over_objfiles_in_search_order): Update.
1985 * solib-frv.c (lm_base, enable_break)
1986 (frv_relocate_main_executable): Update.
1987 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1988 (frv_fetch_objfile_link_map): Update.
1989 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1990 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1991 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1992 * remote.c (remote_target::get_offsets): Update.
1993 (remote_target::start_remote)
1994 (extended_remote_target::post_attach): Update.
1995 * objfiles.c (entry_point_address_query): Update.
1996 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1997 * minsyms.c (get_symbol_leading_char): Update.
1998 * frame.c (inside_main_func): Update.
1999 * progspace.h (symfile_objfile): Remove macro.
2000
2001 2020-10-29 Tom Tromey <tom@tromey.com>
2002
2003 * exec.c (exec_file_attach): Update.
2004 * progspace.c (program_space::exec_close): Update.
2005 * progspace.h (struct program_space) <ebfd>: Now a
2006 gdb_bfd_ref_ptr.
2007 <set_exec_bfd>: Change argument type.
2008 <exec_bfd>: Update.
2009
2010 2020-10-29 Tom Tromey <tom@tromey.com>
2011
2012 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2013 * symfile.c (reread_symbols): Update.
2014 * symfile-mem.c (add_symbol_file_from_memory_command)
2015 (add_vsyscall_page): Update.
2016 * source-cache.c (source_cache::get_plain_source_lines): Update.
2017 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2018 (svr4_current_sos_direct, svr4_exec_displacement)
2019 (svr4_relocate_main_executable): Update.
2020 (svr4_iterate_over_objfiles_in_search_order): Update.
2021 * solib-frv.c (enable_break2, enable_break): Update.
2022 * solib-dsbt.c (lm_base, enable_break): Update.
2023 * solib-darwin.c (find_program_interpreter)
2024 (darwin_solib_create_inferior_hook): Update.
2025 * sol-thread.c (rw_common, ps_pdmodel): Update.
2026 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2027 * remote.c (compare_sections_command)
2028 (remote_target::trace_set_readonly_regions): Update.
2029 * remote-sim.c (get_sim_inferior_data)
2030 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2031 (gdbsim_target_open, gdbsim_target::files_info): Update.
2032 * exec.h (exec_bfd): Remove macro.
2033 * progspace.c (initialize_progspace): Update.
2034 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2035 Update.
2036 * nto-procfs.c (nto_procfs_target::post_attach)
2037 (nto_procfs_target::create_inferior): Update.
2038 * maint.c (maintenance_info_sections): Update.
2039 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2040 Update.
2041 * infcmd.c (post_create_inferior): Update.
2042 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2043 (objfile_find_memory_regions): Update.
2044 * exec.c (validate_exec_file, exec_file_attach)
2045 (exec_read_partial_read_only, print_section_info): Update.
2046 * corelow.c (core_target_open): Update.
2047 * corefile.c (reopen_exec_file, validate_files): Update.
2048 * arm-tdep.c (gdb_print_insn_arm): Update.
2049 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2050 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2051 methods.
2052
2053 2020-10-29 Tom Tromey <tom@tromey.com>
2054
2055 * progspace.h (current_target_sections): Remove macro.
2056 * solib-svr4.c (scan_dyntag): Update.
2057 * solib-dsbt.c (scan_dyntag): Update.
2058 * exec.c (exec_target::close): Update.
2059 (add_target_sections, add_target_sections_of_objfile)
2060 (remove_target_sections, exec_target::get_section_table)
2061 (exec_target::files_info, set_section_command)
2062 (exec_set_section_address, exec_target::has_memory)
2063 (exec_target::has_memory): Update.
2064
2065 2020-10-29 Tom Tromey <tom@tromey.com>
2066
2067 * source-cache.c (source_cache::get_plain_source_lines): Use
2068 current_program_space.
2069 * corefile.c (reopen_exec_file): Use current_program_space.
2070 * exec.c (exec_file_attach): Use current_program_space.
2071 * exec.h (exec_bfd_mtime): Remove.
2072
2073 2020-10-29 Tom Tromey <tom@tromey.com>
2074
2075 * gcore.c (default_gcore_mach): Remove.
2076 (create_gcore_bfd): Update.
2077
2078 2020-10-29 Tom Tromey <tom@tromey.com>
2079
2080 * progspace.c (program_space::exec_close): New method, from
2081 exec_close in exec.c.
2082 * exec.c (exec_close): Move to progspace.c.
2083 (exec_target::close, exec_file_attach): Update.
2084 * progspace.h (struct program_space) <exec_close>: Declare
2085 method.
2086
2087 2020-10-29 Tom Tromey <tom@tromey.com>
2088
2089 * progspace.h (struct program_space) <exec_filename>: Rename from
2090 pspace_exec_filename. Now a unique_xmalloc_ptr.
2091 * inferior.c (print_selected_inferior): Update.
2092 (print_inferior): Update.
2093 * mi/mi-main.c (print_one_inferior): Update.
2094 * exec.h (exec_filename): Remove macro.
2095 * corefile.c (get_exec_file): Update.
2096 * exec.c (exec_close): Update.
2097 (exec_file_attach): Update.
2098 * progspace.c (clone_program_space): Update.
2099 (print_program_space): Update.
2100
2101 2020-10-29 Tom Tromey <tom@tromey.com>
2102
2103 * target-section.h (struct target_section): Add constructor.
2104 * exec.c (build_section_table, add_target_sections_of_objfile):
2105 Update.
2106 * corelow.c (core_target::build_file_mappings): Update.
2107
2108 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2109
2110 PR gdb/19318
2111 * inferior.c (detach_inferior_command): Restore the current thread.
2112 (kill_inferior_command): Ditto.
2113
2114 2020-10-28 Tom de Vries <tdevries@suse.de>
2115
2116 PR symtab/26772
2117 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2118 map, check it in the "best match" loop.
2119
2120 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2121
2122 * m32c-tdep.c: Remove unused includes.
2123
2124 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2125
2126 * xtensa-tdep.c: Remove includes.
2127
2128 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2129
2130 * breakpoint.c (struct condition_command_opts): New struct.
2131 (condition_command_option_defs): New static global.
2132 (make_condition_command_options_def_group): New function.
2133 (condition_completer): Update to consider the '-force' flag.
2134 (condition_command): Use gdb::option for the '-force' flag.
2135
2136 2020-10-27 Tom de Vries <tdevries@suse.de>
2137
2138 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2139 symbols in section check.
2140
2141 2020-10-27 Tom de Vries <tdevries@suse.de>
2142
2143 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2144
2145 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2146
2147 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2148 * breakpoint.c: Update the help text of the 'condition' and 'break'
2149 commands.
2150 (set_breakpoint_condition): Take a new bool parameter
2151 to control whether condition definition should be forced even when
2152 the condition expression is invalid in all of the current locations.
2153 (condition_command): Update the call to 'set_breakpoint_condition'.
2154 (find_condition_and_thread): Take the "-force-condition" flag into
2155 account.
2156 * linespec.c (linespec_keywords): Add "-force-condition" as an
2157 element.
2158 (FORCE_KEYWORD_INDEX): New #define.
2159 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2160 as a keyword.
2161 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2162 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2163 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2164 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2165
2166 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2167
2168 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2169 * breakpoint.c (set_breakpoint_location_condition): New function.
2170 (set_breakpoint_condition): Disable a breakpoint location if parsing
2171 the condition string gives an error.
2172 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2173 (build_target_condition_list): Ditto.
2174 (build_target_command_list): Ditto.
2175 (build_bpstat_chain): Ditto.
2176 (print_one_breakpoint_location): Ditto.
2177 (print_one_breakpoint): Ditto.
2178 (breakpoint_1): Ditto.
2179 (bp_location::bp_location): Ditto.
2180 (locations_are_equal): Ditto.
2181 (update_breakpoint_locations): Ditto.
2182 (enable_disable_bp_num_loc): Ditto.
2183 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2184 (find_condition_and_thread_for_sals): New static function.
2185 (create_breakpoint): Call find_condition_and_thread_for_sals.
2186 (location_to_sals): Call find_condition_and_thread_for_sals instead
2187 of find_condition_and_thread.
2188
2189 2020-10-26 Tom de Vries <tdevries@suse.de>
2190
2191 * dwarf2/read.c (process_full_comp_unit): Call
2192 dwarf2_find_base_address.
2193
2194 2020-10-26 Tom Tromey <tromey@adacore.com>
2195
2196 * gdbtypes.c (create_range_type): Revert previous patch. Add
2197 comment.
2198
2199 2020-10-26 Pedro Alves <pedro@palves.net>
2200
2201 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2202 (my_waitpid): Use gdb::handle_eintr.
2203
2204 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2205
2206 * acinclude.m4: Update ptrace.m4 path.
2207 * ptrace.m4: Moved to gdbsupport.
2208
2209 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2210
2211 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2212 instead of target_gdbarch.
2213
2214 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2215
2216 * jit.c (jit_reader_load_command): Pass current inferior.
2217 (jit_inferior_init): Change parameter type to inferior, use it.
2218 (jit_inferior_created): Remove.
2219 (jit_inferior_created_hook): Pass inferior parameter down.
2220 (_initialize_jit): Use jit_inferior_created_hook instead of
2221 jit_inferior_created.
2222 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2223 * infrun.c (follow_exec): Pass inferior to
2224 jit_inferior_created_hook.
2225
2226 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2227
2228 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2229 parameter and use it.
2230 (thread_db_inferior_created): Pass inferior argument.
2231
2232 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2233
2234 * aix-thread.c (aix_thread_inferior_created): Add inferior
2235 parameter.
2236 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2237 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2238 * jit.c (jit_inferior_created): Likewise.
2239 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2240 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2241 * observable.h (inferior_created): Likewise.
2242 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2243 * symfile-mem.c (add_vsyscall_page): Likewise.
2244 * infcmd.c (post_create_inferior): Pass inferior argument.
2245
2246 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2247
2248 GDB 10.1 released.
2249
2250 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2251
2252 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2253 to ada_check_typedef.
2254
2255 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2256
2257 * f-exp.y (f_parse): Rename to...
2258 (f_language::parser): ...this.
2259 * f-lang.c (f_get_encoding): Rename to...
2260 (f_language::get_encoding): ...this.
2261 (f_op_print_tab): Rename to...
2262 (f_language::op_print_tab): ...this.
2263 (exp_descriptor_f): Rename to...
2264 (f_language::exp_descriptor_tab): ...this.
2265 (class f_language): Moved to f-lang.h.
2266 (f_language::language_arch_info): New function, moved out of class
2267 declaration.
2268 (f_language::search_name_hash): Likewise.
2269 (f_language::lookup_symbol_nonlocal): Likewise.
2270 (f_language::get_symbol_name_matcher_inner): Likewise.
2271 * f-lang.h: Add 'valprint.h' include.
2272 (class f_language): Moved here from f-lang.c.
2273 * f-typeprint.c (f_type_print_args): Delete commented out
2274 declaration.
2275 (f_print_typedef): Rename to...
2276 (f_language::print_typedef): ...this.
2277 (f_print_type): Rename to...
2278 (f_language::print_type): ...this.
2279 (f_type_print_varspec_prefix): Delete declaration and rename to...
2280 (f_language::f_type_print_varspec_prefix): ...this.
2281 (f_type_print_varspec_suffix): Delete declaration and rename to...
2282 (f_language::f_type_print_varspec_suffix): ...this.
2283 (f_type_print_base): Delete declaration and rename to...
2284 (f_language::f_type_print_base): ...this.
2285 * f-valprint.c (f_value_print_inner): Rename to...
2286 (f_language::value_print_inner): ...this.
2287 * parse.c: Delete 'f-lang.h' include.
2288
2289 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2290
2291 * language.h (language_defn::print_type): Add variable names in
2292 declaration, and update header comment.
2293
2294 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2295
2296 * ada-lang.c (ada_language::demangle): Rename to...
2297 (ada_language::demangle_symbol): ...this.
2298 * c-lang.c (cplus_language::demangle): Rename to...
2299 (cplus_language::demangle_symbol): ...this.
2300 * d-lang.c (d_language::demangle): Rename to...
2301 (d_language::demangle_symbol): ...this.
2302 * f-lang.c (f_language::demangle): Rename to...
2303 (f_language::demangle_symbol): ...this.
2304 * go-lang.c (go_language::demangle): Rename to...
2305 (go_language::demangle_symbol): ...this.
2306 * language.c (language_demangle): Update call to demangle_symbol.
2307 (auto_or_unknown_language::demangle): Rename to...
2308 (auto_or_unknown_language::demangle_symbol): ...this.
2309 * language.h (language_defn::demangle): Rename to...
2310 (language_defn::demangle_symbol): ...this.
2311 * objc-lang.c (objc_language::demangle): Rename to...
2312 (objc_language::demangle_symbol): ...this.
2313 * rust-lang.c (rust_language::demangle): Rename to...
2314 (rust_language::demangle_symbol): ...this.
2315
2316 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2317
2318 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2319 (iterate_over_file_blocks): Replace use of macro with the macros
2320 definition.
2321
2322 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2323
2324 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2325 * valprint.c (maybe_print_array_index): Replace use of macro with
2326 the macros definition.
2327
2328 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2329
2330 * ada-lang.c (ada_language::print_array_index): Call value_print
2331 directly.
2332 * language.c (language_defn::print_array_index): Likewise.
2333 * language.h (LA_VALUE_PRINT): Delete.
2334 * valprint.c (value_print): Call value_print on the
2335 current_language directly.
2336
2337 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2338
2339 * language.h (LA_PRINT_TYPEDEF): Delete.
2340 * typeprint.c (typedef_print): Call print_typedef directly on the
2341 current_language object.
2342
2343 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2344
2345 * m2-exp.y (m2_parse): Rename to...
2346 (m2_language::parser): ...this. Update function signature.
2347 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2348 (m2_op_print): Rename to...
2349 (m2_language::op_print_tab): ...this, and make const.
2350 (exp_descriptor_modula2): Rename to...
2351 (m2_language::exp_descriptor_modula2): ...this.
2352 (class m2_language): Move to m2-lang.h.
2353 (m2_language::language_arch_info): New function, moved out of
2354 class declaration.
2355 (m2_language::printchar): New function, body from m2_printchar.
2356 (m2_language::printstr): New function, moved out of class
2357 declaration.
2358 (m2_language::emitchar): Likewise.
2359 * m2-lang.h (m2_parse): Delete declaration.
2360 (m2_print_typedef): Delete declaration.
2361 (m2_value_print_inner): Delete declaration.
2362 (class m2_language): Class declaration moved from m2-lang.c,
2363 larger functions are left in m2-lang.c.
2364 * m2-typeprint.c (m2_print_typedef): Rename to...
2365 (m2_language::print_typedef): ...this, and update function
2366 signature.
2367 * m2-valprint.c (m2_value_print_inner): Rename to...
2368 (m2_language::value_print_inner): ...this, replace use of
2369 LA_PRINT_STRING with a direct call to printstr member function,
2370 and update recursive call.
2371
2372 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2373
2374 * language.c (default_is_string_type_p): Delete, implementation
2375 moved into auto_or_unknown_language::is_string_type_p.
2376 (unk_op_print_tab): Moved into
2377 auto_or_unknown_language::opcode_print_table.
2378 (unknown_language_arch_info): Delete, implementation moved into
2379 auto_or_unknown_language::language_arch_info.
2380 (class auto_or_unknown_language): New class, member functions
2381 copied from unknown_language class, with some updates.
2382 (class unknown_language): Most member functions moved into
2383 auto_or_unknown_language class. Inherit from
2384 auto_or_unknown_language class.
2385 (class auto_language): Inherit from auto_or_unknown_language.
2386 Delete most member functions.
2387
2388 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2389
2390 * stabsread.c (read_member_functions): Remove gdb_assert.
2391
2392 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2393
2394 * gdbtypes.c (init_complex_type): Check target type name.
2395
2396 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2397
2398 * target-debug.h (target_debug_print_struct_target_ops_p):
2399 Remove.
2400 (target_debug_print_async_callback_ftype_p): Remove.
2401 (target_debug_print_struct_trace_state_variable_p): Remove.
2402 (target_debug_print_struct_traceframe_info_p): Remove.
2403 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2404 (target_debug_print_enum_btrace_format): Remove.
2405 (target_debug_print_enum_info_proc_what): Remove.
2406 (target_debug_print_thread_info_pp): Remove.
2407
2408 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2409
2410 * target.h (struct target_ops) <make_corefile_notes>:
2411 Change return type to unique pointer.
2412 * target.c (dummy_make_corefile_notes): Likewise.
2413 * exec.c (struct exec_target) <make_corefile_notes>:
2414 Likewise.
2415 (exec_target::make_corefile_notes): Likewise.
2416 * procfs.c (class procfs_target) <make_corefile_notes>:
2417 Likewise.
2418 (procfs_do_thread_registers): Adjust to unique pointer.
2419 (struct procfs_corefile_thread_data): Add constructor.
2420 <note_data>: Change type to unique pointer.
2421 (procfs_corefile_thread_callback): Adjust to unique pointer.
2422 (procfs_target::make_corefile_notes): Change return type to
2423 unique pointer.
2424 * target-delegates.c: Re-generate.
2425 * gcore.c (write_gcore_file_1): Adjust.
2426 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2427 New.
2428
2429 2020-10-22 Tom de Vries <tdevries@suse.de>
2430
2431 * block.c (find_block_in_blockvector): Make sure the returned block
2432 contains pc.
2433
2434 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2435
2436 PR gdb/26693
2437 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2438 parameter.
2439 (load_cu): Pass existing CU.
2440 (process_imported_unit_die): Likewise.
2441 (follow_die_offset): Likewise.
2442
2443 2020-10-22 Luis Machado <luis.machado@linaro.org>
2444
2445 * corelow.c (core_target::xfer_partial): Also check for an empty
2446 m_core_unavailable_mappings vector.
2447
2448 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2449
2450 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2451 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2452 * f-exp.y (arglist): Allow for a series of subranges.
2453 (subrange): Add cases for subranges with strides.
2454 * f-lang.c (value_f90_subarray): Catch use of array strides and
2455 throw an error.
2456 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2457
2458 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2459
2460 * expprint.c (print_subexp_standard): Change enum range_type to
2461 range_flag and rename variables to match.
2462 (dump_subexp_body_standard): Likewise.
2463 * expression.h (enum range_type): Rename to...
2464 (enum range_flag): ...this.
2465 (range_types): Rename to...
2466 (range_flags): ...this.
2467 * f-lang.c (value_f90_subarray): Change enum range_type to
2468 range_flag and rename variables to match.
2469 * parse.c (operator_length_standard): Likewise.
2470 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2471 range_type to range_flag.
2472 * rust-lang.c (rust_evaluate_funcall): Likewise.
2473 (rust_range): Likewise.
2474 (rust_compute_range): Likewise.
2475 (rust_subscript): Likewise.
2476
2477 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2478
2479 * expprint.c (print_subexp_standard): Update to reflect changes to
2480 enum range_type.
2481 (dump_subexp_body_standard): Likewise.
2482 * expression.h (enum range_type): Convert to a bit field enum, and
2483 make the enum unsigned.
2484 * f-exp.y (subrange): Update to reflect changes to enum
2485 range_type.
2486 * f-lang.c (value_f90_subarray): Likewise.
2487 * parse.c (operator_length_standard): Likewise.
2488 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2489 * rust-lang.c (rust_range): Likewise.
2490 (rust_compute_range): Likewise.
2491 (rust_subscript): Likewise.
2492
2493 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2494
2495 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2496 (displaced_step_in_progress): Fix comment.
2497
2498 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2499
2500 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2501 * gdbarch.c: Re-generate.
2502 * gdbarch.h: Re-generate.
2503 * gcore.c (write_gcore_file_1): Adjust.
2504 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2505 constructor.
2506 <note_data>: Change type to unique pointer.
2507 <abort_iteration>: Change type to bool.
2508 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2509 (fbsd_collect_thread_registers): Return void, adjust.
2510 (struct fbsd_corefile_thread_data): Add construtor.
2511 <note_data>: Change type to unique pointer.
2512 (fbsd_corefile_thread): Adjust.
2513 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2514 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2515 to unique pointer, adjust.
2516 (struct linux_collect_regset_section_cb_data): Add constructor.
2517 <note_data>: Change type to unique pointer.
2518 <abort_iteration>: Change type to bool.
2519 (linux_collect_thread_registers): Return void, adjust.
2520 (struct linux_corefile_thread_data): Add constructor.
2521 <note_data>: Change type to unique pointer.
2522 (linux_corefile_thread): Adjust.
2523 (linux_make_corefile_notes): Return unique pointer, adjust.
2524
2525 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2526
2527 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2528 * gdbarch.c: Re-generate.
2529 * gdbarch.h: Re-generate.
2530 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2531 bool.
2532 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2533 Likewise.
2534 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2535 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2536 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2537 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2538
2539 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2540
2541 * gdbarch.sh: Make generated predicates return bool.
2542 * gdbarch.c: Re-generate.
2543 * gdbarch.h: Re-generate.
2544
2545 2020-10-20 Tom Tromey <tom@tromey.com>
2546
2547 * varobj-iter.h (struct varobj_item): Remove typedef.
2548
2549 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2550
2551 * infrun.c (currently_stepping): Change int to bool
2552 (maybe_software_singlestep): Likewise.
2553 (show_stop_on_solib_events): Likewise.
2554 (stepping_past_nonsteppable_watchpoint): Likewise.
2555 (displaced_step_in_progress_any_inferior): Likewise.
2556 (displaced_step_in_progress_thread): Likewise.
2557 (keep_going_stepped_thread): Likewise.
2558 (thread_still_needs_step_over): Likewise.
2559 (start_step_over): Likewise.
2560 (do_target_resume): Likewise.
2561 (resume_1): Likewise.
2562 (clear_proceed_status): Likewise.
2563 (thread_still_needs_step_over_bp): Likewise.
2564 (proceed): Likewise.
2565 (switch_back_to_stepped_thread): Likewise.
2566 (adjust_pc_after_break): Likewise.
2567 (stepped_in_from): Likewise.
2568 (handle_stop_requested): Likewise.
2569 (handle_syscall_event): Likewise.
2570 (handle_no_resumed): Likewise.
2571 (handle_inferior_event): Likewise.
2572 (finish_step_over): Likewise.
2573 (handle_signal_stop): Likewise.
2574 (process_event_stop_test): Likewise.
2575
2576 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2577
2578 * infrun.c (get_displaced_stepping_state): Fix comment.
2579
2580 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2581
2582 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2583
2584 2020-10-19 Tom Tromey <tromey@adacore.com>
2585
2586 PR tui/26719
2587 * tui/tui-winsource.h (struct tui_source_window_base)
2588 <refresh_window>: Rename from refresh_pad.
2589 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2590 Rename from refresh_pad.
2591 (tui_source_window_base::show_source_content)
2592 (tui_source_window_base::do_scroll_horizontal): Update.
2593
2594 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2595
2596 * thread.c (_initialize_thread): Fine-tune the help text of
2597 'info threads'.
2598
2599 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2600
2601 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2602
2603 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2604
2605 * breakpoint.c (handle_jit_event): Add an argument, change how
2606 `jit_event_handler` is called.
2607
2608 2020-10-17 Tom Tromey <tom@tromey.com>
2609
2610 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2611 (scan_xcoff_symtab): Update.
2612 * psymtab.h (class psymtab_storage) <global_psymbols,
2613 static_psymbols, current_global_psymbols,
2614 current_static_psymbols>: Remove.
2615 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2616 (match_partial_symbol, lookup_partial_symbol): Update.
2617 (print_partial_symbols): Change parameters.
2618 (dump_psymtab, recursively_search_psymtabs)
2619 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2620 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2621 (concat): Remove.
2622 (end_psymtab_common): Simplify.
2623 (append_psymbol_to_list): Change parameters.
2624 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2625 (init_psymbol_list): Simplify.
2626 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2627 * psympriv.h (struct partial_symtab) <empty>: New method.
2628 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2629 Remove.
2630 <global_psymbols, static_psymbols>: New members.
2631 <add_psymbol>: New methods.
2632 (add_psymbol_to_list): Don't declare.
2633 (psymbol_placement): Move earlier.
2634 * mdebugread.c (parse_partial_symbols): Update.
2635 (handle_psymbol_enumerators): Change parameters.
2636 (mdebug_expand_psymtab): Update.
2637 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2638 (add_partial_symbol): Update.
2639 * dwarf2/index-write.c (write_psymbols): Change parameters.
2640 (write_one_signatured_type): Update.
2641 (recursively_count_psymbols): Update.
2642 (recursively_write_psymbols): Update.
2643 (class debug_names) <recursively_write_psymbols>: Update.
2644 <write_psymbols>: Change parameters.
2645 <write_one_signatured_type>: Update.
2646 * dbxread.c (read_dbx_symtab): Update.
2647 (dbx_end_psymtab): Use partial_symtab::empty.
2648 * ctfread.c (struct ctf_context) <pst>: New member.
2649 (create_partial_symtab): Set it.
2650 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2651 (scan_partial_symbols): Use the psymtab's context. Update.
2652
2653 2020-10-17 Tom Tromey <tom@tromey.com>
2654
2655 * valprint.c (generic_value_print): Remove comment.
2656 * m2-valprint.c (m2_value_print_inner): Remove comment.
2657 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2658 type.
2659
2660 2020-10-17 Tom de Vries <tdevries@suse.de>
2661
2662 PR symtab/26317
2663 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2664 symbol main.
2665
2666 2020-10-14 Tom de Vries <tdevries@suse.de>
2667
2668 PR gdb/26733
2669 * solib.c (solib_contains_address_p): Handle
2670 'solib->sections == nullptr'.
2671
2672 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2673
2674 PR gdb/26642
2675 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2676 target can't do async.
2677 * target.c (target_wait): Assert that we don't pass
2678 TARGET_WNOHANG to a target that can't async.
2679
2680 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2681
2682 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2683 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2684 * alpha-bsd-nat.c: Adjust include.
2685 * alpha-bsd-tdep.h: Adjust comment.
2686 * alpha-nbsd-tdep.c: Rename to ...
2687 * alpha-netbsd-tdep.c: ... this, adjust include.
2688 * amd64-nbsd-nat.c: Rename to ...
2689 * amd64-netbsd-nat.c: ... this, adjust include.
2690 * amd64-nbsd-tdep.c: Rename to ...
2691 * amd64-netbsd-tdep.c: ... this, adjust include.
2692 * amd64-tdep.h: Adjust include.
2693 * arm-nbsd-nat.c: Rename to ...
2694 * arm-netbsd-nat.c: ... this, adjust include.
2695 * arm-nbsd-tdep.c: Rename to ...
2696 * arm-netbsd-tdep.c: ... this, adjust include.
2697 * arm-nbsd-tdep.h: Rename to ...
2698 * arm-netbsd-tdep.h: ... this, adjust include.
2699 * configure.nat: Adjust file lists.
2700 * configure.tgt: Likewise.
2701 * hppa-nbsd-nat.c: Rename to ...
2702 * hppa-netbsd-nat.c: ... this, adjust include.
2703 * hppa-nbsd-tdep.c: Rename to ...
2704 * hppa-netbsd-tdep.c: ... this, adjust include.
2705 * i386-nbsd-nat.c: Rename to ...
2706 * i386-netbsd-nat.c: ... this, adjust include.
2707 * i386-nbsd-tdep.c: Rename to ...
2708 * i386-netbsd-tdep.c: ... this, adjust include.
2709 * m68k-bsd-nat.c: Adjust include.
2710 * mips-nbsd-nat.c: Rename to ...
2711 * mips-netbsd-nat.c: ... this, adjust include.
2712 * mips-nbsd-tdep.c: Rename to ...
2713 * mips-netbsd-tdep.c: ... this, adjust include.
2714 * mips-nbsd-tdep.h: Rename to ...
2715 * mips-netbsd-tdep.h: ... this.
2716 * nbsd-nat.c: Rename to ...
2717 * netbsd-nat.c: ... this, adjust include.
2718 * nbsd-nat.h: Rename to ...
2719 * netbsd-nat.h: ... this, adjust include.
2720 * nbsd-tdep.c: Rename to ...
2721 * netbsd-tdep.c: ... this, adjust include.
2722 * nbsd-tdep.h: Rename to ...
2723 * netbsd-tdep.h: ... this.
2724 * ppc-nbsd-nat.c: Rename to ...
2725 * ppc-netbsd-nat.c: ... this, adjust include.
2726 * ppc-nbsd-tdep.c: Rename to ...
2727 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2728 * ppc-nbsd-tdep.h: Rename to ...
2729 * ppc-netbsd-tdep.h: ... this.
2730 * sh-nbsd-nat.c: Rename to ...
2731 * sh-netbsd-nat.c: ... this, adjust include.
2732 * sh-nbsd-tdep.c: Rename to ...
2733 * sh-netbsd-tdep.c: ... this, adjust include.
2734 * sparc-nbsd-nat.c: Rename to ...
2735 * sparc-netbsd-nat.c: ... this.
2736 * sparc-nbsd-tdep.c: Rename to ...
2737 * sparc-netbsd-tdep.c: ... this, adjust include.
2738 * sparc64-nbsd-nat.c: Rename to ...
2739 * sparc64-netbsd-nat.c: ... this.
2740 * sparc64-nbsd-tdep.c: Rename to ...
2741 * sparc64-netbsd-tdep.c: ... this, adjust include.
2742 * sparc64-tdep.h: Adjust comment.
2743 * vax-bsd-nat.c: Adjust include.
2744 * vax-nbsd-tdep.c: Rename to ...
2745 * vax-netbsd-tdep.c: ... this, adjust include.
2746
2747 2020-10-12 Tom Tromey <tom@tromey.com>
2748
2749 * target.h (struct target_ops) <get_section_table>: Update.
2750 (target_get_section_table): Update.
2751 * target.c (target_get_section_table, target_section_by_addr)
2752 (memory_xfer_partial_1): Update.
2753 * target-section.h (target_section_table): Now an alias.
2754 * target-delegates.c: Rebuild.
2755 * target-debug.h (target_debug_print_target_section_table_p):
2756 Rename from target_debug_print_struct_target_section_table_p.
2757 * symfile.c (build_section_addr_info_from_section_table): Update.
2758 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2759 * solib-svr4.c (scan_dyntag): Update.
2760 * solib-dsbt.c (scan_dyntag): Update.
2761 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2762 Update.
2763 * record-full.c (record_full_core_target::xfer_partial): Update.
2764 * progspace.h (struct program_space) <target_sections>: Update.
2765 * exec.h (print_section_info): Update.
2766 * exec.c (exec_target::close, build_section_table)
2767 (add_target_sections, add_target_sections_of_objfile)
2768 (remove_target_sections, exec_on_vfork)
2769 (section_table_available_memory)
2770 (section_table_xfer_memory_partial)
2771 (exec_target::get_section_table, exec_target::xfer_partial)
2772 (print_section_info, set_section_command)
2773 (exec_set_section_address, exec_target::has_memory): Update.
2774 * corelow.c (core_target::build_file_mappings)
2775 (core_target::xfer_partial, core_target::info_proc_mappings)
2776 (core_target::info_proc_mappings): Update.
2777 * bfd-target.c (class target_bfd): Update
2778
2779 2020-10-12 Tom Tromey <tom@tromey.com>
2780
2781 * progspace.c (program_space::~program_space): Don't call
2782 clear_section_table.
2783 * exec.h (clear_section_table): Don't declare.
2784 * exec.c (exec_target::close): Update.
2785 (clear_section_table): Remove.
2786
2787 2020-10-12 Tom Tromey <tom@tromey.com>
2788
2789 * exec.c (add_target_sections_of_objfile): Simplify.
2790
2791 2020-10-12 Tom Tromey <tom@tromey.com>
2792
2793 * solib.c (solib_map_sections): Update.
2794 * record-full.c (record_full_core_open_1): Update.
2795 * exec.h (build_section_table): Return a target_section_table.
2796 * exec.c (exec_file_attach): Update.
2797 (build_section_table): Return a target_section_table.
2798 * corelow.c (core_target::core_target): Update.
2799 * bfd-target.c (target_bfd::target_bfd): Update.
2800
2801 2020-10-12 Tom Tromey <tom@tromey.com>
2802
2803 * target.c (target_section_by_addr, memory_xfer_partial_1):
2804 Update.
2805 * target-section.h (struct target_section_table): Use
2806 std::vector.
2807 * symfile.h (build_section_addr_info_from_section_table): Take a
2808 target_section_table.
2809 * symfile.c (build_section_addr_info_from_section_table): Take a
2810 target_section_table.
2811 * solist.h (struct so_list) <sections>: Change type.
2812 <sections_end>: Remove.
2813 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2814 (solib_contains_address_p): Update.
2815 * solib-svr4.c (scan_dyntag): Update.
2816 * solib-dsbt.c (scan_dyntag): Update.
2817 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2818 Update.
2819 * record-full.c (record_full_core_start, record_full_core_end):
2820 Remove.
2821 (record_full_core_sections): New global.
2822 (record_full_core_open_1, record_full_core_target::xfer_partial):
2823 Update.
2824 * exec.h (build_section_table, section_table_xfer_memory_partial)
2825 (add_target_sections): Take a target_section_table.
2826 * exec.c (exec_file_attach, clear_section_table): Update.
2827 (resize_section_table): Remove.
2828 (build_section_table, add_target_sections): Take a
2829 target_section_table.
2830 (add_target_sections_of_objfile, remove_target_sections)
2831 (exec_on_vfork): Update.
2832 (section_table_available_memory): Take a target_section_table.
2833 (section_table_read_available_memory): Update.
2834 (section_table_xfer_memory_partial): Take a target_section_table.
2835 (print_section_info, set_section_command)
2836 (exec_set_section_address, exec_target::has_memory): Update.
2837 * corelow.c (class core_target) <m_core_section_table,
2838 m_core_file_mappings>: Remove braces.
2839 <~core_target>: Remove.
2840 (core_target::core_target): Update.
2841 (core_target::~core_target): Remove.
2842 (core_target::build_file_mappings)
2843 (core_target::xfer_memory_via_mappings)
2844 (core_target::xfer_partial, core_target::info_proc_mappings):
2845 Update.
2846 * bfd-target.c (target_bfd::xfer_partial): Update.
2847 (target_bfd::target_bfd): Update.
2848 (target_bfd::~target_bfd): Remove.
2849
2850 2020-10-12 Tom Tromey <tom@tromey.com>
2851
2852 * target.h (struct target_section, struct target_section_table):
2853 Move to target-section.h.
2854 * target-section.h: New file.
2855
2856 2020-10-12 Pedro Alves <pedro@palves.net>
2857
2858 PR exp/26602
2859 * valops.c (struct struct_field_searcher): New.
2860 (update_search_result): Rename to ...
2861 (struct_field_searcher::update_result): ... this. Simplify
2862 prototype. Record all found fields.
2863 (do_search_struct_field): Rename to ...
2864 (struct_field_searcher::search): ... this. Simplify prototype.
2865 Maintain stack of visited baseclass path. Call update_result for
2866 fields too. Keep searching fields in baseclasses instead of
2867 stopping at the first found field.
2868 (search_struct_field): Use struct_field_searcher. When looking
2869 for fields, report ambiguous access attempts.
2870
2871 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2872
2873 * frame.c (inside_main_func): Check full symbols as well as
2874 minimal symbols.
2875
2876 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2877
2878 * ada-lang.c (advance_wild_match): Rewrite the function's
2879 description. Change the type of target0, t0 and t1 to char.
2880
2881 2020-10-09 Tom Tromey <tromey@adacore.com>
2882
2883 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2884
2885 2020-10-09 Tom Tromey <tromey@adacore.com>
2886
2887 * ada-lang.h (ada_encode): Return std::string.
2888 * ada-lang.c (ada_encode_1): Return std::string.
2889 (ada_encode): Likewise.
2890 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2891 Update.
2892 * ada-exp.y (block_lookup, write_var_or_type): Update.
2893
2894 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2895
2896 PR exp/26714
2897 * printcmd.c (print_formatted): Handle void results as
2898 unformatted prints.
2899
2900 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2901
2902 * arch/aarch32.c (aarch32_create_target_description): Release the
2903 target_desc_up as late as possible.
2904 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2905 * arch/amd64.c (amd64_create_target_description): Likewise.
2906 * arch/arc.c (arc_create_target_description): Return a
2907 target_desc_up, don't release it.
2908 * arch/arc.h (arc_create_target_description): Update declaration.
2909 (arc_lookup_target_description): Move target_desc_up into the
2910 cache, and return a borrowed pointer.
2911 * arch/arm.c (arm_create_target_description): Release the
2912 target_desc_up as late as possible.
2913 * arch/i386.c (i386_create_target_description): Likewise.
2914 * arch/riscv.h (riscv_create_target_description): Update
2915 declaration to match definition.
2916 * arch/tic6x.c (tic6x_create_target_description): Release the
2917 target_desc_up as late as possible.
2918
2919 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2920
2921 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2922 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2923
2924 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2925
2926 * source.c (directory_command): Notify observers that "directories"
2927 parameter has changed.
2928
2929 2020-10-08 Tom Tromey <tom@tromey.com>
2930
2931 * cli/cli-cmds.c (print_disassembly): Style function name and
2932 addresses. Add _() wrappers.
2933
2934 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2935
2936 * NEWS: Mention ARC support in GDBserver.
2937
2938 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2939
2940 * arch/aarch32.c (aarch32_create_target_description): Release
2941 unique_ptr returned from allocate_target_description.
2942 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2943 * arch/amd64.c (amd64_create_target_description): Likewise.
2944 * arch/arc.c (arc_create_target_description): Likewise.
2945 * arch/arm.c (arm_create_target_description): Likewise.
2946 * arch/i386.c (i386_create_target_description): Likewise.
2947 * arch/riscv.c (riscv_create_target_description): Update return
2948 type. Handle allocate_target_description returning a unique_ptr.
2949 (riscv_lookup_target_description): Update to handle unique_ptr.
2950 * arch/tic6x.c (tic6x_create_target_description): Release
2951 unique_ptr returned from allocate_target_description.
2952 * features/microblaze-with-stack-protect.c: Regenerate.
2953 * features/microblaze.c: Regenerate.
2954 * features/mips-dsp-linux.c: Regenerate.
2955 * features/mips-linux.c: Regenerate.
2956 * features/mips64-dsp-linux.c: Regenerate.
2957 * features/mips64-linux.c: Regenerate.
2958 * features/nds32.c: Regenerate.
2959 * features/nios2.c: Regenerate.
2960 * features/or1k.c: Regenerate.
2961 * features/rs6000/powerpc-32.c: Regenerate.
2962 * features/rs6000/powerpc-32l.c: Regenerate.
2963 * features/rs6000/powerpc-403.c: Regenerate.
2964 * features/rs6000/powerpc-403gc.c: Regenerate.
2965 * features/rs6000/powerpc-405.c: Regenerate.
2966 * features/rs6000/powerpc-505.c: Regenerate.
2967 * features/rs6000/powerpc-601.c: Regenerate.
2968 * features/rs6000/powerpc-602.c: Regenerate.
2969 * features/rs6000/powerpc-603.c: Regenerate.
2970 * features/rs6000/powerpc-604.c: Regenerate.
2971 * features/rs6000/powerpc-64.c: Regenerate.
2972 * features/rs6000/powerpc-64l.c: Regenerate.
2973 * features/rs6000/powerpc-7400.c: Regenerate.
2974 * features/rs6000/powerpc-750.c: Regenerate.
2975 * features/rs6000/powerpc-860.c: Regenerate.
2976 * features/rs6000/powerpc-altivec32.c: Regenerate.
2977 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2978 * features/rs6000/powerpc-altivec64.c: Regenerate.
2979 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2980 * features/rs6000/powerpc-e500.c: Regenerate.
2981 * features/rs6000/powerpc-e500l.c: Regenerate.
2982 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2983 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2984 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2985 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2986 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2987 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2988 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2989 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2990 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2991 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2992 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2993 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2994 * features/rs6000/powerpc-vsx32.c: Regenerate.
2995 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2996 * features/rs6000/powerpc-vsx64.c: Regenerate.
2997 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2998 * features/rs6000/rs6000.c: Regenerate.
2999 * features/rx.c: Regenerate.
3000 * features/s390-gs-linux64.c: Regenerate.
3001 * features/s390-linux32.c: Regenerate.
3002 * features/s390-linux32v1.c: Regenerate.
3003 * features/s390-linux32v2.c: Regenerate.
3004 * features/s390-linux64.c: Regenerate.
3005 * features/s390-linux64v1.c: Regenerate.
3006 * features/s390-linux64v2.c: Regenerate.
3007 * features/s390-te-linux64.c: Regenerate.
3008 * features/s390-tevx-linux64.c: Regenerate.
3009 * features/s390-vx-linux64.c: Regenerate.
3010 * features/s390x-gs-linux64.c: Regenerate.
3011 * features/s390x-linux64.c: Regenerate.
3012 * features/s390x-linux64v1.c: Regenerate.
3013 * features/s390x-linux64v2.c: Regenerate.
3014 * features/s390x-te-linux64.c: Regenerate.
3015 * features/s390x-tevx-linux64.c: Regenerate.
3016 * features/s390x-vx-linux64.c: Regenerate.
3017 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3018 from allocate_target_description.
3019 * target-descriptions.c (allocate_target_description): Update
3020 return type.
3021 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3022 allocate_target_description.
3023
3024 2020-10-07 Tom Tromey <tromey@adacore.com>
3025
3026 * unittests/search-memory-selftests.c: New file.
3027 * Makefile.in (SELFTESTS_SRCS): Add
3028 unittests/search-memory-selftests.c.
3029
3030 2020-10-07 Tom Tromey <tromey@adacore.com>
3031
3032 PR gdb/16930:
3033 * findcmd.c (_initialize_mem_search): Mention that the range is
3034 inclusive.
3035
3036 2020-10-07 Tom Tromey <tromey@adacore.com>
3037
3038 * target.h (simple_search_memory): Don't declare.
3039 * target.c (simple_search_memory): Move to gdbsupport.
3040 (default_search_memory): Update.
3041 * remote.c (remote_target::search_memory): Update.
3042
3043 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3044
3045 * Makefile.in (COMPILE): Add CXXFLAGS.
3046 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3047 (check-headers): Add CXXFLAGS.
3048
3049 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3050
3051 * arc-linux-tdep.h: New file.
3052 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3053 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3054 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3055 arc_linux_gregset, arc_linux_v2_regset,
3056 arc_linux_iterate_over_regset_sections,
3057 arc_linux_core_read_description): Implement.
3058 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3059 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3060 (arc_gdbarch_features_create): Add.
3061 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3062
3063 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3064
3065 * arch/arc.h: Rename "arc_gdbarch_features" to
3066 "arc_arch_features".
3067 * arc-tdep.h: Likewise.
3068 * arc-tdep.c: Likewise.
3069
3070 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3071
3072 * infcmd.c (attach_command): Remove the redundant call to
3073 `clear_proceed_status`.
3074
3075 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3076
3077 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3078
3079 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3080
3081 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3082 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3083 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3084
3085 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3086
3087 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3088 (_initialize_break_catch_sig): Don't allocate array.
3089
3090 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3091
3092 * symtab.c (find_pc_line): Return unmapped addresses when the
3093 requested address is also unmapped.
3094
3095 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3096
3097 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3098 tui/tui-out.h.
3099
3100 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3101
3102 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3103 type::is_vector instead of TYPE_VECTOR.
3104
3105 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3106
3107 * auto-load.c (auto_load_objfile_script_1): Don't use
3108 debugfile_holder as temporary variable when stripping drive
3109 letter.
3110
3111 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3112
3113 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3114 Add TYPE_CODE_COMPLEX.
3115 (amd64_windows_return_value): Fix types returned via XMM0.
3116
3117 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3118
3119 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3120 AArch64/ARM maintainers.
3121
3122 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3123
3124 * NEWS: Mention set/show debug event-loop.
3125
3126 2020-10-02 Tom Tromey <tromey@adacore.com>
3127
3128 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3129 REG_EXTENDED.
3130
3131 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3132
3133 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3134 * procfs.c (procfs_inferior_created): Remove.
3135 (_initialize_procfs): Don't register procfs_inferior_created.
3136
3137 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3138
3139 * async-event.c (invoke_async_signal_handlers): Add debug
3140 print.
3141 (check_async_event_handlers): Likewise.
3142 * event-top.c (show_debug_event_loop): New function.
3143 (_initialize_event_top): Register "set debug event-loop"
3144 setting.
3145
3146 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3147
3148 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3149 * debug.h: Remove.
3150 * infrun.c: Include gdbsupport/common-debug.h.
3151 * linux-nat.c: Likewise.
3152
3153 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3154
3155 * async-event.h (create_async_signal_handler): Add name
3156 parameter.
3157 (create_async_event_handler): Likewise.
3158 * async-event.c (struct async_signal_handler) <name>: New field.
3159 (struct async_event_handler) <name>: New field.
3160 (create_async_signal_handler): Assign name.
3161 (create_async_event_handler): Assign name.
3162 * event-top.c (async_init_signals): Pass name when creating
3163 handler.
3164 * infrun.c (_initialize_infrun): Likewise.
3165 * record-btrace.c (record_btrace_push_target): Likewise.
3166 * record-full.c (record_full_open): Likewise.
3167 * remote-notif.c (remote_notif_state_allocate): Likewise.
3168 * remote.c (remote_target::open_1): Likewise.
3169 * tui/tui-win.c (tui_initialize_win): Likewise.
3170
3171 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3172
3173 * async-event.c (initialize_async_signal_handlers): Pass name to
3174 add_file_handler
3175 * event-top.c (ui_register_input_event_handler): Likewise.
3176 * linux-nat.c (linux_nat_target::async): Likewise.
3177 * run-on-main-thread.c (_initialize_run_on_main_thread):
3178 Likewise
3179 * ser-base.c (reschedule): Likewise.
3180 (ser_base_async): Likewise.
3181 * tui/tui-io.c: Likewise.
3182 * top.h (struct ui) <num>: New field.
3183 * top.c (highest_ui_num): New variable.
3184 (ui::ui): Initialize num.
3185
3186 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3187
3188 * observable.h <inferior_created>: Remove parameters. Update all
3189 listeners.
3190 * inferior.h (post_create_inferior): Remove target parameter.
3191 Update all callers.
3192
3193 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3194
3195 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3196 and DW_MACRO_undef_strx.
3197 (dwarf_decode_macros): Likewise
3198 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3199 which is the value of DW_AT_str_offsets_base.
3200 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3201 str_offsets_base.
3202
3203 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3204
3205 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3206
3207 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3208
3209 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3210 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3211
3212 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3213
3214 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3215
3216 2020-09-30 Tom de Vries <tdevries@suse.de>
3217
3218 PR symtab/26683
3219 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3220
3221 2020-09-30 Tom Tromey <tromey@adacore.com>
3222
3223 * dwarf2/read.c (handle_variant): Use constant_value.
3224
3225 2020-09-29 Tom Tromey <tom@tromey.com>
3226
3227 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3228 (read_file_scope, dwarf2_get_pc_bounds)
3229 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3230 (read_structure_type, handle_struct_member_die)
3231 (read_enumeration_type, read_array_type, read_set_type)
3232 (read_tag_pointer_type, read_tag_reference_type)
3233 (read_subroutine_type, read_base_type, read_subrange_type)
3234 (read_full_die_1, partial_die_info::read)
3235 (partial_die_info::read, by, new_symbol)
3236 (dwarf2_const_value_data, dwarf2_const_value_attr)
3237 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3238 (prepare_one_comp_unit): Update.
3239 * dwarf2/attribute.h (DW_UNSND): Remove.
3240
3241 2020-09-29 Tom Tromey <tom@tromey.com>
3242
3243 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3244 (read_subroutine_type, partial_die_info::read)
3245 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3246 (dwarf2_add_member_fn): Update.
3247 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3248 * dwarf2/attribute.c (attribute::as_boolean): New method.
3249
3250 2020-09-29 Tom Tromey <tom@tromey.com>
3251
3252 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3253 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3254 method.
3255 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3256
3257 2020-09-29 Tom Tromey <tom@tromey.com>
3258
3259 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3260 the attribute's form.
3261
3262 2020-09-29 Tom Tromey <tom@tromey.com>
3263
3264 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3265 (dwarf2_add_member_fn): Update.
3266 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3267 * dwarf2/attribute.c (attribute::defaulted): New method, from
3268 is_valid_DW_AT_defaulted.
3269
3270 2020-09-29 Tom Tromey <tom@tromey.com>
3271
3272 * dwarf2/read.c (dw2_get_file_names_reader)
3273 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3274 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3275 (dwarf2_symbol_mark_computed): Use as_unsigned.
3276 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3277 method.
3278 <form_is_section_offset>: Update comment.
3279
3280 2020-09-29 Tom Tromey <tom@tromey.com>
3281
3282 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3283 dwarf2_default_access_attribute. Look up attribute.
3284 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3285 Update.
3286
3287 2020-09-29 Tom Tromey <tom@tromey.com>
3288
3289 * dwarf2/read.c (skip_one_die): Update.
3290 (read_full_die_1): Change how reprocessing is done.
3291 (partial_die_info::read): Update.
3292 (read_attribute_value): Remove need_reprocess parameter.
3293 (read_attribute): Likewise.
3294 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3295 New method.
3296
3297 2020-09-29 Tom Tromey <tom@tromey.com>
3298
3299 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3300 (dwarf2_const_value_attr, dump_die_shallow)
3301 (dwarf2_fetch_constant_bytes): Update.
3302 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3303 comment.
3304 <set_address>: New method.
3305 (DW_ADDR): Remove.
3306 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3307 (attribute::as_string, attribute::as_address): Add assert.
3308
3309 2020-09-29 Tom Tromey <tom@tromey.com>
3310
3311 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3312 (read_attribute_reprocess, read_attribute_value): Update.
3313 (read_attribute): Clear requires_reprocessing.
3314 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3315 form_requires_reprocessing>: New methods.
3316 <string_init>: Clear requires_reprocessing.
3317 <set_unsigned_reprocess>: New method.
3318 <name>: Shrink by one bit.
3319 <requires_reprocessing>: New member.
3320 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3321 method.
3322
3323 2020-09-29 Tom Tromey <tom@tromey.com>
3324
3325 * dwarf2/read.c (read_attribute_value): Update.
3326 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3327 set_unsigned>: New methods.
3328 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3329
3330 2020-09-29 Tom Tromey <tom@tromey.com>
3331
3332 * dwarf2/read.c (get_alignment, read_array_order)
3333 (read_attribute_value, dwarf2_const_value_attr)
3334 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3335 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3336 New methods.
3337 (DW_SND): Remove.
3338
3339 2020-09-29 Tom Tromey <tom@tromey.com>
3340
3341 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3342 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3343 Update.
3344 * dwarf2/attribute.h (struct attribute) <as_signature,
3345 set_signature>: New methods.
3346 (DW_SIGNATURE): Remove.
3347
3348 2020-09-29 Tom Tromey <tom@tromey.com>
3349
3350 * dwarf2/read.c (read_call_site_scope)
3351 (handle_data_member_location, dwarf2_add_member_fn)
3352 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3353 (partial_die_info::read, read_attribute_value)
3354 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3355 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3356 (dwarf2_symbol_mark_computed): Update.
3357 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3358 methods.
3359 (DW_BLOCK): Remove.
3360 * dwarf2/attribute.c (attribute::form_is_block): Add
3361 DW_FORM_data16.
3362
3363 2020-09-29 Tom Tromey <tom@tromey.com>
3364
3365 * dwarf2/read.c (read_cutu_die_from_dwo)
3366 (read_attribute_reprocess, read_attribute_value, read_attribute)
3367 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3368 (dwarf2_fetch_constant_bytes): Update.
3369 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3370 <set_string_noncanonical, set_string_canonical>: New methods.
3371 <string_is_canonical>: Update comment.
3372 <canonical_string_p>: Add assert.
3373 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3374 * dwarf2/attribute.c (attribute::form_is_string): New method.
3375 (attribute::string): Use it.
3376
3377 2020-09-29 Tom Tromey <tom@tromey.com>
3378
3379 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3380 (dump_die_shallow): Use canonical_string_p.
3381 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3382 method.
3383
3384 2020-09-29 Tom Tromey <tom@tromey.com>
3385
3386 * dwarf2/read.c (partial_die_info::read)
3387 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3388 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3389 attribute::as_string.
3390
3391 2020-09-29 Tom Tromey <tom@tromey.com>
3392
3393 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3394 DW_ADDR.
3395 (attribute::string): Don't use DW_STRING.
3396 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3397 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3398
3399 2020-09-29 Tom Tromey <tom@tromey.com>
3400
3401 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3402 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3403 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3404 * dwarf2/attribute.h (struct attribute): Rename methods.
3405 * dwarf2/attribute.c (attribute::as_address): Rename from
3406 value_as_address.
3407 (attribute::as_string): Rename from value_as_string.
3408
3409 2020-09-29 Tom Tromey <tom@tromey.com>
3410
3411 * dwarf2/read.c (partial_die_info::read) <case
3412 DW_AT_linkage_name>: Use value_as_string.
3413 (dwarf2_string_attr): Use value_as_string.
3414 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3415 method.
3416 * dwarf2/attribute.c (attribute::value_as_string): New method.
3417
3418 2020-09-29 Pedro Alves <pedro@palves.net>
3419
3420 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3421 defined before using '#pragma GCC diagnostic' instead of checking
3422 __clang__.
3423
3424 2020-09-28 Tom Tromey <tom@tromey.com>
3425
3426 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3427 (handle_signal_stop): Update.
3428 * procfs.c (procfs_target::insert_watchpoint): Update.
3429 * target.h (target_have_steppable_watchpoint): Now a function.
3430
3431 2020-09-28 Tom Tromey <tom@tromey.com>
3432
3433 * infrun.c (set_schedlock_func): Update.
3434 * target.h (target_can_lock_scheduler): Now a function.
3435
3436 2020-09-28 Tom Tromey <tom@tromey.com>
3437
3438 * inferior.h (class inferior) <has_execution>: Update.
3439 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3440 * valops.c (find_function_in_inferior)
3441 (value_allocate_space_in_inferior): Update.
3442 * top.c (kill_or_detach): Update.
3443 * target.c (target_preopen, set_target_permissions): Update.
3444 (target_has_execution_current): Remove.
3445 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3446 Update.
3447 * solib.c (update_solib_list, reload_shared_libraries): Update.
3448 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3449 * solib-dsbt.c (enable_break): Update.
3450 * score-tdep.c (score7_fetch_inst): Update.
3451 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3452 Update.
3453 * remote.c (remote_target::start_remote)
3454 (remote_target::remote_check_symbols, remote_target::open_1)
3455 (remote_target::remote_detach_1, remote_target::verify_memory)
3456 (remote_target::xfer_partial, remote_target::read_description)
3457 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3458 * record-full.c (record_full_open_1): Update.
3459 * record-btrace.c (record_btrace_target_open): Update.
3460 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3461 (value_nsstring): Update.
3462 * linux-thread-db.c (add_thread_db_info)
3463 (thread_db_find_new_threads_silently, check_thread_db_callback)
3464 (try_thread_db_load_1, record_thread): Update.
3465 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3466 Update.
3467 * linux-fork.c (checkpoint_command): Update.
3468 * infrun.c (set_non_stop, set_observer_mode)
3469 (check_multi_target_resumption, for_each_just_stopped_thread)
3470 (maybe_remove_breakpoints, normal_stop)
3471 (class infcall_suspend_state): Update.
3472 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3473 (info_program_command, attach_command): Update.
3474 * infcall.c (call_function_by_hand_dummy): Update.
3475 * inf-loop.c (inferior_event_handler): Update.
3476 * gcore.c (gcore_command, derive_heap_segment): Update.
3477 * exec.c (exec_file_command): Update.
3478 * eval.c (evaluate_subexp): Update.
3479 * compile/compile.c (compile_to_object): Update.
3480 * cli/cli-dump.c (restore_command): Update.
3481 * breakpoint.c (update_watchpoint)
3482 (update_inserted_breakpoint_locations)
3483 (insert_breakpoint_locations, get_bpstat_thread): Update.
3484 * target.h (target_has_execution): Remove macro.
3485 (target_has_execution_current): Don't declare.
3486 (target_has_execution): Rename from target_has_execution_1. Add
3487 argument default.
3488
3489 2020-09-28 Tom Tromey <tom@tromey.com>
3490
3491 * mi/mi-main.c (exec_reverse_continue)
3492 (mi_cmd_list_target_features): Update.
3493 * infrun.c (set_exec_direction_func): Update.
3494 * target.c (default_execution_direction): Update.
3495 * reverse.c (exec_reverse_once): Update.
3496 * target.h (target_can_execute_reverse): Now a function.
3497
3498 2020-09-28 Tom Tromey <tom@tromey.com>
3499
3500 * tui/tui-regs.c (tui_get_register)
3501 (tui_data_window::show_registers): Update.
3502 * thread.c (scoped_restore_current_thread::restore)
3503 (scoped_restore_current_thread::scoped_restore_current_thread):
3504 Update.
3505 * regcache-dump.c (regcache_print): Update.
3506 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3507 Update.
3508 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3509 * mep-tdep.c (current_me_module, current_options): Update.
3510 * linux-thread-db.c (thread_db_load): Update.
3511 * infcmd.c (registers_info, info_vector_command)
3512 (info_float_command): Update.
3513 * ia64-tdep.c (ia64_frame_prev_register)
3514 (ia64_sigtramp_frame_prev_register): Update.
3515 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3516 * gcore.c (derive_stack_segment): Update.
3517 * frame.c (get_current_frame, has_stack_frames): Update.
3518 * findvar.c (language_defn::read_var_value): Update.
3519 * arm-tdep.c (arm_pc_is_thumb): Update.
3520 * target.c (target_has_registers): Rename from
3521 target_has_registers_1.
3522 * target.h (target_has_registers): Remove macro.
3523 (target_has_registers): Rename from target_has_registers_1.
3524
3525 2020-09-28 Tom Tromey <tom@tromey.com>
3526
3527 * windows-tdep.c (tlb_make_value): Update.
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 (thread_command): Update.
3532 * stack.c (backtrace_command_1, frame_apply_level_command)
3533 (frame_apply_all_command, frame_apply_command): Update.
3534 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3535 Update.
3536 * gcore.c (derive_stack_segment): Update.
3537 * frame.c (get_current_frame, has_stack_frames): Update.
3538 * auxv.c (info_auxv_command): Update.
3539 * ada-tasks.c (ada_build_task_list): Update.
3540 * target.c (target_has_stack): Rename from target_has_stack_1.
3541 * target.h (target_has_stack): Remove macro.
3542 (target_has_stack): Rename from target_has_stack_1.
3543
3544 2020-09-28 Tom Tromey <tom@tromey.com>
3545
3546 * target.c (target_has_memory): Rename from target_has_memory_1.
3547 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3548 * thread.c (scoped_restore_current_thread::restore)
3549 (scoped_restore_current_thread::scoped_restore_current_thread):
3550 Update.
3551 * frame.c (get_current_frame, has_stack_frames): Update.
3552 * target.h (target_has_memory): Remove macro.
3553 (target_has_memory): Rename from target_has_memory_1.
3554
3555 2020-09-28 Tom Tromey <tom@tromey.com>
3556
3557 * target.c (target_has_all_memory_1): Remove.
3558 * target.h (target_has_all_memory): Remove define.
3559 (target_has_all_memory_1): Don't declare.
3560
3561 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3562
3563 * ser-base.c: Adjust comments formatting.
3564
3565 2020-09-27 Tom Tromey <tom@tromey.com>
3566
3567 PR tui/25342:
3568 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3569
3570 2020-09-27 Tom Tromey <tom@tromey.com>
3571
3572 PR tui/25342:
3573 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3574
3575 2020-09-27 Tom Tromey <tom@tromey.com>
3576
3577 * unittests/tui-selftests.c: Update.
3578 * tui/tui-winsource.h (struct tui_source_window_base)
3579 <extra_margin, show_line_number, refresh_pad>: New methods.
3580 <m_max_length, m_pad>: New members.
3581 (tui_copy_source_line): Update.
3582 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3583 first_col, line_width, ndigits parameters. Add length.
3584 (tui_source_window_base::show_source_line): Write to pad. Line
3585 number now 0-based.
3586 (tui_source_window_base::refresh_pad): New method.
3587 (tui_source_window_base::show_source_content): Write to pad. Call
3588 refresh_pad.
3589 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3590 not refill.
3591 (tui_source_window_base::update_exec_info): Call
3592 show_line_number.
3593 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3594 method.
3595 <m_digits>: New member.
3596 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3597 and m_max_length.
3598 (tui_source_window::show_line_number): New method.
3599 * tui/tui-io.h (tui_puts): Fix comment.
3600 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3601 m_max_length.
3602
3603 2020-09-27 Tom Tromey <tom@tromey.com>
3604
3605 * tui/tui-winsource.c
3606 (tui_source_window_base::set_is_exec_point_at): Don't call
3607 show_source_line.
3608
3609 2020-09-27 Tom Tromey <tom@tromey.com>
3610
3611 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3612 method.
3613 <erase>: Update.
3614 <cursor_x, cursor_y>: Remove.
3615 <m_inner_window>: New member.
3616 (tui_py_window::rerender): Create inner window.
3617 (tui_py_window::output): Write to inner window.
3618
3619 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3620
3621 PR python/26586
3622 * cli/cli-script.c (execute_control_commands): don't set
3623 instream to nullptr here as this breaks the from_tty argument
3624 to gdb.execute in Python.
3625 (execute_user_command): set instream to nullptr here instead.
3626
3627 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3628
3629 * infrun.h (infrun_debug_printf): Fix formatting.
3630 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3631
3632 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3633
3634 * compile/compile-object-load.h (struct munmap_list): Add
3635 explicitly-defined move constructor.
3636
3637 2020-09-24 Tom Tromey <tromey@adacore.com>
3638
3639 PR tui/26638:
3640 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3641 method.
3642 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3643 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3644 (tui_prev_win): Rewrite.
3645
3646 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3647
3648 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3649 in WOW64 processes as SIGINT.
3650 * nat/windows-nat.h: Make wow64_process a shared variable.
3651 * windows-nat.c: Remove static wow64_process variable.
3652
3653 2020-09-23 Tom Tromey <tom@tromey.com>
3654
3655 PR symtab/25470:
3656 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3657 offset and bit size.
3658 * printcmd.c (print_scalar_formatted): Handle zero-length
3659 integer.
3660 (print_scalar_formatted): Use bit_size_differs_p.
3661 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3662 constant.
3663 (union type_specific): <int_stuff>: New member.
3664 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3665 methods.
3666 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3667 TYPE_SPECIFIC_FIELD.
3668 (recursive_dump_type, copy_type_recursive): Update.
3669 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3670 DW_AT_data_bit_offset.
3671
3672 2020-09-23 Tom Tromey <tom@tromey.com>
3673
3674 * utils.h (class gdb_argv): Add move operators.
3675 <append>: New methods.
3676 * compile/compile.c (build_argc_argv): Remove.
3677 (compile_args_argc): Remove.
3678 (compile_args_argv): Change type.
3679 (set_compile_args): Simplify.
3680 (append_args): Remove.
3681 (filter_args): Remove argcp parameter.
3682 (get_args): Return gdb_argv. Simplify.
3683 (compile_to_object): Update.
3684
3685 2020-09-23 Tom Tromey <tom@tromey.com>
3686
3687 * compile/compile-object-run.c (do_module_cleanup)
3688 <~do_module_cleanup> :Remove.
3689 (do_module_cleanup): Update.
3690 * compile/compile-object-load.h (struct munmap_list): Add move
3691 assignment operator.
3692 <source_file>: Now a std::string.
3693 <munmap_list>: Rename. No longer a pointer.
3694 * compile/compile-object-load.c (struct setup_sections_data): Add
3695 constructor.
3696 <setup_one_section>: Declare.
3697 <munmap_list>: Move earlier.
3698 <m_bfd>: New member.
3699 <m_last_size, m_last_section_first, m_last_prot,
3700 m_last_max_alignment>: Rename, add initializers where needed.
3701 (setup_sections_data::setup_one_section): Rename from
3702 setup_sections. Update.
3703 (compile_object_load): Update. Don't use bfd_map_over_sections.
3704
3705 2020-09-23 Tom Tromey <tom@tromey.com>
3706
3707 * compile/compile-object-run.c (struct do_module_cleanup): Add
3708 parameters to constructor. Update destructor.
3709 <source_file, scope, scope_data, out_value_type, out_value_addr,
3710 munmap_list_head, objfile_name_string>: Remove.
3711 <module>: New member.
3712 (do_module_cleanup): Update.
3713 (compile_object_run): Update.
3714
3715 2020-09-23 Tom Tromey <tom@tromey.com>
3716
3717 * compile/compile.c (eval_compile_command): Update.
3718 * compile/compile-object-run.h (compile_object_run): Take a
3719 compile_module_up.
3720 * compile/compile-object-run.c (compile_object_run): Take a
3721 compile_module_up.
3722 * compile/compile-object-load.h (struct compile_module): Add
3723 constructor, destructor.
3724 (compile_module_up): New typedef.
3725 (compile_object_load): Return compile_object_up.
3726 * compile/compile-object-load.c (compile_object_load): Return
3727 compile_module_up.
3728
3729 2020-09-23 Tom Tromey <tom@tromey.com>
3730
3731 * compile/compile-object-run.c (struct do_module_cleanup): Add
3732 constructor, destructor.
3733 <objfile_name_string>: Don't use struct hack.
3734 (do_module_cleanup): Use delete.
3735 (compile_object_run): Use new.
3736
3737 2020-09-23 Tom Tromey <tom@tromey.com>
3738
3739 * compile/compile-cplus-types.c
3740 (compile_cplus_convert_struct_or_union): Use std::vector.
3741 (compile_cplus_convert_func): Likewise.
3742 * compile/compile-c-types.c (convert_func): Use std::vector.
3743
3744 2020-09-21 Tom Tromey <tromey@adacore.com>
3745
3746 * sparc-tdep.c (sparc32_skip_prologue): Use
3747 skip_prologue_using_sal.
3748
3749 2020-09-19 Tom Tromey <tom@tromey.com>
3750
3751 * symfile.c (add_section_size_callback): Remove.
3752 (load_one_section): Rename from load_section_callback. Change
3753 parameters.
3754 (generic_load): Use foreach.
3755
3756 2020-09-19 Tom Tromey <tom@tromey.com>
3757
3758 * exec.c (add_to_section_table): Remove.
3759 (build_section_table): Use foreach.
3760
3761 2020-09-19 Tom Tromey <tom@tromey.com>
3762
3763 * elfread.c (elf_locate_sections): Change parameters.
3764 (elf_symfile_read): Use foreach.
3765
3766 2020-09-19 Tom Tromey <tom@tromey.com>
3767
3768 * cli/cli-dump.c (struct callback_data): Remove.
3769 (restore_one_section): Rename from restore_section_callback.
3770 Change parameters.
3771 (restore_binary_file): Change parameters.
3772 (restore_command): Use foreach.
3773
3774 2020-09-19 Tom Tromey <tom@tromey.com>
3775
3776 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3777 (gcore_copy_callback): Likewise.
3778 (gcore_memory_sections): Use foreach.
3779
3780 2020-09-19 Tom Tromey <tom@tromey.com>
3781
3782 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3783 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3784 parameters.
3785 (generic_elf_osabi_sniffer): Use foreach.
3786 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3787 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3788
3789 2020-09-19 Tom Tromey <tom@tromey.com>
3790
3791 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3792 (dwarf2_get_dwz_file): Use foreach.
3793 (dwarf2_locate_dwo_sections): Change parameters.
3794 (open_and_init_dwo_file): Use foreach.
3795 (dwarf2_locate_common_dwp_sections): Change parameters.
3796 (open_and_init_dwp_file): Use foreach.
3797
3798 2020-09-19 Tom Tromey <tom@tromey.com>
3799
3800 * symfile.h: (find_lowest_section): Don't declare.
3801 * symfile.c (find_lowest_section): Now static. Change
3802 parameters.
3803 (struct place_section_arg): Remove.
3804 (place_section): Change parameters.
3805 (addr_info_make_relative): Use foreach.
3806 (symfile_dummy_outputs): Remove.
3807 (default_symfile_relocate): Use foreach.
3808
3809 2020-09-19 Tom Tromey <tom@tromey.com>
3810
3811 * objfiles.c (add_to_objfile_sections): Rename from
3812 add_to_objfile_sections_full.
3813 (add_to_objfile_sections): Remove.
3814 (build_objfile_section_table): Use foreach.
3815
3816 2020-09-19 Tom Tromey <tom@tromey.com>
3817
3818 * stap-probe.c (get_stap_base_address_1): Remove.
3819 (get_stap_base_address): Use foreach.
3820
3821 2020-09-19 Tom Tromey <tom@tromey.com>
3822
3823 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3824 parameters.
3825 (gdb_bfd_close_or_warn): Use foreach.
3826
3827 2020-09-19 Tom Tromey <tom@tromey.com>
3828
3829 * corelow.c (add_to_thread_list): Change parameters.
3830 (core_target_open): Use foreach.
3831
3832 2020-09-19 Tom Tromey <tom@tromey.com>
3833
3834 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3835 existing function.
3836
3837 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3838
3839 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3840 for arrays.
3841
3842 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3843
3844 * eval.c: Remove 'f-lang.h' include.
3845 (value_f90_subarray): Moved to f-lang.c.
3846 (eval_call): Renamed to...
3847 (evaluate_subexp_do_call): ...this, is no longer static, header
3848 comment moved into header file.
3849 (evaluate_funcall): Update call to eval_call.
3850 (skip_undetermined_arglist): Moved to f-lang.c.
3851 (fortran_value_subarray): Likewise.
3852 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3853 moved to evaluate_subexp_f.
3854 (calc_f77_array_dims): Moved to f-lang.c
3855 * expprint.c (print_subexp_funcall): New function.
3856 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3857 moved to print_subexp_f, OP_FUNCALL uses new function.
3858 (dump_subexp_body_funcall): New function.
3859 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3860 moved to dump_subexp_f, OP_FUNCALL uses new function.
3861 * expression.h (evaluate_subexp_do_call): Declare.
3862 * f-lang.c (value_f90_subarray): Moved from eval.c.
3863 (skip_undetermined_arglist): Likewise.
3864 (calc_f77_array_dims): Likewise.
3865 (fortran_value_subarray): Likewise.
3866 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3867 (operator_length_f): Likewise.
3868 (print_subexp_f): Likewise.
3869 (dump_subexp_body_f): Likewise.
3870 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3871 declaration of this operation to here.
3872 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3873 support moved to operator_length_f.
3874 * parser-defs.h (dump_subexp_body_funcall): Declare.
3875 (print_subexp_funcall): Declare.
3876 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3877 fortran-operator.def.
3878
3879 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3880
3881 * eval.c (fortran_value_subarray): New function, content is taken
3882 from...
3883 (evaluate_subexp_standard): ...here, in two places. Now arrays
3884 and strings both call the new function.
3885 (calc_f77_array_dims): Add header comment, handle strings.
3886
3887 2020-09-18 Victor Collod <vcollod@nvidia.com>
3888
3889 PR gdb/26635
3890 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3891 (i386_analyze_prologue): Call i386_skip_endbr.
3892
3893 2020-09-18 Tom Tromey <tromey@adacore.com>
3894
3895 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3896 (windows_nat_target::wait): Update.
3897 * target/wait.h (enum target_wait_flag): New. Use
3898 DEF_ENUM_FLAGS_TYPE.
3899 * target/target.h (target_wait): Change type of options.
3900 * target.h (target_options_to_string, default_target_wait):
3901 Update.
3902 (struct target_ops) <wait>: Change type of options.
3903 * target.c (target_wait, default_target_wait, do_option): Change
3904 type of "options".
3905 (target_options_to_string): Likewise.
3906 * target-delegates.c: Rebuild.
3907 * target-debug.h (target_debug_print_target_wait_flags): Rename
3908 from target_debug_print_options.
3909 * sol-thread.c (class sol_thread_target) <wait>: Update.
3910 (sol_thread_target::wait): Update.
3911 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3912 (rs6000_nat_target::wait): Update.
3913 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3914 Update.
3915 (remote_target::wait_ns, remote_target::wait_as): Change type of
3916 "options".
3917 (remote_target::wait): Update.
3918 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3919 (gdbsim_target::wait): Update.
3920 * record-full.c (class record_full_base_target) <wait>: Update.
3921 (record_full_wait_1): Change type of "options".
3922 (record_full_base_target::wait): Update.
3923 * record-btrace.c (class record_btrace_target) <wait>: Update.
3924 (record_btrace_target::wait): Update.
3925 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3926 Update.
3927 (ravenscar_thread_target::wait): Update.
3928 * procfs.c (class procfs_target) <wait>: Update.
3929 (procfs_target::wait): Update.
3930 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3931 * obsd-nat.c (obsd_nat_target::wait): Update.
3932 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3933 (nto_procfs_target::wait): Update.
3934 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3935 * nbsd-nat.c (nbsd_wait): Change type of "options".
3936 (nbsd_nat_target::wait): Update.
3937 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3938 (thread_db_target::wait): Update.
3939 * linux-nat.h (class linux_nat_target) <wait>: Update.
3940 * linux-nat.c (linux_nat_target::wait): Update.
3941 (linux_nat_wait_1): Update.
3942 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3943 "options".
3944 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3945 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3946 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3947 (go32_nat_target::wait): Update.
3948 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3949 * gnu-nat.c (gnu_nat_target::wait): Update.
3950 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3951 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3952 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3953 * darwin-nat.c (darwin_nat_target::wait): Update.
3954 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3955 (bsd_uthread_target::wait): Update.
3956 * aix-thread.c (class aix_thread_target) <wait>: Update.
3957 (aix_thread_target::wait): Update.
3958
3959 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3960
3961 * compile/compile-object-run.c (create_copied_type_recursive): New
3962 function.
3963 (compile_object_run): Use new function.
3964
3965 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3966
3967 * NEWS: Mention x86_64 Cygwin core file support.
3968
3969 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3970
3971 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3972 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3973
3974 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3975
3976 * windows-tdep.h: Add prototypes.
3977 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3978 (i386_windows_core_pid_to_str): Move and rename ...
3979 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3980 (windows_core_pid_to_str): ... and here.
3981 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3982
3983 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3984 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3985 (amd64_windows_init_abi_common): ... and register.
3986
3987 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3988
3989 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3990 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3991
3992 2020-09-18 Pedro Alves <pedro@palves.net>
3993
3994 PR gdb/26631
3995 * thread.c (thread_find_command): Switch inferior before calling
3996 target methods.
3997
3998 2020-09-17 Tom Tromey <tromey@adacore.com>
3999
4000 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4001 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4002 (tdesc_arch_data_up): New typedef.
4003 (tdesc_use_registers, tdesc_data_alloc): Update.
4004 (tdesc_data_cleanup): Don't declare.
4005 * target-descriptions.c (tdesc_data_alloc): Return a
4006 tdesc_arch_data_up.
4007 (tdesc_arch_data_deleter::operator()): Rename from
4008 tdesc_data_cleanup. Change argument type.
4009 (tdesc_use_registers): Change early_data to an rvalue reference.
4010 (tdesc_use_registers): Don't use delete.
4011 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4012 * s390-tdep.c (s390_gdbarch_init): Update.
4013 * rx-tdep.c (rx_gdbarch_init): Update.
4014 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4015 * riscv-tdep.c (riscv_gdbarch_init): Update.
4016 * or1k-tdep.c (or1k_gdbarch_init): Update.
4017 * nios2-tdep.c (nios2_gdbarch_init): Update.
4018 * nds32-tdep.c (nds32_gdbarch_init): Update.
4019 * mips-tdep.c (mips_gdbarch_init): Update.
4020 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4021 * m68k-tdep.c (m68k_gdbarch_init): Update.
4022 * i386-tdep.c (i386_gdbarch_init): Update.
4023 * arm-tdep.c (arm_gdbarch_init): Update.
4024 * arc-tdep.c (arc_tdesc_init): Update.
4025 (arc_gdbarch_init): Update.
4026 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4027
4028 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4029
4030 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4031 for WOW64 processes.
4032
4033 2020-09-17 Tom Tromey <tom@tromey.com>
4034
4035 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4036
4037 2020-09-17 Tom Tromey <tom@tromey.com>
4038
4039 * value.c (preserve_values): Update.
4040 * python/py-type.c (save_objfile_types): Update.
4041 * guile/scm-type.c (save_objfile_types): Update.
4042 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4043 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4044 * compile/compile-object-run.c (compile_object_run): Update.
4045
4046 2020-09-17 Tom Tromey <tom@tromey.com>
4047
4048 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4049 Remove.
4050 <m_table>: Now htab_up.
4051 * typeprint.c (typedef_hash_table::recursively_update)
4052 (typedef_hash_table::add_template_parameters)
4053 (typedef_hash_table::typedef_hash_table): Update.
4054 (typedef_hash_table::~typedef_hash_table): Remove.
4055 (typedef_hash_table::typedef_hash_table)
4056 (typedef_hash_table::find_global_typedef)
4057 (typedef_hash_table::find_typedef): Update.
4058
4059 2020-09-17 Tom Tromey <tom@tromey.com>
4060
4061 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4062
4063 2020-09-17 Tom Tromey <tom@tromey.com>
4064
4065 * linespec.c (class decode_compound_collector)
4066 <~decode_compound_collector>: Remove.
4067 <m_unique_syms>: Now htab_up.
4068 (decode_compound_collector::operator ()): Update.
4069 (class symtab_collector) <~symtab_collector>: Remove.
4070 <m_symtab_table>: Now htab_up.
4071 (symtab_collector::operator ()): Update.
4072
4073 2020-09-17 Tom Tromey <tom@tromey.com>
4074
4075 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4076 (filename_seen_cache::clear): Update.
4077 (~filename_seen_cache): Remove.
4078 (filename_seen_cache::seen): Update.
4079 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4080 htab_up.
4081 <~filename_seen_cache>: Remove.
4082 <traverse>: Update.
4083
4084 2020-09-17 Tom Tromey <tom@tromey.com>
4085
4086 * completer.c (completion_tracker::discard_completions)
4087 (completion_tracker::~completion_tracker)
4088 (completion_tracker::maybe_add_completion)
4089 (completion_tracker::remove_completion)
4090 (completion_tracker::recompute_lowest_common_denominator)
4091 (completion_tracker::build_completion_result): Update.
4092 * completer.h (class completion_tracker) <have_completions>:
4093 Update.
4094 <m_entries_hash>: Now htab_up.
4095
4096 2020-09-17 Tom Tromey <tom@tromey.com>
4097
4098 * breakpoint.c (ambiguous_names_p): Use htab_up.
4099
4100 2020-09-17 Tom Tromey <tom@tromey.com>
4101
4102 * auto-load.c (struct auto_load_pspace_info)
4103 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4104 <loaded_script_files, loaded_script_texts>: Change type to
4105 htab_up.
4106 (~auto_load_pspace_info) Remove.
4107 (init_loaded_scripts_info, maybe_add_script_file)
4108 (maybe_add_script_text, auto_load_info_scripts): Update.
4109
4110 2020-09-17 Tom Tromey <tromey@adacore.com>
4111
4112 * c-exp.y (name_obstack): Now static.
4113
4114 2020-09-17 Chungyi Chi <demonic@csie.io>
4115
4116 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4117
4118 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4119
4120 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4121 (add_solib_catchpoint): Likewise.
4122 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4123 to bool.
4124 (add_solib_catchpoint): Change int parameter/variable to bool.
4125 (catch_load_or_unload): Likewise.
4126 (init_catchpoint): Likewise.
4127 (create_fork_vfork_event_catchpoint): Likewise.
4128 (catch_fork_command_1): Likewise.
4129 (catch_exec_command_1): Likewise.
4130
4131 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4132
4133 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4134 Change instance_flags to m_instance_flags.
4135
4136 2020-09-16 Tom Tromey <tromey@adacore.com>
4137
4138 PR gdb/26598:
4139 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4140
4141 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4142
4143 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4144 PL_FLAG_EXEC.
4145 (fbsd_nat_target::insert_exec_catchpoint)
4146 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4147 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4148 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4149
4150 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4151
4152 * configure.ac: Remove check for kinfo_getvmmap().
4153 * configure, config.in: Regenerate.
4154 * fbsd-nat.c (fbsd_read_mapping): Remove
4155 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4156 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4157 kinfo_get_vmmap() are always present.
4158
4159 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4160
4161 * fbsd-nat.c: Always include support for
4162 TARGET_OBJECT_SIGNAL_INFO.
4163
4164 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4165
4166 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4167 sysctl and remove procfs fallback.
4168
4169 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4170
4171 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4172 * fbsd-nat.h: Likewise.
4173
4174 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4175
4176 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4177 argument.
4178
4179 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4180
4181 * ada-lang.c (ada_language_data): Delete.
4182 (ada_language): Remove references to ada_language_data.
4183 * c-lang.c (c_language_data): Delete.
4184 (c_language): Remove references to c_language_data.
4185 (cplus_language_data): Delete.
4186 (cplus_language): Remove references to cplus_language_data.
4187 (asm_language_data): Delete.
4188 (asm_language): Remove references to asm_language_data.
4189 (minimal_language_data): Delete.
4190 (minimal_language): Remove references to minimal_language_data.
4191 * d-lang.c (d_language_data): Delete.
4192 (d_language): Remove references to d_language_data.
4193 * f-lang.c (f_language_data): Delete.
4194 (f_language): Remove references to f_language_data.
4195 * go-lang.c (go_language_data): Delete.
4196 (go_language): Remove references to go_language_data.
4197 * language.c (unknown_language_data): Delete.
4198 (unknown_language): Remove references to unknown_language_data.
4199 (auto_language_data): Delete.
4200 (auto_language): Remove references to auto_language_data.
4201 * language.h (language_data): Delete struct.
4202 (language_defn): No longer inherit from language_data.
4203 * m2-lang.c (m2_language_data): Delete.
4204 (m2_language): Remove references to m2_language_data.
4205 * objc-lang.c (objc_language_data): Delete.
4206 (objc_language): Remove references to objc_language_data.
4207 * opencl-lang.c (opencl_language_data): Delete.
4208 (opencl_language): Remove references to opencl_language_data.
4209 * p-lang.c (pascal_language_data): Delete.
4210 (pascal_language): Remove references to pascal_language_data.
4211 * rust-lang.c (rust_language_data): Delete.
4212 (rust_language): Remove references to rust_language_data.
4213
4214 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4215
4216 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4217 initializer.
4218 (ada_language::opcode_print_table): New member function.
4219 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4220 (c_language::opcode_print_table): New member function.
4221 (cplus_language_data): Remove la_op_print_tab initializer.
4222 (cplus_language::opcode_print_table): New member function.
4223 (asm_language_data): Remove la_op_print_tab initializer.
4224 (asm_language::opcode_print_table): New member function.
4225 (minimal_language_data): Remove la_op_print_tab initializer.
4226 (minimal_language::opcode_print_table): New member function.
4227 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4228 (d_language::opcode_print_table): New member function.
4229 * expprint.c (print_subexp_standard): Update call to
4230 opcode_print_table.
4231 (op_string): Likewise.
4232 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4233 (f_language::opcode_print_table): New member function.
4234 * go-lang.c (go_language_data): Remove la_op_print_tab
4235 initializer.
4236 (go_language::opcode_print_table): New member function.
4237 * language.c (unknown_language_data): Remove la_op_print_tab
4238 initializer.
4239 (unknown_language::opcode_print_table): New member function.
4240 (auto_language_data): Remove la_op_print_tab initializer.
4241 (auto_language::opcode_print_table): New member function.
4242 * language.h (language_data): Remove la_op_print_tab field.
4243 (language_defn::opcode_print_table): Declare new member function.
4244 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4245 initializer.
4246 (m2_language::opcode_print_table): New member function.
4247 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4248 initializer.
4249 (objc_language::opcode_print_table): New member function.
4250 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4251 initializer.
4252 (opencl_language::opcode_print_table): New member function.
4253 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4254 initializer.
4255 (pascal_language::opcode_print_table): New member function.
4256 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4257 initializer.
4258 (rust_language::opcode_print_table): New member function.
4259
4260 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4261
4262 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4263 (ada_language::expression_ops): New member function.
4264 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4265 (c_language::expression_ops): New member function.
4266 (cplus_language_data): Remove la_exp_desc initializer.
4267 (cplus_language::expression_ops): New member function.
4268 (asm_language_data): Remove la_exp_desc initializer.
4269 (asm_language::expression_ops): New member function.
4270 (minimal_language_data): Remove la_exp_desc initializer.
4271 (minimal_language::expression_ops): New member function.
4272 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4273 (d_language::expression_ops): New member function.
4274 * eval.c (evaluate_subexp): Update call to expression_ops.
4275 * expprint.c (print_subexp): Likewise.
4276 (op_name): Likewise.
4277 (dump_subexp_body): Likewise.
4278 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4279 (f_language::expression_ops): New member function.
4280 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4281 (go_language::expression_ops): New member function.
4282 * language.c (language_defn::expression_ops): New function.
4283 (unknown_language_data): Remove la_exp_desc initializer.
4284 (auto_language_data): Likewise.
4285 * language.h (language_data): Remove la_exp_desc field.
4286 (language_defn::expression_ops): Declare new member function.
4287 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4288 (m2_language::expression_ops): New member function.
4289 * objc-lang.c (objc_language_data): Remove la_exp_desc
4290 initializer.
4291 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4292 initializer.
4293 (opencl_language::expression_ops): New member function.
4294 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4295 * parse.c (operator_length): Update call to expression_ops.
4296 (exp_iterate): Likewise.
4297 * rust-lang.c (rust_language_data): Remove la_exp_desc
4298 initializer.
4299 (ruse_language::expression_ops): New member function.
4300
4301 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4302
4303 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4304 initializer.
4305 (ada_language::varobj_ops): New member function.
4306 * c-lang.c (c_language_data): Remove la_varobj_ops
4307 initializer.
4308 (cplus_language_data): Likewise.
4309 (cplus_language::varobj_ops): New member function.
4310 (asm_language_data): Remove la_varobj_ops initializer.
4311 (minimal_language_data): Likewise.
4312 * d-lang.c (d_language_data): Likewise.
4313 * f-lang.c (f_language_data): Likewise.
4314 * go-lang.c (go_language_data): Likewise.
4315 * language.c (language_defn::varobj_ops): New function.
4316 (unknown_language_data): Remove la_varobj_ops
4317 initializer.
4318 (auto_language_data): Likewise.
4319 * language.h (language_data): Remove la_varobj_ops field.
4320 (language_defn::varobj_ops): Declare new member function.
4321 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4322 * objc-lang.c (objc_language_data): Likewise.
4323 * opencl-lang.c (opencl_language_data): Likewise.
4324 * p-lang.c (pascal_language_data): Likewise.
4325 * rust-lang.c (rust_language_data): Likewise.
4326 * varobj.c (varobj_create): Update call to varobj_ops.
4327 * varobj.h (default_varobj_ops): Delete define.
4328
4329 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4330
4331 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4332 initializer.
4333 * c-lang.c (c_language_data): Likewise.
4334 (c_language::macro_expansion): New member function.
4335 (cplus_language_data): Likewise.
4336 (cplus_language::macro_expansion): New member function.
4337 (asm_language_data): Likewise.
4338 (asm_language::macro_expansion): New member function.
4339 (minimal_language_data): Likewise.
4340 (minimal_language::macro_expansion): New member function.
4341 * d-lang.c (d_language_data): Remove la_macro_expansion
4342 initializer.
4343 * f-lang.c (f_language_data): Likewise.
4344 * go-lang.c (go_language_data): Likewise.
4345 * language.c (unknown_language_data): Likewise.
4346 (auto_language_data): Likewise.
4347 * language.h (language_data): Remove la_macro_expansion field.
4348 (language_defn::macro_expansion): New member function.
4349 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4350 initializer.
4351 * objc-lang.c (objc_language_data): Likewise.
4352 (objc_language::macro_expansion): New member function.
4353 * opencl-lang.c (opencl_language_data): Likewise.
4354 (opencl_language::macro_expansion): New member function.
4355 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4356 initializer.
4357 * rust-lang.c (rust_language_data): Likewise.
4358 * symtab.c (default_collect_symbol_completion_matches_break_on):
4359 Update call to macro_expansion.
4360
4361 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4362
4363 * ada-lang.c (ada_language_data): Remove la_array_ordering
4364 initializer.
4365 * c-lang.c (c_language_data): Likewise.
4366 (cplus_language_data): Likewise.
4367 (asm_language_data): Likewise.
4368 (minimal_language_data): Likewise.
4369 * d-lang.c (d_language_data): Likewise.
4370 * dwarf2/read.c (read_array_order): Update for call to
4371 array_ordering.
4372 * f-lang.c (f_language_data): Remove la_array_ordering
4373 initializer.
4374 (f_language::array_ordering): New member function.
4375 * go-lang.c (go_language_data): Remove la_array_ordering
4376 initializer.
4377 * language.c (unknown_language_data): Likewise.
4378 (auto_language_data): Likewise.
4379 * language.h (language_data): Delete la_array_ordering field.
4380 (language_defn::array_ordering): New member function.
4381 * m2-lang.c (m2_language_data): Remove la_array_ordering
4382 initializer.
4383 * objc-lang.c (objc_language_data): Likewise.
4384 * opencl-lang.c (opencl_language_data): Likewise.
4385 * p-lang.c (pascal_language_data): Likewise.
4386 * rust-lang.c (rust_language_data): Likewise.
4387
4388 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4389
4390 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4391 initializer.
4392 * c-lang.c (c_language_data): Likewise.
4393 (cplus_language_data): Likewise.
4394 (asm_language_data): Likewise.
4395 (minimal_language_data): Likewise.
4396 * d-lang.c (d_language_data): Likewise.
4397 * f-lang.c (f_language_data): Likewise.
4398 (f_language::case_sensitivity): New member function.
4399 * go-lang.c (go_language_data): Remove la_case_sensitivity
4400 initializer.
4401 * language.c (enum case_mode): Moved here from language.h.
4402 (case_mode): Make static.
4403 (show_case_command): Update for case_sensitivity being a method.
4404 (set_case_command): Likewise.
4405 (set_range_case): Likewise.
4406 (unknown_language_data): Remove la_case_sensitivity initializer.
4407 (auto_language_data): Likewise.
4408 * language.h (case_mode): Delete, move enum declaration to
4409 language.c.
4410 (language_data): Delete la_case_sensitivity field.
4411 (language_defn::case_sensitivity): New member function.
4412 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4413 initializer.
4414 * objc-lang.c (objc_language_data): Likewise.
4415 * opencl-lang.c (opencl_language_data): Likewise.
4416 * p-lang.c (pascal_language_data): Likewise.
4417 * rust-lang.c (rust_language_data): Likewise.
4418
4419 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4420
4421 * ada-lang.c (ada_language_data): Remove la_range_check
4422 initializer.
4423 * c-lang.c (c_language_data): Likewise.
4424 (cplus_language_data): Likewise.
4425 (asm_language_data): Likewise.
4426 (minimal_language_data): Likewise.
4427 * d-lang.c (d_language_data): Likewise.
4428 * f-lang.c (f_language_data): Likewise.
4429 (f_language::range_checking_on_by_default): New member function.
4430 * go-lang.c (go_language_data): Remove la_range_check initializer.
4431 * language.c (enum range_mode): Moved here from language.h.
4432 (range_mode): Made static.
4433 (show_range_command): Update to use
4434 range_checking_on_by_default.
4435 (set_range_command): Likewise.
4436 (set_range_case): Likewise.
4437 (unknown_language_data): Remove la_range_check initializer.
4438 (auto_language_data): Likewise.
4439 * language.h (range_mode): Delete. Enum definition moved to
4440 language.c.
4441 (language_data): Remove la_range_check field.
4442 (language_defn::range_checking_on_by_default): New member
4443 function.
4444 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4445 (m2_language::range_checking_on_by_default): New member function.
4446 * objc-lang.c (objc_language_data): Remove la_range_check
4447 initializer.
4448 * opencl-lang.c (opencl_language_data): Likewise.
4449 * p-lang.c (pascal_language_data): Likewise.
4450 (pascal_language::range_checking_on_by_default): New member
4451 function.
4452 * rust-lang.c (rust_language_data): Remove la_range_check
4453 initializer.
4454 (rust_language::range_checking_on_by_default): New member
4455 function.
4456
4457 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4458
4459 * dwarf2/read.c (dwarf2_physname): Remove special case for
4460 language_go.
4461 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4462 member function.
4463
4464 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4465
4466 * ada-lang.c (ada_language_data): Remove
4467 la_store_sym_names_in_linkage_form_p initializer.
4468 (ada_language::store_sym_names_in_linkage_form_p): New member
4469 function.
4470 * c-lang.c (c_language_data): Remove
4471 la_store_sym_names_in_linkage_form_p initializer.
4472 (c_language::store_sym_names_in_linkage_form_p): New member
4473 function.
4474 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4475 initializer.
4476 (asm_language_data): Likewise.
4477 (asm_language::store_sym_names_in_linkage_form_p): New member
4478 function.
4479 (minimal_language_data): Remove
4480 la_store_sym_names_in_linkage_form_p initializer.
4481 (minimal_language::store_sym_names_in_linkage_form_p): New member
4482 function.
4483 * d-lang.c (d_language_data): Remove
4484 la_store_sym_names_in_linkage_form_p initializer.
4485 * dwarf2/read.c (dwarf2_physname): Update call to
4486 store_sym_names_in_linkage_form_p.
4487 * f-lang.c (f_language_data): Remove
4488 la_store_sym_names_in_linkage_form_p initializer.
4489 * go-lang.c (go_language_data): Remove
4490 la_store_sym_names_in_linkage_form_p initializer.
4491 * language.c (unknown_language_data): Remove
4492 la_store_sym_names_in_linkage_form_p initializer.
4493 (unknown_language::store_sym_names_in_linkage_form_p): New member
4494 function.
4495 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4496 initializer.
4497 (auto_language::store_sym_names_in_linkage_form_p): New member
4498 function.
4499 * language.h (language_data): Remove
4500 la_store_sym_names_in_linkage_form_p member variable.
4501 (language_defn::store_sym_names_in_linkage_form_p): New member
4502 function.
4503 * m2-lang.c (m2_language_data): Remove
4504 la_store_sym_names_in_linkage_form_p initializer.
4505 * objc-lang.c (objc_language_data): Likewise.
4506 * opencl-lang.c (opencl_language_data): Likewise.
4507 * p-lang.c (pascal_language_data): Likewise.
4508 * rust-lang.c (rust_language_data): Likewise.
4509
4510 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4511
4512 * ada-lang.c (ada_language_data): Remove string_lower_bound
4513 initializer.
4514 * c-lang.c (c_language_data): Likewise.
4515 (cplus_language_data): Likewise.
4516 (asm_language_data): Likewise.
4517 (minimal_language_data): Likewise.
4518 * d-lang.c (d_language_data): Likewise.
4519 * f-lang.c (f_language_data): Likewise.
4520 * go-lang.c (go_language_data): Likewise.
4521 * language.c (unknown_language_data): Likewise.
4522 (auto_language_data): Likewise.
4523 * language.h (language_data): Remove string_lower_bound field.
4524 (language_defn::string_lower_bound): New member function.
4525 * m2-lang.c (m2_language_data): Remove string_lower_bound
4526 initializer.
4527 (m2_language::string_lower_bound): New member function.
4528 * objc-lang.c (objc_language_data): Remove string_lower_bound
4529 initializer.
4530 * opencl-lang.c (opencl_language_data): Likewise.
4531 * p-lang.c (pascal_language_data): Likewise.
4532 * rust-lang.c (rust_language_data): Likewise.
4533 * valops.c (value_cstring): Update call to string_lower_bound.
4534 (value_string): Likewise.
4535 * value.c (allocate_repeated_value): Likewise.
4536
4537 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4538
4539 * valops.c (value_repeat): Fix incorrect argument name in comment.
4540
4541 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4542
4543 * ada-lang.c (ada_language_data): Remove c_style_arrays
4544 initializer.
4545 (ada_language::c_style_arrays_p): New member fuction.
4546 * c-lang.c (c_language_data): Remove c_style_arrays
4547 initializer.
4548 (cplus_language_data): Likewise.
4549 (asm_language_data): Likewise.
4550 (minimal_language_data): Likewise.
4551 * d-lang.c (d_language_data): Likewise.
4552 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4553 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4554 (f_language::c_style_arrays_p): New member function.
4555 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4556 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4557 * language.c (unknown_language_data): Remove c_style_arrays
4558 initializer.
4559 (auto_language_data): Likewise.
4560 * language.h (language_data): Remove c_style_arrays field.
4561 (language_defn::c_style_arrays_p): New member function.
4562 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4563 (m2_language::c_style_arrays_p): New member function.
4564 * objc-lang.c (objc_language_data): Remove c_style_arrays
4565 initializer.
4566 * opencl-lang.c (opencl_language_data): Likewise.
4567 * p-lang.c (pascal_language_data): Likewise.
4568 * rust-lang.c (rust_language_data): Likewise.
4569 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4570 and update local variable to a bool.
4571 * valops.c (value_cast): Update call to c_style_arrays_p.
4572 (value_array): Likewise.
4573 * value.c (coerce_array): Likewise.
4574
4575 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4576
4577 * ada-lang.c (ada_language_data): Remove la_language initializer.
4578 * c-lang.c (c_language_data): Likewise.
4579 (cplus_language_data): Likewise.
4580 (asm_language_data): Likewise.
4581 (minimal_language_data): Likewise.
4582 * d-lang.c (d_language_data): Likewise.
4583 * f-lang.c (f_language_data): Likewise.
4584 * go-lang.c (go_language_data): Likewise.
4585 * language.c (unknown_language_data): Likewise.
4586 (auto_language_data): Likewise.
4587 * language.h (language_data): Remove la_language field.
4588 (language_defn::language_defn): Initialise la_language field.
4589 (language_defn::la_language): New member variable.
4590 * m2-lang.c (m2_language_data): Remove la_language field.
4591 * objc-lang.c (objc_language_data): Likewise.
4592 * opencl-lang.c (opencl_language_data): Likewise.
4593 * p-lang.c (pascal_language_data): Likewise.
4594 * rust-lang.c (rust_language_data): Likewise.
4595
4596 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4597
4598 * ada-lang.c (ada_extensions): Delete, moved into
4599 ada_language::filename_extensions.
4600 (ada_language_data): Remove la_filename_extensions initializer.
4601 (ada_language::filename_extensions): New member function.
4602 * c-lang.c (c_extensions): Delete, moved into
4603 c_language::filename_extensions.
4604 (c_language_data): Remove la_filename_extensions initializer.
4605 (c_language::filename_extensions): New member function.
4606 (cplus_extensions): Delete, moved into
4607 cplus_language::filename_extensions.
4608 (cplus_language_data): Remove la_filename_extensions initializer.
4609 (cplus_language::filename_extensions): New member function.
4610 (asm_extensions): Delete, moved into
4611 asm_language::filename_extensions.
4612 (asm_language_data): Remove la_filename_extensions initializer.
4613 (asm_language::filename_extensions): New member function.
4614 (minimal_language_data): Remove la_filename_extensions
4615 initializer.
4616 * d-lang.c (d_extensions): Delete, moved into
4617 d_language::filename_extensions.
4618 (d_language_data): Remove la_filename_extensions initializer.
4619 (d_language::filename_extensions): New member function.
4620 * f-lang.c (f_extensions): Delete, moved into
4621 f_language::filename_extensions.
4622 (f_language_data): Remove la_filename_extensions initializer.
4623 (f_language::filename_extensions): New member function.
4624 * go-lang.c (go_language_data): Remove la_filename_extensions
4625 initializer.
4626 * language.c (add_set_language_command): Update now that
4627 filename_extensions returns a vector.
4628 (unknown_language_data): Remove la_filename_extensions
4629 initializer.
4630 (auto_language_data): Likewise.
4631 * language.h (language_data): Remove la_filename_extensions field.
4632 (language_defn::filename_extensions): New member function.
4633 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4634 initializer.
4635 * objc-lang.c (objc_extensions): Delete, moved into
4636 objc_language::filename_extensions.
4637 (objc_language_data): Remove la_filename_extensions initializer.
4638 (objc_language::filename_extensions): New member function.
4639 * opencl-lang.c (opencl_language_data): Remove
4640 la_filename_extensions initializer.
4641 * p-lang.c (pascal_extensions): Delete, moved into
4642 pascal_language::filename_extensions.
4643 (pascal_language_data): Remove la_filename_extensions initializer.
4644 (pascal_language::filename_extensions): New member function.
4645 * rust-lang.c (rust_extensions): Delete, moved into
4646 rust_language::filename_extensions.
4647 (rust_language_data): Remove la_filename_extensions initializer.
4648 (rust_language::filename_extensions): New member function.
4649 * symfile.c (add_filename_language): Add new assert.
4650
4651 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4652
4653 * ada-lang.c (ada_language_data): Remove la_name and
4654 la_natural_name initializers.
4655 (ada_language::name): New member function.
4656 (ada_language::natural_name): New member function.
4657 * c-lang.c (c_language_data): Remove la_name and
4658 la_natural_name initializers.
4659 (c_language::name): New member function.
4660 (c_language::natural_name): New member function.
4661 (cplus_language_data): Remove la_name and
4662 la_natural_name initializers.
4663 (cplus_language::name): New member function.
4664 (cplus_language::natural_name): New member function.
4665 (asm_language_data): Remove la_name and
4666 la_natural_name initializers.
4667 (asm_language::name): New member function.
4668 (asm_language::natural_name): New member function.
4669 (minimal_language_data): Remove la_name and
4670 la_natural_name initializers.
4671 (minimal_language::name): New member function.
4672 (minimal_language::natural_name): New member function.
4673 * compile/compile.c (compile_to_object): Update call to
4674 lanugage_defn::name.
4675 * d-lang.c (d_language_data): Remove la_name and
4676 la_natural_name initializers.
4677 (d_language::name): New member function.
4678 (d_language::natural_name): New member function.
4679 * expprint.c (print_subexp_standard): Update call to
4680 language_defn::name.
4681 (dump_raw_expression): Likewise
4682 (dump_prefix_expression): Likewise.
4683 * f-lang.c (f_language_data): Remove la_name and
4684 la_natural_name initializers.
4685 (f_language::name): New member function.
4686 (f_language::natural_name): New member function.
4687 * go-lang.c (go_language_data): Remove la_name and
4688 la_natural_name initializers.
4689 (go_language::name): New member function.
4690 (go_language::natural_name): New member function.
4691 * language.c (show_language_command): Update call to
4692 language_defn::name.
4693 (set_language_command): Likewise.
4694 (language_enum): Likewise.
4695 (language_str): Likewise.
4696 (add_set_language_command): Likewise, use
4697 language_defn::natural_name in the doc string.
4698 (unknown_language_data): Remove la_name and
4699 la_natural_name initializers.
4700 (unknown_language::name): New member function.
4701 (unknown_language::natural_name): New member function.
4702 (auto_language_data): Remove la_name and
4703 la_natural_name initializers.
4704 (auto_language::name): New member function.
4705 (auto_language::natural_name): New member function.
4706 (language_lookup_primitive_type_as_symbol): Update call to
4707 language_defn::name.
4708 * language.h (language_data): Remove la_name and la_natural_name
4709 member variables.
4710 (language_defn::name): New member function.
4711 (language_defn::natural_name): New member function.
4712 * m2-lang.c (m2_language_data): Remove la_name and
4713 la_natural_name initializers.
4714 (m2_language::name): New member function.
4715 (m2_language::natural_name): New member function.
4716 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4717 language_defn::natural_name.
4718 * objc-lang.c (objc_language_data): Remove la_name and
4719 la_natural_name initializers.
4720 (objc_language::name): New member function.
4721 (objc_language::natural_name): New member function.
4722 * opencl-lang.c (opencl_language_data): Remove la_name and
4723 la_natural_name initializers.
4724 (opencl_language::name): New member function.
4725 (opencl_language::natural_name): New member function.
4726 * p-lang.c (pascal_language_data): Remove la_name and
4727 la_natural_name initializers.
4728 (pascal_language::name): New member function.
4729 (pascal_language::natural_name): New member function.
4730 * rust-lang.c (rust_language_data): Remove la_name and
4731 la_natural_name initializers.
4732 (rust_language::name): New member function.
4733 (rust_language::natural_name): New member function.
4734 * symtab.c (lookup_language_this): Update call to
4735 language_defn::name.
4736
4737 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4738
4739 * ada-lang.c (ada_language_data): Remove la_name_of_this
4740 initializer.
4741 * ax-gdb.c (gen_expr): Update call to name_of_this.
4742 * c-exp.y (classify_name): Likewise.
4743 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4744 (cplus_language_data): Likewise.
4745 (cplus_language::name_of_this): New member function.
4746 (asm_language_data): Remove la_name_of_this initializer.
4747 (minimal_language_data): Likewise.
4748 * d-lang.c (d_language_data): Likewise.
4749 (d_language::name_of_this): New member function.
4750 * expprint.c (print_subexp_standard): Update call to name_of_this.
4751 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4752 * go-lang.c (go_language_data): Likewise.
4753 * language.c (unknown_language_data): Likewise.
4754 (unknown_language::name_of_this): New member function.
4755 (auto_language_data): Remove la_name_of_this initializer.
4756 (auto_language::name_of_this): New member function.
4757 * language.h (language_data): Delete la_name_of_this member
4758 variable.
4759 (language_defn::name_of_this): New member function.
4760 * m2-lang.c (m2_language_data): Remove la_name_of_this
4761 initializer.
4762 * objc-lang.c (objc_language_data): Likewise.
4763 (objc_language::name_of_this): New member function.
4764 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4765 initializer.
4766 * p-lang.c (pascal_language_data): Likewise.
4767 (pascal_language::name_of_this): New member function.
4768 * rust-lang.c (rust_language_data): Remove la_name_of_this
4769 initializer.
4770 * symtab.c (lookup_language_this): Update call to name_of_this.
4771 (lookup_symbol_aux): Likewise.
4772 * valops.c (value_of_this): Likewise.
4773
4774 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4775
4776 * ada-lang.c (ada_language_data): Remove
4777 la_struct_too_deep_ellipsis initializer.
4778 (ada_language::struct_too_deep_ellipsis): New member function.
4779 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4780 initializer.
4781 (cplus_language_data): Likewise.
4782 (asm_language_data): Likewise.
4783 (minimal_language_data): Likewise.
4784 * cp-valprint.c (cp_print_value): Update call to
4785 struct_too_deep_ellipsis.
4786 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4787 initializer.
4788 * f-lang.c (f_language_data): Likewise.
4789 (f_language::struct_too_deep_ellipsis): New member function.
4790 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4791 initializer.
4792 * language.c (unknown_language_data): Likewise.
4793 (auto_language_data): Likewise.
4794 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4795 member variable.
4796 (language_defn::struct_too_deep_ellipsis): New member function.
4797 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4798 initializer.Q
4799 * objc-lang.c (objc_language_data): Likewise.
4800 * opencl-lang.c (opencl_language_data): Likewise.
4801 * p-lang.c (pascal_language_data): Likewise.
4802 * rust-lang.c (rust_language_data): Likewise.
4803 * valprint.c (val_print_check_max_depth): Update call to
4804 struct_too_deep_ellipsis.
4805
4806 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4807
4808 * MAINTAINERS (Write After Approval): Add myself.
4809
4810 2020-09-15 Tom Tromey <tom@tromey.com>
4811
4812 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4813 Remove.
4814
4815 2020-09-15 Tom Tromey <tom@tromey.com>
4816
4817 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4818 and TYPE_CODE_METHODPTR cases.
4819 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4820 (c_value_print_inner): Update.
4821 * valprint.c (generic_value_print_memberptr): New function, from
4822 c_value_print_memberptr.
4823 (generic_value_print): Use it. Call cplus_print_method_ptr.
4824
4825 2020-09-15 Tom Tromey <tromey@adacore.com>
4826
4827 * python/python-internal.h (PyInt_FromLong): Remove define.
4828 * python/py-value.c (convert_value_from_python): Use
4829 gdb_py_object_from_longest.
4830 * python/py-type.c (typy_get_code): Use
4831 gdb_py_object_from_longest.
4832 * python/py-symtab.c (salpy_get_line): Use
4833 gdb_py_object_from_longest.
4834 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4835 gdb_py_object_from_longest.
4836 * python/py-record.c (recpy_gap_reason_code): Use
4837 gdb_py_object_from_longest.
4838 * python/py-record-btrace.c (recpy_bt_insn_size)
4839 (recpy_bt_func_level, btpy_list_count): Use
4840 gdb_py_object_from_longest.
4841 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4842 gdb_py_object_from_longest. Fix error handling.
4843 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4844 gdb_py_object_from_longest.
4845 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4846 gdb_py_object_from_longest.
4847 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4848 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4849 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4850
4851 2020-09-15 Tom Tromey <tromey@adacore.com>
4852
4853 * python/python.c (gdbpy_parameter_value): Use
4854 gdb_py_object_from_ulongest.
4855
4856 2020-09-15 Tom Tromey <tromey@adacore.com>
4857
4858 * python/py-infevents.c (create_register_changed_event_object):
4859 Use gdb_py_object_from_longest.
4860 * python/py-exitedevent.c (create_exited_event_object): Use
4861 gdb_py_object_from_longest.
4862
4863 2020-09-15 Tom Tromey <tromey@adacore.com>
4864
4865 * python/python.c (gdbpy_parameter_value): Use
4866 gdb_py_object_from_longest.
4867 * python/py-type.c (convert_field, typy_range): Use
4868 gdb_py_object_from_longest.
4869 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4870 gdb_py_object_from_longest.
4871 * python/py-lazy-string.c (stpy_get_length): Use
4872 gdb_py_object_from_longest.
4873 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4874 gdb_py_object_from_longest.
4875 * python/py-infevents.c (create_memory_changed_event_object): Use
4876 gdb_py_object_from_longest.
4877 * python/py-inferior.c (infpy_get_num): Use
4878 gdb_py_object_from_longest.
4879 (infpy_get_pid): Likewise.
4880
4881 2020-09-15 Tom Tromey <tromey@adacore.com>
4882
4883 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4884 defines.
4885 * python/py-value.c (valpy_long): Use
4886 gdb_py_object_from_ulongest.
4887 * python/py-symtab.c (salpy_get_pc): Use
4888 gdb_py_object_from_ulongest.
4889 (salpy_get_last): Likewise.
4890 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4891 gdb_py_object_from_ulongest.
4892 * python/py-lazy-string.c (stpy_get_address): Use
4893 gdb_py_object_from_ulongest.
4894 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4895 * python/py-arch.c (archpy_disassemble): Use
4896 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4897 error handling.
4898
4899 2020-09-15 Tom Tromey <tromey@adacore.com>
4900
4901 * python/python-internal.h (gdb_py_long_from_longest): Remove
4902 defines.
4903 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4904 * python/py-type.c (convert_field, typy_get_sizeof): Use
4905 gdb_py_object_from_longest.
4906 * python/py-record-btrace.c (btpy_list_index): Use
4907 gdb_py_object_from_longest.
4908
4909 2020-09-15 Tom Tromey <tromey@adacore.com>
4910
4911 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4912 * python/py-record.c (recpy_element_number): Use
4913 gdb_py_object_from_longest.
4914 (recpy_gap_number): Likewise.
4915
4916 2020-09-15 Tom Tromey <tromey@adacore.com>
4917
4918 * top.c (ui::ui): Update.
4919 (highest_ui_num): Remove.
4920 * top.h (struct ui) <num>: Remove.
4921
4922 2020-09-15 Tom Tromey <tromey@adacore.com>
4923
4924 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4925 * ui-style.c (ansi_regex_text): Now array.
4926 * rust-exp.y (number_regex_text): Now array.
4927 * linespec.c (linespec_quote_characters): Now array.
4928 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4929 Now arrays.
4930
4931 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4932
4933 * debuginfod-support.c (debuginfod_client_deleter): New.
4934 (debuginfod_client_up): New.
4935 (debuginfod_init): Return debuginfod_client_up.
4936 (debuginfod_source_query): Adjust.
4937 (debuginfod_debuginfo_query): Adjust.
4938
4939 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4940
4941 * debuginfod-support.c (debuginfod_source_query): Use
4942 make_unique_xstrdup.
4943
4944 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4947 with `type::instance_flags`.
4948
4949 2020-09-14 Michael Mullin <masmullin@gmail.com>
4950
4951 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4952 Remove baton parameter.
4953
4954 2020-09-14 Pedro Alves <pedro@palves.net>
4955
4956 * Makefile.in (SELFTESTS_SRCS): Add
4957 unittests/enum-flags-selftests.c.
4958 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4959 btrace_function_flags instead of enum btrace_function_flag.
4960 * compile/compile-c-types.c (convert_qualified): Use
4961 enum_flags::raw.
4962 * compile/compile-cplus-symbols.c (convert_one_symbol)
4963 (convert_symbol_bmsym):
4964 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4965 (compile_cplus_convert_struct_or_union_methods)
4966 (compile_cplus_instance::convert_qualified_base):
4967 * go-exp.y (parse_string_or_char): Add cast to int.
4968 * unittests/enum-flags-selftests.c: New file.
4969 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4970 type to btrace_thread_flags from btrace_thread_flag.
4971 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4972 local's type to btrace_thread_flags from btrace_thread_flag. Add
4973 cast in DEBUG call.
4974
4975 2020-09-14 Pedro Alves <pedro@palves.net>
4976
4977 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4978 * gdbtypes.c (address_space_name_to_int): Rename to ...
4979 (address_space_name_to_type_instance_flags): ... this.
4980 (address_space_int_to_name): Rename to ...
4981 (address_space_type_instance_flags_to_name): ... this.
4982 * gdbtypes.h (address_space_name_to_int): Rename to ...
4983 (address_space_name_to_type_instance_flags): ... this.
4984 (address_space_int_to_name): Rename to ...
4985 (address_space_type_instance_flags_to_name): ... this.
4986 * type-stack.c (type_stack::insert): Adjust to rename.
4987 * type-stack.h (type_stack::insert): Likewise.
4988
4989 2020-09-14 Pedro Alves <pedro@palves.net>
4990 Andrew Burgess <andrew.burgess@embecosm.com>
4991
4992 * avr-tdep.c (avr_address_class_type_flags): Return
4993 type_instance_flags.
4994 (avr_address_class_type_flags_to_name): Take a
4995 type_instance_flags.
4996 (avr_address_class_name_to_type_flags): Return bool and take a
4997 type_instance_flags.
4998 * d-lang.c (build_d_types): Use type::set_instance_flags.
4999 * ft32-tdep.c (ft32_address_class_type_flags): Return
5000 type_instance_flags.
5001 (ft32_address_class_type_flags_to_name): Take a
5002 type_instance_flags.
5003 (ft32_address_class_name_to_type_flags): Return bool and take a
5004 type_instance_flags.
5005 (ft32_gdbarch_init): Use type::set_instance_flags.
5006 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5007 * gdbarch.h, gdbarch.c: Regenerate.
5008 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5009 (address_class_name_to_type_flags): Use type_instance_flags and
5010 bool.
5011 * gdbtypes.c (address_space_name_to_int)
5012 (address_space_int_to_name, make_qualified_type): Use
5013 type_instance_flags.
5014 (make_qualified_type): Use type_instance_flags and
5015 type::set_instance_flags.
5016 (make_type_with_address_space, make_cv_type, make_vector_type)
5017 (check_typedef): Use type_instance_flags.
5018 (recursive_dump_type): Cast type_instance_flags to unsigned for
5019 printing.
5020 (copy_type_recursive): Use type::set_instance_flags.
5021 (gdbtypes_post_init): Use type::set_instance_flags.
5022 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5023 <m_instance_flags>: ... this.
5024 <instance_flags, set_instance_flags>: New methods.
5025 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5026 (SET_TYPE_INSTANCE_FLAGS): New.
5027 (address_space_name_to_int, address_space_int_to_name)
5028 (make_type_with_address_space): Pass flags using
5029 type_instance_flags instead of int.
5030 * stabsread.c (cleanup_undefined_types_noname): Use
5031 type::set_instance_flags.
5032 * s390-tdep.c (s390_address_class_type_flags): Return
5033 type_instance_flags.
5034 (s390_address_class_type_flags_to_name): Take a
5035 type_instance_flags.
5036 (s390_address_class_name_to_type_flags): Return bool and take a
5037 type_instance_flags.
5038 * type-stack.c (type_stack::follow_types): Use
5039 type_instance_flags.
5040 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5041
5042 2020-09-14 Tom Tromey <tromey@adacore.com>
5043
5044 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5045 * x86-tdep.c (x86_is_thunk_register_name)
5046 (x86_in_indirect_branch_thunk): Update.
5047 * sparc64-tdep.c (sparc64_fpu_register_names)
5048 (sparc64_cp0_register_names, sparc64_register_names)
5049 (sparc64_pseudo_register_names): Now const.
5050 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5051 cp0_registers_num>: Now const.
5052 * sparc-tdep.c (sparc_core_register_names)
5053 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5054 (sparc32_pseudo_register_names): Now const.
5055 (validate_tdesc_registers): Update.
5056 * rust-lang.c (rust_extensions): Now const.
5057 * p-lang.c (p_extensions): Now const.
5058 * objc-lang.c (objc_extensions): Now const.
5059 * nto-tdep.c (nto_thread_state_str): Now const.
5060 * moxie-tdep.c (moxie_register_names): Now const.
5061 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5062 Now const.
5063 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5064 (mips_linux_reg_names): Now const.
5065 (mips_gdbarch_init): Update.
5066 * microblaze-tdep.c (microblaze_register_names): Now const.
5067 * m68k-tdep.c (m68k_register_names): Now const.
5068 * m32r-tdep.c (m32r_register_names): Now const.
5069 * ia64-tdep.c (ia64_register_names): Now const.
5070 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5071 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5072 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5073 ymm_avx512_register_names, pkeys_register_names>: Now const.
5074 * i386-tdep.c (i386_register_names, i386_zmm_names)
5075 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5076 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5077 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5078 * f-lang.c (f_extensions): Now const.
5079 * d-lang.c (d_extensions): Now const.
5080 * csky-tdep.c (csky_register_names): Now const.
5081 * charset.c (default_charset_names, charset_enum): Now const.
5082 (_initialize_charset): Update.
5083 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5084 const.
5085 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5086 (bsd_uthread_solib_loaded): Update.
5087 (bsd_uthread_state): Now const.
5088 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5089 (amd64_ymm_avx512_names, amd64_ymmh_names)
5090 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5091 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5092 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5093 (amd64_dword_names): Now const.
5094 * agent.c (can_use_agent_enum): Now const.
5095 * ada-tasks.c (task_states, long_task_states): Now const.
5096 * ada-lang.c (known_runtime_file_name_patterns)
5097 (known_auxiliary_function_name_patterns, attribute_names)
5098 (standard_exc, ada_extensions): Now const.
5099
5100 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5101
5102 * bcache.h (struct bcache) <bcache>: Remove constructor.
5103 <m_hash_function, m_compare_function>: Remove.
5104 <~bcache>: Make virtual.
5105 <compare>: Remove static method, introduce virtual method.
5106 <default_hash>: Remove.
5107 <hash>: New virtual method.
5108 * bcache.c (bcache::expand_hash_table): Update.
5109 (bcache::insert): Update.
5110 (bcache::hash): New.
5111 (bcache::compare): Update comment and parameter names.
5112 * gdbtypes.c (types_deeply_equal): Update.
5113 * psymtab.h (struct psymbol_bcache): New struct.
5114 (class psymtab_storage) <psymtab_storage>: Make default.
5115 <psymbol_cache>: Change type to psymbol_bcache.
5116 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5117 (psymbol_hash): Change to...
5118 (psymbol_bcache::hash): ... this.
5119 (psymbol_compare): Change to...
5120 (psymbol_bcache::compare): ... this.
5121
5122 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5123
5124 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5125 checking for initial lwp.
5126
5127 2020-09-14 Tom Tromey <tromey@adacore.com>
5128
5129 * m68k-tdep.c (m68k_extract_return_value): Use
5130 pointer_result_regnum.
5131 (m68k_store_return_value): Likewise.
5132 (m68k_reg_struct_return_p): Handle vectors and arrays.
5133 (m68k_return_value): Handle arrays.
5134 (m68k_svr4_return_value): Fix single-element aggregate handling.
5135 Handle long double. Adjust for embedded ABI.
5136 (m68k_svr4_init_abi): Set pointer_result_regnum.
5137 (m68k_embedded_init_abi): New function.
5138 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5139 (m68k_osabi_sniffer): New function.
5140 (_initialize_m68k_tdep): Register osabi sniffer.
5141 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5142 member.
5143
5144 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5145
5146 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5147 with gdb::unique_xmalloc_ptr<char>.
5148
5149 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5150
5151 * xml-support.h (xml_fetch_another): Change type to be a
5152 function_view.
5153 (xml_process_xincludes): Remove baton parameter.
5154 (xml_fetch_content_from_file): Change baton parameter to
5155 dirname.
5156 * xml-support.c (struct xinclude_parsing_data)
5157 <xinclude_parsing_data>: Remove baton parameter.
5158 <fetcher_baton>: Remove.
5159 (xinclude_start_include): Adjust.
5160 (xml_process_xincludes): Adjust.
5161 (xml_fetch_content_from_file): Replace baton parameter with
5162 dirname.
5163 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5164 (xml_init_syscalls_info): Use a lambda.
5165 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5166 (file_read_description_xml): Use a lambda.
5167 (fetch_available_features_from_target): Change baton parameter
5168 to target_ops.
5169 (target_read_description_xml): Use a lambda.
5170 (target_fetch_description_xml): Use a lambda.
5171 (string_read_description_xml): Update.
5172
5173 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5174
5175 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5176 uses with type::endianity_is_not_default.
5177
5178 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5179
5180 * gdbtypes.h (struct type) <endianity_is_not_default,
5181 set_endianity_is_not_default>: New methods.
5182 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5183 type::endianity_is_not_default, change all write call sites to
5184 use type::set_endianity_is_not_default.
5185
5186 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5187
5188 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5189 uses with type::is_fixed_instance.
5190
5191 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5192
5193 * gdbtypes.h (struct type) <is_fixed_instance,
5194 set_is_fixed_instance>: New methods.
5195 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5196 write call sites to use type::set_is_fixed_instance.
5197
5198 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5199
5200 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5201 uses with type::is_gnu_ifunc.
5202
5203 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5204
5205 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5206 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5207 use type::set_is_gnu_ifunc.
5208
5209 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5210
5211 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5212 uses with type::stub_is_supported.
5213
5214 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5215
5216 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5217 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5218 use type::set_stub_is_supported.
5219
5220 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5221
5222 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5223 uses with type::is_vector.
5224
5225 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5226
5227 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5228 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5229 use type::set_is_vector.
5230
5231 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5232
5233 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5234 uses with type::has_varargs.
5235
5236 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5237
5238 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5239 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5240 use type::set_has_varargs.
5241
5242 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5243
5244 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5245 uses with type::is_prototyped.
5246
5247 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5248
5249 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5250 New methods.
5251 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5252 call sites to use type::set_is_prototyped.
5253
5254 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5255
5256 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5257 uses with type::target_is_stub.
5258
5259 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5260
5261 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5262 New methods.
5263 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5264 sites to use type::set_target_is_stub.
5265
5266 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5267
5268 * gdbtypes.h (TYPE_STUB): Remove, replace all
5269 uses with type::is_stub.
5270
5271 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5272
5273 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5274 (TYPE_STUB): Use type::is_stub, change all write call sites to
5275 use type::set_is_stub.
5276
5277 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5278
5279 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5280 type::has_no_signedness.
5281
5282 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5283
5284 * gdbtypes.h (struct type) <has_no_signedness,
5285 set_has_no_signedness>: New methods.
5286 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5287 call sites to use type::set_has_no_signedness.
5288
5289 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5290
5291 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5292 type::is_unsigned.
5293
5294 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5295
5296 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5297 methods.
5298 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5299 sites to use type::set_is_unsigned.
5300
5301 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5302 Adam Renquinha <arenquinha@cimeq.qc.ca>
5303
5304 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5305 pointer and stack frame offset when unwinding.
5306
5307 2020-09-13 Pedro Alves <pedro@palves.net>
5308
5309 * NEWS: Document "-break-insert --qualified".
5310 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5311
5312 2020-09-13 Pedro Alves <pedro@palves.net>
5313
5314 * linespec.c (classify_mtype, compare_msyms): Delete.
5315 (search_minsyms_for_name): Remove classification logic. Instead
5316 filter out trampoline symbols if we also found an external
5317 function of the same name.
5318
5319 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5320
5321 * NEWS: Create a new section for the next release branch.
5322 Rename the section of the current branch, now that it has
5323 been cut.
5324
5325 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5326
5327 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5328 * version.in: Bump version to 11.0.50.DATE-git.
5329
5330 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5331
5332 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5333
5334 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5335 Felix Willgerodt <Felix.Willgerodt@intel.com>
5336
5337 * gdbarch.sh: Added bfloat16 type.
5338 * gdbarch.c: Regenerated.
5339 * gdbarch.h: Regenerated.
5340 * gdbtypes.c (floatformats_bfloat16): New struct.
5341 (gdbtypes_post_init): Add builtin_bfloat16.
5342 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5343 (floatformats_bfloat16): New struct.
5344 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5345 (i386_ymm_type): Add field "v16_bfloat16"
5346 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5347 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5348 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5349 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5350 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5351 * features/i386/64bit-avx512.c: Regenerated.
5352 * features/i386/64bit-sse.xml: Add bfloat16 type.
5353 * features/i386/64bit-sse.c: Regenerated.
5354
5355 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5356
5357 * i386-tdep.c (i386_zmm_type): Fix field names.
5358 (i386_ymm_type): Fix field names.
5359
5360 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5361
5362 * breakpoint.c: Fix typo in the help message of the
5363 "set breakpoint condition-evaluation" command.
5364
5365 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5366
5367 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5368 * (nbsd_nat_target::pid_to_exec_file)
5369 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5370 (nbsd_nat_target::post_startup_inferior)
5371 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5372 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5373 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5374 * (nbsd_thread_lister): Remove.
5375
5376 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5377
5378 * fork-inferior.c (startup_inferior): Avoid double free.
5379
5380 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5381
5382 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5383 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5384
5385 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5386
5387 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5388 * netbsd-nat.c: Include <sys/ptrace.h>.
5389 * (netbsd_nat::enable_proc_events): Add.
5390
5391 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5392
5393 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5394 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5395 (netbsd_nat::for_each_thread): Add.
5396 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5397 "gdbsupport/common-debug.h".
5398 * (netbsd_nat::netbsd_thread_lister)
5399 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5400 (netbsd_nat::for_each_thread): Add.
5401
5402 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5403
5404 * netbsd-nat.h: Include <unistd.h>.
5405 * (netbsd_nat::pid_to_exec_file): Add.
5406 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5407 * (netbsd_nat::pid_to_exec_file) Add.
5408
5409 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5410
5411 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5412
5413 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5414
5415 * netbsd-nat.h: New file.
5416 * netbsd-nat.c: Likewise.
5417
5418 2020-09-09 Tom Tromey <tromey@adacore.com>
5419
5420 * ada-lang.c (remove_extra_symbols): Do not increment when
5421 removing an element
5422
5423 2020-09-08 Tom Tromey <tromey@adacore.com>
5424
5425 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5426
5427 2020-09-08 Tom Tromey <tromey@adacore.com>
5428
5429 PR win32/25302:
5430 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5431 (gdb_bfd_init_data): New function.
5432 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5433
5434 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5435
5436 * infrun.c (fetch_inferior_event): Use
5437 `switch_to_target_no_thread` to switch the target.
5438
5439 2020-09-06 Tom Tromey <tom@tromey.com>
5440
5441 * symfile.h (dwarf2_free_objfile): Don't declare.
5442
5443 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5444
5445 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5446 to match 16 byte real/complex type generated by Flang compiler.
5447
5448 2020-09-03 Tom de Vries <tdevries@suse.de>
5449
5450 PR breakpoint/26546
5451 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5452 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5453
5454 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5455
5456 * maint.c (index_digits): New function.
5457 (struct maint_print_section_data): Remove.
5458 (print_bfd_section_info): Remove print_data parameter, add arg
5459 and index_digits.
5460 (print_objfile_section_info): Likewise.
5461 (print_bfd_section_info_maybe_relocated): Likewise (plus
5462 objfile).
5463 (maintenance_info_sections): Adjust calls.
5464
5465 2020-09-02 Tom Tromey <tromey@adacore.com>
5466
5467 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5468 for null pointers.
5469 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5470
5471 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5472
5473 * bcache.h (struct bcache) <insert>: Change type of `added` to
5474 pointer to bool.
5475 * bcache.c (bcache::insert): Likewise.
5476 * gdbtypes.c (check_types_worklist): Adjust.
5477 * psymtab.c (add_psymbol_to_bcache): Adjust.
5478
5479 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5480
5481 * corelow.c (unordered_set): Include.
5482 (class core_target): Add field 'm_core_unavailable_mappings'.
5483 (core_target::build_file_mappings): Print only one warning
5484 per inaccessible file. Add unavailable/broken mappings
5485 to m_core_unavailable_mappings.
5486 (core_target::xfer_partial): Call...
5487 (core_target::xfer_memory_via_mappings): New method.
5488
5489 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5490
5491 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5492 type to bool.
5493
5494 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5495
5496 * dwarf2/read.c (struct field_info): Fix indentation.
5497
5498 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5499
5500 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5501 ordering in comment.
5502 * frame.c (frame_id_eq): Fix indentation.
5503
5504 2020-08-31 Scott Linder <scott@scottlinder.com>
5505 Simon Marchi <simon.marchi@efficios.com>
5506
5507 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5508 inline frame ids in outer frame.
5509
5510 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5511
5512 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5513 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5514 (outer_frame_id): Use FID_STACK_OUTER instead of
5515 FID_STACK_INVALID.
5516 (frame_id_p): Don't check for outer_frame_id.
5517
5518 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5519
5520 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5521 regnum/frame in value. Call allocate_value_lazy.
5522 * frame.c (frame_unwind_register_value): Use
5523 val_print_not_saved.
5524
5525 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5526
5527 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5528
5529 2020-08-29 Pedro Alves <pedro@palves.net>
5530
5531 * progspace.c (print_program_space): Use all_inferiors. Switch to
5532 the inferior before calling target_pid_to_str.
5533
5534 2020-08-28 Tom Tromey <tom@tromey.com>
5535
5536 * xcoffread.c (xcoff_end_psymtab): Update comment.
5537 * dbxread.c (dbx_end_psymtab): Update comment.
5538
5539 2020-08-28 Tom de Vries <tdevries@suse.de>
5540
5541 PR breakpoint/26544
5542 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5543 event_location.
5544 (create_breakpoint): Same.
5545 (base_breakpoint_decode_location): Same.
5546 (bkpt_create_sals_from_location): Same.
5547 (bkpt_decode_location): Same.
5548 (bkpt_probe_create_sals_from_location): Same.
5549 (bkpt_probe_decode_location): Same.
5550 (tracepoint_create_sals_from_location): Same.
5551 (tracepoint_decode_location): Same.
5552 (tracepoint_probe_decode_location): Same.
5553 (strace_marker_create_sals_from_location): Same.
5554 (strace_marker_decode_location): Same.
5555 (create_sals_from_location_default): Same.
5556 (decode_location_default): Same.
5557 * breakpoint.h (struct breakpoint_ops): Same.
5558 (create_breakpoint): Same.
5559 * linespec.h (decode_line_full): Same.
5560 * linespec.c (decode_line_full): Same. Throw error if
5561 result.size () == 0.
5562
5563 2020-08-27 Pedro Alves <pedro@palves.net>
5564
5565 PR gdb/26524
5566 * breakpoint.c (until_break_fsm) <location_breakpoint,
5567 caller_breakpoint>: Delete fields.
5568 <breakpoints>: New field.
5569 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5570 two individual breakpoints.
5571 (until_break_fsm::should_stop): Loop over breakpoints in the
5572 breakpoint vector.
5573 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5574 vector.
5575 (until_break_command): Handle location expanding into multiple
5576 sals.
5577
5578 2020-08-27 Pedro Alves <pedro@palves.net>
5579
5580 PR gdb/26523
5581 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5582 bp_until breakpoints user-specified locations. Update intro
5583 comment.
5584
5585 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5586
5587 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5588 gdb_bfd_sections): New.
5589 * maint.c (print_bfd_section_info): Change param type to
5590 maint_print_section_data.
5591 (print_objfile_section_info): Likewise.
5592 (print_bfd_section_info_maybe_relocated): Likewise.
5593 (maintenance_info_sections): Use gdb_bfd_sections.
5594
5595 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5596
5597 * MAINTAINERS: Add ARC target and maintainer.
5598
5599 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5600
5601 * configure.tgt: ARC support for GNU/Linux.
5602 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5603 * arc-linux-tdep.c: New file.
5604 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5605 * arc-tdep.c (arc_write_pc): Use it.
5606
5607 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5608
5609 * arc-tdep.c (arc_check_for_hardware_loop): New.
5610 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5611
5612 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5613
5614 * arc-tdep.h: Include "gdbarch.h".
5615
5616 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5617
5618 * arch/arc.h
5619 (arc_gdbarch_features): New class to stir the selection of target XML.
5620 (arc_create_target_description): Use FEATURES to choose XML target.
5621 (arc_lookup_target_description): Use arc_create_target_description
5622 to create _new_ target descriptions or return the already created
5623 ones if the FEATURES is the same.
5624 * arch/arc.c: Implementation of prototypes described above.
5625 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5626 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5627 * arc-tdep.c (*_feature_name): Make feature names consistent.
5628 (arc_register_feature): A new struct to hold information about
5629 registers of a particular target/feature.
5630 (arc_check_tdesc_feature): Check if XML provides registers in
5631 compliance with ARC_REGISTER_FEATURE structs.
5632 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5633 (determine_*_reg_feature_set): Which feature name to look for.
5634 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5635 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5636 to expected ISA enums to be used in arc_gdbarch_features structs.
5637 * features/Makefile (FEATURE_XMLFILES): Add new files.
5638 * gdb/features/arc/v1-aux.c: New file.
5639 * gdb/features/arc/v1-aux.xml: Likewise.
5640 * gdb/features/arc/v1-core.c: Likewise.
5641 * gdb/features/arc/v1-core.xml: Likewise.
5642 * gdb/features/arc/v2-aux.c: Likewise.
5643 * gdb/features/arc/v2-aux.xml: Likewise.
5644 * gdb/features/arc/v2-core.c: Likewise.
5645 * gdb/features/arc/v2-core.xml: Likewise.
5646 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5647
5648 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5649 Andrew Burgess <andrew.burgess@embecosm.com>
5650
5651 PR m2/26372
5652 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5653 an assert. Remove single element array indexing pattern as the
5654 MULTI_SUBSCRIPT support will handle this case too.
5655
5656 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5657
5658 * value.h (valprint_check_validity): Move declaration from
5659 here...
5660 * valprint.h (valprint_check_validity): ... to here.
5661
5662 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5663
5664 * debug.h: New file.
5665 * debug.c (debug_prefixed_vprintf): New function.
5666 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5667 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5668
5669 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5670
5671 * infrun.h (infrun_debug_printf_1): New function declaration.
5672 (infrun_debug_printf): New macro.
5673 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5674 throughout.
5675 (infrun_debug_printf): New function.
5676 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5677 (handle_jit_event): Likewise.
5678
5679 2020-08-21 Mark Wielaard <mark@klomp.org>
5680
5681 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5682
5683 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5684
5685 * frame.c (enum class frame_id_status): New.
5686 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5687 (fprintf_frame): Update.
5688 (compute_frame_id): Set frame id status to "computing" on entry.
5689 Set it back to "not_computed" on failure and to "computed" on
5690 success.
5691 (get_frame_id): Assert the frame id is not being computed.
5692 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5693 (create_new_frame): Likewise.
5694 (frame_cleanup_after_sniffer): Update assert.
5695
5696 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5697
5698 * regcache.c (pid_ptid_regcache_map): New type.
5699 (target_ptid_regcache_map): Remove.
5700 (target_pid_ptid_regcache_map): New type.
5701 (regcaches): Change type to target_pid_ptid_regcache_map.
5702 (get_thread_arch_aspace_regcache): Update.
5703 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5704 case.
5705 (regcaches_size): Update.
5706 (regcache_count): Update.
5707 (registers_changed_ptid_target_pid_test): New.
5708 (_initialize_regcache): Register new test.
5709
5710 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5711
5712 * regcache.c (regcache_count): New.
5713 (struct regcache_test_data): New.
5714 (regcache_test_data_up): New.
5715 (populate_regcaches_for_test): New.
5716 (regcaches_test): Remove.
5717 (get_thread_arch_aspace_regcache_test): New.
5718 (registers_changed_ptid_all_test): New.
5719 (registers_changed_ptid_target_test): New.
5720 (registers_changed_ptid_target_ptid_test): New.
5721 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5722 (_initialize_regcache): Register new tests.
5723
5724 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5725
5726 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5727 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5728 gdbarch and aspace parameter. Use current inferior's aspace.
5729 Validate regcache's arch value.
5730 (regcaches_test): Update.
5731
5732 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5733
5734 * regcache.c (regcaches_test): Call registers_changed.
5735
5736 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5737
5738 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5739
5740 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5741
5742 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5743 to find the end of prologue for flang compiled binaries.
5744 * arm-tdep.c (arm_skip_prologue): Likewise.
5745 * i386-tdep.c (i386_skip_prologue): Likewise.
5746 * producer.c (producer_is_llvm): New function.
5747 (producer_parsing_tests): Added new tests for clang/flang.
5748 * producer.h (producer_is_llvm): New declaration.
5749
5750 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5751
5752 * linux-nat.c (linux_nat_debug_printf): New function.
5753 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5754
5755 2020-08-18 Aaron Merey <amerey@redhat.com>
5756
5757 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5758 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5759 (CLIBS): Add DEBUGINFOD_LIBS.
5760
5761 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5762
5763 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5764 'gdbarch_num_regs'.
5765
5766 2020-08-17 Tom Tromey <tromey@adacore.com>
5767
5768 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5769 ada_get_decoded_value returns NULL.
5770
5771 2020-08-17 Tom Tromey <tromey@adacore.com>
5772
5773 * python/py-inferior.c (infpy_search_memory): Use
5774 gdb_py_object_from_ulongest.
5775 * python/py-infevents.c (create_inferior_call_event_object)
5776 (create_memory_changed_event_object): Use
5777 gdb_py_object_from_ulongest.
5778 * python/py-linetable.c (ltpy_entry_get_pc): Use
5779 gdb_py_object_from_ulongest.
5780
5781 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5782
5783 * loc.c (class symbol_needs_eval_context): Fix indentation.
5784
5785 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5786
5787 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5788 bool.
5789
5790 2020-08-17 Tom de Vries <tdevries@suse.de>
5791
5792 PR gdb/26393
5793 * gdbtypes.c (dump_dynamic_prop): New function.
5794 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5795
5796 2020-08-15 Tom de Vries <tdevries@suse.de>
5797
5798 PR backtrace/26390
5799 * stack.c (print_frame_args): Temporarily set the selected
5800 frame to FRAME while printing the frame's arguments.
5801
5802 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5803
5804 PR breakpoints/26385
5805 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5806 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5807
5808 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5809
5810 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5811 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5812 and >= to check return value instead of == -1 and != -1.
5813
5814 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5815
5816 * utils.h (class gdb_argv) <as_array_view>: New method.
5817 * utils.c (gdb_argv_as_array_view_test): New.
5818 (_initialize_utils): Register selftest.
5819 * maint.c (maintenance_selftest): Use the new method.
5820
5821 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5822
5823 * target.h (supports_dumpcore, dumpcore): New
5824 function declarations.
5825 * target.c (supports_dumpcore, dumpcore): New
5826 functions.
5827 * target-delegates.c: Rebuild.
5828 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5829 and target_dumpcore ().
5830
5831 2020-08-13 Aaron Merey <amerey@redhat.com>
5832
5833 * debuginfod-support.c: Replace global variables with user_data.
5834
5835 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5836
5837 * maint.c (maintenance_selftest): Split args and pass array_view
5838 to run_tests.
5839
5840 2020-08-12 Luis Machado <luis.machado@linaro.org>
5841
5842 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5843 type's length.
5844 Use %s and pulongest to print the length.
5845
5846 2020-08-12 Pedro Alves <palves@redhat.com>
5847
5848 * NEWS: Move "Multi-target debugging support" item to the
5849 "Changes since GDB 9" section.
5850
5851 2020-08-12 Pedro Alves <palves@redhat.com>
5852
5853 PR gdb/26336
5854 * progspace.c (program_space::remove_objfile): Invalidate the
5855 frame cache.
5856
5857 2020-08-11 Tom de Vries <tdevries@suse.de>
5858
5859 * MAINTAINERS: Mark ms1 as deleted.
5860
5861 2020-08-10 Luis Machado <luis.machado@linaro.org>
5862
5863 PR gdb/26310
5864
5865 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5866 act accordingly.
5867 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5868 movz/str/stur/stp skipping behavior.
5869
5870 2020-08-10 Luis Machado <luis.machado@linaro.org>
5871
5872 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5873 struct user_sve_header instead of struct sve_context.
5874
5875 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5876
5877 * read.h (dwarf2_fetch_die_loc_sect_off,
5878 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5879 `void *` parameter with function_view.
5880 * read.c (dwarf2_fetch_die_loc_sect_off,
5881 dwarf2_fetch_die_loc_cu_off): Likewise.
5882 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5883 (per_cu_dwarf_call): Adjust.
5884 (get_frame_address_in_block_wrapper): Remove.
5885 (indirect_synthetic_pointer): Adjust.
5886 (get_ax_pc): Remove.
5887 (dwarf2_compile_expr_to_ax): Adjust.
5888
5889 2020-08-08 Tom de Vries <tdevries@suse.de>
5890
5891 PR build/26344
5892 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5893 constructor.
5894 * regcache.c (get_thread_arch_aspace_regcache): Same.
5895
5896 2020-08-07 Tom Tromey <tromey@adacore.com>
5897
5898 * ravenscar-thread.c
5899 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5900 New method.
5901 (ravenscar_thread_target::wait): Check
5902 runtime_initialized.
5903 (ravenscar_thread_target::prepare_to_store)
5904 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5905 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5906 (ravenscar_thread_target::stopped_by_watchpoint)
5907 (ravenscar_thread_target::stopped_data_address)
5908 (ravenscar_thread_target::core_of_thread): Use
5909 scoped_restore_current_thread and
5910 set_base_thread_from_ravenscar_task.
5911
5912 2020-08-07 Tom Tromey <tromey@adacore.com>
5913
5914 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5915
5916 2020-08-07 Tom Tromey <tromey@adacore.com>
5917
5918 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5919 update_inferior_ptid before update_thread_list.
5920 (temporarily_change_regcache_ptid): New class.
5921 (ravenscar_thread_target::fetch_registers)
5922 (ravenscar_thread_target::store_registers)
5923 (ravenscar_thread_target::prepare_to_store): Use base thread when
5924 forwarding operation.
5925
5926 2020-08-07 Tom Tromey <tromey@adacore.com>
5927
5928 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5929 "is_pid" case.
5930
5931 2020-08-07 Tom Tromey <tromey@adacore.com>
5932
5933 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5934 New methods.
5935 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5936 first.
5937 (ravenscar_thread_target::add_thread): Rename from
5938 ravenscar_add_thread.
5939 (ravenscar_thread_target::update_thread_list): Use a lambda.
5940 (ravenscar_thread_target::xfer_partial): New method.
5941
5942 2020-08-07 Tom Tromey <tromey@adacore.com>
5943
5944 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5945 gdb::function_view.
5946 (iterate_over_live_ada_tasks): Change type of argument.
5947 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5948 of argument.
5949
5950 2020-08-07 Tom Tromey <tromey@adacore.com>
5951
5952 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5953 Remove.
5954 (ravenscar_thread_target::extra_thread_info): Remove.
5955 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5956 defer to target beneath for non-Ravenscar threads.
5957
5958 2020-08-07 Tom Tromey <tromey@adacore.com>
5959
5960 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5961 get_base_thread_from_ravenscar_task>: Now methods.
5962 <m_cpu_map>: New member.
5963 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5964 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5965 (ravenscar_thread_target::task_is_currently_active): Update.
5966 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5967 Now a method.
5968 (ravenscar_thread_target::add_active_thread): Put initial thread
5969 into the m_cpu_map.
5970
5971 2020-08-07 Tom Tromey <tromey@adacore.com>
5972
5973 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5974 event_ptid.
5975
5976 2020-08-07 Tom Tromey <tromey@adacore.com>
5977
5978 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5979 runtime_initialized.
5980
5981 2020-08-07 Tom Tromey <tromey@adacore.com>
5982
5983 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5984 add_active_thread.
5985 (ravenscar_thread_target::add_active_thread): Now public.
5986 (ravenscar_inferior_created): Call add_active_thread after pushing
5987 the target.
5988
5989 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5990
5991 * regcache.c (ptid_regcache_map): New type.
5992 (target_ptid_regcache_map): New type.
5993 (regcaches): Change type to target_ptid_regcache_map.
5994 (get_thread_arch_aspace_regcache): Update to regcaches' new
5995 type.
5996 (regcache_thread_ptid_changed): Likewise.
5997 (registers_changed_ptid): Likewise.
5998 (regcaches_size): Likewise.
5999 (regcaches_test): Update.
6000 (regcache_thread_ptid_changed): Update.
6001 * regcache.h (regcache_up): New type.
6002 * gdbsupport/ptid.h (hash_ptid): New struct.
6003
6004 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6005
6006 * observable.h (thread_ptid_changed): Add parameter
6007 `process_stratum_target *`.
6008 * infrun.c (infrun_thread_ptid_changed): Add parameter
6009 `process_stratum_target *` and use it.
6010 (selftests): New namespace.
6011 (infrun_thread_ptid_changed): New function.
6012 (_initialize_infrun): Register selftest.
6013 * regcache.c (regcache_thread_ptid_changed): Add parameter
6014 `process_stratum_target *` and use it.
6015 (regcache_thread_ptid_changed): New function.
6016 (_initialize_regcache): Register selftest.
6017 * thread.c (thread_change_ptid): Pass target to
6018 thread_ptid_changed observable.
6019
6020 2020-08-06 Caroline Tice <cmtice@google.com>
6021
6022 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6023 (struct dwp_sections): Update field comments. Add loclists and
6024 rnglists fields.
6025 (struct virtual_v2_dwo_sections): Rename struct to
6026 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6027 size & offset fields for loclists and rnglists.
6028 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6029 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6030 skipping dummy type units.
6031 (create_dwp_hash_table): Update the large comment above the function to
6032 discuss Version 5 DWP files as well, with references. Update all the
6033 version checks in the function to check for version 5 as well. Add new
6034 section at the end to create dwp hash table for version 5.
6035 (create_dwp_v2_section): Rename function to
6036 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6037 Add V5 to error message text.
6038 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6039 into calls to create_dwp_v2_or_v5_section.
6040 (create_dwo_unit_in_dwp_v5): New function.
6041 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6042 check for version2; add else clause to handle version 5.
6043 (open_and_init_dwo_file): Add code to check dwarf version & only call
6044 create_debug_types_hash_table (with sections.types) if version is not 5;
6045 else call create_debug_type_hash_table, with sections.info.
6046 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6047 version 5.
6048 (dwarf2_locate_v5_dwp_sections): New function.
6049 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6050 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6051
6052 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6053
6054 * regcache.h (class regcache): Remove friend
6055 registers_changed_ptid.
6056 <regcache_thread_ptid_changed>: Remove.
6057 <regcaches>: Remove.
6058 * regcache.c (regcache::regcaches): Rename to...
6059 (regcaches): ... this. Make static.
6060 (get_thread_arch_aspace_regcache): Update.
6061 (regcache::regcache_thread_ptid_changed): Rename to...
6062 (regcache_thread_ptid_changed): ... this. Update.
6063 (class regcache_access): Remove.
6064 (regcaches_test): Update.
6065 (_initialize_regcache): Update.
6066 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6067 <forward_list>.
6068
6069 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6070
6071 * regcache.h (class regcache) <current_regcache>: Rename to...
6072 <regcaches>: ... this. Move doc here.
6073 * regcache.c (regcache::current_regcache) Rename to...
6074 (regcache::regcaches): ... this. Move doc to header.
6075 (get_thread_arch_aspace_regcache): Update.
6076 (regcache::regcache_thread_ptid_changed): Update.
6077 (registers_changed_ptid): Update.
6078 (class regcache_access) <current_regcache_size>: Rename to...
6079 <regcaches_size>: ... this.
6080 (current_regcache_test): Rename to...
6081 (regcaches_test): ... this.
6082 (_initialize_regcache): Update.
6083
6084 2020-08-06 Victor Collod <vcollod@nvidia.com>
6085
6086 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6087
6088 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6089
6090 * corelow.c (core_target::build_file_mappings): Don't output
6091 null pathname in warning.
6092
6093 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6094
6095 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6096 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6097 gdb.dwarf2/dw2-single-line-discriminators.exp,
6098 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6099
6100 2020-08-05 Tom Tromey <tromey@adacore.com>
6101
6102 PR rust/26197:
6103 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6104 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6105 Fix off-by-one and type size errors in ordinary case.
6106
6107 2020-08-05 Tom de Vries <tdevries@suse.de>
6108
6109 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6110 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6111
6112 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6113
6114 * frame.h (frame_id_p): Return bool.
6115 (frame_id_artificial_p): Return bool.
6116 (frame_id_eq): Return bool.
6117 (has_stack_frames): Return bool.
6118 (get_selected_frame): Fix typo in comment.
6119 (get_frame_pc_if_available): Return bool.
6120 (get_frame_address_in_block_if_available): Return bool.
6121 (get_frame_func_if_available): Return bool.
6122 (read_frame_register_unsigned): Return bool.
6123 (get_frame_register_bytes): Return bool.
6124 (safe_frame_unwind_memory): Return bool.
6125 (deprecated_frame_register_read): Return bool.
6126 (frame_unwinder_is): Return bool.
6127 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6128 bool.
6129 <this_id::p>: Likewise.
6130 <prev_p>: Likewise.
6131 (frame_stash_add): Return bool.
6132 (get_frame_id): Use bool.
6133 (frame_id_build_special) Use bool.
6134 (frame_id_build_unavailable_stack): Use bool.
6135 (frame_id_build): Use bool.
6136 (frame_id_p): Return bool, use true/false instead of 1/0.
6137 (frame_id_artificial_p): Likewise.
6138 (frame_id_eq): Likewise.
6139 (frame_id_inner): Likewise.
6140 (get_frame_func_if_available): Likewise.
6141 (read_frame_register_unsigned): Likewise.
6142 (deprecated_frame_register_read): Likewise.
6143 (get_frame_register_bytes): Likewise.
6144 (has_stack_frames): Likewise.
6145 (inside_main_func): Likewise.
6146 (inside_entry_func): Likewise.
6147 (get_frame_pc_if_available): Likewise.
6148 (get_frame_address_in_block_if_available): Likewise.
6149 (frame_unwinder_is): Likewise.
6150 (safe_frame_unwind_memory): Likewise.
6151 (frame_unwind_arch): Likewise.
6152
6153 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6154
6155 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6156 type to cached_copy_status.
6157 (fprintf_frame): Adjust.
6158 (get_frame_func_if_available): Adjust.
6159 (frame_cleanup_after_sniffer): Adjust.
6160
6161 2020-08-04 Mark Wielaard <mark@klomp.org>
6162
6163 * MAINTAINERS (Write After Approval): Update email address.
6164
6165 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6166
6167 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6168 dynamic_prop::const_val.
6169
6170 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6173 dynamic_prop::kind.
6174
6175 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6176
6177 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6178
6179 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6180
6181 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6182
6183 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6184 Jose E. Marchesi <jose.marchesi@oracle.com>
6185
6186 * configure.tgt: Add entry for bpf-*-*.
6187 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6188 (ALLDEPFILES): Add bpf-tdep.c.
6189 * bpf-tdep.c: New file.
6190 * MAINTAINERS: Add bpf target and maintainer.
6191 * NEWS: Mention the support for the new target.
6192
6193 2020-08-04 Tom de Vries <tdevries@suse.de>
6194
6195 PR symtab/23270
6196 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6197 Error.
6198
6199 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6200
6201 * syscalls/freebsd.xml: Regenerate.
6202
6203 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6204
6205 * syscalls/update-freebsd.sh: Fix usage and year range.
6206
6207 2020-08-03 Tom de Vries <tdevries@suse.de>
6208
6209 PR symtab/26333
6210 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6211 DW_LNE_lo_user/DW_LNE_hi_user range.
6212
6213 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6214
6215 PR ada/26318
6216 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6217 kind.
6218
6219 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6220
6221 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6222
6223 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6224
6225 * breakpoint.c (set_breakpoint_condition): Update the condition
6226 expressions after checking that the input condition string parses
6227 successfully and does not contain junk at the end.
6228
6229 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6230
6231 * breakpoint.c (set_breakpoint_condition): Update the
6232 condition string after parsing the new condition successfully.
6233
6234 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6235
6236 * proc-api.c (_STRUCTURED_PROC): Don't define.
6237 * proc-events.c: Likewise.
6238 * proc-flags.c: Likewise.
6239 * proc-why.c: Likewise.
6240 * procfs.c: Likewise.
6241
6242 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6243 * configure, config.in: Regenerate.
6244
6245 2020-07-30 Tom de Vries <tdevries@suse.de>
6246
6247 PR build/26320
6248 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6249 m_red/m_green/m_blue in a union.
6250
6251 2020-07-29 Tom de Vries <tdevries@suse.de>
6252
6253 PR tdep/26280
6254 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6255
6256 2020-07-28 Tom Tromey <tromey@adacore.com>
6257
6258 PR symtab/26270:
6259 * symtab.h (find_pc_partial_function_sym): Declare.
6260 * cli/cli-cmds.c (disassemble_command): Use
6261 find_pc_partial_function_sym. Check asm_demangle.
6262 * blockframe.c (cache_pc_function_sym): New global.
6263 (cache_pc_function_name): Remove.
6264 (clear_pc_function_cache): Update.
6265 (find_pc_partial_function_sym): New function, from
6266 find_pc_partial_function.
6267 (find_pc_partial_function): Rewrite using
6268 find_pc_partial_function_sym.
6269
6270 2020-07-28 Tom Tromey <tromey@adacore.com>
6271
6272 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6273 help. Add usage.
6274
6275 2020-07-28 Tom Tromey <tromey@adacore.com>
6276
6277 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6278 <DW_OP_GNU_variable_value>: Cast to address type.
6279
6280 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6281
6282 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6283 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6284 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6285 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6286 (nbsd_get_siginfo_type): New.
6287 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6288 (_initialize_nbsd_tdep): New.
6289
6290 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6291
6292 PR binutils/26301
6293 * configure: Regenerated.
6294
6295 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6296
6297 PR binutils/26301
6298 * configure: Regenerated.
6299
6300 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6301
6302 * python/py-frame.c: Remove 'user-regs.h' include.
6303 (frapy_read_register): Rewrite to make use of
6304 gdbpy_parse_register_id.
6305 * python/py-registers.c (gdbpy_parse_register_id): New function,
6306 moved here from python/py-unwind.c. Updated the return type, and
6307 also accepts register descriptor objects.
6308 * python/py-unwind.c: Remove 'user-regs.h' include.
6309 (pyuw_parse_register_id): Moved to python/py-registers.c.
6310 (unwind_infopy_add_saved_register): Update to use
6311 gdbpy_parse_register_id.
6312 (pending_framepy_read_register): Likewise.
6313 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6314
6315 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6316
6317 * python/py-registers.c: Add 'user-regs.h' include.
6318 (register_descriptor_iter_find): New function.
6319 (register_descriptor_iterator_object_methods): New static global
6320 methods array.
6321 (register_descriptor_iterator_object_type): Add pointer to methods
6322 array.
6323
6324 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6325
6326 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6327 for all architectures on FreeBSD 11.3 and later.
6328
6329 2020-07-27 Tom Tromey <tromey@adacore.com>
6330
6331 * gcore.h (load_corefile): Don't declare.
6332
6333 2020-07-27 Tom de Vries <tdevries@suse.de>
6334
6335 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6336 * config.in: Regenerate.
6337 * configure: Regenerate.
6338
6339 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6340
6341 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6342 ws2tcpip.h. When checking whether socklen_t type is defined, use
6343 ws2tcpip.h if it is available and sys/socket.h isn't.
6344 * configure: Regenerate.
6345 * config.in: Regenerate.
6346
6347 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6348
6349 PR fortran/23051
6350 PR fortran/26139
6351 * valops.c (value_ind): Pass address to
6352 readjust_indirect_value_type.
6353 * value.c (readjust_indirect_value_type): Make parameter
6354 non-const, and add extra address parameter. Resolve original type
6355 before using it.
6356 * value.h (readjust_indirect_value_type): Update function
6357 signature and comment.
6358
6359 2020-07-25 Tom de Vries <tdevries@suse.de>
6360
6361 PR symtab/26243
6362 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6363 entries.
6364
6365 2020-07-24 Aaron Merey <amerey@redhat.com>
6366
6367 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6368 * configure: Rebuild.
6369
6370 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6371
6372 PR corefiles/26294
6373 * corelow.c (_initialize_corelow): Add period to help text
6374 for "maintenance print core-file-backed-mappings".
6375
6376 2020-07-23 Pedro Alves <pedro@palves.net>
6377
6378 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6379 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6380 meanwhile.
6381 * frame.c (frame_cache_generation, get_frame_cache_generation):
6382 New.
6383 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6384 (get_prev_frame_if_no_cycle): On exception, don't touch
6385 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6386 * frame.h (get_frame_cache_generation): Declare.
6387
6388 2020-07-23 Tom de Vries <tdevries@suse.de>
6389
6390 PR tui/26282
6391 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6392 New default constructor.
6393
6394 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6395
6396 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6397 exclude non-statement entries.
6398
6399 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6400
6401 * NEWS (New commands): Mention new command
6402 "maintenance print core-file-backed-mappings".
6403
6404 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6405
6406 * corelow.c (gdbcmd.h): Include.
6407 (core_target::info_proc_mappings): New method.
6408 (get_current_core_target): New function.
6409 (maintenance_print_core_file_backed_mappings): New function.
6410 (_initialize_corelow): Add core-file-backed-mappings to
6411 "maint print" commands.
6412
6413 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6414
6415 * linux-tdep.c (dump_note_entry_p): New function.
6416 (linux_dump_mapping_p_ftype): New typedef.
6417 (linux_find_memory_regions_full): Add new parameter,
6418 should_dump_mapping_p.
6419 (linux_find_memory_regions): Adjust call to
6420 linux_find_memory_regions_full.
6421 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6422 call to linux_find_memory_regions_full.
6423
6424 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6425
6426 * corelow.c (solist.h, unordered_map): Include.
6427 (class core_target): Add field m_core_file_mappings and
6428 method build_file_mappings.
6429 (core_target::core_target): Call build_file_mappings.
6430 (core_target::~core_target): Free memory associated with
6431 m_core_file_mappings.
6432 (core_target::build_file_mappings): New method.
6433 (core_target::xfer_partial): Use m_core_file_mappings
6434 for memory transfers.
6435 * linux-tdep.c (linux_read_core_file_mappings): New
6436 function.
6437 (linux_core_info_proc_mappings): Rewrite to use
6438 linux_read_core_file_mappings.
6439 (linux_init_abi): Register linux_read_core_file_mappings.
6440
6441 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6442
6443 * arch-utils.c (default_read_core_file_mappings): New function.
6444 * arch-utils.c (default_read_core_file_mappings): Declare.
6445 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6446 * gdbarch.h, gdbarch.c: Regenerate.
6447
6448 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6449
6450 PR corefiles/25631
6451 * corelow.c (core_target:xfer_partial): Revise
6452 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6453 case after first checking the stratum beneath the core
6454 target.
6455 (has_all_memory): Return true.
6456 * target.c (raw_memory_xfer_partial): Revise comment
6457 regarding use of has_all_memory.
6458
6459 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6460
6461 * exec.h (section_table_xfer_memory): Revise declaration,
6462 replacing section name parameter with an optional callback
6463 predicate.
6464 * exec.c (section_table_xfer_memory): Likewise.
6465 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6466 of section_table_xfer_memory.
6467
6468 2020-07-22 Tom Tromey <tromey@adacore.com>
6469
6470 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6471 lookup_symbol_search_name.
6472
6473 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6474
6475 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6476 redundant local variable.
6477 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6478 reference, not pointer, update code accordingly.
6479
6480 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6481 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6482
6483 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6484 * jit.c (jit_breakpoint_re_set_internal): Use the
6485 `skip_jit_symbol_lookup` field.
6486
6487 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6488 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6489
6490 * jit.c (jit_read_descriptor): Define the descriptor address once,
6491 use twice.
6492 (jit_breakpoint_deleted): Move the declaration of the loop variable
6493 `iter` into the loop header.
6494 (jit_breakpoint_re_set_internal): Move the declaration of the local
6495 variable `objf_data` to the first point of definition.
6496 (jit_event_handler): Move the declaration of local variables
6497 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6498 Rename `objf` to `jited`.
6499
6500 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6501
6502 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6503 Remove.
6504 * jit.c (get_jiter_objfile_data): Update.
6505
6506 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6507 Simon Marchi <simon.marchi@polymtl.ca>
6508
6509 * jit.c (struct jit_program_space_data): Remove.
6510 (jit_program_space_key): Remove.
6511 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6512 stuff.
6513 (get_jit_program_space_data): Remove.
6514 (jit_breakpoint_deleted): Iterate on all of the program space's
6515 objfiles.
6516 (jit_inferior_init): Likewise.
6517 (jit_breakpoint_re_set_internal): Likewise. Also change return
6518 type to void.
6519 (jit_breakpoint_re_set): Pass current_program_space to
6520 jit_breakpoint_re_set_internal.
6521
6522 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6523
6524 * jit.h (struct jiter_objfile_data) <cached_code_address,
6525 jit_breakpoint>: Move to here from ...
6526 * jit.c (jit_program_space_data): ... here.
6527 (jiter_objfile_data::~jiter_objfile_data): Update.
6528 (jit_breakpoint_deleted): Update.
6529 (jit_breakpoint_re_set_internal): Update.
6530
6531 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6532
6533 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6534 checks.
6535 (jit_read_descriptor): Remove NULL check.
6536 (jit_event_handler): Add an assertion.
6537
6538 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6539
6540 * jit.h (struct jit_objfile_data): Split into...
6541 (struct jiter_objfile_data): ... this ...
6542 (struct jited_objfile_data): ... and this.
6543 * objfiles.h (struct objfile) <jit_data>: Remove.
6544 <jiter_data, jited_data>: New fields.
6545 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6546 (jiter_objfile_data::~jiter_objfile_data): ... this.
6547 (get_jit_objfile_data): Rename to ...
6548 (get_jiter_objfile_data): ... this.
6549 (add_objfile_entry): Update.
6550 (jit_read_descriptor): Use get_jiter_objfile_data.
6551 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6552 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6553 (jit_inferior_exit_hook): Use objfile's jited_data field.
6554
6555 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6556
6557 * jit.h: Forward-declare `struct minimal_symbol`.
6558 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6559 constructor, destructor, and an objfile* field.
6560 * jit.c (jit_objfile_data): Remove.
6561 (struct jit_objfile_data): Migrate from here to jit.h.
6562 (jit_objfile_data::~jit_objfile_data): New destructor
6563 implementation with code moved from free_objfile_data.
6564 (free_objfile_data): Delete.
6565 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6566 (jit_find_objf_with_entry_addr): Ditto.
6567 (jit_inferior_exit_hook): Ditto.
6568 (_initialize_jit): Remove the call to
6569 register_objfile_data_with_cleanup.
6570 * objfiles.h (struct objfile) <jit_data>: New field.
6571
6572 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6573
6574 * jit.h: Forward-declare `struct objfile`.
6575 (jit_event_handler): Add a second parameter, the JITer objfile.
6576 * jit.c (jit_read_descriptor): Change the signature to take the
6577 JITer objfile as an argument instead of the jit_program_space_data.
6578 (jit_inferior_init): Update the call to jit_read_descriptor.
6579 (jit_event_handler): Use the new JITer objfile argument when calling
6580 jit_read_descriptor.
6581 * breakpoint.c (handle_jit_event): Update the call to
6582 jit_event_handler to pass the JITer objfile.
6583
6584 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6585
6586 * gdbarch.c: Regenerate.
6587 * gdbarch.h: Regenerate.
6588 * gdbarch.sh (handle_segmentation_fault): Remove method.
6589 * infrun.c (handle_segmentation_fault): Remove.
6590 (print_signal_received_reason): Remove call to
6591 handle_segmentation_fault.
6592
6593 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6594
6595 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6596 Rename to sparc64_linux_report_signal_info and add siggnal
6597 argument.
6598 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6599 instead of sparc64_linux_handle_segmentation_fault.
6600
6601 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6602
6603 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6604 i386_linux_report_signal_info instead of
6605 i386_linux_handle_segmentation_fault.
6606 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6607 to i386_linux_report_signal_info and add siggnal argument.
6608 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6609 of i386_linux_handle_segmentation_fault.
6610 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6611 to i386_linux_report_signal_info and add siggnal argument.
6612
6613 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6614
6615 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6616 hook if present.
6617
6618 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6619
6620 * gdbarch.c: Regenerate.
6621 * gdbarch.h: Regenerate.
6622 * gdbarch.sh (report_signal_info): New method.
6623 * infrun.c (print_signal_received_reason): Invoke gdbarch
6624 report_signal_info hook if present.
6625
6626 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6627
6628 * python/py-registers.c : Add 'unordered_map' include.
6629 (gdbpy_new_reggroup): Renamed to...
6630 (gdbpy_get_reggroup): ...this. Update to only create register
6631 group descriptors when needed.
6632 (gdbpy_reggroup_iter_next): Update.
6633
6634 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6635
6636 * python/py-registers.c (gdbpy_register_object_data): New static
6637 global.
6638 (gdbpy_register_object_data_init): New function.
6639 (gdbpy_new_register_descriptor): Renamed to...
6640 (gdbpy_get_register_descriptor): ...this, and update to reuse
6641 existing register descriptors where possible.
6642 (gdbpy_register_descriptor_iter_next): Update.
6643 (gdbpy_initialize_registers): Register new gdbarch data.
6644
6645 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6646
6647 * linux-nat.c (stopped_pids): Make static.
6648
6649 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6650
6651 PR ada/26235
6652 * gdbtypes.c (ada_discrete_type_low_bound,
6653 ada_discrete_type_high_bound): Handle undefined bounds.
6654
6655 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6656
6657 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6658 declaration.
6659 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6660 function.
6661
6662 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6663
6664 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6665 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6666 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6667 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6668 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6669 method.
6670
6671 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6672
6673 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6674 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6675 which are deprecated in Guile 3.0.
6676 * configure.ac (try_guile_versions): Add "guile-3.0".
6677 * configure (try_guile_versions): Regenerate.
6678 * NEWS: Update entry.
6679
6680 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6681 Doug Evans <dje@google.com>
6682
6683 PR gdb/21104
6684 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6685 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6686 USING_GUILE_BEFORE_2_2.
6687 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6688 Change type to 'scm_t_port_type *'.
6689 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6690 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6691 parameter and honor it. Update callers.
6692 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6693 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6694 functions.
6695 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6696 USING_GUILE_BEFORE_2_2.
6697 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6698 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6699 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6700 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6701 and 'SCM_PORT_TYPE'.
6702 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6703 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6704 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6705 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6706 [!USING_GUILE_BEFORE_2_2]: New functions.
6707 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6708 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6709 'gdbscm_memory_port_read'.
6710 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6711 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6712 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6713 function.
6714 (ioscm_init_memory_port): Remove.
6715 (ioscm_init_memory_port_stream): New function
6716 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6717 function.
6718 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6719 Return scm_from_uint (0).
6720 (gdbscm_set_memory_port_read_buffer_size_x)
6721 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6722 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6723 Return scm_from_uint (0).
6724 (gdbscm_set_memory_port_write_buffer_size_x)
6725 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6726 * configure.ac (try_guile_versions): Add "guile-2.2".
6727 * configure: Regenerate.
6728 * NEWS: Add entry.
6729
6730 2020-07-18 Tom Tromey <tom@tromey.com>
6731
6732 * linux-nat.c (linux_multi_process): Remove.
6733 (linux_nat_target::supports_multi_process): Return true.
6734
6735 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6736
6737 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6738 (riscv_lookup_target_description): Return pointer out of
6739 unique_ptr.
6740 * target-descriptions.c (allocate_target_description): Add
6741 comment.
6742 (target_desc_deleter::operator()): Likewise.
6743 * target-descriptions.h (struct target_desc_deleter): Moved to
6744 gdbsupport/tdesc.h.
6745 (target_desc_up): Likewise.
6746
6747 2020-07-17 Tom Tromey <tromey@adacore.com>
6748
6749 * linux-nat.c (linux_nat_target::supports_non_stop)
6750 (linux_nat_target::always_non_stop_p): Use "true".
6751 (linux_nat_target::supports_disable_randomization): Use "true" and
6752 "false".
6753
6754 2020-07-16 Caroline Tice <cmtice@google.com>
6755
6756 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6757 (RNGLIST_HEADER_SIZE64): New constant definition.
6758 (struct dwop_section_names): Add rnglists_dwo.
6759 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6760 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6761 (struct dwo_sections): Add rnglists field.
6762 (read_attribut_reprocess): Add tag parameter.
6763 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6764 (cu_debug_rnglists_section): New function (decl & definition).
6765 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6766 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6767 die whose range is being checked; get rnglist section from
6768 cu_debug_rnglists_section, to get from either objfile or dwo file as
6769 appropriate. Add cases for DW_RLE_base_addressx,
6770 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6771 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6772 test inside if-condition and updating complaint message.
6773 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6774 dwarf2_rnglists_process.
6775 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6776 dwarf2_ranges_process.
6777 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6778 need_ranges_base and update comment appropriately. Also pass die tag
6779 to dwarf2_ranges_read.
6780 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6781 need_ranges_base and update comment appropriately. Also pass die tag
6782 to dwarf2_ranges_process.
6783 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6784 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6785 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6786 need_ranges_base and update comment appropriately. Also pass die tag
6787 to read_attribute_reprocess and dwarf2_ranges_read.
6788 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6789 and update function comment appropriately.
6790 (read_loclist_index): Call read_loclists_rnglists_header instead of
6791 read_loclist_header.
6792 (read_rnglist_index): New function.
6793 (read_attribute_reprocess): Add tag parameter. Add code for
6794 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6795 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6796
6797 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6798
6799 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6800 being resolved.
6801
6802 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6803
6804 * arch-utils.c (show_architecture): Update formatting of messages.
6805
6806 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6807
6808 * gdbtypes.h (struct type) <bounds>: Handle array and string
6809 types.
6810 * ada-lang.c (assign_aggregate): Use type::bounds on
6811 array/string type.
6812 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6813 * c-varobj.c (c_number_of_children): Likewise.
6814 (c_describe_child): Likewise.
6815 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6816 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6817 (f_type_print_base): Likewise.
6818 * f-valprint.c (f77_array_offset_tbl): Likewise.
6819 (f77_get_upperbound): Likewise.
6820 (f77_print_array_1): Likewise.
6821 * guile/scm-type.c (gdbscm_type_range): Likewise.
6822 * m2-typeprint.c (m2_array): Likewise.
6823 (m2_is_long_set_of_type): Likewise.
6824 * m2-valprint.c (get_long_set_bounds): Likewise.
6825 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6826 * python/py-type.c (typy_range): Likewise.
6827 * rust-lang.c (rust_internal_print_type): Likewise.
6828 * type-stack.c (type_stack::follow_types): Likewise.
6829 * valarith.c (value_subscripted_rvalue): Likewise.
6830 * valops.c (value_cast): Likewise.
6831
6832 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6833
6834 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6835 callers to use the equivalent accessor methods.
6836
6837 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6838
6839 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6840 (struct type) <bit_stride>: New method.
6841 (TYPE_BIT_STRIDE): Remove.
6842 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6843
6844 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6845
6846 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6847 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6848 callers to use the equivalent accessor methods instead.
6849
6850 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6851
6852 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6853 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6854 callers to use the equivalent accessor methods instead.
6855
6856 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6857
6858 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6859 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6860 to use dynamic_prop::kind.
6861
6862 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6863
6864 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6865 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6866 to get the bound property's kind and check against
6867 PROP_UNDEFINED.
6868
6869 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6870
6871 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6872 all callers to use type::range_bounds followed by
6873 dynamic_prop::{low,high}.
6874
6875 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6876
6877 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6878 const_val, set_const_val, baton, set_locexpr, set_loclist,
6879 set_addr_offset, variant_parts, set_variant_parts,
6880 original_type, set_original_type>: New methods.
6881 <kind>: Rename to...
6882 <m_kind>: ... this. Update all users to use the new methods
6883 instead.
6884 <data>: Rename to...
6885 <m_data>: ... this. Update all users to use the new methods
6886 instead.
6887
6888 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6889
6890 * gdbtypes.c (get_discrete_bounds): Return failure if
6891 the range type's bounds are not both defined and constant
6892 values.
6893 (get_array_bounds): Update comment. Remove undefined bound check.
6894
6895 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6896
6897 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6898 the type::bounds method directly.
6899
6900 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6901
6902 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6903 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6904 are used to set the range type's bounds to use set_bounds.
6905
6906 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6907
6908 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6909
6910 2020-07-10 Pedro Alves <pedro@palves.net>
6911
6912 * gdbthread.h (inferior_ref): Define.
6913 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6914 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6915 * thread.c
6916 (scoped_restore_current_thread::restore):
6917 Adjust to gdb::ref_ptr.
6918 (scoped_restore_current_thread::~scoped_restore_current_thread):
6919 Remove manual decref handling.
6920 (scoped_restore_current_thread::scoped_restore_current_thread):
6921 Adjust to use
6922 inferior_ref::new_reference/thread_info_ref::new_reference.
6923 Incref the thread before calling get_frame_id instead of after.
6924 Let TARGET_CLOSE_ERROR propagate.
6925
6926 2020-07-10 Pedro Alves <pedro@palves.net>
6927
6928 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6929 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6930 NOT_AVAILABLE_ERROR.
6931 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6932 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6933
6934 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6935 Pedro Alves <pedro@palves.net>
6936
6937 PR gdb/26199
6938 * infrun.c (threads_are_resumed_pending_p): Delete.
6939 (do_target_wait): Remove threads_are_executing and
6940 threads_are_resumed_pending_p checks from the inferior_matches
6941 lambda. Update comments.
6942
6943 2020-07-10 Pedro Alves <pedro@palves.net>
6944
6945 PR gdb/26199
6946 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6947 executing threads.
6948
6949 2020-07-10 Pedro Alves <pedro@palves.net>
6950
6951 PR gdb/26199
6952 * infrun.c (handle_no_resumed): Handle multiple targets.
6953
6954 2020-07-10 Pedro Alves <pedro@palves.net>
6955
6956 PR gdb/26199
6957 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6958 target_is_async_p.
6959
6960 2020-07-10 Pedro Alves <pedro@palves.net>
6961
6962 PR gdb/26199
6963 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6964 threads, not all threads.
6965
6966 2020-07-10 Pedro Alves <pedro@palves.net>
6967
6968 PR gdb/26199
6969 * remote.c (remote_target::open_1): Pass remote target pointer as
6970 data to create_async_event_handler.
6971 (remote_async_inferior_event_handler): Mark async event handler
6972 before returning if the remote target still has either pending
6973 events or unacknowledged notifications.
6974
6975 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6976
6977 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6978 declaration.
6979 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6980 function.
6981
6982 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6983
6984 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6985 inferior_ptid.
6986
6987 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6988
6989 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6990 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6991 AT_FREEBSD_PS_STRINGS.
6992
6993 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6994
6995 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6996 of debugfile path on Windows.
6997
6998 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6999
7000 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7001 argument to 'data'.
7002
7003 2020-07-08 Tom Tromey <tromey@adacore.com>
7004
7005 * ada-lang.c (ada_exception_message_1): Use read_memory.
7006
7007 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7008
7009 PR python/22748
7010 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7011 special handling for inline frames.
7012 * findvar.c (value_of_register_lazy): Skip inline frames when
7013 creating lazy register values.
7014 * frame.c (frame_id_computed_p): Delete definition.
7015 * frame.h (frame_id_computed_p): Delete declaration.
7016
7017 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7018
7019 * NEWS: Mention additions to Python API.
7020 * python/py-arch.c (archpy_register_groups): New function.
7021 (arch_object_methods): Add 'register_groups' method.
7022 * python/py-registers.c (reggroup_iterator_object): New struct.
7023 (reggroup_object): New struct.
7024 (gdbpy_new_reggroup): New function.
7025 (gdbpy_reggroup_to_string): New function.
7026 (gdbpy_reggroup_name): New function.
7027 (gdbpy_reggroup_iter): New function.
7028 (gdbpy_reggroup_iter_next): New function.
7029 (gdbpy_new_reggroup_iterator): New function
7030 (gdbpy_initialize_registers): Register new types.
7031 (reggroup_iterator_object_type): Define new Python type.
7032 (gdbpy_reggroup_getset): New static global.
7033 (reggroup_object_type): Define new Python type.
7034 * python/python-internal.h
7035
7036 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7037
7038 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7039 * python/py-arch.c (archpy_registers): New function.
7040 (arch_object_methods): Add 'registers' method.
7041 * python/py-registers.c: New file.
7042 * python/python-internal.h
7043 (gdbpy_new_register_descriptor_iterator): Declare.
7044 (gdbpy_initialize_registers): Declare.
7045 * python/python.c (do_start_initialization): Call
7046 gdbpy_initialize_registers.
7047 * NEWS: Mention additions to the Python API.
7048
7049 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7050
7051 * NEWS: Mention new Python API method.
7052 * python/py-unwind.c (pending_framepy_architecture): New function.
7053 (pending_frame_object_methods): Add architecture method.
7054
7055 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7056
7057 * gdbarch.c: Regenerate.
7058 * gdbarch.h: Regenerate.
7059 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7060 (gdbarch_data): Use internal_error for the case where
7061 deprecated_set_gdbarch_data was originally needed.
7062 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7063 and use passed in obstack.
7064 (libunwind_frame_set_descr): Should no longer get back NULL from
7065 gdbarch_data.
7066 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7067 type.
7068 * user-regs.c (user_regs_init): Update parameters, and use passed
7069 in obstack.
7070 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7071 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7072
7073 2020-07-06 Tom de Vries <tdevries@suse.de>
7074
7075 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7076 End-Of-Sequence in lte_is_less_than.
7077 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7078 "gdb: Don't reorder line table entries too much when sorting".
7079
7080 2020-07-06 Tom de Vries <tdevries@suse.de>
7081
7082 PR tui/26205
7083 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7084
7085 2020-07-05 Tom de Vries <tdevries@suse.de>
7086
7087 PR build/26187
7088 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7089 std::uncaught_exceptions instead of deprecated
7090 std::uncaught_exception.
7091
7092 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7093
7094 * macroexp.h (macro_stringify): Return
7095 gdb::unique_xmalloc_ptr<char>.
7096 * macroexp.c (macro_stringify): Likewise.
7097 * macrotab.c (fixup_definition): Update.
7098
7099 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7100
7101 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7102 (lex_one_token): Update.
7103 * macroexp.c (struct macro_buffer) <release>: Return
7104 gdb::unique_xmalloc_ptr<char>.
7105 (macro_stringify): Update.
7106 (macro_expand): Update.
7107 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7108 * macroexp.h (macro_expand_next): Likewise.
7109
7110 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7111
7112 * macroexp.h (macro_lookup_ftype): Remove.
7113 (macro_expand, macro_expand_once, macro_expand_next): Remove
7114 lookup function parameters, add scope parameter.
7115 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7116 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7117 * macroscope.h (standard_macro_lookup): Change parameter type
7118 to macro_scope.
7119 * macroscope.c (standard_macro_lookup): Likewise.
7120 * c-exp.y (lex_one_token): Update.
7121 * macrocmd.c (macro_expand_command): Likewise.
7122 (macro_expand_once_command): Likewise.
7123
7124 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7125
7126 * inf-loop.c (inferior_event_handler): Remove client_data param.
7127 * inf-loop.h (inferior_event_handler): Likewise.
7128 * infcmd.c (step_1): Adjust.
7129 * infrun.c (proceed): Adjust.
7130 (fetch_inferior_event): Remove client_data param.
7131 (infrun_async_inferior_event_handler): Adjust.
7132 * infrun.h (fetch_inferior_event): Remove `void *` param.
7133 * linux-nat.c (handle_target_event): Adjust.
7134 * record-btrace.c (record_btrace_handle_async_inferior_event):
7135 Adjust.
7136 * record-full.c (record_full_async_inferior_event_handler):
7137 Adjust.
7138 * remote.c (remote_async_inferior_event_handler): Adjust.
7139
7140 2020-07-01 Tom Tromey <tom@tromey.com>
7141
7142 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7143 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7144
7145 2020-07-01 Tom Tromey <tom@tromey.com>
7146
7147 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7148 tui_gen_win_info.
7149 (tui_win_info::make_window): Merge with
7150 tui_gen_win_info::make_window.
7151 (tui_win_info::make_visible): Move from tui_gen_win_info.
7152 * tui/tui-win.c (tui_win_info::max_width): Move from
7153 tui_gen_win_info.
7154 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7155 type.
7156 <window_factory>: Likewise.
7157 * tui/tui-layout.c (tui_win_info::resize): Move from
7158 tui_gen_win_info.
7159 (make_standard_window): Change return type.
7160 (get_locator_window, tui_get_window_by_name): Likewise.
7161 (tui_layout_window::apply): Remove a cast.
7162 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7163 (struct tui_win_info): Merge with tui_gen_win_info.
7164 (struct tui_gen_win_info): Remove.
7165
7166 2020-07-01 Tom Tromey <tom@tromey.com>
7167
7168 * tui/tui-stack.h (struct tui_locator_window): Derive from
7169 tui_win_info.
7170 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7171 <can_box>: New method.
7172
7173 2020-07-01 Tom Tromey <tom@tromey.com>
7174
7175 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7176
7177 2020-07-01 Tom Tromey <tom@tromey.com>
7178
7179 * tui/tui-regs.c (tui_data_window::display_registers_from)
7180 (tui_data_window::display_registers_from)
7181 (tui_data_window::first_data_item_displayed)
7182 (tui_data_window::delete_data_content_windows): Update.
7183 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7184 Remove.
7185 (tui_data_window::check_register_values): Update.
7186 (tui_data_item_window::rerender): Add parameters. Update.
7187 (tui_data_item_window::refresh_window): Remove.
7188 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7189 virtual.
7190 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7191 tui_gen_win_info.
7192 <refresh_window, max_height, min_height>: Remove.
7193 <rerender>: Add parameters.
7194 <x, y, visible>: New members.
7195 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7196 <m_item_width>: New member.
7197
7198 2020-07-01 Tom Tromey <tom@tromey.com>
7199
7200 * tui/tui-regs.c (tui_data_window::show_register_group)
7201 (tui_data_window::check_register_values): Update.
7202 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7203 from item_no.
7204
7205 2020-07-01 Tom Tromey <tom@tromey.com>
7206
7207 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7208 useless "if".
7209
7210 2020-07-01 Tom Tromey <tom@tromey.com>
7211
7212 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7213 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7214
7215 2020-07-01 Tom Tromey <tom@tromey.com>
7216
7217 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7218 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7219 (struct tui_line_or_address): Move from tui-data.h.
7220 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7221 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7222 (tui_cmd_window, tui_source_window_base, tui_source_window)
7223 (tui_disasm_window): Don't declare.
7224 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7225 to tui-winsource.h.
7226 (SINGLE_KEY): Move to tui-stack.c.
7227
7228 2020-07-01 Tom Tromey <tom@tromey.com>
7229
7230 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7231 std::string.
7232 * tui/tui-regs.c (class tab_expansion_file): New.
7233 (tab_expansion_file::write): New method.
7234 (tui_register_format): Change return type. Use
7235 tab_expansion_file.
7236 (tui_get_register, tui_data_window::display_registers_from)
7237 (tui_data_item_window::rerender): Update.
7238 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7239 * tui/tui-io.c (tui_expand_tabs): Remove.
7240
7241 2020-07-01 Tom Tromey <tom@tromey.com>
7242
7243 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7244
7245 2020-07-01 Fangrui Song <maskray@google.com>
7246
7247 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7248
7249 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7250
7251 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7252 forms for DW_AT_associated and DW_AT_allocated attributes,
7253 which is already checked in function attr_to_dynamic_prop.
7254
7255 2020-06-30 Tom Tromey <tromey@adacore.com>
7256
7257 * dwarf2/read.c (quirk_rust_enum): Correctly call
7258 alloc_rust_variant for default-less enum.
7259
7260 2020-06-30 Tom Tromey <tromey@adacore.com>
7261
7262 PR build/26183:
7263 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7264 gdb::to_string.
7265
7266 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7267
7268 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7269 * gdbarch.h: Re-generate.
7270
7271 2020-06-28 Tom Tromey <tom@tromey.com>
7272
7273 * command.h (cmd_types): Remove.
7274 (cmd_type): Don't declare.
7275 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7276 typedef.
7277 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7278 * cli/cli-decode.c (cmd_type): Remove.
7279
7280 2020-06-27 Pedro Alves <palves@redhat.com>
7281
7282 * fork-child.c (prefork_hook): Adjust.
7283 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7284 Delete.
7285 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7286 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7287 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7288 Remove declarations.
7289 (struct inferior) <set_tty, tty>: New methods.
7290 (struct inferior) <terminal>: Rename to ...
7291 (struct inferior) <m_terminal>: ... this and make private.
7292 * main.c (captured_main_1): Adjust.
7293 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7294 (mi_cmd_inferior_tty_show): Adjust.
7295 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7296 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7297
7298 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7299
7300 * configure.ac: Add --enable-libctf: handle --disable-static
7301 properly.
7302 * acinclude.m4: sinclude ../config/enable.m4.
7303 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7304 (LIBCTF): Substitute in.
7305 (CTF_DEPS): New, likewise.
7306 (CLIBS): libctf needs symbols from libbfd: move earlier.
7307 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7308 flags.
7309 * ctfread.c: Surround in ENABLE_LIBCTF.
7310 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7311 * configure: Regenerate.
7312 * config.in: Likewise.
7313
7314 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7315
7316 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7317
7318 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7319
7320 * inferior.h (struct inferior) <terminal>: Change type to
7321 gdb::unique_xmalloc_ptr<char>.
7322 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7323 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7324 field, adjust to unique pointer.
7325 (get_inferior_io_terminal): Adjust to unique pointer.
7326
7327 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7328
7329 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7330 registers, not just the known core set of registers.
7331
7332 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7333
7334 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7335 fflags, frm, and fcsr registers.
7336 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7337 restore groups.
7338 (riscv_tdesc_unknown_reg): New function.
7339 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7340 tdesc_use_registers.
7341 * riscv-tdep.h (struct gdbarch_tdep): Add
7342 unknown_csrs_first_regnum, unknown_csrs_count,
7343 duplicate_fflags_regnum, duplicate_frm_regnum, and
7344 duplicate_fcsr_regnum fields.
7345
7346 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7347
7348 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7349 callback, use the callback (when not null) to help number unknown
7350 registers.
7351 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7352 (tdesc_use_registers): Add extra parameter to declaration.
7353
7354 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7355
7356 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7357 in the file.
7358 (class riscv_pending_register_alias): Likewise.
7359 (riscv_register_feature::register_info): Change 'required_p' field
7360 to 'required', and change its type. Add 'check' member function.
7361 (riscv_register_feature::register_info::check): Define new member
7362 function.
7363 (riscv_xreg_feature): Change initialisation of 'required' field.
7364 (riscv_freg_feature): Likewise.
7365 (riscv_virtual_feature): Likewise.
7366 (riscv_csr_feature): Likewise.
7367 (riscv_check_tdesc_feature): Take extra parameter, the csr
7368 tdesc_feature, rewrite the function to use the new
7369 riscv_register_feature::register_info::check function.
7370 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7371
7372 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7373
7374 * features/Makefile: Remove all references to the deleted files
7375 below.
7376 * features/riscv/32bit-csr.c: Deleted.
7377 * features/riscv/32bit-csr.xml: Deleted.
7378 * features/riscv/64bit-csr.c: Deleted.
7379 * features/riscv/64bit-csr.xml: Deleted.
7380 * features/riscv/rebuild-csr-xml.sh: Deleted.
7381
7382 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7383
7384 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7385 whitespace error for declaration of names member variable.
7386 (struct riscv_register_feature): Add new prefer_first_name member
7387 variable, and fix whitespace error in declaration of registers.
7388 (riscv_xreg_feature): Initialize prefer_first_name field.
7389 (riscv_freg_feature): Likewise.
7390 (riscv_virtual_feature): Likewise.
7391 (riscv_csr_feature): Likewise.
7392 (riscv_register_name): Expand on comments. Remove register name
7393 modifications for CSR and virtual registers.
7394
7395 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7396
7397 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7398 errors.
7399
7400 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7401
7402 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7403 riscv-opc.h.
7404 (class riscv_pending_register_alias): New class.
7405 (riscv_check_tdesc_feature): Take vector of pending aliases and
7406 populate it as appropriate.
7407 (riscv_setup_register_aliases): Delete.
7408 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7409 to riscv_check_tdesc_feature in all cases. Use the vector to
7410 create the register aliases.
7411
7412 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7413
7414 * sol2-tdep.c (sol2_static_transform_name): Remove.
7415 (sol2_init_abi): Don't register it.
7416 * gdbarch.sh (static_transform_name): Remove.
7417 * gdbarch.c, gdbarch.h: Regenerate.
7418
7419 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7420 gdbarch_static_transform_name.
7421 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7422 * stabsread.c (define_symbol) <'X'>: Remove.
7423 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7424 handling.
7425 <'V'>: Likewise.
7426 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7427 <'S'>: Remove call to gdbarch_static_transform_name.
7428
7429 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7430
7431 * procfs.c (procfs_pre_trace): New function.
7432 (procfs_target::create_inferior): Pass it to fork_inferior.
7433
7434 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7435
7436 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7437 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7438 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7439 sol2-tdep.o, sparc-sol2-tdep.o.
7440 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7441 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7442 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7443 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7444
7445 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7446
7447 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7448 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7449 Call sol2_init_abi.
7450 Remove calls to set_gdbarch_skip_solib_resolver,
7451 set_gdbarch_core_pid_to_str.
7452 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7453 (i386_sol2_static_transform_name): Remove.
7454 (i386_sol2_init_abi): Call sol2_init_abi.
7455 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7456 set_gdbarch_static_transform_name,
7457 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7458 Use sol2_sigtramp_p.
7459 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7460 (sol2_sigtramp_p): New function.
7461 (sol2_static_transform_name): New function.
7462 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7463 (sol2_init_abi): New function.
7464 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7465 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7466 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7467 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7468 (sparc_sol2_static_transform_name): Remove.
7469 (sparc32_sol2_init_abi): Call sol2_init_abi.
7470 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7471 set_gdbarch_static_transform_name,
7472 set_gdbarch_skip_solib_resolver,
7473 set_gdbarch_core_pid_to_str.
7474 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7475 (sparc_sol2_static_transform_name): Remove
7476 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7477 call sol2_sigtramp_p.
7478 (sparc64_sol2_init_abi): Call sol2_init_abi.
7479 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7480 set_gdbarch_static_transform_name,
7481 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7482
7483 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7484
7485 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7486 * exec.c (validate_exec_file): If from_tty, set both
7487 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7488 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7489 and from_tty, unconditionally ask a confirmation.
7490
7491 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7492
7493 * target-descriptions.c (tdesc_architecture_name): Protect against
7494 NULL pointer dereference.
7495 (maint_print_xml_tdesc_cmd): New function.
7496 (_initialize_target_descriptions): Register new 'maint print
7497 xml-tdesc' command and give it the filename completer.
7498 * NEWS: Mention new 'maint print xml-tdesc' command.
7499
7500 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7501
7502 * target-descriptions.c (class tdesc_compatible_info): New class.
7503 (struct target_desc): Change type of compatible vector.
7504 (tdesc_compatible_p): Update for change in type of
7505 target_desc::compatible.
7506 (tdesc_compatible_info_list): New function.
7507 (tdesc_compatible_info_arch_name): New function.
7508 (tdesc_add_compatible): Update for change in type of
7509 target_desc::compatible.
7510 (print_c_tdesc::visit_pre): Likewise.
7511
7512 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7513
7514 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7515 whitespace to underscore.
7516 (maint_print_c_tdesc_cmd): Use fake filename for target
7517 descriptions that came from the target.
7518 (_initialize_target_descriptions): Add filename command completion
7519 for 'maint print c-tdesc'.
7520
7521 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7522
7523 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7524 lines.
7525
7526 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7527
7528 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7529 lines.
7530 (dwarf2_find_location_expression): Likewise.
7531 (call_site_parameter_matches): Likewise.
7532 (dwarf2_compile_expr_to_ax): Likewise.
7533 (disassemble_dwarf_expression): Likewise.
7534 (loclist_describe_location): Likewise.
7535
7536 2020-06-23 Pedro Alves <palves@redhat.com>
7537
7538 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7539 progspace-and-thread.h. Include scoped-mock-context.h instead.
7540 (register_to_value_test): Use scoped_mock_context.
7541 * regcache.c: Include "scoped-mock-context.h".
7542 (cooked_read_test): Don't error out if a target is already pushed.
7543 Use scoped_mock_context. Adjust.
7544 * scoped-mock-context.h: New file.
7545
7546 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7547
7548 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7549 initializer.
7550 (ada_language::is_string_type_p): New member function.
7551 * c-lang.c (c_language_data): Delete la_is_string_type_p
7552 initializer.
7553 (cplus_language_data): Likewise.
7554 (asm_language_data): Likewise.
7555 (minimal_language_data): Likewise.
7556 * d-lang.c (d_language_data): Likewise.
7557 * f-lang.c (f_is_string_type_p): Delete function, implementation
7558 moved to f_language::is_string_type_p.
7559 (f_language_data): Delete la_is_string_type_p initializer.
7560 (f_language::is_string_type_p): New member function,
7561 implementation from f_is_string_type_p.
7562 * go-lang.c (go_is_string_type_p): Delete function, implementation
7563 moved to go_language::is_string_type_p.
7564 (go_language_data): Delete la_is_string_type_p initializer.
7565 (go_language::is_string_type_p): New member function,
7566 implementation from go_is_string_type_p.
7567 * language.c (language_defn::is_string_type_p): Define new member
7568 function.
7569 (default_is_string_type_p): Make static, add comment copied from
7570 header file.
7571 (unknown_language_data): Delete la_is_string_type_p initializer.
7572 (unknown_language::is_string_type_p): New member function.
7573 (auto_language_data): Delete la_is_string_type_p initializer.
7574 (auto_language::is_string_type_p): New member function.
7575 * language.h (language_data): Delete la_is_string_type_p field.
7576 (language_defn::is_string_type_p): Declare new function.
7577 (default_is_string_type_p): Delete desclaration, move comment to
7578 definition.
7579 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7580 moved to m2_language::is_string_type_p.
7581 (m2_language_data): Delete la_is_string_type_p initializer.
7582 (m2_language::is_string_type_p): New member function,
7583 implementation from m2_is_string_type_p.
7584 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7585 initializer.
7586 * opencl-lang.c (opencl_language_data): Likewise.
7587 * p-lang.c (pascal_is_string_type_p): Delete function,
7588 implementation moved to pascal_language::is_string_type_p.
7589 (pascal_language_data): Delete la_is_string_type_p initializer.
7590 (pascal_language::is_string_type_p): New member function,
7591 implementation from pascal_is_string_type_p.
7592 * rust-lang.c (rust_is_string_type_p): Delete function,
7593 implementation moved to rust_language::is_string_type_p.
7594 (rust_language_data): Delete la_is_string_type_p initializer.
7595 (rust_language::is_string_type_p): New member function,
7596 implementation from rust_is_string_type_p.
7597 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7598 is_string_type_p.
7599
7600 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7601
7602 * ada-lang.c (ada_language_data): Delete la_print_typedef
7603 initializer.
7604 (ada_language::print_typedef): New member function.
7605 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7606 (cplus_language_data): Likewise.
7607 (asm_language_data): Likewise.
7608 (minimal_language_data): Likewise.
7609 * d-lang.c (d_language_data): Likewise.
7610 * f-lang.c (f_language_data): Likewise.
7611 (f_language::print_typedef): New member function.
7612 * go-lang.c (go_language_data): Delete la_print_typedef
7613 initializer.
7614 * language.c (language_defn::print_typedef): Define member
7615 function.
7616 (unknown_language_data): Delete la_print_typedef initializer.
7617 (unknown_language::print_typedef): New member function.
7618 (auto_language_data): Delete la_print_typedef initializer.
7619 (auto_language::print_typedef): New member function.
7620 * language.h (language_data): Delete la_print_typedef field.
7621 (language_defn::print_typedef): Declare new member function.
7622 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7623 (default_print_typedef): Delete declaration.
7624 * m2-lang.c (m2_language_data): Delete la_print_typedef
7625 initializer.
7626 (m2_language::print_typedef): New member function.
7627 * objc-lang.c (objc_language_data): Delete la_print_typedef
7628 initializer.
7629 * opencl-lang.c (opencl_language_data): Likewise.
7630 * p-lang.c (pascal_language_data): Likewise.
7631 (pascal_language::print_typedef): New member function.
7632 * rust-lang.c (rust_print_typedef): Delete function,
7633 implementation moved to rust_language::print_typedef.
7634 (rust_language): Delete la_print_typedef initializer.
7635 (rust_language::print_typedef): New member function,
7636 implementation from rust_print_typedef.
7637 * typeprint.c (default_print_typedef): Delete.
7638
7639 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7640
7641 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7642 (ada_language::printstr): New member function.
7643 * c-lang.c (c_language_data): Delete la_printstr initializer.
7644 (cplus_language_data): Likewise.
7645 (asm_language_data): Likewise.
7646 (minimal_language_data): Likewise.
7647 * d-lang.c (d_language_data): Likewise.
7648 * f-lang.c (f_printstr): Rename to f_language::printstr.
7649 (f_language_data): Delete la_printstr initializer.
7650 (f_language::printstr): New member function, implementation from
7651 f_printstr.
7652 * go-lang.c (go_language_data): Delete la_printstr initializer.
7653 * language.c (language_defn::printstr): Define new member
7654 function.
7655 (unk_lang_printstr): Delete.
7656 (unknown_language_data): Delete la_printstr initializer.
7657 (unknown_language::printstr): New member function.
7658 (auto_language_data): Delete la_printstr initializer.
7659 (auto_language::printstr): New member function.
7660 * language.h (language_data): Delete la_printstr field.
7661 (language_defn::printstr): Declare new member function.
7662 (LA_PRINT_STRING): Update call to printstr.
7663 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7664 (m2_language_data): Delete la_printstr initializer.
7665 (m2_language::printstr): New member function, implementation from
7666 m2_printstr.
7667 * objc-lang.c (objc_language_data): Delete la_printstr
7668 initializer.
7669 * opencl-lang.c (opencl_language_data): Likewise.
7670 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7671 (pascal_language_data): Delete la_printstr initializer.
7672 (pascal_language::printstr): New member function, implementation
7673 from pascal_printstr.
7674 * p-lang.h (pascal_printstr): Delete declaration.
7675 * rust-lang.c (rust_printstr): Update header comment.
7676 (rust_language_data): Delete la_printstr initializer.
7677 (rust_language::printstr): New member function.
7678
7679 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7680
7681 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7682 (ada_language::printchar): New member function.
7683 * c-lang.c (c_language_data): Delete la_printchar initializer.
7684 (cplus_language_data): Likewise.
7685 (asm_language_data): Likewise.
7686 (minimal_language_data): Likewise.
7687 * d-lang.c (d_language_data): Likewise.
7688 * f-lang.c (f_printchar): Rename to f_language::printchar.
7689 (f_language_data): Delete la_printchar initializer.
7690 (f_language::printchar): New member function, implementation from
7691 f_printchar.
7692 * go-lang.c (go_language_data): Delete la_printchar initializer.
7693 * language.c (unk_lang_printchar): Delete.
7694 (language_defn::printchar): Define new member function.
7695 (unknown_language_data): Delete la_printchar initializer.
7696 (unknown_language::printchar): New member function.
7697 (auto_language_data): Delete la_printchar initializer.
7698 (auto_language::printchar): New member function.
7699 * language.h (language_data): Delete la_printchar field.
7700 (language_defn::printchar): Declare new member function.
7701 (LA_PRINT_CHAR): Update call to printchar.
7702 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7703 (m2_language::printchar): New member function.
7704 * objc-lang.c (objc_language_data): Delete la_printchar
7705 initializer.
7706 * opencl-lang.c (opencl_language_data): Likewise.
7707 * p-lang.c (pascal_language_data): Delete la_printchar
7708 initializer.
7709 (pascal_language::printchar): New member function.
7710 * rust-lang.c (rust_printchar): Rename to
7711 rust_language::printchar.
7712 (rust_language_data): Delete la_printchar initializer.
7713 (rust_language::printchar): New member function, implementation
7714 from rust_printchar.
7715
7716 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7717
7718 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7719 (ada_language_data): Delete la_emitchar initializer.
7720 (ada_language::emitchar): New member function, implementation from
7721 emit_char.
7722 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7723 (cplus_language_data): Likewise.
7724 (asm_language_data): Likewise.
7725 (minimal_language_data): Likewise.
7726 * d-lang.c (d_language_data): Likewise.
7727 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7728 (f_language_data): Delete la_emitchar initializer.
7729 (f_language::emitchar): New member function, implementation from
7730 f_emit_char.
7731 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7732 * language.c (unk_lang_emit_char): Delete.
7733 (language_defn::emitchar): New member function definition.
7734 (unknown_language_data): Delete la_emitchar initializer.
7735 (unknown_language::emitchar): New member function.
7736 (auto_language_data): Delete la_emitchar initializer.
7737 (auto_language::emitchar): New member function.
7738 * language.h (language_data): Delete la_emitchar field.
7739 (language_defn::emitchar): New member field declaration.
7740 (LA_EMIT_CHAR): Update call to emitchar.
7741 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7742 (m2_language_data): Delete la_emitchar initializer.
7743 (m2_language::emitchar): New member function, implementation from
7744 m2_emit_char.
7745 * objc-lang.c (objc_language_data): Delete la_emitchar
7746 initializer.
7747 * opencl-lang.c (opencl_language_data): Likewise.
7748 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7749 (pascal_language_data): Delete la_emitchar initializer.
7750 (pascal_language::emitchar): New member function, implementation
7751 from pascal_emit_char.
7752 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7753 (rust_language_data): Delete la_emitchar initializer.
7754 (rust_language::emitchar): New member function, implementation
7755 from rust_emitchar.
7756
7757 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7758
7759 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7760 (ada_language_data): Delete la_post_parser initializer.
7761 (ada_language::post_parser): New member function.
7762 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7763 (cplus_language_data): Likewise.
7764 (asm_language_data): Likewise.
7765 (minimal_language_data): Likewise.
7766 * d-lang.c (d_language_data): Likewise.
7767 * f-lang.c (f_language_data): Likewise.
7768 * go-lang.c (go_language_data): Likewise.
7769 * language.c (unknown_language_data): Likewise.
7770 (auto_language_data): Likewise.
7771 * language.h (language_data): Delete la_post_parser field.
7772 (language_defn::post_parser): New member function.
7773 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7774 * objc-lang.c (objc_language_data): Likewise.
7775 * opencl-lang.c (opencl_language_data): Likewise.
7776 * p-lang.c (pascal_language_data): Likewise.
7777 * parse.c (parse_exp_in_context): Update call to post_parser.
7778 (null_post_parser): Delete definition.
7779 * parser-defs.h (null_post_parser): Delete declaration.
7780 * rust-lang.c (rust_language_data): Delete la_post_parser
7781 initializer.
7782
7783 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7784
7785 * ada-lang.c (parse): Rename to ada_language::parser.
7786 (ada_language_data): Delete la_parser initializer.
7787 (ada_language::parser): New member function, implementation from
7788 parse.
7789 * c-lang.c (c_language_data): Delete la_parser initializer.
7790 (cplus_language_data): Likewise.
7791 (asm_language_data): Likewise.
7792 (minimal_language_data): Likewise.
7793 * d-lang.c (d_language_data): Likewise.
7794 (d_language::parser): New member function.
7795 * f-lang.c (f_language_data): Delete la_parser initializer.
7796 (f_language::parser): New member function.
7797 * go-lang.c (go_language_data): Delete la_parser initializer.
7798 (go_language::parser): New member function.
7799 * language.c (unk_lang_parser): Delete.
7800 (language_defn::parser): Define new member function.
7801 (unknown_language_data): Delete la_parser initializer.
7802 (unknown_language::parser): New member function.
7803 (auto_language_data): Delete la_parser initializer.
7804 (auto_language::parser): New member function.
7805 * language.h (language_data): Delete la_parser field.
7806 (language_defn::parser): Declare new member function.
7807 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7808 (m2_language::parser): New member function.
7809 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7810 * opencl-lang.c (opencl_language_data): Likewise.
7811 * p-lang.c (pascal_language_data): Likewise.
7812 (pascal_language::parser): New member function.
7813 * parse.c (parse_exp_in_context): Update call to parser.
7814 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7815 (rust_language::parser): New member function.
7816
7817 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7818
7819 * top.c (print_gdb_configuration): Print --with-python-libdir
7820 configuration value.
7821
7822 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7823
7824 * NEWS: Mention change to the alias command.
7825
7826 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7827
7828 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7829 (alias_command_completer)
7830 (make_alias_options_def_group): New functions.
7831 (alias_opts, alias_option_defs): New struct and array.
7832 (alias_usage_error): Update usage.
7833 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7834 Use option framework.
7835 (_initialize_cli_cmds): Update alias command help.
7836 Update aliases command help.
7837 (show_user):
7838 Add NULL for new default_args lookup_cmd argument.
7839 (valid_command_p): Rename to validate_aliased_command.
7840 Add NULL for new default_args lookup_cmd argument. Verify that the
7841 aliased_command has no default args.
7842 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7843 (lookup_cmd_1, lookup_cmd): New argument default_args.
7844 (add_alias_cmd):
7845 Add NULL for new default_args lookup_cmd argument.
7846 (print_help_for_command): Show default args under the layout
7847 alias some_alias = some_aliased_cmd some_alias_default_arg.
7848 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7849 xfree default_args in destructor.
7850 * cli/cli-script.c (process_next_line, do_define_command):
7851 Add NULL for new default_args lookup_cmd argument.
7852 * command.h: Declare new default_args argument in lookup_cmd
7853 and lookup_cmd_1.
7854 * completer.c (complete_line_internal_1):
7855 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7856 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7857 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7858 Likewise.
7859 * infcmd.c (_initialize_infcmd): Likewise.
7860 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7861 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7862 * python/py-param.c (add_setshow_generic): Likewise.
7863 * remote.c (_initialize_remote): Likewise.
7864 * top.c (execute_command): Prepend default_args if command has some.
7865 (set_verbose):
7866 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7867 * tracepoint.c (validate_actionline, encode_actions_1):
7868 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7869
7870 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7871
7872 * jit.c (jit_read_descriptor): Use bool as the return type.
7873 (jit_breakpoint_re_set_internal): Use bool as the return type.
7874 Invert the return value logic; return true if the jit breakpoint
7875 has been successfully initialized.
7876 (jit_inferior_init): Update the call to
7877 jit_breakpoint_re_set_internal.
7878
7879 2020-06-22 Pedro Alves <palves@redhat.com>
7880
7881 PR gdb/25939
7882 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7883 Use the current inferior instead. Don't return
7884 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7885 wait again.
7886 * sol-thread.c (sol_thread_target::wait): Don't reference
7887 inferior_ptid.
7888 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7889 (sol_update_thread_list_callback): Use the current inferior's pid
7890 instead of inferior_ptid.
7891
7892 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7893
7894 * procfs.c: Cleanup many comments.
7895
7896 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7897 (AFTER_WATCHFLAG): Replace by value.
7898
7899 (MAIN_PROC_NAME_FORMAT): Inline ...
7900 (create_procinfo): ... here.
7901
7902 (procfs_debug_inferior): Remove SYS_exec handling.
7903 (syscall_is_exec): Likewise.
7904 (procfs_set_exec_trap): Likewise.
7905
7906 (syscall_is_lwp_exit): Inline in callers.
7907 (syscall_is_exit): Likewise.
7908 (syscall_is_exec): Likewise.
7909 (syscall_is_lwp_create): Likewise.
7910
7911 (invalidate_cache): Remove #if 0 code.
7912
7913 (make_signal_thread_runnable): Remove.
7914 (procfs_target::resume): Remove #if 0 code.
7915
7916 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7917
7918 PR gdb/25939
7919 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7920 call ...
7921 (procfs_target::create_inferior): ... here.
7922
7923 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7924
7925 * exec.c (validate_exec_file): Ensure the build-id is up to
7926 date by calling reopen_exec_file (that checks file timestamp
7927 to decide to re-read the file).
7928
7929 2020-06-18 Pedro Alves <palves@redhat.com>
7930
7931 PR gdb/25412
7932 * gdbthread.h (delete_thread, delete_thread_silent)
7933 (find_thread_ptid): Update comments.
7934 * thread.c (current_thread_): New global.
7935 (is_current_thread): Move higher, and reimplement.
7936 (inferior_thread): Reimplement.
7937 (set_thread_exited): Use bool. Add assertions.
7938 (add_thread_silent): Simplify thread-reuse handling by always
7939 calling delete_thread.
7940 (delete_thread): Remove intro comment.
7941 (find_thread_ptid): Skip exited threads.
7942 (switch_to_thread_no_regs): Write to current_thread_.
7943 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7944 INFERIOR_PTID. Clear current_thread_.
7945
7946 2020-06-18 Pedro Alves <palves@redhat.com>
7947
7948 * aix-thread.c (pd_update): Use switch_to_thread.
7949
7950 2020-06-18 Pedro Alves <palves@redhat.com>
7951
7952 * ravenscar-thread.c (ravenscar_thread_target): Update.
7953 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7954 (ravenscar_thread_target::add_active_thread): ... this. Don't
7955 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7956 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7957
7958 2020-06-18 Pedro Alves <palves@redhat.com>
7959
7960 * nat/windows-nat.c (current_windows_thread): Remove.
7961 * nat/windows-nat.h (current_windows_thread): Remove.
7962 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7963 Adjust.
7964 (display_selectors): Adjust to fetch the current
7965 windows_thread_info based on inferior_ptid.
7966 (fake_create_process): No longer write to current_windows_thread.
7967 (windows_nat_target::get_windows_debug_event):
7968 Don't set inferior_ptid or current_windows_thread.
7969 (windows_nat_target::wait): Adjust to not rely on
7970 current_windows_thread.
7971 (do_initial_windows_stuff): Now a method of windows_nat_target.
7972 Switch to the last_ptid thread.
7973 (windows_nat_target::attach): Adjust.
7974 (windows_nat_target::detach): Use switch_to_no_thread instead of
7975 writing to inferior_ptid directly.
7976 (windows_nat_target::create_inferior): Adjust.
7977
7978 2020-06-18 Pedro Alves <palves@redhat.com>
7979
7980 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7981
7982 2020-06-18 Pedro Alves <palves@redhat.com>
7983
7984 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7985 after creating it, instead of writing to inferior_ptid. Don't
7986 write to inferior_ptid.
7987
7988 2020-06-18 Pedro Alves <palves@redhat.com>
7989
7990 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7991
7992 2020-06-18 Pedro Alves <palves@redhat.com>
7993
7994 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7995 it, instead of writing to inferior_ptid.
7996
7997 2020-06-18 Pedro Alves <palves@redhat.com>
7998
7999 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8000 to inferior_ptid.
8001
8002 2020-06-18 Pedro Alves <palves@redhat.com>
8003
8004 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8005 instead of writing to inferior_ptid directly.
8006
8007 2020-06-18 Pedro Alves <palves@redhat.com>
8008
8009 * corelow.c (core_target::close): Use switch_to_no_thread instead
8010 of writing to inferior_ptid directly.
8011 (add_to_thread_list, core_target_open): Use switch_to_thread
8012 instead of writing to inferior_ptid directly.
8013
8014 2020-06-18 Pedro Alves <palves@redhat.com>
8015
8016 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8017 inferior_ptid.
8018 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8019 inferior_ptid.
8020 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8021 inferior_ptid directly.
8022 (darwin_nat_target::init_thread_list): Switch to thread, instead
8023 of writing to inferior_ptid.
8024 (darwin_nat_target::attach): Don't write to inferior_ptid.
8025 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8026
8027 2020-06-18 Pedro Alves <palves@redhat.com>
8028
8029 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8030 thread.
8031 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8032 Instead use switch_to_thread.
8033 (gnu_nat_target::detach): Use switch_to_no_thread
8034 instead of writing to inferior_ptid directly. Used passed-in
8035 inferior instead of looking up the inferior by pid.
8036
8037 2020-06-18 Pedro Alves <palves@redhat.com>
8038
8039 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8040 inferior_ptid.
8041
8042 2020-06-18 Pedro Alves <palves@redhat.com>
8043
8044 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8045 inferior_ptid.
8046 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8047 thread.
8048 (nto_procfs_target::detach): Avoid referencing
8049 inferior_ptid. Use switch_to_no_thread instead of writing to
8050 inferior_ptid directly.
8051 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8052 instead of writing to inferior_ptid directly.
8053 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8054 to thread.
8055
8056 2020-06-18 Pedro Alves <palves@redhat.com>
8057
8058 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8059 after creating it, instead of writing to inferior_ptid.
8060 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8061 to inferior_ptid directly.
8062 (gdbsim_target::wait): Don't write to inferior_ptid.
8063
8064 2020-06-18 Pedro Alves <palves@redhat.com>
8065
8066 * remote.c (remote_target::remote_notice_new_inferior): Use
8067 switch_to_thread instead of writing to inferior_ptid directly.
8068 (remote_target::add_current_inferior_and_thread): Use
8069 switch_to_no_thread instead of writing to inferior_ptid directly.
8070 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8071 and switch_to_thread instead of using set_current_inferior or
8072 writing to inferior_ptid directly.
8073
8074 2020-06-18 Pedro Alves <palves@redhat.com>
8075
8076 * tracectf.c (ctf_target_open): Switch to added thread instead of
8077 writing to inferior_ptid directly.
8078 (ctf_target::close): Use switch_to_no_thread instead of writing to
8079 inferior_ptid directly.
8080
8081 2020-06-18 Pedro Alves <palves@redhat.com>
8082
8083 * tracefile-tfile.c (tfile_target_open): Don't write to
8084 inferior_ptid directly, instead switch to added thread.
8085 (tfile_target::close): Use switch_to_no_thread instead of writing
8086 to inferior_ptid directly.
8087
8088 2020-06-18 Pedro Alves <palves@redhat.com>
8089
8090 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8091 (procfs_target::detach): Use switch_to_no_thread
8092 instead of writing to inferior_ptid directly.
8093 (do_attach): Change return type to void. Switch to the added
8094 thread.
8095 (procfs_target::create_inferior): Switch to the added thread.
8096 (procfs_do_thread_registers): Don't write to inferior_ptid.
8097
8098 2020-06-18 Pedro Alves <palves@redhat.com>
8099
8100 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8101 of writing to inferior_ptid.
8102 (scoped_restore_exited_inferior): Delete.
8103 (handle_vfork_child_exec_or_exit): Simplify using
8104 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8105 instead of writing to inferior_ptid.
8106 (THREAD_STOPPED_BY): Delete.
8107 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8108 (thread_stopped_by_hw_breakpoint): Delete.
8109 (save_waitstatus): Use
8110 scoped_restore_current_thread+switch_to_thread, and call
8111 target_stopped_by_watchpoint instead of
8112 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8113 instead of thread_stopped_by_sw_breakpoint, and
8114 target_stopped_by_hw_breakpoint instead of
8115 thread_stopped_by_hw_breakpoint.
8116 (handle_inferior_event)
8117 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8118 inferior_ptid directly, nor
8119 set_current_inferior/set_current_program_space. Use
8120 switch_to_thread / switch_to_inferior_no_thread instead.
8121
8122 2020-06-18 Pedro Alves <palves@redhat.com>
8123
8124 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8125 instead of writing to inferior_ptid.
8126
8127 2020-06-18 Pedro Alves <palves@redhat.com>
8128
8129 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8130 added thread.
8131 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8132 to the added thread.
8133 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8134 instead of writing to inferior_ptid.
8135
8136 2020-06-18 Pedro Alves <palves@redhat.com>
8137
8138 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8139 (register_to_value_test): Mock a program_space too. Heap-allocate
8140 the address space. Don't write to inferior_ptid. Use
8141 switch_to_thread instead.
8142
8143 2020-06-18 Pedro Alves <palves@redhat.com>
8144
8145 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8146 Delete.
8147 (find_signalled_thread()): New, factored out from
8148 linux_make_corefile_notes and adjusted to handle exited threads.
8149 (linux_make_corefile_notes): Adjust to use the new
8150 find_signalled_thread.
8151
8152 2020-06-18 Pedro Alves <palves@redhat.com>
8153
8154 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8155 of saving/restoring inferior_ptid.
8156
8157 2020-06-17 Tom Tromey <tom@tromey.com>
8158
8159 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8160 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8161 declare.
8162 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8163
8164 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8165
8166 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8167 of partial symtabs.
8168
8169 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8170
8171 * regformats/reg-arm.dat: Remove.
8172 * regformats/reg-bfin.dat: Remove.
8173 * regformats/reg-cris.dat: Remove.
8174 * regformats/reg-crisv32.dat: Remove.
8175 * regformats/reg-m32r.dat: Remove.
8176 * regformats/reg-tilegx.dat: Remove.
8177 * regformats/reg-tilegx32.dat: Remove.
8178
8179 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8180
8181 * features/Makefile (WHICH): Remove arm files.
8182 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8183 * regformats/arm/arm-with-neon.dat: Remove.
8184 * regformats/arm/arm-with-vfpv2.dat: Remove.
8185 * regformats/arm/arm-with-vfpv3.dat: Remove.
8186
8187 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8188
8189 * features/Makefile (XMLTOC): Remove rx.xml.
8190
8191 2020-06-17 Pedro Alves <palves@redhat.com>
8192
8193 * gdbthread.h (thread_control_state) <trap_expected> Update
8194 comments.
8195
8196 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8197
8198 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8199 ada_language::lookup_symbol_nonlocal.
8200 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8201 (ada_language::lookup_symbol_nonlocal): New member function,
8202 implementation from ada_lookup_symbol_nonlocal.
8203 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8204 initializer.
8205 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8206 initializer.
8207 (cplus_language::lookup_symbol_nonlocal): New member function.
8208 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8209 (minimal_language_data) Likewise.
8210 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8211 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8212 initializer.
8213 (d_language::lookup_symbol_nonlocal): New member function.
8214 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8215 initializer.
8216 (f_language::lookup_symbol_nonlocal): New member function.
8217 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8218 initializer.
8219 * language.c (unknown_language_data): Likewise.
8220 (auto_language_data): Likewise.
8221 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8222 field.
8223 (language_defn::lookup_symbol_nonlocal): New member function.
8224 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8225 initializer.
8226 * objc-lang.c (objc_language_data): Likewise.
8227 * opencl-lang.c (opencl_language_data): Likewise.
8228 * p-lang.c (pascal_language_data): Likewise.
8229 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8230 rust_language::lookup_symbol_nonlocal.
8231 (rust_language_data): Delete la_lookup_symbol_nonlocal
8232 initializer.
8233 (rust_language::lookup_symbol_nonlocal): New member function,
8234 implementation from rust_lookup_symbol_nonlocal.
8235 * symtab.c (lookup_symbol_aux): Update call to
8236 lookup_symbol_nonlocal.
8237 (basic_lookup_symbol_nonlocal): Rename to...
8238 (language_defn::lookup_symbol_nonlocal): ...this, and update
8239 header comment. Remove language_defn parameter, and replace with
8240 uses of `this'.
8241 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8242
8243 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8244
8245 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8246 initializer.
8247 (ada_language::value_print_inner): New member function.
8248 * c-lang.c (c_language_data): Delete la_value_print_inner
8249 initializer.
8250 (cplus_language_data): Likewise.
8251 (asm_language_data): Likewise.
8252 (minimal_language_data): Likewise.
8253 * d-lang.c (d_language_data): Likewise.
8254 (d_language::value_print_inner): New member function.
8255 * f-lang.c (f_language_data): Delete la_value_print_inner
8256 initializer.
8257 (f_language::value_print_inner): New member function.
8258 * f-lang.h (f_value_print_innner): Rename to...
8259 (f_value_print_inner): ...this (note spelling of 'inner').
8260 * f-valprint.c (f_value_print_innner): Rename to...
8261 (f_value_print_inner): ...this (note spelling of 'inner').
8262 * go-lang.c (go_language_data): Delete la_value_print_inner
8263 initializer.
8264 (go_language::value_print_inner): New member function.
8265 * language.c (language_defn::value_print_inner): Define new member
8266 function.
8267 (unk_lang_value_print_inner): Delete.
8268 (unknown_language_data): Delete la_value_print_inner initializer.
8269 (unknown_language::value_print_inner): New member function.
8270 (auto_language_data): Delete la_value_print_inner initializer.
8271 (auto_language::value_print_inner): New member function.
8272 * language.h (language_data): Delete la_value_print_inner field.
8273 (language_defn::value_print_inner): Delcare new member function.
8274 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8275 initializer.
8276 (m2_language::value_print_inner): New member function.
8277 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8278 initializer.
8279 * opencl-lang.c (opencl_language_data): Likewise.
8280 * p-lang.c (pascal_language_data): Likewise.
8281 (pascal_language::value_print_inner): New member function.
8282 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8283 initializer.
8284 (rust_language::value_print_inner): New member function.
8285 * valprint.c (do_val_print): Update call to value_print_inner.
8286
8287 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8288
8289 * ada-lang.c (ada_language_data): Delete la_value_print
8290 initializer.
8291 (ada_language::value_print): New member function.
8292 * c-lang.c (c_language_data): Delete la_value_print initializer.
8293 (cplus_language_data): Likewise.
8294 (asm_language_data): Likewise.
8295 (minimal_language_data): Likewise.
8296 * d-lang.c (d_language_data): Likewise.
8297 * f-lang.c (f_language_data): Likewise.
8298 * go-lang.c (go_language_data): Likewise.
8299 * language.c (unk_lang_value_print): Delete.
8300 (language_defn::value_print): Define new member function.
8301 (unknown_language_data): Delete la_value_print initializer.
8302 (unknown_language::value_print): New member function.
8303 (auto_language_data): Delete la_value_print initializer.
8304 (auto_language::value_print): New member function.
8305 * language.h (language_data): Delete la_value_print field.
8306 (language_defn::value_print): Declare new member function.
8307 (LA_VALUE_PRINT): Update call to value_print.
8308 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8309 * objc-lang.c (objc_language_data): Likewise.
8310 * opencl-lang.c (opencl_language_data): Likewise.
8311 * p-lang.c (pascal_language_data): Likewise.
8312 (pascal_language::value_print): New member function.
8313 * rust-lang.c (rust_language_data): Delete la_value_print
8314 initializer.
8315
8316 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8317
8318 * ada-lang.c (ada_watch_location_expression): Rename to
8319 ada_language::watch_location_expression.
8320 (ada_language_data): Delete la_watch_location_expression
8321 initializer.
8322 (ada_language::watch_location_expression): New member function,
8323 implementation from ada_watch_location_expression.
8324 * breakpoint.c (watch_command_1): Update call to
8325 watch_location_expression.
8326 * c-lang.c (c_watch_location_expression): Rename to
8327 language_defn::watch_location_expression.
8328 (c_language_data): Delete la_watch_location_expression
8329 initializer.
8330 (cplus_language_data): Likewise.
8331 (asm_language_data): Likewise.
8332 (minimal_language_data): Likewise.
8333 * c-lang.h (c_watch_location_expression): Delete declaration.
8334 * d-lang.c (d_language_data): Delete la_watch_location_expression
8335 initializer.
8336 * f-lang.c (f_language_data): Likewise.
8337 * go-lang.c (go_language_data): Likewise.
8338 * language.c (language_defn::watch_location_expression): Member
8339 function implementation from c_watch_location_expression.
8340 (unknown_language_data): Delete la_watch_location_expression
8341 initializer.
8342 (auto_language_data): Likewise.
8343 * language.h (language_data): Delete la_watch_location_expression
8344 field.
8345 (language_defn::watch_location_expression): Declare new member
8346 function.
8347 * m2-lang.c (m2_language_data): Delete
8348 la_watch_location_expression initializer.
8349 * objc-lang.c (objc_language_data): Likewise.
8350 * opencl-lang.c (opencl_language_data): Likewise.
8351 * p-lang.c (pascal_language_data): Likewise.
8352 * rust-lang.c (rust_watch_location_expression): Rename to
8353 rust_language::watch_location_expression.
8354 (rust_language_data): Delete la_watch_location_expression
8355 initializer.
8356 (rust_language::watch_location_expression): New member function,
8357 implementation from rust_watch_location_expression.
8358
8359 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8360
8361 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8362 ada_language::collect_symbol_completion_matches.
8363 (ada_language_data): Delete la_collect_symbol_completion_matches
8364 initializer.
8365 (ada_language::collect_symbol_completion_matches): New member
8366 function, implementation from
8367 ada_collect_symbol_completion_matches.
8368 * c-lang.c (c_language_data): Delete
8369 la_collect_symbol_completion_matches initializer.
8370 (cplus_language_data): Likewise.
8371 (asm_language_data): Likewise.
8372 (minimal_language_data): Likewise.
8373 * d-lang.c (d_language_data): Likewise.
8374 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8375 f_language::collect_symbol_completion_matches.
8376 (f_language_data): Delete la_collect_symbol_completion_matches
8377 initializer.
8378 (f_language::collect_symbol_completion_matches) New member
8379 function, implementation from f_collect_symbol_completion_matches.
8380 * go-lang.c (go_language_data): Delete
8381 la_collect_symbol_completion_matches initializer.
8382 * language.c (unknown_language_data): Likewise.
8383 (auto_language_data): Likewise.
8384 * language.h (language_data): Delete
8385 la_collect_symbol_completion_matches field.
8386 (language_defn::collect_symbol_completion_matches): New member
8387 function.
8388 * m2-lang.c (m2_language_data): Delete
8389 la_collect_symbol_completion_matches initializer.
8390 * objc-lang.c (objc_language_data): Likewise.
8391 * opencl-lang.c (opencl_language_data): Likewise.
8392 * p-lang.c (pascal_language_data): Likewise.
8393 * rust-lang.c (rust_language_data): Likewise.
8394 * symtab.c (default_collect_symbol_completion_matches): Delete.
8395 (collect_symbol_completion_matches): Update call to
8396 collect_symbol_completion_matches.
8397 (collect_symbol_completion_matches_type): Likewise.
8398 * symtab.h (default_collect_symbol_completion_matches): Delete
8399 declaration.
8400
8401 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8402
8403 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8404 (ada_language_data): Delete la_word_break_characters initializer.
8405 (ada_language::word_break_characters): New member function.
8406 * c-lang.c (c_language_data): Delete la_word_break_characters
8407 initializer.
8408 (cplus_language_data): Likewise.
8409 (asm_language_data): Likewise.
8410 (minimal_language_data): Likewise.
8411 * completer.c: Update global comment.
8412 (advance_to_expression_complete_word_point): Update call to
8413 word_break_characters.
8414 (complete_files_symbols): Likewise.
8415 (complete_line_internal_1): Likewise.
8416 (default_completer_handle_brkchars): Likewise.
8417 (skip_quoted_chars): Likewise.
8418 * d-lang.c (d_language_data): Delete la_word_break_characters
8419 initializer.
8420 * f-lang.c (f_word_break_characters): Delete.
8421 (f_language_data): Delete la_word_break_characters initializer.
8422 (f_language::word_break_characters): New member function.
8423 * go-lang.c (go_language_data): Delete la_word_break_characters
8424 initializer.
8425 * language.c (unknown_language_data): Likewise.
8426 (auto_language_data): Likewise.
8427 * language.h (default_word_break_characters): Move declaration to
8428 earlier in the file.
8429 (language_data): Delete la_word_break_characters field.
8430 (language_defn::word_break_characters): New member function.
8431 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8432 initializer.
8433 * objc-lang.c (objc_language_data): Likewise.
8434 * opencl-lang.c (opencl_language_data): Likewise.
8435 * p-lang.c (pascal_language_data): Likewise.
8436 * rust-lang.c (rust_language_data): Likewise.
8437
8438 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8439
8440 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8441 (ada_language_data): Delete la_get_symbol_name_matcher
8442 initializer.
8443 (language_defn::get_symbol_name_matcher_inner): New member
8444 function.
8445 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8446 initializer.
8447 (cplus_language_data): Likewise.
8448 (cplus_language::get_symbol_name_matcher_inner): New member
8449 function.
8450 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8451 (minimal_language_data): Likewise.
8452 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8453 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8454 initializer.
8455 * dictionary.c (iter_match_first_hashed): Update call to
8456 get_symbol_name_matcher.
8457 (iter_match_next_hashed): Likewise.
8458 (iter_match_next_linear): Likewise.
8459 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8460 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8461 initializer.
8462 (f_language::get_symbol_name_matcher_inner): New member function.
8463 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8464 initializer.
8465 * language.c (default_symbol_name_matcher): Update header comment,
8466 make static.
8467 (language_defn::get_symbol_name_matcher): New definition.
8468 (language_defn::get_symbol_name_matcher_inner): Likewise.
8469 (get_symbol_name_matcher): Delete.
8470 (unknown_language_data): Delete la_get_symbol_name_matcher
8471 initializer.
8472 (auto_language_data): Likewise.
8473 * language.h (language_data): Delete la_get_symbol_name_matcher
8474 field.
8475 (language_defn::get_symbol_name_matcher): New member function.
8476 (language_defn::get_symbol_name_matcher_inner): Likewise.
8477 (default_symbol_name_matcher): Delete declaration.
8478 * linespec.c (find_methods): Update call to
8479 get_symbol_name_matcher.
8480 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8481 initializer.
8482 * minsyms.c (lookup_minimal_symbol): Update call to
8483 get_symbol_name_matcher.
8484 (iterate_over_minimal_symbols): Likewise.
8485 * objc-lang.c (objc_language_data): Delete
8486 la_get_symbol_name_matcher initializer.
8487 * opencl-lang.c (opencl_language_data): Likewise.
8488 * p-lang.c (pascal_language_data): Likewise.
8489 * psymtab.c (psymbol_name_matches): Update call to
8490 get_symbol_name_matcher.
8491 * rust-lang.c (rust_language_data): Delete
8492 la_get_symbol_name_matcher initializer.
8493 * symtab.c (symbol_matches_search_name): Update call to
8494 get_symbol_name_matcher.
8495 (compare_symbol_name): Likewise.
8496
8497 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8498
8499 * ada-lang.c (ada_language_data): Delete la_compute_program
8500 initializer.
8501 * c-lang.c (c_language_data): Likewise.
8502 (c_language::compute_program): New member function.
8503 (cplus_language_data): Delete la_compute_program initializer.
8504 (cplus_language::compute_program): New member function.
8505 (asm_language_data): Delete la_compute_program initializer.
8506 (minimal_language_data): Likewise.
8507 * c-lang.h (c_compute_program): Update comment.
8508 (cplus_compute_program): Likewise.
8509 * compile/compile-c-support.c (c_compute_program): Likewise.
8510 (cplus_compute_program): Likewise.
8511 * compile/compile.c (compile_to_object): Update call to
8512 la_compute_program.
8513 * d-lang.c (d_language_data): Delete la_compute_program
8514 initializer.
8515 * f-lang.c (f_language_data): Likewise.
8516 * go-lang.c (go_language_data): Likewise.
8517 * language.c (unknown_language_data): Likewise.
8518 (auto_language_data): Likewise.
8519 * language.h (language_data): Delete la_compute_program field.
8520 (language_defn::compute_program): New member function.
8521 * m2-lang.c (m2_language_data): Delete la_compute_program
8522 initializer.
8523 * objc-lang.c (objc_language_data): Likewise.
8524 * opencl-lang.c (opencl_language_data): Likewise.
8525 * p-lang.c (pascal_language_data): Likewise.
8526 * rust-lang.c (rust_language_data): Likewise.
8527
8528 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8529
8530 * ada-lang.c (ada_language_data) Delete
8531 la_class_name_from_physname initializer.
8532 * c-lang.c (c_language_data): Likewise.
8533 (cplus_language_data): Likewise.
8534 (cplus_language::class_name_from_physname): New member function.
8535 (asm_language_data): Delete la_class_name_from_physname
8536 initializer.
8537 (minimal_language_data): Likewise.
8538 * d-lang.c (d_language_data): Likewise.
8539 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8540 method on language_defn class.
8541 (guess_full_die_structure_name): Likewise.
8542 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8543 initializer.
8544 * go-lang.c (go_language_data): Likewise.
8545 * language.c (language_class_name_from_physname): Delete.
8546 (unk_lang_class_name): Delete.
8547 (unknown_language_data): Delete la_class_name_from_physname
8548 initializer.
8549 (auto_language_data): Likewise.
8550 * language.h (language_data): Delete la_class_name_from_physname
8551 field.
8552 (language_defn::class_name_from_physname): New function.
8553 (language_class_name_from_physname): Delete declaration.
8554 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8555 initializer.
8556 * objc-lang.c (objc_language_data): Likewise.
8557 * opencl-lang.c (opencl_language_data): Likewise.
8558 * p-lang.c (pascal_language_data): Likewise.
8559 * rust-lang.c (rust_language_data): Likewise.
8560
8561 2020-06-16 Tom Tromey <tom@tromey.com>
8562
8563 * tui/tui-data.h (STATUS_NAME): New macro.
8564 * tui/tui-layout.c (tui_remove_some_windows)
8565 (initialize_known_windows, tui_register_window)
8566 (tui_layout_split::remove_windows, initialize_layouts)
8567 (tui_new_layout_command): Don't use hard-coded window names.
8568
8569 2020-06-16 Tom Tromey <tom@tromey.com>
8570
8571 PR tui/25348:
8572 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8573 tui_initialize_readline. Only run once. Call rl_initialize.
8574 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8575 tui_initialize_readline.
8576 * tui/tui-io.c (tui_setup_io): Call
8577 tui_ensure_readline_initialized.
8578 * tui/tui-interp.c (tui_interp::init): Update.
8579
8580 2020-06-16 Tom Tromey <tom@tromey.com>
8581
8582 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8583 Also preserve the status window.
8584
8585 2020-06-16 Tom Tromey <tom@tromey.com>
8586
8587 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8588 where m_window==nullptr.
8589
8590 2020-06-15 Tom Tromey <tromey@adacore.com>
8591
8592 * windows-nat.c (windows_nat::handle_output_debug_string):
8593 Update.
8594 (windows_nat::handle_ms_vc_exception): Update.
8595 * target.h (target_read_string): Change API.
8596 * target.c (target_read_string): Change API.
8597 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8598 Update.
8599 * solib-frv.c (frv_current_sos): Update.
8600 * solib-dsbt.c (dsbt_current_sos): Update.
8601 * solib-darwin.c (darwin_current_sos): Update.
8602 * linux-thread-db.c (inferior_has_bug): Update.
8603 * expprint.c (print_subexp_standard): Update.
8604 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8605 (ada_exception_message_1): Update.
8606
8607 2020-06-15 Tom Tromey <tromey@adacore.com>
8608
8609 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8610
8611 2020-06-15 Tom Tromey <tromey@adacore.com>
8612
8613 * valprint.c (read_string): Update comment.
8614 * target.c (MIN): Remove.
8615 (target_read_string): Rewrite.
8616
8617 2020-06-15 Tom Tromey <tromey@adacore.com>
8618
8619 * corefile.c (read_memory_string): Remove.
8620 * ada-valprint.c (ada_value_print_ptr): Update.
8621 * ada-lang.h (ada_tag_name): Change return type.
8622 * ada-lang.c (type_from_tag): Update.
8623 (ada_tag_name_from_tsd): Change return type. Use
8624 target_read_string.
8625 (ada_tag_name): Likewise.
8626 * gdbcore.h (read_memory_string): Don't declare.
8627
8628 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8629
8630 * symtab.c (rbreak_command): Ignore Windows drive colon.
8631
8632 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8633
8634 * NEWS: Mention removed GDBserver host support.
8635
8636 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8637
8638 * features/riscv/rebuild-csr-xml.sh: Updated.
8639
8640 2020-06-11 Tom Tromey <tom@tromey.com>
8641
8642 PR gdb/18318:
8643 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8644
8645 2020-06-09 Jonny Grant <jg@jguk.org>
8646 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8647
8648 * main.c (captured_main_1): Don't print new line after help.
8649 (print_gdb_help): add mailing list and IRC channel information
8650 to --help. Add new lines between items in the footer. Remove
8651 quotes around bug url.
8652
8653 2020-06-11 Keith Seitz <keiths@redhat.com>
8654
8655 PR gdb/21356
8656 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8657 Resolve typedefs for type length calculations.
8658
8659 2020-06-10 Tom de Vries <tdevries@suse.de>
8660
8661 PR ada/24713
8662 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8663 (write_psymbols): Enable .gdb_index for ada.
8664 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8665 ada.
8666
8667 2020-06-10 Tom de Vries <tdevries@suse.de>
8668
8669 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8670 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8671 namei" instead of "const char *name" argument.
8672 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8673 dw2_symtab_iter_init.
8674
8675 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8676
8677 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8678 to use type::field and field::type instead.
8679
8680 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8681
8682 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8683 to use field::type instead.
8684
8685 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8686
8687 * gdbtypes.h (struct field) <type, set_type>: New methods.
8688 Rename `type` field to...
8689 <m_type>: ... this. Change references throughout to use type or
8690 set_type methods.
8691 (FIELD_TYPE): Use field::type. Change call sites that modify
8692 the field's type to use field::set_type instead.
8693
8694 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8695
8696 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8697 to use type::index_type instead.
8698
8699 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8700
8701 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8702 methods.
8703 (TYPE_INDEX_TYPE): Use type::index_type.
8704 * gdbtypes.c (create_array_type_with_stride): Likewise.
8705
8706 2020-06-07 Tom Tromey <tom@tromey.com>
8707
8708 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8709 parameter.
8710 (generic_value_print): Update.
8711
8712 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8713
8714 Revert commit 982a38f60b0.
8715 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8716
8717 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8718
8719 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8720 avoid use after free.
8721
8722 2020-06-05 Tom de Vries <tdevries@suse.de>
8723
8724 * NEWS: Fix typos.
8725
8726 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8727
8728 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8729 the per_bfd object.
8730 (dwarf2_read_debug_names): Likewise.
8731 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8732 object when re-using a per_bfd object with an index.
8733
8734 2020-06-03 Tom de Vries <tdevries@suse.de>
8735
8736 PR symtab/26046
8737 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8738 children for C++.
8739 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8740 DW_TAG_subprogram.
8741
8742 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8743
8744 * ada-lang.c (ada_language_data): Delete skip_trampoline
8745 initializer.
8746 * c-lang.c (c_language_data): Likewise.
8747 (cplus_language_data): Likewise.
8748 (cplus_language::skip_trampoline): New member function.
8749 (asm_language_data): Delete skip_trampoline initializer.
8750 (minimal_language_data): Likewise.
8751 * d-lang.c (d_language_data): Likewise.
8752 * f-lang.c (f_language_data): Likewise.
8753 * go-lang.c (go_language_data): Likewise.
8754 * language.c (unk_lang_trampoline): Delete function.
8755 (skip_language_trampoline): Update.
8756 (unknown_language_data): Delete skip_trampoline initializer.
8757 (auto_language_data): Likewise.
8758 * language.h (language_data): Delete skip_trampoline field.
8759 (language_defn::skip_trampoline): New function.
8760 * m2-lang.c (m2_language_data): Delete skip_trampoline
8761 initializer.
8762 * objc-lang.c (objc_skip_trampoline): Delete function, move
8763 implementation to objc_language::skip_trampoline.
8764 (objc_language_data): Delete skip_trampoline initializer.
8765 (objc_language::skip_trampoline): New member function with
8766 implementation from objc_skip_trampoline.
8767 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8768 initializer.
8769 * p-lang.c (pascal_language_data): Likewise.
8770 * rust-lang.c (rust_language_data): Likewise.
8771
8772 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8773
8774 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8775 (ada_language::demangle): New member function.
8776 * c-lang.c (c_language_data): Delete la_demangle initializer.
8777 (cplus_language_data): Delete la_demangle initializer.
8778 (cplus_language::demangle): New member function.
8779 (asm_language_data): Delete la_demangle initializer.
8780 (minimal_language_data): Delete la_demangle initializer.
8781 * d-lang.c (d_language_data): Delete la_demangle initializer.
8782 (d_language::demangle): New member function.
8783 * f-lang.c (f_language_data): Delete la_demangle initializer.
8784 (f_language::demangle): New member function.
8785 * go-lang.c (go_language_data): Delete la_demangle initializer.
8786 (go_language::demangle): New member function.
8787 * language.c (language_demangle): Update.
8788 (unk_lang_demangle): Delete.
8789 (unknown_language_data): Delete la_demangle initializer.
8790 (unknown_language::demangle): New member function.
8791 (auto_language_data): Delete la_demangle initializer.
8792 (auto_language::demangle): New member function.
8793 * language.h (language_data): Delete la_demangle field.
8794 (language_defn::demangle): New function.
8795 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8796 * objc-lang.c (objc_language_data): Delete la_demangle
8797 initializer.
8798 (objc_language::demangle): New member function.
8799 * opencl-lang.c (opencl_language_data): Delete la_demangle
8800 initializer.
8801 * p-lang.c (pascal_language_data): Likewise.
8802 * rust-lang.c (rust_language_data): Likewise.
8803 (rust_language::demangle): New member function.
8804
8805 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8806
8807 * ada-lang.c (ada_language_data): Delete la_print_type
8808 initializer.
8809 (ada_language::print_type): New member function.
8810 * c-lang.c (c_language_data): Delete la_print_type initializer.
8811 (c_language::print_type): New member function.
8812 (cplus_language_data): Delete la_print_type initializer.
8813 (cplus_language::print_type): New member function.
8814 (asm_language_data): Delete la_print_type initializer.
8815 (asm_language::print_type): New member function.
8816 (minimal_language_data): Delete la_print_type initializer.
8817 (minimal_language::print_type): New member function.
8818 * d-lang.c (d_language_data): Delete la_print_type initializer.
8819 (d_language::print_type): New member function.
8820 * f-lang.c (f_language_data): Delete la_print_type initializer.
8821 (f_language::print_type): New member function.
8822 * go-lang.c (go_language_data): Delete la_print_type initializer.
8823 (go_language::print_type): New member function.
8824 * language.c (unk_lang_print_type): Delete.
8825 (unknown_language_data): Delete la_print_type initializer.
8826 (unknown_language::print_type): New member function.
8827 (auto_language_data): Delete la_print_type initializer.
8828 (auto_language::print_type): New member function.
8829 * language.h (language_data): Delete la_print_type field.
8830 (language_defn::print_type): New function.
8831 (LA_PRINT_TYPE): Update.
8832 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8833 (m2_language::print_type): New member function.
8834 * objc-lang.c (objc_language_data): Delete la_print_type
8835 initializer.
8836 (objc_language::print_type): New member function.
8837 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8838 to opencl_language::print_type.
8839 (opencl_language_data): Delete la_print_type initializer.
8840 (opencl_language::print_type): New member function, implementation
8841 from opencl_print_type.
8842 * p-lang.c (pascal_language_data): Delete la_print_type
8843 initializer.
8844 (pascal_language::print_type): New member function.
8845 * rust-lang.c (rust_print_type): Delete, implementation moved to
8846 rust_language::print_type.
8847 (rust_language_data): Delete la_print_type initializer.
8848 (rust_language::print_type): New member function, implementation
8849 from rust_print_type.
8850
8851 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8852
8853 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8854 implementation moves to...
8855 (ada_language::sniff_from_mangled_name): ...here. Update return
8856 type.
8857 (ada_language_data): Delete la_sniff_from_mangled_name
8858 initializer.
8859 * c-lang.c (c_language_data): Likewise.
8860 (cplus_language_data): Likewise.
8861 (cplus_language::sniff_from_mangled_name): New member function,
8862 implementation taken from gdb_sniff_from_mangled_name.
8863 (asm_language_data): Delete la_sniff_from_mangled_name
8864 initializer.
8865 (minimal_language_data): Likewise.
8866 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8867 implementation moves to cplus_language::sniff_from_mangled_name.
8868 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8869 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8870 moves to...
8871 (d_language::sniff_from_mangled_name): ...here.
8872 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8873 * f-lang.c (f_language_data): Likewise.
8874 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8875 moves to...
8876 (go_language::sniff_from_mangled_name): ...here.
8877 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8878 * language.c (language_sniff_from_mangled_name): Delete.
8879 (unknown_language_data): Delete la_sniff_from_mangled_name
8880 initializer.
8881 (auto_language_data): Likewise.
8882 * language.h (language_data): Delete la_sniff_from_mangled_name
8883 field.
8884 (language_defn::sniff_from_mangled_name): New function.
8885 (language_sniff_from_mangled_name): Delete declaration.
8886 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8887 field.
8888 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8889 implementation moves to...
8890 (objc_language::sniff_from_mangled_name): ...here.
8891 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8892 * opencl-lang.c (opencl_language_data): Likewise.
8893 * p-lang.c (pascal_language_data): Likewise.
8894 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8895 implementation moves to...
8896 (rust_language::sniff_from_mangled_name): ...here.
8897 (rust_language_data): Delete la_sniff_from_mangled_name
8898 initializer.
8899 * symtab.c (symbol_find_demangled_name): Call
8900 sniff_from_mangled_name member function.
8901
8902 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8903
8904 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8905 initializer.
8906 * c-lang.c (c_language_data): Likewise.
8907 (cplus_language_data): Likewise.
8908 (cplus_language::search_name_hash): New member function.
8909 (asm_language_data): Delete la_search_name_hash initializer.
8910 (minimal_language_data): Likewise.
8911 * d-lang.c (d_language_data): Likewise.
8912 * dictionary.c (default_search_name_hash): Rename to...
8913 (language_defn::search_name_hash): ...this.
8914 * f-lang.c (f_language_data): Likewise.
8915 (f_language::search_name_hash): New member function.
8916 * go-lang.c (go_language_data): Delete la_search_name_hash
8917 initializer.
8918 * language.c (unknown_language_data): Likewise.
8919 (auto_language_data): Likewise.
8920 * language.h (struct language_data): Delete la_search_name_hash
8921 field.
8922 (language_defn::search_name_hash): Declare new member function.
8923 (default_search_name_hash): Delete declaration.
8924 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8925 initializer.
8926 * objc-lang.c (objc_language_data): Likewise.
8927 * opencl-lang.c (opencl_language_data): Likewise.
8928 * p-lang.c (pascal_language_data): Likewise.
8929 * rust-lang.c (rust_language_data): Likewise.
8930 * symtab.c (search_name_hash): Update call.
8931
8932 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8933
8934 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8935 initializer.
8936 * c-lang.c (class compile_instance): Declare.
8937 (c_language_data): Delete la_get_compile_instance initializer.
8938 (c_language::get_compile_instance): New member function.
8939 (cplus_language_data): Delete la_get_compile_instance initializer.
8940 (cplus_language::get_compile_instance): New member function.
8941 (asm_language_data): Delete la_get_compile_instance initializer.
8942 (minimal_language_data): Likewise.
8943 * c-lang.h (c_get_compile_context): Update comment.
8944 (cplus_get_compile_context): Update comment.
8945 * compile/compile.c (compile_to_object): Update calls, don't rely
8946 on function pointer being NULL.
8947 * d-lang.c (d_language_data): Delete la_get_compile_instance
8948 initializer.
8949 * f-lang.c (f_language_data): Likewise.
8950 * go-lang.c (go_language_data): Likewise.
8951 * language.c (unknown_language_data): Likewise.
8952 (auto_language_data): Likewise.
8953 * language.h (language_data): Delete la_get_compile_instance field.
8954 (language_defn::get_compile_instance): New member function.
8955 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8956 initializer.
8957 * objc-lang.c (objc_language_data): Likewise.
8958 * opencl-lang.c (opencl_language_data): Likewise.
8959 * p-lang.c (pascal_language_data): Likewise.
8960 * rust-lang.c (rust_language_data): Likewise.
8961
8962 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8963
8964 * ada-lang.c (ada_add_all_symbols): Update comment.
8965 (ada_iterate_over_symbols): Delete, move implementation to...
8966 (ada_language::iterate_over_symbols): ...here, a new member
8967 function, rewrite to use range based for loop.
8968 (ada_language_data): Delete la_iterate_over_symbols initializer.
8969 * c-lang.c (c_language_data): Likewise.
8970 (cplus_language_data): Likewise.
8971 (asm_language_data): Likewise.
8972 (minimal_language_data): Likewise.
8973 * d-lang.c (d_language_data): Likewise.
8974 * f-lang.c (f_language_data): Likewise.
8975 * go-lang.c (go_language_data): Likewise.
8976 * language.c (unknown_language_data): Likewise.
8977 (auto_language_data): Likewise.
8978 * language.h (language_data): Delete la_iterate_over_symbols field.
8979 (language_defn::iterate_over_symbols): New member function.
8980 (LA_ITERATE_OVER_SYMBOLS): Update.
8981 * linespec.c (iterate_over_all_matching_symtabs): Update.
8982 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8983 initializer.
8984 * objc-lang.c (objc_language_data): Likewise.
8985 * opencl-lang.c (opencl_language_data): Likewise.
8986 * p-lang.c (pascal_language_data): Likewise.
8987 * rust-lang.c (rust_language_data): Likewise.
8988
8989 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8990
8991 * ada-lang.c (ada_language_data): Delete
8992 la_lookup_transparent_type initializer.
8993 * c-lang.c (c_language_data): Likewise.
8994 (cplus_language_data): Likewise.
8995 (cplus_language::lookup_transparent_type): New member function.
8996 (asm_language_data): Delete la_lookup_transparent_type
8997 initializer.
8998 (minimal_language_data): Likewise.
8999 * d-lang.c (d_language_data): Likewise.
9000 * f-lang.c (f_language_data): Likewise.
9001 * go-lang.c (go_language_data): Likewise.
9002 * language.c (unknown_language_data): Likewise.
9003 (auto_language_data): Likewise.
9004 * language.h (struct language_data): Delete
9005 la_lookup_transparent_type field.
9006 (language_defn::lookup_transparent_type): New member function.
9007 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9008 initializer.
9009 * objc-lang.c (objc_language_data): Likewise.
9010 * opencl-lang.c (opencl_language_data): Likewise.
9011 * p-lang.c (pascal_language_data): Likewise.
9012 * rust-lang.c (rust_language_data): Likewise.
9013 * symtab.c (symbol_matches_domain): Update call.
9014
9015 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9016
9017 * ada-lang.c (ada_language_arch_info): Delete function, move
9018 implementation to...
9019 (ada_language::language_arch_info): ...here, a new member
9020 function.
9021 (ada_language_data): Delete la_language_arch_info.
9022 * c-lang.c (c_language_data): Likewise.
9023 (c_language::language_arch_info): New member function.
9024 (cplus_language_arch_info): Delete function, move
9025 implementation to...
9026 (cplus_language::language_arch_info): ...here, a new member
9027 function.
9028 (cplus_language_data): Delete la_language_arch_info.
9029 (asm_language_data): Likewise.
9030 (asm_language::language_arch_info): New member function.
9031 (minimal_language_data): Delete la_language_arch_info.
9032 (minimal_language::language_arch_info): New member function.
9033 * d-lang.c (d_language_arch_info): Delete function, move
9034 implementation to...
9035 (d_language::language_arch_info): ...here, a new member
9036 function.
9037 (d_language_data): Delete la_language_arch_info.
9038 * f-lang.c (f_language_arch_info): Delete function, move
9039 implementation to...
9040 (f_language::language_arch_info): ...here, a new member
9041 function.
9042 (f_language_data): Delete la_language_arch_info.
9043 * go-lang.c (go_language_arch_info): Delete function, move
9044 implementation to...
9045 (go_language::language_arch_info): ...here, a new member
9046 function.
9047 (go_language_data): Delete la_language_arch_info.
9048 * language.c (unknown_language_data): Likewise.
9049 (unknown_language::language_arch_info): New member function.
9050 (auto_language_data): Delete la_language_arch_info.
9051 (auto_language::language_arch_info): New member function.
9052 (language_gdbarch_post_init): Update call to
9053 la_language_arch_info.
9054 * language.h (language_data): Delete la_language_arch_info
9055 function pointer.
9056 (language_defn::language_arch_info): New function.
9057 * m2-lang.c (m2_language_arch_info): Delete function, move
9058 implementation to...
9059 (m2_language::language_arch_info): ...here, a new member
9060 function.
9061 (m2_language_data): Delete la_language_arch_info.
9062 * objc-lang.c (objc_language_arch_info): Delete function, move
9063 implementation to...
9064 (objc_language::language_arch_info): ...here, a new member
9065 function.
9066 (objc_language_data): Delete la_language_arch_info.
9067 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9068 implementation to...
9069 (opencl_language::language_arch_info): ...here, a new member
9070 function.
9071 (opencl_language_data): Delete la_language_arch_info.
9072 * p-lang.c (pascal_language_arch_info): Delete function, move
9073 implementation to...
9074 (pascal_language::language_arch_info): ...here, a new member
9075 function.
9076 (pascal_language_data): Delete la_language_arch_info.
9077 * rust-lang.c (rust_language_arch_info): Delete function, move
9078 implementation to...
9079 (rust_language::language_arch_info): ...here, a new member
9080 function.
9081 (rust_language_data): Delete la_language_arch_info.
9082
9083 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9084
9085 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9086 initializer.
9087 * c-lang.c (c_language_data): Likewise.
9088 (cplus_language_data): Likewise.
9089 (cplus_language::pass_by_reference_info): New method.
9090 (asm_language_data): Delete la_pass_by_reference initializer.
9091 (minimal_language_data): Likewise.
9092 * cp-abi.c (cp_pass_by_reference): Remove use of
9093 default_pass_by_reference.
9094 * d-lang.c (d_language_data): Likewise.
9095 * f-lang.c (f_language_data): Likewise.
9096 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9097 default_pass_by_reference.
9098 * go-lang.c (go_language_data): Likewise.
9099 * language.c (language_pass_by_reference): Update.
9100 (default_pass_by_reference): Delete.
9101 (unknown_language_data): Delete la_pass_by_reference
9102 initializer.
9103 (auto_language_data): Likewise.
9104 * language.h (struct language_data): Delete la_pass_by_reference
9105 field.
9106 (language_defn::pass_by_reference_info): New member function.
9107 (default_pass_by_reference): Delete declaration.
9108 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9109 initializer.
9110 * objc-lang.c (objc_language_data): Likewise.
9111 * opencl-lang.c (opencl_language_data): Likewise.
9112 * p-lang.c (pascal_language_data): Likewise.
9113 * rust-lang.c (rust_language_data): Likewise.
9114
9115 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9116
9117 * ada-lang.c (ada_read_var_value): Delete function, move
9118 implementation to...
9119 (ada_language::read_var_value): ...here.
9120 (ada_language_data): Delete la_read_var_value initializer.
9121 * c-lang.c (c_language_data): Likewise.
9122 (cplus_language_data): Likewise.
9123 (minimal_language_data): Likewise.
9124 * d-lang.c (d_language_data): Likewise.
9125 * f-lang.c (f_language_data): Likewise.
9126 * findvar.c (default_read_var_value): Rename to...
9127 (language_defn::read_var_value): ...this.
9128 * findvar.c (read_var_value): Update header comment, and change to
9129 call member function instead of function pointer.
9130 * go-lang.c (go_language_data): Likewise.
9131 * language.c (unknown_language_data): Delete la_read_var_value
9132 initializer.
9133 (auto_language_data): Likewise.
9134 * language.h (struct language_data): Delete la_read_var_value
9135 field.
9136 (language_defn::read_var_value): New member function.
9137 (default_read_var_value): Delete declaration.
9138 * m2-lang.c (m2_language_data): Delete la_read_var_value
9139 initializer.
9140 * objc-lang.c (objc_language_data): Likewise.
9141 * opencl-lang.c (opencl_language_data): Likewise.
9142 * p-lang.c (pascal_language_data): Likewise.
9143 * rust-lang.c (rust_language_data): Likewise.
9144 * value.h (default_read_var_value): Delete declaration.
9145
9146 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9147
9148 * ada-lang.c (ada_print_array_index): Delete function, move
9149 implementation to...
9150 (ada_language::print_array_index): ...here.
9151 (ada_language_data): Delete la_print_array_index initializer.
9152 * c-lang.c (c_language_data): Likewise.
9153 (cplus_language_data): Likewise.
9154 (minimal_language_data): Likewise.
9155 * d-lang.c (d_language_data): Likewise.
9156 * f-lang.c (f_language_data): Likewise.
9157 * go-lang.c (go_language_data): Likewise.
9158 * language.c (default_print_array_index): Delete function, move
9159 implementation to...
9160 (language_defn::print_array_index): ...here.
9161 (unknown_language_data): Delete la_print_array_index initializer.
9162 (auto_language_data): Likewise.
9163 * language.h (struct language_data): Delete la_print_array_index
9164 field.
9165 (language_defn::print_array_index): New member function.
9166 (LA_PRINT_ARRAY_INDEX): Update.
9167 (default_print_array_index): Delete declaration.
9168 * m2-lang.c (m2_language_data): Delete la_print_array_index
9169 initializer.
9170 * objc-lang.c (objc_language_data): Likewise.
9171 * opencl-lang.c (opencl_language_data): Likewise.
9172 * p-lang.c (pascal_language_data): Likewise.
9173 * rust-lang.c (rust_language_data): Likewise.
9174
9175 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9176
9177 * gdb/ada-lang.c (ada_language_defn): Convert to...
9178 (ada_language_data): ...this.
9179 (class ada_language): New class.
9180 (ada_language_defn): New static global.
9181 * gdb/c-lang.c (c_language_defn): Convert to...
9182 (c_language_data): ...this.
9183 (class c_language): New class.
9184 (c_language_defn): New static global.
9185 (cplus_language_defn): Convert to...
9186 (cplus_language_data): ...this.
9187 (class cplus_language): New class.
9188 (cplus_language_defn): New static global.
9189 (asm_language_defn): Convert to...
9190 (asm_language_data): ...this.
9191 (class asm_language): New class.
9192 (asm_language_defn): New static global.
9193 (minimal_language_defn): Convert to...
9194 (minimal_language_data): ...this.
9195 (class minimal_language): New class.
9196 (minimal_language_defn): New static global.
9197 * gdb/d-lang.c (d_language_defn): Convert to...
9198 (d_language_data): ...this.
9199 (class d_language): New class.
9200 (d_language_defn): New static global.
9201 * gdb/f-lang.c (f_language_defn): Convert to...
9202 (f_language_data): ...this.
9203 (class f_language): New class.
9204 (f_language_defn): New static global.
9205 * gdb/go-lang.c (go_language_defn): Convert to...
9206 (go_language_data): ...this.
9207 (class go_language): New class.
9208 (go_language_defn): New static global.
9209 * gdb/language.c (unknown_language_defn): Remove declaration.
9210 (current_language): Initialize to nullptr, real initialization is
9211 moved to _initialize_language.
9212 (languages): Delete global.
9213 (language_defn::languages): Define.
9214 (set_language_command): Use language_defn::languages.
9215 (set_language): Likewise.
9216 (range_error): Likewise.
9217 (language_enum): Likewise.
9218 (language_def): Likewise.
9219 (add_set_language_command): Use language_def::languages for the
9220 language list, and language_def to lookup language pointers.
9221 (skip_language_trampoline): Use language_defn::languages.
9222 (unknown_language_defn): Convert to...
9223 (unknown_language_data): ...this.
9224 (class unknown_language): New class.
9225 (unknown_language_defn): New static global.
9226 (auto_language_defn): Convert to...
9227 (auto_language_data): ...this.
9228 (class auto_language): New class.
9229 (auto_language_defn): New static global.
9230 (language_gdbarch_post_init): Use language_defn::languages.
9231 (_initialize_language): Initialize current_language.
9232 * gdb/language.h (struct language_defn): Rename to...
9233 (struct language_data): ...this.
9234 (struct language_defn): New.
9235 (auto_language_defn): Delete.
9236 (unknown_language_defn): Delete.
9237 (minimal_language_defn): Delete.
9238 (ada_language_defn): Delete.
9239 (asm_language_defn): Delete.
9240 (c_language_defn): Delete.
9241 (cplus_language_defn): Delete.
9242 (d_language_defn): Delete.
9243 (f_language_defn): Delete.
9244 (go_language_defn): Delete.
9245 (m2_language_defn): Delete.
9246 (objc_language_defn): Delete.
9247 (opencl_language_defn): Delete.
9248 (pascal_language_defn): Delete.
9249 (rust_language_defn): Delete.
9250 * gdb/m2-lang.c (m2_language_defn): Convert to...
9251 (m2_language_data): ...this.
9252 (class m2_language): New class.
9253 (m2_language_defn): New static global.
9254 * gdb/objc-lang.c (objc_language_defn): Convert to...
9255 (objc_language_data): ...this.
9256 (class objc_language): New class.
9257 (objc_language_defn): New static global.
9258 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9259 (opencl_language_data): ...this.
9260 (class opencl_language): New class.
9261 (opencl_language_defn): New static global.
9262 * gdb/p-lang.c (pascal_language_defn): Convert to...
9263 (pascal_language_data): ...this.
9264 (class pascal_language): New class.
9265 (pascal_language_defn): New static global.
9266 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9267 language pointer, update comment format.
9268 * gdb/rust-lang.c (rust_language_defn): Convert to...
9269 (rust_language_data): ...this.
9270 (class rust_language): New class.
9271 (rust_language_defn): New static global.
9272
9273 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9274
9275 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9276 member variable.
9277 <m_stmt_at_address>: New member variable.
9278 (lnp_state_machine::record_line): Don't record some lines, update
9279 tracking of is_stmt at the same address.
9280 (lnp_state_machine::lnp_state_machine): Initialise new member
9281 variables.
9282
9283 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9284
9285 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9286 "-include gnu-nat-mig.h".
9287 * gnu-nat-mig.h: New file.
9288 * gnu-nat.c: Include "gnu-nat-mig.h".
9289 (exc_server, msg_reply_server, notify_server,
9290 process_reply_server): Remove declarations.
9291
9292 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9293
9294 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9295 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9296 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9297 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9298 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9299 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9300 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9301 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9302 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9303 to gnu_nat_target class.
9304 * gnu-nat.c: Likewise.
9305 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9306 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9307 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9308 object.
9309 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9310 instead of `gnu_target'.
9311
9312 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9313
9314 * i386-gnu-tdep.c: Include "gdbcore.h"
9315 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9316 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9317 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9318 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9319 i386_gnu_sigcontext_addr): New functions
9320 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9321 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9322 tdep.
9323
9324 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9325
9326 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9327 before fork_inferior call. Avoid calling it if target_is_pushed returns
9328 true.
9329
9330 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9331
9332 * gnu-nat.h (gnu_target): New variable declaration.
9333 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9334 gnu_target.
9335 * gnu-nat.c (gnu_target): New variable.
9336 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9337 add_thread_silent, and add_thread calls.
9338 (gnu_nat_target::create_inferior): Pass gnu_target to
9339 add_thread_silent, thread_change_ptid call.
9340 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9341 call.
9342
9343 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9344
9345 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9346 (gnu_nat_target::find_memory_regions): Remove unused
9347 `old_address' variable.
9348
9349 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9350
9351 * gnu-nat.c: Include "gdbarch.h".
9352
9353 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9354
9355 * reply_mig_hack.awk (Error return): Cast function through
9356 void *, to bypass compiler function call check.
9357
9358 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9359
9360 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9361 $(srcdir)/reply_mig_hack.awk.
9362
9363 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9364
9365 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9366
9367 2020-05-30 Jonny Grant <jg@jguk.org>
9368
9369 * configure.ac (ACX_BUGURL): change bug URL to https.
9370
9371 2020-05-30 Pedro Alves <palves@redhat.com>
9372
9373 * cp-support.c (replace_typedefs_template): New.
9374 (replace_typedefs_qualified_name): Handle
9375 DEMANGLE_COMPONENT_TEMPLATE.
9376
9377 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9378
9379 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9380 dwarf2/index-cache.h, dwarf2/index-write.c,
9381 dwarf2/index-write.h, dwarf2/line-header.c,
9382 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9383 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9384 variables and fields from `dwarf2_per_objfile` to just
9385 `per_objfile` throughout.
9386
9387 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9388
9389 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9390 <push_dwarf_reg_entry_value>: Add comment.
9391
9392 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9393 Keith Seitz <keiths@redhat.com>
9394
9395 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9396 instead of PyEval_ReleaseLock.
9397 (class gdbpy_gil): Move to earlier in file.
9398 (finalize_python): Set gdb_python_initialized.
9399 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9400 when not initialized.
9401
9402 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9403
9404 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9405 <push_dwarf_reg_entry_value>: Remove assert. Override
9406 per_objfile with caller_per_objfile.
9407
9408 2020-05-28 Tom de Vries <tdevries@suse.de>
9409
9410 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9411 PR gold/15646 workaround to symbol kind "type".
9412
9413 2020-05-27 Tom Tromey <tromey@adacore.com>
9414
9415 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9416
9417 2020-05-27 Tom Tromey <tromey@adacore.com>
9418
9419 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9420 Use htab_find_with_hash.
9421 <add_abbrev>: Remove "abbrev_number" parameter.
9422 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9423 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9424 (hash_abbrev): Add comment.
9425 (abbrev_table::lookup_abbrev): Move to header file.
9426 (abbrev_table::read): Update.
9427
9428 2020-05-27 Tom Tromey <tromey@adacore.com>
9429
9430 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9431 method.
9432 <canonical_name>: New member.
9433 <raw_name>: Rename from "name".
9434 (partial_die_info): Initialize canonical_name.
9435 (scan_partial_symbols): Check raw_name.
9436 (partial_die_parent_scope, partial_die_full_name)
9437 (add_partial_symbol, add_partial_subprogram)
9438 (add_partial_enumeration, load_partial_dies): Use "name" method.
9439 (partial_die_info::name): New method.
9440 (partial_die_info::read, guess_partial_die_structure_name)
9441 (partial_die_info::fixup): Update.
9442
9443 2020-05-27 Tom Tromey <tromey@adacore.com>
9444
9445 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9446 <get_ref_die_offset>: Inline.
9447 <get_ref_die_offset_complaint>: New method.
9448 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9449 (attribute::get_ref_die_offset_complaint): Rename from
9450 get_ref_die_offset. Just issue complaint.
9451
9452 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9453
9454 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9455
9456 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9457
9458 * exec.c (exec_file_attach): Use errno value of first openp failure.
9459
9460 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9461
9462 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9463 Don't close thread handle.
9464
9465 2020-05-27 Tom Tromey <tom@tromey.com>
9466 Simon Marchi <simon.marchi@efficios.com>
9467
9468 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9469 shared_ptr.
9470 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9471 member.
9472 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9473 dwarf2_per_bfd_objfile_data_key>: New globals.
9474 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9475 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9476 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9477 shared.
9478 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9479 short-circuit when sharing.
9480 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9481 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9482
9483 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9484
9485 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9486 to...
9487 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9488 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9489
9490 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9491
9492 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9493 build_name_components, find_name_components_bounds>:
9494 Add per_objfile parameter.
9495 (struct mapped_index) <symbol_name_at>: Likewise.
9496 (struct mapped_debug_names): Remove constructor.
9497 <dwarf2_per_objfile>: Remove field.
9498 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9499 (mapped_index_base::find_name_components_bounds,
9500 mapped_index_base::build_name_components,
9501 dw2_expand_symtabs_matching_symbol): Likewise.
9502 (class mock_mapped_index) <symbol_name_at>: Likewise.
9503 (check_match): Likewise.
9504 (check_find_bounds_finds): Likewise.
9505 (test_mapped_index_find_name_component_bounds): Update.
9506 (CHECK_MATCH): Update.
9507 (dw2_expand_symtabs_matching): Update.
9508 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9509 per_objfile parameter.
9510 <find_vec_in_debug_names>: Likewise.
9511 <m_per_objfile>: New field.
9512 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9513 parameter.
9514 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9515 (dw2_debug_names_iterator::next): Update.
9516 (dw2_debug_names_lookup_symbol): Update.
9517 (dw2_debug_names_expand_symtabs_for_function): Update.
9518 (dw2_debug_names_map_matching_symbols): Update.
9519 (dw2_debug_names_expand_symtabs_matching): Update.
9520 (dwarf2_read_debug_names): Update.
9521
9522 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9523
9524 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9525 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9526 move to dwarf2_per_objfile.
9527 <read_in_chain>: Remove.
9528 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9529 remove_all_cus, age_comp_units>: New methods.
9530 <m_dwarf2_cus>: New member.
9531 (struct dwarf2_per_cu_data) <cu>: Remove.
9532 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9533 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9534 moved to methods of dwarf2_per_objfile.
9535 (dwarf2_clear_marks): Remove.
9536 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9537 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9538 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9539 (dwarf2_per_objfile::remove_all_cus): New.
9540 (class free_cached_comp_units) <~free_cached_comp_units>:
9541 Update.
9542 (load_cu): Update.
9543 (dw2_do_instantiate_symtab): Adjust.
9544 (fill_in_sig_entry_from_dwo_entry): Adjust.
9545 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9546 (cutu_reader::cutu_reader): Likewise.
9547 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9548 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9549 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9550 and dwarf2_per_objfile::age_comp_units.
9551 (load_partial_comp_unit): Update.
9552 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9553 (process_queue): Likewise.
9554 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9555 backlink.
9556 (dwarf2_read_addr_index): Likewise.
9557 (follow_die_offset): Likewise.
9558 (dwarf2_fetch_die_loc_sect_off): Likewise.
9559 (dwarf2_fetch_constant_bytes): Likewise.
9560 (dwarf2_fetch_die_type_sect_off): Likewise.
9561 (follow_die_sig_1): Likewise.
9562 (load_full_type_unit): Likewise.
9563 (read_signatured_type): Likewise.
9564 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9565 (dwarf2_cu::~dwarf2_cu): Remove.
9566 (dwarf2_per_objfile::get_cu): New.
9567 (dwarf2_per_objfile::set_cu): New.
9568 (age_cached_comp_units): Rename to...
9569 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9570 to std::unordered_map.
9571 (free_one_cached_comp_unit): Rename to...
9572 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9573 to std::unordered_map.
9574 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9575 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9576 a dwarf2_per_objfile in data.
9577 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9578 (dwarf2_clear_marks): Remove.
9579
9580 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9581
9582 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9583 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9584 (init_tu_and_read_dwo_dies): Likewise.
9585 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9586 (cutu_reader::cutu_reader): Likewise.
9587 (load_partial_comp_unit): Likewise.
9588 (process_psymtab_comp_unit): Update.
9589 (build_type_psymtabs_1): Update.
9590 (process_skeletonless_type_unit): Update.
9591 (load_full_comp_unit): Update.
9592 (find_partial_die): Update.
9593 (dwarf2_read_addr_index): Update.
9594 (read_signatured_type): Update.
9595
9596 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9597
9598 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9599 m_header_read_in>: New fields.
9600 <get_header>: New method.
9601 * dwarf2/read.c (per_cu_header_read_in): Remove.
9602 (dwarf2_per_cu_data::get_header): New.
9603 (dwarf2_per_cu_data::addr_size): Update.
9604 (dwarf2_per_cu_data::offset_size): Update.
9605 (dwarf2_per_cu_data::ref_addr_size): Update.
9606
9607 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9608
9609 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9610 (dw2_do_instantiate_symtab): Update.
9611 (queue_and_load_all_dwo_tus): Change parameter from
9612 dwarf2_per_cu_data to dwarf2_cu.
9613 (dwarf2_fetch_die_loc_sect_off): Update.
9614 (dwarf2_fetch_constant_bytes): Update.
9615 (dwarf2_fetch_die_type_sect_off): Update.
9616
9617 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9618
9619 * dwarf2/read.c (process_full_comp_unit,
9620 process_full_type_unit): Remove per_cu, per_objfile paramters.
9621 Add dwarf2_cu parameter.
9622 (process_queue): Update.
9623
9624 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9625
9626 * dwarf2/read.c (create_cu_from_index_list): Replace
9627 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9628 (create_cus_from_index_list): Likewise.
9629 (create_cus_from_index): Likewise.
9630 (create_signatured_type_table_from_index): Likewise.
9631 (create_cus_from_debug_names_list): Likewise.
9632 (create_cus_from_debug_names): Likewise.
9633 (dwarf2_read_gdb_index): Update.
9634 (dwarf2_read_debug_names): Update.
9635
9636 2020-05-27 Tom Tromey <tom@tromey.com>
9637 Simon Marchi <simon.marchi@efficios.com>
9638
9639 * dwarf2/read.h (struct dwarf2_per_objfile)
9640 <get_type_for_signatured_type, set_type_for_signatured_type>:
9641 New methods.
9642 <m_type_map>: New member.
9643 (struct signatured_type) <type>: Remove.
9644 * dwarf2/read.c
9645 (dwarf2_per_objfile::get_type_for_signatured_type,
9646 dwarf2_per_objfile::set_type_for_signatured_type): New.
9647 (get_signatured_type): Use new methods.
9648
9649 2020-05-27 Tom Tromey <tom@tromey.com>
9650 Simon Marchi <simon.marchi@efficios.com>
9651
9652 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9653 (struct dwarf2_per_objfile) <type_units>: New member.
9654 <get_type_unit_group_unshareable>: New method.
9655 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9656 num_symtabs, symtabs>: Remove; move to
9657 type_unit_group_unshareable.
9658 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9659 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9660 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9661
9662 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9663
9664 * dwarf2/read.h (struct dwarf2_per_cu_data):
9665 <dwarf2_per_objfile>: Remove.
9666 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9667 dwarf2_per_objfile.
9668 (create_signatured_type_table_from_index): Likewise.
9669 (create_signatured_type_table_from_debug_names): Likewise.
9670 (create_debug_type_hash_table): Likewise.
9671 (fill_in_sig_entry_from_dwo_entry): Likewise.
9672 (create_type_unit_group): Likewise.
9673 (read_comp_units_from_section): Likewise.
9674 (create_cus_hash_table): Likewise.
9675
9676 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9677
9678 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9679 dwarf2_per_cu_data::dwarf2_per_objfile.
9680 (compute_compunit_symtab_includes): Likewise.
9681 (dwarf2_cu::start_symtab): Likewise.
9682
9683 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9684
9685 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9686 parameter.
9687 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9688 (read_namespace_alias): Update.
9689 (lookup_die_type): Update.
9690 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9691 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9692 Update.
9693 (disassemble_dwarf_expression): Update.
9694
9695 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9696
9697 * dwarf2/read.h (struct dwarf2_queue_item): Add
9698 dwarf2_per_objfile parameter, assign new parameter.
9699 <per_objfile>: New field.
9700 * dwarf2/read.c (free_one_cached_comp_unit): Add
9701 dwarf2_per_objfile parameter.
9702 (queue_comp_unit): Likewise.
9703 (dw2_do_instantiate_symtab): Update.
9704 (process_psymtab_comp_unit): Update.
9705 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9706 (process_imported_unit_die): Update.
9707 (queue_and_load_dwo_tu): Update.
9708 (follow_die_offset): Update.
9709 (follow_die_sig_1): Update.
9710
9711 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9712
9713 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9714 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9715 (read_call_site_scope): Assign per_objfile.
9716 (dwarf2_per_cu_data::objfile): Remove.
9717 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9718 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9719 dwarf2_per_objfile parameter.
9720 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9721 dwarf2_per_objfile parameter.
9722 (dwarf_expr_reg_to_entry_parameter): Add output
9723 dwarf2_per_objfile parameter.
9724 (locexpr_get_frame_base): Update.
9725 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9726 <push_dwarf_reg_entry_value>: Update.
9727 <call_site_to_target_addr>: Update.
9728 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9729 parameter.
9730 (value_of_dwarf_reg_entry): Update.
9731 (rw_pieced_value): Update.
9732 (indirect_synthetic_pointer): Update.
9733 (dwarf2_evaluate_property): Update.
9734 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9735 parameter.
9736 (locexpr_read_variable): Update.
9737 (locexpr_get_symbol_read_needs): Update.
9738 (loclist_read_variable): Update.
9739
9740 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9741
9742 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9743 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9744 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9745 parameter.
9746 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9747 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9748 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9749 parameter.
9750 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9751 sect_variable_value): Add dwarf2_per_objfile parameter.
9752 (class dwarf_evaluate_loc_desc) <dwarf_call,
9753 dwarf_variable_value>: Update.
9754 (fetch_const_value_from_synthetic_pointer): Add
9755 dwarf2_per_objfile parameter.
9756 (fetch_const_value_from_synthetic_pointer): Update.
9757 (coerced_pieced_ref): Update.
9758 (class symbol_needs_eval_context) <dwarf_call,
9759 dwarf_variable_value>: Update.
9760 (dwarf2_compile_expr_to_ax): Update.
9761
9762 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9763
9764 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9765 parameter.
9766 (dwarf2_evaluate_loc_desc_full): Update.
9767
9768 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9769
9770 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9771 parameter.
9772 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9773 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9774 dwarf2_per_objfile parameter.
9775 (decode_debug_loc_dwo_addresses): Likewise.
9776 (dwarf2_find_location_expression): Update.
9777 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9778 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9779 parameter.
9780 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9781 parameter.
9782 (locexpr_describe_location_1): Likewise.
9783 (locexpr_describe_location): Update.
9784
9785 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9786
9787 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9788 Remove.
9789 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9790 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9791 (dwarf2_compile_property_to_c): Update.
9792 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9793 use text offset from objfile.
9794 (locexpr_tracepoint_var_ref): Update.
9795 (locexpr_generate_c_location): Update.
9796 (loclist_describe_location): Update.
9797 (loclist_tracepoint_var_ref): Update.
9798 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9799 dwarf2_per_objfile parameter.
9800 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9801 use text offset from objfile.
9802 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9803
9804 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9805
9806 * dwarf2/expr.h (struct dwarf_expr_context)
9807 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9808 <offset>: Remove.
9809 <per_objfile>: New member.
9810 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9811 dwarf2_per_objfile parameter. Don't set offset, set
9812 per_objfile.
9813 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9814 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9815 a dwarf2_per_objfile object instead of an offset.
9816 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9817 constructor.
9818 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9819 to dwarf2_expr_executor constructor. Don't set offset.
9820 (dwarf2_fetch_cfa_info): Update.
9821 (struct dwarf2_frame_cache) <text_offset>: Remove.
9822 <per_objfile>: New field.
9823 (dwarf2_frame_cache): Update.
9824 (dwarf2_frame_prev_register): Update.
9825 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9826 <dwarf_evaluate_loc_desc>: Add constructor.
9827 (dwarf2_evaluate_loc_desc_full): Update.
9828 (dwarf2_locexpr_baton_eval): Update.
9829 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9830 Add constructor.
9831 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9832
9833 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9834
9835 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9836 addr_sized_int_type>: Move to dwarf2_cu.
9837 <int_type>: Move to dwarf2_per_objfile.
9838 (struct dwarf2_per_objfile) <int_type>: Move here.
9839 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9840 addr_sized_int_type>: Move here.
9841 (read_func_scope): Update.
9842 (read_array_type): Update.
9843 (read_tag_string_type): Update.
9844 (attr_to_dynamic_prop): Update.
9845 (dwarf2_per_cu_data::int_type): Rename to...
9846 (dwarf2_per_objfile::int_type): ... this.
9847 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9848 (dwarf2_cu::addr_sized_int_type): ... this.
9849 (read_subrange_type): Update.
9850 (dwarf2_per_cu_data::addr_type): Rename to...
9851 (dwarf2_cu::addr_type): ... this.
9852 (set_die_type): Update.
9853
9854 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9855
9856 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9857 data through per_cu->cu.
9858
9859 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9860
9861 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9862 dwarf2_per_cu_data parameter fo dwarf2_cu.
9863 (lookup_dwo_type_unit): Likewise.
9864 (read_cutu_die_from_dwo): Likewise.
9865 (lookup_dwo_unit): Likewise.
9866 (open_and_init_dwo_file): Likewise.
9867 (lookup_dwo_cutu): Likewise.
9868 (lookup_dwo_comp_unit): Likewise.
9869 (lookup_dwo_type_unit): Likewise.
9870 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9871 (cutu_reader::cutu_reader): Update.
9872
9873 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9874
9875 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9876 parameter.
9877 (process_full_type_unit): Likewise.
9878 (process_queue): Update.
9879
9880 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9881
9882 * dwarf2/read.c (recursively_compute_inclusions): Add
9883 dwarf2_per_objfile parameter.
9884 (compute_compunit_symtab_includes): Likewise.
9885 (process_cu_includes): Update.
9886
9887 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9890 parameter.
9891 (create_type_unit_group): Update.
9892 (process_psymtab_comp_unit_reader): Update.
9893 (build_type_psymtabs_reader): Update.
9894
9895 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9896
9897 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9898 object through m_this_cu->cu.
9899
9900 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9901
9902 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9903 the info parameter.
9904 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9905
9906 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9907
9908 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9909 per_objfile parameter.
9910 (load_full_type_unit): Add per_objfile parameter.
9911 (read_signatured_type): Likewise.
9912 (load_full_comp_unit): Likewise.
9913 (load_cu): Likewise.
9914 (dw2_do_instantiate_symtab): Likewise.
9915 (dw2_get_file_names): Likewise.
9916 (dw2_map_symtabs_matching_filename): Update.
9917 (dw_expand_symtabs_matching_file_matcher): Update.
9918 (dw2_map_symbol_filenames): Update.
9919 (process_psymtab_comp_unit): Add per_objfile parameter.
9920 (build_type_psymtabs_1): Update.
9921 (process_skeletonless_type_unit): Update.
9922 (dwarf2_build_psymtabs_hard): Update.
9923 (load_partial_comp_unit): Add per_objfile parameter.
9924 (scan_partial_symbols): Update.
9925 (load_full_comp_unit): Add per_objfile parameter.
9926 (process_imported_unit_die): Update.
9927 (create_cus_hash_table): Update.
9928 (find_partial_die): Update.
9929 (dwarf2_read_addr_index): Update.
9930 (follow_die_offset): Update.
9931 (dwarf2_fetch_die_loc_sect_off): Update.
9932 (dwarf2_fetch_constant_bytes): Update.
9933 (dwarf2_fetch_die_type_sect_off): Update.
9934 (follow_die_sig_1): Update.
9935 (load_full_type_unit): Add per_objfile parameter.
9936 (read_signatured_type): Likewise.
9937
9938 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9939
9940 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9941 of objfile_name.
9942
9943 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9944
9945 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9946 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9947 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9948 field.
9949 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9950 (create_cus_from_index): Update.
9951 (dwarf2_read_gdb_index): Update.
9952 (create_cus_from_debug_names): Update.
9953 (dwarf2_read_debug_names): Update.
9954 (get_abbrev_section_for_cu): Update.
9955 (create_all_comp_units): Update.
9956 (read_attribute_value): Update.
9957 (get_debug_line_section): Update.
9958 * dwarf2/index-cache.c (index_cache::store): Update.
9959 * dwarf2/index-write.c (save_gdb_index_command): Update.
9960 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9961
9962 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9963
9964 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9965 member.
9966 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9967 dwarf2_per_cu_data::per_bfd.
9968 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9969 (create_type_unit_group): Likewise.
9970 (queue_comp_unit): Remove reference to
9971 per_cu->dwarf2_per_objfile.
9972 (maybe_queue_comp_unit): Likewise.
9973 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9974 (create_cus_hash_table): Assign new field.
9975
9976 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9977
9978 * dwarf2/read.c: Replace
9979 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9980 dwarf2_cu->per_objfile throughout.
9981
9982 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9983
9984 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9985 parameter, don't use per_cu->dwarf2_per_objfile.
9986 (dw2_instantiate_symtab): Likewise.
9987 (dw2_find_last_source_symtab): Update.
9988 (dw2_map_expand_apply): Update.
9989 (dw2_lookup_symbol): Update.
9990 (dw2_expand_symtabs_for_function): Update.
9991 (dw2_expand_all_symtabs): Update.
9992 (dw2_expand_symtabs_with_fullname): Update.
9993 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9994 don't use per_cu->dwarf2_per_objfile.
9995 (dw2_expand_marked_cus): Update.
9996 (dw2_find_pc_sect_compunit_symtab): Update.
9997 (dw2_debug_names_lookup_symbol): Update.
9998 (dw2_debug_names_expand_symtabs_for_function): Update.
9999 (dw2_debug_names_map_matching_symbols): Update.
10000 (dwarf2_psymtab::expand_psymtab): Update.
10001
10002 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10003
10004 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10005 <per_objfile>: New member.
10006 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10007 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10008 call to dwarf2_cu.
10009 (cutu_reader::cutu_reader): Update.
10010 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10011
10012 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10013
10014 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10015 struct dwarf2_per_objfile.
10016 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10017 dwarf2_per_bfd.
10018 * dwarf2/read.c (set_die_type): Update.
10019 (get_die_type_at_offset): Update.
10020
10021 2020-05-27 Tom Tromey <tom@tromey.com>
10022 Simon Marchi <simon.marchi@efficios.com>
10023
10024 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10025 method.
10026 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10027 get_symtab, set_symtab>: New methods.
10028 <m_symtabs>: New field.
10029 (struct dwarf2_psymtab): Derive from partial_symtab.
10030 <readin_p, get_compunit_symtab>: Declare methods.
10031 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10032 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10033 New methods.
10034 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10035 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10036 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10037 (dw2_symtab_iter_next, dw2_print_stats)
10038 (dw2_expand_symtabs_with_fullname)
10039 (dw2_expand_symtabs_matching_one)
10040 (dw_expand_symtabs_matching_file_matcher)
10041 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10042 (dw2_debug_names_iterator::next)
10043 (dw2_debug_names_map_matching_symbols)
10044 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10045 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10046 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10047 New methods.
10048 (get_compunit_symtab, process_full_comp_unit)
10049 (process_full_type_unit): Update.
10050 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10051
10052 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10053
10054 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10055 then introduce a new dwarf2_per_objfile type.
10056 <read_line_string>: Move to the new dwarf2_per_objfile type.
10057 <objfile>: Likewise.
10058 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10059 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10060 dwarf2_per_objfile->per_bfd.
10061 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10062 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10063 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10064 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10065 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10066 (dwarf2_per_objfile::locate_sections): Rename to...
10067 (dwarf2_per_bfd::locate_sections): ... this.
10068 (dwarf2_per_objfile::get_cutu): Rename to...
10069 (dwarf2_per_bfd::get_cutu): ... this.
10070 (dwarf2_per_objfile::get_cu): Rename to...
10071 (dwarf2_per_bfd::get_cu): ... this.
10072 (dwarf2_per_objfile::get_tu): Rename to...
10073 (dwarf2_per_bfd::get_tu): ... this.
10074 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10075 (dwarf2_per_bfd::allocate_per_cu): ... this.
10076 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10077 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10078 (get_gdb_index_contents_ftype): Change parameter from
10079 dwarf2_per_objfile to dwarf2_per_bfd.
10080 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10081 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10082
10083 2020-05-27 Tom Tromey <tom@tromey.com>
10084 Simon Marchi <simon.marchi@efficios.com>
10085
10086 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10087 (allocate_piece_closure): Set "per_objfile" member.
10088 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10089 (locexpr_describe_location, loclist_describe_location): Use new
10090 member.
10091 * dwarf2/read.c (read_call_site_scope)
10092 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10093 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10094 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10095 handle_data_member_location): Set per_objfile member.
10096 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10097 member.
10098 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10099
10100 2020-05-27 Tom Tromey <tom@tromey.com>
10101
10102 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10103 allocate_signatured_type>: Declare new methods.
10104 <m_num_psymtabs>: New member.
10105 (struct dwarf2_per_cu_data) <index>: New member.
10106 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10107 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10108 (create_cu_from_index_list): Use allocate_per_cu.
10109 (create_signatured_type_table_from_index)
10110 (create_signatured_type_table_from_debug_names)
10111 (create_debug_type_hash_table, add_type_unit)
10112 (read_comp_units_from_section): Use allocate_signatured_type.
10113
10114 2020-05-27 Tom Tromey <tom@tromey.com>
10115
10116 * psymtab.c (partial_map_expand_apply)
10117 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10118 (psym_lookup_global_symbol_language)
10119 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10120 (psym_print_stats, psym_expand_symtabs_for_function)
10121 (psym_map_symbol_filenames, psym_map_matching_symbols)
10122 (psym_expand_symtabs_matching)
10123 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10124 (maintenance_check_psymtabs): Update.
10125 * psympriv.h (struct partial_symtab) <readin_p,
10126 get_compunit_symtab>: Add objfile parameter.
10127 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10128 Likewise.
10129 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10130 get_compunit_symtab>: Likewise.
10131 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10132
10133 2020-05-27 Tom Tromey <tom@tromey.com>
10134
10135 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10136 member.
10137 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10138 (create_cu_from_index_list)
10139 (create_signatured_type_table_from_index)
10140 (create_signatured_type_table_from_debug_names)
10141 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10142 (dwarf2_create_include_psymtab)
10143 (create_debug_type_hash_table, add_type_unit)
10144 (create_type_unit_group, read_comp_units_from_section)
10145 (dwarf2_compute_name, create_cus_hash_table)
10146 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10147 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10148 obstack.
10149 (dw2_get_real_path): Likewise. Change argument to
10150 dwarf2_per_objfile.
10151
10152 2020-05-27 Luis Machado <luis.machado@linaro.org>
10153
10154 PR tdep/26000
10155 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10156 for ldrd (immediate).
10157
10158 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10159
10160 * command.h: Add comment giving the name of class_tui.
10161 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10162 create the fake command for the help for class_tui.
10163
10164 2020-05-26 Tom Tromey <tromey@adacore.com>
10165
10166 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10167 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10168 (val_atr): New function.
10169 (value_val_atr): Use it.
10170 * ada-valprint.c (print_optional_low_bound): Change low bound
10171 handling for enums.
10172 (val_print_packed_array_elements): Don't call discrete_position.
10173 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10174 discrete_position for enum types.
10175 * language.c (default_print_array_index): Change type.
10176 * language.h (struct language_defn) <la_print_array_index>: Add
10177 index_type parameter, change type of index_value.
10178 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10179 (default_print_array_index): Update.
10180 * valprint.c (maybe_print_array_index): Don't call
10181 value_from_longest. Update.
10182 (value_print_array_elements): Don't call discrete_position.
10183
10184 2020-05-26 Tom Tromey <tromey@adacore.com>
10185
10186 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10187 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10188
10189 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10190
10191 PR gdb/13519
10192 * avr-tdep.c (avr_integer_to_address): Return data or code
10193 address accordingly to the second 'type' argument of the
10194 function.
10195
10196 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10197
10198 * infcmd.c, inferior.h: (construct_inferior_arguments):
10199 Moved function from here to gdbsupport/common-inferior.{h,cc}
10200
10201 2020-05-23 Tom Tromey <tom@tromey.com>
10202
10203 Revert commit eca1f90c:
10204 * NEWS: Remove entry for completion styling.
10205 * completer.c (_rl_completion_prefix_display_length): Move
10206 declaration later.
10207 (gdb_fnprint): Revert.
10208 (gdb_display_match_list_1): Likewise.
10209 * cli/cli-style.c (completion_prefix_style)
10210 (completion_difference_style, completion_suffix_style): Remove.
10211 (_initialize_cli_style): Revert.
10212 * cli/cli-style.h (completion_prefix_style)
10213 (completion_difference_style, completion_suffix_style): Don't
10214 declare.
10215
10216 2020-05-24 Pedro Alves <palves@redhat.com>
10217
10218 * symtab.c (completion_list_add_name): Return boolean indication
10219 of whether the symbol matched.
10220 (completion_list_add_symbol): Don't try to remove C++ aliases if
10221 the symbol didn't match in the first place.
10222 * symtab.h (completion_list_add_name): Return bool.
10223
10224 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10225
10226 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10227 type::field.
10228
10229 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10230
10231 GDB 9.2 released.
10232
10233 2020-05-23 Tom Tromey <tom@tromey.com>
10234
10235 * NEWS: Add entry for completion styling.
10236 * completer.c (_rl_completion_prefix_display_length): Move
10237 declaration earlier.
10238 (gdb_fnprint): Use completion_style.
10239 (gdb_display_match_list_1): Likewise.
10240 * cli/cli-style.c (completion_prefix_style)
10241 (completion_difference_style, completion_suffix_style): New
10242 globals.
10243 (_initialize_cli_style): Register new globals.
10244 * cli/cli-style.h (completion_prefix_style)
10245 (completion_difference_style, completion_suffix_style): Declare.
10246
10247 2020-05-23 Pedro Alves <palves@redhat.com>
10248
10249 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10250 (parse_escape): Use ISDIGIT instead of isdigit.
10251 (puts_debug): Use gdb_isprint instead of isprint.
10252 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10253 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10254 ISSPACE instead of isspace.
10255 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10256 instead of isspace.
10257 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10258 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10259 instead of isxdigit and ISDIGIT instead of isdigit.
10260
10261 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10262
10263 * gdbtypes.h (struct type) <field>: New method.
10264 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10265 or type::field.
10266
10267 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10268
10269 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10270 (TYPE_FIELDS): Use type::fields. Change all call sites that
10271 modify the propery to use type::set_fields instead.
10272
10273 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10274
10275 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10276 type::num_fields instead.
10277
10278 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10279
10280 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10281 methods.
10282 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10283 that modify the number of fields to use type::set_num_fields
10284 instead.
10285
10286 2020-05-22 Tom Tromey <tromey@adacore.com>
10287
10288 * compile/compile-object-load.h (munmap_list_free): Don't
10289 declare.
10290
10291 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10292
10293 * annotate.c (annotate_source_line): Update return type, add call
10294 to update current symtab and line.
10295 * annotate.h (annotate_source_line): Update return type, and
10296 extend header comment.
10297 * source.c (info_line_command): Check annotation_level before
10298 calling annotate_source_line.
10299 * stack.c (print_frame_info): If calling annotate_source_line
10300 returns true, then don't print any other source line information.
10301
10302 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10303
10304 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10305
10306 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10307
10308 * coffread.c (patch_type): Remove NULL check before xfree.
10309 * corefile.c (set_gnutarget): Likewise.
10310 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10311 * exec.c (build_section_table): Likewise.
10312 * remote.c (remote_target::pass_signals): Likewise.
10313 * utils.c (n_spaces): Likewise.
10314 * cli/cli-script.c (document_command): Likewise.
10315 * i386-windows-tdep.c (core_process_module_section): Likewise.
10316 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10317
10318 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10319
10320 * symfile.c (reread_symbols): Clear objfile's section_offsets
10321 vector and section indices, re-compute them by calling
10322 sym_offsets.
10323
10324 2020-05-20 Tom Tromey <tromey@adacore.com>
10325
10326 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10327 (desc_one_bound, desc_index_type): Compute field name.
10328
10329 2020-05-20 Tom de Vries <tdevries@suse.de>
10330
10331 PR symtab/25833
10332 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10333
10334 2020-05-20 Alan Modra <amodra@gmail.com>
10335
10336 PR 25993
10337 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10338 bfd_set_filename.
10339 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10340 passed to bfd_set_filename.
10341 * symfile-mem.c (add_vsyscall_page): Likewise for string
10342 passed to symbol_file_add_from_memory.
10343 (symbol_file_add_from_memory): Make name param a const char* and
10344 don't strdup.
10345
10346 2020-05-20 Alan Modra <amodra@gmail.com>
10347
10348 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10349 rather than accessing bfd->filename directly.
10350 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10351 and use bfd_section_name.
10352 * dwarf2/frame.c (decode_frame_entry): Likewise.
10353 * exec.c (exec_set_section_address): Likewise.
10354 * solib-aix.c (solib_aix_bfd_open): Likewise.
10355 * stap-probe.c (get_stap_base_address): Likewise.
10356 * symfile.c (reread_symbols): Likewise.
10357
10358 2020-05-19 Tom Tromey <tromey@adacore.com>
10359
10360 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10361
10362 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10363
10364 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10365
10366 2020-05-19 Pedro Alves <palves@redhat.com>
10367
10368 * NEWS (set exec-file-mismatch): Adjust entry.
10369 * exec.c: Include "build-id.h".
10370 (validate_exec_file): Try to match build IDs instead of filenames.
10371 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10372 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10373 and pass down 'warn_if_slow'.
10374 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10375 gdb_bfd_open_closure to pass it down.
10376 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10377
10378 2020-05-19 Pedro Alves <palves@redhat.com>
10379
10380 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10381 * target.c (target_fileio_open_1): Rename to target_fileio_open
10382 and make extern. Use bool.
10383 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10384 (target_fileio_read_alloc_1): Adjust.
10385 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10386 (target_fileio_open_warn_if_slow): Delete declaration.
10387
10388 2020-05-19 Pedro Alves <palves@redhat.com>
10389
10390 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10391 Adjust all callers.
10392
10393 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10394
10395 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10396 whether disp is negative.
10397
10398 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10399
10400 * symfile.h (struct symfile_segment_data)
10401 <~symfile_segment_data>: Remove.
10402 <segment_info>: Change to std::vector.
10403 * symfile.c (default_symfile_segments): Update.
10404 * elfread.c (elf_symfile_segments): Update.
10405
10406 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10407
10408 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10409 <segments>: New.
10410 <segment_bases, segment_sizes>: Remove.
10411 * symfile.c (default_symfile_segments): Update.
10412 * elfread.c (elf_symfile_segments): Update.
10413 * remote.c (remote_target::get_offsets): Update.
10414 * solib-target.c (solib_target_relocate_section_addresses):
10415 Update.
10416
10417 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10418
10419 * symfile.h (struct symfile_segment_data): Initialize fields.
10420 <~symfile_segment_data>: Add.
10421 (symfile_segment_data_up): New.
10422 (struct sym_fns) <sym_segments>: Return a
10423 symfile_segment_data_up.
10424 (default_symfile_segments): Return a symfile_segment_data_up.
10425 (free_symfile_segment_data): Remove.
10426 (get_symfile_segment_data): Return a symfile_segment_data_up.
10427 * symfile.c (default_symfile_segments): Likewise.
10428 (get_symfile_segment_data): Likewise.
10429 (free_symfile_segment_data): Remove.
10430 (symfile_find_segment_sections): Update.
10431 * elfread.c (elf_symfile_segments): Return a
10432 symfile_segment_data_up.
10433 * remote.c (remote_target::get_offsets): Update.
10434 * solib-target.c (solib_target_relocate_section_addresses):
10435 Update.
10436 * symfile-debug.c (debug_sym_segments): Return a
10437 symfile_segment_data_up.
10438
10439 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10440
10441 PR build/25981
10442 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10443 Hardcode register numbers.
10444
10445 PR build/25981
10446 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10447 procfs_find_LDT_entry): Remove.
10448 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10449 procfs_find_LDT_entry): Remove.
10450 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10451 Remove.
10452
10453 2020-05-17 Pedro Alves <palves@redhat.com>
10454 Andrew Burgess <andrew.burgess@embecosm.com>
10455 Keno Fischer <keno@juliacomputing.com>
10456
10457 PR gdb/25741
10458 * breakpoint.c (build_target_condition_list): Update comments.
10459 (build_target_command_list): Update comments and skip matching
10460 locations.
10461 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10462 a separate function. Simplify "set breakpoint auto-hw off"
10463 handling.
10464 (insert_breakpoints): Update comment.
10465 (tracepoint_locations_match): New parameter. For breakpoints,
10466 compare location types too, if the caller wants to.
10467 (handle_automatic_hardware_breakpoints): New functions.
10468 (bp_location_is_less_than): Also sort by location type and
10469 hardware breakpoint length.
10470 (update_global_location_list): Handle "set breakpoint auto-hw on"
10471 here.
10472 (update_breakpoint_locations): Ask breakpoint_locations_match to
10473 ignore location types.
10474
10475 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10476
10477 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10478 type::name instead.
10479
10480 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10481
10482 * gdbtypes.h (struct type) <name, set_name>: New methods.
10483 (TYPE_CODE): Use type::name. Change all call sites used to set
10484 the name to use type::set_name instead.
10485
10486 2020-05-16 Tom Tromey <tom@tromey.com>
10487
10488 * top.c (quit_force): Update.
10489 * infrun.c (handle_no_resumed): Update.
10490 * top.h (all_uis): New function.
10491 (ALL_UIS): Remove.
10492
10493 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10494
10495 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10496
10497 2020-05-16 Pedro Alves <palves@redhat.com>
10498
10499 * ia64-linux-nat.c
10500 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10501 Declare method.
10502 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10503
10504 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10505
10506 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10507 (sparc64_adi_info): Likewise.
10508
10509 2020-05-15 Tom Tromey <tom@tromey.com>
10510
10511 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10512 block_objfile.
10513 (lookup_objfile_from_block): Remove.
10514 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10515 (lookup_global_symbol): Use block_objfile.
10516 * symtab.h (lookup_objfile_from_block): Don't declare.
10517 * printcmd.c (clear_dangling_display_expressions): Use
10518 block_objfile.
10519 * parse.c (operator_check_standard): Use block_objfile.
10520
10521 2020-05-15 Tom Tromey <tom@tromey.com>
10522
10523 * language.c (language_alloc_type_symbol): Set
10524 SYMBOL_SECTION.
10525 * symtab.c (initialize_objfile_symbol): Remove.
10526 (allocate_symbol): Remove.
10527 (allocate_template_symbol): Remove.
10528 * dwarf2/read.c (fixup_go_packaging): Use "new".
10529 (new_symbol): Use "new".
10530 (read_variable): Don't call initialize_objfile_symbol. Use
10531 "new".
10532 (read_func_scope): Use "new".
10533 * xcoffread.c (process_xcoff_symbol): Don't call
10534 initialize_objfile_symbol.
10535 (SYMBOL_DUP): Remove.
10536 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10537 "new".
10538 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10539 (allocate_template_symbol): Don't declare.
10540 (struct symbol): Add copy constructor. Change defaults.
10541 * jit.c (finalize_symtab): Use "new".
10542 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10543 Use "new".
10544 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10545 (common_block_end): Use "new".
10546 * mdebugread.c (parse_symbol): Use "new".
10547 (new_symbol): Likewise.
10548
10549 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10550
10551 * NEWS: Mention changes to help and apropos.
10552
10553 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10554
10555 * command.h (enum command_class): Improve comments, document
10556 that class_alias is for user-defined aliases, give the class
10557 name for each class, remove unused class_xdb.
10558 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10559 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10560 by a precise class.
10561 * infcmd.c (_initialize_infcmd): Likewise.
10562 * reverse.c (_initialize_reverse): Likewise.
10563 * stack.c (_initialize_stack): Likewise.
10564 * symfile.c (_initialize_symfile): Likewise.
10565 * tracepoint.c (_initialize_tracepoint): Likewise.
10566
10567 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10568
10569 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10570 when their aliased command is traversed.
10571 (help_cmd): Add fput_command_names_styled call to
10572 output command name and aliases when command has an alias.
10573
10574 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10575
10576 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10577 * cli/cli-decode.c (help_cmd_list): Declare as static,
10578 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10579 a command together with the command.
10580 (fput_command_name_styled, fput_command_names_styled): New functions.
10581 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10582 fput_command_name_styled.
10583 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10584 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10585
10586 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10587
10588 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10589 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10590 * command.h (cmd_show_list): Likewise.
10591 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10592 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10593
10594 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10595
10596 * unittests/command-def-selftests.c (traverse_command_structure):
10597 Verify all commands of a list have the same prefix command and
10598 that only the top cmdlist commands have a null prefix.
10599
10600 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10601
10602 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10603 as prefix, not one of its aliases.
10604 (set_cmd_prefix): Remove.
10605 (do_add_cmd): Centralize the setting of the prefix of a command, when
10606 command is defined after its full chain of prefix commands.
10607 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10608 (add_setshow_cmd_full): Likewise.
10609 (update_prefix_field_of_prefixed_commands): New function.
10610 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10611 update_prefix_field_of_prefixed_commands.
10612 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10613 addresses of remote_set_cmdlist and remote_show_cmdlist given
10614 as argument, not the address of an argument.
10615 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10616 * gdb/remote.c (_initialize_remote): Likewise.
10617
10618 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10619
10620 * cli/cli-cmds.c (alias_command): Check for an existing alias
10621 using lookup_cmd_composition, as valid_command_p is too strict
10622 and forbids aliases that are the prefix of an existing alias
10623 or command.
10624 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10625 command is properly recognised as a valid command.
10626
10627 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10628
10629 * unittests/help-doc-selftests.c: Rename to
10630 unittests/command-def-selftests.c
10631 * unittests/command-def-selftests.c (help_doc_tests): Update some
10632 comments.
10633 (command_structure_tests, traverse_command_structure): New namespace
10634 and function.
10635 (command_structure_invariants_tests): New function.
10636 (_initialize_command_def_selftests) Renamed from
10637 _initialize_help_doc_selftests, register command_structure_invariants
10638 selftest.
10639
10640 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10641
10642 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10643 an alias of 'show'.
10644
10645 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10646
10647 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10648 ada_is_fixed_point_type. Update all callers.
10649 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10650 all callers.
10651 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10652 Update all callers.
10653 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10654 print_fixed_point_type. Update all callers.
10655 * ada-valprint.c (ada_value_print_num): Replace call to
10656 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10657
10658 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10659
10660 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10661 processors.
10662 (cpu_supports_bts): Add CV_AMD case.
10663
10664 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10665 Simon Marchi <simon.marchi@efficios.com>
10666
10667 * infrun.c (stop_all_threads): Collect multiple wait events at
10668 each pass.
10669
10670 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10671
10672 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10673 type::code instead.
10674
10675 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10676
10677 * gdbtypes.h (struct type) <code, set_code>: New methods.
10678 (TYPE_CODE): Use type::code. Change all call sites used to set
10679 the code to use type::set_code instead.
10680
10681 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10682 Tom de Vries <tdevries@suse.de>
10683 Pedro Alves <palves@redhat.com>
10684
10685 PR threads/25478
10686 * infrun.c (stop_all_threads): Do NOT ignore
10687 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10688 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10689 received.
10690 (handle_no_resumed): Remove code handling a live inferior with no
10691 threads.
10692 * remote.c (has_single_non_exited_thread): New.
10693 (remote_target::update_thread_list): Do not delete a thread if is
10694 the last thread of the process.
10695 * thread.c (thread_select): Call delete_exited_threads instead of
10696 prune_threads.
10697
10698 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10699
10700 * infrun.c (stop_all_threads): Enable/disable thread events of all
10701 targets. Move a debug message denoting the end of the function
10702 into the SCOPED_EXIT block.
10703
10704 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10705
10706 * process-stratum-target.h: Include <set>.
10707 (all_non_exited_process_targets, switch_to_target_no_thread): New
10708 function declarations.
10709 * process-stratum-target.c (all_non_exited_process_targets)
10710 (switch_to_target_no_thread): New function implementations.
10711
10712 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10713
10714 * infrun.c (handle_inferior_event): Extract out a piece of code
10715 into...
10716 (mark_non_executing_threads): ...this new function.
10717
10718 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10719
10720 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10721 use.
10722
10723 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10724
10725 * regcache.c (regcache_read_pc_protected): New function
10726 implementation that returns 0 if the PC cannot read via
10727 'regcache_read_pc'.
10728 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10729 instead of 'regcache_read_pc'.
10730 (keep_going_pass_signal): Ditto.
10731
10732 2020-05-13 Tom Tromey <tromey@adacore.com>
10733
10734 * ada-lang.c (align_value): Remove.
10735 (ada_template_to_fixed_record_type_1): Use align_up.
10736
10737 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10738
10739 * async-event.c: Update the copyright year.
10740 * async-event.h: Update the copyright year.
10741
10742 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10743
10744 * objfiles.h (is_addr_in_objfile,
10745 shared_objfile_contains_address_p): Return bool.
10746 * objfile.c (is_addr_in_objfile,
10747 shared_objfile_contains_address_p): Return bool.
10748
10749 2020-05-11 Tom Tromey <tromey@adacore.com>
10750
10751 * cli/cli-cmds.c (info_command): Restore.
10752 (_initialize_cli_cmds): Use add_prefix_command for "info".
10753 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10754
10755 2020-05-11 Tom Tromey <tromey@adacore.com>
10756
10757 * ada-lang.c (ada_value_primitive_field): Now public.
10758 * ada-lang.h (ada_value_primitive_field): Declare.
10759 * ada-valprint.c (print_field_values): Use
10760 ada_value_primitive_field for wrapper fields.
10761
10762 2020-05-11 Tom de Vries <tdevries@suse.de>
10763
10764 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10765 MODULE_DOMAIN.
10766
10767 2020-05-11 Tom de Vries <tdevries@suse.de>
10768
10769 PR symtab/25941
10770 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10771 with length 0, if not gdb-produced.
10772 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10773
10774 2020-05-09 Tom de Vries <tdevries@suse.de>
10775
10776 PR gdb/25955
10777 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10778 calculation.
10779
10780 2020-05-09 Tom Tromey <tom@tromey.com>
10781
10782 * top.c (server_command): Now bool.
10783 * top.h (server_command): Now bool.
10784
10785 2020-05-08 Tom Tromey <tromey@adacore.com>
10786
10787 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10788 already being processed.
10789
10790 2020-05-08 Tom Tromey <tom@tromey.com>
10791
10792 * printcmd.c (struct display) <next>: Remove.
10793 <display>: New constructor.
10794 <exp_string>: Now a std::string.
10795 <enabled_p>: Now a bool.
10796 (display_number): Move definition earlier.
10797 (displays): Rename from display_chain. Now a std::vector.
10798 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10799 (display_command): Update.
10800 (do_one_display, disable_display)
10801 (enable_disable_display_command, do_enable_disable_display):
10802 Update.
10803 (free_display): Remove.
10804 (clear_displays): Rewrite.
10805 (delete_display): Update.
10806 (map_display_numbers): Use function_view. Remove "data"
10807 parameter. Update.
10808 (do_delete_display): Remove.
10809 (undisplay_command): Update.
10810 (do_one_display, do_displays, disable_display)
10811 (info_display_command): Update.
10812 (do_enable_disable_display): Remove.
10813 (enable_disable_display_command)
10814 (clear_dangling_display_expressions): Update.
10815
10816 2020-05-08 Tom Tromey <tom@tromey.com>
10817
10818 * symtab.c (set_symbol_cache_size)
10819 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10820 (maintenance_print_symbol_cache_statistics): Update.
10821 * symmisc.c (print_symbol_bcache_statistics)
10822 (print_objfile_statistics, maintenance_print_objfiles)
10823 (maintenance_info_symtabs, maintenance_check_symtabs)
10824 (maintenance_expand_symtabs, maintenance_info_line_tables):
10825 Update.
10826 * symfile-debug.c (set_debug_symfile): Update.
10827 * source.c (forget_cached_source_info): Update.
10828 * python/python.c (gdbpy_progspaces): Update.
10829 * psymtab.c (maintenance_info_psymtabs): Update.
10830 * probe.c (parse_probes): Update.
10831 * linespec.c (iterate_over_all_matching_symtabs)
10832 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10833 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10834 * exec.c (exec_target::close): Update.
10835 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10836 * breakpoint.c (print_one_breakpoint_location)
10837 (create_longjmp_master_breakpoint)
10838 (create_std_terminate_master_breakpoint): Update.
10839 * progspace.c (program_spaces): Now a std::vector.
10840 (maybe_new_address_space): Update.
10841 (add_program_space): Remove.
10842 (program_space::program_space): Update.
10843 (remove_program_space): Update.
10844 (number_of_program_spaces): Remove.
10845 (print_program_space, update_address_spaces): Update.
10846 * progspace.h (program_spaces): Change type.
10847 (ALL_PSPACES): Remove.
10848 (number_of_program_spaces): Don't declare.
10849 (struct program_space) <next>: Remove.
10850
10851 2020-05-08 Tom Tromey <tom@tromey.com>
10852
10853 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10854 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10855 (enable_break): Update.
10856 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10857 (frv_fdpic_find_canonical_descriptor): Update.
10858 (frv_fetch_objfile_link_map): Update.
10859 * progspace.c (program_space::free_all_objfiles): Update.
10860 (program_space::solibs): New method.
10861 * progspace.h (struct program_space) <solibs>: New method.
10862 * solist.h (master_so_list): Don't declare.
10863 (ALL_SO_LIBS): Remove.
10864 * solib.h (so_list_head): Remove.
10865 (update_solib_list): Update comment.
10866 * solib.c (master_so_list): Remove.
10867 (solib_used, update_solib_list, solib_add)
10868 (info_sharedlibrary_command, clear_solib)
10869 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10870
10871 2020-05-08 Tom Tromey <tom@tromey.com>
10872
10873 * extension.c (extension_languages): Now a std::array.
10874 (ALL_EXTENSION_LANGUAGES): Remove.
10875 (get_ext_lang_defn, get_ext_lang_of_file)
10876 (eval_ext_lang_from_control_command): Update.
10877 (finish_ext_lang_initialization)
10878 (auto_load_ext_lang_scripts_for_objfile)
10879 (ext_lang_type_printers::ext_lang_type_printers)
10880 (apply_ext_lang_type_printers)
10881 (ext_lang_type_printers::~ext_lang_type_printers)
10882 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10883 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10884 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10885 (get_matching_xmethod_workers, ext_lang_colorize)
10886 (ext_lang_before_prompt): Update.
10887 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10888
10889 2020-05-08 Tom Tromey <tom@tromey.com>
10890
10891 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10892 overload.
10893 <swap_string, m_string>: Remove.
10894 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10895 Update.
10896 * stabsread.c (define_symbol, read_type): Update.
10897 * linespec.c (find_linespec_symbols): Update.
10898 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10899 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10900 * dbxread.c (read_dbx_symtab): Update.
10901 * cp-support.h (cp_canonicalize_string_full)
10902 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10903 Return unique_xmalloc_ptr.
10904 * cp-support.c (inspect_type): Update.
10905 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10906 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10907 Likewise.
10908 * c-typeprint.c (print_name_maybe_canonical): Update.
10909 * break-catch-throw.c (check_status_exception_catchpoint):
10910 Update.
10911
10912 2020-05-08 Tom de Vries <tdevries@suse.de>
10913
10914 * infrun.c (follow_fork): Copy current_line and current_symtab to
10915 child thread.
10916
10917 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10918
10919 * async-event.c (struct async_signal_handler, struct
10920 async_event_handler): Reformat, remove typedef.
10921
10922 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10923
10924 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10925 access thistype->main_type->dyn_prop_list directly.
10926
10927 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10928
10929 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10930 (remove_dyn_prop): Remove. Update all users to use
10931 type::remove_dyn_prop.
10932 * gdbtypes.c (remove_dyn_prop): Rename to...
10933 (type::remove_dyn_prop): ... this.
10934
10935 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10936
10937 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10938 (add_dyn_prop): Remove. Update all users to use
10939 type::add_dyn_prop.
10940 * gdbtypes.c (add_dyn_prop): Rename to...
10941 (type::add_dyn_prop): ... this.
10942
10943 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10944
10945 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10946 (get_dyn_prop): Remove. Update all users to use
10947 type::dyn_prop.
10948 * gdbtypes.c (get_dyn_prop): Rename to...
10949 (type::dyn_prop): ... this.
10950
10951 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10952
10953 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10954
10955 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10956
10957 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10958 instruction, skip it if it's there.
10959
10960 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10961
10962 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10963
10964 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10965
10966 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10967 * gdbtypes.c (recursive_dump_type): Remove use of
10968 TYPE_INCOMPLETE.
10969
10970 2020-05-03 Tom Tromey <tom@tromey.com>
10971
10972 * breakpoint.c (catch_command, tcatch_command): Remove.
10973 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10974 add_show_prefix_cmd.
10975 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10976 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10977 Remove.
10978 (add_internal_problem_command): Use add_basic_prefix_cmd,
10979 add_show_prefix_cmd.
10980 * mips-tdep.c (set_mipsfpu_command): Remove.
10981 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10982 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10983 (_initialize_index_cache): Use add_basic_prefix_cmd.
10984 * memattr.c (dummy_cmd): Remove.
10985 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10986 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10987 (_initialize_tui_win): Use add_basic_prefix_cmd,
10988 add_show_prefix_cmd.
10989 * cli/cli-logging.c (set_logging_command): Remove.
10990 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10991 add_show_prefix_cmd.
10992 (show_logging_command): Remove.
10993 * target.c (target_command): Remove.
10994 (add_target): Use add_basic_prefix_cmd.
10995
10996 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10997
10998 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10999
11000 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11001
11002 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11003 info_command.
11004
11005 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11006
11007 * nbsd-nat.c (nbsd_enable_proc_events)
11008 (nbsd_nat_target::post_startup_inferior): Add.
11009 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11010 (nbsd_nat_target::update_thread_list): Rewrite.
11011 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11012 "PTRACE_LWP_CREATE".
11013 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11014
11015 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11016
11017 * stack.c (_initialize_stack): Remove duplicated creation
11018 of "frame" command and "f" alias.
11019
11020 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11021
11022 PR gdb/18706
11023 * gdbtypes.c (check_typedef): Calculate size of array of
11024 stubbed type.
11025
11026 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11027
11028 PR gdb/15559
11029 * i386-tdep.c (i386_push_dummy_call): Call
11030 i386_thiscall_push_dummy_call.
11031 (i386_thiscall_push_dummy_call): New function.
11032 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11033 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11034 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11035
11036 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11037
11038 * gdbarch.sh (do_read): Add shellcheck disable directive for
11039 warning SC2162.
11040
11041 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11042
11043 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11044 "referenced but not assigned" warning.
11045
11046 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11047
11048 * gdbarch.sh: Remove code that sets fallbackdefault.
11049
11050 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11051
11052 * gdbarch.sh: Use shell operators && and || instead of
11053 -a and -o.
11054
11055 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11056
11057 * gdbarch.sh: Use $(...) instead of `...`.
11058
11059 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11060
11061 * gdbarch.sh: Use double quotes around variables.
11062
11063 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11064
11065 * gdbarch.sh: Use %s with printf, instead of variables in the
11066 format string.
11067
11068 2020-04-29 Tom Tromey <tromey@adacore.com>
11069
11070 PR ada/25875:
11071 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11072 type fields here.
11073 (read_enumeration_type): Call
11074 update_enumeration_type_from_children later. Update comments.
11075 (process_enumeration_scope): Don't create type fields.
11076
11077 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11078
11079 * nbsd-tdep.c: Include "xml-syscall.h".
11080 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11081
11082 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11083
11084 * nbsd-nat.c: Include "sys/wait.h".
11085 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11086 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11087 (nbsd_nat_target::remove_exec_catchpoint)
11088 (nbsd_nat_target::set_syscall_catchpoint): Add.
11089 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11090 (nbsd_nat_target::insert_exec_catchpoint)
11091 (nbsd_nat_target::remove_exec_catchpoint)
11092 (nbsd_nat_target::set_syscall_catchpoint): Add.
11093 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11094 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11095 `nbsd_get_syscall_number'.
11096
11097 2020-04-29 Tom Tromey <tom@tromey.com>
11098
11099 * stack.c (print_block_frame_labels): Remove.
11100
11101 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11102
11103 PR gdb/17320
11104 * ada-valprint.c (val_print_packed_array_elements): Move array
11105 end bracket to new line.
11106 (ada_val_print_string): Remove extra spaces before first array
11107 element.
11108 * c-valprint.c (c_value_print_array): Likewise.
11109 * m2-valprint.c (m2_print_array_contents): Likewise.
11110 (m2_value_print_inner): Likewise.
11111 * p-valprint.c (pascal_value_print_inner): Likewise.
11112 * valprint.c (generic_val_print_array): Likewise.
11113 (value_print_array_elements): Move first array element and array
11114 end bracket to new line.
11115
11116 2020-04-29 Tom de Vries <tdevries@suse.de>
11117
11118 PR symtab/25889
11119 * linespec.c (find_method): Fix ix calculation.
11120
11121 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11122
11123 * syscalls/update-netbsd.sh: New file.
11124 * syscalls/netbsd.xml: Regenerate.
11125 * data-directory/Makefile.in: Register `netbsd.xml' in
11126 `SYSCALLS_FILES'.
11127
11128 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11129
11130 * syscalls/update-freebsd.sh: Add double quotes.
11131
11132 2020-04-28 Tom Tromey <tom@tromey.com>
11133
11134 * NEWS: Update.
11135 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11136 (cmdpy_init): Allow class_tui.
11137
11138 2020-04-28 Mark Williams <mark@myosotissp.com>
11139
11140 PR gdb/24480
11141 * dwarf2read.c: Add missing assingments to list_in_scope when
11142 start_symtab was already called.
11143
11144 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11145
11146 PR gdb/25881
11147 * dwarf2/read.c (offset_map_type): Use
11148 gdb:hash_enum<sect_offset> as hash function.
11149
11150 2020-04-28 Tom de Vries <tdevries@suse.de>
11151
11152 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11153 with DW_AT_signature.
11154
11155 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11156
11157 * configure.ac: Remove check for fs_base/gs_base in
11158 user_regs_struct.
11159 * configure: Re-generate.
11160 * config.in: Re-generate.
11161 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11162 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11163 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11164
11165 2020-04-27 Luis Machado <luis.machado@linaro.org>
11166
11167 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11168 problematic inline frame unwinding situation.
11169 * frame.c (frame_id_computed_p): New function.
11170 * frame.h (frame_id_computed_p): New prototype.
11171
11172 2020-04-26 Tom Tromey <tom@tromey.com>
11173
11174 * command.h (enum command_class) <class_pseudo>: Remove.
11175
11176 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11177
11178 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11179 and whitespace.
11180
11181 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11182
11183 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11184 `PT_GET_PROCESS_STATE' block.
11185
11186 2020-04-24 Tom Tromey <tom@tromey.com>
11187
11188 * symtab.h (symbol_get_demangled_name): Don't declare.
11189 * symtab.c (symbol_get_demangled_name): Remove.
11190 (general_symbol_info::natural_name)
11191 (general_symbol_info::demangled_name): Update.
11192
11193 2020-04-24 Tom Tromey <tom@tromey.com>
11194
11195 PR rust/25025:
11196 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11197
11198 2020-04-24 Tom Tromey <tom@tromey.com>
11199
11200 PR symtab/12707:
11201 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11202 exists.
11203 (new_symbol): Likewise.
11204 * compile/compile-object-load.c (get_out_value_type): Use
11205 symbol_matches_search_name.
11206
11207 2020-04-24 Tom Tromey <tom@tromey.com>
11208
11209 * dwarf2/read.c (add_partial_symbol): Do not call
11210 compute_and_set_names.
11211
11212 2020-04-24 Tom Tromey <tom@tromey.com>
11213
11214 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11215 overload.
11216
11217 2020-04-24 Tom Tromey <tom@tromey.com>
11218
11219 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11220 (add_psymbol_to_list): New overload. Make old overload call new
11221 one.
11222 * psympriv.h (add_psymbol_to_list): New overload.
11223
11224 2020-04-24 Tom Tromey <tom@tromey.com>
11225
11226 * dwarf2/read.c (partial_die_info::read) <case
11227 DW_AT_linkage_name>: Use value_as_string.
11228 (dwarf2_string_attr): Use value_as_string.
11229 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11230 method.
11231 * dwarf2/attribute.c (attribute::value_as_string): New method.
11232
11233 2020-04-24 Tom Tromey <tom@tromey.com>
11234
11235 * symtab.c (general_symbol_info::natural_name)
11236 (general_symbol_info::demangled_name): Check for language_rust.
11237
11238 2020-04-24 Tom Tromey <tom@tromey.com>
11239
11240 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11241 (dwarf2_physname): ... from here.
11242 (partial_die_info::read): Add Rust "{" hack.
11243
11244 2020-04-24 Tom Tromey <tom@tromey.com>
11245
11246 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11247 method.
11248 (symbol_set_demangled_name): Don't declare.
11249 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11250 symbol_set_demangled_name.
11251 (general_symbol_info::set_language)
11252 (general_symbol_info::compute_and_set_names): Update.
11253 * minsyms.c (minimal_symbol_reader::install): Update.
11254 * dwarf2/read.c (new_symbol): Update.
11255
11256 2020-04-24 Tom Tromey <tromey@adacore.com>
11257
11258 PR python/23662:
11259 * python/py-type.c (convert_field): Handle
11260 FIELD_LOC_KIND_DWARF_BLOCK.
11261 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11262 (typy_get_dynamic): Nw function.
11263 (type_object_getset): Add "dynamic".
11264 * NEWS: Add entry.
11265
11266 2020-04-24 Tom Tromey <tromey@adacore.com>
11267
11268 * ada-typeprint.c (print_choices, print_variant_part)
11269 (print_record_field_types_dynamic): New functions.
11270 (print_record_field_types): Use print_record_field_types_dynamic.
11271
11272 2020-04-24 Tom Tromey <tromey@adacore.com>
11273
11274 * dwarf2/read.c (handle_data_member_location): New overload.
11275 (dwarf2_add_field): Use it.
11276 (decode_locdesc): Add "computed" parameter. Update comment.
11277 * gdbtypes.c (is_dynamic_type_internal): Also look for
11278 FIELD_LOC_KIND_DWARF_BLOCK.
11279 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11280 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11281 virtual base classes.
11282 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11283 FIELD_LOC_KIND_DWARF_BLOCK.
11284
11285 2020-04-24 Tom Tromey <tromey@adacore.com>
11286
11287 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11288 * gdbtypes.c (is_dynamic_type_internal): Check
11289 TYPE_HAS_DYNAMIC_LENGTH.
11290 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11291 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11292 New macros.
11293 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11294 constant.
11295
11296 2020-04-24 Tom Tromey <tromey@adacore.com>
11297
11298 * dwarf2/read.c (struct variant_field): Rewrite.
11299 (struct variant_part_builder): New.
11300 (struct nextfield): Remove "variant" field. Add "offset".
11301 (struct field_info): Add "current_variant_part" and
11302 "variant_parts".
11303 (alloc_discriminant_info): Remove.
11304 (alloc_rust_variant): New function.
11305 (quirk_rust_enum): Update.
11306 (dwarf2_add_field): Set "offset" member. Don't handle
11307 DW_TAG_variant_part.
11308 (offset_map_type): New typedef.
11309 (convert_variant_range, create_one_variant)
11310 (create_one_variant_part, create_variant_parts)
11311 (add_variant_property): New functions.
11312 (dwarf2_attach_fields_to_type): Call add_variant_property.
11313 (read_structure_type): Don't handle DW_TAG_variant_part.
11314 (handle_variant_part, handle_variant): New functions.
11315 (handle_struct_member_die): Use them.
11316 (process_structure_scope): Don't handle variant parts.
11317 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11318 (struct discriminant_info): Remove.
11319 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11320 (struct main_type) <flag_discriminated_union>: Remove.
11321 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11322 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11323 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11324 Update.
11325 * valops.c (value_union_variant): Remove.
11326 * value.h (value_union_variant): Don't declare.
11327
11328 2020-04-24 Tom Tromey <tromey@adacore.com>
11329
11330 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11331 (ada_value_primitive_packed_val): Update.
11332 * ada-valprint.c (ada_value_print_1): Update.
11333 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11334 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11335 just an address. Use evaluate_for_locexpr_baton.
11336 (dwarf2_evaluate_property): Update.
11337 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11338 array_view.
11339 * findvar.c (default_read_var_value): Update.
11340 * gdbtypes.c (compute_variant_fields_inner)
11341 (resolve_dynamic_type_internal): Update.
11342 (resolve_dynamic_type): Change type of valaddr parameter.
11343 * gdbtypes.h (resolve_dynamic_type): Update.
11344 * valarith.c (value_subscripted_rvalue): Update.
11345 * value.c (value_from_contents_and_address): Update.
11346
11347 2020-04-24 Tom Tromey <tromey@adacore.com>
11348
11349 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11350 "push_initial_value" parameter.
11351 (dwarf2_evaluate_property): Likewise.
11352 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11353
11354 2020-04-24 Tom Tromey <tromey@adacore.com>
11355
11356 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11357 (variant::matches, compute_variant_fields_recurse)
11358 (compute_variant_fields_inner, compute_variant_fields): New
11359 functions.
11360 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11361 Use resolved_type after type is made.
11362 (operator==): Add new cases.
11363 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11364 (struct discriminant_range, struct variant, struct variant_part):
11365 New.
11366 (union dynamic_prop_data) <variant_parts, original_type>: New
11367 members.
11368 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11369 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11370 constants.
11371 * value.c (unpack_bits_as_long): Now public.
11372 * value.h (unpack_bits_as_long): Declare.
11373
11374 2020-04-24 Tom Tromey <tromey@adacore.com>
11375
11376 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11377 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11378
11379 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11380
11381 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11382
11383 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11384
11385 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11386 (remove_fork_catchpoint, post_startup_inferior)
11387 (post_attach): Move...
11388 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11389 (remove_fork_catchpoint, post_startup_inferior)
11390 (post_attach): ...here.
11391 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11392 (remove_fork_catchpoint, post_startup_inferior)
11393 (post_attach): Move...
11394 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11395 (remove_fork_catchpoint, post_startup_inferior)
11396 (post_attach): ...here.
11397
11398 2020-04-24 Tom Tromey <tromey@adacore.com>
11399
11400 * nat/windows-nat.h (struct windows_thread_info)
11401 <pc_adjusted>: New member.
11402 * windows-nat.c (windows_fetch_one_register): Check
11403 pc_adjusted.
11404 (windows_nat_target::get_windows_debug_event)
11405 (windows_nat_target::wait): Set pc_adjusted.
11406
11407 2020-04-24 Tom de Vries <tdevries@suse.de>
11408
11409 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11410 Run gdb-add-index inside temp dir.
11411
11412 2020-04-23 Tom Tromey <tromey@adacore.com>
11413
11414 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11415 in loop.
11416
11417 2020-04-23 Luis Machado <luis.machado@linaro.org>
11418
11419 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11420 get_frame_register instead of gdbarch_unwind_pc.
11421
11422 2020-04-23 Tom de Vries <tdevries@suse.de>
11423
11424 * symtab.c (lookup_global_symbol): Prefer def over decl.
11425
11426 2020-04-23 Tom de Vries <tdevries@suse.de>
11427
11428 PR symtab/25807
11429 * block.c (best_symbol, better_symbol): Promote to external.
11430 * block.h (best_symbol, better_symbol): Declare.
11431 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11432 decl.
11433
11434 2020-04-23 Tom Tromey <tromey@adacore.com>
11435
11436 PR ada/25837:
11437 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11438 "const char *", not a "const std::string &".
11439 <name_and_matcher::operator==>: Update.
11440 * unittests/lookup_name_info-selftests.c: Change type of
11441 "result".
11442
11443 2020-04-23 Tom Tromey <tom@tromey.com>
11444
11445 * inferior.h (iterate_over_inferiors): Don't declare.
11446 * inferior.c (iterate_over_inferiors): Remove.
11447 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11448 Remove.
11449 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11450 use iterate_over_inferiors.
11451 (darwin_resume_inferior_it)
11452 (struct resume_inferior_threads_param)
11453 (darwin_resume_inferior_threads_it): Remove.
11454 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11455
11456 2020-04-23 Tom de Vries <tdevries@suse.de>
11457
11458 * blockframe.c (find_pc_partial_function): Use
11459 find_pc_sect_compunit_symtab rather than
11460 objfile->sf->qf->find_pc_sect_compunit_symtab.
11461
11462 2020-04-22 Tom de Vries <tdevries@suse.de>
11463
11464 PR symtab/25764
11465 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11466 in psymtabs.
11467
11468 2020-04-22 Tom de Vries <tdevries@suse.de>
11469
11470 PR symtab/25801
11471 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11472 symtabs.
11473
11474 2020-04-22 Tom de Vries <tdevries@suse.de>
11475
11476 PR symtab/25700
11477 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11478 CU if already created.
11479
11480 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11481
11482 * infrun.c (displaced_step_fixup): Switch to the event_thread
11483 before calling displaced_step_restore, not after.
11484
11485 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11486
11487 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11488 its inferior is not recorded by us.
11489 (record_btrace_target_open): Replace call to
11490 all_non_exited_threads () with call to current_inferior
11491 ()->non_exited_threads ().
11492 (record_btrace_target::stop_recording): Likewise.
11493 (record_btrace_target::close): Likewise.
11494 (record_btrace_target::wait): Likewise.
11495 (record_btrace_target::record_stop_replaying): Likewise.
11496
11497 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11498
11499 * btrace.c (btrace_enable): Throw an error on double enables and
11500 when enabling recording fails.
11501 (btrace_disable): Throw an error if the thread is not recorded.
11502
11503 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11504
11505 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11506 request if we do not have a thread_info.
11507
11508 2020-04-21 Tom de Vries <tdevries@suse.de>
11509
11510 PR gdb/25471
11511 * thread.c
11512 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11513 exception in get_frame_id.
11514
11515 2020-04-20 Tom Tromey <tromey@adacore.com>
11516
11517 * python/python.c (struct gdbpy_event): Mark move constructor as
11518 noexcept.
11519 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11520 constructor as noexcept.
11521 * completer.h (struct completion_result): Mark move constructor as
11522 noexcept.
11523 * completer.c (completion_result::completion_result): Use
11524 initialization style. Don't call reset_match_list.
11525
11526 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11527
11528 * MAINTAINERS (Write After Approval): Add myself.
11529
11530 2020-04-18 Tom Tromey <tom@tromey.com>
11531
11532 * windows-tdep.c (init_w32_command_list)
11533 (w32_prefix_command_valid): Restore.
11534 (_initialize_windows_tdep): Call init_w32_command_list.
11535
11536 2020-04-18 Tom Tromey <tom@tromey.com>
11537
11538 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11539 * value.c (value_fn_field): Update.
11540 * valops.c (find_function_in_inferior)
11541 (value_allocate_space_in_inferior): Update.
11542 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11543 Update.
11544 * tui/tui-source.c (tui_source_window::set_contents): Update.
11545 * symtab.c (lookup_global_or_static_symbol)
11546 (find_function_start_sal_1, skip_prologue_sal)
11547 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11548 * symmisc.c (dump_msymbols, dump_symtab_1)
11549 (maintenance_print_one_line_table): Update.
11550 * symfile.c (init_entry_point_info, section_is_mapped)
11551 (list_overlays_command, simple_read_overlay_table)
11552 (simple_overlay_update_1): Update.
11553 * stap-probe.c (handle_stap_probe): Update.
11554 * stabsread.c (dbx_init_float_type, define_symbol)
11555 (read_one_struct_field, read_enum_type, read_range_type): Update.
11556 * source.c (info_line_command): Update.
11557 * python/python.c (gdbpy_source_objfile_script)
11558 (gdbpy_execute_objfile_script): Update.
11559 * python/py-type.c (save_objfile_types): Update.
11560 * python/py-objfile.c (py_free_objfile): Update.
11561 * python/py-inferior.c (python_new_objfile): Update.
11562 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11563 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11564 (maintenance_check_psymtabs): Update.
11565 * printcmd.c (info_address_command): Update.
11566 * objfiles.h (struct objfile) <arch>: New method, from
11567 get_objfile_arch.
11568 (get_objfile_arch): Don't declare.
11569 * objfiles.c (get_objfile_arch): Remove.
11570 (filter_overlapping_sections): Update.
11571 * minsyms.c (msymbol_is_function): Update.
11572 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11573 (output_nondebug_symbol): Update.
11574 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11575 (mdebug_expand_psymtab): Update.
11576 * machoread.c (macho_add_oso_symfile): Update.
11577 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11578 Update.
11579 * linux-fork.c (checkpoint_command): Update.
11580 * linespec.c (convert_linespec_to_sals): Update.
11581 * jit.c (finalize_symtab): Update.
11582 * infrun.c (insert_exception_resume_from_probe): Update.
11583 * ia64-tdep.c (ia64_find_unwind_table): Update.
11584 * hppa-tdep.c (internalize_unwinds): Update.
11585 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11586 Update.
11587 * gcore.c (call_target_sbrk): Update.
11588 * elfread.c (record_minimal_symbol, elf_symtab_read)
11589 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11590 (elf_gnu_ifunc_resolve_by_got): Update.
11591 * dwarf2/read.c (create_addrmap_from_index)
11592 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11593 (read_debug_names_from_section)
11594 (process_psymtab_comp_unit_reader, add_partial_symbol)
11595 (add_partial_subprogram, process_full_comp_unit)
11596 (read_file_scope, read_func_scope, read_lexical_block_scope)
11597 (read_call_site_scope, dwarf2_ranges_read)
11598 (dwarf2_record_block_ranges, dwarf2_add_field)
11599 (mark_common_block_symbol_computed, read_tag_pointer_type)
11600 (read_tag_string_type, dwarf2_init_float_type)
11601 (dwarf2_init_complex_target_type, read_base_type)
11602 (partial_die_info::read, partial_die_info::read)
11603 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11604 (dwarf2_fetch_die_loc_sect_off): Update.
11605 * dwarf2/loc.c (dwarf2_find_location_expression)
11606 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11607 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11608 (dwarf2_loc_desc_get_symbol_read_needs)
11609 (locexpr_describe_location_piece, locexpr_describe_location_1)
11610 (loclist_describe_location): Update.
11611 * dwarf2/index-write.c (write_debug_names): Update.
11612 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11613 * dtrace-probe.c (dtrace_process_dof): Update.
11614 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11615 (process_one_symbol): Update.
11616 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11617 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11618 (coff_read_enum_type): Update.
11619 * cli/cli-cmds.c (edit_command, list_command): Update.
11620 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11621 * breakpoint.c (create_overlay_event_breakpoint)
11622 (create_longjmp_master_breakpoint)
11623 (create_std_terminate_master_breakpoint)
11624 (create_exception_master_breakpoint, get_sal_arch): Update.
11625 * block.c (block_gdbarch): Update.
11626 * annotate.c (annotate_source_line): Update.
11627
11628 2020-04-17 Tom Tromey <tromey@adacore.com>
11629
11630 * auto-load.c (show_auto_load_cmd): Remove.
11631 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11632 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11633 (maintenance_print_arc_command): Remove.
11634 * tui/tui-win.c (tui_command): Remove.
11635 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11636 * tui/tui-layout.c (tui_layout_command): Remove.
11637 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11638 * python/python.c (user_set_python, user_show_python): Remove.
11639 (_initialize_python): Use add_basic_prefix_cmd,
11640 add_show_prefix_cmd.
11641 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11642 (install_gdb_commands): Use add_basic_prefix_cmd,
11643 add_show_prefix_cmd.
11644 (info_guile_command): Remove.
11645 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11646 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11647 add_show_prefix_cmd.
11648 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11649 Remove do_set and do_show parameters.
11650 * cli/cli-style.c (set_style, show_style): Remove.
11651 (_initialize_cli_style): Use add_basic_prefix_cmd,
11652 add_show_prefix_cmd.
11653 (cli_style_option::add_setshow_commands): Remove do_set and
11654 do_show parameters.
11655 (cli_style_option::add_setshow_commands): Use
11656 add_basic_prefix_cmd, add_show_prefix_cmd.
11657 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11658 (set_style_name): Remove.
11659 * cli/cli-dump.c (dump_command, append_command): Remove.
11660 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11661 (tekhex_dump_command, binary_dump_command)
11662 (binary_append_command): Remove.
11663 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11664 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11665 (init_w32_command_list): Remove; move into ...
11666 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11667 * valprint.c (set_print, show_print, set_print_raw)
11668 (show_print_raw): Remove.
11669 (_initialize_valprint): Use add_basic_prefix_cmd,
11670 add_show_prefix_cmd.
11671 * typeprint.c (set_print_type, show_print_type): Remove.
11672 (_initialize_typeprint): Use add_basic_prefix_cmd,
11673 add_show_prefix_cmd.
11674 * record.c (set_record_command, show_record_command): Remove.
11675 (_initialize_record): Use add_basic_prefix_cmd,
11676 add_show_prefix_cmd.
11677 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11678 add_show_prefix_cmd.
11679 (info_command, show_command, set_debug, show_debug): Remove.
11680 * top.h (set_history, show_history): Don't declare.
11681 * top.c (set_history, show_history): Remove.
11682 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11683 (unset_tdesc_cmd): Remove.
11684 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11685 add_show_prefix_cmd.
11686 * symtab.c (info_module_command): Remove.
11687 (_initialize_symtab): Use add_basic_prefix_cmd.
11688 * symfile.c (overlay_command): Remove.
11689 (_initialize_symfile): Use add_basic_prefix_cmd.
11690 * sparc64-tdep.c (info_adi_command): Remove.
11691 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11692 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11693 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11694 add_show_prefix_cmd.
11695 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11696 (_initialize_serial): Use add_basic_prefix_cmd,
11697 add_show_prefix_cmd.
11698 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11699 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11700 add_show_prefix_cmd.
11701 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11702 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11703 add_show_prefix_cmd.
11704 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11705 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11706 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11707 add_show_prefix_cmd.
11708 * remote.c (remote_command, set_remote_cmd): Remove.
11709 (_initialize_remote): Use add_basic_prefix_cmd.
11710 * record-full.c (set_record_full_command)
11711 (show_record_full_command): Remove.
11712 (_initialize_record_full): Use add_basic_prefix_cmd,
11713 add_show_prefix_cmd.
11714 * record-btrace.c (cmd_set_record_btrace)
11715 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11716 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11717 (cmd_show_record_btrace_pt): Remove.
11718 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11719 add_show_prefix_cmd.
11720 * ravenscar-thread.c (set_ravenscar_command)
11721 (show_ravenscar_command): Remove.
11722 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11723 add_show_prefix_cmd.
11724 * mips-tdep.c (show_mips_command, set_mips_command)
11725 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11726 add_show_prefix_cmd.
11727 * maint.c (maintenance_command, maintenance_info_command)
11728 (maintenance_check_command, maintenance_print_command)
11729 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11730 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11731 add_show_prefix_cmd.
11732 (show_per_command_cmd): Remove.
11733 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11734 Remove.
11735 (maintenance_show_test_settings_cmd): Remove.
11736 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11737 add_show_prefix_cmd.
11738 * maint-test-options.c (maintenance_test_options_command):
11739 Remove.
11740 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11741 * macrocmd.c (macro_command): Remove
11742 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11743 * language.c (set_check, show_check): Remove.
11744 (_initialize_language): Use add_basic_prefix_cmd,
11745 add_show_prefix_cmd.
11746 * infcmd.c (unset_command): Remove.
11747 (_initialize_infcmd): Use add_basic_prefix_cmd.
11748 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11749 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11750 add_show_prefix_cmd.
11751 * go32-nat.c (go32_info_dos_command): Remove.
11752 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11753 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11754 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11755 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11756 (_initialize_frame): Use add_basic_prefix_cmd,
11757 add_show_prefix_cmd.
11758 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11759 (_initialize_dcache): Use add_basic_prefix_cmd,
11760 add_show_prefix_cmd.
11761 * cp-support.c (maint_cplus_command): Remove.
11762 (_initialize_cp_support): Use add_basic_prefix_cmd.
11763 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11764 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11765 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11766 add_basic_prefix_cmd, add_show_prefix_cmd.
11767 * breakpoint.c (save_command): Remove.
11768 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11769 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11770 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11771 add_show_prefix_cmd.
11772 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11773 (set_ada_command, show_ada_command): Remove.
11774 (_initialize_ada_language): Use add_basic_prefix_cmd,
11775 add_show_prefix_cmd.
11776 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11777
11778 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11779
11780 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11781 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11782
11783 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11784
11785 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11786 warning messages.
11787
11788 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11789
11790 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11791 import table is not at beginning of .idata section.
11792
11793 2020-04-16 Pedro Alves <palves@redhat.com>
11794
11795 * inferior.c (delete_inferior): Use delete operator directly
11796 instead of delete_program_space.
11797 * progspace.c (add_program_space): New, factored out from
11798 program_space::program_space.
11799 (remove_program_space): New, factored out from
11800 delete_program_space.
11801 (program_space::program_space): Remove intro comment. Rewrite.
11802 (program_space::~program_space): Remove intro comment. Call
11803 remove_program_space.
11804 (delete_program_space): Delete.
11805 * progspace.h (program_space::program_space): Make explicit. Move
11806 intro comment here, adjusted.
11807 (program_space::~program_space): Move intro comment here,
11808 adjusted.
11809 (delete_program_space): Remove.
11810
11811 2020-04-16 Tom Tromey <tromey@adacore.com>
11812
11813 * windows-nat.c (windows_nat::handle_access_violation): New
11814 function.
11815 * nat/windows-nat.h (handle_access_violation): Declare.
11816 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11817 windows-nat.c. Call handle_access_violation.
11818
11819 2020-04-16 Tom de Vries <tdevries@suse.de>
11820
11821 PR symtab/25791
11822 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11823 CUs without psymtab.
11824
11825 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11826
11827 * python/python.c (do_start_initialization): Don't call
11828 PyEval_InitThreads for Python 3.9 and beyond.
11829
11830 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11831
11832 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11833 thread functions.
11834 (obsd_nat_target::wait): Likewise.
11835
11836 2020-04-15 Tom Tromey <tromey@adacore.com>
11837
11838 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11839 (DEBUG_EXCEPT): Use debug_printf.
11840
11841 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11842
11843 * completer.c (class completion_tracker::completion_hash_entry)
11844 <hash_name>: New member function.
11845 (completion_tracker::discard_completions): New callback to hash a
11846 completion_hash_entry, pass this to htab_create_alloc.
11847
11848 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11849
11850 * windows-nat.c (windows_make_so): Warn rather than stopping with
11851 an error if realpath() fails.
11852
11853 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11854
11855 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11856 (nbsd_nat_target::info_proc): Add do_status.
11857
11858 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11859 Tom de Vries <tdevries@suse.de>
11860
11861 PR symtab/25718
11862 * psympriv.h (struct partial_symtab::read_symtab)
11863 (struct partial_symtab::expand_psymtab)
11864 (struct partial_symtab::read_dependencies): Update comments.
11865 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11866 read_symtab for includer.
11867 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11868 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11869 (struct dwarf2_include_psymtab::m_readin): Remove.
11870 (struct dwarf2_include_psymtab::includer): New member function.
11871 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11872
11873 2020-04-14 Tom de Vries <tdevries@suse.de>
11874
11875 PR symtab/25720
11876 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11877 with NULL symbol_matcher and lookup_name.
11878 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11879 and lookup_name.
11880 * dwarf2/read.c (dw2_expand_symtabs_matching)
11881 (dw2_debug_names_expand_symtabs_matching): Same.
11882 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11883 Make lookup_name a pointer. Update comment.
11884 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11885 lookup_name being a pointer.
11886 * symfile.c (expand_symtabs_matching): Same.
11887 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11888 * linespec.c (iterate_over_all_matching_symtabs): Same.
11889
11890 2020-04-13 Tom Tromey <tom@tromey.com>
11891
11892 * run-on-main-thread.c: Update include.
11893 * unittests/main-thread-selftests.c: Update include.
11894 * tui/tui-win.c: Update include.
11895 * tui/tui-io.c: Update include.
11896 * tui/tui-interp.c: Update include.
11897 * tui/tui-hooks.c: Update include.
11898 * top.h: Update include.
11899 * top.c: Update include.
11900 * ser-base.c: Update include.
11901 * remote.c: Update include.
11902 * remote-notif.c: Update include.
11903 * remote-fileio.c: Update include.
11904 * record-full.c: Update include.
11905 * record-btrace.c: Update include.
11906 * python/python.c: Update include.
11907 * posix-hdep.c: Update include.
11908 * mingw-hdep.c: Update include.
11909 * mi/mi-main.c: Update include.
11910 * mi/mi-interp.c: Update include.
11911 * main.c: Update include.
11912 * linux-nat.c: Update include.
11913 * interps.c: Update include.
11914 * infrun.c: Update include.
11915 * inf-loop.c: Update include.
11916 * event-top.c: Update include.
11917 * event-loop.c: Move to ../gdbsupport/.
11918 * event-loop.h: Move to ../gdbsupport/.
11919 * async-event.h: Update include.
11920 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11921
11922 2020-04-13 Tom Tromey <tom@tromey.com>
11923
11924 * tui/tui-win.c: Include async-event.h.
11925 * remote.c: Include async-event.h.
11926 * remote-notif.c: Include async-event.h.
11927 * record-full.c: Include async-event.h.
11928 * record-btrace.c: Include async-event.h.
11929 * infrun.c: Include async-event.h.
11930 * event-top.c: Include async-event.h.
11931 * event-loop.h: Move some declarations to async-event.h.
11932 * event-loop.c: Don't include ser-event.h or top.h. Move some
11933 code to async-event.c.
11934 * async-event.h: New file.
11935 * async-event.c: New file.
11936 * Makefile.in (COMMON_SFILES): Add async-event.c.
11937 (HFILES_NO_SRCDIR): Add async-event.h.
11938
11939 2020-04-13 Tom Tromey <tom@tromey.com>
11940
11941 * utils.c (flush_streams): New function.
11942 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11943
11944 2020-04-13 Tom Tromey <tom@tromey.com>
11945
11946 * event-loop.c (handle_file_event): Use warning, not
11947 printf_unfiltered.
11948
11949 2020-04-13 Tom Tromey <tom@tromey.com>
11950
11951 * event-loop.c: Include <chrono>.
11952
11953 2020-04-13 Tom Tromey <tom@tromey.com>
11954
11955 * gdb_select.h: Move to ../gdbsupport/.
11956 * event-loop.c: Update include path.
11957 * top.c: Update include path.
11958 * ser-base.c: Update include path.
11959 * ui-file.c: Update include path.
11960 * ser-tcp.c: Update include path.
11961 * guile/scm-ports.c: Update include path.
11962 * posix-hdep.c: Update include path.
11963 * ser-unix.c: Update include path.
11964 * gdb_usleep.c: Update include path.
11965 * mingw-hdep.c: Update include path.
11966 * inflow.c: Update include path.
11967 * infrun.c: Update include path.
11968 * event-top.c: Update include path.
11969
11970 2020-04-13 Tom Tromey <tom@tromey.com>
11971
11972 * configure: Rebuild.
11973 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11974
11975 2020-04-13 Tom Tromey <tom@tromey.com>
11976
11977 * event-loop.h (start_event_loop): Don't declare.
11978 * event-loop.c (start_event_loop): Move...
11979 * main.c (start_event_loop): ...here. Now static.
11980
11981 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11982
11983 * MAINTAINERS: Update my email address.
11984
11985 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11986
11987 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11988 IP_ALL.
11989
11990 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11991
11992 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11993 (nbsd_nat_target::info_proc): Add do_cmdline.
11994
11995 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11996
11997 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11998 (nbsd_nat_target::info_proc): Add do_cwd.
11999
12000 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12001
12002 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12003
12004 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12005
12006 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12007 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12008 (nbsd_nat_target::info_proc): New functions.
12009 * nbsd-nat.c (kinfo_get_vmmap): New function.
12010 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12011 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12012 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12013 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12014 functions.
12015 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12016 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12017 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12018 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12019 (KINFO_VME_FLAG_GROWS_DOWN): New.
12020
12021 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12022
12023 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12024 bit shift.
12025
12026 2020-04-10 Tom Tromey <tromey@adacore.com>
12027
12028 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12029
12030 2020-04-10 Tom Tromey <tromey@adacore.com>
12031
12032 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12033 separate debug files.
12034
12035 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12036
12037 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12038 Move to...
12039 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12040 ... here.
12041 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12042 Check for STATUS_WX86_BREAKPOINT.
12043 (windows_nat_target::wait): Same.
12044
12045 2020-04-10 Tom de Vries <tdevries@suse.de>
12046
12047 PR cli/25808
12048 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12049
12050 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12051
12052 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12053 (Write After Approval): Remove Tom de Vries.
12054
12055 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12056
12057 revert partially:
12058 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12059
12060 * buildsym.c (record_line): Fix undefined behavior and preserve
12061 lines at eof.
12062
12063 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12064
12065 * auxv.h (svr4_auxv_parse): New.
12066 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12067 and generic_auxv_parse.
12068 (svr4_auxv_parse): Add.
12069 * obsd-tdep.c: Include "auxv.h".
12070 (obsd_auxv_parse): Remove.
12071 (obsd_init_abi): Remove comment.
12072 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12073 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12074 * nbsd-tdep.c: Include "auxv.h".
12075 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12076
12077 2020-04-08 Tom Tromey <tromey@adacore.com>
12078
12079 * nat/windows-nat.h (last_wait_event): Don't declare.
12080 (wait_for_debug_event): Update comment.
12081 * nat/windows-nat.c (last_wait_event): Now static.
12082
12083 2020-04-08 Tom Tromey <tromey@adacore.com>
12084
12085 * windows-nat.c (wait_for_debug_event): Move to
12086 nat/windows-nat.c.
12087 * nat/windows-nat.h (wait_for_debug_event): Declare.
12088 * nat/windows-nat.c (wait_for_debug_event): Move from
12089 windows-nat.c. No longer static.
12090
12091 2020-04-08 Tom Tromey <tromey@adacore.com>
12092
12093 * windows-nat.c (get_windows_debug_event): Use
12094 fetch_pending_stop.
12095 * nat/windows-nat.h (fetch_pending_stop): Declare.
12096 * nat/windows-nat.c (fetch_pending_stop): New function.
12097
12098 2020-04-08 Tom Tromey <tromey@adacore.com>
12099
12100 * windows-nat.c (windows_continue): Use matching_pending_stop and
12101 continue_last_debug_event.
12102 * nat/windows-nat.h (matching_pending_stop)
12103 (continue_last_debug_event): Declare.
12104 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12105 (matching_pending_stop, continue_last_debug_event): New
12106 functions.
12107
12108 2020-04-08 Tom Tromey <tromey@adacore.com>
12109
12110 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12111 (handle_exception_result): Move to nat/windows-nat.h.
12112 (DEBUG_EXCEPTION_SIMPLE): Remove.
12113 (windows_nat::handle_ms_vc_exception): New function.
12114 (handle_exception): Move to nat/windows-nat.c.
12115 (get_windows_debug_event): Update.
12116 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12117 nat/windows-nat.c.
12118 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12119 (handle_exception_result): Move from windows-nat.c.
12120 (handle_exception): Declare.
12121 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12122 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12123 windows-nat.c.
12124
12125 2020-04-08 Tom Tromey <tromey@adacore.com>
12126
12127 * windows-nat.c (exception_count, event_count): Remove.
12128 (handle_exception, get_windows_debug_event)
12129 (do_initial_windows_stuff): Update.
12130
12131 2020-04-08 Tom Tromey <tromey@adacore.com>
12132
12133 * windows-nat.c (windows_nat::handle_load_dll)
12134 (windows_nat::handle_unload_dll): Rename. No longer static.
12135 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12136 Declare.
12137
12138 2020-04-08 Tom Tromey <tromey@adacore.com>
12139
12140 * complaints.h (stop_whining): Declare at top-level.
12141 (complaint): Don't declare stop_whining.
12142
12143 2020-04-08 Tom Tromey <tromey@adacore.com>
12144
12145 * windows-nat.c (windows_nat::handle_output_debug_string):
12146 Rename. No longer static.
12147 * nat/windows-nat.h (handle_output_debug_string): Declare.
12148
12149 2020-04-08 Tom Tromey <tromey@adacore.com>
12150
12151 * windows-nat.c (current_process_handle, current_process_id)
12152 (main_thread_id, last_sig, current_event, last_wait_event)
12153 (current_windows_thread, desired_stop_thread_id, pending_stops)
12154 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12155 (display_selectors, fake_create_process)
12156 (get_windows_debug_event): Update.
12157 * nat/windows-nat.h (current_process_handle, current_process_id)
12158 (main_thread_id, last_sig, current_event, last_wait_event)
12159 (current_windows_thread, desired_stop_thread_id, pending_stops)
12160 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12161 * nat/windows-nat.c (current_process_handle, current_process_id)
12162 (main_thread_id, last_sig, current_event, last_wait_event)
12163 (current_windows_thread, desired_stop_thread_id, pending_stops)
12164 (siginfo_er): New globals. Move from windows-nat.c.
12165
12166 2020-04-08 Tom Tromey <tromey@adacore.com>
12167
12168 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12169 (handle_load_dll): Update.
12170 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12171
12172 2020-04-08 Tom Tromey <tromey@adacore.com>
12173
12174 * windows-nat.c (enum thread_disposition_type): Move to
12175 nat/windows-nat.h.
12176 (windows_nat::thread_rec): Rename from thread_rec. No longer
12177 static.
12178 (windows_add_thread, windows_nat_target::fetch_registers)
12179 (windows_nat_target::store_registers, handle_exception)
12180 (windows_nat_target::resume, get_windows_debug_event)
12181 (windows_nat_target::get_tib_address)
12182 (windows_nat_target::thread_name)
12183 (windows_nat_target::thread_alive): Update.
12184 * nat/windows-nat.h (enum thread_disposition_type): Move from
12185 windows-nat.c.
12186 (thread_rec): Declare.
12187
12188 2020-04-08 Tom Tromey <tromey@adacore.com>
12189
12190 * windows-nat.c: Add "using namespace".
12191 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12192 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12193
12194 2020-04-08 Tom Tromey <tromey@adacore.com>
12195
12196 * nat/windows-nat.h (struct windows_thread_info): Declare
12197 destructor.
12198 * nat/windows-nat.c (~windows_thread_info): New.
12199
12200 2020-04-08 Tom Tromey <tromey@adacore.com>
12201
12202 PR gdb/22992
12203 * windows-nat.c (current_event): Update comment.
12204 (last_wait_event, desired_stop_thread_id): New globals.
12205 (struct pending_stop): New.
12206 (pending_stops): New global.
12207 (windows_nat_target) <stopped_by_sw_breakpoint>
12208 <supports_stopped_by_sw_breakpoint>: New methods.
12209 (windows_fetch_one_register): Add assertions. Adjust PC.
12210 (windows_continue): Handle pending stops. Suspend other threads
12211 when stepping. Use last_wait_event
12212 (wait_for_debug_event): New function.
12213 (get_windows_debug_event): Use wait_for_debug_event. Handle
12214 pending stops. Queue spurious stops.
12215 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12216 (windows_nat_target::kill): Use wait_for_debug_event.
12217 * nat/windows-nat.h (struct windows_thread_info)
12218 <stopped_at_software_breakpoint>: New field.
12219 * nat/windows-nat.c (windows_thread_info::resume): Clear
12220 stopped_at_software_breakpoint.
12221
12222 2020-04-08 Tom Tromey <tromey@adacore.com>
12223
12224 * windows-nat.c (enum thread_disposition_type): New.
12225 (thread_rec): Replace "get_context" parameter with "disposition";
12226 change type.
12227 (windows_add_thread, windows_nat_target::fetch_registers)
12228 (windows_nat_target::store_registers, handle_exception)
12229 (windows_nat_target::resume, get_windows_debug_event)
12230 (windows_nat_target::get_tib_address)
12231 (windows_nat_target::thread_name)
12232 (windows_nat_target::thread_alive): Update.
12233
12234 2020-04-08 Tom Tromey <tromey@adacore.com>
12235
12236 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12237 (windows_continue): Use windows_continue::resume.
12238 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12239 resume>: Declare new methods.
12240 * nat/windows-nat.c: New file.
12241 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12242
12243 2020-04-08 Tom Tromey <tromey@adacore.com>
12244
12245 * windows-nat.c (windows_add_thread, windows_delete_thread)
12246 (windows_nat_target::fetch_registers)
12247 (windows_nat_target::store_registers, fake_create_process)
12248 (windows_nat_target::resume, windows_nat_target::resume)
12249 (get_windows_debug_event, windows_nat_target::wait)
12250 (windows_nat_target::pid_to_str)
12251 (windows_nat_target::get_tib_address)
12252 (windows_nat_target::get_ada_task_ptid)
12253 (windows_nat_target::thread_name)
12254 (windows_nat_target::thread_alive): Use lwp, not tid.
12255
12256 2020-04-08 Tom Tromey <tromey@adacore.com>
12257
12258 * windows-nat.c (handle_exception)
12259 (windows_nat_target::thread_name): Update.
12260 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12261 <name>: Now unique_xmalloc_ptr.
12262
12263 2020-04-08 Tom Tromey <tromey@adacore.com>
12264
12265 * windows-nat.c (thread_rec)
12266 (windows_nat_target::fetch_registers): Update.
12267 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12268 Update comment.
12269 <debug_registers_changed, reload_context>: Now bool.
12270
12271 2020-04-08 Tom Tromey <tromey@adacore.com>
12272
12273 * windows-nat.c (windows_add_thread): Use new.
12274 (windows_init_thread_list, windows_delete_thread): Use delete.
12275 (get_windows_debug_event): Update.
12276 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12277 destructor, and initializers.
12278
12279 2020-04-08 Tom Tromey <tromey@adacore.com>
12280
12281 * windows-nat.c (struct windows_thread_info): Remove.
12282 * nat/windows-nat.h: New file.
12283
12284 2020-04-08 Tom Tromey <tromey@adacore.com>
12285
12286 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12287 (thread_rec, windows_add_thread, windows_delete_thread)
12288 (windows_continue): Update.
12289
12290 2020-04-08 Tom Tromey <tromey@adacore.com>
12291
12292 * windows-nat.c (struct windows_thread_info): Remove typedef.
12293 (thread_head): Remove.
12294 (thread_list): New global.
12295 (thread_rec, windows_add_thread, windows_init_thread_list)
12296 (windows_delete_thread, windows_continue): Update.
12297
12298 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12299
12300 * windows-tdep.h (windows_init_abi): Add comment.
12301 (cygwin_init_abi): New declaration.
12302 * windows-tdep.c: Split signal enumeration in two, one for
12303 Windows and one for Cygwin.
12304 (windows_gdb_signal_to_target): Only deal with signal of the
12305 Windows OS ABI.
12306 (cygwin_gdb_signal_to_target): New function.
12307 (windows_init_abi): Rename to windows_init_abi_common, don't set
12308 gdb_signal_to_target gdbarch method. Add new new function with
12309 this name.
12310 (cygwin_init_abi): New function.
12311 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12312 comment. Don't call windows_init_abi.
12313 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12314 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12315 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12316 i386_windows_init_abi_common, don't call windows_init_abi. Add
12317 a new function of this name.
12318 (i386_cygwin_init_abi): New function.
12319 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12320 OS ABI Cygwin.
12321
12322 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12323
12324 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12325 parameter.c.
12326 (dwarf2_read_gdb_index): Update.
12327
12328 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12329
12330 * nbsd-tdep.c: Include "objfiles.h".
12331 (nbsd_skip_solib_resolver): New.
12332 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12333
12334 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12335
12336 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12337 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12338 with DW_LLE_base_addressx are being emitted in DWARFv5.
12339 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12340 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12341 unsigned integer.
12342
12343 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12344
12345 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12346 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12347 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12348 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12349 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12350 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12351 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12352
12353
12354 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12355
12356 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12357 (read_loclist_index): New function definition.
12358 (lookup_loclist_base): New function definition.
12359 (read_loclist_header): New function definition.
12360 (dwarf2_cu): Add loclist_base and loclist_header field.
12361 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12362 (read_full_die_1): Read the value of DW_AT_loclists_base.
12363 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12364 (read_attribute_value): Handle DW_FORM_loclistx.
12365 (skip_one_die): Handle DW_FORM_loclistx.
12366 (loclist_header): New structure declaration.
12367 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12368
12369 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12370
12371 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12372 constructor. Remove `addr` parameter from other constructor and
12373 add `per_cu` parameter.
12374 * dwarf2/read.c (create_partial_symtab): Update.
12375
12376 2020-04-07 Tom de Vries <tdevries@suse.de>
12377
12378 PR symtab/25796
12379 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12380 (partial_die_info::fixup): Inherit has_const_value.
12381
12382 2020-04-07 Tom de Vries <tdevries@suse.de>
12383
12384 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12385 symbols without address.
12386
12387 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12388
12389 * nbsd-nat.h (struct thread_info): Add forward declaration.
12390 (nbsd_nat_target::thread_alive): Add.
12391 (nbsd_nat_target::thread_name): Likewise.
12392 (nbsd_nat_target::update_thread_list): Likewise.
12393 (update_thread_list::post_attach): Likewise.
12394 (post_attach::pid_to_str): Likewise.
12395 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12396 (nbsd_thread_lister): Add.
12397 (nbsd_nat_target::thread_alive): Likewise.
12398 (nbsd_nat_target::thread_name): Likewise.
12399 (nbsd_add_threads): Likewise.
12400 (update_thread_list::post_attach): Likewise.
12401 (nbsd_nat_target::update_thread_list): Likewise.
12402 (post_attach::pid_to_str): Likewise.
12403
12404 2020-04-06 Tom Tromey <tromey@adacore.com>
12405
12406 * ada-valprint.c (print_variant_part): Extract the variant field.
12407 (print_field_values): Use the field as the outer value when
12408 recursing.
12409
12410 2020-04-06 Tom Tromey <tromey@adacore.com>
12411
12412 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12413 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12414 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12415 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12416 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12417
12418 2020-04-06 Tom Tromey <tromey@adacore.com>
12419
12420 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12421 TYPE_CODE_ERROR.
12422
12423 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12424
12425 * nbsd-tdep.c: Include "gdbarch.h".
12426 Define enum with NetBSD signal numbers.
12427 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12428 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12429 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12430 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12431 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12432 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12433 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12434 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12435 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12436 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12437 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12438 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12439
12440 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12441
12442 PR gdb/25325
12443 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12444
12445 2020-04-03 Tom Tromey <tromey@adacore.com>
12446
12447 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12448 Read constant block.
12449
12450 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12451
12452 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12453 (gdb_bfd_get_full_section_contents): New declaration.
12454 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12455 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12456 gdb_bfd_get_full_section_contents.
12457
12458 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12459
12460 * exec.c (build_section_table): Replace internal_error with
12461 gdb_assert.
12462 (section_table_xfer_memory_partial): Likewise.
12463 * mdebugread.c (parse_partial_symbols): Likewise.
12464 * psymtab.c (lookup_partial_symbol): Likewise.
12465 * utils.c (wrap_here): Likewise.
12466
12467 2020-04-02 Tom Tromey <tromey@adacore.com>
12468
12469 * f-lang.c (build_fortran_types): Use arch_type to initialize
12470 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12471
12472 2020-04-02 Tom Tromey <tromey@adacore.com>
12473
12474 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12475 of attributes.
12476
12477 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12478 Bernd Edlinger <bernd.edlinger@hotmail.de>
12479 Tom Tromey <tromey@adacore.com>
12480
12481 * buildsym.c (buildsym_compunit::record_line): Remove
12482 deduplication code.
12483
12484 2020-04-02 Tom de Vries <tdevries@suse.de>
12485
12486 PR ada/24671
12487 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12488
12489 2020-04-02 Tom de Vries <tdevries@suse.de>
12490
12491 * dwarf2/read.c (dwarf2_gdb_index_functions,
12492 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12493 NULL.
12494 * psymtab.c (psym_lookup_global_symbol_language): New function.
12495 (psym_functions): Init psym_lookup_global_symbol_language with
12496 psym_lookup_global_symbol_language.
12497 * symfile-debug.c (debug_sym_quick_functions): Init
12498 lookup_global_symbol_language with NULL.
12499 * symfile.c (set_initial_language): Remove fixme comment.
12500 * symfile.h (struct quick_symbol_functions): Add
12501 lookup_global_symbol_language.
12502 * symtab.c (find_quick_global_symbol_language): New function.
12503 (find_main_name): Use find_quick_global_symbol_language.
12504
12505 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12506
12507 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12508
12509 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12510
12511 * buildsym.c (record_line): Fix undefined behavior and preserve
12512 lines at eof.
12513
12514 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12515
12516 * buildsym.c (record_line): Fix the resizing condition.
12517
12518 2020-04-01 Tom Tromey <tom@tromey.com>
12519
12520 * value.h (value_literal_complex): Add comment.
12521 * valops.c (value_literal_complex): Refer to value.h.
12522
12523 2020-04-01 Tom Tromey <tom@tromey.com>
12524
12525 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12526 (scalar_type): New rule, from typebase.
12527 (typebase): Use scalar_type. Recognize complex types.
12528 (field_name): Handle FLOAT_KEYWORD.
12529 (ident_tokens): Add _Complex and __complex__.
12530
12531 2020-04-01 Tom Tromey <tom@tromey.com>
12532
12533 PR exp/25299:
12534 * valarith.c (promotion_type, complex_binop): New functions.
12535 (scalar_binop): Handle complex numbers. Use promotion_type.
12536 (value_pos, value_neg, value_complement): Handle complex numbers.
12537
12538 2020-04-01 Tom Tromey <tom@tromey.com>
12539
12540 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12541 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12542 (parse_number): Handle complex numbers.
12543
12544 2020-04-01 Tom Tromey <tom@tromey.com>
12545
12546 * c-valprint.c (c_decorations): Change complex suffix to "i".
12547
12548 2020-04-01 Tom Tromey <tom@tromey.com>
12549
12550 * valprint.c (generic_value_print_complex): Use accessors.
12551 * value.h (value_real_part, value_imaginary_part): Declare.
12552 * valops.c (value_real_part, value_imaginary_part): New
12553 functions.
12554 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12555
12556 2020-04-01 Tom Tromey <tom@tromey.com>
12557
12558 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12559 (read_range_type): Update.
12560 * mdebugread.c (basic_type): Update.
12561 * go-lang.c (build_go_types): Use init_complex_type.
12562 * gdbtypes.h (struct main_type) <complex_type>: New member.
12563 (init_complex_type): Update.
12564 (arch_complex_type): Don't declare.
12565 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12566 Make name if none given. Use alloc_type_copy. Look for cached
12567 complex type.
12568 (arch_complex_type): Remove.
12569 (gdbtypes_post_init): Use init_complex_type.
12570 * f-lang.c (build_fortran_types): Use init_complex_type.
12571 * dwarf2/read.c (read_base_type): Update.
12572 * d-lang.c (build_d_types): Use init_complex_type.
12573 * ctfread.c (read_base_type): Update.
12574
12575 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12576
12577 * infrun.c (stop_all_threads): Update assertion, plus when
12578 stopping threads, take into account that we might be trying
12579 to stop an all-stop target.
12580 (stop_waiting): Call 'stop_all_threads' if there exists a
12581 non-stop target.
12582
12583 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12584
12585 * target.h (exists_non_stop_target): New function declaration.
12586 * target.c (exists_non_stop_target): New function.
12587
12588 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12589
12590 PR gdb/24789
12591 * eval.c (is_integral_or_integral_reference): New function.
12592 (evaluate_subexp_standard): Allow integer references in
12593 pointer arithmetic.
12594
12595 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12596
12597 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12598 check for no ptid in the stop reply when the target is non-stop.
12599
12600 2020-04-01 Tom Tromey <tromey@adacore.com>
12601
12602 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12603 "name" parameter to rvalue reference. Initialize m_name_holder.
12604 <lookup_name_info>: New overloads.
12605 <name>: Return gdb::string_view.
12606 <c_str>: New method.
12607 <make_ignore_params>: Update.
12608 <search_name_hash>: Update.
12609 <language_lookup_name>: Return const char *.
12610 <m_name>: Change type.
12611 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12612 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12613 (lookup_name_info::match_any): Update.
12614 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12615 Update.
12616 * minsyms.c (linkage_name_str): Update.
12617 * language.c (default_symbol_name_matcher): Update.
12618 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12619 Update.
12620 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12621 (ada_lookup_name_info::ada_lookup_name_info): Update.
12622 (literal_symbol_name_matcher): Update.
12623
12624 2020-04-01 Tom Tromey <tromey@adacore.com>
12625
12626 * psymtab.c (psymtab_search_name): Remove function.
12627 (psym_lookup_symbol): Create search name and lookup name here.
12628 (lookup_partial_symbol): Remove "name" parameter; add
12629 lookup_name.
12630 (psym_expand_symtabs_for_function): Update.
12631
12632 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12633
12634 PR tui/25597:
12635 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12636
12637 2020-03-31 Tom Tromey <tromey@adacore.com>
12638
12639 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12640 memcpy.
12641
12642 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12643
12644 * features/riscv/32bit-csr.xml: Regenerated.
12645 * features/riscv/64bit-csr.xml: Regenerated.
12646
12647 2020-03-30 Tom Tromey <tromey@adacore.com>
12648
12649 * ada-valprint.c (print_variant_part): Update.
12650 * ada-lang.h (ada_which_variant_applies): Update.
12651 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12652 outer_valaddr parameters; replace with "outer" value parameter.
12653 (to_fixed_variant_branch_type): Update.
12654
12655 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12656
12657 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12658 <list>. Remove inclusion of observable.h.
12659 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12660 (struct arch_lwp_info): New struct.
12661 (class ppc_linux_dreg_interface): New class.
12662 (struct ppc_linux_process_info): New struct.
12663 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12664 <low_new_clone, low_forget_process, low_prepare_to_resume>
12665 <copy_thread_dreg_state, mark_thread_stale>
12666 <mark_debug_registers_changed, register_hw_breakpoint>
12667 <clear_hw_breakpoint, register_wp, clear_wp>
12668 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12669 <num_memory_accesses, get_trigger_type>
12670 <create_watchpoint_request, hwdebug_point_cmp>
12671 <init_arch_lwp_info, get_arch_lwp_info>
12672 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12673 methods.
12674 <struct ptid_hash>: New inner struct.
12675 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12676 members.
12677 (saved_dabr_value, hwdebug_info, max_slots_number)
12678 (struct hw_break_tuple, struct thread_points, ppc_threads)
12679 (have_ptrace_hwdebug_interface)
12680 (hwdebug_find_thread_points_by_tid)
12681 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12682 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12683 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12684 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12685 use m_dreg_interface.
12686 (hwdebug_point_cmp): Change to...
12687 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12688 reference arguments instead of pointers.
12689 (ppc_linux_nat_target::ranged_break_num_registers): Use
12690 m_dreg_interface.
12691 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12692 m_dreg_interface. Call register_hw_breakpoint.
12693 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12694 m_dreg_interface. Call clear_hw_breakpoint.
12695 (get_trigger_type): Change to...
12696 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12697 comment.
12698 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12699 use m_dreg_interface. Call register_hw_breakpoint.
12700 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12701 use m_dreg_interface. Call clear_hw_breakpoint.
12702 (can_use_watchpoint_cond_accel): Change to...
12703 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12704 method. Update comment, use m_dreg_interface and
12705 m_process_info.
12706 (calculate_dvc): Change to...
12707 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12708 m_dreg_interface.
12709 (num_memory_accesses): Change to...
12710 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12711 (check_condition): Change to...
12712 (ppc_linux_nat_target::check_condition): ...this method.
12713 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12714 comment, use m_dreg_interface.
12715 (create_watchpoint_request): Change to...
12716 (ppc_linux_nat_target::create_watchpoint_request): ...this
12717 method. Use m_dreg_interface.
12718 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12719 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12720 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12721 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12722 (ppc_linux_nat_target::low_forget_process)
12723 (ppc_linux_nat_target::low_new_fork)
12724 (ppc_linux_nat_target::low_new_clone)
12725 (ppc_linux_nat_target::low_delete_thread)
12726 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12727 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12728 only call mark_thread_stale.
12729 (ppc_linux_thread_exit): Remove.
12730 (ppc_linux_nat_target::stopped_data_address): Change to...
12731 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12732 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12733 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12734 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12735 comment. Call low_stopped_data_address.
12736 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12737 m_dreg_interface.
12738 (ppc_linux_nat_target::masked_watch_num_registers): Use
12739 m_dreg_interface.
12740 (ppc_linux_nat_target::copy_thread_dreg_state)
12741 (ppc_linux_nat_target::mark_thread_stale)
12742 (ppc_linux_nat_target::mark_debug_registers_changed)
12743 (ppc_linux_nat_target::register_hw_breakpoint)
12744 (ppc_linux_nat_target::clear_hw_breakpoint)
12745 (ppc_linux_nat_target::register_wp)
12746 (ppc_linux_nat_target::clear_wp)
12747 (ppc_linux_nat_target::init_arch_lwp_info)
12748 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12749 (_initialize_ppc_linux_nat): Remove observer callback.
12750
12751 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12752
12753 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12754 (ppc_linux_nat_target::auxv_parse)
12755 (ppc_linux_nat_target::read_description)
12756 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12757 Move up.
12758
12759 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12760
12761 * linux-nat.h (low_new_clone): New method.
12762 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12763
12764 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12765
12766 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12767 (dbx_expand_psymtab): ... this.
12768 (start_psymtab): Update.
12769 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12770 (mdebug_expand_psymtab): ... this.
12771 (parse_partial_symbols): Update.
12772 (new_psymtab): Update.
12773 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12774 (xcoff_expand_psymtab): ... this.
12775 (xcoff_start_psymtab): Update.
12776
12777 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12778
12779 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12780 <expand_dependencies>: ... this.
12781 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12782 (partial_symtab::expand_dependencies): ... this.
12783 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12784 Update.
12785 (dwarf2_psymtab::expand_psymtab): Update.
12786 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12787 * mdebugread.c (psymtab_to_symtab_1): Update.
12788 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12789
12790 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12791
12792 * psympriv.h (discard_psymtab): Remove.
12793 * dbxread.c (dbx_end_psymtab): Update.
12794 * xcoffread.c (xcoff_end_psymtab): Update.
12795
12796 2020-03-28 Tom Tromey <tom@tromey.com>
12797
12798 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12799 comment.
12800
12801 2020-03-28 Tom Tromey <tom@tromey.com>
12802
12803 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12804
12805 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12806
12807 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12808
12809 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12810
12811 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12812
12813 2020-03-26 Tom Tromey <tom@tromey.com>
12814
12815 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12816 (mark_common_block_symbol_computed, read_tag_string_type)
12817 (attr_to_dynamic_prop, read_subrange_type): Update.
12818 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12819 to be methods on struct attribute.
12820 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12821 (read_call_site_scope, partial_die_info::read)
12822 (partial_die_info::read, lookup_die_type, follow_die_ref):
12823 Update.
12824 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12825 from dwarf2_get_ref_die_offset.
12826 (attribute::constant_value): New method, from
12827 dwarf2_get_attr_constant_value.
12828 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12829 Declare method.
12830 <constant_value>: New method.
12831
12832 2020-03-26 Tom Tromey <tom@tromey.com>
12833
12834 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12835 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12836 (dwarf_type_encoding_name): Move to stringify.c.
12837 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12838 * dwarf2/stringify.c: New file.
12839 * dwarf2/stringify.h: New file.
12840
12841 2020-03-26 Tom Tromey <tom@tromey.com>
12842
12843 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12844 Rewrite.
12845
12846 2020-03-26 Tom Tromey <tom@tromey.com>
12847
12848 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12849 methods.
12850 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12851 (lookup_ranges_base): Likewise.
12852 (read_cutu_die_from_dwo, read_full_die_1): Update.
12853
12854 2020-03-26 Tom Tromey <tom@tromey.com>
12855
12856 * dwarf2/read.c (read_import_statement, read_file_scope)
12857 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12858 (read_lexical_block_scope, read_call_site_scope)
12859 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12860 (handle_struct_member_die, process_structure_scope)
12861 (update_enumeration_type_from_children)
12862 (process_enumeration_scope, read_array_type, read_common_block)
12863 (read_namespace, read_module, read_subroutine_type): Update.
12864 (sibling_die): Remove.
12865
12866 2020-03-26 Tom Tromey <tom@tromey.com>
12867
12868 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12869 (build_type_psymtabs_reader, read_structure_type)
12870 (read_enumeration_type, read_full_die_1): Update.
12871 (dwarf2_attr_no_follow): Move to die.h.
12872 * dwarf2/die.h (struct die_info) <attr>: New method.
12873
12874 2020-03-26 Tom Tromey <tom@tromey.com>
12875
12876 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12877 <base_address>: Now an optional.
12878 (dwarf2_find_base_address, dwarf2_rnglists_process)
12879 (dwarf2_ranges_process, fill_in_loclist_baton)
12880 (dwarf2_symbol_mark_computed): Update.
12881
12882 2020-03-26 Tom Tromey <tom@tromey.com>
12883
12884 * dwarf2/read.c (struct die_info): Move to die.h.
12885 * dwarf2/die.h: New file.
12886
12887 2020-03-26 Tom Tromey <tom@tromey.com>
12888
12889 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12890 * dwarf2/read.c
12891 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12892 Move to line-header.c.
12893 (read_checked_initial_length_and_offset, read_formatted_entries):
12894 Likewise.
12895 (dwarf_decode_line_header): Split into two.
12896 * dwarf2/line-header.c
12897 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12898 Move from read.c.
12899 (read_checked_initial_length_and_offset, read_formatted_entries):
12900 Likewise.
12901 (dwarf_decode_line_header): New function, split from read.c.
12902
12903 2020-03-26 Tom Tromey <tom@tromey.com>
12904
12905 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12906 Declare method.
12907 * dwarf2/read.c (read_attribute_value): Update.
12908 (dwarf2_per_objfile::read_line_string): Rename from
12909 read_indirect_line_string.
12910 (read_formatted_entries): Update.
12911
12912 2020-03-26 Tom Tromey <tom@tromey.com>
12913
12914 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12915 variable.
12916
12917 2020-03-26 Tom Tromey <tom@tromey.com>
12918
12919 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12920 const.
12921 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12922 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12923 parameter const.
12924
12925 2020-03-26 Tom Tromey <tom@tromey.com>
12926
12927 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12928 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12929 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12930 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12931
12932 2020-03-26 Tom Tromey <tom@tromey.com>
12933
12934 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12935 file_names_size, file_full_name, file_file_name>: Use const.
12936 <file_name_at, file_names>: Add const overload.
12937 * dwarf2/line-header.c (line_header::file_file_name)
12938 (line_header::file_full_name): Update.
12939
12940 2020-03-26 Tom Tromey <tom@tromey.com>
12941
12942 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12943 (macro_start_file, consume_improper_spaces)
12944 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12945 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12946 (dwarf_decode_macros): Move to macro.c.
12947 * dwarf2/macro.c: New file.
12948 * dwarf2/macro.h: New file.
12949 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12950
12951 2020-03-26 Tom Tromey <tom@tromey.com>
12952
12953 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12954 method.
12955 * dwarf2/section.c: New method. From
12956 read_indirect_string_at_offset_from.
12957 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12958 (read_indirect_string_at_offset_from): Move to section.c.
12959 (read_indirect_string_at_offset): Rewrite.
12960 (read_indirect_line_string_at_offset): Remove.
12961 (read_indirect_string, read_indirect_line_string)
12962 (dwarf_decode_macro_bytes): Update.
12963
12964 2020-03-26 Tom Tromey <tom@tromey.com>
12965
12966 * dwarf2/section.h (struct dwarf2_section_info)
12967 <overload_complaint>: Declare.
12968 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12969 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12970 Rename from dwarf2_section_buffer_overflow_complaint.
12971 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12972 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12973
12974 2020-03-26 Tom Tromey <tom@tromey.com>
12975
12976 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12977 Declare.
12978 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12979 Move from read.c.
12980 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12981 to section.c.
12982
12983 2020-03-26 Tom Tromey <tom@tromey.com>
12984
12985 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12986
12987 2020-03-26 Tom Tromey <tom@tromey.com>
12988
12989 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12990 "builder".
12991 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12992 parameter.
12993 (dwarf_decode_macros): Update.
12994
12995 2020-03-26 Tom Tromey <tom@tromey.com>
12996
12997 * dwarf2/read.c (read_attribute_value): Update.
12998 (read_indirect_string_from_dwz): Move to dwz.c; change into
12999 method.
13000 (dwarf_decode_macro_bytes): Update.
13001 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13002 * dwarf2/dwz.c: New file.
13003 * Makefile.in (COMMON_SFILES): Add dwz.c.
13004
13005 2020-03-26 Tom Tromey <tom@tromey.com>
13006
13007 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13008 * dwarf2/read.c: Add include.
13009 * dwarf2/index-write.c: Add include.
13010 * dwarf2/index-cache.c: Add include.
13011 * dwarf2/dwz.h: New file.
13012
13013 2020-03-25 Tom Tromey <tom@tromey.com>
13014
13015 * compile/compile-object-load.c (get_out_value_type): Mention
13016 correct symbol name in error message.
13017
13018 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13019
13020 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13021
13022 2020-03-25 Tom de Vries <tdevries@suse.de>
13023
13024 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13025 * symmisc.c (dump_symtab_1): Print user and includes fields.
13026 (maintenance_info_symtabs): Same.
13027
13028 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13029
13030 PR gdb/25534
13031 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13032 (riscv_regcache_cooked_write): New function.
13033 (riscv_push_dummy_call): Use new function.
13034 (riscv_return_value): Likewise.
13035
13036 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13037
13038 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13039 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13040 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13041 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13042 * infrun.c (follow_fork): Likewise.
13043 (follow_fork_inferior): Likewise.
13044 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13045 * linux-nat.h (class linux_nat_target): Likewise.
13046 * remote.c (class remote_target) <follow_fork>: Likewise.
13047 (remote_target::follow_fork): Likewise.
13048 * target-delegates.c: Re-generate.
13049 * target.c (default_follow_fork): Likewise.
13050 (target_follow_fork): Likewise.
13051 * target.h (struct target_ops) <follow_fork>: Likewise.
13052 (target_follow_fork): Likewise.
13053
13054 2020-03-24 Tom de Vries <tdevries@suse.de>
13055
13056 * psymtab.c (maintenance_info_psymtabs): Print user field.
13057
13058 2020-03-20 Tom Tromey <tromey@adacore.com>
13059
13060 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13061 const.
13062 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13063 const.
13064
13065 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13066
13067 * ptrace.m4: Don't check for ptrace declaration.
13068 * config.in: Re-generate.
13069 * configure: Re-generate.
13070 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13071 not defined.
13072
13073 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13074
13075 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13076 `PTRACE_TYPE_RET'.
13077 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13078 * sparc-nat.c (gdb_ptrace): Likewise.
13079 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13080
13081 2020-03-20 Tom Tromey <tromey@adacore.com>
13082
13083 * c-exp.y (lex_one_token): Fix assert.
13084
13085 2020-03-20 Tom Tromey <tromey@adacore.com>
13086
13087 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13088 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13089 strncpy call.
13090
13091 2020-03-20 Tom Tromey <tromey@adacore.com>
13092
13093 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13094
13095 2020-03-20 Tom Tromey <tromey@adacore.com>
13096
13097 * ada-valprint.c (print_variant_part): Remove parameters; switch
13098 to value-based API.
13099 (print_field_values): Likewise.
13100 (ada_val_print_struct_union): Likewise.
13101 (ada_value_print_1): Update.
13102
13103 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13104
13105 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13106 nbsd_nat_target instead of inf_ptrace_target.
13107 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13108 nbsd_nat_target.
13109
13110 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13111
13112 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13113 it to the ptrace call.
13114 * (store_registers): Likewise.
13115
13116 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13117
13118 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13119 it to the ptrace call.
13120 * (store_registers): Likewise.
13121
13122 2020-03-19 Luis Machado <luis.machado@linaro.org>
13123
13124 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13125 valid, fetch vg value from ptrace.
13126
13127 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13128 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13129 * inf-ptrace.c: Likewise.
13130 * (gdb_ptrace): Add.
13131 * (inf_ptrace_target::resume): Update.
13132 * (inf_ptrace_target::xfer_partial): Likewise.
13133 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13134 * (inf_ptrace_peek_poke): Update.
13135
13136 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13137
13138 * x86-bsd-nat.c (gdb_ptrace): New.
13139 * (x86bsd_dr_set): Add new argument `ptid'.
13140 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13141 x86bsd_dr_set_addr): Update.
13142
13143 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13144
13145 * remote.c (remote_target::process_stop_reply): Handle events for
13146 all threads differently.
13147
13148 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13149
13150 * completer.c (completion_tracker::remove_completion): Define new
13151 function.
13152 * completer.h (completion_tracker::remove_completion): Declare new
13153 function.
13154 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13155 when adding a C++ function symbol.
13156
13157 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13158
13159 * completer.c (completion_tracker::completion_hash_entry): Define
13160 new class.
13161 (advance_to_filename_complete_word_point): Call
13162 recompute_lowest_common_denominator.
13163 (completion_tracker::completion_tracker): Call discard_completions
13164 to setup the hash table.
13165 (completion_tracker::discard_completions): Allow for being called
13166 from the constructor, pass new equal function, and element deleter
13167 when constructing the hash table. Initialise new class member
13168 variables.
13169 (completion_tracker::maybe_add_completion): Remove use of
13170 m_entries_vec, and store more information into m_entries_hash.
13171 (completion_tracker::recompute_lcd_visitor): New function, most
13172 content taken from...
13173 (completion_tracker::recompute_lowest_common_denominator):
13174 ...here, this now just visits each item in the hash calling the
13175 above visitor.
13176 (completion_tracker::build_completion_result): Remove use of
13177 m_entries_vec, call recompute_lowest_common_denominator.
13178 * completer.h (completion_tracker::have_completions): Remove use
13179 of m_entries_vec.
13180 (completion_tracker::completion_hash_entry): Declare new class.
13181 (completion_tracker::recompute_lowest_common_denominator): Change
13182 function signature.
13183 (completion_tracker::recompute_lcd_visitor): Declare new function.
13184 (completion_tracker::m_entries_vec): Delete.
13185 (completion_tracker::m_entries_hash): Initialize to NULL.
13186 (completion_tracker::m_lowest_common_denominator_valid): New
13187 member variable.
13188 (completion_tracker::m_lowest_common_denominator_max_length): New
13189 member variable.
13190
13191 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13192
13193 * regformats/regdef.h: Put reg in gdb namespace.
13194
13195 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13196
13197 * i386-bsd-nat.c (gdb_ptrace): New.
13198 * (i386bsd_fetch_inferior_registers,
13199 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13200 * (i386bsd_fetch_inferior_registers,
13201 i386bsd_store_inferior_registers) Use gdb_ptrace.
13202
13203 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13204
13205 * amd64-bsd-nat.c (gdb_ptrace): New.
13206 * (amd64bsd_fetch_inferior_registers,
13207 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13208 * (amd64bsd_fetch_inferior_registers,
13209 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13210
13211 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13212
13213 * user-regs.c (user_reg::read): Rename to...
13214 (user_reg::xread): ...this.
13215 * (append_user_reg): Rename argument `read' to `xread'.
13216 * (user_reg_add_builtin): Likewise.
13217 * (user_reg_add): Likewise.
13218 * (value_of_user_reg): Likewise.
13219
13220 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13221
13222 * sparc-nat.c (gdb_ptrace): New.
13223 * sparc-nat.c (sparc_fetch_inferior_registers)
13224 (sparc_store_inferior_registers) Remove obsolete comment.
13225 * sparc-nat.c (sparc_fetch_inferior_registers)
13226 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13227 * sparc-nat.c (sparc_fetch_inferior_registers)
13228 (sparc_store_inferior_registers) Use gdb_ptrace.
13229
13230 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13231
13232 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13233 it to the ptrace call.
13234 * sh-nbsd-nat.c (store_registers): Likewise.
13235
13236 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13237
13238 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13239 nbsd_nat_target instead of inf_ptrace_target.
13240 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13241 nbsd_nat_target.
13242
13243 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13244
13245 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13246
13247 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13248
13249 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13250 <sys/sysctl.h>.
13251 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13252
13253 2020-03-17 Tom de Vries <tdevries@suse.de>
13254
13255 PR gdb/23710
13256 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13257 fields.
13258 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13259 fields.
13260 (process_imported_unit_die): Skip import of c++ CUs.
13261
13262 2020-03-16 Tom Tromey <tom@tromey.com>
13263
13264 * p-valprint.c (pascal_object_print_value): Initialize
13265 base_value.
13266
13267 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13268 Shahab Vahedi <shahab@synopsys.com>
13269
13270 * Makefile.in: Add arch/arc.o
13271 * configure.tgt: Likewise.
13272 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13273 (_initialize_arc_tdep): Don't initialize old target descriptions.
13274 (arc_read_description): New function to cache target descriptions.
13275 * arc-tdep.h (arc_read_description): Add proto type.
13276 * arch/arc.c: New file.
13277 * arch/arc.h: Likewise.
13278 * features/Makefile: Replace old target descriptions with new.
13279 * features/arc-arcompact.c: Remove.
13280 * features/arc-arcompact.xml: Likewise.
13281 * features/arc-v2.c: Likewise
13282 * features/arc-v2.xml: Likewise
13283 * features/arc/aux-arcompact.xml: New file.
13284 * features/arc/aux-v2.xml: Likewise.
13285 * features/arc/core-arcompact.xml: Likewise.
13286 * features/arc/core-v2.xml: Likewise.
13287 * features/arc/aux-arcompact.c: Generate.
13288 * features/arc/aux-v2.c: Likewise.
13289 * features/arc/core-arcompact.c: Likewise.
13290 * features/arc/core-v2.c: Likewise.
13291 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13292
13293 2020-03-16 Tom Tromey <tromey@adacore.com>
13294
13295 PR gdb/25663:
13296 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13297 putting value into bcache.
13298
13299 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13300
13301 PR gdb/21500
13302 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13303 to...
13304 (amd64_windows_init_abi_common): ... this. Don't set size of
13305 long type.
13306 (amd64_windows_init_abi): New function.
13307 (amd64_cygwin_init_abi): New function.
13308 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13309 the Cygwin OS ABI.
13310 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13311 comment.
13312
13313 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13314
13315 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13316 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13317 (pe_import_directory_entry): New struct type.
13318 (is_linked_with_cygwin_dll): New function.
13319 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13320 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13321 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13322
13323 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13324
13325 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13326 i386_cygwin_core_osabi_sniffer.
13327
13328 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13329
13330 * i386-cygwin-tdep.c: Rename to...
13331 * i386-windows-tdep.c: ... this.
13332 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13333 i386-windows-tdep.c.
13334 * configure.tgt: Likewise.
13335
13336 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13337
13338 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13339 * osabi.c (gdb_osabi_names): Add "Windows".
13340 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13341 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13342 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13343 i386_cygwin_osabi_sniffer.
13344 (_initialize_i386_cygwin_tdep): Register OS ABI
13345 GDB_OSABI_WINDOWS for i386.
13346 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13347 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13348 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13349 for x86-64.
13350 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13351 when the target matches '*-*-mingw*'.
13352
13353 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13354
13355 * defs.h (enum gdb_osabi): Move to...
13356 * osabi.h (enum gdb_osabi): ... here.
13357 * gdbarch.sh: Include osabi.h in gdbarch.h.
13358 * gdbarch.h: Re-generate.
13359
13360 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13361
13362 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13363 function.
13364 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13365
13366 2020-03-14 Tom Tromey <tom@tromey.com>
13367
13368 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13369 for C++.
13370 (c_type_print_modifier): Likewise. Add "language" parameter.
13371 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13372 (c_type_print_base_1): Update.
13373 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13374 constants.
13375 * type-stack.c (type_stack::insert): Handle tp_atomic and
13376 tp_restrict.
13377 (type_stack::follow_type_instance_flags): Likewise.
13378 (type_stack::follow_types): Likewise. Merge type-following code.
13379 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13380 (space_identifier, cv_with_space_id)
13381 (const_or_volatile_or_space_identifier_noopt)
13382 (const_or_volatile_or_space_identifier): Remove.
13383 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13384 rules.
13385 (ptr_operator, typebase): Update.
13386 (enum token_flag) <FLAG_C>: New constant.
13387 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13388 "_Atomic".
13389 (lex_one_token): Handle FLAG_C.
13390
13391 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13392
13393 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13394 it to the ptrace call.
13395 * m68k-bsd-nat.c (store_registers): Likewise.
13396
13397 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13398
13399 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13400 gdb_byte *.
13401 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13402 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13403 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13404
13405 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13406
13407 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13408 nbsd_nat_target instead of inf_ptrace_target.
13409 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13410 nbsd_nat_target.
13411
13412 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13413
13414 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13415 register_t.
13416
13417 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13418
13419 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13420 it to the ptrace call.
13421 * alpha-bsd-nat.c (store_registers): Likewise.
13422
13423 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13424
13425 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13426 includes.
13427 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13428 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13429 fill_fpregset): Likewise.
13430
13431 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13432
13433 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13434 nbsd_nat_target instead of inf_ptrace_target.
13435 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13436 nbsd_nat_target.
13437
13438 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13439
13440 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13441 register_t.
13442
13443 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13444
13445 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13446 it to the ptrace call.
13447 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13448 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13449 * arm-nbsd-nat.c (store_register): Likewise.
13450 * arm-nbsd-nat.c (store_regs): Likewise.
13451 * arm-nbsd-nat.c (store_fp_register): Likewise.
13452 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13453
13454 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13455
13456 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13457 nbsd_nat_target instead of inf_ptrace_target.
13458 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13459 nbsd_nat_target.
13460
13461 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13462
13463 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13464 it to the ptrace call.
13465 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13466
13467 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13468
13469 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13470 it to the ptrace call.
13471 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13472
13473 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13474
13475 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13476 gdb_byte *.
13477 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13478
13479 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13480
13481 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13482 instead of inf_ptrace_target.
13483 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13484 nbsd_nat_target.
13485
13486 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13487
13488 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13489 register_t.
13490
13491 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13492
13493 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13494 register_t.
13495
13496 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13497
13498 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13499 register_t.
13500
13501 2020-03-13 Tom Tromey <tom@tromey.com>
13502
13503 * value.h (val_print): Don't declare.
13504 * valprint.h (val_print_array_elements)
13505 (val_print_scalar_formatted, generic_val_print): Don't declare.
13506 * valprint.c (generic_val_print_array): Take a struct value.
13507 (generic_val_print_ptr, generic_val_print_memberptr)
13508 (generic_val_print_bool, generic_val_print_int)
13509 (generic_val_print_char, generic_val_print_complex)
13510 (generic_val_print): Remove.
13511 (generic_value_print): Update.
13512 (do_val_print): Remove unused parameters. Don't call
13513 la_val_print.
13514 (val_print): Remove.
13515 (common_val_print): Update. Don't call value_check_printable.
13516 (val_print_scalar_formatted, val_print_array_elements): Remove.
13517 * rust-lang.c (rust_val_print): Remove.
13518 (rust_language_defn): Update.
13519 * p-valprint.c (pascal_val_print): Remove.
13520 (pascal_value_print_inner): Update.
13521 (pascal_object_print_val_fields, pascal_object_print_val):
13522 Remove.
13523 (pascal_object_print_static_field): Update.
13524 * p-lang.h (pascal_val_print): Don't declare.
13525 * p-lang.c (pascal_language_defn): Update.
13526 * opencl-lang.c (opencl_language_defn): Update.
13527 * objc-lang.c (objc_language_defn): Update.
13528 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13529 * m2-lang.h (m2_val_print): Don't declare.
13530 * m2-lang.c (m2_language_defn): Update.
13531 * language.h (struct language_defn) <la_val_print>: Remove.
13532 * language.c (unk_lang_value_print_inner): Rename. Change
13533 argument types.
13534 (unknown_language_defn, auto_language_defn): Update.
13535 * go-valprint.c (go_val_print): Remove.
13536 * go-lang.h (go_val_print): Don't declare.
13537 * go-lang.c (go_language_defn): Update.
13538 * f-valprint.c (f_val_print): Remove.
13539 * f-lang.h (f_value_print): Don't declare.
13540 * f-lang.c (f_language_defn): Update.
13541 * d-valprint.c (d_val_print): Remove.
13542 * d-lang.h (d_value_print): Don't declare.
13543 * d-lang.c (d_language_defn): Update.
13544 * cp-valprint.c (cp_print_value_fields)
13545 (cp_print_value_fields_rtti, cp_print_value): Remove.
13546 (cp_print_static_field): Update.
13547 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13548 (c_val_print_struct, c_val_print_union, c_val_print_int)
13549 (c_val_print_memberptr, c_val_print): Remove.
13550 * c-lang.h (c_val_print_array, cp_print_value_fields)
13551 (cp_print_value_fields_rtti): Don't declare.
13552 * c-lang.c (c_language_defn, cplus_language_defn)
13553 (asm_language_defn, minimal_language_defn): Update.
13554 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13555 (ada_val_print_enum): Take a struct value.
13556 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13557 (ada_val_print): Remove.
13558 (ada_value_print_1): Update.
13559 (printable_val_type): Remove.
13560 * ada-lang.h (ada_val_print): Don't declare.
13561 * ada-lang.c (ada_language_defn): Update.
13562
13563 2020-03-13 Tom Tromey <tom@tromey.com>
13564
13565 * valprint.c (do_val_print): Update.
13566 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13567 a struct value.
13568 (value_to_value_object_no_release): Declare.
13569 * python/py-value.c (value_to_value_object_no_release): New
13570 function.
13571 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13572 struct value.
13573 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13574 function.
13575 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13576 a struct value.
13577 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13578 Declare.
13579 (gdbscm_apply_val_pretty_printer): Take a struct value.
13580 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13581 value.
13582 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13583 value.
13584 * extension-priv.h (struct extension_language_ops)
13585 <apply_val_pretty_printer>: Take a struct value.
13586 * cp-valprint.c (cp_print_value): Create a struct value.
13587 (cp_print_value): Update.
13588
13589 2020-03-13 Tom Tromey <tom@tromey.com>
13590
13591 * ada-valprint.c (print_field_values): Call common_val_print.
13592
13593 2020-03-13 Tom Tromey <tom@tromey.com>
13594
13595 * ada-valprint.c (val_print_packed_array_elements): Remove
13596 bitoffset and val parameters. Call common_val_print.
13597 (ada_val_print_string): Remove offset, address, and original_value
13598 parameters.
13599 (ada_val_print_array): Update.
13600 (ada_value_print_array): New function.
13601 (ada_value_print_1): Call it.
13602
13603 2020-03-13 Tom Tromey <tom@tromey.com>
13604
13605 * ada-valprint.c (ada_value_print): Use common_val_print.
13606
13607 2020-03-13 Tom Tromey <tom@tromey.com>
13608
13609 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13610
13611 2020-03-13 Tom Tromey <tom@tromey.com>
13612
13613 * ada-valprint.c (ada_value_print_num): New function.
13614 (ada_value_print_1): Use it.
13615
13616 2020-03-13 Tom Tromey <tom@tromey.com>
13617
13618 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13619
13620 2020-03-13 Tom Tromey <tom@tromey.com>
13621
13622 * ada-valprint.c (ada_value_print_ptr): New function.
13623 (ada_value_print_1): Use it.
13624
13625 2020-03-13 Tom Tromey <tom@tromey.com>
13626
13627 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13628 call common_val_print.
13629 (ada_val_print_1): Update.
13630 (ada_value_print_1): New function.
13631 (ada_value_print_inner): Rewrite.
13632
13633 2020-03-13 Tom Tromey <tom@tromey.com>
13634
13635 * cp-valprint.c (cp_print_value_fields): Update.
13636 (cp_print_value): New function.
13637
13638 2020-03-13 Tom Tromey <tom@tromey.com>
13639
13640 * m2-valprint.c (m2_value_print_inner): Use
13641 cp_print_value_fields.
13642 * cp-valprint.c (cp_print_value_fields): New function.
13643 * c-valprint.c (c_value_print_struct): New function.
13644 (c_value_print_inner): Use c_value_print_struct.
13645 * c-lang.h (cp_print_value_fields): Declare.
13646
13647 2020-03-13 Tom Tromey <tom@tromey.com>
13648
13649 * c-valprint.c (c_value_print_array): New function.
13650 (c_value_print_inner): Use it.
13651
13652 2020-03-13 Tom Tromey <tom@tromey.com>
13653
13654 * c-valprint.c (c_value_print_memberptr): New function.
13655 (c_value_print_inner): Use it.
13656
13657 2020-03-13 Tom Tromey <tom@tromey.com>
13658
13659 * c-valprint.c (c_value_print_int): New function.
13660 (c_value_print_inner): Use it.
13661
13662 2020-03-13 Tom Tromey <tom@tromey.com>
13663
13664 * c-valprint.c (c_value_print_ptr): New function.
13665 (c_value_print_inner): Use it.
13666
13667 2020-03-13 Tom Tromey <tom@tromey.com>
13668
13669 * c-valprint.c (c_value_print_inner): Rewrite.
13670
13671 2020-03-13 Tom Tromey <tom@tromey.com>
13672
13673 * valprint.c (generic_value_print_complex): New function.
13674 (generic_value_print): Use it.
13675
13676 2020-03-13 Tom Tromey <tom@tromey.com>
13677
13678 * valprint.c (generic_val_print_float): Don't call
13679 val_print_scalar_formatted.
13680 (generic_val_print, generic_value_print): Update.
13681
13682 2020-03-13 Tom Tromey <tom@tromey.com>
13683
13684 * valprint.c (generic_value_print_char): New function
13685 (generic_value_print): Use it.
13686
13687 2020-03-13 Tom Tromey <tom@tromey.com>
13688
13689 * valprint.c (generic_value_print_int): New function.
13690 (generic_value_print): Use it.
13691
13692 2020-03-13 Tom Tromey <tom@tromey.com>
13693
13694 * valprint.c (generic_value_print_bool): New function.
13695 (generic_value_print): Use it.
13696
13697 2020-03-13 Tom Tromey <tom@tromey.com>
13698
13699 * valprint.c (generic_val_print_func): Simplify.
13700 (generic_val_print, generic_value_print): Update.
13701
13702 2020-03-13 Tom Tromey <tom@tromey.com>
13703
13704 * valprint.c (generic_val_print_flags): Remove.
13705 (generic_val_print, generic_value_print): Update.
13706 (val_print_type_code_flags): Add original_value parameter.
13707
13708 2020-03-13 Tom Tromey <tom@tromey.com>
13709
13710 * valprint.c (generic_val_print): Update.
13711 (generic_value_print): Update.
13712 * valprint.c (generic_val_print_enum): Don't call
13713 val_print_scalar_formatted.
13714
13715 2020-03-13 Tom Tromey <tom@tromey.com>
13716
13717 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13718 * valprint.c (generic_value_print_ptr): New function.
13719
13720 2020-03-13 Tom Tromey <tom@tromey.com>
13721
13722 * valprint.c (generic_value_print): Rewrite.
13723
13724 2020-03-13 Tom Tromey <tom@tromey.com>
13725
13726 * p-valprint.c (pascal_object_print_value_fields)
13727 (pascal_object_print_value): New functions.
13728
13729 2020-03-13 Tom Tromey <tom@tromey.com>
13730
13731 * p-valprint.c (pascal_value_print_inner): Rewrite.
13732
13733 2020-03-13 Tom Tromey <tom@tromey.com>
13734
13735 * f-valprint.c (f_value_print_innner): Rewrite.
13736
13737 2020-03-13 Tom Tromey <tom@tromey.com>
13738
13739 * m2-valprint.c (m2_print_unbounded_array): New overload.
13740 (m2_print_unbounded_array): Update.
13741 (m2_print_array_contents): Take a struct value.
13742 (m2_value_print_inner): Rewrite.
13743
13744 2020-03-13 Tom Tromey <tom@tromey.com>
13745
13746 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13747 (d_value_print_inner): New function.
13748 * d-lang.h (d_value_print_inner): Declare.
13749 * d-lang.c (d_language_defn): Use d_value_print_inner.
13750
13751 2020-03-13 Tom Tromey <tom@tromey.com>
13752
13753 * go-valprint.c (go_value_print_inner): New function.
13754 * go-lang.h (go_value_print_inner): Declare.
13755 * go-lang.c (go_language_defn): Use go_value_print_inner.
13756
13757 2020-03-13 Tom Tromey <tom@tromey.com>
13758
13759 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13760 API.
13761 (rust_val_print): Rewrite.
13762 (rust_value_print_inner): New function, from rust_val_print.
13763 (rust_language_defn): Use rust_value_print_inner.
13764
13765 2020-03-13 Tom Tromey <tom@tromey.com>
13766
13767 * ada-valprint.c (ada_value_print_inner): New function.
13768 * ada-lang.h (ada_value_print_inner): Declare.
13769 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13770
13771 2020-03-13 Tom Tromey <tom@tromey.com>
13772
13773 * f-valprint.c (f_value_print_innner): New function.
13774 * f-lang.h (f_value_print_innner): Declare.
13775 * f-lang.c (f_language_defn): Use f_value_print_innner.
13776
13777 2020-03-13 Tom Tromey <tom@tromey.com>
13778
13779 * p-valprint.c (pascal_value_print_inner): New function.
13780 * p-lang.h (pascal_value_print_inner): Declare.
13781 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13782
13783 2020-03-13 Tom Tromey <tom@tromey.com>
13784
13785 * m2-valprint.c (m2_value_print_inner): New function.
13786 * m2-lang.h (m2_value_print_inner): Declare.
13787 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13788
13789 2020-03-13 Tom Tromey <tom@tromey.com>
13790
13791 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13792 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13793 * c-valprint.c (c_value_print_inner): New function.
13794 * c-lang.h (c_value_print_inner): Declare.
13795 * c-lang.c (c_language_defn, cplus_language_defn)
13796 (asm_language_defn, minimal_language_defn): Use
13797 c_value_print_inner.
13798
13799 2020-03-13 Tom Tromey <tom@tromey.com>
13800
13801 * p-valprint.c (pascal_object_print_value_fields): Now static.
13802 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13803
13804 2020-03-13 Tom Tromey <tom@tromey.com>
13805
13806 * c-valprint.c (c_val_print_array): Simplify.
13807
13808 2020-03-13 Tom Tromey <tom@tromey.com>
13809
13810 * valprint.c (value_print_array_elements): New function.
13811 * valprint.h (value_print_array_elements): Declare.
13812
13813 2020-03-13 Tom Tromey <tom@tromey.com>
13814
13815 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13816 * mips-tdep.c (mips_print_register): Use
13817 value_print_scalar_formatted.
13818
13819 2020-03-13 Tom Tromey <tom@tromey.com>
13820
13821 * valprint.h (value_print_scalar_formatted): Declare.
13822 * valprint.c (value_print_scalar_formatted): New function.
13823
13824 2020-03-13 Tom Tromey <tom@tromey.com>
13825
13826 * valprint.h (generic_value_print): Declare.
13827 * valprint.c (generic_value_print): New function.
13828
13829 2020-03-13 Tom Tromey <tom@tromey.com>
13830
13831 * valprint.c (do_val_print): Call la_value_print_inner, if
13832 available.
13833 * rust-lang.c (rust_language_defn): Update.
13834 * p-lang.c (pascal_language_defn): Update.
13835 * opencl-lang.c (opencl_language_defn): Update.
13836 * objc-lang.c (objc_language_defn): Update.
13837 * m2-lang.c (m2_language_defn): Update.
13838 * language.h (struct language_defn) <la_value_print_inner>: New
13839 member.
13840 * language.c (unknown_language_defn, auto_language_defn): Update.
13841 * go-lang.c (go_language_defn): Update.
13842 * f-lang.c (f_language_defn): Update.
13843 * d-lang.c (d_language_defn): Update.
13844 * c-lang.c (c_language_defn, cplus_language_defn)
13845 (asm_language_defn, minimal_language_defn): Update.
13846 * ada-lang.c (ada_language_defn): Update.
13847
13848 2020-03-13 Tom Tromey <tom@tromey.com>
13849
13850 * c-valprint.c (c_value_print): Use common_val_print.
13851
13852 2020-03-13 Tom Tromey <tom@tromey.com>
13853
13854 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13855
13856 2020-03-13 Tom Tromey <tom@tromey.com>
13857
13858 * f-valprint.c (f77_print_array_1, f_val_print): Use
13859 common_val_print.
13860
13861 2020-03-13 Tom Tromey <tom@tromey.com>
13862
13863 * riscv-tdep.c (riscv_print_one_register_info): Use
13864 common_val_print.
13865
13866 2020-03-13 Tom Tromey <tom@tromey.com>
13867
13868 * mi/mi-main.c (output_register): Use common_val_print.
13869
13870 2020-03-13 Tom Tromey <tom@tromey.com>
13871
13872 * infcmd.c (default_print_one_register_info): Use
13873 common_val_print.
13874
13875 2020-03-13 Tom Tromey <tom@tromey.com>
13876
13877 * valprint.h (common_val_print_checked): Declare.
13878 * valprint.c (common_val_print_checked): New function.
13879 * stack.c (print_frame_arg): Use common_val_print_checked.
13880
13881 2020-03-13 Tom Tromey <tom@tromey.com>
13882
13883 * valprint.c (do_val_print): New function, from val_print.
13884 (val_print): Use do_val_print.
13885 (common_val_print): Use do_val_print.
13886
13887 2020-03-13 Tom Tromey <tom@tromey.com>
13888
13889 * valprint.c (value_print): Use scoped_value_mark.
13890
13891 2020-03-13 Tom de Vries <tdevries@suse.de>
13892
13893 PR symtab/25646
13894 * psymtab.c (partial_symtab::partial_symtab): Don't set
13895 globals_offset and statics_offset. Push element onto
13896 current_global_psymbols and current_static_psymbols stacks.
13897 (concat): New function.
13898 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13899 element from current_global_psymbols and current_static_psymbols
13900 stacks. Concat popped elements to global_psymbols and
13901 static_symbols.
13902 (add_psymbol_to_list): Use current_global_psymbols and
13903 current_static_psymbols stacks.
13904 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13905 current_static_psymbols fields.
13906
13907 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13908
13909 * corelow.c (sniff_core_bfd): Remove.
13910 (class core_target) <m_core_vec>: Remove.
13911 (core_target::core_target): Update.
13912 (core_file_fns): Remove.
13913 (deprecated_add_core_fns): Remove.
13914 (default_core_sniffer): Remove.
13915 (sniff_core_bfd): Remove.
13916 (default_check_format): Remove.
13917 (gdb_check_format): Remove.
13918 (core_target_open): Update.
13919 (core_target::get_core_register_section): Update.
13920 (get_core_registers_cb): Update.
13921 (core_target::fetch_registers): Update.
13922 * gdbcore.h (struct core_fns): Remove.
13923 (deprecated_add_core_fns): Remove.
13924 (default_core_sniffer): Remove.
13925 (default_check_format): Remove.
13926
13927 2020-03-12 Tom Tromey <tom@tromey.com>
13928
13929 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13930 CORE_ADDR.
13931 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13932
13933 2020-03-12 Tom Tromey <tom@tromey.com>
13934
13935 * remote.c (remote_target::download_tracepoint)
13936 (remote_target::enable_tracepoint)
13937 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13938 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13939 sprintf_vma.
13940
13941 2020-03-12 Tom Tromey <tom@tromey.com>
13942
13943 * symfile-mem.c: Update CORE_ADDR size assert.
13944
13945 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13946
13947 * selftest.m4: Move to gdbsupport/.
13948 * acinclude.m4: Update path to selftest.m4.
13949
13950 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13951
13952 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13953 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13954 gdbarch-selfselftests.c and selftest-arch.c.
13955 (SUBDIR_UNITTESTS_OBS): Rename to...
13956 (SELFTESTS_OBS): ... this.
13957 (COMMON_SFILES): Remove disasm-selftests.c and
13958 gdbarch-selftests.c.
13959 * configure.ac: Don't add selftest-arch.{c,o} to
13960 CONFIG_{SRCS,OBS}.
13961 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13962 preprocessor conditions.
13963
13964 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13965
13966 * configure.ac: Don't source bfd/development.sh.
13967 * selftest.m4: Modify comment.
13968 * configure: Re-generate.
13969
13970 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13971
13972 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13973 not "true" or "false".
13974 * configure: Re-generate.
13975
13976 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13977
13978 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13979 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13980 renamed to arm_nbsd_supply_gregset.
13981 (fetch_register): Update to call arm_nbsd_supply_gregset.
13982 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13983 (arm_netbsd_nat_target::fetch_registers): Update.
13984 (fetch_elfcore_registers): Removed.
13985 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13986 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13987 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13988 not require NetBSD system headers.
13989 (arm_nbsd_regset): New struct.
13990 (arm_nbsd_iterate_over_regset_sections): New function.
13991 (arm_netbsd_init_abi_common): Updated to call
13992 set_gdbarch_iterate_over_regset_sections.
13993 * arm-nbsd-tdep.h: New file.
13994
13995 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13996
13997 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13998 recursion.
13999
14000 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14001
14002 * configure: Re-generate.
14003
14004 2020-03-11 Tom Tromey <tromey@adacore.com>
14005
14006 * ada-typeprint.c (print_choices): Fix comment.
14007
14008 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14009
14010 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14011 previous item in the list, when the list has no items.
14012
14013 2020-03-11 Tom de Vries <tdevries@suse.de>
14014
14015 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14016 PROP_LOCLIST handling code.
14017
14018 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14019
14020 * buildsym-legacy.c (record_line): Pass extra parameter to
14021 record_line.
14022 * buildsym.c (buildsym_compunit::record_line): Take an extra
14023 parameter, reduce duplication in the line table, and record the
14024 is_stmt flag in the line table.
14025 * buildsym.h (buildsym_compunit::record_line): Add extra
14026 parameter.
14027 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14028 non-statement lines.
14029 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14030 this to the symtab builder.
14031 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14032 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14033 through to dwarf_record_line_1.
14034 * infrun.c (process_event_stop_test): When stepping, don't stop at
14035 a non-statement instruction, and only refresh the step info when
14036 we land in the middle of a line's range. Also add an extra
14037 comment.
14038 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14039 field.
14040 * record-btrace.c (btrace_find_line_range): Only record lines
14041 marked as is-statement.
14042 * stack.c (frame_show_address): Show the frame address if we are
14043 in a non-statement sal.
14044 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14045 (maintenance_print_one_line_table): Print a header for the is_stmt
14046 column, and include is_stmt information in the output.
14047 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14048 preference to non-statements.
14049 (find_pcs_for_symtab_line): Prefer is-statement entries.
14050 (find_line_common): Likewise.
14051 * symtab.h (struct linetable_entry): Add is_stmt field.
14052 (struct symtab_and_line): Likewise.
14053 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14054 arranging the line table.
14055
14056 2020-03-07 Tom de Vries <tdevries@suse.de>
14057
14058 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14059 DIE.
14060
14061 2020-03-07 Tom Tromey <tom@tromey.com>
14062
14063 * valops.c (value_literal_complex): Remove obsolete comment.
14064 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14065 comment.
14066
14067 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14068
14069 * infrun.h: Forward-declare thread_info.
14070 (set_step_info): Add thread_info parameter, add doc.
14071 * infrun.c (set_step_info): Add thread_info parameter, move doc
14072 to header.
14073 * infrun.c (process_event_stop_test): Pass thread to
14074 set_step_info call.
14075 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14076 set_step_info.
14077 (prepare_one_step): Add thread_info parameter, pass it to
14078 set_step_frame and prepare_one_step (recursive) call.
14079 (step_1): Pass thread to prepare_one_step call.
14080 (step_command_fsm::should_stop): Pass thread to
14081 prepare_one_step.
14082 (until_next_fsm): Pass thread to set_step_frame call.
14083 (finish_command): Pass thread to set_step_info call.
14084
14085 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14086
14087 * windows-tdep.c (windows_solib_create_inferior_hook):
14088 Check if inferior is running.
14089
14090 2020-03-06 Tom de Vries <tdevries@suse.de>
14091
14092 * NEWS: Fix "the the".
14093 * ctfread.c: Same.
14094
14095 2020-03-06 Tom de Vries <tdevries@suse.de>
14096
14097 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14098
14099 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14100
14101 * .dir-locals.el: Add a comment referencing the other copies of
14102 this file.
14103
14104 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14105
14106 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14107 psargs.
14108
14109 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14110
14111 * .gitattributes: New file.
14112
14113 2020-03-04 Tom Tromey <tom@tromey.com>
14114
14115 * symmisc.c (print_symbol_bcache_statistics)
14116 (print_objfile_statistics): Update.
14117 * symfile.c (allocate_symtab): Use intern.
14118 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14119 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14120 macro_cache>: Remove.
14121 <string_cache>: New member.
14122 (struct objfile) <intern>: New methods.
14123 * elfread.c (elf_symtab_read): Use intern.
14124 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14125 (dwarf2_compute_name, dwarf2_physname)
14126 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14127 names.
14128 (guess_partial_die_structure_name): Update.
14129 (partial_die_info::fixup): Intern name.
14130 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14131 name.
14132 (dwarf2_name): Intern name. Update.
14133 * buildsym.c (buildsym_compunit::get_macro_table): Use
14134 string_cache.
14135
14136 2020-03-04 Tom Tromey <tom@tromey.com>
14137
14138 * jit.c (bfd_open_from_target_memory): Make "target" const.
14139 * corefile.c (gnutarget): Now const.
14140 * gdbcore.h (gnutarget): Now const.
14141
14142 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14143
14144 * NEWS: Mention support for WOW64 processes.
14145 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14146 (amd64_windows_segment_register_p): Remove static.
14147 (_initialize_amd64_windows_nat): Update.
14148 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14149 * i386-windows-nat.c (context_offset): Update.
14150 (i386_mappings): Rename and remove static.
14151 (i386_windows_segment_register_p): Remove static.
14152 (_initialize_i386_windows_nat): Update.
14153 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14154 (STATUS_WX86_SINGLE_STEP): New macro.
14155 (EnumProcessModulesEx): New macro.
14156 (Wow64SuspendThread): New macro.
14157 (Wow64GetThreadContext): New macro.
14158 (Wow64SetThreadContext): New macro.
14159 (Wow64GetThreadSelectorEntry): New macro.
14160 (windows_set_context_register_offsets): Add static.
14161 (windows_set_segment_register_p): Likewise.
14162 (windows_add_thread): Adapt for WOW64 processes.
14163 (windows_fetch_one_register): Likewise.
14164 (windows_nat_target::fetch_registers): Likewise.
14165 (windows_store_one_register): Likewise.
14166 (display_selector): Likewise.
14167 (display_selectors): Likewise.
14168 (handle_exception): Likewise.
14169 (windows_continue): Likewise.
14170 (windows_nat_target::resume): Likewise.
14171 (windows_add_all_dlls): Likewise.
14172 (do_initial_windows_stuff): Likewise.
14173 (windows_nat_target::attach): Likewise.
14174 (windows_get_exec_module_filename): Likewise.
14175 (windows_nat_target::create_inferior): Likewise.
14176 (windows_xfer_siginfo): Likewise.
14177 (_initialize_loadable): Initialize Wow64SuspendThread,
14178 Wow64GetThreadContext, Wow64SetThreadContext,
14179 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14180 * windows-nat.h (windows_set_context_register_offsets):
14181 Remove declaration.
14182 (windows_set_segment_register_p): Likewise.
14183 (i386_windows_segment_register_p): Add declaration.
14184 (amd64_windows_segment_register_p): Likewise.
14185
14186 2020-03-04 Luis Machado <luis.machado@linaro.org>
14187
14188 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14189 in "info registers" for AArch64/ARM.
14190
14191 The change caused "info registers" to not print GPR's.
14192
14193 gdb/ChangeLog:
14194
14195 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14196
14197 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14198 when reg->group is empty and reggroup is not.
14199
14200 2020-03-03 Tom Tromey <tromey@adacore.com>
14201
14202 * dwarf2/frame.c (struct dwarf2_frame_cache)
14203 <checked_tailcall_bottom, entry_cfa_sp_offset,
14204 entry_cfa_sp_offset_p>: Remove members.
14205 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14206 (dwarf2_frame_prev_register): Don't call
14207 dwarf2_tailcall_sniffer_first.
14208 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14209 * frame-unwind.c (add_unwinder): New fuction.
14210 (frame_unwind_init): Use it. Add tailcall unwinder.
14211
14212 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14213 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14214
14215 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14216 value should be printed as true.
14217
14218 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14219
14220 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14221 (windows_init_abi): Set and use windows_so_ops.
14222
14223 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14224
14225 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14226 when verifying if dealing with a convenience variable.
14227
14228 2020-03-03 Luis Machado <luis.machado@linaro.org>
14229
14230 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14231
14232 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14233
14234 * infrun.c (gdbarch_supports_displaced_stepping): New.
14235 (use_displaced_stepping): Break up conditions in smaller pieces.
14236 Use gdbarch_supports_displaced_stepping.
14237 (displaced_step_prepare_throw): Use
14238 gdbarch_supports_displaced_stepping.
14239
14240 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14241
14242 * NEWS: Mention new behaviour of the history filename.
14243 * top.c (write_history_p): Add comment.
14244 (show_write_history_p): Add header comment, give a different
14245 message when history writing is on, but the history filename is
14246 empty.
14247 (history_filename): Add comment.
14248 (history_filename_empty): New function.
14249 (show_history_filename): Add header comment, give a different
14250 message when the filename is empty.
14251 (init_history): Compare history_filename against nullptr, and only
14252 read history if the filename is not empty.
14253 (set_history_filename): Add header comment, and only make
14254 non-empty filenames absolute.
14255 (init_main): Make the filename argument to 'set history filename'
14256 optional.
14257
14258 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14259
14260 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14261 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14262 (fetch_fp_register): Update.
14263 (fetch_fp_regs): Update.
14264 (store_fp_register): Update.
14265 (store_fp_regs): Update.
14266 (arm_netbsd_nat_target::read_description): New function.
14267 (fetch_elfcore_registers): Update.
14268
14269 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14270
14271 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14272 general_thread if the stop reply is missing a thread-id.
14273 (remote_target::process_stop_reply): Use the first non-exited
14274 thread if the target didn't pass a thread-id.
14275 * infrun.c (do_target_wait): Move call to
14276 switch_to_inferior_no_thread to ....
14277 (do_target_wait_1): ... here.
14278
14279 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14280
14281 * debuginfod-support.c: Include defs.h first.
14282
14283 2020-02-28 Tom de Vries <tdevries@suse.de>
14284
14285 * symfile.c (set_initial_language): Use default language for lookup.
14286
14287 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14288
14289 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14290 reader variable, pass `this` to read_cutu_die_from_dwo.
14291
14292 2020-02-27 Aaron Merey <amerey@redhat.com>
14293
14294 * source.c (open_source_file): Check for nullptr when computing
14295 srcpath.
14296
14297 2020-02-27 Tom Tromey <tromey@adacore.com>
14298
14299 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14300 member.
14301 (dwarf2_add_field): Don't update nfields.
14302 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14303
14304 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14305
14306 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14307 abs.
14308
14309 2020-02-26 Tom Tromey <tom@tromey.com>
14310
14311 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14312 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14313 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14314 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14315 per_cu_data.
14316
14317 2020-02-26 Tom Tromey <tom@tromey.com>
14318
14319 * dwarf2/index-write.c (psym_index_map): Change type.
14320 (add_address_entry_worker, write_one_signatured_type)
14321 (recursively_count_psymbols, recursively_write_psymbols)
14322 (class debug_names, psyms_seen_size, write_gdbindex)
14323 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14324
14325 2020-02-26 Aaron Merey <amerey@redhat.com>
14326
14327 * Makefile.in: Handle optional debuginfod support.
14328 * NEWS: Update.
14329 * README: Add --with-debuginfod summary.
14330 * config.in: Regenerate.
14331 * configure: Regenerate.
14332 * configure.ac: Handle optional debuginfod support.
14333 * debuginfod-support.c: debuginfod helper functions.
14334 * debuginfod-support.h: Ditto.
14335 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14336 summary.
14337 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14338 when a dwz file cannot be found.
14339 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14340 debuginfo file cannot be found.
14341 * source.c (open_source_file): Query debuginfod servers when a
14342 source file cannot be found.
14343 * top.c (print_gdb_configuration): Include
14344 --{with,without}-debuginfod in the output.
14345
14346 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14347
14348 * thread.c (thr_try_catch_cmd): Print thread name.
14349
14350 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14351
14352 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14353 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14354 dwarf2_fetch_die_type_sect_off): Move to...
14355 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14356 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14357 dwarf2_fetch_die_type_sect_off): ... here.
14358 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14359 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14360 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14361
14362 2020-02-26 Tom de Vries <tdevries@suse.de>
14363
14364 PR gdb/25603
14365 * symfile.c (set_initial_language): Exit-early if
14366 language_mode == language_mode_manual.
14367
14368 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14369
14370 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14371 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14372 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14373
14374 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14375
14376 * gdbtypes.c (create_array_type_with_stride): Handle negative
14377 array strides.
14378 * valarith.c (value_subscripted_rvalue): Likewise.
14379
14380 2020-02-25 Luis Machado <luis.machado@linaro.org>
14381
14382 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14383
14384 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14385
14386 * loc.h (dwarf2_get_die_type): Move to...
14387 * read.h (dwarf2_get_die_type): ... here.
14388 * read.c (dwarf2_get_die_type): Move doc to header.
14389
14390 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14391
14392 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14393 'gnulib/Makefile.in' to the list.
14394
14395 2020-02-24 Tom Tromey <tom@tromey.com>
14396
14397 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14398 Remove.
14399 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14400 XOBNEWVEC.
14401
14402 2020-02-24 Tom Tromey <tom@tromey.com>
14403
14404 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14405 New method.
14406 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14407 (dw2_do_instantiate_symtab, dw2_get_file_names)
14408 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14409
14410 2020-02-24 Tom Tromey <tom@tromey.com>
14411
14412 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14413 make_scoped_restore.
14414 (dwarf2_psymtab::read_symtab): Don't clear
14415 reading_partial_symbols.
14416
14417 2020-02-24 Tom de Vries <tdevries@suse.de>
14418
14419 PR gdb/25592
14420 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14421
14422 2020-02-24 Tom de Vries <tdevries@suse.de>
14423
14424 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14425 commands layout next/prev/regs.
14426
14427 2020-02-22 Tom Tromey <tom@tromey.com>
14428
14429 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14430 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14431
14432 2020-02-22 Tom Tromey <tom@tromey.com>
14433
14434 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14435
14436 2020-02-22 Tom Tromey <tom@tromey.com>
14437
14438 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14439 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14440 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14441 * tui/tui.c (_initialize_tui): Add usage text.
14442
14443 2020-02-22 Tom Tromey <tom@tromey.com>
14444
14445 * tui/tui-win.c (tui_set_focus_command)
14446 (tui_set_win_height_command): Use error_no_arg.
14447 (_initialize_tui_win): Update help text.
14448 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14449
14450 2020-02-22 Tom Tromey <tom@tromey.com>
14451
14452 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14453 * tui/tui-disasm.h (struct tui_disasm_window)
14454 <display_start_addr>: Declare.
14455 * tui/tui-source.h (struct tui_source_window)
14456 <display_start_addr>: Declare.
14457 * tui/tui-winsource.h (struct tui_source_window_base)
14458 <show_source_line, display_start_addr>: New methods.
14459 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14460 Rename and move to protected section.
14461 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14462 (tui_source_window_base::do_erase_source_content): Update.
14463 (tui_source_window_base::show_source_line): Now a method.
14464 (tui_source_window_base::show_source_content)
14465 (tui_source_window_base::tui_source_window_base)
14466 (tui_source_window_base::rerender)
14467 (tui_source_window_base::refill)
14468 (tui_source_window_base::do_scroll_horizontal)
14469 (tui_source_window_base::set_is_exec_point_at)
14470 (tui_source_window_base::update_breakpoint_info)
14471 (tui_source_window_base::update_exec_info): Update.
14472 * tui/tui-source.c (tui_source_window::set_contents)
14473 (tui_source_window::showing_source_p)
14474 (tui_source_window::do_scroll_vertical)
14475 (tui_source_window::location_matches_p)
14476 (tui_source_window::line_is_displayed): Update.
14477 (tui_source_window::display_start_addr): New method.
14478 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14479 (tui_disasm_window::do_scroll_vertical)
14480 (tui_disasm_window::location_matches_p): Update.
14481 (tui_disasm_window::display_start_addr): New method.
14482
14483 2020-02-22 Tom Tromey <tom@tromey.com>
14484
14485 * NEWS: Add entry for gdb.register_window_type.
14486 * tui/tui-layout.h (window_factory): New typedef.
14487 (tui_register_window): Declare.
14488 * tui/tui-layout.c (saved_tui_windows): New global.
14489 (tui_apply_current_layout): Use it.
14490 (tui_register_window): New function.
14491 * python/python.c (do_start_initialization): Call
14492 gdbpy_initialize_tui.
14493 (python_GdbMethods): Add "register_window_type" function.
14494 * python/python-internal.h (gdbpy_register_tui_window)
14495 (gdbpy_initialize_tui): Declare.
14496 * python/py-tui.c: New file.
14497 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14498
14499 2020-02-22 Tom Tromey <tom@tromey.com>
14500
14501 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14502
14503 2020-02-22 Tom Tromey <tom@tromey.com>
14504
14505 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14506 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14507 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14508 (tui_set_win_focus_to): Move from tui-win.c.
14509
14510 2020-02-22 Tom Tromey <tom@tromey.com>
14511
14512 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14513 functions.
14514 (known_window_types): New global.
14515 (tui_get_window_by_name): Reimplement.
14516 (initialize_known_windows): New function.
14517 (validate_window_name): Rewrite.
14518 (_initialize_tui_layout): Call initialize_known_windows.
14519
14520 2020-02-22 Tom Tromey <tom@tromey.com>
14521
14522 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14523 Remove constants.
14524 * tui/tui-winsource.h (struct tui_source_window_base)
14525 <tui_source_window_base>: Remove parameter.
14526 * tui/tui-winsource.c
14527 (tui_source_window_base::tui_source_window_base): Remove
14528 parameter.
14529 (tui_source_window_base::refill): Update.
14530 * tui/tui-stack.h (struct tui_locator_window)
14531 <tui_locator_window>: Update.
14532 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14533 Default the constructor.
14534 * tui/tui-regs.h (struct tui_data_item_window)
14535 <tui_data_item_window>: Default the constructor.
14536 (struct tui_data_window) <tui_data_window>: Likewise.
14537 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14538 Default the constructor.
14539 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14540 Default the constructor.
14541 <type>: Remove.
14542 (struct tui_win_info) <tui_win_info>: Default the constructor.
14543 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14544 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14545 Default the constructor.
14546
14547 2020-02-22 Tom Tromey <tom@tromey.com>
14548
14549 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14550 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14551 * tui/tui-win.c (tui_resize_all): Don't call
14552 tui_delete_invisible_windows.
14553 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14554 done.
14555 (tui_set_layout): Update.
14556 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14557 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14558 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14559
14560 2020-02-22 Tom Tromey <tom@tromey.com>
14561
14562 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14563 correctly.
14564
14565 2020-02-22 Tom Tromey <tom@tromey.com>
14566
14567 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14568
14569 2020-02-22 Tom Tromey <tom@tromey.com>
14570
14571 * tui/tui-winsource.h (struct tui_source_window_iterator)
14572 <inner_iterator>: New etytypedef.
14573 <tui_source_window_iterator>: Take "end" parameter.
14574 <tui_source_window_iterator>: Take iterator.
14575 <operator*, advance>: Update.
14576 <m_iter>: Change type.
14577 <m_end>: New field.
14578 (struct tui_source_windows) <begin, end>: Update.
14579 * tui/tui-layout.c (tui_windows): New global.
14580 (tui_apply_current_layout): Clear tui_windows.
14581 (tui_layout_window::apply): Update tui_windows.
14582 * tui/tui-data.h (tui_windows): Declare.
14583 (all_tui_windows): Now inline function.
14584 (class tui_window_iterator, struct all_tui_windows): Remove.
14585
14586 2020-02-22 Tom Tromey <tom@tromey.com>
14587
14588 PR tui/17850:
14589 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14590 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14591 "height" argument.
14592 (class tui_layout_window) <get_sizes>: Likewise.
14593 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14594 argument.
14595 <get_sizes>: Add "height" argument.
14596 <m_vertical>: New field.
14597 * tui/tui-layout.c (tui_layout_split::clone): Update.
14598 (tui_layout_split::get_sizes): Add "height" argument.
14599 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14600 (tui_new_layout_command): Parse "-horizontal".
14601 (_initialize_tui_layout): Update help string.
14602 (tui_layout_split::specification): Add "-horizontal" when needed.
14603 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14604 argument.
14605 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14606 New methods.
14607
14608 2020-02-22 Tom Tromey <tom@tromey.com>
14609
14610 * tui/tui-layout.h (enum tui_adjust_result): New.
14611 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14612 (class tui_layout_window) <adjust_size>: Return
14613 tui_adjust_result. Rewrite.
14614 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14615 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14616
14617 2020-02-22 Tom Tromey <tom@tromey.com>
14618
14619 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14620 parameter and return types.
14621 (class tui_layout_base) <specification>: Add "depth".
14622 (class tui_layout_window) <specification>: Add "depth".
14623 (class tui_layout_split) <specification>: Add "depth".
14624 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14625 and return types.
14626 (tui_new_layout_command): Parse sub-layouts.
14627 (_initialize_tui_layout): Update help string.
14628 (tui_layout_window::specification): Add "depth".
14629 (add_layout_command): Update.
14630
14631 2020-02-22 Tom Tromey <tom@tromey.com>
14632
14633 * NEWS: Add "tui new-layout" item.
14634 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14635 Add new-layout command to help text.
14636 (validate_window_name): New function.
14637 (tui_new_layout_command): New function.
14638 (_initialize_tui_layout): Register "new-layout".
14639 (tui_layout_window::specification): New method.
14640 (tui_layout_window::specification): New method.
14641 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14642 method.
14643 (class tui_layout_window) <specification>: New method.
14644 (class tui_layout_split) <specification>: New method.
14645
14646 2020-02-22 Tom Tromey <tom@tromey.com>
14647
14648 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14649 * tui/tui-win.c (window_name_completer): Update comment.
14650 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14651 Declare method.
14652 (class tui_layout_window) <replace_window>: Likewise.
14653 (class tui_layout_split) <replace_window>: Likewise.
14654 (tui_set_layout): Don't declare.
14655 (tui_set_initial_layout): Declare function.
14656 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14657 (asm_regs_layout): New globals.
14658 (tui_current_layout, show_layout): Remove.
14659 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14660 (find_layout, tui_apply_layout): New function.
14661 (layout_completer): Remove.
14662 (tui_next_layout): Reimplement.
14663 (tui_next_layout_command): New function.
14664 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14665 (tui_regs_layout): Reimplement.
14666 (tui_regs_layout_command): New function.
14667 (extract_display_start_addr): Rewrite.
14668 (next_layout, prev_layout): Remove.
14669 (tui_layout_window::replace_window): New method.
14670 (tui_layout_split::replace_window): New method.
14671 (destroy_layout): New function.
14672 (layout_list): New global.
14673 (add_layout_command): New function.
14674 (initialize_layouts): Update.
14675 (tui_layout_command): New function.
14676 (_initialize_tui_layout): Install "layout" commands.
14677 * tui/tui-data.h (enum tui_layout_type): Remove.
14678 (tui_current_layout): Don't declare.
14679
14680 2020-02-22 Tom Tromey <tom@tromey.com>
14681
14682 * tui/tui-regs.c (tui_reg_layout): Remove.
14683 (tui_reg_command): Use tui_regs_layout.
14684 * tui/tui-layout.h (tui_reg_command): Declare.
14685 * tui/tui-layout.c (tui_reg_command): New function.
14686
14687 2020-02-22 Tom Tromey <tom@tromey.com>
14688
14689 * tui/tui.c (tui_rl_delete_other_windows): Call
14690 tui_remove_some_windows.
14691 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14692 Declare method.
14693 (class tui_layout_window) <remove_windows>: New method.
14694 (class tui_layout_split) <remove_windows>: Declare.
14695 (tui_remove_some_windows): Declare.
14696 * tui/tui-layout.c (tui_remove_some_windows): New function.
14697 (tui_layout_split::remove_windows): New method.
14698
14699 2020-02-22 Tom Tromey <tom@tromey.com>
14700
14701 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14702 * tui/tui-layout.h (tui_next_layout): Declare.
14703 * tui/tui-layout.c (tui_next_layout): New function.
14704
14705 2020-02-22 Tom Tromey <tom@tromey.com>
14706
14707 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14708 correct coordinates.
14709
14710 2020-02-22 Tom Tromey <tom@tromey.com>
14711
14712 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14713 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14714 DATA_WIN case.
14715
14716 2020-02-22 Tom Tromey <tom@tromey.com>
14717
14718 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14719 TUI_DISASM_WIN, not tui_win_list.
14720
14721 2020-02-22 Tom Tromey <tom@tromey.com>
14722
14723 * valprint.c (generic_val_print_enum_1)
14724 (val_print_type_code_flags): Style member names.
14725 * rust-lang.c (val_print_struct, rust_print_enum)
14726 (rust_print_struct_def, rust_internal_print_type): Style member
14727 names.
14728 * p-valprint.c (pascal_object_print_value_fields): Style member
14729 names. Only call fprintf_symbol_filtered for static members.
14730 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14731 * f-valprint.c (f_val_print): Style member names.
14732 * f-typeprint.c (f_type_print_base): Style member names.
14733 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14734 call fprintf_symbol_filtered for static members.
14735 (cp_print_class_member): Style member names.
14736 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14737 member names.
14738 * ada-valprint.c (ada_print_scalar): Style enum names.
14739 (ada_val_print_enum): Likewise.
14740 * ada-typeprint.c (print_enum_type): Style enum names.
14741
14742 2020-02-21 Tom Tromey <tom@tromey.com>
14743
14744 * psympriv.h (struct partial_symtab): Update comment.
14745
14746 2020-02-21 Tom Tromey <tromey@adacore.com>
14747
14748 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14749 type is CORE_ADDR.
14750
14751 2020-02-21 Tom de Vries <tdevries@suse.de>
14752
14753 PR gdb/25534
14754 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14755 if dependencies[i]->user != NULL.
14756
14757 2020-02-21 Ali Tamur <tamur@google.com>
14758
14759 * dwarf2/read.c (dwarf2_name): Add null check.
14760
14761 2020-02-20 Tom Tromey <tom@tromey.com>
14762
14763 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14764 ">=", in binary search.
14765 (dwarf2_find_containing_comp_unit): New overload.
14766 (run_test): New self-test.
14767 (_initialize_dwarf2_read): Register new test.
14768
14769 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14770
14771 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14772 * riscv-tdep.h: Likewise.
14773 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14774 rv32-only CSR.
14775 * features/riscv/64bit-csr.xml: Regenerated.
14776
14777 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14778 Tom Tromey <tom@tromey.com>
14779
14780 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14781 of 'fputc_unfiltered'.
14782 (putchar_unfiltered): Call 'fputc_unfiltered'.
14783 (fputc_unfiltered): Call 'fputs_unfiltered'.
14784
14785 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14786
14787 * config.in: Regenerate.
14788 * configure: Regenerate.
14789 * configure.ac: Add --with-python-libdir option.
14790 * main.c: Use WITH_PYTHON_LIBDIR.
14791
14792 2020-02-19 Tom Tromey <tom@tromey.com>
14793
14794 * symtab.c (general_symbol_info::compute_and_set_names): Use
14795 obstack_strndup. Simplify call to symbol_set_demangled_name.
14796
14797 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14798
14799 * dwarf2/read.c (allocate_signatured_type_table,
14800 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14801 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14802 Remove objfile parameter, update all callers.
14803
14804 2020-02-19 Doug Evans <dje@google.com>
14805
14806 PR rust/25535
14807 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14808 rust_enum_variant calculation.
14809
14810 2020-02-19 Tom Tromey <tromey@adacore.com>
14811
14812 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14813
14814 2020-02-19 Tom Tromey <tromey@adacore.com>
14815
14816 * ada-lang.c (cache_symbol): Use obstack_strdup.
14817
14818 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14819
14820 * configure: Regenerate.
14821
14822 2020-02-19 Tom Tromey <tromey@adacore.com>
14823
14824 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14825 NULL check.
14826
14827 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14828
14829 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14830
14831 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14832
14833 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14834 if GDBSERVER is not defined.
14835 (riscv_tdesc_cache): Likewise, also store const target_desc.
14836 (STATIC_IN_GDB): Define.
14837 (riscv_create_target_description): Update declaration with
14838 STATIC_IN_GDB.
14839 (riscv_lookup_target_description): New function, only define if
14840 GDBSERVER is not defined.
14841 * arch/riscv.h (riscv_create_target_description): Declare only
14842 when GDBSERVER is defined.
14843 (riscv_lookup_target_description): New declaration when GDBSERVER
14844 is not defined.
14845 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14846 (riscv_linux_read_features): ...this, and return
14847 riscv_gdbarch_features instead of target_desc.
14848 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14849 (riscv_linux_read_description): Rename to...
14850 (riscv_linux_read_features): ...this.
14851 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14852 Update to use riscv_gdbarch_features and
14853 riscv_lookup_target_description.
14854 * riscv-tdep.c (riscv_find_default_target_description): Use
14855 riscv_lookup_target_description instead of
14856 riscv_create_target_description.
14857
14858 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14859
14860 * valprint.c (generic_val_print_enum_1): When printing a flag
14861 enum with value 0 and there is no enumerator with value 0, print
14862 just "0" instead of "(unknown: 0x0)".
14863
14864 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14865
14866 * valprint.c (generic_val_print_enum_1): Print unknown part of
14867 flag enum in hex.
14868
14869 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14870
14871 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14872 flag enums to contain duplicate enumerators.
14873 * valprint.c (generic_val_print_enum_1): Update comment.
14874
14875 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14876
14877 * dwarf2/read.c: Include "count-one-bits.h".
14878 (update_enumeration_type_from_children): If an enumerator has
14879 multiple bits set, don't treat the enumeration as a "flag enum".
14880 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14881 of flag enums have 0 or 1 bit set.
14882
14883 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14884
14885 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14886 conversion.
14887 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14888 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14889 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14890 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14891 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14892
14893 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14894
14895 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14896
14897 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14898
14899 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14900 displaced_step_closure_up.
14901 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14902 (struct displaced_step_closure_up):
14903 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14904 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14905 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14906 Likewise.
14907 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14908 * gdbarch.c, gdbarch.h: Re-generate.
14909 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14910 displaced_step_closure_up.
14911 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14912 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14913 * infrun.h (displaced_step_closure_up): New type alias.
14914 (struct displaced_step_inferior_state) <step_closure>: Change
14915 type to displaced_step_closure_up.
14916 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14917 displaced_step_closure_up.
14918 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14919
14920 2020-02-14 Tom Tromey <tom@tromey.com>
14921
14922 * minidebug.c (gnu_debug_key): New global.
14923 (find_separate_debug_file_in_section): Use it.
14924
14925 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14926
14927 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14928 std::unique_ptr.
14929 * gdbarch.c: Re-generate.
14930 * gdbarch.h: Re-generate.
14931 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14932 change.
14933 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14934 type to std::unique_ptr.
14935 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14936 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14937 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14938 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14939 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14940 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14941 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14942 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14943 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14944
14945 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14946
14947 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14948 std::unique_ptr.
14949 (displaced_step_clear): Rename to...
14950 (displaced_step_reset): ... this. Just call displaced->reset ().
14951 (displaced_step_clear_cleanup): Rename to...
14952 (displaced_step_reset_cleanup): ... this.
14953 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14954 (displaced_step_fixup): Likewise.
14955 (resume_1): Likewise.
14956 (handle_inferior_event): Restore child's memory before calling
14957 displaced_step_fixup on the parent.
14958 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14959 to std::unique_ptr.
14960 <step_closure>: Change type to std::unique_ptr.
14961
14962 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14963
14964 * arm-tdep.c: Include count-one-bits.h.
14965 (cleanup_block_store_pc): Use count_one_bits.
14966 (cleanup_block_load_pc): Use count_one_bits.
14967 (arm_copy_block_xfer): Use count_one_bits.
14968 (thumb2_copy_block_xfer): Use count_one_bits.
14969 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14970 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14971 (thumb_get_next_pcs_raw): Use count_one_bits.
14972 (arm_get_next_pcs_raw): Use count_one_bits_l.
14973 * arch/arm.c (bitcount): Remove.
14974 * arch/arm.h (bitcount): Remove.
14975
14976 2020-02-14 Tom Tromey <tromey@adacore.com>
14977
14978 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14979 Update.
14980 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14981 * dwarf2/loc.c (call_site_find_chain_1): Return
14982 unique_xmalloc_ptr.
14983 (call_site_find_chain): Likewise.
14984
14985 2020-02-14 Richard Biener <rguenther@suse.de>
14986
14987 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14988 on expression with division operators.
14989
14990 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14991
14992 * MAINTAINERS (Write After Approval): Adding myself.
14993
14994 2020-02-12 Tom Tromey <tom@tromey.com>
14995
14996 * event-loop.c (event_data, gdb_event, event_handler_func):
14997 Remove.
14998
14999 2020-02-12 Tom Tromey <tom@tromey.com>
15000
15001 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15002 (dwarf2_frame_objfile_data): Add comment.
15003 (find_comp_unit, set_comp_unit): New functions.
15004 (dwarf2_frame_find_fde): Use find_comp_unit.
15005 (dwarf2_build_frame_info): Use set_comp_unit.
15006
15007 2020-02-12 Tom Tromey <tom@tromey.com>
15008
15009 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15010 (comp_unit): Don't initialize objfile.
15011 (execute_cfa_program): Add text_offset parameter.
15012 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15013 (dwarf2_frame_cache): Update.
15014 (dwarf2_build_frame_info): Don't set "objfile" member.
15015
15016 2020-02-12 Tom Tromey <tom@tromey.com>
15017
15018 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15019 (decode_frame_entry): Likewise.
15020 (dwarf2_build_frame_info): Update.
15021
15022 2020-02-12 Tom Tromey <tom@tromey.com>
15023
15024 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15025 (decode_frame_entry_1): Use the comp_unit obstack.
15026
15027 2020-02-12 Tom Tromey <tom@tromey.com>
15028
15029 * dwarf2/frame.c (struct comp_unit): Add initializers and
15030 constructor.
15031 (dwarf2_frame_objfile_data): Store a comp_unit.
15032 (dwarf2_frame_find_fde): Update.
15033 (dwarf2_build_frame_info): Use "new".
15034
15035 2020-02-12 Tom Tromey <tom@tromey.com>
15036
15037 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15038 (dwarf2_fde_table): Typedef for std::vector.
15039 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15040 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15041 (decode_frame_entry): Update.
15042 (dwarf2_build_frame_info): Use "new".
15043
15044 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15045
15046 * arm-tdep.c (arm_gdbarch_init): Update.
15047 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15048 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15049 have_neon, is_m>: Change to bool.
15050
15051 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15052
15053 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15054
15055 2020-02-12 Tom Tromey <tom@tromey.com>
15056
15057 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15058
15059 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15060
15061 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15062 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15063
15064 2020-02-11 Tom Tromey <tom@tromey.com>
15065
15066 * psymtab.h: Update comment.
15067
15068 2020-02-11 Tom Tromey <tom@tromey.com>
15069
15070 * gdb_obstack.h (struct auto_obstack): Use
15071 DISABLE_COPY_AND_ASSIGN.
15072
15073 2020-02-11 Tom Tromey <tom@tromey.com>
15074
15075 * dwarf2/frame.h (struct objfile): Don't forward declare.
15076
15077 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15078
15079 * cris-tdep.c (cris_supply_gregset): Change signature to match
15080 what struct regset expects.
15081 (cris_regset): New struct.
15082 (fetch_core_registers): Remove.
15083 (cris_iterate_over_regset_sections): New function.
15084 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15085 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15086
15087 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15088
15089 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15090 registers.
15091
15092 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15093
15094 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15095
15096 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15097
15098 * configure: Re-generate.
15099
15100 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15101
15102 * configure: Re-generate.
15103
15104 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15105
15106 * acinclude: Update warning.m4 path.
15107 * warning.m4: Move to gdbsupport.
15108
15109 2020-02-11 Tom Tromey <tromey@adacore.com>
15110
15111 * remote.c (remote_console_output): Update.
15112 * printcmd.c (printf_command): Update.
15113 * event-loop.c (gdb_wait_for_event): Update.
15114 * linux-nat.c (sigchld_handler): Update.
15115 * remote-sim.c (gdb_os_write_stdout): Update.
15116 (gdb_os_flush_stdout): Update.
15117 (gdb_os_flush_stderr): Update.
15118 (gdb_os_write_stderr): Update.
15119 * exceptions.c (print_exception): Update.
15120 * remote-fileio.c (remote_fileio_func_read): Update.
15121 (remote_fileio_func_write): Update.
15122 * tui/tui.c (tui_enable): Update.
15123 * tui/tui-interp.c (tui_interp::init): Update.
15124 * utils.c (init_page_info): Update.
15125 (putchar_unfiltered, fputc_unfiltered): Update.
15126 (gdb_flush): Update.
15127 (emit_style_escape): Update.
15128 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15129 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15130 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15131 (stderr_file::write): Update.
15132 (stderr_file::puts): Update.
15133 * ui-file.h (ui_file_isatty, ui_file_write)
15134 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15135 (ui_file_puts): Don't declare.
15136
15137 2020-02-10 Tom de Vries <tdevries@suse.de>
15138
15139 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15140 sentinel to char *.
15141
15142 2020-02-09 Tom de Vries <tdevries@suse.de>
15143
15144 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15145 filename if it matches "<artificial>".
15146
15147 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15148
15149 * windows-tdep.c (struct enum_value_name): New struct.
15150 (create_enum): New function.
15151 (windows_get_siginfo_type): Create and use enum types.
15152
15153 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15154
15155 * NEWS: Mention $_siginfo support for Windows.
15156 * windows-nat.c (handle_exception): Set siginfo_er.
15157 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15158 (windows_xfer_siginfo): New function.
15159 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15160 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15161 (init_windows_gdbarch_data): New function.
15162 (get_windows_gdbarch_data): New function.
15163 (windows_get_siginfo_type): New function.
15164 (windows_init_abi): Register windows_get_siginfo_type.
15165 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15166
15167 2020-02-08 Tom Tromey <tom@tromey.com>
15168
15169 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15170 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15171 <keep>: Declare method.
15172 <m_keep>: Remove member.
15173 <~cutu_reader>: Remove.
15174 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15175 (cutu_reader::cutu_reader): Update.
15176 (cutu_reader::keep): Rename from ~cutu_reader.
15177 (process_psymtab_comp_unit, build_type_psymtabs_1)
15178 (process_skeletonless_type_unit, load_partial_comp_unit)
15179 (load_full_comp_unit, dwarf2_read_addr_index)
15180 (read_signatured_type): Update.
15181
15182 2020-02-08 Tom Tromey <tom@tromey.com>
15183
15184 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15185 "want_partial_unit" parameter.
15186 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15187 Inline check for DW_TAG_partial_unit.
15188 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15189
15190 2020-02-08 Tom Tromey <tom@tromey.com>
15191
15192 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15193 read.c.
15194 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15195 read.c.
15196
15197 2020-02-08 Tom Tromey <tom@tromey.com>
15198
15199 * dwarf2/read.c (read_address): Move to comp-unit.c.
15200 (dwarf2_rnglists_process, dwarf2_ranges_process)
15201 (read_attribute_value, dwarf_decode_lines_1)
15202 (var_decode_location, decode_locdesc): Update.
15203 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15204 read.c. Remove "cu" parameter.
15205 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15206 method.
15207
15208 2020-02-08 Tom Tromey <tom@tromey.com>
15209
15210 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15211 (read_indirect_line_string): Update.
15212 * dwarf2/comp-unit.c (read_offset): Remove.
15213 (read_comp_unit_head): Update.
15214 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15215 method.
15216 (read_offset): Don't declare.
15217
15218 2020-02-08 Tom Tromey <tom@tromey.com>
15219
15220 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15221 * dwarf2/read.c (struct comp_unit_head): Move to
15222 dwarf2/comp-unit.h.
15223 (enum class rcuh_kind): Move to comp-unit.h.
15224 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15225 (read_comp_unit_head, error_check_comp_unit_head)
15226 (read_and_check_comp_unit_head): Move to comp-unit.c.
15227 (read_offset, dwarf_unit_type_name): Likewise.
15228 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15229 (cutu_reader::cutu_reader, read_call_site_scope)
15230 (find_partial_die, follow_die_offset): Update.
15231 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15232
15233 2020-02-08 Tom Tromey <tom@tromey.com>
15234
15235 * dwarf2/read.c (read_offset_1): Move to leb.c.
15236 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15237 (dwarf_decode_macro_bytes): Update.
15238 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15239 * dwarf2/leb.h (read_offset): Declare.
15240
15241 2020-02-08 Tom Tromey <tom@tromey.com>
15242
15243 * dwarf2/read.c (dwarf2_section_size): Remove.
15244 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15245 Update.
15246 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15247
15248 2020-02-08 Tom Tromey <tom@tromey.com>
15249
15250 * dwarf2/read.c (read_initial_length): Move to leb.c.
15251 * dwarf2/leb.h (read_initial_length): Declare.
15252 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15253 handle_nonstd parameter.
15254 * dwarf2/frame.c (read_initial_length): Remove.
15255 (decode_frame_entry_1): Update.
15256
15257 2020-02-08 Tom Tromey <tom@tromey.com>
15258
15259 * dwarf2/loc.c (dwarf2_find_location_expression)
15260 (dwarf_evaluate_loc_desc::get_tls_address)
15261 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15262 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15263 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15264 (dwarf2_compile_property_to_c)
15265 (dwarf2_loc_desc_get_symbol_read_needs)
15266 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15267 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15268 (loclist_describe_location, loclist_tracepoint_var_ref)
15269 (loclist_generate_c_location): Update.
15270 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15271 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15272 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15273 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15274 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15275 (dwarf2_per_cu_data::addr_size)
15276 (dwarf2_per_cu_data::ref_addr_size)
15277 (dwarf2_per_cu_data::text_offset)
15278 (dwarf2_per_cu_data::addr_type): Now methods.
15279 (per_cu_header_read_in): Make per_cu "const".
15280 (dwarf2_version): Remove.
15281 (dwarf2_per_cu_data::int_type): Now a method.
15282 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15283 (set_die_type, read_array_type, read_subrange_index_type)
15284 (read_tag_string_type, read_subrange_type): Update.
15285 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15286 offset_size, ref_addr_size, text_offset, addr_type, version,
15287 objfile, int_type, addr_sized_int_type>: Declare methods.
15288
15289 2020-02-08 Tom Tromey <tom@tromey.com>
15290
15291 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15292 Move earlier.
15293
15294 2020-02-08 Tom Tromey <tom@tromey.com>
15295
15296 * dwarf2/read.h (dwarf_line_debug): Declare.
15297 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15298 * dwarf2/read.c: Move line_header code to new files.
15299 (dwarf_line_debug): No longer static.
15300 * dwarf2/line-header.c: New file.
15301 * dwarf2/line-header.h: New file.
15302
15303 2020-02-08 Tom Tromey <tom@tromey.com>
15304
15305 * dwarf2/read.c (struct line_header) <file_full_name,
15306 file_file_name>: Return unique_xmalloc_ptr.
15307 (line_header::file_file_name): Update.
15308 (line_header::file_full_name): Update.
15309 (dw2_get_file_names_reader): Update.
15310 (macro_start_file): Update.
15311
15312 2020-02-08 Tom Tromey <tom@tromey.com>
15313
15314 * dwarf2/read.c (struct line_header) <file_full_name,
15315 file_file_name>: Declare methods.
15316 (dw2_get_file_names_reader): Update.
15317 (file_file_name): Now a method.
15318 (file_full_name): Likewise.
15319 (macro_start_file): Update.
15320
15321 2020-02-08 Tom Tromey <tom@tromey.com>
15322
15323 * dwarf2/read.c (dwarf_always_disassemble)
15324 (show_dwarf_always_disassemble): Move to loc.c.
15325 (_initialize_dwarf2_read): Move "always-disassemble" registration
15326 to loc.c.
15327 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15328 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15329 static.
15330 (show_dwarf_always_disassemble): Move from read.c.
15331 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15332
15333 2020-02-08 Tom Tromey <tom@tromey.com>
15334
15335 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15336 (create_quick_file_names_table): Return htab_up.
15337 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15338 Update.
15339 * dwarf2/read.h (struct dwarf2_per_objfile)
15340 <quick_file_names_table>: Now htab_up.
15341
15342 2020-02-08 Tom Tromey <tom@tromey.com>
15343
15344 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15345
15346 2020-02-08 Tom Tromey <tom@tromey.com>
15347
15348 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15349 Rewrite.
15350 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15351 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15352 (abbrev_table::abbrev_table): No longer inline.
15353 (ABBREV_HASH_SIZE): Remove.
15354 (abbrev_table::m_abbrevs): Now an htab_up.
15355
15356 2020-02-08 Tom Tromey <tom@tromey.com>
15357
15358 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15359 (cutu_reader): Update.
15360 (build_type_psymtabs_1): Update.
15361 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15362 (abbrev_table::alloc_abbrev): Update.
15363 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15364 (abbrev_table::read): New static method, renamed from
15365 abbrev_table_read_table.
15366 (abbrev_table::alloc_abbrev)
15367 (abbrev_table::add_abbrev): Now private.
15368 (abbrev_table::abbrev_table): Now private.
15369 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15370
15371 2020-02-08 Tom Tromey <tom@tromey.com>
15372
15373 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15374 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15375 htab_up.
15376
15377 2020-02-08 Tom Tromey <tom@tromey.com>
15378
15379 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15380 htab_up.
15381 (lookup_dwo_unit_in_dwp): Update.
15382 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15383 on obstack.
15384
15385 2020-02-08 Tom Tromey <tom@tromey.com>
15386
15387 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15388 obstack.
15389
15390 2020-02-08 Tom Tromey <tom@tromey.com>
15391
15392 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15393 line_header_hash.
15394 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15395 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15396 Change type to htab_up.
15397
15398 2020-02-08 Tom Tromey <tom@tromey.com>
15399
15400 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15401 htab_up. Don't allocate on obstack.
15402 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15403 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15404 Change type to htab_up.
15405
15406 2020-02-08 Tom Tromey <tom@tromey.com>
15407
15408 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15409 Change type to htab_up.
15410 * dwarf2/read.c (create_signatured_type_table_from_index)
15411 (create_signatured_type_table_from_debug_names)
15412 (create_all_type_units, add_type_unit)
15413 (lookup_dwo_signatured_type, lookup_signatured_type)
15414 (process_skeletonless_type_unit): Update.
15415 (create_debug_type_hash_table, create_debug_types_hash_table):
15416 Change type of types_htab.
15417 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15418 htab_up. Don't allocate on obstack.
15419 (create_cus_hash_table): Change type of cus_htab parameter.
15420 (struct dwo_file) <cus, tus>: Now htab_up.
15421 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15422 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15423 (queue_and_load_all_dwo_tus): Update.
15424 * dwarf2/index-write.c (write_gdbindex): Update.
15425 (write_debug_names): Update.
15426
15427 2020-02-08 Tom Tromey <tom@tromey.com>
15428
15429 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15430 dwarf2/read.c. Remove "next" member. Add constructor ntad
15431 destructor.
15432 (struct dwarf2_per_objfile) <queue>: New member.
15433 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15434 dwarf2/read.h.
15435 (dwarf2_queue, dwarf2_queue_tail): Remove.
15436 (class dwarf2_queue_guard): Add parameter to constructor. Use
15437 DISABLE_COPY_AND_ASSIGN.
15438 <m_per_objfile>: New member.
15439 <~dwarf2_queue_guard>: Rewrite.
15440 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15441 Update.
15442 (~dwarf2_queue_item): New.
15443
15444 2020-02-08 Tom Tromey <tom@tromey.com>
15445
15446 * dwarf2/read.c (struct die_info) <has_children>: New member.
15447 (dw2_get_file_names_reader): Remove has_children.
15448 (dw2_get_file_names): Update.
15449 (read_cutu_die_from_dwo): Remove has_children.
15450 (cutu_reader::init_tu_and_read_dwo_dies)
15451 (cutu_reader::cutu_reader): Update.
15452 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15453 Remove has_children.
15454 (build_type_psymtabs_1, process_skeletonless_type_unit)
15455 (load_partial_comp_unit, load_full_comp_unit): Update.
15456 (create_dwo_cu_reader): Remove has_children.
15457 (create_cus_hash_table, read_die_and_children): Update.
15458 (read_full_die_1,read_full_die): Remove has_children.
15459 (read_signatured_type): Update.
15460 (class cutu_reader) <has_children>: Remove.
15461
15462 2020-02-08 Tom Tromey <tom@tromey.com>
15463
15464 * dwarf2/expr.c: Rename from dwarf2expr.c.
15465 * dwarf2/expr.h: Rename from dwarf2expr.h.
15466 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15467 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15468 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15469 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15470 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15471 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15472 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15473 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15474 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15475 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15476 * dwarf2/loc.c: Rename from dwarf2loc.c.
15477 * dwarf2/loc.h: Rename from dwarf2loc.h.
15478 * dwarf2/read.c: Rename from dwarf2read.c.
15479 * dwarf2/read.h: Rename from dwarf2read.h.
15480 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15481 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15482 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15483 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15484 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15485 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15486 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15487 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15488 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15489 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15490 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15491 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15492 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15493 Update.
15494 * Makefile.in (COMMON_SFILES): Update.
15495 (HFILES_NO_SRCDIR): Update.
15496
15497 2020-02-08 Tom Tromey <tom@tromey.com>
15498
15499 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15500 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15501
15502 2020-02-08 Tom Tromey <tom@tromey.com>
15503
15504 * dwarf2read.h (struct die_info): Don't declare.
15505
15506 2020-02-08 Tom Tromey <tom@tromey.com>
15507
15508 * dwarf2read.h (die_info_ptr): Remove typedef.
15509
15510 2020-02-08 Tom Tromey <tom@tromey.com>
15511
15512 * dwarf2read.c (read_call_site_scope)
15513 (handle_data_member_location, dwarf2_add_member_fn)
15514 (mark_common_block_symbol_computed, read_common_block)
15515 (attr_to_dynamic_prop, partial_die_info::read)
15516 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15517 (dwarf2_symbol_mark_computed, set_die_type): Update.
15518 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15519 method.
15520 (attr_form_is_block): Don't declare.
15521 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15522
15523 2020-02-08 Tom Tromey <tom@tromey.com>
15524
15525 * dwarf2read.c (dwarf2_find_base_address, )
15526 (read_call_site_scope, rust_containing_type)
15527 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15528 (handle_data_member_location, dwarf2_add_member_fn)
15529 (get_alignment, read_structure_type, process_structure_scope)
15530 (mark_common_block_symbol_computed, read_common_block)
15531 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15532 (partial_die_info::read, read_attribute_value, new_symbol)
15533 (lookup_die_type, dwarf2_get_ref_die_offset)
15534 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15535 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15536 (dwarf2_symbol_mark_computed): Update.
15537 * dwarf2/attribute.h (struct attribute) <value_as_address,
15538 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15539 methods.
15540 (value_as_address, attr_form_is_section_offset)
15541 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15542 * dwarf2/attribute.c (attribute::value_as_address)
15543 (attribute::form_is_section_offset, attribute::form_is_constant)
15544 (attribute::form_is_ref): Now methods.
15545
15546 2020-02-08 Tom Tromey <tom@tromey.com>
15547
15548 * dwarf2read.c (struct attribute, DW_STRING)
15549 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15550 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15551 (attr_form_is_block, attr_form_is_section_offset)
15552 (attr_form_is_constant, attr_form_is_ref): Move.
15553 * dwarf2/attribute.h: New file.
15554 * dwarf2/attribute.c: New file, from dwarf2read.c.
15555 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15556
15557 2020-02-08 Tom Tromey <tom@tromey.com>
15558
15559 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15560 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15561 Move.
15562 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15563 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15564 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15565 abbrev.c.
15566 * dwarf2/abbrev.h: New file.
15567 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15568 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15569
15570 2020-02-08 Tom Tromey <tom@tromey.com>
15571
15572 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15573 (dwarf2_section_size, dwarf2_get_section_info)
15574 (create_signatured_type_table_from_debug_names)
15575 (create_addrmap_from_aranges, read_debug_names_from_section)
15576 (get_gdb_index_contents_from_section, read_comp_unit_head)
15577 (error_check_comp_unit_head, read_abbrev_offset)
15578 (create_debug_type_hash_table, init_cu_die_reader)
15579 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15580 (read_comp_units_from_section, create_cus_hash_table)
15581 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15582 (create_dwp_v2_section, dwarf2_rnglists_process)
15583 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15584 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15585 (read_indirect_string_from_dwz, read_addr_index_1)
15586 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15587 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15588 (fill_in_loclist_baton): Update.
15589 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15590 get_containing_section, get_bfd_owner, get_bfd_section,
15591 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15592 (dwarf2_read_section, get_section_name, get_section_file_name)
15593 (get_containing_section, get_section_bfd_owner)
15594 (get_section_bfd_section, get_section_name, get_section_file_name)
15595 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15596 declare.
15597 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15598 (dwarf2_section_info::get_bfd_owner)
15599 (dwarf2_section_info::get_bfd_section)
15600 (dwarf2_section_info::get_name)
15601 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15602 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15603 (dwarf2_section_info::read): Now methods.
15604 * dwarf-index-write.c (class debug_names): Update.
15605
15606 2020-02-08 Tom Tromey <tom@tromey.com>
15607
15608 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15609 Move to dwarf2/section.h.
15610 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15611 (get_section_bfd_section, get_section_name)
15612 (get_section_file_name, get_section_id, get_section_flags)
15613 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15614 dwarf2/section.c.
15615 * dwarf2/section.h: New file.
15616 * dwarf2/section.c: New file, from dwarf2read.c.
15617 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15618
15619 2020-02-08 Tom Tromey <tom@tromey.com>
15620
15621 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15622 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15623 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15624 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15625 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15626 * dwarf2/leb.h: New file, from dwarf2read.c.
15627 * dwarf2/leb.c: New file, from dwarf2read.c.
15628 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15629 Remove.
15630 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15631 (COMMON_SFILES): Add dwarf2/leb.c.
15632
15633 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15634
15635 GDB 9.1 released.
15636
15637 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15638
15639 PR gdb/25190:
15640 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15641 * gdb/remote.c (remote_console_output): Update.
15642 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15643 (ui_file_puts): ...this.
15644 * gdb/ui-file.h (ui_file_puts): Add declaration.
15645 * gdb/utils.c (emit_style_escape): Update.
15646 (flush_wrap_buffer): Update.
15647 (fputs_maybe_filtered): Update.
15648 (fputs_unfiltered): Add function.
15649
15650 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15651
15652 * gdb/event-loop.c (gdb_wait_for_event): Update.
15653 * gdb/printcmd.c (printf_command): Update.
15654 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15655 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15656 (gdb_os_flush_stderr): Update.
15657 * gdb/remote.c (remote_console_output): Update.
15658 * gdb/ui-file.c (gdb_flush): Rename to...
15659 (ui_file_flush): ...this.
15660 (stderr_file::write): Update.
15661 (stderr_file::puts): Update.
15662 * gdb/ui-file.h (gdb_flush): Rename to...
15663 (ui_file_flush): ...this.
15664 * gdb/utils.c (gdb_flush): Add function.
15665 * gdb/utils.h (gdb_flush): Add declaration.
15666
15667 2020-02-07 Tom Tromey <tromey@adacore.com>
15668
15669 PR breakpoints/24915:
15670 * source.c (find_and_open_source): Do not check basenames_may_differ.
15671
15672 2020-02-07 Tom Tromey <tom@tromey.com>
15673
15674 * README: Update gdbserver documentation.
15675 * gdbserver: Move to top level.
15676 * configure.tgt (build_gdbserver): Remove.
15677 * configure.ac: Remove --enable-gdbserver.
15678 * configure: Rebuild.
15679 * Makefile.in (distclean): Don't mention gdbserver.
15680
15681 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15682
15683 * source-cache.c (source_cache::ensure): Surround
15684 get_plain_source_lines with a try/catch.
15685 (source_cache::get_line_charpos): Get rid of try/catch
15686 and only check for the return value of "ensure".
15687 * tui/tui-source.c (tui_source_window::set_contents):
15688 Simplify "nlines" calculation.
15689
15690 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15691
15692 * MAINTAINERS (Write After Approval): Add myself.
15693
15694 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15695
15696 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15697 function call.
15698
15699 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15700
15701 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15702
15703 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15704
15705 * nat/riscv-linux-tdesc.h: New file.
15706 * nat/riscv-linux-tdesc.c: New file, taking code from...
15707 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15708 ... here.
15709 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15710 NATDEPFILES.
15711
15712 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15713
15714 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15715 we don't set the fake simulator ptid to the null_ptid.
15716
15717 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15718
15719 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15720 * gdbthread.h (class thread_info) <resumed>: Likewise.
15721 * infrun.c (resume_1): Likewise.
15722 (proceed): Likewise.
15723 (infrun_thread_stop_requested): Likewise.
15724 (stop_all_threads): Likewise.
15725 (handle_inferior_event): Likewise.
15726 (restart_threads): Likewise.
15727 (finish_step_over): Likewise.
15728 (keep_going_stepped_thread): Likewise.
15729 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15730 (linux_handle_extended_wait): Likewise.
15731 * record-btrace.c (get_thread_current_frame_id): Likewise.
15732 * record-full.c (record_full_wait_1): Likewise.
15733 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15734 * target.c (target_resume): Likewise.
15735 * thread.c (set_running_thread): Likewise.
15736
15737 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15738
15739 * f-valprint.c (f77_print_array_1): Changed datatype of index
15740 variable to LONGEST from int to enable it to contain bound
15741 values correctly.
15742
15743 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15744
15745 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15746 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15747 offsets according to FLEN determined.
15748 (riscv_linux_nat_target::read_description): Determine FLEN
15749 dynamically.
15750 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15751 according to FLEN determined.
15752 (riscv_linux_nat_target::store_registers): Likewise.
15753
15754 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15755
15756 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15757 when reg->group is empty and reggroup is not.
15758
15759 2020-01-31 Tom Tromey <tromey@adacore.com>
15760
15761 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15762 Call beneath target's mourn_inferior after unpushing.
15763
15764 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15765
15766 PR tui/9765
15767 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15768 have enough lines to fill the screen, still return the lowest
15769 address we found.
15770
15771 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15772
15773 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15774 '-', '<', and '>' commands.
15775
15776 2020-01-29 Pedro Alves <palves@redhat.com>
15777 Sergio Durigan Junior <sergiodj@redhat.com>
15778
15779 * infcmd.c (construct_inferior_arguments): Assert that
15780 'argc' is greater than 0.
15781
15782 2020-01-29 Luis Machado <luis.machado@linaro.org>
15783
15784 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15785 (BRK_INSN_MASK): Define to 0xd4200000.
15786 (aarch64_program_breakpoint_here_p): New function.
15787 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15788 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15789 breakpoint.c.
15790 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15791 breakpoint.h
15792 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15793 call gdbarch_program_breakpoint_here_p.
15794 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15795 default_program_breakpoint_here_p, changed return type to bool and
15796 simplified.
15797 * breakpoint.h (program_breakpoint_here): Moved prototype to
15798 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15799 return type to bool.
15800 * gdbarch.c: Regenerate.
15801 * gdbarch.h: Regenerate.
15802 * gdbarch.sh (program_breakpoint_here_p): New method.
15803 * infrun.c (handle_signal_stop): Call
15804 gdbarch_program_breakpoint_here_p.
15805
15806 2020-01-26 Tom Tromey <tom@tromey.com>
15807
15808 * ctfread.c (struct ctf_fp_info): Reindent.
15809 (_initialize_ctfread): Remove.
15810
15811 2020-01-26 Tom Tromey <tom@tromey.com>
15812
15813 * psymtab.c (partial_map_expand_apply)
15814 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15815 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15816 (psym_print_stats, psym_expand_symtabs_for_function)
15817 (psym_map_symbol_filenames, psym_map_matching_symbols)
15818 (psym_expand_symtabs_matching)
15819 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15820 (maintenance_check_psymtabs): Use new methods.
15821 * psympriv.h (struct partial_symtab) <readin_p,
15822 get_compunit_symtab>: New methods.
15823 <readin, compunit_symtab>: Remove members.
15824 (struct standard_psymtab): New.
15825 (struct legacy_psymtab): Derive from standard_psymtab.
15826 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15827 standard_psymtab.
15828 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15829
15830 2020-01-26 Tom Tromey <tom@tromey.com>
15831
15832 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15833 read_dependencies. Add assert.
15834 * psymtab.c (partial_symtab::read_dependencies): New method.
15835 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15836 method.
15837 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15838 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15839 read_dependencies.
15840 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15841 Add assert.
15842
15843 2020-01-26 Tom Tromey <tom@tromey.com>
15844
15845 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15846 Call expand_psymtab.
15847 (xcoff_read_symtab): Call expand_psymtab.
15848 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15849 legacy_expand_psymtab.
15850 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15851 method.
15852 (struct legacy_psymtab) <expand_psymtab>: Implement.
15853 <legacy_expand_psymtab>: New member.
15854 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15855 (parse_partial_symbols): Set legacy_expand_psymtab.
15856 (psymtab_to_symtab_1): Change argument order. Call
15857 expand_psymtab.
15858 (new_psymtab): Set legacy_expand_psymtab.
15859 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15860 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15861 expand_psymtab.
15862 (dwarf2_psymtab::expand_psymtab): Rename from
15863 psymtab_to_symtab_1. Call expand_psymtab.
15864 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15865 (dbx_end_psymtab): Likewise.
15866 (dbx_psymtab_to_symtab_1): Change argument order. Call
15867 expand_psymtab.
15868 (dbx_read_symtab): Call expand_psymtab.
15869 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15870 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15871 (ctf_psymtab::read_symtab): Call expand_psymtab.
15872
15873 2020-01-26 Tom Tromey <tom@tromey.com>
15874
15875 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15876 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15877 messages.
15878 * mdebugread.c (mdebug_read_symtab): Remove prints.
15879 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15880 assert.
15881 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15882
15883 2020-01-26 Tom Tromey <tom@tromey.com>
15884
15885 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15886 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15887 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15888 legacy_symtab.
15889 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15890 * psymtab.c (psymtab_to_symtab): Call method.
15891 (dump_psymtab): Update.
15892 * psympriv.h (struct partial_symtab): Add virtual destructor.
15893 <read_symtab>: New method.
15894 (struct legacy_symtab): New.
15895 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15896 (struct pst_map) <pst>: Now a legacy_psymtab.
15897 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15898 (new_psymtab): Use legacy_psymtab.
15899 * dwarf2read.h (struct dwarf2_psymtab): New.
15900 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15901 * dwarf2read.c (dwarf2_create_include_psymtab)
15902 (dwarf2_build_include_psymtabs, create_type_unit_group)
15903 (create_partial_symtab, process_psymtab_comp_unit_reader)
15904 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15905 (set_partial_user): Use dwarf2_psymtab.
15906 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15907 (psymtab_to_symtab_1, process_full_comp_unit)
15908 (process_full_type_unit, dwarf2_ranges_read)
15909 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15910 (dwarf_decode_lines): Use dwarf2_psymtab.
15911 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15912 (add_address_entry_worker, write_one_signatured_type)
15913 (recursively_count_psymbols, recursively_write_psymbols)
15914 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15915 (write_debug_names): Likewise.
15916 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15917 <pst>: Now a legacy_psymtab.
15918 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15919 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15920 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15921 * ctfread.c (struct ctf_psymtab): New.
15922 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15923 ctf_psymtab.
15924 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15925 (create_partial_symtab): Return a ctf_psymtab.
15926 (scan_partial_symbols): Update.
15927
15928 2020-01-26 Tom Tromey <tom@tromey.com>
15929
15930 * xcoffread.c (xcoff_start_psymtab): Use new.
15931 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15932 renamed from start_psymtab_common.
15933 * psympriv.h (struct partial_symtab): Add new constructor.
15934 (start_psymtab_common): Don't declare.
15935 * mdebugread.c (parse_partial_symbols): Use new.
15936 * dwarf2read.c (create_partial_symtab): Use new.
15937 * dbxread.c (start_psymtab): Use new.
15938 * ctfread.c (create_partial_symtab): Use new.
15939
15940 2020-01-26 Tom Tromey <tom@tromey.com>
15941
15942 * xcoffread.c (xcoff_end_psymtab): Use new.
15943 * psymtab.c (start_psymtab_common): Use new.
15944 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15945 Update.
15946 * psympriv.h (struct partial_symtab): Add parameters to
15947 constructor. Don't inline.
15948 (allocate_psymtab): Don't declare.
15949 * mdebugread.c (new_psymtab): Use new.
15950 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15951 * dbxread.c (dbx_end_psymtab): Use new.
15952
15953 2020-01-26 Tom Tromey <tom@tromey.com>
15954
15955 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15956 allocate_psymtab. Update documentation.
15957 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15958 allocate_psymtab. Do not use new.
15959 (allocate_psymtab): Use new. Update.
15960
15961 2020-01-26 Tom Tromey <tom@tromey.com>
15962
15963 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15964 * psymtab.c (psym_print_stats): Update.
15965 * psympriv.h (struct partial_symtab) <readin,
15966 psymtabs_addrmap_supported, anonymous>: Now bool.
15967 * mdebugread.c (psymtab_to_symtab_1): Update.
15968 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15969 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15970 (process_full_comp_unit, process_full_type_unit): Update.
15971 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15972 * ctfread.c (psymtab_to_symtab): Update.
15973
15974 2020-01-26 Tom Tromey <tom@tromey.com>
15975
15976 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15977 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15978 * psymtab.c (psymtab_storage): Delete psymtabs.
15979 (psymtab_storage::allocate_psymtab): Use new.
15980 (psymtab_storage::discard_psymtab): Use delete.
15981 * psympriv.h (struct partial_symtab): Add constructor and
15982 initializers.
15983
15984 2020-01-26 Tom Tromey <tom@tromey.com>
15985
15986 * machoread.c: Do not include psympriv.h.
15987
15988 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15989
15990 * NEWS: Mention the new option and the set/show commands.
15991
15992 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15993
15994 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15995 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15996 (validate_exec_file): New variables, enums, functions.
15997 (exec_file_locate_attach, print_section_info): Style the filenames.
15998 (_initialize_exec): Install show_exec_file_mismatch_command and
15999 set_exec_file_mismatch_command.
16000 * gdbcore.h (validate_exec_file): Declare.
16001 * infcmd.c (attach_command): Call validate_exec_file.
16002 * remote.c ( remote_target::remote_add_inferior): Likewise.
16003
16004 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16005
16006 * frame.c (find_frame_sal): Move call to get_next_frame into more
16007 inner scope.
16008 * inline-frame.c (inilne_state) <inline_state>: Update argument
16009 types.
16010 (inilne_state) <skipped_symbol>: Rename to...
16011 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16012 (skip_inline_frames): Build vector of skipped symbols and use this
16013 to reate the inline_state.
16014 (inline_skipped_symbol): Add a comment and some assertions, fetch
16015 skipped symbol from the list.
16016
16017 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16018
16019 * buildsym.c (lte_is_less_than): Delete.
16020 (buildsym_compunit::end_symtab_with_blockvector): Create local
16021 lambda function to sort line table entries, and use
16022 std::stable_sort instead of std::sort.
16023 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16024 markers when looking for a previous line.
16025
16026 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16027
16028 * dwarf2read.c (lnp_state_machine::record_line): Include
16029 end_sequence parameter in debug print out. Record the line if we
16030 are at an end_sequence marker even if it's not the start of a
16031 statement.
16032 * symmisc.c (maintenance_print_one_line_table): Print end of
16033 sequence markers with 'END' not '0'.
16034
16035 2020-01-24 Pedro Alves <palves@redhat.com>
16036
16037 PR gdb/25410
16038 * thread.c (scoped_restore_current_thread::restore): Use
16039 switch_to_inferior_no_thread.
16040 * exec.c: Include "progspace-and-thread.h".
16041 (add_target_sections, remove_target_sections):
16042 scoped_restore_current_pspace_and_thread instead of
16043 scoped_restore_current_thread.
16044 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16045 and aspace to the inferior before calling clone_program_space.
16046 Remove stale comment.
16047
16048 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16049
16050 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16051 (arm_netbsd_nat_target::fetch_registers): ...this.
16052 (arm_nbsd_nat_target::store_registers): Rename to...
16053 (arm_netbsd_nat_target::store_registers): ...this.
16054
16055 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16056
16057 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16058 register_t.
16059
16060 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16061
16062 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16063 Update comment.
16064 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16065 Likewise.
16066 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16067 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16068 the correct replacement (iterate_over_regset_sections).
16069 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16070 Update comment.
16071
16072 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16073
16074 PR gdb/23718
16075 * gdb/python/python.c (execute_gdb_command): Call
16076 async_enable_stdin in catch block.
16077
16078 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16079
16080 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16081 SWITCH_THRU_ALL_UIS.
16082
16083 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16084
16085 PR tui/9765
16086 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16087 comment, add extra parameter, and update to store previous symbol
16088 when appropriate.
16089 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16090 add extra parameter.
16091 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16092 remove unneeded parameter, add try/catch around gdb_print_insn,
16093 rewrite to add items to asm_lines vector.
16094 (tui_find_backward_disassembly_start_address): New function.
16095 (tui_find_disassembly_address): Updated throughout.
16096 (tui_disasm_window::set_contents): Update for changes to
16097 tui_disassemble.
16098 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16099 number of lines to scroll.
16100
16101 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16102
16103 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16104 (SECT_OFF_DATA): Likewise.
16105 (SECT_OFF_RODATA): Likewise.
16106 (SECT_OFF_TEXT): Likewise.
16107 (SECT_OFF_BSS): Likewise.
16108 (struct objfile) <text_section_offset, data_section_offset>: New
16109 methods.
16110 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16111 objfile::text_section_offset.
16112 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16113 * coffread.c (coff_symtab_read): Likewise.
16114 (enter_linenos): Likewise.
16115 (process_coff_symbol): Likewise.
16116 * ctfread.c (get_objfile_text_range): Likewise.
16117 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16118 Use objfile::data_section_offset.
16119 * dwarf2-frame.c (execute_cfa_program): Use
16120 objfile::text_section_offset.
16121 (dwarf2_frame_find_fde): Likewise.
16122 * dwarf2read.c (create_addrmap_from_index): Likewise.
16123 (create_addrmap_from_aranges): Likewise.
16124 (dw2_find_pc_sect_compunit_symtab): Likewise.
16125 (process_psymtab_comp_unit_reader): Likewise.
16126 (add_partial_symbol): Likewise.
16127 (add_partial_subprogram): Likewise.
16128 (process_full_comp_unit): Likewise.
16129 (read_file_scope): Likewise.
16130 (read_func_scope): Likewise.
16131 (read_lexical_block_scope): Likewise.
16132 (read_call_site_scope): Likewise.
16133 (dwarf2_rnglists_process): Likewise.
16134 (dwarf2_ranges_process): Likewise.
16135 (dwarf2_ranges_read): Likewise.
16136 (dwarf_decode_lines_1): Likewise.
16137 (new_symbol): Likewise.
16138 (dwarf2_fetch_die_loc_sect_off): Likewise.
16139 (dwarf2_per_cu_text_offset): Likewise.
16140 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16141 * hppa-tdep.c (read_unwind_info): Likewise.
16142 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16143 * psympriv.h (struct partial_symtab): Likewise.
16144 * psymtab.c (find_pc_sect_psymtab): Likewise.
16145 * solib-svr4.c (enable_break): Likewise.
16146 * stap-probe.c (relocate_address): Use
16147 objfile::data_section_offset.
16148 * xcoffread.c (enter_line_range): Use
16149 objfile::text_section_offset.
16150 (read_xcoff_symtab): Likewise.
16151
16152 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16153
16154 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16155 declaration to narrower scopes.
16156
16157 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16158
16159 * darwin-nat.h (struct darwin_exception_msg, enum
16160 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16161 Move up.
16162 (class darwin_nat_target) <wait_1, check_new_threads,
16163 decode_exception_message, decode_message, stop_inferior,
16164 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16165 * darwin-nat.c (darwin_check_new_threads): Rename to...
16166 (darwin_nat_target::check_new_threads): ... this.
16167 (darwin_suspend_inferior_it): Remove.
16168 (darwin_decode_exception_message): Rename to...
16169 (darwin_nat_target::decode_exception_message): ... this.
16170 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16171 (darwin_decode_message): Rename to...
16172 (darwin_nat_target::decode_message): ... this.
16173 (cancel_breakpoint): Rename to...
16174 (darwin_nat_target::cancel_breakpoint): ... this.
16175 (darwin_wait): Rename to...
16176 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16177 instead of iterate_over_inferiors.
16178 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16179 (darwin_stop_inferior): Rename to...
16180 (darwin_nat_target::stop_inferior): ... this.
16181 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16182 (darwin_init_thread_list): Rename to...
16183 (darwin_nat_target::init_thread_list): ... this.
16184 (darwin_ptrace_him): Rename to...
16185 (darwin_nat_target::ptrace_him): ... this.
16186 (darwin_nat_target::create_inferior): Pass lambda function to
16187 fork_inferior.
16188 (darwin_nat_target::detach): Call stop_inferior instead of
16189 darwin_stop_inferior.
16190 * fork-inferior.h (fork_inferior): Change init_trace_fun
16191 parameter to gdb::function_view.
16192 * fork-inferior.c (fork_inferior): Likewise.
16193
16194 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16195
16196 * i386-cygwin-tdep.c (core_process_module_section): Update.
16197 * windows-nat.c (struct lm_info_windows): Add text_offset.
16198 (windows_xfer_shared_libraries): Update.
16199 * windows-tdep.c (windows_xfer_shared_library):
16200 Add text_offset_cached argument.
16201 * windows-tdep.h (windows_xfer_shared_library): Update.
16202
16203 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16204
16205 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16206
16207 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16208
16209 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16210 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16211 replace with range-based for.
16212 (gdbsim_interrupt_inferior): Remove.
16213 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16214 with a range-based for. Inline code from
16215 gdbsim_interrupt_inferior.
16216
16217 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16218
16219 * infrun.c (proceed): Fix indentation.
16220
16221 2020-01-21 Tom Tromey <tromey@adacore.com>
16222
16223 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16224 * python/python.c (python_extension_ops): Update.
16225 (gdbpy_colorize): New function.
16226 * python/lib/gdb/__init__.py (colorize): New function.
16227 * extension.h (ext_lang_colorize): Declare.
16228 * extension.c (ext_lang_colorize): New function.
16229 * extension-priv.h (struct extension_language_ops) <colorize>: New
16230 member.
16231 * cli/cli-style.c (_initialize_cli_style): Update help text.
16232
16233 2020-01-21 Luis Machado <luis.machado@linaro.org>
16234
16235 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16236 <cond>: Change type to bool.
16237 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16238 (aarch64_displaced_step_cb): Likewise.
16239 (aarch64_displaced_step_tb): Likewise.
16240
16241 2020-01-21 Luis Machado <luis.machado@linaro.org>
16242
16243 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16244 output.
16245
16246 2020-01-21 Luis Machado <luis.machado@linaro.org>
16247
16248 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16249 <pc_adjust>: Adjust the documentation.
16250 (aarch64_displaced_step_fixup): Check if PC really moved before
16251 adjusting it.
16252
16253 2020-01-19 Tom Tromey <tom@tromey.com>
16254
16255 * disasm.c (~gdb_disassembler): New destructor.
16256 (gdb_buffered_insn_length): Call disassemble_free_target.
16257 * disasm.h (class gdb_disassembler): Declare destructor. Use
16258 DISABLE_COPY_AND_ASSIGN.
16259
16260 2020-01-19 Tom Tromey <tom@tromey.com>
16261
16262 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16263 (die_reader_func_ftype): Remove.
16264 (cutu_reader): New class.
16265 (dw2_get_file_names_reader): Remove "data" parameter.
16266 (dw2_get_file_names): Use cutu_reader.
16267 (create_debug_type_hash_table): Update.
16268 (read_cutu_die_from_dwo): Update comment.
16269 (lookup_dwo_unit): Add dwo_name parameter.
16270 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16271 die_reader_func_ftype and data parameters.
16272 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16273 Remove die_reader_func_ftype and data parameters.
16274 (~cutu_reader): New; from init_cutu_and_read_dies.
16275 (cutu_reader::cutu_reader): Rename from
16276 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16277 and data parameters.
16278 (init_cutu_and_read_dies_simple): Remove.
16279 (struct process_psymtab_comp_unit_data): Remove.
16280 (process_psymtab_comp_unit_reader): Remove data parameter; add
16281 want_partial_unit and pretend_language parameters.
16282 (process_psymtab_comp_unit): Use cutu_reader.
16283 (build_type_psymtabs_reader): Remove data parameter.
16284 (build_type_psymtabs_1): Use cutu_reader.
16285 (process_skeletonless_type_unit): Likewise.
16286 (load_partial_comp_unit_reader): Remove.
16287 (load_partial_comp_unit): Use cutu_reader.
16288 (load_full_comp_unit_reader): Remove.
16289 (load_full_comp_unit): Use cutu_reader.
16290 (struct create_dwo_cu_data): Remove.
16291 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16292 dwo_unit parameters.
16293 (create_cus_hash_table): Use cutu_reader.
16294 (struct dwarf2_read_addr_index_data): Remove.
16295 (dwarf2_read_addr_index_reader): Remove.
16296 (dwarf2_read_addr_index): Use cutu_reader.
16297 (read_signatured_type_reader): Remove.
16298 (read_signatured_type): Use cutu_reader.
16299
16300 2020-01-19 Tom Tromey <tom@tromey.com>
16301
16302 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16303 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16304 (tui_wrefresh): Declare.
16305 * tui/tui-wingeneral.c (suppress_output): New global.
16306 (tui_suppress_output, ~tui_suppress_output): New constructor and
16307 destructor.
16308 (tui_wrefresh): New function.
16309 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16310 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16311 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16312 method.
16313 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16314 tui_wrefresh.
16315 (tui_data_window::no_refresh): New method.
16316 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16317 (tui_reg_command): Use tui_suppress_output
16318 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16319 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16320 method.
16321 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16322
16323 2020-01-19 Tom Tromey <tom@tromey.com>
16324
16325 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16326 Handle case where symtab is null.
16327
16328 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16329
16330 * linux-fork.c (one_fork_p): Simplify.
16331
16332 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16333
16334 * top.c (struct qt_args): Remove.
16335 (kill_or_detach): Change return type to void, replace `void *`
16336 parameter with a proper one.
16337 (print_inferior_quit_action): Likewise.
16338 (quit_confirm): Use range-based for loop to iterate over inferiors.
16339 (quit_force): Likewise.
16340
16341 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16342
16343 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16344 `void *` parameter with proper parameters.
16345 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16346 (print_one_inferior): Change return type to void, replace `void *`
16347 parameter with proper parameters.
16348 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16349 inferiors.
16350 (get_other_inferior): Remove.
16351 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16352 inferiors.
16353
16354 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16355
16356 * mi/mi-interp.c (report_initial_inferior): Remove.
16357 (mi_interp::init): Use range-based for to iterate over inferiors.
16358
16359 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16360
16361 * python/py-inferior.c (build_inferior_list): Remove.
16362 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16363
16364 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16365
16366 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16367 (btrace_stitch_trace): Likewise.
16368 * charset.c (intermediate_encoding): Likewise (vaild).
16369 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16370 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16371 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16372
16373 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16374
16375 * windows-tdep.c (windows_get_tlb_type):
16376 Add rtl_user_process_parameters type.
16377
16378 2020-01-16 Pedro Alves <palves@redhat.com>
16379 Norbert Lange <nolange79@gmail.com>
16380
16381 PR build/24805
16382 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16383 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16384 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16385 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16386 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16387 (ps_plog): Redeclare exported functions with default visibility.
16388
16389 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16390
16391 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16392 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16393
16394 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16395
16396 * infcmd.c (post_create_inferior): Use get_thread_regcache
16397 instead of get_current_regcache.
16398
16399 2020-01-14 Tom Tromey <tom@tromey.com>
16400
16401 PR symtab/12535:
16402 * python/python.c (gdbpy_decode_line): Treat empty string the same
16403 as no argument.
16404
16405 2020-01-14 Tom Tromey <tom@tromey.com>
16406
16407 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16408
16409 2020-01-14 Tom Tromey <tom@tromey.com>
16410
16411 * nat/linux-btrace.c: Don't include <config.h>.
16412 * nat/linux-ptrace.c: Don't include <config.h>.
16413 * nat/x86-linux-dregs.c: Don't include <config.h>.
16414
16415 2020-01-14 Tom Tromey <tom@tromey.com>
16416
16417 * configure: Rebuild.
16418 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16419
16420 2020-01-14 Tom Tromey <tom@tromey.com>
16421
16422 * nat/x86-linux-dregs.c: Include configh.h.
16423 * nat/linux-ptrace.c: Include configh.h.
16424 * nat/linux-btrace.c: Include configh.h.
16425 * defs.h: Include config.h, bfd.h.
16426 * configure.ac: Don't source common.host.
16427 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16428 * configure: Rebuild.
16429 * acinclude.m4: Update path.
16430 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16431 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16432 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16433 (CLIBS): Add LIBSUPPORT.
16434 (CDEPS): Likewise.
16435 (COMMON_SFILES): Remove gdbsupport files.
16436 (HFILES_NO_SRCDIR): Likewise.
16437 (stamp-version): Update path to create-version.sh.
16438 (ALLDEPFILES): Remove gdbsupport files.
16439
16440 2020-01-14 Tom Tromey <tom@tromey.com>
16441
16442 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16443 USE_WIN32API when needed.
16444 * configure.ac (USE_WIN32API): Don't define.
16445 (WIN32LIBS): Use WIN32APILIBS.
16446 * configure: Rebuild.
16447
16448 2020-01-14 Tom Tromey <tom@tromey.com>
16449
16450 * configure: Rebuild.
16451 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16452
16453 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16454
16455 * skip.c (skip_function_command): Make skip w/o arguments use the
16456 name of the inlined function if pc is inside any inlined function.
16457
16458 2020-01-14 Luis Machado <luis.machado@linaro.org>
16459
16460 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16461 * infrun.c (resume_1): Likewise.
16462 (handle_inferior_event): Remove stale comment.
16463 * linux-nat.c (linux_nat_target::resume): Update comments.
16464 (save_stop_reason): Likewise.
16465 (linux_nat_filter_event): Likewise.
16466 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16467
16468 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16469
16470 * elfread.c (record_minimal_symbol): Set section index to 0 for
16471 non-allocatable sections.
16472
16473
16474 2020-01-13 Ali Tamur <tamur@google.com>
16475
16476 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16477 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16478 to gdb::optional. Update comments.
16479 (dwo_file): Update comments.
16480 (read_attribute): Update API to take an additional out parameter,
16481 need_reprocess. This is used to mark attributes that need other
16482 attributes (e.g. str_offsets_base) for correct computation which may not
16483 have been read yet.
16484 (read_attribute_reprocess): New function declaration.
16485 (read_addr_index): Likewise.
16486 (read_dwo_str_index): Likewise.
16487 (read_stub_str_index): Likewise.
16488 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16489 (lookup_addr_base): New function definition.
16490 (lookup_ranges_base): Likewise.
16491 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16492 lookup_ranges_base.
16493 (init_cutu_and_read_dies): Update comments.
16494 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16495 unit. This is used to inherit parent's str_offsets_base and addr_base.
16496 Update comments.
16497 (init_cutu_and_read_dies_simple): Reflect API changes.
16498 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16499 (create_cus_hash_table): Change API to take parent compile unit.
16500 Reflect API changes.
16501 (open_and_init_dwo_file): Reflect API changes.
16502 (dwarf2_get_pc_bounds): Update comments.
16503 (dwarf2_record_block_ranges): Likewise.
16504 (read_full_die_1): Change implementation to reprocess attributes that
16505 need str_offsets_base and addr_base.
16506 (partial_die_info::read): Likewise.
16507 (read_attribute_reprocess): New function definition.
16508 (read_attribute_value): Change API to take an additional out parameter,
16509 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16510 when a non-dwo compile unit has index based attributes.
16511 (read_attribute): Reflect API changes.
16512 (read_addr_index_1): Reflect API changes. Update comments.
16513 (dwarf2_read_addr_index_data): Reflect API changes.
16514 (dwarf2_read_addr_index): Likewise.
16515 (read_str_index): Change API and implementation. This becomes a helper
16516 to be used by the new string index related methods. Update error
16517 message and comments.
16518 (read_dwo_str_index): New function definition.
16519 (read_stub_str_index): Likewise.
16520 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16521 * symfile.h (dwarf2_debug_sections): Likewise.
16522 * xcoffread.c (dwarf2_debug_sections): Likewise.
16523
16524 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16525
16526 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16527 core_reg_sect type to gdb_byte *.
16528 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16529 * cris-tdep.c (fetch_core_registers): Likewise.
16530 * corelow.c (core_target::get_core_register_section): Change
16531 type of `contents` to gdb::byte_vector.
16532
16533 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16534
16535 * tui/tui-wingeneral.c (box_win): Position the title in the center
16536 of the border.
16537
16538 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16539
16540 * corelow.c (core_target::get_core_register_section): Use
16541 std::vector instead of alloca.
16542
16543 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16544
16545 * warning.m4: Add -Wmissing-declarations to build_warnings.
16546 * configure: Re-generate.
16547
16548 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16549
16550 * python/python.c (init__gdb_module): Add declaration.
16551
16552 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16553
16554 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16555 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16556 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16557 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16558 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16559 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16560 * ada-exp.y (_initialize_ada_exp): Add declaration.
16561 * ada-lang.c (_initialize_ada_language): Add declaration.
16562 * ada-tasks.c (_initialize_tasks): Add declaration.
16563 * agent.c (_initialize_agent): Add declaration.
16564 * aix-thread.c (_initialize_aix_thread): Add declaration.
16565 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16566 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16567 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16568 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16569 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16570 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16571 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16572 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16573 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16574 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16575 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16576 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16577 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16578 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16579 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16580 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16581 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16582 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16583 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16584 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16585 * annotate.c (_initialize_annotate): Add declaration.
16586 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16587 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16588 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16589 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16590 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16591 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16592 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16593 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16594 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16595 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16596 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16597 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16598 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16599 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16600 * auto-load.c (_initialize_auto_load): Add declaration.
16601 * auxv.c (_initialize_auxv): Add declaration.
16602 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16603 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16604 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16605 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16606 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16607 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16608 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16609 * breakpoint.c (_initialize_breakpoint): Add declaration.
16610 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16611 * btrace.c (_initialize_btrace): Add declaration.
16612 * charset.c (_initialize_charset): Add declaration.
16613 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16614 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16615 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16616 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16617 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16618 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16619 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16620 * coffread.c (_initialize_coffread): Add declaration.
16621 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16622 * compile/compile.c (_initialize_compile): Add declaration.
16623 * complaints.c (_initialize_complaints): Add declaration.
16624 * completer.c (_initialize_completer): Add declaration.
16625 * copying.c (_initialize_copying): Add declaration.
16626 * corefile.c (_initialize_core): Add declaration.
16627 * corelow.c (_initialize_corelow): Add declaration.
16628 * cp-abi.c (_initialize_cp_abi): Add declaration.
16629 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16630 * cp-support.c (_initialize_cp_support): Add declaration.
16631 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16632 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16633 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16634 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16635 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16636 * ctfread.c (_initialize_ctfread): Add declaration.
16637 * d-lang.c (_initialize_d_language): Add declaration.
16638 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16639 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16640 * dbxread.c (_initialize_dbxread): Add declaration.
16641 * dcache.c (_initialize_dcache): Add declaration.
16642 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16643 * disasm.c (_initialize_disasm): Add declaration.
16644 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16645 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16646 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16647 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16648 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16649 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16650 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16651 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16652 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16653 * elfread.c (_initialize_elfread): Add declaration.
16654 * exec.c (_initialize_exec): Add declaration.
16655 * extension.c (_initialize_extension): Add declaration.
16656 * f-lang.c (_initialize_f_language): Add declaration.
16657 * f-valprint.c (_initialize_f_valprint): Add declaration.
16658 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16659 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16660 * filesystem.c (_initialize_filesystem): Add declaration.
16661 * findcmd.c (_initialize_mem_search): Add declaration.
16662 * findvar.c (_initialize_findvar): Add declaration.
16663 * fork-child.c (_initialize_fork_child): Add declaration.
16664 * frame-base.c (_initialize_frame_base): Add declaration.
16665 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16666 * frame.c (_initialize_frame): Add declaration.
16667 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16668 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16669 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16670 * gcore.c (_initialize_gcore): Add declaration.
16671 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16672 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16673 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16674 * gdbarch.c (_initialize_gdbarch): Add declaration.
16675 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16676 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16677 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16678 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16679 * go-lang.c (_initialize_go_language): Add declaration.
16680 * go32-nat.c (_initialize_go32_nat): Add declaration.
16681 * guile/guile.c (_initialize_guile): Add declaration.
16682 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16683 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16684 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16685 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16686 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16687 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16688 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16689 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16690 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16691 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16692 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16693 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16694 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16695 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16696 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16697 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16698 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16699 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16700 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16701 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16702 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16703 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16704 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16705 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16706 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16707 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16708 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16709 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16710 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16711 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16712 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16713 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16714 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16715 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16716 * infcall.c (_initialize_infcall): Add declaration.
16717 * infcmd.c (_initialize_infcmd): Add declaration.
16718 * inflow.c (_initialize_inflow): Add declaration.
16719 * infrun.c (_initialize_infrun): Add declaration.
16720 * interps.c (_initialize_interpreter): Add declaration.
16721 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16722 * jit.c (_initialize_jit): Add declaration.
16723 * language.c (_initialize_language): Add declaration.
16724 * linux-fork.c (_initialize_linux_fork): Add declaration.
16725 * linux-nat.c (_initialize_linux_nat): Add declaration.
16726 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16727 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16728 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16729 * m2-lang.c (_initialize_m2_language): Add declaration.
16730 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16731 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16732 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16733 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16734 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16735 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16736 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16737 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16738 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16739 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16740 * machoread.c (_initialize_machoread): Add declaration.
16741 * macrocmd.c (_initialize_macrocmd): Add declaration.
16742 * macroscope.c (_initialize_macroscope): Add declaration.
16743 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16744 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16745 * maint.c (_initialize_maint_cmds): Add declaration.
16746 * mdebugread.c (_initialize_mdebugread): Add declaration.
16747 * memattr.c (_initialize_mem): Add declaration.
16748 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16749 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16750 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16751 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16752 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16753 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16754 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16755 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16756 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16757 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16758 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16759 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16760 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16761 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16762 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16763 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16764 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16765 * mipsread.c (_initialize_mipsread): Add declaration.
16766 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16767 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16768 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16769 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16770 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16771 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16772 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16773 * nto-procfs.c (_initialize_procfs): Add declaration.
16774 * objc-lang.c (_initialize_objc_language): Add declaration.
16775 * observable.c (_initialize_observer): Add declaration.
16776 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16777 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16778 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16779 * osabi.c (_initialize_gdb_osabi): Add declaration.
16780 * osdata.c (_initialize_osdata): Add declaration.
16781 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16782 * parse.c (_initialize_parse): Add declaration.
16783 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16784 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16785 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16786 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16787 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16788 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16789 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16790 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16791 * printcmd.c (_initialize_printcmd): Add declaration.
16792 * probe.c (_initialize_probe): Add declaration.
16793 * proc-api.c (_initialize_proc_api): Add declaration.
16794 * proc-events.c (_initialize_proc_events): Add declaration.
16795 * proc-service.c (_initialize_proc_service): Add declaration.
16796 * procfs.c (_initialize_procfs): Add declaration.
16797 * producer.c (_initialize_producer): Add declaration.
16798 * psymtab.c (_initialize_psymtab): Add declaration.
16799 * python/python.c (_initialize_python): Add declaration.
16800 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16801 * record-btrace.c (_initialize_record_btrace): Add declaration.
16802 * record-full.c (_initialize_record_full): Add declaration.
16803 * record.c (_initialize_record): Add declaration.
16804 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16805 * regcache.c (_initialize_regcache): Add declaration.
16806 * reggroups.c (_initialize_reggroup): Add declaration.
16807 * remote-notif.c (_initialize_notif): Add declaration.
16808 * remote-sim.c (_initialize_remote_sim): Add declaration.
16809 * remote.c (_initialize_remote): Add declaration.
16810 * reverse.c (_initialize_reverse): Add declaration.
16811 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16812 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16813 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16814 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16815 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16816 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16817 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16818 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16819 Add declaration.
16820 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16821 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16822 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16823 * rust-exp.y (_initialize_rust_exp): Add declaration.
16824 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16825 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16826 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16827 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16828 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16829 * score-tdep.c (_initialize_score_tdep): Add declaration.
16830 * ser-go32.c (_initialize_ser_dos): Add declaration.
16831 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16832 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16833 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16834 * ser-uds.c (_initialize_ser_socket): Add declaration.
16835 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16836 * serial.c (_initialize_serial): Add declaration.
16837 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16838 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16839 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16840 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16841 * skip.c (_initialize_step_skip): Add declaration.
16842 * sol-thread.c (_initialize_sol_thread): Add declaration.
16843 * solib-aix.c (_initialize_solib_aix): Add declaration.
16844 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16845 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16846 * solib-frv.c (_initialize_frv_solib): Add declaration.
16847 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16848 * solib-target.c (_initialize_solib_target): Add declaration.
16849 * solib.c (_initialize_solib): Add declaration.
16850 * source-cache.c (_initialize_source_cache): Add declaration.
16851 * source.c (_initialize_source): Add declaration.
16852 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16853 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16854 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16855 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16856 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16857 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16858 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16859 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16860 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16861 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16862 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16863 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16864 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16865 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16866 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16867 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16868 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16869 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16870 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16871 * stabsread.c (_initialize_stabsread): Add declaration.
16872 * stack.c (_initialize_stack): Add declaration.
16873 * stap-probe.c (_initialize_stap_probe): Add declaration.
16874 * std-regs.c (_initialize_frame_reg): Add declaration.
16875 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16876 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16877 * symfile.c (_initialize_symfile): Add declaration.
16878 * symmisc.c (_initialize_symmisc): Add declaration.
16879 * symtab.c (_initialize_symtab): Add declaration.
16880 * target.c (_initialize_target): Add declaration.
16881 * target-connection.c (_initialize_target_connection): Add
16882 declaration.
16883 * target-dcache.c (_initialize_target_dcache): Add declaration.
16884 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16885 * thread.c (_initialize_thread): Add declaration.
16886 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16887 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16888 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16889 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16890 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16891 * tracectf.c (_initialize_ctf): Add declaration.
16892 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16893 * tracefile.c (_initialize_tracefile): Add declaration.
16894 * tracepoint.c (_initialize_tracepoint): Add declaration.
16895 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16896 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16897 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16898 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16899 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16900 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16901 * tui/tui.c (_initialize_tui): Add declaration.
16902 * typeprint.c (_initialize_typeprint): Add declaration.
16903 * ui-style.c (_initialize_ui_style): Add declaration.
16904 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16905 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16906 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16907 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16908 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16909 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16910 * unittests/filtered_iterator-selftests.c
16911 (_initialize_filtered_iterator_selftests): Add declaration.
16912 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16913 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16914 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16915 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16916 * unittests/main-thread-selftests.c
16917 (_initialize_main_thread_selftests): Add declaration.
16918 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16919 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16920 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16921 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16922 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16923 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16924 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16925 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16926 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16927 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16928 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16929 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16930 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16931 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16932 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16933 declaration.
16934 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16935 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16936 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16937 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16938 * user-regs.c (_initialize_user_regs): Add declaration.
16939 * utils.c (_initialize_utils): Add declaration.
16940 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16941 * valops.c (_initialize_valops): Add declaration.
16942 * valprint.c (_initialize_valprint): Add declaration.
16943 * value.c (_initialize_values): Add declaration.
16944 * varobj.c (_initialize_varobj): Add declaration.
16945 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16946 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16947 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16948 * windows-nat.c (_initialize_windows_nat): Add declaration.
16949 (_initialize_check_for_gdb_ini): Add declaration.
16950 (_initialize_loadable): Add declaration.
16951 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16952 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16953 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16954 * xcoffread.c (_initialize_xcoffread): Add declaration.
16955 * xml-support.c (_initialize_xml_support): Add declaration.
16956 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16957 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16958 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16959 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16960
16961 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16962
16963 * regformats/regdat.sh: Generate declaration for init function.
16964
16965 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16966
16967 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16968 up.
16969 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16970 close_one_inferior>: New methods.
16971 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16972 pass down target to find_inferior_pid.
16973 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16974 Pass down target to find_inferior_ptid.
16975 (gdbsim_target::create_inferior): Pass down target to
16976 add_thread_silent.
16977 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16978 target down to find_inferior_ptid and switch_to_thread.
16979 (gdbsim_target::close): Update to call close_one_inferior.
16980 (struct resume_data): Remove.
16981 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16982 directly, rather than through a void pointer.
16983 (gdbsim_target::resume): Update to call resume_one_inferior.
16984
16985 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16986
16987 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16988
16989 2020-01-12 Pedro Alves <palves@redhat.com>
16990
16991 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16992 directly for the current inferior instead of
16993 discard_all_inferiors.
16994 (discard_all_inferiors): Delete.
16995
16996 2020-01-11 Tom Tromey <tom@tromey.com>
16997
16998 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16999 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17000 deprecated_safe_get_selected_frame.
17001
17002 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17003
17004 * inferior.c (print_inferior): Switch inferior before printing it.
17005
17006 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17007 Pedro Alves <palves@redhat.com>
17008
17009 * progspace-and-thread.c (switch_to_program_space_and_thread):
17010 Assert there's an inferior for PSPACE. Use
17011 switch_to_inferior_no_thread to switch the inferior too.
17012 * progspace.c (program_space::~program_space): Call
17013 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17014 (program_space::free_all_objfiles): Don't call clear_symtab_users
17015 here.
17016 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17017
17018 2020-01-10 Pedro Alves <palves@redhat.com>
17019
17020 * NEWS: Mention multi-target debugging, "info connections", and
17021 "add-inferior -no-connection".
17022
17023 2020-01-10 Pedro Alves <palves@redhat.com>
17024
17025 * infrun.c: Include "target-connection.h".
17026 (check_multi_target_resumption): New.
17027 (proceed): Call it.
17028 * target-connection.c (make_target_connection_string): Make
17029 extern.
17030 * target-connection.h (make_target_connection_string): Declare.
17031
17032 2020-01-10 Pedro Alves <palves@redhat.com>
17033
17034 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17035 * inferior.c (uiout_field_connection): New function.
17036 (print_inferior): Add new "connection-id" column.
17037 (add_inferior_command): Show connection number/string of added
17038 inferior.
17039 * process-stratum-target.h
17040 (process_stratum_target::connection_string): New virtual method.
17041 (process_stratum_target::connection_number): New field.
17042 * remote.c (remote_target::connection_string): New override.
17043 * target-connection.c: New file.
17044 * target-connection.h: New file.
17045 * target.c (decref_target): Remove process_stratum targets from
17046 the connection list.
17047 (target_stack::push): Add process_stratum targets to the
17048 connection list.
17049
17050 2020-01-10 Pedro Alves <palves@redhat.com>
17051
17052 Revert:
17053 2016-04-12 Pedro Alves <palves@redhat.com>
17054 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17055 Remove references to name.
17056 * serial.h (struct serial) <name>: Delete.
17057
17058 2020-01-10 Pedro Alves <palves@redhat.com>
17059
17060 * gdbarch-selftests.c (register_to_value_test): Remove "target
17061 already pushed" check.
17062
17063 2020-01-10 Pedro Alves <palves@redhat.com>
17064 John Baldwin <jhb@FreeBSD.org>
17065
17066 * aarch64-linux-nat.c
17067 (aarch64_linux_nat_target::thread_architecture): Adjust.
17068 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17069 (task_command_1): Likewise.
17070 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17071 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17072 (aix_thread_target::store_registers)
17073 (aix_thread_target::thread_alive): Adjust.
17074 * amd64-fbsd-tdep.c: Include "inferior.h".
17075 (amd64fbsd_get_thread_local_address): Pass down target.
17076 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17077 thread's gdbarch instead of target_gdbarch.
17078 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17079 get_last_target_status.
17080 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17081 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17082 inferiors.
17083 (update_inserted_breakpoint_locations): Skip if inferiors with no
17084 execution.
17085 (update_global_location_list): When handling moribund locations,
17086 find representative inferior for location's pspace, and use thread
17087 count of its process_stratum target.
17088 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17089 * bsd-uthread.c (bsd_uthread_target::wait): Use
17090 as_process_stratum_target and adjust thread_change_ptid and
17091 add_thread calls.
17092 (bsd_uthread_target::update_thread_list): Use
17093 as_process_stratum_target and adjust find_thread_ptid,
17094 thread_change_ptid and add_thread calls.
17095 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17096 find_thread_ptid call.
17097 * corelow.c (add_to_thread_list): Adjust add_thread call.
17098 (core_target_open): Adjust add_thread_silent and thread_count
17099 calls.
17100 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17101 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17102 * event-top.c (async_disconnect): Pop targets from all inferiors.
17103 * exec.c (add_target_sections): Push exec target on all inferiors
17104 sharing the program space.
17105 (remove_target_sections): Remove the exec target from all
17106 inferiors sharing the program space.
17107 (exec_on_vfork): New.
17108 * exec.h (exec_on_vfork): Declare.
17109 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17110 Pass it down.
17111 (fbsd_nat_target::update_thread_list): Adjust.
17112 (fbsd_nat_target::resume): Adjust.
17113 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17114 down.
17115 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17116 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17117 get_thread_arch_regcache call.
17118 * fork-child.c (gdb_startup_inferior): Pass target down to
17119 startup_inferior and set_executing.
17120 * gdbthread.h (struct process_stratum_target): Forward declare.
17121 (add_thread, add_thread_silent, add_thread_with_info)
17122 (in_thread_list): Add process_stratum_target parameter.
17123 (find_thread_ptid(inferior*, ptid_t)): New overload.
17124 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17125 parameter.
17126 (all_threads()): Delete overload.
17127 (all_threads, all_non_exited_threads): Add process_stratum_target
17128 parameter.
17129 (all_threads_safe): Use brace initialization.
17130 (thread_count): Add process_stratum_target parameter.
17131 (set_resumed, set_running, set_stop_requested, set_executing)
17132 (threads_are_executing, finish_thread_state): Add
17133 process_stratum_target parameter.
17134 (switch_to_thread): Use is_current_thread.
17135 * i386-fbsd-tdep.c: Include "inferior.h".
17136 (i386fbsd_get_thread_local_address): Pass down target.
17137 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17138 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17139 have_inferiors check.
17140 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17141 (inf_ptrace_target::attach): Adjust.
17142 * infcall.c (run_inferior_call): Adjust.
17143 * infcmd.c (run_command_1): Pass target to
17144 scoped_finish_thread_state.
17145 (proceed_thread_callback): Skip inferiors with no execution.
17146 (continue_command): Rename 'all_threads' local to avoid hiding
17147 'all_threads' function. Adjust get_last_target_status call.
17148 (prepare_one_step): Adjust set_running call.
17149 (signal_command): Use user_visible_resume_target. Compare thread
17150 pointers instead of inferior_ptid.
17151 (info_program_command): Adjust to pass down target.
17152 (attach_command): Mark target's 'thread_executing' flag.
17153 (stop_current_target_threads_ns): New, factored out from ...
17154 (interrupt_target_1): ... this. Switch inferior before making
17155 target calls.
17156 * inferior-iter.h
17157 (struct all_inferiors_iterator, struct all_inferiors_range)
17158 (struct all_inferiors_safe_range)
17159 (struct all_non_exited_inferiors_range): Filter on
17160 process_stratum_target too. Remove explicit.
17161 * inferior.c (inferior::inferior): Push dummy target on target
17162 stack.
17163 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17164 Add process_stratum_target parameter, and pass it down.
17165 (have_live_inferiors): Adjust.
17166 (switch_to_inferior_and_push_target): New.
17167 (add_inferior_command, clone_inferior_command): Handle
17168 "-no-connection" parameter. Use
17169 switch_to_inferior_and_push_target.
17170 (_initialize_inferior): Mention "-no-connection" option in
17171 the help of "add-inferior" and "clone-inferior" commands.
17172 * inferior.h: Include "process-stratum-target.h".
17173 (interrupt_target_1): Use bool.
17174 (struct inferior) <push_target, unpush_target, target_is_pushed,
17175 find_target_beneath, top_target, process_target, target_at,
17176 m_stack>: New.
17177 (discard_all_inferiors): Delete.
17178 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17179 (all_inferiors, all_non_exited_inferiors): Add
17180 process_stratum_target parameter.
17181 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17182 (target_last_proc_target): New global.
17183 (follow_fork_inferior): Push target on new inferior. Pass target
17184 to add_thread_silent. Call exec_on_vfork. Handle target's
17185 reference count.
17186 (follow_fork): Adjust get_last_target_status call. Also consider
17187 target.
17188 (follow_exec): Push target on new inferior.
17189 (struct execution_control_state) <target>: New field.
17190 (user_visible_resume_target): New.
17191 (do_target_resume): Call target_async.
17192 (resume_1): Set target's threads_executing flag. Consider resume
17193 target.
17194 (commit_resume_all_targets): New.
17195 (proceed): Also consider resume target. Skip threads of inferiors
17196 with no execution. Commit resumtion in all targets.
17197 (start_remote): Pass current inferior to wait_for_inferior.
17198 (infrun_thread_stop_requested): Consider target as well. Pass
17199 thread_info pointer to clear_inline_frame_state instead of ptid.
17200 (infrun_thread_thread_exit): Consider target as well.
17201 (random_pending_event_thread): New inferior parameter. Use it.
17202 (do_target_wait): Rename to ...
17203 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17204 down.
17205 (threads_are_resumed_pending_p, do_target_wait): New.
17206 (prepare_for_detach): Adjust calls.
17207 (wait_for_inferior): New inferior parameter. Handle it. Use
17208 do_target_wait_1 instead of do_target_wait.
17209 (fetch_inferior_event): Adjust. Switch to representative
17210 inferior. Pass target down.
17211 (set_last_target_status): Add process_stratum_target parameter.
17212 Save target in global.
17213 (get_last_target_status): Add process_stratum_target parameter and
17214 handle it.
17215 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17216 (context_switch): Check inferior_ptid == null_ptid before calling
17217 inferior_thread().
17218 (get_inferior_stop_soon): Pass down target.
17219 (wait_one): Rename to ...
17220 (poll_one_curr_target): ... this.
17221 (struct wait_one_event): New.
17222 (wait_one): New.
17223 (stop_all_threads): Adjust.
17224 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17225 event's target.
17226 (switch_back_to_stepped_thread): Also consider target.
17227 (print_stop_event): Update.
17228 (normal_stop): Update. Also consider the resume target.
17229 * infrun.h (wait_for_inferior): Remove declaration.
17230 (user_visible_resume_target): New declaration.
17231 (get_last_target_status, set_last_target_status): New
17232 process_stratum_target parameter.
17233 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17234 process_stratum_target parameter, and use it.
17235 (clear_inline_frame_state (thread_info*)): New.
17236 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17237 process_stratum_target parameter.
17238 (clear_inline_frame_state (thread_info*)): Declare.
17239 * linux-fork.c (delete_checkpoint_command): Pass target down to
17240 find_thread_ptid.
17241 (checkpoint_command): Adjust.
17242 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17243 instead of just tweaking inferior_ptid.
17244 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17245 (exit_lwp): Pass target down to find_thread_ptid.
17246 (attach_proc_task_lwp_callback): Pass target down to
17247 add_thread/set_running/set_executing.
17248 (linux_nat_target::attach): Pass target down to
17249 thread_change_ptid.
17250 (get_detach_signal): Pass target down to find_thread_ptid.
17251 Consider last target status's target.
17252 (linux_resume_one_lwp_throw, resume_lwp)
17253 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17254 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17255 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17256 (linux_nat_target::async_wait_fd): New.
17257 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17258 target down.
17259 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17260 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17261 * linux-thread-db.c (struct thread_db_info::process_target): New
17262 field.
17263 (add_thread_db_info): Save target.
17264 (get_thread_db_info): New process_stratum_target parameter. Also
17265 match target.
17266 (delete_thread_db_info): New process_stratum_target parameter.
17267 Also match target.
17268 (thread_from_lwp): Adjust to pass down target.
17269 (thread_db_notice_clone): Pass down target.
17270 (check_thread_db_callback): Pass down target.
17271 (try_thread_db_load_1): Always push the thread_db target.
17272 (try_thread_db_load, record_thread): Pass target down.
17273 (thread_db_target::detach): Pass target down. Always unpush the
17274 thread_db target.
17275 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17276 target down. Always unpush the thread_db target.
17277 (find_new_threads_callback, thread_db_find_new_threads_2)
17278 (thread_db_target::update_thread_list): Pass target down.
17279 (thread_db_target::pid_to_str): Pass current inferior down.
17280 (thread_db_target::get_thread_local_address): Pass target down.
17281 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17282 target down.
17283 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17284 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17285 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17286 (procfs_init_inferior): Rename to ...
17287 (procfs_target::procfs_init_inferior): ... this and adjust.
17288 (procfs_target::create_inferior, procfs_notice_thread)
17289 (procfs_do_thread_registers): Adjust.
17290 * ppc-fbsd-tdep.c: Include "inferior.h".
17291 (ppcfbsd_get_thread_local_address): Pass down target.
17292 * proc-service.c (ps_xfer_memory): Switch current inferior and
17293 program space as well.
17294 (get_ps_regcache): Pass target down.
17295 * process-stratum-target.c
17296 (process_stratum_target::thread_address_space)
17297 (process_stratum_target::thread_architecture): Pass target down.
17298 * process-stratum-target.h
17299 (process_stratum_target::threads_executing): New field.
17300 (as_process_stratum_target): New.
17301 * ravenscar-thread.c
17302 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17303 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17304 down.
17305 * record-btrace.c (record_btrace_target::info_record): Adjust.
17306 (record_btrace_target::record_method)
17307 (record_btrace_target::record_is_replaying)
17308 (record_btrace_target::fetch_registers)
17309 (get_thread_current_frame_id, record_btrace_target::resume)
17310 (record_btrace_target::wait, record_btrace_target::stop): Pass
17311 target down.
17312 * record-full.c (record_full_wait_1): Switch to event thread.
17313 Pass target down.
17314 * regcache.c (regcache::regcache)
17315 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17316 process_stratum_target parameter and handle it.
17317 (current_thread_target): New global.
17318 (get_thread_regcache): Add process_stratum_target parameter and
17319 handle it. Switch inferior before calling target method.
17320 (get_thread_regcache): Pass target down.
17321 (get_thread_regcache_for_ptid): Pass target down.
17322 (registers_changed_ptid): Add process_stratum_target parameter and
17323 handle it.
17324 (registers_changed_thread, registers_changed): Pass target down.
17325 (test_get_thread_arch_aspace_regcache): New.
17326 (current_regcache_test): Define a couple local test_target_ops
17327 instances and use them for testing.
17328 (readwrite_regcache): Pass process_stratum_target parameter.
17329 (cooked_read_test, cooked_write_test): Pass mock_target down.
17330 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17331 (get_thread_arch_aspace_regcache): Add process_stratum_target
17332 parameter.
17333 (regcache::target): New method.
17334 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17335 (regcache::registers_changed_ptid): Add process_stratum_target
17336 parameter.
17337 (regcache::m_target): New field.
17338 (registers_changed_ptid): Add process_stratum_target parameter.
17339 * remote.c (remote_state::supports_vCont_probed): New field.
17340 (remote_target::async_wait_fd): New method.
17341 (remote_unpush_and_throw): Add remote_target parameter.
17342 (get_current_remote_target): Adjust.
17343 (remote_target::remote_add_inferior): Push target.
17344 (remote_target::remote_add_thread)
17345 (remote_target::remote_notice_new_inferior)
17346 (get_remote_thread_info): Pass target down.
17347 (remote_target::update_thread_list): Skip threads of inferiors
17348 bound to other targets. (remote_target::close): Don't discard
17349 inferiors. (remote_target::add_current_inferior_and_thread)
17350 (remote_target::process_initial_stop_replies)
17351 (remote_target::start_remote)
17352 (remote_target::remote_serial_quit_handler): Pass down target.
17353 (remote_target::remote_unpush_target): New remote_target
17354 parameter. Unpush the target from all inferiors.
17355 (remote_target::remote_unpush_and_throw): New remote_target
17356 parameter. Pass it down.
17357 (remote_target::open_1): Check whether the current inferior has
17358 execution instead of checking whether any inferior is live. Pass
17359 target down.
17360 (remote_target::remote_detach_1): Pass down target. Use
17361 remote_unpush_target.
17362 (extended_remote_target::attach): Pass down target.
17363 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17364 (remote_target::append_resumption): Pass down target.
17365 (remote_target::append_pending_thread_resumptions)
17366 (remote_target::remote_resume_with_hc, remote_target::resume)
17367 (remote_target::commit_resume): Pass down target.
17368 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17369 (remote_target::interrupt_query)
17370 (remote_target::remove_new_fork_children)
17371 (remote_target::check_pending_events_prevent_wildcard_vcont)
17372 (remote_target::remote_parse_stop_reply)
17373 (remote_target::process_stop_reply): Pass down target.
17374 (first_remote_resumed_thread): New remote_target parameter. Pass
17375 it down.
17376 (remote_target::wait_as): Pass down target.
17377 (unpush_and_perror): New remote_target parameter. Pass it down.
17378 (remote_target::readchar, remote_target::remote_serial_write)
17379 (remote_target::getpkt_or_notif_sane_1)
17380 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17381 down target.
17382 (remote_target::mourn_inferior): Pass down target. Use
17383 remote_unpush_target.
17384 (remote_target::core_of_thread)
17385 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17386 (remote_target::pid_to_exec_file)
17387 (remote_target::thread_handle_to_thread_info): Pass down target.
17388 (remote_target::async_wait_fd): New.
17389 * riscv-fbsd-tdep.c: Include "inferior.h".
17390 (riscv_fbsd_get_thread_local_address): Pass down target.
17391 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17392 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17393 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17394 Adjust.
17395 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17396 * solib-svr4.c (enable_break): Pass down target.
17397 * spu-multiarch.c (parse_spufs_run): Pass down target.
17398 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17399 * target-delegates.c: Regenerate.
17400 * target.c (g_target_stack): Delete.
17401 (current_top_target): Return the current inferior's top target.
17402 (target_has_execution_1): Refer to the passed-in inferior's top
17403 target.
17404 (target_supports_terminal_ours): Check whether the initial
17405 inferior was already created.
17406 (decref_target): New.
17407 (target_stack::push): Incref/decref the target.
17408 (push_target, push_target, unpush_target): Adjust.
17409 (target_stack::unpush): Defref target.
17410 (target_is_pushed): Return bool. Adjust to refer to the current
17411 inferior's target stack.
17412 (dispose_inferior): Delete, and inline parts ...
17413 (target_preopen): ... here. Only dispose of the current inferior.
17414 (target_detach): Hold strong target reference while detaching.
17415 Pass target down.
17416 (target_thread_name): Add assertion.
17417 (target_resume): Pass down target.
17418 (target_ops::beneath, find_target_at): Adjust to refer to the
17419 current inferior's target stack.
17420 (get_dummy_target): New.
17421 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17422 has a thread running.
17423 (initialize_targets): Rename to ...
17424 (_initialize_target): ... this.
17425 * target.h: Include "gdbsupport/refcounted-object.h".
17426 (struct target_ops): Inherit refcounted_object.
17427 (target_ops::shortname, target_ops::longname): Make const.
17428 (target_ops::async_wait_fd): New method.
17429 (decref_target): Declare.
17430 (struct target_ops_ref_policy): New.
17431 (target_ops_ref): New typedef.
17432 (get_dummy_target): Declare function.
17433 (target_is_pushed): Return bool.
17434 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17435 (all_matching_threads_iterator::all_matching_threads_iterator):
17436 Handle filter target.
17437 * thread-iter.h (struct all_matching_threads_iterator, struct
17438 all_matching_threads_range, class all_non_exited_threads_range):
17439 Filter by target too. Remove explicit.
17440 * thread.c (threads_executing): Delete.
17441 (inferior_thread): Pass down current inferior.
17442 (clear_thread_inferior_resources): Pass down thread pointer
17443 instead of ptid_t.
17444 (add_thread_silent, add_thread_with_info, add_thread): Add
17445 process_stratum_target parameter. Use it for thread and inferior
17446 searches.
17447 (is_current_thread): New.
17448 (thread_info::deletable): Use it.
17449 (find_thread_ptid, thread_count, in_thread_list)
17450 (thread_change_ptid, set_resumed, set_running): New
17451 process_stratum_target parameter. Pass it down.
17452 (set_executing): New process_stratum_target parameter. Pass it
17453 down. Adjust reference to 'threads_executing'.
17454 (threads_are_executing): New process_stratum_target parameter.
17455 Adjust reference to 'threads_executing'.
17456 (set_stop_requested, finish_thread_state): New
17457 process_stratum_target parameter. Pass it down.
17458 (switch_to_thread): Also match inferior.
17459 (switch_to_thread): New process_stratum_target parameter. Pass it
17460 down.
17461 (update_threads_executing): Reimplement.
17462 * top.c (quit_force): Pop targets from all inferior.
17463 (gdb_init): Don't call initialize_targets.
17464 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17465 Declare.
17466 (windows_add_thread, windows_delete_thread): Adjust.
17467 (get_windows_debug_event): Rename to ...
17468 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17469 * tracefile-tfile.c (tfile_target_open): Pass down target.
17470 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17471 Forward declare.
17472 (switch_to_thread): Add process_stratum_target parameter.
17473 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17474 parameter. Use it.
17475 (mi_on_resume): Pass target down.
17476 * nat/fork-inferior.c (startup_inferior): Add
17477 process_stratum_target parameter. Pass it down.
17478 * nat/fork-inferior.h (startup_inferior): Add
17479 process_stratum_target parameter.
17480 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17481
17482 2020-01-10 Pedro Alves <palves@redhat.com>
17483
17484 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17485 directly. Instead find the first thread in the thread list and
17486 use switch_to_thread.
17487
17488 2020-01-10 Pedro Alves <palves@redhat.com>
17489
17490 * remote.c (remote_target::remote_add_inferior): Don't bind a
17491 process to the current inferior if the current inferior is already
17492 bound to a process.
17493
17494 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17495 Pedro Alves <palves@redhat.com>
17496
17497 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17498 If no process is specified, return null_ptid instead of
17499 inferior_ptid.
17500 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17501 TARGET_WAITKIND_SIGNALLED with no pid.
17502
17503 2020-01-10 Pedro Alves <palves@redhat.com>
17504
17505 * remote.c (first_remote_resumed_thread): New.
17506 (remote_target::wait_as): Use it as default event_ptid instead of
17507 inferior_ptid.
17508
17509 2020-01-10 Pedro Alves <palves@redhat.com>
17510
17511 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17512
17513 2020-01-10 Pedro Alves <palves@redhat.com>
17514
17515 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17516 not -1.
17517
17518 2020-01-10 Pedro Alves <palves@redhat.com>
17519
17520 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17521 ptid to get_last_target_status.
17522 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17523 ptid to get_last_target_status.
17524 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17525 get_last_target_status.
17526 (info_program_command): Don't pass a target_waitstatus to
17527 get_last_target_status.
17528 * infrun.c (init_wait_for_inferior): Use
17529 nullify_last_target_wait_ptid.
17530 (get_last_target_status): Handle nullptr arguments.
17531 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17532 (print_stop_event): Don't pass a ptid to get_last_target_status.
17533 (normal_stop): Don't pass a ptid to get_last_target_status.
17534 * infrun.h (get_last_target_status, set_last_target_status): Move
17535 comments here and update.
17536 (nullify_last_target_wait_ptid): Declare.
17537 * linux-fork.c (fork_load_infrun_state): Remove local extern
17538 declaration of nullify_last_target_wait_ptid.
17539 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17540 to get_last_target_status.
17541
17542 2020-01-10 Pedro Alves <palves@redhat.com>
17543
17544 * gdbthread.h (scoped_restore_current_thread)
17545 <dont_restore, restore, m_dont_restore>: Declare.
17546 * thread.c (thread_alive): Add assertion. Return bool.
17547 (switch_to_thread_if_alive): New.
17548 (prune_threads): Switch inferior/thread.
17549 (print_thread_info_1): Switch thread before calling target methods.
17550 (scoped_restore_current_thread::restore): New, factored out from
17551 ...
17552 (scoped_restore_current_thread::~scoped_restore_current_thread):
17553 ... this.
17554 (scoped_restore_current_thread::scoped_restore_current_thread):
17555 Add assertion.
17556 (thread_apply_all_command, thread_select): Use
17557 switch_to_thread_if_alive.
17558 * infrun.c (proceed, restart_threads, handle_signal_stop)
17559 (switch_back_to_stepped_thread): Switch current thread before
17560 calling target methods.
17561
17562 2020-01-10 Pedro Alves <palves@redhat.com>
17563
17564 * inferior.c (switch_to_inferior_no_thread): New function,
17565 factored out from ...
17566 (inferior_command): ... here.
17567 * inferior.h (switch_to_inferior_no_thread): Declare.
17568 * mi/mi-main.c (run_one_inferior): Use
17569 switch_to_inferior_no_thread.
17570
17571 2020-01-10 Pedro Alves <palves@redhat.com>
17572
17573 * infcmd.c (kill_command): Remove dead code.
17574
17575 2020-01-10 Pedro Alves <palves@redhat.com>
17576
17577 * remote.c (remote_target::mourn_inferior): No longer check
17578 whether the target is running.
17579
17580 2020-01-10 Pedro Alves <palves@redhat.com>
17581
17582 * corelow.c (core_target::has_execution): Change parameter type to
17583 inferior pointer.
17584 * inferior.c (number_of_live_inferiors): Use
17585 inferior::has_execution instead of target_has_execution_1.
17586 * inferior.h (inferior::has_execution): New.
17587 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17588 inferior::has_execution instead of target_has_execution_1.
17589 * process-stratum-target.c
17590 (process_stratum_target::has_execution): Change parameter type to
17591 inferior pointer. Check the inferior's PID instead of
17592 inferior_ptid.
17593 * process-stratum-target.h
17594 (process_stratum_target::has_execution): Change parameter type to
17595 inferior pointer.
17596 * record-full.c (record_full_core_target::has_execution): Change
17597 parameter type to inferior pointer.
17598 * target.c (target_has_execution_1): Change parameter type to
17599 inferior pointer.
17600 (target_has_execution_current): Adjust.
17601 * target.h (target_ops::has_execution): Change parameter type to
17602 inferior pointer.
17603 (target_has_execution_1): Change parameter type to inferior
17604 pointer. Change return type to bool.
17605 * tracefile.h (tracefile_target::has_execution): Change parameter
17606 type to inferior pointer.
17607
17608 2020-01-10 Pedro Alves <palves@redhat.com>
17609
17610 * exceptions.c (print_flush): Remove current_top_target() check.
17611
17612 2020-01-10 Pedro Alves <palves@redhat.com>
17613
17614 * remote.c (show_remote_exec_file): Show the current inferior's
17615 exec-file instead of the command variable's value.
17616
17617 2020-01-10 Pedro Alves <palves@redhat.com>
17618
17619 * record-full.c (record_full_resume_ptid): New global.
17620 (record_full_target::resume): Set it.
17621 (record_full_wait_1): Use record_full_resume_ptid instead of
17622 inferior_ptid.
17623
17624 2020-01-10 Pedro Alves <palves@redhat.com>
17625
17626 * gdbthread.h (scoped_restore_current_thread)
17627 <dont_restore, restore, m_dont_restore>: Declare.
17628 * thread.c (thread_alive): Add assertion. Return bool.
17629 (switch_to_thread_if_alive): New.
17630 (prune_threads): Switch inferior/thread.
17631 (print_thread_info_1): Switch thread before calling target methods.
17632 (scoped_restore_current_thread::restore): New, factored out from
17633 ...
17634 (scoped_restore_current_thread::~scoped_restore_current_thread):
17635 ... this.
17636 (scoped_restore_current_thread::scoped_restore_current_thread):
17637 Add assertion.
17638 (thread_apply_all_command, thread_select): Use
17639 switch_to_thread_if_alive.
17640
17641 2020-01-10 George Barrett <bob@bob131.so>
17642
17643 * stap-probe.c (stap_modify_semaphore): Don't check for null
17644 semaphores.
17645 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17646 for null semaphores.
17647
17648 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17649
17650 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17651 all source windows, and maintain horizontal scroll status while
17652 doing so.
17653
17654 2020-01-09 Tom Tromey <tom@tromey.com>
17655
17656 PR tui/18932:
17657 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17658 update_source_window, not print_source_lines.
17659
17660 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17661
17662 * tui/tui.c (tui_enable): Register tui hooks after calling
17663 tui_display_main.
17664
17665 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17666
17667 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17668
17669 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17670
17671 * thread.c (print_thread_info_1): Fix indentation.
17672
17673 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17674
17675 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17676 unique_xmalloc_ptr outside the if to always free the demangled name.
17677
17678 2020-01-08 Tom Tromey <tromey@adacore.com>
17679
17680 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17681 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17682 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17683 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17684 Remove.
17685 (section_offsets): New typedef.
17686 * symtab.c (fixup_section, get_msymbol_address): Update.
17687 * symmisc.c (dump_msymbols): Update.
17688 * symfile.h (relative_addr_info_to_section_offsets)
17689 (symfile_map_offsets_to_segments): Update.
17690 * symfile.c (build_section_addr_info_from_objfile)
17691 (init_objfile_sect_indices): Update.
17692 (struct place_section_arg): Change type of "offsets".
17693 (place_section): Update.
17694 (relative_addr_info_to_section_offsets): Change type of
17695 "section_offsets". Remove "num_sections" parameter.
17696 (default_symfile_offsets, syms_from_objfile_1)
17697 (set_objfile_default_section_offset): Update.
17698 (reread_symbols): No need to preserve section offsets by hand.
17699 (symfile_map_offsets_to_segments): Change type of "offsets".
17700 * stap-probe.c (relocate_address): Update.
17701 * stabsread.h (process_one_symbol): Update.
17702 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17703 (solib_target_relocate_section_addresses): Update.
17704 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17705 Update.
17706 * solib-frv.c (frv_relocate_main_executable): Update.
17707 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17708 * solib-aix.c (solib_aix_get_section_offsets): Change return
17709 type.
17710 (solib_aix_solib_create_inferior_hook): Update.
17711 * remote.c (remote_target::get_offsets): Update.
17712 * psymtab.c (find_pc_sect_psymtab): Update.
17713 * psympriv.h (struct partial_symbol) <address, text_low,
17714 text_high>: Update.
17715 * objfiles.h (obj_section_offset): Update.
17716 (struct objfile) <section_offsets>: Change type.
17717 <num_sections>: Remove.
17718 (objfile_relocate): Update.
17719 * objfiles.c (entry_point_address_query): Update
17720 (relocate_one_symbol): Change type of "section_offsets".
17721 (objfile_relocate1, objfile_relocate1): Change type of
17722 "new_offsets".
17723 (objfile_rebase1): Update.
17724 * mipsread.c (mipscoff_symfile_read): Update.
17725 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17726 parameter.
17727 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17728 (parse_external, psymtab_to_symtab_1): Update.
17729 * machoread.c (macho_symfile_offsets): Update.
17730 * ia64-tdep.c (ia64_find_unwind_table): Update.
17731 * hppa-tdep.c (read_unwind_info): Update.
17732 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17733 * dwarf2read.c (create_addrmap_from_index)
17734 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17735 (process_psymtab_comp_unit_reader, add_partial_symbol)
17736 (add_partial_subprogram, process_full_comp_unit)
17737 (read_file_scope, read_func_scope, read_lexical_block_scope)
17738 (read_call_site_scope, dwarf2_rnglists_process)
17739 (dwarf2_ranges_process, dwarf2_ranges_read)
17740 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17741 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17742 Update.
17743 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17744 Update.
17745 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17746 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17747 (process_one_symbol): Change type of "section_offsets".
17748 * ctfread.c (get_objfile_text_range): Update.
17749 * coffread.c (coff_symtab_read, enter_linenos)
17750 (process_coff_symbol): Update.
17751 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17752 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17753
17754 2020-01-08 Tom Tromey <tromey@adacore.com>
17755
17756 * dwarf2read.c (parse_macro_definition): Use std::string.
17757 (parse_macro_definition): Likewise.
17758
17759 2020-01-08 Tom Tromey <tromey@adacore.com>
17760
17761 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17762 (ATTR_ALLOC_CHUNK): Remove.
17763
17764 2020-01-08 Tom Tromey <tromey@adacore.com>
17765
17766 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17767
17768 2020-01-08 Tom Tromey <tromey@adacore.com>
17769
17770 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17771 (dwarf2_compute_name, open_dwo_file): Likewise.
17772 (process_enumeration_scope): Use std::vector.
17773 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17774 (partial_die_info::fixup, dwarf2_start_subfile)
17775 (guess_full_die_structure_name, dwarf2_name): Likewise.
17776 (determine_prefix): Update.
17777 (guess_full_die_structure_name): Make return type const.
17778 (partial_die_full_name): Return unique_xmalloc_ptr.
17779 (DW_FIELD_ALLOC_CHUNK): Remove.
17780
17781 2020-01-07 Tom Tromey <tromey@adacore.com>
17782
17783 PR build/24937:
17784 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17785
17786 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17787
17788 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17789
17790 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17791
17792 * stack.c (print_frame_info): Move disassemble_next_line code
17793 inside source_print block.
17794
17795 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17796
17797 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17798 gdb/signals.h, as we are now using native signal symbols.
17799
17800 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17801
17802 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17803 overflow by an early check of content vs threshold.
17804 * tui/tui-source.c (tui_source_window::line_is_displayed):
17805 Likewise.
17806
17807 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17808
17809 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17810
17811 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17812
17813 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17814 export table if no section contains it's RVA.
17815
17816 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17817
17818 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17819
17820 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17821
17822 * source.c (print_source_lines_base): Set last_line_listed.
17823
17824 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17825
17826 * tui/tui-disasm.c: Remove trailing spaces.
17827
17828 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17829 Pedro Alves <palves@redhat.com>
17830
17831 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17832 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17833 (windows_gdb_signal_to_target): New function, uses the above
17834 enumeration to convert GDB internal signal codes to equivalent
17835 Windows codes.
17836 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17837 * windows-nat.c: Include "gdb_wait.h".
17838 (get_windows_debug_event): Extract the fatal exception from the
17839 exit status and convert to the equivalent Posix signal number.
17840 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17841 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17842 * gdbsupport/gdb_wait.c: New file, implements
17843 windows_status_to_termsig.
17844 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17845 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17846
17847 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17848
17849 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17850 show_layout.
17851
17852 2020-01-05 Luis Machado <luis.machado@linaro.org>
17853
17854 * aarch64-linux-nat.c
17855 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17856 and bfd_mach_aarch64.
17857
17858 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17859
17860 * ui-file.c (stdio_file::can_emit_style_escape)
17861 (tee_file::can_emit_style_escape): Ensure style is used also on
17862 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17863 to gdb_stdout.
17864 * main.c (set_gdb_data_directory): Use file style to output the
17865 warning that the given pathname is not a directory.
17866 * top.c (show_history_filename, gdb_safe_append_history)
17867 (show_gdb_datadir): Use file style.
17868
17869 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17870
17871 * solib-target.c (struct lm_info_target):
17872 Change offsets to be a unique_xmalloc_ptr.
17873 (solib_target_relocate_section_addresses): Update.
17874
17875 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17876
17877 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17878
17879 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17880
17881 * MAINTAINERS (Write After Approval): Add myself.
17882
17883 2020-01-02 Luis Machado <luis.machado@linaro.org>
17884
17885 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17886 Cell BE architecture.
17887 * target.h (struct target_ops) <thread_architecture>: Likewise.
17888
17889 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17890
17891 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17892
17893 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17894
17895 * MAINTAINERS (Write After Approval): Add myself.
17896
17897 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17898
17899 * gdbarch.sh: Update copyright year range of generated files.
17900
17901 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17902
17903 Update copyright year range in all GDB files.
17904
17905 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17906
17907 * copyright.py: Convert to Python 3.
17908
17909 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17910
17911 * copyright.py: Adapt after move of gnulib directory from gdb
17912 directory to toplevel directory.
17913
17914 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17915
17916 * copyright.py (main): Exit if run from the wrong directory.
17917
17918 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17919
17920 * top.c (print_gdb_version): Change copyright year to 2020.
17921
17922 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17923
17924 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17925
17926 For older changes see ChangeLog-2019.
17927 \f
17928 Local Variables:
17929 mode: change-log
17930 left-margin: 8
17931 fill-column: 74
17932 version-control: never
17933 coding: utf-8
17934 End:
This page took 0.374714 seconds and 5 git commands to generate.