gdb: change linux gdbarch data from post to pre-init
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
2
3 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
4 obkstack.
5 (_initialize_linux_tdep): Register pre-init gdb data instead of
6 post-init.
7
8 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
9
10 * displaced-stepping.h (struct
11 displaced_step_copy_insn_closure): Adjust comments.
12 (struct displaced_step_inferior_state) <step_thread,
13 step_gdbarch, step_closure, step_original, step_copy,
14 step_saved_copy>: Remove fields.
15 (struct displaced_step_thread_state): New.
16 (struct displaced_step_buffer): New.
17 * displaced-stepping.c (displaced_step_buffer::prepare): New.
18 (write_memory_ptid): Move from infrun.c.
19 (displaced_step_instruction_executed_successfully): New,
20 factored out of displaced_step_finish.
21 (displaced_step_buffer::finish): New.
22 (displaced_step_buffer::copy_insn_closure_by_addr): New.
23 (displaced_step_buffer::restore_in_ptid): New.
24 * gdbarch.sh (displaced_step_location): Remove.
25 (displaced_step_prepare, displaced_step_finish,
26 displaced_step_copy_insn_closure_by_addr,
27 displaced_step_restore_all_in_ptid): New.
28 * gdbarch.c: Re-generate.
29 * gdbarch.h: Re-generate.
30 * gdbthread.h (class thread_info) <displaced_step_state>: New
31 field.
32 (thread_step_over_chain_remove): New declaration.
33 (thread_step_over_chain_next): New declaration.
34 (thread_step_over_chain_length): New declaration.
35 * thread.c (thread_step_over_chain_remove): Make non-static.
36 (thread_step_over_chain_next): New.
37 (global_thread_step_over_chain_next): Use
38 thread_step_over_chain_next.
39 (thread_step_over_chain_length): New.
40 (global_thread_step_over_chain_enqueue): Add debug print.
41 (global_thread_step_over_chain_remove): Add debug print.
42 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
43 Remove.
44 * infrun.c (get_displaced_stepping_state): New.
45 (displaced_step_in_progress_any_inferior): Remove.
46 (displaced_step_in_progress_thread): Adjust.
47 (displaced_step_in_progress): Adjust.
48 (displaced_step_in_progress_any_thread): New.
49 (get_displaced_step_copy_insn_closure_by_addr): Remove.
50 (gdbarch_supports_displaced_stepping): Use
51 gdbarch_displaced_step_prepare_p.
52 (displaced_step_reset): Change parameter from inferior to
53 thread.
54 (displaced_step_prepare_throw): Implement using
55 gdbarch_displaced_step_prepare.
56 (write_memory_ptid): Move to displaced-step.c.
57 (displaced_step_restore): Remove.
58 (displaced_step_finish): Implement using
59 gdbarch_displaced_step_finish.
60 (start_step_over): Allow starting more than one displaced step.
61 (prepare_for_detach): Handle possibly multiple threads doing
62 displaced steps.
63 (handle_inferior_event): Handle possibility that fork event
64 happens while another thread displaced steps.
65 * linux-tdep.h (linux_displaced_step_prepare): New.
66 (linux_displaced_step_finish): New.
67 (linux_displaced_step_copy_insn_closure_by_addr): New.
68 (linux_displaced_step_restore_all_in_ptid): New.
69 (linux_init_abi): Add supports_displaced_step parameter.
70 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
71 (linux_displaced_step_prepare): New.
72 (linux_displaced_step_finish): New.
73 (linux_displaced_step_copy_insn_closure_by_addr): New.
74 (linux_displaced_step_restore_all_in_ptid): New.
75 (linux_init_abi): Add supports_displaced_step parameter,
76 register displaced step methods if true.
77 (_initialize_linux_tdep): Register inferior_execd observer.
78 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
79 supports_displaced_step parameter, adjust call to
80 linux_init_abi. Remove call to
81 set_gdbarch_displaced_step_location.
82 (amd64_linux_init_abi): Adjust call to
83 amd64_linux_init_abi_common.
84 (amd64_x32_linux_init_abi): Likewise.
85 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
86 linux_init_abi. Remove call to
87 set_gdbarch_displaced_step_location.
88 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
89 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
90 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
91 linux_init_abi.
92 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
93 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
94 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
95 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
96 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
97 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
98 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
99 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
100 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
101 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
102 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
103 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
104 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
105 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
106 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
107 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
108 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
109 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
110 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
111 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
112 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
113 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
114 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
115 linux_init_abi. Remove call to
116 set_gdbarch_displaced_step_location.
117 * arm-tdep.c (arm_pc_is_thumb): Call
118 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
119 get_displaced_step_copy_insn_closure_by_addr.
120 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
121 clear gdbarch methods.
122 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
123 (get_ppc_per_inferior): New function.
124 (ppc_displaced_step_prepare): New function.
125 (ppc_displaced_step_finish): New function.
126 (ppc_displaced_step_restore_all_in_ptid): New function.
127 (rs6000_gdbarch_init): Register new gdbarch methods.
128 * s390-tdep.c (s390_gdbarch_init): Don't call
129 set_gdbarch_displaced_step_location, set new gdbarch methods.
130
131 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
132
133 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
134 * aarch64-tdep.h: Include displaced-stepping.h.
135 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
136 Move here.
137 (displaced_step_copy_insn_closure_up): Move here.
138 (struct buf_displaced_step_copy_insn_closure): Move here.
139 (struct displaced_step_inferior_state): Move here.
140 (debug_displaced): Move here.
141 (displaced_debug_printf_1): Move here.
142 (displaced_debug_printf): Move here.
143 * displaced-stepping.c: New file.
144 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
145 * gdbarch.h: Re-generate.
146 * inferior.h: Include displaced-stepping.h.
147 * infrun.h (debug_displaced): Move to displaced-stepping.h.
148 (displaced_debug_printf_1): Likewise.
149 (displaced_debug_printf): Likewise.
150 (struct displaced_step_copy_insn_closure): Likewise.
151 (displaced_step_copy_insn_closure_up): Likewise.
152 (struct buf_displaced_step_copy_insn_closure): Likewise.
153 (struct displaced_step_inferior_state): Likewise.
154 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
155 (displaced_debug_printf_1): Likewise.
156 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
157 Likewise.
158 (_initialize_infrun): Don't register "set/show debug displaced".
159
160 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
161
162 * linux-tdep.c (get_linux_inferior_data): Add inferior
163 parameter.
164 (linux_vsyscall_range): Pass current inferior.
165
166 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
167
168 * infrun.c (displaced_step_prepare_throw): Change return type to
169 displaced_step_prepare_status.
170 (displaced_step_prepare): Likewise.
171 (displaced_step_finish): Change return type to
172 displaced_step_finish_status.
173 (resume_1): Adjust.
174 (stop_all_threads): Adjust.
175 * displaced-stepping.h: New file.
176
177 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
178
179 * infrun.c (displaced_step_fixup): Rename to...
180 (displaced_step_finish): ... this, update all callers.
181
182 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
183
184 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
185 (get_displaced_step_copy_insn_closure_by_addr): ... this.
186 Update all users.
187 (displaced_step_closure): Rename to...
188 (displaced_step_copy_insn_closure): ... this. Update all users.
189 (displaced_step_closure_up): Rename to...
190 (displaced_step_copy_insn_closure_up). ... this. Update all
191 users.
192 (buf_displaced_step_closure): Rename to...
193 (buf_displaced_step_copy_insn_closure): ... this. Update all
194 users.
195 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
196 (get_displaced_step_copy_insn_closure_by_addr): ... this.
197 Update all users.
198 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
199 (aarch64_displaced_step_copy_insn_closure): ... this. Update
200 all users.
201 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
202 (amd64_displaced_step_copy_insn_closure): ... this. Update all
203 users.
204 * arm-tdep.h (arm_displaced_step_closure): Rename to...
205 (arm_displaced_step_copy_insn_closure): ... this. Update all
206 users.
207 * i386-tdep.h (i386_displaced_step_closure): Rename to...
208 (i386_displaced_step_copy_insn_closure): ... this. Update all
209 users.
210 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
211 (ppc_displaced_step_copy_insn_closure): ... this. Update all
212 users.
213 * s390-tdep.c (s390_displaced_step_closure): Rename to...
214 (s390_displaced_step_copy_insn_closure): ... this. Update all
215 users.
216 * gdbarch.h: Re-generate.
217 * gdbarch.c: Re-generate.
218
219 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
220
221 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
222 (global_thread_step_over_chain_enqueue): ... this. Update all
223 users.
224 (thread_step_over_chain_remove): Rename to...
225 (global_thread_step_over_chain_remove): ... this. Update all
226 users.
227 (thread_step_over_chain_next): Rename to...
228 (global_thread_step_over_chain_next): ... this. Update all
229 users.
230 * infrun.h (step_over_queue_head): Rename to...
231 (global_thread_step_over_chain_head): ... this. Update all
232 users.
233 * infrun.c (step_over_queue_head): Rename to...
234 (global_thread_step_over_chain_head): ... this. Update all
235 users.
236 * thread.c (step_over_chain_remove): Rename to...
237 (thread_step_over_chain_remove): ... this. Update all users.
238 (thread_step_over_chain_next): Rename to...
239 (global_thread_step_over_chain_next): ... this. Update all
240 users.
241 (thread_step_over_chain_enqueue): Rename to...
242 (global_thread_step_over_chain_enqueue): ... this. Update all
243 users.
244 (thread_step_over_chain_remove): Rename to...
245 (global_thread_step_over_chain_remove): ... this. Update all
246 users.
247
248 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
249
250 * infrun.c (get_displaced_stepping_state): Remove, change
251 callers to access the field directly.
252
253 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
254
255 * infrun.c (handle_inferior_event): Restore displaced step
256 buffer bytes in child process when handling fork, even if fork
257 happened in another thread than the displaced-stepping one.
258
259 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
260
261 * infrun.c (infrun_inferior_execd): New function.
262 (_initialize_infrun): Attach inferior_execd observer.
263
264 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
265
266 * observable.h (inferior_execd): Declare new observable.
267 * observable.c (inferior_execd): Declare new observable.
268 * infrun.c (follow_exec): Notify inferior_execd observer.
269 * jit.c (jit_inferior_created_hook): Make static.
270 (_initialize_jit): Register inferior_execd observer.
271 * jit.h (jit_inferior_created_hook): Remove declaration.
272 * solib.c (_initialize_solib): Register inferior_execd observer.
273
274 2020-12-04 Tom de Vries <tdevries@suse.de>
275
276 PR gdb/27003
277 * completer.c (completion_tracker::build_completion_result): Don't
278 access match_list[0][-1].
279
280 2020-12-04 Tom Tromey <tromey@adacore.com>
281
282 * linespec.c (struct linespec_token): Rename; remove typedef.
283 * guile/scm-block.c (struct block_smob): Remove typedef.
284 (struct block_syms_progress_smob): Likewise.
285 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
286 * guile/scm-symtab.c (symtab_smob): Remove typedef.
287 (struct sal_smob): Remove typedef.
288 * guile/scm-param.c (struct param_smob): Remove typedef.
289 * guile/scm-progspace.c (struct pspace_smob): Rename.
290 * guile/scm-objfile.c (struct objfile_smob): Rename.
291 * guile/scm-iterator.c (struct iterator_smob): Rename.
292 * guile/scm-frame.c (struct frame_smob): Rename.
293 * guile/scm-arch.c (struct arch_smob): Rename.
294 * guile/scm-type.c (struct field_smob): Remove typedef.
295 (struct type_smob): Rename.
296 * guile/scm-cmd.c (struct command_smob): Remove typedef.
297 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
298 * guile/scm-value.c (struct value_smob): Remove typedef.
299 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
300 * guile/guile-internal.h (struct scheme_variable)
301 (struct scheme_function, struct scheme_integer_constant)
302 (struct gdb_smob, struct chained_gdb_smob)
303 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
304 (objfile_smob, pspace_smob, type_smob): Remove typedef.
305 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
306 (struct pretty_printer_worker_smob): Remove typedef.
307 * guile/scm-exception.c (struct exception_smob): Remove typedef.
308 * python/py-block.c (struct block_object): Remove typedef.
309 (block_syms_iterator_object): Update.
310 (set_block): Update.
311 (block_syms_iterator_object): Remove typedef.
312 * python/py-inferior.c (struct membuf_object): Remove typedef.
313 * python/py-symtab.c (struct symtab_object): Remove typedef.
314 (set_symtab): Update.
315 (sal_object): Remove typedef.
316 (set_sal): Update.
317 * python/py-frame.c (frame_object): Remove typedef.
318 * python/py-record-btrace.c (struct btpy_list_object): Remove
319 typedef.
320 * python/py-arch.c (struct arch_object): Remove typedef.
321 * python/py-linetable.c (struct linetable_entry_object)
322 (linetable_object, struct ltpy_iterator_object): Remove typedef.
323 * python/py-events.h (eventregistry_object): Remove typedef.
324 (struct events_object): Remove typedef.
325 * python/python-internal.h (gdbpy_breakpoint_object): Remove
326 typedef.
327 (thread_object): Remove typedef.
328 * python/py-progspace.c (pspace_object): Remove typedef.
329 * python/py-value.c (struct value_object): Remove typedef.
330 * python/py-record.h (recpy_record_object): Remove typedef.
331 (struct recpy_element_object): Remove typedef.
332 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
333 * python/py-objfile.c (objfile_object): Remove typedef.
334 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
335 * python/py-type.c (type_object): Remove typedef.
336 (typy_iterator_object): Update.
337 (set_type): Update.
338 (field_object): Remove typedef.
339 (typy_iterator_object): Remove typedef.
340 * python/py-registers.c (register_descriptor_iterator_object):
341 Remove typedef.
342 (struct register_descriptor_object)
343 (struct reggroup_iterator_object, struct reggroup_object): Remove
344 typedef.
345 * python/py-record.c (recpy_gap_object): Remove typedef.
346 * python/py-symbol.c (symbol_object): Remove typedef.
347 (set_symbol): Update.
348 * python/py-event.h (event_object): Remove typedef.
349 * python/py-param.c (parmpy_object): Remove typedef.
350 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
351 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
352 (unwind_info_object, struct cached_frame_info): Likewise.
353
354 2020-12-04 Tom Tromey <tromey@adacore.com>
355
356 * value.c (value_internal_function_name): Make return type const.
357 * value.h (value_internal_function_name): Make return type const.
358
359 2020-12-04 Luis Machado <luis.machado@linaro.org>
360
361 * aarch64-tdep.c (submask, bit, bits): Remove.
362 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
363 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
364 (aarch64_decode_cb, aarch64_decode_tb)
365 (aarch64_decode_ldr_literal): Use sbits to extract a signed
366 immediate.
367 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
368
369 2020-12-04 Tom de Vries <tdevries@suse.de>
370
371 PR tdep/27007
372 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
373
374 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
375
376 PR gdb/26876
377 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
378 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
379
380 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
381
382 * arch/riscv.c: Include 'rv32e-xregs.c'.
383 (riscv_create_target_description): Update to handle rv32e.
384 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
385 member variable.
386 <operator==>: Update to account for new field.
387 <hash>: Likewise.
388 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
389 * features/riscv/rv32e-xregs.c: Generated.
390 * features/riscv/rv32e-xregs.xml: New file.
391 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
392 file.
393 (riscv_debug_infcall): Likewise.
394 (riscv_debug_unwinder): Likewise.
395 (riscv_debug_gdbarch): Likewise.
396 (enum riscv_register_required_status): Delete.
397 (struct riscv_register_feature): Add constructor, delete default
398 constructor, copy, and assign constructors.
399 (struct riscv_register_feature::register_info) <required>: Delete.
400 <check>: Update comment and arguments.
401 (struct riscv_register_feature) <name>: Change to member function.
402 <prefer_first_name>: Delete.
403 <tdesc_feature>: New member function.
404 <registers>: Rename to...
405 <m_registers>: ...this.
406 <m_feature_name>: New member variable.
407 (riscv_register_feature::register_info::check): Update arguments.
408 (riscv_xreg_feature): Rewrite as class, create a single static
409 instance of the class.
410 (riscv_freg_feature): Likewise.
411 (riscv_virtual_feature): Likewise.
412 (riscv_csr_feature): Likewise.
413 (riscv_create_csr_aliases): Has become a member function inside
414 riscv_csr_feature class.
415 (riscv_abi_embedded): New function definition.
416 (riscv_register_name): Adjust to use new feature objects.
417 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
418 and adjust available argument registers.
419 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
420 (riscv_check_tdesc_feature): Delete.
421 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
422 (riscv_gdbarch_init): Delete target description checking code, and
423 instead call to the new feature objects to perform the checks.
424 Reorder handling of no abi information case, allows small code
425 simplification.
426 (_initialize_riscv_tdep): Remove call, this is now done in the
427 riscv_csr_feature constructor.
428 * riscv-tdep.h (riscv_abi_embedded): Declare.
429
430 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
431
432 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
433 DECLARE_CSR_ALIAS.
434
435 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
436
437 * riscv-tdep.c (riscv_is_unknown_csr): New function,
438 implementation moved from riscv_register_reggroup_p.
439 (riscv_register_reggroup_p): Update group handling for unknown
440 CSRs.
441
442 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
443
444 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
445 (dwarf2_get_dwz_file): Convert 'filename' to a
446 std::string. Use dwz_search_other_debugdirs to search for DWZ
447 files in the debug-file-directories provided by the user as well.
448
449 2020-12-01 Tom Tromey <tom@tromey.com>
450
451 * parse.c (expr_builder::expr_builder): Initialize expout.
452 (expr_builder::release): Use expression::resize.
453 (expression::expression, expression::~expression)
454 (expression::resize): New methods.
455 (write_exp_elt): Use expression::resize.
456 (prefixify_expression): Update.
457 (increase_expout_size): Use expression::resize.
458 * expression.h (struct expression): Add constructor, destructor.
459 <resize>: New method.
460 (expression_up): Change type.
461
462 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
463 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
464 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
465 set region.
466
467 2020-11-30 Tom de Vries <tdevries@suse.de>
468
469 PR symtab/26905
470 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
471 is_reference parameter.
472 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
473
474 2020-11-30 Tom Tromey <tom@tromey.com>
475
476 * rust-lang.c (rust_op_name): Remove.
477 (exp_descriptor_rust): Update.
478 * parser-defs.h (op_name_standard): Don't declare.
479 (struct exp_descriptor) <op_name>: Remove.
480 * parse.c (exp_descriptor_standard): Update.
481 * opencl-lang.c (exp_descriptor_opencl): Update.
482 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
483 * f-lang.c (op_name_f): Remove.
484 (f_language::exp_descriptor_tab): Update.
485 * expression.h (op_name): Update.
486 * expprint.c (op_name): Rewrite.
487 (op_name_standard): Remove.
488 (dump_raw_expression, dump_subexp): Update.
489 * c-lang.c (exp_descriptor_c): Update.
490 * ax-gdb.c (gen_expr): Update.
491 * ada-lang.c (ada_op_name): Remove.
492 (ada_exp_descriptor): Update.
493
494 2020-11-30 Tom Tromey <tom@tromey.com>
495
496 * eval.c (init_array_element): Remove.
497 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
498
499 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
500
501 PR tui/26973
502 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
503 static locator win info.
504
505 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
506
507 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
508 program.
509
510 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
511
512 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
513 is always initialized.
514
515 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
516 * MAINTAINERS (Write After Approval): Add myself.
517
518 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
519
520 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
521 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
522
523 2020-11-25 Tom Tromey <tom@tromey.com>
524
525 * eval.c (evaluate_subexp_standard): Remove unnecessary
526 variables.
527
528 2020-11-25 Tom Tromey <tom@tromey.com>
529
530 * d-lang.c: Include parser-defs.h.
531 * rust-lang.c: Include parser-defs.h.
532 * c-lang.h: Do not include parser-defs.h.
533
534 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
535
536 * regcache.h (struct cached_reg): Remove typedef.
537
538 2020-11-24 Joel Brobecker <brobecker@adacore.com>
539
540 * README: Fix the URL of the MPFR library.
541
542 2020-11-24 Joel Brobecker <brobecker@adacore.com>
543
544 * README: Document the --with-libgmp-prefix configure option.
545
546 2020-11-24 Joel Brobecker <brobecker@adacore.com>
547
548 * NEWS: Add entry documenting support for DWARF-based fixed
549 point types.
550
551 2020-11-24 Joel Brobecker <brobecker@adacore.com>
552
553 * NEWS: Document that building GDB now requires GMP.
554
555 2020-11-24 Joel Brobecker <brobecker@adacore.com>
556
557 * typeprint.c (print_type_scalar): Add handling of
558 TYPE_CODE_FIXED_POINT.
559
560 2020-11-24 Joel Brobecker <brobecker@adacore.com>
561
562 * valarith.c (fixed_point_binop): Replace the
563 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
564 users accordingly.
565
566 2020-11-24 Joel Brobecker <brobecker@adacore.com>
567
568 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
569 replacing fixed_point_scaling_factor. All callers updated
570 throughout this project.
571 (fixed_point_scaling_factor): Delete declaration.
572 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
573 fixed_point_scaling_factor. Adjust implementation accordingly.
574
575 2020-11-24 Joel Brobecker <brobecker@adacore.com>
576
577 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
578 replacing the fixed_point_type_base_type function. All callers
579 updated throughout this project.
580 (fixed_point_type_base_type): Remove declaration.
581 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
582 fixed_point_type_base_type. Adjust implementation accordingly.
583
584 2020-11-24 Joel Brobecker <brobecker@adacore.com>
585
586 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
587 New methods.
588 (INIT_FIXED_POINT_SPECIFIC): Adjust.
589 (TYPE_FIXED_POINT_INFO): Delete macro.
590 (allocate_fixed_point_type_info): Change return type to void.
591 * gdbtypes.c (copy_type_recursive): Replace the use of
592 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
593 (fixed_point_scaling_factor): Likewise.
594 (allocate_fixed_point_type_info): Change return type to void.
595 Adjust implementation accordingly.
596 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
597 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
598
599 2020-11-24 Joel Brobecker <brobecker@adacore.com>
600
601 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
602 into one single gdb::array_view parameter.
603 (gdb_mpz::write): Likewise.
604 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
605 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
606 into one single gdb::array_view parameter.
607 Adjust implementation accordingly.
608 (gdb_mpz::write): Likewise.
609 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
610 * unittests/gmp-utils-selftests.c: Adapt following changes above.
611 * valarith.c, valops.c, valprint.c, value.c: Likewise.
612
613 2020-11-24 Joel Brobecker <brobecker@adacore.com>
614
615 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
616 Change return type to std::string. Update all callers.
617 * gmp-utils.c (gmp_string_printf): Likewise.
618
619 2020-11-24 Joel Brobecker <brobecker@adacore.com>
620
621 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
622 instead of mpq_set_ui to initialize our GMP rational.
623
624 2020-11-23 Tom de Vries <tdevries@suse.de>
625
626 * debuginfod-support.c (debuginfod_source_query)
627 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
628
629 2020-11-21 Tom Tromey <tom@tromey.com>
630
631 * breakpoint.c (watchpoint_exp_is_const): Return bool.
632
633 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
634
635 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
636 Pass 2.0 to pow.
637 (gdb_mpz_write_all_from_small): Likewise.
638
639 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
640
641 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
642 of abs.
643
644 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
645
646 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
647 ctf_arc_open_by_name.
648
649 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
650
651 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
652 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
653
654 2020-11-20 Pedro Alves <pedro@palves.net>
655
656 * language.c (language_arch_info::lookup_primitive_type): Use
657 gdb::function_view instead of gdb::function.
658 (template language_lookup_primitive_type): Rename to ...
659 (language_lookup_primitive_type_1): ... this, and make static.
660 (language_lookup_primitive_type(const struct language_defn *,
661 struct gdbarch *, const char *): Make non-template.
662 (language_lookup_primitive_type(const struct language_defn *,
663 struct gdbarch *, std::function<bool (struct type *)>): Make
664 non-template and use gdb::function_view.
665 * language.h (language_arch_info::lookup_primitive_type): Use
666 gdb::function_view instead of std::function.
667 (language_lookup_primitive_type): No longer template.
668 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
669 lambda instead of a std::function.
670
671 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
672
673 PR tdep/26916
674 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
675 and STOCFH.
676
677 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
678
679 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
680
681 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
682
683 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
684 in `loop_cb` parameter.
685 * gdbarch.c: Re-generate.
686 * gdbarch.h: Re-generate.
687 * arch-utils.c (default_read_core_file_mappings): Remove `other`
688 parameter.
689 * arch-utils.h (default_read_core_file_mappings): Likewise.
690 * corelow.c (core_target::build_file_mappings): Likewise.
691 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
692 (linux_core_info_proc_mappings): Likewise.
693
694 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
695
696 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
697 * NEWS: Mention new options.
698 * f-array-walker.h: New file.
699 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
700 (repack_array_slices): New static global.
701 (show_repack_array_slices): New function.
702 (fortran_array_slicing_debug): New static global.
703 (show_fortran_array_slicing_debug): New function.
704 (value_f90_subarray): Delete.
705 (skip_undetermined_arglist): Delete.
706 (class fortran_array_repacker_base_impl): New class.
707 (class fortran_lazy_array_repacker_impl): New class.
708 (class fortran_array_repacker_impl): New class.
709 (fortran_value_subarray): Complete rewrite.
710 (set_fortran_list): New static global.
711 (show_fortran_list): Likewise.
712 (_initialize_f_language): Register new commands.
713 (fortran_adjust_dynamic_array_base_address_hack): New function.
714 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
715 Declare.
716 * f-valprint.c: Include 'f-array-walker.h'.
717 (class fortran_array_printer_impl): New class.
718 (f77_print_array_1): Delete.
719 (f77_print_array): Delete.
720 (fortran_print_array): New.
721 (f_value_print_inner): Update to call fortran_print_array.
722 * gdbtypes.c: Include 'f-lang.h'.
723 (resolve_dynamic_type_internal): Call
724 fortran_adjust_dynamic_array_base_address_hack.
725
726 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
727
728 * breakpoint.c (struct watch_options): New struct.
729 (watch_option_defs): New static global.
730 (make_watch_options_def_group): New function.
731 (watch_maybe_just_location): Convert option parsing.
732 (watch_command_completer): New function.
733 (_initialize_breakpoint): Build help text using options mechanism.
734
735 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
736
737 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
738 (watch_command_1): Update parameter types. Convert locals to
739 bool.
740 (watch_command_wrapper): Change parameter type.
741 (watch_maybe_just_location): Change locals to bool.
742 (rwatch_command_wrapper): Update parameter type.
743 (awatch_command_wrapper): Update parameter type.
744 * breakpoint.h (watch_command_wrapper): Change parameter type.
745 (rwatch_command_wrapper): Update parameter type.
746 (awatch_command_wrapper): Update parameter type.
747 * eval.c (fetch_subexp_value): Change parameter type.
748 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
749 'false' not '0'.
750 * value.h (fetch_subexp_value): Change parameter type in
751 declaration.
752
753 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
754
755 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
756 skip_spaces.
757
758 2020-11-18 Keith Seitz <keiths@redhat.com>
759
760 * linux-tdep.c (dump_note_entry_p): Return true instead of
761 checking `filename'.
762
763 2020-11-18 Tom de Vries <tdevries@suse.de>
764
765 * debuginfod-support.c (debuginfod_source_query)
766 (debuginfod_debuginfo_query): Also do early exit if
767 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
768
769 2020-11-18 Tom de Vries <tdevries@suse.de>
770
771 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
772 warning.
773
774 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
775
776 * gdbtypes.h (get_array_bounds): Return bool, adjust some
777 callers. Move doc here.
778 * gdbtypes.c (get_array_bounds): Return bool
779
780 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
781
782 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
783 assert.
784 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
785 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
786 case to the default.
787
788 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
789
790 * printcmd.c: Include 'safe-ctype.c'.
791 (skip_over_slash_fmt): New function.
792 (print_command_completer): Call skip_over_slash_fmt.
793 (display_and_x_command_completer): New function.
794 (_initialize_printcmd): Add command completion for 'x' and
795 'display'.
796
797 2020-11-16 Pedro Alves <pedro@palves.net>
798
799 * frame.c (get_prev_frame): Move get_frame_id call from here ...
800 (get_prev_frame_always_1): ... to here.
801 * inline-frame.c (inline_frame_this_id): Mention
802 get_prev_frame_always_1 in comment.
803
804 2020-11-15 Joel Brobecker <brobecker@adacore.com>
805
806 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
807 handling.
808 (value_less): Add fixed-point handling.
809
810 2020-11-15 Joel Brobecker <brobecker@adacore.com>
811
812 * eval.c (binop_promote): Add fixed-point type handling.
813 * valarith.c (fixed_point_binop): New function.
814 (scalar_binop): Add fixed-point type handling.
815 (value_neg): Add fixed-point type handling.
816 * valops.c (value_cast_to_fixed_point): New function.
817 (value_cast): Add fixed-point type handling.
818
819 2020-11-15 Joel Brobecker <brobecker@adacore.com>
820
821 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
822 range types.
823 * c-typeprint.c (c_type_print_varspec_prefix)
824 (c_type_print_varspec_suffix, c_type_print_base_1): Add
825 TYPE_CODE_FIXED_POINT handling.
826 * p-typeprint.c (pascal_type_print_varspec_prefix)
827 (pascal_type_print_varspec_suffix): Likewise.
828 * typeprint.c (print_type_fixed_point): New function.
829 * typeprint.h (print_type_fixed_point): Add declaration.
830
831 2020-11-15 Joel Brobecker <brobecker@adacore.com>
832
833 * printcmd.c (print_scalar_formatted): Add fixed-point type
834 handling when options->format is set.
835
836 2020-11-15 Joel Brobecker <brobecker@adacore.com>
837
838 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
839 * dwarf2/read.c (get_dwarf2_rational_constant)
840 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
841 (has_zero_over_zero_small_attribute): New functions.
842 read_base_type, set_die_type): Add fixed-point type handling.
843 * gdb-gdb.py.in: Add fixed-point type handling.
844 * gdbtypes.c: #include "gmp-utils.h".
845 (create_range_type, set_type_code): Add fixed-point type handling.
846 (init_fixed_point_type): New function.
847 (is_integral_type, is_scalar_type): Add fixed-point type handling.
848 (print_fixed_point_type_info): New function.
849 (recursive_dump_type, copy_type_recursive): Add fixed-point type
850 handling.
851 (fixed_point_type_storage): New typedef.
852 (fixed_point_objfile_key): New static global.
853 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
854 (fixed_point_type_base_type, fixed_point_scaling_factor): New
855 functions.
856 * gdbtypes.h: #include "gmp-utils.h".
857 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
858 (union type_specific) <fixed_point_info>: New field.
859 (struct fixed_point_type_info): New struct.
860 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
861 (init_fixed_point_type, is_fixed_point_type)
862 (fixed_point_type_base_type, fixed_point_scaling_factor)
863 (allocate_fixed_point_type_info): Add declarations.
864 * valprint.c (generic_val_print_fixed_point): New function.
865 (generic_value_print): Add fixed-point type handling.
866 * value.c (value_as_address, unpack_long): Add fixed-point type
867 handling.
868
869 2020-11-15 Joel Brobecker <brobecker@adacore.com>
870
871 * utils.h (uinteger_pow): Add declaration.
872 * utils.c (uinteger_pow): Moved here (without changes)...
873 * valarith.c (uinteger_pow): ... from here.
874
875 2020-11-15 Joel Brobecker <brobecker@adacore.com>
876
877 * gmp-utils.h, gmp-utils.c: New file.
878 * unittests/gmp-utils-selftests.c: New file.
879 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
880 unittests/gmp-utils-selftests.c.
881 (COMMON_SFILES) Add gmp-utils.c.
882 (HFILES_NO_SRCDIR): Add gmp-utils.h.
883
884 2020-11-15 Joel Brobecker <brobecker@adacore.com>
885
886 * configure.ac: Generate an error if a usable GMP library
887 could not be found.
888 * configure: Regenerate.
889
890 2020-11-15 Joel Brobecker <brobecker@adacore.com>
891
892 * configure.ac: Add support for --with-libgmp-prefix.
893 * Makefile.in (LIBGMP): New variable.
894 (CLIBS): Include $(LIBGMP).
895 * configure, config.in: Regenerate
896
897 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
898
899 PR cli/26879
900 * f-exp.y (COMPLETE): New token.
901 (exp): Two new rules for tab-completion.
902 (saw_name_at_eof): New static global.
903 (last_was_structop): Likewise.
904 (yylex): Set new variables, and return COMPLETE token at the end
905 of the input stream in some cases.
906
907 2020-11-14 Tom Tromey <tom@tromey.com>
908
909 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
910
911 2020-11-14 Tom Tromey <tom@tromey.com>
912
913 * opencl-lang.c (opencl_component_ref): Make "comps" const.
914
915 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
916
917 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
918
919 2020-11-13 Tom Tromey <tom@tromey.com>
920
921 * c-lang.c (convert_ucn, convert_octal, convert_hex)
922 (convert_escape, parse_one_string): Constify.
923
924 2020-11-13 Keith Seitz <keiths@redhat.com>
925
926 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
927 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
928 outside of ELF segments" warning for debugin
929
930 2020-11-13 Keith Seitz <keiths@redhat.com>
931
932 PR gdb/23034
933 * elfread.c (elf_symfile_segments): Output a BFD file name
934 for the "Loadable section ... outside of ELF segments" warning.
935
936 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
937
938 PR gdb/26835
939 * arm-tdep.c (class arm_instruction_reader): New.
940 (target_arm_instruction_reader): New.
941 (arm_analyze_prologue): Add instruction reader parameter and use
942 it. Use arm_expand_immediate.
943 (class target_arm_instruction_reader): Adjust.
944 (arm_skip_prologue): Adjust.
945 (arm_expand_immediate): New.
946 (arm_scan_prologue): Adjust.
947 (arm_analyze_prologue_test): New.
948 (class test_arm_instruction_reader): New.
949
950 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
951
952 * f-lang.c (fortran_argument_convert): Add declaration. Add
953 header comment, taken from f-lang.h. Make static.
954 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
955 (fortran_argument_convert): Delete declaration.
956
957 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
958
959 * ada-exp.y (find_primitive_type): Make parameter const.
960 * ada-lang.c (enum ada_primitive_types): Delete.
961 (ada_language::language_arch_info): Update.
962 * c-lang.c (enum c_primitive_types): Delete.
963 (c_language_arch_info): Update.
964 (enum cplus_primitive_types): Delete.
965 (cplus_language::language_arch_info): Update.
966 * d-lang.c (enum d_primitive_types): Delete.
967 (d_language::language_arch_info): Update.
968 * f-lang.c (enum f_primitive_types): Delete.
969 (f_language::language_arch_info): Update.
970 * go-lang.c (enum go_primitive_types): Delete.
971 (go_language::language_arch_info): Update.
972 * language.c (auto_or_unknown_language::language_arch_info):
973 Update.
974 (language_gdbarch_post_init): Use obstack_new, use array indexing.
975 (language_string_char_type): Add header comment, call function in
976 language_arch_info.
977 (language_bool_type): Likewise
978 (language_arch_info::bool_type): Define.
979 (language_lookup_primitive_type_1): Delete.
980 (language_lookup_primitive_type): Rewrite as a templated function
981 to call function in language_arch_info, then instantiate twice.
982 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
983 (language_arch_info::lookup_primitive_type_and_symbol): Define.
984 (language_arch_info::lookup_primitive_type): Define twice with
985 different signatures.
986 (language_arch_info::lookup_primitive_type_as_symbol): Define.
987 (language_lookup_primitive_type_as_symbol): Rewrite to call a
988 member function in language_arch_info.
989 * language.h (language_arch_info): Complete rewrite.
990 (language_lookup_primitive_type): Make templated.
991 * m2-lang.c (enum m2_primitive_types): Delete.
992 (m2_language::language_arch_info): Update.
993 * opencl-lang.c (OCL_P_TYPE): Delete.
994 (enum opencl_primitive_types): Delete.
995 (opencl_type_data): Delete.
996 (builtin_opencl_type): Delete.
997 (lookup_opencl_vector_type): Update.
998 (opencl_language::language_arch_info): Update, lots of content
999 moved from...
1000 (build_opencl_types): ...here. This function is now deleted.
1001 (_initialize_opencl_language): Delete.
1002 * p-lang.c (enum pascal_primitive_types): Delete.
1003 (pascal_language::language_arch_info): Update.
1004 * rust-lang.c (enum rust_primitive_types): Delete.
1005 (rust_language::language_arch_info): Update.
1006
1007 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1008
1009 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1010 dwarf2_queue_guard.
1011
1012 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1013
1014 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1015 comment.
1016
1017 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1018
1019 * dwarf2/read.c (dwarf_read_debug_printf,
1020 dwarf_read_debug_printf_v): New macros, use throughout the file.
1021
1022 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1023
1024 PR tdep/27015
1025 * arc-linux-tdep.c (collect_register): Populate "eret" by
1026 "pc" value from the regcache when asked for "pc" value.
1027
1028 2020-11-12 Tom Tromey <tom@tromey.com>
1029
1030 PR rust/26799:
1031 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1032 exist.
1033
1034 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1035
1036 * features/Makefile (XMLTOC): Add rx.xml.
1037 (FEATURE_XMLFILES): Remove rx.xml.
1038 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1039 * features/rx.c: Regenerate.
1040 * features/rx.xml: Wrap in `target` tags, and reindent.
1041 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1042 structure.
1043 (maint_print_c_tdesc_opt_def): New typedef.
1044 (maint_print_c_tdesc_opt_defs): New static global.
1045 (make_maint_print_c_tdesc_options_def_group): New function.
1046 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1047 print single feature C file for target descriptions containing a
1048 single feature.
1049 (maint_print_c_tdesc_cmd_completer): New function.
1050 (_initialize_target_descriptions): Update call to register command
1051 completer, and include command line flag in help text.
1052
1053 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1054
1055 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1056 numbers.
1057 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1058 enum values.
1059
1060 2020-11-10 Tom Tromey <tom@tromey.com>
1061
1062 * value.h (internalvar_name): Update.
1063 * value.c (internalvar_name): Make return type const.
1064
1065 2020-11-10 Tom Tromey <tom@tromey.com>
1066
1067 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1068 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1069 const.
1070
1071 2020-11-10 Tom Tromey <tom@tromey.com>
1072
1073 * objc-lang.h (value_nsstring): Update.
1074 * objc-lang.c (value_nsstring): Make "ptr" const.
1075
1076 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1077
1078 * expprint.c (print_subexp_funcall): Increment expression position
1079 after reading argument count.
1080 * f-lang.c (print_subexp_f): Skip over opcode before calling
1081 common function.
1082 (dump_subexp_body_f): Likewise.
1083
1084 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1085
1086 PR python/26832
1087 * configure: Regenerate.
1088 * configure.ac: Check for python modules ctypes instead of
1089 itertools.
1090
1091 2020-11-06 Pedro Alves <pedro@palves.net>
1092
1093 * macroexp.c (struct macro_buffer): Split in two classes. Add
1094 uses adjusted.
1095 (struct shared_macro_buffer): New, factored out from struct
1096 macro_buffer.
1097 (struct growable_macro_buffer): New, factored out from struct
1098 macro_buffer.
1099 (set_token, get_comment, get_identifier, get_pp_number)
1100 (get_character_constant, get_string_literal, get_punctuator)
1101 (get_next_token_for_substitution): Constify parameters.
1102 (substitute_args): Constify locals.
1103
1104 2020-11-05 Tom Tromey <tom@tromey.com>
1105
1106 * dwarf2/read.c (read_cutu_die_from_dwo)
1107 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1108 (build_type_psymtabs_1): Update.
1109 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1110 parameter.
1111 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1112 Don't read section. Add assert.
1113
1114 2020-11-04 Tom Tromey <tromey@adacore.com>
1115
1116 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1117
1118 2020-11-04 Tom Tromey <tromey@adacore.com>
1119
1120 * ada-typeprint.c (ada_print_type): Handle __T types.
1121
1122 2020-11-04 Tom Tromey <tromey@adacore.com>
1123
1124 * dwarf2/read.c (add_partial_symbol, process_die):
1125 Handle DW_TAG_array_type.
1126 (is_type_tag_for_partial): Add "lang" parameter.
1127 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1128
1129 2020-11-04 Tom Tromey <tromey@adacore.com>
1130
1131 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1132
1133 2020-11-04 Tom Tromey <tromey@adacore.com>
1134
1135 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1136 array.
1137
1138 2020-11-04 Tom Tromey <tromey@adacore.com>
1139
1140 * gdbtypes.c (update_static_array_size): Handle bit stride.
1141
1142 2020-11-04 Tom Tromey <tromey@adacore.com>
1143
1144 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1145
1146 2020-11-04 Tom Tromey <tromey@adacore.com>
1147
1148 * ada-lang.c (ada_is_any_packed_array_type): New function.
1149 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1150
1151 2020-11-04 Tom Tromey <tromey@adacore.com>
1152
1153 * dwarf2/read.c (recognize_bound_expression)
1154 (quirk_ada_thick_pointer): New functions.
1155 (read_array_type): Call quirk_ada_thick_pointer.
1156 (set_die_type): Add "skip_data_location" parameter.
1157 (quirk_ada_thick_pointer): New function.
1158 (process_structure_scope): Call quirk_ada_thick_pointer.
1159 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1160 (decode_packed_array_bitsize): Handle thick pointers without
1161 parallel types.
1162 (ada_is_gnat_encoded_packed_array_type): Rename from
1163 ada_is_packed_array_type.
1164 (ada_is_constrained_packed_array_type): Update.
1165 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1166 (ada_value_print_1): Use ada_get_decoded_value.
1167
1168 2020-11-04 Tom Tromey <tromey@adacore.com>
1169
1170 * ada-lang.c (recursively_update_array_bitsize): New function.
1171 (decode_constrained_packed_array_type): Call it.
1172
1173 2020-11-04 Tom Tromey <tromey@adacore.com>
1174
1175 * ada-lang.c (to_fixed_array_type): Error if
1176 decode_constrained_packed_array_type returns NULL.
1177
1178 2020-11-04 Tom Tromey <tromey@adacore.com>
1179
1180 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1181
1182 2020-11-02 Tom Tromey <tromey@adacore.com>
1183
1184 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1185 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1186 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1187 * amd64-ravenscar-thread.c: New file.
1188 * amd64-ravenscar-thread.h: New file.
1189 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1190 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1191
1192 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1193
1194 * main.c (execute_cmdargs): New function.
1195 (captured_main_1): Make use of execute_cmdargs.
1196
1197 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * NEWS: Mention changes to config file search path.
1200 * main.c
1201
1202 2020-11-02 Tom Tromey <tromey@adacore.com>
1203
1204 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1205 (python_GdbModuleDef): Move earlier. Now static.
1206 (do_start_initialization): Consolidate some IS_PY3K blocks.
1207
1208 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1209
1210 * aarch64-linux-tdep.c: Fix indentation.
1211 * aarch64-ravenscar-thread.c: Fix indentation.
1212 * aarch64-tdep.c: Fix indentation.
1213 * aarch64-tdep.h: Fix indentation.
1214 * ada-lang.c: Fix indentation.
1215 * ada-lang.h: Fix indentation.
1216 * ada-tasks.c: Fix indentation.
1217 * ada-typeprint.c: Fix indentation.
1218 * ada-valprint.c: Fix indentation.
1219 * ada-varobj.c: Fix indentation.
1220 * addrmap.c: Fix indentation.
1221 * addrmap.h: Fix indentation.
1222 * agent.c: Fix indentation.
1223 * aix-thread.c: Fix indentation.
1224 * alpha-bsd-nat.c: Fix indentation.
1225 * alpha-linux-tdep.c: Fix indentation.
1226 * alpha-mdebug-tdep.c: Fix indentation.
1227 * alpha-nbsd-tdep.c: Fix indentation.
1228 * alpha-obsd-tdep.c: Fix indentation.
1229 * alpha-tdep.c: Fix indentation.
1230 * amd64-bsd-nat.c: Fix indentation.
1231 * amd64-darwin-tdep.c: Fix indentation.
1232 * amd64-linux-nat.c: Fix indentation.
1233 * amd64-linux-tdep.c: Fix indentation.
1234 * amd64-nat.c: Fix indentation.
1235 * amd64-obsd-tdep.c: Fix indentation.
1236 * amd64-tdep.c: Fix indentation.
1237 * amd64-windows-tdep.c: Fix indentation.
1238 * annotate.c: Fix indentation.
1239 * arc-tdep.c: Fix indentation.
1240 * arch-utils.c: Fix indentation.
1241 * arch/arm-get-next-pcs.c: Fix indentation.
1242 * arch/arm.c: Fix indentation.
1243 * arm-linux-nat.c: Fix indentation.
1244 * arm-linux-tdep.c: Fix indentation.
1245 * arm-nbsd-tdep.c: Fix indentation.
1246 * arm-pikeos-tdep.c: Fix indentation.
1247 * arm-tdep.c: Fix indentation.
1248 * arm-tdep.h: Fix indentation.
1249 * arm-wince-tdep.c: Fix indentation.
1250 * auto-load.c: Fix indentation.
1251 * auxv.c: Fix indentation.
1252 * avr-tdep.c: Fix indentation.
1253 * ax-gdb.c: Fix indentation.
1254 * ax-general.c: Fix indentation.
1255 * bfin-linux-tdep.c: Fix indentation.
1256 * block.c: Fix indentation.
1257 * block.h: Fix indentation.
1258 * blockframe.c: Fix indentation.
1259 * bpf-tdep.c: Fix indentation.
1260 * break-catch-sig.c: Fix indentation.
1261 * break-catch-syscall.c: Fix indentation.
1262 * break-catch-throw.c: Fix indentation.
1263 * breakpoint.c: Fix indentation.
1264 * breakpoint.h: Fix indentation.
1265 * bsd-uthread.c: Fix indentation.
1266 * btrace.c: Fix indentation.
1267 * build-id.c: Fix indentation.
1268 * buildsym-legacy.h: Fix indentation.
1269 * buildsym.c: Fix indentation.
1270 * c-typeprint.c: Fix indentation.
1271 * c-valprint.c: Fix indentation.
1272 * c-varobj.c: Fix indentation.
1273 * charset.c: Fix indentation.
1274 * cli/cli-cmds.c: Fix indentation.
1275 * cli/cli-decode.c: Fix indentation.
1276 * cli/cli-decode.h: Fix indentation.
1277 * cli/cli-script.c: Fix indentation.
1278 * cli/cli-setshow.c: Fix indentation.
1279 * coff-pe-read.c: Fix indentation.
1280 * coffread.c: Fix indentation.
1281 * compile/compile-cplus-types.c: Fix indentation.
1282 * compile/compile-object-load.c: Fix indentation.
1283 * compile/compile-object-run.c: Fix indentation.
1284 * completer.c: Fix indentation.
1285 * corefile.c: Fix indentation.
1286 * corelow.c: Fix indentation.
1287 * cp-abi.h: Fix indentation.
1288 * cp-namespace.c: Fix indentation.
1289 * cp-support.c: Fix indentation.
1290 * cp-valprint.c: Fix indentation.
1291 * cris-linux-tdep.c: Fix indentation.
1292 * cris-tdep.c: Fix indentation.
1293 * darwin-nat-info.c: Fix indentation.
1294 * darwin-nat.c: Fix indentation.
1295 * darwin-nat.h: Fix indentation.
1296 * dbxread.c: Fix indentation.
1297 * dcache.c: Fix indentation.
1298 * disasm.c: Fix indentation.
1299 * dtrace-probe.c: Fix indentation.
1300 * dwarf2/abbrev.c: Fix indentation.
1301 * dwarf2/attribute.c: Fix indentation.
1302 * dwarf2/expr.c: Fix indentation.
1303 * dwarf2/frame.c: Fix indentation.
1304 * dwarf2/index-cache.c: Fix indentation.
1305 * dwarf2/index-write.c: Fix indentation.
1306 * dwarf2/line-header.c: Fix indentation.
1307 * dwarf2/loc.c: Fix indentation.
1308 * dwarf2/macro.c: Fix indentation.
1309 * dwarf2/read.c: Fix indentation.
1310 * dwarf2/read.h: Fix indentation.
1311 * elfread.c: Fix indentation.
1312 * eval.c: Fix indentation.
1313 * event-top.c: Fix indentation.
1314 * exec.c: Fix indentation.
1315 * exec.h: Fix indentation.
1316 * expprint.c: Fix indentation.
1317 * f-lang.c: Fix indentation.
1318 * f-typeprint.c: Fix indentation.
1319 * f-valprint.c: Fix indentation.
1320 * fbsd-nat.c: Fix indentation.
1321 * fbsd-tdep.c: Fix indentation.
1322 * findvar.c: Fix indentation.
1323 * fork-child.c: Fix indentation.
1324 * frame-unwind.c: Fix indentation.
1325 * frame-unwind.h: Fix indentation.
1326 * frame.c: Fix indentation.
1327 * frv-linux-tdep.c: Fix indentation.
1328 * frv-tdep.c: Fix indentation.
1329 * frv-tdep.h: Fix indentation.
1330 * ft32-tdep.c: Fix indentation.
1331 * gcore.c: Fix indentation.
1332 * gdb_bfd.c: Fix indentation.
1333 * gdbarch.sh: Fix indentation.
1334 * gdbarch.c: Re-generate
1335 * gdbarch.h: Re-generate.
1336 * gdbcore.h: Fix indentation.
1337 * gdbthread.h: Fix indentation.
1338 * gdbtypes.c: Fix indentation.
1339 * gdbtypes.h: Fix indentation.
1340 * glibc-tdep.c: Fix indentation.
1341 * gnu-nat.c: Fix indentation.
1342 * gnu-nat.h: Fix indentation.
1343 * gnu-v2-abi.c: Fix indentation.
1344 * gnu-v3-abi.c: Fix indentation.
1345 * go32-nat.c: Fix indentation.
1346 * guile/guile-internal.h: Fix indentation.
1347 * guile/scm-cmd.c: Fix indentation.
1348 * guile/scm-frame.c: Fix indentation.
1349 * guile/scm-iterator.c: Fix indentation.
1350 * guile/scm-math.c: Fix indentation.
1351 * guile/scm-ports.c: Fix indentation.
1352 * guile/scm-pretty-print.c: Fix indentation.
1353 * guile/scm-value.c: Fix indentation.
1354 * h8300-tdep.c: Fix indentation.
1355 * hppa-linux-nat.c: Fix indentation.
1356 * hppa-linux-tdep.c: Fix indentation.
1357 * hppa-nbsd-nat.c: Fix indentation.
1358 * hppa-nbsd-tdep.c: Fix indentation.
1359 * hppa-obsd-nat.c: Fix indentation.
1360 * hppa-tdep.c: Fix indentation.
1361 * hppa-tdep.h: Fix indentation.
1362 * i386-bsd-nat.c: Fix indentation.
1363 * i386-darwin-nat.c: Fix indentation.
1364 * i386-darwin-tdep.c: Fix indentation.
1365 * i386-dicos-tdep.c: Fix indentation.
1366 * i386-gnu-nat.c: Fix indentation.
1367 * i386-linux-nat.c: Fix indentation.
1368 * i386-linux-tdep.c: Fix indentation.
1369 * i386-nto-tdep.c: Fix indentation.
1370 * i386-obsd-tdep.c: Fix indentation.
1371 * i386-sol2-nat.c: Fix indentation.
1372 * i386-tdep.c: Fix indentation.
1373 * i386-tdep.h: Fix indentation.
1374 * i386-windows-tdep.c: Fix indentation.
1375 * i387-tdep.c: Fix indentation.
1376 * i387-tdep.h: Fix indentation.
1377 * ia64-libunwind-tdep.c: Fix indentation.
1378 * ia64-libunwind-tdep.h: Fix indentation.
1379 * ia64-linux-nat.c: Fix indentation.
1380 * ia64-linux-tdep.c: Fix indentation.
1381 * ia64-tdep.c: Fix indentation.
1382 * ia64-tdep.h: Fix indentation.
1383 * ia64-vms-tdep.c: Fix indentation.
1384 * infcall.c: Fix indentation.
1385 * infcmd.c: Fix indentation.
1386 * inferior.c: Fix indentation.
1387 * infrun.c: Fix indentation.
1388 * iq2000-tdep.c: Fix indentation.
1389 * language.c: Fix indentation.
1390 * linespec.c: Fix indentation.
1391 * linux-fork.c: Fix indentation.
1392 * linux-nat.c: Fix indentation.
1393 * linux-tdep.c: Fix indentation.
1394 * linux-thread-db.c: Fix indentation.
1395 * lm32-tdep.c: Fix indentation.
1396 * m2-lang.c: Fix indentation.
1397 * m2-typeprint.c: Fix indentation.
1398 * m2-valprint.c: Fix indentation.
1399 * m32c-tdep.c: Fix indentation.
1400 * m32r-linux-tdep.c: Fix indentation.
1401 * m32r-tdep.c: Fix indentation.
1402 * m68hc11-tdep.c: Fix indentation.
1403 * m68k-bsd-nat.c: Fix indentation.
1404 * m68k-linux-nat.c: Fix indentation.
1405 * m68k-linux-tdep.c: Fix indentation.
1406 * m68k-tdep.c: Fix indentation.
1407 * machoread.c: Fix indentation.
1408 * macrocmd.c: Fix indentation.
1409 * macroexp.c: Fix indentation.
1410 * macroscope.c: Fix indentation.
1411 * macrotab.c: Fix indentation.
1412 * macrotab.h: Fix indentation.
1413 * main.c: Fix indentation.
1414 * mdebugread.c: Fix indentation.
1415 * mep-tdep.c: Fix indentation.
1416 * mi/mi-cmd-catch.c: Fix indentation.
1417 * mi/mi-cmd-disas.c: Fix indentation.
1418 * mi/mi-cmd-env.c: Fix indentation.
1419 * mi/mi-cmd-stack.c: Fix indentation.
1420 * mi/mi-cmd-var.c: Fix indentation.
1421 * mi/mi-cmds.c: Fix indentation.
1422 * mi/mi-main.c: Fix indentation.
1423 * mi/mi-parse.c: Fix indentation.
1424 * microblaze-tdep.c: Fix indentation.
1425 * minidebug.c: Fix indentation.
1426 * minsyms.c: Fix indentation.
1427 * mips-linux-nat.c: Fix indentation.
1428 * mips-linux-tdep.c: Fix indentation.
1429 * mips-nbsd-tdep.c: Fix indentation.
1430 * mips-tdep.c: Fix indentation.
1431 * mn10300-linux-tdep.c: Fix indentation.
1432 * mn10300-tdep.c: Fix indentation.
1433 * moxie-tdep.c: Fix indentation.
1434 * msp430-tdep.c: Fix indentation.
1435 * namespace.h: Fix indentation.
1436 * nat/fork-inferior.c: Fix indentation.
1437 * nat/gdb_ptrace.h: Fix indentation.
1438 * nat/linux-namespaces.c: Fix indentation.
1439 * nat/linux-osdata.c: Fix indentation.
1440 * nat/netbsd-nat.c: Fix indentation.
1441 * nat/x86-dregs.c: Fix indentation.
1442 * nbsd-nat.c: Fix indentation.
1443 * nbsd-tdep.c: Fix indentation.
1444 * nios2-linux-tdep.c: Fix indentation.
1445 * nios2-tdep.c: Fix indentation.
1446 * nto-procfs.c: Fix indentation.
1447 * nto-tdep.c: Fix indentation.
1448 * objfiles.c: Fix indentation.
1449 * objfiles.h: Fix indentation.
1450 * opencl-lang.c: Fix indentation.
1451 * or1k-tdep.c: Fix indentation.
1452 * osabi.c: Fix indentation.
1453 * osabi.h: Fix indentation.
1454 * osdata.c: Fix indentation.
1455 * p-lang.c: Fix indentation.
1456 * p-typeprint.c: Fix indentation.
1457 * p-valprint.c: Fix indentation.
1458 * parse.c: Fix indentation.
1459 * ppc-linux-nat.c: Fix indentation.
1460 * ppc-linux-tdep.c: Fix indentation.
1461 * ppc-nbsd-nat.c: Fix indentation.
1462 * ppc-nbsd-tdep.c: Fix indentation.
1463 * ppc-obsd-nat.c: Fix indentation.
1464 * ppc-ravenscar-thread.c: Fix indentation.
1465 * ppc-sysv-tdep.c: Fix indentation.
1466 * ppc64-tdep.c: Fix indentation.
1467 * printcmd.c: Fix indentation.
1468 * proc-api.c: Fix indentation.
1469 * producer.c: Fix indentation.
1470 * producer.h: Fix indentation.
1471 * prologue-value.c: Fix indentation.
1472 * prologue-value.h: Fix indentation.
1473 * psymtab.c: Fix indentation.
1474 * python/py-arch.c: Fix indentation.
1475 * python/py-bpevent.c: Fix indentation.
1476 * python/py-event.c: Fix indentation.
1477 * python/py-event.h: Fix indentation.
1478 * python/py-finishbreakpoint.c: Fix indentation.
1479 * python/py-frame.c: Fix indentation.
1480 * python/py-framefilter.c: Fix indentation.
1481 * python/py-inferior.c: Fix indentation.
1482 * python/py-infthread.c: Fix indentation.
1483 * python/py-objfile.c: Fix indentation.
1484 * python/py-prettyprint.c: Fix indentation.
1485 * python/py-registers.c: Fix indentation.
1486 * python/py-signalevent.c: Fix indentation.
1487 * python/py-stopevent.c: Fix indentation.
1488 * python/py-stopevent.h: Fix indentation.
1489 * python/py-threadevent.c: Fix indentation.
1490 * python/py-tui.c: Fix indentation.
1491 * python/py-unwind.c: Fix indentation.
1492 * python/py-value.c: Fix indentation.
1493 * python/py-xmethods.c: Fix indentation.
1494 * python/python-internal.h: Fix indentation.
1495 * python/python.c: Fix indentation.
1496 * ravenscar-thread.c: Fix indentation.
1497 * record-btrace.c: Fix indentation.
1498 * record-full.c: Fix indentation.
1499 * record.c: Fix indentation.
1500 * reggroups.c: Fix indentation.
1501 * regset.h: Fix indentation.
1502 * remote-fileio.c: Fix indentation.
1503 * remote.c: Fix indentation.
1504 * reverse.c: Fix indentation.
1505 * riscv-linux-tdep.c: Fix indentation.
1506 * riscv-ravenscar-thread.c: Fix indentation.
1507 * riscv-tdep.c: Fix indentation.
1508 * rl78-tdep.c: Fix indentation.
1509 * rs6000-aix-tdep.c: Fix indentation.
1510 * rs6000-lynx178-tdep.c: Fix indentation.
1511 * rs6000-nat.c: Fix indentation.
1512 * rs6000-tdep.c: Fix indentation.
1513 * rust-lang.c: Fix indentation.
1514 * rx-tdep.c: Fix indentation.
1515 * s12z-tdep.c: Fix indentation.
1516 * s390-linux-tdep.c: Fix indentation.
1517 * score-tdep.c: Fix indentation.
1518 * ser-base.c: Fix indentation.
1519 * ser-mingw.c: Fix indentation.
1520 * ser-uds.c: Fix indentation.
1521 * ser-unix.c: Fix indentation.
1522 * serial.c: Fix indentation.
1523 * sh-linux-tdep.c: Fix indentation.
1524 * sh-nbsd-tdep.c: Fix indentation.
1525 * sh-tdep.c: Fix indentation.
1526 * skip.c: Fix indentation.
1527 * sol-thread.c: Fix indentation.
1528 * solib-aix.c: Fix indentation.
1529 * solib-darwin.c: Fix indentation.
1530 * solib-frv.c: Fix indentation.
1531 * solib-svr4.c: Fix indentation.
1532 * solib.c: Fix indentation.
1533 * source.c: Fix indentation.
1534 * sparc-linux-tdep.c: Fix indentation.
1535 * sparc-nbsd-tdep.c: Fix indentation.
1536 * sparc-obsd-tdep.c: Fix indentation.
1537 * sparc-ravenscar-thread.c: Fix indentation.
1538 * sparc-tdep.c: Fix indentation.
1539 * sparc64-linux-tdep.c: Fix indentation.
1540 * sparc64-nbsd-tdep.c: Fix indentation.
1541 * sparc64-obsd-tdep.c: Fix indentation.
1542 * sparc64-tdep.c: Fix indentation.
1543 * stabsread.c: Fix indentation.
1544 * stack.c: Fix indentation.
1545 * stap-probe.c: Fix indentation.
1546 * stubs/ia64vms-stub.c: Fix indentation.
1547 * stubs/m32r-stub.c: Fix indentation.
1548 * stubs/m68k-stub.c: Fix indentation.
1549 * stubs/sh-stub.c: Fix indentation.
1550 * stubs/sparc-stub.c: Fix indentation.
1551 * symfile-mem.c: Fix indentation.
1552 * symfile.c: Fix indentation.
1553 * symfile.h: Fix indentation.
1554 * symmisc.c: Fix indentation.
1555 * symtab.c: Fix indentation.
1556 * symtab.h: Fix indentation.
1557 * target-float.c: Fix indentation.
1558 * target.c: Fix indentation.
1559 * target.h: Fix indentation.
1560 * tic6x-tdep.c: Fix indentation.
1561 * tilegx-linux-tdep.c: Fix indentation.
1562 * tilegx-tdep.c: Fix indentation.
1563 * top.c: Fix indentation.
1564 * tracefile-tfile.c: Fix indentation.
1565 * tracepoint.c: Fix indentation.
1566 * tui/tui-disasm.c: Fix indentation.
1567 * tui/tui-io.c: Fix indentation.
1568 * tui/tui-regs.c: Fix indentation.
1569 * tui/tui-stack.c: Fix indentation.
1570 * tui/tui-win.c: Fix indentation.
1571 * tui/tui-winsource.c: Fix indentation.
1572 * tui/tui.c: Fix indentation.
1573 * typeprint.c: Fix indentation.
1574 * ui-out.h: Fix indentation.
1575 * unittests/copy_bitwise-selftests.c: Fix indentation.
1576 * unittests/memory-map-selftests.c: Fix indentation.
1577 * utils.c: Fix indentation.
1578 * v850-tdep.c: Fix indentation.
1579 * valarith.c: Fix indentation.
1580 * valops.c: Fix indentation.
1581 * valprint.c: Fix indentation.
1582 * valprint.h: Fix indentation.
1583 * value.c: Fix indentation.
1584 * value.h: Fix indentation.
1585 * varobj.c: Fix indentation.
1586 * vax-tdep.c: Fix indentation.
1587 * windows-nat.c: Fix indentation.
1588 * windows-tdep.c: Fix indentation.
1589 * xcoffread.c: Fix indentation.
1590 * xml-syscall.c: Fix indentation.
1591 * xml-tdesc.c: Fix indentation.
1592 * xstormy16-tdep.c: Fix indentation.
1593 * xtensa-config.c: Fix indentation.
1594 * xtensa-linux-nat.c: Fix indentation.
1595 * xtensa-linux-tdep.c: Fix indentation.
1596 * xtensa-tdep.c: Fix indentation.
1597
1598 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1599 Craig Blackmore <craig.blackmore@embecosm.com>
1600
1601 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1602 as an unsigned value.
1603
1604 2020-11-01 Tom Tromey <tom@tromey.com>
1605
1606 * dbxread.c (dbx_end_psymtab): Update.
1607 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1608 (build_type_psymtabs_reader): Update.
1609 * xcoffread.c (xcoff_end_psymtab): Update.
1610 * ctfread.c (scan_partial_symbols): Update.
1611 * psymtab.c (sort_pst_symbols): Remove.
1612 (partial_symtab::end): Rename from end_psymtab_common. Inline
1613 sort_pst_symbols.
1614 * psympriv.h (struct partial_symtab) <end>: New method.
1615 (end_psymtab_common): Don't declare.
1616
1617 2020-11-01 Tom Tromey <tom@tromey.com>
1618
1619 * symmisc.c (count_psyms): New function.
1620 (print_objfile_statistics): Use it.
1621 * psymtab.c (append_psymbol_to_list): Remove.
1622 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1623 * objfiles.h (struct objstats) <n_psyms>: Remove.
1624
1625 2020-11-01 Tom Tromey <tom@tromey.com>
1626
1627 * dbxread.c (dbx_end_psymtab): Update.
1628 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1629 (build_type_psymtabs_reader): Update.
1630 * xcoffread.c (xcoff_end_psymtab): Update.
1631 * ctfread.c (scan_partial_symbols): Update.
1632 * psympriv.h (end_psymtab_common): Update.
1633 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1634 (sort_pst_symbols): Likewise.
1635
1636 2020-11-01 Tom Tromey <tom@tromey.com>
1637
1638 * dbxread.c (dbx_symfile_read): Update.
1639 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1640 * xcoffread.c (xcoff_initial_scan): Update.
1641 * psympriv.h (init_psymbol_list): Don't declare.
1642 * psymtab.c (init_psymbol_list): Remove.
1643
1644 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1645
1646 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1647 gnat_encoded_fixed_type_info. Update all callers.
1648
1649 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1650
1651 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1652 line too long.
1653
1654 2020-11-01 Joel Brobecker <brobecker@adacore.com>
1655
1656 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1657 cast_from_fixed. Update all callers.
1658 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1659 Update all callers.
1660 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1661 Update all callers.
1662 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1663 ada_scaling_factor.
1664 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1665 to print_gnat_encoded_fixed_point_type.
1666 * ada-valprint.c: Likewise.
1667
1668 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1669
1670 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1671 (debug_prefixed_printf): Add check of debug_displaced flag.
1672 * linux-nat.c (linux_nat_debug_printf): Add check of
1673 debug_linux_nat flag.
1674
1675 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1676
1677 * infrun.c (infrun_debug_printf_1): Remove.
1678 (displaced_debug_printf_1): Remove.
1679 (stop_all_threads): Use debug_prefixed_printf.
1680 * infrun.h (infrun_debug_printf_1): Remove.
1681 (infrun_debug_printf): Use debug_prefixed_printf.
1682 (displaced_debug_printf_1): Remove.
1683 (displaced_debug_printf): Use debug_prefixed_printf.
1684 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1685 (linux_nat_debug_printf): Use debug_prefixed_printf.
1686
1687 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1688
1689 * configure: Re-generate.
1690 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1691 AC_LANG_PROGRAM.
1692
1693 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1694
1695 * configure: Re-generate.
1696
1697 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1698
1699 * configure: Re-generate.
1700
1701 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1702
1703 * configure: Re-generate.
1704
1705 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1706
1707 * configure: Re-generate.
1708
1709 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1710
1711 * acinclude.m4: Modernize.
1712 * configure: Re-generate.
1713
1714 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1715
1716 * configure.ac: Modernize.
1717 * configure: Re-generate.
1718
1719 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1720
1721 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1722 * configure: Re-generate.
1723 * configure.ac: Remove AM_PROG_CC_STDC.
1724
1725 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1726
1727 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1728 AC_CANONICAL_SYSTEM.
1729 * configure: Re-generate.
1730
1731 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
1732
1733 * infrun.h (displaced_debug_printf): New macro. Replace
1734 displaced debug prints throughout to use it.
1735 (displaced_debug_printf_1): New declaration.
1736 (displaced_step_dump_bytes): Return string, remove ui_file
1737 parameter, update all callers.
1738 * infrun.c (displaced_debug_printf_1): New function.
1739 (displaced_step_dump_bytes): Return string, remove ui_file
1740 parameter
1741
1742 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1743
1744 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1745
1746 2020-10-30 Tom Tromey <tromey@adacore.com>
1747
1748 * Makefile.in (stamp-init): Depend on config.status.
1749
1750 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1751
1752 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1753
1754 2020-10-30 Pedro Alves <pedro@palves.net>
1755
1756 * thread.c (lookup_selected_frame): Move ...
1757 * frame.c (lookup_selected_frame): ... here.
1758
1759 2020-10-30 Pedro Alves <pedro@palves.net>
1760
1761 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1762 * frame.c
1763 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1764 Use save_selected_frame. Save language as well.
1765 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1766 Use restore_selected_frame, and restore language as well.
1767 (selected_frame_id, selected_frame_level): New.
1768 (selected_frame): Update comments.
1769 (save_selected_frame, restore_selected_frame): New.
1770 (get_selected_frame): Use lookup_selected_frame.
1771 (get_selected_frame_if_set): Delete.
1772 (select_frame): Record selected_frame_level and selected_frame_id.
1773 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1774 fields.
1775 (get_selected_frame): Make 'message' parameter optional.
1776 (get_selected_frame_if_set): Delete declaration.
1777 (select_frame): Update comments.
1778 (save_selected_frame, restore_selected_frame)
1779 (lookup_selected_frame): Declare.
1780 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1781 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1782 New field.
1783 (save_infcall_control_state): Use save_selected_frame.
1784 (restore_selected_frame): Delete.
1785 (restore_infcall_control_state): Use restore_selected_frame.
1786 * stack.c (select_frame_command_core, frame_command_core): Use
1787 get_selected_frame.
1788 * thread.c (restore_selected_frame): Rename to ...
1789 (lookup_selected_frame): ... this and make extern. Select the
1790 current frame if the frame level is -1.
1791 (scoped_restore_current_thread::restore): Also restore the
1792 language.
1793 (scoped_restore_current_thread::~scoped_restore_current_thread):
1794 Don't try/catch.
1795 (scoped_restore_current_thread::scoped_restore_current_thread):
1796 Save the language as well. Use save_selected_frame.
1797
1798 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1799
1800 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1801 documentation.
1802 * gdbarch.h: Re-generate.
1803
1804 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1805
1806 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1807 parameter.
1808 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1809 Likewise.
1810 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1811 Likewise.
1812 * arch-utils.c (default_displaced_step_hw_singlestep):
1813 Likewise.
1814 * arch-utils.h (default_displaced_step_hw_singlestep):
1815 Likewise.
1816 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1817 Likewise.
1818 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1819 Likewise.
1820 * gdbarch.c: Re-generate.
1821 * gdbarch.h: Re-generate.
1822 * infrun.c (resume_1): Adjust.
1823
1824 2020-10-29 Tom Tromey <tom@tromey.com>
1825
1826 * progspace.c (program_space::~program_space): Don't call
1827 exec_close.
1828
1829 2020-10-29 Tom Tromey <tom@tromey.com>
1830
1831 * exec.c (exec_target::close): Don't change current program
1832 space.
1833
1834 2020-10-29 Tom Tromey <tom@tromey.com>
1835
1836 * symfile.c (add_symbol_file_command): Update.
1837 * exec.c (program_space::add_target_sections): Rename.
1838 * symfile-mem.c (symbol_file_add_from_memory): Update.
1839 * progspace.h (struct program_space) <add_target_sections>:
1840 Declare new overload.
1841 * exec.h (add_target_sections_of_objfile): Don't declare.
1842
1843 2020-10-29 Tom Tromey <tom@tromey.com>
1844
1845 * solib.c (solib_map_sections): Update.
1846 * exec.c (program_space::add_target_sections): Now a method.
1847 (exec_file_attach): Update.
1848 * exec.h (add_target_sections): Don't declare.
1849 * progspace.h (struct program_space) <add_target_sections>:
1850 Declare.
1851
1852 2020-10-29 Tom Tromey <tom@tromey.com>
1853
1854 * progspace.h (struct program_space) <remove_target_sections>:
1855 Declare.
1856 * exec.c (program_space::remove_target_sections): Now a method.
1857 * exec.h (remove_target_sections): Don't declare.
1858
1859 2020-10-29 Tom Tromey <tom@tromey.com>
1860
1861 * inferior.c (delete_inferior): Update.
1862 * progspace.c (program_space::empty): Rename from
1863 program_space_empty_p. Return bool.
1864 * progspace.h (struct program_space) <empty>: New method.
1865 (program_space_empty_p): Don't declare.
1866
1867 2020-10-29 Tom Tromey <tom@tromey.com>
1868
1869 * progspace.c (program_space::~program_space): Don't call
1870 clear_program_space_solib_cache.
1871 (program_space::clear_solib_cache): Rename from
1872 clear_solib_cache.
1873 * solib.c (handle_solib_event): Update.
1874 * progspace.h (struct program_space) <clear_solib_cache>: New
1875 method.
1876 (clear_program_space_solib_cache): Don't declare.
1877
1878 2020-10-29 Tom Tromey <tom@tromey.com>
1879
1880 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1881 * target.c (info_target_command): Update.
1882 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1883 (symbol_file_clear, reread_symbols): Update.
1884 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1885 * stabsread.c (scan_file_globals): Update.
1886 * solib.c (update_solib_list): Update.
1887 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1888 (svr4_fetch_objfile_link_map, enable_break)
1889 (svr4_relocate_main_executable)
1890 (svr4_iterate_over_objfiles_in_search_order): Update.
1891 * solib-frv.c (lm_base, enable_break)
1892 (frv_relocate_main_executable): Update.
1893 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1894 (frv_fetch_objfile_link_map): Update.
1895 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1896 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1897 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1898 * remote.c (remote_target::get_offsets): Update.
1899 (remote_target::start_remote)
1900 (extended_remote_target::post_attach): Update.
1901 * objfiles.c (entry_point_address_query): Update.
1902 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1903 * minsyms.c (get_symbol_leading_char): Update.
1904 * frame.c (inside_main_func): Update.
1905 * progspace.h (symfile_objfile): Remove macro.
1906
1907 2020-10-29 Tom Tromey <tom@tromey.com>
1908
1909 * exec.c (exec_file_attach): Update.
1910 * progspace.c (program_space::exec_close): Update.
1911 * progspace.h (struct program_space) <ebfd>: Now a
1912 gdb_bfd_ref_ptr.
1913 <set_exec_bfd>: Change argument type.
1914 <exec_bfd>: Update.
1915
1916 2020-10-29 Tom Tromey <tom@tromey.com>
1917
1918 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1919 * symfile.c (reread_symbols): Update.
1920 * symfile-mem.c (add_symbol_file_from_memory_command)
1921 (add_vsyscall_page): Update.
1922 * source-cache.c (source_cache::get_plain_source_lines): Update.
1923 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1924 (svr4_current_sos_direct, svr4_exec_displacement)
1925 (svr4_relocate_main_executable): Update.
1926 (svr4_iterate_over_objfiles_in_search_order): Update.
1927 * solib-frv.c (enable_break2, enable_break): Update.
1928 * solib-dsbt.c (lm_base, enable_break): Update.
1929 * solib-darwin.c (find_program_interpreter)
1930 (darwin_solib_create_inferior_hook): Update.
1931 * sol-thread.c (rw_common, ps_pdmodel): Update.
1932 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1933 * remote.c (compare_sections_command)
1934 (remote_target::trace_set_readonly_regions): Update.
1935 * remote-sim.c (get_sim_inferior_data)
1936 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1937 (gdbsim_target_open, gdbsim_target::files_info): Update.
1938 * exec.h (exec_bfd): Remove macro.
1939 * progspace.c (initialize_progspace): Update.
1940 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1941 Update.
1942 * nto-procfs.c (nto_procfs_target::post_attach)
1943 (nto_procfs_target::create_inferior): Update.
1944 * maint.c (maintenance_info_sections): Update.
1945 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1946 Update.
1947 * infcmd.c (post_create_inferior): Update.
1948 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1949 (objfile_find_memory_regions): Update.
1950 * exec.c (validate_exec_file, exec_file_attach)
1951 (exec_read_partial_read_only, print_section_info): Update.
1952 * corelow.c (core_target_open): Update.
1953 * corefile.c (reopen_exec_file, validate_files): Update.
1954 * arm-tdep.c (gdb_print_insn_arm): Update.
1955 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1956 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1957 methods.
1958
1959 2020-10-29 Tom Tromey <tom@tromey.com>
1960
1961 * progspace.h (current_target_sections): Remove macro.
1962 * solib-svr4.c (scan_dyntag): Update.
1963 * solib-dsbt.c (scan_dyntag): Update.
1964 * exec.c (exec_target::close): Update.
1965 (add_target_sections, add_target_sections_of_objfile)
1966 (remove_target_sections, exec_target::get_section_table)
1967 (exec_target::files_info, set_section_command)
1968 (exec_set_section_address, exec_target::has_memory)
1969 (exec_target::has_memory): Update.
1970
1971 2020-10-29 Tom Tromey <tom@tromey.com>
1972
1973 * source-cache.c (source_cache::get_plain_source_lines): Use
1974 current_program_space.
1975 * corefile.c (reopen_exec_file): Use current_program_space.
1976 * exec.c (exec_file_attach): Use current_program_space.
1977 * exec.h (exec_bfd_mtime): Remove.
1978
1979 2020-10-29 Tom Tromey <tom@tromey.com>
1980
1981 * gcore.c (default_gcore_mach): Remove.
1982 (create_gcore_bfd): Update.
1983
1984 2020-10-29 Tom Tromey <tom@tromey.com>
1985
1986 * progspace.c (program_space::exec_close): New method, from
1987 exec_close in exec.c.
1988 * exec.c (exec_close): Move to progspace.c.
1989 (exec_target::close, exec_file_attach): Update.
1990 * progspace.h (struct program_space) <exec_close>: Declare
1991 method.
1992
1993 2020-10-29 Tom Tromey <tom@tromey.com>
1994
1995 * progspace.h (struct program_space) <exec_filename>: Rename from
1996 pspace_exec_filename. Now a unique_xmalloc_ptr.
1997 * inferior.c (print_selected_inferior): Update.
1998 (print_inferior): Update.
1999 * mi/mi-main.c (print_one_inferior): Update.
2000 * exec.h (exec_filename): Remove macro.
2001 * corefile.c (get_exec_file): Update.
2002 * exec.c (exec_close): Update.
2003 (exec_file_attach): Update.
2004 * progspace.c (clone_program_space): Update.
2005 (print_program_space): Update.
2006
2007 2020-10-29 Tom Tromey <tom@tromey.com>
2008
2009 * target-section.h (struct target_section): Add constructor.
2010 * exec.c (build_section_table, add_target_sections_of_objfile):
2011 Update.
2012 * corelow.c (core_target::build_file_mappings): Update.
2013
2014 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2015
2016 PR gdb/19318
2017 * inferior.c (detach_inferior_command): Restore the current thread.
2018 (kill_inferior_command): Ditto.
2019
2020 2020-10-28 Tom de Vries <tdevries@suse.de>
2021
2022 PR symtab/26772
2023 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2024 map, check it in the "best match" loop.
2025
2026 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2027
2028 * m32c-tdep.c: Remove unused includes.
2029
2030 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2031
2032 * xtensa-tdep.c: Remove includes.
2033
2034 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2035
2036 * breakpoint.c (struct condition_command_opts): New struct.
2037 (condition_command_option_defs): New static global.
2038 (make_condition_command_options_def_group): New function.
2039 (condition_completer): Update to consider the '-force' flag.
2040 (condition_command): Use gdb::option for the '-force' flag.
2041
2042 2020-10-27 Tom de Vries <tdevries@suse.de>
2043
2044 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2045 symbols in section check.
2046
2047 2020-10-27 Tom de Vries <tdevries@suse.de>
2048
2049 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2050
2051 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2052
2053 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2054 * breakpoint.c: Update the help text of the 'condition' and 'break'
2055 commands.
2056 (set_breakpoint_condition): Take a new bool parameter
2057 to control whether condition definition should be forced even when
2058 the condition expression is invalid in all of the current locations.
2059 (condition_command): Update the call to 'set_breakpoint_condition'.
2060 (find_condition_and_thread): Take the "-force-condition" flag into
2061 account.
2062 * linespec.c (linespec_keywords): Add "-force-condition" as an
2063 element.
2064 (FORCE_KEYWORD_INDEX): New #define.
2065 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2066 as a keyword.
2067 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2068 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2069 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2070 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2071
2072 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2073
2074 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2075 * breakpoint.c (set_breakpoint_location_condition): New function.
2076 (set_breakpoint_condition): Disable a breakpoint location if parsing
2077 the condition string gives an error.
2078 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2079 (build_target_condition_list): Ditto.
2080 (build_target_command_list): Ditto.
2081 (build_bpstat_chain): Ditto.
2082 (print_one_breakpoint_location): Ditto.
2083 (print_one_breakpoint): Ditto.
2084 (breakpoint_1): Ditto.
2085 (bp_location::bp_location): Ditto.
2086 (locations_are_equal): Ditto.
2087 (update_breakpoint_locations): Ditto.
2088 (enable_disable_bp_num_loc): Ditto.
2089 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2090 (find_condition_and_thread_for_sals): New static function.
2091 (create_breakpoint): Call find_condition_and_thread_for_sals.
2092 (location_to_sals): Call find_condition_and_thread_for_sals instead
2093 of find_condition_and_thread.
2094
2095 2020-10-26 Tom de Vries <tdevries@suse.de>
2096
2097 * dwarf2/read.c (process_full_comp_unit): Call
2098 dwarf2_find_base_address.
2099
2100 2020-10-26 Tom Tromey <tromey@adacore.com>
2101
2102 * gdbtypes.c (create_range_type): Revert previous patch. Add
2103 comment.
2104
2105 2020-10-26 Pedro Alves <pedro@palves.net>
2106
2107 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2108 (my_waitpid): Use gdb::handle_eintr.
2109
2110 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2111
2112 * acinclude.m4: Update ptrace.m4 path.
2113 * ptrace.m4: Moved to gdbsupport.
2114
2115 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2116
2117 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2118 instead of target_gdbarch.
2119
2120 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2121
2122 * jit.c (jit_reader_load_command): Pass current inferior.
2123 (jit_inferior_init): Change parameter type to inferior, use it.
2124 (jit_inferior_created): Remove.
2125 (jit_inferior_created_hook): Pass inferior parameter down.
2126 (_initialize_jit): Use jit_inferior_created_hook instead of
2127 jit_inferior_created.
2128 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2129 * infrun.c (follow_exec): Pass inferior to
2130 jit_inferior_created_hook.
2131
2132 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2133
2134 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2135 parameter and use it.
2136 (thread_db_inferior_created): Pass inferior argument.
2137
2138 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2139
2140 * aix-thread.c (aix_thread_inferior_created): Add inferior
2141 parameter.
2142 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2143 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2144 * jit.c (jit_inferior_created): Likewise.
2145 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2146 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2147 * observable.h (inferior_created): Likewise.
2148 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2149 * symfile-mem.c (add_vsyscall_page): Likewise.
2150 * infcmd.c (post_create_inferior): Pass inferior argument.
2151
2152 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2153
2154 GDB 10.1 released.
2155
2156 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2157
2158 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2159 to ada_check_typedef.
2160
2161 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2162
2163 * f-exp.y (f_parse): Rename to...
2164 (f_language::parser): ...this.
2165 * f-lang.c (f_get_encoding): Rename to...
2166 (f_language::get_encoding): ...this.
2167 (f_op_print_tab): Rename to...
2168 (f_language::op_print_tab): ...this.
2169 (exp_descriptor_f): Rename to...
2170 (f_language::exp_descriptor_tab): ...this.
2171 (class f_language): Moved to f-lang.h.
2172 (f_language::language_arch_info): New function, moved out of class
2173 declaration.
2174 (f_language::search_name_hash): Likewise.
2175 (f_language::lookup_symbol_nonlocal): Likewise.
2176 (f_language::get_symbol_name_matcher_inner): Likewise.
2177 * f-lang.h: Add 'valprint.h' include.
2178 (class f_language): Moved here from f-lang.c.
2179 * f-typeprint.c (f_type_print_args): Delete commented out
2180 declaration.
2181 (f_print_typedef): Rename to...
2182 (f_language::print_typedef): ...this.
2183 (f_print_type): Rename to...
2184 (f_language::print_type): ...this.
2185 (f_type_print_varspec_prefix): Delete declaration and rename to...
2186 (f_language::f_type_print_varspec_prefix): ...this.
2187 (f_type_print_varspec_suffix): Delete declaration and rename to...
2188 (f_language::f_type_print_varspec_suffix): ...this.
2189 (f_type_print_base): Delete declaration and rename to...
2190 (f_language::f_type_print_base): ...this.
2191 * f-valprint.c (f_value_print_inner): Rename to...
2192 (f_language::value_print_inner): ...this.
2193 * parse.c: Delete 'f-lang.h' include.
2194
2195 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2196
2197 * language.h (language_defn::print_type): Add variable names in
2198 declaration, and update header comment.
2199
2200 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2201
2202 * ada-lang.c (ada_language::demangle): Rename to...
2203 (ada_language::demangle_symbol): ...this.
2204 * c-lang.c (cplus_language::demangle): Rename to...
2205 (cplus_language::demangle_symbol): ...this.
2206 * d-lang.c (d_language::demangle): Rename to...
2207 (d_language::demangle_symbol): ...this.
2208 * f-lang.c (f_language::demangle): Rename to...
2209 (f_language::demangle_symbol): ...this.
2210 * go-lang.c (go_language::demangle): Rename to...
2211 (go_language::demangle_symbol): ...this.
2212 * language.c (language_demangle): Update call to demangle_symbol.
2213 (auto_or_unknown_language::demangle): Rename to...
2214 (auto_or_unknown_language::demangle_symbol): ...this.
2215 * language.h (language_defn::demangle): Rename to...
2216 (language_defn::demangle_symbol): ...this.
2217 * objc-lang.c (objc_language::demangle): Rename to...
2218 (objc_language::demangle_symbol): ...this.
2219 * rust-lang.c (rust_language::demangle): Rename to...
2220 (rust_language::demangle_symbol): ...this.
2221
2222 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2223
2224 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2225 (iterate_over_file_blocks): Replace use of macro with the macros
2226 definition.
2227
2228 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2229
2230 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2231 * valprint.c (maybe_print_array_index): Replace use of macro with
2232 the macros definition.
2233
2234 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2235
2236 * ada-lang.c (ada_language::print_array_index): Call value_print
2237 directly.
2238 * language.c (language_defn::print_array_index): Likewise.
2239 * language.h (LA_VALUE_PRINT): Delete.
2240 * valprint.c (value_print): Call value_print on the
2241 current_language directly.
2242
2243 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2244
2245 * language.h (LA_PRINT_TYPEDEF): Delete.
2246 * typeprint.c (typedef_print): Call print_typedef directly on the
2247 current_language object.
2248
2249 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2250
2251 * m2-exp.y (m2_parse): Rename to...
2252 (m2_language::parser): ...this. Update function signature.
2253 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2254 (m2_op_print): Rename to...
2255 (m2_language::op_print_tab): ...this, and make const.
2256 (exp_descriptor_modula2): Rename to...
2257 (m2_language::exp_descriptor_modula2): ...this.
2258 (class m2_language): Move to m2-lang.h.
2259 (m2_language::language_arch_info): New function, moved out of
2260 class declaration.
2261 (m2_language::printchar): New function, body from m2_printchar.
2262 (m2_language::printstr): New function, moved out of class
2263 declaration.
2264 (m2_language::emitchar): Likewise.
2265 * m2-lang.h (m2_parse): Delete declaration.
2266 (m2_print_typedef): Delete declaration.
2267 (m2_value_print_inner): Delete declaration.
2268 (class m2_language): Class declaration moved from m2-lang.c,
2269 larger functions are left in m2-lang.c.
2270 * m2-typeprint.c (m2_print_typedef): Rename to...
2271 (m2_language::print_typedef): ...this, and update function
2272 signature.
2273 * m2-valprint.c (m2_value_print_inner): Rename to...
2274 (m2_language::value_print_inner): ...this, replace use of
2275 LA_PRINT_STRING with a direct call to printstr member function,
2276 and update recursive call.
2277
2278 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2279
2280 * language.c (default_is_string_type_p): Delete, implementation
2281 moved into auto_or_unknown_language::is_string_type_p.
2282 (unk_op_print_tab): Moved into
2283 auto_or_unknown_language::opcode_print_table.
2284 (unknown_language_arch_info): Delete, implementation moved into
2285 auto_or_unknown_language::language_arch_info.
2286 (class auto_or_unknown_language): New class, member functions
2287 copied from unknown_language class, with some updates.
2288 (class unknown_language): Most member functions moved into
2289 auto_or_unknown_language class. Inherit from
2290 auto_or_unknown_language class.
2291 (class auto_language): Inherit from auto_or_unknown_language.
2292 Delete most member functions.
2293
2294 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2295
2296 * stabsread.c (read_member_functions): Remove gdb_assert.
2297
2298 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2299
2300 * gdbtypes.c (init_complex_type): Check target type name.
2301
2302 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2303
2304 * target-debug.h (target_debug_print_struct_target_ops_p):
2305 Remove.
2306 (target_debug_print_async_callback_ftype_p): Remove.
2307 (target_debug_print_struct_trace_state_variable_p): Remove.
2308 (target_debug_print_struct_traceframe_info_p): Remove.
2309 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2310 (target_debug_print_enum_btrace_format): Remove.
2311 (target_debug_print_enum_info_proc_what): Remove.
2312 (target_debug_print_thread_info_pp): Remove.
2313
2314 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2315
2316 * target.h (struct target_ops) <make_corefile_notes>:
2317 Change return type to unique pointer.
2318 * target.c (dummy_make_corefile_notes): Likewise.
2319 * exec.c (struct exec_target) <make_corefile_notes>:
2320 Likewise.
2321 (exec_target::make_corefile_notes): Likewise.
2322 * procfs.c (class procfs_target) <make_corefile_notes>:
2323 Likewise.
2324 (procfs_do_thread_registers): Adjust to unique pointer.
2325 (struct procfs_corefile_thread_data): Add constructor.
2326 <note_data>: Change type to unique pointer.
2327 (procfs_corefile_thread_callback): Adjust to unique pointer.
2328 (procfs_target::make_corefile_notes): Change return type to
2329 unique pointer.
2330 * target-delegates.c: Re-generate.
2331 * gcore.c (write_gcore_file_1): Adjust.
2332 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2333 New.
2334
2335 2020-10-22 Tom de Vries <tdevries@suse.de>
2336
2337 * block.c (find_block_in_blockvector): Make sure the returned block
2338 contains pc.
2339
2340 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2341
2342 PR gdb/26693
2343 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2344 parameter.
2345 (load_cu): Pass existing CU.
2346 (process_imported_unit_die): Likewise.
2347 (follow_die_offset): Likewise.
2348
2349 2020-10-22 Luis Machado <luis.machado@linaro.org>
2350
2351 * corelow.c (core_target::xfer_partial): Also check for an empty
2352 m_core_unavailable_mappings vector.
2353
2354 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2355
2356 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2357 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2358 * f-exp.y (arglist): Allow for a series of subranges.
2359 (subrange): Add cases for subranges with strides.
2360 * f-lang.c (value_f90_subarray): Catch use of array strides and
2361 throw an error.
2362 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2363
2364 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2365
2366 * expprint.c (print_subexp_standard): Change enum range_type to
2367 range_flag and rename variables to match.
2368 (dump_subexp_body_standard): Likewise.
2369 * expression.h (enum range_type): Rename to...
2370 (enum range_flag): ...this.
2371 (range_types): Rename to...
2372 (range_flags): ...this.
2373 * f-lang.c (value_f90_subarray): Change enum range_type to
2374 range_flag and rename variables to match.
2375 * parse.c (operator_length_standard): Likewise.
2376 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2377 range_type to range_flag.
2378 * rust-lang.c (rust_evaluate_funcall): Likewise.
2379 (rust_range): Likewise.
2380 (rust_compute_range): Likewise.
2381 (rust_subscript): Likewise.
2382
2383 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2384
2385 * expprint.c (print_subexp_standard): Update to reflect changes to
2386 enum range_type.
2387 (dump_subexp_body_standard): Likewise.
2388 * expression.h (enum range_type): Convert to a bit field enum, and
2389 make the enum unsigned.
2390 * f-exp.y (subrange): Update to reflect changes to enum
2391 range_type.
2392 * f-lang.c (value_f90_subarray): Likewise.
2393 * parse.c (operator_length_standard): Likewise.
2394 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2395 * rust-lang.c (rust_range): Likewise.
2396 (rust_compute_range): Likewise.
2397 (rust_subscript): Likewise.
2398
2399 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
2400
2401 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2402 (displaced_step_in_progress): Fix comment.
2403
2404 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2405
2406 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2407 * gdbarch.c: Re-generate.
2408 * gdbarch.h: Re-generate.
2409 * gcore.c (write_gcore_file_1): Adjust.
2410 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2411 constructor.
2412 <note_data>: Change type to unique pointer.
2413 <abort_iteration>: Change type to bool.
2414 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2415 (fbsd_collect_thread_registers): Return void, adjust.
2416 (struct fbsd_corefile_thread_data): Add construtor.
2417 <note_data>: Change type to unique pointer.
2418 (fbsd_corefile_thread): Adjust.
2419 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2420 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2421 to unique pointer, adjust.
2422 (struct linux_collect_regset_section_cb_data): Add constructor.
2423 <note_data>: Change type to unique pointer.
2424 <abort_iteration>: Change type to bool.
2425 (linux_collect_thread_registers): Return void, adjust.
2426 (struct linux_corefile_thread_data): Add constructor.
2427 <note_data>: Change type to unique pointer.
2428 (linux_corefile_thread): Adjust.
2429 (linux_make_corefile_notes): Return unique pointer, adjust.
2430
2431 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2432
2433 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2434 * gdbarch.c: Re-generate.
2435 * gdbarch.h: Re-generate.
2436 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2437 bool.
2438 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2439 Likewise.
2440 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2441 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2442 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2443 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2444
2445 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2446
2447 * gdbarch.sh: Make generated predicates return bool.
2448 * gdbarch.c: Re-generate.
2449 * gdbarch.h: Re-generate.
2450
2451 2020-10-20 Tom Tromey <tom@tromey.com>
2452
2453 * varobj-iter.h (struct varobj_item): Remove typedef.
2454
2455 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * infrun.c (currently_stepping): Change int to bool
2458 (maybe_software_singlestep): Likewise.
2459 (show_stop_on_solib_events): Likewise.
2460 (stepping_past_nonsteppable_watchpoint): Likewise.
2461 (displaced_step_in_progress_any_inferior): Likewise.
2462 (displaced_step_in_progress_thread): Likewise.
2463 (keep_going_stepped_thread): Likewise.
2464 (thread_still_needs_step_over): Likewise.
2465 (start_step_over): Likewise.
2466 (do_target_resume): Likewise.
2467 (resume_1): Likewise.
2468 (clear_proceed_status): Likewise.
2469 (thread_still_needs_step_over_bp): Likewise.
2470 (proceed): Likewise.
2471 (switch_back_to_stepped_thread): Likewise.
2472 (adjust_pc_after_break): Likewise.
2473 (stepped_in_from): Likewise.
2474 (handle_stop_requested): Likewise.
2475 (handle_syscall_event): Likewise.
2476 (handle_no_resumed): Likewise.
2477 (handle_inferior_event): Likewise.
2478 (finish_step_over): Likewise.
2479 (handle_signal_stop): Likewise.
2480 (process_event_stop_test): Likewise.
2481
2482 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2483
2484 * infrun.c (get_displaced_stepping_state): Fix comment.
2485
2486 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2487
2488 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2489
2490 2020-10-19 Tom Tromey <tromey@adacore.com>
2491
2492 PR tui/26719
2493 * tui/tui-winsource.h (struct tui_source_window_base)
2494 <refresh_window>: Rename from refresh_pad.
2495 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2496 Rename from refresh_pad.
2497 (tui_source_window_base::show_source_content)
2498 (tui_source_window_base::do_scroll_horizontal): Update.
2499
2500 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2501
2502 * thread.c (_initialize_thread): Fine-tune the help text of
2503 'info threads'.
2504
2505 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2506
2507 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2508
2509 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2510
2511 * breakpoint.c (handle_jit_event): Add an argument, change how
2512 `jit_event_handler` is called.
2513
2514 2020-10-17 Tom Tromey <tom@tromey.com>
2515
2516 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2517 (scan_xcoff_symtab): Update.
2518 * psymtab.h (class psymtab_storage) <global_psymbols,
2519 static_psymbols, current_global_psymbols,
2520 current_static_psymbols>: Remove.
2521 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2522 (match_partial_symbol, lookup_partial_symbol): Update.
2523 (print_partial_symbols): Change parameters.
2524 (dump_psymtab, recursively_search_psymtabs)
2525 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2526 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2527 (concat): Remove.
2528 (end_psymtab_common): Simplify.
2529 (append_psymbol_to_list): Change parameters.
2530 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2531 (init_psymbol_list): Simplify.
2532 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2533 * psympriv.h (struct partial_symtab) <empty>: New method.
2534 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2535 Remove.
2536 <global_psymbols, static_psymbols>: New members.
2537 <add_psymbol>: New methods.
2538 (add_psymbol_to_list): Don't declare.
2539 (psymbol_placement): Move earlier.
2540 * mdebugread.c (parse_partial_symbols): Update.
2541 (handle_psymbol_enumerators): Change parameters.
2542 (mdebug_expand_psymtab): Update.
2543 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2544 (add_partial_symbol): Update.
2545 * dwarf2/index-write.c (write_psymbols): Change parameters.
2546 (write_one_signatured_type): Update.
2547 (recursively_count_psymbols): Update.
2548 (recursively_write_psymbols): Update.
2549 (class debug_names) <recursively_write_psymbols>: Update.
2550 <write_psymbols>: Change parameters.
2551 <write_one_signatured_type>: Update.
2552 * dbxread.c (read_dbx_symtab): Update.
2553 (dbx_end_psymtab): Use partial_symtab::empty.
2554 * ctfread.c (struct ctf_context) <pst>: New member.
2555 (create_partial_symtab): Set it.
2556 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2557 (scan_partial_symbols): Use the psymtab's context. Update.
2558
2559 2020-10-17 Tom Tromey <tom@tromey.com>
2560
2561 * valprint.c (generic_value_print): Remove comment.
2562 * m2-valprint.c (m2_value_print_inner): Remove comment.
2563 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2564 type.
2565
2566 2020-10-17 Tom de Vries <tdevries@suse.de>
2567
2568 PR symtab/26317
2569 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2570 symbol main.
2571
2572 2020-10-14 Tom de Vries <tdevries@suse.de>
2573
2574 PR gdb/26733
2575 * solib.c (solib_contains_address_p): Handle
2576 'solib->sections == nullptr'.
2577
2578 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2579
2580 PR gdb/26642
2581 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2582 target can't do async.
2583 * target.c (target_wait): Assert that we don't pass
2584 TARGET_WNOHANG to a target that can't async.
2585
2586 2020-10-13 Kamil Rytarowski <n54@gmx.com>
2587
2588 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2589 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2590 * alpha-bsd-nat.c: Adjust include.
2591 * alpha-bsd-tdep.h: Adjust comment.
2592 * alpha-nbsd-tdep.c: Rename to ...
2593 * alpha-netbsd-tdep.c: ... this, adjust include.
2594 * amd64-nbsd-nat.c: Rename to ...
2595 * amd64-netbsd-nat.c: ... this, adjust include.
2596 * amd64-nbsd-tdep.c: Rename to ...
2597 * amd64-netbsd-tdep.c: ... this, adjust include.
2598 * amd64-tdep.h: Adjust include.
2599 * arm-nbsd-nat.c: Rename to ...
2600 * arm-netbsd-nat.c: ... this, adjust include.
2601 * arm-nbsd-tdep.c: Rename to ...
2602 * arm-netbsd-tdep.c: ... this, adjust include.
2603 * arm-nbsd-tdep.h: Rename to ...
2604 * arm-netbsd-tdep.h: ... this, adjust include.
2605 * configure.nat: Adjust file lists.
2606 * configure.tgt: Likewise.
2607 * hppa-nbsd-nat.c: Rename to ...
2608 * hppa-netbsd-nat.c: ... this, adjust include.
2609 * hppa-nbsd-tdep.c: Rename to ...
2610 * hppa-netbsd-tdep.c: ... this, adjust include.
2611 * i386-nbsd-nat.c: Rename to ...
2612 * i386-netbsd-nat.c: ... this, adjust include.
2613 * i386-nbsd-tdep.c: Rename to ...
2614 * i386-netbsd-tdep.c: ... this, adjust include.
2615 * m68k-bsd-nat.c: Adjust include.
2616 * mips-nbsd-nat.c: Rename to ...
2617 * mips-netbsd-nat.c: ... this, adjust include.
2618 * mips-nbsd-tdep.c: Rename to ...
2619 * mips-netbsd-tdep.c: ... this, adjust include.
2620 * mips-nbsd-tdep.h: Rename to ...
2621 * mips-netbsd-tdep.h: ... this.
2622 * nbsd-nat.c: Rename to ...
2623 * netbsd-nat.c: ... this, adjust include.
2624 * nbsd-nat.h: Rename to ...
2625 * netbsd-nat.h: ... this, adjust include.
2626 * nbsd-tdep.c: Rename to ...
2627 * netbsd-tdep.c: ... this, adjust include.
2628 * nbsd-tdep.h: Rename to ...
2629 * netbsd-tdep.h: ... this.
2630 * ppc-nbsd-nat.c: Rename to ...
2631 * ppc-netbsd-nat.c: ... this, adjust include.
2632 * ppc-nbsd-tdep.c: Rename to ...
2633 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2634 * ppc-nbsd-tdep.h: Rename to ...
2635 * ppc-netbsd-tdep.h: ... this.
2636 * sh-nbsd-nat.c: Rename to ...
2637 * sh-netbsd-nat.c: ... this, adjust include.
2638 * sh-nbsd-tdep.c: Rename to ...
2639 * sh-netbsd-tdep.c: ... this, adjust include.
2640 * sparc-nbsd-nat.c: Rename to ...
2641 * sparc-netbsd-nat.c: ... this.
2642 * sparc-nbsd-tdep.c: Rename to ...
2643 * sparc-netbsd-tdep.c: ... this, adjust include.
2644 * sparc64-nbsd-nat.c: Rename to ...
2645 * sparc64-netbsd-nat.c: ... this.
2646 * sparc64-nbsd-tdep.c: Rename to ...
2647 * sparc64-netbsd-tdep.c: ... this, adjust include.
2648 * sparc64-tdep.h: Adjust comment.
2649 * vax-bsd-nat.c: Adjust include.
2650 * vax-nbsd-tdep.c: Rename to ...
2651 * vax-netbsd-tdep.c: ... this, adjust include.
2652
2653 2020-10-12 Tom Tromey <tom@tromey.com>
2654
2655 * target.h (struct target_ops) <get_section_table>: Update.
2656 (target_get_section_table): Update.
2657 * target.c (target_get_section_table, target_section_by_addr)
2658 (memory_xfer_partial_1): Update.
2659 * target-section.h (target_section_table): Now an alias.
2660 * target-delegates.c: Rebuild.
2661 * target-debug.h (target_debug_print_target_section_table_p):
2662 Rename from target_debug_print_struct_target_section_table_p.
2663 * symfile.c (build_section_addr_info_from_section_table): Update.
2664 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2665 * solib-svr4.c (scan_dyntag): Update.
2666 * solib-dsbt.c (scan_dyntag): Update.
2667 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2668 Update.
2669 * record-full.c (record_full_core_target::xfer_partial): Update.
2670 * progspace.h (struct program_space) <target_sections>: Update.
2671 * exec.h (print_section_info): Update.
2672 * exec.c (exec_target::close, build_section_table)
2673 (add_target_sections, add_target_sections_of_objfile)
2674 (remove_target_sections, exec_on_vfork)
2675 (section_table_available_memory)
2676 (section_table_xfer_memory_partial)
2677 (exec_target::get_section_table, exec_target::xfer_partial)
2678 (print_section_info, set_section_command)
2679 (exec_set_section_address, exec_target::has_memory): Update.
2680 * corelow.c (core_target::build_file_mappings)
2681 (core_target::xfer_partial, core_target::info_proc_mappings)
2682 (core_target::info_proc_mappings): Update.
2683 * bfd-target.c (class target_bfd): Update
2684
2685 2020-10-12 Tom Tromey <tom@tromey.com>
2686
2687 * progspace.c (program_space::~program_space): Don't call
2688 clear_section_table.
2689 * exec.h (clear_section_table): Don't declare.
2690 * exec.c (exec_target::close): Update.
2691 (clear_section_table): Remove.
2692
2693 2020-10-12 Tom Tromey <tom@tromey.com>
2694
2695 * exec.c (add_target_sections_of_objfile): Simplify.
2696
2697 2020-10-12 Tom Tromey <tom@tromey.com>
2698
2699 * solib.c (solib_map_sections): Update.
2700 * record-full.c (record_full_core_open_1): Update.
2701 * exec.h (build_section_table): Return a target_section_table.
2702 * exec.c (exec_file_attach): Update.
2703 (build_section_table): Return a target_section_table.
2704 * corelow.c (core_target::core_target): Update.
2705 * bfd-target.c (target_bfd::target_bfd): Update.
2706
2707 2020-10-12 Tom Tromey <tom@tromey.com>
2708
2709 * target.c (target_section_by_addr, memory_xfer_partial_1):
2710 Update.
2711 * target-section.h (struct target_section_table): Use
2712 std::vector.
2713 * symfile.h (build_section_addr_info_from_section_table): Take a
2714 target_section_table.
2715 * symfile.c (build_section_addr_info_from_section_table): Take a
2716 target_section_table.
2717 * solist.h (struct so_list) <sections>: Change type.
2718 <sections_end>: Remove.
2719 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2720 (solib_contains_address_p): Update.
2721 * solib-svr4.c (scan_dyntag): Update.
2722 * solib-dsbt.c (scan_dyntag): Update.
2723 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2724 Update.
2725 * record-full.c (record_full_core_start, record_full_core_end):
2726 Remove.
2727 (record_full_core_sections): New global.
2728 (record_full_core_open_1, record_full_core_target::xfer_partial):
2729 Update.
2730 * exec.h (build_section_table, section_table_xfer_memory_partial)
2731 (add_target_sections): Take a target_section_table.
2732 * exec.c (exec_file_attach, clear_section_table): Update.
2733 (resize_section_table): Remove.
2734 (build_section_table, add_target_sections): Take a
2735 target_section_table.
2736 (add_target_sections_of_objfile, remove_target_sections)
2737 (exec_on_vfork): Update.
2738 (section_table_available_memory): Take a target_section_table.
2739 (section_table_read_available_memory): Update.
2740 (section_table_xfer_memory_partial): Take a target_section_table.
2741 (print_section_info, set_section_command)
2742 (exec_set_section_address, exec_target::has_memory): Update.
2743 * corelow.c (class core_target) <m_core_section_table,
2744 m_core_file_mappings>: Remove braces.
2745 <~core_target>: Remove.
2746 (core_target::core_target): Update.
2747 (core_target::~core_target): Remove.
2748 (core_target::build_file_mappings)
2749 (core_target::xfer_memory_via_mappings)
2750 (core_target::xfer_partial, core_target::info_proc_mappings):
2751 Update.
2752 * bfd-target.c (target_bfd::xfer_partial): Update.
2753 (target_bfd::target_bfd): Update.
2754 (target_bfd::~target_bfd): Remove.
2755
2756 2020-10-12 Tom Tromey <tom@tromey.com>
2757
2758 * target.h (struct target_section, struct target_section_table):
2759 Move to target-section.h.
2760 * target-section.h: New file.
2761
2762 2020-10-12 Pedro Alves <pedro@palves.net>
2763
2764 PR exp/26602
2765 * valops.c (struct struct_field_searcher): New.
2766 (update_search_result): Rename to ...
2767 (struct_field_searcher::update_result): ... this. Simplify
2768 prototype. Record all found fields.
2769 (do_search_struct_field): Rename to ...
2770 (struct_field_searcher::search): ... this. Simplify prototype.
2771 Maintain stack of visited baseclass path. Call update_result for
2772 fields too. Keep searching fields in baseclasses instead of
2773 stopping at the first found field.
2774 (search_struct_field): Use struct_field_searcher. When looking
2775 for fields, report ambiguous access attempts.
2776
2777 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2778
2779 * frame.c (inside_main_func): Check full symbols as well as
2780 minimal symbols.
2781
2782 2020-10-09 Joel Brobecker <brobecker@adacore.com>
2783
2784 * ada-lang.c (advance_wild_match): Rewrite the function's
2785 description. Change the type of target0, t0 and t1 to char.
2786
2787 2020-10-09 Tom Tromey <tromey@adacore.com>
2788
2789 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2790
2791 2020-10-09 Tom Tromey <tromey@adacore.com>
2792
2793 * ada-lang.h (ada_encode): Return std::string.
2794 * ada-lang.c (ada_encode_1): Return std::string.
2795 (ada_encode): Likewise.
2796 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2797 Update.
2798 * ada-exp.y (block_lookup, write_var_or_type): Update.
2799
2800 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
2801
2802 PR exp/26714
2803 * printcmd.c (print_formatted): Handle void results as
2804 unformatted prints.
2805
2806 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2807
2808 * arch/aarch32.c (aarch32_create_target_description): Release the
2809 target_desc_up as late as possible.
2810 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2811 * arch/amd64.c (amd64_create_target_description): Likewise.
2812 * arch/arc.c (arc_create_target_description): Return a
2813 target_desc_up, don't release it.
2814 * arch/arc.h (arc_create_target_description): Update declaration.
2815 (arc_lookup_target_description): Move target_desc_up into the
2816 cache, and return a borrowed pointer.
2817 * arch/arm.c (arm_create_target_description): Release the
2818 target_desc_up as late as possible.
2819 * arch/i386.c (i386_create_target_description): Likewise.
2820 * arch/riscv.h (riscv_create_target_description): Update
2821 declaration to match definition.
2822 * arch/tic6x.c (tic6x_create_target_description): Release the
2823 target_desc_up as late as possible.
2824
2825 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2826
2827 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2828 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2829
2830 2020-10-09 Jan Vrany <jan.vrany@labware.com>
2831
2832 * source.c (directory_command): Notify observers that "directories"
2833 parameter has changed.
2834
2835 2020-10-08 Tom Tromey <tom@tromey.com>
2836
2837 * cli/cli-cmds.c (print_disassembly): Style function name and
2838 addresses. Add _() wrappers.
2839
2840 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
2841
2842 * NEWS: Mention ARC support in GDBserver.
2843
2844 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2845
2846 * arch/aarch32.c (aarch32_create_target_description): Release
2847 unique_ptr returned from allocate_target_description.
2848 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2849 * arch/amd64.c (amd64_create_target_description): Likewise.
2850 * arch/arc.c (arc_create_target_description): Likewise.
2851 * arch/arm.c (arm_create_target_description): Likewise.
2852 * arch/i386.c (i386_create_target_description): Likewise.
2853 * arch/riscv.c (riscv_create_target_description): Update return
2854 type. Handle allocate_target_description returning a unique_ptr.
2855 (riscv_lookup_target_description): Update to handle unique_ptr.
2856 * arch/tic6x.c (tic6x_create_target_description): Release
2857 unique_ptr returned from allocate_target_description.
2858 * features/microblaze-with-stack-protect.c: Regenerate.
2859 * features/microblaze.c: Regenerate.
2860 * features/mips-dsp-linux.c: Regenerate.
2861 * features/mips-linux.c: Regenerate.
2862 * features/mips64-dsp-linux.c: Regenerate.
2863 * features/mips64-linux.c: Regenerate.
2864 * features/nds32.c: Regenerate.
2865 * features/nios2.c: Regenerate.
2866 * features/or1k.c: Regenerate.
2867 * features/rs6000/powerpc-32.c: Regenerate.
2868 * features/rs6000/powerpc-32l.c: Regenerate.
2869 * features/rs6000/powerpc-403.c: Regenerate.
2870 * features/rs6000/powerpc-403gc.c: Regenerate.
2871 * features/rs6000/powerpc-405.c: Regenerate.
2872 * features/rs6000/powerpc-505.c: Regenerate.
2873 * features/rs6000/powerpc-601.c: Regenerate.
2874 * features/rs6000/powerpc-602.c: Regenerate.
2875 * features/rs6000/powerpc-603.c: Regenerate.
2876 * features/rs6000/powerpc-604.c: Regenerate.
2877 * features/rs6000/powerpc-64.c: Regenerate.
2878 * features/rs6000/powerpc-64l.c: Regenerate.
2879 * features/rs6000/powerpc-7400.c: Regenerate.
2880 * features/rs6000/powerpc-750.c: Regenerate.
2881 * features/rs6000/powerpc-860.c: Regenerate.
2882 * features/rs6000/powerpc-altivec32.c: Regenerate.
2883 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2884 * features/rs6000/powerpc-altivec64.c: Regenerate.
2885 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2886 * features/rs6000/powerpc-e500.c: Regenerate.
2887 * features/rs6000/powerpc-e500l.c: Regenerate.
2888 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2889 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2890 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2891 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2892 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2893 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2894 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2895 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2896 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2897 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2898 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2899 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2900 * features/rs6000/powerpc-vsx32.c: Regenerate.
2901 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2902 * features/rs6000/powerpc-vsx64.c: Regenerate.
2903 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2904 * features/rs6000/rs6000.c: Regenerate.
2905 * features/rx.c: Regenerate.
2906 * features/s390-gs-linux64.c: Regenerate.
2907 * features/s390-linux32.c: Regenerate.
2908 * features/s390-linux32v1.c: Regenerate.
2909 * features/s390-linux32v2.c: Regenerate.
2910 * features/s390-linux64.c: Regenerate.
2911 * features/s390-linux64v1.c: Regenerate.
2912 * features/s390-linux64v2.c: Regenerate.
2913 * features/s390-te-linux64.c: Regenerate.
2914 * features/s390-tevx-linux64.c: Regenerate.
2915 * features/s390-vx-linux64.c: Regenerate.
2916 * features/s390x-gs-linux64.c: Regenerate.
2917 * features/s390x-linux64.c: Regenerate.
2918 * features/s390x-linux64v1.c: Regenerate.
2919 * features/s390x-linux64v2.c: Regenerate.
2920 * features/s390x-te-linux64.c: Regenerate.
2921 * features/s390x-tevx-linux64.c: Regenerate.
2922 * features/s390x-vx-linux64.c: Regenerate.
2923 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2924 from allocate_target_description.
2925 * target-descriptions.c (allocate_target_description): Update
2926 return type.
2927 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2928 allocate_target_description.
2929
2930 2020-10-07 Tom Tromey <tromey@adacore.com>
2931
2932 * unittests/search-memory-selftests.c: New file.
2933 * Makefile.in (SELFTESTS_SRCS): Add
2934 unittests/search-memory-selftests.c.
2935
2936 2020-10-07 Tom Tromey <tromey@adacore.com>
2937
2938 PR gdb/16930:
2939 * findcmd.c (_initialize_mem_search): Mention that the range is
2940 inclusive.
2941
2942 2020-10-07 Tom Tromey <tromey@adacore.com>
2943
2944 * target.h (simple_search_memory): Don't declare.
2945 * target.c (simple_search_memory): Move to gdbsupport.
2946 (default_search_memory): Update.
2947 * remote.c (remote_target::search_memory): Update.
2948
2949 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
2950
2951 * Makefile.in (COMPILE): Add CXXFLAGS.
2952 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2953 (check-headers): Add CXXFLAGS.
2954
2955 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2956
2957 * arc-linux-tdep.h: New file.
2958 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2959 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2960 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2961 arc_linux_gregset, arc_linux_v2_regset,
2962 arc_linux_iterate_over_regset_sections,
2963 arc_linux_core_read_description): Implement.
2964 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2965 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2966 (arc_gdbarch_features_create): Add.
2967 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2968
2969 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
2970
2971 * arch/arc.h: Rename "arc_gdbarch_features" to
2972 "arc_arch_features".
2973 * arc-tdep.h: Likewise.
2974 * arc-tdep.c: Likewise.
2975
2976 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2977
2978 * infcmd.c (attach_command): Remove the redundant call to
2979 `clear_proceed_status`.
2980
2981 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2982
2983 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2984
2985 2020-10-07 Kamil Rytarowski <n54@gmx.com>
2986
2987 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2988 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2989 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2990
2991 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2992
2993 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2994 (_initialize_break_catch_sig): Don't allocate array.
2995
2996 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2997
2998 * symtab.c (find_pc_line): Return unmapped addresses when the
2999 requested address is also unmapped.
3000
3001 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3002
3003 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3004 tui/tui-out.h.
3005
3006 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3007
3008 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3009 type::is_vector instead of TYPE_VECTOR.
3010
3011 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3012
3013 * auto-load.c (auto_load_objfile_script_1): Don't use
3014 debugfile_holder as temporary variable when stripping drive
3015 letter.
3016
3017 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3018
3019 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3020 Add TYPE_CODE_COMPLEX.
3021 (amd64_windows_return_value): Fix types returned via XMM0.
3022
3023 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3024
3025 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3026 AArch64/ARM maintainers.
3027
3028 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3029
3030 * NEWS: Mention set/show debug event-loop.
3031
3032 2020-10-02 Tom Tromey <tromey@adacore.com>
3033
3034 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3035 REG_EXTENDED.
3036
3037 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3038
3039 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3040 * procfs.c (procfs_inferior_created): Remove.
3041 (_initialize_procfs): Don't register procfs_inferior_created.
3042
3043 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3044
3045 * async-event.c (invoke_async_signal_handlers): Add debug
3046 print.
3047 (check_async_event_handlers): Likewise.
3048 * event-top.c (show_debug_event_loop): New function.
3049 (_initialize_event_top): Register "set debug event-loop"
3050 setting.
3051
3052 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3053
3054 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3055 * debug.h: Remove.
3056 * infrun.c: Include gdbsupport/common-debug.h.
3057 * linux-nat.c: Likewise.
3058
3059 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3060
3061 * async-event.h (create_async_signal_handler): Add name
3062 parameter.
3063 (create_async_event_handler): Likewise.
3064 * async-event.c (struct async_signal_handler) <name>: New field.
3065 (struct async_event_handler) <name>: New field.
3066 (create_async_signal_handler): Assign name.
3067 (create_async_event_handler): Assign name.
3068 * event-top.c (async_init_signals): Pass name when creating
3069 handler.
3070 * infrun.c (_initialize_infrun): Likewise.
3071 * record-btrace.c (record_btrace_push_target): Likewise.
3072 * record-full.c (record_full_open): Likewise.
3073 * remote-notif.c (remote_notif_state_allocate): Likewise.
3074 * remote.c (remote_target::open_1): Likewise.
3075 * tui/tui-win.c (tui_initialize_win): Likewise.
3076
3077 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3078
3079 * async-event.c (initialize_async_signal_handlers): Pass name to
3080 add_file_handler
3081 * event-top.c (ui_register_input_event_handler): Likewise.
3082 * linux-nat.c (linux_nat_target::async): Likewise.
3083 * run-on-main-thread.c (_initialize_run_on_main_thread):
3084 Likewise
3085 * ser-base.c (reschedule): Likewise.
3086 (ser_base_async): Likewise.
3087 * tui/tui-io.c: Likewise.
3088 * top.h (struct ui) <num>: New field.
3089 * top.c (highest_ui_num): New variable.
3090 (ui::ui): Initialize num.
3091
3092 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3093
3094 * observable.h <inferior_created>: Remove parameters. Update all
3095 listeners.
3096 * inferior.h (post_create_inferior): Remove target parameter.
3097 Update all callers.
3098
3099 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3100
3101 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3102 and DW_MACRO_undef_strx.
3103 (dwarf_decode_macros): Likewise
3104 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3105 which is the value of DW_AT_str_offsets_base.
3106 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3107 str_offsets_base.
3108
3109 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3110
3111 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3112
3113 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3114
3115 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3116 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3117
3118 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3119
3120 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3121
3122 2020-09-30 Tom de Vries <tdevries@suse.de>
3123
3124 PR symtab/26683
3125 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3126
3127 2020-09-30 Tom Tromey <tromey@adacore.com>
3128
3129 * dwarf2/read.c (handle_variant): Use constant_value.
3130
3131 2020-09-29 Tom Tromey <tom@tromey.com>
3132
3133 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3134 (read_file_scope, dwarf2_get_pc_bounds)
3135 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3136 (read_structure_type, handle_struct_member_die)
3137 (read_enumeration_type, read_array_type, read_set_type)
3138 (read_tag_pointer_type, read_tag_reference_type)
3139 (read_subroutine_type, read_base_type, read_subrange_type)
3140 (read_full_die_1, partial_die_info::read)
3141 (partial_die_info::read, by, new_symbol)
3142 (dwarf2_const_value_data, dwarf2_const_value_attr)
3143 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3144 (prepare_one_comp_unit): Update.
3145 * dwarf2/attribute.h (DW_UNSND): Remove.
3146
3147 2020-09-29 Tom Tromey <tom@tromey.com>
3148
3149 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3150 (read_subroutine_type, partial_die_info::read)
3151 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3152 (dwarf2_add_member_fn): Update.
3153 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3154 * dwarf2/attribute.c (attribute::as_boolean): New method.
3155
3156 2020-09-29 Tom Tromey <tom@tromey.com>
3157
3158 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3159 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3160 method.
3161 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3162
3163 2020-09-29 Tom Tromey <tom@tromey.com>
3164
3165 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3166 the attribute's form.
3167
3168 2020-09-29 Tom Tromey <tom@tromey.com>
3169
3170 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3171 (dwarf2_add_member_fn): Update.
3172 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3173 * dwarf2/attribute.c (attribute::defaulted): New method, from
3174 is_valid_DW_AT_defaulted.
3175
3176 2020-09-29 Tom Tromey <tom@tromey.com>
3177
3178 * dwarf2/read.c (dw2_get_file_names_reader)
3179 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3180 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3181 (dwarf2_symbol_mark_computed): Use as_unsigned.
3182 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3183 method.
3184 <form_is_section_offset>: Update comment.
3185
3186 2020-09-29 Tom Tromey <tom@tromey.com>
3187
3188 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3189 dwarf2_default_access_attribute. Look up attribute.
3190 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3191 Update.
3192
3193 2020-09-29 Tom Tromey <tom@tromey.com>
3194
3195 * dwarf2/read.c (skip_one_die): Update.
3196 (read_full_die_1): Change how reprocessing is done.
3197 (partial_die_info::read): Update.
3198 (read_attribute_value): Remove need_reprocess parameter.
3199 (read_attribute): Likewise.
3200 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3201 New method.
3202
3203 2020-09-29 Tom Tromey <tom@tromey.com>
3204
3205 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3206 (dwarf2_const_value_attr, dump_die_shallow)
3207 (dwarf2_fetch_constant_bytes): Update.
3208 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3209 comment.
3210 <set_address>: New method.
3211 (DW_ADDR): Remove.
3212 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3213 (attribute::as_string, attribute::as_address): Add assert.
3214
3215 2020-09-29 Tom Tromey <tom@tromey.com>
3216
3217 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3218 (read_attribute_reprocess, read_attribute_value): Update.
3219 (read_attribute): Clear requires_reprocessing.
3220 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3221 form_requires_reprocessing>: New methods.
3222 <string_init>: Clear requires_reprocessing.
3223 <set_unsigned_reprocess>: New method.
3224 <name>: Shrink by one bit.
3225 <requires_reprocessing>: New member.
3226 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3227 method.
3228
3229 2020-09-29 Tom Tromey <tom@tromey.com>
3230
3231 * dwarf2/read.c (read_attribute_value): Update.
3232 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3233 set_unsigned>: New methods.
3234 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3235
3236 2020-09-29 Tom Tromey <tom@tromey.com>
3237
3238 * dwarf2/read.c (get_alignment, read_array_order)
3239 (read_attribute_value, dwarf2_const_value_attr)
3240 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3241 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3242 New methods.
3243 (DW_SND): Remove.
3244
3245 2020-09-29 Tom Tromey <tom@tromey.com>
3246
3247 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3248 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3249 Update.
3250 * dwarf2/attribute.h (struct attribute) <as_signature,
3251 set_signature>: New methods.
3252 (DW_SIGNATURE): Remove.
3253
3254 2020-09-29 Tom Tromey <tom@tromey.com>
3255
3256 * dwarf2/read.c (read_call_site_scope)
3257 (handle_data_member_location, dwarf2_add_member_fn)
3258 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3259 (partial_die_info::read, read_attribute_value)
3260 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3261 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3262 (dwarf2_symbol_mark_computed): Update.
3263 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3264 methods.
3265 (DW_BLOCK): Remove.
3266 * dwarf2/attribute.c (attribute::form_is_block): Add
3267 DW_FORM_data16.
3268
3269 2020-09-29 Tom Tromey <tom@tromey.com>
3270
3271 * dwarf2/read.c (read_cutu_die_from_dwo)
3272 (read_attribute_reprocess, read_attribute_value, read_attribute)
3273 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3274 (dwarf2_fetch_constant_bytes): Update.
3275 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3276 <set_string_noncanonical, set_string_canonical>: New methods.
3277 <string_is_canonical>: Update comment.
3278 <canonical_string_p>: Add assert.
3279 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3280 * dwarf2/attribute.c (attribute::form_is_string): New method.
3281 (attribute::string): Use it.
3282
3283 2020-09-29 Tom Tromey <tom@tromey.com>
3284
3285 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3286 (dump_die_shallow): Use canonical_string_p.
3287 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3288 method.
3289
3290 2020-09-29 Tom Tromey <tom@tromey.com>
3291
3292 * dwarf2/read.c (partial_die_info::read)
3293 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3294 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3295 attribute::as_string.
3296
3297 2020-09-29 Tom Tromey <tom@tromey.com>
3298
3299 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3300 DW_ADDR.
3301 (attribute::string): Don't use DW_STRING.
3302 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3303 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3304
3305 2020-09-29 Tom Tromey <tom@tromey.com>
3306
3307 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3308 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3309 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3310 * dwarf2/attribute.h (struct attribute): Rename methods.
3311 * dwarf2/attribute.c (attribute::as_address): Rename from
3312 value_as_address.
3313 (attribute::as_string): Rename from value_as_string.
3314
3315 2020-09-29 Tom Tromey <tom@tromey.com>
3316
3317 * dwarf2/read.c (partial_die_info::read) <case
3318 DW_AT_linkage_name>: Use value_as_string.
3319 (dwarf2_string_attr): Use value_as_string.
3320 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3321 method.
3322 * dwarf2/attribute.c (attribute::value_as_string): New method.
3323
3324 2020-09-29 Pedro Alves <pedro@palves.net>
3325
3326 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3327 defined before using '#pragma GCC diagnostic' instead of checking
3328 __clang__.
3329
3330 2020-09-28 Tom Tromey <tom@tromey.com>
3331
3332 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3333 (handle_signal_stop): Update.
3334 * procfs.c (procfs_target::insert_watchpoint): Update.
3335 * target.h (target_have_steppable_watchpoint): Now a function.
3336
3337 2020-09-28 Tom Tromey <tom@tromey.com>
3338
3339 * infrun.c (set_schedlock_func): Update.
3340 * target.h (target_can_lock_scheduler): Now a function.
3341
3342 2020-09-28 Tom Tromey <tom@tromey.com>
3343
3344 * inferior.h (class inferior) <has_execution>: Update.
3345 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3346 * valops.c (find_function_in_inferior)
3347 (value_allocate_space_in_inferior): Update.
3348 * top.c (kill_or_detach): Update.
3349 * target.c (target_preopen, set_target_permissions): Update.
3350 (target_has_execution_current): Remove.
3351 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3352 Update.
3353 * solib.c (update_solib_list, reload_shared_libraries): Update.
3354 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3355 * solib-dsbt.c (enable_break): Update.
3356 * score-tdep.c (score7_fetch_inst): Update.
3357 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3358 Update.
3359 * remote.c (remote_target::start_remote)
3360 (remote_target::remote_check_symbols, remote_target::open_1)
3361 (remote_target::remote_detach_1, remote_target::verify_memory)
3362 (remote_target::xfer_partial, remote_target::read_description)
3363 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3364 * record-full.c (record_full_open_1): Update.
3365 * record-btrace.c (record_btrace_target_open): Update.
3366 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3367 (value_nsstring): Update.
3368 * linux-thread-db.c (add_thread_db_info)
3369 (thread_db_find_new_threads_silently, check_thread_db_callback)
3370 (try_thread_db_load_1, record_thread): Update.
3371 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3372 Update.
3373 * linux-fork.c (checkpoint_command): Update.
3374 * infrun.c (set_non_stop, set_observer_mode)
3375 (check_multi_target_resumption, for_each_just_stopped_thread)
3376 (maybe_remove_breakpoints, normal_stop)
3377 (class infcall_suspend_state): Update.
3378 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3379 (info_program_command, attach_command): Update.
3380 * infcall.c (call_function_by_hand_dummy): Update.
3381 * inf-loop.c (inferior_event_handler): Update.
3382 * gcore.c (gcore_command, derive_heap_segment): Update.
3383 * exec.c (exec_file_command): Update.
3384 * eval.c (evaluate_subexp): Update.
3385 * compile/compile.c (compile_to_object): Update.
3386 * cli/cli-dump.c (restore_command): Update.
3387 * breakpoint.c (update_watchpoint)
3388 (update_inserted_breakpoint_locations)
3389 (insert_breakpoint_locations, get_bpstat_thread): Update.
3390 * target.h (target_has_execution): Remove macro.
3391 (target_has_execution_current): Don't declare.
3392 (target_has_execution): Rename from target_has_execution_1. Add
3393 argument default.
3394
3395 2020-09-28 Tom Tromey <tom@tromey.com>
3396
3397 * mi/mi-main.c (exec_reverse_continue)
3398 (mi_cmd_list_target_features): Update.
3399 * infrun.c (set_exec_direction_func): Update.
3400 * target.c (default_execution_direction): Update.
3401 * reverse.c (exec_reverse_once): Update.
3402 * target.h (target_can_execute_reverse): Now a function.
3403
3404 2020-09-28 Tom Tromey <tom@tromey.com>
3405
3406 * tui/tui-regs.c (tui_get_register)
3407 (tui_data_window::show_registers): Update.
3408 * thread.c (scoped_restore_current_thread::restore)
3409 (scoped_restore_current_thread::scoped_restore_current_thread):
3410 Update.
3411 * regcache-dump.c (regcache_print): Update.
3412 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3413 Update.
3414 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3415 * mep-tdep.c (current_me_module, current_options): Update.
3416 * linux-thread-db.c (thread_db_load): Update.
3417 * infcmd.c (registers_info, info_vector_command)
3418 (info_float_command): Update.
3419 * ia64-tdep.c (ia64_frame_prev_register)
3420 (ia64_sigtramp_frame_prev_register): Update.
3421 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3422 * gcore.c (derive_stack_segment): Update.
3423 * frame.c (get_current_frame, has_stack_frames): Update.
3424 * findvar.c (language_defn::read_var_value): Update.
3425 * arm-tdep.c (arm_pc_is_thumb): Update.
3426 * target.c (target_has_registers): Rename from
3427 target_has_registers_1.
3428 * target.h (target_has_registers): Remove macro.
3429 (target_has_registers): Rename from target_has_registers_1.
3430
3431 2020-09-28 Tom Tromey <tom@tromey.com>
3432
3433 * windows-tdep.c (tlb_make_value): Update.
3434 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3435 * thread.c (scoped_restore_current_thread::restore)
3436 (scoped_restore_current_thread::scoped_restore_current_thread)
3437 (thread_command): Update.
3438 * stack.c (backtrace_command_1, frame_apply_level_command)
3439 (frame_apply_all_command, frame_apply_command): Update.
3440 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3441 Update.
3442 * gcore.c (derive_stack_segment): Update.
3443 * frame.c (get_current_frame, has_stack_frames): Update.
3444 * auxv.c (info_auxv_command): Update.
3445 * ada-tasks.c (ada_build_task_list): Update.
3446 * target.c (target_has_stack): Rename from target_has_stack_1.
3447 * target.h (target_has_stack): Remove macro.
3448 (target_has_stack): Rename from target_has_stack_1.
3449
3450 2020-09-28 Tom Tromey <tom@tromey.com>
3451
3452 * target.c (target_has_memory): Rename from target_has_memory_1.
3453 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3454 * thread.c (scoped_restore_current_thread::restore)
3455 (scoped_restore_current_thread::scoped_restore_current_thread):
3456 Update.
3457 * frame.c (get_current_frame, has_stack_frames): Update.
3458 * target.h (target_has_memory): Remove macro.
3459 (target_has_memory): Rename from target_has_memory_1.
3460
3461 2020-09-28 Tom Tromey <tom@tromey.com>
3462
3463 * target.c (target_has_all_memory_1): Remove.
3464 * target.h (target_has_all_memory): Remove define.
3465 (target_has_all_memory_1): Don't declare.
3466
3467 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3468
3469 * ser-base.c: Adjust comments formatting.
3470
3471 2020-09-27 Tom Tromey <tom@tromey.com>
3472
3473 PR tui/25342:
3474 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3475
3476 2020-09-27 Tom Tromey <tom@tromey.com>
3477
3478 PR tui/25342:
3479 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3480
3481 2020-09-27 Tom Tromey <tom@tromey.com>
3482
3483 * unittests/tui-selftests.c: Update.
3484 * tui/tui-winsource.h (struct tui_source_window_base)
3485 <extra_margin, show_line_number, refresh_pad>: New methods.
3486 <m_max_length, m_pad>: New members.
3487 (tui_copy_source_line): Update.
3488 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3489 first_col, line_width, ndigits parameters. Add length.
3490 (tui_source_window_base::show_source_line): Write to pad. Line
3491 number now 0-based.
3492 (tui_source_window_base::refresh_pad): New method.
3493 (tui_source_window_base::show_source_content): Write to pad. Call
3494 refresh_pad.
3495 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3496 not refill.
3497 (tui_source_window_base::update_exec_info): Call
3498 show_line_number.
3499 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3500 method.
3501 <m_digits>: New member.
3502 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3503 and m_max_length.
3504 (tui_source_window::show_line_number): New method.
3505 * tui/tui-io.h (tui_puts): Fix comment.
3506 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3507 m_max_length.
3508
3509 2020-09-27 Tom Tromey <tom@tromey.com>
3510
3511 * tui/tui-winsource.c
3512 (tui_source_window_base::set_is_exec_point_at): Don't call
3513 show_source_line.
3514
3515 2020-09-27 Tom Tromey <tom@tromey.com>
3516
3517 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3518 method.
3519 <erase>: Update.
3520 <cursor_x, cursor_y>: Remove.
3521 <m_inner_window>: New member.
3522 (tui_py_window::rerender): Create inner window.
3523 (tui_py_window::output): Write to inner window.
3524
3525 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3526
3527 PR python/26586
3528 * cli/cli-script.c (execute_control_commands): don't set
3529 instream to nullptr here as this breaks the from_tty argument
3530 to gdb.execute in Python.
3531 (execute_user_command): set instream to nullptr here instead.
3532
3533 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
3534
3535 * infrun.h (infrun_debug_printf): Fix formatting.
3536 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3537
3538 2020-09-25 Saagar Jha <saagar@saagarjha.com>
3539
3540 * compile/compile-object-load.h (struct munmap_list): Add
3541 explicitly-defined move constructor.
3542
3543 2020-09-24 Tom Tromey <tromey@adacore.com>
3544
3545 PR tui/26638:
3546 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3547 method.
3548 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3549 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3550 (tui_prev_win): Rewrite.
3551
3552 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3553
3554 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3555 in WOW64 processes as SIGINT.
3556 * nat/windows-nat.h: Make wow64_process a shared variable.
3557 * windows-nat.c: Remove static wow64_process variable.
3558
3559 2020-09-23 Tom Tromey <tom@tromey.com>
3560
3561 PR symtab/25470:
3562 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3563 offset and bit size.
3564 * printcmd.c (print_scalar_formatted): Handle zero-length
3565 integer.
3566 (print_scalar_formatted): Use bit_size_differs_p.
3567 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3568 constant.
3569 (union type_specific): <int_stuff>: New member.
3570 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3571 methods.
3572 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3573 TYPE_SPECIFIC_FIELD.
3574 (recursive_dump_type, copy_type_recursive): Update.
3575 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3576 DW_AT_data_bit_offset.
3577
3578 2020-09-23 Tom Tromey <tom@tromey.com>
3579
3580 * utils.h (class gdb_argv): Add move operators.
3581 <append>: New methods.
3582 * compile/compile.c (build_argc_argv): Remove.
3583 (compile_args_argc): Remove.
3584 (compile_args_argv): Change type.
3585 (set_compile_args): Simplify.
3586 (append_args): Remove.
3587 (filter_args): Remove argcp parameter.
3588 (get_args): Return gdb_argv. Simplify.
3589 (compile_to_object): Update.
3590
3591 2020-09-23 Tom Tromey <tom@tromey.com>
3592
3593 * compile/compile-object-run.c (do_module_cleanup)
3594 <~do_module_cleanup> :Remove.
3595 (do_module_cleanup): Update.
3596 * compile/compile-object-load.h (struct munmap_list): Add move
3597 assignment operator.
3598 <source_file>: Now a std::string.
3599 <munmap_list>: Rename. No longer a pointer.
3600 * compile/compile-object-load.c (struct setup_sections_data): Add
3601 constructor.
3602 <setup_one_section>: Declare.
3603 <munmap_list>: Move earlier.
3604 <m_bfd>: New member.
3605 <m_last_size, m_last_section_first, m_last_prot,
3606 m_last_max_alignment>: Rename, add initializers where needed.
3607 (setup_sections_data::setup_one_section): Rename from
3608 setup_sections. Update.
3609 (compile_object_load): Update. Don't use bfd_map_over_sections.
3610
3611 2020-09-23 Tom Tromey <tom@tromey.com>
3612
3613 * compile/compile-object-run.c (struct do_module_cleanup): Add
3614 parameters to constructor. Update destructor.
3615 <source_file, scope, scope_data, out_value_type, out_value_addr,
3616 munmap_list_head, objfile_name_string>: Remove.
3617 <module>: New member.
3618 (do_module_cleanup): Update.
3619 (compile_object_run): Update.
3620
3621 2020-09-23 Tom Tromey <tom@tromey.com>
3622
3623 * compile/compile.c (eval_compile_command): Update.
3624 * compile/compile-object-run.h (compile_object_run): Take a
3625 compile_module_up.
3626 * compile/compile-object-run.c (compile_object_run): Take a
3627 compile_module_up.
3628 * compile/compile-object-load.h (struct compile_module): Add
3629 constructor, destructor.
3630 (compile_module_up): New typedef.
3631 (compile_object_load): Return compile_object_up.
3632 * compile/compile-object-load.c (compile_object_load): Return
3633 compile_module_up.
3634
3635 2020-09-23 Tom Tromey <tom@tromey.com>
3636
3637 * compile/compile-object-run.c (struct do_module_cleanup): Add
3638 constructor, destructor.
3639 <objfile_name_string>: Don't use struct hack.
3640 (do_module_cleanup): Use delete.
3641 (compile_object_run): Use new.
3642
3643 2020-09-23 Tom Tromey <tom@tromey.com>
3644
3645 * compile/compile-cplus-types.c
3646 (compile_cplus_convert_struct_or_union): Use std::vector.
3647 (compile_cplus_convert_func): Likewise.
3648 * compile/compile-c-types.c (convert_func): Use std::vector.
3649
3650 2020-09-21 Tom Tromey <tromey@adacore.com>
3651
3652 * sparc-tdep.c (sparc32_skip_prologue): Use
3653 skip_prologue_using_sal.
3654
3655 2020-09-19 Tom Tromey <tom@tromey.com>
3656
3657 * symfile.c (add_section_size_callback): Remove.
3658 (load_one_section): Rename from load_section_callback. Change
3659 parameters.
3660 (generic_load): Use foreach.
3661
3662 2020-09-19 Tom Tromey <tom@tromey.com>
3663
3664 * exec.c (add_to_section_table): Remove.
3665 (build_section_table): Use foreach.
3666
3667 2020-09-19 Tom Tromey <tom@tromey.com>
3668
3669 * elfread.c (elf_locate_sections): Change parameters.
3670 (elf_symfile_read): Use foreach.
3671
3672 2020-09-19 Tom Tromey <tom@tromey.com>
3673
3674 * cli/cli-dump.c (struct callback_data): Remove.
3675 (restore_one_section): Rename from restore_section_callback.
3676 Change parameters.
3677 (restore_binary_file): Change parameters.
3678 (restore_command): Use foreach.
3679
3680 2020-09-19 Tom Tromey <tom@tromey.com>
3681
3682 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3683 (gcore_copy_callback): Likewise.
3684 (gcore_memory_sections): Use foreach.
3685
3686 2020-09-19 Tom Tromey <tom@tromey.com>
3687
3688 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3689 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3690 parameters.
3691 (generic_elf_osabi_sniffer): Use foreach.
3692 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3693 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3694
3695 2020-09-19 Tom Tromey <tom@tromey.com>
3696
3697 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3698 (dwarf2_get_dwz_file): Use foreach.
3699 (dwarf2_locate_dwo_sections): Change parameters.
3700 (open_and_init_dwo_file): Use foreach.
3701 (dwarf2_locate_common_dwp_sections): Change parameters.
3702 (open_and_init_dwp_file): Use foreach.
3703
3704 2020-09-19 Tom Tromey <tom@tromey.com>
3705
3706 * symfile.h: (find_lowest_section): Don't declare.
3707 * symfile.c (find_lowest_section): Now static. Change
3708 parameters.
3709 (struct place_section_arg): Remove.
3710 (place_section): Change parameters.
3711 (addr_info_make_relative): Use foreach.
3712 (symfile_dummy_outputs): Remove.
3713 (default_symfile_relocate): Use foreach.
3714
3715 2020-09-19 Tom Tromey <tom@tromey.com>
3716
3717 * objfiles.c (add_to_objfile_sections): Rename from
3718 add_to_objfile_sections_full.
3719 (add_to_objfile_sections): Remove.
3720 (build_objfile_section_table): Use foreach.
3721
3722 2020-09-19 Tom Tromey <tom@tromey.com>
3723
3724 * stap-probe.c (get_stap_base_address_1): Remove.
3725 (get_stap_base_address): Use foreach.
3726
3727 2020-09-19 Tom Tromey <tom@tromey.com>
3728
3729 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3730 parameters.
3731 (gdb_bfd_close_or_warn): Use foreach.
3732
3733 2020-09-19 Tom Tromey <tom@tromey.com>
3734
3735 * corelow.c (add_to_thread_list): Change parameters.
3736 (core_target_open): Use foreach.
3737
3738 2020-09-19 Tom Tromey <tom@tromey.com>
3739
3740 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3741 existing function.
3742
3743 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3744
3745 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3746 for arrays.
3747
3748 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3749
3750 * eval.c: Remove 'f-lang.h' include.
3751 (value_f90_subarray): Moved to f-lang.c.
3752 (eval_call): Renamed to...
3753 (evaluate_subexp_do_call): ...this, is no longer static, header
3754 comment moved into header file.
3755 (evaluate_funcall): Update call to eval_call.
3756 (skip_undetermined_arglist): Moved to f-lang.c.
3757 (fortran_value_subarray): Likewise.
3758 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3759 moved to evaluate_subexp_f.
3760 (calc_f77_array_dims): Moved to f-lang.c
3761 * expprint.c (print_subexp_funcall): New function.
3762 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3763 moved to print_subexp_f, OP_FUNCALL uses new function.
3764 (dump_subexp_body_funcall): New function.
3765 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3766 moved to dump_subexp_f, OP_FUNCALL uses new function.
3767 * expression.h (evaluate_subexp_do_call): Declare.
3768 * f-lang.c (value_f90_subarray): Moved from eval.c.
3769 (skip_undetermined_arglist): Likewise.
3770 (calc_f77_array_dims): Likewise.
3771 (fortran_value_subarray): Likewise.
3772 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3773 (operator_length_f): Likewise.
3774 (print_subexp_f): Likewise.
3775 (dump_subexp_body_f): Likewise.
3776 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3777 declaration of this operation to here.
3778 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3779 support moved to operator_length_f.
3780 * parser-defs.h (dump_subexp_body_funcall): Declare.
3781 (print_subexp_funcall): Declare.
3782 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3783 fortran-operator.def.
3784
3785 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3786
3787 * eval.c (fortran_value_subarray): New function, content is taken
3788 from...
3789 (evaluate_subexp_standard): ...here, in two places. Now arrays
3790 and strings both call the new function.
3791 (calc_f77_array_dims): Add header comment, handle strings.
3792
3793 2020-09-18 Victor Collod <vcollod@nvidia.com>
3794
3795 PR gdb/26635
3796 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3797 (i386_analyze_prologue): Call i386_skip_endbr.
3798
3799 2020-09-18 Tom Tromey <tromey@adacore.com>
3800
3801 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3802 (windows_nat_target::wait): Update.
3803 * target/wait.h (enum target_wait_flag): New. Use
3804 DEF_ENUM_FLAGS_TYPE.
3805 * target/target.h (target_wait): Change type of options.
3806 * target.h (target_options_to_string, default_target_wait):
3807 Update.
3808 (struct target_ops) <wait>: Change type of options.
3809 * target.c (target_wait, default_target_wait, do_option): Change
3810 type of "options".
3811 (target_options_to_string): Likewise.
3812 * target-delegates.c: Rebuild.
3813 * target-debug.h (target_debug_print_target_wait_flags): Rename
3814 from target_debug_print_options.
3815 * sol-thread.c (class sol_thread_target) <wait>: Update.
3816 (sol_thread_target::wait): Update.
3817 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3818 (rs6000_nat_target::wait): Update.
3819 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3820 Update.
3821 (remote_target::wait_ns, remote_target::wait_as): Change type of
3822 "options".
3823 (remote_target::wait): Update.
3824 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3825 (gdbsim_target::wait): Update.
3826 * record-full.c (class record_full_base_target) <wait>: Update.
3827 (record_full_wait_1): Change type of "options".
3828 (record_full_base_target::wait): Update.
3829 * record-btrace.c (class record_btrace_target) <wait>: Update.
3830 (record_btrace_target::wait): Update.
3831 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3832 Update.
3833 (ravenscar_thread_target::wait): Update.
3834 * procfs.c (class procfs_target) <wait>: Update.
3835 (procfs_target::wait): Update.
3836 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3837 * obsd-nat.c (obsd_nat_target::wait): Update.
3838 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3839 (nto_procfs_target::wait): Update.
3840 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3841 * nbsd-nat.c (nbsd_wait): Change type of "options".
3842 (nbsd_nat_target::wait): Update.
3843 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3844 (thread_db_target::wait): Update.
3845 * linux-nat.h (class linux_nat_target) <wait>: Update.
3846 * linux-nat.c (linux_nat_target::wait): Update.
3847 (linux_nat_wait_1): Update.
3848 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3849 "options".
3850 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3851 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3852 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3853 (go32_nat_target::wait): Update.
3854 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3855 * gnu-nat.c (gnu_nat_target::wait): Update.
3856 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3857 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3858 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3859 * darwin-nat.c (darwin_nat_target::wait): Update.
3860 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3861 (bsd_uthread_target::wait): Update.
3862 * aix-thread.c (class aix_thread_target) <wait>: Update.
3863 (aix_thread_target::wait): Update.
3864
3865 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3866
3867 * compile/compile-object-run.c (create_copied_type_recursive): New
3868 function.
3869 (compile_object_run): Use new function.
3870
3871 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3872
3873 * NEWS: Mention x86_64 Cygwin core file support.
3874
3875 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3876
3877 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3878 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3879
3880 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3881
3882 * windows-tdep.h: Add prototypes.
3883 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3884 (i386_windows_core_pid_to_str): Move and rename ...
3885 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3886 (windows_core_pid_to_str): ... and here.
3887 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3888
3889 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3890 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3891 (amd64_windows_init_abi_common): ... and register.
3892
3893 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3894
3895 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3896 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3897
3898 2020-09-18 Pedro Alves <pedro@palves.net>
3899
3900 PR gdb/26631
3901 * thread.c (thread_find_command): Switch inferior before calling
3902 target methods.
3903
3904 2020-09-17 Tom Tromey <tromey@adacore.com>
3905
3906 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3907 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3908 (tdesc_arch_data_up): New typedef.
3909 (tdesc_use_registers, tdesc_data_alloc): Update.
3910 (tdesc_data_cleanup): Don't declare.
3911 * target-descriptions.c (tdesc_data_alloc): Return a
3912 tdesc_arch_data_up.
3913 (tdesc_arch_data_deleter::operator()): Rename from
3914 tdesc_data_cleanup. Change argument type.
3915 (tdesc_use_registers): Change early_data to an rvalue reference.
3916 (tdesc_use_registers): Don't use delete.
3917 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3918 * s390-tdep.c (s390_gdbarch_init): Update.
3919 * rx-tdep.c (rx_gdbarch_init): Update.
3920 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3921 * riscv-tdep.c (riscv_gdbarch_init): Update.
3922 * or1k-tdep.c (or1k_gdbarch_init): Update.
3923 * nios2-tdep.c (nios2_gdbarch_init): Update.
3924 * nds32-tdep.c (nds32_gdbarch_init): Update.
3925 * mips-tdep.c (mips_gdbarch_init): Update.
3926 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3927 * m68k-tdep.c (m68k_gdbarch_init): Update.
3928 * i386-tdep.c (i386_gdbarch_init): Update.
3929 * arm-tdep.c (arm_gdbarch_init): Update.
3930 * arc-tdep.c (arc_tdesc_init): Update.
3931 (arc_gdbarch_init): Update.
3932 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3933
3934 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
3935
3936 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3937 for WOW64 processes.
3938
3939 2020-09-17 Tom Tromey <tom@tromey.com>
3940
3941 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3942
3943 2020-09-17 Tom Tromey <tom@tromey.com>
3944
3945 * value.c (preserve_values): Update.
3946 * python/py-type.c (save_objfile_types): Update.
3947 * guile/scm-type.c (save_objfile_types): Update.
3948 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3949 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3950 * compile/compile-object-run.c (compile_object_run): Update.
3951
3952 2020-09-17 Tom Tromey <tom@tromey.com>
3953
3954 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3955 Remove.
3956 <m_table>: Now htab_up.
3957 * typeprint.c (typedef_hash_table::recursively_update)
3958 (typedef_hash_table::add_template_parameters)
3959 (typedef_hash_table::typedef_hash_table): Update.
3960 (typedef_hash_table::~typedef_hash_table): Remove.
3961 (typedef_hash_table::typedef_hash_table)
3962 (typedef_hash_table::find_global_typedef)
3963 (typedef_hash_table::find_typedef): Update.
3964
3965 2020-09-17 Tom Tromey <tom@tromey.com>
3966
3967 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3968
3969 2020-09-17 Tom Tromey <tom@tromey.com>
3970
3971 * linespec.c (class decode_compound_collector)
3972 <~decode_compound_collector>: Remove.
3973 <m_unique_syms>: Now htab_up.
3974 (decode_compound_collector::operator ()): Update.
3975 (class symtab_collector) <~symtab_collector>: Remove.
3976 <m_symtab_table>: Now htab_up.
3977 (symtab_collector::operator ()): Update.
3978
3979 2020-09-17 Tom Tromey <tom@tromey.com>
3980
3981 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3982 (filename_seen_cache::clear): Update.
3983 (~filename_seen_cache): Remove.
3984 (filename_seen_cache::seen): Update.
3985 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3986 htab_up.
3987 <~filename_seen_cache>: Remove.
3988 <traverse>: Update.
3989
3990 2020-09-17 Tom Tromey <tom@tromey.com>
3991
3992 * completer.c (completion_tracker::discard_completions)
3993 (completion_tracker::~completion_tracker)
3994 (completion_tracker::maybe_add_completion)
3995 (completion_tracker::remove_completion)
3996 (completion_tracker::recompute_lowest_common_denominator)
3997 (completion_tracker::build_completion_result): Update.
3998 * completer.h (class completion_tracker) <have_completions>:
3999 Update.
4000 <m_entries_hash>: Now htab_up.
4001
4002 2020-09-17 Tom Tromey <tom@tromey.com>
4003
4004 * breakpoint.c (ambiguous_names_p): Use htab_up.
4005
4006 2020-09-17 Tom Tromey <tom@tromey.com>
4007
4008 * auto-load.c (struct auto_load_pspace_info)
4009 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4010 <loaded_script_files, loaded_script_texts>: Change type to
4011 htab_up.
4012 (~auto_load_pspace_info) Remove.
4013 (init_loaded_scripts_info, maybe_add_script_file)
4014 (maybe_add_script_text, auto_load_info_scripts): Update.
4015
4016 2020-09-17 Tom Tromey <tromey@adacore.com>
4017
4018 * c-exp.y (name_obstack): Now static.
4019
4020 2020-09-17 Chungyi Chi <demonic@csie.io>
4021
4022 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4023
4024 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4027 (add_solib_catchpoint): Likewise.
4028 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4029 to bool.
4030 (add_solib_catchpoint): Change int parameter/variable to bool.
4031 (catch_load_or_unload): Likewise.
4032 (init_catchpoint): Likewise.
4033 (create_fork_vfork_event_catchpoint): Likewise.
4034 (catch_fork_command_1): Likewise.
4035 (catch_exec_command_1): Likewise.
4036
4037 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4038
4039 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4040 Change instance_flags to m_instance_flags.
4041
4042 2020-09-16 Tom Tromey <tromey@adacore.com>
4043
4044 PR gdb/26598:
4045 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4046
4047 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4048
4049 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4050 PL_FLAG_EXEC.
4051 (fbsd_nat_target::insert_exec_catchpoint)
4052 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4053 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4054 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4055
4056 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4057
4058 * configure.ac: Remove check for kinfo_getvmmap().
4059 * configure, config.in: Regenerate.
4060 * fbsd-nat.c (fbsd_read_mapping): Remove
4061 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4062 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4063 kinfo_get_vmmap() are always present.
4064
4065 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4066
4067 * fbsd-nat.c: Always include support for
4068 TARGET_OBJECT_SIGNAL_INFO.
4069
4070 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4071
4072 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4073 sysctl and remove procfs fallback.
4074
4075 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4076
4077 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4078 * fbsd-nat.h: Likewise.
4079
4080 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4081
4082 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4083 argument.
4084
4085 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4086
4087 * ada-lang.c (ada_language_data): Delete.
4088 (ada_language): Remove references to ada_language_data.
4089 * c-lang.c (c_language_data): Delete.
4090 (c_language): Remove references to c_language_data.
4091 (cplus_language_data): Delete.
4092 (cplus_language): Remove references to cplus_language_data.
4093 (asm_language_data): Delete.
4094 (asm_language): Remove references to asm_language_data.
4095 (minimal_language_data): Delete.
4096 (minimal_language): Remove references to minimal_language_data.
4097 * d-lang.c (d_language_data): Delete.
4098 (d_language): Remove references to d_language_data.
4099 * f-lang.c (f_language_data): Delete.
4100 (f_language): Remove references to f_language_data.
4101 * go-lang.c (go_language_data): Delete.
4102 (go_language): Remove references to go_language_data.
4103 * language.c (unknown_language_data): Delete.
4104 (unknown_language): Remove references to unknown_language_data.
4105 (auto_language_data): Delete.
4106 (auto_language): Remove references to auto_language_data.
4107 * language.h (language_data): Delete struct.
4108 (language_defn): No longer inherit from language_data.
4109 * m2-lang.c (m2_language_data): Delete.
4110 (m2_language): Remove references to m2_language_data.
4111 * objc-lang.c (objc_language_data): Delete.
4112 (objc_language): Remove references to objc_language_data.
4113 * opencl-lang.c (opencl_language_data): Delete.
4114 (opencl_language): Remove references to opencl_language_data.
4115 * p-lang.c (pascal_language_data): Delete.
4116 (pascal_language): Remove references to pascal_language_data.
4117 * rust-lang.c (rust_language_data): Delete.
4118 (rust_language): Remove references to rust_language_data.
4119
4120 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4121
4122 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4123 initializer.
4124 (ada_language::opcode_print_table): New member function.
4125 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4126 (c_language::opcode_print_table): New member function.
4127 (cplus_language_data): Remove la_op_print_tab initializer.
4128 (cplus_language::opcode_print_table): New member function.
4129 (asm_language_data): Remove la_op_print_tab initializer.
4130 (asm_language::opcode_print_table): New member function.
4131 (minimal_language_data): Remove la_op_print_tab initializer.
4132 (minimal_language::opcode_print_table): New member function.
4133 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4134 (d_language::opcode_print_table): New member function.
4135 * expprint.c (print_subexp_standard): Update call to
4136 opcode_print_table.
4137 (op_string): Likewise.
4138 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4139 (f_language::opcode_print_table): New member function.
4140 * go-lang.c (go_language_data): Remove la_op_print_tab
4141 initializer.
4142 (go_language::opcode_print_table): New member function.
4143 * language.c (unknown_language_data): Remove la_op_print_tab
4144 initializer.
4145 (unknown_language::opcode_print_table): New member function.
4146 (auto_language_data): Remove la_op_print_tab initializer.
4147 (auto_language::opcode_print_table): New member function.
4148 * language.h (language_data): Remove la_op_print_tab field.
4149 (language_defn::opcode_print_table): Declare new member function.
4150 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4151 initializer.
4152 (m2_language::opcode_print_table): New member function.
4153 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4154 initializer.
4155 (objc_language::opcode_print_table): New member function.
4156 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4157 initializer.
4158 (opencl_language::opcode_print_table): New member function.
4159 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4160 initializer.
4161 (pascal_language::opcode_print_table): New member function.
4162 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4163 initializer.
4164 (rust_language::opcode_print_table): New member function.
4165
4166 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4167
4168 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4169 (ada_language::expression_ops): New member function.
4170 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4171 (c_language::expression_ops): New member function.
4172 (cplus_language_data): Remove la_exp_desc initializer.
4173 (cplus_language::expression_ops): New member function.
4174 (asm_language_data): Remove la_exp_desc initializer.
4175 (asm_language::expression_ops): New member function.
4176 (minimal_language_data): Remove la_exp_desc initializer.
4177 (minimal_language::expression_ops): New member function.
4178 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4179 (d_language::expression_ops): New member function.
4180 * eval.c (evaluate_subexp): Update call to expression_ops.
4181 * expprint.c (print_subexp): Likewise.
4182 (op_name): Likewise.
4183 (dump_subexp_body): Likewise.
4184 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4185 (f_language::expression_ops): New member function.
4186 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4187 (go_language::expression_ops): New member function.
4188 * language.c (language_defn::expression_ops): New function.
4189 (unknown_language_data): Remove la_exp_desc initializer.
4190 (auto_language_data): Likewise.
4191 * language.h (language_data): Remove la_exp_desc field.
4192 (language_defn::expression_ops): Declare new member function.
4193 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4194 (m2_language::expression_ops): New member function.
4195 * objc-lang.c (objc_language_data): Remove la_exp_desc
4196 initializer.
4197 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4198 initializer.
4199 (opencl_language::expression_ops): New member function.
4200 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4201 * parse.c (operator_length): Update call to expression_ops.
4202 (exp_iterate): Likewise.
4203 * rust-lang.c (rust_language_data): Remove la_exp_desc
4204 initializer.
4205 (ruse_language::expression_ops): New member function.
4206
4207 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4208
4209 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4210 initializer.
4211 (ada_language::varobj_ops): New member function.
4212 * c-lang.c (c_language_data): Remove la_varobj_ops
4213 initializer.
4214 (cplus_language_data): Likewise.
4215 (cplus_language::varobj_ops): New member function.
4216 (asm_language_data): Remove la_varobj_ops initializer.
4217 (minimal_language_data): Likewise.
4218 * d-lang.c (d_language_data): Likewise.
4219 * f-lang.c (f_language_data): Likewise.
4220 * go-lang.c (go_language_data): Likewise.
4221 * language.c (language_defn::varobj_ops): New function.
4222 (unknown_language_data): Remove la_varobj_ops
4223 initializer.
4224 (auto_language_data): Likewise.
4225 * language.h (language_data): Remove la_varobj_ops field.
4226 (language_defn::varobj_ops): Declare new member function.
4227 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4228 * objc-lang.c (objc_language_data): Likewise.
4229 * opencl-lang.c (opencl_language_data): Likewise.
4230 * p-lang.c (pascal_language_data): Likewise.
4231 * rust-lang.c (rust_language_data): Likewise.
4232 * varobj.c (varobj_create): Update call to varobj_ops.
4233 * varobj.h (default_varobj_ops): Delete define.
4234
4235 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4236
4237 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4238 initializer.
4239 * c-lang.c (c_language_data): Likewise.
4240 (c_language::macro_expansion): New member function.
4241 (cplus_language_data): Likewise.
4242 (cplus_language::macro_expansion): New member function.
4243 (asm_language_data): Likewise.
4244 (asm_language::macro_expansion): New member function.
4245 (minimal_language_data): Likewise.
4246 (minimal_language::macro_expansion): New member function.
4247 * d-lang.c (d_language_data): Remove la_macro_expansion
4248 initializer.
4249 * f-lang.c (f_language_data): Likewise.
4250 * go-lang.c (go_language_data): Likewise.
4251 * language.c (unknown_language_data): Likewise.
4252 (auto_language_data): Likewise.
4253 * language.h (language_data): Remove la_macro_expansion field.
4254 (language_defn::macro_expansion): New member function.
4255 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4256 initializer.
4257 * objc-lang.c (objc_language_data): Likewise.
4258 (objc_language::macro_expansion): New member function.
4259 * opencl-lang.c (opencl_language_data): Likewise.
4260 (opencl_language::macro_expansion): New member function.
4261 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4262 initializer.
4263 * rust-lang.c (rust_language_data): Likewise.
4264 * symtab.c (default_collect_symbol_completion_matches_break_on):
4265 Update call to macro_expansion.
4266
4267 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4268
4269 * ada-lang.c (ada_language_data): Remove la_array_ordering
4270 initializer.
4271 * c-lang.c (c_language_data): Likewise.
4272 (cplus_language_data): Likewise.
4273 (asm_language_data): Likewise.
4274 (minimal_language_data): Likewise.
4275 * d-lang.c (d_language_data): Likewise.
4276 * dwarf2/read.c (read_array_order): Update for call to
4277 array_ordering.
4278 * f-lang.c (f_language_data): Remove la_array_ordering
4279 initializer.
4280 (f_language::array_ordering): New member function.
4281 * go-lang.c (go_language_data): Remove la_array_ordering
4282 initializer.
4283 * language.c (unknown_language_data): Likewise.
4284 (auto_language_data): Likewise.
4285 * language.h (language_data): Delete la_array_ordering field.
4286 (language_defn::array_ordering): New member function.
4287 * m2-lang.c (m2_language_data): Remove la_array_ordering
4288 initializer.
4289 * objc-lang.c (objc_language_data): Likewise.
4290 * opencl-lang.c (opencl_language_data): Likewise.
4291 * p-lang.c (pascal_language_data): Likewise.
4292 * rust-lang.c (rust_language_data): Likewise.
4293
4294 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4295
4296 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4297 initializer.
4298 * c-lang.c (c_language_data): Likewise.
4299 (cplus_language_data): Likewise.
4300 (asm_language_data): Likewise.
4301 (minimal_language_data): Likewise.
4302 * d-lang.c (d_language_data): Likewise.
4303 * f-lang.c (f_language_data): Likewise.
4304 (f_language::case_sensitivity): New member function.
4305 * go-lang.c (go_language_data): Remove la_case_sensitivity
4306 initializer.
4307 * language.c (enum case_mode): Moved here from language.h.
4308 (case_mode): Make static.
4309 (show_case_command): Update for case_sensitivity being a method.
4310 (set_case_command): Likewise.
4311 (set_range_case): Likewise.
4312 (unknown_language_data): Remove la_case_sensitivity initializer.
4313 (auto_language_data): Likewise.
4314 * language.h (case_mode): Delete, move enum declaration to
4315 language.c.
4316 (language_data): Delete la_case_sensitivity field.
4317 (language_defn::case_sensitivity): New member function.
4318 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4319 initializer.
4320 * objc-lang.c (objc_language_data): Likewise.
4321 * opencl-lang.c (opencl_language_data): Likewise.
4322 * p-lang.c (pascal_language_data): Likewise.
4323 * rust-lang.c (rust_language_data): Likewise.
4324
4325 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4326
4327 * ada-lang.c (ada_language_data): Remove la_range_check
4328 initializer.
4329 * c-lang.c (c_language_data): Likewise.
4330 (cplus_language_data): Likewise.
4331 (asm_language_data): Likewise.
4332 (minimal_language_data): Likewise.
4333 * d-lang.c (d_language_data): Likewise.
4334 * f-lang.c (f_language_data): Likewise.
4335 (f_language::range_checking_on_by_default): New member function.
4336 * go-lang.c (go_language_data): Remove la_range_check initializer.
4337 * language.c (enum range_mode): Moved here from language.h.
4338 (range_mode): Made static.
4339 (show_range_command): Update to use
4340 range_checking_on_by_default.
4341 (set_range_command): Likewise.
4342 (set_range_case): Likewise.
4343 (unknown_language_data): Remove la_range_check initializer.
4344 (auto_language_data): Likewise.
4345 * language.h (range_mode): Delete. Enum definition moved to
4346 language.c.
4347 (language_data): Remove la_range_check field.
4348 (language_defn::range_checking_on_by_default): New member
4349 function.
4350 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4351 (m2_language::range_checking_on_by_default): New member function.
4352 * objc-lang.c (objc_language_data): Remove la_range_check
4353 initializer.
4354 * opencl-lang.c (opencl_language_data): Likewise.
4355 * p-lang.c (pascal_language_data): Likewise.
4356 (pascal_language::range_checking_on_by_default): New member
4357 function.
4358 * rust-lang.c (rust_language_data): Remove la_range_check
4359 initializer.
4360 (rust_language::range_checking_on_by_default): New member
4361 function.
4362
4363 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4364
4365 * dwarf2/read.c (dwarf2_physname): Remove special case for
4366 language_go.
4367 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4368 member function.
4369
4370 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4371
4372 * ada-lang.c (ada_language_data): Remove
4373 la_store_sym_names_in_linkage_form_p initializer.
4374 (ada_language::store_sym_names_in_linkage_form_p): New member
4375 function.
4376 * c-lang.c (c_language_data): Remove
4377 la_store_sym_names_in_linkage_form_p initializer.
4378 (c_language::store_sym_names_in_linkage_form_p): New member
4379 function.
4380 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4381 initializer.
4382 (asm_language_data): Likewise.
4383 (asm_language::store_sym_names_in_linkage_form_p): New member
4384 function.
4385 (minimal_language_data): Remove
4386 la_store_sym_names_in_linkage_form_p initializer.
4387 (minimal_language::store_sym_names_in_linkage_form_p): New member
4388 function.
4389 * d-lang.c (d_language_data): Remove
4390 la_store_sym_names_in_linkage_form_p initializer.
4391 * dwarf2/read.c (dwarf2_physname): Update call to
4392 store_sym_names_in_linkage_form_p.
4393 * f-lang.c (f_language_data): Remove
4394 la_store_sym_names_in_linkage_form_p initializer.
4395 * go-lang.c (go_language_data): Remove
4396 la_store_sym_names_in_linkage_form_p initializer.
4397 * language.c (unknown_language_data): Remove
4398 la_store_sym_names_in_linkage_form_p initializer.
4399 (unknown_language::store_sym_names_in_linkage_form_p): New member
4400 function.
4401 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4402 initializer.
4403 (auto_language::store_sym_names_in_linkage_form_p): New member
4404 function.
4405 * language.h (language_data): Remove
4406 la_store_sym_names_in_linkage_form_p member variable.
4407 (language_defn::store_sym_names_in_linkage_form_p): New member
4408 function.
4409 * m2-lang.c (m2_language_data): Remove
4410 la_store_sym_names_in_linkage_form_p initializer.
4411 * objc-lang.c (objc_language_data): Likewise.
4412 * opencl-lang.c (opencl_language_data): Likewise.
4413 * p-lang.c (pascal_language_data): Likewise.
4414 * rust-lang.c (rust_language_data): Likewise.
4415
4416 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4417
4418 * ada-lang.c (ada_language_data): Remove string_lower_bound
4419 initializer.
4420 * c-lang.c (c_language_data): Likewise.
4421 (cplus_language_data): Likewise.
4422 (asm_language_data): Likewise.
4423 (minimal_language_data): Likewise.
4424 * d-lang.c (d_language_data): Likewise.
4425 * f-lang.c (f_language_data): Likewise.
4426 * go-lang.c (go_language_data): Likewise.
4427 * language.c (unknown_language_data): Likewise.
4428 (auto_language_data): Likewise.
4429 * language.h (language_data): Remove string_lower_bound field.
4430 (language_defn::string_lower_bound): New member function.
4431 * m2-lang.c (m2_language_data): Remove string_lower_bound
4432 initializer.
4433 (m2_language::string_lower_bound): New member function.
4434 * objc-lang.c (objc_language_data): Remove string_lower_bound
4435 initializer.
4436 * opencl-lang.c (opencl_language_data): Likewise.
4437 * p-lang.c (pascal_language_data): Likewise.
4438 * rust-lang.c (rust_language_data): Likewise.
4439 * valops.c (value_cstring): Update call to string_lower_bound.
4440 (value_string): Likewise.
4441 * value.c (allocate_repeated_value): Likewise.
4442
4443 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4444
4445 * valops.c (value_repeat): Fix incorrect argument name in comment.
4446
4447 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4448
4449 * ada-lang.c (ada_language_data): Remove c_style_arrays
4450 initializer.
4451 (ada_language::c_style_arrays_p): New member fuction.
4452 * c-lang.c (c_language_data): Remove c_style_arrays
4453 initializer.
4454 (cplus_language_data): Likewise.
4455 (asm_language_data): Likewise.
4456 (minimal_language_data): Likewise.
4457 * d-lang.c (d_language_data): Likewise.
4458 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4459 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4460 (f_language::c_style_arrays_p): New member function.
4461 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4462 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4463 * language.c (unknown_language_data): Remove c_style_arrays
4464 initializer.
4465 (auto_language_data): Likewise.
4466 * language.h (language_data): Remove c_style_arrays field.
4467 (language_defn::c_style_arrays_p): New member function.
4468 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4469 (m2_language::c_style_arrays_p): New member function.
4470 * objc-lang.c (objc_language_data): Remove c_style_arrays
4471 initializer.
4472 * opencl-lang.c (opencl_language_data): Likewise.
4473 * p-lang.c (pascal_language_data): Likewise.
4474 * rust-lang.c (rust_language_data): Likewise.
4475 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4476 and update local variable to a bool.
4477 * valops.c (value_cast): Update call to c_style_arrays_p.
4478 (value_array): Likewise.
4479 * value.c (coerce_array): Likewise.
4480
4481 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4482
4483 * ada-lang.c (ada_language_data): Remove la_language initializer.
4484 * c-lang.c (c_language_data): Likewise.
4485 (cplus_language_data): Likewise.
4486 (asm_language_data): Likewise.
4487 (minimal_language_data): Likewise.
4488 * d-lang.c (d_language_data): Likewise.
4489 * f-lang.c (f_language_data): Likewise.
4490 * go-lang.c (go_language_data): Likewise.
4491 * language.c (unknown_language_data): Likewise.
4492 (auto_language_data): Likewise.
4493 * language.h (language_data): Remove la_language field.
4494 (language_defn::language_defn): Initialise la_language field.
4495 (language_defn::la_language): New member variable.
4496 * m2-lang.c (m2_language_data): Remove la_language field.
4497 * objc-lang.c (objc_language_data): Likewise.
4498 * opencl-lang.c (opencl_language_data): Likewise.
4499 * p-lang.c (pascal_language_data): Likewise.
4500 * rust-lang.c (rust_language_data): Likewise.
4501
4502 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4503
4504 * ada-lang.c (ada_extensions): Delete, moved into
4505 ada_language::filename_extensions.
4506 (ada_language_data): Remove la_filename_extensions initializer.
4507 (ada_language::filename_extensions): New member function.
4508 * c-lang.c (c_extensions): Delete, moved into
4509 c_language::filename_extensions.
4510 (c_language_data): Remove la_filename_extensions initializer.
4511 (c_language::filename_extensions): New member function.
4512 (cplus_extensions): Delete, moved into
4513 cplus_language::filename_extensions.
4514 (cplus_language_data): Remove la_filename_extensions initializer.
4515 (cplus_language::filename_extensions): New member function.
4516 (asm_extensions): Delete, moved into
4517 asm_language::filename_extensions.
4518 (asm_language_data): Remove la_filename_extensions initializer.
4519 (asm_language::filename_extensions): New member function.
4520 (minimal_language_data): Remove la_filename_extensions
4521 initializer.
4522 * d-lang.c (d_extensions): Delete, moved into
4523 d_language::filename_extensions.
4524 (d_language_data): Remove la_filename_extensions initializer.
4525 (d_language::filename_extensions): New member function.
4526 * f-lang.c (f_extensions): Delete, moved into
4527 f_language::filename_extensions.
4528 (f_language_data): Remove la_filename_extensions initializer.
4529 (f_language::filename_extensions): New member function.
4530 * go-lang.c (go_language_data): Remove la_filename_extensions
4531 initializer.
4532 * language.c (add_set_language_command): Update now that
4533 filename_extensions returns a vector.
4534 (unknown_language_data): Remove la_filename_extensions
4535 initializer.
4536 (auto_language_data): Likewise.
4537 * language.h (language_data): Remove la_filename_extensions field.
4538 (language_defn::filename_extensions): New member function.
4539 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4540 initializer.
4541 * objc-lang.c (objc_extensions): Delete, moved into
4542 objc_language::filename_extensions.
4543 (objc_language_data): Remove la_filename_extensions initializer.
4544 (objc_language::filename_extensions): New member function.
4545 * opencl-lang.c (opencl_language_data): Remove
4546 la_filename_extensions initializer.
4547 * p-lang.c (pascal_extensions): Delete, moved into
4548 pascal_language::filename_extensions.
4549 (pascal_language_data): Remove la_filename_extensions initializer.
4550 (pascal_language::filename_extensions): New member function.
4551 * rust-lang.c (rust_extensions): Delete, moved into
4552 rust_language::filename_extensions.
4553 (rust_language_data): Remove la_filename_extensions initializer.
4554 (rust_language::filename_extensions): New member function.
4555 * symfile.c (add_filename_language): Add new assert.
4556
4557 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4558
4559 * ada-lang.c (ada_language_data): Remove la_name and
4560 la_natural_name initializers.
4561 (ada_language::name): New member function.
4562 (ada_language::natural_name): New member function.
4563 * c-lang.c (c_language_data): Remove la_name and
4564 la_natural_name initializers.
4565 (c_language::name): New member function.
4566 (c_language::natural_name): New member function.
4567 (cplus_language_data): Remove la_name and
4568 la_natural_name initializers.
4569 (cplus_language::name): New member function.
4570 (cplus_language::natural_name): New member function.
4571 (asm_language_data): Remove la_name and
4572 la_natural_name initializers.
4573 (asm_language::name): New member function.
4574 (asm_language::natural_name): New member function.
4575 (minimal_language_data): Remove la_name and
4576 la_natural_name initializers.
4577 (minimal_language::name): New member function.
4578 (minimal_language::natural_name): New member function.
4579 * compile/compile.c (compile_to_object): Update call to
4580 lanugage_defn::name.
4581 * d-lang.c (d_language_data): Remove la_name and
4582 la_natural_name initializers.
4583 (d_language::name): New member function.
4584 (d_language::natural_name): New member function.
4585 * expprint.c (print_subexp_standard): Update call to
4586 language_defn::name.
4587 (dump_raw_expression): Likewise
4588 (dump_prefix_expression): Likewise.
4589 * f-lang.c (f_language_data): Remove la_name and
4590 la_natural_name initializers.
4591 (f_language::name): New member function.
4592 (f_language::natural_name): New member function.
4593 * go-lang.c (go_language_data): Remove la_name and
4594 la_natural_name initializers.
4595 (go_language::name): New member function.
4596 (go_language::natural_name): New member function.
4597 * language.c (show_language_command): Update call to
4598 language_defn::name.
4599 (set_language_command): Likewise.
4600 (language_enum): Likewise.
4601 (language_str): Likewise.
4602 (add_set_language_command): Likewise, use
4603 language_defn::natural_name in the doc string.
4604 (unknown_language_data): Remove la_name and
4605 la_natural_name initializers.
4606 (unknown_language::name): New member function.
4607 (unknown_language::natural_name): New member function.
4608 (auto_language_data): Remove la_name and
4609 la_natural_name initializers.
4610 (auto_language::name): New member function.
4611 (auto_language::natural_name): New member function.
4612 (language_lookup_primitive_type_as_symbol): Update call to
4613 language_defn::name.
4614 * language.h (language_data): Remove la_name and la_natural_name
4615 member variables.
4616 (language_defn::name): New member function.
4617 (language_defn::natural_name): New member function.
4618 * m2-lang.c (m2_language_data): Remove la_name and
4619 la_natural_name initializers.
4620 (m2_language::name): New member function.
4621 (m2_language::natural_name): New member function.
4622 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4623 language_defn::natural_name.
4624 * objc-lang.c (objc_language_data): Remove la_name and
4625 la_natural_name initializers.
4626 (objc_language::name): New member function.
4627 (objc_language::natural_name): New member function.
4628 * opencl-lang.c (opencl_language_data): Remove la_name and
4629 la_natural_name initializers.
4630 (opencl_language::name): New member function.
4631 (opencl_language::natural_name): New member function.
4632 * p-lang.c (pascal_language_data): Remove la_name and
4633 la_natural_name initializers.
4634 (pascal_language::name): New member function.
4635 (pascal_language::natural_name): New member function.
4636 * rust-lang.c (rust_language_data): Remove la_name and
4637 la_natural_name initializers.
4638 (rust_language::name): New member function.
4639 (rust_language::natural_name): New member function.
4640 * symtab.c (lookup_language_this): Update call to
4641 language_defn::name.
4642
4643 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4644
4645 * ada-lang.c (ada_language_data): Remove la_name_of_this
4646 initializer.
4647 * ax-gdb.c (gen_expr): Update call to name_of_this.
4648 * c-exp.y (classify_name): Likewise.
4649 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4650 (cplus_language_data): Likewise.
4651 (cplus_language::name_of_this): New member function.
4652 (asm_language_data): Remove la_name_of_this initializer.
4653 (minimal_language_data): Likewise.
4654 * d-lang.c (d_language_data): Likewise.
4655 (d_language::name_of_this): New member function.
4656 * expprint.c (print_subexp_standard): Update call to name_of_this.
4657 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4658 * go-lang.c (go_language_data): Likewise.
4659 * language.c (unknown_language_data): Likewise.
4660 (unknown_language::name_of_this): New member function.
4661 (auto_language_data): Remove la_name_of_this initializer.
4662 (auto_language::name_of_this): New member function.
4663 * language.h (language_data): Delete la_name_of_this member
4664 variable.
4665 (language_defn::name_of_this): New member function.
4666 * m2-lang.c (m2_language_data): Remove la_name_of_this
4667 initializer.
4668 * objc-lang.c (objc_language_data): Likewise.
4669 (objc_language::name_of_this): New member function.
4670 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4671 initializer.
4672 * p-lang.c (pascal_language_data): Likewise.
4673 (pascal_language::name_of_this): New member function.
4674 * rust-lang.c (rust_language_data): Remove la_name_of_this
4675 initializer.
4676 * symtab.c (lookup_language_this): Update call to name_of_this.
4677 (lookup_symbol_aux): Likewise.
4678 * valops.c (value_of_this): Likewise.
4679
4680 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4681
4682 * ada-lang.c (ada_language_data): Remove
4683 la_struct_too_deep_ellipsis initializer.
4684 (ada_language::struct_too_deep_ellipsis): New member function.
4685 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4686 initializer.
4687 (cplus_language_data): Likewise.
4688 (asm_language_data): Likewise.
4689 (minimal_language_data): Likewise.
4690 * cp-valprint.c (cp_print_value): Update call to
4691 struct_too_deep_ellipsis.
4692 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4693 initializer.
4694 * f-lang.c (f_language_data): Likewise.
4695 (f_language::struct_too_deep_ellipsis): New member function.
4696 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4697 initializer.
4698 * language.c (unknown_language_data): Likewise.
4699 (auto_language_data): Likewise.
4700 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4701 member variable.
4702 (language_defn::struct_too_deep_ellipsis): New member function.
4703 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4704 initializer.Q
4705 * objc-lang.c (objc_language_data): Likewise.
4706 * opencl-lang.c (opencl_language_data): Likewise.
4707 * p-lang.c (pascal_language_data): Likewise.
4708 * rust-lang.c (rust_language_data): Likewise.
4709 * valprint.c (val_print_check_max_depth): Update call to
4710 struct_too_deep_ellipsis.
4711
4712 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4713
4714 * MAINTAINERS (Write After Approval): Add myself.
4715
4716 2020-09-15 Tom Tromey <tom@tromey.com>
4717
4718 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4719 Remove.
4720
4721 2020-09-15 Tom Tromey <tom@tromey.com>
4722
4723 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4724 and TYPE_CODE_METHODPTR cases.
4725 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4726 (c_value_print_inner): Update.
4727 * valprint.c (generic_value_print_memberptr): New function, from
4728 c_value_print_memberptr.
4729 (generic_value_print): Use it. Call cplus_print_method_ptr.
4730
4731 2020-09-15 Tom Tromey <tromey@adacore.com>
4732
4733 * python/python-internal.h (PyInt_FromLong): Remove define.
4734 * python/py-value.c (convert_value_from_python): Use
4735 gdb_py_object_from_longest.
4736 * python/py-type.c (typy_get_code): Use
4737 gdb_py_object_from_longest.
4738 * python/py-symtab.c (salpy_get_line): Use
4739 gdb_py_object_from_longest.
4740 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4741 gdb_py_object_from_longest.
4742 * python/py-record.c (recpy_gap_reason_code): Use
4743 gdb_py_object_from_longest.
4744 * python/py-record-btrace.c (recpy_bt_insn_size)
4745 (recpy_bt_func_level, btpy_list_count): Use
4746 gdb_py_object_from_longest.
4747 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4748 gdb_py_object_from_longest. Fix error handling.
4749 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4750 gdb_py_object_from_longest.
4751 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4752 gdb_py_object_from_longest.
4753 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4754 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4755 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4756
4757 2020-09-15 Tom Tromey <tromey@adacore.com>
4758
4759 * python/python.c (gdbpy_parameter_value): Use
4760 gdb_py_object_from_ulongest.
4761
4762 2020-09-15 Tom Tromey <tromey@adacore.com>
4763
4764 * python/py-infevents.c (create_register_changed_event_object):
4765 Use gdb_py_object_from_longest.
4766 * python/py-exitedevent.c (create_exited_event_object): Use
4767 gdb_py_object_from_longest.
4768
4769 2020-09-15 Tom Tromey <tromey@adacore.com>
4770
4771 * python/python.c (gdbpy_parameter_value): Use
4772 gdb_py_object_from_longest.
4773 * python/py-type.c (convert_field, typy_range): Use
4774 gdb_py_object_from_longest.
4775 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4776 gdb_py_object_from_longest.
4777 * python/py-lazy-string.c (stpy_get_length): Use
4778 gdb_py_object_from_longest.
4779 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4780 gdb_py_object_from_longest.
4781 * python/py-infevents.c (create_memory_changed_event_object): Use
4782 gdb_py_object_from_longest.
4783 * python/py-inferior.c (infpy_get_num): Use
4784 gdb_py_object_from_longest.
4785 (infpy_get_pid): Likewise.
4786
4787 2020-09-15 Tom Tromey <tromey@adacore.com>
4788
4789 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4790 defines.
4791 * python/py-value.c (valpy_long): Use
4792 gdb_py_object_from_ulongest.
4793 * python/py-symtab.c (salpy_get_pc): Use
4794 gdb_py_object_from_ulongest.
4795 (salpy_get_last): Likewise.
4796 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4797 gdb_py_object_from_ulongest.
4798 * python/py-lazy-string.c (stpy_get_address): Use
4799 gdb_py_object_from_ulongest.
4800 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4801 * python/py-arch.c (archpy_disassemble): Use
4802 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4803 error handling.
4804
4805 2020-09-15 Tom Tromey <tromey@adacore.com>
4806
4807 * python/python-internal.h (gdb_py_long_from_longest): Remove
4808 defines.
4809 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4810 * python/py-type.c (convert_field, typy_get_sizeof): Use
4811 gdb_py_object_from_longest.
4812 * python/py-record-btrace.c (btpy_list_index): Use
4813 gdb_py_object_from_longest.
4814
4815 2020-09-15 Tom Tromey <tromey@adacore.com>
4816
4817 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4818 * python/py-record.c (recpy_element_number): Use
4819 gdb_py_object_from_longest.
4820 (recpy_gap_number): Likewise.
4821
4822 2020-09-15 Tom Tromey <tromey@adacore.com>
4823
4824 * top.c (ui::ui): Update.
4825 (highest_ui_num): Remove.
4826 * top.h (struct ui) <num>: Remove.
4827
4828 2020-09-15 Tom Tromey <tromey@adacore.com>
4829
4830 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4831 * ui-style.c (ansi_regex_text): Now array.
4832 * rust-exp.y (number_regex_text): Now array.
4833 * linespec.c (linespec_quote_characters): Now array.
4834 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4835 Now arrays.
4836
4837 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4838
4839 * debuginfod-support.c (debuginfod_client_deleter): New.
4840 (debuginfod_client_up): New.
4841 (debuginfod_init): Return debuginfod_client_up.
4842 (debuginfod_source_query): Adjust.
4843 (debuginfod_debuginfo_query): Adjust.
4844
4845 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4846
4847 * debuginfod-support.c (debuginfod_source_query): Use
4848 make_unique_xstrdup.
4849
4850 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4851
4852 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4853 with `type::instance_flags`.
4854
4855 2020-09-14 Michael Mullin <masmullin@gmail.com>
4856
4857 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4858 Remove baton parameter.
4859
4860 2020-09-14 Pedro Alves <pedro@palves.net>
4861
4862 * Makefile.in (SELFTESTS_SRCS): Add
4863 unittests/enum-flags-selftests.c.
4864 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4865 btrace_function_flags instead of enum btrace_function_flag.
4866 * compile/compile-c-types.c (convert_qualified): Use
4867 enum_flags::raw.
4868 * compile/compile-cplus-symbols.c (convert_one_symbol)
4869 (convert_symbol_bmsym):
4870 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4871 (compile_cplus_convert_struct_or_union_methods)
4872 (compile_cplus_instance::convert_qualified_base):
4873 * go-exp.y (parse_string_or_char): Add cast to int.
4874 * unittests/enum-flags-selftests.c: New file.
4875 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4876 type to btrace_thread_flags from btrace_thread_flag.
4877 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4878 local's type to btrace_thread_flags from btrace_thread_flag. Add
4879 cast in DEBUG call.
4880
4881 2020-09-14 Pedro Alves <pedro@palves.net>
4882
4883 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4884 * gdbtypes.c (address_space_name_to_int): Rename to ...
4885 (address_space_name_to_type_instance_flags): ... this.
4886 (address_space_int_to_name): Rename to ...
4887 (address_space_type_instance_flags_to_name): ... this.
4888 * gdbtypes.h (address_space_name_to_int): Rename to ...
4889 (address_space_name_to_type_instance_flags): ... this.
4890 (address_space_int_to_name): Rename to ...
4891 (address_space_type_instance_flags_to_name): ... this.
4892 * type-stack.c (type_stack::insert): Adjust to rename.
4893 * type-stack.h (type_stack::insert): Likewise.
4894
4895 2020-09-14 Pedro Alves <pedro@palves.net>
4896 Andrew Burgess <andrew.burgess@embecosm.com>
4897
4898 * avr-tdep.c (avr_address_class_type_flags): Return
4899 type_instance_flags.
4900 (avr_address_class_type_flags_to_name): Take a
4901 type_instance_flags.
4902 (avr_address_class_name_to_type_flags): Return bool and take a
4903 type_instance_flags.
4904 * d-lang.c (build_d_types): Use type::set_instance_flags.
4905 * ft32-tdep.c (ft32_address_class_type_flags): Return
4906 type_instance_flags.
4907 (ft32_address_class_type_flags_to_name): Take a
4908 type_instance_flags.
4909 (ft32_address_class_name_to_type_flags): Return bool and take a
4910 type_instance_flags.
4911 (ft32_gdbarch_init): Use type::set_instance_flags.
4912 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4913 * gdbarch.h, gdbarch.c: Regenerate.
4914 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4915 (address_class_name_to_type_flags): Use type_instance_flags and
4916 bool.
4917 * gdbtypes.c (address_space_name_to_int)
4918 (address_space_int_to_name, make_qualified_type): Use
4919 type_instance_flags.
4920 (make_qualified_type): Use type_instance_flags and
4921 type::set_instance_flags.
4922 (make_type_with_address_space, make_cv_type, make_vector_type)
4923 (check_typedef): Use type_instance_flags.
4924 (recursive_dump_type): Cast type_instance_flags to unsigned for
4925 printing.
4926 (copy_type_recursive): Use type::set_instance_flags.
4927 (gdbtypes_post_init): Use type::set_instance_flags.
4928 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4929 <m_instance_flags>: ... this.
4930 <instance_flags, set_instance_flags>: New methods.
4931 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4932 (SET_TYPE_INSTANCE_FLAGS): New.
4933 (address_space_name_to_int, address_space_int_to_name)
4934 (make_type_with_address_space): Pass flags using
4935 type_instance_flags instead of int.
4936 * stabsread.c (cleanup_undefined_types_noname): Use
4937 type::set_instance_flags.
4938 * s390-tdep.c (s390_address_class_type_flags): Return
4939 type_instance_flags.
4940 (s390_address_class_type_flags_to_name): Take a
4941 type_instance_flags.
4942 (s390_address_class_name_to_type_flags): Return bool and take a
4943 type_instance_flags.
4944 * type-stack.c (type_stack::follow_types): Use
4945 type_instance_flags.
4946 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4947
4948 2020-09-14 Tom Tromey <tromey@adacore.com>
4949
4950 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4951 * x86-tdep.c (x86_is_thunk_register_name)
4952 (x86_in_indirect_branch_thunk): Update.
4953 * sparc64-tdep.c (sparc64_fpu_register_names)
4954 (sparc64_cp0_register_names, sparc64_register_names)
4955 (sparc64_pseudo_register_names): Now const.
4956 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4957 cp0_registers_num>: Now const.
4958 * sparc-tdep.c (sparc_core_register_names)
4959 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4960 (sparc32_pseudo_register_names): Now const.
4961 (validate_tdesc_registers): Update.
4962 * rust-lang.c (rust_extensions): Now const.
4963 * p-lang.c (p_extensions): Now const.
4964 * objc-lang.c (objc_extensions): Now const.
4965 * nto-tdep.c (nto_thread_state_str): Now const.
4966 * moxie-tdep.c (moxie_register_names): Now const.
4967 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4968 Now const.
4969 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4970 (mips_linux_reg_names): Now const.
4971 (mips_gdbarch_init): Update.
4972 * microblaze-tdep.c (microblaze_register_names): Now const.
4973 * m68k-tdep.c (m68k_register_names): Now const.
4974 * m32r-tdep.c (m32r_register_names): Now const.
4975 * ia64-tdep.c (ia64_register_names): Now const.
4976 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4977 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4978 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4979 ymm_avx512_register_names, pkeys_register_names>: Now const.
4980 * i386-tdep.c (i386_register_names, i386_zmm_names)
4981 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4982 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4983 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4984 * f-lang.c (f_extensions): Now const.
4985 * d-lang.c (d_extensions): Now const.
4986 * csky-tdep.c (csky_register_names): Now const.
4987 * charset.c (default_charset_names, charset_enum): Now const.
4988 (_initialize_charset): Update.
4989 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4990 const.
4991 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4992 (bsd_uthread_solib_loaded): Update.
4993 (bsd_uthread_state): Now const.
4994 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4995 (amd64_ymm_avx512_names, amd64_ymmh_names)
4996 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4997 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4998 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4999 (amd64_dword_names): Now const.
5000 * agent.c (can_use_agent_enum): Now const.
5001 * ada-tasks.c (task_states, long_task_states): Now const.
5002 * ada-lang.c (known_runtime_file_name_patterns)
5003 (known_auxiliary_function_name_patterns, attribute_names)
5004 (standard_exc, ada_extensions): Now const.
5005
5006 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5007
5008 * bcache.h (struct bcache) <bcache>: Remove constructor.
5009 <m_hash_function, m_compare_function>: Remove.
5010 <~bcache>: Make virtual.
5011 <compare>: Remove static method, introduce virtual method.
5012 <default_hash>: Remove.
5013 <hash>: New virtual method.
5014 * bcache.c (bcache::expand_hash_table): Update.
5015 (bcache::insert): Update.
5016 (bcache::hash): New.
5017 (bcache::compare): Update comment and parameter names.
5018 * gdbtypes.c (types_deeply_equal): Update.
5019 * psymtab.h (struct psymbol_bcache): New struct.
5020 (class psymtab_storage) <psymtab_storage>: Make default.
5021 <psymbol_cache>: Change type to psymbol_bcache.
5022 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5023 (psymbol_hash): Change to...
5024 (psymbol_bcache::hash): ... this.
5025 (psymbol_compare): Change to...
5026 (psymbol_bcache::compare): ... this.
5027
5028 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5029
5030 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5031 checking for initial lwp.
5032
5033 2020-09-14 Tom Tromey <tromey@adacore.com>
5034
5035 * m68k-tdep.c (m68k_extract_return_value): Use
5036 pointer_result_regnum.
5037 (m68k_store_return_value): Likewise.
5038 (m68k_reg_struct_return_p): Handle vectors and arrays.
5039 (m68k_return_value): Handle arrays.
5040 (m68k_svr4_return_value): Fix single-element aggregate handling.
5041 Handle long double. Adjust for embedded ABI.
5042 (m68k_svr4_init_abi): Set pointer_result_regnum.
5043 (m68k_embedded_init_abi): New function.
5044 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5045 (m68k_osabi_sniffer): New function.
5046 (_initialize_m68k_tdep): Register osabi sniffer.
5047 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5048 member.
5049
5050 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5051
5052 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5053 with gdb::unique_xmalloc_ptr<char>.
5054
5055 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5056
5057 * xml-support.h (xml_fetch_another): Change type to be a
5058 function_view.
5059 (xml_process_xincludes): Remove baton parameter.
5060 (xml_fetch_content_from_file): Change baton parameter to
5061 dirname.
5062 * xml-support.c (struct xinclude_parsing_data)
5063 <xinclude_parsing_data>: Remove baton parameter.
5064 <fetcher_baton>: Remove.
5065 (xinclude_start_include): Adjust.
5066 (xml_process_xincludes): Adjust.
5067 (xml_fetch_content_from_file): Replace baton parameter with
5068 dirname.
5069 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5070 (xml_init_syscalls_info): Use a lambda.
5071 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5072 (file_read_description_xml): Use a lambda.
5073 (fetch_available_features_from_target): Change baton parameter
5074 to target_ops.
5075 (target_read_description_xml): Use a lambda.
5076 (target_fetch_description_xml): Use a lambda.
5077 (string_read_description_xml): Update.
5078
5079 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5080
5081 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5082 uses with type::endianity_is_not_default.
5083
5084 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5085
5086 * gdbtypes.h (struct type) <endianity_is_not_default,
5087 set_endianity_is_not_default>: New methods.
5088 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5089 type::endianity_is_not_default, change all write call sites to
5090 use type::set_endianity_is_not_default.
5091
5092 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5093
5094 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5095 uses with type::is_fixed_instance.
5096
5097 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5098
5099 * gdbtypes.h (struct type) <is_fixed_instance,
5100 set_is_fixed_instance>: New methods.
5101 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5102 write call sites to use type::set_is_fixed_instance.
5103
5104 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5105
5106 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5107 uses with type::is_gnu_ifunc.
5108
5109 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5110
5111 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5112 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5113 use type::set_is_gnu_ifunc.
5114
5115 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5116
5117 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5118 uses with type::stub_is_supported.
5119
5120 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5121
5122 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5123 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5124 use type::set_stub_is_supported.
5125
5126 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5127
5128 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5129 uses with type::is_vector.
5130
5131 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5132
5133 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5134 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5135 use type::set_is_vector.
5136
5137 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5138
5139 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5140 uses with type::has_varargs.
5141
5142 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5143
5144 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5145 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5146 use type::set_has_varargs.
5147
5148 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5149
5150 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5151 uses with type::is_prototyped.
5152
5153 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5154
5155 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5156 New methods.
5157 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5158 call sites to use type::set_is_prototyped.
5159
5160 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5161
5162 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5163 uses with type::target_is_stub.
5164
5165 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5166
5167 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5168 New methods.
5169 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5170 sites to use type::set_target_is_stub.
5171
5172 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5173
5174 * gdbtypes.h (TYPE_STUB): Remove, replace all
5175 uses with type::is_stub.
5176
5177 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5178
5179 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5180 (TYPE_STUB): Use type::is_stub, change all write call sites to
5181 use type::set_is_stub.
5182
5183 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5184
5185 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5186 type::has_no_signedness.
5187
5188 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5189
5190 * gdbtypes.h (struct type) <has_no_signedness,
5191 set_has_no_signedness>: New methods.
5192 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5193 call sites to use type::set_has_no_signedness.
5194
5195 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5196
5197 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5198 type::is_unsigned.
5199
5200 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5201
5202 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5203 methods.
5204 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5205 sites to use type::set_is_unsigned.
5206
5207 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5208 Adam Renquinha <arenquinha@cimeq.qc.ca>
5209
5210 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5211 pointer and stack frame offset when unwinding.
5212
5213 2020-09-13 Pedro Alves <pedro@palves.net>
5214
5215 * NEWS: Document "-break-insert --qualified".
5216 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5217
5218 2020-09-13 Pedro Alves <pedro@palves.net>
5219
5220 * linespec.c (classify_mtype, compare_msyms): Delete.
5221 (search_minsyms_for_name): Remove classification logic. Instead
5222 filter out trampoline symbols if we also found an external
5223 function of the same name.
5224
5225 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5226
5227 * NEWS: Create a new section for the next release branch.
5228 Rename the section of the current branch, now that it has
5229 been cut.
5230
5231 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5232
5233 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5234 * version.in: Bump version to 11.0.50.DATE-git.
5235
5236 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5237
5238 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5239
5240 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5241 Felix Willgerodt <Felix.Willgerodt@intel.com>
5242
5243 * gdbarch.sh: Added bfloat16 type.
5244 * gdbarch.c: Regenerated.
5245 * gdbarch.h: Regenerated.
5246 * gdbtypes.c (floatformats_bfloat16): New struct.
5247 (gdbtypes_post_init): Add builtin_bfloat16.
5248 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5249 (floatformats_bfloat16): New struct.
5250 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5251 (i386_ymm_type): Add field "v16_bfloat16"
5252 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5253 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5254 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5255 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5256 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5257 * features/i386/64bit-avx512.c: Regenerated.
5258 * features/i386/64bit-sse.xml: Add bfloat16 type.
5259 * features/i386/64bit-sse.c: Regenerated.
5260
5261 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5262
5263 * i386-tdep.c (i386_zmm_type): Fix field names.
5264 (i386_ymm_type): Fix field names.
5265
5266 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5267
5268 * breakpoint.c: Fix typo in the help message of the
5269 "set breakpoint condition-evaluation" command.
5270
5271 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5272
5273 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5274 * (nbsd_nat_target::pid_to_exec_file)
5275 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5276 (nbsd_nat_target::post_startup_inferior)
5277 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5278 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5279 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5280 * (nbsd_thread_lister): Remove.
5281
5282 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5283
5284 * fork-inferior.c (startup_inferior): Avoid double free.
5285
5286 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5287
5288 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5289 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5290
5291 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5292
5293 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5294 * netbsd-nat.c: Include <sys/ptrace.h>.
5295 * (netbsd_nat::enable_proc_events): Add.
5296
5297 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5298
5299 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5300 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5301 (netbsd_nat::for_each_thread): Add.
5302 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5303 "gdbsupport/common-debug.h".
5304 * (netbsd_nat::netbsd_thread_lister)
5305 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5306 (netbsd_nat::for_each_thread): Add.
5307
5308 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5309
5310 * netbsd-nat.h: Include <unistd.h>.
5311 * (netbsd_nat::pid_to_exec_file): Add.
5312 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5313 * (netbsd_nat::pid_to_exec_file) Add.
5314
5315 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5316
5317 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5318
5319 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5320
5321 * netbsd-nat.h: New file.
5322 * netbsd-nat.c: Likewise.
5323
5324 2020-09-09 Tom Tromey <tromey@adacore.com>
5325
5326 * ada-lang.c (remove_extra_symbols): Do not increment when
5327 removing an element
5328
5329 2020-09-08 Tom Tromey <tromey@adacore.com>
5330
5331 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5332
5333 2020-09-08 Tom Tromey <tromey@adacore.com>
5334
5335 PR win32/25302:
5336 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5337 (gdb_bfd_init_data): New function.
5338 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5339
5340 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5341
5342 * infrun.c (fetch_inferior_event): Use
5343 `switch_to_target_no_thread` to switch the target.
5344
5345 2020-09-06 Tom Tromey <tom@tromey.com>
5346
5347 * symfile.h (dwarf2_free_objfile): Don't declare.
5348
5349 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5350
5351 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5352 to match 16 byte real/complex type generated by Flang compiler.
5353
5354 2020-09-03 Tom de Vries <tdevries@suse.de>
5355
5356 PR breakpoint/26546
5357 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5358 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5359
5360 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5361
5362 * maint.c (index_digits): New function.
5363 (struct maint_print_section_data): Remove.
5364 (print_bfd_section_info): Remove print_data parameter, add arg
5365 and index_digits.
5366 (print_objfile_section_info): Likewise.
5367 (print_bfd_section_info_maybe_relocated): Likewise (plus
5368 objfile).
5369 (maintenance_info_sections): Adjust calls.
5370
5371 2020-09-02 Tom Tromey <tromey@adacore.com>
5372
5373 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5374 for null pointers.
5375 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5376
5377 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5378
5379 * bcache.h (struct bcache) <insert>: Change type of `added` to
5380 pointer to bool.
5381 * bcache.c (bcache::insert): Likewise.
5382 * gdbtypes.c (check_types_worklist): Adjust.
5383 * psymtab.c (add_psymbol_to_bcache): Adjust.
5384
5385 2020-08-31 Kevin Buettner <kevinb@redhat.com>
5386
5387 * corelow.c (unordered_set): Include.
5388 (class core_target): Add field 'm_core_unavailable_mappings'.
5389 (core_target::build_file_mappings): Print only one warning
5390 per inaccessible file. Add unavailable/broken mappings
5391 to m_core_unavailable_mappings.
5392 (core_target::xfer_partial): Call...
5393 (core_target::xfer_memory_via_mappings): New method.
5394
5395 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5396
5397 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5398 type to bool.
5399
5400 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5401
5402 * dwarf2/read.c (struct field_info): Fix indentation.
5403
5404 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5405
5406 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5407 ordering in comment.
5408 * frame.c (frame_id_eq): Fix indentation.
5409
5410 2020-08-31 Scott Linder <scott@scottlinder.com>
5411 Simon Marchi <simon.marchi@efficios.com>
5412
5413 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5414 inline frame ids in outer frame.
5415
5416 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5417
5418 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5419 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5420 (outer_frame_id): Use FID_STACK_OUTER instead of
5421 FID_STACK_INVALID.
5422 (frame_id_p): Don't check for outer_frame_id.
5423
5424 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5425
5426 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5427 regnum/frame in value. Call allocate_value_lazy.
5428 * frame.c (frame_unwind_register_value): Use
5429 val_print_not_saved.
5430
5431 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
5432
5433 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5434
5435 2020-08-29 Pedro Alves <pedro@palves.net>
5436
5437 * progspace.c (print_program_space): Use all_inferiors. Switch to
5438 the inferior before calling target_pid_to_str.
5439
5440 2020-08-28 Tom Tromey <tom@tromey.com>
5441
5442 * xcoffread.c (xcoff_end_psymtab): Update comment.
5443 * dbxread.c (dbx_end_psymtab): Update comment.
5444
5445 2020-08-28 Tom de Vries <tdevries@suse.de>
5446
5447 PR breakpoint/26544
5448 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5449 event_location.
5450 (create_breakpoint): Same.
5451 (base_breakpoint_decode_location): Same.
5452 (bkpt_create_sals_from_location): Same.
5453 (bkpt_decode_location): Same.
5454 (bkpt_probe_create_sals_from_location): Same.
5455 (bkpt_probe_decode_location): Same.
5456 (tracepoint_create_sals_from_location): Same.
5457 (tracepoint_decode_location): Same.
5458 (tracepoint_probe_decode_location): Same.
5459 (strace_marker_create_sals_from_location): Same.
5460 (strace_marker_decode_location): Same.
5461 (create_sals_from_location_default): Same.
5462 (decode_location_default): Same.
5463 * breakpoint.h (struct breakpoint_ops): Same.
5464 (create_breakpoint): Same.
5465 * linespec.h (decode_line_full): Same.
5466 * linespec.c (decode_line_full): Same. Throw error if
5467 result.size () == 0.
5468
5469 2020-08-27 Pedro Alves <pedro@palves.net>
5470
5471 PR gdb/26524
5472 * breakpoint.c (until_break_fsm) <location_breakpoint,
5473 caller_breakpoint>: Delete fields.
5474 <breakpoints>: New field.
5475 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5476 two individual breakpoints.
5477 (until_break_fsm::should_stop): Loop over breakpoints in the
5478 breakpoint vector.
5479 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5480 vector.
5481 (until_break_command): Handle location expanding into multiple
5482 sals.
5483
5484 2020-08-27 Pedro Alves <pedro@palves.net>
5485
5486 PR gdb/26523
5487 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5488 bp_until breakpoints user-specified locations. Update intro
5489 comment.
5490
5491 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5492
5493 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5494 gdb_bfd_sections): New.
5495 * maint.c (print_bfd_section_info): Change param type to
5496 maint_print_section_data.
5497 (print_objfile_section_info): Likewise.
5498 (print_bfd_section_info_maybe_relocated): Likewise.
5499 (maintenance_info_sections): Use gdb_bfd_sections.
5500
5501 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5502
5503 * MAINTAINERS: Add ARC target and maintainer.
5504
5505 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5506
5507 * configure.tgt: ARC support for GNU/Linux.
5508 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5509 * arc-linux-tdep.c: New file.
5510 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5511 * arc-tdep.c (arc_write_pc): Use it.
5512
5513 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5514
5515 * arc-tdep.c (arc_check_for_hardware_loop): New.
5516 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5517
5518 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5519
5520 * arc-tdep.h: Include "gdbarch.h".
5521
5522 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
5523
5524 * arch/arc.h
5525 (arc_gdbarch_features): New class to stir the selection of target XML.
5526 (arc_create_target_description): Use FEATURES to choose XML target.
5527 (arc_lookup_target_description): Use arc_create_target_description
5528 to create _new_ target descriptions or return the already created
5529 ones if the FEATURES is the same.
5530 * arch/arc.c: Implementation of prototypes described above.
5531 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5532 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5533 * arc-tdep.c (*_feature_name): Make feature names consistent.
5534 (arc_register_feature): A new struct to hold information about
5535 registers of a particular target/feature.
5536 (arc_check_tdesc_feature): Check if XML provides registers in
5537 compliance with ARC_REGISTER_FEATURE structs.
5538 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5539 (determine_*_reg_feature_set): Which feature name to look for.
5540 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5541 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5542 to expected ISA enums to be used in arc_gdbarch_features structs.
5543 * features/Makefile (FEATURE_XMLFILES): Add new files.
5544 * gdb/features/arc/v1-aux.c: New file.
5545 * gdb/features/arc/v1-aux.xml: Likewise.
5546 * gdb/features/arc/v1-core.c: Likewise.
5547 * gdb/features/arc/v1-core.xml: Likewise.
5548 * gdb/features/arc/v2-aux.c: Likewise.
5549 * gdb/features/arc/v2-aux.xml: Likewise.
5550 * gdb/features/arc/v2-core.c: Likewise.
5551 * gdb/features/arc/v2-core.xml: Likewise.
5552 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5553
5554 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5555 Andrew Burgess <andrew.burgess@embecosm.com>
5556
5557 PR m2/26372
5558 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
5559 an assert. Remove single element array indexing pattern as the
5560 MULTI_SUBSCRIPT support will handle this case too.
5561
5562 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5563
5564 * value.h (valprint_check_validity): Move declaration from
5565 here...
5566 * valprint.h (valprint_check_validity): ... to here.
5567
5568 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5569
5570 * debug.h: New file.
5571 * debug.c (debug_prefixed_vprintf): New function.
5572 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5573 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5574
5575 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
5576
5577 * infrun.h (infrun_debug_printf_1): New function declaration.
5578 (infrun_debug_printf): New macro.
5579 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5580 throughout.
5581 (infrun_debug_printf): New function.
5582 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5583 (handle_jit_event): Likewise.
5584
5585 2020-08-21 Mark Wielaard <mark@klomp.org>
5586
5587 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5588
5589 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
5590
5591 * frame.c (enum class frame_id_status): New.
5592 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5593 (fprintf_frame): Update.
5594 (compute_frame_id): Set frame id status to "computing" on entry.
5595 Set it back to "not_computed" on failure and to "computed" on
5596 success.
5597 (get_frame_id): Assert the frame id is not being computed.
5598 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5599 (create_new_frame): Likewise.
5600 (frame_cleanup_after_sniffer): Update assert.
5601
5602 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5603
5604 * regcache.c (pid_ptid_regcache_map): New type.
5605 (target_ptid_regcache_map): Remove.
5606 (target_pid_ptid_regcache_map): New type.
5607 (regcaches): Change type to target_pid_ptid_regcache_map.
5608 (get_thread_arch_aspace_regcache): Update.
5609 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5610 case.
5611 (regcaches_size): Update.
5612 (regcache_count): Update.
5613 (registers_changed_ptid_target_pid_test): New.
5614 (_initialize_regcache): Register new test.
5615
5616 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5617
5618 * regcache.c (regcache_count): New.
5619 (struct regcache_test_data): New.
5620 (regcache_test_data_up): New.
5621 (populate_regcaches_for_test): New.
5622 (regcaches_test): Remove.
5623 (get_thread_arch_aspace_regcache_test): New.
5624 (registers_changed_ptid_all_test): New.
5625 (registers_changed_ptid_target_test): New.
5626 (registers_changed_ptid_target_ptid_test): New.
5627 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5628 (_initialize_regcache): Register new tests.
5629
5630 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5631
5632 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5633 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5634 gdbarch and aspace parameter. Use current inferior's aspace.
5635 Validate regcache's arch value.
5636 (regcaches_test): Update.
5637
5638 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5639
5640 * regcache.c (regcaches_test): Call registers_changed.
5641
5642 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5643
5644 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5645
5646 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5647
5648 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5649 to find the end of prologue for flang compiled binaries.
5650 * arm-tdep.c (arm_skip_prologue): Likewise.
5651 * i386-tdep.c (i386_skip_prologue): Likewise.
5652 * producer.c (producer_is_llvm): New function.
5653 (producer_parsing_tests): Added new tests for clang/flang.
5654 * producer.h (producer_is_llvm): New declaration.
5655
5656 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
5657
5658 * linux-nat.c (linux_nat_debug_printf): New function.
5659 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5660
5661 2020-08-18 Aaron Merey <amerey@redhat.com>
5662
5663 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5664 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5665 (CLIBS): Add DEBUGINFOD_LIBS.
5666
5667 2020-08-17 Sergei Trofimovich <siarheit@google.com>
5668
5669 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5670 'gdbarch_num_regs'.
5671
5672 2020-08-17 Tom Tromey <tromey@adacore.com>
5673
5674 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5675 ada_get_decoded_value returns NULL.
5676
5677 2020-08-17 Tom Tromey <tromey@adacore.com>
5678
5679 * python/py-inferior.c (infpy_search_memory): Use
5680 gdb_py_object_from_ulongest.
5681 * python/py-infevents.c (create_inferior_call_event_object)
5682 (create_memory_changed_event_object): Use
5683 gdb_py_object_from_ulongest.
5684 * python/py-linetable.c (ltpy_entry_get_pc): Use
5685 gdb_py_object_from_ulongest.
5686
5687 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5688
5689 * loc.c (class symbol_needs_eval_context): Fix indentation.
5690
5691 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5692
5693 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5694 bool.
5695
5696 2020-08-17 Tom de Vries <tdevries@suse.de>
5697
5698 PR gdb/26393
5699 * gdbtypes.c (dump_dynamic_prop): New function.
5700 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5701
5702 2020-08-15 Tom de Vries <tdevries@suse.de>
5703
5704 PR backtrace/26390
5705 * stack.c (print_frame_args): Temporarily set the selected
5706 frame to FRAME while printing the frame's arguments.
5707
5708 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5709
5710 PR breakpoints/26385
5711 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5712 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5713
5714 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5715
5716 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5717 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5718 and >= to check return value instead of == -1 and != -1.
5719
5720 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5721
5722 * utils.h (class gdb_argv) <as_array_view>: New method.
5723 * utils.c (gdb_argv_as_array_view_test): New.
5724 (_initialize_utils): Register selftest.
5725 * maint.c (maintenance_selftest): Use the new method.
5726
5727 2020-08-13 Kamil Rytarowski <n54@gmx.com>
5728
5729 * target.h (supports_dumpcore, dumpcore): New
5730 function declarations.
5731 * target.c (supports_dumpcore, dumpcore): New
5732 functions.
5733 * target-delegates.c: Rebuild.
5734 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5735 and target_dumpcore ().
5736
5737 2020-08-13 Aaron Merey <amerey@redhat.com>
5738
5739 * debuginfod-support.c: Replace global variables with user_data.
5740
5741 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5742
5743 * maint.c (maintenance_selftest): Split args and pass array_view
5744 to run_tests.
5745
5746 2020-08-12 Luis Machado <luis.machado@linaro.org>
5747
5748 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5749 type's length.
5750 Use %s and pulongest to print the length.
5751
5752 2020-08-12 Pedro Alves <palves@redhat.com>
5753
5754 * NEWS: Move "Multi-target debugging support" item to the
5755 "Changes since GDB 9" section.
5756
5757 2020-08-12 Pedro Alves <palves@redhat.com>
5758
5759 PR gdb/26336
5760 * progspace.c (program_space::remove_objfile): Invalidate the
5761 frame cache.
5762
5763 2020-08-11 Tom de Vries <tdevries@suse.de>
5764
5765 * MAINTAINERS: Mark ms1 as deleted.
5766
5767 2020-08-10 Luis Machado <luis.machado@linaro.org>
5768
5769 PR gdb/26310
5770
5771 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5772 act accordingly.
5773 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5774 movz/str/stur/stp skipping behavior.
5775
5776 2020-08-10 Luis Machado <luis.machado@linaro.org>
5777
5778 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5779 struct user_sve_header instead of struct sve_context.
5780
5781 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5782
5783 * read.h (dwarf2_fetch_die_loc_sect_off,
5784 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5785 `void *` parameter with function_view.
5786 * read.c (dwarf2_fetch_die_loc_sect_off,
5787 dwarf2_fetch_die_loc_cu_off): Likewise.
5788 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5789 (per_cu_dwarf_call): Adjust.
5790 (get_frame_address_in_block_wrapper): Remove.
5791 (indirect_synthetic_pointer): Adjust.
5792 (get_ax_pc): Remove.
5793 (dwarf2_compile_expr_to_ax): Adjust.
5794
5795 2020-08-08 Tom de Vries <tdevries@suse.de>
5796
5797 PR build/26344
5798 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5799 constructor.
5800 * regcache.c (get_thread_arch_aspace_regcache): Same.
5801
5802 2020-08-07 Tom Tromey <tromey@adacore.com>
5803
5804 * ravenscar-thread.c
5805 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5806 New method.
5807 (ravenscar_thread_target::wait): Check
5808 runtime_initialized.
5809 (ravenscar_thread_target::prepare_to_store)
5810 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5811 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5812 (ravenscar_thread_target::stopped_by_watchpoint)
5813 (ravenscar_thread_target::stopped_data_address)
5814 (ravenscar_thread_target::core_of_thread): Use
5815 scoped_restore_current_thread and
5816 set_base_thread_from_ravenscar_task.
5817
5818 2020-08-07 Tom Tromey <tromey@adacore.com>
5819
5820 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5821
5822 2020-08-07 Tom Tromey <tromey@adacore.com>
5823
5824 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5825 update_inferior_ptid before update_thread_list.
5826 (temporarily_change_regcache_ptid): New class.
5827 (ravenscar_thread_target::fetch_registers)
5828 (ravenscar_thread_target::store_registers)
5829 (ravenscar_thread_target::prepare_to_store): Use base thread when
5830 forwarding operation.
5831
5832 2020-08-07 Tom Tromey <tromey@adacore.com>
5833
5834 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5835 "is_pid" case.
5836
5837 2020-08-07 Tom Tromey <tromey@adacore.com>
5838
5839 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5840 New methods.
5841 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5842 first.
5843 (ravenscar_thread_target::add_thread): Rename from
5844 ravenscar_add_thread.
5845 (ravenscar_thread_target::update_thread_list): Use a lambda.
5846 (ravenscar_thread_target::xfer_partial): New method.
5847
5848 2020-08-07 Tom Tromey <tromey@adacore.com>
5849
5850 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5851 gdb::function_view.
5852 (iterate_over_live_ada_tasks): Change type of argument.
5853 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5854 of argument.
5855
5856 2020-08-07 Tom Tromey <tromey@adacore.com>
5857
5858 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5859 Remove.
5860 (ravenscar_thread_target::extra_thread_info): Remove.
5861 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5862 defer to target beneath for non-Ravenscar threads.
5863
5864 2020-08-07 Tom Tromey <tromey@adacore.com>
5865
5866 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5867 get_base_thread_from_ravenscar_task>: Now methods.
5868 <m_cpu_map>: New member.
5869 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5870 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5871 (ravenscar_thread_target::task_is_currently_active): Update.
5872 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5873 Now a method.
5874 (ravenscar_thread_target::add_active_thread): Put initial thread
5875 into the m_cpu_map.
5876
5877 2020-08-07 Tom Tromey <tromey@adacore.com>
5878
5879 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5880 event_ptid.
5881
5882 2020-08-07 Tom Tromey <tromey@adacore.com>
5883
5884 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5885 runtime_initialized.
5886
5887 2020-08-07 Tom Tromey <tromey@adacore.com>
5888
5889 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5890 add_active_thread.
5891 (ravenscar_thread_target::add_active_thread): Now public.
5892 (ravenscar_inferior_created): Call add_active_thread after pushing
5893 the target.
5894
5895 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5896
5897 * regcache.c (ptid_regcache_map): New type.
5898 (target_ptid_regcache_map): New type.
5899 (regcaches): Change type to target_ptid_regcache_map.
5900 (get_thread_arch_aspace_regcache): Update to regcaches' new
5901 type.
5902 (regcache_thread_ptid_changed): Likewise.
5903 (registers_changed_ptid): Likewise.
5904 (regcaches_size): Likewise.
5905 (regcaches_test): Update.
5906 (regcache_thread_ptid_changed): Update.
5907 * regcache.h (regcache_up): New type.
5908 * gdbsupport/ptid.h (hash_ptid): New struct.
5909
5910 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
5911
5912 * observable.h (thread_ptid_changed): Add parameter
5913 `process_stratum_target *`.
5914 * infrun.c (infrun_thread_ptid_changed): Add parameter
5915 `process_stratum_target *` and use it.
5916 (selftests): New namespace.
5917 (infrun_thread_ptid_changed): New function.
5918 (_initialize_infrun): Register selftest.
5919 * regcache.c (regcache_thread_ptid_changed): Add parameter
5920 `process_stratum_target *` and use it.
5921 (regcache_thread_ptid_changed): New function.
5922 (_initialize_regcache): Register selftest.
5923 * thread.c (thread_change_ptid): Pass target to
5924 thread_ptid_changed observable.
5925
5926 2020-08-06 Caroline Tice <cmtice@google.com>
5927
5928 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5929 (struct dwp_sections): Update field comments. Add loclists and
5930 rnglists fields.
5931 (struct virtual_v2_dwo_sections): Rename struct to
5932 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5933 size & offset fields for loclists and rnglists.
5934 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5935 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5936 skipping dummy type units.
5937 (create_dwp_hash_table): Update the large comment above the function to
5938 discuss Version 5 DWP files as well, with references. Update all the
5939 version checks in the function to check for version 5 as well. Add new
5940 section at the end to create dwp hash table for version 5.
5941 (create_dwp_v2_section): Rename function to
5942 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5943 Add V5 to error message text.
5944 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5945 into calls to create_dwp_v2_or_v5_section.
5946 (create_dwo_unit_in_dwp_v5): New function.
5947 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5948 check for version2; add else clause to handle version 5.
5949 (open_and_init_dwo_file): Add code to check dwarf version & only call
5950 create_debug_types_hash_table (with sections.types) if version is not 5;
5951 else call create_debug_type_hash_table, with sections.info.
5952 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5953 version 5.
5954 (dwarf2_locate_v5_dwp_sections): New function.
5955 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5956 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
5957
5958 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5959
5960 * regcache.h (class regcache): Remove friend
5961 registers_changed_ptid.
5962 <regcache_thread_ptid_changed>: Remove.
5963 <regcaches>: Remove.
5964 * regcache.c (regcache::regcaches): Rename to...
5965 (regcaches): ... this. Make static.
5966 (get_thread_arch_aspace_regcache): Update.
5967 (regcache::regcache_thread_ptid_changed): Rename to...
5968 (regcache_thread_ptid_changed): ... this. Update.
5969 (class regcache_access): Remove.
5970 (regcaches_test): Update.
5971 (_initialize_regcache): Update.
5972 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5973 <forward_list>.
5974
5975 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
5976
5977 * regcache.h (class regcache) <current_regcache>: Rename to...
5978 <regcaches>: ... this. Move doc here.
5979 * regcache.c (regcache::current_regcache) Rename to...
5980 (regcache::regcaches): ... this. Move doc to header.
5981 (get_thread_arch_aspace_regcache): Update.
5982 (regcache::regcache_thread_ptid_changed): Update.
5983 (registers_changed_ptid): Update.
5984 (class regcache_access) <current_regcache_size>: Rename to...
5985 <regcaches_size>: ... this.
5986 (current_regcache_test): Rename to...
5987 (regcaches_test): ... this.
5988 (_initialize_regcache): Update.
5989
5990 2020-08-06 Victor Collod <vcollod@nvidia.com>
5991
5992 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5993
5994 2020-08-05 Kevin Buettner <kevinb@redhat.com>
5995
5996 * corelow.c (core_target::build_file_mappings): Don't output
5997 null pathname in warning.
5998
5999 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6000
6001 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6002 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6003 gdb.dwarf2/dw2-single-line-discriminators.exp,
6004 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6005
6006 2020-08-05 Tom Tromey <tromey@adacore.com>
6007
6008 PR rust/26197:
6009 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6010 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6011 Fix off-by-one and type size errors in ordinary case.
6012
6013 2020-08-05 Tom de Vries <tdevries@suse.de>
6014
6015 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6016 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6017
6018 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6019
6020 * frame.h (frame_id_p): Return bool.
6021 (frame_id_artificial_p): Return bool.
6022 (frame_id_eq): Return bool.
6023 (has_stack_frames): Return bool.
6024 (get_selected_frame): Fix typo in comment.
6025 (get_frame_pc_if_available): Return bool.
6026 (get_frame_address_in_block_if_available): Return bool.
6027 (get_frame_func_if_available): Return bool.
6028 (read_frame_register_unsigned): Return bool.
6029 (get_frame_register_bytes): Return bool.
6030 (safe_frame_unwind_memory): Return bool.
6031 (deprecated_frame_register_read): Return bool.
6032 (frame_unwinder_is): Return bool.
6033 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6034 bool.
6035 <this_id::p>: Likewise.
6036 <prev_p>: Likewise.
6037 (frame_stash_add): Return bool.
6038 (get_frame_id): Use bool.
6039 (frame_id_build_special) Use bool.
6040 (frame_id_build_unavailable_stack): Use bool.
6041 (frame_id_build): Use bool.
6042 (frame_id_p): Return bool, use true/false instead of 1/0.
6043 (frame_id_artificial_p): Likewise.
6044 (frame_id_eq): Likewise.
6045 (frame_id_inner): Likewise.
6046 (get_frame_func_if_available): Likewise.
6047 (read_frame_register_unsigned): Likewise.
6048 (deprecated_frame_register_read): Likewise.
6049 (get_frame_register_bytes): Likewise.
6050 (has_stack_frames): Likewise.
6051 (inside_main_func): Likewise.
6052 (inside_entry_func): Likewise.
6053 (get_frame_pc_if_available): Likewise.
6054 (get_frame_address_in_block_if_available): Likewise.
6055 (frame_unwinder_is): Likewise.
6056 (safe_frame_unwind_memory): Likewise.
6057 (frame_unwind_arch): Likewise.
6058
6059 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6060
6061 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6062 type to cached_copy_status.
6063 (fprintf_frame): Adjust.
6064 (get_frame_func_if_available): Adjust.
6065 (frame_cleanup_after_sniffer): Adjust.
6066
6067 2020-08-04 Mark Wielaard <mark@klomp.org>
6068
6069 * MAINTAINERS (Write After Approval): Update email address.
6070
6071 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6072
6073 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6074 dynamic_prop::const_val.
6075
6076 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6077
6078 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6079 dynamic_prop::kind.
6080
6081 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6082
6083 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6084
6085 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6086
6087 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6088
6089 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6090 Jose E. Marchesi <jose.marchesi@oracle.com>
6091
6092 * configure.tgt: Add entry for bpf-*-*.
6093 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6094 (ALLDEPFILES): Add bpf-tdep.c.
6095 * bpf-tdep.c: New file.
6096 * MAINTAINERS: Add bpf target and maintainer.
6097 * NEWS: Mention the support for the new target.
6098
6099 2020-08-04 Tom de Vries <tdevries@suse.de>
6100
6101 PR symtab/23270
6102 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6103 Error.
6104
6105 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6106
6107 * syscalls/freebsd.xml: Regenerate.
6108
6109 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6110
6111 * syscalls/update-freebsd.sh: Fix usage and year range.
6112
6113 2020-08-03 Tom de Vries <tdevries@suse.de>
6114
6115 PR symtab/26333
6116 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6117 DW_LNE_lo_user/DW_LNE_hi_user range.
6118
6119 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6120
6121 PR ada/26318
6122 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6123 kind.
6124
6125 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6126
6127 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6128
6129 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6130
6131 * breakpoint.c (set_breakpoint_condition): Update the condition
6132 expressions after checking that the input condition string parses
6133 successfully and does not contain junk at the end.
6134
6135 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6136
6137 * breakpoint.c (set_breakpoint_condition): Update the
6138 condition string after parsing the new condition successfully.
6139
6140 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6141
6142 * proc-api.c (_STRUCTURED_PROC): Don't define.
6143 * proc-events.c: Likewise.
6144 * proc-flags.c: Likewise.
6145 * proc-why.c: Likewise.
6146 * procfs.c: Likewise.
6147
6148 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6149 * configure, config.in: Regenerate.
6150
6151 2020-07-30 Tom de Vries <tdevries@suse.de>
6152
6153 PR build/26320
6154 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6155 m_red/m_green/m_blue in a union.
6156
6157 2020-07-29 Tom de Vries <tdevries@suse.de>
6158
6159 PR tdep/26280
6160 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6161
6162 2020-07-28 Tom Tromey <tromey@adacore.com>
6163
6164 PR symtab/26270:
6165 * symtab.h (find_pc_partial_function_sym): Declare.
6166 * cli/cli-cmds.c (disassemble_command): Use
6167 find_pc_partial_function_sym. Check asm_demangle.
6168 * blockframe.c (cache_pc_function_sym): New global.
6169 (cache_pc_function_name): Remove.
6170 (clear_pc_function_cache): Update.
6171 (find_pc_partial_function_sym): New function, from
6172 find_pc_partial_function.
6173 (find_pc_partial_function): Rewrite using
6174 find_pc_partial_function_sym.
6175
6176 2020-07-28 Tom Tromey <tromey@adacore.com>
6177
6178 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6179 help. Add usage.
6180
6181 2020-07-28 Tom Tromey <tromey@adacore.com>
6182
6183 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6184 <DW_OP_GNU_variable_value>: Cast to address type.
6185
6186 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6187
6188 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6189 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6190 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6191 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6192 (nbsd_get_siginfo_type): New.
6193 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6194 (_initialize_nbsd_tdep): New.
6195
6196 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6197
6198 PR binutils/26301
6199 * configure: Regenerated.
6200
6201 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6202
6203 PR binutils/26301
6204 * configure: Regenerated.
6205
6206 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6207
6208 * python/py-frame.c: Remove 'user-regs.h' include.
6209 (frapy_read_register): Rewrite to make use of
6210 gdbpy_parse_register_id.
6211 * python/py-registers.c (gdbpy_parse_register_id): New function,
6212 moved here from python/py-unwind.c. Updated the return type, and
6213 also accepts register descriptor objects.
6214 * python/py-unwind.c: Remove 'user-regs.h' include.
6215 (pyuw_parse_register_id): Moved to python/py-registers.c.
6216 (unwind_infopy_add_saved_register): Update to use
6217 gdbpy_parse_register_id.
6218 (pending_framepy_read_register): Likewise.
6219 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6220
6221 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6222
6223 * python/py-registers.c: Add 'user-regs.h' include.
6224 (register_descriptor_iter_find): New function.
6225 (register_descriptor_iterator_object_methods): New static global
6226 methods array.
6227 (register_descriptor_iterator_object_type): Add pointer to methods
6228 array.
6229
6230 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6231
6232 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6233 for all architectures on FreeBSD 11.3 and later.
6234
6235 2020-07-27 Tom Tromey <tromey@adacore.com>
6236
6237 * gcore.h (load_corefile): Don't declare.
6238
6239 2020-07-27 Tom de Vries <tdevries@suse.de>
6240
6241 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6242 * config.in: Regenerate.
6243 * configure: Regenerate.
6244
6245 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6246
6247 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6248 ws2tcpip.h. When checking whether socklen_t type is defined, use
6249 ws2tcpip.h if it is available and sys/socket.h isn't.
6250 * configure: Regenerate.
6251 * config.in: Regenerate.
6252
6253 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6254
6255 PR fortran/23051
6256 PR fortran/26139
6257 * valops.c (value_ind): Pass address to
6258 readjust_indirect_value_type.
6259 * value.c (readjust_indirect_value_type): Make parameter
6260 non-const, and add extra address parameter. Resolve original type
6261 before using it.
6262 * value.h (readjust_indirect_value_type): Update function
6263 signature and comment.
6264
6265 2020-07-25 Tom de Vries <tdevries@suse.de>
6266
6267 PR symtab/26243
6268 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6269 entries.
6270
6271 2020-07-24 Aaron Merey <amerey@redhat.com>
6272
6273 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6274 * configure: Rebuild.
6275
6276 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6277
6278 PR corefiles/26294
6279 * corelow.c (_initialize_corelow): Add period to help text
6280 for "maintenance print core-file-backed-mappings".
6281
6282 2020-07-23 Pedro Alves <pedro@palves.net>
6283
6284 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6285 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6286 meanwhile.
6287 * frame.c (frame_cache_generation, get_frame_cache_generation):
6288 New.
6289 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6290 (get_prev_frame_if_no_cycle): On exception, don't touch
6291 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6292 * frame.h (get_frame_cache_generation): Declare.
6293
6294 2020-07-23 Tom de Vries <tdevries@suse.de>
6295
6296 PR tui/26282
6297 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6298 New default constructor.
6299
6300 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6301
6302 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6303 exclude non-statement entries.
6304
6305 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6306
6307 * NEWS (New commands): Mention new command
6308 "maintenance print core-file-backed-mappings".
6309
6310 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6311
6312 * corelow.c (gdbcmd.h): Include.
6313 (core_target::info_proc_mappings): New method.
6314 (get_current_core_target): New function.
6315 (maintenance_print_core_file_backed_mappings): New function.
6316 (_initialize_corelow): Add core-file-backed-mappings to
6317 "maint print" commands.
6318
6319 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6320
6321 * linux-tdep.c (dump_note_entry_p): New function.
6322 (linux_dump_mapping_p_ftype): New typedef.
6323 (linux_find_memory_regions_full): Add new parameter,
6324 should_dump_mapping_p.
6325 (linux_find_memory_regions): Adjust call to
6326 linux_find_memory_regions_full.
6327 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6328 call to linux_find_memory_regions_full.
6329
6330 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6331
6332 * corelow.c (solist.h, unordered_map): Include.
6333 (class core_target): Add field m_core_file_mappings and
6334 method build_file_mappings.
6335 (core_target::core_target): Call build_file_mappings.
6336 (core_target::~core_target): Free memory associated with
6337 m_core_file_mappings.
6338 (core_target::build_file_mappings): New method.
6339 (core_target::xfer_partial): Use m_core_file_mappings
6340 for memory transfers.
6341 * linux-tdep.c (linux_read_core_file_mappings): New
6342 function.
6343 (linux_core_info_proc_mappings): Rewrite to use
6344 linux_read_core_file_mappings.
6345 (linux_init_abi): Register linux_read_core_file_mappings.
6346
6347 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6348
6349 * arch-utils.c (default_read_core_file_mappings): New function.
6350 * arch-utils.c (default_read_core_file_mappings): Declare.
6351 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6352 * gdbarch.h, gdbarch.c: Regenerate.
6353
6354 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6355
6356 PR corefiles/25631
6357 * corelow.c (core_target:xfer_partial): Revise
6358 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6359 case after first checking the stratum beneath the core
6360 target.
6361 (has_all_memory): Return true.
6362 * target.c (raw_memory_xfer_partial): Revise comment
6363 regarding use of has_all_memory.
6364
6365 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6366
6367 * exec.h (section_table_xfer_memory): Revise declaration,
6368 replacing section name parameter with an optional callback
6369 predicate.
6370 * exec.c (section_table_xfer_memory): Likewise.
6371 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6372 of section_table_xfer_memory.
6373
6374 2020-07-22 Tom Tromey <tromey@adacore.com>
6375
6376 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6377 lookup_symbol_search_name.
6378
6379 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6380
6381 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6382 redundant local variable.
6383 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6384 reference, not pointer, update code accordingly.
6385
6386 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6387 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6388
6389 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6390 * jit.c (jit_breakpoint_re_set_internal): Use the
6391 `skip_jit_symbol_lookup` field.
6392
6393 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6394 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6395
6396 * jit.c (jit_read_descriptor): Define the descriptor address once,
6397 use twice.
6398 (jit_breakpoint_deleted): Move the declaration of the loop variable
6399 `iter` into the loop header.
6400 (jit_breakpoint_re_set_internal): Move the declaration of the local
6401 variable `objf_data` to the first point of definition.
6402 (jit_event_handler): Move the declaration of local variables
6403 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6404 Rename `objf` to `jited`.
6405
6406 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6407
6408 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6409 Remove.
6410 * jit.c (get_jiter_objfile_data): Update.
6411
6412 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6413 Simon Marchi <simon.marchi@polymtl.ca>
6414
6415 * jit.c (struct jit_program_space_data): Remove.
6416 (jit_program_space_key): Remove.
6417 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6418 stuff.
6419 (get_jit_program_space_data): Remove.
6420 (jit_breakpoint_deleted): Iterate on all of the program space's
6421 objfiles.
6422 (jit_inferior_init): Likewise.
6423 (jit_breakpoint_re_set_internal): Likewise. Also change return
6424 type to void.
6425 (jit_breakpoint_re_set): Pass current_program_space to
6426 jit_breakpoint_re_set_internal.
6427
6428 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6429
6430 * jit.h (struct jiter_objfile_data) <cached_code_address,
6431 jit_breakpoint>: Move to here from ...
6432 * jit.c (jit_program_space_data): ... here.
6433 (jiter_objfile_data::~jiter_objfile_data): Update.
6434 (jit_breakpoint_deleted): Update.
6435 (jit_breakpoint_re_set_internal): Update.
6436
6437 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6438
6439 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6440 checks.
6441 (jit_read_descriptor): Remove NULL check.
6442 (jit_event_handler): Add an assertion.
6443
6444 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6445
6446 * jit.h (struct jit_objfile_data): Split into...
6447 (struct jiter_objfile_data): ... this ...
6448 (struct jited_objfile_data): ... and this.
6449 * objfiles.h (struct objfile) <jit_data>: Remove.
6450 <jiter_data, jited_data>: New fields.
6451 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6452 (jiter_objfile_data::~jiter_objfile_data): ... this.
6453 (get_jit_objfile_data): Rename to ...
6454 (get_jiter_objfile_data): ... this.
6455 (add_objfile_entry): Update.
6456 (jit_read_descriptor): Use get_jiter_objfile_data.
6457 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6458 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6459 (jit_inferior_exit_hook): Use objfile's jited_data field.
6460
6461 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6462
6463 * jit.h: Forward-declare `struct minimal_symbol`.
6464 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6465 constructor, destructor, and an objfile* field.
6466 * jit.c (jit_objfile_data): Remove.
6467 (struct jit_objfile_data): Migrate from here to jit.h.
6468 (jit_objfile_data::~jit_objfile_data): New destructor
6469 implementation with code moved from free_objfile_data.
6470 (free_objfile_data): Delete.
6471 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6472 (jit_find_objf_with_entry_addr): Ditto.
6473 (jit_inferior_exit_hook): Ditto.
6474 (_initialize_jit): Remove the call to
6475 register_objfile_data_with_cleanup.
6476 * objfiles.h (struct objfile) <jit_data>: New field.
6477
6478 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6479
6480 * jit.h: Forward-declare `struct objfile`.
6481 (jit_event_handler): Add a second parameter, the JITer objfile.
6482 * jit.c (jit_read_descriptor): Change the signature to take the
6483 JITer objfile as an argument instead of the jit_program_space_data.
6484 (jit_inferior_init): Update the call to jit_read_descriptor.
6485 (jit_event_handler): Use the new JITer objfile argument when calling
6486 jit_read_descriptor.
6487 * breakpoint.c (handle_jit_event): Update the call to
6488 jit_event_handler to pass the JITer objfile.
6489
6490 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6491
6492 * gdbarch.c: Regenerate.
6493 * gdbarch.h: Regenerate.
6494 * gdbarch.sh (handle_segmentation_fault): Remove method.
6495 * infrun.c (handle_segmentation_fault): Remove.
6496 (print_signal_received_reason): Remove call to
6497 handle_segmentation_fault.
6498
6499 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6500
6501 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6502 Rename to sparc64_linux_report_signal_info and add siggnal
6503 argument.
6504 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6505 instead of sparc64_linux_handle_segmentation_fault.
6506
6507 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6508
6509 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6510 i386_linux_report_signal_info instead of
6511 i386_linux_handle_segmentation_fault.
6512 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6513 to i386_linux_report_signal_info and add siggnal argument.
6514 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6515 of i386_linux_handle_segmentation_fault.
6516 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6517 to i386_linux_report_signal_info and add siggnal argument.
6518
6519 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6520
6521 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6522 hook if present.
6523
6524 2020-07-21 John Baldwin <jhb@FreeBSD.org>
6525
6526 * gdbarch.c: Regenerate.
6527 * gdbarch.h: Regenerate.
6528 * gdbarch.sh (report_signal_info): New method.
6529 * infrun.c (print_signal_received_reason): Invoke gdbarch
6530 report_signal_info hook if present.
6531
6532 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6533
6534 * python/py-registers.c : Add 'unordered_map' include.
6535 (gdbpy_new_reggroup): Renamed to...
6536 (gdbpy_get_reggroup): ...this. Update to only create register
6537 group descriptors when needed.
6538 (gdbpy_reggroup_iter_next): Update.
6539
6540 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6541
6542 * python/py-registers.c (gdbpy_register_object_data): New static
6543 global.
6544 (gdbpy_register_object_data_init): New function.
6545 (gdbpy_new_register_descriptor): Renamed to...
6546 (gdbpy_get_register_descriptor): ...this, and update to reuse
6547 existing register descriptors where possible.
6548 (gdbpy_register_descriptor_iter_next): Update.
6549 (gdbpy_initialize_registers): Register new gdbarch data.
6550
6551 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
6552
6553 * linux-nat.c (stopped_pids): Make static.
6554
6555 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6556
6557 PR ada/26235
6558 * gdbtypes.c (ada_discrete_type_low_bound,
6559 ada_discrete_type_high_bound): Handle undefined bounds.
6560
6561 2020-07-21 Kamil Rytarowski <n54@gmx.com>
6562
6563 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6564 declaration.
6565 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6566 function.
6567
6568 2020-07-20 John Baldwin <jhb@FreeBSD.org>
6569
6570 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6571 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6572 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6573 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6574 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6575 method.
6576
6577 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6578
6579 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6580 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6581 which are deprecated in Guile 3.0.
6582 * configure.ac (try_guile_versions): Add "guile-3.0".
6583 * configure (try_guile_versions): Regenerate.
6584 * NEWS: Update entry.
6585
6586 2020-07-20 Ludovic Courtès <ludo@gnu.org>
6587 Doug Evans <dje@google.com>
6588
6589 PR gdb/21104
6590 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6591 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6592 USING_GUILE_BEFORE_2_2.
6593 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6594 Change type to 'scm_t_port_type *'.
6595 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6596 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6597 parameter and honor it. Update callers.
6598 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6599 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6600 functions.
6601 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6602 USING_GUILE_BEFORE_2_2.
6603 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6604 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6605 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6606 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6607 and 'SCM_PORT_TYPE'.
6608 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6609 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6610 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6611 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6612 [!USING_GUILE_BEFORE_2_2]: New functions.
6613 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6614 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6615 'gdbscm_memory_port_read'.
6616 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6617 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6618 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6619 function.
6620 (ioscm_init_memory_port): Remove.
6621 (ioscm_init_memory_port_stream): New function
6622 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6623 function.
6624 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6625 Return scm_from_uint (0).
6626 (gdbscm_set_memory_port_read_buffer_size_x)
6627 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6628 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6629 Return scm_from_uint (0).
6630 (gdbscm_set_memory_port_write_buffer_size_x)
6631 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6632 * configure.ac (try_guile_versions): Add "guile-2.2".
6633 * configure: Regenerate.
6634 * NEWS: Add entry.
6635
6636 2020-07-18 Tom Tromey <tom@tromey.com>
6637
6638 * linux-nat.c (linux_multi_process): Remove.
6639 (linux_nat_target::supports_multi_process): Return true.
6640
6641 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6642
6643 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6644 (riscv_lookup_target_description): Return pointer out of
6645 unique_ptr.
6646 * target-descriptions.c (allocate_target_description): Add
6647 comment.
6648 (target_desc_deleter::operator()): Likewise.
6649 * target-descriptions.h (struct target_desc_deleter): Moved to
6650 gdbsupport/tdesc.h.
6651 (target_desc_up): Likewise.
6652
6653 2020-07-17 Tom Tromey <tromey@adacore.com>
6654
6655 * linux-nat.c (linux_nat_target::supports_non_stop)
6656 (linux_nat_target::always_non_stop_p): Use "true".
6657 (linux_nat_target::supports_disable_randomization): Use "true" and
6658 "false".
6659
6660 2020-07-16 Caroline Tice <cmtice@google.com>
6661
6662 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6663 (RNGLIST_HEADER_SIZE64): New constant definition.
6664 (struct dwop_section_names): Add rnglists_dwo.
6665 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6666 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6667 (struct dwo_sections): Add rnglists field.
6668 (read_attribut_reprocess): Add tag parameter.
6669 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6670 (cu_debug_rnglists_section): New function (decl & definition).
6671 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6672 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6673 die whose range is being checked; get rnglist section from
6674 cu_debug_rnglists_section, to get from either objfile or dwo file as
6675 appropriate. Add cases for DW_RLE_base_addressx,
6676 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6677 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6678 test inside if-condition and updating complaint message.
6679 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6680 dwarf2_rnglists_process.
6681 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6682 dwarf2_ranges_process.
6683 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6684 need_ranges_base and update comment appropriately. Also pass die tag
6685 to dwarf2_ranges_read.
6686 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6687 need_ranges_base and update comment appropriately. Also pass die tag
6688 to dwarf2_ranges_process.
6689 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6690 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6691 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6692 need_ranges_base and update comment appropriately. Also pass die tag
6693 to read_attribute_reprocess and dwarf2_ranges_read.
6694 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6695 and update function comment appropriately.
6696 (read_loclist_index): Call read_loclists_rnglists_header instead of
6697 read_loclist_header.
6698 (read_rnglist_index): New function.
6699 (read_attribute_reprocess): Add tag parameter. Add code for
6700 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6701 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6702
6703 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6704
6705 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6706 being resolved.
6707
6708 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6709
6710 * arch-utils.c (show_architecture): Update formatting of messages.
6711
6712 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6713
6714 * gdbtypes.h (struct type) <bounds>: Handle array and string
6715 types.
6716 * ada-lang.c (assign_aggregate): Use type::bounds on
6717 array/string type.
6718 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6719 * c-varobj.c (c_number_of_children): Likewise.
6720 (c_describe_child): Likewise.
6721 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6722 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6723 (f_type_print_base): Likewise.
6724 * f-valprint.c (f77_array_offset_tbl): Likewise.
6725 (f77_get_upperbound): Likewise.
6726 (f77_print_array_1): Likewise.
6727 * guile/scm-type.c (gdbscm_type_range): Likewise.
6728 * m2-typeprint.c (m2_array): Likewise.
6729 (m2_is_long_set_of_type): Likewise.
6730 * m2-valprint.c (get_long_set_bounds): Likewise.
6731 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6732 * python/py-type.c (typy_range): Likewise.
6733 * rust-lang.c (rust_internal_print_type): Likewise.
6734 * type-stack.c (type_stack::follow_types): Likewise.
6735 * valarith.c (value_subscripted_rvalue): Likewise.
6736 * valops.c (value_cast): Likewise.
6737
6738 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6739
6740 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6741 callers to use the equivalent accessor methods.
6742
6743 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6744
6745 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6746 (struct type) <bit_stride>: New method.
6747 (TYPE_BIT_STRIDE): Remove.
6748 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6749
6750 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6751
6752 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6753 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6754 callers to use the equivalent accessor methods instead.
6755
6756 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6757
6758 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6759 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6760 callers to use the equivalent accessor methods instead.
6761
6762 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6763
6764 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6765 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6766 to use dynamic_prop::kind.
6767
6768 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6769
6770 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6771 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6772 to get the bound property's kind and check against
6773 PROP_UNDEFINED.
6774
6775 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6776
6777 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6778 all callers to use type::range_bounds followed by
6779 dynamic_prop::{low,high}.
6780
6781 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6782
6783 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6784 const_val, set_const_val, baton, set_locexpr, set_loclist,
6785 set_addr_offset, variant_parts, set_variant_parts,
6786 original_type, set_original_type>: New methods.
6787 <kind>: Rename to...
6788 <m_kind>: ... this. Update all users to use the new methods
6789 instead.
6790 <data>: Rename to...
6791 <m_data>: ... this. Update all users to use the new methods
6792 instead.
6793
6794 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6795
6796 * gdbtypes.c (get_discrete_bounds): Return failure if
6797 the range type's bounds are not both defined and constant
6798 values.
6799 (get_array_bounds): Update comment. Remove undefined bound check.
6800
6801 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6802
6803 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6804 the type::bounds method directly.
6805
6806 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
6807
6808 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6809 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6810 are used to set the range type's bounds to use set_bounds.
6811
6812 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6813
6814 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6815
6816 2020-07-10 Pedro Alves <pedro@palves.net>
6817
6818 * gdbthread.h (inferior_ref): Define.
6819 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6820 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6821 * thread.c
6822 (scoped_restore_current_thread::restore):
6823 Adjust to gdb::ref_ptr.
6824 (scoped_restore_current_thread::~scoped_restore_current_thread):
6825 Remove manual decref handling.
6826 (scoped_restore_current_thread::scoped_restore_current_thread):
6827 Adjust to use
6828 inferior_ref::new_reference/thread_info_ref::new_reference.
6829 Incref the thread before calling get_frame_id instead of after.
6830 Let TARGET_CLOSE_ERROR propagate.
6831
6832 2020-07-10 Pedro Alves <pedro@palves.net>
6833
6834 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6835 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6836 NOT_AVAILABLE_ERROR.
6837 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6838 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6839
6840 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6841 Pedro Alves <pedro@palves.net>
6842
6843 PR gdb/26199
6844 * infrun.c (threads_are_resumed_pending_p): Delete.
6845 (do_target_wait): Remove threads_are_executing and
6846 threads_are_resumed_pending_p checks from the inferior_matches
6847 lambda. Update comments.
6848
6849 2020-07-10 Pedro Alves <pedro@palves.net>
6850
6851 PR gdb/26199
6852 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6853 executing threads.
6854
6855 2020-07-10 Pedro Alves <pedro@palves.net>
6856
6857 PR gdb/26199
6858 * infrun.c (handle_no_resumed): Handle multiple targets.
6859
6860 2020-07-10 Pedro Alves <pedro@palves.net>
6861
6862 PR gdb/26199
6863 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6864 target_is_async_p.
6865
6866 2020-07-10 Pedro Alves <pedro@palves.net>
6867
6868 PR gdb/26199
6869 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6870 threads, not all threads.
6871
6872 2020-07-10 Pedro Alves <pedro@palves.net>
6873
6874 PR gdb/26199
6875 * remote.c (remote_target::open_1): Pass remote target pointer as
6876 data to create_async_event_handler.
6877 (remote_async_inferior_event_handler): Mark async event handler
6878 before returning if the remote target still has either pending
6879 events or unacknowledged notifications.
6880
6881 2020-07-10 John Baldwin <jhb@FreeBSD.org>
6882
6883 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6884 declaration.
6885 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6886 function.
6887
6888 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6889
6890 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6891 inferior_ptid.
6892
6893 2020-07-09 John Baldwin <jhb@FreeBSD.org>
6894
6895 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6896 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6897 AT_FREEBSD_PS_STRINGS.
6898
6899 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
6900
6901 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6902 of debugfile path on Windows.
6903
6904 2020-07-08 John Baldwin <jhb@FreeBSD.org>
6905
6906 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6907 argument to 'data'.
6908
6909 2020-07-08 Tom Tromey <tromey@adacore.com>
6910
6911 * ada-lang.c (ada_exception_message_1): Use read_memory.
6912
6913 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6914
6915 PR python/22748
6916 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6917 special handling for inline frames.
6918 * findvar.c (value_of_register_lazy): Skip inline frames when
6919 creating lazy register values.
6920 * frame.c (frame_id_computed_p): Delete definition.
6921 * frame.h (frame_id_computed_p): Delete declaration.
6922
6923 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6924
6925 * NEWS: Mention additions to Python API.
6926 * python/py-arch.c (archpy_register_groups): New function.
6927 (arch_object_methods): Add 'register_groups' method.
6928 * python/py-registers.c (reggroup_iterator_object): New struct.
6929 (reggroup_object): New struct.
6930 (gdbpy_new_reggroup): New function.
6931 (gdbpy_reggroup_to_string): New function.
6932 (gdbpy_reggroup_name): New function.
6933 (gdbpy_reggroup_iter): New function.
6934 (gdbpy_reggroup_iter_next): New function.
6935 (gdbpy_new_reggroup_iterator): New function
6936 (gdbpy_initialize_registers): Register new types.
6937 (reggroup_iterator_object_type): Define new Python type.
6938 (gdbpy_reggroup_getset): New static global.
6939 (reggroup_object_type): Define new Python type.
6940 * python/python-internal.h
6941
6942 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6943
6944 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6945 * python/py-arch.c (archpy_registers): New function.
6946 (arch_object_methods): Add 'registers' method.
6947 * python/py-registers.c: New file.
6948 * python/python-internal.h
6949 (gdbpy_new_register_descriptor_iterator): Declare.
6950 (gdbpy_initialize_registers): Declare.
6951 * python/python.c (do_start_initialization): Call
6952 gdbpy_initialize_registers.
6953 * NEWS: Mention additions to the Python API.
6954
6955 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6956
6957 * NEWS: Mention new Python API method.
6958 * python/py-unwind.c (pending_framepy_architecture): New function.
6959 (pending_frame_object_methods): Add architecture method.
6960
6961 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6962
6963 * gdbarch.c: Regenerate.
6964 * gdbarch.h: Regenerate.
6965 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6966 (gdbarch_data): Use internal_error for the case where
6967 deprecated_set_gdbarch_data was originally needed.
6968 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6969 and use passed in obstack.
6970 (libunwind_frame_set_descr): Should no longer get back NULL from
6971 gdbarch_data.
6972 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6973 type.
6974 * user-regs.c (user_regs_init): Update parameters, and use passed
6975 in obstack.
6976 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6977 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6978
6979 2020-07-06 Tom de Vries <tdevries@suse.de>
6980
6981 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6982 End-Of-Sequence in lte_is_less_than.
6983 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6984 "gdb: Don't reorder line table entries too much when sorting".
6985
6986 2020-07-06 Tom de Vries <tdevries@suse.de>
6987
6988 PR tui/26205
6989 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6990
6991 2020-07-05 Tom de Vries <tdevries@suse.de>
6992
6993 PR build/26187
6994 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6995 std::uncaught_exceptions instead of deprecated
6996 std::uncaught_exception.
6997
6998 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6999
7000 * macroexp.h (macro_stringify): Return
7001 gdb::unique_xmalloc_ptr<char>.
7002 * macroexp.c (macro_stringify): Likewise.
7003 * macrotab.c (fixup_definition): Update.
7004
7005 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7006
7007 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7008 (lex_one_token): Update.
7009 * macroexp.c (struct macro_buffer) <release>: Return
7010 gdb::unique_xmalloc_ptr<char>.
7011 (macro_stringify): Update.
7012 (macro_expand): Update.
7013 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7014 * macroexp.h (macro_expand_next): Likewise.
7015
7016 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7017
7018 * macroexp.h (macro_lookup_ftype): Remove.
7019 (macro_expand, macro_expand_once, macro_expand_next): Remove
7020 lookup function parameters, add scope parameter.
7021 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7022 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7023 * macroscope.h (standard_macro_lookup): Change parameter type
7024 to macro_scope.
7025 * macroscope.c (standard_macro_lookup): Likewise.
7026 * c-exp.y (lex_one_token): Update.
7027 * macrocmd.c (macro_expand_command): Likewise.
7028 (macro_expand_once_command): Likewise.
7029
7030 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7031
7032 * inf-loop.c (inferior_event_handler): Remove client_data param.
7033 * inf-loop.h (inferior_event_handler): Likewise.
7034 * infcmd.c (step_1): Adjust.
7035 * infrun.c (proceed): Adjust.
7036 (fetch_inferior_event): Remove client_data param.
7037 (infrun_async_inferior_event_handler): Adjust.
7038 * infrun.h (fetch_inferior_event): Remove `void *` param.
7039 * linux-nat.c (handle_target_event): Adjust.
7040 * record-btrace.c (record_btrace_handle_async_inferior_event):
7041 Adjust.
7042 * record-full.c (record_full_async_inferior_event_handler):
7043 Adjust.
7044 * remote.c (remote_async_inferior_event_handler): Adjust.
7045
7046 2020-07-01 Tom Tromey <tom@tromey.com>
7047
7048 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7049 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7050
7051 2020-07-01 Tom Tromey <tom@tromey.com>
7052
7053 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7054 tui_gen_win_info.
7055 (tui_win_info::make_window): Merge with
7056 tui_gen_win_info::make_window.
7057 (tui_win_info::make_visible): Move from tui_gen_win_info.
7058 * tui/tui-win.c (tui_win_info::max_width): Move from
7059 tui_gen_win_info.
7060 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7061 type.
7062 <window_factory>: Likewise.
7063 * tui/tui-layout.c (tui_win_info::resize): Move from
7064 tui_gen_win_info.
7065 (make_standard_window): Change return type.
7066 (get_locator_window, tui_get_window_by_name): Likewise.
7067 (tui_layout_window::apply): Remove a cast.
7068 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7069 (struct tui_win_info): Merge with tui_gen_win_info.
7070 (struct tui_gen_win_info): Remove.
7071
7072 2020-07-01 Tom Tromey <tom@tromey.com>
7073
7074 * tui/tui-stack.h (struct tui_locator_window): Derive from
7075 tui_win_info.
7076 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7077 <can_box>: New method.
7078
7079 2020-07-01 Tom Tromey <tom@tromey.com>
7080
7081 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7082
7083 2020-07-01 Tom Tromey <tom@tromey.com>
7084
7085 * tui/tui-regs.c (tui_data_window::display_registers_from)
7086 (tui_data_window::display_registers_from)
7087 (tui_data_window::first_data_item_displayed)
7088 (tui_data_window::delete_data_content_windows): Update.
7089 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7090 Remove.
7091 (tui_data_window::check_register_values): Update.
7092 (tui_data_item_window::rerender): Add parameters. Update.
7093 (tui_data_item_window::refresh_window): Remove.
7094 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7095 virtual.
7096 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7097 tui_gen_win_info.
7098 <refresh_window, max_height, min_height>: Remove.
7099 <rerender>: Add parameters.
7100 <x, y, visible>: New members.
7101 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7102 <m_item_width>: New member.
7103
7104 2020-07-01 Tom Tromey <tom@tromey.com>
7105
7106 * tui/tui-regs.c (tui_data_window::show_register_group)
7107 (tui_data_window::check_register_values): Update.
7108 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7109 from item_no.
7110
7111 2020-07-01 Tom Tromey <tom@tromey.com>
7112
7113 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7114 useless "if".
7115
7116 2020-07-01 Tom Tromey <tom@tromey.com>
7117
7118 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7119 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7120
7121 2020-07-01 Tom Tromey <tom@tromey.com>
7122
7123 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7124 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7125 (struct tui_line_or_address): Move from tui-data.h.
7126 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7127 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7128 (tui_cmd_window, tui_source_window_base, tui_source_window)
7129 (tui_disasm_window): Don't declare.
7130 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7131 to tui-winsource.h.
7132 (SINGLE_KEY): Move to tui-stack.c.
7133
7134 2020-07-01 Tom Tromey <tom@tromey.com>
7135
7136 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7137 std::string.
7138 * tui/tui-regs.c (class tab_expansion_file): New.
7139 (tab_expansion_file::write): New method.
7140 (tui_register_format): Change return type. Use
7141 tab_expansion_file.
7142 (tui_get_register, tui_data_window::display_registers_from)
7143 (tui_data_item_window::rerender): Update.
7144 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7145 * tui/tui-io.c (tui_expand_tabs): Remove.
7146
7147 2020-07-01 Tom Tromey <tom@tromey.com>
7148
7149 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7150
7151 2020-07-01 Fangrui Song <maskray@google.com>
7152
7153 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7154
7155 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7156
7157 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7158 forms for DW_AT_associated and DW_AT_allocated attributes,
7159 which is already checked in function attr_to_dynamic_prop.
7160
7161 2020-06-30 Tom Tromey <tromey@adacore.com>
7162
7163 * dwarf2/read.c (quirk_rust_enum): Correctly call
7164 alloc_rust_variant for default-less enum.
7165
7166 2020-06-30 Tom Tromey <tromey@adacore.com>
7167
7168 PR build/26183:
7169 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7170 gdb::to_string.
7171
7172 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7173
7174 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7175 * gdbarch.h: Re-generate.
7176
7177 2020-06-28 Tom Tromey <tom@tromey.com>
7178
7179 * command.h (cmd_types): Remove.
7180 (cmd_type): Don't declare.
7181 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7182 typedef.
7183 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7184 * cli/cli-decode.c (cmd_type): Remove.
7185
7186 2020-06-27 Pedro Alves <palves@redhat.com>
7187
7188 * fork-child.c (prefork_hook): Adjust.
7189 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7190 Delete.
7191 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7192 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7193 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7194 Remove declarations.
7195 (struct inferior) <set_tty, tty>: New methods.
7196 (struct inferior) <terminal>: Rename to ...
7197 (struct inferior) <m_terminal>: ... this and make private.
7198 * main.c (captured_main_1): Adjust.
7199 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7200 (mi_cmd_inferior_tty_show): Adjust.
7201 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7202 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7203
7204 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7205
7206 * configure.ac: Add --enable-libctf: handle --disable-static
7207 properly.
7208 * acinclude.m4: sinclude ../config/enable.m4.
7209 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7210 (LIBCTF): Substitute in.
7211 (CTF_DEPS): New, likewise.
7212 (CLIBS): libctf needs symbols from libbfd: move earlier.
7213 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7214 flags.
7215 * ctfread.c: Surround in ENABLE_LIBCTF.
7216 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7217 * configure: Regenerate.
7218 * config.in: Likewise.
7219
7220 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7221
7222 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7223
7224 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7225
7226 * inferior.h (struct inferior) <terminal>: Change type to
7227 gdb::unique_xmalloc_ptr<char>.
7228 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7229 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7230 field, adjust to unique pointer.
7231 (get_inferior_io_terminal): Adjust to unique pointer.
7232
7233 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7234
7235 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7236 registers, not just the known core set of registers.
7237
7238 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7239
7240 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7241 fflags, frm, and fcsr registers.
7242 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7243 restore groups.
7244 (riscv_tdesc_unknown_reg): New function.
7245 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7246 tdesc_use_registers.
7247 * riscv-tdep.h (struct gdbarch_tdep): Add
7248 unknown_csrs_first_regnum, unknown_csrs_count,
7249 duplicate_fflags_regnum, duplicate_frm_regnum, and
7250 duplicate_fcsr_regnum fields.
7251
7252 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7253
7254 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7255 callback, use the callback (when not null) to help number unknown
7256 registers.
7257 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7258 (tdesc_use_registers): Add extra parameter to declaration.
7259
7260 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7261
7262 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7263 in the file.
7264 (class riscv_pending_register_alias): Likewise.
7265 (riscv_register_feature::register_info): Change 'required_p' field
7266 to 'required', and change its type. Add 'check' member function.
7267 (riscv_register_feature::register_info::check): Define new member
7268 function.
7269 (riscv_xreg_feature): Change initialisation of 'required' field.
7270 (riscv_freg_feature): Likewise.
7271 (riscv_virtual_feature): Likewise.
7272 (riscv_csr_feature): Likewise.
7273 (riscv_check_tdesc_feature): Take extra parameter, the csr
7274 tdesc_feature, rewrite the function to use the new
7275 riscv_register_feature::register_info::check function.
7276 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7277
7278 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7279
7280 * features/Makefile: Remove all references to the deleted files
7281 below.
7282 * features/riscv/32bit-csr.c: Deleted.
7283 * features/riscv/32bit-csr.xml: Deleted.
7284 * features/riscv/64bit-csr.c: Deleted.
7285 * features/riscv/64bit-csr.xml: Deleted.
7286 * features/riscv/rebuild-csr-xml.sh: Deleted.
7287
7288 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7289
7290 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7291 whitespace error for declaration of names member variable.
7292 (struct riscv_register_feature): Add new prefer_first_name member
7293 variable, and fix whitespace error in declaration of registers.
7294 (riscv_xreg_feature): Initialize prefer_first_name field.
7295 (riscv_freg_feature): Likewise.
7296 (riscv_virtual_feature): Likewise.
7297 (riscv_csr_feature): Likewise.
7298 (riscv_register_name): Expand on comments. Remove register name
7299 modifications for CSR and virtual registers.
7300
7301 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7302
7303 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7304 errors.
7305
7306 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7307
7308 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7309 riscv-opc.h.
7310 (class riscv_pending_register_alias): New class.
7311 (riscv_check_tdesc_feature): Take vector of pending aliases and
7312 populate it as appropriate.
7313 (riscv_setup_register_aliases): Delete.
7314 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7315 to riscv_check_tdesc_feature in all cases. Use the vector to
7316 create the register aliases.
7317
7318 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7319
7320 * sol2-tdep.c (sol2_static_transform_name): Remove.
7321 (sol2_init_abi): Don't register it.
7322 * gdbarch.sh (static_transform_name): Remove.
7323 * gdbarch.c, gdbarch.h: Regenerate.
7324
7325 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7326 gdbarch_static_transform_name.
7327 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7328 * stabsread.c (define_symbol) <'X'>: Remove.
7329 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7330 handling.
7331 <'V'>: Likewise.
7332 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7333 <'S'>: Remove call to gdbarch_static_transform_name.
7334
7335 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7336
7337 * procfs.c (procfs_pre_trace): New function.
7338 (procfs_target::create_inferior): Pass it to fork_inferior.
7339
7340 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7341
7342 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7343 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7344 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7345 sol2-tdep.o, sparc-sol2-tdep.o.
7346 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7347 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7348 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7349 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7350
7351 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7352
7353 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7354 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7355 Call sol2_init_abi.
7356 Remove calls to set_gdbarch_skip_solib_resolver,
7357 set_gdbarch_core_pid_to_str.
7358 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7359 (i386_sol2_static_transform_name): Remove.
7360 (i386_sol2_init_abi): Call sol2_init_abi.
7361 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7362 set_gdbarch_static_transform_name,
7363 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7364 Use sol2_sigtramp_p.
7365 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7366 (sol2_sigtramp_p): New function.
7367 (sol2_static_transform_name): New function.
7368 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7369 (sol2_init_abi): New function.
7370 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7371 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7372 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7373 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7374 (sparc_sol2_static_transform_name): Remove.
7375 (sparc32_sol2_init_abi): Call sol2_init_abi.
7376 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7377 set_gdbarch_static_transform_name,
7378 set_gdbarch_skip_solib_resolver,
7379 set_gdbarch_core_pid_to_str.
7380 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7381 (sparc_sol2_static_transform_name): Remove
7382 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7383 call sol2_sigtramp_p.
7384 (sparc64_sol2_init_abi): Call sol2_init_abi.
7385 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7386 set_gdbarch_static_transform_name,
7387 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7388
7389 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7390
7391 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7392 * exec.c (validate_exec_file): If from_tty, set both
7393 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7394 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7395 and from_tty, unconditionally ask a confirmation.
7396
7397 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7398
7399 * target-descriptions.c (tdesc_architecture_name): Protect against
7400 NULL pointer dereference.
7401 (maint_print_xml_tdesc_cmd): New function.
7402 (_initialize_target_descriptions): Register new 'maint print
7403 xml-tdesc' command and give it the filename completer.
7404 * NEWS: Mention new 'maint print xml-tdesc' command.
7405
7406 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7407
7408 * target-descriptions.c (class tdesc_compatible_info): New class.
7409 (struct target_desc): Change type of compatible vector.
7410 (tdesc_compatible_p): Update for change in type of
7411 target_desc::compatible.
7412 (tdesc_compatible_info_list): New function.
7413 (tdesc_compatible_info_arch_name): New function.
7414 (tdesc_add_compatible): Update for change in type of
7415 target_desc::compatible.
7416 (print_c_tdesc::visit_pre): Likewise.
7417
7418 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7419
7420 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7421 whitespace to underscore.
7422 (maint_print_c_tdesc_cmd): Use fake filename for target
7423 descriptions that came from the target.
7424 (_initialize_target_descriptions): Add filename command completion
7425 for 'maint print c-tdesc'.
7426
7427 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7428
7429 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7430 lines.
7431
7432 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
7433
7434 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7435 lines.
7436 (dwarf2_find_location_expression): Likewise.
7437 (call_site_parameter_matches): Likewise.
7438 (dwarf2_compile_expr_to_ax): Likewise.
7439 (disassemble_dwarf_expression): Likewise.
7440 (loclist_describe_location): Likewise.
7441
7442 2020-06-23 Pedro Alves <palves@redhat.com>
7443
7444 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7445 progspace-and-thread.h. Include scoped-mock-context.h instead.
7446 (register_to_value_test): Use scoped_mock_context.
7447 * regcache.c: Include "scoped-mock-context.h".
7448 (cooked_read_test): Don't error out if a target is already pushed.
7449 Use scoped_mock_context. Adjust.
7450 * scoped-mock-context.h: New file.
7451
7452 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7453
7454 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7455 initializer.
7456 (ada_language::is_string_type_p): New member function.
7457 * c-lang.c (c_language_data): Delete la_is_string_type_p
7458 initializer.
7459 (cplus_language_data): Likewise.
7460 (asm_language_data): Likewise.
7461 (minimal_language_data): Likewise.
7462 * d-lang.c (d_language_data): Likewise.
7463 * f-lang.c (f_is_string_type_p): Delete function, implementation
7464 moved to f_language::is_string_type_p.
7465 (f_language_data): Delete la_is_string_type_p initializer.
7466 (f_language::is_string_type_p): New member function,
7467 implementation from f_is_string_type_p.
7468 * go-lang.c (go_is_string_type_p): Delete function, implementation
7469 moved to go_language::is_string_type_p.
7470 (go_language_data): Delete la_is_string_type_p initializer.
7471 (go_language::is_string_type_p): New member function,
7472 implementation from go_is_string_type_p.
7473 * language.c (language_defn::is_string_type_p): Define new member
7474 function.
7475 (default_is_string_type_p): Make static, add comment copied from
7476 header file.
7477 (unknown_language_data): Delete la_is_string_type_p initializer.
7478 (unknown_language::is_string_type_p): New member function.
7479 (auto_language_data): Delete la_is_string_type_p initializer.
7480 (auto_language::is_string_type_p): New member function.
7481 * language.h (language_data): Delete la_is_string_type_p field.
7482 (language_defn::is_string_type_p): Declare new function.
7483 (default_is_string_type_p): Delete desclaration, move comment to
7484 definition.
7485 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7486 moved to m2_language::is_string_type_p.
7487 (m2_language_data): Delete la_is_string_type_p initializer.
7488 (m2_language::is_string_type_p): New member function,
7489 implementation from m2_is_string_type_p.
7490 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7491 initializer.
7492 * opencl-lang.c (opencl_language_data): Likewise.
7493 * p-lang.c (pascal_is_string_type_p): Delete function,
7494 implementation moved to pascal_language::is_string_type_p.
7495 (pascal_language_data): Delete la_is_string_type_p initializer.
7496 (pascal_language::is_string_type_p): New member function,
7497 implementation from pascal_is_string_type_p.
7498 * rust-lang.c (rust_is_string_type_p): Delete function,
7499 implementation moved to rust_language::is_string_type_p.
7500 (rust_language_data): Delete la_is_string_type_p initializer.
7501 (rust_language::is_string_type_p): New member function,
7502 implementation from rust_is_string_type_p.
7503 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7504 is_string_type_p.
7505
7506 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7507
7508 * ada-lang.c (ada_language_data): Delete la_print_typedef
7509 initializer.
7510 (ada_language::print_typedef): New member function.
7511 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7512 (cplus_language_data): Likewise.
7513 (asm_language_data): Likewise.
7514 (minimal_language_data): Likewise.
7515 * d-lang.c (d_language_data): Likewise.
7516 * f-lang.c (f_language_data): Likewise.
7517 (f_language::print_typedef): New member function.
7518 * go-lang.c (go_language_data): Delete la_print_typedef
7519 initializer.
7520 * language.c (language_defn::print_typedef): Define member
7521 function.
7522 (unknown_language_data): Delete la_print_typedef initializer.
7523 (unknown_language::print_typedef): New member function.
7524 (auto_language_data): Delete la_print_typedef initializer.
7525 (auto_language::print_typedef): New member function.
7526 * language.h (language_data): Delete la_print_typedef field.
7527 (language_defn::print_typedef): Declare new member function.
7528 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7529 (default_print_typedef): Delete declaration.
7530 * m2-lang.c (m2_language_data): Delete la_print_typedef
7531 initializer.
7532 (m2_language::print_typedef): New member function.
7533 * objc-lang.c (objc_language_data): Delete la_print_typedef
7534 initializer.
7535 * opencl-lang.c (opencl_language_data): Likewise.
7536 * p-lang.c (pascal_language_data): Likewise.
7537 (pascal_language::print_typedef): New member function.
7538 * rust-lang.c (rust_print_typedef): Delete function,
7539 implementation moved to rust_language::print_typedef.
7540 (rust_language): Delete la_print_typedef initializer.
7541 (rust_language::print_typedef): New member function,
7542 implementation from rust_print_typedef.
7543 * typeprint.c (default_print_typedef): Delete.
7544
7545 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7546
7547 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7548 (ada_language::printstr): New member function.
7549 * c-lang.c (c_language_data): Delete la_printstr initializer.
7550 (cplus_language_data): Likewise.
7551 (asm_language_data): Likewise.
7552 (minimal_language_data): Likewise.
7553 * d-lang.c (d_language_data): Likewise.
7554 * f-lang.c (f_printstr): Rename to f_language::printstr.
7555 (f_language_data): Delete la_printstr initializer.
7556 (f_language::printstr): New member function, implementation from
7557 f_printstr.
7558 * go-lang.c (go_language_data): Delete la_printstr initializer.
7559 * language.c (language_defn::printstr): Define new member
7560 function.
7561 (unk_lang_printstr): Delete.
7562 (unknown_language_data): Delete la_printstr initializer.
7563 (unknown_language::printstr): New member function.
7564 (auto_language_data): Delete la_printstr initializer.
7565 (auto_language::printstr): New member function.
7566 * language.h (language_data): Delete la_printstr field.
7567 (language_defn::printstr): Declare new member function.
7568 (LA_PRINT_STRING): Update call to printstr.
7569 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7570 (m2_language_data): Delete la_printstr initializer.
7571 (m2_language::printstr): New member function, implementation from
7572 m2_printstr.
7573 * objc-lang.c (objc_language_data): Delete la_printstr
7574 initializer.
7575 * opencl-lang.c (opencl_language_data): Likewise.
7576 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7577 (pascal_language_data): Delete la_printstr initializer.
7578 (pascal_language::printstr): New member function, implementation
7579 from pascal_printstr.
7580 * p-lang.h (pascal_printstr): Delete declaration.
7581 * rust-lang.c (rust_printstr): Update header comment.
7582 (rust_language_data): Delete la_printstr initializer.
7583 (rust_language::printstr): New member function.
7584
7585 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7586
7587 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7588 (ada_language::printchar): New member function.
7589 * c-lang.c (c_language_data): Delete la_printchar initializer.
7590 (cplus_language_data): Likewise.
7591 (asm_language_data): Likewise.
7592 (minimal_language_data): Likewise.
7593 * d-lang.c (d_language_data): Likewise.
7594 * f-lang.c (f_printchar): Rename to f_language::printchar.
7595 (f_language_data): Delete la_printchar initializer.
7596 (f_language::printchar): New member function, implementation from
7597 f_printchar.
7598 * go-lang.c (go_language_data): Delete la_printchar initializer.
7599 * language.c (unk_lang_printchar): Delete.
7600 (language_defn::printchar): Define new member function.
7601 (unknown_language_data): Delete la_printchar initializer.
7602 (unknown_language::printchar): New member function.
7603 (auto_language_data): Delete la_printchar initializer.
7604 (auto_language::printchar): New member function.
7605 * language.h (language_data): Delete la_printchar field.
7606 (language_defn::printchar): Declare new member function.
7607 (LA_PRINT_CHAR): Update call to printchar.
7608 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7609 (m2_language::printchar): New member function.
7610 * objc-lang.c (objc_language_data): Delete la_printchar
7611 initializer.
7612 * opencl-lang.c (opencl_language_data): Likewise.
7613 * p-lang.c (pascal_language_data): Delete la_printchar
7614 initializer.
7615 (pascal_language::printchar): New member function.
7616 * rust-lang.c (rust_printchar): Rename to
7617 rust_language::printchar.
7618 (rust_language_data): Delete la_printchar initializer.
7619 (rust_language::printchar): New member function, implementation
7620 from rust_printchar.
7621
7622 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7623
7624 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7625 (ada_language_data): Delete la_emitchar initializer.
7626 (ada_language::emitchar): New member function, implementation from
7627 emit_char.
7628 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7629 (cplus_language_data): Likewise.
7630 (asm_language_data): Likewise.
7631 (minimal_language_data): Likewise.
7632 * d-lang.c (d_language_data): Likewise.
7633 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7634 (f_language_data): Delete la_emitchar initializer.
7635 (f_language::emitchar): New member function, implementation from
7636 f_emit_char.
7637 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7638 * language.c (unk_lang_emit_char): Delete.
7639 (language_defn::emitchar): New member function definition.
7640 (unknown_language_data): Delete la_emitchar initializer.
7641 (unknown_language::emitchar): New member function.
7642 (auto_language_data): Delete la_emitchar initializer.
7643 (auto_language::emitchar): New member function.
7644 * language.h (language_data): Delete la_emitchar field.
7645 (language_defn::emitchar): New member field declaration.
7646 (LA_EMIT_CHAR): Update call to emitchar.
7647 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7648 (m2_language_data): Delete la_emitchar initializer.
7649 (m2_language::emitchar): New member function, implementation from
7650 m2_emit_char.
7651 * objc-lang.c (objc_language_data): Delete la_emitchar
7652 initializer.
7653 * opencl-lang.c (opencl_language_data): Likewise.
7654 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7655 (pascal_language_data): Delete la_emitchar initializer.
7656 (pascal_language::emitchar): New member function, implementation
7657 from pascal_emit_char.
7658 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7659 (rust_language_data): Delete la_emitchar initializer.
7660 (rust_language::emitchar): New member function, implementation
7661 from rust_emitchar.
7662
7663 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7664
7665 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7666 (ada_language_data): Delete la_post_parser initializer.
7667 (ada_language::post_parser): New member function.
7668 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7669 (cplus_language_data): Likewise.
7670 (asm_language_data): Likewise.
7671 (minimal_language_data): Likewise.
7672 * d-lang.c (d_language_data): Likewise.
7673 * f-lang.c (f_language_data): Likewise.
7674 * go-lang.c (go_language_data): Likewise.
7675 * language.c (unknown_language_data): Likewise.
7676 (auto_language_data): Likewise.
7677 * language.h (language_data): Delete la_post_parser field.
7678 (language_defn::post_parser): New member function.
7679 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7680 * objc-lang.c (objc_language_data): Likewise.
7681 * opencl-lang.c (opencl_language_data): Likewise.
7682 * p-lang.c (pascal_language_data): Likewise.
7683 * parse.c (parse_exp_in_context): Update call to post_parser.
7684 (null_post_parser): Delete definition.
7685 * parser-defs.h (null_post_parser): Delete declaration.
7686 * rust-lang.c (rust_language_data): Delete la_post_parser
7687 initializer.
7688
7689 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7690
7691 * ada-lang.c (parse): Rename to ada_language::parser.
7692 (ada_language_data): Delete la_parser initializer.
7693 (ada_language::parser): New member function, implementation from
7694 parse.
7695 * c-lang.c (c_language_data): Delete la_parser initializer.
7696 (cplus_language_data): Likewise.
7697 (asm_language_data): Likewise.
7698 (minimal_language_data): Likewise.
7699 * d-lang.c (d_language_data): Likewise.
7700 (d_language::parser): New member function.
7701 * f-lang.c (f_language_data): Delete la_parser initializer.
7702 (f_language::parser): New member function.
7703 * go-lang.c (go_language_data): Delete la_parser initializer.
7704 (go_language::parser): New member function.
7705 * language.c (unk_lang_parser): Delete.
7706 (language_defn::parser): Define new member function.
7707 (unknown_language_data): Delete la_parser initializer.
7708 (unknown_language::parser): New member function.
7709 (auto_language_data): Delete la_parser initializer.
7710 (auto_language::parser): New member function.
7711 * language.h (language_data): Delete la_parser field.
7712 (language_defn::parser): Declare new member function.
7713 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7714 (m2_language::parser): New member function.
7715 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7716 * opencl-lang.c (opencl_language_data): Likewise.
7717 * p-lang.c (pascal_language_data): Likewise.
7718 (pascal_language::parser): New member function.
7719 * parse.c (parse_exp_in_context): Update call to parser.
7720 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7721 (rust_language::parser): New member function.
7722
7723 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7724
7725 * top.c (print_gdb_configuration): Print --with-python-libdir
7726 configuration value.
7727
7728 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7729
7730 * NEWS: Mention change to the alias command.
7731
7732 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7733
7734 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7735 (alias_command_completer)
7736 (make_alias_options_def_group): New functions.
7737 (alias_opts, alias_option_defs): New struct and array.
7738 (alias_usage_error): Update usage.
7739 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7740 Use option framework.
7741 (_initialize_cli_cmds): Update alias command help.
7742 Update aliases command help.
7743 (show_user):
7744 Add NULL for new default_args lookup_cmd argument.
7745 (valid_command_p): Rename to validate_aliased_command.
7746 Add NULL for new default_args lookup_cmd argument. Verify that the
7747 aliased_command has no default args.
7748 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7749 (lookup_cmd_1, lookup_cmd): New argument default_args.
7750 (add_alias_cmd):
7751 Add NULL for new default_args lookup_cmd argument.
7752 (print_help_for_command): Show default args under the layout
7753 alias some_alias = some_aliased_cmd some_alias_default_arg.
7754 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7755 xfree default_args in destructor.
7756 * cli/cli-script.c (process_next_line, do_define_command):
7757 Add NULL for new default_args lookup_cmd argument.
7758 * command.h: Declare new default_args argument in lookup_cmd
7759 and lookup_cmd_1.
7760 * completer.c (complete_line_internal_1):
7761 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7762 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7763 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7764 Likewise.
7765 * infcmd.c (_initialize_infcmd): Likewise.
7766 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7767 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7768 * python/py-param.c (add_setshow_generic): Likewise.
7769 * remote.c (_initialize_remote): Likewise.
7770 * top.c (execute_command): Prepend default_args if command has some.
7771 (set_verbose):
7772 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7773 * tracepoint.c (validate_actionline, encode_actions_1):
7774 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7775
7776 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7777
7778 * jit.c (jit_read_descriptor): Use bool as the return type.
7779 (jit_breakpoint_re_set_internal): Use bool as the return type.
7780 Invert the return value logic; return true if the jit breakpoint
7781 has been successfully initialized.
7782 (jit_inferior_init): Update the call to
7783 jit_breakpoint_re_set_internal.
7784
7785 2020-06-22 Pedro Alves <palves@redhat.com>
7786
7787 PR gdb/25939
7788 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7789 Use the current inferior instead. Don't return
7790 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7791 wait again.
7792 * sol-thread.c (sol_thread_target::wait): Don't reference
7793 inferior_ptid.
7794 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7795 (sol_update_thread_list_callback): Use the current inferior's pid
7796 instead of inferior_ptid.
7797
7798 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7799
7800 * procfs.c: Cleanup many comments.
7801
7802 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7803 (AFTER_WATCHFLAG): Replace by value.
7804
7805 (MAIN_PROC_NAME_FORMAT): Inline ...
7806 (create_procinfo): ... here.
7807
7808 (procfs_debug_inferior): Remove SYS_exec handling.
7809 (syscall_is_exec): Likewise.
7810 (procfs_set_exec_trap): Likewise.
7811
7812 (syscall_is_lwp_exit): Inline in callers.
7813 (syscall_is_exit): Likewise.
7814 (syscall_is_exec): Likewise.
7815 (syscall_is_lwp_create): Likewise.
7816
7817 (invalidate_cache): Remove #if 0 code.
7818
7819 (make_signal_thread_runnable): Remove.
7820 (procfs_target::resume): Remove #if 0 code.
7821
7822 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7823
7824 PR gdb/25939
7825 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7826 call ...
7827 (procfs_target::create_inferior): ... here.
7828
7829 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7830
7831 * exec.c (validate_exec_file): Ensure the build-id is up to
7832 date by calling reopen_exec_file (that checks file timestamp
7833 to decide to re-read the file).
7834
7835 2020-06-18 Pedro Alves <palves@redhat.com>
7836
7837 PR gdb/25412
7838 * gdbthread.h (delete_thread, delete_thread_silent)
7839 (find_thread_ptid): Update comments.
7840 * thread.c (current_thread_): New global.
7841 (is_current_thread): Move higher, and reimplement.
7842 (inferior_thread): Reimplement.
7843 (set_thread_exited): Use bool. Add assertions.
7844 (add_thread_silent): Simplify thread-reuse handling by always
7845 calling delete_thread.
7846 (delete_thread): Remove intro comment.
7847 (find_thread_ptid): Skip exited threads.
7848 (switch_to_thread_no_regs): Write to current_thread_.
7849 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7850 INFERIOR_PTID. Clear current_thread_.
7851
7852 2020-06-18 Pedro Alves <palves@redhat.com>
7853
7854 * aix-thread.c (pd_update): Use switch_to_thread.
7855
7856 2020-06-18 Pedro Alves <palves@redhat.com>
7857
7858 * ravenscar-thread.c (ravenscar_thread_target): Update.
7859 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7860 (ravenscar_thread_target::add_active_thread): ... this. Don't
7861 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7862 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7863
7864 2020-06-18 Pedro Alves <palves@redhat.com>
7865
7866 * nat/windows-nat.c (current_windows_thread): Remove.
7867 * nat/windows-nat.h (current_windows_thread): Remove.
7868 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7869 Adjust.
7870 (display_selectors): Adjust to fetch the current
7871 windows_thread_info based on inferior_ptid.
7872 (fake_create_process): No longer write to current_windows_thread.
7873 (windows_nat_target::get_windows_debug_event):
7874 Don't set inferior_ptid or current_windows_thread.
7875 (windows_nat_target::wait): Adjust to not rely on
7876 current_windows_thread.
7877 (do_initial_windows_stuff): Now a method of windows_nat_target.
7878 Switch to the last_ptid thread.
7879 (windows_nat_target::attach): Adjust.
7880 (windows_nat_target::detach): Use switch_to_no_thread instead of
7881 writing to inferior_ptid directly.
7882 (windows_nat_target::create_inferior): Adjust.
7883
7884 2020-06-18 Pedro Alves <palves@redhat.com>
7885
7886 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7887
7888 2020-06-18 Pedro Alves <palves@redhat.com>
7889
7890 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7891 after creating it, instead of writing to inferior_ptid. Don't
7892 write to inferior_ptid.
7893
7894 2020-06-18 Pedro Alves <palves@redhat.com>
7895
7896 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7897
7898 2020-06-18 Pedro Alves <palves@redhat.com>
7899
7900 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7901 it, instead of writing to inferior_ptid.
7902
7903 2020-06-18 Pedro Alves <palves@redhat.com>
7904
7905 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7906 to inferior_ptid.
7907
7908 2020-06-18 Pedro Alves <palves@redhat.com>
7909
7910 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7911 instead of writing to inferior_ptid directly.
7912
7913 2020-06-18 Pedro Alves <palves@redhat.com>
7914
7915 * corelow.c (core_target::close): Use switch_to_no_thread instead
7916 of writing to inferior_ptid directly.
7917 (add_to_thread_list, core_target_open): Use switch_to_thread
7918 instead of writing to inferior_ptid directly.
7919
7920 2020-06-18 Pedro Alves <palves@redhat.com>
7921
7922 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7923 inferior_ptid.
7924 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7925 inferior_ptid.
7926 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7927 inferior_ptid directly.
7928 (darwin_nat_target::init_thread_list): Switch to thread, instead
7929 of writing to inferior_ptid.
7930 (darwin_nat_target::attach): Don't write to inferior_ptid.
7931 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7932
7933 2020-06-18 Pedro Alves <palves@redhat.com>
7934
7935 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7936 thread.
7937 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7938 Instead use switch_to_thread.
7939 (gnu_nat_target::detach): Use switch_to_no_thread
7940 instead of writing to inferior_ptid directly. Used passed-in
7941 inferior instead of looking up the inferior by pid.
7942
7943 2020-06-18 Pedro Alves <palves@redhat.com>
7944
7945 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7946 inferior_ptid.
7947
7948 2020-06-18 Pedro Alves <palves@redhat.com>
7949
7950 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7951 inferior_ptid.
7952 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7953 thread.
7954 (nto_procfs_target::detach): Avoid referencing
7955 inferior_ptid. Use switch_to_no_thread instead of writing to
7956 inferior_ptid directly.
7957 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7958 instead of writing to inferior_ptid directly.
7959 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7960 to thread.
7961
7962 2020-06-18 Pedro Alves <palves@redhat.com>
7963
7964 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7965 after creating it, instead of writing to inferior_ptid.
7966 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7967 to inferior_ptid directly.
7968 (gdbsim_target::wait): Don't write to inferior_ptid.
7969
7970 2020-06-18 Pedro Alves <palves@redhat.com>
7971
7972 * remote.c (remote_target::remote_notice_new_inferior): Use
7973 switch_to_thread instead of writing to inferior_ptid directly.
7974 (remote_target::add_current_inferior_and_thread): Use
7975 switch_to_no_thread instead of writing to inferior_ptid directly.
7976 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7977 and switch_to_thread instead of using set_current_inferior or
7978 writing to inferior_ptid directly.
7979
7980 2020-06-18 Pedro Alves <palves@redhat.com>
7981
7982 * tracectf.c (ctf_target_open): Switch to added thread instead of
7983 writing to inferior_ptid directly.
7984 (ctf_target::close): Use switch_to_no_thread instead of writing to
7985 inferior_ptid directly.
7986
7987 2020-06-18 Pedro Alves <palves@redhat.com>
7988
7989 * tracefile-tfile.c (tfile_target_open): Don't write to
7990 inferior_ptid directly, instead switch to added thread.
7991 (tfile_target::close): Use switch_to_no_thread instead of writing
7992 to inferior_ptid directly.
7993
7994 2020-06-18 Pedro Alves <palves@redhat.com>
7995
7996 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7997 (procfs_target::detach): Use switch_to_no_thread
7998 instead of writing to inferior_ptid directly.
7999 (do_attach): Change return type to void. Switch to the added
8000 thread.
8001 (procfs_target::create_inferior): Switch to the added thread.
8002 (procfs_do_thread_registers): Don't write to inferior_ptid.
8003
8004 2020-06-18 Pedro Alves <palves@redhat.com>
8005
8006 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8007 of writing to inferior_ptid.
8008 (scoped_restore_exited_inferior): Delete.
8009 (handle_vfork_child_exec_or_exit): Simplify using
8010 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8011 instead of writing to inferior_ptid.
8012 (THREAD_STOPPED_BY): Delete.
8013 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8014 (thread_stopped_by_hw_breakpoint): Delete.
8015 (save_waitstatus): Use
8016 scoped_restore_current_thread+switch_to_thread, and call
8017 target_stopped_by_watchpoint instead of
8018 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8019 instead of thread_stopped_by_sw_breakpoint, and
8020 target_stopped_by_hw_breakpoint instead of
8021 thread_stopped_by_hw_breakpoint.
8022 (handle_inferior_event)
8023 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8024 inferior_ptid directly, nor
8025 set_current_inferior/set_current_program_space. Use
8026 switch_to_thread / switch_to_inferior_no_thread instead.
8027
8028 2020-06-18 Pedro Alves <palves@redhat.com>
8029
8030 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8031 instead of writing to inferior_ptid.
8032
8033 2020-06-18 Pedro Alves <palves@redhat.com>
8034
8035 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8036 added thread.
8037 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8038 to the added thread.
8039 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8040 instead of writing to inferior_ptid.
8041
8042 2020-06-18 Pedro Alves <palves@redhat.com>
8043
8044 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8045 (register_to_value_test): Mock a program_space too. Heap-allocate
8046 the address space. Don't write to inferior_ptid. Use
8047 switch_to_thread instead.
8048
8049 2020-06-18 Pedro Alves <palves@redhat.com>
8050
8051 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8052 Delete.
8053 (find_signalled_thread()): New, factored out from
8054 linux_make_corefile_notes and adjusted to handle exited threads.
8055 (linux_make_corefile_notes): Adjust to use the new
8056 find_signalled_thread.
8057
8058 2020-06-18 Pedro Alves <palves@redhat.com>
8059
8060 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8061 of saving/restoring inferior_ptid.
8062
8063 2020-06-17 Tom Tromey <tom@tromey.com>
8064
8065 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8066 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8067 declare.
8068 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8069
8070 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8071
8072 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8073 of partial symtabs.
8074
8075 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8076
8077 * regformats/reg-arm.dat: Remove.
8078 * regformats/reg-bfin.dat: Remove.
8079 * regformats/reg-cris.dat: Remove.
8080 * regformats/reg-crisv32.dat: Remove.
8081 * regformats/reg-m32r.dat: Remove.
8082 * regformats/reg-tilegx.dat: Remove.
8083 * regformats/reg-tilegx32.dat: Remove.
8084
8085 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8086
8087 * features/Makefile (WHICH): Remove arm files.
8088 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8089 * regformats/arm/arm-with-neon.dat: Remove.
8090 * regformats/arm/arm-with-vfpv2.dat: Remove.
8091 * regformats/arm/arm-with-vfpv3.dat: Remove.
8092
8093 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8094
8095 * features/Makefile (XMLTOC): Remove rx.xml.
8096
8097 2020-06-17 Pedro Alves <palves@redhat.com>
8098
8099 * gdbthread.h (thread_control_state) <trap_expected> Update
8100 comments.
8101
8102 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8103
8104 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8105 ada_language::lookup_symbol_nonlocal.
8106 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8107 (ada_language::lookup_symbol_nonlocal): New member function,
8108 implementation from ada_lookup_symbol_nonlocal.
8109 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8110 initializer.
8111 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8112 initializer.
8113 (cplus_language::lookup_symbol_nonlocal): New member function.
8114 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8115 (minimal_language_data) Likewise.
8116 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8117 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8118 initializer.
8119 (d_language::lookup_symbol_nonlocal): New member function.
8120 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8121 initializer.
8122 (f_language::lookup_symbol_nonlocal): New member function.
8123 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8124 initializer.
8125 * language.c (unknown_language_data): Likewise.
8126 (auto_language_data): Likewise.
8127 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8128 field.
8129 (language_defn::lookup_symbol_nonlocal): New member function.
8130 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8131 initializer.
8132 * objc-lang.c (objc_language_data): Likewise.
8133 * opencl-lang.c (opencl_language_data): Likewise.
8134 * p-lang.c (pascal_language_data): Likewise.
8135 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8136 rust_language::lookup_symbol_nonlocal.
8137 (rust_language_data): Delete la_lookup_symbol_nonlocal
8138 initializer.
8139 (rust_language::lookup_symbol_nonlocal): New member function,
8140 implementation from rust_lookup_symbol_nonlocal.
8141 * symtab.c (lookup_symbol_aux): Update call to
8142 lookup_symbol_nonlocal.
8143 (basic_lookup_symbol_nonlocal): Rename to...
8144 (language_defn::lookup_symbol_nonlocal): ...this, and update
8145 header comment. Remove language_defn parameter, and replace with
8146 uses of `this'.
8147 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8148
8149 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8150
8151 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8152 initializer.
8153 (ada_language::value_print_inner): New member function.
8154 * c-lang.c (c_language_data): Delete la_value_print_inner
8155 initializer.
8156 (cplus_language_data): Likewise.
8157 (asm_language_data): Likewise.
8158 (minimal_language_data): Likewise.
8159 * d-lang.c (d_language_data): Likewise.
8160 (d_language::value_print_inner): New member function.
8161 * f-lang.c (f_language_data): Delete la_value_print_inner
8162 initializer.
8163 (f_language::value_print_inner): New member function.
8164 * f-lang.h (f_value_print_innner): Rename to...
8165 (f_value_print_inner): ...this (note spelling of 'inner').
8166 * f-valprint.c (f_value_print_innner): Rename to...
8167 (f_value_print_inner): ...this (note spelling of 'inner').
8168 * go-lang.c (go_language_data): Delete la_value_print_inner
8169 initializer.
8170 (go_language::value_print_inner): New member function.
8171 * language.c (language_defn::value_print_inner): Define new member
8172 function.
8173 (unk_lang_value_print_inner): Delete.
8174 (unknown_language_data): Delete la_value_print_inner initializer.
8175 (unknown_language::value_print_inner): New member function.
8176 (auto_language_data): Delete la_value_print_inner initializer.
8177 (auto_language::value_print_inner): New member function.
8178 * language.h (language_data): Delete la_value_print_inner field.
8179 (language_defn::value_print_inner): Delcare new member function.
8180 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8181 initializer.
8182 (m2_language::value_print_inner): New member function.
8183 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8184 initializer.
8185 * opencl-lang.c (opencl_language_data): Likewise.
8186 * p-lang.c (pascal_language_data): Likewise.
8187 (pascal_language::value_print_inner): New member function.
8188 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8189 initializer.
8190 (rust_language::value_print_inner): New member function.
8191 * valprint.c (do_val_print): Update call to value_print_inner.
8192
8193 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8194
8195 * ada-lang.c (ada_language_data): Delete la_value_print
8196 initializer.
8197 (ada_language::value_print): New member function.
8198 * c-lang.c (c_language_data): Delete la_value_print initializer.
8199 (cplus_language_data): Likewise.
8200 (asm_language_data): Likewise.
8201 (minimal_language_data): Likewise.
8202 * d-lang.c (d_language_data): Likewise.
8203 * f-lang.c (f_language_data): Likewise.
8204 * go-lang.c (go_language_data): Likewise.
8205 * language.c (unk_lang_value_print): Delete.
8206 (language_defn::value_print): Define new member function.
8207 (unknown_language_data): Delete la_value_print initializer.
8208 (unknown_language::value_print): New member function.
8209 (auto_language_data): Delete la_value_print initializer.
8210 (auto_language::value_print): New member function.
8211 * language.h (language_data): Delete la_value_print field.
8212 (language_defn::value_print): Declare new member function.
8213 (LA_VALUE_PRINT): Update call to value_print.
8214 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8215 * objc-lang.c (objc_language_data): Likewise.
8216 * opencl-lang.c (opencl_language_data): Likewise.
8217 * p-lang.c (pascal_language_data): Likewise.
8218 (pascal_language::value_print): New member function.
8219 * rust-lang.c (rust_language_data): Delete la_value_print
8220 initializer.
8221
8222 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8223
8224 * ada-lang.c (ada_watch_location_expression): Rename to
8225 ada_language::watch_location_expression.
8226 (ada_language_data): Delete la_watch_location_expression
8227 initializer.
8228 (ada_language::watch_location_expression): New member function,
8229 implementation from ada_watch_location_expression.
8230 * breakpoint.c (watch_command_1): Update call to
8231 watch_location_expression.
8232 * c-lang.c (c_watch_location_expression): Rename to
8233 language_defn::watch_location_expression.
8234 (c_language_data): Delete la_watch_location_expression
8235 initializer.
8236 (cplus_language_data): Likewise.
8237 (asm_language_data): Likewise.
8238 (minimal_language_data): Likewise.
8239 * c-lang.h (c_watch_location_expression): Delete declaration.
8240 * d-lang.c (d_language_data): Delete la_watch_location_expression
8241 initializer.
8242 * f-lang.c (f_language_data): Likewise.
8243 * go-lang.c (go_language_data): Likewise.
8244 * language.c (language_defn::watch_location_expression): Member
8245 function implementation from c_watch_location_expression.
8246 (unknown_language_data): Delete la_watch_location_expression
8247 initializer.
8248 (auto_language_data): Likewise.
8249 * language.h (language_data): Delete la_watch_location_expression
8250 field.
8251 (language_defn::watch_location_expression): Declare new member
8252 function.
8253 * m2-lang.c (m2_language_data): Delete
8254 la_watch_location_expression initializer.
8255 * objc-lang.c (objc_language_data): Likewise.
8256 * opencl-lang.c (opencl_language_data): Likewise.
8257 * p-lang.c (pascal_language_data): Likewise.
8258 * rust-lang.c (rust_watch_location_expression): Rename to
8259 rust_language::watch_location_expression.
8260 (rust_language_data): Delete la_watch_location_expression
8261 initializer.
8262 (rust_language::watch_location_expression): New member function,
8263 implementation from rust_watch_location_expression.
8264
8265 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8266
8267 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8268 ada_language::collect_symbol_completion_matches.
8269 (ada_language_data): Delete la_collect_symbol_completion_matches
8270 initializer.
8271 (ada_language::collect_symbol_completion_matches): New member
8272 function, implementation from
8273 ada_collect_symbol_completion_matches.
8274 * c-lang.c (c_language_data): Delete
8275 la_collect_symbol_completion_matches initializer.
8276 (cplus_language_data): Likewise.
8277 (asm_language_data): Likewise.
8278 (minimal_language_data): Likewise.
8279 * d-lang.c (d_language_data): Likewise.
8280 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8281 f_language::collect_symbol_completion_matches.
8282 (f_language_data): Delete la_collect_symbol_completion_matches
8283 initializer.
8284 (f_language::collect_symbol_completion_matches) New member
8285 function, implementation from f_collect_symbol_completion_matches.
8286 * go-lang.c (go_language_data): Delete
8287 la_collect_symbol_completion_matches initializer.
8288 * language.c (unknown_language_data): Likewise.
8289 (auto_language_data): Likewise.
8290 * language.h (language_data): Delete
8291 la_collect_symbol_completion_matches field.
8292 (language_defn::collect_symbol_completion_matches): New member
8293 function.
8294 * m2-lang.c (m2_language_data): Delete
8295 la_collect_symbol_completion_matches initializer.
8296 * objc-lang.c (objc_language_data): Likewise.
8297 * opencl-lang.c (opencl_language_data): Likewise.
8298 * p-lang.c (pascal_language_data): Likewise.
8299 * rust-lang.c (rust_language_data): Likewise.
8300 * symtab.c (default_collect_symbol_completion_matches): Delete.
8301 (collect_symbol_completion_matches): Update call to
8302 collect_symbol_completion_matches.
8303 (collect_symbol_completion_matches_type): Likewise.
8304 * symtab.h (default_collect_symbol_completion_matches): Delete
8305 declaration.
8306
8307 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8308
8309 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8310 (ada_language_data): Delete la_word_break_characters initializer.
8311 (ada_language::word_break_characters): New member function.
8312 * c-lang.c (c_language_data): Delete la_word_break_characters
8313 initializer.
8314 (cplus_language_data): Likewise.
8315 (asm_language_data): Likewise.
8316 (minimal_language_data): Likewise.
8317 * completer.c: Update global comment.
8318 (advance_to_expression_complete_word_point): Update call to
8319 word_break_characters.
8320 (complete_files_symbols): Likewise.
8321 (complete_line_internal_1): Likewise.
8322 (default_completer_handle_brkchars): Likewise.
8323 (skip_quoted_chars): Likewise.
8324 * d-lang.c (d_language_data): Delete la_word_break_characters
8325 initializer.
8326 * f-lang.c (f_word_break_characters): Delete.
8327 (f_language_data): Delete la_word_break_characters initializer.
8328 (f_language::word_break_characters): New member function.
8329 * go-lang.c (go_language_data): Delete la_word_break_characters
8330 initializer.
8331 * language.c (unknown_language_data): Likewise.
8332 (auto_language_data): Likewise.
8333 * language.h (default_word_break_characters): Move declaration to
8334 earlier in the file.
8335 (language_data): Delete la_word_break_characters field.
8336 (language_defn::word_break_characters): New member function.
8337 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8338 initializer.
8339 * objc-lang.c (objc_language_data): Likewise.
8340 * opencl-lang.c (opencl_language_data): Likewise.
8341 * p-lang.c (pascal_language_data): Likewise.
8342 * rust-lang.c (rust_language_data): Likewise.
8343
8344 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8345
8346 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8347 (ada_language_data): Delete la_get_symbol_name_matcher
8348 initializer.
8349 (language_defn::get_symbol_name_matcher_inner): New member
8350 function.
8351 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8352 initializer.
8353 (cplus_language_data): Likewise.
8354 (cplus_language::get_symbol_name_matcher_inner): New member
8355 function.
8356 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8357 (minimal_language_data): Likewise.
8358 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8359 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8360 initializer.
8361 * dictionary.c (iter_match_first_hashed): Update call to
8362 get_symbol_name_matcher.
8363 (iter_match_next_hashed): Likewise.
8364 (iter_match_next_linear): Likewise.
8365 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8366 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8367 initializer.
8368 (f_language::get_symbol_name_matcher_inner): New member function.
8369 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8370 initializer.
8371 * language.c (default_symbol_name_matcher): Update header comment,
8372 make static.
8373 (language_defn::get_symbol_name_matcher): New definition.
8374 (language_defn::get_symbol_name_matcher_inner): Likewise.
8375 (get_symbol_name_matcher): Delete.
8376 (unknown_language_data): Delete la_get_symbol_name_matcher
8377 initializer.
8378 (auto_language_data): Likewise.
8379 * language.h (language_data): Delete la_get_symbol_name_matcher
8380 field.
8381 (language_defn::get_symbol_name_matcher): New member function.
8382 (language_defn::get_symbol_name_matcher_inner): Likewise.
8383 (default_symbol_name_matcher): Delete declaration.
8384 * linespec.c (find_methods): Update call to
8385 get_symbol_name_matcher.
8386 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8387 initializer.
8388 * minsyms.c (lookup_minimal_symbol): Update call to
8389 get_symbol_name_matcher.
8390 (iterate_over_minimal_symbols): Likewise.
8391 * objc-lang.c (objc_language_data): Delete
8392 la_get_symbol_name_matcher initializer.
8393 * opencl-lang.c (opencl_language_data): Likewise.
8394 * p-lang.c (pascal_language_data): Likewise.
8395 * psymtab.c (psymbol_name_matches): Update call to
8396 get_symbol_name_matcher.
8397 * rust-lang.c (rust_language_data): Delete
8398 la_get_symbol_name_matcher initializer.
8399 * symtab.c (symbol_matches_search_name): Update call to
8400 get_symbol_name_matcher.
8401 (compare_symbol_name): Likewise.
8402
8403 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8404
8405 * ada-lang.c (ada_language_data): Delete la_compute_program
8406 initializer.
8407 * c-lang.c (c_language_data): Likewise.
8408 (c_language::compute_program): New member function.
8409 (cplus_language_data): Delete la_compute_program initializer.
8410 (cplus_language::compute_program): New member function.
8411 (asm_language_data): Delete la_compute_program initializer.
8412 (minimal_language_data): Likewise.
8413 * c-lang.h (c_compute_program): Update comment.
8414 (cplus_compute_program): Likewise.
8415 * compile/compile-c-support.c (c_compute_program): Likewise.
8416 (cplus_compute_program): Likewise.
8417 * compile/compile.c (compile_to_object): Update call to
8418 la_compute_program.
8419 * d-lang.c (d_language_data): Delete la_compute_program
8420 initializer.
8421 * f-lang.c (f_language_data): Likewise.
8422 * go-lang.c (go_language_data): Likewise.
8423 * language.c (unknown_language_data): Likewise.
8424 (auto_language_data): Likewise.
8425 * language.h (language_data): Delete la_compute_program field.
8426 (language_defn::compute_program): New member function.
8427 * m2-lang.c (m2_language_data): Delete la_compute_program
8428 initializer.
8429 * objc-lang.c (objc_language_data): Likewise.
8430 * opencl-lang.c (opencl_language_data): Likewise.
8431 * p-lang.c (pascal_language_data): Likewise.
8432 * rust-lang.c (rust_language_data): Likewise.
8433
8434 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8435
8436 * ada-lang.c (ada_language_data) Delete
8437 la_class_name_from_physname initializer.
8438 * c-lang.c (c_language_data): Likewise.
8439 (cplus_language_data): Likewise.
8440 (cplus_language::class_name_from_physname): New member function.
8441 (asm_language_data): Delete la_class_name_from_physname
8442 initializer.
8443 (minimal_language_data): Likewise.
8444 * d-lang.c (d_language_data): Likewise.
8445 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8446 method on language_defn class.
8447 (guess_full_die_structure_name): Likewise.
8448 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8449 initializer.
8450 * go-lang.c (go_language_data): Likewise.
8451 * language.c (language_class_name_from_physname): Delete.
8452 (unk_lang_class_name): Delete.
8453 (unknown_language_data): Delete la_class_name_from_physname
8454 initializer.
8455 (auto_language_data): Likewise.
8456 * language.h (language_data): Delete la_class_name_from_physname
8457 field.
8458 (language_defn::class_name_from_physname): New function.
8459 (language_class_name_from_physname): Delete declaration.
8460 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8461 initializer.
8462 * objc-lang.c (objc_language_data): Likewise.
8463 * opencl-lang.c (opencl_language_data): Likewise.
8464 * p-lang.c (pascal_language_data): Likewise.
8465 * rust-lang.c (rust_language_data): Likewise.
8466
8467 2020-06-16 Tom Tromey <tom@tromey.com>
8468
8469 * tui/tui-data.h (STATUS_NAME): New macro.
8470 * tui/tui-layout.c (tui_remove_some_windows)
8471 (initialize_known_windows, tui_register_window)
8472 (tui_layout_split::remove_windows, initialize_layouts)
8473 (tui_new_layout_command): Don't use hard-coded window names.
8474
8475 2020-06-16 Tom Tromey <tom@tromey.com>
8476
8477 PR tui/25348:
8478 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8479 tui_initialize_readline. Only run once. Call rl_initialize.
8480 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8481 tui_initialize_readline.
8482 * tui/tui-io.c (tui_setup_io): Call
8483 tui_ensure_readline_initialized.
8484 * tui/tui-interp.c (tui_interp::init): Update.
8485
8486 2020-06-16 Tom Tromey <tom@tromey.com>
8487
8488 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8489 Also preserve the status window.
8490
8491 2020-06-16 Tom Tromey <tom@tromey.com>
8492
8493 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8494 where m_window==nullptr.
8495
8496 2020-06-15 Tom Tromey <tromey@adacore.com>
8497
8498 * windows-nat.c (windows_nat::handle_output_debug_string):
8499 Update.
8500 (windows_nat::handle_ms_vc_exception): Update.
8501 * target.h (target_read_string): Change API.
8502 * target.c (target_read_string): Change API.
8503 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8504 Update.
8505 * solib-frv.c (frv_current_sos): Update.
8506 * solib-dsbt.c (dsbt_current_sos): Update.
8507 * solib-darwin.c (darwin_current_sos): Update.
8508 * linux-thread-db.c (inferior_has_bug): Update.
8509 * expprint.c (print_subexp_standard): Update.
8510 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8511 (ada_exception_message_1): Update.
8512
8513 2020-06-15 Tom Tromey <tromey@adacore.com>
8514
8515 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8516
8517 2020-06-15 Tom Tromey <tromey@adacore.com>
8518
8519 * valprint.c (read_string): Update comment.
8520 * target.c (MIN): Remove.
8521 (target_read_string): Rewrite.
8522
8523 2020-06-15 Tom Tromey <tromey@adacore.com>
8524
8525 * corefile.c (read_memory_string): Remove.
8526 * ada-valprint.c (ada_value_print_ptr): Update.
8527 * ada-lang.h (ada_tag_name): Change return type.
8528 * ada-lang.c (type_from_tag): Update.
8529 (ada_tag_name_from_tsd): Change return type. Use
8530 target_read_string.
8531 (ada_tag_name): Likewise.
8532 * gdbcore.h (read_memory_string): Don't declare.
8533
8534 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
8535
8536 * symtab.c (rbreak_command): Ignore Windows drive colon.
8537
8538 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8539
8540 * NEWS: Mention removed GDBserver host support.
8541
8542 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
8543
8544 * features/riscv/rebuild-csr-xml.sh: Updated.
8545
8546 2020-06-11 Tom Tromey <tom@tromey.com>
8547
8548 PR gdb/18318:
8549 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8550
8551 2020-06-09 Jonny Grant <jg@jguk.org>
8552 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8553
8554 * main.c (captured_main_1): Don't print new line after help.
8555 (print_gdb_help): add mailing list and IRC channel information
8556 to --help. Add new lines between items in the footer. Remove
8557 quotes around bug url.
8558
8559 2020-06-11 Keith Seitz <keiths@redhat.com>
8560
8561 PR gdb/21356
8562 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8563 Resolve typedefs for type length calculations.
8564
8565 2020-06-10 Tom de Vries <tdevries@suse.de>
8566
8567 PR ada/24713
8568 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8569 (write_psymbols): Enable .gdb_index for ada.
8570 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8571 ada.
8572
8573 2020-06-10 Tom de Vries <tdevries@suse.de>
8574
8575 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8576 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8577 namei" instead of "const char *name" argument.
8578 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8579 dw2_symtab_iter_init.
8580
8581 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8582
8583 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8584 to use type::field and field::type instead.
8585
8586 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8587
8588 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8589 to use field::type instead.
8590
8591 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8592
8593 * gdbtypes.h (struct field) <type, set_type>: New methods.
8594 Rename `type` field to...
8595 <m_type>: ... this. Change references throughout to use type or
8596 set_type methods.
8597 (FIELD_TYPE): Use field::type. Change call sites that modify
8598 the field's type to use field::set_type instead.
8599
8600 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8601
8602 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8603 to use type::index_type instead.
8604
8605 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
8606
8607 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8608 methods.
8609 (TYPE_INDEX_TYPE): Use type::index_type.
8610 * gdbtypes.c (create_array_type_with_stride): Likewise.
8611
8612 2020-06-07 Tom Tromey <tom@tromey.com>
8613
8614 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8615 parameter.
8616 (generic_value_print): Update.
8617
8618 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8619
8620 Revert commit 982a38f60b0.
8621 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8622
8623 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8624
8625 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8626 avoid use after free.
8627
8628 2020-06-05 Tom de Vries <tdevries@suse.de>
8629
8630 * NEWS: Fix typos.
8631
8632 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
8633
8634 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8635 the per_bfd object.
8636 (dwarf2_read_debug_names): Likewise.
8637 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8638 object when re-using a per_bfd object with an index.
8639
8640 2020-06-03 Tom de Vries <tdevries@suse.de>
8641
8642 PR symtab/26046
8643 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8644 children for C++.
8645 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8646 DW_TAG_subprogram.
8647
8648 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8649
8650 * ada-lang.c (ada_language_data): Delete skip_trampoline
8651 initializer.
8652 * c-lang.c (c_language_data): Likewise.
8653 (cplus_language_data): Likewise.
8654 (cplus_language::skip_trampoline): New member function.
8655 (asm_language_data): Delete skip_trampoline initializer.
8656 (minimal_language_data): Likewise.
8657 * d-lang.c (d_language_data): Likewise.
8658 * f-lang.c (f_language_data): Likewise.
8659 * go-lang.c (go_language_data): Likewise.
8660 * language.c (unk_lang_trampoline): Delete function.
8661 (skip_language_trampoline): Update.
8662 (unknown_language_data): Delete skip_trampoline initializer.
8663 (auto_language_data): Likewise.
8664 * language.h (language_data): Delete skip_trampoline field.
8665 (language_defn::skip_trampoline): New function.
8666 * m2-lang.c (m2_language_data): Delete skip_trampoline
8667 initializer.
8668 * objc-lang.c (objc_skip_trampoline): Delete function, move
8669 implementation to objc_language::skip_trampoline.
8670 (objc_language_data): Delete skip_trampoline initializer.
8671 (objc_language::skip_trampoline): New member function with
8672 implementation from objc_skip_trampoline.
8673 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8674 initializer.
8675 * p-lang.c (pascal_language_data): Likewise.
8676 * rust-lang.c (rust_language_data): Likewise.
8677
8678 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8679
8680 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8681 (ada_language::demangle): New member function.
8682 * c-lang.c (c_language_data): Delete la_demangle initializer.
8683 (cplus_language_data): Delete la_demangle initializer.
8684 (cplus_language::demangle): New member function.
8685 (asm_language_data): Delete la_demangle initializer.
8686 (minimal_language_data): Delete la_demangle initializer.
8687 * d-lang.c (d_language_data): Delete la_demangle initializer.
8688 (d_language::demangle): New member function.
8689 * f-lang.c (f_language_data): Delete la_demangle initializer.
8690 (f_language::demangle): New member function.
8691 * go-lang.c (go_language_data): Delete la_demangle initializer.
8692 (go_language::demangle): New member function.
8693 * language.c (language_demangle): Update.
8694 (unk_lang_demangle): Delete.
8695 (unknown_language_data): Delete la_demangle initializer.
8696 (unknown_language::demangle): New member function.
8697 (auto_language_data): Delete la_demangle initializer.
8698 (auto_language::demangle): New member function.
8699 * language.h (language_data): Delete la_demangle field.
8700 (language_defn::demangle): New function.
8701 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8702 * objc-lang.c (objc_language_data): Delete la_demangle
8703 initializer.
8704 (objc_language::demangle): New member function.
8705 * opencl-lang.c (opencl_language_data): Delete la_demangle
8706 initializer.
8707 * p-lang.c (pascal_language_data): Likewise.
8708 * rust-lang.c (rust_language_data): Likewise.
8709 (rust_language::demangle): New member function.
8710
8711 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8712
8713 * ada-lang.c (ada_language_data): Delete la_print_type
8714 initializer.
8715 (ada_language::print_type): New member function.
8716 * c-lang.c (c_language_data): Delete la_print_type initializer.
8717 (c_language::print_type): New member function.
8718 (cplus_language_data): Delete la_print_type initializer.
8719 (cplus_language::print_type): New member function.
8720 (asm_language_data): Delete la_print_type initializer.
8721 (asm_language::print_type): New member function.
8722 (minimal_language_data): Delete la_print_type initializer.
8723 (minimal_language::print_type): New member function.
8724 * d-lang.c (d_language_data): Delete la_print_type initializer.
8725 (d_language::print_type): New member function.
8726 * f-lang.c (f_language_data): Delete la_print_type initializer.
8727 (f_language::print_type): New member function.
8728 * go-lang.c (go_language_data): Delete la_print_type initializer.
8729 (go_language::print_type): New member function.
8730 * language.c (unk_lang_print_type): Delete.
8731 (unknown_language_data): Delete la_print_type initializer.
8732 (unknown_language::print_type): New member function.
8733 (auto_language_data): Delete la_print_type initializer.
8734 (auto_language::print_type): New member function.
8735 * language.h (language_data): Delete la_print_type field.
8736 (language_defn::print_type): New function.
8737 (LA_PRINT_TYPE): Update.
8738 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8739 (m2_language::print_type): New member function.
8740 * objc-lang.c (objc_language_data): Delete la_print_type
8741 initializer.
8742 (objc_language::print_type): New member function.
8743 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8744 to opencl_language::print_type.
8745 (opencl_language_data): Delete la_print_type initializer.
8746 (opencl_language::print_type): New member function, implementation
8747 from opencl_print_type.
8748 * p-lang.c (pascal_language_data): Delete la_print_type
8749 initializer.
8750 (pascal_language::print_type): New member function.
8751 * rust-lang.c (rust_print_type): Delete, implementation moved to
8752 rust_language::print_type.
8753 (rust_language_data): Delete la_print_type initializer.
8754 (rust_language::print_type): New member function, implementation
8755 from rust_print_type.
8756
8757 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8758
8759 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8760 implementation moves to...
8761 (ada_language::sniff_from_mangled_name): ...here. Update return
8762 type.
8763 (ada_language_data): Delete la_sniff_from_mangled_name
8764 initializer.
8765 * c-lang.c (c_language_data): Likewise.
8766 (cplus_language_data): Likewise.
8767 (cplus_language::sniff_from_mangled_name): New member function,
8768 implementation taken from gdb_sniff_from_mangled_name.
8769 (asm_language_data): Delete la_sniff_from_mangled_name
8770 initializer.
8771 (minimal_language_data): Likewise.
8772 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8773 implementation moves to cplus_language::sniff_from_mangled_name.
8774 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8775 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8776 moves to...
8777 (d_language::sniff_from_mangled_name): ...here.
8778 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8779 * f-lang.c (f_language_data): Likewise.
8780 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8781 moves to...
8782 (go_language::sniff_from_mangled_name): ...here.
8783 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8784 * language.c (language_sniff_from_mangled_name): Delete.
8785 (unknown_language_data): Delete la_sniff_from_mangled_name
8786 initializer.
8787 (auto_language_data): Likewise.
8788 * language.h (language_data): Delete la_sniff_from_mangled_name
8789 field.
8790 (language_defn::sniff_from_mangled_name): New function.
8791 (language_sniff_from_mangled_name): Delete declaration.
8792 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8793 field.
8794 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8795 implementation moves to...
8796 (objc_language::sniff_from_mangled_name): ...here.
8797 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8798 * opencl-lang.c (opencl_language_data): Likewise.
8799 * p-lang.c (pascal_language_data): Likewise.
8800 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8801 implementation moves to...
8802 (rust_language::sniff_from_mangled_name): ...here.
8803 (rust_language_data): Delete la_sniff_from_mangled_name
8804 initializer.
8805 * symtab.c (symbol_find_demangled_name): Call
8806 sniff_from_mangled_name member function.
8807
8808 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8809
8810 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8811 initializer.
8812 * c-lang.c (c_language_data): Likewise.
8813 (cplus_language_data): Likewise.
8814 (cplus_language::search_name_hash): New member function.
8815 (asm_language_data): Delete la_search_name_hash initializer.
8816 (minimal_language_data): Likewise.
8817 * d-lang.c (d_language_data): Likewise.
8818 * dictionary.c (default_search_name_hash): Rename to...
8819 (language_defn::search_name_hash): ...this.
8820 * f-lang.c (f_language_data): Likewise.
8821 (f_language::search_name_hash): New member function.
8822 * go-lang.c (go_language_data): Delete la_search_name_hash
8823 initializer.
8824 * language.c (unknown_language_data): Likewise.
8825 (auto_language_data): Likewise.
8826 * language.h (struct language_data): Delete la_search_name_hash
8827 field.
8828 (language_defn::search_name_hash): Declare new member function.
8829 (default_search_name_hash): Delete declaration.
8830 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8831 initializer.
8832 * objc-lang.c (objc_language_data): Likewise.
8833 * opencl-lang.c (opencl_language_data): Likewise.
8834 * p-lang.c (pascal_language_data): Likewise.
8835 * rust-lang.c (rust_language_data): Likewise.
8836 * symtab.c (search_name_hash): Update call.
8837
8838 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8839
8840 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8841 initializer.
8842 * c-lang.c (class compile_instance): Declare.
8843 (c_language_data): Delete la_get_compile_instance initializer.
8844 (c_language::get_compile_instance): New member function.
8845 (cplus_language_data): Delete la_get_compile_instance initializer.
8846 (cplus_language::get_compile_instance): New member function.
8847 (asm_language_data): Delete la_get_compile_instance initializer.
8848 (minimal_language_data): Likewise.
8849 * c-lang.h (c_get_compile_context): Update comment.
8850 (cplus_get_compile_context): Update comment.
8851 * compile/compile.c (compile_to_object): Update calls, don't rely
8852 on function pointer being NULL.
8853 * d-lang.c (d_language_data): Delete la_get_compile_instance
8854 initializer.
8855 * f-lang.c (f_language_data): Likewise.
8856 * go-lang.c (go_language_data): Likewise.
8857 * language.c (unknown_language_data): Likewise.
8858 (auto_language_data): Likewise.
8859 * language.h (language_data): Delete la_get_compile_instance field.
8860 (language_defn::get_compile_instance): New member function.
8861 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8862 initializer.
8863 * objc-lang.c (objc_language_data): Likewise.
8864 * opencl-lang.c (opencl_language_data): Likewise.
8865 * p-lang.c (pascal_language_data): Likewise.
8866 * rust-lang.c (rust_language_data): Likewise.
8867
8868 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8869
8870 * ada-lang.c (ada_add_all_symbols): Update comment.
8871 (ada_iterate_over_symbols): Delete, move implementation to...
8872 (ada_language::iterate_over_symbols): ...here, a new member
8873 function, rewrite to use range based for loop.
8874 (ada_language_data): Delete la_iterate_over_symbols initializer.
8875 * c-lang.c (c_language_data): Likewise.
8876 (cplus_language_data): Likewise.
8877 (asm_language_data): Likewise.
8878 (minimal_language_data): Likewise.
8879 * d-lang.c (d_language_data): Likewise.
8880 * f-lang.c (f_language_data): Likewise.
8881 * go-lang.c (go_language_data): Likewise.
8882 * language.c (unknown_language_data): Likewise.
8883 (auto_language_data): Likewise.
8884 * language.h (language_data): Delete la_iterate_over_symbols field.
8885 (language_defn::iterate_over_symbols): New member function.
8886 (LA_ITERATE_OVER_SYMBOLS): Update.
8887 * linespec.c (iterate_over_all_matching_symtabs): Update.
8888 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8889 initializer.
8890 * objc-lang.c (objc_language_data): Likewise.
8891 * opencl-lang.c (opencl_language_data): Likewise.
8892 * p-lang.c (pascal_language_data): Likewise.
8893 * rust-lang.c (rust_language_data): Likewise.
8894
8895 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8896
8897 * ada-lang.c (ada_language_data): Delete
8898 la_lookup_transparent_type initializer.
8899 * c-lang.c (c_language_data): Likewise.
8900 (cplus_language_data): Likewise.
8901 (cplus_language::lookup_transparent_type): New member function.
8902 (asm_language_data): Delete la_lookup_transparent_type
8903 initializer.
8904 (minimal_language_data): Likewise.
8905 * d-lang.c (d_language_data): Likewise.
8906 * f-lang.c (f_language_data): Likewise.
8907 * go-lang.c (go_language_data): Likewise.
8908 * language.c (unknown_language_data): Likewise.
8909 (auto_language_data): Likewise.
8910 * language.h (struct language_data): Delete
8911 la_lookup_transparent_type field.
8912 (language_defn::lookup_transparent_type): New member function.
8913 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8914 initializer.
8915 * objc-lang.c (objc_language_data): Likewise.
8916 * opencl-lang.c (opencl_language_data): Likewise.
8917 * p-lang.c (pascal_language_data): Likewise.
8918 * rust-lang.c (rust_language_data): Likewise.
8919 * symtab.c (symbol_matches_domain): Update call.
8920
8921 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8922
8923 * ada-lang.c (ada_language_arch_info): Delete function, move
8924 implementation to...
8925 (ada_language::language_arch_info): ...here, a new member
8926 function.
8927 (ada_language_data): Delete la_language_arch_info.
8928 * c-lang.c (c_language_data): Likewise.
8929 (c_language::language_arch_info): New member function.
8930 (cplus_language_arch_info): Delete function, move
8931 implementation to...
8932 (cplus_language::language_arch_info): ...here, a new member
8933 function.
8934 (cplus_language_data): Delete la_language_arch_info.
8935 (asm_language_data): Likewise.
8936 (asm_language::language_arch_info): New member function.
8937 (minimal_language_data): Delete la_language_arch_info.
8938 (minimal_language::language_arch_info): New member function.
8939 * d-lang.c (d_language_arch_info): Delete function, move
8940 implementation to...
8941 (d_language::language_arch_info): ...here, a new member
8942 function.
8943 (d_language_data): Delete la_language_arch_info.
8944 * f-lang.c (f_language_arch_info): Delete function, move
8945 implementation to...
8946 (f_language::language_arch_info): ...here, a new member
8947 function.
8948 (f_language_data): Delete la_language_arch_info.
8949 * go-lang.c (go_language_arch_info): Delete function, move
8950 implementation to...
8951 (go_language::language_arch_info): ...here, a new member
8952 function.
8953 (go_language_data): Delete la_language_arch_info.
8954 * language.c (unknown_language_data): Likewise.
8955 (unknown_language::language_arch_info): New member function.
8956 (auto_language_data): Delete la_language_arch_info.
8957 (auto_language::language_arch_info): New member function.
8958 (language_gdbarch_post_init): Update call to
8959 la_language_arch_info.
8960 * language.h (language_data): Delete la_language_arch_info
8961 function pointer.
8962 (language_defn::language_arch_info): New function.
8963 * m2-lang.c (m2_language_arch_info): Delete function, move
8964 implementation to...
8965 (m2_language::language_arch_info): ...here, a new member
8966 function.
8967 (m2_language_data): Delete la_language_arch_info.
8968 * objc-lang.c (objc_language_arch_info): Delete function, move
8969 implementation to...
8970 (objc_language::language_arch_info): ...here, a new member
8971 function.
8972 (objc_language_data): Delete la_language_arch_info.
8973 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8974 implementation to...
8975 (opencl_language::language_arch_info): ...here, a new member
8976 function.
8977 (opencl_language_data): Delete la_language_arch_info.
8978 * p-lang.c (pascal_language_arch_info): Delete function, move
8979 implementation to...
8980 (pascal_language::language_arch_info): ...here, a new member
8981 function.
8982 (pascal_language_data): Delete la_language_arch_info.
8983 * rust-lang.c (rust_language_arch_info): Delete function, move
8984 implementation to...
8985 (rust_language::language_arch_info): ...here, a new member
8986 function.
8987 (rust_language_data): Delete la_language_arch_info.
8988
8989 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8990
8991 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8992 initializer.
8993 * c-lang.c (c_language_data): Likewise.
8994 (cplus_language_data): Likewise.
8995 (cplus_language::pass_by_reference_info): New method.
8996 (asm_language_data): Delete la_pass_by_reference initializer.
8997 (minimal_language_data): Likewise.
8998 * cp-abi.c (cp_pass_by_reference): Remove use of
8999 default_pass_by_reference.
9000 * d-lang.c (d_language_data): Likewise.
9001 * f-lang.c (f_language_data): Likewise.
9002 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9003 default_pass_by_reference.
9004 * go-lang.c (go_language_data): Likewise.
9005 * language.c (language_pass_by_reference): Update.
9006 (default_pass_by_reference): Delete.
9007 (unknown_language_data): Delete la_pass_by_reference
9008 initializer.
9009 (auto_language_data): Likewise.
9010 * language.h (struct language_data): Delete la_pass_by_reference
9011 field.
9012 (language_defn::pass_by_reference_info): New member function.
9013 (default_pass_by_reference): Delete declaration.
9014 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9015 initializer.
9016 * objc-lang.c (objc_language_data): Likewise.
9017 * opencl-lang.c (opencl_language_data): Likewise.
9018 * p-lang.c (pascal_language_data): Likewise.
9019 * rust-lang.c (rust_language_data): Likewise.
9020
9021 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9022
9023 * ada-lang.c (ada_read_var_value): Delete function, move
9024 implementation to...
9025 (ada_language::read_var_value): ...here.
9026 (ada_language_data): Delete la_read_var_value initializer.
9027 * c-lang.c (c_language_data): Likewise.
9028 (cplus_language_data): Likewise.
9029 (minimal_language_data): Likewise.
9030 * d-lang.c (d_language_data): Likewise.
9031 * f-lang.c (f_language_data): Likewise.
9032 * findvar.c (default_read_var_value): Rename to...
9033 (language_defn::read_var_value): ...this.
9034 * findvar.c (read_var_value): Update header comment, and change to
9035 call member function instead of function pointer.
9036 * go-lang.c (go_language_data): Likewise.
9037 * language.c (unknown_language_data): Delete la_read_var_value
9038 initializer.
9039 (auto_language_data): Likewise.
9040 * language.h (struct language_data): Delete la_read_var_value
9041 field.
9042 (language_defn::read_var_value): New member function.
9043 (default_read_var_value): Delete declaration.
9044 * m2-lang.c (m2_language_data): Delete la_read_var_value
9045 initializer.
9046 * objc-lang.c (objc_language_data): Likewise.
9047 * opencl-lang.c (opencl_language_data): Likewise.
9048 * p-lang.c (pascal_language_data): Likewise.
9049 * rust-lang.c (rust_language_data): Likewise.
9050 * value.h (default_read_var_value): Delete declaration.
9051
9052 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9053
9054 * ada-lang.c (ada_print_array_index): Delete function, move
9055 implementation to...
9056 (ada_language::print_array_index): ...here.
9057 (ada_language_data): Delete la_print_array_index initializer.
9058 * c-lang.c (c_language_data): Likewise.
9059 (cplus_language_data): Likewise.
9060 (minimal_language_data): Likewise.
9061 * d-lang.c (d_language_data): Likewise.
9062 * f-lang.c (f_language_data): Likewise.
9063 * go-lang.c (go_language_data): Likewise.
9064 * language.c (default_print_array_index): Delete function, move
9065 implementation to...
9066 (language_defn::print_array_index): ...here.
9067 (unknown_language_data): Delete la_print_array_index initializer.
9068 (auto_language_data): Likewise.
9069 * language.h (struct language_data): Delete la_print_array_index
9070 field.
9071 (language_defn::print_array_index): New member function.
9072 (LA_PRINT_ARRAY_INDEX): Update.
9073 (default_print_array_index): Delete declaration.
9074 * m2-lang.c (m2_language_data): Delete la_print_array_index
9075 initializer.
9076 * objc-lang.c (objc_language_data): Likewise.
9077 * opencl-lang.c (opencl_language_data): Likewise.
9078 * p-lang.c (pascal_language_data): Likewise.
9079 * rust-lang.c (rust_language_data): Likewise.
9080
9081 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9082
9083 * gdb/ada-lang.c (ada_language_defn): Convert to...
9084 (ada_language_data): ...this.
9085 (class ada_language): New class.
9086 (ada_language_defn): New static global.
9087 * gdb/c-lang.c (c_language_defn): Convert to...
9088 (c_language_data): ...this.
9089 (class c_language): New class.
9090 (c_language_defn): New static global.
9091 (cplus_language_defn): Convert to...
9092 (cplus_language_data): ...this.
9093 (class cplus_language): New class.
9094 (cplus_language_defn): New static global.
9095 (asm_language_defn): Convert to...
9096 (asm_language_data): ...this.
9097 (class asm_language): New class.
9098 (asm_language_defn): New static global.
9099 (minimal_language_defn): Convert to...
9100 (minimal_language_data): ...this.
9101 (class minimal_language): New class.
9102 (minimal_language_defn): New static global.
9103 * gdb/d-lang.c (d_language_defn): Convert to...
9104 (d_language_data): ...this.
9105 (class d_language): New class.
9106 (d_language_defn): New static global.
9107 * gdb/f-lang.c (f_language_defn): Convert to...
9108 (f_language_data): ...this.
9109 (class f_language): New class.
9110 (f_language_defn): New static global.
9111 * gdb/go-lang.c (go_language_defn): Convert to...
9112 (go_language_data): ...this.
9113 (class go_language): New class.
9114 (go_language_defn): New static global.
9115 * gdb/language.c (unknown_language_defn): Remove declaration.
9116 (current_language): Initialize to nullptr, real initialization is
9117 moved to _initialize_language.
9118 (languages): Delete global.
9119 (language_defn::languages): Define.
9120 (set_language_command): Use language_defn::languages.
9121 (set_language): Likewise.
9122 (range_error): Likewise.
9123 (language_enum): Likewise.
9124 (language_def): Likewise.
9125 (add_set_language_command): Use language_def::languages for the
9126 language list, and language_def to lookup language pointers.
9127 (skip_language_trampoline): Use language_defn::languages.
9128 (unknown_language_defn): Convert to...
9129 (unknown_language_data): ...this.
9130 (class unknown_language): New class.
9131 (unknown_language_defn): New static global.
9132 (auto_language_defn): Convert to...
9133 (auto_language_data): ...this.
9134 (class auto_language): New class.
9135 (auto_language_defn): New static global.
9136 (language_gdbarch_post_init): Use language_defn::languages.
9137 (_initialize_language): Initialize current_language.
9138 * gdb/language.h (struct language_defn): Rename to...
9139 (struct language_data): ...this.
9140 (struct language_defn): New.
9141 (auto_language_defn): Delete.
9142 (unknown_language_defn): Delete.
9143 (minimal_language_defn): Delete.
9144 (ada_language_defn): Delete.
9145 (asm_language_defn): Delete.
9146 (c_language_defn): Delete.
9147 (cplus_language_defn): Delete.
9148 (d_language_defn): Delete.
9149 (f_language_defn): Delete.
9150 (go_language_defn): Delete.
9151 (m2_language_defn): Delete.
9152 (objc_language_defn): Delete.
9153 (opencl_language_defn): Delete.
9154 (pascal_language_defn): Delete.
9155 (rust_language_defn): Delete.
9156 * gdb/m2-lang.c (m2_language_defn): Convert to...
9157 (m2_language_data): ...this.
9158 (class m2_language): New class.
9159 (m2_language_defn): New static global.
9160 * gdb/objc-lang.c (objc_language_defn): Convert to...
9161 (objc_language_data): ...this.
9162 (class objc_language): New class.
9163 (objc_language_defn): New static global.
9164 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9165 (opencl_language_data): ...this.
9166 (class opencl_language): New class.
9167 (opencl_language_defn): New static global.
9168 * gdb/p-lang.c (pascal_language_defn): Convert to...
9169 (pascal_language_data): ...this.
9170 (class pascal_language): New class.
9171 (pascal_language_defn): New static global.
9172 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9173 language pointer, update comment format.
9174 * gdb/rust-lang.c (rust_language_defn): Convert to...
9175 (rust_language_data): ...this.
9176 (class rust_language): New class.
9177 (rust_language_defn): New static global.
9178
9179 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9180
9181 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9182 member variable.
9183 <m_stmt_at_address>: New member variable.
9184 (lnp_state_machine::record_line): Don't record some lines, update
9185 tracking of is_stmt at the same address.
9186 (lnp_state_machine::lnp_state_machine): Initialise new member
9187 variables.
9188
9189 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9190
9191 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9192 "-include gnu-nat-mig.h".
9193 * gnu-nat-mig.h: New file.
9194 * gnu-nat.c: Include "gnu-nat-mig.h".
9195 (exc_server, msg_reply_server, notify_server,
9196 process_reply_server): Remove declarations.
9197
9198 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9199
9200 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9201 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9202 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9203 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9204 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9205 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9206 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9207 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9208 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9209 to gnu_nat_target class.
9210 * gnu-nat.c: Likewise.
9211 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9212 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9213 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9214 object.
9215 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9216 instead of `gnu_target'.
9217
9218 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9219
9220 * i386-gnu-tdep.c: Include "gdbcore.h"
9221 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9222 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9223 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9224 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9225 i386_gnu_sigcontext_addr): New functions
9226 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9227 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9228 tdep.
9229
9230 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9231
9232 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9233 before fork_inferior call. Avoid calling it if target_is_pushed returns
9234 true.
9235
9236 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9237
9238 * gnu-nat.h (gnu_target): New variable declaration.
9239 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9240 gnu_target.
9241 * gnu-nat.c (gnu_target): New variable.
9242 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9243 add_thread_silent, and add_thread calls.
9244 (gnu_nat_target::create_inferior): Pass gnu_target to
9245 add_thread_silent, thread_change_ptid call.
9246 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9247 call.
9248
9249 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9250
9251 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9252 (gnu_nat_target::find_memory_regions): Remove unused
9253 `old_address' variable.
9254
9255 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9256
9257 * gnu-nat.c: Include "gdbarch.h".
9258
9259 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9260
9261 * reply_mig_hack.awk (Error return): Cast function through
9262 void *, to bypass compiler function call check.
9263
9264 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9265
9266 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9267 $(srcdir)/reply_mig_hack.awk.
9268
9269 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9270
9271 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9272
9273 2020-05-30 Jonny Grant <jg@jguk.org>
9274
9275 * configure.ac (ACX_BUGURL): change bug URL to https.
9276
9277 2020-05-30 Pedro Alves <palves@redhat.com>
9278
9279 * cp-support.c (replace_typedefs_template): New.
9280 (replace_typedefs_qualified_name): Handle
9281 DEMANGLE_COMPONENT_TEMPLATE.
9282
9283 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9284
9285 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9286 dwarf2/index-cache.h, dwarf2/index-write.c,
9287 dwarf2/index-write.h, dwarf2/line-header.c,
9288 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9289 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9290 variables and fields from `dwarf2_per_objfile` to just
9291 `per_objfile` throughout.
9292
9293 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9294
9295 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9296 <push_dwarf_reg_entry_value>: Add comment.
9297
9298 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9299 Keith Seitz <keiths@redhat.com>
9300
9301 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9302 instead of PyEval_ReleaseLock.
9303 (class gdbpy_gil): Move to earlier in file.
9304 (finalize_python): Set gdb_python_initialized.
9305 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9306 when not initialized.
9307
9308 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9309
9310 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9311 <push_dwarf_reg_entry_value>: Remove assert. Override
9312 per_objfile with caller_per_objfile.
9313
9314 2020-05-28 Tom de Vries <tdevries@suse.de>
9315
9316 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9317 PR gold/15646 workaround to symbol kind "type".
9318
9319 2020-05-27 Tom Tromey <tromey@adacore.com>
9320
9321 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9322
9323 2020-05-27 Tom Tromey <tromey@adacore.com>
9324
9325 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9326 Use htab_find_with_hash.
9327 <add_abbrev>: Remove "abbrev_number" parameter.
9328 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9329 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9330 (hash_abbrev): Add comment.
9331 (abbrev_table::lookup_abbrev): Move to header file.
9332 (abbrev_table::read): Update.
9333
9334 2020-05-27 Tom Tromey <tromey@adacore.com>
9335
9336 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9337 method.
9338 <canonical_name>: New member.
9339 <raw_name>: Rename from "name".
9340 (partial_die_info): Initialize canonical_name.
9341 (scan_partial_symbols): Check raw_name.
9342 (partial_die_parent_scope, partial_die_full_name)
9343 (add_partial_symbol, add_partial_subprogram)
9344 (add_partial_enumeration, load_partial_dies): Use "name" method.
9345 (partial_die_info::name): New method.
9346 (partial_die_info::read, guess_partial_die_structure_name)
9347 (partial_die_info::fixup): Update.
9348
9349 2020-05-27 Tom Tromey <tromey@adacore.com>
9350
9351 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9352 <get_ref_die_offset>: Inline.
9353 <get_ref_die_offset_complaint>: New method.
9354 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9355 (attribute::get_ref_die_offset_complaint): Rename from
9356 get_ref_die_offset. Just issue complaint.
9357
9358 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9359
9360 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9361
9362 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9363
9364 * exec.c (exec_file_attach): Use errno value of first openp failure.
9365
9366 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
9367
9368 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9369 Don't close thread handle.
9370
9371 2020-05-27 Tom Tromey <tom@tromey.com>
9372 Simon Marchi <simon.marchi@efficios.com>
9373
9374 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9375 shared_ptr.
9376 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9377 member.
9378 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9379 dwarf2_per_bfd_objfile_data_key>: New globals.
9380 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9381 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9382 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9383 shared.
9384 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9385 short-circuit when sharing.
9386 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9387 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9388
9389 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9390
9391 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9392 to...
9393 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9394 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9395
9396 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9397
9398 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9399 build_name_components, find_name_components_bounds>:
9400 Add per_objfile parameter.
9401 (struct mapped_index) <symbol_name_at>: Likewise.
9402 (struct mapped_debug_names): Remove constructor.
9403 <dwarf2_per_objfile>: Remove field.
9404 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9405 (mapped_index_base::find_name_components_bounds,
9406 mapped_index_base::build_name_components,
9407 dw2_expand_symtabs_matching_symbol): Likewise.
9408 (class mock_mapped_index) <symbol_name_at>: Likewise.
9409 (check_match): Likewise.
9410 (check_find_bounds_finds): Likewise.
9411 (test_mapped_index_find_name_component_bounds): Update.
9412 (CHECK_MATCH): Update.
9413 (dw2_expand_symtabs_matching): Update.
9414 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9415 per_objfile parameter.
9416 <find_vec_in_debug_names>: Likewise.
9417 <m_per_objfile>: New field.
9418 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9419 parameter.
9420 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9421 (dw2_debug_names_iterator::next): Update.
9422 (dw2_debug_names_lookup_symbol): Update.
9423 (dw2_debug_names_expand_symtabs_for_function): Update.
9424 (dw2_debug_names_map_matching_symbols): Update.
9425 (dw2_debug_names_expand_symtabs_matching): Update.
9426 (dwarf2_read_debug_names): Update.
9427
9428 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9429
9430 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9431 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9432 move to dwarf2_per_objfile.
9433 <read_in_chain>: Remove.
9434 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9435 remove_all_cus, age_comp_units>: New methods.
9436 <m_dwarf2_cus>: New member.
9437 (struct dwarf2_per_cu_data) <cu>: Remove.
9438 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9439 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9440 moved to methods of dwarf2_per_objfile.
9441 (dwarf2_clear_marks): Remove.
9442 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9443 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9444 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9445 (dwarf2_per_objfile::remove_all_cus): New.
9446 (class free_cached_comp_units) <~free_cached_comp_units>:
9447 Update.
9448 (load_cu): Update.
9449 (dw2_do_instantiate_symtab): Adjust.
9450 (fill_in_sig_entry_from_dwo_entry): Adjust.
9451 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9452 (cutu_reader::cutu_reader): Likewise.
9453 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9454 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9455 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9456 and dwarf2_per_objfile::age_comp_units.
9457 (load_partial_comp_unit): Update.
9458 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9459 (process_queue): Likewise.
9460 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9461 backlink.
9462 (dwarf2_read_addr_index): Likewise.
9463 (follow_die_offset): Likewise.
9464 (dwarf2_fetch_die_loc_sect_off): Likewise.
9465 (dwarf2_fetch_constant_bytes): Likewise.
9466 (dwarf2_fetch_die_type_sect_off): Likewise.
9467 (follow_die_sig_1): Likewise.
9468 (load_full_type_unit): Likewise.
9469 (read_signatured_type): Likewise.
9470 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9471 (dwarf2_cu::~dwarf2_cu): Remove.
9472 (dwarf2_per_objfile::get_cu): New.
9473 (dwarf2_per_objfile::set_cu): New.
9474 (age_cached_comp_units): Rename to...
9475 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9476 to std::unordered_map.
9477 (free_one_cached_comp_unit): Rename to...
9478 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9479 to std::unordered_map.
9480 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9481 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9482 a dwarf2_per_objfile in data.
9483 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9484 (dwarf2_clear_marks): Remove.
9485
9486 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9487
9488 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9489 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9490 (init_tu_and_read_dwo_dies): Likewise.
9491 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9492 (cutu_reader::cutu_reader): Likewise.
9493 (load_partial_comp_unit): Likewise.
9494 (process_psymtab_comp_unit): Update.
9495 (build_type_psymtabs_1): Update.
9496 (process_skeletonless_type_unit): Update.
9497 (load_full_comp_unit): Update.
9498 (find_partial_die): Update.
9499 (dwarf2_read_addr_index): Update.
9500 (read_signatured_type): Update.
9501
9502 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9503
9504 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9505 m_header_read_in>: New fields.
9506 <get_header>: New method.
9507 * dwarf2/read.c (per_cu_header_read_in): Remove.
9508 (dwarf2_per_cu_data::get_header): New.
9509 (dwarf2_per_cu_data::addr_size): Update.
9510 (dwarf2_per_cu_data::offset_size): Update.
9511 (dwarf2_per_cu_data::ref_addr_size): Update.
9512
9513 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9514
9515 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9516 (dw2_do_instantiate_symtab): Update.
9517 (queue_and_load_all_dwo_tus): Change parameter from
9518 dwarf2_per_cu_data to dwarf2_cu.
9519 (dwarf2_fetch_die_loc_sect_off): Update.
9520 (dwarf2_fetch_constant_bytes): Update.
9521 (dwarf2_fetch_die_type_sect_off): Update.
9522
9523 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9524
9525 * dwarf2/read.c (process_full_comp_unit,
9526 process_full_type_unit): Remove per_cu, per_objfile paramters.
9527 Add dwarf2_cu parameter.
9528 (process_queue): Update.
9529
9530 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9531
9532 * dwarf2/read.c (create_cu_from_index_list): Replace
9533 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9534 (create_cus_from_index_list): Likewise.
9535 (create_cus_from_index): Likewise.
9536 (create_signatured_type_table_from_index): Likewise.
9537 (create_cus_from_debug_names_list): Likewise.
9538 (create_cus_from_debug_names): Likewise.
9539 (dwarf2_read_gdb_index): Update.
9540 (dwarf2_read_debug_names): Update.
9541
9542 2020-05-27 Tom Tromey <tom@tromey.com>
9543 Simon Marchi <simon.marchi@efficios.com>
9544
9545 * dwarf2/read.h (struct dwarf2_per_objfile)
9546 <get_type_for_signatured_type, set_type_for_signatured_type>:
9547 New methods.
9548 <m_type_map>: New member.
9549 (struct signatured_type) <type>: Remove.
9550 * dwarf2/read.c
9551 (dwarf2_per_objfile::get_type_for_signatured_type,
9552 dwarf2_per_objfile::set_type_for_signatured_type): New.
9553 (get_signatured_type): Use new methods.
9554
9555 2020-05-27 Tom Tromey <tom@tromey.com>
9556 Simon Marchi <simon.marchi@efficios.com>
9557
9558 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9559 (struct dwarf2_per_objfile) <type_units>: New member.
9560 <get_type_unit_group_unshareable>: New method.
9561 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9562 num_symtabs, symtabs>: Remove; move to
9563 type_unit_group_unshareable.
9564 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9565 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9566 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9567
9568 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9569
9570 * dwarf2/read.h (struct dwarf2_per_cu_data):
9571 <dwarf2_per_objfile>: Remove.
9572 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9573 dwarf2_per_objfile.
9574 (create_signatured_type_table_from_index): Likewise.
9575 (create_signatured_type_table_from_debug_names): Likewise.
9576 (create_debug_type_hash_table): Likewise.
9577 (fill_in_sig_entry_from_dwo_entry): Likewise.
9578 (create_type_unit_group): Likewise.
9579 (read_comp_units_from_section): Likewise.
9580 (create_cus_hash_table): Likewise.
9581
9582 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9583
9584 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9585 dwarf2_per_cu_data::dwarf2_per_objfile.
9586 (compute_compunit_symtab_includes): Likewise.
9587 (dwarf2_cu::start_symtab): Likewise.
9588
9589 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9590
9591 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9592 parameter.
9593 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9594 (read_namespace_alias): Update.
9595 (lookup_die_type): Update.
9596 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9597 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9598 Update.
9599 (disassemble_dwarf_expression): Update.
9600
9601 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9602
9603 * dwarf2/read.h (struct dwarf2_queue_item): Add
9604 dwarf2_per_objfile parameter, assign new parameter.
9605 <per_objfile>: New field.
9606 * dwarf2/read.c (free_one_cached_comp_unit): Add
9607 dwarf2_per_objfile parameter.
9608 (queue_comp_unit): Likewise.
9609 (dw2_do_instantiate_symtab): Update.
9610 (process_psymtab_comp_unit): Update.
9611 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9612 (process_imported_unit_die): Update.
9613 (queue_and_load_dwo_tu): Update.
9614 (follow_die_offset): Update.
9615 (follow_die_sig_1): Update.
9616
9617 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9618
9619 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9620 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9621 (read_call_site_scope): Assign per_objfile.
9622 (dwarf2_per_cu_data::objfile): Remove.
9623 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9624 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9625 dwarf2_per_objfile parameter.
9626 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9627 dwarf2_per_objfile parameter.
9628 (dwarf_expr_reg_to_entry_parameter): Add output
9629 dwarf2_per_objfile parameter.
9630 (locexpr_get_frame_base): Update.
9631 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9632 <push_dwarf_reg_entry_value>: Update.
9633 <call_site_to_target_addr>: Update.
9634 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9635 parameter.
9636 (value_of_dwarf_reg_entry): Update.
9637 (rw_pieced_value): Update.
9638 (indirect_synthetic_pointer): Update.
9639 (dwarf2_evaluate_property): Update.
9640 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9641 parameter.
9642 (locexpr_read_variable): Update.
9643 (locexpr_get_symbol_read_needs): Update.
9644 (loclist_read_variable): Update.
9645
9646 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9647
9648 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9649 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9650 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9651 parameter.
9652 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9653 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9654 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9655 parameter.
9656 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9657 sect_variable_value): Add dwarf2_per_objfile parameter.
9658 (class dwarf_evaluate_loc_desc) <dwarf_call,
9659 dwarf_variable_value>: Update.
9660 (fetch_const_value_from_synthetic_pointer): Add
9661 dwarf2_per_objfile parameter.
9662 (fetch_const_value_from_synthetic_pointer): Update.
9663 (coerced_pieced_ref): Update.
9664 (class symbol_needs_eval_context) <dwarf_call,
9665 dwarf_variable_value>: Update.
9666 (dwarf2_compile_expr_to_ax): Update.
9667
9668 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9669
9670 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9671 parameter.
9672 (dwarf2_evaluate_loc_desc_full): Update.
9673
9674 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9675
9676 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9677 parameter.
9678 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9679 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9680 dwarf2_per_objfile parameter.
9681 (decode_debug_loc_dwo_addresses): Likewise.
9682 (dwarf2_find_location_expression): Update.
9683 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9684 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9685 parameter.
9686 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9687 parameter.
9688 (locexpr_describe_location_1): Likewise.
9689 (locexpr_describe_location): Update.
9690
9691 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9692
9693 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9694 Remove.
9695 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9696 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9697 (dwarf2_compile_property_to_c): Update.
9698 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9699 use text offset from objfile.
9700 (locexpr_tracepoint_var_ref): Update.
9701 (locexpr_generate_c_location): Update.
9702 (loclist_describe_location): Update.
9703 (loclist_tracepoint_var_ref): Update.
9704 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9705 dwarf2_per_objfile parameter.
9706 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9707 use text offset from objfile.
9708 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9709
9710 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9711
9712 * dwarf2/expr.h (struct dwarf_expr_context)
9713 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9714 <offset>: Remove.
9715 <per_objfile>: New member.
9716 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9717 dwarf2_per_objfile parameter. Don't set offset, set
9718 per_objfile.
9719 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9720 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9721 a dwarf2_per_objfile object instead of an offset.
9722 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9723 constructor.
9724 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9725 to dwarf2_expr_executor constructor. Don't set offset.
9726 (dwarf2_fetch_cfa_info): Update.
9727 (struct dwarf2_frame_cache) <text_offset>: Remove.
9728 <per_objfile>: New field.
9729 (dwarf2_frame_cache): Update.
9730 (dwarf2_frame_prev_register): Update.
9731 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9732 <dwarf_evaluate_loc_desc>: Add constructor.
9733 (dwarf2_evaluate_loc_desc_full): Update.
9734 (dwarf2_locexpr_baton_eval): Update.
9735 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9736 Add constructor.
9737 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9738
9739 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9740
9741 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9742 addr_sized_int_type>: Move to dwarf2_cu.
9743 <int_type>: Move to dwarf2_per_objfile.
9744 (struct dwarf2_per_objfile) <int_type>: Move here.
9745 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9746 addr_sized_int_type>: Move here.
9747 (read_func_scope): Update.
9748 (read_array_type): Update.
9749 (read_tag_string_type): Update.
9750 (attr_to_dynamic_prop): Update.
9751 (dwarf2_per_cu_data::int_type): Rename to...
9752 (dwarf2_per_objfile::int_type): ... this.
9753 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9754 (dwarf2_cu::addr_sized_int_type): ... this.
9755 (read_subrange_type): Update.
9756 (dwarf2_per_cu_data::addr_type): Rename to...
9757 (dwarf2_cu::addr_type): ... this.
9758 (set_die_type): Update.
9759
9760 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9761
9762 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9763 data through per_cu->cu.
9764
9765 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9766
9767 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9768 dwarf2_per_cu_data parameter fo dwarf2_cu.
9769 (lookup_dwo_type_unit): Likewise.
9770 (read_cutu_die_from_dwo): Likewise.
9771 (lookup_dwo_unit): Likewise.
9772 (open_and_init_dwo_file): Likewise.
9773 (lookup_dwo_cutu): Likewise.
9774 (lookup_dwo_comp_unit): Likewise.
9775 (lookup_dwo_type_unit): Likewise.
9776 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9777 (cutu_reader::cutu_reader): Update.
9778
9779 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9780
9781 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9782 parameter.
9783 (process_full_type_unit): Likewise.
9784 (process_queue): Update.
9785
9786 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9787
9788 * dwarf2/read.c (recursively_compute_inclusions): Add
9789 dwarf2_per_objfile parameter.
9790 (compute_compunit_symtab_includes): Likewise.
9791 (process_cu_includes): Update.
9792
9793 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9794
9795 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9796 parameter.
9797 (create_type_unit_group): Update.
9798 (process_psymtab_comp_unit_reader): Update.
9799 (build_type_psymtabs_reader): Update.
9800
9801 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9802
9803 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9804 object through m_this_cu->cu.
9805
9806 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9807
9808 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9809 the info parameter.
9810 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9811
9812 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9813
9814 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9815 per_objfile parameter.
9816 (load_full_type_unit): Add per_objfile parameter.
9817 (read_signatured_type): Likewise.
9818 (load_full_comp_unit): Likewise.
9819 (load_cu): Likewise.
9820 (dw2_do_instantiate_symtab): Likewise.
9821 (dw2_get_file_names): Likewise.
9822 (dw2_map_symtabs_matching_filename): Update.
9823 (dw_expand_symtabs_matching_file_matcher): Update.
9824 (dw2_map_symbol_filenames): Update.
9825 (process_psymtab_comp_unit): Add per_objfile parameter.
9826 (build_type_psymtabs_1): Update.
9827 (process_skeletonless_type_unit): Update.
9828 (dwarf2_build_psymtabs_hard): Update.
9829 (load_partial_comp_unit): Add per_objfile parameter.
9830 (scan_partial_symbols): Update.
9831 (load_full_comp_unit): Add per_objfile parameter.
9832 (process_imported_unit_die): Update.
9833 (create_cus_hash_table): Update.
9834 (find_partial_die): Update.
9835 (dwarf2_read_addr_index): Update.
9836 (follow_die_offset): Update.
9837 (dwarf2_fetch_die_loc_sect_off): Update.
9838 (dwarf2_fetch_constant_bytes): Update.
9839 (dwarf2_fetch_die_type_sect_off): Update.
9840 (follow_die_sig_1): Update.
9841 (load_full_type_unit): Add per_objfile parameter.
9842 (read_signatured_type): Likewise.
9843
9844 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9845
9846 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9847 of objfile_name.
9848
9849 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9850
9851 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9852 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9853 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9854 field.
9855 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9856 (create_cus_from_index): Update.
9857 (dwarf2_read_gdb_index): Update.
9858 (create_cus_from_debug_names): Update.
9859 (dwarf2_read_debug_names): Update.
9860 (get_abbrev_section_for_cu): Update.
9861 (create_all_comp_units): Update.
9862 (read_attribute_value): Update.
9863 (get_debug_line_section): Update.
9864 * dwarf2/index-cache.c (index_cache::store): Update.
9865 * dwarf2/index-write.c (save_gdb_index_command): Update.
9866 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9867
9868 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9869
9870 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9871 member.
9872 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9873 dwarf2_per_cu_data::per_bfd.
9874 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9875 (create_type_unit_group): Likewise.
9876 (queue_comp_unit): Remove reference to
9877 per_cu->dwarf2_per_objfile.
9878 (maybe_queue_comp_unit): Likewise.
9879 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9880 (create_cus_hash_table): Assign new field.
9881
9882 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9883
9884 * dwarf2/read.c: Replace
9885 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9886 dwarf2_cu->per_objfile throughout.
9887
9888 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9889
9890 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9891 parameter, don't use per_cu->dwarf2_per_objfile.
9892 (dw2_instantiate_symtab): Likewise.
9893 (dw2_find_last_source_symtab): Update.
9894 (dw2_map_expand_apply): Update.
9895 (dw2_lookup_symbol): Update.
9896 (dw2_expand_symtabs_for_function): Update.
9897 (dw2_expand_all_symtabs): Update.
9898 (dw2_expand_symtabs_with_fullname): Update.
9899 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9900 don't use per_cu->dwarf2_per_objfile.
9901 (dw2_expand_marked_cus): Update.
9902 (dw2_find_pc_sect_compunit_symtab): Update.
9903 (dw2_debug_names_lookup_symbol): Update.
9904 (dw2_debug_names_expand_symtabs_for_function): Update.
9905 (dw2_debug_names_map_matching_symbols): Update.
9906 (dwarf2_psymtab::expand_psymtab): Update.
9907
9908 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9909
9910 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9911 <per_objfile>: New member.
9912 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9913 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9914 call to dwarf2_cu.
9915 (cutu_reader::cutu_reader): Update.
9916 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9917
9918 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
9919
9920 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9921 struct dwarf2_per_objfile.
9922 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9923 dwarf2_per_bfd.
9924 * dwarf2/read.c (set_die_type): Update.
9925 (get_die_type_at_offset): Update.
9926
9927 2020-05-27 Tom Tromey <tom@tromey.com>
9928 Simon Marchi <simon.marchi@efficios.com>
9929
9930 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9931 method.
9932 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9933 get_symtab, set_symtab>: New methods.
9934 <m_symtabs>: New field.
9935 (struct dwarf2_psymtab): Derive from partial_symtab.
9936 <readin_p, get_compunit_symtab>: Declare methods.
9937 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9938 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9939 New methods.
9940 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9941 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9942 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9943 (dw2_symtab_iter_next, dw2_print_stats)
9944 (dw2_expand_symtabs_with_fullname)
9945 (dw2_expand_symtabs_matching_one)
9946 (dw_expand_symtabs_matching_file_matcher)
9947 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9948 (dw2_debug_names_iterator::next)
9949 (dw2_debug_names_map_matching_symbols)
9950 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9951 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9952 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9953 New methods.
9954 (get_compunit_symtab, process_full_comp_unit)
9955 (process_full_type_unit): Update.
9956 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9957
9958 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9959
9960 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9961 then introduce a new dwarf2_per_objfile type.
9962 <read_line_string>: Move to the new dwarf2_per_objfile type.
9963 <objfile>: Likewise.
9964 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9965 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9966 dwarf2_per_objfile->per_bfd.
9967 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9968 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9969 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9970 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9971 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9972 (dwarf2_per_objfile::locate_sections): Rename to...
9973 (dwarf2_per_bfd::locate_sections): ... this.
9974 (dwarf2_per_objfile::get_cutu): Rename to...
9975 (dwarf2_per_bfd::get_cutu): ... this.
9976 (dwarf2_per_objfile::get_cu): Rename to...
9977 (dwarf2_per_bfd::get_cu): ... this.
9978 (dwarf2_per_objfile::get_tu): Rename to...
9979 (dwarf2_per_bfd::get_tu): ... this.
9980 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9981 (dwarf2_per_bfd::allocate_per_cu): ... this.
9982 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9983 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9984 (get_gdb_index_contents_ftype): Change parameter from
9985 dwarf2_per_objfile to dwarf2_per_bfd.
9986 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9987 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9988
9989 2020-05-27 Tom Tromey <tom@tromey.com>
9990 Simon Marchi <simon.marchi@efficios.com>
9991
9992 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9993 (allocate_piece_closure): Set "per_objfile" member.
9994 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9995 (locexpr_describe_location, loclist_describe_location): Use new
9996 member.
9997 * dwarf2/read.c (read_call_site_scope)
9998 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9999 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10000 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10001 handle_data_member_location): Set per_objfile member.
10002 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10003 member.
10004 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10005
10006 2020-05-27 Tom Tromey <tom@tromey.com>
10007
10008 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10009 allocate_signatured_type>: Declare new methods.
10010 <m_num_psymtabs>: New member.
10011 (struct dwarf2_per_cu_data) <index>: New member.
10012 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10013 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10014 (create_cu_from_index_list): Use allocate_per_cu.
10015 (create_signatured_type_table_from_index)
10016 (create_signatured_type_table_from_debug_names)
10017 (create_debug_type_hash_table, add_type_unit)
10018 (read_comp_units_from_section): Use allocate_signatured_type.
10019
10020 2020-05-27 Tom Tromey <tom@tromey.com>
10021
10022 * psymtab.c (partial_map_expand_apply)
10023 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10024 (psym_lookup_global_symbol_language)
10025 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10026 (psym_print_stats, psym_expand_symtabs_for_function)
10027 (psym_map_symbol_filenames, psym_map_matching_symbols)
10028 (psym_expand_symtabs_matching)
10029 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10030 (maintenance_check_psymtabs): Update.
10031 * psympriv.h (struct partial_symtab) <readin_p,
10032 get_compunit_symtab>: Add objfile parameter.
10033 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10034 Likewise.
10035 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10036 get_compunit_symtab>: Likewise.
10037 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10038
10039 2020-05-27 Tom Tromey <tom@tromey.com>
10040
10041 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10042 member.
10043 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10044 (create_cu_from_index_list)
10045 (create_signatured_type_table_from_index)
10046 (create_signatured_type_table_from_debug_names)
10047 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10048 (dwarf2_create_include_psymtab)
10049 (create_debug_type_hash_table, add_type_unit)
10050 (create_type_unit_group, read_comp_units_from_section)
10051 (dwarf2_compute_name, create_cus_hash_table)
10052 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10053 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10054 obstack.
10055 (dw2_get_real_path): Likewise. Change argument to
10056 dwarf2_per_objfile.
10057
10058 2020-05-27 Luis Machado <luis.machado@linaro.org>
10059
10060 PR tdep/26000
10061 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10062 for ldrd (immediate).
10063
10064 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10065
10066 * command.h: Add comment giving the name of class_tui.
10067 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10068 create the fake command for the help for class_tui.
10069
10070 2020-05-26 Tom Tromey <tromey@adacore.com>
10071
10072 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10073 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10074 (val_atr): New function.
10075 (value_val_atr): Use it.
10076 * ada-valprint.c (print_optional_low_bound): Change low bound
10077 handling for enums.
10078 (val_print_packed_array_elements): Don't call discrete_position.
10079 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10080 discrete_position for enum types.
10081 * language.c (default_print_array_index): Change type.
10082 * language.h (struct language_defn) <la_print_array_index>: Add
10083 index_type parameter, change type of index_value.
10084 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10085 (default_print_array_index): Update.
10086 * valprint.c (maybe_print_array_index): Don't call
10087 value_from_longest. Update.
10088 (value_print_array_elements): Don't call discrete_position.
10089
10090 2020-05-26 Tom Tromey <tromey@adacore.com>
10091
10092 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10093 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10094
10095 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10096
10097 PR gdb/13519
10098 * avr-tdep.c (avr_integer_to_address): Return data or code
10099 address accordingly to the second 'type' argument of the
10100 function.
10101
10102 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10103
10104 * infcmd.c, inferior.h: (construct_inferior_arguments):
10105 Moved function from here to gdbsupport/common-inferior.{h,cc}
10106
10107 2020-05-23 Tom Tromey <tom@tromey.com>
10108
10109 Revert commit eca1f90c:
10110 * NEWS: Remove entry for completion styling.
10111 * completer.c (_rl_completion_prefix_display_length): Move
10112 declaration later.
10113 (gdb_fnprint): Revert.
10114 (gdb_display_match_list_1): Likewise.
10115 * cli/cli-style.c (completion_prefix_style)
10116 (completion_difference_style, completion_suffix_style): Remove.
10117 (_initialize_cli_style): Revert.
10118 * cli/cli-style.h (completion_prefix_style)
10119 (completion_difference_style, completion_suffix_style): Don't
10120 declare.
10121
10122 2020-05-24 Pedro Alves <palves@redhat.com>
10123
10124 * symtab.c (completion_list_add_name): Return boolean indication
10125 of whether the symbol matched.
10126 (completion_list_add_symbol): Don't try to remove C++ aliases if
10127 the symbol didn't match in the first place.
10128 * symtab.h (completion_list_add_name): Return bool.
10129
10130 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10131
10132 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10133 type::field.
10134
10135 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10136
10137 GDB 9.2 released.
10138
10139 2020-05-23 Tom Tromey <tom@tromey.com>
10140
10141 * NEWS: Add entry for completion styling.
10142 * completer.c (_rl_completion_prefix_display_length): Move
10143 declaration earlier.
10144 (gdb_fnprint): Use completion_style.
10145 (gdb_display_match_list_1): Likewise.
10146 * cli/cli-style.c (completion_prefix_style)
10147 (completion_difference_style, completion_suffix_style): New
10148 globals.
10149 (_initialize_cli_style): Register new globals.
10150 * cli/cli-style.h (completion_prefix_style)
10151 (completion_difference_style, completion_suffix_style): Declare.
10152
10153 2020-05-23 Pedro Alves <palves@redhat.com>
10154
10155 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10156 (parse_escape): Use ISDIGIT instead of isdigit.
10157 (puts_debug): Use gdb_isprint instead of isprint.
10158 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10159 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10160 ISSPACE instead of isspace.
10161 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10162 instead of isspace.
10163 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10164 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10165 instead of isxdigit and ISDIGIT instead of isdigit.
10166
10167 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10168
10169 * gdbtypes.h (struct type) <field>: New method.
10170 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10171 or type::field.
10172
10173 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10174
10175 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10176 (TYPE_FIELDS): Use type::fields. Change all call sites that
10177 modify the propery to use type::set_fields instead.
10178
10179 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10180
10181 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10182 type::num_fields instead.
10183
10184 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10185
10186 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10187 methods.
10188 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10189 that modify the number of fields to use type::set_num_fields
10190 instead.
10191
10192 2020-05-22 Tom Tromey <tromey@adacore.com>
10193
10194 * compile/compile-object-load.h (munmap_list_free): Don't
10195 declare.
10196
10197 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10198
10199 * annotate.c (annotate_source_line): Update return type, add call
10200 to update current symtab and line.
10201 * annotate.h (annotate_source_line): Update return type, and
10202 extend header comment.
10203 * source.c (info_line_command): Check annotation_level before
10204 calling annotate_source_line.
10205 * stack.c (print_frame_info): If calling annotate_source_line
10206 returns true, then don't print any other source line information.
10207
10208 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10209
10210 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10211
10212 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10213
10214 * coffread.c (patch_type): Remove NULL check before xfree.
10215 * corefile.c (set_gnutarget): Likewise.
10216 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10217 * exec.c (build_section_table): Likewise.
10218 * remote.c (remote_target::pass_signals): Likewise.
10219 * utils.c (n_spaces): Likewise.
10220 * cli/cli-script.c (document_command): Likewise.
10221 * i386-windows-tdep.c (core_process_module_section): Likewise.
10222 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10223
10224 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10225
10226 * symfile.c (reread_symbols): Clear objfile's section_offsets
10227 vector and section indices, re-compute them by calling
10228 sym_offsets.
10229
10230 2020-05-20 Tom Tromey <tromey@adacore.com>
10231
10232 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10233 (desc_one_bound, desc_index_type): Compute field name.
10234
10235 2020-05-20 Tom de Vries <tdevries@suse.de>
10236
10237 PR symtab/25833
10238 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10239
10240 2020-05-20 Alan Modra <amodra@gmail.com>
10241
10242 PR 25993
10243 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10244 bfd_set_filename.
10245 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10246 passed to bfd_set_filename.
10247 * symfile-mem.c (add_vsyscall_page): Likewise for string
10248 passed to symbol_file_add_from_memory.
10249 (symbol_file_add_from_memory): Make name param a const char* and
10250 don't strdup.
10251
10252 2020-05-20 Alan Modra <amodra@gmail.com>
10253
10254 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10255 rather than accessing bfd->filename directly.
10256 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10257 and use bfd_section_name.
10258 * dwarf2/frame.c (decode_frame_entry): Likewise.
10259 * exec.c (exec_set_section_address): Likewise.
10260 * solib-aix.c (solib_aix_bfd_open): Likewise.
10261 * stap-probe.c (get_stap_base_address): Likewise.
10262 * symfile.c (reread_symbols): Likewise.
10263
10264 2020-05-19 Tom Tromey <tromey@adacore.com>
10265
10266 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10267
10268 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10269
10270 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10271
10272 2020-05-19 Pedro Alves <palves@redhat.com>
10273
10274 * NEWS (set exec-file-mismatch): Adjust entry.
10275 * exec.c: Include "build-id.h".
10276 (validate_exec_file): Try to match build IDs instead of filenames.
10277 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10278 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10279 and pass down 'warn_if_slow'.
10280 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10281 gdb_bfd_open_closure to pass it down.
10282 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10283
10284 2020-05-19 Pedro Alves <palves@redhat.com>
10285
10286 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10287 * target.c (target_fileio_open_1): Rename to target_fileio_open
10288 and make extern. Use bool.
10289 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10290 (target_fileio_read_alloc_1): Adjust.
10291 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10292 (target_fileio_open_warn_if_slow): Delete declaration.
10293
10294 2020-05-19 Pedro Alves <palves@redhat.com>
10295
10296 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10297 Adjust all callers.
10298
10299 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10300
10301 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10302 whether disp is negative.
10303
10304 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10305
10306 * symfile.h (struct symfile_segment_data)
10307 <~symfile_segment_data>: Remove.
10308 <segment_info>: Change to std::vector.
10309 * symfile.c (default_symfile_segments): Update.
10310 * elfread.c (elf_symfile_segments): Update.
10311
10312 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10313
10314 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10315 <segments>: New.
10316 <segment_bases, segment_sizes>: Remove.
10317 * symfile.c (default_symfile_segments): Update.
10318 * elfread.c (elf_symfile_segments): Update.
10319 * remote.c (remote_target::get_offsets): Update.
10320 * solib-target.c (solib_target_relocate_section_addresses):
10321 Update.
10322
10323 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10324
10325 * symfile.h (struct symfile_segment_data): Initialize fields.
10326 <~symfile_segment_data>: Add.
10327 (symfile_segment_data_up): New.
10328 (struct sym_fns) <sym_segments>: Return a
10329 symfile_segment_data_up.
10330 (default_symfile_segments): Return a symfile_segment_data_up.
10331 (free_symfile_segment_data): Remove.
10332 (get_symfile_segment_data): Return a symfile_segment_data_up.
10333 * symfile.c (default_symfile_segments): Likewise.
10334 (get_symfile_segment_data): Likewise.
10335 (free_symfile_segment_data): Remove.
10336 (symfile_find_segment_sections): Update.
10337 * elfread.c (elf_symfile_segments): Return a
10338 symfile_segment_data_up.
10339 * remote.c (remote_target::get_offsets): Update.
10340 * solib-target.c (solib_target_relocate_section_addresses):
10341 Update.
10342 * symfile-debug.c (debug_sym_segments): Return a
10343 symfile_segment_data_up.
10344
10345 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10346
10347 PR build/25981
10348 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10349 Hardcode register numbers.
10350
10351 PR build/25981
10352 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10353 procfs_find_LDT_entry): Remove.
10354 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10355 procfs_find_LDT_entry): Remove.
10356 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10357 Remove.
10358
10359 2020-05-17 Pedro Alves <palves@redhat.com>
10360 Andrew Burgess <andrew.burgess@embecosm.com>
10361 Keno Fischer <keno@juliacomputing.com>
10362
10363 PR gdb/25741
10364 * breakpoint.c (build_target_condition_list): Update comments.
10365 (build_target_command_list): Update comments and skip matching
10366 locations.
10367 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10368 a separate function. Simplify "set breakpoint auto-hw off"
10369 handling.
10370 (insert_breakpoints): Update comment.
10371 (tracepoint_locations_match): New parameter. For breakpoints,
10372 compare location types too, if the caller wants to.
10373 (handle_automatic_hardware_breakpoints): New functions.
10374 (bp_location_is_less_than): Also sort by location type and
10375 hardware breakpoint length.
10376 (update_global_location_list): Handle "set breakpoint auto-hw on"
10377 here.
10378 (update_breakpoint_locations): Ask breakpoint_locations_match to
10379 ignore location types.
10380
10381 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10382
10383 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10384 type::name instead.
10385
10386 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10387
10388 * gdbtypes.h (struct type) <name, set_name>: New methods.
10389 (TYPE_CODE): Use type::name. Change all call sites used to set
10390 the name to use type::set_name instead.
10391
10392 2020-05-16 Tom Tromey <tom@tromey.com>
10393
10394 * top.c (quit_force): Update.
10395 * infrun.c (handle_no_resumed): Update.
10396 * top.h (all_uis): New function.
10397 (ALL_UIS): Remove.
10398
10399 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
10400
10401 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10402
10403 2020-05-16 Pedro Alves <palves@redhat.com>
10404
10405 * ia64-linux-nat.c
10406 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10407 Declare method.
10408 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10409
10410 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
10411
10412 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10413 (sparc64_adi_info): Likewise.
10414
10415 2020-05-15 Tom Tromey <tom@tromey.com>
10416
10417 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10418 block_objfile.
10419 (lookup_objfile_from_block): Remove.
10420 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10421 (lookup_global_symbol): Use block_objfile.
10422 * symtab.h (lookup_objfile_from_block): Don't declare.
10423 * printcmd.c (clear_dangling_display_expressions): Use
10424 block_objfile.
10425 * parse.c (operator_check_standard): Use block_objfile.
10426
10427 2020-05-15 Tom Tromey <tom@tromey.com>
10428
10429 * language.c (language_alloc_type_symbol): Set
10430 SYMBOL_SECTION.
10431 * symtab.c (initialize_objfile_symbol): Remove.
10432 (allocate_symbol): Remove.
10433 (allocate_template_symbol): Remove.
10434 * dwarf2/read.c (fixup_go_packaging): Use "new".
10435 (new_symbol): Use "new".
10436 (read_variable): Don't call initialize_objfile_symbol. Use
10437 "new".
10438 (read_func_scope): Use "new".
10439 * xcoffread.c (process_xcoff_symbol): Don't call
10440 initialize_objfile_symbol.
10441 (SYMBOL_DUP): Remove.
10442 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10443 "new".
10444 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10445 (allocate_template_symbol): Don't declare.
10446 (struct symbol): Add copy constructor. Change defaults.
10447 * jit.c (finalize_symtab): Use "new".
10448 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10449 Use "new".
10450 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10451 (common_block_end): Use "new".
10452 * mdebugread.c (parse_symbol): Use "new".
10453 (new_symbol): Likewise.
10454
10455 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10456
10457 * NEWS: Mention changes to help and apropos.
10458
10459 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10460
10461 * command.h (enum command_class): Improve comments, document
10462 that class_alias is for user-defined aliases, give the class
10463 name for each class, remove unused class_xdb.
10464 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10465 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10466 by a precise class.
10467 * infcmd.c (_initialize_infcmd): Likewise.
10468 * reverse.c (_initialize_reverse): Likewise.
10469 * stack.c (_initialize_stack): Likewise.
10470 * symfile.c (_initialize_symfile): Likewise.
10471 * tracepoint.c (_initialize_tracepoint): Likewise.
10472
10473 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10474
10475 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10476 when their aliased command is traversed.
10477 (help_cmd): Add fput_command_names_styled call to
10478 output command name and aliases when command has an alias.
10479
10480 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10481
10482 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10483 * cli/cli-decode.c (help_cmd_list): Declare as static,
10484 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10485 a command together with the command.
10486 (fput_command_name_styled, fput_command_names_styled): New functions.
10487 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10488 fput_command_name_styled.
10489 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10490 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10491
10492 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10493
10494 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10495 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10496 * command.h (cmd_show_list): Likewise.
10497 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10498 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10499
10500 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10501
10502 * unittests/command-def-selftests.c (traverse_command_structure):
10503 Verify all commands of a list have the same prefix command and
10504 that only the top cmdlist commands have a null prefix.
10505
10506 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10507
10508 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10509 as prefix, not one of its aliases.
10510 (set_cmd_prefix): Remove.
10511 (do_add_cmd): Centralize the setting of the prefix of a command, when
10512 command is defined after its full chain of prefix commands.
10513 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10514 (add_setshow_cmd_full): Likewise.
10515 (update_prefix_field_of_prefixed_commands): New function.
10516 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10517 update_prefix_field_of_prefixed_commands.
10518 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10519 addresses of remote_set_cmdlist and remote_show_cmdlist given
10520 as argument, not the address of an argument.
10521 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10522 * gdb/remote.c (_initialize_remote): Likewise.
10523
10524 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10525
10526 * cli/cli-cmds.c (alias_command): Check for an existing alias
10527 using lookup_cmd_composition, as valid_command_p is too strict
10528 and forbids aliases that are the prefix of an existing alias
10529 or command.
10530 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10531 command is properly recognised as a valid command.
10532
10533 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10534
10535 * unittests/help-doc-selftests.c: Rename to
10536 unittests/command-def-selftests.c
10537 * unittests/command-def-selftests.c (help_doc_tests): Update some
10538 comments.
10539 (command_structure_tests, traverse_command_structure): New namespace
10540 and function.
10541 (command_structure_invariants_tests): New function.
10542 (_initialize_command_def_selftests) Renamed from
10543 _initialize_help_doc_selftests, register command_structure_invariants
10544 selftest.
10545
10546 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10547
10548 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10549 an alias of 'show'.
10550
10551 2020-05-15 Joel Brobecker <brobecker@adacore.com>
10552
10553 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10554 ada_is_fixed_point_type. Update all callers.
10555 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10556 all callers.
10557 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10558 Update all callers.
10559 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10560 print_fixed_point_type. Update all callers.
10561 * ada-valprint.c (ada_value_print_num): Replace call to
10562 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10563
10564 2020-05-14 Kevin Buettner <kevinb@redhat.com>
10565
10566 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10567 processors.
10568 (cpu_supports_bts): Add CV_AMD case.
10569
10570 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10571 Simon Marchi <simon.marchi@efficios.com>
10572
10573 * infrun.c (stop_all_threads): Collect multiple wait events at
10574 each pass.
10575
10576 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10577
10578 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10579 type::code instead.
10580
10581 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
10582
10583 * gdbtypes.h (struct type) <code, set_code>: New methods.
10584 (TYPE_CODE): Use type::code. Change all call sites used to set
10585 the code to use type::set_code instead.
10586
10587 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10588 Tom de Vries <tdevries@suse.de>
10589 Pedro Alves <palves@redhat.com>
10590
10591 PR threads/25478
10592 * infrun.c (stop_all_threads): Do NOT ignore
10593 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10594 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10595 received.
10596 (handle_no_resumed): Remove code handling a live inferior with no
10597 threads.
10598 * remote.c (has_single_non_exited_thread): New.
10599 (remote_target::update_thread_list): Do not delete a thread if is
10600 the last thread of the process.
10601 * thread.c (thread_select): Call delete_exited_threads instead of
10602 prune_threads.
10603
10604 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10605
10606 * infrun.c (stop_all_threads): Enable/disable thread events of all
10607 targets. Move a debug message denoting the end of the function
10608 into the SCOPED_EXIT block.
10609
10610 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10611
10612 * process-stratum-target.h: Include <set>.
10613 (all_non_exited_process_targets, switch_to_target_no_thread): New
10614 function declarations.
10615 * process-stratum-target.c (all_non_exited_process_targets)
10616 (switch_to_target_no_thread): New function implementations.
10617
10618 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10619
10620 * infrun.c (handle_inferior_event): Extract out a piece of code
10621 into...
10622 (mark_non_executing_threads): ...this new function.
10623
10624 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10625
10626 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10627 use.
10628
10629 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10630
10631 * regcache.c (regcache_read_pc_protected): New function
10632 implementation that returns 0 if the PC cannot read via
10633 'regcache_read_pc'.
10634 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10635 instead of 'regcache_read_pc'.
10636 (keep_going_pass_signal): Ditto.
10637
10638 2020-05-13 Tom Tromey <tromey@adacore.com>
10639
10640 * ada-lang.c (align_value): Remove.
10641 (ada_template_to_fixed_record_type_1): Use align_up.
10642
10643 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10644
10645 * async-event.c: Update the copyright year.
10646 * async-event.h: Update the copyright year.
10647
10648 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
10649
10650 * objfiles.h (is_addr_in_objfile,
10651 shared_objfile_contains_address_p): Return bool.
10652 * objfile.c (is_addr_in_objfile,
10653 shared_objfile_contains_address_p): Return bool.
10654
10655 2020-05-11 Tom Tromey <tromey@adacore.com>
10656
10657 * cli/cli-cmds.c (info_command): Restore.
10658 (_initialize_cli_cmds): Use add_prefix_command for "info".
10659 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10660
10661 2020-05-11 Tom Tromey <tromey@adacore.com>
10662
10663 * ada-lang.c (ada_value_primitive_field): Now public.
10664 * ada-lang.h (ada_value_primitive_field): Declare.
10665 * ada-valprint.c (print_field_values): Use
10666 ada_value_primitive_field for wrapper fields.
10667
10668 2020-05-11 Tom de Vries <tdevries@suse.de>
10669
10670 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10671 MODULE_DOMAIN.
10672
10673 2020-05-11 Tom de Vries <tdevries@suse.de>
10674
10675 PR symtab/25941
10676 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10677 with length 0, if not gdb-produced.
10678 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10679
10680 2020-05-09 Tom de Vries <tdevries@suse.de>
10681
10682 PR gdb/25955
10683 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10684 calculation.
10685
10686 2020-05-09 Tom Tromey <tom@tromey.com>
10687
10688 * top.c (server_command): Now bool.
10689 * top.h (server_command): Now bool.
10690
10691 2020-05-08 Tom Tromey <tromey@adacore.com>
10692
10693 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10694 already being processed.
10695
10696 2020-05-08 Tom Tromey <tom@tromey.com>
10697
10698 * printcmd.c (struct display) <next>: Remove.
10699 <display>: New constructor.
10700 <exp_string>: Now a std::string.
10701 <enabled_p>: Now a bool.
10702 (display_number): Move definition earlier.
10703 (displays): Rename from display_chain. Now a std::vector.
10704 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10705 (display_command): Update.
10706 (do_one_display, disable_display)
10707 (enable_disable_display_command, do_enable_disable_display):
10708 Update.
10709 (free_display): Remove.
10710 (clear_displays): Rewrite.
10711 (delete_display): Update.
10712 (map_display_numbers): Use function_view. Remove "data"
10713 parameter. Update.
10714 (do_delete_display): Remove.
10715 (undisplay_command): Update.
10716 (do_one_display, do_displays, disable_display)
10717 (info_display_command): Update.
10718 (do_enable_disable_display): Remove.
10719 (enable_disable_display_command)
10720 (clear_dangling_display_expressions): Update.
10721
10722 2020-05-08 Tom Tromey <tom@tromey.com>
10723
10724 * symtab.c (set_symbol_cache_size)
10725 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10726 (maintenance_print_symbol_cache_statistics): Update.
10727 * symmisc.c (print_symbol_bcache_statistics)
10728 (print_objfile_statistics, maintenance_print_objfiles)
10729 (maintenance_info_symtabs, maintenance_check_symtabs)
10730 (maintenance_expand_symtabs, maintenance_info_line_tables):
10731 Update.
10732 * symfile-debug.c (set_debug_symfile): Update.
10733 * source.c (forget_cached_source_info): Update.
10734 * python/python.c (gdbpy_progspaces): Update.
10735 * psymtab.c (maintenance_info_psymtabs): Update.
10736 * probe.c (parse_probes): Update.
10737 * linespec.c (iterate_over_all_matching_symtabs)
10738 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10739 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10740 * exec.c (exec_target::close): Update.
10741 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10742 * breakpoint.c (print_one_breakpoint_location)
10743 (create_longjmp_master_breakpoint)
10744 (create_std_terminate_master_breakpoint): Update.
10745 * progspace.c (program_spaces): Now a std::vector.
10746 (maybe_new_address_space): Update.
10747 (add_program_space): Remove.
10748 (program_space::program_space): Update.
10749 (remove_program_space): Update.
10750 (number_of_program_spaces): Remove.
10751 (print_program_space, update_address_spaces): Update.
10752 * progspace.h (program_spaces): Change type.
10753 (ALL_PSPACES): Remove.
10754 (number_of_program_spaces): Don't declare.
10755 (struct program_space) <next>: Remove.
10756
10757 2020-05-08 Tom Tromey <tom@tromey.com>
10758
10759 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10760 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10761 (enable_break): Update.
10762 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10763 (frv_fdpic_find_canonical_descriptor): Update.
10764 (frv_fetch_objfile_link_map): Update.
10765 * progspace.c (program_space::free_all_objfiles): Update.
10766 (program_space::solibs): New method.
10767 * progspace.h (struct program_space) <solibs>: New method.
10768 * solist.h (master_so_list): Don't declare.
10769 (ALL_SO_LIBS): Remove.
10770 * solib.h (so_list_head): Remove.
10771 (update_solib_list): Update comment.
10772 * solib.c (master_so_list): Remove.
10773 (solib_used, update_solib_list, solib_add)
10774 (info_sharedlibrary_command, clear_solib)
10775 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10776
10777 2020-05-08 Tom Tromey <tom@tromey.com>
10778
10779 * extension.c (extension_languages): Now a std::array.
10780 (ALL_EXTENSION_LANGUAGES): Remove.
10781 (get_ext_lang_defn, get_ext_lang_of_file)
10782 (eval_ext_lang_from_control_command): Update.
10783 (finish_ext_lang_initialization)
10784 (auto_load_ext_lang_scripts_for_objfile)
10785 (ext_lang_type_printers::ext_lang_type_printers)
10786 (apply_ext_lang_type_printers)
10787 (ext_lang_type_printers::~ext_lang_type_printers)
10788 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10789 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10790 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10791 (get_matching_xmethod_workers, ext_lang_colorize)
10792 (ext_lang_before_prompt): Update.
10793 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10794
10795 2020-05-08 Tom Tromey <tom@tromey.com>
10796
10797 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10798 overload.
10799 <swap_string, m_string>: Remove.
10800 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10801 Update.
10802 * stabsread.c (define_symbol, read_type): Update.
10803 * linespec.c (find_linespec_symbols): Update.
10804 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10805 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10806 * dbxread.c (read_dbx_symtab): Update.
10807 * cp-support.h (cp_canonicalize_string_full)
10808 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10809 Return unique_xmalloc_ptr.
10810 * cp-support.c (inspect_type): Update.
10811 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10812 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10813 Likewise.
10814 * c-typeprint.c (print_name_maybe_canonical): Update.
10815 * break-catch-throw.c (check_status_exception_catchpoint):
10816 Update.
10817
10818 2020-05-08 Tom de Vries <tdevries@suse.de>
10819
10820 * infrun.c (follow_fork): Copy current_line and current_symtab to
10821 child thread.
10822
10823 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10824
10825 * async-event.c (struct async_signal_handler, struct
10826 async_event_handler): Reformat, remove typedef.
10827
10828 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10829
10830 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10831 access thistype->main_type->dyn_prop_list directly.
10832
10833 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10834
10835 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10836 (remove_dyn_prop): Remove. Update all users to use
10837 type::remove_dyn_prop.
10838 * gdbtypes.c (remove_dyn_prop): Rename to...
10839 (type::remove_dyn_prop): ... this.
10840
10841 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10842
10843 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10844 (add_dyn_prop): Remove. Update all users to use
10845 type::add_dyn_prop.
10846 * gdbtypes.c (add_dyn_prop): Rename to...
10847 (type::add_dyn_prop): ... this.
10848
10849 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
10850
10851 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10852 (get_dyn_prop): Remove. Update all users to use
10853 type::dyn_prop.
10854 * gdbtypes.c (get_dyn_prop): Rename to...
10855 (type::dyn_prop): ... this.
10856
10857 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10858
10859 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10860
10861 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
10862
10863 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10864 instruction, skip it if it's there.
10865
10866 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
10867
10868 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10869
10870 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
10871
10872 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10873 * gdbtypes.c (recursive_dump_type): Remove use of
10874 TYPE_INCOMPLETE.
10875
10876 2020-05-03 Tom Tromey <tom@tromey.com>
10877
10878 * breakpoint.c (catch_command, tcatch_command): Remove.
10879 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10880 add_show_prefix_cmd.
10881 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10882 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10883 Remove.
10884 (add_internal_problem_command): Use add_basic_prefix_cmd,
10885 add_show_prefix_cmd.
10886 * mips-tdep.c (set_mipsfpu_command): Remove.
10887 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10888 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10889 (_initialize_index_cache): Use add_basic_prefix_cmd.
10890 * memattr.c (dummy_cmd): Remove.
10891 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10892 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10893 (_initialize_tui_win): Use add_basic_prefix_cmd,
10894 add_show_prefix_cmd.
10895 * cli/cli-logging.c (set_logging_command): Remove.
10896 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10897 add_show_prefix_cmd.
10898 (show_logging_command): Remove.
10899 * target.c (target_command): Remove.
10900 (add_target): Use add_basic_prefix_cmd.
10901
10902 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
10903
10904 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10905
10906 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10907
10908 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10909 info_command.
10910
10911 2020-04-30 Kamil Rytarowski <n54@gmx.com>
10912
10913 * nbsd-nat.c (nbsd_enable_proc_events)
10914 (nbsd_nat_target::post_startup_inferior): Add.
10915 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10916 (nbsd_nat_target::update_thread_list): Rewrite.
10917 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10918 "PTRACE_LWP_CREATE".
10919 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10920
10921 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10922
10923 * stack.c (_initialize_stack): Remove duplicated creation
10924 of "frame" command and "f" alias.
10925
10926 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10927
10928 PR gdb/18706
10929 * gdbtypes.c (check_typedef): Calculate size of array of
10930 stubbed type.
10931
10932 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
10933
10934 PR gdb/15559
10935 * i386-tdep.c (i386_push_dummy_call): Call
10936 i386_thiscall_push_dummy_call.
10937 (i386_thiscall_push_dummy_call): New function.
10938 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10939 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10940 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10941
10942 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10943
10944 * gdbarch.sh (do_read): Add shellcheck disable directive for
10945 warning SC2162.
10946
10947 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10948
10949 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10950 "referenced but not assigned" warning.
10951
10952 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10953
10954 * gdbarch.sh: Remove code that sets fallbackdefault.
10955
10956 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10957
10958 * gdbarch.sh: Use shell operators && and || instead of
10959 -a and -o.
10960
10961 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10962
10963 * gdbarch.sh: Use $(...) instead of `...`.
10964
10965 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10966
10967 * gdbarch.sh: Use double quotes around variables.
10968
10969 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
10970
10971 * gdbarch.sh: Use %s with printf, instead of variables in the
10972 format string.
10973
10974 2020-04-29 Tom Tromey <tromey@adacore.com>
10975
10976 PR ada/25875:
10977 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10978 type fields here.
10979 (read_enumeration_type): Call
10980 update_enumeration_type_from_children later. Update comments.
10981 (process_enumeration_scope): Don't create type fields.
10982
10983 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10984
10985 * nbsd-tdep.c: Include "xml-syscall.h".
10986 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10987
10988 2020-04-29 Kamil Rytarowski <n54@gmx.com>
10989
10990 * nbsd-nat.c: Include "sys/wait.h".
10991 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10992 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10993 (nbsd_nat_target::remove_exec_catchpoint)
10994 (nbsd_nat_target::set_syscall_catchpoint): Add.
10995 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10996 (nbsd_nat_target::insert_exec_catchpoint)
10997 (nbsd_nat_target::remove_exec_catchpoint)
10998 (nbsd_nat_target::set_syscall_catchpoint): Add.
10999 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11000 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11001 `nbsd_get_syscall_number'.
11002
11003 2020-04-29 Tom Tromey <tom@tromey.com>
11004
11005 * stack.c (print_block_frame_labels): Remove.
11006
11007 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11008
11009 PR gdb/17320
11010 * ada-valprint.c (val_print_packed_array_elements): Move array
11011 end bracket to new line.
11012 (ada_val_print_string): Remove extra spaces before first array
11013 element.
11014 * c-valprint.c (c_value_print_array): Likewise.
11015 * m2-valprint.c (m2_print_array_contents): Likewise.
11016 (m2_value_print_inner): Likewise.
11017 * p-valprint.c (pascal_value_print_inner): Likewise.
11018 * valprint.c (generic_val_print_array): Likewise.
11019 (value_print_array_elements): Move first array element and array
11020 end bracket to new line.
11021
11022 2020-04-29 Tom de Vries <tdevries@suse.de>
11023
11024 PR symtab/25889
11025 * linespec.c (find_method): Fix ix calculation.
11026
11027 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11028
11029 * syscalls/update-netbsd.sh: New file.
11030 * syscalls/netbsd.xml: Regenerate.
11031 * data-directory/Makefile.in: Register `netbsd.xml' in
11032 `SYSCALLS_FILES'.
11033
11034 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11035
11036 * syscalls/update-freebsd.sh: Add double quotes.
11037
11038 2020-04-28 Tom Tromey <tom@tromey.com>
11039
11040 * NEWS: Update.
11041 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11042 (cmdpy_init): Allow class_tui.
11043
11044 2020-04-28 Mark Williams <mark@myosotissp.com>
11045
11046 PR gdb/24480
11047 * dwarf2read.c: Add missing assingments to list_in_scope when
11048 start_symtab was already called.
11049
11050 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11051
11052 PR gdb/25881
11053 * dwarf2/read.c (offset_map_type): Use
11054 gdb:hash_enum<sect_offset> as hash function.
11055
11056 2020-04-28 Tom de Vries <tdevries@suse.de>
11057
11058 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11059 with DW_AT_signature.
11060
11061 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11062
11063 * configure.ac: Remove check for fs_base/gs_base in
11064 user_regs_struct.
11065 * configure: Re-generate.
11066 * config.in: Re-generate.
11067 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11068 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11069 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11070
11071 2020-04-27 Luis Machado <luis.machado@linaro.org>
11072
11073 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11074 problematic inline frame unwinding situation.
11075 * frame.c (frame_id_computed_p): New function.
11076 * frame.h (frame_id_computed_p): New prototype.
11077
11078 2020-04-26 Tom Tromey <tom@tromey.com>
11079
11080 * command.h (enum command_class) <class_pseudo>: Remove.
11081
11082 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11083
11084 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11085 and whitespace.
11086
11087 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11088
11089 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11090 `PT_GET_PROCESS_STATE' block.
11091
11092 2020-04-24 Tom Tromey <tom@tromey.com>
11093
11094 * symtab.h (symbol_get_demangled_name): Don't declare.
11095 * symtab.c (symbol_get_demangled_name): Remove.
11096 (general_symbol_info::natural_name)
11097 (general_symbol_info::demangled_name): Update.
11098
11099 2020-04-24 Tom Tromey <tom@tromey.com>
11100
11101 PR rust/25025:
11102 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11103
11104 2020-04-24 Tom Tromey <tom@tromey.com>
11105
11106 PR symtab/12707:
11107 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11108 exists.
11109 (new_symbol): Likewise.
11110 * compile/compile-object-load.c (get_out_value_type): Use
11111 symbol_matches_search_name.
11112
11113 2020-04-24 Tom Tromey <tom@tromey.com>
11114
11115 * dwarf2/read.c (add_partial_symbol): Do not call
11116 compute_and_set_names.
11117
11118 2020-04-24 Tom Tromey <tom@tromey.com>
11119
11120 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11121 overload.
11122
11123 2020-04-24 Tom Tromey <tom@tromey.com>
11124
11125 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11126 (add_psymbol_to_list): New overload. Make old overload call new
11127 one.
11128 * psympriv.h (add_psymbol_to_list): New overload.
11129
11130 2020-04-24 Tom Tromey <tom@tromey.com>
11131
11132 * dwarf2/read.c (partial_die_info::read) <case
11133 DW_AT_linkage_name>: Use value_as_string.
11134 (dwarf2_string_attr): Use value_as_string.
11135 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11136 method.
11137 * dwarf2/attribute.c (attribute::value_as_string): New method.
11138
11139 2020-04-24 Tom Tromey <tom@tromey.com>
11140
11141 * symtab.c (general_symbol_info::natural_name)
11142 (general_symbol_info::demangled_name): Check for language_rust.
11143
11144 2020-04-24 Tom Tromey <tom@tromey.com>
11145
11146 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11147 (dwarf2_physname): ... from here.
11148 (partial_die_info::read): Add Rust "{" hack.
11149
11150 2020-04-24 Tom Tromey <tom@tromey.com>
11151
11152 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11153 method.
11154 (symbol_set_demangled_name): Don't declare.
11155 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11156 symbol_set_demangled_name.
11157 (general_symbol_info::set_language)
11158 (general_symbol_info::compute_and_set_names): Update.
11159 * minsyms.c (minimal_symbol_reader::install): Update.
11160 * dwarf2/read.c (new_symbol): Update.
11161
11162 2020-04-24 Tom Tromey <tromey@adacore.com>
11163
11164 PR python/23662:
11165 * python/py-type.c (convert_field): Handle
11166 FIELD_LOC_KIND_DWARF_BLOCK.
11167 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11168 (typy_get_dynamic): Nw function.
11169 (type_object_getset): Add "dynamic".
11170 * NEWS: Add entry.
11171
11172 2020-04-24 Tom Tromey <tromey@adacore.com>
11173
11174 * ada-typeprint.c (print_choices, print_variant_part)
11175 (print_record_field_types_dynamic): New functions.
11176 (print_record_field_types): Use print_record_field_types_dynamic.
11177
11178 2020-04-24 Tom Tromey <tromey@adacore.com>
11179
11180 * dwarf2/read.c (handle_data_member_location): New overload.
11181 (dwarf2_add_field): Use it.
11182 (decode_locdesc): Add "computed" parameter. Update comment.
11183 * gdbtypes.c (is_dynamic_type_internal): Also look for
11184 FIELD_LOC_KIND_DWARF_BLOCK.
11185 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11186 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11187 virtual base classes.
11188 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11189 FIELD_LOC_KIND_DWARF_BLOCK.
11190
11191 2020-04-24 Tom Tromey <tromey@adacore.com>
11192
11193 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11194 * gdbtypes.c (is_dynamic_type_internal): Check
11195 TYPE_HAS_DYNAMIC_LENGTH.
11196 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11197 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11198 New macros.
11199 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11200 constant.
11201
11202 2020-04-24 Tom Tromey <tromey@adacore.com>
11203
11204 * dwarf2/read.c (struct variant_field): Rewrite.
11205 (struct variant_part_builder): New.
11206 (struct nextfield): Remove "variant" field. Add "offset".
11207 (struct field_info): Add "current_variant_part" and
11208 "variant_parts".
11209 (alloc_discriminant_info): Remove.
11210 (alloc_rust_variant): New function.
11211 (quirk_rust_enum): Update.
11212 (dwarf2_add_field): Set "offset" member. Don't handle
11213 DW_TAG_variant_part.
11214 (offset_map_type): New typedef.
11215 (convert_variant_range, create_one_variant)
11216 (create_one_variant_part, create_variant_parts)
11217 (add_variant_property): New functions.
11218 (dwarf2_attach_fields_to_type): Call add_variant_property.
11219 (read_structure_type): Don't handle DW_TAG_variant_part.
11220 (handle_variant_part, handle_variant): New functions.
11221 (handle_struct_member_die): Use them.
11222 (process_structure_scope): Don't handle variant parts.
11223 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11224 (struct discriminant_info): Remove.
11225 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11226 (struct main_type) <flag_discriminated_union>: Remove.
11227 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11228 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11229 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11230 Update.
11231 * valops.c (value_union_variant): Remove.
11232 * value.h (value_union_variant): Don't declare.
11233
11234 2020-04-24 Tom Tromey <tromey@adacore.com>
11235
11236 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11237 (ada_value_primitive_packed_val): Update.
11238 * ada-valprint.c (ada_value_print_1): Update.
11239 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11240 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11241 just an address. Use evaluate_for_locexpr_baton.
11242 (dwarf2_evaluate_property): Update.
11243 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11244 array_view.
11245 * findvar.c (default_read_var_value): Update.
11246 * gdbtypes.c (compute_variant_fields_inner)
11247 (resolve_dynamic_type_internal): Update.
11248 (resolve_dynamic_type): Change type of valaddr parameter.
11249 * gdbtypes.h (resolve_dynamic_type): Update.
11250 * valarith.c (value_subscripted_rvalue): Update.
11251 * value.c (value_from_contents_and_address): Update.
11252
11253 2020-04-24 Tom Tromey <tromey@adacore.com>
11254
11255 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11256 "push_initial_value" parameter.
11257 (dwarf2_evaluate_property): Likewise.
11258 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11259
11260 2020-04-24 Tom Tromey <tromey@adacore.com>
11261
11262 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11263 (variant::matches, compute_variant_fields_recurse)
11264 (compute_variant_fields_inner, compute_variant_fields): New
11265 functions.
11266 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11267 Use resolved_type after type is made.
11268 (operator==): Add new cases.
11269 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11270 (struct discriminant_range, struct variant, struct variant_part):
11271 New.
11272 (union dynamic_prop_data) <variant_parts, original_type>: New
11273 members.
11274 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11275 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11276 constants.
11277 * value.c (unpack_bits_as_long): Now public.
11278 * value.h (unpack_bits_as_long): Declare.
11279
11280 2020-04-24 Tom Tromey <tromey@adacore.com>
11281
11282 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11283 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11284
11285 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11286
11287 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11288
11289 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11290
11291 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11292 (remove_fork_catchpoint, post_startup_inferior)
11293 (post_attach): Move...
11294 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11295 (remove_fork_catchpoint, post_startup_inferior)
11296 (post_attach): ...here.
11297 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11298 (remove_fork_catchpoint, post_startup_inferior)
11299 (post_attach): Move...
11300 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11301 (remove_fork_catchpoint, post_startup_inferior)
11302 (post_attach): ...here.
11303
11304 2020-04-24 Tom Tromey <tromey@adacore.com>
11305
11306 * nat/windows-nat.h (struct windows_thread_info)
11307 <pc_adjusted>: New member.
11308 * windows-nat.c (windows_fetch_one_register): Check
11309 pc_adjusted.
11310 (windows_nat_target::get_windows_debug_event)
11311 (windows_nat_target::wait): Set pc_adjusted.
11312
11313 2020-04-24 Tom de Vries <tdevries@suse.de>
11314
11315 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11316 Run gdb-add-index inside temp dir.
11317
11318 2020-04-23 Tom Tromey <tromey@adacore.com>
11319
11320 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11321 in loop.
11322
11323 2020-04-23 Luis Machado <luis.machado@linaro.org>
11324
11325 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11326 get_frame_register instead of gdbarch_unwind_pc.
11327
11328 2020-04-23 Tom de Vries <tdevries@suse.de>
11329
11330 * symtab.c (lookup_global_symbol): Prefer def over decl.
11331
11332 2020-04-23 Tom de Vries <tdevries@suse.de>
11333
11334 PR symtab/25807
11335 * block.c (best_symbol, better_symbol): Promote to external.
11336 * block.h (best_symbol, better_symbol): Declare.
11337 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11338 decl.
11339
11340 2020-04-23 Tom Tromey <tromey@adacore.com>
11341
11342 PR ada/25837:
11343 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11344 "const char *", not a "const std::string &".
11345 <name_and_matcher::operator==>: Update.
11346 * unittests/lookup_name_info-selftests.c: Change type of
11347 "result".
11348
11349 2020-04-23 Tom Tromey <tom@tromey.com>
11350
11351 * inferior.h (iterate_over_inferiors): Don't declare.
11352 * inferior.c (iterate_over_inferiors): Remove.
11353 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11354 Remove.
11355 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11356 use iterate_over_inferiors.
11357 (darwin_resume_inferior_it)
11358 (struct resume_inferior_threads_param)
11359 (darwin_resume_inferior_threads_it): Remove.
11360 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11361
11362 2020-04-23 Tom de Vries <tdevries@suse.de>
11363
11364 * blockframe.c (find_pc_partial_function): Use
11365 find_pc_sect_compunit_symtab rather than
11366 objfile->sf->qf->find_pc_sect_compunit_symtab.
11367
11368 2020-04-22 Tom de Vries <tdevries@suse.de>
11369
11370 PR symtab/25764
11371 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11372 in psymtabs.
11373
11374 2020-04-22 Tom de Vries <tdevries@suse.de>
11375
11376 PR symtab/25801
11377 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11378 symtabs.
11379
11380 2020-04-22 Tom de Vries <tdevries@suse.de>
11381
11382 PR symtab/25700
11383 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11384 CU if already created.
11385
11386 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11387
11388 * infrun.c (displaced_step_fixup): Switch to the event_thread
11389 before calling displaced_step_restore, not after.
11390
11391 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11392
11393 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11394 its inferior is not recorded by us.
11395 (record_btrace_target_open): Replace call to
11396 all_non_exited_threads () with call to current_inferior
11397 ()->non_exited_threads ().
11398 (record_btrace_target::stop_recording): Likewise.
11399 (record_btrace_target::close): Likewise.
11400 (record_btrace_target::wait): Likewise.
11401 (record_btrace_target::record_stop_replaying): Likewise.
11402
11403 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11404
11405 * btrace.c (btrace_enable): Throw an error on double enables and
11406 when enabling recording fails.
11407 (btrace_disable): Throw an error if the thread is not recorded.
11408
11409 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11410
11411 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11412 request if we do not have a thread_info.
11413
11414 2020-04-21 Tom de Vries <tdevries@suse.de>
11415
11416 PR gdb/25471
11417 * thread.c
11418 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11419 exception in get_frame_id.
11420
11421 2020-04-20 Tom Tromey <tromey@adacore.com>
11422
11423 * python/python.c (struct gdbpy_event): Mark move constructor as
11424 noexcept.
11425 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11426 constructor as noexcept.
11427 * completer.h (struct completion_result): Mark move constructor as
11428 noexcept.
11429 * completer.c (completion_result::completion_result): Use
11430 initialization style. Don't call reset_match_list.
11431
11432 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11433
11434 * MAINTAINERS (Write After Approval): Add myself.
11435
11436 2020-04-18 Tom Tromey <tom@tromey.com>
11437
11438 * windows-tdep.c (init_w32_command_list)
11439 (w32_prefix_command_valid): Restore.
11440 (_initialize_windows_tdep): Call init_w32_command_list.
11441
11442 2020-04-18 Tom Tromey <tom@tromey.com>
11443
11444 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11445 * value.c (value_fn_field): Update.
11446 * valops.c (find_function_in_inferior)
11447 (value_allocate_space_in_inferior): Update.
11448 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11449 Update.
11450 * tui/tui-source.c (tui_source_window::set_contents): Update.
11451 * symtab.c (lookup_global_or_static_symbol)
11452 (find_function_start_sal_1, skip_prologue_sal)
11453 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11454 * symmisc.c (dump_msymbols, dump_symtab_1)
11455 (maintenance_print_one_line_table): Update.
11456 * symfile.c (init_entry_point_info, section_is_mapped)
11457 (list_overlays_command, simple_read_overlay_table)
11458 (simple_overlay_update_1): Update.
11459 * stap-probe.c (handle_stap_probe): Update.
11460 * stabsread.c (dbx_init_float_type, define_symbol)
11461 (read_one_struct_field, read_enum_type, read_range_type): Update.
11462 * source.c (info_line_command): Update.
11463 * python/python.c (gdbpy_source_objfile_script)
11464 (gdbpy_execute_objfile_script): Update.
11465 * python/py-type.c (save_objfile_types): Update.
11466 * python/py-objfile.c (py_free_objfile): Update.
11467 * python/py-inferior.c (python_new_objfile): Update.
11468 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11469 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11470 (maintenance_check_psymtabs): Update.
11471 * printcmd.c (info_address_command): Update.
11472 * objfiles.h (struct objfile) <arch>: New method, from
11473 get_objfile_arch.
11474 (get_objfile_arch): Don't declare.
11475 * objfiles.c (get_objfile_arch): Remove.
11476 (filter_overlapping_sections): Update.
11477 * minsyms.c (msymbol_is_function): Update.
11478 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11479 (output_nondebug_symbol): Update.
11480 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11481 (mdebug_expand_psymtab): Update.
11482 * machoread.c (macho_add_oso_symfile): Update.
11483 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11484 Update.
11485 * linux-fork.c (checkpoint_command): Update.
11486 * linespec.c (convert_linespec_to_sals): Update.
11487 * jit.c (finalize_symtab): Update.
11488 * infrun.c (insert_exception_resume_from_probe): Update.
11489 * ia64-tdep.c (ia64_find_unwind_table): Update.
11490 * hppa-tdep.c (internalize_unwinds): Update.
11491 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11492 Update.
11493 * gcore.c (call_target_sbrk): Update.
11494 * elfread.c (record_minimal_symbol, elf_symtab_read)
11495 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11496 (elf_gnu_ifunc_resolve_by_got): Update.
11497 * dwarf2/read.c (create_addrmap_from_index)
11498 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11499 (read_debug_names_from_section)
11500 (process_psymtab_comp_unit_reader, add_partial_symbol)
11501 (add_partial_subprogram, process_full_comp_unit)
11502 (read_file_scope, read_func_scope, read_lexical_block_scope)
11503 (read_call_site_scope, dwarf2_ranges_read)
11504 (dwarf2_record_block_ranges, dwarf2_add_field)
11505 (mark_common_block_symbol_computed, read_tag_pointer_type)
11506 (read_tag_string_type, dwarf2_init_float_type)
11507 (dwarf2_init_complex_target_type, read_base_type)
11508 (partial_die_info::read, partial_die_info::read)
11509 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11510 (dwarf2_fetch_die_loc_sect_off): Update.
11511 * dwarf2/loc.c (dwarf2_find_location_expression)
11512 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11513 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11514 (dwarf2_loc_desc_get_symbol_read_needs)
11515 (locexpr_describe_location_piece, locexpr_describe_location_1)
11516 (loclist_describe_location): Update.
11517 * dwarf2/index-write.c (write_debug_names): Update.
11518 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11519 * dtrace-probe.c (dtrace_process_dof): Update.
11520 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11521 (process_one_symbol): Update.
11522 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11523 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11524 (coff_read_enum_type): Update.
11525 * cli/cli-cmds.c (edit_command, list_command): Update.
11526 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11527 * breakpoint.c (create_overlay_event_breakpoint)
11528 (create_longjmp_master_breakpoint)
11529 (create_std_terminate_master_breakpoint)
11530 (create_exception_master_breakpoint, get_sal_arch): Update.
11531 * block.c (block_gdbarch): Update.
11532 * annotate.c (annotate_source_line): Update.
11533
11534 2020-04-17 Tom Tromey <tromey@adacore.com>
11535
11536 * auto-load.c (show_auto_load_cmd): Remove.
11537 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11538 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11539 (maintenance_print_arc_command): Remove.
11540 * tui/tui-win.c (tui_command): Remove.
11541 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11542 * tui/tui-layout.c (tui_layout_command): Remove.
11543 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11544 * python/python.c (user_set_python, user_show_python): Remove.
11545 (_initialize_python): Use add_basic_prefix_cmd,
11546 add_show_prefix_cmd.
11547 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11548 (install_gdb_commands): Use add_basic_prefix_cmd,
11549 add_show_prefix_cmd.
11550 (info_guile_command): Remove.
11551 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11552 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11553 add_show_prefix_cmd.
11554 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11555 Remove do_set and do_show parameters.
11556 * cli/cli-style.c (set_style, show_style): Remove.
11557 (_initialize_cli_style): Use add_basic_prefix_cmd,
11558 add_show_prefix_cmd.
11559 (cli_style_option::add_setshow_commands): Remove do_set and
11560 do_show parameters.
11561 (cli_style_option::add_setshow_commands): Use
11562 add_basic_prefix_cmd, add_show_prefix_cmd.
11563 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11564 (set_style_name): Remove.
11565 * cli/cli-dump.c (dump_command, append_command): Remove.
11566 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11567 (tekhex_dump_command, binary_dump_command)
11568 (binary_append_command): Remove.
11569 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11570 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11571 (init_w32_command_list): Remove; move into ...
11572 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11573 * valprint.c (set_print, show_print, set_print_raw)
11574 (show_print_raw): Remove.
11575 (_initialize_valprint): Use add_basic_prefix_cmd,
11576 add_show_prefix_cmd.
11577 * typeprint.c (set_print_type, show_print_type): Remove.
11578 (_initialize_typeprint): Use add_basic_prefix_cmd,
11579 add_show_prefix_cmd.
11580 * record.c (set_record_command, show_record_command): Remove.
11581 (_initialize_record): Use add_basic_prefix_cmd,
11582 add_show_prefix_cmd.
11583 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11584 add_show_prefix_cmd.
11585 (info_command, show_command, set_debug, show_debug): Remove.
11586 * top.h (set_history, show_history): Don't declare.
11587 * top.c (set_history, show_history): Remove.
11588 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11589 (unset_tdesc_cmd): Remove.
11590 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11591 add_show_prefix_cmd.
11592 * symtab.c (info_module_command): Remove.
11593 (_initialize_symtab): Use add_basic_prefix_cmd.
11594 * symfile.c (overlay_command): Remove.
11595 (_initialize_symfile): Use add_basic_prefix_cmd.
11596 * sparc64-tdep.c (info_adi_command): Remove.
11597 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11598 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11599 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11600 add_show_prefix_cmd.
11601 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11602 (_initialize_serial): Use add_basic_prefix_cmd,
11603 add_show_prefix_cmd.
11604 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11605 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11606 add_show_prefix_cmd.
11607 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11608 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11609 add_show_prefix_cmd.
11610 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11611 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11612 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11613 add_show_prefix_cmd.
11614 * remote.c (remote_command, set_remote_cmd): Remove.
11615 (_initialize_remote): Use add_basic_prefix_cmd.
11616 * record-full.c (set_record_full_command)
11617 (show_record_full_command): Remove.
11618 (_initialize_record_full): Use add_basic_prefix_cmd,
11619 add_show_prefix_cmd.
11620 * record-btrace.c (cmd_set_record_btrace)
11621 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11622 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11623 (cmd_show_record_btrace_pt): Remove.
11624 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11625 add_show_prefix_cmd.
11626 * ravenscar-thread.c (set_ravenscar_command)
11627 (show_ravenscar_command): Remove.
11628 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11629 add_show_prefix_cmd.
11630 * mips-tdep.c (show_mips_command, set_mips_command)
11631 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11632 add_show_prefix_cmd.
11633 * maint.c (maintenance_command, maintenance_info_command)
11634 (maintenance_check_command, maintenance_print_command)
11635 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11636 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11637 add_show_prefix_cmd.
11638 (show_per_command_cmd): Remove.
11639 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11640 Remove.
11641 (maintenance_show_test_settings_cmd): Remove.
11642 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11643 add_show_prefix_cmd.
11644 * maint-test-options.c (maintenance_test_options_command):
11645 Remove.
11646 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11647 * macrocmd.c (macro_command): Remove
11648 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11649 * language.c (set_check, show_check): Remove.
11650 (_initialize_language): Use add_basic_prefix_cmd,
11651 add_show_prefix_cmd.
11652 * infcmd.c (unset_command): Remove.
11653 (_initialize_infcmd): Use add_basic_prefix_cmd.
11654 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11655 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11656 add_show_prefix_cmd.
11657 * go32-nat.c (go32_info_dos_command): Remove.
11658 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11659 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11660 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11661 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11662 (_initialize_frame): Use add_basic_prefix_cmd,
11663 add_show_prefix_cmd.
11664 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11665 (_initialize_dcache): Use add_basic_prefix_cmd,
11666 add_show_prefix_cmd.
11667 * cp-support.c (maint_cplus_command): Remove.
11668 (_initialize_cp_support): Use add_basic_prefix_cmd.
11669 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11670 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11671 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11672 add_basic_prefix_cmd, add_show_prefix_cmd.
11673 * breakpoint.c (save_command): Remove.
11674 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11675 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11676 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11677 add_show_prefix_cmd.
11678 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11679 (set_ada_command, show_ada_command): Remove.
11680 (_initialize_ada_language): Use add_basic_prefix_cmd,
11681 add_show_prefix_cmd.
11682 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11683
11684 2020-04-16 Kamil Rytarowski <n54@gmx.com>
11685
11686 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11687 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11688
11689 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11690
11691 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11692 warning messages.
11693
11694 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11695
11696 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11697 import table is not at beginning of .idata section.
11698
11699 2020-04-16 Pedro Alves <palves@redhat.com>
11700
11701 * inferior.c (delete_inferior): Use delete operator directly
11702 instead of delete_program_space.
11703 * progspace.c (add_program_space): New, factored out from
11704 program_space::program_space.
11705 (remove_program_space): New, factored out from
11706 delete_program_space.
11707 (program_space::program_space): Remove intro comment. Rewrite.
11708 (program_space::~program_space): Remove intro comment. Call
11709 remove_program_space.
11710 (delete_program_space): Delete.
11711 * progspace.h (program_space::program_space): Make explicit. Move
11712 intro comment here, adjusted.
11713 (program_space::~program_space): Move intro comment here,
11714 adjusted.
11715 (delete_program_space): Remove.
11716
11717 2020-04-16 Tom Tromey <tromey@adacore.com>
11718
11719 * windows-nat.c (windows_nat::handle_access_violation): New
11720 function.
11721 * nat/windows-nat.h (handle_access_violation): Declare.
11722 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11723 windows-nat.c. Call handle_access_violation.
11724
11725 2020-04-16 Tom de Vries <tdevries@suse.de>
11726
11727 PR symtab/25791
11728 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11729 CUs without psymtab.
11730
11731 2020-04-16 Kevin Buettner <kevinb@redhat.com>
11732
11733 * python/python.c (do_start_initialization): Don't call
11734 PyEval_InitThreads for Python 3.9 and beyond.
11735
11736 2020-04-15 Kamil Rytarowski <n54@gmx.com>
11737
11738 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11739 thread functions.
11740 (obsd_nat_target::wait): Likewise.
11741
11742 2020-04-15 Tom Tromey <tromey@adacore.com>
11743
11744 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11745 (DEBUG_EXCEPT): Use debug_printf.
11746
11747 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11748
11749 * completer.c (class completion_tracker::completion_hash_entry)
11750 <hash_name>: New member function.
11751 (completion_tracker::discard_completions): New callback to hash a
11752 completion_hash_entry, pass this to htab_create_alloc.
11753
11754 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11755
11756 * windows-nat.c (windows_make_so): Warn rather than stopping with
11757 an error if realpath() fails.
11758
11759 2020-04-14 Kamil Rytarowski <n54@gmx.com>
11760
11761 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11762 (nbsd_nat_target::info_proc): Add do_status.
11763
11764 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11765 Tom de Vries <tdevries@suse.de>
11766
11767 PR symtab/25718
11768 * psympriv.h (struct partial_symtab::read_symtab)
11769 (struct partial_symtab::expand_psymtab)
11770 (struct partial_symtab::read_dependencies): Update comments.
11771 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11772 read_symtab for includer.
11773 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11774 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11775 (struct dwarf2_include_psymtab::m_readin): Remove.
11776 (struct dwarf2_include_psymtab::includer): New member function.
11777 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11778
11779 2020-04-14 Tom de Vries <tdevries@suse.de>
11780
11781 PR symtab/25720
11782 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11783 with NULL symbol_matcher and lookup_name.
11784 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11785 and lookup_name.
11786 * dwarf2/read.c (dw2_expand_symtabs_matching)
11787 (dw2_debug_names_expand_symtabs_matching): Same.
11788 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11789 Make lookup_name a pointer. Update comment.
11790 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11791 lookup_name being a pointer.
11792 * symfile.c (expand_symtabs_matching): Same.
11793 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11794 * linespec.c (iterate_over_all_matching_symtabs): Same.
11795
11796 2020-04-13 Tom Tromey <tom@tromey.com>
11797
11798 * run-on-main-thread.c: Update include.
11799 * unittests/main-thread-selftests.c: Update include.
11800 * tui/tui-win.c: Update include.
11801 * tui/tui-io.c: Update include.
11802 * tui/tui-interp.c: Update include.
11803 * tui/tui-hooks.c: Update include.
11804 * top.h: Update include.
11805 * top.c: Update include.
11806 * ser-base.c: Update include.
11807 * remote.c: Update include.
11808 * remote-notif.c: Update include.
11809 * remote-fileio.c: Update include.
11810 * record-full.c: Update include.
11811 * record-btrace.c: Update include.
11812 * python/python.c: Update include.
11813 * posix-hdep.c: Update include.
11814 * mingw-hdep.c: Update include.
11815 * mi/mi-main.c: Update include.
11816 * mi/mi-interp.c: Update include.
11817 * main.c: Update include.
11818 * linux-nat.c: Update include.
11819 * interps.c: Update include.
11820 * infrun.c: Update include.
11821 * inf-loop.c: Update include.
11822 * event-top.c: Update include.
11823 * event-loop.c: Move to ../gdbsupport/.
11824 * event-loop.h: Move to ../gdbsupport/.
11825 * async-event.h: Update include.
11826 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11827
11828 2020-04-13 Tom Tromey <tom@tromey.com>
11829
11830 * tui/tui-win.c: Include async-event.h.
11831 * remote.c: Include async-event.h.
11832 * remote-notif.c: Include async-event.h.
11833 * record-full.c: Include async-event.h.
11834 * record-btrace.c: Include async-event.h.
11835 * infrun.c: Include async-event.h.
11836 * event-top.c: Include async-event.h.
11837 * event-loop.h: Move some declarations to async-event.h.
11838 * event-loop.c: Don't include ser-event.h or top.h. Move some
11839 code to async-event.c.
11840 * async-event.h: New file.
11841 * async-event.c: New file.
11842 * Makefile.in (COMMON_SFILES): Add async-event.c.
11843 (HFILES_NO_SRCDIR): Add async-event.h.
11844
11845 2020-04-13 Tom Tromey <tom@tromey.com>
11846
11847 * utils.c (flush_streams): New function.
11848 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11849
11850 2020-04-13 Tom Tromey <tom@tromey.com>
11851
11852 * event-loop.c (handle_file_event): Use warning, not
11853 printf_unfiltered.
11854
11855 2020-04-13 Tom Tromey <tom@tromey.com>
11856
11857 * event-loop.c: Include <chrono>.
11858
11859 2020-04-13 Tom Tromey <tom@tromey.com>
11860
11861 * gdb_select.h: Move to ../gdbsupport/.
11862 * event-loop.c: Update include path.
11863 * top.c: Update include path.
11864 * ser-base.c: Update include path.
11865 * ui-file.c: Update include path.
11866 * ser-tcp.c: Update include path.
11867 * guile/scm-ports.c: Update include path.
11868 * posix-hdep.c: Update include path.
11869 * ser-unix.c: Update include path.
11870 * gdb_usleep.c: Update include path.
11871 * mingw-hdep.c: Update include path.
11872 * inflow.c: Update include path.
11873 * infrun.c: Update include path.
11874 * event-top.c: Update include path.
11875
11876 2020-04-13 Tom Tromey <tom@tromey.com>
11877
11878 * configure: Rebuild.
11879 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11880
11881 2020-04-13 Tom Tromey <tom@tromey.com>
11882
11883 * event-loop.h (start_event_loop): Don't declare.
11884 * event-loop.c (start_event_loop): Move...
11885 * main.c (start_event_loop): ...here. Now static.
11886
11887 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11888
11889 * MAINTAINERS: Update my email address.
11890
11891 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11892
11893 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11894 IP_ALL.
11895
11896 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11897
11898 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
11899 (nbsd_nat_target::info_proc): Add do_cmdline.
11900
11901 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11902
11903 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
11904 (nbsd_nat_target::info_proc): Add do_cwd.
11905
11906 2020-04-12 Kamil Rytarowski <n54@gmx.com>
11907
11908 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11909
11910 2020-04-11 Kamil Rytarowski <n54@gmx.com>
11911
11912 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11913 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11914 (nbsd_nat_target::info_proc): New functions.
11915 * nbsd-nat.c (kinfo_get_vmmap): New function.
11916 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11917 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11918 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11919 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11920 functions.
11921 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11922 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11923 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11924 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11925 (KINFO_VME_FLAG_GROWS_DOWN): New.
11926
11927 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11928
11929 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11930 bit shift.
11931
11932 2020-04-10 Tom Tromey <tromey@adacore.com>
11933
11934 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11935
11936 2020-04-10 Tom Tromey <tromey@adacore.com>
11937
11938 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11939 separate debug files.
11940
11941 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
11942
11943 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11944 Move to...
11945 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11946 ... here.
11947 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11948 Check for STATUS_WX86_BREAKPOINT.
11949 (windows_nat_target::wait): Same.
11950
11951 2020-04-10 Tom de Vries <tdevries@suse.de>
11952
11953 PR cli/25808
11954 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11955
11956 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11957
11958 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11959 (Write After Approval): Remove Tom de Vries.
11960
11961 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11962
11963 revert partially:
11964 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11965
11966 * buildsym.c (record_line): Fix undefined behavior and preserve
11967 lines at eof.
11968
11969 2020-04-09 Kamil Rytarowski <n54@gmx.com>
11970
11971 * auxv.h (svr4_auxv_parse): New.
11972 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11973 and generic_auxv_parse.
11974 (svr4_auxv_parse): Add.
11975 * obsd-tdep.c: Include "auxv.h".
11976 (obsd_auxv_parse): Remove.
11977 (obsd_init_abi): Remove comment.
11978 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11979 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11980 * nbsd-tdep.c: Include "auxv.h".
11981 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11982
11983 2020-04-08 Tom Tromey <tromey@adacore.com>
11984
11985 * nat/windows-nat.h (last_wait_event): Don't declare.
11986 (wait_for_debug_event): Update comment.
11987 * nat/windows-nat.c (last_wait_event): Now static.
11988
11989 2020-04-08 Tom Tromey <tromey@adacore.com>
11990
11991 * windows-nat.c (wait_for_debug_event): Move to
11992 nat/windows-nat.c.
11993 * nat/windows-nat.h (wait_for_debug_event): Declare.
11994 * nat/windows-nat.c (wait_for_debug_event): Move from
11995 windows-nat.c. No longer static.
11996
11997 2020-04-08 Tom Tromey <tromey@adacore.com>
11998
11999 * windows-nat.c (get_windows_debug_event): Use
12000 fetch_pending_stop.
12001 * nat/windows-nat.h (fetch_pending_stop): Declare.
12002 * nat/windows-nat.c (fetch_pending_stop): New function.
12003
12004 2020-04-08 Tom Tromey <tromey@adacore.com>
12005
12006 * windows-nat.c (windows_continue): Use matching_pending_stop and
12007 continue_last_debug_event.
12008 * nat/windows-nat.h (matching_pending_stop)
12009 (continue_last_debug_event): Declare.
12010 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12011 (matching_pending_stop, continue_last_debug_event): New
12012 functions.
12013
12014 2020-04-08 Tom Tromey <tromey@adacore.com>
12015
12016 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12017 (handle_exception_result): Move to nat/windows-nat.h.
12018 (DEBUG_EXCEPTION_SIMPLE): Remove.
12019 (windows_nat::handle_ms_vc_exception): New function.
12020 (handle_exception): Move to nat/windows-nat.c.
12021 (get_windows_debug_event): Update.
12022 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12023 nat/windows-nat.c.
12024 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12025 (handle_exception_result): Move from windows-nat.c.
12026 (handle_exception): Declare.
12027 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12028 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12029 windows-nat.c.
12030
12031 2020-04-08 Tom Tromey <tromey@adacore.com>
12032
12033 * windows-nat.c (exception_count, event_count): Remove.
12034 (handle_exception, get_windows_debug_event)
12035 (do_initial_windows_stuff): Update.
12036
12037 2020-04-08 Tom Tromey <tromey@adacore.com>
12038
12039 * windows-nat.c (windows_nat::handle_load_dll)
12040 (windows_nat::handle_unload_dll): Rename. No longer static.
12041 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12042 Declare.
12043
12044 2020-04-08 Tom Tromey <tromey@adacore.com>
12045
12046 * complaints.h (stop_whining): Declare at top-level.
12047 (complaint): Don't declare stop_whining.
12048
12049 2020-04-08 Tom Tromey <tromey@adacore.com>
12050
12051 * windows-nat.c (windows_nat::handle_output_debug_string):
12052 Rename. No longer static.
12053 * nat/windows-nat.h (handle_output_debug_string): Declare.
12054
12055 2020-04-08 Tom Tromey <tromey@adacore.com>
12056
12057 * windows-nat.c (current_process_handle, current_process_id)
12058 (main_thread_id, last_sig, current_event, last_wait_event)
12059 (current_windows_thread, desired_stop_thread_id, pending_stops)
12060 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12061 (display_selectors, fake_create_process)
12062 (get_windows_debug_event): Update.
12063 * nat/windows-nat.h (current_process_handle, current_process_id)
12064 (main_thread_id, last_sig, current_event, last_wait_event)
12065 (current_windows_thread, desired_stop_thread_id, pending_stops)
12066 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12067 * nat/windows-nat.c (current_process_handle, current_process_id)
12068 (main_thread_id, last_sig, current_event, last_wait_event)
12069 (current_windows_thread, desired_stop_thread_id, pending_stops)
12070 (siginfo_er): New globals. Move from windows-nat.c.
12071
12072 2020-04-08 Tom Tromey <tromey@adacore.com>
12073
12074 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12075 (handle_load_dll): Update.
12076 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12077
12078 2020-04-08 Tom Tromey <tromey@adacore.com>
12079
12080 * windows-nat.c (enum thread_disposition_type): Move to
12081 nat/windows-nat.h.
12082 (windows_nat::thread_rec): Rename from thread_rec. No longer
12083 static.
12084 (windows_add_thread, windows_nat_target::fetch_registers)
12085 (windows_nat_target::store_registers, handle_exception)
12086 (windows_nat_target::resume, get_windows_debug_event)
12087 (windows_nat_target::get_tib_address)
12088 (windows_nat_target::thread_name)
12089 (windows_nat_target::thread_alive): Update.
12090 * nat/windows-nat.h (enum thread_disposition_type): Move from
12091 windows-nat.c.
12092 (thread_rec): Declare.
12093
12094 2020-04-08 Tom Tromey <tromey@adacore.com>
12095
12096 * windows-nat.c: Add "using namespace".
12097 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12098 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12099
12100 2020-04-08 Tom Tromey <tromey@adacore.com>
12101
12102 * nat/windows-nat.h (struct windows_thread_info): Declare
12103 destructor.
12104 * nat/windows-nat.c (~windows_thread_info): New.
12105
12106 2020-04-08 Tom Tromey <tromey@adacore.com>
12107
12108 PR gdb/22992
12109 * windows-nat.c (current_event): Update comment.
12110 (last_wait_event, desired_stop_thread_id): New globals.
12111 (struct pending_stop): New.
12112 (pending_stops): New global.
12113 (windows_nat_target) <stopped_by_sw_breakpoint>
12114 <supports_stopped_by_sw_breakpoint>: New methods.
12115 (windows_fetch_one_register): Add assertions. Adjust PC.
12116 (windows_continue): Handle pending stops. Suspend other threads
12117 when stepping. Use last_wait_event
12118 (wait_for_debug_event): New function.
12119 (get_windows_debug_event): Use wait_for_debug_event. Handle
12120 pending stops. Queue spurious stops.
12121 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12122 (windows_nat_target::kill): Use wait_for_debug_event.
12123 * nat/windows-nat.h (struct windows_thread_info)
12124 <stopped_at_software_breakpoint>: New field.
12125 * nat/windows-nat.c (windows_thread_info::resume): Clear
12126 stopped_at_software_breakpoint.
12127
12128 2020-04-08 Tom Tromey <tromey@adacore.com>
12129
12130 * windows-nat.c (enum thread_disposition_type): New.
12131 (thread_rec): Replace "get_context" parameter with "disposition";
12132 change type.
12133 (windows_add_thread, windows_nat_target::fetch_registers)
12134 (windows_nat_target::store_registers, handle_exception)
12135 (windows_nat_target::resume, get_windows_debug_event)
12136 (windows_nat_target::get_tib_address)
12137 (windows_nat_target::thread_name)
12138 (windows_nat_target::thread_alive): Update.
12139
12140 2020-04-08 Tom Tromey <tromey@adacore.com>
12141
12142 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12143 (windows_continue): Use windows_continue::resume.
12144 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12145 resume>: Declare new methods.
12146 * nat/windows-nat.c: New file.
12147 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12148
12149 2020-04-08 Tom Tromey <tromey@adacore.com>
12150
12151 * windows-nat.c (windows_add_thread, windows_delete_thread)
12152 (windows_nat_target::fetch_registers)
12153 (windows_nat_target::store_registers, fake_create_process)
12154 (windows_nat_target::resume, windows_nat_target::resume)
12155 (get_windows_debug_event, windows_nat_target::wait)
12156 (windows_nat_target::pid_to_str)
12157 (windows_nat_target::get_tib_address)
12158 (windows_nat_target::get_ada_task_ptid)
12159 (windows_nat_target::thread_name)
12160 (windows_nat_target::thread_alive): Use lwp, not tid.
12161
12162 2020-04-08 Tom Tromey <tromey@adacore.com>
12163
12164 * windows-nat.c (handle_exception)
12165 (windows_nat_target::thread_name): Update.
12166 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12167 <name>: Now unique_xmalloc_ptr.
12168
12169 2020-04-08 Tom Tromey <tromey@adacore.com>
12170
12171 * windows-nat.c (thread_rec)
12172 (windows_nat_target::fetch_registers): Update.
12173 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12174 Update comment.
12175 <debug_registers_changed, reload_context>: Now bool.
12176
12177 2020-04-08 Tom Tromey <tromey@adacore.com>
12178
12179 * windows-nat.c (windows_add_thread): Use new.
12180 (windows_init_thread_list, windows_delete_thread): Use delete.
12181 (get_windows_debug_event): Update.
12182 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12183 destructor, and initializers.
12184
12185 2020-04-08 Tom Tromey <tromey@adacore.com>
12186
12187 * windows-nat.c (struct windows_thread_info): Remove.
12188 * nat/windows-nat.h: New file.
12189
12190 2020-04-08 Tom Tromey <tromey@adacore.com>
12191
12192 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12193 (thread_rec, windows_add_thread, windows_delete_thread)
12194 (windows_continue): Update.
12195
12196 2020-04-08 Tom Tromey <tromey@adacore.com>
12197
12198 * windows-nat.c (struct windows_thread_info): Remove typedef.
12199 (thread_head): Remove.
12200 (thread_list): New global.
12201 (thread_rec, windows_add_thread, windows_init_thread_list)
12202 (windows_delete_thread, windows_continue): Update.
12203
12204 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12205
12206 * windows-tdep.h (windows_init_abi): Add comment.
12207 (cygwin_init_abi): New declaration.
12208 * windows-tdep.c: Split signal enumeration in two, one for
12209 Windows and one for Cygwin.
12210 (windows_gdb_signal_to_target): Only deal with signal of the
12211 Windows OS ABI.
12212 (cygwin_gdb_signal_to_target): New function.
12213 (windows_init_abi): Rename to windows_init_abi_common, don't set
12214 gdb_signal_to_target gdbarch method. Add new new function with
12215 this name.
12216 (cygwin_init_abi): New function.
12217 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12218 comment. Don't call windows_init_abi.
12219 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12220 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12221 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12222 i386_windows_init_abi_common, don't call windows_init_abi. Add
12223 a new function of this name.
12224 (i386_cygwin_init_abi): New function.
12225 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12226 OS ABI Cygwin.
12227
12228 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12229
12230 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12231 parameter.c.
12232 (dwarf2_read_gdb_index): Update.
12233
12234 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12235
12236 * nbsd-tdep.c: Include "objfiles.h".
12237 (nbsd_skip_solib_resolver): New.
12238 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12239
12240 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12241
12242 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12243 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12244 with DW_LLE_base_addressx are being emitted in DWARFv5.
12245 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12246 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12247 unsigned integer.
12248
12249 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12250
12251 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12252 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12253 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12254 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12255 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12256 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12257 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12258
12259
12260 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12261
12262 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12263 (read_loclist_index): New function definition.
12264 (lookup_loclist_base): New function definition.
12265 (read_loclist_header): New function definition.
12266 (dwarf2_cu): Add loclist_base and loclist_header field.
12267 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12268 (read_full_die_1): Read the value of DW_AT_loclists_base.
12269 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12270 (read_attribute_value): Handle DW_FORM_loclistx.
12271 (skip_one_die): Handle DW_FORM_loclistx.
12272 (loclist_header): New structure declaration.
12273 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12274
12275 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12276
12277 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12278 constructor. Remove `addr` parameter from other constructor and
12279 add `per_cu` parameter.
12280 * dwarf2/read.c (create_partial_symtab): Update.
12281
12282 2020-04-07 Tom de Vries <tdevries@suse.de>
12283
12284 PR symtab/25796
12285 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12286 (partial_die_info::fixup): Inherit has_const_value.
12287
12288 2020-04-07 Tom de Vries <tdevries@suse.de>
12289
12290 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12291 symbols without address.
12292
12293 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12294
12295 * nbsd-nat.h (struct thread_info): Add forward declaration.
12296 (nbsd_nat_target::thread_alive): Add.
12297 (nbsd_nat_target::thread_name): Likewise.
12298 (nbsd_nat_target::update_thread_list): Likewise.
12299 (update_thread_list::post_attach): Likewise.
12300 (post_attach::pid_to_str): Likewise.
12301 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12302 (nbsd_thread_lister): Add.
12303 (nbsd_nat_target::thread_alive): Likewise.
12304 (nbsd_nat_target::thread_name): Likewise.
12305 (nbsd_add_threads): Likewise.
12306 (update_thread_list::post_attach): Likewise.
12307 (nbsd_nat_target::update_thread_list): Likewise.
12308 (post_attach::pid_to_str): Likewise.
12309
12310 2020-04-06 Tom Tromey <tromey@adacore.com>
12311
12312 * ada-valprint.c (print_variant_part): Extract the variant field.
12313 (print_field_values): Use the field as the outer value when
12314 recursing.
12315
12316 2020-04-06 Tom Tromey <tromey@adacore.com>
12317
12318 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12319 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12320 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12321 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12322 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12323
12324 2020-04-06 Tom Tromey <tromey@adacore.com>
12325
12326 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12327 TYPE_CODE_ERROR.
12328
12329 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12330
12331 * nbsd-tdep.c: Include "gdbarch.h".
12332 Define enum with NetBSD signal numbers.
12333 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12334 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12335 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12336 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12337 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12338 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12339 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12340 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12341 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12342 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12343 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12344 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12345
12346 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12347
12348 PR gdb/25325
12349 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12350
12351 2020-04-03 Tom Tromey <tromey@adacore.com>
12352
12353 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12354 Read constant block.
12355
12356 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12357
12358 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12359 (gdb_bfd_get_full_section_contents): New declaration.
12360 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12361 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12362 gdb_bfd_get_full_section_contents.
12363
12364 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12365
12366 * exec.c (build_section_table): Replace internal_error with
12367 gdb_assert.
12368 (section_table_xfer_memory_partial): Likewise.
12369 * mdebugread.c (parse_partial_symbols): Likewise.
12370 * psymtab.c (lookup_partial_symbol): Likewise.
12371 * utils.c (wrap_here): Likewise.
12372
12373 2020-04-02 Tom Tromey <tromey@adacore.com>
12374
12375 * f-lang.c (build_fortran_types): Use arch_type to initialize
12376 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12377
12378 2020-04-02 Tom Tromey <tromey@adacore.com>
12379
12380 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12381 of attributes.
12382
12383 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12384 Bernd Edlinger <bernd.edlinger@hotmail.de>
12385 Tom Tromey <tromey@adacore.com>
12386
12387 * buildsym.c (buildsym_compunit::record_line): Remove
12388 deduplication code.
12389
12390 2020-04-02 Tom de Vries <tdevries@suse.de>
12391
12392 PR ada/24671
12393 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12394
12395 2020-04-02 Tom de Vries <tdevries@suse.de>
12396
12397 * dwarf2/read.c (dwarf2_gdb_index_functions,
12398 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12399 NULL.
12400 * psymtab.c (psym_lookup_global_symbol_language): New function.
12401 (psym_functions): Init psym_lookup_global_symbol_language with
12402 psym_lookup_global_symbol_language.
12403 * symfile-debug.c (debug_sym_quick_functions): Init
12404 lookup_global_symbol_language with NULL.
12405 * symfile.c (set_initial_language): Remove fixme comment.
12406 * symfile.h (struct quick_symbol_functions): Add
12407 lookup_global_symbol_language.
12408 * symtab.c (find_quick_global_symbol_language): New function.
12409 (find_main_name): Use find_quick_global_symbol_language.
12410
12411 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12412
12413 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12414
12415 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12416
12417 * buildsym.c (record_line): Fix undefined behavior and preserve
12418 lines at eof.
12419
12420 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12421
12422 * buildsym.c (record_line): Fix the resizing condition.
12423
12424 2020-04-01 Tom Tromey <tom@tromey.com>
12425
12426 * value.h (value_literal_complex): Add comment.
12427 * valops.c (value_literal_complex): Refer to value.h.
12428
12429 2020-04-01 Tom Tromey <tom@tromey.com>
12430
12431 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12432 (scalar_type): New rule, from typebase.
12433 (typebase): Use scalar_type. Recognize complex types.
12434 (field_name): Handle FLOAT_KEYWORD.
12435 (ident_tokens): Add _Complex and __complex__.
12436
12437 2020-04-01 Tom Tromey <tom@tromey.com>
12438
12439 PR exp/25299:
12440 * valarith.c (promotion_type, complex_binop): New functions.
12441 (scalar_binop): Handle complex numbers. Use promotion_type.
12442 (value_pos, value_neg, value_complement): Handle complex numbers.
12443
12444 2020-04-01 Tom Tromey <tom@tromey.com>
12445
12446 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12447 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12448 (parse_number): Handle complex numbers.
12449
12450 2020-04-01 Tom Tromey <tom@tromey.com>
12451
12452 * c-valprint.c (c_decorations): Change complex suffix to "i".
12453
12454 2020-04-01 Tom Tromey <tom@tromey.com>
12455
12456 * valprint.c (generic_value_print_complex): Use accessors.
12457 * value.h (value_real_part, value_imaginary_part): Declare.
12458 * valops.c (value_real_part, value_imaginary_part): New
12459 functions.
12460 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12461
12462 2020-04-01 Tom Tromey <tom@tromey.com>
12463
12464 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12465 (read_range_type): Update.
12466 * mdebugread.c (basic_type): Update.
12467 * go-lang.c (build_go_types): Use init_complex_type.
12468 * gdbtypes.h (struct main_type) <complex_type>: New member.
12469 (init_complex_type): Update.
12470 (arch_complex_type): Don't declare.
12471 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12472 Make name if none given. Use alloc_type_copy. Look for cached
12473 complex type.
12474 (arch_complex_type): Remove.
12475 (gdbtypes_post_init): Use init_complex_type.
12476 * f-lang.c (build_fortran_types): Use init_complex_type.
12477 * dwarf2/read.c (read_base_type): Update.
12478 * d-lang.c (build_d_types): Use init_complex_type.
12479 * ctfread.c (read_base_type): Update.
12480
12481 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12482
12483 * infrun.c (stop_all_threads): Update assertion, plus when
12484 stopping threads, take into account that we might be trying
12485 to stop an all-stop target.
12486 (stop_waiting): Call 'stop_all_threads' if there exists a
12487 non-stop target.
12488
12489 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12490
12491 * target.h (exists_non_stop_target): New function declaration.
12492 * target.c (exists_non_stop_target): New function.
12493
12494 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
12495
12496 PR gdb/24789
12497 * eval.c (is_integral_or_integral_reference): New function.
12498 (evaluate_subexp_standard): Allow integer references in
12499 pointer arithmetic.
12500
12501 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12502
12503 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12504 check for no ptid in the stop reply when the target is non-stop.
12505
12506 2020-04-01 Tom Tromey <tromey@adacore.com>
12507
12508 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12509 "name" parameter to rvalue reference. Initialize m_name_holder.
12510 <lookup_name_info>: New overloads.
12511 <name>: Return gdb::string_view.
12512 <c_str>: New method.
12513 <make_ignore_params>: Update.
12514 <search_name_hash>: Update.
12515 <language_lookup_name>: Return const char *.
12516 <m_name>: Change type.
12517 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12518 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12519 (lookup_name_info::match_any): Update.
12520 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12521 Update.
12522 * minsyms.c (linkage_name_str): Update.
12523 * language.c (default_symbol_name_matcher): Update.
12524 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12525 Update.
12526 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12527 (ada_lookup_name_info::ada_lookup_name_info): Update.
12528 (literal_symbol_name_matcher): Update.
12529
12530 2020-04-01 Tom Tromey <tromey@adacore.com>
12531
12532 * psymtab.c (psymtab_search_name): Remove function.
12533 (psym_lookup_symbol): Create search name and lookup name here.
12534 (lookup_partial_symbol): Remove "name" parameter; add
12535 lookup_name.
12536 (psym_expand_symtabs_for_function): Update.
12537
12538 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
12539
12540 PR tui/25597:
12541 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12542
12543 2020-03-31 Tom Tromey <tromey@adacore.com>
12544
12545 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12546 memcpy.
12547
12548 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
12549
12550 * features/riscv/32bit-csr.xml: Regenerated.
12551 * features/riscv/64bit-csr.xml: Regenerated.
12552
12553 2020-03-30 Tom Tromey <tromey@adacore.com>
12554
12555 * ada-valprint.c (print_variant_part): Update.
12556 * ada-lang.h (ada_which_variant_applies): Update.
12557 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12558 outer_valaddr parameters; replace with "outer" value parameter.
12559 (to_fixed_variant_branch_type): Update.
12560
12561 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12562
12563 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12564 <list>. Remove inclusion of observable.h.
12565 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12566 (struct arch_lwp_info): New struct.
12567 (class ppc_linux_dreg_interface): New class.
12568 (struct ppc_linux_process_info): New struct.
12569 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12570 <low_new_clone, low_forget_process, low_prepare_to_resume>
12571 <copy_thread_dreg_state, mark_thread_stale>
12572 <mark_debug_registers_changed, register_hw_breakpoint>
12573 <clear_hw_breakpoint, register_wp, clear_wp>
12574 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12575 <num_memory_accesses, get_trigger_type>
12576 <create_watchpoint_request, hwdebug_point_cmp>
12577 <init_arch_lwp_info, get_arch_lwp_info>
12578 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12579 methods.
12580 <struct ptid_hash>: New inner struct.
12581 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12582 members.
12583 (saved_dabr_value, hwdebug_info, max_slots_number)
12584 (struct hw_break_tuple, struct thread_points, ppc_threads)
12585 (have_ptrace_hwdebug_interface)
12586 (hwdebug_find_thread_points_by_tid)
12587 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12588 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12589 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12590 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12591 use m_dreg_interface.
12592 (hwdebug_point_cmp): Change to...
12593 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12594 reference arguments instead of pointers.
12595 (ppc_linux_nat_target::ranged_break_num_registers): Use
12596 m_dreg_interface.
12597 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12598 m_dreg_interface. Call register_hw_breakpoint.
12599 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12600 m_dreg_interface. Call clear_hw_breakpoint.
12601 (get_trigger_type): Change to...
12602 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12603 comment.
12604 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12605 use m_dreg_interface. Call register_hw_breakpoint.
12606 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12607 use m_dreg_interface. Call clear_hw_breakpoint.
12608 (can_use_watchpoint_cond_accel): Change to...
12609 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12610 method. Update comment, use m_dreg_interface and
12611 m_process_info.
12612 (calculate_dvc): Change to...
12613 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12614 m_dreg_interface.
12615 (num_memory_accesses): Change to...
12616 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12617 (check_condition): Change to...
12618 (ppc_linux_nat_target::check_condition): ...this method.
12619 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12620 comment, use m_dreg_interface.
12621 (create_watchpoint_request): Change to...
12622 (ppc_linux_nat_target::create_watchpoint_request): ...this
12623 method. Use m_dreg_interface.
12624 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12625 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12626 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12627 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12628 (ppc_linux_nat_target::low_forget_process)
12629 (ppc_linux_nat_target::low_new_fork)
12630 (ppc_linux_nat_target::low_new_clone)
12631 (ppc_linux_nat_target::low_delete_thread)
12632 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12633 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12634 only call mark_thread_stale.
12635 (ppc_linux_thread_exit): Remove.
12636 (ppc_linux_nat_target::stopped_data_address): Change to...
12637 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12638 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12639 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12640 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12641 comment. Call low_stopped_data_address.
12642 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12643 m_dreg_interface.
12644 (ppc_linux_nat_target::masked_watch_num_registers): Use
12645 m_dreg_interface.
12646 (ppc_linux_nat_target::copy_thread_dreg_state)
12647 (ppc_linux_nat_target::mark_thread_stale)
12648 (ppc_linux_nat_target::mark_debug_registers_changed)
12649 (ppc_linux_nat_target::register_hw_breakpoint)
12650 (ppc_linux_nat_target::clear_hw_breakpoint)
12651 (ppc_linux_nat_target::register_wp)
12652 (ppc_linux_nat_target::clear_wp)
12653 (ppc_linux_nat_target::init_arch_lwp_info)
12654 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12655 (_initialize_ppc_linux_nat): Remove observer callback.
12656
12657 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12658
12659 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12660 (ppc_linux_nat_target::auxv_parse)
12661 (ppc_linux_nat_target::read_description)
12662 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12663 Move up.
12664
12665 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12666
12667 * linux-nat.h (low_new_clone): New method.
12668 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12669
12670 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12671
12672 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12673 (dbx_expand_psymtab): ... this.
12674 (start_psymtab): Update.
12675 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12676 (mdebug_expand_psymtab): ... this.
12677 (parse_partial_symbols): Update.
12678 (new_psymtab): Update.
12679 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12680 (xcoff_expand_psymtab): ... this.
12681 (xcoff_start_psymtab): Update.
12682
12683 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12684
12685 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12686 <expand_dependencies>: ... this.
12687 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12688 (partial_symtab::expand_dependencies): ... this.
12689 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12690 Update.
12691 (dwarf2_psymtab::expand_psymtab): Update.
12692 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12693 * mdebugread.c (psymtab_to_symtab_1): Update.
12694 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12695
12696 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12697
12698 * psympriv.h (discard_psymtab): Remove.
12699 * dbxread.c (dbx_end_psymtab): Update.
12700 * xcoffread.c (xcoff_end_psymtab): Update.
12701
12702 2020-03-28 Tom Tromey <tom@tromey.com>
12703
12704 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12705 comment.
12706
12707 2020-03-28 Tom Tromey <tom@tromey.com>
12708
12709 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12710
12711 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
12712
12713 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12714
12715 2020-03-26 John Baldwin <jhb@FreeBSD.org>
12716
12717 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12718
12719 2020-03-26 Tom Tromey <tom@tromey.com>
12720
12721 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12722 (mark_common_block_symbol_computed, read_tag_string_type)
12723 (attr_to_dynamic_prop, read_subrange_type): Update.
12724 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12725 to be methods on struct attribute.
12726 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12727 (read_call_site_scope, partial_die_info::read)
12728 (partial_die_info::read, lookup_die_type, follow_die_ref):
12729 Update.
12730 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12731 from dwarf2_get_ref_die_offset.
12732 (attribute::constant_value): New method, from
12733 dwarf2_get_attr_constant_value.
12734 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12735 Declare method.
12736 <constant_value>: New method.
12737
12738 2020-03-26 Tom Tromey <tom@tromey.com>
12739
12740 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12741 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12742 (dwarf_type_encoding_name): Move to stringify.c.
12743 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12744 * dwarf2/stringify.c: New file.
12745 * dwarf2/stringify.h: New file.
12746
12747 2020-03-26 Tom Tromey <tom@tromey.com>
12748
12749 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12750 Rewrite.
12751
12752 2020-03-26 Tom Tromey <tom@tromey.com>
12753
12754 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12755 methods.
12756 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12757 (lookup_ranges_base): Likewise.
12758 (read_cutu_die_from_dwo, read_full_die_1): Update.
12759
12760 2020-03-26 Tom Tromey <tom@tromey.com>
12761
12762 * dwarf2/read.c (read_import_statement, read_file_scope)
12763 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12764 (read_lexical_block_scope, read_call_site_scope)
12765 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12766 (handle_struct_member_die, process_structure_scope)
12767 (update_enumeration_type_from_children)
12768 (process_enumeration_scope, read_array_type, read_common_block)
12769 (read_namespace, read_module, read_subroutine_type): Update.
12770 (sibling_die): Remove.
12771
12772 2020-03-26 Tom Tromey <tom@tromey.com>
12773
12774 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12775 (build_type_psymtabs_reader, read_structure_type)
12776 (read_enumeration_type, read_full_die_1): Update.
12777 (dwarf2_attr_no_follow): Move to die.h.
12778 * dwarf2/die.h (struct die_info) <attr>: New method.
12779
12780 2020-03-26 Tom Tromey <tom@tromey.com>
12781
12782 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12783 <base_address>: Now an optional.
12784 (dwarf2_find_base_address, dwarf2_rnglists_process)
12785 (dwarf2_ranges_process, fill_in_loclist_baton)
12786 (dwarf2_symbol_mark_computed): Update.
12787
12788 2020-03-26 Tom Tromey <tom@tromey.com>
12789
12790 * dwarf2/read.c (struct die_info): Move to die.h.
12791 * dwarf2/die.h: New file.
12792
12793 2020-03-26 Tom Tromey <tom@tromey.com>
12794
12795 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12796 * dwarf2/read.c
12797 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12798 Move to line-header.c.
12799 (read_checked_initial_length_and_offset, read_formatted_entries):
12800 Likewise.
12801 (dwarf_decode_line_header): Split into two.
12802 * dwarf2/line-header.c
12803 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12804 Move from read.c.
12805 (read_checked_initial_length_and_offset, read_formatted_entries):
12806 Likewise.
12807 (dwarf_decode_line_header): New function, split from read.c.
12808
12809 2020-03-26 Tom Tromey <tom@tromey.com>
12810
12811 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12812 Declare method.
12813 * dwarf2/read.c (read_attribute_value): Update.
12814 (dwarf2_per_objfile::read_line_string): Rename from
12815 read_indirect_line_string.
12816 (read_formatted_entries): Update.
12817
12818 2020-03-26 Tom Tromey <tom@tromey.com>
12819
12820 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12821 variable.
12822
12823 2020-03-26 Tom Tromey <tom@tromey.com>
12824
12825 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12826 const.
12827 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12828 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12829 parameter const.
12830
12831 2020-03-26 Tom Tromey <tom@tromey.com>
12832
12833 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12834 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12835 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12836 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12837
12838 2020-03-26 Tom Tromey <tom@tromey.com>
12839
12840 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12841 file_names_size, file_full_name, file_file_name>: Use const.
12842 <file_name_at, file_names>: Add const overload.
12843 * dwarf2/line-header.c (line_header::file_file_name)
12844 (line_header::file_full_name): Update.
12845
12846 2020-03-26 Tom Tromey <tom@tromey.com>
12847
12848 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12849 (macro_start_file, consume_improper_spaces)
12850 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12851 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12852 (dwarf_decode_macros): Move to macro.c.
12853 * dwarf2/macro.c: New file.
12854 * dwarf2/macro.h: New file.
12855 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12856
12857 2020-03-26 Tom Tromey <tom@tromey.com>
12858
12859 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12860 method.
12861 * dwarf2/section.c: New method. From
12862 read_indirect_string_at_offset_from.
12863 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12864 (read_indirect_string_at_offset_from): Move to section.c.
12865 (read_indirect_string_at_offset): Rewrite.
12866 (read_indirect_line_string_at_offset): Remove.
12867 (read_indirect_string, read_indirect_line_string)
12868 (dwarf_decode_macro_bytes): Update.
12869
12870 2020-03-26 Tom Tromey <tom@tromey.com>
12871
12872 * dwarf2/section.h (struct dwarf2_section_info)
12873 <overload_complaint>: Declare.
12874 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12875 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12876 Rename from dwarf2_section_buffer_overflow_complaint.
12877 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12878 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12879
12880 2020-03-26 Tom Tromey <tom@tromey.com>
12881
12882 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12883 Declare.
12884 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12885 Move from read.c.
12886 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12887 to section.c.
12888
12889 2020-03-26 Tom Tromey <tom@tromey.com>
12890
12891 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12892
12893 2020-03-26 Tom Tromey <tom@tromey.com>
12894
12895 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12896 "builder".
12897 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12898 parameter.
12899 (dwarf_decode_macros): Update.
12900
12901 2020-03-26 Tom Tromey <tom@tromey.com>
12902
12903 * dwarf2/read.c (read_attribute_value): Update.
12904 (read_indirect_string_from_dwz): Move to dwz.c; change into
12905 method.
12906 (dwarf_decode_macro_bytes): Update.
12907 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12908 * dwarf2/dwz.c: New file.
12909 * Makefile.in (COMMON_SFILES): Add dwz.c.
12910
12911 2020-03-26 Tom Tromey <tom@tromey.com>
12912
12913 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12914 * dwarf2/read.c: Add include.
12915 * dwarf2/index-write.c: Add include.
12916 * dwarf2/index-cache.c: Add include.
12917 * dwarf2/dwz.h: New file.
12918
12919 2020-03-25 Tom Tromey <tom@tromey.com>
12920
12921 * compile/compile-object-load.c (get_out_value_type): Mention
12922 correct symbol name in error message.
12923
12924 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
12925
12926 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12927
12928 2020-03-25 Tom de Vries <tdevries@suse.de>
12929
12930 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12931 * symmisc.c (dump_symtab_1): Print user and includes fields.
12932 (maintenance_info_symtabs): Same.
12933
12934 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12935
12936 PR gdb/25534
12937 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12938 (riscv_regcache_cooked_write): New function.
12939 (riscv_push_dummy_call): Use new function.
12940 (riscv_return_value): Likewise.
12941
12942 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12943
12944 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12945 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12946 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12947 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12948 * infrun.c (follow_fork): Likewise.
12949 (follow_fork_inferior): Likewise.
12950 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12951 * linux-nat.h (class linux_nat_target): Likewise.
12952 * remote.c (class remote_target) <follow_fork>: Likewise.
12953 (remote_target::follow_fork): Likewise.
12954 * target-delegates.c: Re-generate.
12955 * target.c (default_follow_fork): Likewise.
12956 (target_follow_fork): Likewise.
12957 * target.h (struct target_ops) <follow_fork>: Likewise.
12958 (target_follow_fork): Likewise.
12959
12960 2020-03-24 Tom de Vries <tdevries@suse.de>
12961
12962 * psymtab.c (maintenance_info_psymtabs): Print user field.
12963
12964 2020-03-20 Tom Tromey <tromey@adacore.com>
12965
12966 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12967 const.
12968 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12969 const.
12970
12971 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
12972
12973 * ptrace.m4: Don't check for ptrace declaration.
12974 * config.in: Re-generate.
12975 * configure: Re-generate.
12976 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12977 not defined.
12978
12979 2020-03-20 Kamil Rytarowski <n54@gmx.com>
12980
12981 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12982 `PTRACE_TYPE_RET'.
12983 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12984 * sparc-nat.c (gdb_ptrace): Likewise.
12985 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12986
12987 2020-03-20 Tom Tromey <tromey@adacore.com>
12988
12989 * c-exp.y (lex_one_token): Fix assert.
12990
12991 2020-03-20 Tom Tromey <tromey@adacore.com>
12992
12993 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12994 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12995 strncpy call.
12996
12997 2020-03-20 Tom Tromey <tromey@adacore.com>
12998
12999 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13000
13001 2020-03-20 Tom Tromey <tromey@adacore.com>
13002
13003 * ada-valprint.c (print_variant_part): Remove parameters; switch
13004 to value-based API.
13005 (print_field_values): Likewise.
13006 (ada_val_print_struct_union): Likewise.
13007 (ada_value_print_1): Update.
13008
13009 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13010
13011 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13012 nbsd_nat_target instead of inf_ptrace_target.
13013 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13014 nbsd_nat_target.
13015
13016 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13017
13018 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13019 it to the ptrace call.
13020 * (store_registers): Likewise.
13021
13022 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13023
13024 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13025 it to the ptrace call.
13026 * (store_registers): Likewise.
13027
13028 2020-03-19 Luis Machado <luis.machado@linaro.org>
13029
13030 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13031 valid, fetch vg value from ptrace.
13032
13033 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13034 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13035 * inf-ptrace.c: Likewise.
13036 * (gdb_ptrace): Add.
13037 * (inf_ptrace_target::resume): Update.
13038 * (inf_ptrace_target::xfer_partial): Likewise.
13039 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13040 * (inf_ptrace_peek_poke): Update.
13041
13042 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13043
13044 * x86-bsd-nat.c (gdb_ptrace): New.
13045 * (x86bsd_dr_set): Add new argument `ptid'.
13046 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13047 x86bsd_dr_set_addr): Update.
13048
13049 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13050
13051 * remote.c (remote_target::process_stop_reply): Handle events for
13052 all threads differently.
13053
13054 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13055
13056 * completer.c (completion_tracker::remove_completion): Define new
13057 function.
13058 * completer.h (completion_tracker::remove_completion): Declare new
13059 function.
13060 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13061 when adding a C++ function symbol.
13062
13063 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13064
13065 * completer.c (completion_tracker::completion_hash_entry): Define
13066 new class.
13067 (advance_to_filename_complete_word_point): Call
13068 recompute_lowest_common_denominator.
13069 (completion_tracker::completion_tracker): Call discard_completions
13070 to setup the hash table.
13071 (completion_tracker::discard_completions): Allow for being called
13072 from the constructor, pass new equal function, and element deleter
13073 when constructing the hash table. Initialise new class member
13074 variables.
13075 (completion_tracker::maybe_add_completion): Remove use of
13076 m_entries_vec, and store more information into m_entries_hash.
13077 (completion_tracker::recompute_lcd_visitor): New function, most
13078 content taken from...
13079 (completion_tracker::recompute_lowest_common_denominator):
13080 ...here, this now just visits each item in the hash calling the
13081 above visitor.
13082 (completion_tracker::build_completion_result): Remove use of
13083 m_entries_vec, call recompute_lowest_common_denominator.
13084 * completer.h (completion_tracker::have_completions): Remove use
13085 of m_entries_vec.
13086 (completion_tracker::completion_hash_entry): Declare new class.
13087 (completion_tracker::recompute_lowest_common_denominator): Change
13088 function signature.
13089 (completion_tracker::recompute_lcd_visitor): Declare new function.
13090 (completion_tracker::m_entries_vec): Delete.
13091 (completion_tracker::m_entries_hash): Initialize to NULL.
13092 (completion_tracker::m_lowest_common_denominator_valid): New
13093 member variable.
13094 (completion_tracker::m_lowest_common_denominator_max_length): New
13095 member variable.
13096
13097 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13098
13099 * regformats/regdef.h: Put reg in gdb namespace.
13100
13101 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13102
13103 * i386-bsd-nat.c (gdb_ptrace): New.
13104 * (i386bsd_fetch_inferior_registers,
13105 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13106 * (i386bsd_fetch_inferior_registers,
13107 i386bsd_store_inferior_registers) Use gdb_ptrace.
13108
13109 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13110
13111 * amd64-bsd-nat.c (gdb_ptrace): New.
13112 * (amd64bsd_fetch_inferior_registers,
13113 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13114 * (amd64bsd_fetch_inferior_registers,
13115 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13116
13117 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13118
13119 * user-regs.c (user_reg::read): Rename to...
13120 (user_reg::xread): ...this.
13121 * (append_user_reg): Rename argument `read' to `xread'.
13122 * (user_reg_add_builtin): Likewise.
13123 * (user_reg_add): Likewise.
13124 * (value_of_user_reg): Likewise.
13125
13126 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13127
13128 * sparc-nat.c (gdb_ptrace): New.
13129 * sparc-nat.c (sparc_fetch_inferior_registers)
13130 (sparc_store_inferior_registers) Remove obsolete comment.
13131 * sparc-nat.c (sparc_fetch_inferior_registers)
13132 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13133 * sparc-nat.c (sparc_fetch_inferior_registers)
13134 (sparc_store_inferior_registers) Use gdb_ptrace.
13135
13136 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13137
13138 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13139 it to the ptrace call.
13140 * sh-nbsd-nat.c (store_registers): Likewise.
13141
13142 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13143
13144 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13145 nbsd_nat_target instead of inf_ptrace_target.
13146 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13147 nbsd_nat_target.
13148
13149 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13150
13151 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13152
13153 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13154
13155 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13156 <sys/sysctl.h>.
13157 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13158
13159 2020-03-17 Tom de Vries <tdevries@suse.de>
13160
13161 PR gdb/23710
13162 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13163 fields.
13164 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13165 fields.
13166 (process_imported_unit_die): Skip import of c++ CUs.
13167
13168 2020-03-16 Tom Tromey <tom@tromey.com>
13169
13170 * p-valprint.c (pascal_object_print_value): Initialize
13171 base_value.
13172
13173 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13174 Shahab Vahedi <shahab@synopsys.com>
13175
13176 * Makefile.in: Add arch/arc.o
13177 * configure.tgt: Likewise.
13178 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13179 (_initialize_arc_tdep): Don't initialize old target descriptions.
13180 (arc_read_description): New function to cache target descriptions.
13181 * arc-tdep.h (arc_read_description): Add proto type.
13182 * arch/arc.c: New file.
13183 * arch/arc.h: Likewise.
13184 * features/Makefile: Replace old target descriptions with new.
13185 * features/arc-arcompact.c: Remove.
13186 * features/arc-arcompact.xml: Likewise.
13187 * features/arc-v2.c: Likewise
13188 * features/arc-v2.xml: Likewise
13189 * features/arc/aux-arcompact.xml: New file.
13190 * features/arc/aux-v2.xml: Likewise.
13191 * features/arc/core-arcompact.xml: Likewise.
13192 * features/arc/core-v2.xml: Likewise.
13193 * features/arc/aux-arcompact.c: Generate.
13194 * features/arc/aux-v2.c: Likewise.
13195 * features/arc/core-arcompact.c: Likewise.
13196 * features/arc/core-v2.c: Likewise.
13197 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13198
13199 2020-03-16 Tom Tromey <tromey@adacore.com>
13200
13201 PR gdb/25663:
13202 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13203 putting value into bcache.
13204
13205 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13206
13207 PR gdb/21500
13208 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13209 to...
13210 (amd64_windows_init_abi_common): ... this. Don't set size of
13211 long type.
13212 (amd64_windows_init_abi): New function.
13213 (amd64_cygwin_init_abi): New function.
13214 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13215 the Cygwin OS ABI.
13216 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13217 comment.
13218
13219 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13220
13221 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13222 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13223 (pe_import_directory_entry): New struct type.
13224 (is_linked_with_cygwin_dll): New function.
13225 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13226 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13227 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13228
13229 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13230
13231 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13232 i386_cygwin_core_osabi_sniffer.
13233
13234 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13235
13236 * i386-cygwin-tdep.c: Rename to...
13237 * i386-windows-tdep.c: ... this.
13238 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13239 i386-windows-tdep.c.
13240 * configure.tgt: Likewise.
13241
13242 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13243
13244 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13245 * osabi.c (gdb_osabi_names): Add "Windows".
13246 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13247 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13248 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13249 i386_cygwin_osabi_sniffer.
13250 (_initialize_i386_cygwin_tdep): Register OS ABI
13251 GDB_OSABI_WINDOWS for i386.
13252 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13253 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13254 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13255 for x86-64.
13256 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13257 when the target matches '*-*-mingw*'.
13258
13259 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13260
13261 * defs.h (enum gdb_osabi): Move to...
13262 * osabi.h (enum gdb_osabi): ... here.
13263 * gdbarch.sh: Include osabi.h in gdbarch.h.
13264 * gdbarch.h: Re-generate.
13265
13266 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13267
13268 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13269 function.
13270 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13271
13272 2020-03-14 Tom Tromey <tom@tromey.com>
13273
13274 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13275 for C++.
13276 (c_type_print_modifier): Likewise. Add "language" parameter.
13277 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13278 (c_type_print_base_1): Update.
13279 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13280 constants.
13281 * type-stack.c (type_stack::insert): Handle tp_atomic and
13282 tp_restrict.
13283 (type_stack::follow_type_instance_flags): Likewise.
13284 (type_stack::follow_types): Likewise. Merge type-following code.
13285 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13286 (space_identifier, cv_with_space_id)
13287 (const_or_volatile_or_space_identifier_noopt)
13288 (const_or_volatile_or_space_identifier): Remove.
13289 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13290 rules.
13291 (ptr_operator, typebase): Update.
13292 (enum token_flag) <FLAG_C>: New constant.
13293 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13294 "_Atomic".
13295 (lex_one_token): Handle FLAG_C.
13296
13297 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13298
13299 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13300 it to the ptrace call.
13301 * m68k-bsd-nat.c (store_registers): Likewise.
13302
13303 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13304
13305 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13306 gdb_byte *.
13307 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13308 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13309 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13310
13311 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13312
13313 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13314 nbsd_nat_target instead of inf_ptrace_target.
13315 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13316 nbsd_nat_target.
13317
13318 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13319
13320 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13321 register_t.
13322
13323 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13324
13325 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13326 it to the ptrace call.
13327 * alpha-bsd-nat.c (store_registers): Likewise.
13328
13329 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13330
13331 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13332 includes.
13333 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13334 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13335 fill_fpregset): Likewise.
13336
13337 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13338
13339 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13340 nbsd_nat_target instead of inf_ptrace_target.
13341 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13342 nbsd_nat_target.
13343
13344 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13345
13346 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13347 register_t.
13348
13349 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13350
13351 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13352 it to the ptrace call.
13353 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13354 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13355 * arm-nbsd-nat.c (store_register): Likewise.
13356 * arm-nbsd-nat.c (store_regs): Likewise.
13357 * arm-nbsd-nat.c (store_fp_register): Likewise.
13358 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13359
13360 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13361
13362 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13363 nbsd_nat_target instead of inf_ptrace_target.
13364 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13365 nbsd_nat_target.
13366
13367 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13368
13369 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13370 it to the ptrace call.
13371 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13372
13373 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13374
13375 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13376 it to the ptrace call.
13377 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13378
13379 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13380
13381 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13382 gdb_byte *.
13383 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13384
13385 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13386
13387 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13388 instead of inf_ptrace_target.
13389 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13390 nbsd_nat_target.
13391
13392 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13393
13394 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13395 register_t.
13396
13397 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13398
13399 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13400 register_t.
13401
13402 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13403
13404 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13405 register_t.
13406
13407 2020-03-13 Tom Tromey <tom@tromey.com>
13408
13409 * value.h (val_print): Don't declare.
13410 * valprint.h (val_print_array_elements)
13411 (val_print_scalar_formatted, generic_val_print): Don't declare.
13412 * valprint.c (generic_val_print_array): Take a struct value.
13413 (generic_val_print_ptr, generic_val_print_memberptr)
13414 (generic_val_print_bool, generic_val_print_int)
13415 (generic_val_print_char, generic_val_print_complex)
13416 (generic_val_print): Remove.
13417 (generic_value_print): Update.
13418 (do_val_print): Remove unused parameters. Don't call
13419 la_val_print.
13420 (val_print): Remove.
13421 (common_val_print): Update. Don't call value_check_printable.
13422 (val_print_scalar_formatted, val_print_array_elements): Remove.
13423 * rust-lang.c (rust_val_print): Remove.
13424 (rust_language_defn): Update.
13425 * p-valprint.c (pascal_val_print): Remove.
13426 (pascal_value_print_inner): Update.
13427 (pascal_object_print_val_fields, pascal_object_print_val):
13428 Remove.
13429 (pascal_object_print_static_field): Update.
13430 * p-lang.h (pascal_val_print): Don't declare.
13431 * p-lang.c (pascal_language_defn): Update.
13432 * opencl-lang.c (opencl_language_defn): Update.
13433 * objc-lang.c (objc_language_defn): Update.
13434 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13435 * m2-lang.h (m2_val_print): Don't declare.
13436 * m2-lang.c (m2_language_defn): Update.
13437 * language.h (struct language_defn) <la_val_print>: Remove.
13438 * language.c (unk_lang_value_print_inner): Rename. Change
13439 argument types.
13440 (unknown_language_defn, auto_language_defn): Update.
13441 * go-valprint.c (go_val_print): Remove.
13442 * go-lang.h (go_val_print): Don't declare.
13443 * go-lang.c (go_language_defn): Update.
13444 * f-valprint.c (f_val_print): Remove.
13445 * f-lang.h (f_value_print): Don't declare.
13446 * f-lang.c (f_language_defn): Update.
13447 * d-valprint.c (d_val_print): Remove.
13448 * d-lang.h (d_value_print): Don't declare.
13449 * d-lang.c (d_language_defn): Update.
13450 * cp-valprint.c (cp_print_value_fields)
13451 (cp_print_value_fields_rtti, cp_print_value): Remove.
13452 (cp_print_static_field): Update.
13453 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13454 (c_val_print_struct, c_val_print_union, c_val_print_int)
13455 (c_val_print_memberptr, c_val_print): Remove.
13456 * c-lang.h (c_val_print_array, cp_print_value_fields)
13457 (cp_print_value_fields_rtti): Don't declare.
13458 * c-lang.c (c_language_defn, cplus_language_defn)
13459 (asm_language_defn, minimal_language_defn): Update.
13460 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13461 (ada_val_print_enum): Take a struct value.
13462 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13463 (ada_val_print): Remove.
13464 (ada_value_print_1): Update.
13465 (printable_val_type): Remove.
13466 * ada-lang.h (ada_val_print): Don't declare.
13467 * ada-lang.c (ada_language_defn): Update.
13468
13469 2020-03-13 Tom Tromey <tom@tromey.com>
13470
13471 * valprint.c (do_val_print): Update.
13472 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13473 a struct value.
13474 (value_to_value_object_no_release): Declare.
13475 * python/py-value.c (value_to_value_object_no_release): New
13476 function.
13477 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13478 struct value.
13479 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13480 function.
13481 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13482 a struct value.
13483 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13484 Declare.
13485 (gdbscm_apply_val_pretty_printer): Take a struct value.
13486 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13487 value.
13488 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13489 value.
13490 * extension-priv.h (struct extension_language_ops)
13491 <apply_val_pretty_printer>: Take a struct value.
13492 * cp-valprint.c (cp_print_value): Create a struct value.
13493 (cp_print_value): Update.
13494
13495 2020-03-13 Tom Tromey <tom@tromey.com>
13496
13497 * ada-valprint.c (print_field_values): Call common_val_print.
13498
13499 2020-03-13 Tom Tromey <tom@tromey.com>
13500
13501 * ada-valprint.c (val_print_packed_array_elements): Remove
13502 bitoffset and val parameters. Call common_val_print.
13503 (ada_val_print_string): Remove offset, address, and original_value
13504 parameters.
13505 (ada_val_print_array): Update.
13506 (ada_value_print_array): New function.
13507 (ada_value_print_1): Call it.
13508
13509 2020-03-13 Tom Tromey <tom@tromey.com>
13510
13511 * ada-valprint.c (ada_value_print): Use common_val_print.
13512
13513 2020-03-13 Tom Tromey <tom@tromey.com>
13514
13515 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13516
13517 2020-03-13 Tom Tromey <tom@tromey.com>
13518
13519 * ada-valprint.c (ada_value_print_num): New function.
13520 (ada_value_print_1): Use it.
13521
13522 2020-03-13 Tom Tromey <tom@tromey.com>
13523
13524 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13525
13526 2020-03-13 Tom Tromey <tom@tromey.com>
13527
13528 * ada-valprint.c (ada_value_print_ptr): New function.
13529 (ada_value_print_1): Use it.
13530
13531 2020-03-13 Tom Tromey <tom@tromey.com>
13532
13533 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13534 call common_val_print.
13535 (ada_val_print_1): Update.
13536 (ada_value_print_1): New function.
13537 (ada_value_print_inner): Rewrite.
13538
13539 2020-03-13 Tom Tromey <tom@tromey.com>
13540
13541 * cp-valprint.c (cp_print_value_fields): Update.
13542 (cp_print_value): New function.
13543
13544 2020-03-13 Tom Tromey <tom@tromey.com>
13545
13546 * m2-valprint.c (m2_value_print_inner): Use
13547 cp_print_value_fields.
13548 * cp-valprint.c (cp_print_value_fields): New function.
13549 * c-valprint.c (c_value_print_struct): New function.
13550 (c_value_print_inner): Use c_value_print_struct.
13551 * c-lang.h (cp_print_value_fields): Declare.
13552
13553 2020-03-13 Tom Tromey <tom@tromey.com>
13554
13555 * c-valprint.c (c_value_print_array): New function.
13556 (c_value_print_inner): Use it.
13557
13558 2020-03-13 Tom Tromey <tom@tromey.com>
13559
13560 * c-valprint.c (c_value_print_memberptr): New function.
13561 (c_value_print_inner): Use it.
13562
13563 2020-03-13 Tom Tromey <tom@tromey.com>
13564
13565 * c-valprint.c (c_value_print_int): New function.
13566 (c_value_print_inner): Use it.
13567
13568 2020-03-13 Tom Tromey <tom@tromey.com>
13569
13570 * c-valprint.c (c_value_print_ptr): New function.
13571 (c_value_print_inner): Use it.
13572
13573 2020-03-13 Tom Tromey <tom@tromey.com>
13574
13575 * c-valprint.c (c_value_print_inner): Rewrite.
13576
13577 2020-03-13 Tom Tromey <tom@tromey.com>
13578
13579 * valprint.c (generic_value_print_complex): New function.
13580 (generic_value_print): Use it.
13581
13582 2020-03-13 Tom Tromey <tom@tromey.com>
13583
13584 * valprint.c (generic_val_print_float): Don't call
13585 val_print_scalar_formatted.
13586 (generic_val_print, generic_value_print): Update.
13587
13588 2020-03-13 Tom Tromey <tom@tromey.com>
13589
13590 * valprint.c (generic_value_print_char): New function
13591 (generic_value_print): Use it.
13592
13593 2020-03-13 Tom Tromey <tom@tromey.com>
13594
13595 * valprint.c (generic_value_print_int): New function.
13596 (generic_value_print): Use it.
13597
13598 2020-03-13 Tom Tromey <tom@tromey.com>
13599
13600 * valprint.c (generic_value_print_bool): New function.
13601 (generic_value_print): Use it.
13602
13603 2020-03-13 Tom Tromey <tom@tromey.com>
13604
13605 * valprint.c (generic_val_print_func): Simplify.
13606 (generic_val_print, generic_value_print): Update.
13607
13608 2020-03-13 Tom Tromey <tom@tromey.com>
13609
13610 * valprint.c (generic_val_print_flags): Remove.
13611 (generic_val_print, generic_value_print): Update.
13612 (val_print_type_code_flags): Add original_value parameter.
13613
13614 2020-03-13 Tom Tromey <tom@tromey.com>
13615
13616 * valprint.c (generic_val_print): Update.
13617 (generic_value_print): Update.
13618 * valprint.c (generic_val_print_enum): Don't call
13619 val_print_scalar_formatted.
13620
13621 2020-03-13 Tom Tromey <tom@tromey.com>
13622
13623 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13624 * valprint.c (generic_value_print_ptr): New function.
13625
13626 2020-03-13 Tom Tromey <tom@tromey.com>
13627
13628 * valprint.c (generic_value_print): Rewrite.
13629
13630 2020-03-13 Tom Tromey <tom@tromey.com>
13631
13632 * p-valprint.c (pascal_object_print_value_fields)
13633 (pascal_object_print_value): New functions.
13634
13635 2020-03-13 Tom Tromey <tom@tromey.com>
13636
13637 * p-valprint.c (pascal_value_print_inner): Rewrite.
13638
13639 2020-03-13 Tom Tromey <tom@tromey.com>
13640
13641 * f-valprint.c (f_value_print_innner): Rewrite.
13642
13643 2020-03-13 Tom Tromey <tom@tromey.com>
13644
13645 * m2-valprint.c (m2_print_unbounded_array): New overload.
13646 (m2_print_unbounded_array): Update.
13647 (m2_print_array_contents): Take a struct value.
13648 (m2_value_print_inner): Rewrite.
13649
13650 2020-03-13 Tom Tromey <tom@tromey.com>
13651
13652 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13653 (d_value_print_inner): New function.
13654 * d-lang.h (d_value_print_inner): Declare.
13655 * d-lang.c (d_language_defn): Use d_value_print_inner.
13656
13657 2020-03-13 Tom Tromey <tom@tromey.com>
13658
13659 * go-valprint.c (go_value_print_inner): New function.
13660 * go-lang.h (go_value_print_inner): Declare.
13661 * go-lang.c (go_language_defn): Use go_value_print_inner.
13662
13663 2020-03-13 Tom Tromey <tom@tromey.com>
13664
13665 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13666 API.
13667 (rust_val_print): Rewrite.
13668 (rust_value_print_inner): New function, from rust_val_print.
13669 (rust_language_defn): Use rust_value_print_inner.
13670
13671 2020-03-13 Tom Tromey <tom@tromey.com>
13672
13673 * ada-valprint.c (ada_value_print_inner): New function.
13674 * ada-lang.h (ada_value_print_inner): Declare.
13675 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13676
13677 2020-03-13 Tom Tromey <tom@tromey.com>
13678
13679 * f-valprint.c (f_value_print_innner): New function.
13680 * f-lang.h (f_value_print_innner): Declare.
13681 * f-lang.c (f_language_defn): Use f_value_print_innner.
13682
13683 2020-03-13 Tom Tromey <tom@tromey.com>
13684
13685 * p-valprint.c (pascal_value_print_inner): New function.
13686 * p-lang.h (pascal_value_print_inner): Declare.
13687 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13688
13689 2020-03-13 Tom Tromey <tom@tromey.com>
13690
13691 * m2-valprint.c (m2_value_print_inner): New function.
13692 * m2-lang.h (m2_value_print_inner): Declare.
13693 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13694
13695 2020-03-13 Tom Tromey <tom@tromey.com>
13696
13697 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13698 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13699 * c-valprint.c (c_value_print_inner): New function.
13700 * c-lang.h (c_value_print_inner): Declare.
13701 * c-lang.c (c_language_defn, cplus_language_defn)
13702 (asm_language_defn, minimal_language_defn): Use
13703 c_value_print_inner.
13704
13705 2020-03-13 Tom Tromey <tom@tromey.com>
13706
13707 * p-valprint.c (pascal_object_print_value_fields): Now static.
13708 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13709
13710 2020-03-13 Tom Tromey <tom@tromey.com>
13711
13712 * c-valprint.c (c_val_print_array): Simplify.
13713
13714 2020-03-13 Tom Tromey <tom@tromey.com>
13715
13716 * valprint.c (value_print_array_elements): New function.
13717 * valprint.h (value_print_array_elements): Declare.
13718
13719 2020-03-13 Tom Tromey <tom@tromey.com>
13720
13721 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13722 * mips-tdep.c (mips_print_register): Use
13723 value_print_scalar_formatted.
13724
13725 2020-03-13 Tom Tromey <tom@tromey.com>
13726
13727 * valprint.h (value_print_scalar_formatted): Declare.
13728 * valprint.c (value_print_scalar_formatted): New function.
13729
13730 2020-03-13 Tom Tromey <tom@tromey.com>
13731
13732 * valprint.h (generic_value_print): Declare.
13733 * valprint.c (generic_value_print): New function.
13734
13735 2020-03-13 Tom Tromey <tom@tromey.com>
13736
13737 * valprint.c (do_val_print): Call la_value_print_inner, if
13738 available.
13739 * rust-lang.c (rust_language_defn): Update.
13740 * p-lang.c (pascal_language_defn): Update.
13741 * opencl-lang.c (opencl_language_defn): Update.
13742 * objc-lang.c (objc_language_defn): Update.
13743 * m2-lang.c (m2_language_defn): Update.
13744 * language.h (struct language_defn) <la_value_print_inner>: New
13745 member.
13746 * language.c (unknown_language_defn, auto_language_defn): Update.
13747 * go-lang.c (go_language_defn): Update.
13748 * f-lang.c (f_language_defn): Update.
13749 * d-lang.c (d_language_defn): Update.
13750 * c-lang.c (c_language_defn, cplus_language_defn)
13751 (asm_language_defn, minimal_language_defn): Update.
13752 * ada-lang.c (ada_language_defn): Update.
13753
13754 2020-03-13 Tom Tromey <tom@tromey.com>
13755
13756 * c-valprint.c (c_value_print): Use common_val_print.
13757
13758 2020-03-13 Tom Tromey <tom@tromey.com>
13759
13760 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13761
13762 2020-03-13 Tom Tromey <tom@tromey.com>
13763
13764 * f-valprint.c (f77_print_array_1, f_val_print): Use
13765 common_val_print.
13766
13767 2020-03-13 Tom Tromey <tom@tromey.com>
13768
13769 * riscv-tdep.c (riscv_print_one_register_info): Use
13770 common_val_print.
13771
13772 2020-03-13 Tom Tromey <tom@tromey.com>
13773
13774 * mi/mi-main.c (output_register): Use common_val_print.
13775
13776 2020-03-13 Tom Tromey <tom@tromey.com>
13777
13778 * infcmd.c (default_print_one_register_info): Use
13779 common_val_print.
13780
13781 2020-03-13 Tom Tromey <tom@tromey.com>
13782
13783 * valprint.h (common_val_print_checked): Declare.
13784 * valprint.c (common_val_print_checked): New function.
13785 * stack.c (print_frame_arg): Use common_val_print_checked.
13786
13787 2020-03-13 Tom Tromey <tom@tromey.com>
13788
13789 * valprint.c (do_val_print): New function, from val_print.
13790 (val_print): Use do_val_print.
13791 (common_val_print): Use do_val_print.
13792
13793 2020-03-13 Tom Tromey <tom@tromey.com>
13794
13795 * valprint.c (value_print): Use scoped_value_mark.
13796
13797 2020-03-13 Tom de Vries <tdevries@suse.de>
13798
13799 PR symtab/25646
13800 * psymtab.c (partial_symtab::partial_symtab): Don't set
13801 globals_offset and statics_offset. Push element onto
13802 current_global_psymbols and current_static_psymbols stacks.
13803 (concat): New function.
13804 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13805 element from current_global_psymbols and current_static_psymbols
13806 stacks. Concat popped elements to global_psymbols and
13807 static_symbols.
13808 (add_psymbol_to_list): Use current_global_psymbols and
13809 current_static_psymbols stacks.
13810 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13811 current_static_psymbols fields.
13812
13813 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13814
13815 * corelow.c (sniff_core_bfd): Remove.
13816 (class core_target) <m_core_vec>: Remove.
13817 (core_target::core_target): Update.
13818 (core_file_fns): Remove.
13819 (deprecated_add_core_fns): Remove.
13820 (default_core_sniffer): Remove.
13821 (sniff_core_bfd): Remove.
13822 (default_check_format): Remove.
13823 (gdb_check_format): Remove.
13824 (core_target_open): Update.
13825 (core_target::get_core_register_section): Update.
13826 (get_core_registers_cb): Update.
13827 (core_target::fetch_registers): Update.
13828 * gdbcore.h (struct core_fns): Remove.
13829 (deprecated_add_core_fns): Remove.
13830 (default_core_sniffer): Remove.
13831 (default_check_format): Remove.
13832
13833 2020-03-12 Tom Tromey <tom@tromey.com>
13834
13835 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13836 CORE_ADDR.
13837 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13838
13839 2020-03-12 Tom Tromey <tom@tromey.com>
13840
13841 * remote.c (remote_target::download_tracepoint)
13842 (remote_target::enable_tracepoint)
13843 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13844 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13845 sprintf_vma.
13846
13847 2020-03-12 Tom Tromey <tom@tromey.com>
13848
13849 * symfile-mem.c: Update CORE_ADDR size assert.
13850
13851 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13852
13853 * selftest.m4: Move to gdbsupport/.
13854 * acinclude.m4: Update path to selftest.m4.
13855
13856 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13857
13858 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13859 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13860 gdbarch-selfselftests.c and selftest-arch.c.
13861 (SUBDIR_UNITTESTS_OBS): Rename to...
13862 (SELFTESTS_OBS): ... this.
13863 (COMMON_SFILES): Remove disasm-selftests.c and
13864 gdbarch-selftests.c.
13865 * configure.ac: Don't add selftest-arch.{c,o} to
13866 CONFIG_{SRCS,OBS}.
13867 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13868 preprocessor conditions.
13869
13870 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13871
13872 * configure.ac: Don't source bfd/development.sh.
13873 * selftest.m4: Modify comment.
13874 * configure: Re-generate.
13875
13876 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
13877
13878 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13879 not "true" or "false".
13880 * configure: Re-generate.
13881
13882 2020-03-12 Christian Biesinger <cbiesinger@google.com>
13883
13884 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13885 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13886 renamed to arm_nbsd_supply_gregset.
13887 (fetch_register): Update to call arm_nbsd_supply_gregset.
13888 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13889 (arm_netbsd_nat_target::fetch_registers): Update.
13890 (fetch_elfcore_registers): Removed.
13891 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13892 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13893 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13894 not require NetBSD system headers.
13895 (arm_nbsd_regset): New struct.
13896 (arm_nbsd_iterate_over_regset_sections): New function.
13897 (arm_netbsd_init_abi_common): Updated to call
13898 set_gdbarch_iterate_over_regset_sections.
13899 * arm-nbsd-tdep.h: New file.
13900
13901 2020-03-11 Kevin Buettner <kevinb@redhat.com>
13902
13903 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13904 recursion.
13905
13906 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
13907
13908 * configure: Re-generate.
13909
13910 2020-03-11 Tom Tromey <tromey@adacore.com>
13911
13912 * ada-typeprint.c (print_choices): Fix comment.
13913
13914 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13915
13916 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13917 previous item in the list, when the list has no items.
13918
13919 2020-03-11 Tom de Vries <tdevries@suse.de>
13920
13921 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13922 PROP_LOCLIST handling code.
13923
13924 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13925
13926 * buildsym-legacy.c (record_line): Pass extra parameter to
13927 record_line.
13928 * buildsym.c (buildsym_compunit::record_line): Take an extra
13929 parameter, reduce duplication in the line table, and record the
13930 is_stmt flag in the line table.
13931 * buildsym.h (buildsym_compunit::record_line): Add extra
13932 parameter.
13933 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13934 non-statement lines.
13935 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13936 this to the symtab builder.
13937 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13938 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13939 through to dwarf_record_line_1.
13940 * infrun.c (process_event_stop_test): When stepping, don't stop at
13941 a non-statement instruction, and only refresh the step info when
13942 we land in the middle of a line's range. Also add an extra
13943 comment.
13944 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13945 field.
13946 * record-btrace.c (btrace_find_line_range): Only record lines
13947 marked as is-statement.
13948 * stack.c (frame_show_address): Show the frame address if we are
13949 in a non-statement sal.
13950 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13951 (maintenance_print_one_line_table): Print a header for the is_stmt
13952 column, and include is_stmt information in the output.
13953 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13954 preference to non-statements.
13955 (find_pcs_for_symtab_line): Prefer is-statement entries.
13956 (find_line_common): Likewise.
13957 * symtab.h (struct linetable_entry): Add is_stmt field.
13958 (struct symtab_and_line): Likewise.
13959 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13960 arranging the line table.
13961
13962 2020-03-07 Tom de Vries <tdevries@suse.de>
13963
13964 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13965 DIE.
13966
13967 2020-03-07 Tom Tromey <tom@tromey.com>
13968
13969 * valops.c (value_literal_complex): Remove obsolete comment.
13970 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13971 comment.
13972
13973 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13974
13975 * infrun.h: Forward-declare thread_info.
13976 (set_step_info): Add thread_info parameter, add doc.
13977 * infrun.c (set_step_info): Add thread_info parameter, move doc
13978 to header.
13979 * infrun.c (process_event_stop_test): Pass thread to
13980 set_step_info call.
13981 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13982 set_step_info.
13983 (prepare_one_step): Add thread_info parameter, pass it to
13984 set_step_frame and prepare_one_step (recursive) call.
13985 (step_1): Pass thread to prepare_one_step call.
13986 (step_command_fsm::should_stop): Pass thread to
13987 prepare_one_step.
13988 (until_next_fsm): Pass thread to set_step_frame call.
13989 (finish_command): Pass thread to set_step_info call.
13990
13991 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
13992
13993 * windows-tdep.c (windows_solib_create_inferior_hook):
13994 Check if inferior is running.
13995
13996 2020-03-06 Tom de Vries <tdevries@suse.de>
13997
13998 * NEWS: Fix "the the".
13999 * ctfread.c: Same.
14000
14001 2020-03-06 Tom de Vries <tdevries@suse.de>
14002
14003 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14004
14005 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14006
14007 * .dir-locals.el: Add a comment referencing the other copies of
14008 this file.
14009
14010 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14011
14012 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14013 psargs.
14014
14015 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14016
14017 * .gitattributes: New file.
14018
14019 2020-03-04 Tom Tromey <tom@tromey.com>
14020
14021 * symmisc.c (print_symbol_bcache_statistics)
14022 (print_objfile_statistics): Update.
14023 * symfile.c (allocate_symtab): Use intern.
14024 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14025 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14026 macro_cache>: Remove.
14027 <string_cache>: New member.
14028 (struct objfile) <intern>: New methods.
14029 * elfread.c (elf_symtab_read): Use intern.
14030 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14031 (dwarf2_compute_name, dwarf2_physname)
14032 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14033 names.
14034 (guess_partial_die_structure_name): Update.
14035 (partial_die_info::fixup): Intern name.
14036 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14037 name.
14038 (dwarf2_name): Intern name. Update.
14039 * buildsym.c (buildsym_compunit::get_macro_table): Use
14040 string_cache.
14041
14042 2020-03-04 Tom Tromey <tom@tromey.com>
14043
14044 * jit.c (bfd_open_from_target_memory): Make "target" const.
14045 * corefile.c (gnutarget): Now const.
14046 * gdbcore.h (gnutarget): Now const.
14047
14048 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14049
14050 * NEWS: Mention support for WOW64 processes.
14051 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14052 (amd64_windows_segment_register_p): Remove static.
14053 (_initialize_amd64_windows_nat): Update.
14054 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14055 * i386-windows-nat.c (context_offset): Update.
14056 (i386_mappings): Rename and remove static.
14057 (i386_windows_segment_register_p): Remove static.
14058 (_initialize_i386_windows_nat): Update.
14059 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14060 (STATUS_WX86_SINGLE_STEP): New macro.
14061 (EnumProcessModulesEx): New macro.
14062 (Wow64SuspendThread): New macro.
14063 (Wow64GetThreadContext): New macro.
14064 (Wow64SetThreadContext): New macro.
14065 (Wow64GetThreadSelectorEntry): New macro.
14066 (windows_set_context_register_offsets): Add static.
14067 (windows_set_segment_register_p): Likewise.
14068 (windows_add_thread): Adapt for WOW64 processes.
14069 (windows_fetch_one_register): Likewise.
14070 (windows_nat_target::fetch_registers): Likewise.
14071 (windows_store_one_register): Likewise.
14072 (display_selector): Likewise.
14073 (display_selectors): Likewise.
14074 (handle_exception): Likewise.
14075 (windows_continue): Likewise.
14076 (windows_nat_target::resume): Likewise.
14077 (windows_add_all_dlls): Likewise.
14078 (do_initial_windows_stuff): Likewise.
14079 (windows_nat_target::attach): Likewise.
14080 (windows_get_exec_module_filename): Likewise.
14081 (windows_nat_target::create_inferior): Likewise.
14082 (windows_xfer_siginfo): Likewise.
14083 (_initialize_loadable): Initialize Wow64SuspendThread,
14084 Wow64GetThreadContext, Wow64SetThreadContext,
14085 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14086 * windows-nat.h (windows_set_context_register_offsets):
14087 Remove declaration.
14088 (windows_set_segment_register_p): Likewise.
14089 (i386_windows_segment_register_p): Add declaration.
14090 (amd64_windows_segment_register_p): Likewise.
14091
14092 2020-03-04 Luis Machado <luis.machado@linaro.org>
14093
14094 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14095 in "info registers" for AArch64/ARM.
14096
14097 The change caused "info registers" to not print GPR's.
14098
14099 gdb/ChangeLog:
14100
14101 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14102
14103 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14104 when reg->group is empty and reggroup is not.
14105
14106 2020-03-03 Tom Tromey <tromey@adacore.com>
14107
14108 * dwarf2/frame.c (struct dwarf2_frame_cache)
14109 <checked_tailcall_bottom, entry_cfa_sp_offset,
14110 entry_cfa_sp_offset_p>: Remove members.
14111 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14112 (dwarf2_frame_prev_register): Don't call
14113 dwarf2_tailcall_sniffer_first.
14114 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14115 * frame-unwind.c (add_unwinder): New fuction.
14116 (frame_unwind_init): Use it. Add tailcall unwinder.
14117
14118 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14119 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14120
14121 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14122 value should be printed as true.
14123
14124 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14125
14126 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14127 (windows_init_abi): Set and use windows_so_ops.
14128
14129 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14130
14131 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14132 when verifying if dealing with a convenience variable.
14133
14134 2020-03-03 Luis Machado <luis.machado@linaro.org>
14135
14136 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14137
14138 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14139
14140 * infrun.c (gdbarch_supports_displaced_stepping): New.
14141 (use_displaced_stepping): Break up conditions in smaller pieces.
14142 Use gdbarch_supports_displaced_stepping.
14143 (displaced_step_prepare_throw): Use
14144 gdbarch_supports_displaced_stepping.
14145
14146 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14147
14148 * NEWS: Mention new behaviour of the history filename.
14149 * top.c (write_history_p): Add comment.
14150 (show_write_history_p): Add header comment, give a different
14151 message when history writing is on, but the history filename is
14152 empty.
14153 (history_filename): Add comment.
14154 (history_filename_empty): New function.
14155 (show_history_filename): Add header comment, give a different
14156 message when the filename is empty.
14157 (init_history): Compare history_filename against nullptr, and only
14158 read history if the filename is not empty.
14159 (set_history_filename): Add header comment, and only make
14160 non-empty filenames absolute.
14161 (init_main): Make the filename argument to 'set history filename'
14162 optional.
14163
14164 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14165
14166 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14167 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14168 (fetch_fp_register): Update.
14169 (fetch_fp_regs): Update.
14170 (store_fp_register): Update.
14171 (store_fp_regs): Update.
14172 (arm_netbsd_nat_target::read_description): New function.
14173 (fetch_elfcore_registers): Update.
14174
14175 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14176
14177 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14178 general_thread if the stop reply is missing a thread-id.
14179 (remote_target::process_stop_reply): Use the first non-exited
14180 thread if the target didn't pass a thread-id.
14181 * infrun.c (do_target_wait): Move call to
14182 switch_to_inferior_no_thread to ....
14183 (do_target_wait_1): ... here.
14184
14185 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14186
14187 * debuginfod-support.c: Include defs.h first.
14188
14189 2020-02-28 Tom de Vries <tdevries@suse.de>
14190
14191 * symfile.c (set_initial_language): Use default language for lookup.
14192
14193 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14194
14195 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14196 reader variable, pass `this` to read_cutu_die_from_dwo.
14197
14198 2020-02-27 Aaron Merey <amerey@redhat.com>
14199
14200 * source.c (open_source_file): Check for nullptr when computing
14201 srcpath.
14202
14203 2020-02-27 Tom Tromey <tromey@adacore.com>
14204
14205 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14206 member.
14207 (dwarf2_add_field): Don't update nfields.
14208 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14209
14210 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14211
14212 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14213 abs.
14214
14215 2020-02-26 Tom Tromey <tom@tromey.com>
14216
14217 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14218 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14219 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14220 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14221 per_cu_data.
14222
14223 2020-02-26 Tom Tromey <tom@tromey.com>
14224
14225 * dwarf2/index-write.c (psym_index_map): Change type.
14226 (add_address_entry_worker, write_one_signatured_type)
14227 (recursively_count_psymbols, recursively_write_psymbols)
14228 (class debug_names, psyms_seen_size, write_gdbindex)
14229 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14230
14231 2020-02-26 Aaron Merey <amerey@redhat.com>
14232
14233 * Makefile.in: Handle optional debuginfod support.
14234 * NEWS: Update.
14235 * README: Add --with-debuginfod summary.
14236 * config.in: Regenerate.
14237 * configure: Regenerate.
14238 * configure.ac: Handle optional debuginfod support.
14239 * debuginfod-support.c: debuginfod helper functions.
14240 * debuginfod-support.h: Ditto.
14241 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14242 summary.
14243 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14244 when a dwz file cannot be found.
14245 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14246 debuginfo file cannot be found.
14247 * source.c (open_source_file): Query debuginfod servers when a
14248 source file cannot be found.
14249 * top.c (print_gdb_configuration): Include
14250 --{with,without}-debuginfod in the output.
14251
14252 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14253
14254 * thread.c (thr_try_catch_cmd): Print thread name.
14255
14256 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14257
14258 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14259 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14260 dwarf2_fetch_die_type_sect_off): Move to...
14261 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14262 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14263 dwarf2_fetch_die_type_sect_off): ... here.
14264 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14265 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14266 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14267
14268 2020-02-26 Tom de Vries <tdevries@suse.de>
14269
14270 PR gdb/25603
14271 * symfile.c (set_initial_language): Exit-early if
14272 language_mode == language_mode_manual.
14273
14274 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14275
14276 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14277 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14278 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14279
14280 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14281
14282 * gdbtypes.c (create_array_type_with_stride): Handle negative
14283 array strides.
14284 * valarith.c (value_subscripted_rvalue): Likewise.
14285
14286 2020-02-25 Luis Machado <luis.machado@linaro.org>
14287
14288 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14289
14290 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14291
14292 * loc.h (dwarf2_get_die_type): Move to...
14293 * read.h (dwarf2_get_die_type): ... here.
14294 * read.c (dwarf2_get_die_type): Move doc to header.
14295
14296 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14297
14298 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14299 'gnulib/Makefile.in' to the list.
14300
14301 2020-02-24 Tom Tromey <tom@tromey.com>
14302
14303 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14304 Remove.
14305 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14306 XOBNEWVEC.
14307
14308 2020-02-24 Tom Tromey <tom@tromey.com>
14309
14310 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14311 New method.
14312 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14313 (dw2_do_instantiate_symtab, dw2_get_file_names)
14314 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14315
14316 2020-02-24 Tom Tromey <tom@tromey.com>
14317
14318 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14319 make_scoped_restore.
14320 (dwarf2_psymtab::read_symtab): Don't clear
14321 reading_partial_symbols.
14322
14323 2020-02-24 Tom de Vries <tdevries@suse.de>
14324
14325 PR gdb/25592
14326 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14327
14328 2020-02-24 Tom de Vries <tdevries@suse.de>
14329
14330 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14331 commands layout next/prev/regs.
14332
14333 2020-02-22 Tom Tromey <tom@tromey.com>
14334
14335 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14336 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14337
14338 2020-02-22 Tom Tromey <tom@tromey.com>
14339
14340 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14341
14342 2020-02-22 Tom Tromey <tom@tromey.com>
14343
14344 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14345 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14346 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14347 * tui/tui.c (_initialize_tui): Add usage text.
14348
14349 2020-02-22 Tom Tromey <tom@tromey.com>
14350
14351 * tui/tui-win.c (tui_set_focus_command)
14352 (tui_set_win_height_command): Use error_no_arg.
14353 (_initialize_tui_win): Update help text.
14354 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14355
14356 2020-02-22 Tom Tromey <tom@tromey.com>
14357
14358 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14359 * tui/tui-disasm.h (struct tui_disasm_window)
14360 <display_start_addr>: Declare.
14361 * tui/tui-source.h (struct tui_source_window)
14362 <display_start_addr>: Declare.
14363 * tui/tui-winsource.h (struct tui_source_window_base)
14364 <show_source_line, display_start_addr>: New methods.
14365 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14366 Rename and move to protected section.
14367 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14368 (tui_source_window_base::do_erase_source_content): Update.
14369 (tui_source_window_base::show_source_line): Now a method.
14370 (tui_source_window_base::show_source_content)
14371 (tui_source_window_base::tui_source_window_base)
14372 (tui_source_window_base::rerender)
14373 (tui_source_window_base::refill)
14374 (tui_source_window_base::do_scroll_horizontal)
14375 (tui_source_window_base::set_is_exec_point_at)
14376 (tui_source_window_base::update_breakpoint_info)
14377 (tui_source_window_base::update_exec_info): Update.
14378 * tui/tui-source.c (tui_source_window::set_contents)
14379 (tui_source_window::showing_source_p)
14380 (tui_source_window::do_scroll_vertical)
14381 (tui_source_window::location_matches_p)
14382 (tui_source_window::line_is_displayed): Update.
14383 (tui_source_window::display_start_addr): New method.
14384 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14385 (tui_disasm_window::do_scroll_vertical)
14386 (tui_disasm_window::location_matches_p): Update.
14387 (tui_disasm_window::display_start_addr): New method.
14388
14389 2020-02-22 Tom Tromey <tom@tromey.com>
14390
14391 * NEWS: Add entry for gdb.register_window_type.
14392 * tui/tui-layout.h (window_factory): New typedef.
14393 (tui_register_window): Declare.
14394 * tui/tui-layout.c (saved_tui_windows): New global.
14395 (tui_apply_current_layout): Use it.
14396 (tui_register_window): New function.
14397 * python/python.c (do_start_initialization): Call
14398 gdbpy_initialize_tui.
14399 (python_GdbMethods): Add "register_window_type" function.
14400 * python/python-internal.h (gdbpy_register_tui_window)
14401 (gdbpy_initialize_tui): Declare.
14402 * python/py-tui.c: New file.
14403 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14404
14405 2020-02-22 Tom Tromey <tom@tromey.com>
14406
14407 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14408
14409 2020-02-22 Tom Tromey <tom@tromey.com>
14410
14411 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14412 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14413 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14414 (tui_set_win_focus_to): Move from tui-win.c.
14415
14416 2020-02-22 Tom Tromey <tom@tromey.com>
14417
14418 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14419 functions.
14420 (known_window_types): New global.
14421 (tui_get_window_by_name): Reimplement.
14422 (initialize_known_windows): New function.
14423 (validate_window_name): Rewrite.
14424 (_initialize_tui_layout): Call initialize_known_windows.
14425
14426 2020-02-22 Tom Tromey <tom@tromey.com>
14427
14428 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14429 Remove constants.
14430 * tui/tui-winsource.h (struct tui_source_window_base)
14431 <tui_source_window_base>: Remove parameter.
14432 * tui/tui-winsource.c
14433 (tui_source_window_base::tui_source_window_base): Remove
14434 parameter.
14435 (tui_source_window_base::refill): Update.
14436 * tui/tui-stack.h (struct tui_locator_window)
14437 <tui_locator_window>: Update.
14438 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14439 Default the constructor.
14440 * tui/tui-regs.h (struct tui_data_item_window)
14441 <tui_data_item_window>: Default the constructor.
14442 (struct tui_data_window) <tui_data_window>: Likewise.
14443 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14444 Default the constructor.
14445 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14446 Default the constructor.
14447 <type>: Remove.
14448 (struct tui_win_info) <tui_win_info>: Default the constructor.
14449 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14450 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14451 Default the constructor.
14452
14453 2020-02-22 Tom Tromey <tom@tromey.com>
14454
14455 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14456 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14457 * tui/tui-win.c (tui_resize_all): Don't call
14458 tui_delete_invisible_windows.
14459 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14460 done.
14461 (tui_set_layout): Update.
14462 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14463 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14464 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14465
14466 2020-02-22 Tom Tromey <tom@tromey.com>
14467
14468 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14469 correctly.
14470
14471 2020-02-22 Tom Tromey <tom@tromey.com>
14472
14473 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14474
14475 2020-02-22 Tom Tromey <tom@tromey.com>
14476
14477 * tui/tui-winsource.h (struct tui_source_window_iterator)
14478 <inner_iterator>: New etytypedef.
14479 <tui_source_window_iterator>: Take "end" parameter.
14480 <tui_source_window_iterator>: Take iterator.
14481 <operator*, advance>: Update.
14482 <m_iter>: Change type.
14483 <m_end>: New field.
14484 (struct tui_source_windows) <begin, end>: Update.
14485 * tui/tui-layout.c (tui_windows): New global.
14486 (tui_apply_current_layout): Clear tui_windows.
14487 (tui_layout_window::apply): Update tui_windows.
14488 * tui/tui-data.h (tui_windows): Declare.
14489 (all_tui_windows): Now inline function.
14490 (class tui_window_iterator, struct all_tui_windows): Remove.
14491
14492 2020-02-22 Tom Tromey <tom@tromey.com>
14493
14494 PR tui/17850:
14495 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14496 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14497 "height" argument.
14498 (class tui_layout_window) <get_sizes>: Likewise.
14499 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14500 argument.
14501 <get_sizes>: Add "height" argument.
14502 <m_vertical>: New field.
14503 * tui/tui-layout.c (tui_layout_split::clone): Update.
14504 (tui_layout_split::get_sizes): Add "height" argument.
14505 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14506 (tui_new_layout_command): Parse "-horizontal".
14507 (_initialize_tui_layout): Update help string.
14508 (tui_layout_split::specification): Add "-horizontal" when needed.
14509 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14510 argument.
14511 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14512 New methods.
14513
14514 2020-02-22 Tom Tromey <tom@tromey.com>
14515
14516 * tui/tui-layout.h (enum tui_adjust_result): New.
14517 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14518 (class tui_layout_window) <adjust_size>: Return
14519 tui_adjust_result. Rewrite.
14520 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14521 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14522
14523 2020-02-22 Tom Tromey <tom@tromey.com>
14524
14525 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14526 parameter and return types.
14527 (class tui_layout_base) <specification>: Add "depth".
14528 (class tui_layout_window) <specification>: Add "depth".
14529 (class tui_layout_split) <specification>: Add "depth".
14530 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14531 and return types.
14532 (tui_new_layout_command): Parse sub-layouts.
14533 (_initialize_tui_layout): Update help string.
14534 (tui_layout_window::specification): Add "depth".
14535 (add_layout_command): Update.
14536
14537 2020-02-22 Tom Tromey <tom@tromey.com>
14538
14539 * NEWS: Add "tui new-layout" item.
14540 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14541 Add new-layout command to help text.
14542 (validate_window_name): New function.
14543 (tui_new_layout_command): New function.
14544 (_initialize_tui_layout): Register "new-layout".
14545 (tui_layout_window::specification): New method.
14546 (tui_layout_window::specification): New method.
14547 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14548 method.
14549 (class tui_layout_window) <specification>: New method.
14550 (class tui_layout_split) <specification>: New method.
14551
14552 2020-02-22 Tom Tromey <tom@tromey.com>
14553
14554 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14555 * tui/tui-win.c (window_name_completer): Update comment.
14556 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14557 Declare method.
14558 (class tui_layout_window) <replace_window>: Likewise.
14559 (class tui_layout_split) <replace_window>: Likewise.
14560 (tui_set_layout): Don't declare.
14561 (tui_set_initial_layout): Declare function.
14562 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14563 (asm_regs_layout): New globals.
14564 (tui_current_layout, show_layout): Remove.
14565 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14566 (find_layout, tui_apply_layout): New function.
14567 (layout_completer): Remove.
14568 (tui_next_layout): Reimplement.
14569 (tui_next_layout_command): New function.
14570 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14571 (tui_regs_layout): Reimplement.
14572 (tui_regs_layout_command): New function.
14573 (extract_display_start_addr): Rewrite.
14574 (next_layout, prev_layout): Remove.
14575 (tui_layout_window::replace_window): New method.
14576 (tui_layout_split::replace_window): New method.
14577 (destroy_layout): New function.
14578 (layout_list): New global.
14579 (add_layout_command): New function.
14580 (initialize_layouts): Update.
14581 (tui_layout_command): New function.
14582 (_initialize_tui_layout): Install "layout" commands.
14583 * tui/tui-data.h (enum tui_layout_type): Remove.
14584 (tui_current_layout): Don't declare.
14585
14586 2020-02-22 Tom Tromey <tom@tromey.com>
14587
14588 * tui/tui-regs.c (tui_reg_layout): Remove.
14589 (tui_reg_command): Use tui_regs_layout.
14590 * tui/tui-layout.h (tui_reg_command): Declare.
14591 * tui/tui-layout.c (tui_reg_command): New function.
14592
14593 2020-02-22 Tom Tromey <tom@tromey.com>
14594
14595 * tui/tui.c (tui_rl_delete_other_windows): Call
14596 tui_remove_some_windows.
14597 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14598 Declare method.
14599 (class tui_layout_window) <remove_windows>: New method.
14600 (class tui_layout_split) <remove_windows>: Declare.
14601 (tui_remove_some_windows): Declare.
14602 * tui/tui-layout.c (tui_remove_some_windows): New function.
14603 (tui_layout_split::remove_windows): New method.
14604
14605 2020-02-22 Tom Tromey <tom@tromey.com>
14606
14607 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14608 * tui/tui-layout.h (tui_next_layout): Declare.
14609 * tui/tui-layout.c (tui_next_layout): New function.
14610
14611 2020-02-22 Tom Tromey <tom@tromey.com>
14612
14613 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14614 correct coordinates.
14615
14616 2020-02-22 Tom Tromey <tom@tromey.com>
14617
14618 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14619 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14620 DATA_WIN case.
14621
14622 2020-02-22 Tom Tromey <tom@tromey.com>
14623
14624 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14625 TUI_DISASM_WIN, not tui_win_list.
14626
14627 2020-02-22 Tom Tromey <tom@tromey.com>
14628
14629 * valprint.c (generic_val_print_enum_1)
14630 (val_print_type_code_flags): Style member names.
14631 * rust-lang.c (val_print_struct, rust_print_enum)
14632 (rust_print_struct_def, rust_internal_print_type): Style member
14633 names.
14634 * p-valprint.c (pascal_object_print_value_fields): Style member
14635 names. Only call fprintf_symbol_filtered for static members.
14636 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14637 * f-valprint.c (f_val_print): Style member names.
14638 * f-typeprint.c (f_type_print_base): Style member names.
14639 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14640 call fprintf_symbol_filtered for static members.
14641 (cp_print_class_member): Style member names.
14642 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14643 member names.
14644 * ada-valprint.c (ada_print_scalar): Style enum names.
14645 (ada_val_print_enum): Likewise.
14646 * ada-typeprint.c (print_enum_type): Style enum names.
14647
14648 2020-02-21 Tom Tromey <tom@tromey.com>
14649
14650 * psympriv.h (struct partial_symtab): Update comment.
14651
14652 2020-02-21 Tom Tromey <tromey@adacore.com>
14653
14654 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14655 type is CORE_ADDR.
14656
14657 2020-02-21 Tom de Vries <tdevries@suse.de>
14658
14659 PR gdb/25534
14660 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14661 if dependencies[i]->user != NULL.
14662
14663 2020-02-21 Ali Tamur <tamur@google.com>
14664
14665 * dwarf2/read.c (dwarf2_name): Add null check.
14666
14667 2020-02-20 Tom Tromey <tom@tromey.com>
14668
14669 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14670 ">=", in binary search.
14671 (dwarf2_find_containing_comp_unit): New overload.
14672 (run_test): New self-test.
14673 (_initialize_dwarf2_read): Register new test.
14674
14675 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
14676
14677 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14678 * riscv-tdep.h: Likewise.
14679 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14680 rv32-only CSR.
14681 * features/riscv/64bit-csr.xml: Regenerated.
14682
14683 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14684 Tom Tromey <tom@tromey.com>
14685
14686 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14687 of 'fputc_unfiltered'.
14688 (putchar_unfiltered): Call 'fputc_unfiltered'.
14689 (fputc_unfiltered): Call 'fputs_unfiltered'.
14690
14691 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14692
14693 * config.in: Regenerate.
14694 * configure: Regenerate.
14695 * configure.ac: Add --with-python-libdir option.
14696 * main.c: Use WITH_PYTHON_LIBDIR.
14697
14698 2020-02-19 Tom Tromey <tom@tromey.com>
14699
14700 * symtab.c (general_symbol_info::compute_and_set_names): Use
14701 obstack_strndup. Simplify call to symbol_set_demangled_name.
14702
14703 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
14704
14705 * dwarf2/read.c (allocate_signatured_type_table,
14706 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14707 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14708 Remove objfile parameter, update all callers.
14709
14710 2020-02-19 Doug Evans <dje@google.com>
14711
14712 PR rust/25535
14713 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14714 rust_enum_variant calculation.
14715
14716 2020-02-19 Tom Tromey <tromey@adacore.com>
14717
14718 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14719
14720 2020-02-19 Tom Tromey <tromey@adacore.com>
14721
14722 * ada-lang.c (cache_symbol): Use obstack_strdup.
14723
14724 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14725
14726 * configure: Regenerate.
14727
14728 2020-02-19 Tom Tromey <tromey@adacore.com>
14729
14730 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14731 NULL check.
14732
14733 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
14734
14735 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14736
14737 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14738
14739 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14740 if GDBSERVER is not defined.
14741 (riscv_tdesc_cache): Likewise, also store const target_desc.
14742 (STATIC_IN_GDB): Define.
14743 (riscv_create_target_description): Update declaration with
14744 STATIC_IN_GDB.
14745 (riscv_lookup_target_description): New function, only define if
14746 GDBSERVER is not defined.
14747 * arch/riscv.h (riscv_create_target_description): Declare only
14748 when GDBSERVER is defined.
14749 (riscv_lookup_target_description): New declaration when GDBSERVER
14750 is not defined.
14751 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14752 (riscv_linux_read_features): ...this, and return
14753 riscv_gdbarch_features instead of target_desc.
14754 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14755 (riscv_linux_read_description): Rename to...
14756 (riscv_linux_read_features): ...this.
14757 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14758 Update to use riscv_gdbarch_features and
14759 riscv_lookup_target_description.
14760 * riscv-tdep.c (riscv_find_default_target_description): Use
14761 riscv_lookup_target_description instead of
14762 riscv_create_target_description.
14763
14764 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14765
14766 * valprint.c (generic_val_print_enum_1): When printing a flag
14767 enum with value 0 and there is no enumerator with value 0, print
14768 just "0" instead of "(unknown: 0x0)".
14769
14770 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14771
14772 * valprint.c (generic_val_print_enum_1): Print unknown part of
14773 flag enum in hex.
14774
14775 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14776
14777 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14778 flag enums to contain duplicate enumerators.
14779 * valprint.c (generic_val_print_enum_1): Update comment.
14780
14781 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14782
14783 * dwarf2/read.c: Include "count-one-bits.h".
14784 (update_enumeration_type_from_children): If an enumerator has
14785 multiple bits set, don't treat the enumeration as a "flag enum".
14786 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14787 of flag enums have 0 or 1 bit set.
14788
14789 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14790
14791 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14792 conversion.
14793 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14794 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14795 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14796 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14797 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14798
14799 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
14800
14801 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14802
14803 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14804
14805 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14806 displaced_step_closure_up.
14807 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14808 (struct displaced_step_closure_up):
14809 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14810 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14811 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14812 Likewise.
14813 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14814 * gdbarch.c, gdbarch.h: Re-generate.
14815 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14816 displaced_step_closure_up.
14817 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14818 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14819 * infrun.h (displaced_step_closure_up): New type alias.
14820 (struct displaced_step_inferior_state) <step_closure>: Change
14821 type to displaced_step_closure_up.
14822 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14823 displaced_step_closure_up.
14824 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14825
14826 2020-02-14 Tom Tromey <tom@tromey.com>
14827
14828 * minidebug.c (gnu_debug_key): New global.
14829 (find_separate_debug_file_in_section): Use it.
14830
14831 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14832
14833 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14834 std::unique_ptr.
14835 * gdbarch.c: Re-generate.
14836 * gdbarch.h: Re-generate.
14837 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14838 change.
14839 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14840 type to std::unique_ptr.
14841 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14842 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14843 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14844 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14845 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14846 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14847 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14848 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14849 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14850
14851 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14852
14853 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14854 std::unique_ptr.
14855 (displaced_step_clear): Rename to...
14856 (displaced_step_reset): ... this. Just call displaced->reset ().
14857 (displaced_step_clear_cleanup): Rename to...
14858 (displaced_step_reset_cleanup): ... this.
14859 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14860 (displaced_step_fixup): Likewise.
14861 (resume_1): Likewise.
14862 (handle_inferior_event): Restore child's memory before calling
14863 displaced_step_fixup on the parent.
14864 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14865 to std::unique_ptr.
14866 <step_closure>: Change type to std::unique_ptr.
14867
14868 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
14869
14870 * arm-tdep.c: Include count-one-bits.h.
14871 (cleanup_block_store_pc): Use count_one_bits.
14872 (cleanup_block_load_pc): Use count_one_bits.
14873 (arm_copy_block_xfer): Use count_one_bits.
14874 (thumb2_copy_block_xfer): Use count_one_bits.
14875 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14876 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14877 (thumb_get_next_pcs_raw): Use count_one_bits.
14878 (arm_get_next_pcs_raw): Use count_one_bits_l.
14879 * arch/arm.c (bitcount): Remove.
14880 * arch/arm.h (bitcount): Remove.
14881
14882 2020-02-14 Tom Tromey <tromey@adacore.com>
14883
14884 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14885 Update.
14886 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14887 * dwarf2/loc.c (call_site_find_chain_1): Return
14888 unique_xmalloc_ptr.
14889 (call_site_find_chain): Likewise.
14890
14891 2020-02-14 Richard Biener <rguenther@suse.de>
14892
14893 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14894 on expression with division operators.
14895
14896 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14897
14898 * MAINTAINERS (Write After Approval): Adding myself.
14899
14900 2020-02-12 Tom Tromey <tom@tromey.com>
14901
14902 * event-loop.c (event_data, gdb_event, event_handler_func):
14903 Remove.
14904
14905 2020-02-12 Tom Tromey <tom@tromey.com>
14906
14907 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14908 (dwarf2_frame_objfile_data): Add comment.
14909 (find_comp_unit, set_comp_unit): New functions.
14910 (dwarf2_frame_find_fde): Use find_comp_unit.
14911 (dwarf2_build_frame_info): Use set_comp_unit.
14912
14913 2020-02-12 Tom Tromey <tom@tromey.com>
14914
14915 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14916 (comp_unit): Don't initialize objfile.
14917 (execute_cfa_program): Add text_offset parameter.
14918 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14919 (dwarf2_frame_cache): Update.
14920 (dwarf2_build_frame_info): Don't set "objfile" member.
14921
14922 2020-02-12 Tom Tromey <tom@tromey.com>
14923
14924 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14925 (decode_frame_entry): Likewise.
14926 (dwarf2_build_frame_info): Update.
14927
14928 2020-02-12 Tom Tromey <tom@tromey.com>
14929
14930 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14931 (decode_frame_entry_1): Use the comp_unit obstack.
14932
14933 2020-02-12 Tom Tromey <tom@tromey.com>
14934
14935 * dwarf2/frame.c (struct comp_unit): Add initializers and
14936 constructor.
14937 (dwarf2_frame_objfile_data): Store a comp_unit.
14938 (dwarf2_frame_find_fde): Update.
14939 (dwarf2_build_frame_info): Use "new".
14940
14941 2020-02-12 Tom Tromey <tom@tromey.com>
14942
14943 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14944 (dwarf2_fde_table): Typedef for std::vector.
14945 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14946 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14947 (decode_frame_entry): Update.
14948 (dwarf2_build_frame_info): Use "new".
14949
14950 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14951
14952 * arm-tdep.c (arm_gdbarch_init): Update.
14953 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14954 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14955 have_neon, is_m>: Change to bool.
14956
14957 2020-02-12 Christian Biesinger <cbiesinger@google.com>
14958
14959 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14960
14961 2020-02-12 Tom Tromey <tom@tromey.com>
14962
14963 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14964
14965 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
14966
14967 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14968 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14969
14970 2020-02-11 Tom Tromey <tom@tromey.com>
14971
14972 * psymtab.h: Update comment.
14973
14974 2020-02-11 Tom Tromey <tom@tromey.com>
14975
14976 * gdb_obstack.h (struct auto_obstack): Use
14977 DISABLE_COPY_AND_ASSIGN.
14978
14979 2020-02-11 Tom Tromey <tom@tromey.com>
14980
14981 * dwarf2/frame.h (struct objfile): Don't forward declare.
14982
14983 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14984
14985 * cris-tdep.c (cris_supply_gregset): Change signature to match
14986 what struct regset expects.
14987 (cris_regset): New struct.
14988 (fetch_core_registers): Remove.
14989 (cris_iterate_over_regset_sections): New function.
14990 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14991 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14992
14993 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14994
14995 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14996 registers.
14997
14998 2020-02-11 Christian Biesinger <cbiesinger@google.com>
14999
15000 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15001
15002 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15003
15004 * configure: Re-generate.
15005
15006 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15007
15008 * configure: Re-generate.
15009
15010 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15011
15012 * acinclude: Update warning.m4 path.
15013 * warning.m4: Move to gdbsupport.
15014
15015 2020-02-11 Tom Tromey <tromey@adacore.com>
15016
15017 * remote.c (remote_console_output): Update.
15018 * printcmd.c (printf_command): Update.
15019 * event-loop.c (gdb_wait_for_event): Update.
15020 * linux-nat.c (sigchld_handler): Update.
15021 * remote-sim.c (gdb_os_write_stdout): Update.
15022 (gdb_os_flush_stdout): Update.
15023 (gdb_os_flush_stderr): Update.
15024 (gdb_os_write_stderr): Update.
15025 * exceptions.c (print_exception): Update.
15026 * remote-fileio.c (remote_fileio_func_read): Update.
15027 (remote_fileio_func_write): Update.
15028 * tui/tui.c (tui_enable): Update.
15029 * tui/tui-interp.c (tui_interp::init): Update.
15030 * utils.c (init_page_info): Update.
15031 (putchar_unfiltered, fputc_unfiltered): Update.
15032 (gdb_flush): Update.
15033 (emit_style_escape): Update.
15034 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15035 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15036 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15037 (stderr_file::write): Update.
15038 (stderr_file::puts): Update.
15039 * ui-file.h (ui_file_isatty, ui_file_write)
15040 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15041 (ui_file_puts): Don't declare.
15042
15043 2020-02-10 Tom de Vries <tdevries@suse.de>
15044
15045 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15046 sentinel to char *.
15047
15048 2020-02-09 Tom de Vries <tdevries@suse.de>
15049
15050 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15051 filename if it matches "<artificial>".
15052
15053 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15054
15055 * windows-tdep.c (struct enum_value_name): New struct.
15056 (create_enum): New function.
15057 (windows_get_siginfo_type): Create and use enum types.
15058
15059 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15060
15061 * NEWS: Mention $_siginfo support for Windows.
15062 * windows-nat.c (handle_exception): Set siginfo_er.
15063 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15064 (windows_xfer_siginfo): New function.
15065 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15066 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15067 (init_windows_gdbarch_data): New function.
15068 (get_windows_gdbarch_data): New function.
15069 (windows_get_siginfo_type): New function.
15070 (windows_init_abi): Register windows_get_siginfo_type.
15071 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15072
15073 2020-02-08 Tom Tromey <tom@tromey.com>
15074
15075 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15076 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15077 <keep>: Declare method.
15078 <m_keep>: Remove member.
15079 <~cutu_reader>: Remove.
15080 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15081 (cutu_reader::cutu_reader): Update.
15082 (cutu_reader::keep): Rename from ~cutu_reader.
15083 (process_psymtab_comp_unit, build_type_psymtabs_1)
15084 (process_skeletonless_type_unit, load_partial_comp_unit)
15085 (load_full_comp_unit, dwarf2_read_addr_index)
15086 (read_signatured_type): Update.
15087
15088 2020-02-08 Tom Tromey <tom@tromey.com>
15089
15090 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15091 "want_partial_unit" parameter.
15092 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15093 Inline check for DW_TAG_partial_unit.
15094 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15095
15096 2020-02-08 Tom Tromey <tom@tromey.com>
15097
15098 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15099 read.c.
15100 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15101 read.c.
15102
15103 2020-02-08 Tom Tromey <tom@tromey.com>
15104
15105 * dwarf2/read.c (read_address): Move to comp-unit.c.
15106 (dwarf2_rnglists_process, dwarf2_ranges_process)
15107 (read_attribute_value, dwarf_decode_lines_1)
15108 (var_decode_location, decode_locdesc): Update.
15109 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15110 read.c. Remove "cu" parameter.
15111 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15112 method.
15113
15114 2020-02-08 Tom Tromey <tom@tromey.com>
15115
15116 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15117 (read_indirect_line_string): Update.
15118 * dwarf2/comp-unit.c (read_offset): Remove.
15119 (read_comp_unit_head): Update.
15120 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15121 method.
15122 (read_offset): Don't declare.
15123
15124 2020-02-08 Tom Tromey <tom@tromey.com>
15125
15126 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15127 * dwarf2/read.c (struct comp_unit_head): Move to
15128 dwarf2/comp-unit.h.
15129 (enum class rcuh_kind): Move to comp-unit.h.
15130 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15131 (read_comp_unit_head, error_check_comp_unit_head)
15132 (read_and_check_comp_unit_head): Move to comp-unit.c.
15133 (read_offset, dwarf_unit_type_name): Likewise.
15134 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15135 (cutu_reader::cutu_reader, read_call_site_scope)
15136 (find_partial_die, follow_die_offset): Update.
15137 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15138
15139 2020-02-08 Tom Tromey <tom@tromey.com>
15140
15141 * dwarf2/read.c (read_offset_1): Move to leb.c.
15142 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15143 (dwarf_decode_macro_bytes): Update.
15144 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15145 * dwarf2/leb.h (read_offset): Declare.
15146
15147 2020-02-08 Tom Tromey <tom@tromey.com>
15148
15149 * dwarf2/read.c (dwarf2_section_size): Remove.
15150 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15151 Update.
15152 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15153
15154 2020-02-08 Tom Tromey <tom@tromey.com>
15155
15156 * dwarf2/read.c (read_initial_length): Move to leb.c.
15157 * dwarf2/leb.h (read_initial_length): Declare.
15158 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15159 handle_nonstd parameter.
15160 * dwarf2/frame.c (read_initial_length): Remove.
15161 (decode_frame_entry_1): Update.
15162
15163 2020-02-08 Tom Tromey <tom@tromey.com>
15164
15165 * dwarf2/loc.c (dwarf2_find_location_expression)
15166 (dwarf_evaluate_loc_desc::get_tls_address)
15167 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15168 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15169 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15170 (dwarf2_compile_property_to_c)
15171 (dwarf2_loc_desc_get_symbol_read_needs)
15172 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15173 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15174 (loclist_describe_location, loclist_tracepoint_var_ref)
15175 (loclist_generate_c_location): Update.
15176 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15177 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15178 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15179 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15180 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15181 (dwarf2_per_cu_data::addr_size)
15182 (dwarf2_per_cu_data::ref_addr_size)
15183 (dwarf2_per_cu_data::text_offset)
15184 (dwarf2_per_cu_data::addr_type): Now methods.
15185 (per_cu_header_read_in): Make per_cu "const".
15186 (dwarf2_version): Remove.
15187 (dwarf2_per_cu_data::int_type): Now a method.
15188 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15189 (set_die_type, read_array_type, read_subrange_index_type)
15190 (read_tag_string_type, read_subrange_type): Update.
15191 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15192 offset_size, ref_addr_size, text_offset, addr_type, version,
15193 objfile, int_type, addr_sized_int_type>: Declare methods.
15194
15195 2020-02-08 Tom Tromey <tom@tromey.com>
15196
15197 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15198 Move earlier.
15199
15200 2020-02-08 Tom Tromey <tom@tromey.com>
15201
15202 * dwarf2/read.h (dwarf_line_debug): Declare.
15203 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15204 * dwarf2/read.c: Move line_header code to new files.
15205 (dwarf_line_debug): No longer static.
15206 * dwarf2/line-header.c: New file.
15207 * dwarf2/line-header.h: New file.
15208
15209 2020-02-08 Tom Tromey <tom@tromey.com>
15210
15211 * dwarf2/read.c (struct line_header) <file_full_name,
15212 file_file_name>: Return unique_xmalloc_ptr.
15213 (line_header::file_file_name): Update.
15214 (line_header::file_full_name): Update.
15215 (dw2_get_file_names_reader): Update.
15216 (macro_start_file): Update.
15217
15218 2020-02-08 Tom Tromey <tom@tromey.com>
15219
15220 * dwarf2/read.c (struct line_header) <file_full_name,
15221 file_file_name>: Declare methods.
15222 (dw2_get_file_names_reader): Update.
15223 (file_file_name): Now a method.
15224 (file_full_name): Likewise.
15225 (macro_start_file): Update.
15226
15227 2020-02-08 Tom Tromey <tom@tromey.com>
15228
15229 * dwarf2/read.c (dwarf_always_disassemble)
15230 (show_dwarf_always_disassemble): Move to loc.c.
15231 (_initialize_dwarf2_read): Move "always-disassemble" registration
15232 to loc.c.
15233 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15234 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15235 static.
15236 (show_dwarf_always_disassemble): Move from read.c.
15237 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15238
15239 2020-02-08 Tom Tromey <tom@tromey.com>
15240
15241 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15242 (create_quick_file_names_table): Return htab_up.
15243 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15244 Update.
15245 * dwarf2/read.h (struct dwarf2_per_objfile)
15246 <quick_file_names_table>: Now htab_up.
15247
15248 2020-02-08 Tom Tromey <tom@tromey.com>
15249
15250 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15251
15252 2020-02-08 Tom Tromey <tom@tromey.com>
15253
15254 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15255 Rewrite.
15256 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15257 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15258 (abbrev_table::abbrev_table): No longer inline.
15259 (ABBREV_HASH_SIZE): Remove.
15260 (abbrev_table::m_abbrevs): Now an htab_up.
15261
15262 2020-02-08 Tom Tromey <tom@tromey.com>
15263
15264 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15265 (cutu_reader): Update.
15266 (build_type_psymtabs_1): Update.
15267 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15268 (abbrev_table::alloc_abbrev): Update.
15269 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15270 (abbrev_table::read): New static method, renamed from
15271 abbrev_table_read_table.
15272 (abbrev_table::alloc_abbrev)
15273 (abbrev_table::add_abbrev): Now private.
15274 (abbrev_table::abbrev_table): Now private.
15275 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15276
15277 2020-02-08 Tom Tromey <tom@tromey.com>
15278
15279 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15280 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15281 htab_up.
15282
15283 2020-02-08 Tom Tromey <tom@tromey.com>
15284
15285 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15286 htab_up.
15287 (lookup_dwo_unit_in_dwp): Update.
15288 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15289 on obstack.
15290
15291 2020-02-08 Tom Tromey <tom@tromey.com>
15292
15293 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15294 obstack.
15295
15296 2020-02-08 Tom Tromey <tom@tromey.com>
15297
15298 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15299 line_header_hash.
15300 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15301 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15302 Change type to htab_up.
15303
15304 2020-02-08 Tom Tromey <tom@tromey.com>
15305
15306 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15307 htab_up. Don't allocate on obstack.
15308 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15309 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15310 Change type to htab_up.
15311
15312 2020-02-08 Tom Tromey <tom@tromey.com>
15313
15314 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15315 Change type to htab_up.
15316 * dwarf2/read.c (create_signatured_type_table_from_index)
15317 (create_signatured_type_table_from_debug_names)
15318 (create_all_type_units, add_type_unit)
15319 (lookup_dwo_signatured_type, lookup_signatured_type)
15320 (process_skeletonless_type_unit): Update.
15321 (create_debug_type_hash_table, create_debug_types_hash_table):
15322 Change type of types_htab.
15323 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15324 htab_up. Don't allocate on obstack.
15325 (create_cus_hash_table): Change type of cus_htab parameter.
15326 (struct dwo_file) <cus, tus>: Now htab_up.
15327 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15328 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15329 (queue_and_load_all_dwo_tus): Update.
15330 * dwarf2/index-write.c (write_gdbindex): Update.
15331 (write_debug_names): Update.
15332
15333 2020-02-08 Tom Tromey <tom@tromey.com>
15334
15335 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15336 dwarf2/read.c. Remove "next" member. Add constructor ntad
15337 destructor.
15338 (struct dwarf2_per_objfile) <queue>: New member.
15339 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15340 dwarf2/read.h.
15341 (dwarf2_queue, dwarf2_queue_tail): Remove.
15342 (class dwarf2_queue_guard): Add parameter to constructor. Use
15343 DISABLE_COPY_AND_ASSIGN.
15344 <m_per_objfile>: New member.
15345 <~dwarf2_queue_guard>: Rewrite.
15346 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15347 Update.
15348 (~dwarf2_queue_item): New.
15349
15350 2020-02-08 Tom Tromey <tom@tromey.com>
15351
15352 * dwarf2/read.c (struct die_info) <has_children>: New member.
15353 (dw2_get_file_names_reader): Remove has_children.
15354 (dw2_get_file_names): Update.
15355 (read_cutu_die_from_dwo): Remove has_children.
15356 (cutu_reader::init_tu_and_read_dwo_dies)
15357 (cutu_reader::cutu_reader): Update.
15358 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15359 Remove has_children.
15360 (build_type_psymtabs_1, process_skeletonless_type_unit)
15361 (load_partial_comp_unit, load_full_comp_unit): Update.
15362 (create_dwo_cu_reader): Remove has_children.
15363 (create_cus_hash_table, read_die_and_children): Update.
15364 (read_full_die_1,read_full_die): Remove has_children.
15365 (read_signatured_type): Update.
15366 (class cutu_reader) <has_children>: Remove.
15367
15368 2020-02-08 Tom Tromey <tom@tromey.com>
15369
15370 * dwarf2/expr.c: Rename from dwarf2expr.c.
15371 * dwarf2/expr.h: Rename from dwarf2expr.h.
15372 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15373 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15374 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15375 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15376 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15377 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15378 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15379 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15380 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15381 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15382 * dwarf2/loc.c: Rename from dwarf2loc.c.
15383 * dwarf2/loc.h: Rename from dwarf2loc.h.
15384 * dwarf2/read.c: Rename from dwarf2read.c.
15385 * dwarf2/read.h: Rename from dwarf2read.h.
15386 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15387 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15388 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15389 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15390 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15391 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15392 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15393 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15394 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15395 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15396 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15397 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15398 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15399 Update.
15400 * Makefile.in (COMMON_SFILES): Update.
15401 (HFILES_NO_SRCDIR): Update.
15402
15403 2020-02-08 Tom Tromey <tom@tromey.com>
15404
15405 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15406 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15407
15408 2020-02-08 Tom Tromey <tom@tromey.com>
15409
15410 * dwarf2read.h (struct die_info): Don't declare.
15411
15412 2020-02-08 Tom Tromey <tom@tromey.com>
15413
15414 * dwarf2read.h (die_info_ptr): Remove typedef.
15415
15416 2020-02-08 Tom Tromey <tom@tromey.com>
15417
15418 * dwarf2read.c (read_call_site_scope)
15419 (handle_data_member_location, dwarf2_add_member_fn)
15420 (mark_common_block_symbol_computed, read_common_block)
15421 (attr_to_dynamic_prop, partial_die_info::read)
15422 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15423 (dwarf2_symbol_mark_computed, set_die_type): Update.
15424 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15425 method.
15426 (attr_form_is_block): Don't declare.
15427 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15428
15429 2020-02-08 Tom Tromey <tom@tromey.com>
15430
15431 * dwarf2read.c (dwarf2_find_base_address, )
15432 (read_call_site_scope, rust_containing_type)
15433 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15434 (handle_data_member_location, dwarf2_add_member_fn)
15435 (get_alignment, read_structure_type, process_structure_scope)
15436 (mark_common_block_symbol_computed, read_common_block)
15437 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15438 (partial_die_info::read, read_attribute_value, new_symbol)
15439 (lookup_die_type, dwarf2_get_ref_die_offset)
15440 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15441 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15442 (dwarf2_symbol_mark_computed): Update.
15443 * dwarf2/attribute.h (struct attribute) <value_as_address,
15444 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15445 methods.
15446 (value_as_address, attr_form_is_section_offset)
15447 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15448 * dwarf2/attribute.c (attribute::value_as_address)
15449 (attribute::form_is_section_offset, attribute::form_is_constant)
15450 (attribute::form_is_ref): Now methods.
15451
15452 2020-02-08 Tom Tromey <tom@tromey.com>
15453
15454 * dwarf2read.c (struct attribute, DW_STRING)
15455 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15456 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15457 (attr_form_is_block, attr_form_is_section_offset)
15458 (attr_form_is_constant, attr_form_is_ref): Move.
15459 * dwarf2/attribute.h: New file.
15460 * dwarf2/attribute.c: New file, from dwarf2read.c.
15461 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15462
15463 2020-02-08 Tom Tromey <tom@tromey.com>
15464
15465 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15466 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15467 Move.
15468 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15469 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15470 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15471 abbrev.c.
15472 * dwarf2/abbrev.h: New file.
15473 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15474 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15475
15476 2020-02-08 Tom Tromey <tom@tromey.com>
15477
15478 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15479 (dwarf2_section_size, dwarf2_get_section_info)
15480 (create_signatured_type_table_from_debug_names)
15481 (create_addrmap_from_aranges, read_debug_names_from_section)
15482 (get_gdb_index_contents_from_section, read_comp_unit_head)
15483 (error_check_comp_unit_head, read_abbrev_offset)
15484 (create_debug_type_hash_table, init_cu_die_reader)
15485 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15486 (read_comp_units_from_section, create_cus_hash_table)
15487 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15488 (create_dwp_v2_section, dwarf2_rnglists_process)
15489 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15490 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15491 (read_indirect_string_from_dwz, read_addr_index_1)
15492 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15493 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15494 (fill_in_loclist_baton): Update.
15495 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15496 get_containing_section, get_bfd_owner, get_bfd_section,
15497 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15498 (dwarf2_read_section, get_section_name, get_section_file_name)
15499 (get_containing_section, get_section_bfd_owner)
15500 (get_section_bfd_section, get_section_name, get_section_file_name)
15501 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15502 declare.
15503 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15504 (dwarf2_section_info::get_bfd_owner)
15505 (dwarf2_section_info::get_bfd_section)
15506 (dwarf2_section_info::get_name)
15507 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15508 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15509 (dwarf2_section_info::read): Now methods.
15510 * dwarf-index-write.c (class debug_names): Update.
15511
15512 2020-02-08 Tom Tromey <tom@tromey.com>
15513
15514 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15515 Move to dwarf2/section.h.
15516 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15517 (get_section_bfd_section, get_section_name)
15518 (get_section_file_name, get_section_id, get_section_flags)
15519 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15520 dwarf2/section.c.
15521 * dwarf2/section.h: New file.
15522 * dwarf2/section.c: New file, from dwarf2read.c.
15523 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15524
15525 2020-02-08 Tom Tromey <tom@tromey.com>
15526
15527 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15528 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15529 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15530 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15531 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15532 * dwarf2/leb.h: New file, from dwarf2read.c.
15533 * dwarf2/leb.c: New file, from dwarf2read.c.
15534 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15535 Remove.
15536 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15537 (COMMON_SFILES): Add dwarf2/leb.c.
15538
15539 2020-02-08 Joel Brobecker <brobecker@adacore.com>
15540
15541 GDB 9.1 released.
15542
15543 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15544
15545 PR gdb/25190:
15546 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15547 * gdb/remote.c (remote_console_output): Update.
15548 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15549 (ui_file_puts): ...this.
15550 * gdb/ui-file.h (ui_file_puts): Add declaration.
15551 * gdb/utils.c (emit_style_escape): Update.
15552 (flush_wrap_buffer): Update.
15553 (fputs_maybe_filtered): Update.
15554 (fputs_unfiltered): Add function.
15555
15556 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15557
15558 * gdb/event-loop.c (gdb_wait_for_event): Update.
15559 * gdb/printcmd.c (printf_command): Update.
15560 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15561 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15562 (gdb_os_flush_stderr): Update.
15563 * gdb/remote.c (remote_console_output): Update.
15564 * gdb/ui-file.c (gdb_flush): Rename to...
15565 (ui_file_flush): ...this.
15566 (stderr_file::write): Update.
15567 (stderr_file::puts): Update.
15568 * gdb/ui-file.h (gdb_flush): Rename to...
15569 (ui_file_flush): ...this.
15570 * gdb/utils.c (gdb_flush): Add function.
15571 * gdb/utils.h (gdb_flush): Add declaration.
15572
15573 2020-02-07 Tom Tromey <tromey@adacore.com>
15574
15575 PR breakpoints/24915:
15576 * source.c (find_and_open_source): Do not check basenames_may_differ.
15577
15578 2020-02-07 Tom Tromey <tom@tromey.com>
15579
15580 * README: Update gdbserver documentation.
15581 * gdbserver: Move to top level.
15582 * configure.tgt (build_gdbserver): Remove.
15583 * configure.ac: Remove --enable-gdbserver.
15584 * configure: Rebuild.
15585 * Makefile.in (distclean): Don't mention gdbserver.
15586
15587 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15588
15589 * source-cache.c (source_cache::ensure): Surround
15590 get_plain_source_lines with a try/catch.
15591 (source_cache::get_line_charpos): Get rid of try/catch
15592 and only check for the return value of "ensure".
15593 * tui/tui-source.c (tui_source_window::set_contents):
15594 Simplify "nlines" calculation.
15595
15596 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
15597
15598 * MAINTAINERS (Write After Approval): Add myself.
15599
15600 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15601
15602 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15603 function call.
15604
15605 2020-02-05 Christian Biesinger <cbiesinger@google.com>
15606
15607 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15608
15609 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
15610
15611 * nat/riscv-linux-tdesc.h: New file.
15612 * nat/riscv-linux-tdesc.c: New file, taking code from...
15613 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15614 ... here.
15615 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15616 NATDEPFILES.
15617
15618 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15619
15620 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15621 we don't set the fake simulator ptid to the null_ptid.
15622
15623 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
15624
15625 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15626 * gdbthread.h (class thread_info) <resumed>: Likewise.
15627 * infrun.c (resume_1): Likewise.
15628 (proceed): Likewise.
15629 (infrun_thread_stop_requested): Likewise.
15630 (stop_all_threads): Likewise.
15631 (handle_inferior_event): Likewise.
15632 (restart_threads): Likewise.
15633 (finish_step_over): Likewise.
15634 (keep_going_stepped_thread): Likewise.
15635 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15636 (linux_handle_extended_wait): Likewise.
15637 * record-btrace.c (get_thread_current_frame_id): Likewise.
15638 * record-full.c (record_full_wait_1): Likewise.
15639 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15640 * target.c (target_resume): Likewise.
15641 * thread.c (set_running_thread): Likewise.
15642
15643 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15644
15645 * f-valprint.c (f77_print_array_1): Changed datatype of index
15646 variable to LONGEST from int to enable it to contain bound
15647 values correctly.
15648
15649 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
15650
15651 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15652 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15653 offsets according to FLEN determined.
15654 (riscv_linux_nat_target::read_description): Determine FLEN
15655 dynamically.
15656 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15657 according to FLEN determined.
15658 (riscv_linux_nat_target::store_registers): Likewise.
15659
15660 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15661
15662 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15663 when reg->group is empty and reggroup is not.
15664
15665 2020-01-31 Tom Tromey <tromey@adacore.com>
15666
15667 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15668 Call beneath target's mourn_inferior after unpushing.
15669
15670 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15671
15672 PR tui/9765
15673 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15674 have enough lines to fill the screen, still return the lowest
15675 address we found.
15676
15677 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15678
15679 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15680 '-', '<', and '>' commands.
15681
15682 2020-01-29 Pedro Alves <palves@redhat.com>
15683 Sergio Durigan Junior <sergiodj@redhat.com>
15684
15685 * infcmd.c (construct_inferior_arguments): Assert that
15686 'argc' is greater than 0.
15687
15688 2020-01-29 Luis Machado <luis.machado@linaro.org>
15689
15690 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15691 (BRK_INSN_MASK): Define to 0xd4200000.
15692 (aarch64_program_breakpoint_here_p): New function.
15693 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15694 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15695 breakpoint.c.
15696 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15697 breakpoint.h
15698 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15699 call gdbarch_program_breakpoint_here_p.
15700 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15701 default_program_breakpoint_here_p, changed return type to bool and
15702 simplified.
15703 * breakpoint.h (program_breakpoint_here): Moved prototype to
15704 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15705 return type to bool.
15706 * gdbarch.c: Regenerate.
15707 * gdbarch.h: Regenerate.
15708 * gdbarch.sh (program_breakpoint_here_p): New method.
15709 * infrun.c (handle_signal_stop): Call
15710 gdbarch_program_breakpoint_here_p.
15711
15712 2020-01-26 Tom Tromey <tom@tromey.com>
15713
15714 * ctfread.c (struct ctf_fp_info): Reindent.
15715 (_initialize_ctfread): Remove.
15716
15717 2020-01-26 Tom Tromey <tom@tromey.com>
15718
15719 * psymtab.c (partial_map_expand_apply)
15720 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15721 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15722 (psym_print_stats, psym_expand_symtabs_for_function)
15723 (psym_map_symbol_filenames, psym_map_matching_symbols)
15724 (psym_expand_symtabs_matching)
15725 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15726 (maintenance_check_psymtabs): Use new methods.
15727 * psympriv.h (struct partial_symtab) <readin_p,
15728 get_compunit_symtab>: New methods.
15729 <readin, compunit_symtab>: Remove members.
15730 (struct standard_psymtab): New.
15731 (struct legacy_psymtab): Derive from standard_psymtab.
15732 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15733 standard_psymtab.
15734 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15735
15736 2020-01-26 Tom Tromey <tom@tromey.com>
15737
15738 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15739 read_dependencies. Add assert.
15740 * psymtab.c (partial_symtab::read_dependencies): New method.
15741 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15742 method.
15743 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15744 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15745 read_dependencies.
15746 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15747 Add assert.
15748
15749 2020-01-26 Tom Tromey <tom@tromey.com>
15750
15751 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15752 Call expand_psymtab.
15753 (xcoff_read_symtab): Call expand_psymtab.
15754 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15755 legacy_expand_psymtab.
15756 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15757 method.
15758 (struct legacy_psymtab) <expand_psymtab>: Implement.
15759 <legacy_expand_psymtab>: New member.
15760 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15761 (parse_partial_symbols): Set legacy_expand_psymtab.
15762 (psymtab_to_symtab_1): Change argument order. Call
15763 expand_psymtab.
15764 (new_psymtab): Set legacy_expand_psymtab.
15765 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15766 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15767 expand_psymtab.
15768 (dwarf2_psymtab::expand_psymtab): Rename from
15769 psymtab_to_symtab_1. Call expand_psymtab.
15770 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15771 (dbx_end_psymtab): Likewise.
15772 (dbx_psymtab_to_symtab_1): Change argument order. Call
15773 expand_psymtab.
15774 (dbx_read_symtab): Call expand_psymtab.
15775 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15776 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15777 (ctf_psymtab::read_symtab): Call expand_psymtab.
15778
15779 2020-01-26 Tom Tromey <tom@tromey.com>
15780
15781 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15782 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15783 messages.
15784 * mdebugread.c (mdebug_read_symtab): Remove prints.
15785 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15786 assert.
15787 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15788
15789 2020-01-26 Tom Tromey <tom@tromey.com>
15790
15791 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15792 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15793 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15794 legacy_symtab.
15795 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15796 * psymtab.c (psymtab_to_symtab): Call method.
15797 (dump_psymtab): Update.
15798 * psympriv.h (struct partial_symtab): Add virtual destructor.
15799 <read_symtab>: New method.
15800 (struct legacy_symtab): New.
15801 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15802 (struct pst_map) <pst>: Now a legacy_psymtab.
15803 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15804 (new_psymtab): Use legacy_psymtab.
15805 * dwarf2read.h (struct dwarf2_psymtab): New.
15806 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15807 * dwarf2read.c (dwarf2_create_include_psymtab)
15808 (dwarf2_build_include_psymtabs, create_type_unit_group)
15809 (create_partial_symtab, process_psymtab_comp_unit_reader)
15810 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15811 (set_partial_user): Use dwarf2_psymtab.
15812 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15813 (psymtab_to_symtab_1, process_full_comp_unit)
15814 (process_full_type_unit, dwarf2_ranges_read)
15815 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15816 (dwarf_decode_lines): Use dwarf2_psymtab.
15817 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15818 (add_address_entry_worker, write_one_signatured_type)
15819 (recursively_count_psymbols, recursively_write_psymbols)
15820 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15821 (write_debug_names): Likewise.
15822 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15823 <pst>: Now a legacy_psymtab.
15824 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15825 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15826 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15827 * ctfread.c (struct ctf_psymtab): New.
15828 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15829 ctf_psymtab.
15830 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15831 (create_partial_symtab): Return a ctf_psymtab.
15832 (scan_partial_symbols): Update.
15833
15834 2020-01-26 Tom Tromey <tom@tromey.com>
15835
15836 * xcoffread.c (xcoff_start_psymtab): Use new.
15837 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15838 renamed from start_psymtab_common.
15839 * psympriv.h (struct partial_symtab): Add new constructor.
15840 (start_psymtab_common): Don't declare.
15841 * mdebugread.c (parse_partial_symbols): Use new.
15842 * dwarf2read.c (create_partial_symtab): Use new.
15843 * dbxread.c (start_psymtab): Use new.
15844 * ctfread.c (create_partial_symtab): Use new.
15845
15846 2020-01-26 Tom Tromey <tom@tromey.com>
15847
15848 * xcoffread.c (xcoff_end_psymtab): Use new.
15849 * psymtab.c (start_psymtab_common): Use new.
15850 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15851 Update.
15852 * psympriv.h (struct partial_symtab): Add parameters to
15853 constructor. Don't inline.
15854 (allocate_psymtab): Don't declare.
15855 * mdebugread.c (new_psymtab): Use new.
15856 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15857 * dbxread.c (dbx_end_psymtab): Use new.
15858
15859 2020-01-26 Tom Tromey <tom@tromey.com>
15860
15861 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15862 allocate_psymtab. Update documentation.
15863 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15864 allocate_psymtab. Do not use new.
15865 (allocate_psymtab): Use new. Update.
15866
15867 2020-01-26 Tom Tromey <tom@tromey.com>
15868
15869 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15870 * psymtab.c (psym_print_stats): Update.
15871 * psympriv.h (struct partial_symtab) <readin,
15872 psymtabs_addrmap_supported, anonymous>: Now bool.
15873 * mdebugread.c (psymtab_to_symtab_1): Update.
15874 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15875 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15876 (process_full_comp_unit, process_full_type_unit): Update.
15877 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15878 * ctfread.c (psymtab_to_symtab): Update.
15879
15880 2020-01-26 Tom Tromey <tom@tromey.com>
15881
15882 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15883 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15884 * psymtab.c (psymtab_storage): Delete psymtabs.
15885 (psymtab_storage::allocate_psymtab): Use new.
15886 (psymtab_storage::discard_psymtab): Use delete.
15887 * psympriv.h (struct partial_symtab): Add constructor and
15888 initializers.
15889
15890 2020-01-26 Tom Tromey <tom@tromey.com>
15891
15892 * machoread.c: Do not include psympriv.h.
15893
15894 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15895
15896 * NEWS: Mention the new option and the set/show commands.
15897
15898 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15899
15900 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15901 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15902 (validate_exec_file): New variables, enums, functions.
15903 (exec_file_locate_attach, print_section_info): Style the filenames.
15904 (_initialize_exec): Install show_exec_file_mismatch_command and
15905 set_exec_file_mismatch_command.
15906 * gdbcore.h (validate_exec_file): Declare.
15907 * infcmd.c (attach_command): Call validate_exec_file.
15908 * remote.c ( remote_target::remote_add_inferior): Likewise.
15909
15910 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15911
15912 * frame.c (find_frame_sal): Move call to get_next_frame into more
15913 inner scope.
15914 * inline-frame.c (inilne_state) <inline_state>: Update argument
15915 types.
15916 (inilne_state) <skipped_symbol>: Rename to...
15917 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15918 (skip_inline_frames): Build vector of skipped symbols and use this
15919 to reate the inline_state.
15920 (inline_skipped_symbol): Add a comment and some assertions, fetch
15921 skipped symbol from the list.
15922
15923 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15924
15925 * buildsym.c (lte_is_less_than): Delete.
15926 (buildsym_compunit::end_symtab_with_blockvector): Create local
15927 lambda function to sort line table entries, and use
15928 std::stable_sort instead of std::sort.
15929 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15930 markers when looking for a previous line.
15931
15932 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15933
15934 * dwarf2read.c (lnp_state_machine::record_line): Include
15935 end_sequence parameter in debug print out. Record the line if we
15936 are at an end_sequence marker even if it's not the start of a
15937 statement.
15938 * symmisc.c (maintenance_print_one_line_table): Print end of
15939 sequence markers with 'END' not '0'.
15940
15941 2020-01-24 Pedro Alves <palves@redhat.com>
15942
15943 PR gdb/25410
15944 * thread.c (scoped_restore_current_thread::restore): Use
15945 switch_to_inferior_no_thread.
15946 * exec.c: Include "progspace-and-thread.h".
15947 (add_target_sections, remove_target_sections):
15948 scoped_restore_current_pspace_and_thread instead of
15949 scoped_restore_current_thread.
15950 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15951 and aspace to the inferior before calling clone_program_space.
15952 Remove stale comment.
15953
15954 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15955
15956 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15957 (arm_netbsd_nat_target::fetch_registers): ...this.
15958 (arm_nbsd_nat_target::store_registers): Rename to...
15959 (arm_netbsd_nat_target::store_registers): ...this.
15960
15961 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15962
15963 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15964 register_t.
15965
15966 2020-01-24 Christian Biesinger <cbiesinger@google.com>
15967
15968 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15969 Update comment.
15970 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15971 Likewise.
15972 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15973 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15974 the correct replacement (iterate_over_regset_sections).
15975 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15976 Update comment.
15977
15978 2020-01-24 Graham Markall <graham.markall@embecosm.com>
15979
15980 PR gdb/23718
15981 * gdb/python/python.c (execute_gdb_command): Call
15982 async_enable_stdin in catch block.
15983
15984 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15985
15986 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15987 SWITCH_THRU_ALL_UIS.
15988
15989 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15990
15991 PR tui/9765
15992 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15993 comment, add extra parameter, and update to store previous symbol
15994 when appropriate.
15995 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15996 add extra parameter.
15997 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15998 remove unneeded parameter, add try/catch around gdb_print_insn,
15999 rewrite to add items to asm_lines vector.
16000 (tui_find_backward_disassembly_start_address): New function.
16001 (tui_find_disassembly_address): Updated throughout.
16002 (tui_disasm_window::set_contents): Update for changes to
16003 tui_disassemble.
16004 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16005 number of lines to scroll.
16006
16007 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16008
16009 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16010 (SECT_OFF_DATA): Likewise.
16011 (SECT_OFF_RODATA): Likewise.
16012 (SECT_OFF_TEXT): Likewise.
16013 (SECT_OFF_BSS): Likewise.
16014 (struct objfile) <text_section_offset, data_section_offset>: New
16015 methods.
16016 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16017 objfile::text_section_offset.
16018 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16019 * coffread.c (coff_symtab_read): Likewise.
16020 (enter_linenos): Likewise.
16021 (process_coff_symbol): Likewise.
16022 * ctfread.c (get_objfile_text_range): Likewise.
16023 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16024 Use objfile::data_section_offset.
16025 * dwarf2-frame.c (execute_cfa_program): Use
16026 objfile::text_section_offset.
16027 (dwarf2_frame_find_fde): Likewise.
16028 * dwarf2read.c (create_addrmap_from_index): Likewise.
16029 (create_addrmap_from_aranges): Likewise.
16030 (dw2_find_pc_sect_compunit_symtab): Likewise.
16031 (process_psymtab_comp_unit_reader): Likewise.
16032 (add_partial_symbol): Likewise.
16033 (add_partial_subprogram): Likewise.
16034 (process_full_comp_unit): Likewise.
16035 (read_file_scope): Likewise.
16036 (read_func_scope): Likewise.
16037 (read_lexical_block_scope): Likewise.
16038 (read_call_site_scope): Likewise.
16039 (dwarf2_rnglists_process): Likewise.
16040 (dwarf2_ranges_process): Likewise.
16041 (dwarf2_ranges_read): Likewise.
16042 (dwarf_decode_lines_1): Likewise.
16043 (new_symbol): Likewise.
16044 (dwarf2_fetch_die_loc_sect_off): Likewise.
16045 (dwarf2_per_cu_text_offset): Likewise.
16046 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16047 * hppa-tdep.c (read_unwind_info): Likewise.
16048 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16049 * psympriv.h (struct partial_symtab): Likewise.
16050 * psymtab.c (find_pc_sect_psymtab): Likewise.
16051 * solib-svr4.c (enable_break): Likewise.
16052 * stap-probe.c (relocate_address): Use
16053 objfile::data_section_offset.
16054 * xcoffread.c (enter_line_range): Use
16055 objfile::text_section_offset.
16056 (read_xcoff_symtab): Likewise.
16057
16058 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16059
16060 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16061 declaration to narrower scopes.
16062
16063 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16064
16065 * darwin-nat.h (struct darwin_exception_msg, enum
16066 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16067 Move up.
16068 (class darwin_nat_target) <wait_1, check_new_threads,
16069 decode_exception_message, decode_message, stop_inferior,
16070 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16071 * darwin-nat.c (darwin_check_new_threads): Rename to...
16072 (darwin_nat_target::check_new_threads): ... this.
16073 (darwin_suspend_inferior_it): Remove.
16074 (darwin_decode_exception_message): Rename to...
16075 (darwin_nat_target::decode_exception_message): ... this.
16076 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16077 (darwin_decode_message): Rename to...
16078 (darwin_nat_target::decode_message): ... this.
16079 (cancel_breakpoint): Rename to...
16080 (darwin_nat_target::cancel_breakpoint): ... this.
16081 (darwin_wait): Rename to...
16082 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16083 instead of iterate_over_inferiors.
16084 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16085 (darwin_stop_inferior): Rename to...
16086 (darwin_nat_target::stop_inferior): ... this.
16087 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16088 (darwin_init_thread_list): Rename to...
16089 (darwin_nat_target::init_thread_list): ... this.
16090 (darwin_ptrace_him): Rename to...
16091 (darwin_nat_target::ptrace_him): ... this.
16092 (darwin_nat_target::create_inferior): Pass lambda function to
16093 fork_inferior.
16094 (darwin_nat_target::detach): Call stop_inferior instead of
16095 darwin_stop_inferior.
16096 * fork-inferior.h (fork_inferior): Change init_trace_fun
16097 parameter to gdb::function_view.
16098 * fork-inferior.c (fork_inferior): Likewise.
16099
16100 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16101
16102 * i386-cygwin-tdep.c (core_process_module_section): Update.
16103 * windows-nat.c (struct lm_info_windows): Add text_offset.
16104 (windows_xfer_shared_libraries): Update.
16105 * windows-tdep.c (windows_xfer_shared_library):
16106 Add text_offset_cached argument.
16107 * windows-tdep.h (windows_xfer_shared_library): Update.
16108
16109 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16110
16111 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16112
16113 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16114
16115 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16116 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16117 replace with range-based for.
16118 (gdbsim_interrupt_inferior): Remove.
16119 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16120 with a range-based for. Inline code from
16121 gdbsim_interrupt_inferior.
16122
16123 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16124
16125 * infrun.c (proceed): Fix indentation.
16126
16127 2020-01-21 Tom Tromey <tromey@adacore.com>
16128
16129 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16130 * python/python.c (python_extension_ops): Update.
16131 (gdbpy_colorize): New function.
16132 * python/lib/gdb/__init__.py (colorize): New function.
16133 * extension.h (ext_lang_colorize): Declare.
16134 * extension.c (ext_lang_colorize): New function.
16135 * extension-priv.h (struct extension_language_ops) <colorize>: New
16136 member.
16137 * cli/cli-style.c (_initialize_cli_style): Update help text.
16138
16139 2020-01-21 Luis Machado <luis.machado@linaro.org>
16140
16141 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16142 <cond>: Change type to bool.
16143 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16144 (aarch64_displaced_step_cb): Likewise.
16145 (aarch64_displaced_step_tb): Likewise.
16146
16147 2020-01-21 Luis Machado <luis.machado@linaro.org>
16148
16149 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16150 output.
16151
16152 2020-01-21 Luis Machado <luis.machado@linaro.org>
16153
16154 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16155 <pc_adjust>: Adjust the documentation.
16156 (aarch64_displaced_step_fixup): Check if PC really moved before
16157 adjusting it.
16158
16159 2020-01-19 Tom Tromey <tom@tromey.com>
16160
16161 * disasm.c (~gdb_disassembler): New destructor.
16162 (gdb_buffered_insn_length): Call disassemble_free_target.
16163 * disasm.h (class gdb_disassembler): Declare destructor. Use
16164 DISABLE_COPY_AND_ASSIGN.
16165
16166 2020-01-19 Tom Tromey <tom@tromey.com>
16167
16168 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16169 (die_reader_func_ftype): Remove.
16170 (cutu_reader): New class.
16171 (dw2_get_file_names_reader): Remove "data" parameter.
16172 (dw2_get_file_names): Use cutu_reader.
16173 (create_debug_type_hash_table): Update.
16174 (read_cutu_die_from_dwo): Update comment.
16175 (lookup_dwo_unit): Add dwo_name parameter.
16176 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16177 die_reader_func_ftype and data parameters.
16178 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16179 Remove die_reader_func_ftype and data parameters.
16180 (~cutu_reader): New; from init_cutu_and_read_dies.
16181 (cutu_reader::cutu_reader): Rename from
16182 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16183 and data parameters.
16184 (init_cutu_and_read_dies_simple): Remove.
16185 (struct process_psymtab_comp_unit_data): Remove.
16186 (process_psymtab_comp_unit_reader): Remove data parameter; add
16187 want_partial_unit and pretend_language parameters.
16188 (process_psymtab_comp_unit): Use cutu_reader.
16189 (build_type_psymtabs_reader): Remove data parameter.
16190 (build_type_psymtabs_1): Use cutu_reader.
16191 (process_skeletonless_type_unit): Likewise.
16192 (load_partial_comp_unit_reader): Remove.
16193 (load_partial_comp_unit): Use cutu_reader.
16194 (load_full_comp_unit_reader): Remove.
16195 (load_full_comp_unit): Use cutu_reader.
16196 (struct create_dwo_cu_data): Remove.
16197 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16198 dwo_unit parameters.
16199 (create_cus_hash_table): Use cutu_reader.
16200 (struct dwarf2_read_addr_index_data): Remove.
16201 (dwarf2_read_addr_index_reader): Remove.
16202 (dwarf2_read_addr_index): Use cutu_reader.
16203 (read_signatured_type_reader): Remove.
16204 (read_signatured_type): Use cutu_reader.
16205
16206 2020-01-19 Tom Tromey <tom@tromey.com>
16207
16208 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16209 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16210 (tui_wrefresh): Declare.
16211 * tui/tui-wingeneral.c (suppress_output): New global.
16212 (tui_suppress_output, ~tui_suppress_output): New constructor and
16213 destructor.
16214 (tui_wrefresh): New function.
16215 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16216 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16217 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16218 method.
16219 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16220 tui_wrefresh.
16221 (tui_data_window::no_refresh): New method.
16222 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16223 (tui_reg_command): Use tui_suppress_output
16224 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16225 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16226 method.
16227 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16228
16229 2020-01-19 Tom Tromey <tom@tromey.com>
16230
16231 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16232 Handle case where symtab is null.
16233
16234 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16235
16236 * linux-fork.c (one_fork_p): Simplify.
16237
16238 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16239
16240 * top.c (struct qt_args): Remove.
16241 (kill_or_detach): Change return type to void, replace `void *`
16242 parameter with a proper one.
16243 (print_inferior_quit_action): Likewise.
16244 (quit_confirm): Use range-based for loop to iterate over inferiors.
16245 (quit_force): Likewise.
16246
16247 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16248
16249 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16250 `void *` parameter with proper parameters.
16251 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16252 (print_one_inferior): Change return type to void, replace `void *`
16253 parameter with proper parameters.
16254 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16255 inferiors.
16256 (get_other_inferior): Remove.
16257 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16258 inferiors.
16259
16260 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16261
16262 * mi/mi-interp.c (report_initial_inferior): Remove.
16263 (mi_interp::init): Use range-based for to iterate over inferiors.
16264
16265 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16266
16267 * python/py-inferior.c (build_inferior_list): Remove.
16268 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16269
16270 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16271
16272 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16273 (btrace_stitch_trace): Likewise.
16274 * charset.c (intermediate_encoding): Likewise (vaild).
16275 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16276 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16277 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16278
16279 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16280
16281 * windows-tdep.c (windows_get_tlb_type):
16282 Add rtl_user_process_parameters type.
16283
16284 2020-01-16 Pedro Alves <palves@redhat.com>
16285 Norbert Lange <nolange79@gmail.com>
16286
16287 PR build/24805
16288 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16289 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16290 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16291 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16292 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16293 (ps_plog): Redeclare exported functions with default visibility.
16294
16295 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16296
16297 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16298 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16299
16300 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16301
16302 * infcmd.c (post_create_inferior): Use get_thread_regcache
16303 instead of get_current_regcache.
16304
16305 2020-01-14 Tom Tromey <tom@tromey.com>
16306
16307 PR symtab/12535:
16308 * python/python.c (gdbpy_decode_line): Treat empty string the same
16309 as no argument.
16310
16311 2020-01-14 Tom Tromey <tom@tromey.com>
16312
16313 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16314
16315 2020-01-14 Tom Tromey <tom@tromey.com>
16316
16317 * nat/linux-btrace.c: Don't include <config.h>.
16318 * nat/linux-ptrace.c: Don't include <config.h>.
16319 * nat/x86-linux-dregs.c: Don't include <config.h>.
16320
16321 2020-01-14 Tom Tromey <tom@tromey.com>
16322
16323 * configure: Rebuild.
16324 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16325
16326 2020-01-14 Tom Tromey <tom@tromey.com>
16327
16328 * nat/x86-linux-dregs.c: Include configh.h.
16329 * nat/linux-ptrace.c: Include configh.h.
16330 * nat/linux-btrace.c: Include configh.h.
16331 * defs.h: Include config.h, bfd.h.
16332 * configure.ac: Don't source common.host.
16333 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16334 * configure: Rebuild.
16335 * acinclude.m4: Update path.
16336 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16337 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16338 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16339 (CLIBS): Add LIBSUPPORT.
16340 (CDEPS): Likewise.
16341 (COMMON_SFILES): Remove gdbsupport files.
16342 (HFILES_NO_SRCDIR): Likewise.
16343 (stamp-version): Update path to create-version.sh.
16344 (ALLDEPFILES): Remove gdbsupport files.
16345
16346 2020-01-14 Tom Tromey <tom@tromey.com>
16347
16348 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16349 USE_WIN32API when needed.
16350 * configure.ac (USE_WIN32API): Don't define.
16351 (WIN32LIBS): Use WIN32APILIBS.
16352 * configure: Rebuild.
16353
16354 2020-01-14 Tom Tromey <tom@tromey.com>
16355
16356 * configure: Rebuild.
16357 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16358
16359 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16360
16361 * skip.c (skip_function_command): Make skip w/o arguments use the
16362 name of the inlined function if pc is inside any inlined function.
16363
16364 2020-01-14 Luis Machado <luis.machado@linaro.org>
16365
16366 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16367 * infrun.c (resume_1): Likewise.
16368 (handle_inferior_event): Remove stale comment.
16369 * linux-nat.c (linux_nat_target::resume): Update comments.
16370 (save_stop_reason): Likewise.
16371 (linux_nat_filter_event): Likewise.
16372 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16373
16374 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16375
16376 * elfread.c (record_minimal_symbol): Set section index to 0 for
16377 non-allocatable sections.
16378
16379
16380 2020-01-13 Ali Tamur <tamur@google.com>
16381
16382 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16383 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16384 to gdb::optional. Update comments.
16385 (dwo_file): Update comments.
16386 (read_attribute): Update API to take an additional out parameter,
16387 need_reprocess. This is used to mark attributes that need other
16388 attributes (e.g. str_offsets_base) for correct computation which may not
16389 have been read yet.
16390 (read_attribute_reprocess): New function declaration.
16391 (read_addr_index): Likewise.
16392 (read_dwo_str_index): Likewise.
16393 (read_stub_str_index): Likewise.
16394 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16395 (lookup_addr_base): New function definition.
16396 (lookup_ranges_base): Likewise.
16397 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16398 lookup_ranges_base.
16399 (init_cutu_and_read_dies): Update comments.
16400 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16401 unit. This is used to inherit parent's str_offsets_base and addr_base.
16402 Update comments.
16403 (init_cutu_and_read_dies_simple): Reflect API changes.
16404 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16405 (create_cus_hash_table): Change API to take parent compile unit.
16406 Reflect API changes.
16407 (open_and_init_dwo_file): Reflect API changes.
16408 (dwarf2_get_pc_bounds): Update comments.
16409 (dwarf2_record_block_ranges): Likewise.
16410 (read_full_die_1): Change implementation to reprocess attributes that
16411 need str_offsets_base and addr_base.
16412 (partial_die_info::read): Likewise.
16413 (read_attribute_reprocess): New function definition.
16414 (read_attribute_value): Change API to take an additional out parameter,
16415 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16416 when a non-dwo compile unit has index based attributes.
16417 (read_attribute): Reflect API changes.
16418 (read_addr_index_1): Reflect API changes. Update comments.
16419 (dwarf2_read_addr_index_data): Reflect API changes.
16420 (dwarf2_read_addr_index): Likewise.
16421 (read_str_index): Change API and implementation. This becomes a helper
16422 to be used by the new string index related methods. Update error
16423 message and comments.
16424 (read_dwo_str_index): New function definition.
16425 (read_stub_str_index): Likewise.
16426 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16427 * symfile.h (dwarf2_debug_sections): Likewise.
16428 * xcoffread.c (dwarf2_debug_sections): Likewise.
16429
16430 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16431
16432 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16433 core_reg_sect type to gdb_byte *.
16434 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16435 * cris-tdep.c (fetch_core_registers): Likewise.
16436 * corelow.c (core_target::get_core_register_section): Change
16437 type of `contents` to gdb::byte_vector.
16438
16439 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16440
16441 * tui/tui-wingeneral.c (box_win): Position the title in the center
16442 of the border.
16443
16444 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16445
16446 * corelow.c (core_target::get_core_register_section): Use
16447 std::vector instead of alloca.
16448
16449 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16450
16451 * warning.m4: Add -Wmissing-declarations to build_warnings.
16452 * configure: Re-generate.
16453
16454 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16455
16456 * python/python.c (init__gdb_module): Add declaration.
16457
16458 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
16459
16460 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16461 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16462 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16463 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16464 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16465 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16466 * ada-exp.y (_initialize_ada_exp): Add declaration.
16467 * ada-lang.c (_initialize_ada_language): Add declaration.
16468 * ada-tasks.c (_initialize_tasks): Add declaration.
16469 * agent.c (_initialize_agent): Add declaration.
16470 * aix-thread.c (_initialize_aix_thread): Add declaration.
16471 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16472 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16473 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16474 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16475 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16476 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16477 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16478 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16479 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16480 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16481 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16482 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16483 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16484 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16485 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16486 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16487 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16488 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16489 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16490 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16491 * annotate.c (_initialize_annotate): Add declaration.
16492 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16493 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16494 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16495 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16496 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16497 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16498 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16499 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16500 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16501 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16502 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16503 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16504 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16505 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16506 * auto-load.c (_initialize_auto_load): Add declaration.
16507 * auxv.c (_initialize_auxv): Add declaration.
16508 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16509 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16510 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16511 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16512 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16513 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16514 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16515 * breakpoint.c (_initialize_breakpoint): Add declaration.
16516 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16517 * btrace.c (_initialize_btrace): Add declaration.
16518 * charset.c (_initialize_charset): Add declaration.
16519 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16520 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16521 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16522 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16523 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16524 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16525 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16526 * coffread.c (_initialize_coffread): Add declaration.
16527 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16528 * compile/compile.c (_initialize_compile): Add declaration.
16529 * complaints.c (_initialize_complaints): Add declaration.
16530 * completer.c (_initialize_completer): Add declaration.
16531 * copying.c (_initialize_copying): Add declaration.
16532 * corefile.c (_initialize_core): Add declaration.
16533 * corelow.c (_initialize_corelow): Add declaration.
16534 * cp-abi.c (_initialize_cp_abi): Add declaration.
16535 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16536 * cp-support.c (_initialize_cp_support): Add declaration.
16537 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16538 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16539 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16540 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16541 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16542 * ctfread.c (_initialize_ctfread): Add declaration.
16543 * d-lang.c (_initialize_d_language): Add declaration.
16544 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16545 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16546 * dbxread.c (_initialize_dbxread): Add declaration.
16547 * dcache.c (_initialize_dcache): Add declaration.
16548 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16549 * disasm.c (_initialize_disasm): Add declaration.
16550 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16551 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16552 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16553 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16554 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16555 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16556 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16557 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16558 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16559 * elfread.c (_initialize_elfread): Add declaration.
16560 * exec.c (_initialize_exec): Add declaration.
16561 * extension.c (_initialize_extension): Add declaration.
16562 * f-lang.c (_initialize_f_language): Add declaration.
16563 * f-valprint.c (_initialize_f_valprint): Add declaration.
16564 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16565 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16566 * filesystem.c (_initialize_filesystem): Add declaration.
16567 * findcmd.c (_initialize_mem_search): Add declaration.
16568 * findvar.c (_initialize_findvar): Add declaration.
16569 * fork-child.c (_initialize_fork_child): Add declaration.
16570 * frame-base.c (_initialize_frame_base): Add declaration.
16571 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16572 * frame.c (_initialize_frame): Add declaration.
16573 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16574 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16575 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16576 * gcore.c (_initialize_gcore): Add declaration.
16577 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16578 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16579 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16580 * gdbarch.c (_initialize_gdbarch): Add declaration.
16581 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16582 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16583 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16584 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16585 * go-lang.c (_initialize_go_language): Add declaration.
16586 * go32-nat.c (_initialize_go32_nat): Add declaration.
16587 * guile/guile.c (_initialize_guile): Add declaration.
16588 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16589 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16590 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16591 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16592 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16593 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16594 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16595 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16596 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16597 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16598 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16599 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16600 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16601 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16602 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16603 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16604 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16605 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16606 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16607 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16608 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16609 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16610 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16611 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16612 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16613 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16614 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16615 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16616 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16617 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16618 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16619 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16620 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16621 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16622 * infcall.c (_initialize_infcall): Add declaration.
16623 * infcmd.c (_initialize_infcmd): Add declaration.
16624 * inflow.c (_initialize_inflow): Add declaration.
16625 * infrun.c (_initialize_infrun): Add declaration.
16626 * interps.c (_initialize_interpreter): Add declaration.
16627 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16628 * jit.c (_initialize_jit): Add declaration.
16629 * language.c (_initialize_language): Add declaration.
16630 * linux-fork.c (_initialize_linux_fork): Add declaration.
16631 * linux-nat.c (_initialize_linux_nat): Add declaration.
16632 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16633 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16634 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16635 * m2-lang.c (_initialize_m2_language): Add declaration.
16636 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16637 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16638 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16639 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16640 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16641 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16642 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16643 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16644 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16645 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16646 * machoread.c (_initialize_machoread): Add declaration.
16647 * macrocmd.c (_initialize_macrocmd): Add declaration.
16648 * macroscope.c (_initialize_macroscope): Add declaration.
16649 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16650 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16651 * maint.c (_initialize_maint_cmds): Add declaration.
16652 * mdebugread.c (_initialize_mdebugread): Add declaration.
16653 * memattr.c (_initialize_mem): Add declaration.
16654 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16655 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16656 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16657 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16658 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16659 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16660 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16661 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16662 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16663 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16664 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16665 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16666 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16667 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16668 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16669 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16670 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16671 * mipsread.c (_initialize_mipsread): Add declaration.
16672 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16673 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16674 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16675 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16676 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16677 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16678 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16679 * nto-procfs.c (_initialize_procfs): Add declaration.
16680 * objc-lang.c (_initialize_objc_language): Add declaration.
16681 * observable.c (_initialize_observer): Add declaration.
16682 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16683 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16684 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16685 * osabi.c (_initialize_gdb_osabi): Add declaration.
16686 * osdata.c (_initialize_osdata): Add declaration.
16687 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16688 * parse.c (_initialize_parse): Add declaration.
16689 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16690 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16691 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16692 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16693 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16694 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16695 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16696 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16697 * printcmd.c (_initialize_printcmd): Add declaration.
16698 * probe.c (_initialize_probe): Add declaration.
16699 * proc-api.c (_initialize_proc_api): Add declaration.
16700 * proc-events.c (_initialize_proc_events): Add declaration.
16701 * proc-service.c (_initialize_proc_service): Add declaration.
16702 * procfs.c (_initialize_procfs): Add declaration.
16703 * producer.c (_initialize_producer): Add declaration.
16704 * psymtab.c (_initialize_psymtab): Add declaration.
16705 * python/python.c (_initialize_python): Add declaration.
16706 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16707 * record-btrace.c (_initialize_record_btrace): Add declaration.
16708 * record-full.c (_initialize_record_full): Add declaration.
16709 * record.c (_initialize_record): Add declaration.
16710 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16711 * regcache.c (_initialize_regcache): Add declaration.
16712 * reggroups.c (_initialize_reggroup): Add declaration.
16713 * remote-notif.c (_initialize_notif): Add declaration.
16714 * remote-sim.c (_initialize_remote_sim): Add declaration.
16715 * remote.c (_initialize_remote): Add declaration.
16716 * reverse.c (_initialize_reverse): Add declaration.
16717 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16718 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16719 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16720 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16721 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16722 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16723 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16724 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16725 Add declaration.
16726 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16727 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16728 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16729 * rust-exp.y (_initialize_rust_exp): Add declaration.
16730 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16731 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16732 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16733 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16734 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16735 * score-tdep.c (_initialize_score_tdep): Add declaration.
16736 * ser-go32.c (_initialize_ser_dos): Add declaration.
16737 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16738 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16739 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16740 * ser-uds.c (_initialize_ser_socket): Add declaration.
16741 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16742 * serial.c (_initialize_serial): Add declaration.
16743 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16744 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16745 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16746 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16747 * skip.c (_initialize_step_skip): Add declaration.
16748 * sol-thread.c (_initialize_sol_thread): Add declaration.
16749 * solib-aix.c (_initialize_solib_aix): Add declaration.
16750 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16751 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16752 * solib-frv.c (_initialize_frv_solib): Add declaration.
16753 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16754 * solib-target.c (_initialize_solib_target): Add declaration.
16755 * solib.c (_initialize_solib): Add declaration.
16756 * source-cache.c (_initialize_source_cache): Add declaration.
16757 * source.c (_initialize_source): Add declaration.
16758 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16759 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16760 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16761 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16762 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16763 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16764 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16765 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16766 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16767 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16768 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16769 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16770 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16771 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16772 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16773 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16774 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16775 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16776 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16777 * stabsread.c (_initialize_stabsread): Add declaration.
16778 * stack.c (_initialize_stack): Add declaration.
16779 * stap-probe.c (_initialize_stap_probe): Add declaration.
16780 * std-regs.c (_initialize_frame_reg): Add declaration.
16781 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16782 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16783 * symfile.c (_initialize_symfile): Add declaration.
16784 * symmisc.c (_initialize_symmisc): Add declaration.
16785 * symtab.c (_initialize_symtab): Add declaration.
16786 * target.c (_initialize_target): Add declaration.
16787 * target-connection.c (_initialize_target_connection): Add
16788 declaration.
16789 * target-dcache.c (_initialize_target_dcache): Add declaration.
16790 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16791 * thread.c (_initialize_thread): Add declaration.
16792 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16793 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16794 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16795 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16796 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16797 * tracectf.c (_initialize_ctf): Add declaration.
16798 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16799 * tracefile.c (_initialize_tracefile): Add declaration.
16800 * tracepoint.c (_initialize_tracepoint): Add declaration.
16801 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16802 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16803 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16804 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16805 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16806 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16807 * tui/tui.c (_initialize_tui): Add declaration.
16808 * typeprint.c (_initialize_typeprint): Add declaration.
16809 * ui-style.c (_initialize_ui_style): Add declaration.
16810 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16811 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16812 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16813 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16814 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16815 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16816 * unittests/filtered_iterator-selftests.c
16817 (_initialize_filtered_iterator_selftests): Add declaration.
16818 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16819 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16820 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16821 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16822 * unittests/main-thread-selftests.c
16823 (_initialize_main_thread_selftests): Add declaration.
16824 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16825 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16826 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16827 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16828 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16829 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16830 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16831 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16832 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16833 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16834 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16835 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16836 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16837 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16838 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16839 declaration.
16840 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16841 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16842 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16843 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16844 * user-regs.c (_initialize_user_regs): Add declaration.
16845 * utils.c (_initialize_utils): Add declaration.
16846 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16847 * valops.c (_initialize_valops): Add declaration.
16848 * valprint.c (_initialize_valprint): Add declaration.
16849 * value.c (_initialize_values): Add declaration.
16850 * varobj.c (_initialize_varobj): Add declaration.
16851 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16852 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16853 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16854 * windows-nat.c (_initialize_windows_nat): Add declaration.
16855 (_initialize_check_for_gdb_ini): Add declaration.
16856 (_initialize_loadable): Add declaration.
16857 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16858 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16859 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16860 * xcoffread.c (_initialize_xcoffread): Add declaration.
16861 * xml-support.c (_initialize_xml_support): Add declaration.
16862 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16863 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16864 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16865 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16866
16867 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16868
16869 * regformats/regdat.sh: Generate declaration for init function.
16870
16871 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16872
16873 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16874 up.
16875 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16876 close_one_inferior>: New methods.
16877 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16878 pass down target to find_inferior_pid.
16879 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16880 Pass down target to find_inferior_ptid.
16881 (gdbsim_target::create_inferior): Pass down target to
16882 add_thread_silent.
16883 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16884 target down to find_inferior_ptid and switch_to_thread.
16885 (gdbsim_target::close): Update to call close_one_inferior.
16886 (struct resume_data): Remove.
16887 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16888 directly, rather than through a void pointer.
16889 (gdbsim_target::resume): Update to call resume_one_inferior.
16890
16891 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16892
16893 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16894
16895 2020-01-12 Pedro Alves <palves@redhat.com>
16896
16897 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16898 directly for the current inferior instead of
16899 discard_all_inferiors.
16900 (discard_all_inferiors): Delete.
16901
16902 2020-01-11 Tom Tromey <tom@tromey.com>
16903
16904 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16905 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16906 deprecated_safe_get_selected_frame.
16907
16908 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16909
16910 * inferior.c (print_inferior): Switch inferior before printing it.
16911
16912 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16913 Pedro Alves <palves@redhat.com>
16914
16915 * progspace-and-thread.c (switch_to_program_space_and_thread):
16916 Assert there's an inferior for PSPACE. Use
16917 switch_to_inferior_no_thread to switch the inferior too.
16918 * progspace.c (program_space::~program_space): Call
16919 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16920 (program_space::free_all_objfiles): Don't call clear_symtab_users
16921 here.
16922 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16923
16924 2020-01-10 Pedro Alves <palves@redhat.com>
16925
16926 * NEWS: Mention multi-target debugging, "info connections", and
16927 "add-inferior -no-connection".
16928
16929 2020-01-10 Pedro Alves <palves@redhat.com>
16930
16931 * infrun.c: Include "target-connection.h".
16932 (check_multi_target_resumption): New.
16933 (proceed): Call it.
16934 * target-connection.c (make_target_connection_string): Make
16935 extern.
16936 * target-connection.h (make_target_connection_string): Declare.
16937
16938 2020-01-10 Pedro Alves <palves@redhat.com>
16939
16940 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16941 * inferior.c (uiout_field_connection): New function.
16942 (print_inferior): Add new "connection-id" column.
16943 (add_inferior_command): Show connection number/string of added
16944 inferior.
16945 * process-stratum-target.h
16946 (process_stratum_target::connection_string): New virtual method.
16947 (process_stratum_target::connection_number): New field.
16948 * remote.c (remote_target::connection_string): New override.
16949 * target-connection.c: New file.
16950 * target-connection.h: New file.
16951 * target.c (decref_target): Remove process_stratum targets from
16952 the connection list.
16953 (target_stack::push): Add process_stratum targets to the
16954 connection list.
16955
16956 2020-01-10 Pedro Alves <palves@redhat.com>
16957
16958 Revert:
16959 2016-04-12 Pedro Alves <palves@redhat.com>
16960 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16961 Remove references to name.
16962 * serial.h (struct serial) <name>: Delete.
16963
16964 2020-01-10 Pedro Alves <palves@redhat.com>
16965
16966 * gdbarch-selftests.c (register_to_value_test): Remove "target
16967 already pushed" check.
16968
16969 2020-01-10 Pedro Alves <palves@redhat.com>
16970 John Baldwin <jhb@FreeBSD.org>
16971
16972 * aarch64-linux-nat.c
16973 (aarch64_linux_nat_target::thread_architecture): Adjust.
16974 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16975 (task_command_1): Likewise.
16976 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16977 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16978 (aix_thread_target::store_registers)
16979 (aix_thread_target::thread_alive): Adjust.
16980 * amd64-fbsd-tdep.c: Include "inferior.h".
16981 (amd64fbsd_get_thread_local_address): Pass down target.
16982 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16983 thread's gdbarch instead of target_gdbarch.
16984 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16985 get_last_target_status.
16986 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16987 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16988 inferiors.
16989 (update_inserted_breakpoint_locations): Skip if inferiors with no
16990 execution.
16991 (update_global_location_list): When handling moribund locations,
16992 find representative inferior for location's pspace, and use thread
16993 count of its process_stratum target.
16994 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16995 * bsd-uthread.c (bsd_uthread_target::wait): Use
16996 as_process_stratum_target and adjust thread_change_ptid and
16997 add_thread calls.
16998 (bsd_uthread_target::update_thread_list): Use
16999 as_process_stratum_target and adjust find_thread_ptid,
17000 thread_change_ptid and add_thread calls.
17001 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17002 find_thread_ptid call.
17003 * corelow.c (add_to_thread_list): Adjust add_thread call.
17004 (core_target_open): Adjust add_thread_silent and thread_count
17005 calls.
17006 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17007 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17008 * event-top.c (async_disconnect): Pop targets from all inferiors.
17009 * exec.c (add_target_sections): Push exec target on all inferiors
17010 sharing the program space.
17011 (remove_target_sections): Remove the exec target from all
17012 inferiors sharing the program space.
17013 (exec_on_vfork): New.
17014 * exec.h (exec_on_vfork): Declare.
17015 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17016 Pass it down.
17017 (fbsd_nat_target::update_thread_list): Adjust.
17018 (fbsd_nat_target::resume): Adjust.
17019 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17020 down.
17021 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17022 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17023 get_thread_arch_regcache call.
17024 * fork-child.c (gdb_startup_inferior): Pass target down to
17025 startup_inferior and set_executing.
17026 * gdbthread.h (struct process_stratum_target): Forward declare.
17027 (add_thread, add_thread_silent, add_thread_with_info)
17028 (in_thread_list): Add process_stratum_target parameter.
17029 (find_thread_ptid(inferior*, ptid_t)): New overload.
17030 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17031 parameter.
17032 (all_threads()): Delete overload.
17033 (all_threads, all_non_exited_threads): Add process_stratum_target
17034 parameter.
17035 (all_threads_safe): Use brace initialization.
17036 (thread_count): Add process_stratum_target parameter.
17037 (set_resumed, set_running, set_stop_requested, set_executing)
17038 (threads_are_executing, finish_thread_state): Add
17039 process_stratum_target parameter.
17040 (switch_to_thread): Use is_current_thread.
17041 * i386-fbsd-tdep.c: Include "inferior.h".
17042 (i386fbsd_get_thread_local_address): Pass down target.
17043 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17044 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17045 have_inferiors check.
17046 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17047 (inf_ptrace_target::attach): Adjust.
17048 * infcall.c (run_inferior_call): Adjust.
17049 * infcmd.c (run_command_1): Pass target to
17050 scoped_finish_thread_state.
17051 (proceed_thread_callback): Skip inferiors with no execution.
17052 (continue_command): Rename 'all_threads' local to avoid hiding
17053 'all_threads' function. Adjust get_last_target_status call.
17054 (prepare_one_step): Adjust set_running call.
17055 (signal_command): Use user_visible_resume_target. Compare thread
17056 pointers instead of inferior_ptid.
17057 (info_program_command): Adjust to pass down target.
17058 (attach_command): Mark target's 'thread_executing' flag.
17059 (stop_current_target_threads_ns): New, factored out from ...
17060 (interrupt_target_1): ... this. Switch inferior before making
17061 target calls.
17062 * inferior-iter.h
17063 (struct all_inferiors_iterator, struct all_inferiors_range)
17064 (struct all_inferiors_safe_range)
17065 (struct all_non_exited_inferiors_range): Filter on
17066 process_stratum_target too. Remove explicit.
17067 * inferior.c (inferior::inferior): Push dummy target on target
17068 stack.
17069 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17070 Add process_stratum_target parameter, and pass it down.
17071 (have_live_inferiors): Adjust.
17072 (switch_to_inferior_and_push_target): New.
17073 (add_inferior_command, clone_inferior_command): Handle
17074 "-no-connection" parameter. Use
17075 switch_to_inferior_and_push_target.
17076 (_initialize_inferior): Mention "-no-connection" option in
17077 the help of "add-inferior" and "clone-inferior" commands.
17078 * inferior.h: Include "process-stratum-target.h".
17079 (interrupt_target_1): Use bool.
17080 (struct inferior) <push_target, unpush_target, target_is_pushed,
17081 find_target_beneath, top_target, process_target, target_at,
17082 m_stack>: New.
17083 (discard_all_inferiors): Delete.
17084 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17085 (all_inferiors, all_non_exited_inferiors): Add
17086 process_stratum_target parameter.
17087 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17088 (target_last_proc_target): New global.
17089 (follow_fork_inferior): Push target on new inferior. Pass target
17090 to add_thread_silent. Call exec_on_vfork. Handle target's
17091 reference count.
17092 (follow_fork): Adjust get_last_target_status call. Also consider
17093 target.
17094 (follow_exec): Push target on new inferior.
17095 (struct execution_control_state) <target>: New field.
17096 (user_visible_resume_target): New.
17097 (do_target_resume): Call target_async.
17098 (resume_1): Set target's threads_executing flag. Consider resume
17099 target.
17100 (commit_resume_all_targets): New.
17101 (proceed): Also consider resume target. Skip threads of inferiors
17102 with no execution. Commit resumtion in all targets.
17103 (start_remote): Pass current inferior to wait_for_inferior.
17104 (infrun_thread_stop_requested): Consider target as well. Pass
17105 thread_info pointer to clear_inline_frame_state instead of ptid.
17106 (infrun_thread_thread_exit): Consider target as well.
17107 (random_pending_event_thread): New inferior parameter. Use it.
17108 (do_target_wait): Rename to ...
17109 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17110 down.
17111 (threads_are_resumed_pending_p, do_target_wait): New.
17112 (prepare_for_detach): Adjust calls.
17113 (wait_for_inferior): New inferior parameter. Handle it. Use
17114 do_target_wait_1 instead of do_target_wait.
17115 (fetch_inferior_event): Adjust. Switch to representative
17116 inferior. Pass target down.
17117 (set_last_target_status): Add process_stratum_target parameter.
17118 Save target in global.
17119 (get_last_target_status): Add process_stratum_target parameter and
17120 handle it.
17121 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17122 (context_switch): Check inferior_ptid == null_ptid before calling
17123 inferior_thread().
17124 (get_inferior_stop_soon): Pass down target.
17125 (wait_one): Rename to ...
17126 (poll_one_curr_target): ... this.
17127 (struct wait_one_event): New.
17128 (wait_one): New.
17129 (stop_all_threads): Adjust.
17130 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17131 event's target.
17132 (switch_back_to_stepped_thread): Also consider target.
17133 (print_stop_event): Update.
17134 (normal_stop): Update. Also consider the resume target.
17135 * infrun.h (wait_for_inferior): Remove declaration.
17136 (user_visible_resume_target): New declaration.
17137 (get_last_target_status, set_last_target_status): New
17138 process_stratum_target parameter.
17139 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17140 process_stratum_target parameter, and use it.
17141 (clear_inline_frame_state (thread_info*)): New.
17142 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17143 process_stratum_target parameter.
17144 (clear_inline_frame_state (thread_info*)): Declare.
17145 * linux-fork.c (delete_checkpoint_command): Pass target down to
17146 find_thread_ptid.
17147 (checkpoint_command): Adjust.
17148 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17149 instead of just tweaking inferior_ptid.
17150 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17151 (exit_lwp): Pass target down to find_thread_ptid.
17152 (attach_proc_task_lwp_callback): Pass target down to
17153 add_thread/set_running/set_executing.
17154 (linux_nat_target::attach): Pass target down to
17155 thread_change_ptid.
17156 (get_detach_signal): Pass target down to find_thread_ptid.
17157 Consider last target status's target.
17158 (linux_resume_one_lwp_throw, resume_lwp)
17159 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17160 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17161 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17162 (linux_nat_target::async_wait_fd): New.
17163 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17164 target down.
17165 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17166 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17167 * linux-thread-db.c (struct thread_db_info::process_target): New
17168 field.
17169 (add_thread_db_info): Save target.
17170 (get_thread_db_info): New process_stratum_target parameter. Also
17171 match target.
17172 (delete_thread_db_info): New process_stratum_target parameter.
17173 Also match target.
17174 (thread_from_lwp): Adjust to pass down target.
17175 (thread_db_notice_clone): Pass down target.
17176 (check_thread_db_callback): Pass down target.
17177 (try_thread_db_load_1): Always push the thread_db target.
17178 (try_thread_db_load, record_thread): Pass target down.
17179 (thread_db_target::detach): Pass target down. Always unpush the
17180 thread_db target.
17181 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17182 target down. Always unpush the thread_db target.
17183 (find_new_threads_callback, thread_db_find_new_threads_2)
17184 (thread_db_target::update_thread_list): Pass target down.
17185 (thread_db_target::pid_to_str): Pass current inferior down.
17186 (thread_db_target::get_thread_local_address): Pass target down.
17187 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17188 target down.
17189 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17190 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17191 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17192 (procfs_init_inferior): Rename to ...
17193 (procfs_target::procfs_init_inferior): ... this and adjust.
17194 (procfs_target::create_inferior, procfs_notice_thread)
17195 (procfs_do_thread_registers): Adjust.
17196 * ppc-fbsd-tdep.c: Include "inferior.h".
17197 (ppcfbsd_get_thread_local_address): Pass down target.
17198 * proc-service.c (ps_xfer_memory): Switch current inferior and
17199 program space as well.
17200 (get_ps_regcache): Pass target down.
17201 * process-stratum-target.c
17202 (process_stratum_target::thread_address_space)
17203 (process_stratum_target::thread_architecture): Pass target down.
17204 * process-stratum-target.h
17205 (process_stratum_target::threads_executing): New field.
17206 (as_process_stratum_target): New.
17207 * ravenscar-thread.c
17208 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17209 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17210 down.
17211 * record-btrace.c (record_btrace_target::info_record): Adjust.
17212 (record_btrace_target::record_method)
17213 (record_btrace_target::record_is_replaying)
17214 (record_btrace_target::fetch_registers)
17215 (get_thread_current_frame_id, record_btrace_target::resume)
17216 (record_btrace_target::wait, record_btrace_target::stop): Pass
17217 target down.
17218 * record-full.c (record_full_wait_1): Switch to event thread.
17219 Pass target down.
17220 * regcache.c (regcache::regcache)
17221 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17222 process_stratum_target parameter and handle it.
17223 (current_thread_target): New global.
17224 (get_thread_regcache): Add process_stratum_target parameter and
17225 handle it. Switch inferior before calling target method.
17226 (get_thread_regcache): Pass target down.
17227 (get_thread_regcache_for_ptid): Pass target down.
17228 (registers_changed_ptid): Add process_stratum_target parameter and
17229 handle it.
17230 (registers_changed_thread, registers_changed): Pass target down.
17231 (test_get_thread_arch_aspace_regcache): New.
17232 (current_regcache_test): Define a couple local test_target_ops
17233 instances and use them for testing.
17234 (readwrite_regcache): Pass process_stratum_target parameter.
17235 (cooked_read_test, cooked_write_test): Pass mock_target down.
17236 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17237 (get_thread_arch_aspace_regcache): Add process_stratum_target
17238 parameter.
17239 (regcache::target): New method.
17240 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17241 (regcache::registers_changed_ptid): Add process_stratum_target
17242 parameter.
17243 (regcache::m_target): New field.
17244 (registers_changed_ptid): Add process_stratum_target parameter.
17245 * remote.c (remote_state::supports_vCont_probed): New field.
17246 (remote_target::async_wait_fd): New method.
17247 (remote_unpush_and_throw): Add remote_target parameter.
17248 (get_current_remote_target): Adjust.
17249 (remote_target::remote_add_inferior): Push target.
17250 (remote_target::remote_add_thread)
17251 (remote_target::remote_notice_new_inferior)
17252 (get_remote_thread_info): Pass target down.
17253 (remote_target::update_thread_list): Skip threads of inferiors
17254 bound to other targets. (remote_target::close): Don't discard
17255 inferiors. (remote_target::add_current_inferior_and_thread)
17256 (remote_target::process_initial_stop_replies)
17257 (remote_target::start_remote)
17258 (remote_target::remote_serial_quit_handler): Pass down target.
17259 (remote_target::remote_unpush_target): New remote_target
17260 parameter. Unpush the target from all inferiors.
17261 (remote_target::remote_unpush_and_throw): New remote_target
17262 parameter. Pass it down.
17263 (remote_target::open_1): Check whether the current inferior has
17264 execution instead of checking whether any inferior is live. Pass
17265 target down.
17266 (remote_target::remote_detach_1): Pass down target. Use
17267 remote_unpush_target.
17268 (extended_remote_target::attach): Pass down target.
17269 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17270 (remote_target::append_resumption): Pass down target.
17271 (remote_target::append_pending_thread_resumptions)
17272 (remote_target::remote_resume_with_hc, remote_target::resume)
17273 (remote_target::commit_resume): Pass down target.
17274 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17275 (remote_target::interrupt_query)
17276 (remote_target::remove_new_fork_children)
17277 (remote_target::check_pending_events_prevent_wildcard_vcont)
17278 (remote_target::remote_parse_stop_reply)
17279 (remote_target::process_stop_reply): Pass down target.
17280 (first_remote_resumed_thread): New remote_target parameter. Pass
17281 it down.
17282 (remote_target::wait_as): Pass down target.
17283 (unpush_and_perror): New remote_target parameter. Pass it down.
17284 (remote_target::readchar, remote_target::remote_serial_write)
17285 (remote_target::getpkt_or_notif_sane_1)
17286 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17287 down target.
17288 (remote_target::mourn_inferior): Pass down target. Use
17289 remote_unpush_target.
17290 (remote_target::core_of_thread)
17291 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17292 (remote_target::pid_to_exec_file)
17293 (remote_target::thread_handle_to_thread_info): Pass down target.
17294 (remote_target::async_wait_fd): New.
17295 * riscv-fbsd-tdep.c: Include "inferior.h".
17296 (riscv_fbsd_get_thread_local_address): Pass down target.
17297 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17298 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17299 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17300 Adjust.
17301 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17302 * solib-svr4.c (enable_break): Pass down target.
17303 * spu-multiarch.c (parse_spufs_run): Pass down target.
17304 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17305 * target-delegates.c: Regenerate.
17306 * target.c (g_target_stack): Delete.
17307 (current_top_target): Return the current inferior's top target.
17308 (target_has_execution_1): Refer to the passed-in inferior's top
17309 target.
17310 (target_supports_terminal_ours): Check whether the initial
17311 inferior was already created.
17312 (decref_target): New.
17313 (target_stack::push): Incref/decref the target.
17314 (push_target, push_target, unpush_target): Adjust.
17315 (target_stack::unpush): Defref target.
17316 (target_is_pushed): Return bool. Adjust to refer to the current
17317 inferior's target stack.
17318 (dispose_inferior): Delete, and inline parts ...
17319 (target_preopen): ... here. Only dispose of the current inferior.
17320 (target_detach): Hold strong target reference while detaching.
17321 Pass target down.
17322 (target_thread_name): Add assertion.
17323 (target_resume): Pass down target.
17324 (target_ops::beneath, find_target_at): Adjust to refer to the
17325 current inferior's target stack.
17326 (get_dummy_target): New.
17327 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17328 has a thread running.
17329 (initialize_targets): Rename to ...
17330 (_initialize_target): ... this.
17331 * target.h: Include "gdbsupport/refcounted-object.h".
17332 (struct target_ops): Inherit refcounted_object.
17333 (target_ops::shortname, target_ops::longname): Make const.
17334 (target_ops::async_wait_fd): New method.
17335 (decref_target): Declare.
17336 (struct target_ops_ref_policy): New.
17337 (target_ops_ref): New typedef.
17338 (get_dummy_target): Declare function.
17339 (target_is_pushed): Return bool.
17340 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17341 (all_matching_threads_iterator::all_matching_threads_iterator):
17342 Handle filter target.
17343 * thread-iter.h (struct all_matching_threads_iterator, struct
17344 all_matching_threads_range, class all_non_exited_threads_range):
17345 Filter by target too. Remove explicit.
17346 * thread.c (threads_executing): Delete.
17347 (inferior_thread): Pass down current inferior.
17348 (clear_thread_inferior_resources): Pass down thread pointer
17349 instead of ptid_t.
17350 (add_thread_silent, add_thread_with_info, add_thread): Add
17351 process_stratum_target parameter. Use it for thread and inferior
17352 searches.
17353 (is_current_thread): New.
17354 (thread_info::deletable): Use it.
17355 (find_thread_ptid, thread_count, in_thread_list)
17356 (thread_change_ptid, set_resumed, set_running): New
17357 process_stratum_target parameter. Pass it down.
17358 (set_executing): New process_stratum_target parameter. Pass it
17359 down. Adjust reference to 'threads_executing'.
17360 (threads_are_executing): New process_stratum_target parameter.
17361 Adjust reference to 'threads_executing'.
17362 (set_stop_requested, finish_thread_state): New
17363 process_stratum_target parameter. Pass it down.
17364 (switch_to_thread): Also match inferior.
17365 (switch_to_thread): New process_stratum_target parameter. Pass it
17366 down.
17367 (update_threads_executing): Reimplement.
17368 * top.c (quit_force): Pop targets from all inferior.
17369 (gdb_init): Don't call initialize_targets.
17370 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17371 Declare.
17372 (windows_add_thread, windows_delete_thread): Adjust.
17373 (get_windows_debug_event): Rename to ...
17374 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17375 * tracefile-tfile.c (tfile_target_open): Pass down target.
17376 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17377 Forward declare.
17378 (switch_to_thread): Add process_stratum_target parameter.
17379 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17380 parameter. Use it.
17381 (mi_on_resume): Pass target down.
17382 * nat/fork-inferior.c (startup_inferior): Add
17383 process_stratum_target parameter. Pass it down.
17384 * nat/fork-inferior.h (startup_inferior): Add
17385 process_stratum_target parameter.
17386 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17387
17388 2020-01-10 Pedro Alves <palves@redhat.com>
17389
17390 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17391 directly. Instead find the first thread in the thread list and
17392 use switch_to_thread.
17393
17394 2020-01-10 Pedro Alves <palves@redhat.com>
17395
17396 * remote.c (remote_target::remote_add_inferior): Don't bind a
17397 process to the current inferior if the current inferior is already
17398 bound to a process.
17399
17400 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17401 Pedro Alves <palves@redhat.com>
17402
17403 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17404 If no process is specified, return null_ptid instead of
17405 inferior_ptid.
17406 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17407 TARGET_WAITKIND_SIGNALLED with no pid.
17408
17409 2020-01-10 Pedro Alves <palves@redhat.com>
17410
17411 * remote.c (first_remote_resumed_thread): New.
17412 (remote_target::wait_as): Use it as default event_ptid instead of
17413 inferior_ptid.
17414
17415 2020-01-10 Pedro Alves <palves@redhat.com>
17416
17417 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17418
17419 2020-01-10 Pedro Alves <palves@redhat.com>
17420
17421 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17422 not -1.
17423
17424 2020-01-10 Pedro Alves <palves@redhat.com>
17425
17426 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17427 ptid to get_last_target_status.
17428 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17429 ptid to get_last_target_status.
17430 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17431 get_last_target_status.
17432 (info_program_command): Don't pass a target_waitstatus to
17433 get_last_target_status.
17434 * infrun.c (init_wait_for_inferior): Use
17435 nullify_last_target_wait_ptid.
17436 (get_last_target_status): Handle nullptr arguments.
17437 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17438 (print_stop_event): Don't pass a ptid to get_last_target_status.
17439 (normal_stop): Don't pass a ptid to get_last_target_status.
17440 * infrun.h (get_last_target_status, set_last_target_status): Move
17441 comments here and update.
17442 (nullify_last_target_wait_ptid): Declare.
17443 * linux-fork.c (fork_load_infrun_state): Remove local extern
17444 declaration of nullify_last_target_wait_ptid.
17445 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17446 to get_last_target_status.
17447
17448 2020-01-10 Pedro Alves <palves@redhat.com>
17449
17450 * gdbthread.h (scoped_restore_current_thread)
17451 <dont_restore, restore, m_dont_restore>: Declare.
17452 * thread.c (thread_alive): Add assertion. Return bool.
17453 (switch_to_thread_if_alive): New.
17454 (prune_threads): Switch inferior/thread.
17455 (print_thread_info_1): Switch thread before calling target methods.
17456 (scoped_restore_current_thread::restore): New, factored out from
17457 ...
17458 (scoped_restore_current_thread::~scoped_restore_current_thread):
17459 ... this.
17460 (scoped_restore_current_thread::scoped_restore_current_thread):
17461 Add assertion.
17462 (thread_apply_all_command, thread_select): Use
17463 switch_to_thread_if_alive.
17464 * infrun.c (proceed, restart_threads, handle_signal_stop)
17465 (switch_back_to_stepped_thread): Switch current thread before
17466 calling target methods.
17467
17468 2020-01-10 Pedro Alves <palves@redhat.com>
17469
17470 * inferior.c (switch_to_inferior_no_thread): New function,
17471 factored out from ...
17472 (inferior_command): ... here.
17473 * inferior.h (switch_to_inferior_no_thread): Declare.
17474 * mi/mi-main.c (run_one_inferior): Use
17475 switch_to_inferior_no_thread.
17476
17477 2020-01-10 Pedro Alves <palves@redhat.com>
17478
17479 * infcmd.c (kill_command): Remove dead code.
17480
17481 2020-01-10 Pedro Alves <palves@redhat.com>
17482
17483 * remote.c (remote_target::mourn_inferior): No longer check
17484 whether the target is running.
17485
17486 2020-01-10 Pedro Alves <palves@redhat.com>
17487
17488 * corelow.c (core_target::has_execution): Change parameter type to
17489 inferior pointer.
17490 * inferior.c (number_of_live_inferiors): Use
17491 inferior::has_execution instead of target_has_execution_1.
17492 * inferior.h (inferior::has_execution): New.
17493 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17494 inferior::has_execution instead of target_has_execution_1.
17495 * process-stratum-target.c
17496 (process_stratum_target::has_execution): Change parameter type to
17497 inferior pointer. Check the inferior's PID instead of
17498 inferior_ptid.
17499 * process-stratum-target.h
17500 (process_stratum_target::has_execution): Change parameter type to
17501 inferior pointer.
17502 * record-full.c (record_full_core_target::has_execution): Change
17503 parameter type to inferior pointer.
17504 * target.c (target_has_execution_1): Change parameter type to
17505 inferior pointer.
17506 (target_has_execution_current): Adjust.
17507 * target.h (target_ops::has_execution): Change parameter type to
17508 inferior pointer.
17509 (target_has_execution_1): Change parameter type to inferior
17510 pointer. Change return type to bool.
17511 * tracefile.h (tracefile_target::has_execution): Change parameter
17512 type to inferior pointer.
17513
17514 2020-01-10 Pedro Alves <palves@redhat.com>
17515
17516 * exceptions.c (print_flush): Remove current_top_target() check.
17517
17518 2020-01-10 Pedro Alves <palves@redhat.com>
17519
17520 * remote.c (show_remote_exec_file): Show the current inferior's
17521 exec-file instead of the command variable's value.
17522
17523 2020-01-10 Pedro Alves <palves@redhat.com>
17524
17525 * record-full.c (record_full_resume_ptid): New global.
17526 (record_full_target::resume): Set it.
17527 (record_full_wait_1): Use record_full_resume_ptid instead of
17528 inferior_ptid.
17529
17530 2020-01-10 Pedro Alves <palves@redhat.com>
17531
17532 * gdbthread.h (scoped_restore_current_thread)
17533 <dont_restore, restore, m_dont_restore>: Declare.
17534 * thread.c (thread_alive): Add assertion. Return bool.
17535 (switch_to_thread_if_alive): New.
17536 (prune_threads): Switch inferior/thread.
17537 (print_thread_info_1): Switch thread before calling target methods.
17538 (scoped_restore_current_thread::restore): New, factored out from
17539 ...
17540 (scoped_restore_current_thread::~scoped_restore_current_thread):
17541 ... this.
17542 (scoped_restore_current_thread::scoped_restore_current_thread):
17543 Add assertion.
17544 (thread_apply_all_command, thread_select): Use
17545 switch_to_thread_if_alive.
17546
17547 2020-01-10 George Barrett <bob@bob131.so>
17548
17549 * stap-probe.c (stap_modify_semaphore): Don't check for null
17550 semaphores.
17551 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17552 for null semaphores.
17553
17554 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17555
17556 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17557 all source windows, and maintain horizontal scroll status while
17558 doing so.
17559
17560 2020-01-09 Tom Tromey <tom@tromey.com>
17561
17562 PR tui/18932:
17563 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17564 update_source_window, not print_source_lines.
17565
17566 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17567
17568 * tui/tui.c (tui_enable): Register tui hooks after calling
17569 tui_display_main.
17570
17571 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17572
17573 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17574
17575 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
17576
17577 * thread.c (print_thread_info_1): Fix indentation.
17578
17579 2020-01-09 Christian Biesinger <cbiesinger@google.com>
17580
17581 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17582 unique_xmalloc_ptr outside the if to always free the demangled name.
17583
17584 2020-01-08 Tom Tromey <tromey@adacore.com>
17585
17586 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17587 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17588 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17589 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17590 Remove.
17591 (section_offsets): New typedef.
17592 * symtab.c (fixup_section, get_msymbol_address): Update.
17593 * symmisc.c (dump_msymbols): Update.
17594 * symfile.h (relative_addr_info_to_section_offsets)
17595 (symfile_map_offsets_to_segments): Update.
17596 * symfile.c (build_section_addr_info_from_objfile)
17597 (init_objfile_sect_indices): Update.
17598 (struct place_section_arg): Change type of "offsets".
17599 (place_section): Update.
17600 (relative_addr_info_to_section_offsets): Change type of
17601 "section_offsets". Remove "num_sections" parameter.
17602 (default_symfile_offsets, syms_from_objfile_1)
17603 (set_objfile_default_section_offset): Update.
17604 (reread_symbols): No need to preserve section offsets by hand.
17605 (symfile_map_offsets_to_segments): Change type of "offsets".
17606 * stap-probe.c (relocate_address): Update.
17607 * stabsread.h (process_one_symbol): Update.
17608 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17609 (solib_target_relocate_section_addresses): Update.
17610 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17611 Update.
17612 * solib-frv.c (frv_relocate_main_executable): Update.
17613 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17614 * solib-aix.c (solib_aix_get_section_offsets): Change return
17615 type.
17616 (solib_aix_solib_create_inferior_hook): Update.
17617 * remote.c (remote_target::get_offsets): Update.
17618 * psymtab.c (find_pc_sect_psymtab): Update.
17619 * psympriv.h (struct partial_symbol) <address, text_low,
17620 text_high>: Update.
17621 * objfiles.h (obj_section_offset): Update.
17622 (struct objfile) <section_offsets>: Change type.
17623 <num_sections>: Remove.
17624 (objfile_relocate): Update.
17625 * objfiles.c (entry_point_address_query): Update
17626 (relocate_one_symbol): Change type of "section_offsets".
17627 (objfile_relocate1, objfile_relocate1): Change type of
17628 "new_offsets".
17629 (objfile_rebase1): Update.
17630 * mipsread.c (mipscoff_symfile_read): Update.
17631 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17632 parameter.
17633 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17634 (parse_external, psymtab_to_symtab_1): Update.
17635 * machoread.c (macho_symfile_offsets): Update.
17636 * ia64-tdep.c (ia64_find_unwind_table): Update.
17637 * hppa-tdep.c (read_unwind_info): Update.
17638 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17639 * dwarf2read.c (create_addrmap_from_index)
17640 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17641 (process_psymtab_comp_unit_reader, add_partial_symbol)
17642 (add_partial_subprogram, process_full_comp_unit)
17643 (read_file_scope, read_func_scope, read_lexical_block_scope)
17644 (read_call_site_scope, dwarf2_rnglists_process)
17645 (dwarf2_ranges_process, dwarf2_ranges_read)
17646 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17647 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17648 Update.
17649 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17650 Update.
17651 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17652 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17653 (process_one_symbol): Change type of "section_offsets".
17654 * ctfread.c (get_objfile_text_range): Update.
17655 * coffread.c (coff_symtab_read, enter_linenos)
17656 (process_coff_symbol): Update.
17657 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17658 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17659
17660 2020-01-08 Tom Tromey <tromey@adacore.com>
17661
17662 * dwarf2read.c (parse_macro_definition): Use std::string.
17663 (parse_macro_definition): Likewise.
17664
17665 2020-01-08 Tom Tromey <tromey@adacore.com>
17666
17667 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17668 (ATTR_ALLOC_CHUNK): Remove.
17669
17670 2020-01-08 Tom Tromey <tromey@adacore.com>
17671
17672 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17673
17674 2020-01-08 Tom Tromey <tromey@adacore.com>
17675
17676 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17677 (dwarf2_compute_name, open_dwo_file): Likewise.
17678 (process_enumeration_scope): Use std::vector.
17679 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17680 (partial_die_info::fixup, dwarf2_start_subfile)
17681 (guess_full_die_structure_name, dwarf2_name): Likewise.
17682 (determine_prefix): Update.
17683 (guess_full_die_structure_name): Make return type const.
17684 (partial_die_full_name): Return unique_xmalloc_ptr.
17685 (DW_FIELD_ALLOC_CHUNK): Remove.
17686
17687 2020-01-07 Tom Tromey <tromey@adacore.com>
17688
17689 PR build/24937:
17690 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17691
17692 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17693
17694 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17695
17696 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17697
17698 * stack.c (print_frame_info): Move disassemble_next_line code
17699 inside source_print block.
17700
17701 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17702
17703 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17704 gdb/signals.h, as we are now using native signal symbols.
17705
17706 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17707
17708 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17709 overflow by an early check of content vs threshold.
17710 * tui/tui-source.c (tui_source_window::line_is_displayed):
17711 Likewise.
17712
17713 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17714
17715 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17716
17717 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17718
17719 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17720 export table if no section contains it's RVA.
17721
17722 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17723
17724 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17725
17726 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
17727
17728 * source.c (print_source_lines_base): Set last_line_listed.
17729
17730 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
17731
17732 * tui/tui-disasm.c: Remove trailing spaces.
17733
17734 2020-01-06 Eli Zaretskii <eliz@gnu.org>
17735 Pedro Alves <palves@redhat.com>
17736
17737 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17738 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17739 (windows_gdb_signal_to_target): New function, uses the above
17740 enumeration to convert GDB internal signal codes to equivalent
17741 Windows codes.
17742 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17743 * windows-nat.c: Include "gdb_wait.h".
17744 (get_windows_debug_event): Extract the fatal exception from the
17745 exit status and convert to the equivalent Posix signal number.
17746 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17747 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17748 * gdbsupport/gdb_wait.c: New file, implements
17749 windows_status_to_termsig.
17750 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17751 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17752
17753 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17754
17755 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17756 show_layout.
17757
17758 2020-01-05 Luis Machado <luis.machado@linaro.org>
17759
17760 * aarch64-linux-nat.c
17761 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17762 and bfd_mach_aarch64.
17763
17764 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17765
17766 * ui-file.c (stdio_file::can_emit_style_escape)
17767 (tee_file::can_emit_style_escape): Ensure style is used also on
17768 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17769 to gdb_stdout.
17770 * main.c (set_gdb_data_directory): Use file style to output the
17771 warning that the given pathname is not a directory.
17772 * top.c (show_history_filename, gdb_safe_append_history)
17773 (show_gdb_datadir): Use file style.
17774
17775 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17776
17777 * solib-target.c (struct lm_info_target):
17778 Change offsets to be a unique_xmalloc_ptr.
17779 (solib_target_relocate_section_addresses): Update.
17780
17781 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
17782
17783 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17784
17785 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17786
17787 * MAINTAINERS (Write After Approval): Add myself.
17788
17789 2020-01-02 Luis Machado <luis.machado@linaro.org>
17790
17791 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17792 Cell BE architecture.
17793 * target.h (struct target_ops) <thread_architecture>: Likewise.
17794
17795 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17796
17797 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17798
17799 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
17800
17801 * MAINTAINERS (Write After Approval): Add myself.
17802
17803 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17804
17805 * gdbarch.sh: Update copyright year range of generated files.
17806
17807 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17808
17809 Update copyright year range in all GDB files.
17810
17811 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17812
17813 * copyright.py: Convert to Python 3.
17814
17815 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17816
17817 * copyright.py: Adapt after move of gnulib directory from gdb
17818 directory to toplevel directory.
17819
17820 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17821
17822 * copyright.py (main): Exit if run from the wrong directory.
17823
17824 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17825
17826 * top.c (print_gdb_version): Change copyright year to 2020.
17827
17828 2020-01-01 Joel Brobecker <brobecker@adacore.com>
17829
17830 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
17831
17832 For older changes see ChangeLog-2019.
17833 \f
17834 Local Variables:
17835 mode: change-log
17836 left-margin: 8
17837 fill-column: 74
17838 version-control: never
17839 coding: utf-8
17840 End:
This page took 0.367263 seconds and 5 git commands to generate.