sim: pru: Add support for LMBD instruction
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1350c3b4
SM
12020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
4 comment.
5
6f738b01
SM
62020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * dwarf2/read.c (dwarf_read_debug_printf,
9 dwarf_read_debug_printf_v): New macros, use throughout the file.
10
10c19fad
SV
112020-11-12 Shahab Vahedi <shahab@synopsys.com>
12
13 * arc-linux-tdep.c (collect_register): Populate "eret" by
14 "pc" value from the regcache when asked for "pc" value.
15
1f2624a3
TT
162020-11-12 Tom Tromey <tom@tromey.com>
17
18 PR rust/26799:
19 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
20 exist.
21
ab33b152
AB
222020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
23
24 * features/Makefile (XMLTOC): Add rx.xml.
25 (FEATURE_XMLFILES): Remove rx.xml.
26 (FEATURE_CFILES rule): Pass '-single-feature' flag.
27 * features/rx.c: Regenerate.
28 * features/rx.xml: Wrap in `target` tags, and reindent.
29 * target-descriptions.c (struct maint_print_c_tdesc_options): New
30 structure.
31 (maint_print_c_tdesc_opt_def): New typedef.
32 (maint_print_c_tdesc_opt_defs): New static global.
33 (make_maint_print_c_tdesc_options_def_group): New function.
34 (maint_print_c_tdesc_cmd): Make use of command line flags, only
35 print single feature C file for target descriptions containing a
36 single feature.
37 (maint_print_c_tdesc_cmd_completer): New function.
38 (_initialize_target_descriptions): Update call to register command
39 completer, and include command line flag in help text.
40
550820e1
AB
412020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
44 numbers.
45 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
46 enum values.
47
baf20f76
TT
482020-11-10 Tom Tromey <tom@tromey.com>
49
50 * value.h (internalvar_name): Update.
51 * value.c (internalvar_name): Make return type const.
52
caaece0e
TT
532020-11-10 Tom Tromey <tom@tromey.com>
54
55 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
56 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
57 const.
58
8e20b4be
TT
592020-11-10 Tom Tromey <tom@tromey.com>
60
61 * objc-lang.h (value_nsstring): Update.
62 * objc-lang.c (value_nsstring): Make "ptr" const.
63
86775fab
AB
642020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
65
66 * expprint.c (print_subexp_funcall): Increment expression position
67 after reading argument count.
68 * f-lang.c (print_subexp_f): Skip over opcode before calling
69 common function.
70 (dump_subexp_body_f): Likewise.
71
3fed4c0b
RG
722020-11-06 Romain Geissler <romain.geissler@amadeus.com>
73
74 PR python/26832
75 * configure: Regenerate.
76 * configure.ac: Check for python modules ctypes instead of
77 itertools.
78
ac3d4064
PA
792020-11-06 Pedro Alves <pedro@palves.net>
80
81 * macroexp.c (struct macro_buffer): Split in two classes. Add
82 uses adjusted.
83 (struct shared_macro_buffer): New, factored out from struct
84 macro_buffer.
85 (struct growable_macro_buffer): New, factored out from struct
86 macro_buffer.
87 (set_token, get_comment, get_identifier, get_pp_number)
88 (get_character_constant, get_string_literal, get_punctuator)
89 (get_next_token_for_substitution): Constify parameters.
90 (substitute_args): Constify locals.
91
606decb2
TT
922020-11-05 Tom Tromey <tom@tromey.com>
93
94 * dwarf2/read.c (read_cutu_die_from_dwo)
95 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
96 (build_type_psymtabs_1): Update.
97 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
98 parameter.
99 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
100 Don't read section. Add assert.
101
9c91c725
TT
1022020-11-04 Tom Tromey <tromey@adacore.com>
103
104 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
105
8d9fd3a1
TT
1062020-11-04 Tom Tromey <tromey@adacore.com>
107
108 * ada-typeprint.c (ada_print_type): Handle __T types.
109
d8f62e84
TT
1102020-11-04 Tom Tromey <tromey@adacore.com>
111
112 * dwarf2/read.c (add_partial_symbol, process_die):
113 Handle DW_TAG_array_type.
114 (is_type_tag_for_partial): Add "lang" parameter.
115 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
116
7ff5b937
TT
1172020-11-04 Tom Tromey <tromey@adacore.com>
118
119 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
120
10f6a3ad
TT
1212020-11-04 Tom Tromey <tromey@adacore.com>
122
123 * dwarf2/read.c (read_array_type): Only apply stride to innermost
124 array.
125
b72795a8
TT
1262020-11-04 Tom Tromey <tromey@adacore.com>
127
128 * gdbtypes.c (update_static_array_size): Handle bit stride.
129
24aa1b02
TT
1302020-11-04 Tom Tromey <tromey@adacore.com>
131
132 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
133
c9a28cbe
TT
1342020-11-04 Tom Tromey <tromey@adacore.com>
135
136 * ada-lang.c (ada_is_any_packed_array_type): New function.
137 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
138
57567375
TT
1392020-11-04 Tom Tromey <tromey@adacore.com>
140
141 * dwarf2/read.c (recognize_bound_expression)
142 (quirk_ada_thick_pointer): New functions.
143 (read_array_type): Call quirk_ada_thick_pointer.
144 (set_die_type): Add "skip_data_location" parameter.
145 (quirk_ada_thick_pointer): New function.
146 (process_structure_scope): Call quirk_ada_thick_pointer.
147 * ada-lang.c (ada_is_unconstrained_packed_array_type)
148 (decode_packed_array_bitsize): Handle thick pointers without
149 parallel types.
150 (ada_is_gnat_encoded_packed_array_type): Rename from
151 ada_is_packed_array_type.
152 (ada_is_constrained_packed_array_type): Update.
153 * ada-valprint.c (ada_val_print_gnat_array): Remove.
154 (ada_value_print_1): Use ada_get_decoded_value.
155
a7400e44
TT
1562020-11-04 Tom Tromey <tromey@adacore.com>
157
158 * ada-lang.c (recursively_update_array_bitsize): New function.
159 (decode_constrained_packed_array_type): Call it.
160
75fd6a26
TT
1612020-11-04 Tom Tromey <tromey@adacore.com>
162
163 * ada-lang.c (to_fixed_array_type): Error if
164 decode_constrained_packed_array_type returns NULL.
165
93f9561e
TT
1662020-11-04 Tom Tromey <tromey@adacore.com>
167
168 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
169
257e02d8
TT
1702020-11-02 Tom Tromey <tromey@adacore.com>
171
172 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
173 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
174 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
175 * amd64-ravenscar-thread.c: New file.
176 * amd64-ravenscar-thread.h: New file.
177 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
178 * configure.tgt (amd64_tobjs): Add ravenscar objects.
179
74d877e5
AB
1802020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
181
182 * main.c (execute_cmdargs): New function.
183 (captured_main_1): Make use of execute_cmdargs.
184
64aaad63
AB
1852020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
186
187 * NEWS: Mention changes to config file search path.
188 * main.c
189
5b3d3560
TT
1902020-11-02 Tom Tromey <tromey@adacore.com>
191
192 * python/python.c: Consolidate two HAVE_PYTHON blocks.
193 (python_GdbModuleDef): Move earlier. Now static.
194 (do_start_initialization): Consolidate some IS_PY3K blocks.
195
dda83cd7
SM
1962020-11-02 Simon Marchi <simon.marchi@efficios.com>
197
198 * aarch64-linux-tdep.c: Fix indentation.
199 * aarch64-ravenscar-thread.c: Fix indentation.
200 * aarch64-tdep.c: Fix indentation.
201 * aarch64-tdep.h: Fix indentation.
202 * ada-lang.c: Fix indentation.
203 * ada-lang.h: Fix indentation.
204 * ada-tasks.c: Fix indentation.
205 * ada-typeprint.c: Fix indentation.
206 * ada-valprint.c: Fix indentation.
207 * ada-varobj.c: Fix indentation.
208 * addrmap.c: Fix indentation.
209 * addrmap.h: Fix indentation.
210 * agent.c: Fix indentation.
211 * aix-thread.c: Fix indentation.
212 * alpha-bsd-nat.c: Fix indentation.
213 * alpha-linux-tdep.c: Fix indentation.
214 * alpha-mdebug-tdep.c: Fix indentation.
215 * alpha-nbsd-tdep.c: Fix indentation.
216 * alpha-obsd-tdep.c: Fix indentation.
217 * alpha-tdep.c: Fix indentation.
218 * amd64-bsd-nat.c: Fix indentation.
219 * amd64-darwin-tdep.c: Fix indentation.
220 * amd64-linux-nat.c: Fix indentation.
221 * amd64-linux-tdep.c: Fix indentation.
222 * amd64-nat.c: Fix indentation.
223 * amd64-obsd-tdep.c: Fix indentation.
224 * amd64-tdep.c: Fix indentation.
225 * amd64-windows-tdep.c: Fix indentation.
226 * annotate.c: Fix indentation.
227 * arc-tdep.c: Fix indentation.
228 * arch-utils.c: Fix indentation.
229 * arch/arm-get-next-pcs.c: Fix indentation.
230 * arch/arm.c: Fix indentation.
231 * arm-linux-nat.c: Fix indentation.
232 * arm-linux-tdep.c: Fix indentation.
233 * arm-nbsd-tdep.c: Fix indentation.
234 * arm-pikeos-tdep.c: Fix indentation.
235 * arm-tdep.c: Fix indentation.
236 * arm-tdep.h: Fix indentation.
237 * arm-wince-tdep.c: Fix indentation.
238 * auto-load.c: Fix indentation.
239 * auxv.c: Fix indentation.
240 * avr-tdep.c: Fix indentation.
241 * ax-gdb.c: Fix indentation.
242 * ax-general.c: Fix indentation.
243 * bfin-linux-tdep.c: Fix indentation.
244 * block.c: Fix indentation.
245 * block.h: Fix indentation.
246 * blockframe.c: Fix indentation.
247 * bpf-tdep.c: Fix indentation.
248 * break-catch-sig.c: Fix indentation.
249 * break-catch-syscall.c: Fix indentation.
250 * break-catch-throw.c: Fix indentation.
251 * breakpoint.c: Fix indentation.
252 * breakpoint.h: Fix indentation.
253 * bsd-uthread.c: Fix indentation.
254 * btrace.c: Fix indentation.
255 * build-id.c: Fix indentation.
256 * buildsym-legacy.h: Fix indentation.
257 * buildsym.c: Fix indentation.
258 * c-typeprint.c: Fix indentation.
259 * c-valprint.c: Fix indentation.
260 * c-varobj.c: Fix indentation.
261 * charset.c: Fix indentation.
262 * cli/cli-cmds.c: Fix indentation.
263 * cli/cli-decode.c: Fix indentation.
264 * cli/cli-decode.h: Fix indentation.
265 * cli/cli-script.c: Fix indentation.
266 * cli/cli-setshow.c: Fix indentation.
267 * coff-pe-read.c: Fix indentation.
268 * coffread.c: Fix indentation.
269 * compile/compile-cplus-types.c: Fix indentation.
270 * compile/compile-object-load.c: Fix indentation.
271 * compile/compile-object-run.c: Fix indentation.
272 * completer.c: Fix indentation.
273 * corefile.c: Fix indentation.
274 * corelow.c: Fix indentation.
275 * cp-abi.h: Fix indentation.
276 * cp-namespace.c: Fix indentation.
277 * cp-support.c: Fix indentation.
278 * cp-valprint.c: Fix indentation.
279 * cris-linux-tdep.c: Fix indentation.
280 * cris-tdep.c: Fix indentation.
281 * darwin-nat-info.c: Fix indentation.
282 * darwin-nat.c: Fix indentation.
283 * darwin-nat.h: Fix indentation.
284 * dbxread.c: Fix indentation.
285 * dcache.c: Fix indentation.
286 * disasm.c: Fix indentation.
287 * dtrace-probe.c: Fix indentation.
288 * dwarf2/abbrev.c: Fix indentation.
289 * dwarf2/attribute.c: Fix indentation.
290 * dwarf2/expr.c: Fix indentation.
291 * dwarf2/frame.c: Fix indentation.
292 * dwarf2/index-cache.c: Fix indentation.
293 * dwarf2/index-write.c: Fix indentation.
294 * dwarf2/line-header.c: Fix indentation.
295 * dwarf2/loc.c: Fix indentation.
296 * dwarf2/macro.c: Fix indentation.
297 * dwarf2/read.c: Fix indentation.
298 * dwarf2/read.h: Fix indentation.
299 * elfread.c: Fix indentation.
300 * eval.c: Fix indentation.
301 * event-top.c: Fix indentation.
302 * exec.c: Fix indentation.
303 * exec.h: Fix indentation.
304 * expprint.c: Fix indentation.
305 * f-lang.c: Fix indentation.
306 * f-typeprint.c: Fix indentation.
307 * f-valprint.c: Fix indentation.
308 * fbsd-nat.c: Fix indentation.
309 * fbsd-tdep.c: Fix indentation.
310 * findvar.c: Fix indentation.
311 * fork-child.c: Fix indentation.
312 * frame-unwind.c: Fix indentation.
313 * frame-unwind.h: Fix indentation.
314 * frame.c: Fix indentation.
315 * frv-linux-tdep.c: Fix indentation.
316 * frv-tdep.c: Fix indentation.
317 * frv-tdep.h: Fix indentation.
318 * ft32-tdep.c: Fix indentation.
319 * gcore.c: Fix indentation.
320 * gdb_bfd.c: Fix indentation.
321 * gdbarch.sh: Fix indentation.
322 * gdbarch.c: Re-generate
323 * gdbarch.h: Re-generate.
324 * gdbcore.h: Fix indentation.
325 * gdbthread.h: Fix indentation.
326 * gdbtypes.c: Fix indentation.
327 * gdbtypes.h: Fix indentation.
328 * glibc-tdep.c: Fix indentation.
329 * gnu-nat.c: Fix indentation.
330 * gnu-nat.h: Fix indentation.
331 * gnu-v2-abi.c: Fix indentation.
332 * gnu-v3-abi.c: Fix indentation.
333 * go32-nat.c: Fix indentation.
334 * guile/guile-internal.h: Fix indentation.
335 * guile/scm-cmd.c: Fix indentation.
336 * guile/scm-frame.c: Fix indentation.
337 * guile/scm-iterator.c: Fix indentation.
338 * guile/scm-math.c: Fix indentation.
339 * guile/scm-ports.c: Fix indentation.
340 * guile/scm-pretty-print.c: Fix indentation.
341 * guile/scm-value.c: Fix indentation.
342 * h8300-tdep.c: Fix indentation.
343 * hppa-linux-nat.c: Fix indentation.
344 * hppa-linux-tdep.c: Fix indentation.
345 * hppa-nbsd-nat.c: Fix indentation.
346 * hppa-nbsd-tdep.c: Fix indentation.
347 * hppa-obsd-nat.c: Fix indentation.
348 * hppa-tdep.c: Fix indentation.
349 * hppa-tdep.h: Fix indentation.
350 * i386-bsd-nat.c: Fix indentation.
351 * i386-darwin-nat.c: Fix indentation.
352 * i386-darwin-tdep.c: Fix indentation.
353 * i386-dicos-tdep.c: Fix indentation.
354 * i386-gnu-nat.c: Fix indentation.
355 * i386-linux-nat.c: Fix indentation.
356 * i386-linux-tdep.c: Fix indentation.
357 * i386-nto-tdep.c: Fix indentation.
358 * i386-obsd-tdep.c: Fix indentation.
359 * i386-sol2-nat.c: Fix indentation.
360 * i386-tdep.c: Fix indentation.
361 * i386-tdep.h: Fix indentation.
362 * i386-windows-tdep.c: Fix indentation.
363 * i387-tdep.c: Fix indentation.
364 * i387-tdep.h: Fix indentation.
365 * ia64-libunwind-tdep.c: Fix indentation.
366 * ia64-libunwind-tdep.h: Fix indentation.
367 * ia64-linux-nat.c: Fix indentation.
368 * ia64-linux-tdep.c: Fix indentation.
369 * ia64-tdep.c: Fix indentation.
370 * ia64-tdep.h: Fix indentation.
371 * ia64-vms-tdep.c: Fix indentation.
372 * infcall.c: Fix indentation.
373 * infcmd.c: Fix indentation.
374 * inferior.c: Fix indentation.
375 * infrun.c: Fix indentation.
376 * iq2000-tdep.c: Fix indentation.
377 * language.c: Fix indentation.
378 * linespec.c: Fix indentation.
379 * linux-fork.c: Fix indentation.
380 * linux-nat.c: Fix indentation.
381 * linux-tdep.c: Fix indentation.
382 * linux-thread-db.c: Fix indentation.
383 * lm32-tdep.c: Fix indentation.
384 * m2-lang.c: Fix indentation.
385 * m2-typeprint.c: Fix indentation.
386 * m2-valprint.c: Fix indentation.
387 * m32c-tdep.c: Fix indentation.
388 * m32r-linux-tdep.c: Fix indentation.
389 * m32r-tdep.c: Fix indentation.
390 * m68hc11-tdep.c: Fix indentation.
391 * m68k-bsd-nat.c: Fix indentation.
392 * m68k-linux-nat.c: Fix indentation.
393 * m68k-linux-tdep.c: Fix indentation.
394 * m68k-tdep.c: Fix indentation.
395 * machoread.c: Fix indentation.
396 * macrocmd.c: Fix indentation.
397 * macroexp.c: Fix indentation.
398 * macroscope.c: Fix indentation.
399 * macrotab.c: Fix indentation.
400 * macrotab.h: Fix indentation.
401 * main.c: Fix indentation.
402 * mdebugread.c: Fix indentation.
403 * mep-tdep.c: Fix indentation.
404 * mi/mi-cmd-catch.c: Fix indentation.
405 * mi/mi-cmd-disas.c: Fix indentation.
406 * mi/mi-cmd-env.c: Fix indentation.
407 * mi/mi-cmd-stack.c: Fix indentation.
408 * mi/mi-cmd-var.c: Fix indentation.
409 * mi/mi-cmds.c: Fix indentation.
410 * mi/mi-main.c: Fix indentation.
411 * mi/mi-parse.c: Fix indentation.
412 * microblaze-tdep.c: Fix indentation.
413 * minidebug.c: Fix indentation.
414 * minsyms.c: Fix indentation.
415 * mips-linux-nat.c: Fix indentation.
416 * mips-linux-tdep.c: Fix indentation.
417 * mips-nbsd-tdep.c: Fix indentation.
418 * mips-tdep.c: Fix indentation.
419 * mn10300-linux-tdep.c: Fix indentation.
420 * mn10300-tdep.c: Fix indentation.
421 * moxie-tdep.c: Fix indentation.
422 * msp430-tdep.c: Fix indentation.
423 * namespace.h: Fix indentation.
424 * nat/fork-inferior.c: Fix indentation.
425 * nat/gdb_ptrace.h: Fix indentation.
426 * nat/linux-namespaces.c: Fix indentation.
427 * nat/linux-osdata.c: Fix indentation.
428 * nat/netbsd-nat.c: Fix indentation.
429 * nat/x86-dregs.c: Fix indentation.
430 * nbsd-nat.c: Fix indentation.
431 * nbsd-tdep.c: Fix indentation.
432 * nios2-linux-tdep.c: Fix indentation.
433 * nios2-tdep.c: Fix indentation.
434 * nto-procfs.c: Fix indentation.
435 * nto-tdep.c: Fix indentation.
436 * objfiles.c: Fix indentation.
437 * objfiles.h: Fix indentation.
438 * opencl-lang.c: Fix indentation.
439 * or1k-tdep.c: Fix indentation.
440 * osabi.c: Fix indentation.
441 * osabi.h: Fix indentation.
442 * osdata.c: Fix indentation.
443 * p-lang.c: Fix indentation.
444 * p-typeprint.c: Fix indentation.
445 * p-valprint.c: Fix indentation.
446 * parse.c: Fix indentation.
447 * ppc-linux-nat.c: Fix indentation.
448 * ppc-linux-tdep.c: Fix indentation.
449 * ppc-nbsd-nat.c: Fix indentation.
450 * ppc-nbsd-tdep.c: Fix indentation.
451 * ppc-obsd-nat.c: Fix indentation.
452 * ppc-ravenscar-thread.c: Fix indentation.
453 * ppc-sysv-tdep.c: Fix indentation.
454 * ppc64-tdep.c: Fix indentation.
455 * printcmd.c: Fix indentation.
456 * proc-api.c: Fix indentation.
457 * producer.c: Fix indentation.
458 * producer.h: Fix indentation.
459 * prologue-value.c: Fix indentation.
460 * prologue-value.h: Fix indentation.
461 * psymtab.c: Fix indentation.
462 * python/py-arch.c: Fix indentation.
463 * python/py-bpevent.c: Fix indentation.
464 * python/py-event.c: Fix indentation.
465 * python/py-event.h: Fix indentation.
466 * python/py-finishbreakpoint.c: Fix indentation.
467 * python/py-frame.c: Fix indentation.
468 * python/py-framefilter.c: Fix indentation.
469 * python/py-inferior.c: Fix indentation.
470 * python/py-infthread.c: Fix indentation.
471 * python/py-objfile.c: Fix indentation.
472 * python/py-prettyprint.c: Fix indentation.
473 * python/py-registers.c: Fix indentation.
474 * python/py-signalevent.c: Fix indentation.
475 * python/py-stopevent.c: Fix indentation.
476 * python/py-stopevent.h: Fix indentation.
477 * python/py-threadevent.c: Fix indentation.
478 * python/py-tui.c: Fix indentation.
479 * python/py-unwind.c: Fix indentation.
480 * python/py-value.c: Fix indentation.
481 * python/py-xmethods.c: Fix indentation.
482 * python/python-internal.h: Fix indentation.
483 * python/python.c: Fix indentation.
484 * ravenscar-thread.c: Fix indentation.
485 * record-btrace.c: Fix indentation.
486 * record-full.c: Fix indentation.
487 * record.c: Fix indentation.
488 * reggroups.c: Fix indentation.
489 * regset.h: Fix indentation.
490 * remote-fileio.c: Fix indentation.
491 * remote.c: Fix indentation.
492 * reverse.c: Fix indentation.
493 * riscv-linux-tdep.c: Fix indentation.
494 * riscv-ravenscar-thread.c: Fix indentation.
495 * riscv-tdep.c: Fix indentation.
496 * rl78-tdep.c: Fix indentation.
497 * rs6000-aix-tdep.c: Fix indentation.
498 * rs6000-lynx178-tdep.c: Fix indentation.
499 * rs6000-nat.c: Fix indentation.
500 * rs6000-tdep.c: Fix indentation.
501 * rust-lang.c: Fix indentation.
502 * rx-tdep.c: Fix indentation.
503 * s12z-tdep.c: Fix indentation.
504 * s390-linux-tdep.c: Fix indentation.
505 * score-tdep.c: Fix indentation.
506 * ser-base.c: Fix indentation.
507 * ser-mingw.c: Fix indentation.
508 * ser-uds.c: Fix indentation.
509 * ser-unix.c: Fix indentation.
510 * serial.c: Fix indentation.
511 * sh-linux-tdep.c: Fix indentation.
512 * sh-nbsd-tdep.c: Fix indentation.
513 * sh-tdep.c: Fix indentation.
514 * skip.c: Fix indentation.
515 * sol-thread.c: Fix indentation.
516 * solib-aix.c: Fix indentation.
517 * solib-darwin.c: Fix indentation.
518 * solib-frv.c: Fix indentation.
519 * solib-svr4.c: Fix indentation.
520 * solib.c: Fix indentation.
521 * source.c: Fix indentation.
522 * sparc-linux-tdep.c: Fix indentation.
523 * sparc-nbsd-tdep.c: Fix indentation.
524 * sparc-obsd-tdep.c: Fix indentation.
525 * sparc-ravenscar-thread.c: Fix indentation.
526 * sparc-tdep.c: Fix indentation.
527 * sparc64-linux-tdep.c: Fix indentation.
528 * sparc64-nbsd-tdep.c: Fix indentation.
529 * sparc64-obsd-tdep.c: Fix indentation.
530 * sparc64-tdep.c: Fix indentation.
531 * stabsread.c: Fix indentation.
532 * stack.c: Fix indentation.
533 * stap-probe.c: Fix indentation.
534 * stubs/ia64vms-stub.c: Fix indentation.
535 * stubs/m32r-stub.c: Fix indentation.
536 * stubs/m68k-stub.c: Fix indentation.
537 * stubs/sh-stub.c: Fix indentation.
538 * stubs/sparc-stub.c: Fix indentation.
539 * symfile-mem.c: Fix indentation.
540 * symfile.c: Fix indentation.
541 * symfile.h: Fix indentation.
542 * symmisc.c: Fix indentation.
543 * symtab.c: Fix indentation.
544 * symtab.h: Fix indentation.
545 * target-float.c: Fix indentation.
546 * target.c: Fix indentation.
547 * target.h: Fix indentation.
548 * tic6x-tdep.c: Fix indentation.
549 * tilegx-linux-tdep.c: Fix indentation.
550 * tilegx-tdep.c: Fix indentation.
551 * top.c: Fix indentation.
552 * tracefile-tfile.c: Fix indentation.
553 * tracepoint.c: Fix indentation.
554 * tui/tui-disasm.c: Fix indentation.
555 * tui/tui-io.c: Fix indentation.
556 * tui/tui-regs.c: Fix indentation.
557 * tui/tui-stack.c: Fix indentation.
558 * tui/tui-win.c: Fix indentation.
559 * tui/tui-winsource.c: Fix indentation.
560 * tui/tui.c: Fix indentation.
561 * typeprint.c: Fix indentation.
562 * ui-out.h: Fix indentation.
563 * unittests/copy_bitwise-selftests.c: Fix indentation.
564 * unittests/memory-map-selftests.c: Fix indentation.
565 * utils.c: Fix indentation.
566 * v850-tdep.c: Fix indentation.
567 * valarith.c: Fix indentation.
568 * valops.c: Fix indentation.
569 * valprint.c: Fix indentation.
570 * valprint.h: Fix indentation.
571 * value.c: Fix indentation.
572 * value.h: Fix indentation.
573 * varobj.c: Fix indentation.
574 * vax-tdep.c: Fix indentation.
575 * windows-nat.c: Fix indentation.
576 * windows-tdep.c: Fix indentation.
577 * xcoffread.c: Fix indentation.
578 * xml-syscall.c: Fix indentation.
579 * xml-tdesc.c: Fix indentation.
580 * xstormy16-tdep.c: Fix indentation.
581 * xtensa-config.c: Fix indentation.
582 * xtensa-linux-nat.c: Fix indentation.
583 * xtensa-linux-tdep.c: Fix indentation.
584 * xtensa-tdep.c: Fix indentation.
585
e1f57067
AB
5862020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
587 Craig Blackmore <craig.blackmore@embecosm.com>
588
589 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
590 as an unsigned value.
591
ae7754b2
TT
5922020-11-01 Tom Tromey <tom@tromey.com>
593
594 * dbxread.c (dbx_end_psymtab): Update.
595 * dwarf2/read.c (process_psymtab_comp_unit_reader)
596 (build_type_psymtabs_reader): Update.
597 * xcoffread.c (xcoff_end_psymtab): Update.
598 * ctfread.c (scan_partial_symbols): Update.
599 * psymtab.c (sort_pst_symbols): Remove.
600 (partial_symtab::end): Rename from end_psymtab_common. Inline
601 sort_pst_symbols.
602 * psympriv.h (struct partial_symtab) <end>: New method.
603 (end_psymtab_common): Don't declare.
604
0684bb51
TT
6052020-11-01 Tom Tromey <tom@tromey.com>
606
607 * symmisc.c (count_psyms): New function.
608 (print_objfile_statistics): Use it.
609 * psymtab.c (append_psymbol_to_list): Remove.
610 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
611 * objfiles.h (struct objstats) <n_psyms>: Remove.
612
089002bb
TT
6132020-11-01 Tom Tromey <tom@tromey.com>
614
615 * dbxread.c (dbx_end_psymtab): Update.
616 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
617 (build_type_psymtabs_reader): Update.
618 * xcoffread.c (xcoff_end_psymtab): Update.
619 * ctfread.c (scan_partial_symbols): Update.
620 * psympriv.h (end_psymtab_common): Update.
621 * psymtab.c (end_psymtab_common): Remove objfile parameter.
622 (sort_pst_symbols): Likewise.
623
525454d6
TT
6242020-11-01 Tom Tromey <tom@tromey.com>
625
626 * dbxread.c (dbx_symfile_read): Update.
627 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
628 * xcoffread.c (xcoff_initial_scan): Update.
629 * psympriv.h (init_psymbol_list): Don't declare.
630 * psymtab.c (init_psymbol_list): Remove.
631
60bd1d53
JB
6322020-11-01 Joel Brobecker <brobecker@adacore.com>
633
634 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
635 gnat_encoded_fixed_type_info. Update all callers.
636
db99d0d0
JB
6372020-11-01 Joel Brobecker <brobecker@adacore.com>
638
639 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
640 line too long.
641
75f24e86
JB
6422020-11-01 Joel Brobecker <brobecker@adacore.com>
643
644 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
645 cast_from_fixed. Update all callers.
646 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
647 Update all callers.
648 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
649 Update all callers.
650 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
651 ada_scaling_factor.
652 * ada-typeprint.c: Replace call to ada_scaling_factor by call
653 to print_gnat_encoded_fixed_point_type.
654 * ada-valprint.c: Likewise.
655
4f0469cd
AB
6562020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
657
658 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
659 (debug_prefixed_printf): Add check of debug_displaced flag.
660 * linux-nat.c (linux_nat_debug_printf): Add check of
661 debug_linux_nat flag.
662
17417fb0
SM
6632020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
664
665 * infrun.c (infrun_debug_printf_1): Remove.
666 (displaced_debug_printf_1): Remove.
667 (stop_all_threads): Use debug_prefixed_printf.
668 * infrun.h (infrun_debug_printf_1): Remove.
669 (infrun_debug_printf): Use debug_prefixed_printf.
670 (displaced_debug_printf_1): Remove.
671 (displaced_debug_printf): Use debug_prefixed_printf.
672 * linux-nat.c (linux_nat_debug_printf_1): Remove.
673 (linux_nat_debug_printf): Use debug_prefixed_printf.
674
ad6dba1c
SM
6752020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
676
677 * configure: Re-generate.
678 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
679 AC_LANG_PROGRAM.
680
b6fb30ed
SM
6812020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
682
683 * configure: Re-generate.
684
5164c117
SM
6852020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
686
687 * configure: Re-generate.
688
864ca435
SM
6892020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
690
691 * configure: Re-generate.
692
b9442ec1
SM
6932020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
694
695 * configure: Re-generate.
696
294f2697
SM
6972020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
698
699 * acinclude.m4: Modernize.
700 * configure: Re-generate.
701
5593a99a
SM
7022020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
703
704 * configure.ac: Modernize.
705 * configure: Re-generate.
706
e41fda1d
SM
7072020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
708
709 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
710 * configure: Re-generate.
711 * configure.ac: Remove AM_PROG_CC_STDC.
712
91e1a0ed
SM
7132020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
714
715 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
716 AC_CANONICAL_SYSTEM.
717 * configure: Re-generate.
718
136821d9
SM
7192020-10-30 Simon Marchi <simon.marchi@efficios.com>
720
721 * infrun.h (displaced_debug_printf): New macro. Replace
722 displaced debug prints throughout to use it.
723 (displaced_debug_printf_1): New declaration.
724 (displaced_step_dump_bytes): Return string, remove ui_file
725 parameter, update all callers.
726 * infrun.c (displaced_debug_printf_1): New function.
727 (displaced_step_dump_bytes): Return string, remove ui_file
728 parameter
729
aa2045e7
SM
7302020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
731
732 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
733
b1ec2735
TT
7342020-10-30 Tom Tromey <tromey@adacore.com>
735
736 * Makefile.in (stamp-init): Depend on config.status.
737
b78b3a29
TBA
7382020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
739
740 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
741
d70bdd3c
PA
7422020-10-30 Pedro Alves <pedro@palves.net>
743
744 * thread.c (lookup_selected_frame): Move ...
745 * frame.c (lookup_selected_frame): ... here.
746
79952e69
PA
7472020-10-30 Pedro Alves <pedro@palves.net>
748
749 * blockframe.c (block_innermost_frame): Use get_selected_frame.
750 * frame.c
751 (scoped_restore_selected_frame::scoped_restore_selected_frame):
752 Use save_selected_frame. Save language as well.
753 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
754 Use restore_selected_frame, and restore language as well.
755 (selected_frame_id, selected_frame_level): New.
756 (selected_frame): Update comments.
757 (save_selected_frame, restore_selected_frame): New.
758 (get_selected_frame): Use lookup_selected_frame.
759 (get_selected_frame_if_set): Delete.
760 (select_frame): Record selected_frame_level and selected_frame_id.
761 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
762 fields.
763 (get_selected_frame): Make 'message' parameter optional.
764 (get_selected_frame_if_set): Delete declaration.
765 (select_frame): Update comments.
766 (save_selected_frame, restore_selected_frame)
767 (lookup_selected_frame): Declare.
768 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
769 * infrun.c (struct infcall_control_state) <selected_frame_level>:
770 New field.
771 (save_infcall_control_state): Use save_selected_frame.
772 (restore_selected_frame): Delete.
773 (restore_infcall_control_state): Use restore_selected_frame.
774 * stack.c (select_frame_command_core, frame_command_core): Use
775 get_selected_frame.
776 * thread.c (restore_selected_frame): Rename to ...
777 (lookup_selected_frame): ... this and make extern. Select the
778 current frame if the frame level is -1.
779 (scoped_restore_current_thread::restore): Also restore the
780 language.
781 (scoped_restore_current_thread::~scoped_restore_current_thread):
782 Don't try/catch.
783 (scoped_restore_current_thread::scoped_restore_current_thread):
784 Save the language as well. Use save_selected_frame.
785
58103c33
SM
7862020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
787
788 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
789 documentation.
790 * gdbarch.h: Re-generate.
791
40a53766
SM
7922020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
793
794 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
795 parameter.
796 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
797 Likewise.
798 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
799 Likewise.
800 * arch-utils.c (default_displaced_step_hw_singlestep):
801 Likewise.
802 * arch-utils.h (default_displaced_step_hw_singlestep):
803 Likewise.
804 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
805 Likewise.
806 * s390-tdep.c (s390_displaced_step_hw_singlestep):
807 Likewise.
808 * gdbarch.c: Re-generate.
809 * gdbarch.h: Re-generate.
810 * infrun.c (resume_1): Adjust.
811
8407f91b
TT
8122020-10-29 Tom Tromey <tom@tromey.com>
813
814 * progspace.c (program_space::~program_space): Don't call
815 exec_close.
816
5008b3b2
TT
8172020-10-29 Tom Tromey <tom@tromey.com>
818
819 * exec.c (exec_target::close): Don't change current program
820 space.
821
d9eebde0
TT
8222020-10-29 Tom Tromey <tom@tromey.com>
823
824 * symfile.c (add_symbol_file_command): Update.
825 * exec.c (program_space::add_target_sections): Rename.
826 * symfile-mem.c (symbol_file_add_from_memory): Update.
827 * progspace.h (struct program_space) <add_target_sections>:
828 Declare new overload.
829 * exec.h (add_target_sections_of_objfile): Don't declare.
830
3769e227
TT
8312020-10-29 Tom Tromey <tom@tromey.com>
832
833 * solib.c (solib_map_sections): Update.
834 * exec.c (program_space::add_target_sections): Now a method.
835 (exec_file_attach): Update.
836 * exec.h (add_target_sections): Don't declare.
837 * progspace.h (struct program_space) <add_target_sections>:
838 Declare.
839
2a3f84af
TT
8402020-10-29 Tom Tromey <tom@tromey.com>
841
842 * progspace.h (struct program_space) <remove_target_sections>:
843 Declare.
844 * exec.c (program_space::remove_target_sections): Now a method.
845 * exec.h (remove_target_sections): Don't declare.
846
004eecfd
TT
8472020-10-29 Tom Tromey <tom@tromey.com>
848
849 * inferior.c (delete_inferior): Update.
850 * progspace.c (program_space::empty): Rename from
851 program_space_empty_p. Return bool.
852 * progspace.h (struct program_space) <empty>: New method.
853 (program_space_empty_p): Don't declare.
854
e39fb971
TT
8552020-10-29 Tom Tromey <tom@tromey.com>
856
857 * progspace.c (program_space::~program_space): Don't call
858 clear_program_space_solib_cache.
859 (program_space::clear_solib_cache): Rename from
860 clear_solib_cache.
861 * solib.c (handle_solib_event): Update.
862 * progspace.h (struct program_space) <clear_solib_cache>: New
863 method.
864 (clear_program_space_solib_cache): Don't declare.
865
a42d7dd8
TT
8662020-10-29 Tom Tromey <tom@tromey.com>
867
868 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
869 * target.c (info_target_command): Update.
870 * symfile.c (syms_from_objfile_1, finish_new_objfile)
871 (symbol_file_clear, reread_symbols): Update.
872 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
873 * stabsread.c (scan_file_globals): Update.
874 * solib.c (update_solib_list): Update.
875 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
876 (svr4_fetch_objfile_link_map, enable_break)
877 (svr4_relocate_main_executable)
878 (svr4_iterate_over_objfiles_in_search_order): Update.
879 * solib-frv.c (lm_base, enable_break)
880 (frv_relocate_main_executable): Update.
881 (main_got, frv_fdpic_find_canonical_descriptor): Update.
882 (frv_fetch_objfile_link_map): Update.
883 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
884 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
885 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
886 * remote.c (remote_target::get_offsets): Update.
887 (remote_target::start_remote)
888 (extended_remote_target::post_attach): Update.
889 * objfiles.c (entry_point_address_query): Update.
890 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
891 * minsyms.c (get_symbol_leading_char): Update.
892 * frame.c (inside_main_func): Update.
893 * progspace.h (symfile_objfile): Remove macro.
894
19f6550e
TT
8952020-10-29 Tom Tromey <tom@tromey.com>
896
897 * exec.c (exec_file_attach): Update.
898 * progspace.c (program_space::exec_close): Update.
899 * progspace.h (struct program_space) <ebfd>: Now a
900 gdb_bfd_ref_ptr.
901 <set_exec_bfd>: Change argument type.
902 <exec_bfd>: Update.
903
7e10abd1
TT
9042020-10-29 Tom Tromey <tom@tromey.com>
905
906 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
907 * symfile.c (reread_symbols): Update.
908 * symfile-mem.c (add_symbol_file_from_memory_command)
909 (add_vsyscall_page): Update.
910 * source-cache.c (source_cache::get_plain_source_lines): Update.
911 * solib-svr4.c (find_program_interpreter, elf_locate_base)
912 (svr4_current_sos_direct, svr4_exec_displacement)
913 (svr4_relocate_main_executable): Update.
914 (svr4_iterate_over_objfiles_in_search_order): Update.
915 * solib-frv.c (enable_break2, enable_break): Update.
916 * solib-dsbt.c (lm_base, enable_break): Update.
917 * solib-darwin.c (find_program_interpreter)
918 (darwin_solib_create_inferior_hook): Update.
919 * sol-thread.c (rw_common, ps_pdmodel): Update.
920 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
921 * remote.c (compare_sections_command)
922 (remote_target::trace_set_readonly_regions): Update.
923 * remote-sim.c (get_sim_inferior_data)
924 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
925 (gdbsim_target_open, gdbsim_target::files_info): Update.
926 * exec.h (exec_bfd): Remove macro.
927 * progspace.c (initialize_progspace): Update.
928 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
929 Update.
930 * nto-procfs.c (nto_procfs_target::post_attach)
931 (nto_procfs_target::create_inferior): Update.
932 * maint.c (maintenance_info_sections): Update.
933 * linux-thread-db.c (thread_db_target::get_thread_local_address):
934 Update.
935 * infcmd.c (post_create_inferior): Update.
936 * gcore.c (default_gcore_arch, default_gcore_target): Update.
937 (objfile_find_memory_regions): Update.
938 * exec.c (validate_exec_file, exec_file_attach)
939 (exec_read_partial_read_only, print_section_info): Update.
940 * corelow.c (core_target_open): Update.
941 * corefile.c (reopen_exec_file, validate_files): Update.
942 * arm-tdep.c (gdb_print_insn_arm): Update.
943 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
944 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
945 methods.
946
b55221ab
TT
9472020-10-29 Tom Tromey <tom@tromey.com>
948
949 * progspace.h (current_target_sections): Remove macro.
950 * solib-svr4.c (scan_dyntag): Update.
951 * solib-dsbt.c (scan_dyntag): Update.
952 * exec.c (exec_target::close): Update.
953 (add_target_sections, add_target_sections_of_objfile)
954 (remove_target_sections, exec_target::get_section_table)
955 (exec_target::files_info, set_section_command)
956 (exec_set_section_address, exec_target::has_memory)
957 (exec_target::has_memory): Update.
958
5a36e715
TT
9592020-10-29 Tom Tromey <tom@tromey.com>
960
961 * source-cache.c (source_cache::get_plain_source_lines): Use
962 current_program_space.
963 * corefile.c (reopen_exec_file): Use current_program_space.
964 * exec.c (exec_file_attach): Use current_program_space.
965 * exec.h (exec_bfd_mtime): Remove.
966
784c8592
TT
9672020-10-29 Tom Tromey <tom@tromey.com>
968
969 * gcore.c (default_gcore_mach): Remove.
970 (create_gcore_bfd): Update.
971
8a4f1402
TT
9722020-10-29 Tom Tromey <tom@tromey.com>
973
974 * progspace.c (program_space::exec_close): New method, from
975 exec_close in exec.c.
976 * exec.c (exec_close): Move to progspace.c.
977 (exec_target::close, exec_file_attach): Update.
978 * progspace.h (struct program_space) <exec_close>: Declare
979 method.
980
c20cb686
TT
9812020-10-29 Tom Tromey <tom@tromey.com>
982
983 * progspace.h (struct program_space) <exec_filename>: Rename from
984 pspace_exec_filename. Now a unique_xmalloc_ptr.
985 * inferior.c (print_selected_inferior): Update.
986 (print_inferior): Update.
987 * mi/mi-main.c (print_one_inferior): Update.
988 * exec.h (exec_filename): Remove macro.
989 * corefile.c (get_exec_file): Update.
990 * exec.c (exec_close): Update.
991 (exec_file_attach): Update.
992 * progspace.c (clone_program_space): Update.
993 (print_program_space): Update.
994
6be2a9ab
TT
9952020-10-29 Tom Tromey <tom@tromey.com>
996
997 * target-section.h (struct target_section): Add constructor.
998 * exec.c (build_section_table, add_target_sections_of_objfile):
999 Update.
1000 * corelow.c (core_target::build_file_mappings): Update.
1001
cfaa8f76
TBA
10022020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1003
1004 PR gdb/19318
1005 * inferior.c (detach_inferior_command): Restore the current thread.
1006 (kill_inferior_command): Ditto.
1007
1b00ef06
TV
10082020-10-28 Tom de Vries <tdevries@suse.de>
1009
1010 PR symtab/26772
1011 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1012 map, check it in the "best match" loop.
1013
7f40ce1a
SM
10142020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1015
1016 * m32c-tdep.c: Remove unused includes.
1017
5eb9e3f5
SM
10182020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1019
1020 * xtensa-tdep.c: Remove includes.
1021
b1d4d8d1
TBA
10222020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1023
1024 * breakpoint.c (struct condition_command_opts): New struct.
1025 (condition_command_option_defs): New static global.
1026 (make_condition_command_options_def_group): New function.
1027 (condition_completer): Update to consider the '-force' flag.
1028 (condition_command): Use gdb::option for the '-force' flag.
1029
bd24c5d6
TV
10302020-10-27 Tom de Vries <tdevries@suse.de>
1031
1032 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1033 symbols in section check.
1034
61eb46a4
TV
10352020-10-27 Tom de Vries <tdevries@suse.de>
1036
1037 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1038
733d554a
TBA
10392020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1040
1041 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1042 * breakpoint.c: Update the help text of the 'condition' and 'break'
1043 commands.
1044 (set_breakpoint_condition): Take a new bool parameter
1045 to control whether condition definition should be forced even when
1046 the condition expression is invalid in all of the current locations.
1047 (condition_command): Update the call to 'set_breakpoint_condition'.
1048 (find_condition_and_thread): Take the "-force-condition" flag into
1049 account.
1050 * linespec.c (linespec_keywords): Add "-force-condition" as an
1051 element.
1052 (FORCE_KEYWORD_INDEX): New #define.
1053 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1054 as a keyword.
1055 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1056 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1057 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1058 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1059
b5fa468f
TBA
10602020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1061
1062 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1063 * breakpoint.c (set_breakpoint_location_condition): New function.
1064 (set_breakpoint_condition): Disable a breakpoint location if parsing
1065 the condition string gives an error.
1066 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1067 (build_target_condition_list): Ditto.
1068 (build_target_command_list): Ditto.
1069 (build_bpstat_chain): Ditto.
1070 (print_one_breakpoint_location): Ditto.
1071 (print_one_breakpoint): Ditto.
1072 (breakpoint_1): Ditto.
1073 (bp_location::bp_location): Ditto.
1074 (locations_are_equal): Ditto.
1075 (update_breakpoint_locations): Ditto.
1076 (enable_disable_bp_num_loc): Ditto.
1077 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1078 (find_condition_and_thread_for_sals): New static function.
1079 (create_breakpoint): Call find_condition_and_thread_for_sals.
1080 (location_to_sals): Call find_condition_and_thread_for_sals instead
1081 of find_condition_and_thread.
1082
1c47ec3e
TV
10832020-10-26 Tom de Vries <tdevries@suse.de>
1084
1085 * dwarf2/read.c (process_full_comp_unit): Call
1086 dwarf2_find_base_address.
1087
6390859c
TT
10882020-10-26 Tom Tromey <tromey@adacore.com>
1089
1090 * gdbtypes.c (create_range_type): Revert previous patch. Add
1091 comment.
1092
d744f0f9
PA
10932020-10-26 Pedro Alves <pedro@palves.net>
1094
1095 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1096 (my_waitpid): Use gdb::handle_eintr.
1097
006811bc
SM
10982020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1099
1100 * acinclude.m4: Update ptrace.m4 path.
1101 * ptrace.m4: Moved to gdbsupport.
1102
c75e31a1
SM
11032020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1104
1105 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1106 instead of target_gdbarch.
1107
32495661
SM
11082020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1109
1110 * jit.c (jit_reader_load_command): Pass current inferior.
1111 (jit_inferior_init): Change parameter type to inferior, use it.
1112 (jit_inferior_created): Remove.
1113 (jit_inferior_created_hook): Pass inferior parameter down.
1114 (_initialize_jit): Use jit_inferior_created_hook instead of
1115 jit_inferior_created.
1116 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1117 * infrun.c (follow_exec): Pass inferior to
1118 jit_inferior_created_hook.
1119
3f66685e
SM
11202020-10-24 Simon Marchi <simon.marchi@efficios.com>
1121
1122 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1123 parameter and use it.
1124 (thread_db_inferior_created): Pass inferior argument.
1125
a0ff652f
SM
11262020-10-24 Simon Marchi <simon.marchi@efficios.com>
1127
1128 * aix-thread.c (aix_thread_inferior_created): Add inferior
1129 parameter.
1130 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1131 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1132 * jit.c (jit_inferior_created): Likewise.
1133 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1134 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1135 * observable.h (inferior_created): Likewise.
1136 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1137 * symfile-mem.c (add_vsyscall_page): Likewise.
1138 * infcmd.c (post_create_inferior): Pass inferior argument.
1139
3c67532c
JB
11402020-10-24 Joel Brobecker <brobecker@adacore.com>
1141
1142 GDB 10.1 released.
1143
8747316e
JB
11442020-10-23 Joel Brobecker <brobecker@adacore.com>
1145
1146 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1147 to ada_check_typedef.
1148
1a0ea399
AB
11492020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1150
1151 * f-exp.y (f_parse): Rename to...
1152 (f_language::parser): ...this.
1153 * f-lang.c (f_get_encoding): Rename to...
1154 (f_language::get_encoding): ...this.
1155 (f_op_print_tab): Rename to...
1156 (f_language::op_print_tab): ...this.
1157 (exp_descriptor_f): Rename to...
1158 (f_language::exp_descriptor_tab): ...this.
1159 (class f_language): Moved to f-lang.h.
1160 (f_language::language_arch_info): New function, moved out of class
1161 declaration.
1162 (f_language::search_name_hash): Likewise.
1163 (f_language::lookup_symbol_nonlocal): Likewise.
1164 (f_language::get_symbol_name_matcher_inner): Likewise.
1165 * f-lang.h: Add 'valprint.h' include.
1166 (class f_language): Moved here from f-lang.c.
1167 * f-typeprint.c (f_type_print_args): Delete commented out
1168 declaration.
1169 (f_print_typedef): Rename to...
1170 (f_language::print_typedef): ...this.
1171 (f_print_type): Rename to...
1172 (f_language::print_type): ...this.
1173 (f_type_print_varspec_prefix): Delete declaration and rename to...
1174 (f_language::f_type_print_varspec_prefix): ...this.
1175 (f_type_print_varspec_suffix): Delete declaration and rename to...
1176 (f_language::f_type_print_varspec_suffix): ...this.
1177 (f_type_print_base): Delete declaration and rename to...
1178 (f_language::f_type_print_base): ...this.
1179 * f-valprint.c (f_value_print_inner): Rename to...
1180 (f_language::value_print_inner): ...this.
1181 * parse.c: Delete 'f-lang.h' include.
1182
88cefd9b
AB
11832020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1184
1185 * language.h (language_defn::print_type): Add variable names in
1186 declaration, and update header comment.
1187
5399db93
AB
11882020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1189
1190 * ada-lang.c (ada_language::demangle): Rename to...
1191 (ada_language::demangle_symbol): ...this.
1192 * c-lang.c (cplus_language::demangle): Rename to...
1193 (cplus_language::demangle_symbol): ...this.
1194 * d-lang.c (d_language::demangle): Rename to...
1195 (d_language::demangle_symbol): ...this.
1196 * f-lang.c (f_language::demangle): Rename to...
1197 (f_language::demangle_symbol): ...this.
1198 * go-lang.c (go_language::demangle): Rename to...
1199 (go_language::demangle_symbol): ...this.
1200 * language.c (language_demangle): Update call to demangle_symbol.
1201 (auto_or_unknown_language::demangle): Rename to...
1202 (auto_or_unknown_language::demangle_symbol): ...this.
1203 * language.h (language_defn::demangle): Rename to...
1204 (language_defn::demangle_symbol): ...this.
1205 * objc-lang.c (objc_language::demangle): Rename to...
1206 (objc_language::demangle_symbol): ...this.
1207 * rust-lang.c (rust_language::demangle): Rename to...
1208 (rust_language::demangle_symbol): ...this.
1209
4b2f86ef
AB
12102020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1211
1212 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1213 (iterate_over_file_blocks): Replace use of macro with the macros
1214 definition.
1215
e74b39de
AB
12162020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1217
1218 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1219 * valprint.c (maybe_print_array_index): Replace use of macro with
1220 the macros definition.
1221
00c696a6
AB
12222020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1223
1224 * ada-lang.c (ada_language::print_array_index): Call value_print
1225 directly.
1226 * language.c (language_defn::print_array_index): Likewise.
1227 * language.h (LA_VALUE_PRINT): Delete.
1228 * valprint.c (value_print): Call value_print on the
1229 current_language directly.
1230
d3b67c56
AB
12312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1232
1233 * language.h (LA_PRINT_TYPEDEF): Delete.
1234 * typeprint.c (typedef_print): Call print_typedef directly on the
1235 current_language object.
1236
790e2a12
AB
12372020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1238
1239 * m2-exp.y (m2_parse): Rename to...
1240 (m2_language::parser): ...this. Update function signature.
1241 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1242 (m2_op_print): Rename to...
1243 (m2_language::op_print_tab): ...this, and make const.
1244 (exp_descriptor_modula2): Rename to...
1245 (m2_language::exp_descriptor_modula2): ...this.
1246 (class m2_language): Move to m2-lang.h.
1247 (m2_language::language_arch_info): New function, moved out of
1248 class declaration.
1249 (m2_language::printchar): New function, body from m2_printchar.
1250 (m2_language::printstr): New function, moved out of class
1251 declaration.
1252 (m2_language::emitchar): Likewise.
1253 * m2-lang.h (m2_parse): Delete declaration.
1254 (m2_print_typedef): Delete declaration.
1255 (m2_value_print_inner): Delete declaration.
1256 (class m2_language): Class declaration moved from m2-lang.c,
1257 larger functions are left in m2-lang.c.
1258 * m2-typeprint.c (m2_print_typedef): Rename to...
1259 (m2_language::print_typedef): ...this, and update function
1260 signature.
1261 * m2-valprint.c (m2_value_print_inner): Rename to...
1262 (m2_language::value_print_inner): ...this, replace use of
1263 LA_PRINT_STRING with a direct call to printstr member function,
1264 and update recursive call.
1265
b01175fc
AB
12662020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1267
1268 * language.c (default_is_string_type_p): Delete, implementation
1269 moved into auto_or_unknown_language::is_string_type_p.
1270 (unk_op_print_tab): Moved into
1271 auto_or_unknown_language::opcode_print_table.
1272 (unknown_language_arch_info): Delete, implementation moved into
1273 auto_or_unknown_language::language_arch_info.
1274 (class auto_or_unknown_language): New class, member functions
1275 copied from unknown_language class, with some updates.
1276 (class unknown_language): Most member functions moved into
1277 auto_or_unknown_language class. Inherit from
1278 auto_or_unknown_language class.
1279 (class auto_language): Inherit from auto_or_unknown_language.
1280 Delete most member functions.
1281
1a97fe8c
HD
12822020-10-22 Hannes Domani <ssbssa@yahoo.de>
1283
1284 * stabsread.c (read_member_functions): Remove gdb_assert.
1285
6b9d0dfd
HD
12862020-10-22 Hannes Domani <ssbssa@yahoo.de>
1287
1288 * gdbtypes.c (init_complex_type): Check target type name.
1289
4b4bb603
SM
12902020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1291
1292 * target-debug.h (target_debug_print_struct_target_ops_p):
1293 Remove.
1294 (target_debug_print_async_callback_ftype_p): Remove.
1295 (target_debug_print_struct_trace_state_variable_p): Remove.
1296 (target_debug_print_struct_traceframe_info_p): Remove.
1297 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1298 (target_debug_print_enum_btrace_format): Remove.
1299 (target_debug_print_enum_info_proc_what): Remove.
1300 (target_debug_print_thread_info_pp): Remove.
1301
24f5300a
SM
13022020-10-22 Simon Marchi <simon.marchi@efficios.com>
1303
1304 * target.h (struct target_ops) <make_corefile_notes>:
1305 Change return type to unique pointer.
1306 * target.c (dummy_make_corefile_notes): Likewise.
1307 * exec.c (struct exec_target) <make_corefile_notes>:
1308 Likewise.
1309 (exec_target::make_corefile_notes): Likewise.
1310 * procfs.c (class procfs_target) <make_corefile_notes>:
1311 Likewise.
1312 (procfs_do_thread_registers): Adjust to unique pointer.
1313 (struct procfs_corefile_thread_data): Add constructor.
1314 <note_data>: Change type to unique pointer.
1315 (procfs_corefile_thread_callback): Adjust to unique pointer.
1316 (procfs_target::make_corefile_notes): Change return type to
1317 unique pointer.
1318 * target-delegates.c: Re-generate.
1319 * gcore.c (write_gcore_file_1): Adjust.
1320 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1321 New.
1322
5fb4027f
TV
13232020-10-22 Tom de Vries <tdevries@suse.de>
1324
1325 * block.c (find_block_in_blockvector): Make sure the returned block
1326 contains pc.
1327
4a636814
SM
13282020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1329
1330 PR gdb/26693
1331 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1332 parameter.
1333 (load_cu): Pass existing CU.
1334 (process_imported_unit_die): Likewise.
1335 (follow_die_offset): Likewise.
1336
1bd57575
LM
13372020-10-22 Luis Machado <luis.machado@linaro.org>
1338
1339 * corelow.c (core_target::xfer_partial): Also check for an empty
1340 m_core_unavailable_mappings vector.
1341
6b4c676c
AB
13422020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1343
1344 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1345 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1346 * f-exp.y (arglist): Allow for a series of subranges.
1347 (subrange): Add cases for subranges with strides.
1348 * f-lang.c (value_f90_subarray): Catch use of array strides and
1349 throw an error.
1350 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1351
f2d8e4c5
AB
13522020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1353
1354 * expprint.c (print_subexp_standard): Change enum range_type to
1355 range_flag and rename variables to match.
1356 (dump_subexp_body_standard): Likewise.
1357 * expression.h (enum range_type): Rename to...
1358 (enum range_flag): ...this.
1359 (range_types): Rename to...
1360 (range_flags): ...this.
1361 * f-lang.c (value_f90_subarray): Change enum range_type to
1362 range_flag and rename variables to match.
1363 * parse.c (operator_length_standard): Likewise.
1364 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1365 range_type to range_flag.
1366 * rust-lang.c (rust_evaluate_funcall): Likewise.
1367 (rust_range): Likewise.
1368 (rust_compute_range): Likewise.
1369 (rust_subscript): Likewise.
1370
2f1b18db
AB
13712020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1372
1373 * expprint.c (print_subexp_standard): Update to reflect changes to
1374 enum range_type.
1375 (dump_subexp_body_standard): Likewise.
1376 * expression.h (enum range_type): Convert to a bit field enum, and
1377 make the enum unsigned.
1378 * f-exp.y (subrange): Update to reflect changes to enum
1379 range_type.
1380 * f-lang.c (value_f90_subarray): Likewise.
1381 * parse.c (operator_length_standard): Likewise.
1382 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1383 * rust-lang.c (rust_range): Likewise.
1384 (rust_compute_range): Likewise.
1385 (rust_subscript): Likewise.
1386
a46d1843
SM
13872020-10-21 Simon Marchi <simon.marchi@efficios.com>
1388
1389 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1390 (displaced_step_in_progress): Fix comment.
1391
c21f37a8
SM
13922020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1393
1394 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1395 * gdbarch.c: Re-generate.
1396 * gdbarch.h: Re-generate.
1397 * gcore.c (write_gcore_file_1): Adjust.
1398 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1399 constructor.
1400 <note_data>: Change type to unique pointer.
1401 <abort_iteration>: Change type to bool.
1402 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1403 (fbsd_collect_thread_registers): Return void, adjust.
1404 (struct fbsd_corefile_thread_data): Add construtor.
1405 <note_data>: Change type to unique pointer.
1406 (fbsd_corefile_thread): Adjust.
1407 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1408 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1409 to unique pointer, adjust.
1410 (struct linux_collect_regset_section_cb_data): Add constructor.
1411 <note_data>: Change type to unique pointer.
1412 <abort_iteration>: Change type to bool.
1413 (linux_collect_thread_registers): Return void, adjust.
1414 (struct linux_corefile_thread_data): Add constructor.
1415 <note_data>: Change type to unique pointer.
1416 (linux_corefile_thread): Adjust.
1417 (linux_make_corefile_notes): Return unique pointer, adjust.
1418
07fbbd01
SM
14192020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1420
1421 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1422 * gdbarch.c: Re-generate.
1423 * gdbarch.h: Re-generate.
1424 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1425 bool.
1426 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1427 Likewise.
1428 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1429 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1430 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1431 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1432
39535193
SM
14332020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1434
1435 * gdbarch.sh: Make generated predicates return bool.
1436 * gdbarch.c: Re-generate.
1437 * gdbarch.h: Re-generate.
1438
ad523d01
TT
14392020-10-20 Tom Tromey <tom@tromey.com>
1440
1441 * varobj-iter.h (struct varobj_item): Remove typedef.
1442
c4464ade
SM
14432020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1444
1445 * infrun.c (currently_stepping): Change int to bool
1446 (maybe_software_singlestep): Likewise.
1447 (show_stop_on_solib_events): Likewise.
1448 (stepping_past_nonsteppable_watchpoint): Likewise.
1449 (displaced_step_in_progress_any_inferior): Likewise.
1450 (displaced_step_in_progress_thread): Likewise.
1451 (keep_going_stepped_thread): Likewise.
1452 (thread_still_needs_step_over): Likewise.
1453 (start_step_over): Likewise.
1454 (do_target_resume): Likewise.
1455 (resume_1): Likewise.
1456 (clear_proceed_status): Likewise.
1457 (thread_still_needs_step_over_bp): Likewise.
1458 (proceed): Likewise.
1459 (switch_back_to_stepped_thread): Likewise.
1460 (adjust_pc_after_break): Likewise.
1461 (stepped_in_from): Likewise.
1462 (handle_stop_requested): Likewise.
1463 (handle_syscall_event): Likewise.
1464 (handle_no_resumed): Likewise.
1465 (handle_inferior_event): Likewise.
1466 (finish_step_over): Likewise.
1467 (handle_signal_stop): Likewise.
1468 (process_event_stop_test): Likewise.
1469
2eb20436
SM
14702020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1471
1472 * infrun.c (get_displaced_stepping_state): Fix comment.
1473
e0c45ded
AS
14742020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1475
1476 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1477
22cc388e
TT
14782020-10-19 Tom Tromey <tromey@adacore.com>
1479
1480 PR tui/26719
1481 * tui/tui-winsource.h (struct tui_source_window_base)
1482 <refresh_window>: Rename from refresh_pad.
1483 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1484 Rename from refresh_pad.
1485 (tui_source_window_base::show_source_content)
1486 (tui_source_window_base::do_scroll_horizontal): Update.
1487
3c6eb4d4
TBA
14882020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1489
1490 * thread.c (_initialize_thread): Fine-tune the help text of
1491 'info threads'.
1492
26703721
TBA
14932020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1494
1495 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1496
61c26be8
MS
14972020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1498
1499 * breakpoint.c (handle_jit_event): Add an argument, change how
1500 `jit_event_handler` is called.
1501
932539d7
TT
15022020-10-17 Tom Tromey <tom@tromey.com>
1503
1504 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1505 (scan_xcoff_symtab): Update.
1506 * psymtab.h (class psymtab_storage) <global_psymbols,
1507 static_psymbols, current_global_psymbols,
1508 current_static_psymbols>: Remove.
1509 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1510 (match_partial_symbol, lookup_partial_symbol): Update.
1511 (print_partial_symbols): Change parameters.
1512 (dump_psymtab, recursively_search_psymtabs)
1513 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1514 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1515 (concat): Remove.
1516 (end_psymtab_common): Simplify.
1517 (append_psymbol_to_list): Change parameters.
1518 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1519 (init_psymbol_list): Simplify.
1520 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1521 * psympriv.h (struct partial_symtab) <empty>: New method.
1522 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1523 Remove.
1524 <global_psymbols, static_psymbols>: New members.
1525 <add_psymbol>: New methods.
1526 (add_psymbol_to_list): Don't declare.
1527 (psymbol_placement): Move earlier.
1528 * mdebugread.c (parse_partial_symbols): Update.
1529 (handle_psymbol_enumerators): Change parameters.
1530 (mdebug_expand_psymtab): Update.
1531 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1532 (add_partial_symbol): Update.
1533 * dwarf2/index-write.c (write_psymbols): Change parameters.
1534 (write_one_signatured_type): Update.
1535 (recursively_count_psymbols): Update.
1536 (recursively_write_psymbols): Update.
1537 (class debug_names) <recursively_write_psymbols>: Update.
1538 <write_psymbols>: Change parameters.
1539 <write_one_signatured_type>: Update.
1540 * dbxread.c (read_dbx_symtab): Update.
1541 (dbx_end_psymtab): Use partial_symtab::empty.
1542 * ctfread.c (struct ctf_context) <pst>: New member.
1543 (create_partial_symtab): Set it.
1544 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1545 (scan_partial_symbols): Use the psymtab's context. Update.
1546
cfabbd35
TT
15472020-10-17 Tom Tromey <tom@tromey.com>
1548
1549 * valprint.c (generic_value_print): Remove comment.
1550 * m2-valprint.c (m2_value_print_inner): Remove comment.
1551 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1552 type.
1553
520596f2
TV
15542020-10-17 Tom de Vries <tdevries@suse.de>
1555
1556 PR symtab/26317
1557 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1558 symbol main.
1559
76547ab3
TV
15602020-10-14 Tom de Vries <tdevries@suse.de>
1561
1562 PR gdb/26733
1563 * solib.c (solib_contains_address_p): Handle
1564 'solib->sections == nullptr'.
1565
d3a07122
SM
15662020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1567
1568 PR gdb/26642
1569 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1570 target can't do async.
1571 * target.c (target_wait): Assert that we don't pass
1572 TARGET_WNOHANG to a target that can't async.
1573
1b71cfcf
KR
15742020-10-13 Kamil Rytarowski <n54@gmx.com>
1575
1576 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1577 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1578 * alpha-bsd-nat.c: Adjust include.
1579 * alpha-bsd-tdep.h: Adjust comment.
1580 * alpha-nbsd-tdep.c: Rename to ...
1581 * alpha-netbsd-tdep.c: ... this, adjust include.
1582 * amd64-nbsd-nat.c: Rename to ...
1583 * amd64-netbsd-nat.c: ... this, adjust include.
1584 * amd64-nbsd-tdep.c: Rename to ...
1585 * amd64-netbsd-tdep.c: ... this, adjust include.
1586 * amd64-tdep.h: Adjust include.
1587 * arm-nbsd-nat.c: Rename to ...
1588 * arm-netbsd-nat.c: ... this, adjust include.
1589 * arm-nbsd-tdep.c: Rename to ...
1590 * arm-netbsd-tdep.c: ... this, adjust include.
1591 * arm-nbsd-tdep.h: Rename to ...
1592 * arm-netbsd-tdep.h: ... this, adjust include.
1593 * configure.nat: Adjust file lists.
1594 * configure.tgt: Likewise.
1595 * hppa-nbsd-nat.c: Rename to ...
1596 * hppa-netbsd-nat.c: ... this, adjust include.
1597 * hppa-nbsd-tdep.c: Rename to ...
1598 * hppa-netbsd-tdep.c: ... this, adjust include.
1599 * i386-nbsd-nat.c: Rename to ...
1600 * i386-netbsd-nat.c: ... this, adjust include.
1601 * i386-nbsd-tdep.c: Rename to ...
1602 * i386-netbsd-tdep.c: ... this, adjust include.
1603 * m68k-bsd-nat.c: Adjust include.
1604 * mips-nbsd-nat.c: Rename to ...
1605 * mips-netbsd-nat.c: ... this, adjust include.
1606 * mips-nbsd-tdep.c: Rename to ...
1607 * mips-netbsd-tdep.c: ... this, adjust include.
1608 * mips-nbsd-tdep.h: Rename to ...
1609 * mips-netbsd-tdep.h: ... this.
1610 * nbsd-nat.c: Rename to ...
1611 * netbsd-nat.c: ... this, adjust include.
1612 * nbsd-nat.h: Rename to ...
1613 * netbsd-nat.h: ... this, adjust include.
1614 * nbsd-tdep.c: Rename to ...
1615 * netbsd-tdep.c: ... this, adjust include.
1616 * nbsd-tdep.h: Rename to ...
1617 * netbsd-tdep.h: ... this.
1618 * ppc-nbsd-nat.c: Rename to ...
1619 * ppc-netbsd-nat.c: ... this, adjust include.
1620 * ppc-nbsd-tdep.c: Rename to ...
1621 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1622 * ppc-nbsd-tdep.h: Rename to ...
1623 * ppc-netbsd-tdep.h: ... this.
1624 * sh-nbsd-nat.c: Rename to ...
1625 * sh-netbsd-nat.c: ... this, adjust include.
1626 * sh-nbsd-tdep.c: Rename to ...
1627 * sh-netbsd-tdep.c: ... this, adjust include.
1628 * sparc-nbsd-nat.c: Rename to ...
1629 * sparc-netbsd-nat.c: ... this.
1630 * sparc-nbsd-tdep.c: Rename to ...
1631 * sparc-netbsd-tdep.c: ... this, adjust include.
1632 * sparc64-nbsd-nat.c: Rename to ...
1633 * sparc64-netbsd-nat.c: ... this.
1634 * sparc64-nbsd-tdep.c: Rename to ...
1635 * sparc64-netbsd-tdep.c: ... this, adjust include.
1636 * sparc64-tdep.h: Adjust comment.
1637 * vax-bsd-nat.c: Adjust include.
1638 * vax-nbsd-tdep.c: Rename to ...
1639 * vax-netbsd-tdep.c: ... this, adjust include.
1640
d7a78e5c
TT
16412020-10-12 Tom Tromey <tom@tromey.com>
1642
1643 * target.h (struct target_ops) <get_section_table>: Update.
1644 (target_get_section_table): Update.
1645 * target.c (target_get_section_table, target_section_by_addr)
1646 (memory_xfer_partial_1): Update.
1647 * target-section.h (target_section_table): Now an alias.
1648 * target-delegates.c: Rebuild.
1649 * target-debug.h (target_debug_print_target_section_table_p):
1650 Rename from target_debug_print_struct_target_section_table_p.
1651 * symfile.c (build_section_addr_info_from_section_table): Update.
1652 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1653 * solib-svr4.c (scan_dyntag): Update.
1654 * solib-dsbt.c (scan_dyntag): Update.
1655 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1656 Update.
1657 * record-full.c (record_full_core_target::xfer_partial): Update.
1658 * progspace.h (struct program_space) <target_sections>: Update.
1659 * exec.h (print_section_info): Update.
1660 * exec.c (exec_target::close, build_section_table)
1661 (add_target_sections, add_target_sections_of_objfile)
1662 (remove_target_sections, exec_on_vfork)
1663 (section_table_available_memory)
1664 (section_table_xfer_memory_partial)
1665 (exec_target::get_section_table, exec_target::xfer_partial)
1666 (print_section_info, set_section_command)
1667 (exec_set_section_address, exec_target::has_memory): Update.
1668 * corelow.c (core_target::build_file_mappings)
1669 (core_target::xfer_partial, core_target::info_proc_mappings)
1670 (core_target::info_proc_mappings): Update.
1671 * bfd-target.c (class target_bfd): Update
1672
eda214ce
TT
16732020-10-12 Tom Tromey <tom@tromey.com>
1674
1675 * progspace.c (program_space::~program_space): Don't call
1676 clear_section_table.
1677 * exec.h (clear_section_table): Don't declare.
1678 * exec.c (exec_target::close): Update.
1679 (clear_section_table): Remove.
1680
91840ee3
TT
16812020-10-12 Tom Tromey <tom@tromey.com>
1682
1683 * exec.c (add_target_sections_of_objfile): Simplify.
1684
2d128614
TT
16852020-10-12 Tom Tromey <tom@tromey.com>
1686
1687 * solib.c (solib_map_sections): Update.
1688 * record-full.c (record_full_core_open_1): Update.
1689 * exec.h (build_section_table): Return a target_section_table.
1690 * exec.c (exec_file_attach): Update.
1691 (build_section_table): Return a target_section_table.
1692 * corelow.c (core_target::core_target): Update.
1693 * bfd-target.c (target_bfd::target_bfd): Update.
1694
bb2a6777
TT
16952020-10-12 Tom Tromey <tom@tromey.com>
1696
1697 * target.c (target_section_by_addr, memory_xfer_partial_1):
1698 Update.
1699 * target-section.h (struct target_section_table): Use
1700 std::vector.
1701 * symfile.h (build_section_addr_info_from_section_table): Take a
1702 target_section_table.
1703 * symfile.c (build_section_addr_info_from_section_table): Take a
1704 target_section_table.
1705 * solist.h (struct so_list) <sections>: Change type.
1706 <sections_end>: Remove.
1707 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1708 (solib_contains_address_p): Update.
1709 * solib-svr4.c (scan_dyntag): Update.
1710 * solib-dsbt.c (scan_dyntag): Update.
1711 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1712 Update.
1713 * record-full.c (record_full_core_start, record_full_core_end):
1714 Remove.
1715 (record_full_core_sections): New global.
1716 (record_full_core_open_1, record_full_core_target::xfer_partial):
1717 Update.
1718 * exec.h (build_section_table, section_table_xfer_memory_partial)
1719 (add_target_sections): Take a target_section_table.
1720 * exec.c (exec_file_attach, clear_section_table): Update.
1721 (resize_section_table): Remove.
1722 (build_section_table, add_target_sections): Take a
1723 target_section_table.
1724 (add_target_sections_of_objfile, remove_target_sections)
1725 (exec_on_vfork): Update.
1726 (section_table_available_memory): Take a target_section_table.
1727 (section_table_read_available_memory): Update.
1728 (section_table_xfer_memory_partial): Take a target_section_table.
1729 (print_section_info, set_section_command)
1730 (exec_set_section_address, exec_target::has_memory): Update.
1731 * corelow.c (class core_target) <m_core_section_table,
1732 m_core_file_mappings>: Remove braces.
1733 <~core_target>: Remove.
1734 (core_target::core_target): Update.
1735 (core_target::~core_target): Remove.
1736 (core_target::build_file_mappings)
1737 (core_target::xfer_memory_via_mappings)
1738 (core_target::xfer_partial, core_target::info_proc_mappings):
1739 Update.
1740 * bfd-target.c (target_bfd::xfer_partial): Update.
1741 (target_bfd::target_bfd): Update.
1742 (target_bfd::~target_bfd): Remove.
1743
7b466b10
TT
17442020-10-12 Tom Tromey <tom@tromey.com>
1745
1746 * target.h (struct target_section, struct target_section_table):
1747 Move to target-section.h.
1748 * target-section.h: New file.
1749
87a37e5e
PA
17502020-10-12 Pedro Alves <pedro@palves.net>
1751
1752 PR exp/26602
1753 * valops.c (struct struct_field_searcher): New.
1754 (update_search_result): Rename to ...
1755 (struct_field_searcher::update_result): ... this. Simplify
1756 prototype. Record all found fields.
1757 (do_search_struct_field): Rename to ...
1758 (struct_field_searcher::search): ... this. Simplify prototype.
1759 Maintain stack of visited baseclass path. Call update_result for
1760 fields too. Keep searching fields in baseclasses instead of
1761 stopping at the first found field.
1762 (search_struct_field): Use struct_field_searcher. When looking
1763 for fields, report ambiguous access attempts.
1764
9370fd51
AB
17652020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1766
1767 * frame.c (inside_main_func): Check full symbols as well as
1768 minimal symbols.
1769
59c8a30b
JB
17702020-10-09 Joel Brobecker <brobecker@adacore.com>
1771
1772 * ada-lang.c (advance_wild_match): Rewrite the function's
1773 description. Change the type of target0, t0 and t1 to char.
1774
7c184d33
TT
17752020-10-09 Tom Tromey <tromey@adacore.com>
1776
1777 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1778
5c4258f4
TT
17792020-10-09 Tom Tromey <tromey@adacore.com>
1780
1781 * ada-lang.h (ada_encode): Return std::string.
1782 * ada-lang.c (ada_encode_1): Return std::string.
1783 (ada_encode): Likewise.
1784 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1785 Update.
1786 * ada-exp.y (block_lookup, write_var_or_type): Update.
1787
3d87245c
HD
17882020-10-09 Hannes Domani <ssbssa@yahoo.de>
1789
1790 PR exp/26714
1791 * printcmd.c (print_formatted): Handle void results as
1792 unformatted prints.
1793
bbb826f5
AB
17942020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * arch/aarch32.c (aarch32_create_target_description): Release the
1797 target_desc_up as late as possible.
1798 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1799 * arch/amd64.c (amd64_create_target_description): Likewise.
1800 * arch/arc.c (arc_create_target_description): Return a
1801 target_desc_up, don't release it.
1802 * arch/arc.h (arc_create_target_description): Update declaration.
1803 (arc_lookup_target_description): Move target_desc_up into the
1804 cache, and return a borrowed pointer.
1805 * arch/arm.c (arm_create_target_description): Release the
1806 target_desc_up as late as possible.
1807 * arch/i386.c (i386_create_target_description): Likewise.
1808 * arch/riscv.h (riscv_create_target_description): Update
1809 declaration to match definition.
1810 * arch/tic6x.c (tic6x_create_target_description): Release the
1811 target_desc_up as late as possible.
1812
361cb219
AB
18132020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1814
1815 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1816 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1817
f5c4b229
JV
18182020-10-09 Jan Vrany <jan.vrany@labware.com>
1819
1820 * source.c (directory_command): Notify observers that "directories"
1821 parameter has changed.
1822
b2701685
TT
18232020-10-08 Tom Tromey <tom@tromey.com>
1824
1825 * cli/cli-cmds.c (print_disassembly): Style function name and
1826 addresses. Add _() wrappers.
1827
ada508b6
SV
18282020-10-08 Shahab Vahedi <shahab@synopsys.com>
1829
1830 * NEWS: Mention ARC support in GDBserver.
1831
51a948fd
AB
18322020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1833
1834 * arch/aarch32.c (aarch32_create_target_description): Release
1835 unique_ptr returned from allocate_target_description.
1836 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1837 * arch/amd64.c (amd64_create_target_description): Likewise.
1838 * arch/arc.c (arc_create_target_description): Likewise.
1839 * arch/arm.c (arm_create_target_description): Likewise.
1840 * arch/i386.c (i386_create_target_description): Likewise.
1841 * arch/riscv.c (riscv_create_target_description): Update return
1842 type. Handle allocate_target_description returning a unique_ptr.
1843 (riscv_lookup_target_description): Update to handle unique_ptr.
1844 * arch/tic6x.c (tic6x_create_target_description): Release
1845 unique_ptr returned from allocate_target_description.
1846 * features/microblaze-with-stack-protect.c: Regenerate.
1847 * features/microblaze.c: Regenerate.
1848 * features/mips-dsp-linux.c: Regenerate.
1849 * features/mips-linux.c: Regenerate.
1850 * features/mips64-dsp-linux.c: Regenerate.
1851 * features/mips64-linux.c: Regenerate.
1852 * features/nds32.c: Regenerate.
1853 * features/nios2.c: Regenerate.
1854 * features/or1k.c: Regenerate.
1855 * features/rs6000/powerpc-32.c: Regenerate.
1856 * features/rs6000/powerpc-32l.c: Regenerate.
1857 * features/rs6000/powerpc-403.c: Regenerate.
1858 * features/rs6000/powerpc-403gc.c: Regenerate.
1859 * features/rs6000/powerpc-405.c: Regenerate.
1860 * features/rs6000/powerpc-505.c: Regenerate.
1861 * features/rs6000/powerpc-601.c: Regenerate.
1862 * features/rs6000/powerpc-602.c: Regenerate.
1863 * features/rs6000/powerpc-603.c: Regenerate.
1864 * features/rs6000/powerpc-604.c: Regenerate.
1865 * features/rs6000/powerpc-64.c: Regenerate.
1866 * features/rs6000/powerpc-64l.c: Regenerate.
1867 * features/rs6000/powerpc-7400.c: Regenerate.
1868 * features/rs6000/powerpc-750.c: Regenerate.
1869 * features/rs6000/powerpc-860.c: Regenerate.
1870 * features/rs6000/powerpc-altivec32.c: Regenerate.
1871 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1872 * features/rs6000/powerpc-altivec64.c: Regenerate.
1873 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1874 * features/rs6000/powerpc-e500.c: Regenerate.
1875 * features/rs6000/powerpc-e500l.c: Regenerate.
1876 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1877 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1878 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1879 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1880 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1881 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1882 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1883 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1884 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1885 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1886 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1887 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1888 * features/rs6000/powerpc-vsx32.c: Regenerate.
1889 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1890 * features/rs6000/powerpc-vsx64.c: Regenerate.
1891 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1892 * features/rs6000/rs6000.c: Regenerate.
1893 * features/rx.c: Regenerate.
1894 * features/s390-gs-linux64.c: Regenerate.
1895 * features/s390-linux32.c: Regenerate.
1896 * features/s390-linux32v1.c: Regenerate.
1897 * features/s390-linux32v2.c: Regenerate.
1898 * features/s390-linux64.c: Regenerate.
1899 * features/s390-linux64v1.c: Regenerate.
1900 * features/s390-linux64v2.c: Regenerate.
1901 * features/s390-te-linux64.c: Regenerate.
1902 * features/s390-tevx-linux64.c: Regenerate.
1903 * features/s390-vx-linux64.c: Regenerate.
1904 * features/s390x-gs-linux64.c: Regenerate.
1905 * features/s390x-linux64.c: Regenerate.
1906 * features/s390x-linux64v1.c: Regenerate.
1907 * features/s390x-linux64v2.c: Regenerate.
1908 * features/s390x-te-linux64.c: Regenerate.
1909 * features/s390x-tevx-linux64.c: Regenerate.
1910 * features/s390x-vx-linux64.c: Regenerate.
1911 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1912 from allocate_target_description.
1913 * target-descriptions.c (allocate_target_description): Update
1914 return type.
1915 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1916 allocate_target_description.
1917
485c47e5
TT
19182020-10-07 Tom Tromey <tromey@adacore.com>
1919
1920 * unittests/search-memory-selftests.c: New file.
1921 * Makefile.in (SELFTESTS_SRCS): Add
1922 unittests/search-memory-selftests.c.
1923
3a135a91
TT
19242020-10-07 Tom Tromey <tromey@adacore.com>
1925
1926 PR gdb/16930:
1927 * findcmd.c (_initialize_mem_search): Mention that the range is
1928 inclusive.
1929
4a72de73
TT
19302020-10-07 Tom Tromey <tromey@adacore.com>
1931
1932 * target.h (simple_search_memory): Don't declare.
1933 * target.c (simple_search_memory): Move to gdbsupport.
1934 (default_search_memory): Update.
1935 * remote.c (remote_target::search_memory): Update.
1936
a038ffd8
SM
19372020-10-07 Simon Marchi <simon.marchi@efficios.com>
1938
1939 * Makefile.in (COMPILE): Add CXXFLAGS.
1940 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1941 (check-headers): Add CXXFLAGS.
1942
cc463201
AK
19432020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1944
1945 * arc-linux-tdep.h: New file.
1946 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1947 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1948 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1949 arc_linux_gregset, arc_linux_v2_regset,
1950 arc_linux_iterate_over_regset_sections,
1951 arc_linux_core_read_description): Implement.
1952 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1953 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1954 (arc_gdbarch_features_create): Add.
1955 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1956
e4bd363f
SV
19572020-10-07 Shahab Vahedi <shahab@synopsys.com>
1958
1959 * arch/arc.h: Rename "arc_gdbarch_features" to
1960 "arc_arch_features".
1961 * arc-tdep.h: Likewise.
1962 * arc-tdep.c: Likewise.
1963
b68bef99
TBA
19642020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1965
1966 * infcmd.c (attach_command): Remove the redundant call to
1967 `clear_proceed_status`.
1968
4641551a
KR
19692020-10-07 Kamil Rytarowski <n54@gmx.com>
1970
1971 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1972
91e5e8db
KR
19732020-10-07 Kamil Rytarowski <n54@gmx.com>
1974
1975 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1976 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1977 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1978
64c03bdb
SM
19792020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1980
1981 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1982 (_initialize_break_catch_sig): Don't allocate array.
1983
31a8f60f
AB
19842020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1985
1986 * symtab.c (find_pc_line): Return unmapped addresses when the
1987 requested address is also unmapped.
1988
9e6dbd8b
SM
19892020-10-05 Simon Marchi <simon.marchi@efficios.com>
1990
1991 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1992 tui/tui-out.h.
1993
a1d217e8
SM
19942020-10-05 Simon Marchi <simon.marchi@efficios.com>
1995
1996 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1997 type::is_vector instead of TYPE_VECTOR.
1998
7d144117
SM
19992020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2000
2001 * auto-load.c (auto_load_objfile_script_1): Don't use
2002 debugfile_holder as temporary variable when stripping drive
2003 letter.
2004
cd096ec8
HD
20052020-10-05 Hannes Domani <ssbssa@yahoo.de>
2006
2007 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2008 Add TYPE_CODE_COMPLEX.
2009 (amd64_windows_return_value): Fix types returned via XMM0.
2010
b58e7f72
AH
20112020-10-05 Alan Hayward <alan.hayward@arm.com>
2012
2013 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2014 AArch64/ARM maintainers.
2015
8d378f27
SM
20162020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2017
2018 * NEWS: Mention set/show debug event-loop.
2019
d5519913
TT
20202020-10-02 Tom Tromey <tromey@adacore.com>
2021
2022 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2023 REG_EXTENDED.
2024
18b67edc
SM
20252020-10-02 Simon Marchi <simon.marchi@efficios.com>
2026
2027 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2028 * procfs.c (procfs_inferior_created): Remove.
2029 (_initialize_procfs): Don't register procfs_inferior_created.
2030
6b01403b
SM
20312020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2032
2033 * async-event.c (invoke_async_signal_handlers): Add debug
2034 print.
2035 (check_async_event_handlers): Likewise.
2036 * event-top.c (show_debug_event_loop): New function.
2037 (_initialize_event_top): Register "set debug event-loop"
2038 setting.
2039
ba988419
SM
20402020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2041
2042 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2043 * debug.h: Remove.
2044 * infrun.c: Include gdbsupport/common-debug.h.
2045 * linux-nat.c: Likewise.
2046
db20ebdf
SM
20472020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2048
2049 * async-event.h (create_async_signal_handler): Add name
2050 parameter.
2051 (create_async_event_handler): Likewise.
2052 * async-event.c (struct async_signal_handler) <name>: New field.
2053 (struct async_event_handler) <name>: New field.
2054 (create_async_signal_handler): Assign name.
2055 (create_async_event_handler): Assign name.
2056 * event-top.c (async_init_signals): Pass name when creating
2057 handler.
2058 * infrun.c (_initialize_infrun): Likewise.
2059 * record-btrace.c (record_btrace_push_target): Likewise.
2060 * record-full.c (record_full_open): Likewise.
2061 * remote-notif.c (remote_notif_state_allocate): Likewise.
2062 * remote.c (remote_target::open_1): Likewise.
2063 * tui/tui-win.c (tui_initialize_win): Likewise.
2064
2554f6f5
SM
20652020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2066
2067 * async-event.c (initialize_async_signal_handlers): Pass name to
2068 add_file_handler
2069 * event-top.c (ui_register_input_event_handler): Likewise.
2070 * linux-nat.c (linux_nat_target::async): Likewise.
2071 * run-on-main-thread.c (_initialize_run_on_main_thread):
2072 Likewise
2073 * ser-base.c (reschedule): Likewise.
2074 (ser_base_async): Likewise.
2075 * tui/tui-io.c: Likewise.
2076 * top.h (struct ui) <num>: New field.
2077 * top.c (highest_ui_num): New variable.
2078 (ui::ui): Initialize num.
2079
a7aba266
SM
20802020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2081
2082 * observable.h <inferior_created>: Remove parameters. Update all
2083 listeners.
2084 * inferior.h (post_create_inferior): Remove target parameter.
2085 Update all callers.
2086
048fde1e 20872020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2088
2089 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2090 and DW_MACRO_undef_strx.
2091 (dwarf_decode_macros): Likewise
2092 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2093 which is the value of DW_AT_str_offsets_base.
2094 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2095 str_offsets_base.
2096
064280be
KR
20972020-10-01 Kamil Rytarowski <n54@gmx.com>
2098
2099 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2100
6ff33035
KR
21012020-10-01 Kamil Rytarowski <n54@gmx.com>
2102
2103 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2104 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2105
1eb6eb79
KR
21062020-10-01 Kamil Rytarowski <n54@gmx.com>
2107
2108 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2109
95eb9e54
TV
21102020-09-30 Tom de Vries <tdevries@suse.de>
2111
2112 PR symtab/26683
2113 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2114
cae21f8e
TT
21152020-09-30 Tom Tromey <tromey@adacore.com>
2116
2117 * dwarf2/read.c (handle_variant): Use constant_value.
2118
529908cb
TT
21192020-09-29 Tom Tromey <tom@tromey.com>
2120
2121 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2122 (read_file_scope, dwarf2_get_pc_bounds)
2123 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2124 (read_structure_type, handle_struct_member_die)
2125 (read_enumeration_type, read_array_type, read_set_type)
2126 (read_tag_pointer_type, read_tag_reference_type)
2127 (read_subroutine_type, read_base_type, read_subrange_type)
2128 (read_full_die_1, partial_die_info::read)
2129 (partial_die_info::read, by, new_symbol)
2130 (dwarf2_const_value_data, dwarf2_const_value_attr)
2131 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2132 (prepare_one_comp_unit): Update.
2133 * dwarf2/attribute.h (DW_UNSND): Remove.
2134
c45bc3f8
TT
21352020-09-29 Tom Tromey <tom@tromey.com>
2136
2137 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2138 (read_subroutine_type, partial_die_info::read)
2139 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2140 (dwarf2_add_member_fn): Update.
2141 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2142 * dwarf2/attribute.c (attribute::as_boolean): New method.
2143
23dca5c3
TT
21442020-09-29 Tom Tromey <tom@tromey.com>
2145
2146 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2147 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2148 method.
2149 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2150
52c14d11
TT
21512020-09-29 Tom Tromey <tom@tromey.com>
2152
2153 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2154 the attribute's form.
2155
e8e5c158
TT
21562020-09-29 Tom Tromey <tom@tromey.com>
2157
2158 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2159 (dwarf2_add_member_fn): Update.
2160 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2161 * dwarf2/attribute.c (attribute::defaulted): New method, from
2162 is_valid_DW_AT_defaulted.
2163
d4df075e
TT
21642020-09-29 Tom Tromey <tom@tromey.com>
2165
2166 * dwarf2/read.c (dw2_get_file_names_reader)
2167 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2168 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2169 (dwarf2_symbol_mark_computed): Use as_unsigned.
2170 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2171 method.
2172 <form_is_section_offset>: Update comment.
2173
bf23a268
TT
21742020-09-29 Tom Tromey <tom@tromey.com>
2175
2176 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2177 dwarf2_default_access_attribute. Look up attribute.
2178 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2179 Update.
2180
7a5f294d
TT
21812020-09-29 Tom Tromey <tom@tromey.com>
2182
2183 * dwarf2/read.c (skip_one_die): Update.
2184 (read_full_die_1): Change how reprocessing is done.
2185 (partial_die_info::read): Update.
2186 (read_attribute_value): Remove need_reprocess parameter.
2187 (read_attribute): Likewise.
2188 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2189 New method.
2190
36d378cf
TT
21912020-09-29 Tom Tromey <tom@tromey.com>
2192
2193 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2194 (dwarf2_const_value_attr, dump_die_shallow)
2195 (dwarf2_fetch_constant_bytes): Update.
2196 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2197 comment.
2198 <set_address>: New method.
2199 (DW_ADDR): Remove.
2200 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2201 (attribute::as_string, attribute::as_address): Add assert.
2202
fe56917a
TT
22032020-09-29 Tom Tromey <tom@tromey.com>
2204
2205 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2206 (read_attribute_reprocess, read_attribute_value): Update.
2207 (read_attribute): Clear requires_reprocessing.
2208 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2209 form_requires_reprocessing>: New methods.
2210 <string_init>: Clear requires_reprocessing.
2211 <set_unsigned_reprocess>: New method.
2212 <name>: Shrink by one bit.
2213 <requires_reprocessing>: New member.
2214 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2215 method.
2216
414ad644
TT
22172020-09-29 Tom Tromey <tom@tromey.com>
2218
2219 * dwarf2/read.c (read_attribute_value): Update.
2220 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2221 set_unsigned>: New methods.
2222 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2223
1bc397c5
TT
22242020-09-29 Tom Tromey <tom@tromey.com>
2225
2226 * dwarf2/read.c (get_alignment, read_array_order)
2227 (read_attribute_value, dwarf2_const_value_attr)
2228 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2229 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2230 New methods.
2231 (DW_SND): Remove.
2232
630ed6b9
TT
22332020-09-29 Tom Tromey <tom@tromey.com>
2234
2235 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2236 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2237 Update.
2238 * dwarf2/attribute.h (struct attribute) <as_signature,
2239 set_signature>: New methods.
2240 (DW_SIGNATURE): Remove.
2241
9d2246fc
TT
22422020-09-29 Tom Tromey <tom@tromey.com>
2243
2244 * dwarf2/read.c (read_call_site_scope)
2245 (handle_data_member_location, dwarf2_add_member_fn)
2246 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2247 (partial_die_info::read, read_attribute_value)
2248 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2249 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2250 (dwarf2_symbol_mark_computed): Update.
2251 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2252 methods.
2253 (DW_BLOCK): Remove.
2254 * dwarf2/attribute.c (attribute::form_is_block): Add
2255 DW_FORM_data16.
2256
c6481205
TT
22572020-09-29 Tom Tromey <tom@tromey.com>
2258
2259 * dwarf2/read.c (read_cutu_die_from_dwo)
2260 (read_attribute_reprocess, read_attribute_value, read_attribute)
2261 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2262 (dwarf2_fetch_constant_bytes): Update.
2263 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2264 <set_string_noncanonical, set_string_canonical>: New methods.
2265 <string_is_canonical>: Update comment.
2266 <canonical_string_p>: Add assert.
2267 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2268 * dwarf2/attribute.c (attribute::form_is_string): New method.
2269 (attribute::string): Use it.
2270
3b64bf15
TT
22712020-09-29 Tom Tromey <tom@tromey.com>
2272
2273 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2274 (dump_die_shallow): Use canonical_string_p.
2275 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2276 method.
2277
2c830f54
TT
22782020-09-29 Tom Tromey <tom@tromey.com>
2279
2280 * dwarf2/read.c (partial_die_info::read)
2281 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2282 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2283 attribute::as_string.
2284
6c412691
TT
22852020-09-29 Tom Tromey <tom@tromey.com>
2286
2287 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2288 DW_ADDR.
2289 (attribute::string): Don't use DW_STRING.
2290 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2291 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2292
95f982e5
TT
22932020-09-29 Tom Tromey <tom@tromey.com>
2294
2295 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2296 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2297 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2298 * dwarf2/attribute.h (struct attribute): Rename methods.
2299 * dwarf2/attribute.c (attribute::as_address): Rename from
2300 value_as_address.
2301 (attribute::as_string): Rename from value_as_string.
2302
f800b00e
TT
23032020-09-29 Tom Tromey <tom@tromey.com>
2304
2305 * dwarf2/read.c (partial_die_info::read) <case
2306 DW_AT_linkage_name>: Use value_as_string.
2307 (dwarf2_string_attr): Use value_as_string.
2308 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2309 method.
2310 * dwarf2/attribute.c (attribute::value_as_string): New method.
2311
de38d64a
PA
23122020-09-29 Pedro Alves <pedro@palves.net>
2313
2314 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2315 defined before using '#pragma GCC diagnostic' instead of checking
2316 __clang__.
2317
9aed480c
TT
23182020-09-28 Tom Tromey <tom@tromey.com>
2319
2320 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2321 (handle_signal_stop): Update.
2322 * procfs.c (procfs_target::insert_watchpoint): Update.
2323 * target.h (target_have_steppable_watchpoint): Now a function.
2324
8a3ecb79
TT
23252020-09-28 Tom Tromey <tom@tromey.com>
2326
2327 * infrun.c (set_schedlock_func): Update.
2328 * target.h (target_can_lock_scheduler): Now a function.
2329
55f6301a
TT
23302020-09-28 Tom Tromey <tom@tromey.com>
2331
2332 * inferior.h (class inferior) <has_execution>: Update.
2333 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2334 * valops.c (find_function_in_inferior)
2335 (value_allocate_space_in_inferior): Update.
2336 * top.c (kill_or_detach): Update.
2337 * target.c (target_preopen, set_target_permissions): Update.
2338 (target_has_execution_current): Remove.
2339 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2340 Update.
2341 * solib.c (update_solib_list, reload_shared_libraries): Update.
2342 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2343 * solib-dsbt.c (enable_break): Update.
2344 * score-tdep.c (score7_fetch_inst): Update.
2345 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2346 Update.
2347 * remote.c (remote_target::start_remote)
2348 (remote_target::remote_check_symbols, remote_target::open_1)
2349 (remote_target::remote_detach_1, remote_target::verify_memory)
2350 (remote_target::xfer_partial, remote_target::read_description)
2351 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2352 * record-full.c (record_full_open_1): Update.
2353 * record-btrace.c (record_btrace_target_open): Update.
2354 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2355 (value_nsstring): Update.
2356 * linux-thread-db.c (add_thread_db_info)
2357 (thread_db_find_new_threads_silently, check_thread_db_callback)
2358 (try_thread_db_load_1, record_thread): Update.
2359 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2360 Update.
2361 * linux-fork.c (checkpoint_command): Update.
2362 * infrun.c (set_non_stop, set_observer_mode)
2363 (check_multi_target_resumption, for_each_just_stopped_thread)
2364 (maybe_remove_breakpoints, normal_stop)
2365 (class infcall_suspend_state): Update.
2366 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2367 (info_program_command, attach_command): Update.
2368 * infcall.c (call_function_by_hand_dummy): Update.
2369 * inf-loop.c (inferior_event_handler): Update.
2370 * gcore.c (gcore_command, derive_heap_segment): Update.
2371 * exec.c (exec_file_command): Update.
2372 * eval.c (evaluate_subexp): Update.
2373 * compile/compile.c (compile_to_object): Update.
2374 * cli/cli-dump.c (restore_command): Update.
2375 * breakpoint.c (update_watchpoint)
2376 (update_inserted_breakpoint_locations)
2377 (insert_breakpoint_locations, get_bpstat_thread): Update.
2378 * target.h (target_has_execution): Remove macro.
2379 (target_has_execution_current): Don't declare.
2380 (target_has_execution): Rename from target_has_execution_1. Add
2381 argument default.
2382
05374cfd
TT
23832020-09-28 Tom Tromey <tom@tromey.com>
2384
2385 * mi/mi-main.c (exec_reverse_continue)
2386 (mi_cmd_list_target_features): Update.
2387 * infrun.c (set_exec_direction_func): Update.
2388 * target.c (default_execution_direction): Update.
2389 * reverse.c (exec_reverse_once): Update.
2390 * target.h (target_can_execute_reverse): Now a function.
2391
9dccd06e
TT
23922020-09-28 Tom Tromey <tom@tromey.com>
2393
2394 * tui/tui-regs.c (tui_get_register)
2395 (tui_data_window::show_registers): Update.
2396 * thread.c (scoped_restore_current_thread::restore)
2397 (scoped_restore_current_thread::scoped_restore_current_thread):
2398 Update.
2399 * regcache-dump.c (regcache_print): Update.
2400 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2401 Update.
2402 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2403 * mep-tdep.c (current_me_module, current_options): Update.
2404 * linux-thread-db.c (thread_db_load): Update.
2405 * infcmd.c (registers_info, info_vector_command)
2406 (info_float_command): Update.
2407 * ia64-tdep.c (ia64_frame_prev_register)
2408 (ia64_sigtramp_frame_prev_register): Update.
2409 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2410 * gcore.c (derive_stack_segment): Update.
2411 * frame.c (get_current_frame, has_stack_frames): Update.
2412 * findvar.c (language_defn::read_var_value): Update.
2413 * arm-tdep.c (arm_pc_is_thumb): Update.
2414 * target.c (target_has_registers): Rename from
2415 target_has_registers_1.
2416 * target.h (target_has_registers): Remove macro.
2417 (target_has_registers): Rename from target_has_registers_1.
2418
841de120
TT
24192020-09-28 Tom Tromey <tom@tromey.com>
2420
2421 * windows-tdep.c (tlb_make_value): Update.
2422 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2423 * thread.c (scoped_restore_current_thread::restore)
2424 (scoped_restore_current_thread::scoped_restore_current_thread)
2425 (thread_command): Update.
2426 * stack.c (backtrace_command_1, frame_apply_level_command)
2427 (frame_apply_all_command, frame_apply_command): Update.
2428 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2429 Update.
2430 * gcore.c (derive_stack_segment): Update.
2431 * frame.c (get_current_frame, has_stack_frames): Update.
2432 * auxv.c (info_auxv_command): Update.
2433 * ada-tasks.c (ada_build_task_list): Update.
2434 * target.c (target_has_stack): Rename from target_has_stack_1.
2435 * target.h (target_has_stack): Remove macro.
2436 (target_has_stack): Rename from target_has_stack_1.
2437
a739972c
TT
24382020-09-28 Tom Tromey <tom@tromey.com>
2439
2440 * target.c (target_has_memory): Rename from target_has_memory_1.
2441 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2442 * thread.c (scoped_restore_current_thread::restore)
2443 (scoped_restore_current_thread::scoped_restore_current_thread):
2444 Update.
2445 * frame.c (get_current_frame, has_stack_frames): Update.
2446 * target.h (target_has_memory): Remove macro.
2447 (target_has_memory): Rename from target_has_memory_1.
2448
5b8a4776
TT
24492020-09-28 Tom Tromey <tom@tromey.com>
2450
2451 * target.c (target_has_all_memory_1): Remove.
2452 * target.h (target_has_all_memory): Remove define.
2453 (target_has_all_memory_1): Don't declare.
2454
bd356ec6
SM
24552020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * ser-base.c: Adjust comments formatting.
2458
2c72d5e5
TT
24592020-09-27 Tom Tromey <tom@tromey.com>
2460
2461 PR tui/25342:
2462 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2463
35a98237
TT
24642020-09-27 Tom Tromey <tom@tromey.com>
2465
2466 PR tui/25342:
2467 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2468
9e820dec
TT
24692020-09-27 Tom Tromey <tom@tromey.com>
2470
2471 * unittests/tui-selftests.c: Update.
2472 * tui/tui-winsource.h (struct tui_source_window_base)
2473 <extra_margin, show_line_number, refresh_pad>: New methods.
2474 <m_max_length, m_pad>: New members.
2475 (tui_copy_source_line): Update.
2476 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2477 first_col, line_width, ndigits parameters. Add length.
2478 (tui_source_window_base::show_source_line): Write to pad. Line
2479 number now 0-based.
2480 (tui_source_window_base::refresh_pad): New method.
2481 (tui_source_window_base::show_source_content): Write to pad. Call
2482 refresh_pad.
2483 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2484 not refill.
2485 (tui_source_window_base::update_exec_info): Call
2486 show_line_number.
2487 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2488 method.
2489 <m_digits>: New member.
2490 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2491 and m_max_length.
2492 (tui_source_window::show_line_number): New method.
2493 * tui/tui-io.h (tui_puts): Fix comment.
2494 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2495 m_max_length.
2496
c15c15c8
TT
24972020-09-27 Tom Tromey <tom@tromey.com>
2498
2499 * tui/tui-winsource.c
2500 (tui_source_window_base::set_is_exec_point_at): Don't call
2501 show_source_line.
2502
149830c1
TT
25032020-09-27 Tom Tromey <tom@tromey.com>
2504
2505 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2506 method.
2507 <erase>: Update.
2508 <cursor_x, cursor_y>: Remove.
2509 <m_inner_window>: New member.
2510 (tui_py_window::rerender): Create inner window.
2511 (tui_py_window::output): Write to inner window.
2512
8f9929bb
GR
25132020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2514
2515 PR python/26586
2516 * cli/cli-script.c (execute_control_commands): don't set
2517 instream to nullptr here as this breaks the from_tty argument
2518 to gdb.execute in Python.
2519 (execute_user_command): set instream to nullptr here instead.
2520
956bdb59
SM
25212020-09-25 Simon Marchi <simon.marchi@efficios.com>
2522
2523 * infrun.h (infrun_debug_printf): Fix formatting.
2524 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2525
3b93626b
SJ
25262020-09-25 Saagar Jha <saagar@saagarjha.com>
2527
2528 * compile/compile-object-load.h (struct munmap_list): Add
2529 explicitly-defined move constructor.
2530
b551a89f
TT
25312020-09-24 Tom Tromey <tromey@adacore.com>
2532
2533 PR tui/26638:
2534 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2535 method.
2536 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2537 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2538 (tui_prev_win): Rewrite.
2539
99bb393f
HD
25402020-09-23 Hannes Domani <ssbssa@yahoo.de>
2541
2542 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2543 in WOW64 processes as SIGINT.
2544 * nat/windows-nat.h: Make wow64_process a shared variable.
2545 * windows-nat.c: Remove static wow64_process variable.
2546
20a5fcbd
TT
25472020-09-23 Tom Tromey <tom@tromey.com>
2548
2549 PR symtab/25470:
2550 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2551 offset and bit size.
2552 * printcmd.c (print_scalar_formatted): Handle zero-length
2553 integer.
2554 (print_scalar_formatted): Use bit_size_differs_p.
2555 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2556 constant.
2557 (union type_specific): <int_stuff>: New member.
2558 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2559 methods.
2560 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2561 TYPE_SPECIFIC_FIELD.
2562 (recursive_dump_type, copy_type_recursive): Update.
2563 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2564 DW_AT_data_bit_offset.
2565
bac51ab7
TT
25662020-09-23 Tom Tromey <tom@tromey.com>
2567
2568 * utils.h (class gdb_argv): Add move operators.
2569 <append>: New methods.
2570 * compile/compile.c (build_argc_argv): Remove.
2571 (compile_args_argc): Remove.
2572 (compile_args_argv): Change type.
2573 (set_compile_args): Simplify.
2574 (append_args): Remove.
2575 (filter_args): Remove argcp parameter.
2576 (get_args): Return gdb_argv. Simplify.
2577 (compile_to_object): Update.
2578
92677124
TT
25792020-09-23 Tom Tromey <tom@tromey.com>
2580
2581 * compile/compile-object-run.c (do_module_cleanup)
2582 <~do_module_cleanup> :Remove.
2583 (do_module_cleanup): Update.
2584 * compile/compile-object-load.h (struct munmap_list): Add move
2585 assignment operator.
2586 <source_file>: Now a std::string.
2587 <munmap_list>: Rename. No longer a pointer.
2588 * compile/compile-object-load.c (struct setup_sections_data): Add
2589 constructor.
2590 <setup_one_section>: Declare.
2591 <munmap_list>: Move earlier.
2592 <m_bfd>: New member.
2593 <m_last_size, m_last_section_first, m_last_prot,
2594 m_last_max_alignment>: Rename, add initializers where needed.
2595 (setup_sections_data::setup_one_section): Rename from
2596 setup_sections. Update.
2597 (compile_object_load): Update. Don't use bfd_map_over_sections.
2598
e616f60a
TT
25992020-09-23 Tom Tromey <tom@tromey.com>
2600
2601 * compile/compile-object-run.c (struct do_module_cleanup): Add
2602 parameters to constructor. Update destructor.
2603 <source_file, scope, scope_data, out_value_type, out_value_addr,
2604 munmap_list_head, objfile_name_string>: Remove.
2605 <module>: New member.
2606 (do_module_cleanup): Update.
2607 (compile_object_run): Update.
2608
e947a848
TT
26092020-09-23 Tom Tromey <tom@tromey.com>
2610
2611 * compile/compile.c (eval_compile_command): Update.
2612 * compile/compile-object-run.h (compile_object_run): Take a
2613 compile_module_up.
2614 * compile/compile-object-run.c (compile_object_run): Take a
2615 compile_module_up.
2616 * compile/compile-object-load.h (struct compile_module): Add
2617 constructor, destructor.
2618 (compile_module_up): New typedef.
2619 (compile_object_load): Return compile_object_up.
2620 * compile/compile-object-load.c (compile_object_load): Return
2621 compile_module_up.
2622
0dbf6ee6
TT
26232020-09-23 Tom Tromey <tom@tromey.com>
2624
2625 * compile/compile-object-run.c (struct do_module_cleanup): Add
2626 constructor, destructor.
2627 <objfile_name_string>: Don't use struct hack.
2628 (do_module_cleanup): Use delete.
2629 (compile_object_run): Use new.
2630
ebe824f5
TT
26312020-09-23 Tom Tromey <tom@tromey.com>
2632
2633 * compile/compile-cplus-types.c
2634 (compile_cplus_convert_struct_or_union): Use std::vector.
2635 (compile_cplus_convert_func): Likewise.
2636 * compile/compile-c-types.c (convert_func): Use std::vector.
2637
5dd918d9
TT
26382020-09-21 Tom Tromey <tromey@adacore.com>
2639
2640 * sparc-tdep.c (sparc32_skip_prologue): Use
2641 skip_prologue_using_sal.
2642
5486c517
TT
26432020-09-19 Tom Tromey <tom@tromey.com>
2644
2645 * symfile.c (add_section_size_callback): Remove.
2646 (load_one_section): Rename from load_section_callback. Change
2647 parameters.
2648 (generic_load): Use foreach.
2649
8a6bb1d1
TT
26502020-09-19 Tom Tromey <tom@tromey.com>
2651
2652 * exec.c (add_to_section_table): Remove.
2653 (build_section_table): Use foreach.
2654
08f93a1a
TT
26552020-09-19 Tom Tromey <tom@tromey.com>
2656
2657 * elfread.c (elf_locate_sections): Change parameters.
2658 (elf_symfile_read): Use foreach.
2659
03cd72b8
TT
26602020-09-19 Tom Tromey <tom@tromey.com>
2661
2662 * cli/cli-dump.c (struct callback_data): Remove.
2663 (restore_one_section): Rename from restore_section_callback.
2664 Change parameters.
2665 (restore_binary_file): Change parameters.
2666 (restore_command): Use foreach.
2667
f4f2b85f
TT
26682020-09-19 Tom Tromey <tom@tromey.com>
2669
2670 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2671 (gcore_copy_callback): Likewise.
2672 (gcore_memory_sections): Use foreach.
2673
b35c1d1c
TT
26742020-09-19 Tom Tromey <tom@tromey.com>
2675
2676 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2677 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2678 parameters.
2679 (generic_elf_osabi_sniffer): Use foreach.
2680 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2681 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2682
5bb6e9dd
TT
26832020-09-19 Tom Tromey <tom@tromey.com>
2684
2685 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2686 (dwarf2_get_dwz_file): Use foreach.
2687 (dwarf2_locate_dwo_sections): Change parameters.
2688 (open_and_init_dwo_file): Use foreach.
2689 (dwarf2_locate_common_dwp_sections): Change parameters.
2690 (open_and_init_dwp_file): Use foreach.
2691
ad7277da
TT
26922020-09-19 Tom Tromey <tom@tromey.com>
2693
2694 * symfile.h: (find_lowest_section): Don't declare.
2695 * symfile.c (find_lowest_section): Now static. Change
2696 parameters.
2697 (struct place_section_arg): Remove.
2698 (place_section): Change parameters.
2699 (addr_info_make_relative): Use foreach.
2700 (symfile_dummy_outputs): Remove.
2701 (default_symfile_relocate): Use foreach.
2702
cb814f2e
TT
27032020-09-19 Tom Tromey <tom@tromey.com>
2704
2705 * objfiles.c (add_to_objfile_sections): Rename from
2706 add_to_objfile_sections_full.
2707 (add_to_objfile_sections): Remove.
2708 (build_objfile_section_table): Use foreach.
2709
3cabfd26
TT
27102020-09-19 Tom Tromey <tom@tromey.com>
2711
2712 * stap-probe.c (get_stap_base_address_1): Remove.
2713 (get_stap_base_address): Use foreach.
2714
1ce51eb5
TT
27152020-09-19 Tom Tromey <tom@tromey.com>
2716
2717 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2718 parameters.
2719 (gdb_bfd_close_or_warn): Use foreach.
2720
a190fabb
TT
27212020-09-19 Tom Tromey <tom@tromey.com>
2722
2723 * corelow.c (add_to_thread_list): Change parameters.
2724 (core_target_open): Use foreach.
2725
cafb0d81
TT
27262020-09-19 Tom Tromey <tom@tromey.com>
2727
2728 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2729 existing function.
2730
c8d5abea
AB
27312020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2732
2733 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2734 for arrays.
2735
6d816919
AB
27362020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2737
2738 * eval.c: Remove 'f-lang.h' include.
2739 (value_f90_subarray): Moved to f-lang.c.
2740 (eval_call): Renamed to...
2741 (evaluate_subexp_do_call): ...this, is no longer static, header
2742 comment moved into header file.
2743 (evaluate_funcall): Update call to eval_call.
2744 (skip_undetermined_arglist): Moved to f-lang.c.
2745 (fortran_value_subarray): Likewise.
2746 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2747 moved to evaluate_subexp_f.
2748 (calc_f77_array_dims): Moved to f-lang.c
2749 * expprint.c (print_subexp_funcall): New function.
2750 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2751 moved to print_subexp_f, OP_FUNCALL uses new function.
2752 (dump_subexp_body_funcall): New function.
2753 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2754 moved to dump_subexp_f, OP_FUNCALL uses new function.
2755 * expression.h (evaluate_subexp_do_call): Declare.
2756 * f-lang.c (value_f90_subarray): Moved from eval.c.
2757 (skip_undetermined_arglist): Likewise.
2758 (calc_f77_array_dims): Likewise.
2759 (fortran_value_subarray): Likewise.
2760 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2761 (operator_length_f): Likewise.
2762 (print_subexp_f): Likewise.
2763 (dump_subexp_body_f): Likewise.
2764 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2765 declaration of this operation to here.
2766 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2767 support moved to operator_length_f.
2768 * parser-defs.h (dump_subexp_body_funcall): Declare.
2769 (print_subexp_funcall): Declare.
2770 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2771 fortran-operator.def.
2772
8c37706a
AB
27732020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2774
2775 * eval.c (fortran_value_subarray): New function, content is taken
2776 from...
2777 (evaluate_subexp_standard): ...here, in two places. Now arrays
2778 and strings both call the new function.
2779 (calc_f77_array_dims): Add header comment, handle strings.
2780
14f9473c
VC
27812020-09-18 Victor Collod <vcollod@nvidia.com>
2782
2783 PR gdb/26635
2784 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2785 (i386_analyze_prologue): Call i386_skip_endbr.
2786
b60cea74
TT
27872020-09-18 Tom Tromey <tromey@adacore.com>
2788
2789 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2790 (windows_nat_target::wait): Update.
2791 * target/wait.h (enum target_wait_flag): New. Use
2792 DEF_ENUM_FLAGS_TYPE.
2793 * target/target.h (target_wait): Change type of options.
2794 * target.h (target_options_to_string, default_target_wait):
2795 Update.
2796 (struct target_ops) <wait>: Change type of options.
2797 * target.c (target_wait, default_target_wait, do_option): Change
2798 type of "options".
2799 (target_options_to_string): Likewise.
2800 * target-delegates.c: Rebuild.
2801 * target-debug.h (target_debug_print_target_wait_flags): Rename
2802 from target_debug_print_options.
2803 * sol-thread.c (class sol_thread_target) <wait>: Update.
2804 (sol_thread_target::wait): Update.
2805 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2806 (rs6000_nat_target::wait): Update.
2807 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2808 Update.
2809 (remote_target::wait_ns, remote_target::wait_as): Change type of
2810 "options".
2811 (remote_target::wait): Update.
2812 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2813 (gdbsim_target::wait): Update.
2814 * record-full.c (class record_full_base_target) <wait>: Update.
2815 (record_full_wait_1): Change type of "options".
2816 (record_full_base_target::wait): Update.
2817 * record-btrace.c (class record_btrace_target) <wait>: Update.
2818 (record_btrace_target::wait): Update.
2819 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2820 Update.
2821 (ravenscar_thread_target::wait): Update.
2822 * procfs.c (class procfs_target) <wait>: Update.
2823 (procfs_target::wait): Update.
2824 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2825 * obsd-nat.c (obsd_nat_target::wait): Update.
2826 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2827 (nto_procfs_target::wait): Update.
2828 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2829 * nbsd-nat.c (nbsd_wait): Change type of "options".
2830 (nbsd_nat_target::wait): Update.
2831 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2832 (thread_db_target::wait): Update.
2833 * linux-nat.h (class linux_nat_target) <wait>: Update.
2834 * linux-nat.c (linux_nat_target::wait): Update.
2835 (linux_nat_wait_1): Update.
2836 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2837 "options".
2838 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2839 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2840 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2841 (go32_nat_target::wait): Update.
2842 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2843 * gnu-nat.c (gnu_nat_target::wait): Update.
2844 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2845 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2846 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2847 * darwin-nat.c (darwin_nat_target::wait): Update.
2848 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2849 (bsd_uthread_target::wait): Update.
2850 * aix-thread.c (class aix_thread_target) <wait>: Update.
2851 (aix_thread_target::wait): Update.
2852
0295dde6
AB
28532020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2854
2855 * compile/compile-object-run.c (create_copied_type_recursive): New
2856 function.
2857 (compile_object_run): Use new function.
2858
d3483b43
JT
28592020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2860
2861 * NEWS: Mention x86_64 Cygwin core file support.
2862
e7d612ad
JT
28632020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2864
2865 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2866 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2867
aff9d387
JT
28682020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2869
62a5151b
JT
2870 * windows-tdep.h: Add prototypes.
2871 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2872 (i386_windows_core_pid_to_str): Move and rename ...
2873 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2874 (windows_core_pid_to_str): ... and here.
2875 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2876
28772020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2878 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2879 (amd64_windows_init_abi_common): ... and register.
2880
7d155da3
JT
28812020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2882
2883 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2884 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2885
e8ef12b9
PA
28862020-09-18 Pedro Alves <pedro@palves.net>
2887
2888 PR gdb/26631
2889 * thread.c (thread_find_command): Switch inferior before calling
2890 target methods.
2891
c1e1314d
TT
28922020-09-17 Tom Tromey <tromey@adacore.com>
2893
2894 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2895 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2896 (tdesc_arch_data_up): New typedef.
2897 (tdesc_use_registers, tdesc_data_alloc): Update.
2898 (tdesc_data_cleanup): Don't declare.
2899 * target-descriptions.c (tdesc_data_alloc): Return a
2900 tdesc_arch_data_up.
2901 (tdesc_arch_data_deleter::operator()): Rename from
2902 tdesc_data_cleanup. Change argument type.
2903 (tdesc_use_registers): Change early_data to an rvalue reference.
2904 (tdesc_use_registers): Don't use delete.
2905 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2906 * s390-tdep.c (s390_gdbarch_init): Update.
2907 * rx-tdep.c (rx_gdbarch_init): Update.
2908 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2909 * riscv-tdep.c (riscv_gdbarch_init): Update.
2910 * or1k-tdep.c (or1k_gdbarch_init): Update.
2911 * nios2-tdep.c (nios2_gdbarch_init): Update.
2912 * nds32-tdep.c (nds32_gdbarch_init): Update.
2913 * mips-tdep.c (mips_gdbarch_init): Update.
2914 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2915 * m68k-tdep.c (m68k_gdbarch_init): Update.
2916 * i386-tdep.c (i386_gdbarch_init): Update.
2917 * arm-tdep.c (arm_gdbarch_init): Update.
2918 * arc-tdep.c (arc_tdesc_init): Update.
2919 (arc_gdbarch_init): Update.
2920 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2921
0363df3d
HD
29222020-09-17 Hannes Domani <ssbssa@yahoo.de>
2923
2924 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2925 for WOW64 processes.
2926
280a9412
TT
29272020-09-17 Tom Tromey <tom@tromey.com>
2928
2929 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2930
6108fd18
TT
29312020-09-17 Tom Tromey <tom@tromey.com>
2932
2933 * value.c (preserve_values): Update.
2934 * python/py-type.c (save_objfile_types): Update.
2935 * guile/scm-type.c (save_objfile_types): Update.
2936 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2937 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2938 * compile/compile-object-run.c (compile_object_run): Update.
2939
fa9b1164
TT
29402020-09-17 Tom Tromey <tom@tromey.com>
2941
2942 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2943 Remove.
2944 <m_table>: Now htab_up.
2945 * typeprint.c (typedef_hash_table::recursively_update)
2946 (typedef_hash_table::add_template_parameters)
2947 (typedef_hash_table::typedef_hash_table): Update.
2948 (typedef_hash_table::~typedef_hash_table): Remove.
2949 (typedef_hash_table::typedef_hash_table)
2950 (typedef_hash_table::find_global_typedef)
2951 (typedef_hash_table::find_typedef): Update.
2952
eb53f105
TT
29532020-09-17 Tom Tromey <tom@tromey.com>
2954
2955 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2956
7a8a5d47
TT
29572020-09-17 Tom Tromey <tom@tromey.com>
2958
2959 * linespec.c (class decode_compound_collector)
2960 <~decode_compound_collector>: Remove.
2961 <m_unique_syms>: Now htab_up.
2962 (decode_compound_collector::operator ()): Update.
2963 (class symtab_collector) <~symtab_collector>: Remove.
2964 <m_symtab_table>: Now htab_up.
2965 (symtab_collector::operator ()): Update.
2966
99032cfc
TT
29672020-09-17 Tom Tromey <tom@tromey.com>
2968
2969 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2970 (filename_seen_cache::clear): Update.
2971 (~filename_seen_cache): Remove.
2972 (filename_seen_cache::seen): Update.
2973 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2974 htab_up.
2975 <~filename_seen_cache>: Remove.
2976 <traverse>: Update.
2977
32580f6d
TT
29782020-09-17 Tom Tromey <tom@tromey.com>
2979
2980 * completer.c (completion_tracker::discard_completions)
2981 (completion_tracker::~completion_tracker)
2982 (completion_tracker::maybe_add_completion)
2983 (completion_tracker::remove_completion)
2984 (completion_tracker::recompute_lowest_common_denominator)
2985 (completion_tracker::build_completion_result): Update.
2986 * completer.h (class completion_tracker) <have_completions>:
2987 Update.
2988 <m_entries_hash>: Now htab_up.
2989
c1fb9836
TT
29902020-09-17 Tom Tromey <tom@tromey.com>
2991
2992 * breakpoint.c (ambiguous_names_p): Use htab_up.
2993
88f07206
TT
29942020-09-17 Tom Tromey <tom@tromey.com>
2995
2996 * auto-load.c (struct auto_load_pspace_info)
2997 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2998 <loaded_script_files, loaded_script_texts>: Change type to
2999 htab_up.
3000 (~auto_load_pspace_info) Remove.
3001 (init_loaded_scripts_info, maybe_add_script_file)
3002 (maybe_add_script_text, auto_load_info_scripts): Update.
3003
9519b2ee
TT
30042020-09-17 Tom Tromey <tromey@adacore.com>
3005
3006 * c-exp.y (name_obstack): Now static.
3007
d2cd4113
CC
30082020-09-17 Chungyi Chi <demonic@csie.io>
3009
3010 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3011
b650a282
SM
30122020-09-16 Simon Marchi <simon.marchi@efficios.com>
3013
3014 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3015 (add_solib_catchpoint): Likewise.
3016 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3017 to bool.
3018 (add_solib_catchpoint): Change int parameter/variable to bool.
3019 (catch_load_or_unload): Likewise.
3020 (init_catchpoint): Likewise.
3021 (create_fork_vfork_event_catchpoint): Likewise.
3022 (catch_fork_command_1): Likewise.
3023 (catch_exec_command_1): Likewise.
3024
4d0bcfcf
SM
30252020-09-16 Simon Marchi <simon.marchi@efficios.com>
3026
3027 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3028 Change instance_flags to m_instance_flags.
3029
fe830662
TT
30302020-09-16 Tom Tromey <tromey@adacore.com>
3031
3032 PR gdb/26598:
3033 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3034
fe5ddfc3
JB
30352020-09-16 John Baldwin <jhb@FreeBSD.org>
3036
3037 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3038 PL_FLAG_EXEC.
3039 (fbsd_nat_target::insert_exec_catchpoint)
3040 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3041 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3042 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3043
e911c666
JB
30442020-09-16 John Baldwin <jhb@FreeBSD.org>
3045
3046 * configure.ac: Remove check for kinfo_getvmmap().
3047 * configure, config.in: Regenerate.
3048 * fbsd-nat.c (fbsd_read_mapping): Remove
3049 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3050 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3051 kinfo_get_vmmap() are always present.
3052
1f17d372
JB
30532020-09-16 John Baldwin <jhb@FreeBSD.org>
3054
3055 * fbsd-nat.c: Always include support for
3056 TARGET_OBJECT_SIGNAL_INFO.
3057
bcb1da7f
JB
30582020-09-16 John Baldwin <jhb@FreeBSD.org>
3059
3060 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3061 sysctl and remove procfs fallback.
3062
5515f729
JB
30632020-09-16 John Baldwin <jhb@FreeBSD.org>
3064
3065 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3066 * fbsd-nat.h: Likewise.
3067
da1df1db
TBA
30682020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3069
3070 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3071 argument.
3072
0e25e767
AB
30732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3074
3075 * ada-lang.c (ada_language_data): Delete.
3076 (ada_language): Remove references to ada_language_data.
3077 * c-lang.c (c_language_data): Delete.
3078 (c_language): Remove references to c_language_data.
3079 (cplus_language_data): Delete.
3080 (cplus_language): Remove references to cplus_language_data.
3081 (asm_language_data): Delete.
3082 (asm_language): Remove references to asm_language_data.
3083 (minimal_language_data): Delete.
3084 (minimal_language): Remove references to minimal_language_data.
3085 * d-lang.c (d_language_data): Delete.
3086 (d_language): Remove references to d_language_data.
3087 * f-lang.c (f_language_data): Delete.
3088 (f_language): Remove references to f_language_data.
3089 * go-lang.c (go_language_data): Delete.
3090 (go_language): Remove references to go_language_data.
3091 * language.c (unknown_language_data): Delete.
3092 (unknown_language): Remove references to unknown_language_data.
3093 (auto_language_data): Delete.
3094 (auto_language): Remove references to auto_language_data.
3095 * language.h (language_data): Delete struct.
3096 (language_defn): No longer inherit from language_data.
3097 * m2-lang.c (m2_language_data): Delete.
3098 (m2_language): Remove references to m2_language_data.
3099 * objc-lang.c (objc_language_data): Delete.
3100 (objc_language): Remove references to objc_language_data.
3101 * opencl-lang.c (opencl_language_data): Delete.
3102 (opencl_language): Remove references to opencl_language_data.
3103 * p-lang.c (pascal_language_data): Delete.
3104 (pascal_language): Remove references to pascal_language_data.
3105 * rust-lang.c (rust_language_data): Delete.
3106 (rust_language): Remove references to rust_language_data.
3107
b7c6e27d
AB
31082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3109
3110 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3111 initializer.
3112 (ada_language::opcode_print_table): New member function.
3113 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3114 (c_language::opcode_print_table): New member function.
3115 (cplus_language_data): Remove la_op_print_tab initializer.
3116 (cplus_language::opcode_print_table): New member function.
3117 (asm_language_data): Remove la_op_print_tab initializer.
3118 (asm_language::opcode_print_table): New member function.
3119 (minimal_language_data): Remove la_op_print_tab initializer.
3120 (minimal_language::opcode_print_table): New member function.
3121 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3122 (d_language::opcode_print_table): New member function.
3123 * expprint.c (print_subexp_standard): Update call to
3124 opcode_print_table.
3125 (op_string): Likewise.
3126 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3127 (f_language::opcode_print_table): New member function.
3128 * go-lang.c (go_language_data): Remove la_op_print_tab
3129 initializer.
3130 (go_language::opcode_print_table): New member function.
3131 * language.c (unknown_language_data): Remove la_op_print_tab
3132 initializer.
3133 (unknown_language::opcode_print_table): New member function.
3134 (auto_language_data): Remove la_op_print_tab initializer.
3135 (auto_language::opcode_print_table): New member function.
3136 * language.h (language_data): Remove la_op_print_tab field.
3137 (language_defn::opcode_print_table): Declare new member function.
3138 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3139 initializer.
3140 (m2_language::opcode_print_table): New member function.
3141 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3142 initializer.
3143 (objc_language::opcode_print_table): New member function.
3144 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3145 initializer.
3146 (opencl_language::opcode_print_table): New member function.
3147 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3148 initializer.
3149 (pascal_language::opcode_print_table): New member function.
3150 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3151 initializer.
3152 (rust_language::opcode_print_table): New member function.
3153
5aba6ebe
AB
31542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3155
3156 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3157 (ada_language::expression_ops): New member function.
3158 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3159 (c_language::expression_ops): New member function.
3160 (cplus_language_data): Remove la_exp_desc initializer.
3161 (cplus_language::expression_ops): New member function.
3162 (asm_language_data): Remove la_exp_desc initializer.
3163 (asm_language::expression_ops): New member function.
3164 (minimal_language_data): Remove la_exp_desc initializer.
3165 (minimal_language::expression_ops): New member function.
3166 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3167 (d_language::expression_ops): New member function.
3168 * eval.c (evaluate_subexp): Update call to expression_ops.
3169 * expprint.c (print_subexp): Likewise.
3170 (op_name): Likewise.
3171 (dump_subexp_body): Likewise.
3172 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3173 (f_language::expression_ops): New member function.
3174 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3175 (go_language::expression_ops): New member function.
3176 * language.c (language_defn::expression_ops): New function.
3177 (unknown_language_data): Remove la_exp_desc initializer.
3178 (auto_language_data): Likewise.
3179 * language.h (language_data): Remove la_exp_desc field.
3180 (language_defn::expression_ops): Declare new member function.
3181 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3182 (m2_language::expression_ops): New member function.
3183 * objc-lang.c (objc_language_data): Remove la_exp_desc
3184 initializer.
3185 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3186 initializer.
3187 (opencl_language::expression_ops): New member function.
3188 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3189 * parse.c (operator_length): Update call to expression_ops.
3190 (exp_iterate): Likewise.
3191 * rust-lang.c (rust_language_data): Remove la_exp_desc
3192 initializer.
3193 (ruse_language::expression_ops): New member function.
3194
b63a3f3f
AB
31952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3196
3197 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3198 initializer.
3199 (ada_language::varobj_ops): New member function.
3200 * c-lang.c (c_language_data): Remove la_varobj_ops
3201 initializer.
3202 (cplus_language_data): Likewise.
3203 (cplus_language::varobj_ops): New member function.
3204 (asm_language_data): Remove la_varobj_ops initializer.
3205 (minimal_language_data): Likewise.
3206 * d-lang.c (d_language_data): Likewise.
3207 * f-lang.c (f_language_data): Likewise.
3208 * go-lang.c (go_language_data): Likewise.
3209 * language.c (language_defn::varobj_ops): New function.
3210 (unknown_language_data): Remove la_varobj_ops
3211 initializer.
3212 (auto_language_data): Likewise.
3213 * language.h (language_data): Remove la_varobj_ops field.
3214 (language_defn::varobj_ops): Declare new member function.
3215 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3216 * objc-lang.c (objc_language_data): Likewise.
3217 * opencl-lang.c (opencl_language_data): Likewise.
3218 * p-lang.c (pascal_language_data): Likewise.
3219 * rust-lang.c (rust_language_data): Likewise.
3220 * varobj.c (varobj_create): Update call to varobj_ops.
3221 * varobj.h (default_varobj_ops): Delete define.
3222
1ac14a04
AB
32232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3224
3225 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3226 initializer.
3227 * c-lang.c (c_language_data): Likewise.
3228 (c_language::macro_expansion): New member function.
3229 (cplus_language_data): Likewise.
3230 (cplus_language::macro_expansion): New member function.
3231 (asm_language_data): Likewise.
3232 (asm_language::macro_expansion): New member function.
3233 (minimal_language_data): Likewise.
3234 (minimal_language::macro_expansion): New member function.
3235 * d-lang.c (d_language_data): Remove la_macro_expansion
3236 initializer.
3237 * f-lang.c (f_language_data): Likewise.
3238 * go-lang.c (go_language_data): Likewise.
3239 * language.c (unknown_language_data): Likewise.
3240 (auto_language_data): Likewise.
3241 * language.h (language_data): Remove la_macro_expansion field.
3242 (language_defn::macro_expansion): New member function.
3243 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3244 initializer.
3245 * objc-lang.c (objc_language_data): Likewise.
3246 (objc_language::macro_expansion): New member function.
3247 * opencl-lang.c (opencl_language_data): Likewise.
3248 (opencl_language::macro_expansion): New member function.
3249 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3250 initializer.
3251 * rust-lang.c (rust_language_data): Likewise.
3252 * symtab.c (default_collect_symbol_completion_matches_break_on):
3253 Update call to macro_expansion.
3254
3a3440fb
AB
32552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3256
3257 * ada-lang.c (ada_language_data): Remove la_array_ordering
3258 initializer.
3259 * c-lang.c (c_language_data): Likewise.
3260 (cplus_language_data): Likewise.
3261 (asm_language_data): Likewise.
3262 (minimal_language_data): Likewise.
3263 * d-lang.c (d_language_data): Likewise.
3264 * dwarf2/read.c (read_array_order): Update for call to
3265 array_ordering.
3266 * f-lang.c (f_language_data): Remove la_array_ordering
3267 initializer.
3268 (f_language::array_ordering): New member function.
3269 * go-lang.c (go_language_data): Remove la_array_ordering
3270 initializer.
3271 * language.c (unknown_language_data): Likewise.
3272 (auto_language_data): Likewise.
3273 * language.h (language_data): Delete la_array_ordering field.
3274 (language_defn::array_ordering): New member function.
3275 * m2-lang.c (m2_language_data): Remove la_array_ordering
3276 initializer.
3277 * objc-lang.c (objc_language_data): Likewise.
3278 * opencl-lang.c (opencl_language_data): Likewise.
3279 * p-lang.c (pascal_language_data): Likewise.
3280 * rust-lang.c (rust_language_data): Likewise.
3281
0d201fa4
AB
32822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3283
3284 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3285 initializer.
3286 * c-lang.c (c_language_data): Likewise.
3287 (cplus_language_data): Likewise.
3288 (asm_language_data): Likewise.
3289 (minimal_language_data): Likewise.
3290 * d-lang.c (d_language_data): Likewise.
3291 * f-lang.c (f_language_data): Likewise.
3292 (f_language::case_sensitivity): New member function.
3293 * go-lang.c (go_language_data): Remove la_case_sensitivity
3294 initializer.
3295 * language.c (enum case_mode): Moved here from language.h.
3296 (case_mode): Make static.
3297 (show_case_command): Update for case_sensitivity being a method.
3298 (set_case_command): Likewise.
3299 (set_range_case): Likewise.
3300 (unknown_language_data): Remove la_case_sensitivity initializer.
3301 (auto_language_data): Likewise.
3302 * language.h (case_mode): Delete, move enum declaration to
3303 language.c.
3304 (language_data): Delete la_case_sensitivity field.
3305 (language_defn::case_sensitivity): New member function.
3306 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3307 initializer.
3308 * objc-lang.c (objc_language_data): Likewise.
3309 * opencl-lang.c (opencl_language_data): Likewise.
3310 * p-lang.c (pascal_language_data): Likewise.
3311 * rust-lang.c (rust_language_data): Likewise.
3312
efdf6a73
AB
33132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * ada-lang.c (ada_language_data): Remove la_range_check
3316 initializer.
3317 * c-lang.c (c_language_data): Likewise.
3318 (cplus_language_data): Likewise.
3319 (asm_language_data): Likewise.
3320 (minimal_language_data): Likewise.
3321 * d-lang.c (d_language_data): Likewise.
3322 * f-lang.c (f_language_data): Likewise.
3323 (f_language::range_checking_on_by_default): New member function.
3324 * go-lang.c (go_language_data): Remove la_range_check initializer.
3325 * language.c (enum range_mode): Moved here from language.h.
3326 (range_mode): Made static.
3327 (show_range_command): Update to use
3328 range_checking_on_by_default.
3329 (set_range_command): Likewise.
3330 (set_range_case): Likewise.
3331 (unknown_language_data): Remove la_range_check initializer.
3332 (auto_language_data): Likewise.
3333 * language.h (range_mode): Delete. Enum definition moved to
3334 language.c.
3335 (language_data): Remove la_range_check field.
3336 (language_defn::range_checking_on_by_default): New member
3337 function.
3338 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3339 (m2_language::range_checking_on_by_default): New member function.
3340 * objc-lang.c (objc_language_data): Remove la_range_check
3341 initializer.
3342 * opencl-lang.c (opencl_language_data): Likewise.
3343 * p-lang.c (pascal_language_data): Likewise.
3344 (pascal_language::range_checking_on_by_default): New member
3345 function.
3346 * rust-lang.c (rust_language_data): Remove la_range_check
3347 initializer.
3348 (rust_language::range_checking_on_by_default): New member
3349 function.
3350
bf92aec5
AB
33512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3352
3353 * dwarf2/read.c (dwarf2_physname): Remove special case for
3354 language_go.
3355 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3356 member function.
3357
d3355e4d
AB
33582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3359
3360 * ada-lang.c (ada_language_data): Remove
3361 la_store_sym_names_in_linkage_form_p initializer.
3362 (ada_language::store_sym_names_in_linkage_form_p): New member
3363 function.
3364 * c-lang.c (c_language_data): Remove
3365 la_store_sym_names_in_linkage_form_p initializer.
3366 (c_language::store_sym_names_in_linkage_form_p): New member
3367 function.
3368 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3369 initializer.
3370 (asm_language_data): Likewise.
3371 (asm_language::store_sym_names_in_linkage_form_p): New member
3372 function.
3373 (minimal_language_data): Remove
3374 la_store_sym_names_in_linkage_form_p initializer.
3375 (minimal_language::store_sym_names_in_linkage_form_p): New member
3376 function.
3377 * d-lang.c (d_language_data): Remove
3378 la_store_sym_names_in_linkage_form_p initializer.
3379 * dwarf2/read.c (dwarf2_physname): Update call to
3380 store_sym_names_in_linkage_form_p.
3381 * f-lang.c (f_language_data): Remove
3382 la_store_sym_names_in_linkage_form_p initializer.
3383 * go-lang.c (go_language_data): Remove
3384 la_store_sym_names_in_linkage_form_p initializer.
3385 * language.c (unknown_language_data): Remove
3386 la_store_sym_names_in_linkage_form_p initializer.
3387 (unknown_language::store_sym_names_in_linkage_form_p): New member
3388 function.
3389 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3390 initializer.
3391 (auto_language::store_sym_names_in_linkage_form_p): New member
3392 function.
3393 * language.h (language_data): Remove
3394 la_store_sym_names_in_linkage_form_p member variable.
3395 (language_defn::store_sym_names_in_linkage_form_p): New member
3396 function.
3397 * m2-lang.c (m2_language_data): Remove
3398 la_store_sym_names_in_linkage_form_p initializer.
3399 * objc-lang.c (objc_language_data): Likewise.
3400 * opencl-lang.c (opencl_language_data): Likewise.
3401 * p-lang.c (pascal_language_data): Likewise.
3402 * rust-lang.c (rust_language_data): Likewise.
3403
22c12a6c
AB
34042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 * ada-lang.c (ada_language_data): Remove string_lower_bound
3407 initializer.
3408 * c-lang.c (c_language_data): Likewise.
3409 (cplus_language_data): Likewise.
3410 (asm_language_data): Likewise.
3411 (minimal_language_data): Likewise.
3412 * d-lang.c (d_language_data): Likewise.
3413 * f-lang.c (f_language_data): Likewise.
3414 * go-lang.c (go_language_data): Likewise.
3415 * language.c (unknown_language_data): Likewise.
3416 (auto_language_data): Likewise.
3417 * language.h (language_data): Remove string_lower_bound field.
3418 (language_defn::string_lower_bound): New member function.
3419 * m2-lang.c (m2_language_data): Remove string_lower_bound
3420 initializer.
3421 (m2_language::string_lower_bound): New member function.
3422 * objc-lang.c (objc_language_data): Remove string_lower_bound
3423 initializer.
3424 * opencl-lang.c (opencl_language_data): Likewise.
3425 * p-lang.c (pascal_language_data): Likewise.
3426 * rust-lang.c (rust_language_data): Likewise.
3427 * valops.c (value_cstring): Update call to string_lower_bound.
3428 (value_string): Likewise.
3429 * value.c (allocate_repeated_value): Likewise.
3430
1c236ddd
AB
34312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3432
3433 * valops.c (value_repeat): Fix incorrect argument name in comment.
3434
67bd3fd5
AB
34352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3436
3437 * ada-lang.c (ada_language_data): Remove c_style_arrays
3438 initializer.
3439 (ada_language::c_style_arrays_p): New member fuction.
3440 * c-lang.c (c_language_data): Remove c_style_arrays
3441 initializer.
3442 (cplus_language_data): Likewise.
3443 (asm_language_data): Likewise.
3444 (minimal_language_data): Likewise.
3445 * d-lang.c (d_language_data): Likewise.
3446 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3447 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3448 (f_language::c_style_arrays_p): New member function.
3449 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3450 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3451 * language.c (unknown_language_data): Remove c_style_arrays
3452 initializer.
3453 (auto_language_data): Likewise.
3454 * language.h (language_data): Remove c_style_arrays field.
3455 (language_defn::c_style_arrays_p): New member function.
3456 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3457 (m2_language::c_style_arrays_p): New member function.
3458 * objc-lang.c (objc_language_data): Remove c_style_arrays
3459 initializer.
3460 * opencl-lang.c (opencl_language_data): Likewise.
3461 * p-lang.c (pascal_language_data): Likewise.
3462 * rust-lang.c (rust_language_data): Likewise.
3463 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3464 and update local variable to a bool.
3465 * valops.c (value_cast): Update call to c_style_arrays_p.
3466 (value_array): Likewise.
3467 * value.c (coerce_array): Likewise.
3468
85967615
AB
34692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3470
3471 * ada-lang.c (ada_language_data): Remove la_language initializer.
3472 * c-lang.c (c_language_data): Likewise.
3473 (cplus_language_data): Likewise.
3474 (asm_language_data): Likewise.
3475 (minimal_language_data): Likewise.
3476 * d-lang.c (d_language_data): Likewise.
3477 * f-lang.c (f_language_data): Likewise.
3478 * go-lang.c (go_language_data): Likewise.
3479 * language.c (unknown_language_data): Likewise.
3480 (auto_language_data): Likewise.
3481 * language.h (language_data): Remove la_language field.
3482 (language_defn::language_defn): Initialise la_language field.
3483 (language_defn::la_language): New member variable.
3484 * m2-lang.c (m2_language_data): Remove la_language field.
3485 * objc-lang.c (objc_language_data): Likewise.
3486 * opencl-lang.c (opencl_language_data): Likewise.
3487 * p-lang.c (pascal_language_data): Likewise.
3488 * rust-lang.c (rust_language_data): Likewise.
3489
e171d6f1
AB
34902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3491
3492 * ada-lang.c (ada_extensions): Delete, moved into
3493 ada_language::filename_extensions.
3494 (ada_language_data): Remove la_filename_extensions initializer.
3495 (ada_language::filename_extensions): New member function.
3496 * c-lang.c (c_extensions): Delete, moved into
3497 c_language::filename_extensions.
3498 (c_language_data): Remove la_filename_extensions initializer.
3499 (c_language::filename_extensions): New member function.
3500 (cplus_extensions): Delete, moved into
3501 cplus_language::filename_extensions.
3502 (cplus_language_data): Remove la_filename_extensions initializer.
3503 (cplus_language::filename_extensions): New member function.
3504 (asm_extensions): Delete, moved into
3505 asm_language::filename_extensions.
3506 (asm_language_data): Remove la_filename_extensions initializer.
3507 (asm_language::filename_extensions): New member function.
3508 (minimal_language_data): Remove la_filename_extensions
3509 initializer.
3510 * d-lang.c (d_extensions): Delete, moved into
3511 d_language::filename_extensions.
3512 (d_language_data): Remove la_filename_extensions initializer.
3513 (d_language::filename_extensions): New member function.
3514 * f-lang.c (f_extensions): Delete, moved into
3515 f_language::filename_extensions.
3516 (f_language_data): Remove la_filename_extensions initializer.
3517 (f_language::filename_extensions): New member function.
3518 * go-lang.c (go_language_data): Remove la_filename_extensions
3519 initializer.
3520 * language.c (add_set_language_command): Update now that
3521 filename_extensions returns a vector.
3522 (unknown_language_data): Remove la_filename_extensions
3523 initializer.
3524 (auto_language_data): Likewise.
3525 * language.h (language_data): Remove la_filename_extensions field.
3526 (language_defn::filename_extensions): New member function.
3527 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3528 initializer.
3529 * objc-lang.c (objc_extensions): Delete, moved into
3530 objc_language::filename_extensions.
3531 (objc_language_data): Remove la_filename_extensions initializer.
3532 (objc_language::filename_extensions): New member function.
3533 * opencl-lang.c (opencl_language_data): Remove
3534 la_filename_extensions initializer.
3535 * p-lang.c (pascal_extensions): Delete, moved into
3536 pascal_language::filename_extensions.
3537 (pascal_language_data): Remove la_filename_extensions initializer.
3538 (pascal_language::filename_extensions): New member function.
3539 * rust-lang.c (rust_extensions): Delete, moved into
3540 rust_language::filename_extensions.
3541 (rust_language_data): Remove la_filename_extensions initializer.
3542 (rust_language::filename_extensions): New member function.
3543 * symfile.c (add_filename_language): Add new assert.
3544
6f7664a9
AB
35452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3546
3547 * ada-lang.c (ada_language_data): Remove la_name and
3548 la_natural_name initializers.
3549 (ada_language::name): New member function.
3550 (ada_language::natural_name): New member function.
3551 * c-lang.c (c_language_data): Remove la_name and
3552 la_natural_name initializers.
3553 (c_language::name): New member function.
3554 (c_language::natural_name): New member function.
3555 (cplus_language_data): Remove la_name and
3556 la_natural_name initializers.
3557 (cplus_language::name): New member function.
3558 (cplus_language::natural_name): New member function.
3559 (asm_language_data): Remove la_name and
3560 la_natural_name initializers.
3561 (asm_language::name): New member function.
3562 (asm_language::natural_name): New member function.
3563 (minimal_language_data): Remove la_name and
3564 la_natural_name initializers.
3565 (minimal_language::name): New member function.
3566 (minimal_language::natural_name): New member function.
3567 * compile/compile.c (compile_to_object): Update call to
3568 lanugage_defn::name.
3569 * d-lang.c (d_language_data): Remove la_name and
3570 la_natural_name initializers.
3571 (d_language::name): New member function.
3572 (d_language::natural_name): New member function.
3573 * expprint.c (print_subexp_standard): Update call to
3574 language_defn::name.
3575 (dump_raw_expression): Likewise
3576 (dump_prefix_expression): Likewise.
3577 * f-lang.c (f_language_data): Remove la_name and
3578 la_natural_name initializers.
3579 (f_language::name): New member function.
3580 (f_language::natural_name): New member function.
3581 * go-lang.c (go_language_data): Remove la_name and
3582 la_natural_name initializers.
3583 (go_language::name): New member function.
3584 (go_language::natural_name): New member function.
3585 * language.c (show_language_command): Update call to
3586 language_defn::name.
3587 (set_language_command): Likewise.
3588 (language_enum): Likewise.
3589 (language_str): Likewise.
3590 (add_set_language_command): Likewise, use
3591 language_defn::natural_name in the doc string.
3592 (unknown_language_data): Remove la_name and
3593 la_natural_name initializers.
3594 (unknown_language::name): New member function.
3595 (unknown_language::natural_name): New member function.
3596 (auto_language_data): Remove la_name and
3597 la_natural_name initializers.
3598 (auto_language::name): New member function.
3599 (auto_language::natural_name): New member function.
3600 (language_lookup_primitive_type_as_symbol): Update call to
3601 language_defn::name.
3602 * language.h (language_data): Remove la_name and la_natural_name
3603 member variables.
3604 (language_defn::name): New member function.
3605 (language_defn::natural_name): New member function.
3606 * m2-lang.c (m2_language_data): Remove la_name and
3607 la_natural_name initializers.
3608 (m2_language::name): New member function.
3609 (m2_language::natural_name): New member function.
3610 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3611 language_defn::natural_name.
3612 * objc-lang.c (objc_language_data): Remove la_name and
3613 la_natural_name initializers.
3614 (objc_language::name): New member function.
3615 (objc_language::natural_name): New member function.
3616 * opencl-lang.c (opencl_language_data): Remove la_name and
3617 la_natural_name initializers.
3618 (opencl_language::name): New member function.
3619 (opencl_language::natural_name): New member function.
3620 * p-lang.c (pascal_language_data): Remove la_name and
3621 la_natural_name initializers.
3622 (pascal_language::name): New member function.
3623 (pascal_language::natural_name): New member function.
3624 * rust-lang.c (rust_language_data): Remove la_name and
3625 la_natural_name initializers.
3626 (rust_language::name): New member function.
3627 (rust_language::natural_name): New member function.
3628 * symtab.c (lookup_language_this): Update call to
3629 language_defn::name.
3630
5bae7c4e
AB
36312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3632
3633 * ada-lang.c (ada_language_data): Remove la_name_of_this
3634 initializer.
3635 * ax-gdb.c (gen_expr): Update call to name_of_this.
3636 * c-exp.y (classify_name): Likewise.
3637 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3638 (cplus_language_data): Likewise.
3639 (cplus_language::name_of_this): New member function.
3640 (asm_language_data): Remove la_name_of_this initializer.
3641 (minimal_language_data): Likewise.
3642 * d-lang.c (d_language_data): Likewise.
3643 (d_language::name_of_this): New member function.
3644 * expprint.c (print_subexp_standard): Update call to name_of_this.
3645 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3646 * go-lang.c (go_language_data): Likewise.
3647 * language.c (unknown_language_data): Likewise.
3648 (unknown_language::name_of_this): New member function.
3649 (auto_language_data): Remove la_name_of_this initializer.
3650 (auto_language::name_of_this): New member function.
3651 * language.h (language_data): Delete la_name_of_this member
3652 variable.
3653 (language_defn::name_of_this): New member function.
3654 * m2-lang.c (m2_language_data): Remove la_name_of_this
3655 initializer.
3656 * objc-lang.c (objc_language_data): Likewise.
3657 (objc_language::name_of_this): New member function.
3658 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3659 initializer.
3660 * p-lang.c (pascal_language_data): Likewise.
3661 (pascal_language::name_of_this): New member function.
3662 * rust-lang.c (rust_language_data): Remove la_name_of_this
3663 initializer.
3664 * symtab.c (lookup_language_this): Update call to name_of_this.
3665 (lookup_symbol_aux): Likewise.
3666 * valops.c (value_of_this): Likewise.
3667
22e3f3ed
AB
36682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3669
3670 * ada-lang.c (ada_language_data): Remove
3671 la_struct_too_deep_ellipsis initializer.
3672 (ada_language::struct_too_deep_ellipsis): New member function.
3673 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3674 initializer.
3675 (cplus_language_data): Likewise.
3676 (asm_language_data): Likewise.
3677 (minimal_language_data): Likewise.
3678 * cp-valprint.c (cp_print_value): Update call to
3679 struct_too_deep_ellipsis.
3680 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3681 initializer.
3682 * f-lang.c (f_language_data): Likewise.
3683 (f_language::struct_too_deep_ellipsis): New member function.
3684 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3685 initializer.
3686 * language.c (unknown_language_data): Likewise.
3687 (auto_language_data): Likewise.
3688 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3689 member variable.
3690 (language_defn::struct_too_deep_ellipsis): New member function.
3691 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3692 initializer.Q
3693 * objc-lang.c (objc_language_data): Likewise.
3694 * opencl-lang.c (opencl_language_data): Likewise.
3695 * p-lang.c (pascal_language_data): Likewise.
3696 * rust-lang.c (rust_language_data): Likewise.
3697 * valprint.c (val_print_check_max_depth): Update call to
3698 struct_too_deep_ellipsis.
3699
ed29e1c7
FW
37002020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3701
3702 * MAINTAINERS (Write After Approval): Add myself.
3703
12d8f940
TT
37042020-09-15 Tom Tromey <tom@tromey.com>
3705
3706 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3707 Remove.
3708
6b5a7bc7
TT
37092020-09-15 Tom Tromey <tom@tromey.com>
3710
3711 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3712 and TYPE_CODE_METHODPTR cases.
3713 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3714 (c_value_print_inner): Update.
3715 * valprint.c (generic_value_print_memberptr): New function, from
3716 c_value_print_memberptr.
3717 (generic_value_print): Use it. Call cplus_print_method_ptr.
3718
47f0e2ff
TT
37192020-09-15 Tom Tromey <tromey@adacore.com>
3720
3721 * python/python-internal.h (PyInt_FromLong): Remove define.
3722 * python/py-value.c (convert_value_from_python): Use
3723 gdb_py_object_from_longest.
3724 * python/py-type.c (typy_get_code): Use
3725 gdb_py_object_from_longest.
3726 * python/py-symtab.c (salpy_get_line): Use
3727 gdb_py_object_from_longest.
3728 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3729 gdb_py_object_from_longest.
3730 * python/py-record.c (recpy_gap_reason_code): Use
3731 gdb_py_object_from_longest.
3732 * python/py-record-btrace.c (recpy_bt_insn_size)
3733 (recpy_bt_func_level, btpy_list_count): Use
3734 gdb_py_object_from_longest.
3735 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3736 gdb_py_object_from_longest. Fix error handling.
3737 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3738 gdb_py_object_from_longest.
3739 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3740 gdb_py_object_from_longest.
3741 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3742 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3743 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3744
512116ce
TT
37452020-09-15 Tom Tromey <tromey@adacore.com>
3746
3747 * python/python.c (gdbpy_parameter_value): Use
3748 gdb_py_object_from_ulongest.
3749
4ab1029c
TT
37502020-09-15 Tom Tromey <tromey@adacore.com>
3751
3752 * python/py-infevents.c (create_register_changed_event_object):
3753 Use gdb_py_object_from_longest.
3754 * python/py-exitedevent.c (create_exited_event_object): Use
3755 gdb_py_object_from_longest.
3756
062534d4
TT
37572020-09-15 Tom Tromey <tromey@adacore.com>
3758
3759 * python/python.c (gdbpy_parameter_value): Use
3760 gdb_py_object_from_longest.
3761 * python/py-type.c (convert_field, typy_range): Use
3762 gdb_py_object_from_longest.
3763 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3764 gdb_py_object_from_longest.
3765 * python/py-lazy-string.c (stpy_get_length): Use
3766 gdb_py_object_from_longest.
3767 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3768 gdb_py_object_from_longest.
3769 * python/py-infevents.c (create_memory_changed_event_object): Use
3770 gdb_py_object_from_longest.
3771 * python/py-inferior.c (infpy_get_num): Use
3772 gdb_py_object_from_longest.
3773 (infpy_get_pid): Likewise.
3774
d1cab987
TT
37752020-09-15 Tom Tromey <tromey@adacore.com>
3776
3777 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3778 defines.
3779 * python/py-value.c (valpy_long): Use
3780 gdb_py_object_from_ulongest.
3781 * python/py-symtab.c (salpy_get_pc): Use
3782 gdb_py_object_from_ulongest.
3783 (salpy_get_last): Likewise.
3784 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3785 gdb_py_object_from_ulongest.
3786 * python/py-lazy-string.c (stpy_get_address): Use
3787 gdb_py_object_from_ulongest.
3788 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3789 * python/py-arch.c (archpy_disassemble): Use
3790 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3791 error handling.
3792
4bde49dc
TT
37932020-09-15 Tom Tromey <tromey@adacore.com>
3794
3795 * python/python-internal.h (gdb_py_long_from_longest): Remove
3796 defines.
3797 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3798 * python/py-type.c (convert_field, typy_get_sizeof): Use
3799 gdb_py_object_from_longest.
3800 * python/py-record-btrace.c (btpy_list_index): Use
3801 gdb_py_object_from_longest.
3802
37431074
TT
38032020-09-15 Tom Tromey <tromey@adacore.com>
3804
3805 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3806 * python/py-record.c (recpy_element_number): Use
3807 gdb_py_object_from_longest.
3808 (recpy_gap_number): Likewise.
3809
cbe25684
TT
38102020-09-15 Tom Tromey <tromey@adacore.com>
3811
3812 * top.c (ui::ui): Update.
3813 (highest_ui_num): Remove.
3814 * top.h (struct ui) <num>: Remove.
3815
db92ac45
TT
38162020-09-15 Tom Tromey <tromey@adacore.com>
3817
3818 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3819 * ui-style.c (ansi_regex_text): Now array.
3820 * rust-exp.y (number_regex_text): Now array.
3821 * linespec.c (linespec_quote_characters): Now array.
3822 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3823 Now arrays.
3824
d2b31b67
SM
38252020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3826
3827 * debuginfod-support.c (debuginfod_client_deleter): New.
3828 (debuginfod_client_up): New.
3829 (debuginfod_init): Return debuginfod_client_up.
3830 (debuginfod_source_query): Adjust.
3831 (debuginfod_debuginfo_query): Adjust.
3832
3246bd8e
SM
38332020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3834
3835 * debuginfod-support.c (debuginfod_source_query): Use
3836 make_unique_xstrdup.
3837
10242f36
SM
38382020-09-14 Simon Marchi <simon.marchi@efficios.com>
3839
3840 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3841 with `type::instance_flags`.
3842
e1044e6a
MM
38432020-09-14 Michael Mullin <masmullin@gmail.com>
3844
3845 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3846 Remove baton parameter.
3847
04902b09
PA
38482020-09-14 Pedro Alves <pedro@palves.net>
3849
3850 * Makefile.in (SELFTESTS_SRCS): Add
3851 unittests/enum-flags-selftests.c.
3852 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3853 btrace_function_flags instead of enum btrace_function_flag.
3854 * compile/compile-c-types.c (convert_qualified): Use
3855 enum_flags::raw.
3856 * compile/compile-cplus-symbols.c (convert_one_symbol)
3857 (convert_symbol_bmsym):
3858 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3859 (compile_cplus_convert_struct_or_union_methods)
3860 (compile_cplus_instance::convert_qualified_base):
3861 * go-exp.y (parse_string_or_char): Add cast to int.
3862 * unittests/enum-flags-selftests.c: New file.
3863 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3864 type to btrace_thread_flags from btrace_thread_flag.
3865 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3866 local's type to btrace_thread_flags from btrace_thread_flag. Add
3867 cast in DEBUG call.
3868
69896a2c
PA
38692020-09-14 Pedro Alves <pedro@palves.net>
3870
3871 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3872 * gdbtypes.c (address_space_name_to_int): Rename to ...
3873 (address_space_name_to_type_instance_flags): ... this.
3874 (address_space_int_to_name): Rename to ...
3875 (address_space_type_instance_flags_to_name): ... this.
3876 * gdbtypes.h (address_space_name_to_int): Rename to ...
3877 (address_space_name_to_type_instance_flags): ... this.
3878 (address_space_int_to_name): Rename to ...
3879 (address_space_type_instance_flags_to_name): ... this.
3880 * type-stack.c (type_stack::insert): Adjust to rename.
3881 * type-stack.h (type_stack::insert): Likewise.
3882
314ad88d
PA
38832020-09-14 Pedro Alves <pedro@palves.net>
3884 Andrew Burgess <andrew.burgess@embecosm.com>
3885
3886 * avr-tdep.c (avr_address_class_type_flags): Return
3887 type_instance_flags.
3888 (avr_address_class_type_flags_to_name): Take a
3889 type_instance_flags.
3890 (avr_address_class_name_to_type_flags): Return bool and take a
3891 type_instance_flags.
3892 * d-lang.c (build_d_types): Use type::set_instance_flags.
3893 * ft32-tdep.c (ft32_address_class_type_flags): Return
3894 type_instance_flags.
3895 (ft32_address_class_type_flags_to_name): Take a
3896 type_instance_flags.
3897 (ft32_address_class_name_to_type_flags): Return bool and take a
3898 type_instance_flags.
3899 (ft32_gdbarch_init): Use type::set_instance_flags.
3900 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3901 * gdbarch.h, gdbarch.c: Regenerate.
3902 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3903 (address_class_name_to_type_flags): Use type_instance_flags and
3904 bool.
3905 * gdbtypes.c (address_space_name_to_int)
3906 (address_space_int_to_name, make_qualified_type): Use
3907 type_instance_flags.
3908 (make_qualified_type): Use type_instance_flags and
3909 type::set_instance_flags.
3910 (make_type_with_address_space, make_cv_type, make_vector_type)
3911 (check_typedef): Use type_instance_flags.
3912 (recursive_dump_type): Cast type_instance_flags to unsigned for
3913 printing.
3914 (copy_type_recursive): Use type::set_instance_flags.
3915 (gdbtypes_post_init): Use type::set_instance_flags.
3916 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3917 <m_instance_flags>: ... this.
3918 <instance_flags, set_instance_flags>: New methods.
3919 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3920 (SET_TYPE_INSTANCE_FLAGS): New.
3921 (address_space_name_to_int, address_space_int_to_name)
3922 (make_type_with_address_space): Pass flags using
3923 type_instance_flags instead of int.
3924 * stabsread.c (cleanup_undefined_types_noname): Use
3925 type::set_instance_flags.
3926 * s390-tdep.c (s390_address_class_type_flags): Return
3927 type_instance_flags.
3928 (s390_address_class_type_flags_to_name): Take a
3929 type_instance_flags.
3930 (s390_address_class_name_to_type_flags): Return bool and take a
3931 type_instance_flags.
3932 * type-stack.c (type_stack::follow_types): Use
3933 type_instance_flags.
3934 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3935
27087b7f
TT
39362020-09-14 Tom Tromey <tromey@adacore.com>
3937
3938 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3939 * x86-tdep.c (x86_is_thunk_register_name)
3940 (x86_in_indirect_branch_thunk): Update.
3941 * sparc64-tdep.c (sparc64_fpu_register_names)
3942 (sparc64_cp0_register_names, sparc64_register_names)
3943 (sparc64_pseudo_register_names): Now const.
3944 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3945 cp0_registers_num>: Now const.
3946 * sparc-tdep.c (sparc_core_register_names)
3947 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3948 (sparc32_pseudo_register_names): Now const.
3949 (validate_tdesc_registers): Update.
3950 * rust-lang.c (rust_extensions): Now const.
3951 * p-lang.c (p_extensions): Now const.
3952 * objc-lang.c (objc_extensions): Now const.
3953 * nto-tdep.c (nto_thread_state_str): Now const.
3954 * moxie-tdep.c (moxie_register_names): Now const.
3955 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3956 Now const.
3957 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3958 (mips_linux_reg_names): Now const.
3959 (mips_gdbarch_init): Update.
3960 * microblaze-tdep.c (microblaze_register_names): Now const.
3961 * m68k-tdep.c (m68k_register_names): Now const.
3962 * m32r-tdep.c (m32r_register_names): Now const.
3963 * ia64-tdep.c (ia64_register_names): Now const.
3964 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3965 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3966 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3967 ymm_avx512_register_names, pkeys_register_names>: Now const.
3968 * i386-tdep.c (i386_register_names, i386_zmm_names)
3969 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3970 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3971 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3972 * f-lang.c (f_extensions): Now const.
3973 * d-lang.c (d_extensions): Now const.
3974 * csky-tdep.c (csky_register_names): Now const.
3975 * charset.c (default_charset_names, charset_enum): Now const.
3976 (_initialize_charset): Update.
3977 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3978 const.
3979 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3980 (bsd_uthread_solib_loaded): Update.
3981 (bsd_uthread_state): Now const.
3982 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3983 (amd64_ymm_avx512_names, amd64_ymmh_names)
3984 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3985 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3986 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3987 (amd64_dword_names): Now const.
3988 * agent.c (can_use_agent_enum): Now const.
3989 * ada-tasks.c (task_states, long_task_states): Now const.
3990 * ada-lang.c (known_runtime_file_name_patterns)
3991 (known_auxiliary_function_name_patterns, attribute_names)
3992 (standard_exc, ada_extensions): Now const.
3993
89806626
SM
39942020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3995
3996 * bcache.h (struct bcache) <bcache>: Remove constructor.
3997 <m_hash_function, m_compare_function>: Remove.
3998 <~bcache>: Make virtual.
3999 <compare>: Remove static method, introduce virtual method.
4000 <default_hash>: Remove.
4001 <hash>: New virtual method.
4002 * bcache.c (bcache::expand_hash_table): Update.
4003 (bcache::insert): Update.
4004 (bcache::hash): New.
4005 (bcache::compare): Update comment and parameter names.
4006 * gdbtypes.c (types_deeply_equal): Update.
4007 * psymtab.h (struct psymbol_bcache): New struct.
4008 (class psymtab_storage) <psymtab_storage>: Make default.
4009 <psymbol_cache>: Change type to psymbol_bcache.
4010 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4011 (psymbol_hash): Change to...
4012 (psymbol_bcache::hash): ... this.
4013 (psymbol_compare): Change to...
4014 (psymbol_bcache::compare): ... this.
4015
677c92fe
SM
40162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4017
4018 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4019 checking for initial lwp.
4020
3eba3a01
TT
40212020-09-14 Tom Tromey <tromey@adacore.com>
4022
4023 * m68k-tdep.c (m68k_extract_return_value): Use
4024 pointer_result_regnum.
4025 (m68k_store_return_value): Likewise.
4026 (m68k_reg_struct_return_p): Handle vectors and arrays.
4027 (m68k_return_value): Handle arrays.
4028 (m68k_svr4_return_value): Fix single-element aggregate handling.
4029 Handle long double. Adjust for embedded ABI.
4030 (m68k_svr4_init_abi): Set pointer_result_regnum.
4031 (m68k_embedded_init_abi): New function.
4032 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4033 (m68k_osabi_sniffer): New function.
4034 (_initialize_m68k_tdep): Register osabi sniffer.
4035 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4036 member.
4037
33f4dd48
SM
40382020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4039
4040 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4041 with gdb::unique_xmalloc_ptr<char>.
4042
8400a90d
SM
40432020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4044
4045 * xml-support.h (xml_fetch_another): Change type to be a
4046 function_view.
4047 (xml_process_xincludes): Remove baton parameter.
4048 (xml_fetch_content_from_file): Change baton parameter to
4049 dirname.
4050 * xml-support.c (struct xinclude_parsing_data)
4051 <xinclude_parsing_data>: Remove baton parameter.
4052 <fetcher_baton>: Remove.
4053 (xinclude_start_include): Adjust.
4054 (xml_process_xincludes): Adjust.
4055 (xml_fetch_content_from_file): Replace baton parameter with
4056 dirname.
4057 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4058 (xml_init_syscalls_info): Use a lambda.
4059 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4060 (file_read_description_xml): Use a lambda.
4061 (fetch_available_features_from_target): Change baton parameter
4062 to target_ops.
4063 (target_read_description_xml): Use a lambda.
4064 (target_fetch_description_xml): Use a lambda.
4065 (string_read_description_xml): Update.
4066
04f5bab2
SM
40672020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4068
4069 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4070 uses with type::endianity_is_not_default.
4071
db558e34
SM
40722020-09-14 Simon Marchi <simon.marchi@efficios.com>
4073
4074 * gdbtypes.h (struct type) <endianity_is_not_default,
4075 set_endianity_is_not_default>: New methods.
4076 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4077 type::endianity_is_not_default, change all write call sites to
4078 use type::set_endianity_is_not_default.
4079
22c4c60c
SM
40802020-09-14 Simon Marchi <simon.marchi@efficios.com>
4081
4082 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4083 uses with type::is_fixed_instance.
4084
9cdd0d12
SM
40852020-09-14 Simon Marchi <simon.marchi@efficios.com>
4086
4087 * gdbtypes.h (struct type) <is_fixed_instance,
4088 set_is_fixed_instance>: New methods.
4089 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4090 write call sites to use type::set_is_fixed_instance.
4091
0becda7a
SM
40922020-09-14 Simon Marchi <simon.marchi@efficios.com>
4093
4094 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4095 uses with type::is_gnu_ifunc.
4096
03cc7249
SM
40972020-09-14 Simon Marchi <simon.marchi@efficios.com>
4098
4099 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4100 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4101 use type::set_is_gnu_ifunc.
4102
3f46044c
SM
41032020-09-14 Simon Marchi <simon.marchi@efficios.com>
4104
4105 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4106 uses with type::stub_is_supported.
4107
9baccff6
SM
41082020-09-14 Simon Marchi <simon.marchi@efficios.com>
4109
4110 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4111 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4112 use type::set_stub_is_supported.
4113
bd63c870
SM
41142020-09-14 Simon Marchi <simon.marchi@efficios.com>
4115
4116 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4117 uses with type::is_vector.
4118
2062087b
SM
41192020-09-14 Simon Marchi <simon.marchi@efficios.com>
4120
4121 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4122 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4123 use type::set_is_vector.
4124
a409645d
SM
41252020-09-14 Simon Marchi <simon.marchi@efficios.com>
4126
4127 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4128 uses with type::has_varargs.
4129
1d6286ed
SM
41302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4131
4132 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4133 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4134 use type::set_has_varargs.
4135
7f9f399b
SM
41362020-09-14 Simon Marchi <simon.marchi@efficios.com>
4137
4138 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4139 uses with type::is_prototyped.
4140
27e69b7a
SM
41412020-09-14 Simon Marchi <simon.marchi@efficios.com>
4142
4143 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4144 New methods.
4145 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4146 call sites to use type::set_is_prototyped.
4147
d2183968
SM
41482020-09-14 Simon Marchi <simon.marchi@efficios.com>
4149
4150 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4151 uses with type::target_is_stub.
4152
8f53807e
SM
41532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4154
4155 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4156 New methods.
4157 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4158 sites to use type::set_target_is_stub.
4159
e46d3488
SM
41602020-09-14 Simon Marchi <simon.marchi@efficios.com>
4161
4162 * gdbtypes.h (TYPE_STUB): Remove, replace all
4163 uses with type::is_stub.
4164
b4b73759
SM
41652020-09-14 Simon Marchi <simon.marchi@efficios.com>
4166
4167 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4168 (TYPE_STUB): Use type::is_stub, change all write call sites to
4169 use type::set_is_stub.
4170
20ce4123
SM
41712020-09-14 Simon Marchi <simon.marchi@efficios.com>
4172
4173 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4174 type::has_no_signedness.
4175
15152a54
SM
41762020-09-14 Simon Marchi <simon.marchi@efficios.com>
4177
4178 * gdbtypes.h (struct type) <has_no_signedness,
4179 set_has_no_signedness>: New methods.
4180 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4181 call sites to use type::set_has_no_signedness.
4182
c6d940a9
SM
41832020-09-14 Simon Marchi <simon.marchi@efficios.com>
4184
4185 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4186 type::is_unsigned.
4187
653223d3
SM
41882020-09-14 Simon Marchi <simon.marchi@efficios.com>
4189
4190 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4191 methods.
4192 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4193 sites to use type::set_is_unsigned.
4194
55ea94da 41952020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4196 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4197
e851246a
SM
4198 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4199 pointer and stack frame offset when unwinding.
55ea94da 4200
6791b117
PA
42012020-09-13 Pedro Alves <pedro@palves.net>
4202
4203 * NEWS: Document "-break-insert --qualified".
4204 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4205
77f2120b
PA
42062020-09-13 Pedro Alves <pedro@palves.net>
4207
4208 * linespec.c (classify_mtype, compare_msyms): Delete.
4209 (search_minsyms_for_name): Remove classification logic. Instead
4210 filter out trampoline symbols if we also found an external
4211 function of the same name.
4212
ed6a896c
JB
42132020-09-13 Joel Brobecker <brobecker@adacore.com>
4214
4215 * NEWS: Create a new section for the next release branch.
4216 Rename the section of the current branch, now that it has
4217 been cut.
4218
32aea73e
JB
42192020-09-13 Joel Brobecker <brobecker@adacore.com>
4220
4221 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4222 * version.in: Bump version to 11.0.50.DATE-git.
4223
8087c3fa
JB
42242020-09-12 Joel Brobecker <brobecker@adacore.com>
4225
4226 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4227
2a67f09d
FW
42282020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4229 Felix Willgerodt <Felix.Willgerodt@intel.com>
4230
4231 * gdbarch.sh: Added bfloat16 type.
4232 * gdbarch.c: Regenerated.
4233 * gdbarch.h: Regenerated.
4234 * gdbtypes.c (floatformats_bfloat16): New struct.
4235 (gdbtypes_post_init): Add builtin_bfloat16.
4236 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4237 (floatformats_bfloat16): New struct.
4238 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4239 (i386_ymm_type): Add field "v16_bfloat16"
4240 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4241 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4242 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4243 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4244 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4245 * features/i386/64bit-avx512.c: Regenerated.
4246 * features/i386/64bit-sse.xml: Add bfloat16 type.
4247 * features/i386/64bit-sse.c: Regenerated.
4248
1347d111
FW
42492020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4250
4251 * i386-tdep.c (i386_zmm_type): Fix field names.
4252 (i386_ymm_type): Fix field names.
4253
7a4e8e7d
TBA
42542020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4255
4256 * breakpoint.c: Fix typo in the help message of the
4257 "set breakpoint condition-evaluation" command.
4258
cf4ac4be
KR
42592020-09-10 Kamil Rytarowski <n54@gmx.com>
4260
4261 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4262 * (nbsd_nat_target::pid_to_exec_file)
4263 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4264 (nbsd_nat_target::post_startup_inferior)
4265 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4266 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4267 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4268 * (nbsd_thread_lister): Remove.
4269
f404573e
KR
42702020-09-10 Kamil Rytarowski <n54@gmx.com>
4271
4272 * fork-inferior.c (startup_inferior): Avoid double free.
4273
1ccb2c17
KR
42742020-09-10 Kamil Rytarowski <n54@gmx.com>
4275
4276 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4277 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4278
feedfcc7
KR
42792020-09-10 Kamil Rytarowski <n54@gmx.com>
4280
4281 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4282 * netbsd-nat.c: Include <sys/ptrace.h>.
4283 * (netbsd_nat::enable_proc_events): Add.
4284
c489f8c6
KR
42852020-09-10 Kamil Rytarowski <n54@gmx.com>
4286
4287 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4288 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4289 (netbsd_nat::for_each_thread): Add.
4290 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4291 "gdbsupport/common-debug.h".
4292 * (netbsd_nat::netbsd_thread_lister)
4293 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4294 (netbsd_nat::for_each_thread): Add.
4295
330662f6
KR
42962020-09-10 Kamil Rytarowski <n54@gmx.com>
4297
4298 * netbsd-nat.h: Include <unistd.h>.
4299 * (netbsd_nat::pid_to_exec_file): Add.
4300 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4301 * (netbsd_nat::pid_to_exec_file) Add.
4302
70b67307
KR
43032020-09-10 Kamil Rytarowski <n54@gmx.com>
4304
4305 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4306
99cf6da6
KR
43072020-09-10 Kamil Rytarowski <n54@gmx.com>
4308
4309 * netbsd-nat.h: New file.
4310 * netbsd-nat.c: Likewise.
4311
1b788fb6
TT
43122020-09-09 Tom Tromey <tromey@adacore.com>
4313
4314 * ada-lang.c (remove_extra_symbols): Do not increment when
4315 removing an element
4316
03b0a45f
TT
43172020-09-08 Tom Tromey <tromey@adacore.com>
4318
4319 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4320
3cae4447
TT
43212020-09-08 Tom Tromey <tromey@adacore.com>
4322
4323 PR win32/25302:
4324 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4325 (gdb_bfd_init_data): New function.
4326 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4327
7f08fd51
TBA
43282020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4329
4330 * infrun.c (fetch_inferior_event): Use
4331 `switch_to_target_no_thread` to switch the target.
4332
3e6ff933
TT
43332020-09-06 Tom Tromey <tom@tromey.com>
4334
4335 * symfile.h (dwarf2_free_objfile): Don't declare.
4336
e56798df
AKS
43372020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4338
4339 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4340 to match 16 byte real/complex type generated by Flang compiler.
4341
8f5c6526
TV
43422020-09-03 Tom de Vries <tdevries@suse.de>
4343
4344 PR breakpoint/26546
4345 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4346 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4347
c5065df0
SM
43482020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4349
4350 * maint.c (index_digits): New function.
4351 (struct maint_print_section_data): Remove.
4352 (print_bfd_section_info): Remove print_data parameter, add arg
4353 and index_digits.
4354 (print_objfile_section_info): Likewise.
4355 (print_bfd_section_info_maybe_relocated): Likewise (plus
4356 objfile).
4357 (maintenance_info_sections): Adjust calls.
4358
02c6f3f1
TT
43592020-09-02 Tom Tromey <tromey@adacore.com>
4360
4361 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4362 for null pointers.
4363 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4364
ef5e5b0b
SM
43652020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4366
4367 * bcache.h (struct bcache) <insert>: Change type of `added` to
4368 pointer to bool.
4369 * bcache.c (bcache::insert): Likewise.
4370 * gdbtypes.c (check_types_worklist): Adjust.
4371 * psymtab.c (add_psymbol_to_bcache): Adjust.
4372
973695d6
KB
43732020-08-31 Kevin Buettner <kevinb@redhat.com>
4374
4375 * corelow.c (unordered_set): Include.
4376 (class core_target): Add field 'm_core_unavailable_mappings'.
4377 (core_target::build_file_mappings): Print only one warning
4378 per inaccessible file. Add unavailable/broken mappings
4379 to m_core_unavailable_mappings.
4380 (core_target::xfer_partial): Call...
4381 (core_target::xfer_memory_via_mappings): New method.
4382
264fc0e2
SM
43832020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4384
4385 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4386 type to bool.
4387
2de01bdb
SM
43882020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4389
4390 * dwarf2/read.c (struct field_info): Fix indentation.
4391
f3bd50f1
SM
43922020-08-31 Simon Marchi <simon.marchi@efficios.com>
4393
4394 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4395 ordering in comment.
4396 * frame.c (frame_id_eq): Fix indentation.
4397
22b9b4b0
SL
43982020-08-31 Scott Linder <scott@scottlinder.com>
4399 Simon Marchi <simon.marchi@efficios.com>
4400
4401 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4402 inline frame ids in outer frame.
4403
84154d16
SM
44042020-08-31 Simon Marchi <simon.marchi@efficios.com>
4405
4406 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4407 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4408 (outer_frame_id): Use FID_STACK_OUTER instead of
4409 FID_STACK_INVALID.
4410 (frame_id_p): Don't check for outer_frame_id.
4411
8efaf6b3
SM
44122020-08-31 Simon Marchi <simon.marchi@efficios.com>
4413
4414 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4415 regnum/frame in value. Call allocate_value_lazy.
4416 * frame.c (frame_unwind_register_value): Use
4417 val_print_not_saved.
4418
fe1fe7ea
SM
44192020-08-31 Simon Marchi <simon.marchi@efficios.com>
4420
4421 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4422
f7c7700d
PA
44232020-08-29 Pedro Alves <pedro@palves.net>
4424
4425 * progspace.c (print_program_space): Use all_inferiors. Switch to
4426 the inferior before calling target_pid_to_str.
4427
e0814aae
TT
44282020-08-28 Tom Tromey <tom@tromey.com>
4429
4430 * xcoffread.c (xcoff_end_psymtab): Update comment.
4431 * dbxread.c (dbx_end_psymtab): Update comment.
4432
626d2320
TV
44332020-08-28 Tom de Vries <tdevries@suse.de>
4434
4435 PR breakpoint/26544
4436 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4437 event_location.
4438 (create_breakpoint): Same.
4439 (base_breakpoint_decode_location): Same.
4440 (bkpt_create_sals_from_location): Same.
4441 (bkpt_decode_location): Same.
4442 (bkpt_probe_create_sals_from_location): Same.
4443 (bkpt_probe_decode_location): Same.
4444 (tracepoint_create_sals_from_location): Same.
4445 (tracepoint_decode_location): Same.
4446 (tracepoint_probe_decode_location): Same.
4447 (strace_marker_create_sals_from_location): Same.
4448 (strace_marker_decode_location): Same.
4449 (create_sals_from_location_default): Same.
4450 (decode_location_default): Same.
4451 * breakpoint.h (struct breakpoint_ops): Same.
4452 (create_breakpoint): Same.
4453 * linespec.h (decode_line_full): Same.
4454 * linespec.c (decode_line_full): Same. Throw error if
4455 result.size () == 0.
4456
df631783
PA
44572020-08-27 Pedro Alves <pedro@palves.net>
4458
4459 PR gdb/26524
4460 * breakpoint.c (until_break_fsm) <location_breakpoint,
4461 caller_breakpoint>: Delete fields.
4462 <breakpoints>: New field.
4463 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4464 two individual breakpoints.
4465 (until_break_fsm::should_stop): Loop over breakpoints in the
4466 breakpoint vector.
4467 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4468 vector.
4469 (until_break_command): Handle location expanding into multiple
4470 sals.
4471
b2b38aa4
PA
44722020-08-27 Pedro Alves <pedro@palves.net>
4473
4474 PR gdb/26523
4475 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4476 bp_until breakpoints user-specified locations. Update intro
4477 comment.
4478
b886559f
SM
44792020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4480
4481 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4482 gdb_bfd_sections): New.
4483 * maint.c (print_bfd_section_info): Change param type to
4484 maint_print_section_data.
4485 (print_objfile_section_info): Likewise.
4486 (print_bfd_section_info_maybe_relocated): Likewise.
4487 (maintenance_info_sections): Use gdb_bfd_sections.
4488
4c6e63bf
SV
44892020-08-25 Shahab Vahedi <shahab@synopsys.com>
4490
4491 * MAINTAINERS: Add ARC target and maintainer.
4492
8d7f0635
AK
44932020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4494
4495 * configure.tgt: ARC support for GNU/Linux.
4496 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4497 * arc-linux-tdep.c: New file.
4498 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4499 * arc-tdep.c (arc_write_pc): Use it.
4500
fdd8731b
SV
45012020-08-25 Shahab Vahedi <shahab@synopsys.com>
4502
4503 * arc-tdep.c (arc_check_for_hardware_loop): New.
4504 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4505
22459524
SV
45062020-08-25 Shahab Vahedi <shahab@synopsys.com>
4507
4508 * arc-tdep.h: Include "gdbarch.h".
4509
995d3a19
SV
45102020-08-25 Shahab Vahedi <shahab@synopsys.com>
4511
4512 * arch/arc.h
4513 (arc_gdbarch_features): New class to stir the selection of target XML.
4514 (arc_create_target_description): Use FEATURES to choose XML target.
4515 (arc_lookup_target_description): Use arc_create_target_description
4516 to create _new_ target descriptions or return the already created
4517 ones if the FEATURES is the same.
4518 * arch/arc.c: Implementation of prototypes described above.
4519 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4520 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4521 * arc-tdep.c (*_feature_name): Make feature names consistent.
4522 (arc_register_feature): A new struct to hold information about
4523 registers of a particular target/feature.
4524 (arc_check_tdesc_feature): Check if XML provides registers in
4525 compliance with ARC_REGISTER_FEATURE structs.
4526 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4527 (determine_*_reg_feature_set): Which feature name to look for.
4528 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4529 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4530 to expected ISA enums to be used in arc_gdbarch_features structs.
4531 * features/Makefile (FEATURE_XMLFILES): Add new files.
4532 * gdb/features/arc/v1-aux.c: New file.
4533 * gdb/features/arc/v1-aux.xml: Likewise.
4534 * gdb/features/arc/v1-core.c: Likewise.
4535 * gdb/features/arc/v1-core.xml: Likewise.
4536 * gdb/features/arc/v2-aux.c: Likewise.
4537 * gdb/features/arc/v2-aux.xml: Likewise.
4538 * gdb/features/arc/v2-core.c: Likewise.
4539 * gdb/features/arc/v2-core.xml: Likewise.
4540 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4541
3945d2d7
GM
45422020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4543 Andrew Burgess <andrew.burgess@embecosm.com>
4544
4545 PR m2/26372
fc5d6901 4546 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4547 an assert. Remove single element array indexing pattern as the
4548 MULTI_SUBSCRIPT support will handle this case too.
4549
2677f2d3
SM
45502020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4551
4552 * value.h (valprint_check_validity): Move declaration from
4553 here...
4554 * valprint.h (valprint_check_validity): ... to here.
4555
c426fddb
SM
45562020-08-24 Simon Marchi <simon.marchi@efficios.com>
4557
4558 * debug.h: New file.
4559 * debug.c (debug_prefixed_vprintf): New function.
4560 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4561 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4562
1eb8556f
SM
45632020-08-24 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * infrun.h (infrun_debug_printf_1): New function declaration.
4566 (infrun_debug_printf): New macro.
4567 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4568 throughout.
4569 (infrun_debug_printf): New function.
4570 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4571 (handle_jit_event): Likewise.
4572
b8fff44e
MW
45732020-08-21 Mark Wielaard <mark@klomp.org>
4574
4575 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4576
d19c3068
SM
45772020-08-22 Simon Marchi <simon.marchi@efficios.com>
4578
4579 * frame.c (enum class frame_id_status): New.
4580 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4581 (fprintf_frame): Update.
4582 (compute_frame_id): Set frame id status to "computing" on entry.
4583 Set it back to "not_computed" on failure and to "computed" on
4584 success.
4585 (get_frame_id): Assert the frame id is not being computed.
4586 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4587 (create_new_frame): Likewise.
4588 (frame_cleanup_after_sniffer): Update assert.
4589
b70e516e
SM
45902020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4591
4592 * regcache.c (pid_ptid_regcache_map): New type.
4593 (target_ptid_regcache_map): Remove.
4594 (target_pid_ptid_regcache_map): New type.
4595 (regcaches): Change type to target_pid_ptid_regcache_map.
4596 (get_thread_arch_aspace_regcache): Update.
4597 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4598 case.
4599 (regcaches_size): Update.
4600 (regcache_count): Update.
4601 (registers_changed_ptid_target_pid_test): New.
4602 (_initialize_regcache): Register new test.
4603
cdd9148a
SM
46042020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4605
4606 * regcache.c (regcache_count): New.
4607 (struct regcache_test_data): New.
4608 (regcache_test_data_up): New.
4609 (populate_regcaches_for_test): New.
4610 (regcaches_test): Remove.
4611 (get_thread_arch_aspace_regcache_test): New.
4612 (registers_changed_ptid_all_test): New.
4613 (registers_changed_ptid_target_test): New.
4614 (registers_changed_ptid_target_ptid_test): New.
4615 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4616 (_initialize_regcache): Register new tests.
4617
dd125343
SM
46182020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4619
4620 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4621 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4622 gdbarch and aspace parameter. Use current inferior's aspace.
4623 Validate regcache's arch value.
4624 (regcaches_test): Update.
4625
3ee93972
SM
46262020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4627
4628 * regcache.c (regcaches_test): Call registers_changed.
4629
33bf4c5c
TBA
46302020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4631
4632 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4633
c2fd7fae
AKS
46342020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4635
4636 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4637 to find the end of prologue for flang compiled binaries.
4638 * arm-tdep.c (arm_skip_prologue): Likewise.
4639 * i386-tdep.c (i386_skip_prologue): Likewise.
4640 * producer.c (producer_is_llvm): New function.
4641 (producer_parsing_tests): Added new tests for clang/flang.
4642 * producer.h (producer_is_llvm): New declaration.
4643
9327494e
SM
46442020-08-18 Simon Marchi <simon.marchi@efficios.com>
4645
4646 * linux-nat.c (linux_nat_debug_printf): New function.
4647 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4648
d138725a
AM
46492020-08-18 Aaron Merey <amerey@redhat.com>
4650
4651 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4652 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4653 (CLIBS): Add DEBUGINFOD_LIBS.
4654
f9b11e6b
ST
46552020-08-17 Sergei Trofimovich <siarheit@google.com>
4656
4657 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4658 'gdbarch_num_regs'.
4659
3ae7ab99
TT
46602020-08-17 Tom Tromey <tromey@adacore.com>
4661
4662 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4663 ada_get_decoded_value returns NULL.
4664
b017825f
TT
46652020-08-17 Tom Tromey <tromey@adacore.com>
4666
4667 * python/py-inferior.c (infpy_search_memory): Use
4668 gdb_py_object_from_ulongest.
4669 * python/py-infevents.c (create_inferior_call_event_object)
4670 (create_memory_changed_event_object): Use
4671 gdb_py_object_from_ulongest.
4672 * python/py-linetable.c (ltpy_entry_get_pc): Use
4673 gdb_py_object_from_ulongest.
4674
7635cf79
SM
46752020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4676
4677 * loc.c (class symbol_needs_eval_context): Fix indentation.
4678
f54be24b
SM
46792020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4680
4681 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4682 bool.
4683
53d5a2a5
TV
46842020-08-17 Tom de Vries <tdevries@suse.de>
4685
4686 PR gdb/26393
4687 * gdbtypes.c (dump_dynamic_prop): New function.
4688 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4689
547ce8f0
TV
46902020-08-15 Tom de Vries <tdevries@suse.de>
4691
4692 PR backtrace/26390
4693 * stack.c (print_frame_args): Temporarily set the selected
4694 frame to FRAME while printing the frame's arguments.
4695
6ea815e7
PFC
46962020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4697
4698 PR breakpoints/26385
4699 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4700 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4701
6e562fa3
PFC
47022020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4703
4704 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4705 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4706 and >= to check return value instead of == -1 and != -1.
4707
d369b608
SM
47082020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4709
4710 * utils.h (class gdb_argv) <as_array_view>: New method.
4711 * utils.c (gdb_argv_as_array_view_test): New.
4712 (_initialize_utils): Register selftest.
4713 * maint.c (maintenance_selftest): Use the new method.
4714
b31488a3
KR
47152020-08-13 Kamil Rytarowski <n54@gmx.com>
4716
4717 * target.h (supports_dumpcore, dumpcore): New
4718 function declarations.
4719 * target.c (supports_dumpcore, dumpcore): New
4720 functions.
4721 * target-delegates.c: Rebuild.
4722 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4723 and target_dumpcore ().
4724
002a3166
AM
47252020-08-13 Aaron Merey <amerey@redhat.com>
4726
4727 * debuginfod-support.c: Replace global variables with user_data.
4728
ece5bc8a
SM
47292020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4730
4731 * maint.c (maintenance_selftest): Split args and pass array_view
4732 to run_tests.
4733
6d8a0a5e
LM
47342020-08-12 Luis Machado <luis.machado@linaro.org>
4735
4736 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4737 type's length.
4738 Use %s and pulongest to print the length.
4739
7cf663a9
PA
47402020-08-12 Pedro Alves <palves@redhat.com>
4741
4742 * NEWS: Move "Multi-target debugging support" item to the
4743 "Changes since GDB 9" section.
4744
27c7b875
PA
47452020-08-12 Pedro Alves <palves@redhat.com>
4746
4747 PR gdb/26336
4748 * progspace.c (program_space::remove_objfile): Invalidate the
4749 frame cache.
4750
1796a2a1
TV
47512020-08-11 Tom de Vries <tdevries@suse.de>
4752
4753 * MAINTAINERS: Mark ms1 as deleted.
4754
f8e3fe0d
LM
47552020-08-10 Luis Machado <luis.machado@linaro.org>
4756
4757 PR gdb/26310
4758
4759 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4760 act accordingly.
4761 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4762 movz/str/stur/stp skipping behavior.
4763
cc308722
LM
47642020-08-10 Luis Machado <luis.machado@linaro.org>
4765
4766 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4767 struct user_sve_header instead of struct sve_context.
4768
041d9819
SM
47692020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4770
4771 * read.h (dwarf2_fetch_die_loc_sect_off,
4772 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4773 `void *` parameter with function_view.
4774 * read.c (dwarf2_fetch_die_loc_sect_off,
4775 dwarf2_fetch_die_loc_cu_off): Likewise.
4776 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4777 (per_cu_dwarf_call): Adjust.
4778 (get_frame_address_in_block_wrapper): Remove.
4779 (indirect_synthetic_pointer): Adjust.
4780 (get_ax_pc): Remove.
4781 (dwarf2_compile_expr_to_ax): Adjust.
4782
38f8aa06
TV
47832020-08-08 Tom de Vries <tdevries@suse.de>
4784
4785 PR build/26344
4786 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4787 constructor.
4788 * regcache.c (get_thread_arch_aspace_regcache): Same.
4789
a52b3ae2
TT
47902020-08-07 Tom Tromey <tromey@adacore.com>
4791
4792 * ravenscar-thread.c
4793 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4794 New method.
4795 (ravenscar_thread_target::wait): Check
4796 runtime_initialized.
4797 (ravenscar_thread_target::prepare_to_store)
4798 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4799 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4800 (ravenscar_thread_target::stopped_by_watchpoint)
4801 (ravenscar_thread_target::stopped_data_address)
4802 (ravenscar_thread_target::core_of_thread): Use
4803 scoped_restore_current_thread and
4804 set_base_thread_from_ravenscar_task.
4805
0e29517d
TT
48062020-08-07 Tom Tromey <tromey@adacore.com>
4807
4808 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4809
592f9bd7
TT
48102020-08-07 Tom Tromey <tromey@adacore.com>
4811
4812 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4813 update_inferior_ptid before update_thread_list.
4814 (temporarily_change_regcache_ptid): New class.
4815 (ravenscar_thread_target::fetch_registers)
4816 (ravenscar_thread_target::store_registers)
4817 (ravenscar_thread_target::prepare_to_store): Use base thread when
4818 forwarding operation.
4819
39e2018a
TT
48202020-08-07 Tom Tromey <tromey@adacore.com>
4821
4822 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4823 "is_pid" case.
4824
2080266b
TT
48252020-08-07 Tom Tromey <tromey@adacore.com>
4826
4827 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4828 New methods.
4829 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4830 first.
4831 (ravenscar_thread_target::add_thread): Rename from
4832 ravenscar_add_thread.
4833 (ravenscar_thread_target::update_thread_list): Use a lambda.
4834 (ravenscar_thread_target::xfer_partial): New method.
4835
78c02f21
TT
48362020-08-07 Tom Tromey <tromey@adacore.com>
4837
4838 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4839 gdb::function_view.
4840 (iterate_over_live_ada_tasks): Change type of argument.
4841 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4842 of argument.
4843
d5d833af
TT
48442020-08-07 Tom Tromey <tromey@adacore.com>
4845
4846 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4847 Remove.
4848 (ravenscar_thread_target::extra_thread_info): Remove.
4849 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4850 defer to target beneath for non-Ravenscar threads.
4851
a8ac85bb
TT
48522020-08-07 Tom Tromey <tromey@adacore.com>
4853
4854 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4855 get_base_thread_from_ravenscar_task>: Now methods.
4856 <m_cpu_map>: New member.
4857 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4858 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4859 (ravenscar_thread_target::task_is_currently_active): Update.
4860 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4861 Now a method.
4862 (ravenscar_thread_target::add_active_thread): Put initial thread
4863 into the m_cpu_map.
4864
550ab58d
TT
48652020-08-07 Tom Tromey <tromey@adacore.com>
4866
4867 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4868 event_ptid.
4869
e9546579
TT
48702020-08-07 Tom Tromey <tromey@adacore.com>
4871
4872 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4873 runtime_initialized.
4874
3d4470e5
TT
48752020-08-07 Tom Tromey <tromey@adacore.com>
4876
4877 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4878 add_active_thread.
4879 (ravenscar_thread_target::add_active_thread): Now public.
4880 (ravenscar_inferior_created): Call add_active_thread after pushing
4881 the target.
4882
888bdb2b
SM
48832020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4884
4885 * regcache.c (ptid_regcache_map): New type.
4886 (target_ptid_regcache_map): New type.
4887 (regcaches): Change type to target_ptid_regcache_map.
4888 (get_thread_arch_aspace_regcache): Update to regcaches' new
4889 type.
4890 (regcache_thread_ptid_changed): Likewise.
4891 (registers_changed_ptid): Likewise.
4892 (regcaches_size): Likewise.
4893 (regcaches_test): Update.
4894 (regcache_thread_ptid_changed): Update.
4895 * regcache.h (regcache_up): New type.
4896 * gdbsupport/ptid.h (hash_ptid): New struct.
4897
b161a60d
SM
48982020-08-07 Simon Marchi <simon.marchi@efficios.com>
4899
4900 * observable.h (thread_ptid_changed): Add parameter
4901 `process_stratum_target *`.
4902 * infrun.c (infrun_thread_ptid_changed): Add parameter
4903 `process_stratum_target *` and use it.
4904 (selftests): New namespace.
4905 (infrun_thread_ptid_changed): New function.
4906 (_initialize_infrun): Register selftest.
4907 * regcache.c (regcache_thread_ptid_changed): Add parameter
4908 `process_stratum_target *` and use it.
4909 (regcache_thread_ptid_changed): New function.
4910 (_initialize_regcache): Register selftest.
4911 * thread.c (thread_change_ptid): Pass target to
4912 thread_ptid_changed observable.
4913
d2854d8d
CT
49142020-08-06 Caroline Tice <cmtice@google.com>
4915
fe4c3d43
SM
4916 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4917 (struct dwp_sections): Update field comments. Add loclists and
4918 rnglists fields.
4919 (struct virtual_v2_dwo_sections): Rename struct to
4920 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4921 size & offset fields for loclists and rnglists.
4922 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4923 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4924 skipping dummy type units.
4925 (create_dwp_hash_table): Update the large comment above the function to
4926 discuss Version 5 DWP files as well, with references. Update all the
4927 version checks in the function to check for version 5 as well. Add new
4928 section at the end to create dwp hash table for version 5.
4929 (create_dwp_v2_section): Rename function to
4930 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4931 Add V5 to error message text.
4932 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4933 into calls to create_dwp_v2_or_v5_section.
4934 (create_dwo_unit_in_dwp_v5): New function.
4935 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4936 check for version2; add else clause to handle version 5.
4937 (open_and_init_dwo_file): Add code to check dwarf version & only call
4938 create_debug_types_hash_table (with sections.types) if version is not 5;
4939 else call create_debug_type_hash_table, with sections.info.
4940 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4941 version 5.
4942 (dwarf2_locate_v5_dwp_sections): New function.
4943 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4944 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4945
159ed7d9
SM
49462020-08-06 Simon Marchi <simon.marchi@efficios.com>
4947
4948 * regcache.h (class regcache): Remove friend
4949 registers_changed_ptid.
4950 <regcache_thread_ptid_changed>: Remove.
4951 <regcaches>: Remove.
4952 * regcache.c (regcache::regcaches): Rename to...
4953 (regcaches): ... this. Make static.
4954 (get_thread_arch_aspace_regcache): Update.
4955 (regcache::regcache_thread_ptid_changed): Rename to...
4956 (regcache_thread_ptid_changed): ... this. Update.
4957 (class regcache_access): Remove.
4958 (regcaches_test): Update.
4959 (_initialize_regcache): Update.
4960 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4961 <forward_list>.
4962
174981ae
SM
49632020-08-06 Simon Marchi <simon.marchi@efficios.com>
4964
4965 * regcache.h (class regcache) <current_regcache>: Rename to...
4966 <regcaches>: ... this. Move doc here.
4967 * regcache.c (regcache::current_regcache) Rename to...
4968 (regcache::regcaches): ... this. Move doc to header.
4969 (get_thread_arch_aspace_regcache): Update.
4970 (regcache::regcache_thread_ptid_changed): Update.
4971 (registers_changed_ptid): Update.
4972 (class regcache_access) <current_regcache_size>: Rename to...
4973 <regcaches_size>: ... this.
4974 (current_regcache_test): Rename to...
4975 (regcaches_test): ... this.
4976 (_initialize_regcache): Update.
4977
ed908db6
VC
49782020-08-06 Victor Collod <vcollod@nvidia.com>
4979
4980 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4981
b5582ab7
KB
49822020-08-05 Kevin Buettner <kevinb@redhat.com>
4983
4984 * corelow.c (core_target::build_file_mappings): Don't output
4985 null pathname in warning.
4986
ea946b86
SM
49872020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4988
4989 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4990 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4991 gdb.dwarf2/dw2-single-line-discriminators.exp,
4992 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4993
57d02173
TT
49942020-08-05 Tom Tromey <tromey@adacore.com>
4995
4996 PR rust/26197:
4997 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4998 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4999 Fix off-by-one and type size errors in ordinary case.
5000
5555c86d
TV
50012020-08-05 Tom de Vries <tdevries@suse.de>
5002
5003 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5004 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5005
97916bfe
SM
50062020-08-04 Simon Marchi <simon.marchi@efficios.com>
5007
5008 * frame.h (frame_id_p): Return bool.
5009 (frame_id_artificial_p): Return bool.
5010 (frame_id_eq): Return bool.
5011 (has_stack_frames): Return bool.
5012 (get_selected_frame): Fix typo in comment.
5013 (get_frame_pc_if_available): Return bool.
5014 (get_frame_address_in_block_if_available): Return bool.
5015 (get_frame_func_if_available): Return bool.
5016 (read_frame_register_unsigned): Return bool.
5017 (get_frame_register_bytes): Return bool.
5018 (safe_frame_unwind_memory): Return bool.
5019 (deprecated_frame_register_read): Return bool.
5020 (frame_unwinder_is): Return bool.
5021 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5022 bool.
5023 <this_id::p>: Likewise.
5024 <prev_p>: Likewise.
5025 (frame_stash_add): Return bool.
5026 (get_frame_id): Use bool.
5027 (frame_id_build_special) Use bool.
5028 (frame_id_build_unavailable_stack): Use bool.
5029 (frame_id_build): Use bool.
5030 (frame_id_p): Return bool, use true/false instead of 1/0.
5031 (frame_id_artificial_p): Likewise.
5032 (frame_id_eq): Likewise.
5033 (frame_id_inner): Likewise.
5034 (get_frame_func_if_available): Likewise.
5035 (read_frame_register_unsigned): Likewise.
5036 (deprecated_frame_register_read): Likewise.
5037 (get_frame_register_bytes): Likewise.
5038 (has_stack_frames): Likewise.
5039 (inside_main_func): Likewise.
5040 (inside_entry_func): Likewise.
5041 (get_frame_pc_if_available): Likewise.
5042 (get_frame_address_in_block_if_available): Likewise.
5043 (frame_unwinder_is): Likewise.
5044 (safe_frame_unwind_memory): Likewise.
5045 (frame_unwind_arch): Likewise.
5046
fedfee88
SM
50472020-08-04 Simon Marchi <simon.marchi@efficios.com>
5048
5049 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5050 type to cached_copy_status.
5051 (fprintf_frame): Adjust.
5052 (get_frame_func_if_available): Adjust.
5053 (frame_cleanup_after_sniffer): Adjust.
5054
6cfa9b59
MW
50552020-08-04 Mark Wielaard <mark@klomp.org>
5056
5057 * MAINTAINERS (Write After Approval): Update email address.
5058
66d6346b
SM
50592020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5060
5061 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5062 dynamic_prop::const_val.
5063
8a6d5e35
SM
50642020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5065
5066 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5067 dynamic_prop::kind.
5068
51d6067d
SM
50692020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5070
5071 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5072
b26e2ae7
JM
50732020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5074
5075 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5076
39791af2
JM
50772020-08-04 Weimin Pan <weimin.pan@oracle.com>
5078 Jose E. Marchesi <jose.marchesi@oracle.com>
5079
5080 * configure.tgt: Add entry for bpf-*-*.
5081 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5082 (ALLDEPFILES): Add bpf-tdep.c.
5083 * bpf-tdep.c: New file.
5084 * MAINTAINERS: Add bpf target and maintainer.
5085 * NEWS: Mention the support for the new target.
5086
521894aa
TV
50872020-08-04 Tom de Vries <tdevries@suse.de>
5088
5089 PR symtab/23270
5090 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5091 Error.
5092
5d6356e9
JB
50932020-08-03 John Baldwin <jhb@FreeBSD.org>
5094
5095 * syscalls/freebsd.xml: Regenerate.
5096
0cf82b81
JB
50972020-08-03 John Baldwin <jhb@FreeBSD.org>
5098
5099 * syscalls/update-freebsd.sh: Fix usage and year range.
5100
8f34b746
TV
51012020-08-03 Tom de Vries <tdevries@suse.de>
5102
5103 PR symtab/26333
5104 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5105 DW_LNE_lo_user/DW_LNE_hi_user range.
5106
5e500d33
SM
51072020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5108
5109 PR ada/26318
5110 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5111 kind.
5112
78319c15
TBA
51132020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5114
5115 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5116
4c55e970
TBA
51172020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5118
5119 * breakpoint.c (set_breakpoint_condition): Update the condition
5120 expressions after checking that the input condition string parses
5121 successfully and does not contain junk at the end.
5122
1e620590
TBA
51232020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5124
5125 * breakpoint.c (set_breakpoint_condition): Update the
5126 condition string after parsing the new condition successfully.
5127
c8693053
RO
51282020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5129
5130 * proc-api.c (_STRUCTURED_PROC): Don't define.
5131 * proc-events.c: Likewise.
5132 * proc-flags.c: Likewise.
5133 * proc-why.c: Likewise.
5134 * procfs.c: Likewise.
5135
5136 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5137 * configure, config.in: Regenerate.
5138
5a99adb8
TV
51392020-07-30 Tom de Vries <tdevries@suse.de>
5140
5141 PR build/26320
5142 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5143 m_red/m_green/m_blue in a union.
5144
8ba83e91
TV
51452020-07-29 Tom de Vries <tdevries@suse.de>
5146
5147 PR tdep/26280
5148 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5149
f75a0693
AB
51502020-07-28 Tom Tromey <tromey@adacore.com>
5151
5152 PR symtab/26270:
5153 * symtab.h (find_pc_partial_function_sym): Declare.
5154 * cli/cli-cmds.c (disassemble_command): Use
5155 find_pc_partial_function_sym. Check asm_demangle.
5156 * blockframe.c (cache_pc_function_sym): New global.
5157 (cache_pc_function_name): Remove.
5158 (clear_pc_function_cache): Update.
5159 (find_pc_partial_function_sym): New function, from
5160 find_pc_partial_function.
5161 (find_pc_partial_function): Rewrite using
5162 find_pc_partial_function_sym.
5163
16f3242c
TT
51642020-07-28 Tom Tromey <tromey@adacore.com>
5165
5166 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5167 help. Add usage.
5168
4888741a
TT
51692020-07-28 Tom Tromey <tromey@adacore.com>
5170
5171 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5172 <DW_OP_GNU_variable_value>: Cast to address type.
5173
4d46f402
KR
51742020-07-28 Kamil Rytarowski <n54@gmx.com>
5175
5176 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5177 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5178 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5179 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5180 (nbsd_get_siginfo_type): New.
5181 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5182 (_initialize_nbsd_tdep): New.
5183
d70f978b
L
51842020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5185
5186 PR binutils/26301
5187 * configure: Regenerated.
5188
377170fa
L
51892020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5190
5191 PR binutils/26301
5192 * configure: Regenerated.
5193
43d5901d
AB
51942020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5195
5196 * python/py-frame.c: Remove 'user-regs.h' include.
5197 (frapy_read_register): Rewrite to make use of
5198 gdbpy_parse_register_id.
5199 * python/py-registers.c (gdbpy_parse_register_id): New function,
5200 moved here from python/py-unwind.c. Updated the return type, and
5201 also accepts register descriptor objects.
5202 * python/py-unwind.c: Remove 'user-regs.h' include.
5203 (pyuw_parse_register_id): Moved to python/py-registers.c.
5204 (unwind_infopy_add_saved_register): Update to use
5205 gdbpy_parse_register_id.
5206 (pending_framepy_read_register): Likewise.
5207 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5208
14fa8fb3
AB
52092020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5210
5211 * python/py-registers.c: Add 'user-regs.h' include.
5212 (register_descriptor_iter_find): New function.
5213 (register_descriptor_iterator_object_methods): New static global
5214 methods array.
5215 (register_descriptor_iterator_object_type): Add pointer to methods
5216 array.
5217
ddce1758
JB
52182020-07-27 John Baldwin <jhb@FreeBSD.org>
5219
5220 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5221 for all architectures on FreeBSD 11.3 and later.
5222
a4089f52
TT
52232020-07-27 Tom Tromey <tromey@adacore.com>
5224
5225 * gcore.h (load_corefile): Don't declare.
5226
95420d30
TV
52272020-07-27 Tom de Vries <tdevries@suse.de>
5228
5229 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5230 * config.in: Regenerate.
5231 * configure: Regenerate.
5232
05a6b8c2
EZ
52332020-07-26 Eli Zaretskii <eliz@gnu.org>
5234
5235 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5236 ws2tcpip.h. When checking whether socklen_t type is defined, use
5237 ws2tcpip.h if it is available and sys/socket.h isn't.
5238 * configure: Regenerate.
5239 * config.in: Regenerate.
5240
e79eb02f
AB
52412020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5242
5243 PR fortran/23051
5244 PR fortran/26139
5245 * valops.c (value_ind): Pass address to
5246 readjust_indirect_value_type.
5247 * value.c (readjust_indirect_value_type): Make parameter
5248 non-const, and add extra address parameter. Resolve original type
5249 before using it.
5250 * value.h (readjust_indirect_value_type): Update function
5251 signature and comment.
5252
876518dd
TV
52532020-07-25 Tom de Vries <tdevries@suse.de>
5254
5255 PR symtab/26243
5256 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5257 entries.
5258
f6720b1c
AM
52592020-07-24 Aaron Merey <amerey@redhat.com>
5260
5261 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5262 * configure: Rebuild.
5263
513487e1
KB
52642020-07-23 Kevin Buettner <kevinb@redhat.com>
5265
5266 PR corefiles/26294
5267 * corelow.c (_initialize_corelow): Add period to help text
5268 for "maintenance print core-file-backed-mappings".
5269
e7bc9db8
PA
52702020-07-23 Pedro Alves <pedro@palves.net>
5271
5272 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5273 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5274 meanwhile.
5275 * frame.c (frame_cache_generation, get_frame_cache_generation):
5276 New.
5277 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5278 (get_prev_frame_if_no_cycle): On exception, don't touch
5279 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5280 * frame.h (get_frame_cache_generation): Declare.
5281
90fcc466
TV
52822020-07-23 Tom de Vries <tdevries@suse.de>
5283
5284 PR tui/26282
5285 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5286 New default constructor.
5287
78344df7
AB
52882020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5289
5290 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5291 exclude non-statement entries.
5292
b089853a
KB
52932020-07-22 Kevin Buettner <kevinb@redhat.com>
5294
5295 * NEWS (New commands): Mention new command
5296 "maintenance print core-file-backed-mappings".
5297
09c2f5d4
KB
52982020-07-22 Kevin Buettner <kevinb@redhat.com>
5299
5300 * corelow.c (gdbcmd.h): Include.
5301 (core_target::info_proc_mappings): New method.
5302 (get_current_core_target): New function.
5303 (maintenance_print_core_file_backed_mappings): New function.
5304 (_initialize_corelow): Add core-file-backed-mappings to
5305 "maint print" commands.
5306
9c5ec5c2 53072020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5308
9c5ec5c2
KB
5309 * linux-tdep.c (dump_note_entry_p): New function.
5310 (linux_dump_mapping_p_ftype): New typedef.
5311 (linux_find_memory_regions_full): Add new parameter,
5312 should_dump_mapping_p.
5313 (linux_find_memory_regions): Adjust call to
5314 linux_find_memory_regions_full.
5315 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5316 call to linux_find_memory_regions_full.
5317
db082f59
KB
53182020-07-22 Kevin Buettner <kevinb@redhat.com>
5319
5320 * corelow.c (solist.h, unordered_map): Include.
5321 (class core_target): Add field m_core_file_mappings and
5322 method build_file_mappings.
5323 (core_target::core_target): Call build_file_mappings.
5324 (core_target::~core_target): Free memory associated with
5325 m_core_file_mappings.
5326 (core_target::build_file_mappings): New method.
5327 (core_target::xfer_partial): Use m_core_file_mappings
5328 for memory transfers.
5329 * linux-tdep.c (linux_read_core_file_mappings): New
5330 function.
5331 (linux_core_info_proc_mappings): Rewrite to use
5332 linux_read_core_file_mappings.
5333 (linux_init_abi): Register linux_read_core_file_mappings.
5334
7e183d27
KB
53352020-07-22 Kevin Buettner <kevinb@redhat.com>
5336
5337 * arch-utils.c (default_read_core_file_mappings): New function.
5338 * arch-utils.c (default_read_core_file_mappings): Declare.
5339 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5340 * gdbarch.h, gdbarch.c: Regenerate.
5341
2735d421
KB
53422020-07-22 Kevin Buettner <kevinb@redhat.com>
5343
5344 PR corefiles/25631
5345 * corelow.c (core_target:xfer_partial): Revise
5346 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5347 case after first checking the stratum beneath the core
5348 target.
5349 (has_all_memory): Return true.
5350 * target.c (raw_memory_xfer_partial): Revise comment
5351 regarding use of has_all_memory.
5352
e56cb451
KB
53532020-07-22 Kevin Buettner <kevinb@redhat.com>
5354
5355 * exec.h (section_table_xfer_memory): Revise declaration,
5356 replacing section name parameter with an optional callback
5357 predicate.
5358 * exec.c (section_table_xfer_memory): Likewise.
5359 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5360 of section_table_xfer_memory.
5361
32fa152e
TT
53622020-07-22 Tom Tromey <tromey@adacore.com>
5363
5364 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5365 lookup_symbol_search_name.
5366
a67a1c41
AB
53672020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5368
5369 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5370 redundant local variable.
5371 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5372 reference, not pointer, update code accordingly.
5373
a7b4ff4f
SM
53742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5375 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5376
5377 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5378 * jit.c (jit_breakpoint_re_set_internal): Use the
5379 `skip_jit_symbol_lookup` field.
5380
2340e834
SM
53812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5382 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5383
5384 * jit.c (jit_read_descriptor): Define the descriptor address once,
5385 use twice.
5386 (jit_breakpoint_deleted): Move the declaration of the loop variable
5387 `iter` into the loop header.
5388 (jit_breakpoint_re_set_internal): Move the declaration of the local
5389 variable `objf_data` to the first point of definition.
5390 (jit_event_handler): Move the declaration of local variables
5391 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5392 Rename `objf` to `jited`.
5393
c1072906
SM
53942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5395
5396 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5397 Remove.
5398 * jit.c (get_jiter_objfile_data): Update.
5399
c8474dc3
TBA
54002020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5401 Simon Marchi <simon.marchi@polymtl.ca>
5402
5403 * jit.c (struct jit_program_space_data): Remove.
5404 (jit_program_space_key): Remove.
5405 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5406 stuff.
5407 (get_jit_program_space_data): Remove.
5408 (jit_breakpoint_deleted): Iterate on all of the program space's
5409 objfiles.
5410 (jit_inferior_init): Likewise.
5411 (jit_breakpoint_re_set_internal): Likewise. Also change return
5412 type to void.
5413 (jit_breakpoint_re_set): Pass current_program_space to
5414 jit_breakpoint_re_set_internal.
5415
77208eb7
SM
54162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5417
5418 * jit.h (struct jiter_objfile_data) <cached_code_address,
5419 jit_breakpoint>: Move to here from ...
5420 * jit.c (jit_program_space_data): ... here.
5421 (jiter_objfile_data::~jiter_objfile_data): Update.
5422 (jit_breakpoint_deleted): Update.
5423 (jit_breakpoint_re_set_internal): Update.
5424
8c1c720f
SM
54252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5426
5427 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5428 checks.
5429 (jit_read_descriptor): Remove NULL check.
5430 (jit_event_handler): Add an assertion.
5431
0e74a041
SM
54322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5433
5434 * jit.h (struct jit_objfile_data): Split into...
5435 (struct jiter_objfile_data): ... this ...
5436 (struct jited_objfile_data): ... and this.
5437 * objfiles.h (struct objfile) <jit_data>: Remove.
5438 <jiter_data, jited_data>: New fields.
5439 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5440 (jiter_objfile_data::~jiter_objfile_data): ... this.
5441 (get_jit_objfile_data): Rename to ...
5442 (get_jiter_objfile_data): ... this.
5443 (add_objfile_entry): Update.
5444 (jit_read_descriptor): Use get_jiter_objfile_data.
5445 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5446 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5447 (jit_inferior_exit_hook): Use objfile's jited_data field.
5448
238b5c9f
SM
54492020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5450
5451 * jit.h: Forward-declare `struct minimal_symbol`.
5452 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5453 constructor, destructor, and an objfile* field.
5454 * jit.c (jit_objfile_data): Remove.
5455 (struct jit_objfile_data): Migrate from here to jit.h.
5456 (jit_objfile_data::~jit_objfile_data): New destructor
5457 implementation with code moved from free_objfile_data.
5458 (free_objfile_data): Delete.
5459 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5460 (jit_find_objf_with_entry_addr): Ditto.
5461 (jit_inferior_exit_hook): Ditto.
5462 (_initialize_jit): Remove the call to
5463 register_objfile_data_with_cleanup.
5464 * objfiles.h (struct objfile) <jit_data>: New field.
5465
fe053b9e
TBA
54662020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5467
5468 * jit.h: Forward-declare `struct objfile`.
5469 (jit_event_handler): Add a second parameter, the JITer objfile.
5470 * jit.c (jit_read_descriptor): Change the signature to take the
5471 JITer objfile as an argument instead of the jit_program_space_data.
5472 (jit_inferior_init): Update the call to jit_read_descriptor.
5473 (jit_event_handler): Use the new JITer objfile argument when calling
5474 jit_read_descriptor.
5475 * breakpoint.c (handle_jit_event): Update the call to
5476 jit_event_handler to pass the JITer objfile.
5477
4cec0c66
JB
54782020-07-21 John Baldwin <jhb@FreeBSD.org>
5479
5480 * gdbarch.c: Regenerate.
5481 * gdbarch.h: Regenerate.
5482 * gdbarch.sh (handle_segmentation_fault): Remove method.
5483 * infrun.c (handle_segmentation_fault): Remove.
5484 (print_signal_received_reason): Remove call to
5485 handle_segmentation_fault.
5486
0e42f66a
JB
54872020-07-21 John Baldwin <jhb@FreeBSD.org>
5488
5489 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5490 Rename to sparc64_linux_report_signal_info and add siggnal
5491 argument.
5492 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5493 instead of sparc64_linux_handle_segmentation_fault.
5494
77bdfeb2
JB
54952020-07-21 John Baldwin <jhb@FreeBSD.org>
5496
5497 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5498 i386_linux_report_signal_info instead of
5499 i386_linux_handle_segmentation_fault.
5500 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5501 to i386_linux_report_signal_info and add siggnal argument.
5502 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5503 of i386_linux_handle_segmentation_fault.
5504 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5505 to i386_linux_report_signal_info and add siggnal argument.
5506
ad97bfc5
JB
55072020-07-21 John Baldwin <jhb@FreeBSD.org>
5508
5509 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5510 hook if present.
5511
272bb05c
JB
55122020-07-21 John Baldwin <jhb@FreeBSD.org>
5513
5514 * gdbarch.c: Regenerate.
5515 * gdbarch.h: Regenerate.
5516 * gdbarch.sh (report_signal_info): New method.
5517 * infrun.c (print_signal_received_reason): Invoke gdbarch
5518 report_signal_info hook if present.
5519
baf8791e
AB
55202020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5521
5522 * python/py-registers.c : Add 'unordered_map' include.
5523 (gdbpy_new_reggroup): Renamed to...
5524 (gdbpy_get_reggroup): ...this. Update to only create register
5525 group descriptors when needed.
5526 (gdbpy_reggroup_iter_next): Update.
5527
f7306dac
AB
55282020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5529
5530 * python/py-registers.c (gdbpy_register_object_data): New static
5531 global.
5532 (gdbpy_register_object_data_init): New function.
5533 (gdbpy_new_register_descriptor): Renamed to...
5534 (gdbpy_get_register_descriptor): ...this, and update to reuse
5535 existing register descriptors where possible.
5536 (gdbpy_register_descriptor_iter_next): Update.
5537 (gdbpy_initialize_registers): Register new gdbarch data.
5538
05c309a8
SM
55392020-07-21 Simon Marchi <simon.marchi@efficios.com>
5540
5541 * linux-nat.c (stopped_pids): Make static.
5542
d1fd641e
SM
55432020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5544
5545 PR ada/26235
5546 * gdbtypes.c (ada_discrete_type_low_bound,
5547 ada_discrete_type_high_bound): Handle undefined bounds.
5548
1de14d77
KR
55492020-07-21 Kamil Rytarowski <n54@gmx.com>
5550
5551 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5552 declaration.
5553 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5554 function.
5555
ed810cc7
JB
55562020-07-20 John Baldwin <jhb@FreeBSD.org>
5557
5558 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5559 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5560 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5561 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5562 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5563 method.
5564
ae5369e7
LC
55652020-07-20 Ludovic Courtès <ludo@gnu.org>
5566
5567 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5568 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5569 which are deprecated in Guile 3.0.
5570 * configure.ac (try_guile_versions): Add "guile-3.0".
5571 * configure (try_guile_versions): Regenerate.
5572 * NEWS: Update entry.
5573
68cf161c
LC
55742020-07-20 Ludovic Courtès <ludo@gnu.org>
5575 Doug Evans <dje@google.com>
5576
5577 PR gdb/21104
5578 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5579 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5580 USING_GUILE_BEFORE_2_2.
5581 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5582 Change type to 'scm_t_port_type *'.
5583 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5584 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5585 parameter and honor it. Update callers.
5586 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5587 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5588 functions.
5589 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5590 USING_GUILE_BEFORE_2_2.
5591 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5592 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5593 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5594 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5595 and 'SCM_PORT_TYPE'.
5596 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5597 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5598 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5599 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5600 [!USING_GUILE_BEFORE_2_2]: New functions.
5601 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5602 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5603 'gdbscm_memory_port_read'.
5604 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5605 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5606 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5607 function.
5608 (ioscm_init_memory_port): Remove.
5609 (ioscm_init_memory_port_stream): New function
5610 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5611 function.
5612 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5613 Return scm_from_uint (0).
5614 (gdbscm_set_memory_port_read_buffer_size_x)
5615 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5616 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5617 Return scm_from_uint (0).
5618 (gdbscm_set_memory_port_write_buffer_size_x)
5619 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5620 * configure.ac (try_guile_versions): Add "guile-2.2".
5621 * configure: Regenerate.
5622 * NEWS: Add entry.
5623
aee91db3
TT
56242020-07-18 Tom Tromey <tom@tromey.com>
5625
5626 * linux-nat.c (linux_multi_process): Remove.
5627 (linux_nat_target::supports_multi_process): Return true.
5628
0e267416
AB
56292020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5630
5631 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5632 (riscv_lookup_target_description): Return pointer out of
5633 unique_ptr.
5634 * target-descriptions.c (allocate_target_description): Add
5635 comment.
5636 (target_desc_deleter::operator()): Likewise.
5637 * target-descriptions.h (struct target_desc_deleter): Moved to
5638 gdbsupport/tdesc.h.
5639 (target_desc_up): Likewise.
5640
f80c8ec4
TT
56412020-07-17 Tom Tromey <tromey@adacore.com>
5642
5643 * linux-nat.c (linux_nat_target::supports_non_stop)
5644 (linux_nat_target::always_non_stop_p): Use "true".
5645 (linux_nat_target::supports_disable_randomization): Use "true" and
5646 "false".
5647
d0ce17d8
CT
56482020-07-16 Caroline Tice <cmtice@google.com>
5649
5650 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5651 (RNGLIST_HEADER_SIZE64): New constant definition.
5652 (struct dwop_section_names): Add rnglists_dwo.
5653 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5654 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5655 (struct dwo_sections): Add rnglists field.
5656 (read_attribut_reprocess): Add tag parameter.
5657 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5658 (cu_debug_rnglists_section): New function (decl & definition).
5659 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5660 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5661 die whose range is being checked; get rnglist section from
5662 cu_debug_rnglists_section, to get from either objfile or dwo file as
5663 appropriate. Add cases for DW_RLE_base_addressx,
5664 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5665 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5666 test inside if-condition and updating complaint message.
5667 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5668 dwarf2_rnglists_process.
5669 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5670 dwarf2_ranges_process.
5671 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5672 need_ranges_base and update comment appropriately. Also pass die tag
5673 to dwarf2_ranges_read.
5674 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5675 need_ranges_base and update comment appropriately. Also pass die tag
5676 to dwarf2_ranges_process.
5677 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5678 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5679 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5680 need_ranges_base and update comment appropriately. Also pass die tag
5681 to read_attribute_reprocess and dwarf2_ranges_read.
5682 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5683 and update function comment appropriately.
5684 (read_loclist_index): Call read_loclists_rnglists_header instead of
5685 read_loclist_header.
5686 (read_rnglist_index): New function.
5687 (read_attribute_reprocess): Add tag parameter. Add code for
5688 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5689 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5690
3dcc261c
AB
56912020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5692
5693 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5694 being resolved.
5695
ccb9eba6
AB
56962020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5697
5698 * arch-utils.c (show_architecture): Update formatting of messages.
5699
cf88be68
SM
57002020-07-12 Simon Marchi <simon.marchi@efficios.com>
5701
5702 * gdbtypes.h (struct type) <bounds>: Handle array and string
5703 types.
5704 * ada-lang.c (assign_aggregate): Use type::bounds on
5705 array/string type.
5706 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5707 * c-varobj.c (c_number_of_children): Likewise.
5708 (c_describe_child): Likewise.
5709 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5710 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5711 (f_type_print_base): Likewise.
5712 * f-valprint.c (f77_array_offset_tbl): Likewise.
5713 (f77_get_upperbound): Likewise.
5714 (f77_print_array_1): Likewise.
5715 * guile/scm-type.c (gdbscm_type_range): Likewise.
5716 * m2-typeprint.c (m2_array): Likewise.
5717 (m2_is_long_set_of_type): Likewise.
5718 * m2-valprint.c (get_long_set_bounds): Likewise.
5719 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5720 * python/py-type.c (typy_range): Likewise.
5721 * rust-lang.c (rust_internal_print_type): Likewise.
5722 * type-stack.c (type_stack::follow_types): Likewise.
5723 * valarith.c (value_subscripted_rvalue): Likewise.
5724 * valops.c (value_cast): Likewise.
5725
509971ae
SM
57262020-07-12 Simon Marchi <simon.marchi@efficios.com>
5727
5728 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5729 callers to use the equivalent accessor methods.
5730
107406b7
SM
57312020-07-12 Simon Marchi <simon.marchi@efficios.com>
5732
5733 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5734 (struct type) <bit_stride>: New method.
5735 (TYPE_BIT_STRIDE): Remove.
5736 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5737
bb789949
SM
57382020-07-12 Simon Marchi <simon.marchi@efficios.com>
5739
5740 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5741 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5742 callers to use the equivalent accessor methods instead.
5743
39498edb
SM
57442020-07-12 Simon Marchi <simon.marchi@efficios.com>
5745
5746 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5747 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5748 callers to use the equivalent accessor methods instead.
5749
3b606f38
SM
57502020-07-12 Simon Marchi <simon.marchi@efficios.com>
5751
5752 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5753 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5754 to use dynamic_prop::kind.
5755
064d9cb9
SM
57562020-07-12 Simon Marchi <simon.marchi@efficios.com>
5757
5758 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5759 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5760 to get the bound property's kind and check against
5761 PROP_UNDEFINED.
5762
5537ddd0
SM
57632020-07-12 Simon Marchi <simon.marchi@efficios.com>
5764
5765 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5766 all callers to use type::range_bounds followed by
5767 dynamic_prop::{low,high}.
5768
8c2e4e06
SM
57692020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5770
5771 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5772 const_val, set_const_val, baton, set_locexpr, set_loclist,
5773 set_addr_offset, variant_parts, set_variant_parts,
5774 original_type, set_original_type>: New methods.
5775 <kind>: Rename to...
5776 <m_kind>: ... this. Update all users to use the new methods
5777 instead.
5778 <data>: Rename to...
5779 <m_data>: ... this. Update all users to use the new methods
5780 instead.
5781
7c6f2712
SM
57822020-07-12 Simon Marchi <simon.marchi@efficios.com>
5783
5784 * gdbtypes.c (get_discrete_bounds): Return failure if
5785 the range type's bounds are not both defined and constant
5786 values.
5787 (get_array_bounds): Update comment. Remove undefined bound check.
5788
599088e3
SM
57892020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5790
5791 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5792 the type::bounds method directly.
5793
c4dfcb36
SM
57942020-07-12 Simon Marchi <simon.marchi@efficios.com>
5795
5796 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5797 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5798 are used to set the range type's bounds to use set_bounds.
5799
0a278aa7
PW
58002020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5801
5802 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5803
cce20f10
PA
58042020-07-10 Pedro Alves <pedro@palves.net>
5805
5806 * gdbthread.h (inferior_ref): Define.
5807 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5808 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5809 * thread.c
5810 (scoped_restore_current_thread::restore):
5811 Adjust to gdb::ref_ptr.
5812 (scoped_restore_current_thread::~scoped_restore_current_thread):
5813 Remove manual decref handling.
5814 (scoped_restore_current_thread::scoped_restore_current_thread):
5815 Adjust to use
5816 inferior_ref::new_reference/thread_info_ref::new_reference.
5817 Incref the thread before calling get_frame_id instead of after.
5818 Let TARGET_CLOSE_ERROR propagate.
5819
6d7aa592
PA
58202020-07-10 Pedro Alves <pedro@palves.net>
5821
5822 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5823 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5824 NOT_AVAILABLE_ERROR.
5825 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5826 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5827
b3e3a4c1
SM
58282020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5829 Pedro Alves <pedro@palves.net>
5830
5831 PR gdb/26199
5832 * infrun.c (threads_are_resumed_pending_p): Delete.
5833 (do_target_wait): Remove threads_are_executing and
5834 threads_are_resumed_pending_p checks from the inferior_matches
5835 lambda. Update comments.
5836
d6cc5d98
PA
58372020-07-10 Pedro Alves <pedro@palves.net>
5838
5839 PR gdb/26199
5840 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5841 executing threads.
5842
7d3badc6
PA
58432020-07-10 Pedro Alves <pedro@palves.net>
5844
5845 PR gdb/26199
5846 * infrun.c (handle_no_resumed): Handle multiple targets.
5847
42bd97a6
PA
58482020-07-10 Pedro Alves <pedro@palves.net>
5849
5850 PR gdb/26199
5851 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5852 target_is_async_p.
5853
43667cc6
PA
58542020-07-10 Pedro Alves <pedro@palves.net>
5855
5856 PR gdb/26199
5857 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5858 threads, not all threads.
5859
96118d11
PA
58602020-07-10 Pedro Alves <pedro@palves.net>
5861
5862 PR gdb/26199
5863 * remote.c (remote_target::open_1): Pass remote target pointer as
5864 data to create_async_event_handler.
5865 (remote_async_inferior_event_handler): Mark async event handler
5866 before returning if the remote target still has either pending
5867 events or unacknowledged notifications.
5868
54904d81
JB
58692020-07-10 John Baldwin <jhb@FreeBSD.org>
5870
5871 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5872 declaration.
5873 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5874 function.
5875
f37e5866
JB
58762020-07-09 John Baldwin <jhb@FreeBSD.org>
5877
5878 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5879 inferior_ptid.
5880
fc238d4a
JB
58812020-07-09 John Baldwin <jhb@FreeBSD.org>
5882
5883 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5884 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5885 AT_FREEBSD_PS_STRINGS.
5886
6e2469ff
HD
58872020-07-08 Hannes Domani <ssbssa@yahoo.de>
5888
5889 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5890 of debugfile path on Windows.
5891
d1076c41
JB
58922020-07-08 John Baldwin <jhb@FreeBSD.org>
5893
5894 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5895 argument to 'data'.
5896
15f3b077
TT
58972020-07-08 Tom Tromey <tromey@adacore.com>
5898
5899 * ada-lang.c (ada_exception_message_1): Use read_memory.
5900
9fc501fd
AB
59012020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5902
5903 PR python/22748
5904 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5905 special handling for inline frames.
5906 * findvar.c (value_of_register_lazy): Skip inline frames when
5907 creating lazy register values.
5908 * frame.c (frame_id_computed_p): Delete definition.
5909 * frame.h (frame_id_computed_p): Delete declaration.
5910
64cb3757
AB
59112020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5912
5913 * NEWS: Mention additions to Python API.
5914 * python/py-arch.c (archpy_register_groups): New function.
5915 (arch_object_methods): Add 'register_groups' method.
5916 * python/py-registers.c (reggroup_iterator_object): New struct.
5917 (reggroup_object): New struct.
5918 (gdbpy_new_reggroup): New function.
5919 (gdbpy_reggroup_to_string): New function.
5920 (gdbpy_reggroup_name): New function.
5921 (gdbpy_reggroup_iter): New function.
5922 (gdbpy_reggroup_iter_next): New function.
5923 (gdbpy_new_reggroup_iterator): New function
5924 (gdbpy_initialize_registers): Register new types.
5925 (reggroup_iterator_object_type): Define new Python type.
5926 (gdbpy_reggroup_getset): New static global.
5927 (reggroup_object_type): Define new Python type.
5928 * python/python-internal.h
5929
0f767f94
AB
59302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5931
5932 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5933 * python/py-arch.c (archpy_registers): New function.
5934 (arch_object_methods): Add 'registers' method.
5935 * python/py-registers.c: New file.
5936 * python/python-internal.h
5937 (gdbpy_new_register_descriptor_iterator): Declare.
5938 (gdbpy_initialize_registers): Declare.
5939 * python/python.c (do_start_initialization): Call
5940 gdbpy_initialize_registers.
5941 * NEWS: Mention additions to the Python API.
5942
87dbc774
AB
59432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5944
5945 * NEWS: Mention new Python API method.
5946 * python/py-unwind.c (pending_framepy_architecture): New function.
5947 (pending_frame_object_methods): Add architecture method.
5948
3bc98c0c
AB
59492020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5950
5951 * gdbarch.c: Regenerate.
5952 * gdbarch.h: Regenerate.
5953 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5954 (gdbarch_data): Use internal_error for the case where
5955 deprecated_set_gdbarch_data was originally needed.
5956 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5957 and use passed in obstack.
5958 (libunwind_frame_set_descr): Should no longer get back NULL from
5959 gdbarch_data.
5960 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5961 type.
5962 * user-regs.c (user_regs_init): Update parameters, and use passed
5963 in obstack.
5964 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5965 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5966
d8cc8af6
TV
59672020-07-06 Tom de Vries <tdevries@suse.de>
5968
5969 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5970 End-Of-Sequence in lte_is_less_than.
5971 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5972 "gdb: Don't reorder line table entries too much when sorting".
5973
947f7597
TV
59742020-07-06 Tom de Vries <tdevries@suse.de>
5975
5976 PR tui/26205
5977 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5978
1e7c1b22
TV
59792020-07-05 Tom de Vries <tdevries@suse.de>
5980
5981 PR build/26187
5982 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5983 std::uncaught_exceptions instead of deprecated
5984 std::uncaught_exception.
5985
a36158ec
SM
59862020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5987
5988 * macroexp.h (macro_stringify): Return
5989 gdb::unique_xmalloc_ptr<char>.
5990 * macroexp.c (macro_stringify): Likewise.
5991 * macrotab.c (fixup_definition): Update.
5992
14d960c8
SM
59932020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5994
5995 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5996 (lex_one_token): Update.
5997 * macroexp.c (struct macro_buffer) <release>: Return
5998 gdb::unique_xmalloc_ptr<char>.
5999 (macro_stringify): Update.
6000 (macro_expand): Update.
6001 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6002 * macroexp.h (macro_expand_next): Likewise.
6003
211d5b1c
SM
60042020-07-02 Simon Marchi <simon.marchi@efficios.com>
6005
6006 * macroexp.h (macro_lookup_ftype): Remove.
6007 (macro_expand, macro_expand_once, macro_expand_next): Remove
6008 lookup function parameters, add scope parameter.
6009 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6010 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6011 * macroscope.h (standard_macro_lookup): Change parameter type
6012 to macro_scope.
6013 * macroscope.c (standard_macro_lookup): Likewise.
6014 * c-exp.y (lex_one_token): Update.
6015 * macrocmd.c (macro_expand_command): Likewise.
6016 (macro_expand_once_command): Likewise.
6017
b1a35af2
SM
60182020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6019
6020 * inf-loop.c (inferior_event_handler): Remove client_data param.
6021 * inf-loop.h (inferior_event_handler): Likewise.
6022 * infcmd.c (step_1): Adjust.
6023 * infrun.c (proceed): Adjust.
6024 (fetch_inferior_event): Remove client_data param.
6025 (infrun_async_inferior_event_handler): Adjust.
6026 * infrun.h (fetch_inferior_event): Remove `void *` param.
6027 * linux-nat.c (handle_target_event): Adjust.
6028 * record-btrace.c (record_btrace_handle_async_inferior_event):
6029 Adjust.
6030 * record-full.c (record_full_async_inferior_event_handler):
6031 Adjust.
6032 * remote.c (remote_async_inferior_event_handler): Adjust.
6033
1cdf9e33
TT
60342020-07-01 Tom Tromey <tom@tromey.com>
6035
6036 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6037 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6038
32c1e210
TT
60392020-07-01 Tom Tromey <tom@tromey.com>
6040
6041 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6042 tui_gen_win_info.
6043 (tui_win_info::make_window): Merge with
6044 tui_gen_win_info::make_window.
6045 (tui_win_info::make_visible): Move from tui_gen_win_info.
6046 * tui/tui-win.c (tui_win_info::max_width): Move from
6047 tui_gen_win_info.
6048 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6049 type.
6050 <window_factory>: Likewise.
6051 * tui/tui-layout.c (tui_win_info::resize): Move from
6052 tui_gen_win_info.
6053 (make_standard_window): Change return type.
6054 (get_locator_window, tui_get_window_by_name): Likewise.
6055 (tui_layout_window::apply): Remove a cast.
6056 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6057 (struct tui_win_info): Merge with tui_gen_win_info.
6058 (struct tui_gen_win_info): Remove.
6059
a30cb6da
TT
60602020-07-01 Tom Tromey <tom@tromey.com>
6061
6062 * tui/tui-stack.h (struct tui_locator_window): Derive from
6063 tui_win_info.
6064 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6065 <can_box>: New method.
6066
1eb2161f
TT
60672020-07-01 Tom Tromey <tom@tromey.com>
6068
6069 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6070
7134f2eb
TT
60712020-07-01 Tom Tromey <tom@tromey.com>
6072
6073 * tui/tui-regs.c (tui_data_window::display_registers_from)
6074 (tui_data_window::display_registers_from)
6075 (tui_data_window::first_data_item_displayed)
6076 (tui_data_window::delete_data_content_windows): Update.
6077 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6078 Remove.
6079 (tui_data_window::check_register_values): Update.
6080 (tui_data_item_window::rerender): Add parameters. Update.
6081 (tui_data_item_window::refresh_window): Remove.
6082 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6083 virtual.
6084 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6085 tui_gen_win_info.
6086 <refresh_window, max_height, min_height>: Remove.
6087 <rerender>: Add parameters.
6088 <x, y, visible>: New members.
6089 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6090 <m_item_width>: New member.
6091
22b7b041
TT
60922020-07-01 Tom Tromey <tom@tromey.com>
6093
6094 * tui/tui-regs.c (tui_data_window::show_register_group)
6095 (tui_data_window::check_register_values): Update.
6096 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6097 from item_no.
6098
c9753adb
TT
60992020-07-01 Tom Tromey <tom@tromey.com>
6100
6101 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6102 useless "if".
6103
9ab26b4a
TT
61042020-07-01 Tom Tromey <tom@tromey.com>
6105
6106 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6107 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6108
e555083f
TT
61092020-07-01 Tom Tromey <tom@tromey.com>
6110
6111 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6112 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6113 (struct tui_line_or_address): Move from tui-data.h.
6114 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6115 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6116 (tui_cmd_window, tui_source_window_base, tui_source_window)
6117 (tui_disasm_window): Don't declare.
6118 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6119 to tui-winsource.h.
6120 (SINGLE_KEY): Move to tui-stack.c.
6121
7a02bab7
TT
61222020-07-01 Tom Tromey <tom@tromey.com>
6123
6124 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6125 std::string.
6126 * tui/tui-regs.c (class tab_expansion_file): New.
6127 (tab_expansion_file::write): New method.
6128 (tui_register_format): Change return type. Use
6129 tab_expansion_file.
6130 (tui_get_register, tui_data_window::display_registers_from)
6131 (tui_data_item_window::rerender): Update.
6132 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6133 * tui/tui-io.c (tui_expand_tabs): Remove.
6134
ea68593b
TT
61352020-07-01 Tom Tromey <tom@tromey.com>
6136
6137 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6138
a8caed5d
FS
61392020-07-01 Fangrui Song <maskray@google.com>
6140
6141 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6142
9cdf9820
AKS
61432020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6144
6145 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6146 forms for DW_AT_associated and DW_AT_allocated attributes,
6147 which is already checked in function attr_to_dynamic_prop.
6148
a1520ad8
TT
61492020-06-30 Tom Tromey <tromey@adacore.com>
6150
6151 * dwarf2/read.c (quirk_rust_enum): Correctly call
6152 alloc_rust_variant for default-less enum.
6153
5ac58899
TT
61542020-06-30 Tom Tromey <tromey@adacore.com>
6155
6156 PR build/26183:
6157 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6158 gdb::to_string.
6159
19b187a9
SM
61602020-06-29 Simon Marchi <simon.marchi@efficios.com>
6161
6162 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6163 * gdbarch.h: Re-generate.
6164
cd4c4c07
TT
61652020-06-28 Tom Tromey <tom@tromey.com>
6166
6167 * command.h (cmd_types): Remove.
6168 (cmd_type): Don't declare.
6169 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6170 typedef.
6171 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6172 * cli/cli-decode.c (cmd_type): Remove.
6173
05779d57
PA
61742020-06-27 Pedro Alves <palves@redhat.com>
6175
6176 * fork-child.c (prefork_hook): Adjust.
6177 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6178 Delete.
6179 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6180 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6181 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6182 Remove declarations.
6183 (struct inferior) <set_tty, tty>: New methods.
6184 (struct inferior) <terminal>: Rename to ...
6185 (struct inferior) <m_terminal>: ... this and make private.
6186 * main.c (captured_main_1): Adjust.
6187 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6188 (mi_cmd_inferior_tty_show): Adjust.
6189 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6190 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6191
1776e3e5
NA
61922020-06-26 Nick Alcock <nick.alcock@oracle.com>
6193
6194 * configure.ac: Add --enable-libctf: handle --disable-static
6195 properly.
6196 * acinclude.m4: sinclude ../config/enable.m4.
6197 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6198 (LIBCTF): Substitute in.
6199 (CTF_DEPS): New, likewise.
6200 (CLIBS): libctf needs symbols from libbfd: move earlier.
6201 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6202 flags.
6203 * ctfread.c: Surround in ENABLE_LIBCTF.
6204 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6205 * configure: Regenerate.
6206 * config.in: Likewise.
6207
58373b80
SM
62082020-06-25 Simon Marchi <simon.marchi@efficios.com>
6209
6210 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6211
277474ee
SM
62122020-06-25 Simon Marchi <simon.marchi@efficios.com>
6213
6214 * inferior.h (struct inferior) <terminal>: Change type to
6215 gdb::unique_xmalloc_ptr<char>.
6216 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6217 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6218 field, adjust to unique pointer.
6219 (get_inferior_io_terminal): Adjust to unique pointer.
6220
6d74da72
AB
62212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6222
6223 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6224 registers, not just the known core set of registers.
6225
2e52d038
AB
62262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6227
6228 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6229 fflags, frm, and fcsr registers.
6230 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6231 restore groups.
6232 (riscv_tdesc_unknown_reg): New function.
6233 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6234 tdesc_use_registers.
6235 * riscv-tdep.h (struct gdbarch_tdep): Add
6236 unknown_csrs_first_regnum, unknown_csrs_count,
6237 duplicate_fflags_regnum, duplicate_frm_regnum, and
6238 duplicate_fcsr_regnum fields.
6239
be64fd07
AB
62402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6241
6242 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6243 callback, use the callback (when not null) to help number unknown
6244 registers.
6245 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6246 (tdesc_use_registers): Add extra parameter to declaration.
6247
3b9fce96
AB
62482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6249
6250 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6251 in the file.
6252 (class riscv_pending_register_alias): Likewise.
6253 (riscv_register_feature::register_info): Change 'required_p' field
6254 to 'required', and change its type. Add 'check' member function.
6255 (riscv_register_feature::register_info::check): Define new member
6256 function.
6257 (riscv_xreg_feature): Change initialisation of 'required' field.
6258 (riscv_freg_feature): Likewise.
6259 (riscv_virtual_feature): Likewise.
6260 (riscv_csr_feature): Likewise.
6261 (riscv_check_tdesc_feature): Take extra parameter, the csr
6262 tdesc_feature, rewrite the function to use the new
6263 riscv_register_feature::register_info::check function.
6264 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6265
865bad26
AB
62662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6267
6268 * features/Makefile: Remove all references to the deleted files
6269 below.
6270 * features/riscv/32bit-csr.c: Deleted.
6271 * features/riscv/32bit-csr.xml: Deleted.
6272 * features/riscv/64bit-csr.c: Deleted.
6273 * features/riscv/64bit-csr.xml: Deleted.
6274 * features/riscv/rebuild-csr-xml.sh: Deleted.
6275
ed69cbc8
AB
62762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6277
6278 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6279 whitespace error for declaration of names member variable.
6280 (struct riscv_register_feature): Add new prefer_first_name member
6281 variable, and fix whitespace error in declaration of registers.
6282 (riscv_xreg_feature): Initialize prefer_first_name field.
6283 (riscv_freg_feature): Likewise.
6284 (riscv_virtual_feature): Likewise.
6285 (riscv_csr_feature): Likewise.
6286 (riscv_register_name): Expand on comments. Remove register name
6287 modifications for CSR and virtual registers.
6288
4445e8f5
AB
62892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6290
6291 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6292 errors.
6293
767a879e
AB
62942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6295
6296 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6297 riscv-opc.h.
6298 (class riscv_pending_register_alias): New class.
6299 (riscv_check_tdesc_feature): Take vector of pending aliases and
6300 populate it as appropriate.
6301 (riscv_setup_register_aliases): Delete.
6302 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6303 to riscv_check_tdesc_feature in all cases. Use the vector to
6304 create the register aliases.
6305
bb6e55f3
RO
63062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6307
6308 * sol2-tdep.c (sol2_static_transform_name): Remove.
6309 (sol2_init_abi): Don't register it.
6310 * gdbarch.sh (static_transform_name): Remove.
6311 * gdbarch.c, gdbarch.h: Regenerate.
6312
6313 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6314 gdbarch_static_transform_name.
6315 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6316 * stabsread.c (define_symbol) <'X'>: Remove.
6317 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6318 handling.
6319 <'V'>: Likewise.
6320 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6321 <'S'>: Remove call to gdbarch_static_transform_name.
6322
c6d36836
RO
63232020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6324
6325 * procfs.c (procfs_pre_trace): New function.
6326 (procfs_target::create_inferior): Pass it to fork_inferior.
6327
a7e6196b
RO
63282020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6329
6330 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6331 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6332 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6333 sol2-tdep.o, sparc-sol2-tdep.o.
6334 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6335 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6336 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6337 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6338
d412e696
RO
63392020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6340
6341 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6342 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6343 Call sol2_init_abi.
6344 Remove calls to set_gdbarch_skip_solib_resolver,
6345 set_gdbarch_core_pid_to_str.
6346 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6347 (i386_sol2_static_transform_name): Remove.
6348 (i386_sol2_init_abi): Call sol2_init_abi.
6349 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6350 set_gdbarch_static_transform_name,
6351 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6352 Use sol2_sigtramp_p.
6353 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6354 (sol2_sigtramp_p): New function.
6355 (sol2_static_transform_name): New function.
6356 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6357 (sol2_init_abi): New function.
6358 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6359 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6360 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6361 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6362 (sparc_sol2_static_transform_name): Remove.
6363 (sparc32_sol2_init_abi): Call sol2_init_abi.
6364 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6365 set_gdbarch_static_transform_name,
6366 set_gdbarch_skip_solib_resolver,
6367 set_gdbarch_core_pid_to_str.
6368 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6369 (sparc_sol2_static_transform_name): Remove
6370 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6371 call sol2_sigtramp_p.
6372 (sparc64_sol2_init_abi): Call sol2_init_abi.
6373 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6374 set_gdbarch_static_transform_name,
6375 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6376
a8654e7d
PW
63772020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6378
6379 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6380 * exec.c (validate_exec_file): If from_tty, set both
6381 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6382 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6383 and from_tty, unconditionally ask a confirmation.
6384
caa7fd04
AB
63852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6386
6387 * target-descriptions.c (tdesc_architecture_name): Protect against
6388 NULL pointer dereference.
6389 (maint_print_xml_tdesc_cmd): New function.
6390 (_initialize_target_descriptions): Register new 'maint print
6391 xml-tdesc' command and give it the filename completer.
6392 * NEWS: Mention new 'maint print xml-tdesc' command.
6393
fbf42f4e
AB
63942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6395
6396 * target-descriptions.c (class tdesc_compatible_info): New class.
6397 (struct target_desc): Change type of compatible vector.
6398 (tdesc_compatible_p): Update for change in type of
6399 target_desc::compatible.
6400 (tdesc_compatible_info_list): New function.
6401 (tdesc_compatible_info_arch_name): New function.
6402 (tdesc_add_compatible): Update for change in type of
6403 target_desc::compatible.
6404 (print_c_tdesc::visit_pre): Likewise.
6405
20821f4e
AB
64062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6407
6408 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6409 whitespace to underscore.
6410 (maint_print_c_tdesc_cmd): Use fake filename for target
6411 descriptions that came from the target.
6412 (_initialize_target_descriptions): Add filename command completion
6413 for 'maint print c-tdesc'.
6414
1fb5ee62
SM
64152020-06-23 Simon Marchi <simon.marchi@efficios.com>
6416
6417 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6418 lines.
6419
fc3ecb3e
SM
64202020-06-23 Simon Marchi <simon.marchi@efficios.com>
6421
6422 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6423 lines.
6424 (dwarf2_find_location_expression): Likewise.
6425 (call_site_parameter_matches): Likewise.
6426 (dwarf2_compile_expr_to_ax): Likewise.
6427 (disassemble_dwarf_expression): Likewise.
6428 (loclist_describe_location): Likewise.
6429
236ef034
PA
64302020-06-23 Pedro Alves <palves@redhat.com>
6431
6432 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6433 progspace-and-thread.h. Include scoped-mock-context.h instead.
6434 (register_to_value_test): Use scoped_mock_context.
6435 * regcache.c: Include "scoped-mock-context.h".
6436 (cooked_read_test): Don't error out if a target is already pushed.
6437 Use scoped_mock_context. Adjust.
6438 * scoped-mock-context.h: New file.
6439
39e7ecca
AB
64402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6441
6442 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6443 initializer.
6444 (ada_language::is_string_type_p): New member function.
6445 * c-lang.c (c_language_data): Delete la_is_string_type_p
6446 initializer.
6447 (cplus_language_data): Likewise.
6448 (asm_language_data): Likewise.
6449 (minimal_language_data): Likewise.
6450 * d-lang.c (d_language_data): Likewise.
6451 * f-lang.c (f_is_string_type_p): Delete function, implementation
6452 moved to f_language::is_string_type_p.
6453 (f_language_data): Delete la_is_string_type_p initializer.
6454 (f_language::is_string_type_p): New member function,
6455 implementation from f_is_string_type_p.
6456 * go-lang.c (go_is_string_type_p): Delete function, implementation
6457 moved to go_language::is_string_type_p.
6458 (go_language_data): Delete la_is_string_type_p initializer.
6459 (go_language::is_string_type_p): New member function,
6460 implementation from go_is_string_type_p.
6461 * language.c (language_defn::is_string_type_p): Define new member
6462 function.
6463 (default_is_string_type_p): Make static, add comment copied from
6464 header file.
6465 (unknown_language_data): Delete la_is_string_type_p initializer.
6466 (unknown_language::is_string_type_p): New member function.
6467 (auto_language_data): Delete la_is_string_type_p initializer.
6468 (auto_language::is_string_type_p): New member function.
6469 * language.h (language_data): Delete la_is_string_type_p field.
6470 (language_defn::is_string_type_p): Declare new function.
6471 (default_is_string_type_p): Delete desclaration, move comment to
6472 definition.
6473 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6474 moved to m2_language::is_string_type_p.
6475 (m2_language_data): Delete la_is_string_type_p initializer.
6476 (m2_language::is_string_type_p): New member function,
6477 implementation from m2_is_string_type_p.
6478 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6479 initializer.
6480 * opencl-lang.c (opencl_language_data): Likewise.
6481 * p-lang.c (pascal_is_string_type_p): Delete function,
6482 implementation moved to pascal_language::is_string_type_p.
6483 (pascal_language_data): Delete la_is_string_type_p initializer.
6484 (pascal_language::is_string_type_p): New member function,
6485 implementation from pascal_is_string_type_p.
6486 * rust-lang.c (rust_is_string_type_p): Delete function,
6487 implementation moved to rust_language::is_string_type_p.
6488 (rust_language_data): Delete la_is_string_type_p initializer.
6489 (rust_language::is_string_type_p): New member function,
6490 implementation from rust_is_string_type_p.
6491 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6492 is_string_type_p.
6493
4ffc13fb
AB
64942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6495
6496 * ada-lang.c (ada_language_data): Delete la_print_typedef
6497 initializer.
6498 (ada_language::print_typedef): New member function.
6499 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6500 (cplus_language_data): Likewise.
6501 (asm_language_data): Likewise.
6502 (minimal_language_data): Likewise.
6503 * d-lang.c (d_language_data): Likewise.
6504 * f-lang.c (f_language_data): Likewise.
6505 (f_language::print_typedef): New member function.
6506 * go-lang.c (go_language_data): Delete la_print_typedef
6507 initializer.
6508 * language.c (language_defn::print_typedef): Define member
6509 function.
6510 (unknown_language_data): Delete la_print_typedef initializer.
6511 (unknown_language::print_typedef): New member function.
6512 (auto_language_data): Delete la_print_typedef initializer.
6513 (auto_language::print_typedef): New member function.
6514 * language.h (language_data): Delete la_print_typedef field.
6515 (language_defn::print_typedef): Declare new member function.
6516 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6517 (default_print_typedef): Delete declaration.
6518 * m2-lang.c (m2_language_data): Delete la_print_typedef
6519 initializer.
6520 (m2_language::print_typedef): New member function.
6521 * objc-lang.c (objc_language_data): Delete la_print_typedef
6522 initializer.
6523 * opencl-lang.c (opencl_language_data): Likewise.
6524 * p-lang.c (pascal_language_data): Likewise.
6525 (pascal_language::print_typedef): New member function.
6526 * rust-lang.c (rust_print_typedef): Delete function,
6527 implementation moved to rust_language::print_typedef.
6528 (rust_language): Delete la_print_typedef initializer.
6529 (rust_language::print_typedef): New member function,
6530 implementation from rust_print_typedef.
6531 * typeprint.c (default_print_typedef): Delete.
6532
d711ee67
AB
65332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6534
6535 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6536 (ada_language::printstr): New member function.
6537 * c-lang.c (c_language_data): Delete la_printstr initializer.
6538 (cplus_language_data): Likewise.
6539 (asm_language_data): Likewise.
6540 (minimal_language_data): Likewise.
6541 * d-lang.c (d_language_data): Likewise.
6542 * f-lang.c (f_printstr): Rename to f_language::printstr.
6543 (f_language_data): Delete la_printstr initializer.
6544 (f_language::printstr): New member function, implementation from
6545 f_printstr.
6546 * go-lang.c (go_language_data): Delete la_printstr initializer.
6547 * language.c (language_defn::printstr): Define new member
6548 function.
6549 (unk_lang_printstr): Delete.
6550 (unknown_language_data): Delete la_printstr initializer.
6551 (unknown_language::printstr): New member function.
6552 (auto_language_data): Delete la_printstr initializer.
6553 (auto_language::printstr): New member function.
6554 * language.h (language_data): Delete la_printstr field.
6555 (language_defn::printstr): Declare new member function.
6556 (LA_PRINT_STRING): Update call to printstr.
6557 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6558 (m2_language_data): Delete la_printstr initializer.
6559 (m2_language::printstr): New member function, implementation from
6560 m2_printstr.
6561 * objc-lang.c (objc_language_data): Delete la_printstr
6562 initializer.
6563 * opencl-lang.c (opencl_language_data): Likewise.
6564 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6565 (pascal_language_data): Delete la_printstr initializer.
6566 (pascal_language::printstr): New member function, implementation
6567 from pascal_printstr.
6568 * p-lang.h (pascal_printstr): Delete declaration.
6569 * rust-lang.c (rust_printstr): Update header comment.
6570 (rust_language_data): Delete la_printstr initializer.
6571 (rust_language::printstr): New member function.
6572
52b50f2c
AB
65732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6574
6575 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6576 (ada_language::printchar): New member function.
6577 * c-lang.c (c_language_data): Delete la_printchar initializer.
6578 (cplus_language_data): Likewise.
6579 (asm_language_data): Likewise.
6580 (minimal_language_data): Likewise.
6581 * d-lang.c (d_language_data): Likewise.
6582 * f-lang.c (f_printchar): Rename to f_language::printchar.
6583 (f_language_data): Delete la_printchar initializer.
6584 (f_language::printchar): New member function, implementation from
6585 f_printchar.
6586 * go-lang.c (go_language_data): Delete la_printchar initializer.
6587 * language.c (unk_lang_printchar): Delete.
6588 (language_defn::printchar): Define new member function.
6589 (unknown_language_data): Delete la_printchar initializer.
6590 (unknown_language::printchar): New member function.
6591 (auto_language_data): Delete la_printchar initializer.
6592 (auto_language::printchar): New member function.
6593 * language.h (language_data): Delete la_printchar field.
6594 (language_defn::printchar): Declare new member function.
6595 (LA_PRINT_CHAR): Update call to printchar.
6596 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6597 (m2_language::printchar): New member function.
6598 * objc-lang.c (objc_language_data): Delete la_printchar
6599 initializer.
6600 * opencl-lang.c (opencl_language_data): Likewise.
6601 * p-lang.c (pascal_language_data): Delete la_printchar
6602 initializer.
6603 (pascal_language::printchar): New member function.
6604 * rust-lang.c (rust_printchar): Rename to
6605 rust_language::printchar.
6606 (rust_language_data): Delete la_printchar initializer.
6607 (rust_language::printchar): New member function, implementation
6608 from rust_printchar.
6609
ec8cec5b
AB
66102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6611
6612 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6613 (ada_language_data): Delete la_emitchar initializer.
6614 (ada_language::emitchar): New member function, implementation from
6615 emit_char.
6616 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6617 (cplus_language_data): Likewise.
6618 (asm_language_data): Likewise.
6619 (minimal_language_data): Likewise.
6620 * d-lang.c (d_language_data): Likewise.
6621 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6622 (f_language_data): Delete la_emitchar initializer.
6623 (f_language::emitchar): New member function, implementation from
6624 f_emit_char.
6625 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6626 * language.c (unk_lang_emit_char): Delete.
6627 (language_defn::emitchar): New member function definition.
6628 (unknown_language_data): Delete la_emitchar initializer.
6629 (unknown_language::emitchar): New member function.
6630 (auto_language_data): Delete la_emitchar initializer.
6631 (auto_language::emitchar): New member function.
6632 * language.h (language_data): Delete la_emitchar field.
6633 (language_defn::emitchar): New member field declaration.
6634 (LA_EMIT_CHAR): Update call to emitchar.
6635 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6636 (m2_language_data): Delete la_emitchar initializer.
6637 (m2_language::emitchar): New member function, implementation from
6638 m2_emit_char.
6639 * objc-lang.c (objc_language_data): Delete la_emitchar
6640 initializer.
6641 * opencl-lang.c (opencl_language_data): Likewise.
6642 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6643 (pascal_language_data): Delete la_emitchar initializer.
6644 (pascal_language::emitchar): New member function, implementation
6645 from pascal_emit_char.
6646 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6647 (rust_language_data): Delete la_emitchar initializer.
6648 (rust_language::emitchar): New member function, implementation
6649 from rust_emitchar.
6650
1bf9c363
AB
66512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6652
6653 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6654 (ada_language_data): Delete la_post_parser initializer.
6655 (ada_language::post_parser): New member function.
6656 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6657 (cplus_language_data): Likewise.
6658 (asm_language_data): Likewise.
6659 (minimal_language_data): Likewise.
6660 * d-lang.c (d_language_data): Likewise.
6661 * f-lang.c (f_language_data): Likewise.
6662 * go-lang.c (go_language_data): Likewise.
6663 * language.c (unknown_language_data): Likewise.
6664 (auto_language_data): Likewise.
6665 * language.h (language_data): Delete la_post_parser field.
6666 (language_defn::post_parser): New member function.
6667 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6668 * objc-lang.c (objc_language_data): Likewise.
6669 * opencl-lang.c (opencl_language_data): Likewise.
6670 * p-lang.c (pascal_language_data): Likewise.
6671 * parse.c (parse_exp_in_context): Update call to post_parser.
6672 (null_post_parser): Delete definition.
6673 * parser-defs.h (null_post_parser): Delete declaration.
6674 * rust-lang.c (rust_language_data): Delete la_post_parser
6675 initializer.
6676
87afa652
AB
66772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6678
6679 * ada-lang.c (parse): Rename to ada_language::parser.
6680 (ada_language_data): Delete la_parser initializer.
6681 (ada_language::parser): New member function, implementation from
6682 parse.
6683 * c-lang.c (c_language_data): Delete la_parser initializer.
6684 (cplus_language_data): Likewise.
6685 (asm_language_data): Likewise.
6686 (minimal_language_data): Likewise.
6687 * d-lang.c (d_language_data): Likewise.
6688 (d_language::parser): New member function.
6689 * f-lang.c (f_language_data): Delete la_parser initializer.
6690 (f_language::parser): New member function.
6691 * go-lang.c (go_language_data): Delete la_parser initializer.
6692 (go_language::parser): New member function.
6693 * language.c (unk_lang_parser): Delete.
6694 (language_defn::parser): Define new member function.
6695 (unknown_language_data): Delete la_parser initializer.
6696 (unknown_language::parser): New member function.
6697 (auto_language_data): Delete la_parser initializer.
6698 (auto_language::parser): New member function.
6699 * language.h (language_data): Delete la_parser field.
6700 (language_defn::parser): Declare new member function.
6701 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6702 (m2_language::parser): New member function.
6703 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6704 * opencl-lang.c (opencl_language_data): Likewise.
6705 * p-lang.c (pascal_language_data): Likewise.
6706 (pascal_language::parser): New member function.
6707 * parse.c (parse_exp_in_context): Update call to parser.
6708 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6709 (rust_language::parser): New member function.
6710
37825800
AB
67112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6712
6713 * top.c (print_gdb_configuration): Print --with-python-libdir
6714 configuration value.
6715
5b860c93
PW
67162020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6717
6718 * NEWS: Mention change to the alias command.
6719
cf00cd6f
PW
67202020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6721
6722 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6723 (alias_command_completer)
6724 (make_alias_options_def_group): New functions.
6725 (alias_opts, alias_option_defs): New struct and array.
6726 (alias_usage_error): Update usage.
6727 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6728 Use option framework.
6729 (_initialize_cli_cmds): Update alias command help.
6730 Update aliases command help.
6731 (show_user):
6732 Add NULL for new default_args lookup_cmd argument.
6733 (valid_command_p): Rename to validate_aliased_command.
6734 Add NULL for new default_args lookup_cmd argument. Verify that the
6735 aliased_command has no default args.
6736 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6737 (lookup_cmd_1, lookup_cmd): New argument default_args.
6738 (add_alias_cmd):
6739 Add NULL for new default_args lookup_cmd argument.
6740 (print_help_for_command): Show default args under the layout
6741 alias some_alias = some_aliased_cmd some_alias_default_arg.
6742 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6743 xfree default_args in destructor.
6744 * cli/cli-script.c (process_next_line, do_define_command):
6745 Add NULL for new default_args lookup_cmd argument.
6746 * command.h: Declare new default_args argument in lookup_cmd
6747 and lookup_cmd_1.
6748 * completer.c (complete_line_internal_1):
6749 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6750 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6751 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6752 Likewise.
6753 * infcmd.c (_initialize_infcmd): Likewise.
6754 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6755 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6756 * python/py-param.c (add_setshow_generic): Likewise.
6757 * remote.c (_initialize_remote): Likewise.
6758 * top.c (execute_command): Prepend default_args if command has some.
6759 (set_verbose):
6760 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6761 * tracepoint.c (validate_actionline, encode_actions_1):
6762 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6763
bd920864
TBA
67642020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6765
6766 * jit.c (jit_read_descriptor): Use bool as the return type.
6767 (jit_breakpoint_re_set_internal): Use bool as the return type.
6768 Invert the return value logic; return true if the jit breakpoint
6769 has been successfully initialized.
6770 (jit_inferior_init): Update the call to
6771 jit_breakpoint_re_set_internal.
6772
f8098322
PA
67732020-06-22 Pedro Alves <palves@redhat.com>
6774
6775 PR gdb/25939
6776 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6777 Use the current inferior instead. Don't return
6778 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6779 wait again.
6780 * sol-thread.c (sol_thread_target::wait): Don't reference
6781 inferior_ptid.
6782 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6783 (sol_update_thread_list_callback): Use the current inferior's pid
6784 instead of inferior_ptid.
6785
196535a6
RO
67862020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6787
6788 * procfs.c: Cleanup many comments.
6789
6790 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6791 (AFTER_WATCHFLAG): Replace by value.
6792
6793 (MAIN_PROC_NAME_FORMAT): Inline ...
6794 (create_procinfo): ... here.
6795
6796 (procfs_debug_inferior): Remove SYS_exec handling.
6797 (syscall_is_exec): Likewise.
6798 (procfs_set_exec_trap): Likewise.
6799
6800 (syscall_is_lwp_exit): Inline in callers.
6801 (syscall_is_exit): Likewise.
6802 (syscall_is_exec): Likewise.
6803 (syscall_is_lwp_create): Likewise.
6804
6805 (invalidate_cache): Remove #if 0 code.
6806
6807 (make_signal_thread_runnable): Remove.
6808 (procfs_target::resume): Remove #if 0 code.
6809
cf6f3e86
RO
68102020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6811
6812 PR gdb/25939
6813 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6814 call ...
6815 (procfs_target::create_inferior): ... here.
6816
48e9cc84
PW
68172020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6818
6819 * exec.c (validate_exec_file): Ensure the build-id is up to
6820 date by calling reopen_exec_file (that checks file timestamp
6821 to decide to re-read the file).
6822
3922b302
PA
68232020-06-18 Pedro Alves <palves@redhat.com>
6824
6825 PR gdb/25412
6826 * gdbthread.h (delete_thread, delete_thread_silent)
6827 (find_thread_ptid): Update comments.
6828 * thread.c (current_thread_): New global.
6829 (is_current_thread): Move higher, and reimplement.
6830 (inferior_thread): Reimplement.
6831 (set_thread_exited): Use bool. Add assertions.
6832 (add_thread_silent): Simplify thread-reuse handling by always
6833 calling delete_thread.
6834 (delete_thread): Remove intro comment.
6835 (find_thread_ptid): Skip exited threads.
6836 (switch_to_thread_no_regs): Write to current_thread_.
6837 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6838 INFERIOR_PTID. Clear current_thread_.
6839
6dbdab44
PA
68402020-06-18 Pedro Alves <palves@redhat.com>
6841
6842 * aix-thread.c (pd_update): Use switch_to_thread.
6843
2da4b788
PA
68442020-06-18 Pedro Alves <palves@redhat.com>
6845
6846 * ravenscar-thread.c (ravenscar_thread_target): Update.
6847 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6848 (ravenscar_thread_target::add_active_thread): ... this. Don't
6849 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6850 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6851
50838d1b
PA
68522020-06-18 Pedro Alves <palves@redhat.com>
6853
6854 * nat/windows-nat.c (current_windows_thread): Remove.
6855 * nat/windows-nat.h (current_windows_thread): Remove.
6856 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6857 Adjust.
6858 (display_selectors): Adjust to fetch the current
6859 windows_thread_info based on inferior_ptid.
6860 (fake_create_process): No longer write to current_windows_thread.
6861 (windows_nat_target::get_windows_debug_event):
6862 Don't set inferior_ptid or current_windows_thread.
6863 (windows_nat_target::wait): Adjust to not rely on
6864 current_windows_thread.
6865 (do_initial_windows_stuff): Now a method of windows_nat_target.
6866 Switch to the last_ptid thread.
6867 (windows_nat_target::attach): Adjust.
6868 (windows_nat_target::detach): Use switch_to_no_thread instead of
6869 writing to inferior_ptid directly.
6870 (windows_nat_target::create_inferior): Adjust.
6871
31ce04e9
PA
68722020-06-18 Pedro Alves <palves@redhat.com>
6873
6874 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6875
1ee1a363
PA
68762020-06-18 Pedro Alves <palves@redhat.com>
6877
6878 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6879 after creating it, instead of writing to inferior_ptid. Don't
6880 write to inferior_ptid.
6881
6d350754
PA
68822020-06-18 Pedro Alves <palves@redhat.com>
6883
6884 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6885
5d971d48
PA
68862020-06-18 Pedro Alves <palves@redhat.com>
6887
6888 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6889 it, instead of writing to inferior_ptid.
6890
86e57d1b
PA
68912020-06-18 Pedro Alves <palves@redhat.com>
6892
6893 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6894 to inferior_ptid.
6895
f2e1c129
PA
68962020-06-18 Pedro Alves <palves@redhat.com>
6897
6898 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6899 instead of writing to inferior_ptid directly.
6900
60db1b85
PA
69012020-06-18 Pedro Alves <palves@redhat.com>
6902
6903 * corelow.c (core_target::close): Use switch_to_no_thread instead
6904 of writing to inferior_ptid directly.
6905 (add_to_thread_list, core_target_open): Use switch_to_thread
6906 instead of writing to inferior_ptid directly.
6907
fe7d6a8d
PA
69082020-06-18 Pedro Alves <palves@redhat.com>
6909
6910 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6911 inferior_ptid.
6912 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6913 inferior_ptid.
6914 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6915 inferior_ptid directly.
6916 (darwin_nat_target::init_thread_list): Switch to thread, instead
6917 of writing to inferior_ptid.
6918 (darwin_nat_target::attach): Don't write to inferior_ptid.
6919 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6920
975f8708
PA
69212020-06-18 Pedro Alves <palves@redhat.com>
6922
6923 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6924 thread.
6925 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6926 Instead use switch_to_thread.
6927 (gnu_nat_target::detach): Use switch_to_no_thread
6928 instead of writing to inferior_ptid directly. Used passed-in
6929 inferior instead of looking up the inferior by pid.
6930
1a204730
PA
69312020-06-18 Pedro Alves <palves@redhat.com>
6932
6933 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6934 inferior_ptid.
6935
ebe84f23
PA
69362020-06-18 Pedro Alves <palves@redhat.com>
6937
6938 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6939 inferior_ptid.
6940 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6941 thread.
6942 (nto_procfs_target::detach): Avoid referencing
6943 inferior_ptid. Use switch_to_no_thread instead of writing to
6944 inferior_ptid directly.
6945 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6946 instead of writing to inferior_ptid directly.
6947 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6948 to thread.
6949
191f02e5
PA
69502020-06-18 Pedro Alves <palves@redhat.com>
6951
6952 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6953 after creating it, instead of writing to inferior_ptid.
6954 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6955 to inferior_ptid directly.
6956 (gdbsim_target::wait): Don't write to inferior_ptid.
6957
0ac55310
PA
69582020-06-18 Pedro Alves <palves@redhat.com>
6959
6960 * remote.c (remote_target::remote_notice_new_inferior): Use
6961 switch_to_thread instead of writing to inferior_ptid directly.
6962 (remote_target::add_current_inferior_and_thread): Use
6963 switch_to_no_thread instead of writing to inferior_ptid directly.
6964 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6965 and switch_to_thread instead of using set_current_inferior or
6966 writing to inferior_ptid directly.
6967
5233f39b
PA
69682020-06-18 Pedro Alves <palves@redhat.com>
6969
6970 * tracectf.c (ctf_target_open): Switch to added thread instead of
6971 writing to inferior_ptid directly.
6972 (ctf_target::close): Use switch_to_no_thread instead of writing to
6973 inferior_ptid directly.
6974
087e161b
PA
69752020-06-18 Pedro Alves <palves@redhat.com>
6976
6977 * tracefile-tfile.c (tfile_target_open): Don't write to
6978 inferior_ptid directly, instead switch to added thread.
6979 (tfile_target::close): Use switch_to_no_thread instead of writing
6980 to inferior_ptid directly.
6981
7fb43e53
PA
69822020-06-18 Pedro Alves <palves@redhat.com>
6983
6984 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6985 (procfs_target::detach): Use switch_to_no_thread
6986 instead of writing to inferior_ptid directly.
6987 (do_attach): Change return type to void. Switch to the added
6988 thread.
6989 (procfs_target::create_inferior): Switch to the added thread.
6990 (procfs_do_thread_registers): Don't write to inferior_ptid.
6991
18493a00
PA
69922020-06-18 Pedro Alves <palves@redhat.com>
6993
6994 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6995 of writing to inferior_ptid.
6996 (scoped_restore_exited_inferior): Delete.
6997 (handle_vfork_child_exec_or_exit): Simplify using
6998 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6999 instead of writing to inferior_ptid.
7000 (THREAD_STOPPED_BY): Delete.
7001 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7002 (thread_stopped_by_hw_breakpoint): Delete.
7003 (save_waitstatus): Use
7004 scoped_restore_current_thread+switch_to_thread, and call
7005 target_stopped_by_watchpoint instead of
7006 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7007 instead of thread_stopped_by_sw_breakpoint, and
7008 target_stopped_by_hw_breakpoint instead of
7009 thread_stopped_by_hw_breakpoint.
7010 (handle_inferior_event)
7011 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7012 inferior_ptid directly, nor
7013 set_current_inferior/set_current_program_space. Use
7014 switch_to_thread / switch_to_inferior_no_thread instead.
7015
a0776b13
PA
70162020-06-18 Pedro Alves <palves@redhat.com>
7017
7018 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7019 instead of writing to inferior_ptid.
7020
6155c136
PA
70212020-06-18 Pedro Alves <palves@redhat.com>
7022
7023 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7024 added thread.
7025 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7026 to the added thread.
7027 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7028 instead of writing to inferior_ptid.
7029
c5316fc6
PA
70302020-06-18 Pedro Alves <palves@redhat.com>
7031
7032 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7033 (register_to_value_test): Mock a program_space too. Heap-allocate
7034 the address space. Don't write to inferior_ptid. Use
7035 switch_to_thread instead.
7036
8df01799
PA
70372020-06-18 Pedro Alves <palves@redhat.com>
7038
7039 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7040 Delete.
7041 (find_signalled_thread()): New, factored out from
7042 linux_make_corefile_notes and adjusted to handle exited threads.
7043 (linux_make_corefile_notes): Adjust to use the new
7044 find_signalled_thread.
7045
41792d68
PA
70462020-06-18 Pedro Alves <palves@redhat.com>
7047
7048 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7049 of saving/restoring inferior_ptid.
7050
612f258a
TT
70512020-06-17 Tom Tromey <tom@tromey.com>
7052
7053 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7054 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7055 declare.
7056 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7057
efb763a5
SM
70582020-06-15 Simon Marchi <simon.marchi@efficios.com>
7059
7060 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7061 of partial symtabs.
7062
2951f6c0
SM
70632020-06-17 Simon Marchi <simon.marchi@efficios.com>
7064
7065 * regformats/reg-arm.dat: Remove.
7066 * regformats/reg-bfin.dat: Remove.
7067 * regformats/reg-cris.dat: Remove.
7068 * regformats/reg-crisv32.dat: Remove.
7069 * regformats/reg-m32r.dat: Remove.
7070 * regformats/reg-tilegx.dat: Remove.
7071 * regformats/reg-tilegx32.dat: Remove.
7072
7d458ea5
SM
70732020-06-17 Simon Marchi <simon.marchi@efficios.com>
7074
7075 * features/Makefile (WHICH): Remove arm files.
7076 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7077 * regformats/arm/arm-with-neon.dat: Remove.
7078 * regformats/arm/arm-with-vfpv2.dat: Remove.
7079 * regformats/arm/arm-with-vfpv3.dat: Remove.
7080
3af96c0d
SM
70812020-06-17 Simon Marchi <simon.marchi@efficios.com>
7082
7083 * features/Makefile (XMLTOC): Remove rx.xml.
7084
b25e22fd
PA
70852020-06-17 Pedro Alves <palves@redhat.com>
7086
7087 * gdbthread.h (thread_control_state) <trap_expected> Update
7088 comments.
7089
a78a19b1
AB
70902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7091
7092 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7093 ada_language::lookup_symbol_nonlocal.
7094 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7095 (ada_language::lookup_symbol_nonlocal): New member function,
7096 implementation from ada_lookup_symbol_nonlocal.
7097 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7098 initializer.
7099 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7100 initializer.
7101 (cplus_language::lookup_symbol_nonlocal): New member function.
7102 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7103 (minimal_language_data) Likewise.
7104 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7105 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7106 initializer.
7107 (d_language::lookup_symbol_nonlocal): New member function.
7108 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7109 initializer.
7110 (f_language::lookup_symbol_nonlocal): New member function.
7111 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7112 initializer.
7113 * language.c (unknown_language_data): Likewise.
7114 (auto_language_data): Likewise.
7115 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7116 field.
7117 (language_defn::lookup_symbol_nonlocal): New member function.
7118 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7119 initializer.
7120 * objc-lang.c (objc_language_data): Likewise.
7121 * opencl-lang.c (opencl_language_data): Likewise.
7122 * p-lang.c (pascal_language_data): Likewise.
7123 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7124 rust_language::lookup_symbol_nonlocal.
7125 (rust_language_data): Delete la_lookup_symbol_nonlocal
7126 initializer.
7127 (rust_language::lookup_symbol_nonlocal): New member function,
7128 implementation from rust_lookup_symbol_nonlocal.
7129 * symtab.c (lookup_symbol_aux): Update call to
7130 lookup_symbol_nonlocal.
7131 (basic_lookup_symbol_nonlocal): Rename to...
7132 (language_defn::lookup_symbol_nonlocal): ...this, and update
7133 header comment. Remove language_defn parameter, and replace with
7134 uses of `this'.
7135 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7136
ebe2334e
AB
71372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7138
7139 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7140 initializer.
7141 (ada_language::value_print_inner): New member function.
7142 * c-lang.c (c_language_data): Delete la_value_print_inner
7143 initializer.
7144 (cplus_language_data): Likewise.
7145 (asm_language_data): Likewise.
7146 (minimal_language_data): Likewise.
7147 * d-lang.c (d_language_data): Likewise.
7148 (d_language::value_print_inner): New member function.
7149 * f-lang.c (f_language_data): Delete la_value_print_inner
7150 initializer.
7151 (f_language::value_print_inner): New member function.
7152 * f-lang.h (f_value_print_innner): Rename to...
7153 (f_value_print_inner): ...this (note spelling of 'inner').
7154 * f-valprint.c (f_value_print_innner): Rename to...
7155 (f_value_print_inner): ...this (note spelling of 'inner').
7156 * go-lang.c (go_language_data): Delete la_value_print_inner
7157 initializer.
7158 (go_language::value_print_inner): New member function.
7159 * language.c (language_defn::value_print_inner): Define new member
7160 function.
7161 (unk_lang_value_print_inner): Delete.
7162 (unknown_language_data): Delete la_value_print_inner initializer.
7163 (unknown_language::value_print_inner): New member function.
7164 (auto_language_data): Delete la_value_print_inner initializer.
7165 (auto_language::value_print_inner): New member function.
7166 * language.h (language_data): Delete la_value_print_inner field.
7167 (language_defn::value_print_inner): Delcare new member function.
7168 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7169 initializer.
7170 (m2_language::value_print_inner): New member function.
7171 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7172 initializer.
7173 * opencl-lang.c (opencl_language_data): Likewise.
7174 * p-lang.c (pascal_language_data): Likewise.
7175 (pascal_language::value_print_inner): New member function.
7176 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7177 initializer.
7178 (rust_language::value_print_inner): New member function.
7179 * valprint.c (do_val_print): Update call to value_print_inner.
7180
a1d1fa3e
AB
71812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7182
7183 * ada-lang.c (ada_language_data): Delete la_value_print
7184 initializer.
7185 (ada_language::value_print): New member function.
7186 * c-lang.c (c_language_data): Delete la_value_print initializer.
7187 (cplus_language_data): Likewise.
7188 (asm_language_data): Likewise.
7189 (minimal_language_data): Likewise.
7190 * d-lang.c (d_language_data): Likewise.
7191 * f-lang.c (f_language_data): Likewise.
7192 * go-lang.c (go_language_data): Likewise.
7193 * language.c (unk_lang_value_print): Delete.
7194 (language_defn::value_print): Define new member function.
7195 (unknown_language_data): Delete la_value_print initializer.
7196 (unknown_language::value_print): New member function.
7197 (auto_language_data): Delete la_value_print initializer.
7198 (auto_language::value_print): New member function.
7199 * language.h (language_data): Delete la_value_print field.
7200 (language_defn::value_print): Declare new member function.
7201 (LA_VALUE_PRINT): Update call to value_print.
7202 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7203 * objc-lang.c (objc_language_data): Likewise.
7204 * opencl-lang.c (opencl_language_data): Likewise.
7205 * p-lang.c (pascal_language_data): Likewise.
7206 (pascal_language::value_print): New member function.
7207 * rust-lang.c (rust_language_data): Delete la_value_print
7208 initializer.
7209
f16a9f57
AB
72102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7211
7212 * ada-lang.c (ada_watch_location_expression): Rename to
7213 ada_language::watch_location_expression.
7214 (ada_language_data): Delete la_watch_location_expression
7215 initializer.
7216 (ada_language::watch_location_expression): New member function,
7217 implementation from ada_watch_location_expression.
7218 * breakpoint.c (watch_command_1): Update call to
7219 watch_location_expression.
7220 * c-lang.c (c_watch_location_expression): Rename to
7221 language_defn::watch_location_expression.
7222 (c_language_data): Delete la_watch_location_expression
7223 initializer.
7224 (cplus_language_data): Likewise.
7225 (asm_language_data): Likewise.
7226 (minimal_language_data): Likewise.
7227 * c-lang.h (c_watch_location_expression): Delete declaration.
7228 * d-lang.c (d_language_data): Delete la_watch_location_expression
7229 initializer.
7230 * f-lang.c (f_language_data): Likewise.
7231 * go-lang.c (go_language_data): Likewise.
7232 * language.c (language_defn::watch_location_expression): Member
7233 function implementation from c_watch_location_expression.
7234 (unknown_language_data): Delete la_watch_location_expression
7235 initializer.
7236 (auto_language_data): Likewise.
7237 * language.h (language_data): Delete la_watch_location_expression
7238 field.
7239 (language_defn::watch_location_expression): Declare new member
7240 function.
7241 * m2-lang.c (m2_language_data): Delete
7242 la_watch_location_expression initializer.
7243 * objc-lang.c (objc_language_data): Likewise.
7244 * opencl-lang.c (opencl_language_data): Likewise.
7245 * p-lang.c (pascal_language_data): Likewise.
7246 * rust-lang.c (rust_watch_location_expression): Rename to
7247 rust_language::watch_location_expression.
7248 (rust_language_data): Delete la_watch_location_expression
7249 initializer.
7250 (rust_language::watch_location_expression): New member function,
7251 implementation from rust_watch_location_expression.
7252
7e56227d
AB
72532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7254
7255 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7256 ada_language::collect_symbol_completion_matches.
7257 (ada_language_data): Delete la_collect_symbol_completion_matches
7258 initializer.
7259 (ada_language::collect_symbol_completion_matches): New member
7260 function, implementation from
7261 ada_collect_symbol_completion_matches.
7262 * c-lang.c (c_language_data): Delete
7263 la_collect_symbol_completion_matches initializer.
7264 (cplus_language_data): Likewise.
7265 (asm_language_data): Likewise.
7266 (minimal_language_data): Likewise.
7267 * d-lang.c (d_language_data): Likewise.
7268 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7269 f_language::collect_symbol_completion_matches.
7270 (f_language_data): Delete la_collect_symbol_completion_matches
7271 initializer.
7272 (f_language::collect_symbol_completion_matches) New member
7273 function, implementation from f_collect_symbol_completion_matches.
7274 * go-lang.c (go_language_data): Delete
7275 la_collect_symbol_completion_matches initializer.
7276 * language.c (unknown_language_data): Likewise.
7277 (auto_language_data): Likewise.
7278 * language.h (language_data): Delete
7279 la_collect_symbol_completion_matches field.
7280 (language_defn::collect_symbol_completion_matches): New member
7281 function.
7282 * m2-lang.c (m2_language_data): Delete
7283 la_collect_symbol_completion_matches initializer.
7284 * objc-lang.c (objc_language_data): Likewise.
7285 * opencl-lang.c (opencl_language_data): Likewise.
7286 * p-lang.c (pascal_language_data): Likewise.
7287 * rust-lang.c (rust_language_data): Likewise.
7288 * symtab.c (default_collect_symbol_completion_matches): Delete.
7289 (collect_symbol_completion_matches): Update call to
7290 collect_symbol_completion_matches.
7291 (collect_symbol_completion_matches_type): Likewise.
7292 * symtab.h (default_collect_symbol_completion_matches): Delete
7293 declaration.
7294
53fc67f8
AB
72952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7296
7297 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7298 (ada_language_data): Delete la_word_break_characters initializer.
7299 (ada_language::word_break_characters): New member function.
7300 * c-lang.c (c_language_data): Delete la_word_break_characters
7301 initializer.
7302 (cplus_language_data): Likewise.
7303 (asm_language_data): Likewise.
7304 (minimal_language_data): Likewise.
7305 * completer.c: Update global comment.
7306 (advance_to_expression_complete_word_point): Update call to
7307 word_break_characters.
7308 (complete_files_symbols): Likewise.
7309 (complete_line_internal_1): Likewise.
7310 (default_completer_handle_brkchars): Likewise.
7311 (skip_quoted_chars): Likewise.
7312 * d-lang.c (d_language_data): Delete la_word_break_characters
7313 initializer.
7314 * f-lang.c (f_word_break_characters): Delete.
7315 (f_language_data): Delete la_word_break_characters initializer.
7316 (f_language::word_break_characters): New member function.
7317 * go-lang.c (go_language_data): Delete la_word_break_characters
7318 initializer.
7319 * language.c (unknown_language_data): Likewise.
7320 (auto_language_data): Likewise.
7321 * language.h (default_word_break_characters): Move declaration to
7322 earlier in the file.
7323 (language_data): Delete la_word_break_characters field.
7324 (language_defn::word_break_characters): New member function.
7325 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7326 initializer.
7327 * objc-lang.c (objc_language_data): Likewise.
7328 * opencl-lang.c (opencl_language_data): Likewise.
7329 * p-lang.c (pascal_language_data): Likewise.
7330 * rust-lang.c (rust_language_data): Likewise.
7331
c9debfb9
AB
73322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7333
7334 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7335 (ada_language_data): Delete la_get_symbol_name_matcher
7336 initializer.
7337 (language_defn::get_symbol_name_matcher_inner): New member
7338 function.
7339 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7340 initializer.
7341 (cplus_language_data): Likewise.
7342 (cplus_language::get_symbol_name_matcher_inner): New member
7343 function.
7344 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7345 (minimal_language_data): Likewise.
7346 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7347 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7348 initializer.
7349 * dictionary.c (iter_match_first_hashed): Update call to
7350 get_symbol_name_matcher.
7351 (iter_match_next_hashed): Likewise.
7352 (iter_match_next_linear): Likewise.
7353 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7354 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7355 initializer.
7356 (f_language::get_symbol_name_matcher_inner): New member function.
7357 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7358 initializer.
7359 * language.c (default_symbol_name_matcher): Update header comment,
7360 make static.
7361 (language_defn::get_symbol_name_matcher): New definition.
7362 (language_defn::get_symbol_name_matcher_inner): Likewise.
7363 (get_symbol_name_matcher): Delete.
7364 (unknown_language_data): Delete la_get_symbol_name_matcher
7365 initializer.
7366 (auto_language_data): Likewise.
7367 * language.h (language_data): Delete la_get_symbol_name_matcher
7368 field.
7369 (language_defn::get_symbol_name_matcher): New member function.
7370 (language_defn::get_symbol_name_matcher_inner): Likewise.
7371 (default_symbol_name_matcher): Delete declaration.
7372 * linespec.c (find_methods): Update call to
7373 get_symbol_name_matcher.
7374 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7375 initializer.
7376 * minsyms.c (lookup_minimal_symbol): Update call to
7377 get_symbol_name_matcher.
7378 (iterate_over_minimal_symbols): Likewise.
7379 * objc-lang.c (objc_language_data): Delete
7380 la_get_symbol_name_matcher initializer.
7381 * opencl-lang.c (opencl_language_data): Likewise.
7382 * p-lang.c (pascal_language_data): Likewise.
7383 * psymtab.c (psymbol_name_matches): Update call to
7384 get_symbol_name_matcher.
7385 * rust-lang.c (rust_language_data): Delete
7386 la_get_symbol_name_matcher initializer.
7387 * symtab.c (symbol_matches_search_name): Update call to
7388 get_symbol_name_matcher.
7389 (compare_symbol_name): Likewise.
7390
9a49ad8c
AB
73912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7392
7393 * ada-lang.c (ada_language_data): Delete la_compute_program
7394 initializer.
7395 * c-lang.c (c_language_data): Likewise.
7396 (c_language::compute_program): New member function.
7397 (cplus_language_data): Delete la_compute_program initializer.
7398 (cplus_language::compute_program): New member function.
7399 (asm_language_data): Delete la_compute_program initializer.
7400 (minimal_language_data): Likewise.
7401 * c-lang.h (c_compute_program): Update comment.
7402 (cplus_compute_program): Likewise.
7403 * compile/compile-c-support.c (c_compute_program): Likewise.
7404 (cplus_compute_program): Likewise.
7405 * compile/compile.c (compile_to_object): Update call to
7406 la_compute_program.
7407 * d-lang.c (d_language_data): Delete la_compute_program
7408 initializer.
7409 * f-lang.c (f_language_data): Likewise.
7410 * go-lang.c (go_language_data): Likewise.
7411 * language.c (unknown_language_data): Likewise.
7412 (auto_language_data): Likewise.
7413 * language.h (language_data): Delete la_compute_program field.
7414 (language_defn::compute_program): New member function.
7415 * m2-lang.c (m2_language_data): Delete la_compute_program
7416 initializer.
7417 * objc-lang.c (objc_language_data): Likewise.
7418 * opencl-lang.c (opencl_language_data): Likewise.
7419 * p-lang.c (pascal_language_data): Likewise.
7420 * rust-lang.c (rust_language_data): Likewise.
7421
eff93b4d
AB
74222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7423
7424 * ada-lang.c (ada_language_data) Delete
7425 la_class_name_from_physname initializer.
7426 * c-lang.c (c_language_data): Likewise.
7427 (cplus_language_data): Likewise.
7428 (cplus_language::class_name_from_physname): New member function.
7429 (asm_language_data): Delete la_class_name_from_physname
7430 initializer.
7431 (minimal_language_data): Likewise.
7432 * d-lang.c (d_language_data): Likewise.
7433 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7434 method on language_defn class.
7435 (guess_full_die_structure_name): Likewise.
7436 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7437 initializer.
7438 * go-lang.c (go_language_data): Likewise.
7439 * language.c (language_class_name_from_physname): Delete.
7440 (unk_lang_class_name): Delete.
7441 (unknown_language_data): Delete la_class_name_from_physname
7442 initializer.
7443 (auto_language_data): Likewise.
7444 * language.h (language_data): Delete la_class_name_from_physname
7445 field.
7446 (language_defn::class_name_from_physname): New function.
7447 (language_class_name_from_physname): Delete declaration.
7448 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7449 initializer.
7450 * objc-lang.c (objc_language_data): Likewise.
7451 * opencl-lang.c (opencl_language_data): Likewise.
7452 * p-lang.c (pascal_language_data): Likewise.
7453 * rust-lang.c (rust_language_data): Likewise.
7454
de543742
TT
74552020-06-16 Tom Tromey <tom@tromey.com>
7456
7457 * tui/tui-data.h (STATUS_NAME): New macro.
7458 * tui/tui-layout.c (tui_remove_some_windows)
7459 (initialize_known_windows, tui_register_window)
7460 (tui_layout_split::remove_windows, initialize_layouts)
7461 (tui_new_layout_command): Don't use hard-coded window names.
7462
a350efd4
TT
74632020-06-16 Tom Tromey <tom@tromey.com>
7464
7465 PR tui/25348:
7466 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7467 tui_initialize_readline. Only run once. Call rl_initialize.
7468 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7469 tui_initialize_readline.
7470 * tui/tui-io.c (tui_setup_io): Call
7471 tui_ensure_readline_initialized.
7472 * tui/tui-interp.c (tui_interp::init): Update.
7473
39ec0490
TT
74742020-06-16 Tom Tromey <tom@tromey.com>
7475
7476 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7477 Also preserve the status window.
7478
d2d1ea20
TT
74792020-06-16 Tom Tromey <tom@tromey.com>
7480
7481 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7482 where m_window==nullptr.
7483
66920317
TT
74842020-06-15 Tom Tromey <tromey@adacore.com>
7485
7486 * windows-nat.c (windows_nat::handle_output_debug_string):
7487 Update.
7488 (windows_nat::handle_ms_vc_exception): Update.
7489 * target.h (target_read_string): Change API.
7490 * target.c (target_read_string): Change API.
7491 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7492 Update.
7493 * solib-frv.c (frv_current_sos): Update.
7494 * solib-dsbt.c (dsbt_current_sos): Update.
7495 * solib-darwin.c (darwin_current_sos): Update.
7496 * linux-thread-db.c (inferior_has_bug): Update.
7497 * expprint.c (print_subexp_standard): Update.
7498 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7499 (ada_exception_message_1): Update.
7500
a5d871dd
TT
75012020-06-15 Tom Tromey <tromey@adacore.com>
7502
7503 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7504
670e35fa
TT
75052020-06-15 Tom Tromey <tromey@adacore.com>
7506
7507 * valprint.c (read_string): Update comment.
7508 * target.c (MIN): Remove.
7509 (target_read_string): Rewrite.
7510
f5272a3b
TT
75112020-06-15 Tom Tromey <tromey@adacore.com>
7512
7513 * corefile.c (read_memory_string): Remove.
7514 * ada-valprint.c (ada_value_print_ptr): Update.
7515 * ada-lang.h (ada_tag_name): Change return type.
7516 * ada-lang.c (type_from_tag): Update.
7517 (ada_tag_name_from_tsd): Change return type. Use
7518 target_read_string.
7519 (ada_tag_name): Likewise.
7520 * gdbcore.h (read_memory_string): Don't declare.
7521
2c074f49
HD
75222020-06-14 Hannes Domani <ssbssa@yahoo.de>
7523
7524 * symtab.c (rbreak_command): Ignore Windows drive colon.
7525
6a17d503
SM
75262020-06-12 Simon Marchi <simon.marchi@efficios.com>
7527
7528 * NEWS: Mention removed GDBserver host support.
7529
453c733f
NC
75302020-06-12 Nelson Chu <nelson.chu@sifive.com>
7531
7532 * features/riscv/rebuild-csr-xml.sh: Updated.
7533
2b4e6a3f
TT
75342020-06-11 Tom Tromey <tom@tromey.com>
7535
7536 PR gdb/18318:
7537 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7538
4412332f
JG
75392020-06-09 Jonny Grant <jg@jguk.org>
75402020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7541
7542 * main.c (captured_main_1): Don't print new line after help.
7543 (print_gdb_help): add mailing list and IRC channel information
7544 to --help. Add new lines between items in the footer. Remove
7545 quotes around bug url.
7546
2f33032a
KS
75472020-06-11 Keith Seitz <keiths@redhat.com>
7548
7549 PR gdb/21356
7550 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7551 Resolve typedefs for type length calculations.
7552
7ab96794
TV
75532020-06-10 Tom de Vries <tdevries@suse.de>
7554
7555 PR ada/24713
7556 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7557 (write_psymbols): Enable .gdb_index for ada.
7558 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7559 ada.
7560
e5f3ece2
TV
75612020-06-10 Tom de Vries <tdevries@suse.de>
7562
7563 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7564 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7565 namei" instead of "const char *name" argument.
7566 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7567 dw2_symtab_iter_init.
7568
940da03e
SM
75692020-06-08 Simon Marchi <simon.marchi@efficios.com>
7570
7571 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7572 to use type::field and field::type instead.
7573
b6cdac4b
SM
75742020-06-08 Simon Marchi <simon.marchi@efficios.com>
7575
7576 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7577 to use field::type instead.
7578
5d14b6e5
SM
75792020-06-08 Simon Marchi <simon.marchi@efficios.com>
7580
7581 * gdbtypes.h (struct field) <type, set_type>: New methods.
7582 Rename `type` field to...
7583 <m_type>: ... this. Change references throughout to use type or
7584 set_type methods.
7585 (FIELD_TYPE): Use field::type. Change call sites that modify
7586 the field's type to use field::set_type instead.
7587
3d967001
SM
75882020-06-08 Simon Marchi <simon.marchi@efficios.com>
7589
7590 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7591 to use type::index_type instead.
7592
262abc0d
SM
75932020-06-08 Simon Marchi <simon.marchi@efficios.com>
7594
7595 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7596 methods.
7597 (TYPE_INDEX_TYPE): Use type::index_type.
7598 * gdbtypes.c (create_array_type_with_stride): Likewise.
7599
82836c92
TT
76002020-06-07 Tom Tromey <tom@tromey.com>
7601
7602 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7603 parameter.
7604 (generic_value_print): Update.
7605
940dace9
AB
76062020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7607
7608 Revert commit 982a38f60b0.
7609 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7610
982a38f6
AB
76112020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7612
7613 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7614 avoid use after free.
7615
82f06518
TV
76162020-06-05 Tom de Vries <tdevries@suse.de>
7617
7618 * NEWS: Fix typos.
7619
f8c41851
SM
76202020-06-04 Simon Marchi <simon.marchi@efficios.com>
7621
7622 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7623 the per_bfd object.
7624 (dwarf2_read_debug_names): Likewise.
7625 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7626 object when re-using a per_bfd object with an index.
7627
f9b5d5ea
TV
76282020-06-03 Tom de Vries <tdevries@suse.de>
7629
7630 PR symtab/26046
7631 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7632 children for C++.
7633 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7634 DW_TAG_subprogram.
7635
f6eee2d0
AB
76362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7637
7638 * ada-lang.c (ada_language_data): Delete skip_trampoline
7639 initializer.
7640 * c-lang.c (c_language_data): Likewise.
7641 (cplus_language_data): Likewise.
7642 (cplus_language::skip_trampoline): New member function.
7643 (asm_language_data): Delete skip_trampoline initializer.
7644 (minimal_language_data): Likewise.
7645 * d-lang.c (d_language_data): Likewise.
7646 * f-lang.c (f_language_data): Likewise.
7647 * go-lang.c (go_language_data): Likewise.
7648 * language.c (unk_lang_trampoline): Delete function.
7649 (skip_language_trampoline): Update.
7650 (unknown_language_data): Delete skip_trampoline initializer.
7651 (auto_language_data): Likewise.
7652 * language.h (language_data): Delete skip_trampoline field.
7653 (language_defn::skip_trampoline): New function.
7654 * m2-lang.c (m2_language_data): Delete skip_trampoline
7655 initializer.
7656 * objc-lang.c (objc_skip_trampoline): Delete function, move
7657 implementation to objc_language::skip_trampoline.
7658 (objc_language_data): Delete skip_trampoline initializer.
7659 (objc_language::skip_trampoline): New member function with
7660 implementation from objc_skip_trampoline.
7661 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7662 initializer.
7663 * p-lang.c (pascal_language_data): Likewise.
7664 * rust-lang.c (rust_language_data): Likewise.
7665
0a50df5d
AB
76662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7667
7668 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7669 (ada_language::demangle): New member function.
7670 * c-lang.c (c_language_data): Delete la_demangle initializer.
7671 (cplus_language_data): Delete la_demangle initializer.
7672 (cplus_language::demangle): New member function.
7673 (asm_language_data): Delete la_demangle initializer.
7674 (minimal_language_data): Delete la_demangle initializer.
7675 * d-lang.c (d_language_data): Delete la_demangle initializer.
7676 (d_language::demangle): New member function.
7677 * f-lang.c (f_language_data): Delete la_demangle initializer.
7678 (f_language::demangle): New member function.
7679 * go-lang.c (go_language_data): Delete la_demangle initializer.
7680 (go_language::demangle): New member function.
7681 * language.c (language_demangle): Update.
7682 (unk_lang_demangle): Delete.
7683 (unknown_language_data): Delete la_demangle initializer.
7684 (unknown_language::demangle): New member function.
7685 (auto_language_data): Delete la_demangle initializer.
7686 (auto_language::demangle): New member function.
7687 * language.h (language_data): Delete la_demangle field.
7688 (language_defn::demangle): New function.
7689 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7690 * objc-lang.c (objc_language_data): Delete la_demangle
7691 initializer.
7692 (objc_language::demangle): New member function.
7693 * opencl-lang.c (opencl_language_data): Delete la_demangle
7694 initializer.
7695 * p-lang.c (pascal_language_data): Likewise.
7696 * rust-lang.c (rust_language_data): Likewise.
7697 (rust_language::demangle): New member function.
7698
fbfb0a46
AB
76992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7700
7701 * ada-lang.c (ada_language_data): Delete la_print_type
7702 initializer.
7703 (ada_language::print_type): New member function.
7704 * c-lang.c (c_language_data): Delete la_print_type initializer.
7705 (c_language::print_type): New member function.
7706 (cplus_language_data): Delete la_print_type initializer.
7707 (cplus_language::print_type): New member function.
7708 (asm_language_data): Delete la_print_type initializer.
7709 (asm_language::print_type): New member function.
7710 (minimal_language_data): Delete la_print_type initializer.
7711 (minimal_language::print_type): New member function.
7712 * d-lang.c (d_language_data): Delete la_print_type initializer.
7713 (d_language::print_type): New member function.
7714 * f-lang.c (f_language_data): Delete la_print_type initializer.
7715 (f_language::print_type): New member function.
7716 * go-lang.c (go_language_data): Delete la_print_type initializer.
7717 (go_language::print_type): New member function.
7718 * language.c (unk_lang_print_type): Delete.
7719 (unknown_language_data): Delete la_print_type initializer.
7720 (unknown_language::print_type): New member function.
7721 (auto_language_data): Delete la_print_type initializer.
7722 (auto_language::print_type): New member function.
7723 * language.h (language_data): Delete la_print_type field.
7724 (language_defn::print_type): New function.
7725 (LA_PRINT_TYPE): Update.
7726 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7727 (m2_language::print_type): New member function.
7728 * objc-lang.c (objc_language_data): Delete la_print_type
7729 initializer.
7730 (objc_language::print_type): New member function.
7731 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7732 to opencl_language::print_type.
7733 (opencl_language_data): Delete la_print_type initializer.
7734 (opencl_language::print_type): New member function, implementation
7735 from opencl_print_type.
7736 * p-lang.c (pascal_language_data): Delete la_print_type
7737 initializer.
7738 (pascal_language::print_type): New member function.
7739 * rust-lang.c (rust_print_type): Delete, implementation moved to
7740 rust_language::print_type.
7741 (rust_language_data): Delete la_print_type initializer.
7742 (rust_language::print_type): New member function, implementation
7743 from rust_print_type.
7744
6f827019
AB
77452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7746
7747 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7748 implementation moves to...
7749 (ada_language::sniff_from_mangled_name): ...here. Update return
7750 type.
7751 (ada_language_data): Delete la_sniff_from_mangled_name
7752 initializer.
7753 * c-lang.c (c_language_data): Likewise.
7754 (cplus_language_data): Likewise.
7755 (cplus_language::sniff_from_mangled_name): New member function,
7756 implementation taken from gdb_sniff_from_mangled_name.
7757 (asm_language_data): Delete la_sniff_from_mangled_name
7758 initializer.
7759 (minimal_language_data): Likewise.
7760 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7761 implementation moves to cplus_language::sniff_from_mangled_name.
7762 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7763 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7764 moves to...
7765 (d_language::sniff_from_mangled_name): ...here.
7766 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7767 * f-lang.c (f_language_data): Likewise.
7768 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7769 moves to...
7770 (go_language::sniff_from_mangled_name): ...here.
7771 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7772 * language.c (language_sniff_from_mangled_name): Delete.
7773 (unknown_language_data): Delete la_sniff_from_mangled_name
7774 initializer.
7775 (auto_language_data): Likewise.
7776 * language.h (language_data): Delete la_sniff_from_mangled_name
7777 field.
7778 (language_defn::sniff_from_mangled_name): New function.
7779 (language_sniff_from_mangled_name): Delete declaration.
7780 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7781 field.
7782 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7783 implementation moves to...
7784 (objc_language::sniff_from_mangled_name): ...here.
7785 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7786 * opencl-lang.c (opencl_language_data): Likewise.
7787 * p-lang.c (pascal_language_data): Likewise.
7788 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7789 implementation moves to...
7790 (rust_language::sniff_from_mangled_name): ...here.
7791 (rust_language_data): Delete la_sniff_from_mangled_name
7792 initializer.
7793 * symtab.c (symbol_find_demangled_name): Call
7794 sniff_from_mangled_name member function.
7795
fb8006fd
AB
77962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7797
7798 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7799 initializer.
7800 * c-lang.c (c_language_data): Likewise.
7801 (cplus_language_data): Likewise.
7802 (cplus_language::search_name_hash): New member function.
7803 (asm_language_data): Delete la_search_name_hash initializer.
7804 (minimal_language_data): Likewise.
7805 * d-lang.c (d_language_data): Likewise.
7806 * dictionary.c (default_search_name_hash): Rename to...
7807 (language_defn::search_name_hash): ...this.
7808 * f-lang.c (f_language_data): Likewise.
7809 (f_language::search_name_hash): New member function.
7810 * go-lang.c (go_language_data): Delete la_search_name_hash
7811 initializer.
7812 * language.c (unknown_language_data): Likewise.
7813 (auto_language_data): Likewise.
7814 * language.h (struct language_data): Delete la_search_name_hash
7815 field.
7816 (language_defn::search_name_hash): Declare new member function.
7817 (default_search_name_hash): Delete declaration.
7818 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7819 initializer.
7820 * objc-lang.c (objc_language_data): Likewise.
7821 * opencl-lang.c (opencl_language_data): Likewise.
7822 * p-lang.c (pascal_language_data): Likewise.
7823 * rust-lang.c (rust_language_data): Likewise.
7824 * symtab.c (search_name_hash): Update call.
7825
8e25bafe
AB
78262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7827
7828 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7829 initializer.
7830 * c-lang.c (class compile_instance): Declare.
7831 (c_language_data): Delete la_get_compile_instance initializer.
7832 (c_language::get_compile_instance): New member function.
7833 (cplus_language_data): Delete la_get_compile_instance initializer.
7834 (cplus_language::get_compile_instance): New member function.
7835 (asm_language_data): Delete la_get_compile_instance initializer.
7836 (minimal_language_data): Likewise.
7837 * c-lang.h (c_get_compile_context): Update comment.
7838 (cplus_get_compile_context): Update comment.
7839 * compile/compile.c (compile_to_object): Update calls, don't rely
7840 on function pointer being NULL.
7841 * d-lang.c (d_language_data): Delete la_get_compile_instance
7842 initializer.
7843 * f-lang.c (f_language_data): Likewise.
7844 * go-lang.c (go_language_data): Likewise.
7845 * language.c (unknown_language_data): Likewise.
7846 (auto_language_data): Likewise.
7847 * language.h (language_data): Delete la_get_compile_instance field.
7848 (language_defn::get_compile_instance): New member function.
7849 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7850 initializer.
7851 * objc-lang.c (objc_language_data): Likewise.
7852 * opencl-lang.c (opencl_language_data): Likewise.
7853 * p-lang.c (pascal_language_data): Likewise.
7854 * rust-lang.c (rust_language_data): Likewise.
7855
4009ee92
AB
78562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7857
7858 * ada-lang.c (ada_add_all_symbols): Update comment.
7859 (ada_iterate_over_symbols): Delete, move implementation to...
7860 (ada_language::iterate_over_symbols): ...here, a new member
7861 function, rewrite to use range based for loop.
7862 (ada_language_data): Delete la_iterate_over_symbols initializer.
7863 * c-lang.c (c_language_data): Likewise.
7864 (cplus_language_data): Likewise.
7865 (asm_language_data): Likewise.
7866 (minimal_language_data): Likewise.
7867 * d-lang.c (d_language_data): Likewise.
7868 * f-lang.c (f_language_data): Likewise.
7869 * go-lang.c (go_language_data): Likewise.
7870 * language.c (unknown_language_data): Likewise.
7871 (auto_language_data): Likewise.
7872 * language.h (language_data): Delete la_iterate_over_symbols field.
7873 (language_defn::iterate_over_symbols): New member function.
7874 (LA_ITERATE_OVER_SYMBOLS): Update.
7875 * linespec.c (iterate_over_all_matching_symtabs): Update.
7876 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7877 initializer.
7878 * objc-lang.c (objc_language_data): Likewise.
7879 * opencl-lang.c (opencl_language_data): Likewise.
7880 * p-lang.c (pascal_language_data): Likewise.
7881 * rust-lang.c (rust_language_data): Likewise.
7882
54f4ca46
AB
78832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7884
7885 * ada-lang.c (ada_language_data): Delete
7886 la_lookup_transparent_type initializer.
7887 * c-lang.c (c_language_data): Likewise.
7888 (cplus_language_data): Likewise.
7889 (cplus_language::lookup_transparent_type): New member function.
7890 (asm_language_data): Delete la_lookup_transparent_type
7891 initializer.
7892 (minimal_language_data): Likewise.
7893 * d-lang.c (d_language_data): Likewise.
7894 * f-lang.c (f_language_data): Likewise.
7895 * go-lang.c (go_language_data): Likewise.
7896 * language.c (unknown_language_data): Likewise.
7897 (auto_language_data): Likewise.
7898 * language.h (struct language_data): Delete
7899 la_lookup_transparent_type field.
7900 (language_defn::lookup_transparent_type): New member function.
7901 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7902 initializer.
7903 * objc-lang.c (objc_language_data): Likewise.
7904 * opencl-lang.c (opencl_language_data): Likewise.
7905 * p-lang.c (pascal_language_data): Likewise.
7906 * rust-lang.c (rust_language_data): Likewise.
7907 * symtab.c (symbol_matches_domain): Update call.
7908
1fb314aa
AB
79092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7910
7911 * ada-lang.c (ada_language_arch_info): Delete function, move
7912 implementation to...
7913 (ada_language::language_arch_info): ...here, a new member
7914 function.
7915 (ada_language_data): Delete la_language_arch_info.
7916 * c-lang.c (c_language_data): Likewise.
7917 (c_language::language_arch_info): New member function.
7918 (cplus_language_arch_info): Delete function, move
7919 implementation to...
7920 (cplus_language::language_arch_info): ...here, a new member
7921 function.
7922 (cplus_language_data): Delete la_language_arch_info.
7923 (asm_language_data): Likewise.
7924 (asm_language::language_arch_info): New member function.
7925 (minimal_language_data): Delete la_language_arch_info.
7926 (minimal_language::language_arch_info): New member function.
7927 * d-lang.c (d_language_arch_info): Delete function, move
7928 implementation to...
7929 (d_language::language_arch_info): ...here, a new member
7930 function.
7931 (d_language_data): Delete la_language_arch_info.
7932 * f-lang.c (f_language_arch_info): Delete function, move
7933 implementation to...
7934 (f_language::language_arch_info): ...here, a new member
7935 function.
7936 (f_language_data): Delete la_language_arch_info.
7937 * go-lang.c (go_language_arch_info): Delete function, move
7938 implementation to...
7939 (go_language::language_arch_info): ...here, a new member
7940 function.
7941 (go_language_data): Delete la_language_arch_info.
7942 * language.c (unknown_language_data): Likewise.
7943 (unknown_language::language_arch_info): New member function.
7944 (auto_language_data): Delete la_language_arch_info.
7945 (auto_language::language_arch_info): New member function.
7946 (language_gdbarch_post_init): Update call to
7947 la_language_arch_info.
7948 * language.h (language_data): Delete la_language_arch_info
7949 function pointer.
7950 (language_defn::language_arch_info): New function.
7951 * m2-lang.c (m2_language_arch_info): Delete function, move
7952 implementation to...
7953 (m2_language::language_arch_info): ...here, a new member
7954 function.
7955 (m2_language_data): Delete la_language_arch_info.
7956 * objc-lang.c (objc_language_arch_info): Delete function, move
7957 implementation to...
7958 (objc_language::language_arch_info): ...here, a new member
7959 function.
7960 (objc_language_data): Delete la_language_arch_info.
7961 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7962 implementation to...
7963 (opencl_language::language_arch_info): ...here, a new member
7964 function.
7965 (opencl_language_data): Delete la_language_arch_info.
7966 * p-lang.c (pascal_language_arch_info): Delete function, move
7967 implementation to...
7968 (pascal_language::language_arch_info): ...here, a new member
7969 function.
7970 (pascal_language_data): Delete la_language_arch_info.
7971 * rust-lang.c (rust_language_arch_info): Delete function, move
7972 implementation to...
7973 (rust_language::language_arch_info): ...here, a new member
7974 function.
7975 (rust_language_data): Delete la_language_arch_info.
7976
48448202
AB
79772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7978
7979 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7980 initializer.
7981 * c-lang.c (c_language_data): Likewise.
7982 (cplus_language_data): Likewise.
7983 (cplus_language::pass_by_reference_info): New method.
7984 (asm_language_data): Delete la_pass_by_reference initializer.
7985 (minimal_language_data): Likewise.
7986 * cp-abi.c (cp_pass_by_reference): Remove use of
7987 default_pass_by_reference.
7988 * d-lang.c (d_language_data): Likewise.
7989 * f-lang.c (f_language_data): Likewise.
7990 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7991 default_pass_by_reference.
7992 * go-lang.c (go_language_data): Likewise.
7993 * language.c (language_pass_by_reference): Update.
7994 (default_pass_by_reference): Delete.
7995 (unknown_language_data): Delete la_pass_by_reference
7996 initializer.
7997 (auto_language_data): Likewise.
7998 * language.h (struct language_data): Delete la_pass_by_reference
7999 field.
8000 (language_defn::pass_by_reference_info): New member function.
8001 (default_pass_by_reference): Delete declaration.
8002 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8003 initializer.
8004 * objc-lang.c (objc_language_data): Likewise.
8005 * opencl-lang.c (opencl_language_data): Likewise.
8006 * p-lang.c (pascal_language_data): Likewise.
8007 * rust-lang.c (rust_language_data): Likewise.
8008
15e5fd35
AB
80092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8010
8011 * ada-lang.c (ada_read_var_value): Delete function, move
8012 implementation to...
8013 (ada_language::read_var_value): ...here.
8014 (ada_language_data): Delete la_read_var_value initializer.
8015 * c-lang.c (c_language_data): Likewise.
8016 (cplus_language_data): Likewise.
8017 (minimal_language_data): Likewise.
8018 * d-lang.c (d_language_data): Likewise.
8019 * f-lang.c (f_language_data): Likewise.
8020 * findvar.c (default_read_var_value): Rename to...
8021 (language_defn::read_var_value): ...this.
8022 * findvar.c (read_var_value): Update header comment, and change to
8023 call member function instead of function pointer.
8024 * go-lang.c (go_language_data): Likewise.
8025 * language.c (unknown_language_data): Delete la_read_var_value
8026 initializer.
8027 (auto_language_data): Likewise.
8028 * language.h (struct language_data): Delete la_read_var_value
8029 field.
8030 (language_defn::read_var_value): New member function.
8031 (default_read_var_value): Delete declaration.
8032 * m2-lang.c (m2_language_data): Delete la_read_var_value
8033 initializer.
8034 * objc-lang.c (objc_language_data): Likewise.
8035 * opencl-lang.c (opencl_language_data): Likewise.
8036 * p-lang.c (pascal_language_data): Likewise.
8037 * rust-lang.c (rust_language_data): Likewise.
8038 * value.h (default_read_var_value): Delete declaration.
8039
5bd40f2a
AB
80402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8041
8042 * ada-lang.c (ada_print_array_index): Delete function, move
8043 implementation to...
8044 (ada_language::print_array_index): ...here.
8045 (ada_language_data): Delete la_print_array_index initializer.
8046 * c-lang.c (c_language_data): Likewise.
8047 (cplus_language_data): Likewise.
8048 (minimal_language_data): Likewise.
8049 * d-lang.c (d_language_data): Likewise.
8050 * f-lang.c (f_language_data): Likewise.
8051 * go-lang.c (go_language_data): Likewise.
8052 * language.c (default_print_array_index): Delete function, move
8053 implementation to...
8054 (language_defn::print_array_index): ...here.
8055 (unknown_language_data): Delete la_print_array_index initializer.
8056 (auto_language_data): Likewise.
8057 * language.h (struct language_data): Delete la_print_array_index
8058 field.
8059 (language_defn::print_array_index): New member function.
8060 (LA_PRINT_ARRAY_INDEX): Update.
8061 (default_print_array_index): Delete declaration.
8062 * m2-lang.c (m2_language_data): Delete la_print_array_index
8063 initializer.
8064 * objc-lang.c (objc_language_data): Likewise.
8065 * opencl-lang.c (opencl_language_data): Likewise.
8066 * p-lang.c (pascal_language_data): Likewise.
8067 * rust-lang.c (rust_language_data): Likewise.
8068
0874fd07
AB
80692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8070
8071 * gdb/ada-lang.c (ada_language_defn): Convert to...
8072 (ada_language_data): ...this.
8073 (class ada_language): New class.
8074 (ada_language_defn): New static global.
8075 * gdb/c-lang.c (c_language_defn): Convert to...
8076 (c_language_data): ...this.
8077 (class c_language): New class.
8078 (c_language_defn): New static global.
8079 (cplus_language_defn): Convert to...
8080 (cplus_language_data): ...this.
8081 (class cplus_language): New class.
8082 (cplus_language_defn): New static global.
8083 (asm_language_defn): Convert to...
8084 (asm_language_data): ...this.
8085 (class asm_language): New class.
8086 (asm_language_defn): New static global.
8087 (minimal_language_defn): Convert to...
8088 (minimal_language_data): ...this.
8089 (class minimal_language): New class.
8090 (minimal_language_defn): New static global.
8091 * gdb/d-lang.c (d_language_defn): Convert to...
8092 (d_language_data): ...this.
8093 (class d_language): New class.
8094 (d_language_defn): New static global.
8095 * gdb/f-lang.c (f_language_defn): Convert to...
8096 (f_language_data): ...this.
8097 (class f_language): New class.
8098 (f_language_defn): New static global.
8099 * gdb/go-lang.c (go_language_defn): Convert to...
8100 (go_language_data): ...this.
8101 (class go_language): New class.
8102 (go_language_defn): New static global.
8103 * gdb/language.c (unknown_language_defn): Remove declaration.
8104 (current_language): Initialize to nullptr, real initialization is
8105 moved to _initialize_language.
8106 (languages): Delete global.
8107 (language_defn::languages): Define.
8108 (set_language_command): Use language_defn::languages.
8109 (set_language): Likewise.
8110 (range_error): Likewise.
8111 (language_enum): Likewise.
8112 (language_def): Likewise.
8113 (add_set_language_command): Use language_def::languages for the
8114 language list, and language_def to lookup language pointers.
8115 (skip_language_trampoline): Use language_defn::languages.
8116 (unknown_language_defn): Convert to...
8117 (unknown_language_data): ...this.
8118 (class unknown_language): New class.
8119 (unknown_language_defn): New static global.
8120 (auto_language_defn): Convert to...
8121 (auto_language_data): ...this.
8122 (class auto_language): New class.
8123 (auto_language_defn): New static global.
8124 (language_gdbarch_post_init): Use language_defn::languages.
8125 (_initialize_language): Initialize current_language.
8126 * gdb/language.h (struct language_defn): Rename to...
8127 (struct language_data): ...this.
8128 (struct language_defn): New.
8129 (auto_language_defn): Delete.
8130 (unknown_language_defn): Delete.
8131 (minimal_language_defn): Delete.
8132 (ada_language_defn): Delete.
8133 (asm_language_defn): Delete.
8134 (c_language_defn): Delete.
8135 (cplus_language_defn): Delete.
8136 (d_language_defn): Delete.
8137 (f_language_defn): Delete.
8138 (go_language_defn): Delete.
8139 (m2_language_defn): Delete.
8140 (objc_language_defn): Delete.
8141 (opencl_language_defn): Delete.
8142 (pascal_language_defn): Delete.
8143 (rust_language_defn): Delete.
8144 * gdb/m2-lang.c (m2_language_defn): Convert to...
8145 (m2_language_data): ...this.
8146 (class m2_language): New class.
8147 (m2_language_defn): New static global.
8148 * gdb/objc-lang.c (objc_language_defn): Convert to...
8149 (objc_language_data): ...this.
8150 (class objc_language): New class.
8151 (objc_language_defn): New static global.
8152 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8153 (opencl_language_data): ...this.
8154 (class opencl_language): New class.
8155 (opencl_language_defn): New static global.
8156 * gdb/p-lang.c (pascal_language_defn): Convert to...
8157 (pascal_language_data): ...this.
8158 (class pascal_language): New class.
8159 (pascal_language_defn): New static global.
8160 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8161 language pointer, update comment format.
8162 * gdb/rust-lang.c (rust_language_defn): Convert to...
8163 (rust_language_data): ...this.
8164 (class rust_language): New class.
8165 (rust_language_defn): New static global.
8166
1313c56e
AB
81672020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8168
8169 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8170 member variable.
8171 <m_stmt_at_address>: New member variable.
8172 (lnp_state_machine::record_line): Don't record some lines, update
8173 tracking of is_stmt at the same address.
8174 (lnp_state_machine::lnp_state_machine): Initialise new member
8175 variables.
8176
b7ed9f3d
ST
81772020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8178
8179 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8180 "-include gnu-nat-mig.h".
8181 * gnu-nat-mig.h: New file.
8182 * gnu-nat.c: Include "gnu-nat-mig.h".
8183 (exc_server, msg_reply_server, notify_server,
8184 process_reply_server): Remove declarations.
8185
14a8ad62
ST
81862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8187
8188 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8189 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8190 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8191 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8192 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8193 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8194 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8195 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8196 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8197 to gnu_nat_target class.
8198 * gnu-nat.c: Likewise.
8199 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8200 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8201 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8202 object.
8203 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8204 instead of `gnu_target'.
8205
0af5e106
ST
82062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8207
8208 * i386-gnu-tdep.c: Include "gdbcore.h"
8209 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8210 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8211 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8212 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8213 i386_gnu_sigcontext_addr): New functions
8214 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8215 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8216 tdep.
8217
078f2fc9
ST
82182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8219
8220 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8221 before fork_inferior call. Avoid calling it if target_is_pushed returns
8222 true.
8223
53dff92c
ST
82242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8225
8226 * gnu-nat.h (gnu_target): New variable declaration.
8227 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8228 gnu_target.
8229 * gnu-nat.c (gnu_target): New variable.
8230 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8231 add_thread_silent, and add_thread calls.
8232 (gnu_nat_target::create_inferior): Pass gnu_target to
8233 add_thread_silent, thread_change_ptid call.
8234 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8235 call.
8236
5a8b8627
ST
82372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8238
8239 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8240 (gnu_nat_target::find_memory_regions): Remove unused
8241 `old_address' variable.
8242
366f550a
ST
82432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8244
8245 * gnu-nat.c: Include "gdbarch.h".
8246
f14871bf
ST
82472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8248
8249 * reply_mig_hack.awk (Error return): Cast function through
8250 void *, to bypass compiler function call check.
8251
c6887cfb
ST
82522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8253
8254 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8255 $(srcdir)/reply_mig_hack.awk.
8256
6930bffe
ST
82572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8258
8259 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8260
112c22ed
JG
82612020-05-30 Jonny Grant <jg@jguk.org>
8262
8263 * configure.ac (ACX_BUGURL): change bug URL to https.
8264
f68f85b5
PA
82652020-05-30 Pedro Alves <palves@redhat.com>
8266
8267 * cp-support.c (replace_typedefs_template): New.
8268 (replace_typedefs_qualified_name): Handle
8269 DEMANGLE_COMPONENT_TEMPLATE.
8270
976ca316
SM
82712020-05-29 Simon Marchi <simon.marchi@efficios.com>
8272
8273 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8274 dwarf2/index-cache.h, dwarf2/index-write.c,
8275 dwarf2/index-write.h, dwarf2/line-header.c,
8276 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8277 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8278 variables and fields from `dwarf2_per_objfile` to just
8279 `per_objfile` throughout.
8280
989ade05
SM
82812020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8282
8283 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8284 <push_dwarf_reg_entry_value>: Add comment.
8285
c47bae85
KB
82862020-05-28 Kevin Buettner <kevinb@redhat.com>
8287 Keith Seitz <keiths@redhat.com>
8288
8289 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8290 instead of PyEval_ReleaseLock.
8291 (class gdbpy_gil): Move to earlier in file.
8292 (finalize_python): Set gdb_python_initialized.
8293 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8294 when not initialized.
8295
44486dcf
SM
82962020-05-28 Simon Marchi <simon.marchi@efficios.com>
8297
8298 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8299 <push_dwarf_reg_entry_value>: Remove assert. Override
8300 per_objfile with caller_per_objfile.
8301
f030440d
TV
83022020-05-28 Tom de Vries <tdevries@suse.de>
8303
8304 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8305 PR gold/15646 workaround to symbol kind "type".
8306
f0fbb768
TT
83072020-05-27 Tom Tromey <tromey@adacore.com>
8308
8309 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8310
af0b2a3e
TT
83112020-05-27 Tom Tromey <tromey@adacore.com>
8312
8313 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8314 Use htab_find_with_hash.
8315 <add_abbrev>: Remove "abbrev_number" parameter.
8316 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8317 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8318 (hash_abbrev): Add comment.
8319 (abbrev_table::lookup_abbrev): Move to header file.
8320 (abbrev_table::read): Update.
8321
7d00ffec
TT
83222020-05-27 Tom Tromey <tromey@adacore.com>
8323
8324 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8325 method.
8326 <canonical_name>: New member.
8327 <raw_name>: Rename from "name".
8328 (partial_die_info): Initialize canonical_name.
8329 (scan_partial_symbols): Check raw_name.
8330 (partial_die_parent_scope, partial_die_full_name)
8331 (add_partial_symbol, add_partial_subprogram)
8332 (add_partial_enumeration, load_partial_dies): Use "name" method.
8333 (partial_die_info::name): New method.
8334 (partial_die_info::read, guess_partial_die_structure_name)
8335 (partial_die_info::fixup): Update.
8336
697bba18
TT
83372020-05-27 Tom Tromey <tromey@adacore.com>
8338
8339 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8340 <get_ref_die_offset>: Inline.
8341 <get_ref_die_offset_complaint>: New method.
8342 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8343 (attribute::get_ref_die_offset_complaint): Rename from
8344 get_ref_die_offset. Just issue complaint.
8345
c17ace43
HD
83462020-05-27 Hannes Domani <ssbssa@yahoo.de>
8347
8348 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8349
96445f0b
HD
83502020-05-27 Hannes Domani <ssbssa@yahoo.de>
8351
8352 * exec.c (exec_file_attach): Use errno value of first openp failure.
8353
ac637ec3
HD
83542020-05-27 Hannes Domani <ssbssa@yahoo.de>
8355
8356 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8357 Don't close thread handle.
8358
17ee85fc
TT
83592020-05-27 Tom Tromey <tom@tromey.com>
8360 Simon Marchi <simon.marchi@efficios.com>
8361
8362 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8363 shared_ptr.
8364 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8365 member.
8366 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8367 dwarf2_per_bfd_objfile_data_key>: New globals.
8368 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8369 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8370 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8371 shared.
8372 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8373 short-circuit when sharing.
8374 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8375 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8376
39b16f87
SM
83772020-05-27 Simon Marchi <simon.marchi@efficios.com>
8378
8379 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8380 to...
8381 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8382 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8383
fcf23d5b
SM
83842020-05-27 Simon Marchi <simon.marchi@efficios.com>
8385
8386 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8387 build_name_components, find_name_components_bounds>:
8388 Add per_objfile parameter.
8389 (struct mapped_index) <symbol_name_at>: Likewise.
8390 (struct mapped_debug_names): Remove constructor.
8391 <dwarf2_per_objfile>: Remove field.
8392 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8393 (mapped_index_base::find_name_components_bounds,
8394 mapped_index_base::build_name_components,
8395 dw2_expand_symtabs_matching_symbol): Likewise.
8396 (class mock_mapped_index) <symbol_name_at>: Likewise.
8397 (check_match): Likewise.
8398 (check_find_bounds_finds): Likewise.
8399 (test_mapped_index_find_name_component_bounds): Update.
8400 (CHECK_MATCH): Update.
8401 (dw2_expand_symtabs_matching): Update.
8402 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8403 per_objfile parameter.
8404 <find_vec_in_debug_names>: Likewise.
8405 <m_per_objfile>: New field.
8406 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8407 parameter.
8408 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8409 (dw2_debug_names_iterator::next): Update.
8410 (dw2_debug_names_lookup_symbol): Update.
8411 (dw2_debug_names_expand_symtabs_for_function): Update.
8412 (dw2_debug_names_map_matching_symbols): Update.
8413 (dw2_debug_names_expand_symtabs_matching): Update.
8414 (dwarf2_read_debug_names): Update.
8415
7188ed02
SM
84162020-05-27 Simon Marchi <simon.marchi@efficios.com>
8417
8418 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8419 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8420 move to dwarf2_per_objfile.
8421 <read_in_chain>: Remove.
8422 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8423 remove_all_cus, age_comp_units>: New methods.
8424 <m_dwarf2_cus>: New member.
8425 (struct dwarf2_per_cu_data) <cu>: Remove.
8426 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8427 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8428 moved to methods of dwarf2_per_objfile.
8429 (dwarf2_clear_marks): Remove.
8430 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8431 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8432 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8433 (dwarf2_per_objfile::remove_all_cus): New.
8434 (class free_cached_comp_units) <~free_cached_comp_units>:
8435 Update.
8436 (load_cu): Update.
8437 (dw2_do_instantiate_symtab): Adjust.
8438 (fill_in_sig_entry_from_dwo_entry): Adjust.
8439 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8440 (cutu_reader::cutu_reader): Likewise.
8441 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8442 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8443 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8444 and dwarf2_per_objfile::age_comp_units.
8445 (load_partial_comp_unit): Update.
8446 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8447 (process_queue): Likewise.
8448 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8449 backlink.
8450 (dwarf2_read_addr_index): Likewise.
8451 (follow_die_offset): Likewise.
8452 (dwarf2_fetch_die_loc_sect_off): Likewise.
8453 (dwarf2_fetch_constant_bytes): Likewise.
8454 (dwarf2_fetch_die_type_sect_off): Likewise.
8455 (follow_die_sig_1): Likewise.
8456 (load_full_type_unit): Likewise.
8457 (read_signatured_type): Likewise.
8458 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8459 (dwarf2_cu::~dwarf2_cu): Remove.
8460 (dwarf2_per_objfile::get_cu): New.
8461 (dwarf2_per_objfile::set_cu): New.
8462 (age_cached_comp_units): Rename to...
8463 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8464 to std::unordered_map.
8465 (free_one_cached_comp_unit): Rename to...
8466 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8467 to std::unordered_map.
8468 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8469 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8470 a dwarf2_per_objfile in data.
8471 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8472 (dwarf2_clear_marks): Remove.
8473
2e671100
SM
84742020-05-27 Simon Marchi <simon.marchi@efficios.com>
8475
8476 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8477 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8478 (init_tu_and_read_dwo_dies): Likewise.
8479 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8480 (cutu_reader::cutu_reader): Likewise.
8481 (load_partial_comp_unit): Likewise.
8482 (process_psymtab_comp_unit): Update.
8483 (build_type_psymtabs_1): Update.
8484 (process_skeletonless_type_unit): Update.
8485 (load_full_comp_unit): Update.
8486 (find_partial_die): Update.
8487 (dwarf2_read_addr_index): Update.
8488 (read_signatured_type): Update.
8489
2e6a9f79
SM
84902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8491
8492 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8493 m_header_read_in>: New fields.
8494 <get_header>: New method.
8495 * dwarf2/read.c (per_cu_header_read_in): Remove.
8496 (dwarf2_per_cu_data::get_header): New.
8497 (dwarf2_per_cu_data::addr_size): Update.
8498 (dwarf2_per_cu_data::offset_size): Update.
8499 (dwarf2_per_cu_data::ref_addr_size): Update.
8500
1b555f17
SM
85012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8502
8503 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8504 (dw2_do_instantiate_symtab): Update.
8505 (queue_and_load_all_dwo_tus): Change parameter from
8506 dwarf2_per_cu_data to dwarf2_cu.
8507 (dwarf2_fetch_die_loc_sect_off): Update.
8508 (dwarf2_fetch_constant_bytes): Update.
8509 (dwarf2_fetch_die_type_sect_off): Update.
8510
8fc0b21d
SM
85112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8512
8513 * dwarf2/read.c (process_full_comp_unit,
8514 process_full_type_unit): Remove per_cu, per_objfile paramters.
8515 Add dwarf2_cu parameter.
8516 (process_queue): Update.
8517
168c9250
SM
85182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8519
8520 * dwarf2/read.c (create_cu_from_index_list): Replace
8521 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8522 (create_cus_from_index_list): Likewise.
8523 (create_cus_from_index): Likewise.
8524 (create_signatured_type_table_from_index): Likewise.
8525 (create_cus_from_debug_names_list): Likewise.
8526 (create_cus_from_debug_names): Likewise.
8527 (dwarf2_read_gdb_index): Update.
8528 (dwarf2_read_debug_names): Update.
8529
e286671b
TT
85302020-05-27 Tom Tromey <tom@tromey.com>
8531 Simon Marchi <simon.marchi@efficios.com>
8532
8533 * dwarf2/read.h (struct dwarf2_per_objfile)
8534 <get_type_for_signatured_type, set_type_for_signatured_type>:
8535 New methods.
8536 <m_type_map>: New member.
8537 (struct signatured_type) <type>: Remove.
8538 * dwarf2/read.c
8539 (dwarf2_per_objfile::get_type_for_signatured_type,
8540 dwarf2_per_objfile::set_type_for_signatured_type): New.
8541 (get_signatured_type): Use new methods.
8542
8adb8487
TT
85432020-05-27 Tom Tromey <tom@tromey.com>
8544 Simon Marchi <simon.marchi@efficios.com>
8545
8546 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8547 (struct dwarf2_per_objfile) <type_units>: New member.
8548 <get_type_unit_group_unshareable>: New method.
8549 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8550 num_symtabs, symtabs>: Remove; move to
8551 type_unit_group_unshareable.
8552 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8553 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8554 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8555
127bbf4b
SM
85562020-05-27 Simon Marchi <simon.marchi@efficios.com>
8557
8558 * dwarf2/read.h (struct dwarf2_per_cu_data):
8559 <dwarf2_per_objfile>: Remove.
8560 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8561 dwarf2_per_objfile.
8562 (create_signatured_type_table_from_index): Likewise.
8563 (create_signatured_type_table_from_debug_names): Likewise.
8564 (create_debug_type_hash_table): Likewise.
8565 (fill_in_sig_entry_from_dwo_entry): Likewise.
8566 (create_type_unit_group): Likewise.
8567 (read_comp_units_from_section): Likewise.
8568 (create_cus_hash_table): Likewise.
8569
f6e649dd
SM
85702020-05-27 Simon Marchi <simon.marchi@efficios.com>
8571
8572 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8573 dwarf2_per_cu_data::dwarf2_per_objfile.
8574 (compute_compunit_symtab_includes): Likewise.
8575 (dwarf2_cu::start_symtab): Likewise.
8576
aa66c379
SM
85772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8578
8579 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8580 parameter.
8581 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8582 (read_namespace_alias): Update.
8583 (lookup_die_type): Update.
8584 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8585 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8586 Update.
8587 (disassemble_dwarf_expression): Update.
8588
120ce1b5
SM
85892020-05-27 Simon Marchi <simon.marchi@efficios.com>
8590
8591 * dwarf2/read.h (struct dwarf2_queue_item): Add
8592 dwarf2_per_objfile parameter, assign new parameter.
8593 <per_objfile>: New field.
8594 * dwarf2/read.c (free_one_cached_comp_unit): Add
8595 dwarf2_per_objfile parameter.
8596 (queue_comp_unit): Likewise.
8597 (dw2_do_instantiate_symtab): Update.
8598 (process_psymtab_comp_unit): Update.
8599 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8600 (process_imported_unit_die): Update.
8601 (queue_and_load_dwo_tu): Update.
8602 (follow_die_offset): Update.
8603 (follow_die_sig_1): Update.
8604
9f47c707
SM
86052020-05-27 Simon Marchi <simon.marchi@efficios.com>
8606
8607 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8608 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8609 (read_call_site_scope): Assign per_objfile.
8610 (dwarf2_per_cu_data::objfile): Remove.
8611 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8612 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8613 dwarf2_per_objfile parameter.
8614 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8615 dwarf2_per_objfile parameter.
8616 (dwarf_expr_reg_to_entry_parameter): Add output
8617 dwarf2_per_objfile parameter.
8618 (locexpr_get_frame_base): Update.
8619 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8620 <push_dwarf_reg_entry_value>: Update.
8621 <call_site_to_target_addr>: Update.
8622 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8623 parameter.
8624 (value_of_dwarf_reg_entry): Update.
8625 (rw_pieced_value): Update.
8626 (indirect_synthetic_pointer): Update.
8627 (dwarf2_evaluate_property): Update.
8628 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8629 parameter.
8630 (locexpr_read_variable): Update.
8631 (locexpr_get_symbol_read_needs): Update.
8632 (loclist_read_variable): Update.
8633
14095eb3
SM
86342020-05-27 Simon Marchi <simon.marchi@efficios.com>
8635
8636 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8637 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8638 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8639 parameter.
8640 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8641 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8642 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8643 parameter.
8644 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8645 sect_variable_value): Add dwarf2_per_objfile parameter.
8646 (class dwarf_evaluate_loc_desc) <dwarf_call,
8647 dwarf_variable_value>: Update.
8648 (fetch_const_value_from_synthetic_pointer): Add
8649 dwarf2_per_objfile parameter.
8650 (fetch_const_value_from_synthetic_pointer): Update.
8651 (coerced_pieced_ref): Update.
8652 (class symbol_needs_eval_context) <dwarf_call,
8653 dwarf_variable_value>: Update.
8654 (dwarf2_compile_expr_to_ax): Update.
8655
3c3cd3d4
SM
86562020-05-27 Simon Marchi <simon.marchi@efficios.com>
8657
8658 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8659 parameter.
8660 (dwarf2_evaluate_loc_desc_full): Update.
8661
82ca3f51
SM
86622020-05-27 Simon Marchi <simon.marchi@efficios.com>
8663
8664 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8665 parameter.
8666 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8667 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8668 dwarf2_per_objfile parameter.
8669 (decode_debug_loc_dwo_addresses): Likewise.
8670 (dwarf2_find_location_expression): Update.
8671 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8672 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8673 parameter.
8674 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8675 parameter.
8676 (locexpr_describe_location_1): Likewise.
8677 (locexpr_describe_location): Update.
8678
4b167ea1
SM
86792020-05-27 Simon Marchi <simon.marchi@efficios.com>
8680
8681 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8682 Remove.
8683 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8684 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8685 (dwarf2_compile_property_to_c): Update.
8686 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8687 use text offset from objfile.
8688 (locexpr_tracepoint_var_ref): Update.
8689 (locexpr_generate_c_location): Update.
8690 (loclist_describe_location): Update.
8691 (loclist_tracepoint_var_ref): Update.
8692 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8693 dwarf2_per_objfile parameter.
8694 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8695 use text offset from objfile.
8696 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8697
89b07335
SM
86982020-05-27 Simon Marchi <simon.marchi@efficios.com>
8699
8700 * dwarf2/expr.h (struct dwarf_expr_context)
8701 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8702 <offset>: Remove.
8703 <per_objfile>: New member.
8704 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8705 dwarf2_per_objfile parameter. Don't set offset, set
8706 per_objfile.
8707 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8708 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8709 a dwarf2_per_objfile object instead of an offset.
8710 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8711 constructor.
8712 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8713 to dwarf2_expr_executor constructor. Don't set offset.
8714 (dwarf2_fetch_cfa_info): Update.
8715 (struct dwarf2_frame_cache) <text_offset>: Remove.
8716 <per_objfile>: New field.
8717 (dwarf2_frame_cache): Update.
8718 (dwarf2_frame_prev_register): Update.
8719 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8720 <dwarf_evaluate_loc_desc>: Add constructor.
8721 (dwarf2_evaluate_loc_desc_full): Update.
8722 (dwarf2_locexpr_baton_eval): Update.
8723 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8724 Add constructor.
8725 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8726
293e7e51
SM
87272020-05-27 Simon Marchi <simon.marchi@efficios.com>
8728
8729 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8730 addr_sized_int_type>: Move to dwarf2_cu.
8731 <int_type>: Move to dwarf2_per_objfile.
8732 (struct dwarf2_per_objfile) <int_type>: Move here.
8733 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8734 addr_sized_int_type>: Move here.
8735 (read_func_scope): Update.
8736 (read_array_type): Update.
8737 (read_tag_string_type): Update.
8738 (attr_to_dynamic_prop): Update.
8739 (dwarf2_per_cu_data::int_type): Rename to...
8740 (dwarf2_per_objfile::int_type): ... this.
8741 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8742 (dwarf2_cu::addr_sized_int_type): ... this.
8743 (read_subrange_type): Update.
8744 (dwarf2_per_cu_data::addr_type): Rename to...
8745 (dwarf2_cu::addr_type): ... this.
8746 (set_die_type): Update.
8747
64874a40
SM
87482020-05-27 Simon Marchi <simon.marchi@efficios.com>
8749
8750 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8751 data through per_cu->cu.
8752
4ab09049
SM
87532020-05-27 Simon Marchi <simon.marchi@efficios.com>
8754
8755 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8756 dwarf2_per_cu_data parameter fo dwarf2_cu.
8757 (lookup_dwo_type_unit): Likewise.
8758 (read_cutu_die_from_dwo): Likewise.
8759 (lookup_dwo_unit): Likewise.
8760 (open_and_init_dwo_file): Likewise.
8761 (lookup_dwo_cutu): Likewise.
8762 (lookup_dwo_comp_unit): Likewise.
8763 (lookup_dwo_type_unit): Likewise.
8764 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8765 (cutu_reader::cutu_reader): Update.
8766
47b14e86
SM
87672020-05-27 Simon Marchi <simon.marchi@efficios.com>
8768
8769 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8770 parameter.
8771 (process_full_type_unit): Likewise.
8772 (process_queue): Update.
8773
43182c09
SM
87742020-05-27 Simon Marchi <simon.marchi@efficios.com>
8775
8776 * dwarf2/read.c (recursively_compute_inclusions): Add
8777 dwarf2_per_objfile parameter.
8778 (compute_compunit_symtab_includes): Likewise.
8779 (process_cu_includes): Update.
8780
7aa104c4
SM
87812020-05-27 Simon Marchi <simon.marchi@efficios.com>
8782
8783 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8784 parameter.
8785 (create_type_unit_group): Update.
8786 (process_psymtab_comp_unit_reader): Update.
8787 (build_type_psymtabs_reader): Update.
8788
e3beb21d
SM
87892020-05-27 Simon Marchi <simon.marchi@efficios.com>
8790
8791 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8792 object through m_this_cu->cu.
8793
d460f660
SM
87942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8795
8796 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8797 the info parameter.
8798 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8799
ab432490
SM
88002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8801
8802 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8803 per_objfile parameter.
8804 (load_full_type_unit): Add per_objfile parameter.
8805 (read_signatured_type): Likewise.
8806 (load_full_comp_unit): Likewise.
8807 (load_cu): Likewise.
8808 (dw2_do_instantiate_symtab): Likewise.
8809 (dw2_get_file_names): Likewise.
8810 (dw2_map_symtabs_matching_filename): Update.
8811 (dw_expand_symtabs_matching_file_matcher): Update.
8812 (dw2_map_symbol_filenames): Update.
8813 (process_psymtab_comp_unit): Add per_objfile parameter.
8814 (build_type_psymtabs_1): Update.
8815 (process_skeletonless_type_unit): Update.
8816 (dwarf2_build_psymtabs_hard): Update.
8817 (load_partial_comp_unit): Add per_objfile parameter.
8818 (scan_partial_symbols): Update.
8819 (load_full_comp_unit): Add per_objfile parameter.
8820 (process_imported_unit_die): Update.
8821 (create_cus_hash_table): Update.
8822 (find_partial_die): Update.
8823 (dwarf2_read_addr_index): Update.
8824 (follow_die_offset): Update.
8825 (dwarf2_fetch_die_loc_sect_off): Update.
8826 (dwarf2_fetch_constant_bytes): Update.
8827 (dwarf2_fetch_die_type_sect_off): Update.
8828 (follow_die_sig_1): Update.
8829 (load_full_type_unit): Add per_objfile parameter.
8830 (read_signatured_type): Likewise.
8831
313bad1b
SM
88322020-05-27 Simon Marchi <simon.marchi@efficios.com>
8833
8834 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8835 of objfile_name.
8836
c3699833
SM
88372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8838
8839 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8840 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8841 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8842 field.
8843 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8844 (create_cus_from_index): Update.
8845 (dwarf2_read_gdb_index): Update.
8846 (create_cus_from_debug_names): Update.
8847 (dwarf2_read_debug_names): Update.
8848 (get_abbrev_section_for_cu): Update.
8849 (create_all_comp_units): Update.
8850 (read_attribute_value): Update.
8851 (get_debug_line_section): Update.
8852 * dwarf2/index-cache.c (index_cache::store): Update.
8853 * dwarf2/index-write.c (save_gdb_index_command): Update.
8854 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8855
1859c670
SM
88562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8857
8858 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8859 member.
8860 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8861 dwarf2_per_cu_data::per_bfd.
8862 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8863 (create_type_unit_group): Likewise.
8864 (queue_comp_unit): Remove reference to
8865 per_cu->dwarf2_per_objfile.
8866 (maybe_queue_comp_unit): Likewise.
8867 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8868 (create_cus_hash_table): Assign new field.
8869
5e22e966
SM
88702020-05-27 Simon Marchi <simon.marchi@efficios.com>
8871
8872 * dwarf2/read.c: Replace
8873 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8874 dwarf2_cu->per_objfile throughout.
8875
97a1449a
SM
88762020-05-27 Simon Marchi <simon.marchi@efficios.com>
8877
8878 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8879 parameter, don't use per_cu->dwarf2_per_objfile.
8880 (dw2_instantiate_symtab): Likewise.
8881 (dw2_find_last_source_symtab): Update.
8882 (dw2_map_expand_apply): Update.
8883 (dw2_lookup_symbol): Update.
8884 (dw2_expand_symtabs_for_function): Update.
8885 (dw2_expand_all_symtabs): Update.
8886 (dw2_expand_symtabs_with_fullname): Update.
8887 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8888 don't use per_cu->dwarf2_per_objfile.
8889 (dw2_expand_marked_cus): Update.
8890 (dw2_find_pc_sect_compunit_symtab): Update.
8891 (dw2_debug_names_lookup_symbol): Update.
8892 (dw2_debug_names_expand_symtabs_for_function): Update.
8893 (dw2_debug_names_map_matching_symbols): Update.
8894 (dwarf2_psymtab::expand_psymtab): Update.
8895
9e021579
SM
88962020-05-27 Simon Marchi <simon.marchi@efficios.com>
8897
8898 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8899 <per_objfile>: New member.
8900 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8901 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8902 call to dwarf2_cu.
8903 (cutu_reader::cutu_reader): Update.
8904 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8905
ae090bdb
SM
89062020-05-27 Simon Marchi <simon.marchi@efficios.com>
8907
8908 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8909 struct dwarf2_per_objfile.
8910 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8911 dwarf2_per_bfd.
8912 * dwarf2/read.c (set_die_type): Update.
8913 (get_die_type_at_offset): Update.
8914
af758d11
SM
89152020-05-27 Tom Tromey <tom@tromey.com>
8916 Simon Marchi <simon.marchi@efficios.com>
8917
8918 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8919 method.
8920 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8921 get_symtab, set_symtab>: New methods.
8922 <m_symtabs>: New field.
8923 (struct dwarf2_psymtab): Derive from partial_symtab.
8924 <readin_p, get_compunit_symtab>: Declare methods.
8925 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8926 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8927 New methods.
8928 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8929 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8930 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8931 (dw2_symtab_iter_next, dw2_print_stats)
8932 (dw2_expand_symtabs_with_fullname)
8933 (dw2_expand_symtabs_matching_one)
8934 (dw_expand_symtabs_matching_file_matcher)
8935 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8936 (dw2_debug_names_iterator::next)
8937 (dw2_debug_names_map_matching_symbols)
8938 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8939 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8940 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8941 New methods.
8942 (get_compunit_symtab, process_full_comp_unit)
8943 (process_full_type_unit): Update.
8944 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8945
5989a64e
SM
89462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8947
8948 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8949 then introduce a new dwarf2_per_objfile type.
8950 <read_line_string>: Move to the new dwarf2_per_objfile type.
8951 <objfile>: Likewise.
8952 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8953 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8954 dwarf2_per_objfile->per_bfd.
8955 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8956 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8957 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8958 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8959 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8960 (dwarf2_per_objfile::locate_sections): Rename to...
8961 (dwarf2_per_bfd::locate_sections): ... this.
8962 (dwarf2_per_objfile::get_cutu): Rename to...
8963 (dwarf2_per_bfd::get_cutu): ... this.
8964 (dwarf2_per_objfile::get_cu): Rename to...
8965 (dwarf2_per_bfd::get_cu): ... this.
8966 (dwarf2_per_objfile::get_tu): Rename to...
8967 (dwarf2_per_bfd::get_tu): ... this.
8968 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8969 (dwarf2_per_bfd::allocate_per_cu): ... this.
8970 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8971 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8972 (get_gdb_index_contents_ftype): Change parameter from
8973 dwarf2_per_objfile to dwarf2_per_bfd.
8974 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8975 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8976
a50264ba
TT
89772020-05-27 Tom Tromey <tom@tromey.com>
8978 Simon Marchi <simon.marchi@efficios.com>
8979
8980 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8981 (allocate_piece_closure): Set "per_objfile" member.
8982 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8983 (locexpr_describe_location, loclist_describe_location): Use new
8984 member.
8985 * dwarf2/read.c (read_call_site_scope)
8986 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8987 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8988 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8989 handle_data_member_location): Set per_objfile member.
8990 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8991 member.
8992 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8993
d3473f0c
TT
89942020-05-27 Tom Tromey <tom@tromey.com>
8995
8996 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8997 allocate_signatured_type>: Declare new methods.
8998 <m_num_psymtabs>: New member.
8999 (struct dwarf2_per_cu_data) <index>: New member.
9000 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9001 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9002 (create_cu_from_index_list): Use allocate_per_cu.
9003 (create_signatured_type_table_from_index)
9004 (create_signatured_type_table_from_debug_names)
9005 (create_debug_type_hash_table, add_type_unit)
9006 (read_comp_units_from_section): Use allocate_signatured_type.
9007
5717c425
TT
90082020-05-27 Tom Tromey <tom@tromey.com>
9009
9010 * psymtab.c (partial_map_expand_apply)
9011 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9012 (psym_lookup_global_symbol_language)
9013 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9014 (psym_print_stats, psym_expand_symtabs_for_function)
9015 (psym_map_symbol_filenames, psym_map_matching_symbols)
9016 (psym_expand_symtabs_matching)
9017 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9018 (maintenance_check_psymtabs): Update.
9019 * psympriv.h (struct partial_symtab) <readin_p,
9020 get_compunit_symtab>: Add objfile parameter.
9021 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9022 Likewise.
9023 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9024 get_compunit_symtab>: Likewise.
9025 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9026
45940949
TT
90272020-05-27 Tom Tromey <tom@tromey.com>
9028
9029 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9030 member.
9031 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9032 (create_cu_from_index_list)
9033 (create_signatured_type_table_from_index)
9034 (create_signatured_type_table_from_debug_names)
9035 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9036 (dwarf2_create_include_psymtab)
9037 (create_debug_type_hash_table, add_type_unit)
9038 (create_type_unit_group, read_comp_units_from_section)
9039 (dwarf2_compute_name, create_cus_hash_table)
9040 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9041 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9042 obstack.
9043 (dw2_get_real_path): Likewise. Change argument to
9044 dwarf2_per_objfile.
9045
f8c6d152
LM
90462020-05-27 Luis Machado <luis.machado@linaro.org>
9047
9048 PR tdep/26000
9049 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9050 for ldrd (immediate).
9051
e98d2e6d
PW
90522020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9053
9054 * command.h: Add comment giving the name of class_tui.
9055 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9056 create the fake command for the help for class_tui.
9057
53a47a3e
TT
90582020-05-26 Tom Tromey <tromey@adacore.com>
9059
9060 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9061 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9062 (val_atr): New function.
9063 (value_val_atr): Use it.
9064 * ada-valprint.c (print_optional_low_bound): Change low bound
9065 handling for enums.
9066 (val_print_packed_array_elements): Don't call discrete_position.
9067 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9068 discrete_position for enum types.
9069 * language.c (default_print_array_index): Change type.
9070 * language.h (struct language_defn) <la_print_array_index>: Add
9071 index_type parameter, change type of index_value.
9072 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9073 (default_print_array_index): Update.
9074 * valprint.c (maybe_print_array_index): Don't call
9075 value_from_longest. Update.
9076 (value_print_array_elements): Don't call discrete_position.
9077
0bc2354b
TT
90782020-05-26 Tom Tromey <tromey@adacore.com>
9079
9080 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9081 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9082
1218a4bf
CDA
90832020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9084
9085 PR gdb/13519
9086 * avr-tdep.c (avr_integer_to_address): Return data or code
9087 address accordingly to the second 'type' argument of the
9088 function.
9089
92651b1d
MW
90902020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9091
9092 * infcmd.c, inferior.h: (construct_inferior_arguments):
9093 Moved function from here to gdbsupport/common-inferior.{h,cc}
9094
0a4f5f8c
TT
90952020-05-23 Tom Tromey <tom@tromey.com>
9096
9097 Revert commit eca1f90c:
9098 * NEWS: Remove entry for completion styling.
9099 * completer.c (_rl_completion_prefix_display_length): Move
9100 declaration later.
9101 (gdb_fnprint): Revert.
9102 (gdb_display_match_list_1): Likewise.
9103 * cli/cli-style.c (completion_prefix_style)
9104 (completion_difference_style, completion_suffix_style): Remove.
9105 (_initialize_cli_style): Revert.
9106 * cli/cli-style.h (completion_prefix_style)
9107 (completion_difference_style, completion_suffix_style): Don't
9108 declare.
9109
e08bd6c5
PA
91102020-05-24 Pedro Alves <palves@redhat.com>
9111
9112 * symtab.c (completion_list_add_name): Return boolean indication
9113 of whether the symbol matched.
9114 (completion_list_add_symbol): Don't try to remove C++ aliases if
9115 the symbol didn't match in the first place.
9116 * symtab.h (completion_list_add_name): Return bool.
9117
ceacbf6e
SM
91182020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9119
9120 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9121 type::field.
9122
26f16254
JB
91232020-05-23 Joel Brobecker <brobecker@adacore.com>
9124
9125 GDB 9.2 released.
9126
eca1f90c
TT
91272020-05-23 Tom Tromey <tom@tromey.com>
9128
9129 * NEWS: Add entry for completion styling.
9130 * completer.c (_rl_completion_prefix_display_length): Move
9131 declaration earlier.
9132 (gdb_fnprint): Use completion_style.
9133 (gdb_display_match_list_1): Likewise.
9134 * cli/cli-style.c (completion_prefix_style)
9135 (completion_difference_style, completion_suffix_style): New
9136 globals.
9137 (_initialize_cli_style): Register new globals.
9138 * cli/cli-style.h (completion_prefix_style)
9139 (completion_difference_style, completion_suffix_style): Declare.
9140
51e2cfa2
PA
91412020-05-23 Pedro Alves <palves@redhat.com>
9142
9143 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9144 (parse_escape): Use ISDIGIT instead of isdigit.
9145 (puts_debug): Use gdb_isprint instead of isprint.
9146 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9147 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9148 ISSPACE instead of isspace.
9149 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9150 instead of isspace.
9151 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9152 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9153 instead of isxdigit and ISDIGIT instead of isdigit.
9154
80fc5e77
SM
91552020-05-22 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * gdbtypes.h (struct type) <field>: New method.
9158 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9159 or type::field.
9160
3cabb6b0
SM
91612020-05-22 Simon Marchi <simon.marchi@efficios.com>
9162
9163 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9164 (TYPE_FIELDS): Use type::fields. Change all call sites that
9165 modify the propery to use type::set_fields instead.
9166
1f704f76
SM
91672020-05-22 Simon Marchi <simon.marchi@efficios.com>
9168
9169 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9170 type::num_fields instead.
9171
5e33d5f4
SM
91722020-05-22 Simon Marchi <simon.marchi@efficios.com>
9173
9174 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9175 methods.
9176 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9177 that modify the number of fields to use type::set_num_fields
9178 instead.
9179
9392ebb3
TT
91802020-05-22 Tom Tromey <tromey@adacore.com>
9181
9182 * compile/compile-object-load.h (munmap_list_free): Don't
9183 declare.
9184
7c13f4e8
AB
91852020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9186
9187 * annotate.c (annotate_source_line): Update return type, add call
9188 to update current symtab and line.
9189 * annotate.h (annotate_source_line): Update return type, and
9190 extend header comment.
9191 * source.c (info_line_command): Check annotation_level before
9192 calling annotate_source_line.
9193 * stack.c (print_frame_info): If calling annotate_source_line
9194 returns true, then don't print any other source line information.
9195
aa370940
SM
91962020-05-21 Simon Marchi <simon.marchi@efficios.com>
9197
9198 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9199
84d53fa9
SM
92002020-05-21 Simon Marchi <simon.marchi@efficios.com>
9201
9202 * coffread.c (patch_type): Remove NULL check before xfree.
9203 * corefile.c (set_gnutarget): Likewise.
9204 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9205 * exec.c (build_section_table): Likewise.
9206 * remote.c (remote_target::pass_signals): Likewise.
9207 * utils.c (n_spaces): Likewise.
9208 * cli/cli-script.c (document_command): Likewise.
9209 * i386-windows-tdep.c (core_process_module_section): Likewise.
9210 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9211
9d428aae
SM
92122020-05-20 Simon Marchi <simon.marchi@efficios.com>
9213
9214 * symfile.c (reread_symbols): Clear objfile's section_offsets
9215 vector and section indices, re-compute them by calling
9216 sym_offsets.
9217
250106a7
TT
92182020-05-20 Tom Tromey <tromey@adacore.com>
9219
9220 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9221 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9222
9a0bacfb
TV
92232020-05-20 Tom de Vries <tdevries@suse.de>
9224
9225 PR symtab/25833
9226 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9227
7b958a48
AM
92282020-05-20 Alan Modra <amodra@gmail.com>
9229
9230 PR 25993
9231 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9232 bfd_set_filename.
9233 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9234 passed to bfd_set_filename.
9235 * symfile-mem.c (add_vsyscall_page): Likewise for string
9236 passed to symbol_file_add_from_memory.
9237 (symbol_file_add_from_memory): Make name param a const char* and
9238 don't strdup.
9239
c7e97679
AM
92402020-05-20 Alan Modra <amodra@gmail.com>
9241
9242 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9243 rather than accessing bfd->filename directly.
9244 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9245 and use bfd_section_name.
9246 * dwarf2/frame.c (decode_frame_entry): Likewise.
9247 * exec.c (exec_set_section_address): Likewise.
9248 * solib-aix.c (solib_aix_bfd_open): Likewise.
9249 * stap-probe.c (get_stap_base_address): Likewise.
9250 * symfile.c (reread_symbols): Likewise.
9251
563c591b
TT
92522020-05-19 Tom Tromey <tromey@adacore.com>
9253
9254 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9255
f408d82c
SM
92562020-05-19 Simon Marchi <simon.marchi@efficios.com>
9257
9258 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9259
98c59b52
PA
92602020-05-19 Pedro Alves <palves@redhat.com>
9261
9262 * NEWS (set exec-file-mismatch): Adjust entry.
9263 * exec.c: Include "build-id.h".
9264 (validate_exec_file): Try to match build IDs instead of filenames.
9265 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9266 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9267 and pass down 'warn_if_slow'.
9268 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9269 gdb_bfd_open_closure to pass it down.
9270 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9271
4111f652
PA
92722020-05-19 Pedro Alves <palves@redhat.com>
9273
9274 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9275 * target.c (target_fileio_open_1): Rename to target_fileio_open
9276 and make extern. Use bool.
9277 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9278 (target_fileio_read_alloc_1): Adjust.
9279 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9280 (target_fileio_open_warn_if_slow): Delete declaration.
9281
ad80db5b
PA
92822020-05-19 Pedro Alves <palves@redhat.com>
9283
9284 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9285 Adjust all callers.
9286
1d6ce4d3
YS
92872020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9288
9289 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9290 whether disp is negative.
9291
9005fbbb
SM
92922020-05-19 Simon Marchi <simon.marchi@efficios.com>
9293
9294 * symfile.h (struct symfile_segment_data)
9295 <~symfile_segment_data>: Remove.
9296 <segment_info>: Change to std::vector.
9297 * symfile.c (default_symfile_segments): Update.
9298 * elfread.c (elf_symfile_segments): Update.
9299
68b888ff
SM
93002020-05-19 Simon Marchi <simon.marchi@efficios.com>
9301
9302 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9303 <segments>: New.
9304 <segment_bases, segment_sizes>: Remove.
9305 * symfile.c (default_symfile_segments): Update.
9306 * elfread.c (elf_symfile_segments): Update.
9307 * remote.c (remote_target::get_offsets): Update.
9308 * solib-target.c (solib_target_relocate_section_addresses):
9309 Update.
9310
62982abd
SM
93112020-05-19 Simon Marchi <simon.marchi@efficios.com>
9312
9313 * symfile.h (struct symfile_segment_data): Initialize fields.
9314 <~symfile_segment_data>: Add.
9315 (symfile_segment_data_up): New.
9316 (struct sym_fns) <sym_segments>: Return a
9317 symfile_segment_data_up.
9318 (default_symfile_segments): Return a symfile_segment_data_up.
9319 (free_symfile_segment_data): Remove.
9320 (get_symfile_segment_data): Return a symfile_segment_data_up.
9321 * symfile.c (default_symfile_segments): Likewise.
9322 (get_symfile_segment_data): Likewise.
9323 (free_symfile_segment_data): Remove.
9324 (symfile_find_segment_sections): Update.
9325 * elfread.c (elf_symfile_segments): Return a
9326 symfile_segment_data_up.
9327 * remote.c (remote_target::get_offsets): Update.
9328 * solib-target.c (solib_target_relocate_section_addresses):
9329 Update.
9330 * symfile-debug.c (debug_sym_segments): Return a
9331 symfile_segment_data_up.
9332
7f204339
RO
93332020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9334
e52a0f1b
RO
9335 PR build/25981
9336 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9337 Hardcode register numbers.
9338
7f204339
RO
9339 PR build/25981
9340 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9341 procfs_find_LDT_entry): Remove.
9342 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9343 procfs_find_LDT_entry): Remove.
9344 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9345 Remove.
9346
7f32a4d5
PA
93472020-05-17 Pedro Alves <palves@redhat.com>
9348 Andrew Burgess <andrew.burgess@embecosm.com>
9349 Keno Fischer <keno@juliacomputing.com>
9350
9351 PR gdb/25741
9352 * breakpoint.c (build_target_condition_list): Update comments.
9353 (build_target_command_list): Update comments and skip matching
9354 locations.
9355 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9356 a separate function. Simplify "set breakpoint auto-hw off"
9357 handling.
9358 (insert_breakpoints): Update comment.
9359 (tracepoint_locations_match): New parameter. For breakpoints,
9360 compare location types too, if the caller wants to.
9361 (handle_automatic_hardware_breakpoints): New functions.
9362 (bp_location_is_less_than): Also sort by location type and
9363 hardware breakpoint length.
9364 (update_global_location_list): Handle "set breakpoint auto-hw on"
9365 here.
9366 (update_breakpoint_locations): Ask breakpoint_locations_match to
9367 ignore location types.
9368
7d93a1e0
SM
93692020-05-16 Simon Marchi <simon.marchi@efficios.com>
9370
9371 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9372 type::name instead.
9373
d0e39ea2
SM
93742020-05-16 Simon Marchi <simon.marchi@efficios.com>
9375
9376 * gdbtypes.h (struct type) <name, set_name>: New methods.
9377 (TYPE_CODE): Use type::name. Change all call sites used to set
9378 the name to use type::set_name instead.
9379
2dab0c7b
TT
93802020-05-16 Tom Tromey <tom@tromey.com>
9381
9382 * top.c (quit_force): Update.
9383 * infrun.c (handle_no_resumed): Update.
9384 * top.h (all_uis): New function.
9385 (ALL_UIS): Remove.
9386
59f7bd8d
SM
93872020-05-16 Simon Marchi <simon.marchi@efficios.com>
9388
9389 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9390
9bf058f0
PA
93912020-05-16 Pedro Alves <palves@redhat.com>
9392
9393 * ia64-linux-nat.c
9394 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9395 Declare method.
9396 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9397
8f86ae1a
SM
93982020-05-15 Simon Marchi <simon.marchi@efficios.com>
9399
9400 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9401 (sparc64_adi_info): Likewise.
9402
d6bc0792
TT
94032020-05-15 Tom Tromey <tom@tromey.com>
9404
9405 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9406 block_objfile.
9407 (lookup_objfile_from_block): Remove.
9408 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9409 (lookup_global_symbol): Use block_objfile.
9410 * symtab.h (lookup_objfile_from_block): Don't declare.
9411 * printcmd.c (clear_dangling_display_expressions): Use
9412 block_objfile.
9413 * parse.c (operator_check_standard): Use block_objfile.
9414
8c14c3a3
TT
94152020-05-15 Tom Tromey <tom@tromey.com>
9416
9417 * language.c (language_alloc_type_symbol): Set
9418 SYMBOL_SECTION.
9419 * symtab.c (initialize_objfile_symbol): Remove.
9420 (allocate_symbol): Remove.
9421 (allocate_template_symbol): Remove.
9422 * dwarf2/read.c (fixup_go_packaging): Use "new".
9423 (new_symbol): Use "new".
9424 (read_variable): Don't call initialize_objfile_symbol. Use
9425 "new".
9426 (read_func_scope): Use "new".
9427 * xcoffread.c (process_xcoff_symbol): Don't call
9428 initialize_objfile_symbol.
9429 (SYMBOL_DUP): Remove.
9430 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9431 "new".
9432 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9433 (allocate_template_symbol): Don't declare.
9434 (struct symbol): Add copy constructor. Change defaults.
9435 * jit.c (finalize_symtab): Use "new".
9436 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9437 Use "new".
9438 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9439 (common_block_end): Use "new".
9440 * mdebugread.c (parse_symbol): Use "new".
9441 (new_symbol): Likewise.
9442
5b4a1a8d
PW
94432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9444
9445 * NEWS: Mention changes to help and apropos.
9446
57b4f16e
PW
94472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9448
9449 * command.h (enum command_class): Improve comments, document
9450 that class_alias is for user-defined aliases, give the class
9451 name for each class, remove unused class_xdb.
9452 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9453 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9454 by a precise class.
9455 * infcmd.c (_initialize_infcmd): Likewise.
9456 * reverse.c (_initialize_reverse): Likewise.
9457 * stack.c (_initialize_stack): Likewise.
9458 * symfile.c (_initialize_symfile): Likewise.
9459 * tracepoint.c (_initialize_tracepoint): Likewise.
9460
7c05caf7
PW
94612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9462
9463 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9464 when their aliased command is traversed.
9465 (help_cmd): Add fput_command_names_styled call to
9466 output command name and aliases when command has an alias.
9467
3b3aaacb
PW
94682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9469
9470 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9471 * cli/cli-decode.c (help_cmd_list): Declare as static,
9472 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9473 a command together with the command.
9474 (fput_command_name_styled, fput_command_names_styled): New functions.
9475 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9476 fput_command_name_styled.
9477 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9478 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9479
7aa1b46f
PW
94802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9481
9482 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9483 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9484 * command.h (cmd_show_list): Likewise.
9485 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9486 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9487
89bcba74
PW
94882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9489
9490 * unittests/command-def-selftests.c (traverse_command_structure):
9491 Verify all commands of a list have the same prefix command and
9492 that only the top cmdlist commands have a null prefix.
9493
3f4d92eb
PW
94942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9495
9496 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9497 as prefix, not one of its aliases.
9498 (set_cmd_prefix): Remove.
9499 (do_add_cmd): Centralize the setting of the prefix of a command, when
9500 command is defined after its full chain of prefix commands.
9501 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9502 (add_setshow_cmd_full): Likewise.
9503 (update_prefix_field_of_prefixed_commands): New function.
9504 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9505 update_prefix_field_of_prefixed_commands.
9506 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9507 addresses of remote_set_cmdlist and remote_show_cmdlist given
9508 as argument, not the address of an argument.
9509 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9510 * gdb/remote.c (_initialize_remote): Likewise.
9511
0605465f
PW
95122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9513
9514 * cli/cli-cmds.c (alias_command): Check for an existing alias
9515 using lookup_cmd_composition, as valid_command_p is too strict
9516 and forbids aliases that are the prefix of an existing alias
9517 or command.
9518 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9519 command is properly recognised as a valid command.
9520
58e6ac70
PW
95212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9522
9523 * unittests/help-doc-selftests.c: Rename to
9524 unittests/command-def-selftests.c
9525 * unittests/command-def-selftests.c (help_doc_tests): Update some
9526 comments.
9527 (command_structure_tests, traverse_command_structure): New namespace
9528 and function.
9529 (command_structure_invariants_tests): New function.
9530 (_initialize_command_def_selftests) Renamed from
9531 _initialize_help_doc_selftests, register command_structure_invariants
9532 selftest.
9533
a7b9ceb8
PW
95342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9535
9536 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9537 an alias of 'show'.
9538
b2188a06
JB
95392020-05-15 Joel Brobecker <brobecker@adacore.com>
9540
9541 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9542 ada_is_fixed_point_type. Update all callers.
9543 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9544 all callers.
9545 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9546 Update all callers.
9547 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9548 print_fixed_point_type. Update all callers.
9549 * ada-valprint.c (ada_value_print_num): Replace call to
9550 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9551
a51951c2
KB
95522020-05-14 Kevin Buettner <kevinb@redhat.com>
9553
9554 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9555 processors.
9556 (cpu_supports_bts): Add CV_AMD case.
9557
29d6859f
LM
95582020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9559 Simon Marchi <simon.marchi@efficios.com>
9560
9561 * infrun.c (stop_all_threads): Collect multiple wait events at
9562 each pass.
9563
78134374
SM
95642020-05-14 Simon Marchi <simon.marchi@efficios.com>
9565
9566 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9567 type::code instead.
9568
67607e24
SM
95692020-05-14 Simon Marchi <simon.marchi@efficios.com>
9570
9571 * gdbtypes.h (struct type) <code, set_code>: New methods.
9572 (TYPE_CODE): Use type::code. Change all call sites used to set
9573 the code to use type::set_code instead.
9574
a05575d3
TBA
95752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9576 Tom de Vries <tdevries@suse.de>
9577 Pedro Alves <palves@redhat.com>
9578
9579 PR threads/25478
9580 * infrun.c (stop_all_threads): Do NOT ignore
9581 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9582 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9583 received.
9584 (handle_no_resumed): Remove code handling a live inferior with no
9585 threads.
9586 * remote.c (has_single_non_exited_thread): New.
9587 (remote_target::update_thread_list): Do not delete a thread if is
9588 the last thread of the process.
9589 * thread.c (thread_select): Call delete_exited_threads instead of
9590 prune_threads.
9591
6ad82919
TBA
95922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9593
9594 * infrun.c (stop_all_threads): Enable/disable thread events of all
9595 targets. Move a debug message denoting the end of the function
9596 into the SCOPED_EXIT block.
9597
d890404b
TBA
95982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9599
9600 * process-stratum-target.h: Include <set>.
9601 (all_non_exited_process_targets, switch_to_target_no_thread): New
9602 function declarations.
9603 * process-stratum-target.c (all_non_exited_process_targets)
9604 (switch_to_target_no_thread): New function implementations.
9605
293b3ebc
TBA
96062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9607
9608 * infrun.c (handle_inferior_event): Extract out a piece of code
9609 into...
9610 (mark_non_executing_threads): ...this new function.
9611
7ca9b62a
TBA
96122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9613
9614 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9615 use.
9616
fc75c28b
TBA
96172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9618
9619 * regcache.c (regcache_read_pc_protected): New function
9620 implementation that returns 0 if the PC cannot read via
9621 'regcache_read_pc'.
9622 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9623 instead of 'regcache_read_pc'.
9624 (keep_going_pass_signal): Ditto.
9625
a89febbd
TT
96262020-05-13 Tom Tromey <tromey@adacore.com>
9627
9628 * ada-lang.c (align_value): Remove.
9629 (ada_template_to_fixed_record_type_1): Use align_up.
9630
f7e23710
TBA
96312020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9632
9633 * async-event.c: Update the copyright year.
9634 * async-event.h: Update the copyright year.
9635
02ff80c2
SM
96362020-05-12 Simon Marchi <simon.marchi@efficios.com>
9637
9638 * objfiles.h (is_addr_in_objfile,
9639 shared_objfile_contains_address_p): Return bool.
9640 * objfile.c (is_addr_in_objfile,
9641 shared_objfile_contains_address_p): Return bool.
9642
4fd6c7e8
TT
96432020-05-11 Tom Tromey <tromey@adacore.com>
9644
9645 * cli/cli-cmds.c (info_command): Restore.
9646 (_initialize_cli_cmds): Use add_prefix_command for "info".
9647 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9648
5eb68a39
TT
96492020-05-11 Tom Tromey <tromey@adacore.com>
9650
9651 * ada-lang.c (ada_value_primitive_field): Now public.
9652 * ada-lang.h (ada_value_primitive_field): Declare.
9653 * ada-valprint.c (print_field_values): Use
9654 ada_value_primitive_field for wrapper fields.
9655
7666722f
TV
96562020-05-11 Tom de Vries <tdevries@suse.de>
9657
9658 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9659 MODULE_DOMAIN.
9660
3ee6bb11
TV
96612020-05-11 Tom de Vries <tdevries@suse.de>
9662
9663 PR symtab/25941
9664 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9665 with length 0, if not gdb-produced.
9666 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9667
43434996
TV
96682020-05-09 Tom de Vries <tdevries@suse.de>
9669
9670 PR gdb/25955
9671 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9672 calculation.
9673
2f78cffc
TT
96742020-05-09 Tom Tromey <tom@tromey.com>
9675
9676 * top.c (server_command): Now bool.
9677 * top.h (server_command): Now bool.
9678
4f7bc5ed
TT
96792020-05-08 Tom Tromey <tromey@adacore.com>
9680
9681 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9682 already being processed.
9683
8be4b118
TT
96842020-05-08 Tom Tromey <tom@tromey.com>
9685
9686 * printcmd.c (struct display) <next>: Remove.
9687 <display>: New constructor.
9688 <exp_string>: Now a std::string.
9689 <enabled_p>: Now a bool.
9690 (display_number): Move definition earlier.
9691 (displays): Rename from display_chain. Now a std::vector.
9692 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9693 (display_command): Update.
9694 (do_one_display, disable_display)
9695 (enable_disable_display_command, do_enable_disable_display):
9696 Update.
9697 (free_display): Remove.
9698 (clear_displays): Rewrite.
9699 (delete_display): Update.
9700 (map_display_numbers): Use function_view. Remove "data"
9701 parameter. Update.
9702 (do_delete_display): Remove.
9703 (undisplay_command): Update.
9704 (do_one_display, do_displays, disable_display)
9705 (info_display_command): Update.
9706 (do_enable_disable_display): Remove.
9707 (enable_disable_display_command)
9708 (clear_dangling_display_expressions): Update.
9709
94c93c35
TT
97102020-05-08 Tom Tromey <tom@tromey.com>
9711
9712 * symtab.c (set_symbol_cache_size)
9713 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9714 (maintenance_print_symbol_cache_statistics): Update.
9715 * symmisc.c (print_symbol_bcache_statistics)
9716 (print_objfile_statistics, maintenance_print_objfiles)
9717 (maintenance_info_symtabs, maintenance_check_symtabs)
9718 (maintenance_expand_symtabs, maintenance_info_line_tables):
9719 Update.
9720 * symfile-debug.c (set_debug_symfile): Update.
9721 * source.c (forget_cached_source_info): Update.
9722 * python/python.c (gdbpy_progspaces): Update.
9723 * psymtab.c (maintenance_info_psymtabs): Update.
9724 * probe.c (parse_probes): Update.
9725 * linespec.c (iterate_over_all_matching_symtabs)
9726 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9727 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9728 * exec.c (exec_target::close): Update.
9729 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9730 * breakpoint.c (print_one_breakpoint_location)
9731 (create_longjmp_master_breakpoint)
9732 (create_std_terminate_master_breakpoint): Update.
9733 * progspace.c (program_spaces): Now a std::vector.
9734 (maybe_new_address_space): Update.
9735 (add_program_space): Remove.
9736 (program_space::program_space): Update.
9737 (remove_program_space): Update.
9738 (number_of_program_spaces): Remove.
9739 (print_program_space, update_address_spaces): Update.
9740 * progspace.h (program_spaces): Change type.
9741 (ALL_PSPACES): Remove.
9742 (number_of_program_spaces): Don't declare.
9743 (struct program_space) <next>: Remove.
9744
a1fd1ac9
TT
97452020-05-08 Tom Tromey <tom@tromey.com>
9746
9747 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9748 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9749 (enable_break): Update.
9750 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9751 (frv_fdpic_find_canonical_descriptor): Update.
9752 (frv_fetch_objfile_link_map): Update.
9753 * progspace.c (program_space::free_all_objfiles): Update.
9754 (program_space::solibs): New method.
9755 * progspace.h (struct program_space) <solibs>: New method.
9756 * solist.h (master_so_list): Don't declare.
9757 (ALL_SO_LIBS): Remove.
9758 * solib.h (so_list_head): Remove.
9759 (update_solib_list): Update comment.
9760 * solib.c (master_so_list): Remove.
9761 (solib_used, update_solib_list, solib_add)
9762 (info_sharedlibrary_command, clear_solib)
9763 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9764
38eae084
TT
97652020-05-08 Tom Tromey <tom@tromey.com>
9766
9767 * extension.c (extension_languages): Now a std::array.
9768 (ALL_EXTENSION_LANGUAGES): Remove.
9769 (get_ext_lang_defn, get_ext_lang_of_file)
9770 (eval_ext_lang_from_control_command): Update.
9771 (finish_ext_lang_initialization)
9772 (auto_load_ext_lang_scripts_for_objfile)
9773 (ext_lang_type_printers::ext_lang_type_printers)
9774 (apply_ext_lang_type_printers)
9775 (ext_lang_type_printers::~ext_lang_type_printers)
9776 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9777 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9778 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9779 (get_matching_xmethod_workers, ext_lang_colorize)
9780 (ext_lang_before_prompt): Update.
9781 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9782
596dc4ad
TT
97832020-05-08 Tom Tromey <tom@tromey.com>
9784
9785 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9786 overload.
9787 <swap_string, m_string>: Remove.
9788 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9789 Update.
9790 * stabsread.c (define_symbol, read_type): Update.
9791 * linespec.c (find_linespec_symbols): Update.
9792 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9793 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9794 * dbxread.c (read_dbx_symtab): Update.
9795 * cp-support.h (cp_canonicalize_string_full)
9796 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9797 Return unique_xmalloc_ptr.
9798 * cp-support.c (inspect_type): Update.
9799 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9800 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9801 Likewise.
9802 * c-typeprint.c (print_name_maybe_canonical): Update.
9803 * break-catch-throw.c (check_status_exception_catchpoint):
9804 Update.
9805
bf4cb9be
TV
98062020-05-08 Tom de Vries <tdevries@suse.de>
9807
9808 * infrun.c (follow_fork): Copy current_line and current_symtab to
9809 child thread.
9810
a1b68f28
SM
98112020-05-07 Simon Marchi <simon.marchi@efficios.com>
9812
9813 * async-event.c (struct async_signal_handler, struct
9814 async_event_handler): Reformat, remove typedef.
9815
98d48915
SM
98162020-05-07 Simon Marchi <simon.marchi@efficios.com>
9817
9818 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9819 access thistype->main_type->dyn_prop_list directly.
9820
7aa91313
SM
98212020-05-07 Simon Marchi <simon.marchi@efficios.com>
9822
9823 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9824 (remove_dyn_prop): Remove. Update all users to use
9825 type::remove_dyn_prop.
9826 * gdbtypes.c (remove_dyn_prop): Rename to...
9827 (type::remove_dyn_prop): ... this.
9828
5c54719c
SM
98292020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9830
9831 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9832 (add_dyn_prop): Remove. Update all users to use
9833 type::add_dyn_prop.
9834 * gdbtypes.c (add_dyn_prop): Rename to...
9835 (type::add_dyn_prop): ... this.
9836
24e99c6c
SM
98372020-05-07 Simon Marchi <simon.marchi@efficios.com>
9838
9839 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9840 (get_dyn_prop): Remove. Update all users to use
9841 type::dyn_prop.
9842 * gdbtypes.c (get_dyn_prop): Rename to...
9843 (type::dyn_prop): ... this.
9844
0d4bf016
SM
98452020-05-06 Simon Marchi <simon.marchi@efficios.com>
9846
9847 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9848
ac4a4f1c
SM
98492020-05-06 Simon Marchi <simon.marchi@efficios.com>
9850
9851 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9852 instruction, skip it if it's there.
9853
a3bbacc1
SM
98542020-05-05 Simon Marchi <simon.marchi@efficios.com>
9855
9856 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9857
c3236f84
SM
98582020-05-04 Simon Marchi <simon.marchi@efficios.com>
9859
9860 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9861 * gdbtypes.c (recursive_dump_type): Remove use of
9862 TYPE_INCOMPLETE.
9863
3b6acaee
TT
98642020-05-03 Tom Tromey <tom@tromey.com>
9865
9866 * breakpoint.c (catch_command, tcatch_command): Remove.
9867 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9868 add_show_prefix_cmd.
9869 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9870 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9871 Remove.
9872 (add_internal_problem_command): Use add_basic_prefix_cmd,
9873 add_show_prefix_cmd.
9874 * mips-tdep.c (set_mipsfpu_command): Remove.
9875 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9876 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9877 (_initialize_index_cache): Use add_basic_prefix_cmd.
9878 * memattr.c (dummy_cmd): Remove.
9879 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9880 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9881 (_initialize_tui_win): Use add_basic_prefix_cmd,
9882 add_show_prefix_cmd.
9883 * cli/cli-logging.c (set_logging_command): Remove.
9884 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9885 add_show_prefix_cmd.
9886 (show_logging_command): Remove.
9887 * target.c (target_command): Remove.
9888 (add_target): Use add_basic_prefix_cmd.
9889
a51119cd
HD
98902020-05-02 Hannes Domani <ssbssa@yahoo.de>
9891
9892 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9893
652fc23a 98942020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9895
652fc23a
PW
9896 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9897 info_command.
9898
117539e6
KR
98992020-04-30 Kamil Rytarowski <n54@gmx.com>
9900
9901 * nbsd-nat.c (nbsd_enable_proc_events)
9902 (nbsd_nat_target::post_startup_inferior): Add.
9903 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9904 (nbsd_nat_target::update_thread_list): Rewrite.
9905 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9906 "PTRACE_LWP_CREATE".
9907 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9908
102e38eb 99092020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9910
102e38eb
PW
9911 * stack.c (_initialize_stack): Remove duplicated creation
9912 of "frame" command and "f" alias.
9913
ee9d1e5f
HD
99142020-04-30 Hannes Domani <ssbssa@yahoo.de>
9915
9916 PR gdb/18706
9917 * gdbtypes.c (check_typedef): Calculate size of array of
9918 stubbed type.
9919
627c7fb8
HD
99202020-04-30 Hannes Domani <ssbssa@yahoo.de>
9921
9922 PR gdb/15559
9923 * i386-tdep.c (i386_push_dummy_call): Call
9924 i386_thiscall_push_dummy_call.
9925 (i386_thiscall_push_dummy_call): New function.
9926 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9927 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9928 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9929
ffc2844e
SM
99302020-04-29 Simon Marchi <simon.marchi@efficios.com>
9931
9932 * gdbarch.sh (do_read): Add shellcheck disable directive for
9933 warning SC2162.
9934
1207375d
SM
99352020-04-29 Simon Marchi <simon.marchi@efficios.com>
9936
9937 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9938 "referenced but not assigned" warning.
9939
9fdb2916
SM
99402020-04-29 Simon Marchi <simon.marchi@efficios.com>
9941
9942 * gdbarch.sh: Remove code that sets fallbackdefault.
9943
759cea5e
SM
99442020-04-29 Simon Marchi <simon.marchi@efficios.com>
9945
9946 * gdbarch.sh: Use shell operators && and || instead of
9947 -a and -o.
9948
cb02ab24
SM
99492020-04-29 Simon Marchi <simon.marchi@efficios.com>
9950
9951 * gdbarch.sh: Use $(...) instead of `...`.
9952
a6fc5ffc
SM
99532020-04-29 Simon Marchi <simon.marchi@efficios.com>
9954
9955 * gdbarch.sh: Use double quotes around variables.
9956
8d113d13
SM
99572020-04-29 Simon Marchi <simon.marchi@efficios.com>
9958
9959 * gdbarch.sh: Use %s with printf, instead of variables in the
9960 format string.
9961
ed6acedd
TT
99622020-04-29 Tom Tromey <tromey@adacore.com>
9963
9964 PR ada/25875:
9965 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9966 type fields here.
9967 (read_enumeration_type): Call
9968 update_enumeration_type_from_children later. Update comments.
9969 (process_enumeration_scope): Don't create type fields.
9970
b68b1b58
KR
99712020-04-29 Kamil Rytarowski <n54@gmx.com>
9972
9973 * nbsd-tdep.c: Include "xml-syscall.h".
9974 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9975
f94b2e03
KR
99762020-04-29 Kamil Rytarowski <n54@gmx.com>
9977
9978 * nbsd-nat.c: Include "sys/wait.h".
9979 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9980 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9981 (nbsd_nat_target::remove_exec_catchpoint)
9982 (nbsd_nat_target::set_syscall_catchpoint): Add.
9983 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9984 (nbsd_nat_target::insert_exec_catchpoint)
9985 (nbsd_nat_target::remove_exec_catchpoint)
9986 (nbsd_nat_target::set_syscall_catchpoint): Add.
9987 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9988 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9989 `nbsd_get_syscall_number'.
9990
fc49bc72
TT
99912020-04-29 Tom Tromey <tom@tromey.com>
9992
9993 * stack.c (print_block_frame_labels): Remove.
9994
d642b692
HD
99952020-04-29 Hannes Domani <ssbssa@yahoo.de>
9996
9997 PR gdb/17320
9998 * ada-valprint.c (val_print_packed_array_elements): Move array
9999 end bracket to new line.
10000 (ada_val_print_string): Remove extra spaces before first array
10001 element.
10002 * c-valprint.c (c_value_print_array): Likewise.
10003 * m2-valprint.c (m2_print_array_contents): Likewise.
10004 (m2_value_print_inner): Likewise.
10005 * p-valprint.c (pascal_value_print_inner): Likewise.
10006 * valprint.c (generic_val_print_array): Likewise.
10007 (value_print_array_elements): Move first array element and array
10008 end bracket to new line.
10009
ea90f227
TV
100102020-04-29 Tom de Vries <tdevries@suse.de>
10011
10012 PR symtab/25889
10013 * linespec.c (find_method): Fix ix calculation.
10014
4498ef4f
KR
100152020-04-28 Kamil Rytarowski <n54@gmx.com>
10016
10017 * syscalls/update-netbsd.sh: New file.
10018 * syscalls/netbsd.xml: Regenerate.
10019 * data-directory/Makefile.in: Register `netbsd.xml' in
10020 `SYSCALLS_FILES'.
10021
a55e30b5
SM
100222020-04-28 Simon Marchi <simon.marchi@efficios.com>
10023
10024 * syscalls/update-freebsd.sh: Add double quotes.
10025
2b2fbab8
TT
100262020-04-28 Tom Tromey <tom@tromey.com>
10027
10028 * NEWS: Update.
10029 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10030 (cmdpy_init): Allow class_tui.
10031
a65189c9
TV
100322020-04-28 Mark Williams <mark@myosotissp.com>
10033
10034 PR gdb/24480
10035 * dwarf2read.c: Add missing assingments to list_in_scope when
10036 start_symtab was already called.
10037
1b95cdb7
SM
100382020-04-28 Simon Marchi <simon.marchi@efficios.com>
10039
10040 PR gdb/25881
10041 * dwarf2/read.c (offset_map_type): Use
10042 gdb:hash_enum<sect_offset> as hash function.
10043
15cd93d0
TV
100442020-04-28 Tom de Vries <tdevries@suse.de>
10045
10046 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10047 with DW_AT_signature.
10048
1eb39914
SM
100492020-04-27 Simon Marchi <simon.marchi@efficios.com>
10050
10051 * configure.ac: Remove check for fs_base/gs_base in
10052 user_regs_struct.
10053 * configure: Re-generate.
10054 * config.in: Re-generate.
10055 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10056 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10057 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10058
991a3e2e
LM
100592020-04-27 Luis Machado <luis.machado@linaro.org>
10060
10061 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10062 problematic inline frame unwinding situation.
10063 * frame.c (frame_id_computed_p): New function.
10064 * frame.h (frame_id_computed_p): New prototype.
10065
361ba0e8
TT
100662020-04-26 Tom Tromey <tom@tromey.com>
10067
10068 * command.h (enum command_class) <class_pseudo>: Remove.
10069
bc3609fd
PW
100702020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10071
10072 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10073 and whitespace.
10074
b9771db7
KR
100752020-04-25 Kamil Rytarowski <n54@gmx.com>
10076
ec16513e
SM
10077 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10078 `PT_GET_PROCESS_STATE' block.
b9771db7 10079
7151c1af
TT
100802020-04-24 Tom Tromey <tom@tromey.com>
10081
10082 * symtab.h (symbol_get_demangled_name): Don't declare.
10083 * symtab.c (symbol_get_demangled_name): Remove.
10084 (general_symbol_info::natural_name)
10085 (general_symbol_info::demangled_name): Update.
10086
906bb4c5
TT
100872020-04-24 Tom Tromey <tom@tromey.com>
10088
10089 PR rust/25025:
10090 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10091
bcfe6157
TT
100922020-04-24 Tom Tromey <tom@tromey.com>
10093
10094 PR symtab/12707:
10095 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10096 exists.
10097 (new_symbol): Likewise.
10098 * compile/compile-object-load.c (get_out_value_type): Use
10099 symbol_matches_search_name.
10100
f049a313
TT
101012020-04-24 Tom Tromey <tom@tromey.com>
10102
10103 * dwarf2/read.c (add_partial_symbol): Do not call
10104 compute_and_set_names.
10105
76e288d1
TT
101062020-04-24 Tom Tromey <tom@tromey.com>
10107
10108 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10109 overload.
10110
2467f4f6
TT
101112020-04-24 Tom Tromey <tom@tromey.com>
10112
10113 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10114 (add_psymbol_to_list): New overload. Make old overload call new
10115 one.
10116 * psympriv.h (add_psymbol_to_list): New overload.
10117
e61108c9
TT
101182020-04-24 Tom Tromey <tom@tromey.com>
10119
10120 * dwarf2/read.c (partial_die_info::read) <case
10121 DW_AT_linkage_name>: Use value_as_string.
10122 (dwarf2_string_attr): Use value_as_string.
10123 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10124 method.
10125 * dwarf2/attribute.c (attribute::value_as_string): New method.
10126
8c87a452
TT
101272020-04-24 Tom Tromey <tom@tromey.com>
10128
10129 * symtab.c (general_symbol_info::natural_name)
10130 (general_symbol_info::demangled_name): Check for language_rust.
10131
787de330
TT
101322020-04-24 Tom Tromey <tom@tromey.com>
10133
10134 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10135 (dwarf2_physname): ... from here.
10136 (partial_die_info::read): Add Rust "{" hack.
10137
ff985671
TT
101382020-04-24 Tom Tromey <tom@tromey.com>
10139
10140 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10141 method.
10142 (symbol_set_demangled_name): Don't declare.
10143 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10144 symbol_set_demangled_name.
10145 (general_symbol_info::set_language)
10146 (general_symbol_info::compute_and_set_names): Update.
10147 * minsyms.c (minimal_symbol_reader::install): Update.
10148 * dwarf2/read.c (new_symbol): Update.
10149
1acda803
TT
101502020-04-24 Tom Tromey <tromey@adacore.com>
10151
10152 PR python/23662:
10153 * python/py-type.c (convert_field): Handle
10154 FIELD_LOC_KIND_DWARF_BLOCK.
10155 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10156 (typy_get_dynamic): Nw function.
10157 (type_object_getset): Add "dynamic".
10158 * NEWS: Add entry.
10159
d656f129
TT
101602020-04-24 Tom Tromey <tromey@adacore.com>
10161
10162 * ada-typeprint.c (print_choices, print_variant_part)
10163 (print_record_field_types_dynamic): New functions.
10164 (print_record_field_types): Use print_record_field_types_dynamic.
10165
7d79de9a
TT
101662020-04-24 Tom Tromey <tromey@adacore.com>
10167
10168 * dwarf2/read.c (handle_data_member_location): New overload.
10169 (dwarf2_add_field): Use it.
10170 (decode_locdesc): Add "computed" parameter. Update comment.
10171 * gdbtypes.c (is_dynamic_type_internal): Also look for
10172 FIELD_LOC_KIND_DWARF_BLOCK.
10173 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10174 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10175 virtual base classes.
10176 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10177 FIELD_LOC_KIND_DWARF_BLOCK.
10178
f8e89861
TT
101792020-04-24 Tom Tromey <tromey@adacore.com>
10180
10181 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10182 * gdbtypes.c (is_dynamic_type_internal): Check
10183 TYPE_HAS_DYNAMIC_LENGTH.
10184 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10185 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10186 New macros.
10187 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10188 constant.
10189
9c6a1327
TT
101902020-04-24 Tom Tromey <tromey@adacore.com>
10191
10192 * dwarf2/read.c (struct variant_field): Rewrite.
10193 (struct variant_part_builder): New.
10194 (struct nextfield): Remove "variant" field. Add "offset".
10195 (struct field_info): Add "current_variant_part" and
10196 "variant_parts".
10197 (alloc_discriminant_info): Remove.
10198 (alloc_rust_variant): New function.
10199 (quirk_rust_enum): Update.
10200 (dwarf2_add_field): Set "offset" member. Don't handle
10201 DW_TAG_variant_part.
10202 (offset_map_type): New typedef.
10203 (convert_variant_range, create_one_variant)
10204 (create_one_variant_part, create_variant_parts)
10205 (add_variant_property): New functions.
10206 (dwarf2_attach_fields_to_type): Call add_variant_property.
10207 (read_structure_type): Don't handle DW_TAG_variant_part.
10208 (handle_variant_part, handle_variant): New functions.
10209 (handle_struct_member_die): Use them.
10210 (process_structure_scope): Don't handle variant parts.
10211 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10212 (struct discriminant_info): Remove.
10213 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10214 (struct main_type) <flag_discriminated_union>: Remove.
10215 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10216 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10217 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10218 Update.
10219 * valops.c (value_union_variant): Remove.
10220 * value.h (value_union_variant): Don't declare.
10221
b249d2c2
TT
102222020-04-24 Tom Tromey <tromey@adacore.com>
10223
10224 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10225 (ada_value_primitive_packed_val): Update.
10226 * ada-valprint.c (ada_value_print_1): Update.
10227 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10228 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10229 just an address. Use evaluate_for_locexpr_baton.
10230 (dwarf2_evaluate_property): Update.
10231 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10232 array_view.
10233 * findvar.c (default_read_var_value): Update.
10234 * gdbtypes.c (compute_variant_fields_inner)
10235 (resolve_dynamic_type_internal): Update.
10236 (resolve_dynamic_type): Change type of valaddr parameter.
10237 * gdbtypes.h (resolve_dynamic_type): Update.
10238 * valarith.c (value_subscripted_rvalue): Update.
10239 * value.c (value_from_contents_and_address): Update.
10240
61122aa9
TT
102412020-04-24 Tom Tromey <tromey@adacore.com>
10242
10243 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10244 "push_initial_value" parameter.
10245 (dwarf2_evaluate_property): Likewise.
10246 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10247
ef83a141
TT
102482020-04-24 Tom Tromey <tromey@adacore.com>
10249
10250 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10251 (variant::matches, compute_variant_fields_recurse)
10252 (compute_variant_fields_inner, compute_variant_fields): New
10253 functions.
10254 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10255 Use resolved_type after type is made.
10256 (operator==): Add new cases.
10257 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10258 (struct discriminant_range, struct variant, struct variant_part):
10259 New.
10260 (union dynamic_prop_data) <variant_parts, original_type>: New
10261 members.
10262 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10263 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10264 constants.
10265 * value.c (unpack_bits_as_long): Now public.
10266 * value.h (unpack_bits_as_long): Declare.
10267
675127ec
TT
102682020-04-24 Tom Tromey <tromey@adacore.com>
10269
10270 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10271 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10272
9852ceef
HD
102732020-04-24 Hannes Domani <ssbssa@yahoo.de>
10274
10275 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10276
7632c6ce
KR
102772020-04-24 Kamil Rytarowski <n54@gmx.com>
10278
10279 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10280 (remove_fork_catchpoint, post_startup_inferior)
10281 (post_attach): Move...
10282 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10283 (remove_fork_catchpoint, post_startup_inferior)
10284 (post_attach): ...here.
10285 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10286 (remove_fork_catchpoint, post_startup_inferior)
10287 (post_attach): Move...
10288 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10289 (remove_fork_catchpoint, post_startup_inferior)
10290 (post_attach): ...here.
10291
7be2bb4f
TT
102922020-04-24 Tom Tromey <tromey@adacore.com>
10293
10294 * nat/windows-nat.h (struct windows_thread_info)
10295 <pc_adjusted>: New member.
10296 * windows-nat.c (windows_fetch_one_register): Check
10297 pc_adjusted.
10298 (windows_nat_target::get_windows_debug_event)
10299 (windows_nat_target::wait): Set pc_adjusted.
10300
f80cb3b4
TV
103012020-04-24 Tom de Vries <tdevries@suse.de>
10302
10303 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10304 Run gdb-add-index inside temp dir.
10305
29514b87
TT
103062020-04-23 Tom Tromey <tromey@adacore.com>
10307
10308 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10309 in loop.
10310
5939967b
LM
103112020-04-23 Luis Machado <luis.machado@linaro.org>
10312
10313 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10314 get_frame_register instead of gdbarch_unwind_pc.
10315
70bc38f5
TV
103162020-04-23 Tom de Vries <tdevries@suse.de>
10317
10318 * symtab.c (lookup_global_symbol): Prefer def over decl.
10319
de82891c
TV
103202020-04-23 Tom de Vries <tdevries@suse.de>
10321
10322 PR symtab/25807
10323 * block.c (best_symbol, better_symbol): Promote to external.
10324 * block.h (best_symbol, better_symbol): Declare.
10325 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10326 decl.
10327
ecc6c606
TT
103282020-04-23 Tom Tromey <tromey@adacore.com>
10329
10330 PR ada/25837:
10331 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10332 "const char *", not a "const std::string &".
10333 <name_and_matcher::operator==>: Update.
10334 * unittests/lookup_name_info-selftests.c: Change type of
10335 "result".
10336
740480b8
TT
103372020-04-23 Tom Tromey <tom@tromey.com>
10338
10339 * inferior.h (iterate_over_inferiors): Don't declare.
10340 * inferior.c (iterate_over_inferiors): Remove.
10341 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10342 Remove.
10343 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10344 use iterate_over_inferiors.
10345 (darwin_resume_inferior_it)
10346 (struct resume_inferior_threads_param)
10347 (darwin_resume_inferior_threads_it): Remove.
10348 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10349
ae3ab1f0
TV
103502020-04-23 Tom de Vries <tdevries@suse.de>
10351
10352 * blockframe.c (find_pc_partial_function): Use
10353 find_pc_sect_compunit_symtab rather than
10354 objfile->sf->qf->find_pc_sect_compunit_symtab.
10355
317d2668
TV
103562020-04-22 Tom de Vries <tdevries@suse.de>
10357
10358 PR symtab/25764
10359 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10360 in psymtabs.
10361
eea9e357
TV
103622020-04-22 Tom de Vries <tdevries@suse.de>
10363
10364 PR symtab/25801
10365 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10366 symtabs.
10367
3d5afab3
TV
103682020-04-22 Tom de Vries <tdevries@suse.de>
10369
10370 PR symtab/25700
10371 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10372 CU if already created.
10373
d43b7a2d
TBA
103742020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10375
10376 * infrun.c (displaced_step_fixup): Switch to the event_thread
10377 before calling displaced_step_restore, not after.
10378
d89edf9b
MM
103792020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10380
10381 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10382 its inferior is not recorded by us.
10383 (record_btrace_target_open): Replace call to
10384 all_non_exited_threads () with call to current_inferior
10385 ()->non_exited_threads ().
10386 (record_btrace_target::stop_recording): Likewise.
10387 (record_btrace_target::close): Likewise.
10388 (record_btrace_target::wait): Likewise.
10389 (record_btrace_target::record_stop_replaying): Likewise.
10390
5897fd49
MM
103912020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10392
10393 * btrace.c (btrace_enable): Throw an error on double enables and
10394 when enabling recording fails.
10395 (btrace_disable): Throw an error if the thread is not recorded.
10396
1a476b6d
MM
103972020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10398
10399 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10400 request if we do not have a thread_info.
10401
4778a5f8
TV
104022020-04-21 Tom de Vries <tdevries@suse.de>
10403
10404 PR gdb/25471
10405 * thread.c
10406 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10407 exception in get_frame_id.
10408
0fa7617d
TT
104092020-04-20 Tom Tromey <tromey@adacore.com>
10410
10411 * python/python.c (struct gdbpy_event): Mark move constructor as
10412 noexcept.
10413 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10414 constructor as noexcept.
10415 * completer.h (struct completion_result): Mark move constructor as
10416 noexcept.
10417 * completer.c (completion_result::completion_result): Use
10418 initialization style. Don't call reset_match_list.
10419
ad23bda0
MS
104202020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10421
10422 * MAINTAINERS (Write After Approval): Add myself.
10423
45e1f031
TT
104242020-04-18 Tom Tromey <tom@tromey.com>
10425
10426 * windows-tdep.c (init_w32_command_list)
10427 (w32_prefix_command_valid): Restore.
10428 (_initialize_windows_tdep): Call init_w32_command_list.
10429
08feed99
TT
104302020-04-18 Tom Tromey <tom@tromey.com>
10431
10432 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10433 * value.c (value_fn_field): Update.
10434 * valops.c (find_function_in_inferior)
10435 (value_allocate_space_in_inferior): Update.
10436 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10437 Update.
10438 * tui/tui-source.c (tui_source_window::set_contents): Update.
10439 * symtab.c (lookup_global_or_static_symbol)
10440 (find_function_start_sal_1, skip_prologue_sal)
10441 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10442 * symmisc.c (dump_msymbols, dump_symtab_1)
10443 (maintenance_print_one_line_table): Update.
10444 * symfile.c (init_entry_point_info, section_is_mapped)
10445 (list_overlays_command, simple_read_overlay_table)
10446 (simple_overlay_update_1): Update.
10447 * stap-probe.c (handle_stap_probe): Update.
10448 * stabsread.c (dbx_init_float_type, define_symbol)
10449 (read_one_struct_field, read_enum_type, read_range_type): Update.
10450 * source.c (info_line_command): Update.
10451 * python/python.c (gdbpy_source_objfile_script)
10452 (gdbpy_execute_objfile_script): Update.
10453 * python/py-type.c (save_objfile_types): Update.
10454 * python/py-objfile.c (py_free_objfile): Update.
10455 * python/py-inferior.c (python_new_objfile): Update.
10456 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10457 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10458 (maintenance_check_psymtabs): Update.
10459 * printcmd.c (info_address_command): Update.
10460 * objfiles.h (struct objfile) <arch>: New method, from
10461 get_objfile_arch.
10462 (get_objfile_arch): Don't declare.
10463 * objfiles.c (get_objfile_arch): Remove.
10464 (filter_overlapping_sections): Update.
10465 * minsyms.c (msymbol_is_function): Update.
10466 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10467 (output_nondebug_symbol): Update.
10468 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10469 (mdebug_expand_psymtab): Update.
10470 * machoread.c (macho_add_oso_symfile): Update.
10471 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10472 Update.
10473 * linux-fork.c (checkpoint_command): Update.
10474 * linespec.c (convert_linespec_to_sals): Update.
10475 * jit.c (finalize_symtab): Update.
10476 * infrun.c (insert_exception_resume_from_probe): Update.
10477 * ia64-tdep.c (ia64_find_unwind_table): Update.
10478 * hppa-tdep.c (internalize_unwinds): Update.
10479 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10480 Update.
10481 * gcore.c (call_target_sbrk): Update.
10482 * elfread.c (record_minimal_symbol, elf_symtab_read)
10483 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10484 (elf_gnu_ifunc_resolve_by_got): Update.
10485 * dwarf2/read.c (create_addrmap_from_index)
10486 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10487 (read_debug_names_from_section)
10488 (process_psymtab_comp_unit_reader, add_partial_symbol)
10489 (add_partial_subprogram, process_full_comp_unit)
10490 (read_file_scope, read_func_scope, read_lexical_block_scope)
10491 (read_call_site_scope, dwarf2_ranges_read)
10492 (dwarf2_record_block_ranges, dwarf2_add_field)
10493 (mark_common_block_symbol_computed, read_tag_pointer_type)
10494 (read_tag_string_type, dwarf2_init_float_type)
10495 (dwarf2_init_complex_target_type, read_base_type)
10496 (partial_die_info::read, partial_die_info::read)
10497 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10498 (dwarf2_fetch_die_loc_sect_off): Update.
10499 * dwarf2/loc.c (dwarf2_find_location_expression)
10500 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10501 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10502 (dwarf2_loc_desc_get_symbol_read_needs)
10503 (locexpr_describe_location_piece, locexpr_describe_location_1)
10504 (loclist_describe_location): Update.
10505 * dwarf2/index-write.c (write_debug_names): Update.
10506 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10507 * dtrace-probe.c (dtrace_process_dof): Update.
10508 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10509 (process_one_symbol): Update.
10510 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10511 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10512 (coff_read_enum_type): Update.
10513 * cli/cli-cmds.c (edit_command, list_command): Update.
10514 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10515 * breakpoint.c (create_overlay_event_breakpoint)
10516 (create_longjmp_master_breakpoint)
10517 (create_std_terminate_master_breakpoint)
10518 (create_exception_master_breakpoint, get_sal_arch): Update.
10519 * block.c (block_gdbarch): Update.
10520 * annotate.c (annotate_source_line): Update.
10521
0743fc83
TT
105222020-04-17 Tom Tromey <tromey@adacore.com>
10523
10524 * auto-load.c (show_auto_load_cmd): Remove.
10525 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10526 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10527 (maintenance_print_arc_command): Remove.
10528 * tui/tui-win.c (tui_command): Remove.
10529 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10530 * tui/tui-layout.c (tui_layout_command): Remove.
10531 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10532 * python/python.c (user_set_python, user_show_python): Remove.
10533 (_initialize_python): Use add_basic_prefix_cmd,
10534 add_show_prefix_cmd.
10535 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10536 (install_gdb_commands): Use add_basic_prefix_cmd,
10537 add_show_prefix_cmd.
10538 (info_guile_command): Remove.
10539 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10540 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10541 add_show_prefix_cmd.
10542 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10543 Remove do_set and do_show parameters.
10544 * cli/cli-style.c (set_style, show_style): Remove.
10545 (_initialize_cli_style): Use add_basic_prefix_cmd,
10546 add_show_prefix_cmd.
10547 (cli_style_option::add_setshow_commands): Remove do_set and
10548 do_show parameters.
10549 (cli_style_option::add_setshow_commands): Use
10550 add_basic_prefix_cmd, add_show_prefix_cmd.
10551 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10552 (set_style_name): Remove.
10553 * cli/cli-dump.c (dump_command, append_command): Remove.
10554 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10555 (tekhex_dump_command, binary_dump_command)
10556 (binary_append_command): Remove.
10557 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10558 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10559 (init_w32_command_list): Remove; move into ...
10560 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10561 * valprint.c (set_print, show_print, set_print_raw)
10562 (show_print_raw): Remove.
10563 (_initialize_valprint): Use add_basic_prefix_cmd,
10564 add_show_prefix_cmd.
10565 * typeprint.c (set_print_type, show_print_type): Remove.
10566 (_initialize_typeprint): Use add_basic_prefix_cmd,
10567 add_show_prefix_cmd.
10568 * record.c (set_record_command, show_record_command): Remove.
10569 (_initialize_record): Use add_basic_prefix_cmd,
10570 add_show_prefix_cmd.
10571 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10572 add_show_prefix_cmd.
10573 (info_command, show_command, set_debug, show_debug): Remove.
10574 * top.h (set_history, show_history): Don't declare.
10575 * top.c (set_history, show_history): Remove.
10576 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10577 (unset_tdesc_cmd): Remove.
10578 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10579 add_show_prefix_cmd.
10580 * symtab.c (info_module_command): Remove.
10581 (_initialize_symtab): Use add_basic_prefix_cmd.
10582 * symfile.c (overlay_command): Remove.
10583 (_initialize_symfile): Use add_basic_prefix_cmd.
10584 * sparc64-tdep.c (info_adi_command): Remove.
10585 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10586 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10587 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10588 add_show_prefix_cmd.
10589 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10590 (_initialize_serial): Use add_basic_prefix_cmd,
10591 add_show_prefix_cmd.
10592 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10593 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10594 add_show_prefix_cmd.
10595 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10596 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10597 add_show_prefix_cmd.
10598 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10599 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10600 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10601 add_show_prefix_cmd.
10602 * remote.c (remote_command, set_remote_cmd): Remove.
10603 (_initialize_remote): Use add_basic_prefix_cmd.
10604 * record-full.c (set_record_full_command)
10605 (show_record_full_command): Remove.
10606 (_initialize_record_full): Use add_basic_prefix_cmd,
10607 add_show_prefix_cmd.
10608 * record-btrace.c (cmd_set_record_btrace)
10609 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10610 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10611 (cmd_show_record_btrace_pt): Remove.
10612 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10613 add_show_prefix_cmd.
10614 * ravenscar-thread.c (set_ravenscar_command)
10615 (show_ravenscar_command): Remove.
10616 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10617 add_show_prefix_cmd.
10618 * mips-tdep.c (show_mips_command, set_mips_command)
10619 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10620 add_show_prefix_cmd.
10621 * maint.c (maintenance_command, maintenance_info_command)
10622 (maintenance_check_command, maintenance_print_command)
10623 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10624 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10625 add_show_prefix_cmd.
10626 (show_per_command_cmd): Remove.
10627 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10628 Remove.
10629 (maintenance_show_test_settings_cmd): Remove.
10630 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10631 add_show_prefix_cmd.
10632 * maint-test-options.c (maintenance_test_options_command):
10633 Remove.
10634 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10635 * macrocmd.c (macro_command): Remove
10636 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10637 * language.c (set_check, show_check): Remove.
10638 (_initialize_language): Use add_basic_prefix_cmd,
10639 add_show_prefix_cmd.
10640 * infcmd.c (unset_command): Remove.
10641 (_initialize_infcmd): Use add_basic_prefix_cmd.
10642 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10643 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10644 add_show_prefix_cmd.
10645 * go32-nat.c (go32_info_dos_command): Remove.
10646 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10647 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10648 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10649 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10650 (_initialize_frame): Use add_basic_prefix_cmd,
10651 add_show_prefix_cmd.
10652 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10653 (_initialize_dcache): Use add_basic_prefix_cmd,
10654 add_show_prefix_cmd.
10655 * cp-support.c (maint_cplus_command): Remove.
10656 (_initialize_cp_support): Use add_basic_prefix_cmd.
10657 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10658 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10659 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10660 add_basic_prefix_cmd, add_show_prefix_cmd.
10661 * breakpoint.c (save_command): Remove.
10662 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10663 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10664 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10665 add_show_prefix_cmd.
10666 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10667 (set_ada_command, show_ada_command): Remove.
10668 (_initialize_ada_language): Use add_basic_prefix_cmd,
10669 add_show_prefix_cmd.
10670 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10671
3557f442
KR
106722020-04-16 Kamil Rytarowski <n54@gmx.com>
10673
10674 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10675 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10676
16197208
SM
106772020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10678
10679 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10680 warning messages.
10681
00ac85d3
SM
106822020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10683
10684 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10685 import table is not at beginning of .idata section.
10686
381ce63f
PA
106872020-04-16 Pedro Alves <palves@redhat.com>
10688
10689 * inferior.c (delete_inferior): Use delete operator directly
10690 instead of delete_program_space.
10691 * progspace.c (add_program_space): New, factored out from
10692 program_space::program_space.
10693 (remove_program_space): New, factored out from
10694 delete_program_space.
10695 (program_space::program_space): Remove intro comment. Rewrite.
10696 (program_space::~program_space): Remove intro comment. Call
10697 remove_program_space.
10698 (delete_program_space): Delete.
10699 * progspace.h (program_space::program_space): Make explicit. Move
10700 intro comment here, adjusted.
10701 (program_space::~program_space): Move intro comment here,
10702 adjusted.
10703 (delete_program_space): Remove.
10704
a010605f
TT
107052020-04-16 Tom Tromey <tromey@adacore.com>
10706
10707 * windows-nat.c (windows_nat::handle_access_violation): New
10708 function.
10709 * nat/windows-nat.h (handle_access_violation): Declare.
10710 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10711 windows-nat.c. Call handle_access_violation.
10712
efba5c23
TV
107132020-04-16 Tom de Vries <tdevries@suse.de>
10714
10715 PR symtab/25791
10716 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10717 CUs without psymtab.
10718
97ed802d
KB
107192020-04-16 Kevin Buettner <kevinb@redhat.com>
10720
10721 * python/python.c (do_start_initialization): Don't call
10722 PyEval_InitThreads for Python 3.9 and beyond.
10723
c7d64809
KR
107242020-04-15 Kamil Rytarowski <n54@gmx.com>
10725
10726 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10727 thread functions.
10728 (obsd_nat_target::wait): Likewise.
10729
ce127a96
TT
107302020-04-15 Tom Tromey <tromey@adacore.com>
10731
10732 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10733 (DEBUG_EXCEPT): Use debug_printf.
10734
99f1bc6a
AB
107352020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10736
10737 * completer.c (class completion_tracker::completion_hash_entry)
10738 <hash_name>: New member function.
10739 (completion_tracker::discard_completions): New callback to hash a
10740 completion_hash_entry, pass this to htab_create_alloc.
10741
a0e9b532
JT
107422016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10743
10744 * windows-nat.c (windows_make_so): Warn rather than stopping with
10745 an error if realpath() fails.
10746
06ca5dd4
KR
107472020-04-14 Kamil Rytarowski <n54@gmx.com>
10748
10749 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10750 (nbsd_nat_target::info_proc): Add do_status.
10751
194d088f
TV
107522020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10753 Tom de Vries <tdevries@suse.de>
10754
10755 PR symtab/25718
10756 * psympriv.h (struct partial_symtab::read_symtab)
10757 (struct partial_symtab::expand_psymtab)
10758 (struct partial_symtab::read_dependencies): Update comments.
10759 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10760 read_symtab for includer.
10761 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10762 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10763 (struct dwarf2_include_psymtab::m_readin): Remove.
10764 (struct dwarf2_include_psymtab::includer): New member function.
10765 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10766
c1a66c06
TV
107672020-04-14 Tom de Vries <tdevries@suse.de>
10768
10769 PR symtab/25720
10770 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10771 with NULL symbol_matcher and lookup_name.
10772 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10773 and lookup_name.
10774 * dwarf2/read.c (dw2_expand_symtabs_matching)
10775 (dw2_debug_names_expand_symtabs_matching): Same.
10776 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10777 Make lookup_name a pointer. Update comment.
10778 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10779 lookup_name being a pointer.
10780 * symfile.c (expand_symtabs_matching): Same.
10781 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10782 * linespec.c (iterate_over_all_matching_symtabs): Same.
10783
400b5eca
TT
107842020-04-13 Tom Tromey <tom@tromey.com>
10785
10786 * run-on-main-thread.c: Update include.
10787 * unittests/main-thread-selftests.c: Update include.
10788 * tui/tui-win.c: Update include.
10789 * tui/tui-io.c: Update include.
10790 * tui/tui-interp.c: Update include.
10791 * tui/tui-hooks.c: Update include.
10792 * top.h: Update include.
10793 * top.c: Update include.
10794 * ser-base.c: Update include.
10795 * remote.c: Update include.
10796 * remote-notif.c: Update include.
10797 * remote-fileio.c: Update include.
10798 * record-full.c: Update include.
10799 * record-btrace.c: Update include.
10800 * python/python.c: Update include.
10801 * posix-hdep.c: Update include.
10802 * mingw-hdep.c: Update include.
10803 * mi/mi-main.c: Update include.
10804 * mi/mi-interp.c: Update include.
10805 * main.c: Update include.
10806 * linux-nat.c: Update include.
10807 * interps.c: Update include.
10808 * infrun.c: Update include.
10809 * inf-loop.c: Update include.
10810 * event-top.c: Update include.
10811 * event-loop.c: Move to ../gdbsupport/.
10812 * event-loop.h: Move to ../gdbsupport/.
10813 * async-event.h: Update include.
10814 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10815
93b54c8e
TT
108162020-04-13 Tom Tromey <tom@tromey.com>
10817
10818 * tui/tui-win.c: Include async-event.h.
10819 * remote.c: Include async-event.h.
10820 * remote-notif.c: Include async-event.h.
10821 * record-full.c: Include async-event.h.
10822 * record-btrace.c: Include async-event.h.
10823 * infrun.c: Include async-event.h.
10824 * event-top.c: Include async-event.h.
10825 * event-loop.h: Move some declarations to async-event.h.
10826 * event-loop.c: Don't include ser-event.h or top.h. Move some
10827 code to async-event.c.
10828 * async-event.h: New file.
10829 * async-event.c: New file.
10830 * Makefile.in (COMMON_SFILES): Add async-event.c.
10831 (HFILES_NO_SRCDIR): Add async-event.h.
10832
c1cd3163
TT
108332020-04-13 Tom Tromey <tom@tromey.com>
10834
10835 * utils.c (flush_streams): New function.
10836 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10837
29f2bf4f
TT
108382020-04-13 Tom Tromey <tom@tromey.com>
10839
10840 * event-loop.c (handle_file_event): Use warning, not
10841 printf_unfiltered.
10842
98029d02
TT
108432020-04-13 Tom Tromey <tom@tromey.com>
10844
10845 * event-loop.c: Include <chrono>.
10846
06cc9596
TT
108472020-04-13 Tom Tromey <tom@tromey.com>
10848
10849 * gdb_select.h: Move to ../gdbsupport/.
10850 * event-loop.c: Update include path.
10851 * top.c: Update include path.
10852 * ser-base.c: Update include path.
10853 * ui-file.c: Update include path.
10854 * ser-tcp.c: Update include path.
10855 * guile/scm-ports.c: Update include path.
10856 * posix-hdep.c: Update include path.
10857 * ser-unix.c: Update include path.
10858 * gdb_usleep.c: Update include path.
10859 * mingw-hdep.c: Update include path.
10860 * inflow.c: Update include path.
10861 * infrun.c: Update include path.
10862 * event-top.c: Update include path.
10863
8ae8e197
TT
108642020-04-13 Tom Tromey <tom@tromey.com>
10865
10866 * configure: Rebuild.
10867 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10868
58cf28e8
TT
108692020-04-13 Tom Tromey <tom@tromey.com>
10870
10871 * event-loop.h (start_event_loop): Don't declare.
10872 * event-loop.c (start_event_loop): Move...
10873 * main.c (start_event_loop): ...here. Now static.
10874
b7f999ae
SDJ
108752020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10876
10877 * MAINTAINERS: Update my email address.
10878
1085dfd4
KR
108792020-04-12 Kamil Rytarowski <n54@gmx.com>
10880
10881 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10882 IP_ALL.
10883
49d1d1f5
KR
108842020-04-12 Kamil Rytarowski <n54@gmx.com>
10885
10886 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10887 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10888
b4848d2a
KR
108892020-04-12 Kamil Rytarowski <n54@gmx.com>
10890
10891 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10892 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10893
51c133d5
KR
108942020-04-12 Kamil Rytarowski <n54@gmx.com>
10895
10896 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10897
54b8cbd0
KR
108982020-04-11 Kamil Rytarowski <n54@gmx.com>
10899
10900 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10901 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10902 (nbsd_nat_target::info_proc): New functions.
10903 * nbsd-nat.c (kinfo_get_vmmap): New function.
10904 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10905 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10906 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10907 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10908 functions.
10909 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10910 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10911 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10912 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10913 (KINFO_VME_FLAG_GROWS_DOWN): New.
10914
cf83625d
AS
109152020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10916
10917 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10918 bit shift.
10919
0c4311ab
TT
109202020-04-10 Tom Tromey <tromey@adacore.com>
10921
10922 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10923
3e65b3e9
TT
109242020-04-10 Tom Tromey <tromey@adacore.com>
10925
10926 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10927 separate debug files.
10928
13302e95
HD
109292020-04-10 Hannes Domani <ssbssa@yahoo.de>
10930
10931 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10932 Move to...
10933 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10934 ... here.
10935 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10936 Check for STATUS_WX86_BREAKPOINT.
10937 (windows_nat_target::wait): Same.
10938
bdfc1e8a
TV
109392020-04-10 Tom de Vries <tdevries@suse.de>
10940
10941 PR cli/25808
10942 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10943
f4460aec
SM
109442020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10945
10946 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10947 (Write After Approval): Remove Tom de Vries.
10948
a25198bb
BE
109492020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10950
10951 revert partially:
10952 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10953
aac66a4c
SM
10954 * buildsym.c (record_line): Fix undefined behavior and preserve
10955 lines at eof.
a25198bb 10956
206c98a6
KR
109572020-04-09 Kamil Rytarowski <n54@gmx.com>
10958
10959 * auxv.h (svr4_auxv_parse): New.
10960 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10961 and generic_auxv_parse.
10962 (svr4_auxv_parse): Add.
10963 * obsd-tdep.c: Include "auxv.h".
10964 (obsd_auxv_parse): Remove.
10965 (obsd_init_abi): Remove comment.
10966 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10967 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10968 * nbsd-tdep.c: Include "auxv.h".
10969 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10970
71fbdbaf
TT
109712020-04-08 Tom Tromey <tromey@adacore.com>
10972
10973 * nat/windows-nat.h (last_wait_event): Don't declare.
10974 (wait_for_debug_event): Update comment.
10975 * nat/windows-nat.c (last_wait_event): Now static.
10976
2c1d95e8
TT
109772020-04-08 Tom Tromey <tromey@adacore.com>
10978
10979 * windows-nat.c (wait_for_debug_event): Move to
10980 nat/windows-nat.c.
10981 * nat/windows-nat.h (wait_for_debug_event): Declare.
10982 * nat/windows-nat.c (wait_for_debug_event): Move from
10983 windows-nat.c. No longer static.
10984
d2977bc4
TT
109852020-04-08 Tom Tromey <tromey@adacore.com>
10986
10987 * windows-nat.c (get_windows_debug_event): Use
10988 fetch_pending_stop.
10989 * nat/windows-nat.h (fetch_pending_stop): Declare.
10990 * nat/windows-nat.c (fetch_pending_stop): New function.
10991
e758e19c
TT
109922020-04-08 Tom Tromey <tromey@adacore.com>
10993
10994 * windows-nat.c (windows_continue): Use matching_pending_stop and
10995 continue_last_debug_event.
10996 * nat/windows-nat.h (matching_pending_stop)
10997 (continue_last_debug_event): Declare.
10998 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10999 (matching_pending_stop, continue_last_debug_event): New
11000 functions.
11001
8d30e395
TT
110022020-04-08 Tom Tromey <tromey@adacore.com>
11003
11004 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11005 (handle_exception_result): Move to nat/windows-nat.h.
11006 (DEBUG_EXCEPTION_SIMPLE): Remove.
11007 (windows_nat::handle_ms_vc_exception): New function.
11008 (handle_exception): Move to nat/windows-nat.c.
11009 (get_windows_debug_event): Update.
11010 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11011 nat/windows-nat.c.
11012 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11013 (handle_exception_result): Move from windows-nat.c.
11014 (handle_exception): Declare.
11015 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11016 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11017 windows-nat.c.
11018
29de418d
TT
110192020-04-08 Tom Tromey <tromey@adacore.com>
11020
11021 * windows-nat.c (exception_count, event_count): Remove.
11022 (handle_exception, get_windows_debug_event)
11023 (do_initial_windows_stuff): Update.
11024
a816ba18
TT
110252020-04-08 Tom Tromey <tromey@adacore.com>
11026
11027 * windows-nat.c (windows_nat::handle_load_dll)
11028 (windows_nat::handle_unload_dll): Rename. No longer static.
11029 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11030 Declare.
11031
a00caa12
TT
110322020-04-08 Tom Tromey <tromey@adacore.com>
11033
11034 * complaints.h (stop_whining): Declare at top-level.
11035 (complaint): Don't declare stop_whining.
11036
d41b524f
TT
110372020-04-08 Tom Tromey <tromey@adacore.com>
11038
11039 * windows-nat.c (windows_nat::handle_output_debug_string):
11040 Rename. No longer static.
11041 * nat/windows-nat.h (handle_output_debug_string): Declare.
11042
3c76026d
TT
110432020-04-08 Tom Tromey <tromey@adacore.com>
11044
11045 * windows-nat.c (current_process_handle, current_process_id)
11046 (main_thread_id, last_sig, current_event, last_wait_event)
11047 (current_windows_thread, desired_stop_thread_id, pending_stops)
11048 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11049 (display_selectors, fake_create_process)
11050 (get_windows_debug_event): Update.
11051 * nat/windows-nat.h (current_process_handle, current_process_id)
11052 (main_thread_id, last_sig, current_event, last_wait_event)
11053 (current_windows_thread, desired_stop_thread_id, pending_stops)
11054 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11055 * nat/windows-nat.c (current_process_handle, current_process_id)
11056 (main_thread_id, last_sig, current_event, last_wait_event)
11057 (current_windows_thread, desired_stop_thread_id, pending_stops)
11058 (siginfo_er): New globals. Move from windows-nat.c.
11059
9d8679cc
TT
110602020-04-08 Tom Tromey <tromey@adacore.com>
11061
11062 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11063 (handle_load_dll): Update.
11064 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11065
28688adf
TT
110662020-04-08 Tom Tromey <tromey@adacore.com>
11067
11068 * windows-nat.c (enum thread_disposition_type): Move to
11069 nat/windows-nat.h.
11070 (windows_nat::thread_rec): Rename from thread_rec. No longer
11071 static.
11072 (windows_add_thread, windows_nat_target::fetch_registers)
11073 (windows_nat_target::store_registers, handle_exception)
11074 (windows_nat_target::resume, get_windows_debug_event)
11075 (windows_nat_target::get_tib_address)
11076 (windows_nat_target::thread_name)
11077 (windows_nat_target::thread_alive): Update.
11078 * nat/windows-nat.h (enum thread_disposition_type): Move from
11079 windows-nat.c.
11080 (thread_rec): Declare.
11081
4834dad0
TT
110822020-04-08 Tom Tromey <tromey@adacore.com>
11083
11084 * windows-nat.c: Add "using namespace".
11085 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11086 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11087
65bafd5b
TT
110882020-04-08 Tom Tromey <tromey@adacore.com>
11089
11090 * nat/windows-nat.h (struct windows_thread_info): Declare
11091 destructor.
11092 * nat/windows-nat.c (~windows_thread_info): New.
11093
0a4afda3
TT
110942020-04-08 Tom Tromey <tromey@adacore.com>
11095
11096 PR gdb/22992
11097 * windows-nat.c (current_event): Update comment.
11098 (last_wait_event, desired_stop_thread_id): New globals.
11099 (struct pending_stop): New.
11100 (pending_stops): New global.
11101 (windows_nat_target) <stopped_by_sw_breakpoint>
11102 <supports_stopped_by_sw_breakpoint>: New methods.
11103 (windows_fetch_one_register): Add assertions. Adjust PC.
11104 (windows_continue): Handle pending stops. Suspend other threads
11105 when stepping. Use last_wait_event
11106 (wait_for_debug_event): New function.
11107 (get_windows_debug_event): Use wait_for_debug_event. Handle
11108 pending stops. Queue spurious stops.
11109 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11110 (windows_nat_target::kill): Use wait_for_debug_event.
11111 * nat/windows-nat.h (struct windows_thread_info)
11112 <stopped_at_software_breakpoint>: New field.
11113 * nat/windows-nat.c (windows_thread_info::resume): Clear
11114 stopped_at_software_breakpoint.
11115
8e61ebec
TT
111162020-04-08 Tom Tromey <tromey@adacore.com>
11117
11118 * windows-nat.c (enum thread_disposition_type): New.
11119 (thread_rec): Replace "get_context" parameter with "disposition";
11120 change type.
11121 (windows_add_thread, windows_nat_target::fetch_registers)
11122 (windows_nat_target::store_registers, handle_exception)
11123 (windows_nat_target::resume, get_windows_debug_event)
11124 (windows_nat_target::get_tib_address)
11125 (windows_nat_target::thread_name)
11126 (windows_nat_target::thread_alive): Update.
11127
98a03287
TT
111282020-04-08 Tom Tromey <tromey@adacore.com>
11129
11130 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11131 (windows_continue): Use windows_continue::resume.
11132 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11133 resume>: Declare new methods.
11134 * nat/windows-nat.c: New file.
11135 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11136
7c7411bc
TT
111372020-04-08 Tom Tromey <tromey@adacore.com>
11138
11139 * windows-nat.c (windows_add_thread, windows_delete_thread)
11140 (windows_nat_target::fetch_registers)
11141 (windows_nat_target::store_registers, fake_create_process)
11142 (windows_nat_target::resume, windows_nat_target::resume)
11143 (get_windows_debug_event, windows_nat_target::wait)
11144 (windows_nat_target::pid_to_str)
11145 (windows_nat_target::get_tib_address)
11146 (windows_nat_target::get_ada_task_ptid)
11147 (windows_nat_target::thread_name)
11148 (windows_nat_target::thread_alive): Use lwp, not tid.
11149
2950fdf7
TT
111502020-04-08 Tom Tromey <tromey@adacore.com>
11151
11152 * windows-nat.c (handle_exception)
11153 (windows_nat_target::thread_name): Update.
11154 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11155 <name>: Now unique_xmalloc_ptr.
11156
62fe396b
TT
111572020-04-08 Tom Tromey <tromey@adacore.com>
11158
11159 * windows-nat.c (thread_rec)
11160 (windows_nat_target::fetch_registers): Update.
11161 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11162 Update comment.
11163 <debug_registers_changed, reload_context>: Now bool.
11164
e9534bd2
TT
111652020-04-08 Tom Tromey <tromey@adacore.com>
11166
11167 * windows-nat.c (windows_add_thread): Use new.
11168 (windows_init_thread_list, windows_delete_thread): Use delete.
11169 (get_windows_debug_event): Update.
11170 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11171 destructor, and initializers.
11172
ae1f8880
TT
111732020-04-08 Tom Tromey <tromey@adacore.com>
11174
11175 * windows-nat.c (struct windows_thread_info): Remove.
11176 * nat/windows-nat.h: New file.
11177
55a1e039
TT
111782020-04-08 Tom Tromey <tromey@adacore.com>
11179
11180 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11181 (thread_rec, windows_add_thread, windows_delete_thread)
11182 (windows_continue): Update.
11183
93366324
TT
111842020-04-08 Tom Tromey <tromey@adacore.com>
11185
11186 * windows-nat.c (struct windows_thread_info): Remove typedef.
11187 (thread_head): Remove.
11188 (thread_list): New global.
11189 (thread_rec, windows_add_thread, windows_init_thread_list)
11190 (windows_delete_thread, windows_continue): Update.
11191
0f2265e2
SM
111922020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11193
11194 * windows-tdep.h (windows_init_abi): Add comment.
11195 (cygwin_init_abi): New declaration.
11196 * windows-tdep.c: Split signal enumeration in two, one for
11197 Windows and one for Cygwin.
11198 (windows_gdb_signal_to_target): Only deal with signal of the
11199 Windows OS ABI.
11200 (cygwin_gdb_signal_to_target): New function.
11201 (windows_init_abi): Rename to windows_init_abi_common, don't set
11202 gdb_signal_to_target gdbarch method. Add new new function with
11203 this name.
11204 (cygwin_init_abi): New function.
11205 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11206 comment. Don't call windows_init_abi.
11207 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11208 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11209 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11210 i386_windows_init_abi_common, don't call windows_init_abi. Add
11211 a new function of this name.
11212 (i386_cygwin_init_abi): New function.
11213 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11214 OS ABI Cygwin.
11215
3810f182
SM
112162020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11217
11218 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11219 parameter.c.
11220 (dwarf2_read_gdb_index): Update.
11221
063f8e80
KR
112222020-04-07 Kamil Rytarowski <n54@gmx.com>
11223
11224 * nbsd-tdep.c: Include "objfiles.h".
11225 (nbsd_skip_solib_resolver): New.
11226 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11227
85a9510c 112282020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11229
11230 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11231 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11232 with DW_LLE_base_addressx are being emitted in DWARFv5.
11233 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11234 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11235 unsigned integer.
11236
9fc3eaae 112372020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11238
11239 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11240 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11241 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11242 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11243 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11244 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11245 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11246
11247
41144253 112482020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11249
11250 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11251 (read_loclist_index): New function definition.
11252 (lookup_loclist_base): New function definition.
11253 (read_loclist_header): New function definition.
11254 (dwarf2_cu): Add loclist_base and loclist_header field.
11255 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11256 (read_full_die_1): Read the value of DW_AT_loclists_base.
11257 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11258 (read_attribute_value): Handle DW_FORM_loclistx.
11259 (skip_one_die): Handle DW_FORM_loclistx.
11260 (loclist_header): New structure declaration.
11261 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11262
9f4e76a4
SM
112632020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11264
11265 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11266 constructor. Remove `addr` parameter from other constructor and
11267 add `per_cu` parameter.
11268 * dwarf2/read.c (create_partial_symtab): Update.
11269
25c11aca
TV
112702020-04-07 Tom de Vries <tdevries@suse.de>
11271
11272 PR symtab/25796
11273 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11274 (partial_die_info::fixup): Inherit has_const_value.
11275
5707e24b
TV
112762020-04-07 Tom de Vries <tdevries@suse.de>
11277
11278 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11279 symbols without address.
11280
05f00e22
KR
112812020-04-06 Kamil Rytarowski <n54@gmx.com>
11282
11283 * nbsd-nat.h (struct thread_info): Add forward declaration.
11284 (nbsd_nat_target::thread_alive): Add.
11285 (nbsd_nat_target::thread_name): Likewise.
11286 (nbsd_nat_target::update_thread_list): Likewise.
11287 (update_thread_list::post_attach): Likewise.
11288 (post_attach::pid_to_str): Likewise.
11289 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11290 (nbsd_thread_lister): Add.
11291 (nbsd_nat_target::thread_alive): Likewise.
11292 (nbsd_nat_target::thread_name): Likewise.
11293 (nbsd_add_threads): Likewise.
11294 (update_thread_list::post_attach): Likewise.
11295 (nbsd_nat_target::update_thread_list): Likewise.
11296 (post_attach::pid_to_str): Likewise.
11297
6ee448cc
TT
112982020-04-06 Tom Tromey <tromey@adacore.com>
11299
11300 * ada-valprint.c (print_variant_part): Extract the variant field.
11301 (print_field_values): Use the field as the outer value when
11302 recursing.
11303
dea34e8c
TT
113042020-04-06 Tom Tromey <tromey@adacore.com>
11305
11306 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11307 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11308 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11309 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11310 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11311
93689ce9
TT
113122020-04-06 Tom Tromey <tromey@adacore.com>
11313
11314 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11315 TYPE_CODE_ERROR.
11316
79743962
KR
113172020-04-06 Kamil Rytarowski <n54@gmx.com>
11318
11319 * nbsd-tdep.c: Include "gdbarch.h".
11320 Define enum with NetBSD signal numbers.
11321 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11322 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11323 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11324 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11325 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11326 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11327 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11328 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11329 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11330 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11331 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11332 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11333
9e7c9a03
HD
113342020-04-03 Hannes Domani <ssbssa@yahoo.de>
11335
11336 PR gdb/25325
11337 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11338
d9e49b61
TT
113392020-04-03 Tom Tromey <tromey@adacore.com>
11340
11341 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11342 Read constant block.
11343
e0fc5c3f
SM
113442020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11345
11346 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11347 (gdb_bfd_get_full_section_contents): New declaration.
11348 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11349 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11350 gdb_bfd_get_full_section_contents.
11351
e2ff18a0
SM
113522020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11353
11354 * exec.c (build_section_table): Replace internal_error with
11355 gdb_assert.
11356 (section_table_xfer_memory_partial): Likewise.
11357 * mdebugread.c (parse_partial_symbols): Likewise.
11358 * psymtab.c (lookup_partial_symbol): Likewise.
11359 * utils.c (wrap_here): Likewise.
11360
0830d301
TT
113612020-04-02 Tom Tromey <tromey@adacore.com>
11362
11363 * f-lang.c (build_fortran_types): Use arch_type to initialize
11364 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11365
e7da7f8f
TT
113662020-04-02 Tom Tromey <tromey@adacore.com>
11367
11368 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11369 of attributes.
11370
c90d28ac
AB
113712020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11372 Bernd Edlinger <bernd.edlinger@hotmail.de>
11373 Tom Tromey <tromey@adacore.com>
11374
11375 * buildsym.c (buildsym_compunit::record_line): Remove
11376 deduplication code.
11377
1aa98955
TV
113782020-04-02 Tom de Vries <tdevries@suse.de>
11379
11380 PR ada/24671
11381 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11382
d3214198
TV
113832020-04-02 Tom de Vries <tdevries@suse.de>
11384
11385 * dwarf2/read.c (dwarf2_gdb_index_functions,
11386 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11387 NULL.
11388 * psymtab.c (psym_lookup_global_symbol_language): New function.
11389 (psym_functions): Init psym_lookup_global_symbol_language with
11390 psym_lookup_global_symbol_language.
11391 * symfile-debug.c (debug_sym_quick_functions): Init
11392 lookup_global_symbol_language with NULL.
11393 * symfile.c (set_initial_language): Remove fixme comment.
11394 * symfile.h (struct quick_symbol_functions): Add
11395 lookup_global_symbol_language.
11396 * symtab.c (find_quick_global_symbol_language): New function.
11397 (find_main_name): Use find_quick_global_symbol_language.
11398
2836752f
SM
113992020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11400
11401 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11402
64dc2d4b
BE
114032020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11404
11405 * buildsym.c (record_line): Fix undefined behavior and preserve
11406 lines at eof.
11407
bbe3dc41
BE
114082020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11409
11410 * buildsym.c (record_line): Fix the resizing condition.
11411
6b4a335b
TT
114122020-04-01 Tom Tromey <tom@tromey.com>
11413
11414 * value.h (value_literal_complex): Add comment.
11415 * valops.c (value_literal_complex): Refer to value.h.
11416
3638a098
TT
114172020-04-01 Tom Tromey <tom@tromey.com>
11418
11419 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11420 (scalar_type): New rule, from typebase.
11421 (typebase): Use scalar_type. Recognize complex types.
11422 (field_name): Handle FLOAT_KEYWORD.
11423 (ident_tokens): Add _Complex and __complex__.
11424
c34e8714
TT
114252020-04-01 Tom Tromey <tom@tromey.com>
11426
11427 PR exp/25299:
11428 * valarith.c (promotion_type, complex_binop): New functions.
11429 (scalar_binop): Handle complex numbers. Use promotion_type.
11430 (value_pos, value_neg, value_complement): Handle complex numbers.
11431
fa649bb7
TT
114322020-04-01 Tom Tromey <tom@tromey.com>
11433
11434 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11435 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11436 (parse_number): Handle complex numbers.
11437
981c08ce
TT
114382020-04-01 Tom Tromey <tom@tromey.com>
11439
11440 * c-valprint.c (c_decorations): Change complex suffix to "i".
11441
4c99290d
TT
114422020-04-01 Tom Tromey <tom@tromey.com>
11443
11444 * valprint.c (generic_value_print_complex): Use accessors.
11445 * value.h (value_real_part, value_imaginary_part): Declare.
11446 * valops.c (value_real_part, value_imaginary_part): New
11447 functions.
11448 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11449
5b930b45
TT
114502020-04-01 Tom Tromey <tom@tromey.com>
11451
11452 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11453 (read_range_type): Update.
11454 * mdebugread.c (basic_type): Update.
11455 * go-lang.c (build_go_types): Use init_complex_type.
11456 * gdbtypes.h (struct main_type) <complex_type>: New member.
11457 (init_complex_type): Update.
11458 (arch_complex_type): Don't declare.
11459 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11460 Make name if none given. Use alloc_type_copy. Look for cached
11461 complex type.
11462 (arch_complex_type): Remove.
11463 (gdbtypes_post_init): Use init_complex_type.
11464 * f-lang.c (build_fortran_types): Use init_complex_type.
11465 * dwarf2/read.c (read_base_type): Update.
11466 * d-lang.c (build_d_types): Use init_complex_type.
11467 * ctfread.c (read_base_type): Update.
11468
53cccef1
TBA
114692020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11470
11471 * infrun.c (stop_all_threads): Update assertion, plus when
11472 stopping threads, take into account that we might be trying
11473 to stop an all-stop target.
11474 (stop_waiting): Call 'stop_all_threads' if there exists a
11475 non-stop target.
11476
a0714d30
TBA
114772020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11478
11479 * target.h (exists_non_stop_target): New function declaration.
11480 * target.c (exists_non_stop_target): New function.
11481
60e22c1e
HD
114822020-04-01 Hannes Domani <ssbssa@yahoo.de>
11483
11484 PR gdb/24789
11485 * eval.c (is_integral_or_integral_reference): New function.
11486 (evaluate_subexp_standard): Allow integer references in
11487 pointer arithmetic.
11488
e139a727
TBA
114892020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11490
11491 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11492 check for no ptid in the stop reply when the target is non-stop.
11493
e0802d59
TT
114942020-04-01 Tom Tromey <tromey@adacore.com>
11495
11496 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11497 "name" parameter to rvalue reference. Initialize m_name_holder.
11498 <lookup_name_info>: New overloads.
11499 <name>: Return gdb::string_view.
11500 <c_str>: New method.
11501 <make_ignore_params>: Update.
11502 <search_name_hash>: Update.
11503 <language_lookup_name>: Return const char *.
11504 <m_name>: Change type.
11505 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11506 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11507 (lookup_name_info::match_any): Update.
11508 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11509 Update.
11510 * minsyms.c (linkage_name_str): Update.
11511 * language.c (default_symbol_name_matcher): Update.
11512 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11513 Update.
11514 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11515 (ada_lookup_name_info::ada_lookup_name_info): Update.
11516 (literal_symbol_name_matcher): Update.
11517
8c072cb6
TT
115182020-04-01 Tom Tromey <tromey@adacore.com>
11519
11520 * psymtab.c (psymtab_search_name): Remove function.
11521 (psym_lookup_symbol): Create search name and lookup name here.
11522 (lookup_partial_symbol): Remove "name" parameter; add
11523 lookup_name.
11524 (psym_expand_symtabs_for_function): Update.
11525
6f29a534
TT
115262020-03-31 Joel Jones <joelkevinjones@gmail.com>
11527
11528 PR tui/25597:
11529 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11530
af62665e
TT
115312020-03-31 Tom Tromey <tromey@adacore.com>
11532
11533 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11534 memcpy.
11535
d1a89da5
NC
115362020-03-30 Nelson Chu <nelson.chu@sifive.com>
11537
11538 * features/riscv/32bit-csr.xml: Regenerated.
11539 * features/riscv/64bit-csr.xml: Regenerated.
11540
d8af9068
TT
115412020-03-30 Tom Tromey <tromey@adacore.com>
11542
11543 * ada-valprint.c (print_variant_part): Update.
11544 * ada-lang.h (ada_which_variant_applies): Update.
11545 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11546 outer_valaddr parameters; replace with "outer" value parameter.
11547 (to_fixed_variant_branch_type): Update.
11548
227c0bf4
PFC
115492020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11550
11551 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11552 <list>. Remove inclusion of observable.h.
11553 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11554 (struct arch_lwp_info): New struct.
11555 (class ppc_linux_dreg_interface): New class.
11556 (struct ppc_linux_process_info): New struct.
11557 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11558 <low_new_clone, low_forget_process, low_prepare_to_resume>
11559 <copy_thread_dreg_state, mark_thread_stale>
11560 <mark_debug_registers_changed, register_hw_breakpoint>
11561 <clear_hw_breakpoint, register_wp, clear_wp>
11562 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11563 <num_memory_accesses, get_trigger_type>
11564 <create_watchpoint_request, hwdebug_point_cmp>
11565 <init_arch_lwp_info, get_arch_lwp_info>
11566 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11567 methods.
11568 <struct ptid_hash>: New inner struct.
11569 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11570 members.
11571 (saved_dabr_value, hwdebug_info, max_slots_number)
11572 (struct hw_break_tuple, struct thread_points, ppc_threads)
11573 (have_ptrace_hwdebug_interface)
11574 (hwdebug_find_thread_points_by_tid)
11575 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11576 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11577 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11578 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11579 use m_dreg_interface.
11580 (hwdebug_point_cmp): Change to...
11581 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11582 reference arguments instead of pointers.
11583 (ppc_linux_nat_target::ranged_break_num_registers): Use
11584 m_dreg_interface.
11585 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11586 m_dreg_interface. Call register_hw_breakpoint.
11587 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11588 m_dreg_interface. Call clear_hw_breakpoint.
11589 (get_trigger_type): Change to...
11590 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11591 comment.
11592 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11593 use m_dreg_interface. Call register_hw_breakpoint.
11594 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11595 use m_dreg_interface. Call clear_hw_breakpoint.
11596 (can_use_watchpoint_cond_accel): Change to...
11597 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11598 method. Update comment, use m_dreg_interface and
11599 m_process_info.
11600 (calculate_dvc): Change to...
11601 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11602 m_dreg_interface.
11603 (num_memory_accesses): Change to...
11604 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11605 (check_condition): Change to...
11606 (ppc_linux_nat_target::check_condition): ...this method.
11607 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11608 comment, use m_dreg_interface.
11609 (create_watchpoint_request): Change to...
11610 (ppc_linux_nat_target::create_watchpoint_request): ...this
11611 method. Use m_dreg_interface.
11612 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11613 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11614 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11615 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11616 (ppc_linux_nat_target::low_forget_process)
11617 (ppc_linux_nat_target::low_new_fork)
11618 (ppc_linux_nat_target::low_new_clone)
11619 (ppc_linux_nat_target::low_delete_thread)
11620 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11621 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11622 only call mark_thread_stale.
11623 (ppc_linux_thread_exit): Remove.
11624 (ppc_linux_nat_target::stopped_data_address): Change to...
11625 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11626 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11627 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11628 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11629 comment. Call low_stopped_data_address.
11630 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11631 m_dreg_interface.
11632 (ppc_linux_nat_target::masked_watch_num_registers): Use
11633 m_dreg_interface.
11634 (ppc_linux_nat_target::copy_thread_dreg_state)
11635 (ppc_linux_nat_target::mark_thread_stale)
11636 (ppc_linux_nat_target::mark_debug_registers_changed)
11637 (ppc_linux_nat_target::register_hw_breakpoint)
11638 (ppc_linux_nat_target::clear_hw_breakpoint)
11639 (ppc_linux_nat_target::register_wp)
11640 (ppc_linux_nat_target::clear_wp)
11641 (ppc_linux_nat_target::init_arch_lwp_info)
11642 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11643 (_initialize_ppc_linux_nat): Remove observer callback.
11644
4db10d8f
PFC
116452020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11646
11647 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11648 (ppc_linux_nat_target::auxv_parse)
11649 (ppc_linux_nat_target::read_description)
11650 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11651 Move up.
11652
1310c1b0
PFC
116532020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11654
11655 * linux-nat.h (low_new_clone): New method.
11656 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11657
69b037c3
SM
116582020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11659
11660 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11661 (dbx_expand_psymtab): ... this.
11662 (start_psymtab): Update.
11663 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11664 (mdebug_expand_psymtab): ... this.
11665 (parse_partial_symbols): Update.
11666 (new_psymtab): Update.
11667 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11668 (xcoff_expand_psymtab): ... this.
11669 (xcoff_start_psymtab): Update.
11670
48993951
SM
116712020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11672
11673 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11674 <expand_dependencies>: ... this.
11675 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11676 (partial_symtab::expand_dependencies): ... this.
11677 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11678 Update.
11679 (dwarf2_psymtab::expand_psymtab): Update.
11680 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11681 * mdebugread.c (psymtab_to_symtab_1): Update.
11682 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11683
3ad83046
SM
116842020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11685
11686 * psympriv.h (discard_psymtab): Remove.
11687 * dbxread.c (dbx_end_psymtab): Update.
11688 * xcoffread.c (xcoff_end_psymtab): Update.
11689
4d1b9ab6
TT
116902020-03-28 Tom Tromey <tom@tromey.com>
11691
11692 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11693 comment.
11694
f1749218
TT
116952020-03-28 Tom Tromey <tom@tromey.com>
11696
11697 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11698
ebea7626
HD
116992020-03-27 Hannes Domani <ssbssa@yahoo.de>
11700
11701 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11702
a879b4d5
JB
117032020-03-26 John Baldwin <jhb@FreeBSD.org>
11704
11705 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11706
0826b30a
TT
117072020-03-26 Tom Tromey <tom@tromey.com>
11708
11709 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11710 (mark_common_block_symbol_computed, read_tag_string_type)
11711 (attr_to_dynamic_prop, read_subrange_type): Update.
11712 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11713 to be methods on struct attribute.
11714 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11715 (read_call_site_scope, partial_die_info::read)
11716 (partial_die_info::read, lookup_die_type, follow_die_ref):
11717 Update.
11718 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11719 from dwarf2_get_ref_die_offset.
11720 (attribute::constant_value): New method, from
11721 dwarf2_get_attr_constant_value.
11722 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11723 Declare method.
11724 <constant_value>: New method.
11725
2b2558bf
TT
117262020-03-26 Tom Tromey <tom@tromey.com>
11727
11728 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11729 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11730 (dwarf_type_encoding_name): Move to stringify.c.
11731 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11732 * dwarf2/stringify.c: New file.
11733 * dwarf2/stringify.h: New file.
11734
eeb64781
TT
117352020-03-26 Tom Tromey <tom@tromey.com>
11736
11737 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11738 Rewrite.
11739
a39fdb41
TT
117402020-03-26 Tom Tromey <tom@tromey.com>
11741
11742 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11743 methods.
11744 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11745 (lookup_ranges_base): Likewise.
11746 (read_cutu_die_from_dwo, read_full_die_1): Update.
11747
436c571c
TT
117482020-03-26 Tom Tromey <tom@tromey.com>
11749
11750 * dwarf2/read.c (read_import_statement, read_file_scope)
11751 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11752 (read_lexical_block_scope, read_call_site_scope)
11753 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11754 (handle_struct_member_die, process_structure_scope)
11755 (update_enumeration_type_from_children)
11756 (process_enumeration_scope, read_array_type, read_common_block)
11757 (read_namespace, read_module, read_subroutine_type): Update.
11758 (sibling_die): Remove.
11759
052c8bb8
TT
117602020-03-26 Tom Tromey <tom@tromey.com>
11761
11762 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11763 (build_type_psymtabs_reader, read_structure_type)
11764 (read_enumeration_type, read_full_die_1): Update.
11765 (dwarf2_attr_no_follow): Move to die.h.
11766 * dwarf2/die.h (struct die_info) <attr>: New method.
11767
2b24b6e4
TT
117682020-03-26 Tom Tromey <tom@tromey.com>
11769
11770 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11771 <base_address>: Now an optional.
11772 (dwarf2_find_base_address, dwarf2_rnglists_process)
11773 (dwarf2_ranges_process, fill_in_loclist_baton)
11774 (dwarf2_symbol_mark_computed): Update.
11775
c2d50fd0
TT
117762020-03-26 Tom Tromey <tom@tromey.com>
11777
11778 * dwarf2/read.c (struct die_info): Move to die.h.
11779 * dwarf2/die.h: New file.
11780
0df7ad3a
TT
117812020-03-26 Tom Tromey <tom@tromey.com>
11782
11783 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11784 * dwarf2/read.c
11785 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11786 Move to line-header.c.
11787 (read_checked_initial_length_and_offset, read_formatted_entries):
11788 Likewise.
11789 (dwarf_decode_line_header): Split into two.
11790 * dwarf2/line-header.c
11791 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11792 Move from read.c.
11793 (read_checked_initial_length_and_offset, read_formatted_entries):
11794 Likewise.
11795 (dwarf_decode_line_header): New function, split from read.c.
11796
86c0bb4c
TT
117972020-03-26 Tom Tromey <tom@tromey.com>
11798
11799 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11800 Declare method.
11801 * dwarf2/read.c (read_attribute_value): Update.
11802 (dwarf2_per_objfile::read_line_string): Rename from
11803 read_indirect_line_string.
11804 (read_formatted_entries): Update.
11805
2ef46c2f
TT
118062020-03-26 Tom Tromey <tom@tromey.com>
11807
11808 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11809 variable.
11810
4f9c1eda
TT
118112020-03-26 Tom Tromey <tom@tromey.com>
11812
11813 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11814 const.
11815 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11816 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11817 parameter const.
11818
5a0e026f
TT
118192020-03-26 Tom Tromey <tom@tromey.com>
11820
11821 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11822 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11823 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11824 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11825
8844c11b
TT
118262020-03-26 Tom Tromey <tom@tromey.com>
11827
11828 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11829 file_names_size, file_full_name, file_file_name>: Use const.
11830 <file_name_at, file_names>: Add const overload.
11831 * dwarf2/line-header.c (line_header::file_file_name)
11832 (line_header::file_full_name): Update.
11833
c90ec28a
TT
118342020-03-26 Tom Tromey <tom@tromey.com>
11835
11836 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11837 (macro_start_file, consume_improper_spaces)
11838 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11839 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11840 (dwarf_decode_macros): Move to macro.c.
11841 * dwarf2/macro.c: New file.
11842 * dwarf2/macro.h: New file.
11843 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11844
4f44ae6c
TT
118452020-03-26 Tom Tromey <tom@tromey.com>
11846
11847 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11848 method.
11849 * dwarf2/section.c: New method. From
11850 read_indirect_string_at_offset_from.
11851 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11852 (read_indirect_string_at_offset_from): Move to section.c.
11853 (read_indirect_string_at_offset): Rewrite.
11854 (read_indirect_line_string_at_offset): Remove.
11855 (read_indirect_string, read_indirect_line_string)
11856 (dwarf_decode_macro_bytes): Update.
11857
a0194fa8
TT
118582020-03-26 Tom Tromey <tom@tromey.com>
11859
11860 * dwarf2/section.h (struct dwarf2_section_info)
11861 <overload_complaint>: Declare.
11862 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11863 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11864 Rename from dwarf2_section_buffer_overflow_complaint.
11865 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11866 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11867
3d27bbdb
TT
118682020-03-26 Tom Tromey <tom@tromey.com>
11869
11870 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11871 Declare.
11872 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11873 Move from read.c.
11874 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11875 to section.c.
11876
9eac9650
TT
118772020-03-26 Tom Tromey <tom@tromey.com>
11878
11879 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11880
bf80d710
TT
118812020-03-26 Tom Tromey <tom@tromey.com>
11882
11883 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11884 "builder".
11885 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11886 parameter.
11887 (dwarf_decode_macros): Update.
11888
0314b390
TT
118892020-03-26 Tom Tromey <tom@tromey.com>
11890
11891 * dwarf2/read.c (read_attribute_value): Update.
11892 (read_indirect_string_from_dwz): Move to dwz.c; change into
11893 method.
11894 (dwarf_decode_macro_bytes): Update.
11895 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11896 * dwarf2/dwz.c: New file.
11897 * Makefile.in (COMMON_SFILES): Add dwz.c.
11898
9fda78b6
TT
118992020-03-26 Tom Tromey <tom@tromey.com>
11900
11901 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11902 * dwarf2/read.c: Add include.
11903 * dwarf2/index-write.c: Add include.
11904 * dwarf2/index-cache.c: Add include.
11905 * dwarf2/dwz.h: New file.
11906
33aa3c10
TT
119072020-03-25 Tom Tromey <tom@tromey.com>
11908
11909 * compile/compile-object-load.c (get_out_value_type): Mention
11910 correct symbol name in error message.
11911
d503b685
HD
119122020-03-25 Hannes Domani <ssbssa@yahoo.de>
11913
11914 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11915
7b1eff95
TV
119162020-03-25 Tom de Vries <tdevries@suse.de>
11917
11918 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11919 * symmisc.c (dump_symtab_1): Print user and includes fields.
11920 (maintenance_info_symtabs): Same.
11921
dd895392
AB
119222020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11923
11924 PR gdb/25534
11925 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11926 (riscv_regcache_cooked_write): New function.
11927 (riscv_push_dummy_call): Use new function.
11928 (riscv_return_value): Likewise.
11929
5ab2fbf1
SM
119302020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11931
11932 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11933 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11934 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11935 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11936 * infrun.c (follow_fork): Likewise.
11937 (follow_fork_inferior): Likewise.
11938 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11939 * linux-nat.h (class linux_nat_target): Likewise.
11940 * remote.c (class remote_target) <follow_fork>: Likewise.
11941 (remote_target::follow_fork): Likewise.
11942 * target-delegates.c: Re-generate.
11943 * target.c (default_follow_fork): Likewise.
11944 (target_follow_fork): Likewise.
11945 * target.h (struct target_ops) <follow_fork>: Likewise.
11946 (target_follow_fork): Likewise.
11947
a64fafb5
TV
119482020-03-24 Tom de Vries <tdevries@suse.de>
11949
11950 * psymtab.c (maintenance_info_psymtabs): Print user field.
11951
fe26d3a3
TT
119522020-03-20 Tom Tromey <tromey@adacore.com>
11953
11954 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11955 const.
11956 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11957 const.
11958
c884cc46
SM
119592020-03-20 Simon Marchi <simon.marchi@efficios.com>
11960
11961 * ptrace.m4: Don't check for ptrace declaration.
11962 * config.in: Re-generate.
11963 * configure: Re-generate.
11964 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11965 not defined.
11966
1ff700c2
KR
119672020-03-20 Kamil Rytarowski <n54@gmx.com>
11968
11969 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11970 `PTRACE_TYPE_RET'.
11971 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11972 * sparc-nat.c (gdb_ptrace): Likewise.
11973 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11974
f7d4f0b1
TT
119752020-03-20 Tom Tromey <tromey@adacore.com>
11976
11977 * c-exp.y (lex_one_token): Fix assert.
11978
f67210ff
TT
119792020-03-20 Tom Tromey <tromey@adacore.com>
11980
11981 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11982 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11983 strncpy call.
11984
1773be9e
TT
119852020-03-20 Tom Tromey <tromey@adacore.com>
11986
11987 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11988
70304be9
TT
119892020-03-20 Tom Tromey <tromey@adacore.com>
11990
11991 * ada-valprint.c (print_variant_part): Remove parameters; switch
11992 to value-based API.
11993 (print_field_values): Likewise.
11994 (ada_val_print_struct_union): Likewise.
11995 (ada_value_print_1): Update.
11996
9faa006d
KR
119972020-03-20 Kamil Rytarowski <n54@gmx.com>
11998
11999 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12000 nbsd_nat_target instead of inf_ptrace_target.
12001 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12002 nbsd_nat_target.
12003
4a90f062
KR
120042020-03-20 Kamil Rytarowski <n54@gmx.com>
12005
12006 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12007 it to the ptrace call.
12008 * (store_registers): Likewise.
12009
120102020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12011
12012 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12013 it to the ptrace call.
12014 * (store_registers): Likewise.
12015
2d07da27
LM
120162020-03-19 Luis Machado <luis.machado@linaro.org>
12017
12018 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12019 valid, fetch vg value from ptrace.
12020
f09db380
KR
120212020-03-19 Kamil Rytarowski <n54@gmx.com>
12022 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12023 * inf-ptrace.c: Likewise.
12024 * (gdb_ptrace): Add.
12025 * (inf_ptrace_target::resume): Update.
12026 * (inf_ptrace_target::xfer_partial): Likewise.
12027 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12028 * (inf_ptrace_peek_poke): Update.
12029
fcc7376e
KR
120302020-03-19 Kamil Rytarowski <n54@gmx.com>
12031
12032 * x86-bsd-nat.c (gdb_ptrace): New.
12033 * (x86bsd_dr_set): Add new argument `ptid'.
12034 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12035 x86bsd_dr_set_addr): Update.
12036
cada5fc9
AB
120372020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12038
12039 * remote.c (remote_target::process_stop_reply): Handle events for
12040 all threads differently.
12041
19a2740f
AB
120422020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12043
12044 * completer.c (completion_tracker::remove_completion): Define new
12045 function.
12046 * completer.h (completion_tracker::remove_completion): Declare new
12047 function.
12048 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12049 when adding a C++ function symbol.
12050
724fd9ba
AB
120512020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12052
12053 * completer.c (completion_tracker::completion_hash_entry): Define
12054 new class.
12055 (advance_to_filename_complete_word_point): Call
12056 recompute_lowest_common_denominator.
12057 (completion_tracker::completion_tracker): Call discard_completions
12058 to setup the hash table.
12059 (completion_tracker::discard_completions): Allow for being called
12060 from the constructor, pass new equal function, and element deleter
12061 when constructing the hash table. Initialise new class member
12062 variables.
12063 (completion_tracker::maybe_add_completion): Remove use of
12064 m_entries_vec, and store more information into m_entries_hash.
12065 (completion_tracker::recompute_lcd_visitor): New function, most
12066 content taken from...
12067 (completion_tracker::recompute_lowest_common_denominator):
12068 ...here, this now just visits each item in the hash calling the
12069 above visitor.
12070 (completion_tracker::build_completion_result): Remove use of
12071 m_entries_vec, call recompute_lowest_common_denominator.
12072 * completer.h (completion_tracker::have_completions): Remove use
12073 of m_entries_vec.
12074 (completion_tracker::completion_hash_entry): Declare new class.
12075 (completion_tracker::recompute_lowest_common_denominator): Change
12076 function signature.
12077 (completion_tracker::recompute_lcd_visitor): Declare new function.
12078 (completion_tracker::m_entries_vec): Delete.
12079 (completion_tracker::m_entries_hash): Initialize to NULL.
12080 (completion_tracker::m_lowest_common_denominator_valid): New
12081 member variable.
12082 (completion_tracker::m_lowest_common_denominator_max_length): New
12083 member variable.
12084
5a82b8a1
KR
120852020-03-17 Kamil Rytarowski <n54@gmx.com>
12086
12087 * regformats/regdef.h: Put reg in gdb namespace.
12088
fb516a69
KR
120892020-03-17 Kamil Rytarowski <n54@gmx.com>
12090
12091 * i386-bsd-nat.c (gdb_ptrace): New.
12092 * (i386bsd_fetch_inferior_registers,
12093 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12094 * (i386bsd_fetch_inferior_registers,
12095 i386bsd_store_inferior_registers) Use gdb_ptrace.
12096
1c0aa1fb
KR
120972020-03-17 Kamil Rytarowski <n54@gmx.com>
12098
12099 * amd64-bsd-nat.c (gdb_ptrace): New.
12100 * (amd64bsd_fetch_inferior_registers,
12101 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12102 * (amd64bsd_fetch_inferior_registers,
12103 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12104
5ccd2fb7
KR
121052020-03-17 Kamil Rytarowski <n54@gmx.com>
12106
12107 * user-regs.c (user_reg::read): Rename to...
12108 (user_reg::xread): ...this.
12109 * (append_user_reg): Rename argument `read' to `xread'.
12110 * (user_reg_add_builtin): Likewise.
12111 * (user_reg_add): Likewise.
12112 * (value_of_user_reg): Likewise.
12113
2108a63a
KR
121142020-03-17 Kamil Rytarowski <n54@gmx.com>
12115
12116 * sparc-nat.c (gdb_ptrace): New.
12117 * sparc-nat.c (sparc_fetch_inferior_registers)
12118 (sparc_store_inferior_registers) Remove obsolete comment.
12119 * sparc-nat.c (sparc_fetch_inferior_registers)
12120 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12121 * sparc-nat.c (sparc_fetch_inferior_registers)
12122 (sparc_store_inferior_registers) Use gdb_ptrace.
12123
a225c9a8
KR
121242020-03-17 Kamil Rytarowski <n54@gmx.com>
12125
12126 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12127 it to the ptrace call.
12128 * sh-nbsd-nat.c (store_registers): Likewise.
12129
98097623
KR
121302020-03-17 Kamil Rytarowski <n54@gmx.com>
12131
12132 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12133 nbsd_nat_target instead of inf_ptrace_target.
12134 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12135 nbsd_nat_target.
12136
9e38d619
KR
121372020-03-17 Kamil Rytarowski <n54@gmx.com>
12138
12139 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12140
a2ecbe9f
KR
121412020-03-17 Kamil Rytarowski <n54@gmx.com>
12142
12143 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12144 <sys/sysctl.h>.
12145 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12146
58990295
TV
121472020-03-17 Tom de Vries <tdevries@suse.de>
12148
12149 PR gdb/23710
12150 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12151 fields.
12152 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12153 fields.
12154 (process_imported_unit_die): Skip import of c++ CUs.
12155
771dd3a8
TT
121562020-03-16 Tom Tromey <tom@tromey.com>
12157
12158 * p-valprint.c (pascal_object_print_value): Initialize
12159 base_value.
12160
817a7585
AK
121612020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12162 Shahab Vahedi <shahab@synopsys.com>
12163
12164 * Makefile.in: Add arch/arc.o
12165 * configure.tgt: Likewise.
12166 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12167 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12168 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12169 * arc-tdep.h (arc_read_description): Add proto type.
12170 * arch/arc.c: New file.
12171 * arch/arc.h: Likewise.
12172 * features/Makefile: Replace old target descriptions with new.
12173 * features/arc-arcompact.c: Remove.
12174 * features/arc-arcompact.xml: Likewise.
12175 * features/arc-v2.c: Likewise
12176 * features/arc-v2.xml: Likewise
12177 * features/arc/aux-arcompact.xml: New file.
12178 * features/arc/aux-v2.xml: Likewise.
12179 * features/arc/core-arcompact.xml: Likewise.
12180 * features/arc/core-v2.xml: Likewise.
12181 * features/arc/aux-arcompact.c: Generate.
12182 * features/arc/aux-v2.c: Likewise.
12183 * features/arc/core-arcompact.c: Likewise.
12184 * features/arc/core-v2.c: Likewise.
12185 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12186
67430cd0
TT
121872020-03-16 Tom Tromey <tromey@adacore.com>
12188
12189 PR gdb/25663:
12190 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12191 putting value into bcache.
12192
30efb6c7
SM
121932020-03-16 Simon Marchi <simon.marchi@efficios.com>
12194
12195 PR gdb/21500
12196 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12197 to...
12198 (amd64_windows_init_abi_common): ... this. Don't set size of
12199 long type.
12200 (amd64_windows_init_abi): New function.
12201 (amd64_cygwin_init_abi): New function.
12202 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12203 the Cygwin OS ABI.
12204 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12205 comment.
12206
8db52437
SM
122072020-03-16 Simon Marchi <simon.marchi@efficios.com>
12208
12209 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12210 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12211 (pe_import_directory_entry): New struct type.
12212 (is_linked_with_cygwin_dll): New function.
12213 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12214 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12215 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12216
5982a56a
SM
122172020-03-16 Simon Marchi <simon.marchi@efficios.com>
12218
12219 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12220 i386_cygwin_core_osabi_sniffer.
12221
7a1998df
SM
122222020-03-16 Simon Marchi <simon.marchi@efficios.com>
12223
12224 * i386-cygwin-tdep.c: Rename to...
12225 * i386-windows-tdep.c: ... this.
12226 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12227 i386-windows-tdep.c.
12228 * configure.tgt: Likewise.
12229
053205cc
SM
122302020-03-16 Simon Marchi <simon.marchi@efficios.com>
12231
12232 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12233 * osabi.c (gdb_osabi_names): Add "Windows".
12234 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12235 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12236 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12237 i386_cygwin_osabi_sniffer.
12238 (_initialize_i386_cygwin_tdep): Register OS ABI
12239 GDB_OSABI_WINDOWS for i386.
12240 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12241 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12242 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12243 for x86-64.
12244 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12245 when the target matches '*-*-mingw*'.
12246
fe4b2ee6
SM
122472020-03-16 Simon Marchi <simon.marchi@efficios.com>
12248
12249 * defs.h (enum gdb_osabi): Move to...
12250 * osabi.h (enum gdb_osabi): ... here.
12251 * gdbarch.sh: Include osabi.h in gdbarch.h.
12252 * gdbarch.h: Re-generate.
12253
cb9b645d
SM
122542020-03-16 Simon Marchi <simon.marchi@efficios.com>
12255
12256 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12257 function.
12258 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12259
3293bbaf
TT
122602020-03-14 Tom Tromey <tom@tromey.com>
12261
12262 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12263 for C++.
12264 (c_type_print_modifier): Likewise. Add "language" parameter.
12265 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12266 (c_type_print_base_1): Update.
12267 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12268 constants.
12269 * type-stack.c (type_stack::insert): Handle tp_atomic and
12270 tp_restrict.
12271 (type_stack::follow_type_instance_flags): Likewise.
12272 (type_stack::follow_types): Likewise. Merge type-following code.
12273 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12274 (space_identifier, cv_with_space_id)
12275 (const_or_volatile_or_space_identifier_noopt)
12276 (const_or_volatile_or_space_identifier): Remove.
12277 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12278 rules.
12279 (ptr_operator, typebase): Update.
12280 (enum token_flag) <FLAG_C>: New constant.
12281 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12282 "_Atomic".
12283 (lex_one_token): Handle FLAG_C.
12284
154151a6
KR
122852020-03-14 Kamil Rytarowski <n54@gmx.com>
12286
12287 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12288 it to the ptrace call.
12289 * m68k-bsd-nat.c (store_registers): Likewise.
12290
bc107784
KR
122912020-03-14 Kamil Rytarowski <n54@gmx.com>
12292
12293 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12294 gdb_byte *.
12295 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12296 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12297 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12298
01a80117
KR
122992020-03-14 Kamil Rytarowski <n54@gmx.com>
12300
12301 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12302 nbsd_nat_target instead of inf_ptrace_target.
12303 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12304 nbsd_nat_target.
12305
f90280ca
KR
123062020-03-14 Kamil Rytarowski <n54@gmx.com>
12307
12308 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12309 register_t.
12310
6def66f1
KR
123112020-03-14 Kamil Rytarowski <n54@gmx.com>
12312
12313 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12314 it to the ptrace call.
12315 * alpha-bsd-nat.c (store_registers): Likewise.
12316
66eaca97
KR
123172020-03-14 Kamil Rytarowski <n54@gmx.com>
12318
12319 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12320 includes.
12321 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12322 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12323 fill_fpregset): Likewise.
12324
4fed520b
KR
123252020-03-14 Kamil Rytarowski <n54@gmx.com>
12326
12327 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12328 nbsd_nat_target instead of inf_ptrace_target.
12329 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12330 nbsd_nat_target.
12331
2190cf06
KR
123322020-03-14 Kamil Rytarowski <n54@gmx.com>
12333
12334 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12335 register_t.
12336
75c56d3d
KR
123372020-03-14 Kamil Rytarowski <n54@gmx.com>
12338
12339 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12340 it to the ptrace call.
12341 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12342 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12343 * arm-nbsd-nat.c (store_register): Likewise.
12344 * arm-nbsd-nat.c (store_regs): Likewise.
12345 * arm-nbsd-nat.c (store_fp_register): Likewise.
12346 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12347
6018d381
KR
123482020-03-14 Kamil Rytarowski <n54@gmx.com>
12349
12350 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12351 nbsd_nat_target instead of inf_ptrace_target.
12352 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12353 nbsd_nat_target.
12354
013f99f0
KR
123552020-03-14 Kamil Rytarowski <n54@gmx.com>
12356
12357 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12358 it to the ptrace call.
12359 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12360
12753073
KR
123612020-03-14 Kamil Rytarowski <n54@gmx.com>
12362
6227b330
KR
12363 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12364 it to the ptrace call.
12365 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12366
123672020-03-14 Kamil Rytarowski <n54@gmx.com>
12368
12369 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12370 gdb_byte *.
12753073
KR
12371 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12372
d5be5fa4
KR
123732020-03-14 Kamil Rytarowski <n54@gmx.com>
12374
12375 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12376 instead of inf_ptrace_target.
12377 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12378 nbsd_nat_target.
12379
8110f842
KR
123802020-03-14 Kamil Rytarowski <n54@gmx.com>
12381
12382 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12383 register_t.
12384
52feded7
KR
123852020-03-14 Kamil Rytarowski <n54@gmx.com>
12386
12387 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12388 register_t.
12389
25567eee
KR
123902020-03-14 Kamil Rytarowski <n54@gmx.com>
12391
12392 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12393 register_t.
12394
426a9c18
TT
123952020-03-13 Tom Tromey <tom@tromey.com>
12396
12397 * value.h (val_print): Don't declare.
12398 * valprint.h (val_print_array_elements)
12399 (val_print_scalar_formatted, generic_val_print): Don't declare.
12400 * valprint.c (generic_val_print_array): Take a struct value.
12401 (generic_val_print_ptr, generic_val_print_memberptr)
12402 (generic_val_print_bool, generic_val_print_int)
12403 (generic_val_print_char, generic_val_print_complex)
12404 (generic_val_print): Remove.
12405 (generic_value_print): Update.
12406 (do_val_print): Remove unused parameters. Don't call
12407 la_val_print.
12408 (val_print): Remove.
12409 (common_val_print): Update. Don't call value_check_printable.
12410 (val_print_scalar_formatted, val_print_array_elements): Remove.
12411 * rust-lang.c (rust_val_print): Remove.
12412 (rust_language_defn): Update.
12413 * p-valprint.c (pascal_val_print): Remove.
12414 (pascal_value_print_inner): Update.
12415 (pascal_object_print_val_fields, pascal_object_print_val):
12416 Remove.
12417 (pascal_object_print_static_field): Update.
12418 * p-lang.h (pascal_val_print): Don't declare.
12419 * p-lang.c (pascal_language_defn): Update.
12420 * opencl-lang.c (opencl_language_defn): Update.
12421 * objc-lang.c (objc_language_defn): Update.
12422 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12423 * m2-lang.h (m2_val_print): Don't declare.
12424 * m2-lang.c (m2_language_defn): Update.
12425 * language.h (struct language_defn) <la_val_print>: Remove.
12426 * language.c (unk_lang_value_print_inner): Rename. Change
12427 argument types.
12428 (unknown_language_defn, auto_language_defn): Update.
12429 * go-valprint.c (go_val_print): Remove.
12430 * go-lang.h (go_val_print): Don't declare.
12431 * go-lang.c (go_language_defn): Update.
12432 * f-valprint.c (f_val_print): Remove.
12433 * f-lang.h (f_value_print): Don't declare.
12434 * f-lang.c (f_language_defn): Update.
12435 * d-valprint.c (d_val_print): Remove.
12436 * d-lang.h (d_value_print): Don't declare.
12437 * d-lang.c (d_language_defn): Update.
12438 * cp-valprint.c (cp_print_value_fields)
12439 (cp_print_value_fields_rtti, cp_print_value): Remove.
12440 (cp_print_static_field): Update.
12441 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12442 (c_val_print_struct, c_val_print_union, c_val_print_int)
12443 (c_val_print_memberptr, c_val_print): Remove.
12444 * c-lang.h (c_val_print_array, cp_print_value_fields)
12445 (cp_print_value_fields_rtti): Don't declare.
12446 * c-lang.c (c_language_defn, cplus_language_defn)
12447 (asm_language_defn, minimal_language_defn): Update.
12448 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12449 (ada_val_print_enum): Take a struct value.
12450 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12451 (ada_val_print): Remove.
12452 (ada_value_print_1): Update.
12453 (printable_val_type): Remove.
12454 * ada-lang.h (ada_val_print): Don't declare.
12455 * ada-lang.c (ada_language_defn): Update.
12456
42331a1e
TT
124572020-03-13 Tom Tromey <tom@tromey.com>
12458
12459 * valprint.c (do_val_print): Update.
12460 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12461 a struct value.
12462 (value_to_value_object_no_release): Declare.
12463 * python/py-value.c (value_to_value_object_no_release): New
12464 function.
12465 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12466 struct value.
12467 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12468 function.
12469 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12470 a struct value.
12471 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12472 Declare.
12473 (gdbscm_apply_val_pretty_printer): Take a struct value.
12474 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12475 value.
12476 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12477 value.
12478 * extension-priv.h (struct extension_language_ops)
12479 <apply_val_pretty_printer>: Take a struct value.
12480 * cp-valprint.c (cp_print_value): Create a struct value.
12481 (cp_print_value): Update.
12482
3a916a97
TT
124832020-03-13 Tom Tromey <tom@tromey.com>
12484
12485 * ada-valprint.c (print_field_values): Call common_val_print.
12486
b59eac37
TT
124872020-03-13 Tom Tromey <tom@tromey.com>
12488
12489 * ada-valprint.c (val_print_packed_array_elements): Remove
12490 bitoffset and val parameters. Call common_val_print.
12491 (ada_val_print_string): Remove offset, address, and original_value
12492 parameters.
12493 (ada_val_print_array): Update.
12494 (ada_value_print_array): New function.
12495 (ada_value_print_1): Call it.
12496
03371129
TT
124972020-03-13 Tom Tromey <tom@tromey.com>
12498
12499 * ada-valprint.c (ada_value_print): Use common_val_print.
12500
2e088f8b
TT
125012020-03-13 Tom Tromey <tom@tromey.com>
12502
12503 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12504
39ef85a8
TT
125052020-03-13 Tom Tromey <tom@tromey.com>
12506
12507 * ada-valprint.c (ada_value_print_num): New function.
12508 (ada_value_print_1): Use it.
12509
b9fa6e07
TT
125102020-03-13 Tom Tromey <tom@tromey.com>
12511
12512 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12513
416595d6
TT
125142020-03-13 Tom Tromey <tom@tromey.com>
12515
12516 * ada-valprint.c (ada_value_print_ptr): New function.
12517 (ada_value_print_1): Use it.
12518
5b5e15ec
TT
125192020-03-13 Tom Tromey <tom@tromey.com>
12520
12521 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12522 call common_val_print.
12523 (ada_val_print_1): Update.
12524 (ada_value_print_1): New function.
12525 (ada_value_print_inner): Rewrite.
12526
fbf54e75
TT
125272020-03-13 Tom Tromey <tom@tromey.com>
12528
12529 * cp-valprint.c (cp_print_value_fields): Update.
12530 (cp_print_value): New function.
12531
64b653ca
TT
125322020-03-13 Tom Tromey <tom@tromey.com>
12533
12534 * m2-valprint.c (m2_value_print_inner): Use
12535 cp_print_value_fields.
12536 * cp-valprint.c (cp_print_value_fields): New function.
12537 * c-valprint.c (c_value_print_struct): New function.
12538 (c_value_print_inner): Use c_value_print_struct.
12539 * c-lang.h (cp_print_value_fields): Declare.
12540
6999f067
TT
125412020-03-13 Tom Tromey <tom@tromey.com>
12542
12543 * c-valprint.c (c_value_print_array): New function.
12544 (c_value_print_inner): Use it.
12545
ce80b8bd
TT
125462020-03-13 Tom Tromey <tom@tromey.com>
12547
12548 * c-valprint.c (c_value_print_memberptr): New function.
12549 (c_value_print_inner): Use it.
12550
2faac269
TT
125512020-03-13 Tom Tromey <tom@tromey.com>
12552
12553 * c-valprint.c (c_value_print_int): New function.
12554 (c_value_print_inner): Use it.
12555
da3e2c29
TT
125562020-03-13 Tom Tromey <tom@tromey.com>
12557
12558 * c-valprint.c (c_value_print_ptr): New function.
12559 (c_value_print_inner): Use it.
12560
50836231
TT
125612020-03-13 Tom Tromey <tom@tromey.com>
12562
12563 * c-valprint.c (c_value_print_inner): Rewrite.
12564
4f412b6e
TT
125652020-03-13 Tom Tromey <tom@tromey.com>
12566
12567 * valprint.c (generic_value_print_complex): New function.
12568 (generic_value_print): Use it.
12569
f5354008
TT
125702020-03-13 Tom Tromey <tom@tromey.com>
12571
12572 * valprint.c (generic_val_print_float): Don't call
12573 val_print_scalar_formatted.
12574 (generic_val_print, generic_value_print): Update.
12575
3eec3b05
TT
125762020-03-13 Tom Tromey <tom@tromey.com>
12577
12578 * valprint.c (generic_value_print_char): New function
12579 (generic_value_print): Use it.
12580
fdddfccb
TT
125812020-03-13 Tom Tromey <tom@tromey.com>
12582
12583 * valprint.c (generic_value_print_int): New function.
12584 (generic_value_print): Use it.
12585
6dde7521
TT
125862020-03-13 Tom Tromey <tom@tromey.com>
12587
12588 * valprint.c (generic_value_print_bool): New function.
12589 (generic_value_print): Use it.
12590
4112d2e6
TT
125912020-03-13 Tom Tromey <tom@tromey.com>
12592
12593 * valprint.c (generic_val_print_func): Simplify.
12594 (generic_val_print, generic_value_print): Update.
12595
65786af6
TT
125962020-03-13 Tom Tromey <tom@tromey.com>
12597
12598 * valprint.c (generic_val_print_flags): Remove.
12599 (generic_val_print, generic_value_print): Update.
12600 (val_print_type_code_flags): Add original_value parameter.
12601
40f3ce18
TT
126022020-03-13 Tom Tromey <tom@tromey.com>
12603
12604 * valprint.c (generic_val_print): Update.
12605 (generic_value_print): Update.
12606 * valprint.c (generic_val_print_enum): Don't call
12607 val_print_scalar_formatted.
12608
2a5b130b
TT
126092020-03-13 Tom Tromey <tom@tromey.com>
12610
12611 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12612 * valprint.c (generic_value_print_ptr): New function.
12613
abc66ce9
TT
126142020-03-13 Tom Tromey <tom@tromey.com>
12615
12616 * valprint.c (generic_value_print): Rewrite.
12617
07a32858
TT
126182020-03-13 Tom Tromey <tom@tromey.com>
12619
12620 * p-valprint.c (pascal_object_print_value_fields)
12621 (pascal_object_print_value): New functions.
12622
64d64d3a
TT
126232020-03-13 Tom Tromey <tom@tromey.com>
12624
12625 * p-valprint.c (pascal_value_print_inner): Rewrite.
12626
6a95a1f5
TT
126272020-03-13 Tom Tromey <tom@tromey.com>
12628
12629 * f-valprint.c (f_value_print_innner): Rewrite.
12630
59fcdac6
TT
126312020-03-13 Tom Tromey <tom@tromey.com>
12632
12633 * m2-valprint.c (m2_print_unbounded_array): New overload.
12634 (m2_print_unbounded_array): Update.
12635 (m2_print_array_contents): Take a struct value.
12636 (m2_value_print_inner): Rewrite.
12637
d133c3e1
TT
126382020-03-13 Tom Tromey <tom@tromey.com>
12639
12640 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12641 (d_value_print_inner): New function.
12642 * d-lang.h (d_value_print_inner): Declare.
12643 * d-lang.c (d_language_defn): Use d_value_print_inner.
12644
23b0f06b
TT
126452020-03-13 Tom Tromey <tom@tromey.com>
12646
12647 * go-valprint.c (go_value_print_inner): New function.
12648 * go-lang.h (go_value_print_inner): Declare.
12649 * go-lang.c (go_language_defn): Use go_value_print_inner.
12650
5f56f7cb
TT
126512020-03-13 Tom Tromey <tom@tromey.com>
12652
12653 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12654 API.
12655 (rust_val_print): Rewrite.
12656 (rust_value_print_inner): New function, from rust_val_print.
12657 (rust_language_defn): Use rust_value_print_inner.
12658
26792ee0
TT
126592020-03-13 Tom Tromey <tom@tromey.com>
12660
12661 * ada-valprint.c (ada_value_print_inner): New function.
12662 * ada-lang.h (ada_value_print_inner): Declare.
12663 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12664
24051bbe
TT
126652020-03-13 Tom Tromey <tom@tromey.com>
12666
12667 * f-valprint.c (f_value_print_innner): New function.
12668 * f-lang.h (f_value_print_innner): Declare.
12669 * f-lang.c (f_language_defn): Use f_value_print_innner.
12670
c0941be6
TT
126712020-03-13 Tom Tromey <tom@tromey.com>
12672
12673 * p-valprint.c (pascal_value_print_inner): New function.
12674 * p-lang.h (pascal_value_print_inner): Declare.
12675 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12676
62c4663d
TT
126772020-03-13 Tom Tromey <tom@tromey.com>
12678
12679 * m2-valprint.c (m2_value_print_inner): New function.
12680 * m2-lang.h (m2_value_print_inner): Declare.
12681 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12682
62182190
TT
126832020-03-13 Tom Tromey <tom@tromey.com>
12684
12685 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12686 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12687 * c-valprint.c (c_value_print_inner): New function.
12688 * c-lang.h (c_value_print_inner): Declare.
12689 * c-lang.c (c_language_defn, cplus_language_defn)
12690 (asm_language_defn, minimal_language_defn): Use
12691 c_value_print_inner.
12692
1e592a8a
TT
126932020-03-13 Tom Tromey <tom@tromey.com>
12694
12695 * p-valprint.c (pascal_object_print_value_fields): Now static.
12696 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12697
7fe471e9
TT
126982020-03-13 Tom Tromey <tom@tromey.com>
12699
12700 * c-valprint.c (c_val_print_array): Simplify.
12701
d121c6ce
TT
127022020-03-13 Tom Tromey <tom@tromey.com>
12703
12704 * valprint.c (value_print_array_elements): New function.
12705 * valprint.h (value_print_array_elements): Declare.
12706
4dba70ee
TT
127072020-03-13 Tom Tromey <tom@tromey.com>
12708
12709 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12710 * mips-tdep.c (mips_print_register): Use
12711 value_print_scalar_formatted.
12712
4f9ae810
TT
127132020-03-13 Tom Tromey <tom@tromey.com>
12714
12715 * valprint.h (value_print_scalar_formatted): Declare.
12716 * valprint.c (value_print_scalar_formatted): New function.
12717
156bfec9
TT
127182020-03-13 Tom Tromey <tom@tromey.com>
12719
12720 * valprint.h (generic_value_print): Declare.
12721 * valprint.c (generic_value_print): New function.
12722
2b4e573d
TT
127232020-03-13 Tom Tromey <tom@tromey.com>
12724
12725 * valprint.c (do_val_print): Call la_value_print_inner, if
12726 available.
12727 * rust-lang.c (rust_language_defn): Update.
12728 * p-lang.c (pascal_language_defn): Update.
12729 * opencl-lang.c (opencl_language_defn): Update.
12730 * objc-lang.c (objc_language_defn): Update.
12731 * m2-lang.c (m2_language_defn): Update.
12732 * language.h (struct language_defn) <la_value_print_inner>: New
12733 member.
12734 * language.c (unknown_language_defn, auto_language_defn): Update.
12735 * go-lang.c (go_language_defn): Update.
12736 * f-lang.c (f_language_defn): Update.
12737 * d-lang.c (d_language_defn): Update.
12738 * c-lang.c (c_language_defn, cplus_language_defn)
12739 (asm_language_defn, minimal_language_defn): Update.
12740 * ada-lang.c (ada_language_defn): Update.
12741
a1f6a07c
TT
127422020-03-13 Tom Tromey <tom@tromey.com>
12743
12744 * c-valprint.c (c_value_print): Use common_val_print.
12745
410cf315
TT
127462020-03-13 Tom Tromey <tom@tromey.com>
12747
12748 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12749
72a45c93
TT
127502020-03-13 Tom Tromey <tom@tromey.com>
12751
12752 * f-valprint.c (f77_print_array_1, f_val_print): Use
12753 common_val_print.
12754
040f66bd
TT
127552020-03-13 Tom Tromey <tom@tromey.com>
12756
12757 * riscv-tdep.c (riscv_print_one_register_info): Use
12758 common_val_print.
12759
a6e05a6c
TT
127602020-03-13 Tom Tromey <tom@tromey.com>
12761
12762 * mi/mi-main.c (output_register): Use common_val_print.
12763
3444c526
TT
127642020-03-13 Tom Tromey <tom@tromey.com>
12765
12766 * infcmd.c (default_print_one_register_info): Use
12767 common_val_print.
12768
c2a44efe
TT
127692020-03-13 Tom Tromey <tom@tromey.com>
12770
12771 * valprint.h (common_val_print_checked): Declare.
12772 * valprint.c (common_val_print_checked): New function.
12773 * stack.c (print_frame_arg): Use common_val_print_checked.
12774
b0c26e99
TT
127752020-03-13 Tom Tromey <tom@tromey.com>
12776
12777 * valprint.c (do_val_print): New function, from val_print.
12778 (val_print): Use do_val_print.
12779 (common_val_print): Use do_val_print.
12780
ce3acbe9
TT
127812020-03-13 Tom Tromey <tom@tromey.com>
12782
12783 * valprint.c (value_print): Use scoped_value_mark.
12784
96c7f873
TV
127852020-03-13 Tom de Vries <tdevries@suse.de>
12786
12787 PR symtab/25646
12788 * psymtab.c (partial_symtab::partial_symtab): Don't set
12789 globals_offset and statics_offset. Push element onto
12790 current_global_psymbols and current_static_psymbols stacks.
12791 (concat): New function.
12792 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12793 element from current_global_psymbols and current_static_psymbols
12794 stacks. Concat popped elements to global_psymbols and
12795 static_symbols.
12796 (add_psymbol_to_list): Use current_global_psymbols and
12797 current_static_psymbols stacks.
12798 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12799 current_static_psymbols fields.
12800
6ba0a321
CB
128012020-03-12 Christian Biesinger <cbiesinger@google.com>
12802
12803 * corelow.c (sniff_core_bfd): Remove.
12804 (class core_target) <m_core_vec>: Remove.
12805 (core_target::core_target): Update.
12806 (core_file_fns): Remove.
12807 (deprecated_add_core_fns): Remove.
12808 (default_core_sniffer): Remove.
12809 (sniff_core_bfd): Remove.
12810 (default_check_format): Remove.
12811 (gdb_check_format): Remove.
12812 (core_target_open): Update.
12813 (core_target::get_core_register_section): Update.
12814 (get_core_registers_cb): Update.
12815 (core_target::fetch_registers): Update.
12816 * gdbcore.h (struct core_fns): Remove.
12817 (deprecated_add_core_fns): Remove.
12818 (default_core_sniffer): Remove.
12819 (default_check_format): Remove.
12820
227031b2
TT
128212020-03-12 Tom Tromey <tom@tromey.com>
12822
12823 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12824 CORE_ADDR.
12825 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12826
53807e9f
TT
128272020-03-12 Tom Tromey <tom@tromey.com>
12828
12829 * remote.c (remote_target::download_tracepoint)
12830 (remote_target::enable_tracepoint)
12831 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12832 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12833 sprintf_vma.
12834
64f25102
TT
128352020-03-12 Tom Tromey <tom@tromey.com>
12836
12837 * symfile-mem.c: Update CORE_ADDR size assert.
12838
272cd5a3
SM
128392020-03-12 Simon Marchi <simon.marchi@efficios.com>
12840
12841 * selftest.m4: Move to gdbsupport/.
12842 * acinclude.m4: Update path to selftest.m4.
12843
74cd3f9d
SM
128442020-03-12 Simon Marchi <simon.marchi@efficios.com>
12845
12846 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12847 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12848 gdbarch-selfselftests.c and selftest-arch.c.
12849 (SUBDIR_UNITTESTS_OBS): Rename to...
12850 (SELFTESTS_OBS): ... this.
12851 (COMMON_SFILES): Remove disasm-selftests.c and
12852 gdbarch-selftests.c.
12853 * configure.ac: Don't add selftest-arch.{c,o} to
12854 CONFIG_{SRCS,OBS}.
12855 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12856 preprocessor conditions.
12857
db6878ac
SM
128582020-03-12 Simon Marchi <simon.marchi@efficios.com>
12859
12860 * configure.ac: Don't source bfd/development.sh.
12861 * selftest.m4: Modify comment.
12862 * configure: Re-generate.
12863
4d696a5c
SM
128642020-03-12 Simon Marchi <simon.marchi@efficios.com>
12865
12866 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12867 not "true" or "false".
12868 * configure: Re-generate.
12869
8dd8e1c7
CB
128702020-03-12 Christian Biesinger <cbiesinger@google.com>
12871
12872 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12873 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12874 renamed to arm_nbsd_supply_gregset.
12875 (fetch_register): Update to call arm_nbsd_supply_gregset.
12876 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12877 (arm_netbsd_nat_target::fetch_registers): Update.
12878 (fetch_elfcore_registers): Removed.
12879 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12880 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12881 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12882 not require NetBSD system headers.
12883 (arm_nbsd_regset): New struct.
12884 (arm_nbsd_iterate_over_regset_sections): New function.
12885 (arm_netbsd_init_abi_common): Updated to call
12886 set_gdbarch_iterate_over_regset_sections.
12887 * arm-nbsd-tdep.h: New file.
12888
dd69bf7a
KB
128892020-03-11 Kevin Buettner <kevinb@redhat.com>
12890
12891 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12892 recursion.
12893
a0761e34
SM
128942020-03-11 Simon Marchi <simon.marchi@efficios.com>
12895
12896 * configure: Re-generate.
12897
e7a82140
TT
128982020-03-11 Tom Tromey <tromey@adacore.com>
12899
12900 * ada-typeprint.c (print_choices): Fix comment.
12901
dcc050c8
AB
129022020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12903
12904 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12905 previous item in the list, when the list has no items.
12906
1c33af77
TV
129072020-03-11 Tom de Vries <tdevries@suse.de>
12908
12909 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12910 PROP_LOCLIST handling code.
12911
8c95582d
AB
129122020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12913
12914 * buildsym-legacy.c (record_line): Pass extra parameter to
12915 record_line.
12916 * buildsym.c (buildsym_compunit::record_line): Take an extra
12917 parameter, reduce duplication in the line table, and record the
12918 is_stmt flag in the line table.
12919 * buildsym.h (buildsym_compunit::record_line): Add extra
12920 parameter.
12921 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12922 non-statement lines.
12923 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12924 this to the symtab builder.
12925 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12926 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12927 through to dwarf_record_line_1.
12928 * infrun.c (process_event_stop_test): When stepping, don't stop at
12929 a non-statement instruction, and only refresh the step info when
12930 we land in the middle of a line's range. Also add an extra
12931 comment.
12932 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12933 field.
12934 * record-btrace.c (btrace_find_line_range): Only record lines
12935 marked as is-statement.
12936 * stack.c (frame_show_address): Show the frame address if we are
12937 in a non-statement sal.
12938 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12939 (maintenance_print_one_line_table): Print a header for the is_stmt
12940 column, and include is_stmt information in the output.
12941 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12942 preference to non-statements.
12943 (find_pcs_for_symtab_line): Prefer is-statement entries.
12944 (find_line_common): Likewise.
12945 * symtab.h (struct linetable_entry): Add is_stmt field.
12946 (struct symtab_and_line): Likewise.
12947 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12948 arranging the line table.
12949
e4003a34
TV
129502020-03-07 Tom de Vries <tdevries@suse.de>
12951
12952 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12953 DIE.
12954
e8932576
TT
129552020-03-07 Tom Tromey <tom@tromey.com>
12956
12957 * valops.c (value_literal_complex): Remove obsolete comment.
12958 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12959 comment.
12960
29734269
SM
129612020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12962
12963 * infrun.h: Forward-declare thread_info.
12964 (set_step_info): Add thread_info parameter, add doc.
12965 * infrun.c (set_step_info): Add thread_info parameter, move doc
12966 to header.
12967 * infrun.c (process_event_stop_test): Pass thread to
12968 set_step_info call.
12969 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12970 set_step_info.
12971 (prepare_one_step): Add thread_info parameter, pass it to
12972 set_step_frame and prepare_one_step (recursive) call.
12973 (step_1): Pass thread to prepare_one_step call.
12974 (step_command_fsm::should_stop): Pass thread to
12975 prepare_one_step.
12976 (until_next_fsm): Pass thread to set_step_frame call.
12977 (finish_command): Pass thread to set_step_info call.
12978
b7d64b29
HD
129792020-03-06 Hannes Domani <ssbssa@yahoo.de>
12980
12981 * windows-tdep.c (windows_solib_create_inferior_hook):
12982 Check if inferior is running.
12983
09f2921c
TV
129842020-03-06 Tom de Vries <tdevries@suse.de>
12985
12986 * NEWS: Fix "the the".
12987 * ctfread.c: Same.
12988
fd760e79
TV
129892020-03-06 Tom de Vries <tdevries@suse.de>
12990
12991 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12992
20ea4a60
AB
129932020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12994
12995 * .dir-locals.el: Add a comment referencing the other copies of
12996 this file.
12997
0afbabf0
JB
129982020-03-05 John Baldwin <jhb@FreeBSD.org>
12999
13000 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13001 psargs.
13002
842806cb
TBA
130032020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13004
13005 * .gitattributes: New file.
13006
be1e3d3e
TT
130072020-03-04 Tom Tromey <tom@tromey.com>
13008
13009 * symmisc.c (print_symbol_bcache_statistics)
13010 (print_objfile_statistics): Update.
13011 * symfile.c (allocate_symtab): Use intern.
13012 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13013 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13014 macro_cache>: Remove.
13015 <string_cache>: New member.
13016 (struct objfile) <intern>: New methods.
13017 * elfread.c (elf_symtab_read): Use intern.
13018 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13019 (dwarf2_compute_name, dwarf2_physname)
13020 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13021 names.
13022 (guess_partial_die_structure_name): Update.
13023 (partial_die_info::fixup): Intern name.
13024 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13025 name.
13026 (dwarf2_name): Intern name. Update.
13027 * buildsym.c (buildsym_compunit::get_macro_table): Use
13028 string_cache.
13029
4e7625fd
TT
130302020-03-04 Tom Tromey <tom@tromey.com>
13031
13032 * jit.c (bfd_open_from_target_memory): Make "target" const.
13033 * corefile.c (gnutarget): Now const.
13034 * gdbcore.h (gnutarget): Now const.
13035
46f9f931
HD
130362020-03-04 Hannes Domani <ssbssa@yahoo.de>
13037
13038 * NEWS: Mention support for WOW64 processes.
13039 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13040 (amd64_windows_segment_register_p): Remove static.
13041 (_initialize_amd64_windows_nat): Update.
13042 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13043 * i386-windows-nat.c (context_offset): Update.
13044 (i386_mappings): Rename and remove static.
13045 (i386_windows_segment_register_p): Remove static.
13046 (_initialize_i386_windows_nat): Update.
13047 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13048 (STATUS_WX86_SINGLE_STEP): New macro.
13049 (EnumProcessModulesEx): New macro.
13050 (Wow64SuspendThread): New macro.
13051 (Wow64GetThreadContext): New macro.
13052 (Wow64SetThreadContext): New macro.
13053 (Wow64GetThreadSelectorEntry): New macro.
13054 (windows_set_context_register_offsets): Add static.
13055 (windows_set_segment_register_p): Likewise.
13056 (windows_add_thread): Adapt for WOW64 processes.
13057 (windows_fetch_one_register): Likewise.
13058 (windows_nat_target::fetch_registers): Likewise.
13059 (windows_store_one_register): Likewise.
13060 (display_selector): Likewise.
13061 (display_selectors): Likewise.
13062 (handle_exception): Likewise.
13063 (windows_continue): Likewise.
13064 (windows_nat_target::resume): Likewise.
13065 (windows_add_all_dlls): Likewise.
13066 (do_initial_windows_stuff): Likewise.
13067 (windows_nat_target::attach): Likewise.
13068 (windows_get_exec_module_filename): Likewise.
13069 (windows_nat_target::create_inferior): Likewise.
13070 (windows_xfer_siginfo): Likewise.
13071 (_initialize_loadable): Initialize Wow64SuspendThread,
13072 Wow64GetThreadContext, Wow64SetThreadContext,
13073 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13074 * windows-nat.h (windows_set_context_register_offsets):
13075 Remove declaration.
13076 (windows_set_segment_register_p): Likewise.
13077 (i386_windows_segment_register_p): Add declaration.
13078 (amd64_windows_segment_register_p): Likewise.
13079
440cf44e
LM
130802020-03-04 Luis Machado <luis.machado@linaro.org>
13081
13082 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13083 in "info registers" for AArch64/ARM.
13084
13085 The change caused "info registers" to not print GPR's.
13086
13087 gdb/ChangeLog:
13088
13089 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13090
13091 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13092 when reg->group is empty and reggroup is not.
13093
1009d92f
TT
130942020-03-03 Tom Tromey <tromey@adacore.com>
13095
13096 * dwarf2/frame.c (struct dwarf2_frame_cache)
13097 <checked_tailcall_bottom, entry_cfa_sp_offset,
13098 entry_cfa_sp_offset_p>: Remove members.
13099 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13100 (dwarf2_frame_prev_register): Don't call
13101 dwarf2_tailcall_sniffer_first.
13102 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13103 * frame-unwind.c (add_unwinder): New fuction.
13104 (frame_unwind_init): Use it. Add tailcall unwinder.
13105
5e5d66b6
AB
131062020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13107 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13108
13109 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13110 value should be printed as true.
13111
584cf46d
HD
131122020-03-03 Hannes Domani <ssbssa@yahoo.de>
13113
13114 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13115 (windows_init_abi): Set and use windows_so_ops.
13116
7b973adc
SDJ
131172020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13118
13119 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13120 when verifying if dealing with a convenience variable.
13121
bb7b70ab
LM
131222020-03-03 Luis Machado <luis.machado@linaro.org>
13123
13124 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13125
9822cb57
SM
131262020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13127
13128 * infrun.c (gdbarch_supports_displaced_stepping): New.
13129 (use_displaced_stepping): Break up conditions in smaller pieces.
13130 Use gdbarch_supports_displaced_stepping.
13131 (displaced_step_prepare_throw): Use
13132 gdbarch_supports_displaced_stepping.
13133
63e163f2
AB
131342020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13135
13136 * NEWS: Mention new behaviour of the history filename.
13137 * top.c (write_history_p): Add comment.
13138 (show_write_history_p): Add header comment, give a different
13139 message when history writing is on, but the history filename is
13140 empty.
13141 (history_filename): Add comment.
13142 (history_filename_empty): New function.
13143 (show_history_filename): Add header comment, give a different
13144 message when the filename is empty.
13145 (init_history): Compare history_filename against nullptr, and only
13146 read history if the filename is not empty.
13147 (set_history_filename): Add header comment, and only make
13148 non-empty filenames absolute.
13149 (init_main): Make the filename argument to 'set history filename'
13150 optional.
13151
81b86b97
CB
131522020-03-02 Christian Biesinger <cbiesinger@google.com>
13153
13154 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13155 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13156 (fetch_fp_register): Update.
13157 (fetch_fp_regs): Update.
13158 (store_fp_register): Update.
13159 (store_fp_regs): Update.
13160 (arm_netbsd_nat_target::read_description): New function.
13161 (fetch_elfcore_registers): Update.
13162
24ed6739
AB
131632020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13164
13165 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13166 general_thread if the stop reply is missing a thread-id.
13167 (remote_target::process_stop_reply): Use the first non-exited
13168 thread if the target didn't pass a thread-id.
13169 * infrun.c (do_target_wait): Move call to
13170 switch_to_inferior_no_thread to ....
13171 (do_target_wait_1): ... here.
13172
a84bb2a0
JT
131732020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13174
13175 * debuginfod-support.c: Include defs.h first.
13176
658dadf0
TV
131772020-02-28 Tom de Vries <tdevries@suse.de>
13178
13179 * symfile.c (set_initial_language): Use default language for lookup.
13180
4ebe4877
SM
131812020-02-28 Simon Marchi <simon.marchi@efficios.com>
13182
13183 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13184 reader variable, pass `this` to read_cutu_die_from_dwo.
13185
e5da1139
AM
131862020-02-27 Aaron Merey <amerey@redhat.com>
13187
13188 * source.c (open_source_file): Check for nullptr when computing
13189 srcpath.
13190
317f7127
TT
131912020-02-27 Tom Tromey <tromey@adacore.com>
13192
13193 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13194 member.
13195 (dwarf2_add_field): Don't update nfields.
13196 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13197
3104d9ee
AB
131982020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13199
13200 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13201 abs.
13202
b83470bf
TT
132032020-02-26 Tom Tromey <tom@tromey.com>
13204
13205 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13206 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13207 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13208 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13209 per_cu_data.
13210
edfe0a0c
TT
132112020-02-26 Tom Tromey <tom@tromey.com>
13212
13213 * dwarf2/index-write.c (psym_index_map): Change type.
13214 (add_address_entry_worker, write_one_signatured_type)
13215 (recursively_count_psymbols, recursively_write_psymbols)
13216 (class debug_names, psyms_seen_size, write_gdbindex)
13217 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13218
0d79cdc4
AM
132192020-02-26 Aaron Merey <amerey@redhat.com>
13220
13221 * Makefile.in: Handle optional debuginfod support.
13222 * NEWS: Update.
13223 * README: Add --with-debuginfod summary.
13224 * config.in: Regenerate.
13225 * configure: Regenerate.
13226 * configure.ac: Handle optional debuginfod support.
13227 * debuginfod-support.c: debuginfod helper functions.
13228 * debuginfod-support.h: Ditto.
13229 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13230 summary.
13231 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13232 when a dwz file cannot be found.
13233 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13234 debuginfo file cannot be found.
13235 * source.c (open_source_file): Query debuginfod servers when a
13236 source file cannot be found.
13237 * top.c (print_gdb_configuration): Include
13238 --{with,without}-debuginfod in the output.
13239
b65ce565
JG
132402020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13241
13242 * thread.c (thr_try_catch_cmd): Print thread name.
13243
d4c9a4f8
SM
132442020-02-26 Simon Marchi <simon.marchi@efficios.com>
13245
13246 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13247 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13248 dwarf2_fetch_die_type_sect_off): Move to...
13249 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13250 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13251 dwarf2_fetch_die_type_sect_off): ... here.
13252 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13253 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13254 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13255
0dce4280
TV
132562020-02-26 Tom de Vries <tdevries@suse.de>
13257
13258 PR gdb/25603
13259 * symfile.c (set_initial_language): Exit-early if
13260 language_mode == language_mode_manual.
13261
450a1bfc
SM
132622020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13263
13264 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13265 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13266 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13267
9e80cfa1
AB
132682020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13269
13270 * gdbtypes.c (create_array_type_with_stride): Handle negative
13271 array strides.
13272 * valarith.c (value_subscripted_rvalue): Likewise.
13273
09624f1f
LM
132742020-02-25 Luis Machado <luis.machado@linaro.org>
13275
13276 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13277
8cb5117c
SM
132782020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13279
13280 * loc.h (dwarf2_get_die_type): Move to...
13281 * read.h (dwarf2_get_die_type): ... here.
13282 * read.c (dwarf2_get_die_type): Move doc to header.
13283
c325c44e
JB
132842020-02-25 Joel Brobecker <brobecker@adacore.com>
13285
13286 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13287 'gnulib/Makefile.in' to the list.
13288
4ac93832
TT
132892020-02-24 Tom Tromey <tom@tromey.com>
13290
13291 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13292 Remove.
13293 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13294 XOBNEWVEC.
13295
197400e8
TT
132962020-02-24 Tom Tromey <tom@tromey.com>
13297
13298 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13299 New method.
13300 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13301 (dw2_do_instantiate_symtab, dw2_get_file_names)
13302 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13303
76935768
TT
133042020-02-24 Tom Tromey <tom@tromey.com>
13305
13306 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13307 make_scoped_restore.
13308 (dwarf2_psymtab::read_symtab): Don't clear
13309 reading_partial_symbols.
13310
a88ef40d
TV
133112020-02-24 Tom de Vries <tdevries@suse.de>
13312
13313 PR gdb/25592
13314 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13315
c9af6521
TV
133162020-02-24 Tom de Vries <tdevries@suse.de>
13317
13318 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13319 commands layout next/prev/regs.
13320
5707a07a
TT
133212020-02-22 Tom Tromey <tom@tromey.com>
13322
13323 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13324 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13325
3b0fb49e
TT
133262020-02-22 Tom Tromey <tom@tromey.com>
13327
13328 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13329
283be8bf
TT
133302020-02-22 Tom Tromey <tom@tromey.com>
13331
13332 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13333 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13334 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13335 * tui/tui.c (_initialize_tui): Add usage text.
13336
ca793b96
TT
133372020-02-22 Tom Tromey <tom@tromey.com>
13338
13339 * tui/tui-win.c (tui_set_focus_command)
13340 (tui_set_win_height_command): Use error_no_arg.
13341 (_initialize_tui_win): Update help text.
13342 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13343
432b5c40
TT
133442020-02-22 Tom Tromey <tom@tromey.com>
13345
13346 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13347 * tui/tui-disasm.h (struct tui_disasm_window)
13348 <display_start_addr>: Declare.
13349 * tui/tui-source.h (struct tui_source_window)
13350 <display_start_addr>: Declare.
13351 * tui/tui-winsource.h (struct tui_source_window_base)
13352 <show_source_line, display_start_addr>: New methods.
13353 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13354 Rename and move to protected section.
13355 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13356 (tui_source_window_base::do_erase_source_content): Update.
13357 (tui_source_window_base::show_source_line): Now a method.
13358 (tui_source_window_base::show_source_content)
13359 (tui_source_window_base::tui_source_window_base)
13360 (tui_source_window_base::rerender)
13361 (tui_source_window_base::refill)
13362 (tui_source_window_base::do_scroll_horizontal)
13363 (tui_source_window_base::set_is_exec_point_at)
13364 (tui_source_window_base::update_breakpoint_info)
13365 (tui_source_window_base::update_exec_info): Update.
13366 * tui/tui-source.c (tui_source_window::set_contents)
13367 (tui_source_window::showing_source_p)
13368 (tui_source_window::do_scroll_vertical)
13369 (tui_source_window::location_matches_p)
13370 (tui_source_window::line_is_displayed): Update.
13371 (tui_source_window::display_start_addr): New method.
13372 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13373 (tui_disasm_window::do_scroll_vertical)
13374 (tui_disasm_window::location_matches_p): Update.
13375 (tui_disasm_window::display_start_addr): New method.
13376
01b1af32
TT
133772020-02-22 Tom Tromey <tom@tromey.com>
13378
13379 * NEWS: Add entry for gdb.register_window_type.
13380 * tui/tui-layout.h (window_factory): New typedef.
13381 (tui_register_window): Declare.
13382 * tui/tui-layout.c (saved_tui_windows): New global.
13383 (tui_apply_current_layout): Use it.
13384 (tui_register_window): New function.
13385 * python/python.c (do_start_initialization): Call
13386 gdbpy_initialize_tui.
13387 (python_GdbMethods): Add "register_window_type" function.
13388 * python/python-internal.h (gdbpy_register_tui_window)
13389 (gdbpy_initialize_tui): Declare.
13390 * python/py-tui.c: New file.
13391 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13392
fc96d20b
TT
133932020-02-22 Tom Tromey <tom@tromey.com>
13394
13395 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13396
935c78c0
TT
133972020-02-22 Tom Tromey <tom@tromey.com>
13398
13399 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13400 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13401 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13402 (tui_set_win_focus_to): Move from tui-win.c.
13403
0240c8f1
TT
134042020-02-22 Tom Tromey <tom@tromey.com>
13405
13406 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13407 functions.
13408 (known_window_types): New global.
13409 (tui_get_window_by_name): Reimplement.
13410 (initialize_known_windows): New function.
13411 (validate_window_name): Rewrite.
13412 (_initialize_tui_layout): Call initialize_known_windows.
13413
fdb01f0c
TT
134142020-02-22 Tom Tromey <tom@tromey.com>
13415
13416 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13417 Remove constants.
13418 * tui/tui-winsource.h (struct tui_source_window_base)
13419 <tui_source_window_base>: Remove parameter.
13420 * tui/tui-winsource.c
13421 (tui_source_window_base::tui_source_window_base): Remove
13422 parameter.
13423 (tui_source_window_base::refill): Update.
13424 * tui/tui-stack.h (struct tui_locator_window)
13425 <tui_locator_window>: Update.
13426 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13427 Default the constructor.
13428 * tui/tui-regs.h (struct tui_data_item_window)
13429 <tui_data_item_window>: Default the constructor.
13430 (struct tui_data_window) <tui_data_window>: Likewise.
13431 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13432 Default the constructor.
13433 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13434 Default the constructor.
13435 <type>: Remove.
13436 (struct tui_win_info) <tui_win_info>: Default the constructor.
13437 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13438 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13439 Default the constructor.
13440
865a5aec
TT
134412020-02-22 Tom Tromey <tom@tromey.com>
13442
13443 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13444 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13445 * tui/tui-win.c (tui_resize_all): Don't call
13446 tui_delete_invisible_windows.
13447 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13448 done.
13449 (tui_set_layout): Update.
13450 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13451 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13452 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13453
e098d18c
TT
134542020-02-22 Tom Tromey <tom@tromey.com>
13455
13456 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13457 correctly.
13458
eb9c8874
TT
134592020-02-22 Tom Tromey <tom@tromey.com>
13460
13461 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13462
7eed1a8e
TT
134632020-02-22 Tom Tromey <tom@tromey.com>
13464
13465 * tui/tui-winsource.h (struct tui_source_window_iterator)
13466 <inner_iterator>: New etytypedef.
13467 <tui_source_window_iterator>: Take "end" parameter.
13468 <tui_source_window_iterator>: Take iterator.
13469 <operator*, advance>: Update.
13470 <m_iter>: Change type.
13471 <m_end>: New field.
13472 (struct tui_source_windows) <begin, end>: Update.
13473 * tui/tui-layout.c (tui_windows): New global.
13474 (tui_apply_current_layout): Clear tui_windows.
13475 (tui_layout_window::apply): Update tui_windows.
13476 * tui/tui-data.h (tui_windows): Declare.
13477 (all_tui_windows): Now inline function.
13478 (class tui_window_iterator, struct all_tui_windows): Remove.
13479
7c043ba6
TT
134802020-02-22 Tom Tromey <tom@tromey.com>
13481
13482 PR tui/17850:
13483 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13484 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13485 "height" argument.
13486 (class tui_layout_window) <get_sizes>: Likewise.
13487 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13488 argument.
13489 <get_sizes>: Add "height" argument.
13490 <m_vertical>: New field.
13491 * tui/tui-layout.c (tui_layout_split::clone): Update.
13492 (tui_layout_split::get_sizes): Add "height" argument.
13493 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13494 (tui_new_layout_command): Parse "-horizontal".
13495 (_initialize_tui_layout): Update help string.
13496 (tui_layout_split::specification): Add "-horizontal" when needed.
13497 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13498 argument.
13499 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13500 New methods.
13501
6bc56648
TT
135022020-02-22 Tom Tromey <tom@tromey.com>
13503
13504 * tui/tui-layout.h (enum tui_adjust_result): New.
13505 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13506 (class tui_layout_window) <adjust_size>: Return
13507 tui_adjust_result. Rewrite.
13508 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13509 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13510
c22fef7e
TT
135112020-02-22 Tom Tromey <tom@tromey.com>
13512
13513 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13514 parameter and return types.
13515 (class tui_layout_base) <specification>: Add "depth".
13516 (class tui_layout_window) <specification>: Add "depth".
13517 (class tui_layout_split) <specification>: Add "depth".
13518 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13519 and return types.
13520 (tui_new_layout_command): Parse sub-layouts.
13521 (_initialize_tui_layout): Update help string.
13522 (tui_layout_window::specification): Add "depth".
13523 (add_layout_command): Update.
13524
ee325b61
TT
135252020-02-22 Tom Tromey <tom@tromey.com>
13526
13527 * NEWS: Add "tui new-layout" item.
13528 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13529 Add new-layout command to help text.
13530 (validate_window_name): New function.
13531 (tui_new_layout_command): New function.
13532 (_initialize_tui_layout): Register "new-layout".
13533 (tui_layout_window::specification): New method.
13534 (tui_layout_window::specification): New method.
13535 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13536 method.
13537 (class tui_layout_window) <specification>: New method.
13538 (class tui_layout_split) <specification>: New method.
13539
416eb92d
TT
135402020-02-22 Tom Tromey <tom@tromey.com>
13541
13542 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13543 * tui/tui-win.c (window_name_completer): Update comment.
13544 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13545 Declare method.
13546 (class tui_layout_window) <replace_window>: Likewise.
13547 (class tui_layout_split) <replace_window>: Likewise.
13548 (tui_set_layout): Don't declare.
13549 (tui_set_initial_layout): Declare function.
13550 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13551 (asm_regs_layout): New globals.
13552 (tui_current_layout, show_layout): Remove.
13553 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13554 (find_layout, tui_apply_layout): New function.
13555 (layout_completer): Remove.
13556 (tui_next_layout): Reimplement.
13557 (tui_next_layout_command): New function.
13558 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13559 (tui_regs_layout): Reimplement.
13560 (tui_regs_layout_command): New function.
13561 (extract_display_start_addr): Rewrite.
13562 (next_layout, prev_layout): Remove.
13563 (tui_layout_window::replace_window): New method.
13564 (tui_layout_split::replace_window): New method.
13565 (destroy_layout): New function.
13566 (layout_list): New global.
13567 (add_layout_command): New function.
13568 (initialize_layouts): Update.
13569 (tui_layout_command): New function.
13570 (_initialize_tui_layout): Install "layout" commands.
13571 * tui/tui-data.h (enum tui_layout_type): Remove.
13572 (tui_current_layout): Don't declare.
13573
0dbc2fc7
TT
135742020-02-22 Tom Tromey <tom@tromey.com>
13575
13576 * tui/tui-regs.c (tui_reg_layout): Remove.
13577 (tui_reg_command): Use tui_regs_layout.
13578 * tui/tui-layout.h (tui_reg_command): Declare.
13579 * tui/tui-layout.c (tui_reg_command): New function.
13580
5afe342e
TT
135812020-02-22 Tom Tromey <tom@tromey.com>
13582
13583 * tui/tui.c (tui_rl_delete_other_windows): Call
13584 tui_remove_some_windows.
13585 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13586 Declare method.
13587 (class tui_layout_window) <remove_windows>: New method.
13588 (class tui_layout_split) <remove_windows>: Declare.
13589 (tui_remove_some_windows): Declare.
13590 * tui/tui-layout.c (tui_remove_some_windows): New function.
13591 (tui_layout_split::remove_windows): New method.
13592
427326a8
TT
135932020-02-22 Tom Tromey <tom@tromey.com>
13594
13595 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13596 * tui/tui-layout.h (tui_next_layout): Declare.
13597 * tui/tui-layout.c (tui_next_layout): New function.
13598
3fe12b6d
TT
135992020-02-22 Tom Tromey <tom@tromey.com>
13600
13601 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13602 correct coordinates.
13603
59b8b5d2
TT
136042020-02-22 Tom Tromey <tom@tromey.com>
13605
13606 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13607 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13608 DATA_WIN case.
13609
2a3d458b
TT
136102020-02-22 Tom Tromey <tom@tromey.com>
13611
13612 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13613 TUI_DISASM_WIN, not tui_win_list.
13614
3f0cbb04
TT
136152020-02-22 Tom Tromey <tom@tromey.com>
13616
13617 * valprint.c (generic_val_print_enum_1)
13618 (val_print_type_code_flags): Style member names.
13619 * rust-lang.c (val_print_struct, rust_print_enum)
13620 (rust_print_struct_def, rust_internal_print_type): Style member
13621 names.
13622 * p-valprint.c (pascal_object_print_value_fields): Style member
13623 names. Only call fprintf_symbol_filtered for static members.
13624 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13625 * f-valprint.c (f_val_print): Style member names.
13626 * f-typeprint.c (f_type_print_base): Style member names.
13627 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13628 call fprintf_symbol_filtered for static members.
13629 (cp_print_class_member): Style member names.
13630 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13631 member names.
13632 * ada-valprint.c (ada_print_scalar): Style enum names.
13633 (ada_val_print_enum): Likewise.
13634 * ada-typeprint.c (print_enum_type): Style enum names.
13635
d4d947ae
TT
136362020-02-21 Tom Tromey <tom@tromey.com>
13637
13638 * psympriv.h (struct partial_symtab): Update comment.
13639
e94e944b
TT
136402020-02-21 Tom Tromey <tromey@adacore.com>
13641
13642 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13643 type is CORE_ADDR.
13644
1eb73179
TV
136452020-02-21 Tom de Vries <tdevries@suse.de>
13646
13647 PR gdb/25534
13648 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13649 if dependencies[i]->user != NULL.
13650
4f180d53
AT
136512020-02-21 Ali Tamur <tamur@google.com>
13652
13653 * dwarf2/read.c (dwarf2_name): Add null check.
13654
22b6cd70
TT
136552020-02-20 Tom Tromey <tom@tromey.com>
13656
13657 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13658 ">=", in binary search.
13659 (dwarf2_find_containing_comp_unit): New overload.
13660 (run_test): New self-test.
13661 (_initialize_dwarf2_read): Register new test.
13662
bd0cf5a6
NC
136632020-02-20 Nelson Chu <nelson.chu@sifive.com>
13664
13665 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13666 * riscv-tdep.h: Likewise.
13667 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13668 rv32-only CSR.
13669 * features/riscv/64bit-csr.xml: Regenerated.
13670
3f702acd
SDJ
136712020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13672 Tom Tromey <tom@tromey.com>
13673
13674 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13675 of 'fputc_unfiltered'.
13676 (putchar_unfiltered): Call 'fputc_unfiltered'.
13677 (fputc_unfiltered): Call 'fputs_unfiltered'.
13678
d13c7322
AB
136792020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13680
13681 * config.in: Regenerate.
13682 * configure: Regenerate.
13683 * configure.ac: Add --with-python-libdir option.
13684 * main.c: Use WITH_PYTHON_LIBDIR.
13685
869d8950
TT
136862020-02-19 Tom Tromey <tom@tromey.com>
13687
13688 * symtab.c (general_symbol_info::compute_and_set_names): Use
13689 obstack_strndup. Simplify call to symbol_set_demangled_name.
13690
298e9637
SM
136912020-02-19 Simon Marchi <simon.marchi@efficios.com>
13692
13693 * dwarf2/read.c (allocate_signatured_type_table,
13694 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13695 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13696 Remove objfile parameter, update all callers.
13697
08410482
DE
136982020-02-19 Doug Evans <dje@google.com>
13699
13700 PR rust/25535
13701 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13702 rust_enum_variant calculation.
13703
dfdeeca1
TT
137042020-02-19 Tom Tromey <tromey@adacore.com>
13705
13706 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13707
2ef5453b
TT
137082020-02-19 Tom Tromey <tromey@adacore.com>
13709
13710 * ada-lang.c (cache_symbol): Use obstack_strdup.
13711
9f1528a1
AB
137122020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13713
13714 * configure: Regenerate.
13715
d3c22fa8
TT
137162020-02-19 Tom Tromey <tromey@adacore.com>
13717
13718 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13719 NULL check.
13720
bf84f706
MR
137212020-02-19 Maciej W. Rozycki <macro@wdc.com>
13722
13723 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13724
d1c9b20f
AB
137252020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13726
13727 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13728 if GDBSERVER is not defined.
13729 (riscv_tdesc_cache): Likewise, also store const target_desc.
13730 (STATIC_IN_GDB): Define.
13731 (riscv_create_target_description): Update declaration with
13732 STATIC_IN_GDB.
13733 (riscv_lookup_target_description): New function, only define if
13734 GDBSERVER is not defined.
13735 * arch/riscv.h (riscv_create_target_description): Declare only
13736 when GDBSERVER is defined.
13737 (riscv_lookup_target_description): New declaration when GDBSERVER
13738 is not defined.
13739 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13740 (riscv_linux_read_features): ...this, and return
13741 riscv_gdbarch_features instead of target_desc.
13742 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13743 (riscv_linux_read_description): Rename to...
13744 (riscv_linux_read_features): ...this.
13745 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13746 Update to use riscv_gdbarch_features and
13747 riscv_lookup_target_description.
13748 * riscv-tdep.c (riscv_find_default_target_description): Use
13749 riscv_lookup_target_description instead of
13750 riscv_create_target_description.
13751
373d7ac0
SM
137522020-02-18 Simon Marchi <simon.marchi@efficios.com>
13753
13754 * valprint.c (generic_val_print_enum_1): When printing a flag
13755 enum with value 0 and there is no enumerator with value 0, print
13756 just "0" instead of "(unknown: 0x0)".
13757
b29a2df0
SM
137582020-02-18 Simon Marchi <simon.marchi@efficios.com>
13759
13760 * valprint.c (generic_val_print_enum_1): Print unknown part of
13761 flag enum in hex.
13762
6740f0cc
SM
137632020-02-18 Simon Marchi <simon.marchi@efficios.com>
13764
13765 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13766 flag enums to contain duplicate enumerators.
13767 * valprint.c (generic_val_print_enum_1): Update comment.
13768
edd45eb0
SM
137692020-02-18 Simon Marchi <simon.marchi@efficios.com>
13770
13771 * dwarf2/read.c: Include "count-one-bits.h".
13772 (update_enumeration_type_from_children): If an enumerator has
13773 multiple bits set, don't treat the enumeration as a "flag enum".
13774 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13775 of flag enums have 0 or 1 bit set.
13776
6d0cf446
BE
137772020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13778
13779 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13780 conversion.
13781 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13782 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13783 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13784 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13785 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13786
7001c1b7
SM
137872020-02-18 Simon Marchi <simon.marchi@efficios.com>
13788
13789 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13790
fdb61c6c
SM
137912020-02-14 Simon Marchi <simon.marchi@efficios.com>
13792
13793 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13794 displaced_step_closure_up.
13795 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13796 (struct displaced_step_closure_up):
13797 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13798 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13799 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13800 Likewise.
13801 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13802 * gdbarch.c, gdbarch.h: Re-generate.
13803 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13804 displaced_step_closure_up.
13805 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13806 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13807 * infrun.h (displaced_step_closure_up): New type alias.
13808 (struct displaced_step_inferior_state) <step_closure>: Change
13809 type to displaced_step_closure_up.
13810 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13811 displaced_step_closure_up.
13812 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13813
a4a38eb4
TT
138142020-02-14 Tom Tromey <tom@tromey.com>
13815
13816 * minidebug.c (gnu_debug_key): New global.
13817 (find_separate_debug_file_in_section): Use it.
13818
e8217e61
SM
138192020-02-14 Simon Marchi <simon.marchi@efficios.com>
13820
13821 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13822 std::unique_ptr.
13823 * gdbarch.c: Re-generate.
13824 * gdbarch.h: Re-generate.
13825 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13826 change.
13827 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13828 type to std::unique_ptr.
13829 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13830 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13831 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13832 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13833 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13834 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13835 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13836 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13837 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13838
d8d83535
SM
138392020-02-14 Simon Marchi <simon.marchi@efficios.com>
13840
13841 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13842 std::unique_ptr.
13843 (displaced_step_clear): Rename to...
13844 (displaced_step_reset): ... this. Just call displaced->reset ().
13845 (displaced_step_clear_cleanup): Rename to...
13846 (displaced_step_reset_cleanup): ... this.
13847 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13848 (displaced_step_fixup): Likewise.
13849 (resume_1): Likewise.
13850 (handle_inferior_event): Restore child's memory before calling
13851 displaced_step_fixup on the parent.
13852 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13853 to std::unique_ptr.
13854 <step_closure>: Change type to std::unique_ptr.
13855
5f661e03
SM
138562020-02-14 Simon Marchi <simon.marchi@efficios.com>
13857
13858 * arm-tdep.c: Include count-one-bits.h.
13859 (cleanup_block_store_pc): Use count_one_bits.
13860 (cleanup_block_load_pc): Use count_one_bits.
13861 (arm_copy_block_xfer): Use count_one_bits.
13862 (thumb2_copy_block_xfer): Use count_one_bits.
13863 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13864 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13865 (thumb_get_next_pcs_raw): Use count_one_bits.
13866 (arm_get_next_pcs_raw): Use count_one_bits_l.
13867 * arch/arm.c (bitcount): Remove.
13868 * arch/arm.h (bitcount): Remove.
13869
8084e579
TT
138702020-02-14 Tom Tromey <tromey@adacore.com>
13871
13872 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13873 Update.
13874 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13875 * dwarf2/loc.c (call_site_find_chain_1): Return
13876 unique_xmalloc_ptr.
13877 (call_site_find_chain): Likewise.
13878
258bf0ee
RB
138792020-02-14 Richard Biener <rguenther@suse.de>
13880
13881 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13882 on expression with division operators.
13883
f98a8458
AKS
138842020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13885
13886 * MAINTAINERS (Write After Approval): Adding myself.
13887
d1437c0e
TT
138882020-02-12 Tom Tromey <tom@tromey.com>
13889
13890 * event-loop.c (event_data, gdb_event, event_handler_func):
13891 Remove.
13892
3d4560f7
TT
138932020-02-12 Tom Tromey <tom@tromey.com>
13894
13895 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13896 (dwarf2_frame_objfile_data): Add comment.
13897 (find_comp_unit, set_comp_unit): New functions.
13898 (dwarf2_frame_find_fde): Use find_comp_unit.
13899 (dwarf2_build_frame_info): Use set_comp_unit.
13900
21982304
TT
139012020-02-12 Tom Tromey <tom@tromey.com>
13902
13903 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13904 (comp_unit): Don't initialize objfile.
13905 (execute_cfa_program): Add text_offset parameter.
13906 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13907 (dwarf2_frame_cache): Update.
13908 (dwarf2_build_frame_info): Don't set "objfile" member.
13909
4debb237
TT
139102020-02-12 Tom Tromey <tom@tromey.com>
13911
13912 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13913 (decode_frame_entry): Likewise.
13914 (dwarf2_build_frame_info): Update.
13915
0d404d44
TT
139162020-02-12 Tom Tromey <tom@tromey.com>
13917
13918 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13919 (decode_frame_entry_1): Use the comp_unit obstack.
13920
a7a3ae5c
TT
139212020-02-12 Tom Tromey <tom@tromey.com>
13922
13923 * dwarf2/frame.c (struct comp_unit): Add initializers and
13924 constructor.
13925 (dwarf2_frame_objfile_data): Store a comp_unit.
13926 (dwarf2_frame_find_fde): Update.
13927 (dwarf2_build_frame_info): Use "new".
13928
a9d65418
TT
139292020-02-12 Tom Tromey <tom@tromey.com>
13930
13931 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13932 (dwarf2_fde_table): Typedef for std::vector.
13933 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13934 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13935 (decode_frame_entry): Update.
13936 (dwarf2_build_frame_info): Use "new".
13937
7559c217
CB
139382020-02-12 Christian Biesinger <cbiesinger@google.com>
13939
13940 * arm-tdep.c (arm_gdbarch_init): Update.
13941 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13942 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13943 have_neon, is_m>: Change to bool.
13944
aeefc73c
CB
139452020-02-12 Christian Biesinger <cbiesinger@google.com>
13946
13947 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13948
d27b8e5f
TT
139492020-02-12 Tom Tromey <tom@tromey.com>
13950
13951 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13952
cd5900f3
HD
139532020-02-12 Hannes Domani <ssbssa@yahoo.de>
13954
13955 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13956 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13957
f056b22b
TT
139582020-02-11 Tom Tromey <tom@tromey.com>
13959
13960 * psymtab.h: Update comment.
13961
f92ff6b5
TT
139622020-02-11 Tom Tromey <tom@tromey.com>
13963
13964 * gdb_obstack.h (struct auto_obstack): Use
13965 DISABLE_COPY_AND_ASSIGN.
13966
3fd6912b
TT
139672020-02-11 Tom Tromey <tom@tromey.com>
13968
13969 * dwarf2/frame.h (struct objfile): Don't forward declare.
13970
69ed9b74
CB
139712020-02-11 Christian Biesinger <cbiesinger@google.com>
13972
13973 * cris-tdep.c (cris_supply_gregset): Change signature to match
13974 what struct regset expects.
13975 (cris_regset): New struct.
13976 (fetch_core_registers): Remove.
13977 (cris_iterate_over_regset_sections): New function.
13978 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13979 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13980
bda874f6
CB
139812020-02-11 Christian Biesinger <cbiesinger@google.com>
13982
13983 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13984 registers.
13985
754e1564
CB
139862020-02-11 Christian Biesinger <cbiesinger@google.com>
13987
13988 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13989
8ddd8e0e
SM
139902020-02-11 Simon Marchi <simon.marchi@efficios.com>
13991
13992 * configure: Re-generate.
13993
898e7f60
SM
139942020-02-11 Simon Marchi <simon.marchi@efficios.com>
13995
13996 * configure: Re-generate.
13997
58df732b
SM
139982020-02-11 Simon Marchi <simon.marchi@efficios.com>
13999
14000 * acinclude: Update warning.m4 path.
14001 * warning.m4: Move to gdbsupport.
14002
da5bd37e
TT
140032020-02-11 Tom Tromey <tromey@adacore.com>
14004
14005 * remote.c (remote_console_output): Update.
14006 * printcmd.c (printf_command): Update.
14007 * event-loop.c (gdb_wait_for_event): Update.
14008 * linux-nat.c (sigchld_handler): Update.
14009 * remote-sim.c (gdb_os_write_stdout): Update.
14010 (gdb_os_flush_stdout): Update.
14011 (gdb_os_flush_stderr): Update.
14012 (gdb_os_write_stderr): Update.
14013 * exceptions.c (print_exception): Update.
14014 * remote-fileio.c (remote_fileio_func_read): Update.
14015 (remote_fileio_func_write): Update.
14016 * tui/tui.c (tui_enable): Update.
14017 * tui/tui-interp.c (tui_interp::init): Update.
14018 * utils.c (init_page_info): Update.
14019 (putchar_unfiltered, fputc_unfiltered): Update.
14020 (gdb_flush): Update.
14021 (emit_style_escape): Update.
14022 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14023 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14024 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14025 (stderr_file::write): Update.
14026 (stderr_file::puts): Update.
14027 * ui-file.h (ui_file_isatty, ui_file_write)
14028 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14029 (ui_file_puts): Don't declare.
14030
85f0dd3c
TV
140312020-02-10 Tom de Vries <tdevries@suse.de>
14032
14033 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14034 sentinel to char *.
14035
2e927613
TV
140362020-02-09 Tom de Vries <tdevries@suse.de>
14037
14038 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14039 filename if it matches "<artificial>".
14040
6bafc845
HD
140412020-02-09 Hannes Domani <ssbssa@yahoo.de>
14042
14043 * windows-tdep.c (struct enum_value_name): New struct.
14044 (create_enum): New function.
14045 (windows_get_siginfo_type): Create and use enum types.
14046
7928d571
HD
140472020-02-09 Hannes Domani <ssbssa@yahoo.de>
14048
14049 * NEWS: Mention $_siginfo support for Windows.
14050 * windows-nat.c (handle_exception): Set siginfo_er.
14051 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14052 (windows_xfer_siginfo): New function.
14053 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14054 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14055 (init_windows_gdbarch_data): New function.
14056 (get_windows_gdbarch_data): New function.
14057 (windows_get_siginfo_type): New function.
14058 (windows_init_abi): Register windows_get_siginfo_type.
14059 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14060
6751ebae
TT
140612020-02-08 Tom Tromey <tom@tromey.com>
14062
14063 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14064 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14065 <keep>: Declare method.
14066 <m_keep>: Remove member.
14067 <~cutu_reader>: Remove.
14068 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14069 (cutu_reader::cutu_reader): Update.
14070 (cutu_reader::keep): Rename from ~cutu_reader.
14071 (process_psymtab_comp_unit, build_type_psymtabs_1)
14072 (process_skeletonless_type_unit, load_partial_comp_unit)
14073 (load_full_comp_unit, dwarf2_read_addr_index)
14074 (read_signatured_type): Update.
14075
135f5437
TT
140762020-02-08 Tom Tromey <tom@tromey.com>
14077
14078 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14079 "want_partial_unit" parameter.
14080 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14081 Inline check for DW_TAG_partial_unit.
14082 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14083
9f66ff1c
TT
140842020-02-08 Tom Tromey <tom@tromey.com>
14085
14086 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14087 read.c.
14088 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14089 read.c.
14090
c8a7a66f
TT
140912020-02-08 Tom Tromey <tom@tromey.com>
14092
14093 * dwarf2/read.c (read_address): Move to comp-unit.c.
14094 (dwarf2_rnglists_process, dwarf2_ranges_process)
14095 (read_attribute_value, dwarf_decode_lines_1)
14096 (var_decode_location, decode_locdesc): Update.
14097 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14098 read.c. Remove "cu" parameter.
14099 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14100 method.
14101
8266302d
TT
141022020-02-08 Tom Tromey <tom@tromey.com>
14103
14104 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14105 (read_indirect_line_string): Update.
14106 * dwarf2/comp-unit.c (read_offset): Remove.
14107 (read_comp_unit_head): Update.
14108 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14109 method.
14110 (read_offset): Don't declare.
14111
4057dfde
TT
141122020-02-08 Tom Tromey <tom@tromey.com>
14113
14114 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14115 * dwarf2/read.c (struct comp_unit_head): Move to
14116 dwarf2/comp-unit.h.
14117 (enum class rcuh_kind): Move to comp-unit.h.
14118 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14119 (read_comp_unit_head, error_check_comp_unit_head)
14120 (read_and_check_comp_unit_head): Move to comp-unit.c.
14121 (read_offset, dwarf_unit_type_name): Likewise.
14122 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14123 (cutu_reader::cutu_reader, read_call_site_scope)
14124 (find_partial_die, follow_die_offset): Update.
14125 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14126
24aa364d
TT
141272020-02-08 Tom Tromey <tom@tromey.com>
14128
14129 * dwarf2/read.c (read_offset_1): Move to leb.c.
14130 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14131 (dwarf_decode_macro_bytes): Update.
14132 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14133 * dwarf2/leb.h (read_offset): Declare.
14134
2c7d5afc
TT
141352020-02-08 Tom Tromey <tom@tromey.com>
14136
14137 * dwarf2/read.c (dwarf2_section_size): Remove.
14138 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14139 Update.
14140 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14141
4075cb26
TT
141422020-02-08 Tom Tromey <tom@tromey.com>
14143
14144 * dwarf2/read.c (read_initial_length): Move to leb.c.
14145 * dwarf2/leb.h (read_initial_length): Declare.
14146 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14147 handle_nonstd parameter.
14148 * dwarf2/frame.c (read_initial_length): Remove.
14149 (decode_frame_entry_1): Update.
14150
09ba997f
TT
141512020-02-08 Tom Tromey <tom@tromey.com>
14152
14153 * dwarf2/loc.c (dwarf2_find_location_expression)
14154 (dwarf_evaluate_loc_desc::get_tls_address)
14155 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14156 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14157 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14158 (dwarf2_compile_property_to_c)
14159 (dwarf2_loc_desc_get_symbol_read_needs)
14160 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14161 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14162 (loclist_describe_location, loclist_tracepoint_var_ref)
14163 (loclist_generate_c_location): Update.
14164 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14165 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14166 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14167 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14168 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14169 (dwarf2_per_cu_data::addr_size)
14170 (dwarf2_per_cu_data::ref_addr_size)
14171 (dwarf2_per_cu_data::text_offset)
14172 (dwarf2_per_cu_data::addr_type): Now methods.
14173 (per_cu_header_read_in): Make per_cu "const".
14174 (dwarf2_version): Remove.
14175 (dwarf2_per_cu_data::int_type): Now a method.
14176 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14177 (set_die_type, read_array_type, read_subrange_index_type)
14178 (read_tag_string_type, read_subrange_type): Update.
14179 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14180 offset_size, ref_addr_size, text_offset, addr_type, version,
14181 objfile, int_type, addr_sized_int_type>: Declare methods.
14182
96c738c0
TT
141832020-02-08 Tom Tromey <tom@tromey.com>
14184
14185 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14186 Move earlier.
14187
8fdd972c
TT
141882020-02-08 Tom Tromey <tom@tromey.com>
14189
14190 * dwarf2/read.h (dwarf_line_debug): Declare.
14191 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14192 * dwarf2/read.c: Move line_header code to new files.
14193 (dwarf_line_debug): No longer static.
14194 * dwarf2/line-header.c: New file.
14195 * dwarf2/line-header.h: New file.
14196
03075812
TT
141972020-02-08 Tom Tromey <tom@tromey.com>
14198
14199 * dwarf2/read.c (struct line_header) <file_full_name,
14200 file_file_name>: Return unique_xmalloc_ptr.
14201 (line_header::file_file_name): Update.
14202 (line_header::file_full_name): Update.
14203 (dw2_get_file_names_reader): Update.
14204 (macro_start_file): Update.
14205
bb822404
TT
142062020-02-08 Tom Tromey <tom@tromey.com>
14207
14208 * dwarf2/read.c (struct line_header) <file_full_name,
14209 file_file_name>: Declare methods.
14210 (dw2_get_file_names_reader): Update.
14211 (file_file_name): Now a method.
14212 (file_full_name): Likewise.
14213 (macro_start_file): Update.
14214
009b64fc
TT
142152020-02-08 Tom Tromey <tom@tromey.com>
14216
14217 * dwarf2/read.c (dwarf_always_disassemble)
14218 (show_dwarf_always_disassemble): Move to loc.c.
14219 (_initialize_dwarf2_read): Move "always-disassemble" registration
14220 to loc.c.
14221 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14222 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14223 static.
14224 (show_dwarf_always_disassemble): Move from read.c.
14225 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14226
5895093f
TT
142272020-02-08 Tom Tromey <tom@tromey.com>
14228
14229 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14230 (create_quick_file_names_table): Return htab_up.
14231 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14232 Update.
14233 * dwarf2/read.h (struct dwarf2_per_objfile)
14234 <quick_file_names_table>: Now htab_up.
14235
b3b32279
TT
142362020-02-08 Tom Tromey <tom@tromey.com>
14237
14238 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14239
1d33d811
TT
142402020-02-08 Tom Tromey <tom@tromey.com>
14241
14242 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14243 Rewrite.
14244 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14245 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14246 (abbrev_table::abbrev_table): No longer inline.
14247 (ABBREV_HASH_SIZE): Remove.
14248 (abbrev_table::m_abbrevs): Now an htab_up.
14249
86de1d91
TT
142502020-02-08 Tom Tromey <tom@tromey.com>
14251
14252 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14253 (cutu_reader): Update.
14254 (build_type_psymtabs_1): Update.
14255 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14256 (abbrev_table::alloc_abbrev): Update.
14257 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14258 (abbrev_table::read): New static method, renamed from
14259 abbrev_table_read_table.
14260 (abbrev_table::alloc_abbrev)
14261 (abbrev_table::add_abbrev): Now private.
14262 (abbrev_table::abbrev_table): Now private.
14263 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14264
0335378b
TT
142652020-02-08 Tom Tromey <tom@tromey.com>
14266
14267 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14268 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14269 htab_up.
14270
48b490f2
TT
142712020-02-08 Tom Tromey <tom@tromey.com>
14272
14273 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14274 htab_up.
14275 (lookup_dwo_unit_in_dwp): Update.
14276 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14277 on obstack.
14278
bc68fb19
TT
142792020-02-08 Tom Tromey <tom@tromey.com>
14280
14281 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14282 obstack.
14283
d15acc42
TT
142842020-02-08 Tom Tromey <tom@tromey.com>
14285
14286 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14287 line_header_hash.
14288 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14289 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14290 Change type to htab_up.
14291
eaa5fa8b
TT
142922020-02-08 Tom Tromey <tom@tromey.com>
14293
14294 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14295 htab_up. Don't allocate on obstack.
14296 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14297 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14298 Change type to htab_up.
14299
b0b6a987
TT
143002020-02-08 Tom Tromey <tom@tromey.com>
14301
14302 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14303 Change type to htab_up.
14304 * dwarf2/read.c (create_signatured_type_table_from_index)
14305 (create_signatured_type_table_from_debug_names)
14306 (create_all_type_units, add_type_unit)
14307 (lookup_dwo_signatured_type, lookup_signatured_type)
14308 (process_skeletonless_type_unit): Update.
14309 (create_debug_type_hash_table, create_debug_types_hash_table):
14310 Change type of types_htab.
14311 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14312 htab_up. Don't allocate on obstack.
14313 (create_cus_hash_table): Change type of cus_htab parameter.
14314 (struct dwo_file) <cus, tus>: Now htab_up.
14315 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14316 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14317 (queue_and_load_all_dwo_tus): Update.
14318 * dwarf2/index-write.c (write_gdbindex): Update.
14319 (write_debug_names): Update.
14320
39856def
TT
143212020-02-08 Tom Tromey <tom@tromey.com>
14322
14323 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14324 dwarf2/read.c. Remove "next" member. Add constructor ntad
14325 destructor.
14326 (struct dwarf2_per_objfile) <queue>: New member.
14327 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14328 dwarf2/read.h.
14329 (dwarf2_queue, dwarf2_queue_tail): Remove.
14330 (class dwarf2_queue_guard): Add parameter to constructor. Use
14331 DISABLE_COPY_AND_ASSIGN.
14332 <m_per_objfile>: New member.
14333 <~dwarf2_queue_guard>: Rewrite.
14334 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14335 Update.
14336 (~dwarf2_queue_item): New.
14337
3e225074
TT
143382020-02-08 Tom Tromey <tom@tromey.com>
14339
14340 * dwarf2/read.c (struct die_info) <has_children>: New member.
14341 (dw2_get_file_names_reader): Remove has_children.
14342 (dw2_get_file_names): Update.
14343 (read_cutu_die_from_dwo): Remove has_children.
14344 (cutu_reader::init_tu_and_read_dwo_dies)
14345 (cutu_reader::cutu_reader): Update.
14346 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14347 Remove has_children.
14348 (build_type_psymtabs_1, process_skeletonless_type_unit)
14349 (load_partial_comp_unit, load_full_comp_unit): Update.
14350 (create_dwo_cu_reader): Remove has_children.
14351 (create_cus_hash_table, read_die_and_children): Update.
14352 (read_full_die_1,read_full_die): Remove has_children.
14353 (read_signatured_type): Update.
14354 (class cutu_reader) <has_children>: Remove.
14355
82ca8957
TT
143562020-02-08 Tom Tromey <tom@tromey.com>
14357
14358 * dwarf2/expr.c: Rename from dwarf2expr.c.
14359 * dwarf2/expr.h: Rename from dwarf2expr.h.
14360 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14361 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14362 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14363 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14364 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14365 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14366 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14367 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14368 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14369 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14370 * dwarf2/loc.c: Rename from dwarf2loc.c.
14371 * dwarf2/loc.h: Rename from dwarf2loc.h.
14372 * dwarf2/read.c: Rename from dwarf2read.c.
14373 * dwarf2/read.h: Rename from dwarf2read.h.
14374 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14375 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14376 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14377 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14378 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14379 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14380 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14381 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14382 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14383 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14384 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14385 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14386 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14387 Update.
14388 * Makefile.in (COMMON_SFILES): Update.
14389 (HFILES_NO_SRCDIR): Update.
14390
9e35d499
TT
143912020-02-08 Tom Tromey <tom@tromey.com>
14392
14393 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14394 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14395
1eba2311
TT
143962020-02-08 Tom Tromey <tom@tromey.com>
14397
14398 * dwarf2read.h (struct die_info): Don't declare.
14399
e41c2da2
TT
144002020-02-08 Tom Tromey <tom@tromey.com>
14401
14402 * dwarf2read.h (die_info_ptr): Remove typedef.
14403
4fc6c0d5
TT
144042020-02-08 Tom Tromey <tom@tromey.com>
14405
14406 * dwarf2read.c (read_call_site_scope)
14407 (handle_data_member_location, dwarf2_add_member_fn)
14408 (mark_common_block_symbol_computed, read_common_block)
14409 (attr_to_dynamic_prop, partial_die_info::read)
14410 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14411 (dwarf2_symbol_mark_computed, set_die_type): Update.
14412 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14413 method.
14414 (attr_form_is_block): Don't declare.
14415 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14416
cd6c91b4
TT
144172020-02-08 Tom Tromey <tom@tromey.com>
14418
14419 * dwarf2read.c (dwarf2_find_base_address, )
14420 (read_call_site_scope, rust_containing_type)
14421 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14422 (handle_data_member_location, dwarf2_add_member_fn)
14423 (get_alignment, read_structure_type, process_structure_scope)
14424 (mark_common_block_symbol_computed, read_common_block)
14425 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14426 (partial_die_info::read, read_attribute_value, new_symbol)
14427 (lookup_die_type, dwarf2_get_ref_die_offset)
14428 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14429 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14430 (dwarf2_symbol_mark_computed): Update.
14431 * dwarf2/attribute.h (struct attribute) <value_as_address,
14432 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14433 methods.
14434 (value_as_address, attr_form_is_section_offset)
14435 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14436 * dwarf2/attribute.c (attribute::value_as_address)
14437 (attribute::form_is_section_offset, attribute::form_is_constant)
14438 (attribute::form_is_ref): Now methods.
14439
162dce55
TT
144402020-02-08 Tom Tromey <tom@tromey.com>
14441
14442 * dwarf2read.c (struct attribute, DW_STRING)
14443 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14444 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14445 (attr_form_is_block, attr_form_is_section_offset)
14446 (attr_form_is_constant, attr_form_is_ref): Move.
14447 * dwarf2/attribute.h: New file.
14448 * dwarf2/attribute.c: New file, from dwarf2read.c.
14449 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14450
3054dd54
TT
144512020-02-08 Tom Tromey <tom@tromey.com>
14452
14453 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14454 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14455 Move.
14456 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14457 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14458 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14459 abbrev.c.
14460 * dwarf2/abbrev.h: New file.
14461 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14462 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14463
96b79293
TT
144642020-02-08 Tom Tromey <tom@tromey.com>
14465
14466 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14467 (dwarf2_section_size, dwarf2_get_section_info)
14468 (create_signatured_type_table_from_debug_names)
14469 (create_addrmap_from_aranges, read_debug_names_from_section)
14470 (get_gdb_index_contents_from_section, read_comp_unit_head)
14471 (error_check_comp_unit_head, read_abbrev_offset)
14472 (create_debug_type_hash_table, init_cu_die_reader)
14473 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14474 (read_comp_units_from_section, create_cus_hash_table)
14475 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14476 (create_dwp_v2_section, dwarf2_rnglists_process)
14477 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14478 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14479 (read_indirect_string_from_dwz, read_addr_index_1)
14480 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14481 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14482 (fill_in_loclist_baton): Update.
14483 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14484 get_containing_section, get_bfd_owner, get_bfd_section,
14485 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14486 (dwarf2_read_section, get_section_name, get_section_file_name)
14487 (get_containing_section, get_section_bfd_owner)
14488 (get_section_bfd_section, get_section_name, get_section_file_name)
14489 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14490 declare.
14491 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14492 (dwarf2_section_info::get_bfd_owner)
14493 (dwarf2_section_info::get_bfd_section)
14494 (dwarf2_section_info::get_name)
14495 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14496 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14497 (dwarf2_section_info::read): Now methods.
14498 * dwarf-index-write.c (class debug_names): Update.
14499
2c86cff9
TT
145002020-02-08 Tom Tromey <tom@tromey.com>
14501
14502 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14503 Move to dwarf2/section.h.
14504 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14505 (get_section_bfd_section, get_section_name)
14506 (get_section_file_name, get_section_id, get_section_flags)
14507 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14508 dwarf2/section.c.
14509 * dwarf2/section.h: New file.
14510 * dwarf2/section.c: New file, from dwarf2read.c.
14511 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14512
f4382c45
TT
145132020-02-08 Tom Tromey <tom@tromey.com>
14514
14515 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14516 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14517 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14518 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14519 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14520 * dwarf2/leb.h: New file, from dwarf2read.c.
14521 * dwarf2/leb.c: New file, from dwarf2read.c.
14522 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14523 Remove.
14524 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14525 (COMMON_SFILES): Add dwarf2/leb.c.
14526
01840b7a
JB
145272020-02-08 Joel Brobecker <brobecker@adacore.com>
14528
14529 GDB 9.1 released.
14530
dfcb27e4
IB
145312020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14532
14533 PR gdb/25190:
aac66a4c
SM
14534 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14535 * gdb/remote.c (remote_console_output): Update.
14536 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14537 (ui_file_puts): ...this.
14538 * gdb/ui-file.h (ui_file_puts): Add declaration.
14539 * gdb/utils.c (emit_style_escape): Update.
14540 (flush_wrap_buffer): Update.
14541 (fputs_maybe_filtered): Update.
14542 (fputs_unfiltered): Add function.
dfcb27e4 14543
faa17681
IB
145442020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14545
aac66a4c
SM
14546 * gdb/event-loop.c (gdb_wait_for_event): Update.
14547 * gdb/printcmd.c (printf_command): Update.
14548 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14549 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14550 (gdb_os_flush_stderr): Update.
14551 * gdb/remote.c (remote_console_output): Update.
14552 * gdb/ui-file.c (gdb_flush): Rename to...
14553 (ui_file_flush): ...this.
14554 (stderr_file::write): Update.
14555 (stderr_file::puts): Update.
14556 * gdb/ui-file.h (gdb_flush): Rename to...
14557 (ui_file_flush): ...this.
14558 * gdb/utils.c (gdb_flush): Add function.
14559 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14560
5abbbe1d
TT
145612020-02-07 Tom Tromey <tromey@adacore.com>
14562
14563 PR breakpoints/24915:
14564 * source.c (find_and_open_source): Do not check basenames_may_differ.
14565
919adfe8
TT
145662020-02-07 Tom Tromey <tom@tromey.com>
14567
14568 * README: Update gdbserver documentation.
14569 * gdbserver: Move to top level.
14570 * configure.tgt (build_gdbserver): Remove.
14571 * configure.ac: Remove --enable-gdbserver.
14572 * configure: Rebuild.
14573 * Makefile.in (distclean): Don't mention gdbserver.
14574
1d5d29e7
SV
145752020-02-06 Shahab Vahedi <shahab@synopsys.com>
14576
14577 * source-cache.c (source_cache::ensure): Surround
14578 get_plain_source_lines with a try/catch.
14579 (source_cache::get_line_charpos): Get rid of try/catch
14580 and only check for the return value of "ensure".
14581 * tui/tui-source.c (tui_source_window::set_contents):
14582 Simplify "nlines" calculation.
14583
6eb1129c
SV
145842020-02-06 Shahab Vahedi <shahab@synopsys.com>
14585
14586 * MAINTAINERS (Write After Approval): Add myself.
14587
c6a42d11
CB
145882020-02-05 Christian Biesinger <cbiesinger@google.com>
14589
14590 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14591 function call.
14592
c8ecdda6
CB
145932020-02-05 Christian Biesinger <cbiesinger@google.com>
14594
14595 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14596
f6480e70
MR
145972020-02-05 Maciej W. Rozycki <macro@wdc.com>
14598
14599 * nat/riscv-linux-tdesc.h: New file.
14600 * nat/riscv-linux-tdesc.c: New file, taking code from...
14601 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14602 ... here.
14603 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14604 NATDEPFILES.
14605
dcc9fbc6
AB
146062020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14607
14608 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14609 we don't set the fake simulator ptid to the null_ptid.
14610
719546c4
SM
146112020-02-03 Simon Marchi <simon.marchi@efficios.com>
14612
14613 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14614 * gdbthread.h (class thread_info) <resumed>: Likewise.
14615 * infrun.c (resume_1): Likewise.
14616 (proceed): Likewise.
14617 (infrun_thread_stop_requested): Likewise.
14618 (stop_all_threads): Likewise.
14619 (handle_inferior_event): Likewise.
14620 (restart_threads): Likewise.
14621 (finish_step_over): Likewise.
14622 (keep_going_stepped_thread): Likewise.
14623 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14624 (linux_handle_extended_wait): Likewise.
14625 * record-btrace.c (get_thread_current_frame_id): Likewise.
14626 * record-full.c (record_full_wait_1): Likewise.
14627 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14628 * target.c (target_resume): Likewise.
14629 * thread.c (set_running_thread): Likewise.
14630
e409c542
AKS
146312020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14632
14633 * f-valprint.c (f77_print_array_1): Changed datatype of index
14634 variable to LONGEST from int to enable it to contain bound
14635 values correctly.
14636
ee98c0da
MR
146372020-02-03 Maciej W. Rozycki <macro@wdc.com>
14638
14639 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14640 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14641 offsets according to FLEN determined.
14642 (riscv_linux_nat_target::read_description): Determine FLEN
14643 dynamically.
14644 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14645 according to FLEN determined.
14646 (riscv_linux_nat_target::store_registers): Likewise.
14647
aa66aac4
SV
146482020-02-01 Shahab Vahedi <shahab@synopsys.com>
14649
14650 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14651 when reg->group is empty and reggroup is not.
14652
fd9faca8
TT
146532020-01-31 Tom Tromey <tromey@adacore.com>
14654
14655 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14656 Call beneath target's mourn_inferior after unpushing.
14657
42330a68
AB
146582020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14659
14660 PR tui/9765
14661 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14662 have enough lines to fill the screen, still return the lowest
14663 address we found.
14664
7a27a45b
AB
146652020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14666
14667 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14668 '-', '<', and '>' commands.
14669
c47f70e2
PA
146702020-01-29 Pedro Alves <palves@redhat.com>
14671 Sergio Durigan Junior <sergiodj@redhat.com>
14672
14673 * infcmd.c (construct_inferior_arguments): Assert that
14674 'argc' is greater than 0.
14675
5133a315
LM
146762020-01-29 Luis Machado <luis.machado@linaro.org>
14677
14678 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14679 (BRK_INSN_MASK): Define to 0xd4200000.
14680 (aarch64_program_breakpoint_here_p): New function.
14681 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14682 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14683 breakpoint.c.
14684 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14685 breakpoint.h
14686 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14687 call gdbarch_program_breakpoint_here_p.
14688 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14689 default_program_breakpoint_here_p, changed return type to bool and
14690 simplified.
14691 * breakpoint.h (program_breakpoint_here): Moved prototype to
14692 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14693 return type to bool.
14694 * gdbarch.c: Regenerate.
14695 * gdbarch.h: Regenerate.
14696 * gdbarch.sh (program_breakpoint_here_p): New method.
14697 * infrun.c (handle_signal_stop): Call
14698 gdbarch_program_breakpoint_here_p.
14699
168f8c6b
TT
147002020-01-26 Tom Tromey <tom@tromey.com>
14701
14702 * ctfread.c (struct ctf_fp_info): Reindent.
14703 (_initialize_ctfread): Remove.
14704
128a391f
TT
147052020-01-26 Tom Tromey <tom@tromey.com>
14706
14707 * psymtab.c (partial_map_expand_apply)
14708 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14709 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14710 (psym_print_stats, psym_expand_symtabs_for_function)
14711 (psym_map_symbol_filenames, psym_map_matching_symbols)
14712 (psym_expand_symtabs_matching)
14713 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14714 (maintenance_check_psymtabs): Use new methods.
14715 * psympriv.h (struct partial_symtab) <readin_p,
14716 get_compunit_symtab>: New methods.
14717 <readin, compunit_symtab>: Remove members.
14718 (struct standard_psymtab): New.
14719 (struct legacy_psymtab): Derive from standard_psymtab.
14720 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14721 standard_psymtab.
14722 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14723
0494dbec
TT
147242020-01-26 Tom Tromey <tom@tromey.com>
14725
14726 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14727 read_dependencies. Add assert.
14728 * psymtab.c (partial_symtab::read_dependencies): New method.
14729 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14730 method.
14731 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14732 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14733 read_dependencies.
14734 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14735 Add assert.
14736
8566b89b
TT
147372020-01-26 Tom Tromey <tom@tromey.com>
14738
14739 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14740 Call expand_psymtab.
14741 (xcoff_read_symtab): Call expand_psymtab.
14742 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14743 legacy_expand_psymtab.
14744 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14745 method.
14746 (struct legacy_psymtab) <expand_psymtab>: Implement.
14747 <legacy_expand_psymtab>: New member.
14748 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14749 (parse_partial_symbols): Set legacy_expand_psymtab.
14750 (psymtab_to_symtab_1): Change argument order. Call
14751 expand_psymtab.
14752 (new_psymtab): Set legacy_expand_psymtab.
14753 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14754 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14755 expand_psymtab.
14756 (dwarf2_psymtab::expand_psymtab): Rename from
14757 psymtab_to_symtab_1. Call expand_psymtab.
14758 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14759 (dbx_end_psymtab): Likewise.
14760 (dbx_psymtab_to_symtab_1): Change argument order. Call
14761 expand_psymtab.
14762 (dbx_read_symtab): Call expand_psymtab.
14763 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14764 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14765 (ctf_psymtab::read_symtab): Call expand_psymtab.
14766
077cbab2
TT
147672020-01-26 Tom Tromey <tom@tromey.com>
14768
14769 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14770 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14771 messages.
14772 * mdebugread.c (mdebug_read_symtab): Remove prints.
14773 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14774 assert.
14775 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14776
891813be
TT
147772020-01-26 Tom Tromey <tom@tromey.com>
14778
14779 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14780 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14781 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14782 legacy_symtab.
14783 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14784 * psymtab.c (psymtab_to_symtab): Call method.
14785 (dump_psymtab): Update.
14786 * psympriv.h (struct partial_symtab): Add virtual destructor.
14787 <read_symtab>: New method.
14788 (struct legacy_symtab): New.
14789 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14790 (struct pst_map) <pst>: Now a legacy_psymtab.
14791 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14792 (new_psymtab): Use legacy_psymtab.
14793 * dwarf2read.h (struct dwarf2_psymtab): New.
14794 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14795 * dwarf2read.c (dwarf2_create_include_psymtab)
14796 (dwarf2_build_include_psymtabs, create_type_unit_group)
14797 (create_partial_symtab, process_psymtab_comp_unit_reader)
14798 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14799 (set_partial_user): Use dwarf2_psymtab.
14800 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14801 (psymtab_to_symtab_1, process_full_comp_unit)
14802 (process_full_type_unit, dwarf2_ranges_read)
14803 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14804 (dwarf_decode_lines): Use dwarf2_psymtab.
14805 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14806 (add_address_entry_worker, write_one_signatured_type)
14807 (recursively_count_psymbols, recursively_write_psymbols)
14808 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14809 (write_debug_names): Likewise.
14810 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14811 <pst>: Now a legacy_psymtab.
14812 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14813 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14814 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14815 * ctfread.c (struct ctf_psymtab): New.
14816 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14817 ctf_psymtab.
14818 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14819 (create_partial_symtab): Return a ctf_psymtab.
14820 (scan_partial_symbols): Update.
14821
c3693a1d
TT
148222020-01-26 Tom Tromey <tom@tromey.com>
14823
14824 * xcoffread.c (xcoff_start_psymtab): Use new.
14825 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14826 renamed from start_psymtab_common.
14827 * psympriv.h (struct partial_symtab): Add new constructor.
14828 (start_psymtab_common): Don't declare.
14829 * mdebugread.c (parse_partial_symbols): Use new.
14830 * dwarf2read.c (create_partial_symtab): Use new.
14831 * dbxread.c (start_psymtab): Use new.
14832 * ctfread.c (create_partial_symtab): Use new.
14833
32caafd0
TT
148342020-01-26 Tom Tromey <tom@tromey.com>
14835
14836 * xcoffread.c (xcoff_end_psymtab): Use new.
14837 * psymtab.c (start_psymtab_common): Use new.
14838 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14839 Update.
14840 * psympriv.h (struct partial_symtab): Add parameters to
14841 constructor. Don't inline.
14842 (allocate_psymtab): Don't declare.
14843 * mdebugread.c (new_psymtab): Use new.
14844 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14845 * dbxread.c (dbx_end_psymtab): Use new.
14846
abaa2f23
TT
148472020-01-26 Tom Tromey <tom@tromey.com>
14848
14849 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14850 allocate_psymtab. Update documentation.
14851 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14852 allocate_psymtab. Do not use new.
14853 (allocate_psymtab): Use new. Update.
14854
6d94535f
TT
148552020-01-26 Tom Tromey <tom@tromey.com>
14856
14857 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14858 * psymtab.c (psym_print_stats): Update.
14859 * psympriv.h (struct partial_symtab) <readin,
14860 psymtabs_addrmap_supported, anonymous>: Now bool.
14861 * mdebugread.c (psymtab_to_symtab_1): Update.
14862 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14863 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14864 (process_full_comp_unit, process_full_type_unit): Update.
14865 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14866 * ctfread.c (psymtab_to_symtab): Update.
14867
6f17252b
TT
148682020-01-26 Tom Tromey <tom@tromey.com>
14869
14870 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14871 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14872 * psymtab.c (psymtab_storage): Delete psymtabs.
14873 (psymtab_storage::allocate_psymtab): Use new.
14874 (psymtab_storage::discard_psymtab): Use delete.
14875 * psympriv.h (struct partial_symtab): Add constructor and
14876 initializers.
14877
f6f1cebc
TT
148782020-01-26 Tom Tromey <tom@tromey.com>
14879
14880 * machoread.c: Do not include psympriv.h.
14881
e47e48f6
PW
148822020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14883
14884 * NEWS: Mention the new option and the set/show commands.
14885
a2fedca9
PW
148862020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14887
14888 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14889 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14890 (validate_exec_file): New variables, enums, functions.
14891 (exec_file_locate_attach, print_section_info): Style the filenames.
14892 (_initialize_exec): Install show_exec_file_mismatch_command and
14893 set_exec_file_mismatch_command.
14894 * gdbcore.h (validate_exec_file): Declare.
14895 * infcmd.c (attach_command): Call validate_exec_file.
14896 * remote.c ( remote_target::remote_add_inferior): Likewise.
14897
7ffa82e1
AB
148982020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14899
14900 * frame.c (find_frame_sal): Move call to get_next_frame into more
14901 inner scope.
14902 * inline-frame.c (inilne_state) <inline_state>: Update argument
14903 types.
14904 (inilne_state) <skipped_symbol>: Rename to...
14905 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14906 (skip_inline_frames): Build vector of skipped symbols and use this
14907 to reate the inline_state.
14908 (inline_skipped_symbol): Add a comment and some assertions, fetch
14909 skipped symbol from the list.
14910
3d92a3e3
AB
149112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14912
14913 * buildsym.c (lte_is_less_than): Delete.
14914 (buildsym_compunit::end_symtab_with_blockvector): Create local
14915 lambda function to sort line table entries, and use
14916 std::stable_sort instead of std::sort.
14917 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14918 markers when looking for a previous line.
14919
94a72be7
AB
149202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14921
14922 * dwarf2read.c (lnp_state_machine::record_line): Include
14923 end_sequence parameter in debug print out. Record the line if we
14924 are at an end_sequence marker even if it's not the start of a
14925 statement.
14926 * symmisc.c (maintenance_print_one_line_table): Print end of
14927 sequence markers with 'END' not '0'.
14928
53af73bf
PA
149292020-01-24 Pedro Alves <palves@redhat.com>
14930
14931 PR gdb/25410
14932 * thread.c (scoped_restore_current_thread::restore): Use
14933 switch_to_inferior_no_thread.
14934 * exec.c: Include "progspace-and-thread.h".
14935 (add_target_sections, remove_target_sections):
14936 scoped_restore_current_pspace_and_thread instead of
14937 scoped_restore_current_thread.
14938 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14939 and aspace to the inferior before calling clone_program_space.
14940 Remove stale comment.
14941
3050c6f4
CB
149422020-01-24 Christian Biesinger <cbiesinger@google.com>
14943
14944 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14945 (arm_netbsd_nat_target::fetch_registers): ...this.
14946 (arm_nbsd_nat_target::store_registers): Rename to...
14947 (arm_netbsd_nat_target::store_registers): ...this.
14948
73685c7e
CB
149492020-01-24 Christian Biesinger <cbiesinger@google.com>
14950
14951 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14952 register_t.
14953
89203d40
CB
149542020-01-24 Christian Biesinger <cbiesinger@google.com>
14955
14956 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14957 Update comment.
14958 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14959 Likewise.
14960 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14961 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14962 the correct replacement (iterate_over_regset_sections).
14963 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14964 Update comment.
14965
1ba1ac88
AB
149662020-01-24 Graham Markall <graham.markall@embecosm.com>
14967
14968 PR gdb/23718
14969 * gdb/python/python.c (execute_gdb_command): Call
14970 async_enable_stdin in catch block.
14971
f3364a6d
AB
149722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14973
14974 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14975 SWITCH_THRU_ALL_UIS.
14976
733d0a67
AB
149772020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14978
14979 PR tui/9765
14980 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14981 comment, add extra parameter, and update to store previous symbol
14982 when appropriate.
14983 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14984 add extra parameter.
14985 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14986 remove unneeded parameter, add try/catch around gdb_print_insn,
14987 rewrite to add items to asm_lines vector.
14988 (tui_find_backward_disassembly_start_address): New function.
14989 (tui_find_disassembly_address): Updated throughout.
14990 (tui_disasm_window::set_contents): Update for changes to
14991 tui_disassemble.
14992 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14993 number of lines to scroll.
14994
b3b3bada
SM
149952020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14996
14997 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14998 (SECT_OFF_DATA): Likewise.
14999 (SECT_OFF_RODATA): Likewise.
15000 (SECT_OFF_TEXT): Likewise.
15001 (SECT_OFF_BSS): Likewise.
15002 (struct objfile) <text_section_offset, data_section_offset>: New
15003 methods.
15004 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15005 objfile::text_section_offset.
15006 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15007 * coffread.c (coff_symtab_read): Likewise.
15008 (enter_linenos): Likewise.
15009 (process_coff_symbol): Likewise.
15010 * ctfread.c (get_objfile_text_range): Likewise.
15011 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15012 Use objfile::data_section_offset.
15013 * dwarf2-frame.c (execute_cfa_program): Use
15014 objfile::text_section_offset.
15015 (dwarf2_frame_find_fde): Likewise.
15016 * dwarf2read.c (create_addrmap_from_index): Likewise.
15017 (create_addrmap_from_aranges): Likewise.
15018 (dw2_find_pc_sect_compunit_symtab): Likewise.
15019 (process_psymtab_comp_unit_reader): Likewise.
15020 (add_partial_symbol): Likewise.
15021 (add_partial_subprogram): Likewise.
15022 (process_full_comp_unit): Likewise.
15023 (read_file_scope): Likewise.
15024 (read_func_scope): Likewise.
15025 (read_lexical_block_scope): Likewise.
15026 (read_call_site_scope): Likewise.
15027 (dwarf2_rnglists_process): Likewise.
15028 (dwarf2_ranges_process): Likewise.
15029 (dwarf2_ranges_read): Likewise.
15030 (dwarf_decode_lines_1): Likewise.
15031 (new_symbol): Likewise.
15032 (dwarf2_fetch_die_loc_sect_off): Likewise.
15033 (dwarf2_per_cu_text_offset): Likewise.
15034 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15035 * hppa-tdep.c (read_unwind_info): Likewise.
15036 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15037 * psympriv.h (struct partial_symtab): Likewise.
15038 * psymtab.c (find_pc_sect_psymtab): Likewise.
15039 * solib-svr4.c (enable_break): Likewise.
15040 * stap-probe.c (relocate_address): Use
15041 objfile::data_section_offset.
15042 * xcoffread.c (enter_line_range): Use
15043 objfile::text_section_offset.
15044 (read_xcoff_symtab): Likewise.
15045
ab53f382
SM
150462020-01-23 Simon Marchi <simon.marchi@efficios.com>
15047
15048 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15049 declaration to narrower scopes.
15050
e7eee665
SM
150512020-01-23 Simon Marchi <simon.marchi@efficios.com>
15052
15053 * darwin-nat.h (struct darwin_exception_msg, enum
15054 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15055 Move up.
15056 (class darwin_nat_target) <wait_1, check_new_threads,
15057 decode_exception_message, decode_message, stop_inferior,
15058 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15059 * darwin-nat.c (darwin_check_new_threads): Rename to...
15060 (darwin_nat_target::check_new_threads): ... this.
15061 (darwin_suspend_inferior_it): Remove.
15062 (darwin_decode_exception_message): Rename to...
15063 (darwin_nat_target::decode_exception_message): ... this.
15064 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15065 (darwin_decode_message): Rename to...
15066 (darwin_nat_target::decode_message): ... this.
15067 (cancel_breakpoint): Rename to...
15068 (darwin_nat_target::cancel_breakpoint): ... this.
15069 (darwin_wait): Rename to...
15070 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15071 instead of iterate_over_inferiors.
15072 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15073 (darwin_stop_inferior): Rename to...
15074 (darwin_nat_target::stop_inferior): ... this.
15075 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15076 (darwin_init_thread_list): Rename to...
15077 (darwin_nat_target::init_thread_list): ... this.
15078 (darwin_ptrace_him): Rename to...
15079 (darwin_nat_target::ptrace_him): ... this.
15080 (darwin_nat_target::create_inferior): Pass lambda function to
15081 fork_inferior.
15082 (darwin_nat_target::detach): Call stop_inferior instead of
15083 darwin_stop_inferior.
15084 * fork-inferior.h (fork_inferior): Change init_trace_fun
15085 parameter to gdb::function_view.
15086 * fork-inferior.c (fork_inferior): Likewise.
15087
c162ed3e
HD
150882020-01-23 Hannes Domani <ssbssa@yahoo.de>
15089
15090 * i386-cygwin-tdep.c (core_process_module_section): Update.
15091 * windows-nat.c (struct lm_info_windows): Add text_offset.
15092 (windows_xfer_shared_libraries): Update.
15093 * windows-tdep.c (windows_xfer_shared_library):
15094 Add text_offset_cached argument.
15095 * windows-tdep.h (windows_xfer_shared_library): Update.
15096
a1237872
SM
150972020-01-21 Simon Marchi <simon.marchi@efficios.com>
15098
15099 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15100
b3ee6dd9
SM
151012020-01-21 Simon Marchi <simon.marchi@efficios.com>
15102
15103 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15104 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15105 replace with range-based for.
15106 (gdbsim_interrupt_inferior): Remove.
15107 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15108 with a range-based for. Inline code from
15109 gdbsim_interrupt_inferior.
15110
f9fac3c8
SM
151112020-01-21 Simon Marchi <simon.marchi@efficios.com>
15112
15113 * infrun.c (proceed): Fix indentation.
15114
f6474de9
TT
151152020-01-21 Tom Tromey <tromey@adacore.com>
15116
15117 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15118 * python/python.c (python_extension_ops): Update.
15119 (gdbpy_colorize): New function.
15120 * python/lib/gdb/__init__.py (colorize): New function.
15121 * extension.h (ext_lang_colorize): Declare.
15122 * extension.c (ext_lang_colorize): New function.
15123 * extension-priv.h (struct extension_language_ops) <colorize>: New
15124 member.
15125 * cli/cli-style.c (_initialize_cli_style): Update help text.
15126
f0c702d4
LM
151272020-01-21 Luis Machado <luis.machado@linaro.org>
15128
15129 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15130 <cond>: Change type to bool.
15131 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15132 (aarch64_displaced_step_cb): Likewise.
15133 (aarch64_displaced_step_tb): Likewise.
15134
1ab139e5
LM
151352020-01-21 Luis Machado <luis.machado@linaro.org>
15136
15137 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15138 output.
15139
0c271889
LM
151402020-01-21 Luis Machado <luis.machado@linaro.org>
15141
15142 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15143 <pc_adjust>: Adjust the documentation.
15144 (aarch64_displaced_step_fixup): Check if PC really moved before
15145 adjusting it.
15146
4d89c1c7
TT
151472020-01-19 Tom Tromey <tom@tromey.com>
15148
15149 * disasm.c (~gdb_disassembler): New destructor.
15150 (gdb_buffered_insn_length): Call disassemble_free_target.
15151 * disasm.h (class gdb_disassembler): Declare destructor. Use
15152 DISABLE_COPY_AND_ASSIGN.
15153
c0ab21c2
TT
151542020-01-19 Tom Tromey <tom@tromey.com>
15155
15156 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15157 (die_reader_func_ftype): Remove.
15158 (cutu_reader): New class.
15159 (dw2_get_file_names_reader): Remove "data" parameter.
15160 (dw2_get_file_names): Use cutu_reader.
15161 (create_debug_type_hash_table): Update.
15162 (read_cutu_die_from_dwo): Update comment.
15163 (lookup_dwo_unit): Add dwo_name parameter.
15164 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15165 die_reader_func_ftype and data parameters.
15166 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15167 Remove die_reader_func_ftype and data parameters.
15168 (~cutu_reader): New; from init_cutu_and_read_dies.
15169 (cutu_reader::cutu_reader): Rename from
15170 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15171 and data parameters.
15172 (init_cutu_and_read_dies_simple): Remove.
15173 (struct process_psymtab_comp_unit_data): Remove.
15174 (process_psymtab_comp_unit_reader): Remove data parameter; add
15175 want_partial_unit and pretend_language parameters.
15176 (process_psymtab_comp_unit): Use cutu_reader.
15177 (build_type_psymtabs_reader): Remove data parameter.
15178 (build_type_psymtabs_1): Use cutu_reader.
15179 (process_skeletonless_type_unit): Likewise.
15180 (load_partial_comp_unit_reader): Remove.
15181 (load_partial_comp_unit): Use cutu_reader.
15182 (load_full_comp_unit_reader): Remove.
15183 (load_full_comp_unit): Use cutu_reader.
15184 (struct create_dwo_cu_data): Remove.
15185 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15186 dwo_unit parameters.
15187 (create_cus_hash_table): Use cutu_reader.
15188 (struct dwarf2_read_addr_index_data): Remove.
15189 (dwarf2_read_addr_index_reader): Remove.
15190 (dwarf2_read_addr_index): Use cutu_reader.
15191 (read_signatured_type_reader): Remove.
15192 (read_signatured_type): Use cutu_reader.
15193
45bbae5c
TT
151942020-01-19 Tom Tromey <tom@tromey.com>
15195
15196 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15197 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15198 (tui_wrefresh): Declare.
15199 * tui/tui-wingeneral.c (suppress_output): New global.
15200 (tui_suppress_output, ~tui_suppress_output): New constructor and
15201 destructor.
15202 (tui_wrefresh): New function.
15203 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15204 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15205 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15206 method.
15207 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15208 tui_wrefresh.
15209 (tui_data_window::no_refresh): New method.
15210 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15211 (tui_reg_command): Use tui_suppress_output
15212 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15213 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15214 method.
15215 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15216
4f13c1c0
TT
152172020-01-19 Tom Tromey <tom@tromey.com>
15218
15219 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15220 Handle case where symtab is null.
15221
fa47e446
SM
152222020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15223
15224 * linux-fork.c (one_fork_p): Simplify.
15225
26f42329
SM
152262020-01-17 Simon Marchi <simon.marchi@efficios.com>
15227
15228 * top.c (struct qt_args): Remove.
15229 (kill_or_detach): Change return type to void, replace `void *`
15230 parameter with a proper one.
15231 (print_inferior_quit_action): Likewise.
15232 (quit_confirm): Use range-based for loop to iterate over inferiors.
15233 (quit_force): Likewise.
15234
a9ac81b1
SM
152352020-01-17 Simon Marchi <simon.marchi@efficios.com>
15236
15237 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15238 `void *` parameter with proper parameters.
15239 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15240 (print_one_inferior): Change return type to void, replace `void *`
15241 parameter with proper parameters.
15242 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15243 inferiors.
15244 (get_other_inferior): Remove.
15245 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15246 inferiors.
15247
788eca49
SM
152482020-01-17 Simon Marchi <simon.marchi@efficios.com>
15249
15250 * mi/mi-interp.c (report_initial_inferior): Remove.
15251 (mi_interp::init): Use range-based for to iterate over inferiors.
15252
d9bc85b6
SM
152532020-01-17 Simon Marchi <simon.marchi@efficios.com>
15254
15255 * python/py-inferior.c (build_inferior_list): Remove.
15256 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15257
40c94099
CB
152582020-01-16 Christian Biesinger <cbiesinger@google.com>
15259
15260 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15261 (btrace_stitch_trace): Likewise.
15262 * charset.c (intermediate_encoding): Likewise (vaild).
15263 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15264 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15265 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15266
e0cdfe3c
HD
152672020-01-16 Hannes Domani <ssbssa@yahoo.de>
15268
15269 * windows-tdep.c (windows_get_tlb_type):
15270 Add rtl_user_process_parameters type.
15271
790f1718 152722020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15273 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15274
15275 PR build/24805
15276 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15277 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15278 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15279 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15280 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15281 (ps_plog): Redeclare exported functions with default visibility.
15282
3112ed97
NA
152832020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15284
15285 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15286 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15287
8dc3273e
SM
152882020-01-15 Simon Marchi <simon.marchi@efficios.com>
15289
15290 * infcmd.c (post_create_inferior): Use get_thread_regcache
15291 instead of get_current_regcache.
15292
ff47f4f0
TT
152932020-01-14 Tom Tromey <tom@tromey.com>
15294
15295 PR symtab/12535:
15296 * python/python.c (gdbpy_decode_line): Treat empty string the same
15297 as no argument.
15298
975f45b7
TT
152992020-01-14 Tom Tromey <tom@tromey.com>
15300
15301 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15302
25e57356
TT
153032020-01-14 Tom Tromey <tom@tromey.com>
15304
15305 * nat/linux-btrace.c: Don't include <config.h>.
15306 * nat/linux-ptrace.c: Don't include <config.h>.
15307 * nat/x86-linux-dregs.c: Don't include <config.h>.
15308
05ea2a05
TT
153092020-01-14 Tom Tromey <tom@tromey.com>
15310
15311 * configure: Rebuild.
15312 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15313
01027315
TT
153142020-01-14 Tom Tromey <tom@tromey.com>
15315
15316 * nat/x86-linux-dregs.c: Include configh.h.
15317 * nat/linux-ptrace.c: Include configh.h.
15318 * nat/linux-btrace.c: Include configh.h.
15319 * defs.h: Include config.h, bfd.h.
15320 * configure.ac: Don't source common.host.
15321 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15322 * configure: Rebuild.
15323 * acinclude.m4: Update path.
15324 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15325 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15326 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15327 (CLIBS): Add LIBSUPPORT.
15328 (CDEPS): Likewise.
15329 (COMMON_SFILES): Remove gdbsupport files.
15330 (HFILES_NO_SRCDIR): Likewise.
15331 (stamp-version): Update path to create-version.sh.
15332 (ALLDEPFILES): Remove gdbsupport files.
15333
b2ceabe8
TT
153342020-01-14 Tom Tromey <tom@tromey.com>
15335
15336 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15337 USE_WIN32API when needed.
15338 * configure.ac (USE_WIN32API): Don't define.
15339 (WIN32LIBS): Use WIN32APILIBS.
15340 * configure: Rebuild.
15341
25c51f71
TT
153422020-01-14 Tom Tromey <tom@tromey.com>
15343
15344 * configure: Rebuild.
15345 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15346
717c684d
BE
153472020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15348
15349 * skip.c (skip_function_command): Make skip w/o arguments use the
15350 name of the inlined function if pc is inside any inlined function.
15351
7da6a5b9
LM
153522020-01-14 Luis Machado <luis.machado@linaro.org>
15353
15354 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15355 * infrun.c (resume_1): Likewise.
15356 (handle_inferior_event): Remove stale comment.
15357 * linux-nat.c (linux_nat_target::resume): Update comments.
15358 (save_stop_reason): Likewise.
15359 (linux_nat_filter_event): Likewise.
15360 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15361
44e4c775
AB
153622020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15363
15364 * elfread.c (record_minimal_symbol): Set section index to 0 for
15365 non-allocatable sections.
15366
18a8505e
AT
15367
153682020-01-13 Ali Tamur <tamur@google.com>
15369
15370 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15371 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15372 to gdb::optional. Update comments.
15373 (dwo_file): Update comments.
15374 (read_attribute): Update API to take an additional out parameter,
15375 need_reprocess. This is used to mark attributes that need other
15376 attributes (e.g. str_offsets_base) for correct computation which may not
15377 have been read yet.
15378 (read_attribute_reprocess): New function declaration.
15379 (read_addr_index): Likewise.
15380 (read_dwo_str_index): Likewise.
15381 (read_stub_str_index): Likewise.
15382 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15383 (lookup_addr_base): New function definition.
15384 (lookup_ranges_base): Likewise.
15385 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15386 lookup_ranges_base.
15387 (init_cutu_and_read_dies): Update comments.
15388 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15389 unit. This is used to inherit parent's str_offsets_base and addr_base.
15390 Update comments.
15391 (init_cutu_and_read_dies_simple): Reflect API changes.
15392 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15393 (create_cus_hash_table): Change API to take parent compile unit.
15394 Reflect API changes.
15395 (open_and_init_dwo_file): Reflect API changes.
15396 (dwarf2_get_pc_bounds): Update comments.
15397 (dwarf2_record_block_ranges): Likewise.
15398 (read_full_die_1): Change implementation to reprocess attributes that
15399 need str_offsets_base and addr_base.
15400 (partial_die_info::read): Likewise.
15401 (read_attribute_reprocess): New function definition.
15402 (read_attribute_value): Change API to take an additional out parameter,
15403 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15404 when a non-dwo compile unit has index based attributes.
15405 (read_attribute): Reflect API changes.
15406 (read_addr_index_1): Reflect API changes. Update comments.
15407 (dwarf2_read_addr_index_data): Reflect API changes.
15408 (dwarf2_read_addr_index): Likewise.
15409 (read_str_index): Change API and implementation. This becomes a helper
15410 to be used by the new string index related methods. Update error
15411 message and comments.
15412 (read_dwo_str_index): New function definition.
15413 (read_stub_str_index): Likewise.
15414 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15415 * symfile.h (dwarf2_debug_sections): Likewise.
15416 * xcoffread.c (dwarf2_debug_sections): Likewise.
15417
0cac9354
SM
154182020-01-13 Simon Marchi <simon.marchi@efficios.com>
15419
15420 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15421 core_reg_sect type to gdb_byte *.
15422 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15423 * cris-tdep.c (fetch_core_registers): Likewise.
15424 * corelow.c (core_target::get_core_register_section): Change
15425 type of `contents` to gdb::byte_vector.
15426
9a6d629c
AB
154272020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15428
15429 * tui/tui-wingeneral.c (box_win): Position the title in the center
15430 of the border.
15431
d8b2f9e3
SM
154322020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15433
15434 * corelow.c (core_target::get_core_register_section): Use
15435 std::vector instead of alloca.
15436
bb564c58
SM
154372020-01-13 Simon Marchi <simon.marchi@efficios.com>
15438
15439 * warning.m4: Add -Wmissing-declarations to build_warnings.
15440 * configure: Re-generate.
15441
6b366111
SM
154422020-01-13 Simon Marchi <simon.marchi@efficios.com>
15443
15444 * python/python.c (init__gdb_module): Add declaration.
15445
6c265988
SM
154462020-01-13 Simon Marchi <simon.marchi@efficios.com>
15447
15448 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15449 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15450 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15451 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15452 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15453 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15454 * ada-exp.y (_initialize_ada_exp): Add declaration.
15455 * ada-lang.c (_initialize_ada_language): Add declaration.
15456 * ada-tasks.c (_initialize_tasks): Add declaration.
15457 * agent.c (_initialize_agent): Add declaration.
15458 * aix-thread.c (_initialize_aix_thread): Add declaration.
15459 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15460 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15461 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15462 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15463 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15464 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15465 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15466 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15467 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15468 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15469 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15470 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15471 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15472 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15473 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15474 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15475 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15476 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15477 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15478 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15479 * annotate.c (_initialize_annotate): Add declaration.
15480 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15481 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15482 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15483 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15484 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15485 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15486 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15487 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15488 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15489 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15490 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15491 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15492 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15493 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15494 * auto-load.c (_initialize_auto_load): Add declaration.
15495 * auxv.c (_initialize_auxv): Add declaration.
15496 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15497 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15498 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15499 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15500 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15501 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15502 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15503 * breakpoint.c (_initialize_breakpoint): Add declaration.
15504 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15505 * btrace.c (_initialize_btrace): Add declaration.
15506 * charset.c (_initialize_charset): Add declaration.
15507 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15508 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15509 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15510 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15511 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15512 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15513 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15514 * coffread.c (_initialize_coffread): Add declaration.
15515 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15516 * compile/compile.c (_initialize_compile): Add declaration.
15517 * complaints.c (_initialize_complaints): Add declaration.
15518 * completer.c (_initialize_completer): Add declaration.
15519 * copying.c (_initialize_copying): Add declaration.
15520 * corefile.c (_initialize_core): Add declaration.
15521 * corelow.c (_initialize_corelow): Add declaration.
15522 * cp-abi.c (_initialize_cp_abi): Add declaration.
15523 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15524 * cp-support.c (_initialize_cp_support): Add declaration.
15525 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15526 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15527 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15528 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15529 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15530 * ctfread.c (_initialize_ctfread): Add declaration.
15531 * d-lang.c (_initialize_d_language): Add declaration.
15532 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15533 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15534 * dbxread.c (_initialize_dbxread): Add declaration.
15535 * dcache.c (_initialize_dcache): Add declaration.
15536 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15537 * disasm.c (_initialize_disasm): Add declaration.
15538 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15539 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15540 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15541 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15542 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15543 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15544 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15545 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15546 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15547 * elfread.c (_initialize_elfread): Add declaration.
15548 * exec.c (_initialize_exec): Add declaration.
15549 * extension.c (_initialize_extension): Add declaration.
15550 * f-lang.c (_initialize_f_language): Add declaration.
15551 * f-valprint.c (_initialize_f_valprint): Add declaration.
15552 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15553 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15554 * filesystem.c (_initialize_filesystem): Add declaration.
15555 * findcmd.c (_initialize_mem_search): Add declaration.
15556 * findvar.c (_initialize_findvar): Add declaration.
15557 * fork-child.c (_initialize_fork_child): Add declaration.
15558 * frame-base.c (_initialize_frame_base): Add declaration.
15559 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15560 * frame.c (_initialize_frame): Add declaration.
15561 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15562 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15563 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15564 * gcore.c (_initialize_gcore): Add declaration.
15565 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15566 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15567 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15568 * gdbarch.c (_initialize_gdbarch): Add declaration.
15569 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15570 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15571 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15572 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15573 * go-lang.c (_initialize_go_language): Add declaration.
15574 * go32-nat.c (_initialize_go32_nat): Add declaration.
15575 * guile/guile.c (_initialize_guile): Add declaration.
15576 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15577 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15578 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15579 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15580 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15581 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15582 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15583 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15584 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15585 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15586 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15587 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15588 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15589 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15590 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15591 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15592 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15593 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15594 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15595 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15596 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15597 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15598 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15599 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15600 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15601 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15602 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15603 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15604 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15605 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15606 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15607 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15608 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15609 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15610 * infcall.c (_initialize_infcall): Add declaration.
15611 * infcmd.c (_initialize_infcmd): Add declaration.
15612 * inflow.c (_initialize_inflow): Add declaration.
15613 * infrun.c (_initialize_infrun): Add declaration.
15614 * interps.c (_initialize_interpreter): Add declaration.
15615 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15616 * jit.c (_initialize_jit): Add declaration.
15617 * language.c (_initialize_language): Add declaration.
15618 * linux-fork.c (_initialize_linux_fork): Add declaration.
15619 * linux-nat.c (_initialize_linux_nat): Add declaration.
15620 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15621 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15622 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15623 * m2-lang.c (_initialize_m2_language): Add declaration.
15624 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15625 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15626 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15627 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15628 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15629 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15630 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15631 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15632 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15633 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15634 * machoread.c (_initialize_machoread): Add declaration.
15635 * macrocmd.c (_initialize_macrocmd): Add declaration.
15636 * macroscope.c (_initialize_macroscope): Add declaration.
15637 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15638 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15639 * maint.c (_initialize_maint_cmds): Add declaration.
15640 * mdebugread.c (_initialize_mdebugread): Add declaration.
15641 * memattr.c (_initialize_mem): Add declaration.
15642 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15643 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15644 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15645 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15646 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15647 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15648 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15649 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15650 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15651 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15652 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15653 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15654 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15655 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15656 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15657 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15658 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15659 * mipsread.c (_initialize_mipsread): Add declaration.
15660 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15661 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15662 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15663 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15664 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15665 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15666 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15667 * nto-procfs.c (_initialize_procfs): Add declaration.
15668 * objc-lang.c (_initialize_objc_language): Add declaration.
15669 * observable.c (_initialize_observer): Add declaration.
15670 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15671 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15672 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15673 * osabi.c (_initialize_gdb_osabi): Add declaration.
15674 * osdata.c (_initialize_osdata): Add declaration.
15675 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15676 * parse.c (_initialize_parse): Add declaration.
15677 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15678 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15679 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15680 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15681 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15682 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15683 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15684 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15685 * printcmd.c (_initialize_printcmd): Add declaration.
15686 * probe.c (_initialize_probe): Add declaration.
15687 * proc-api.c (_initialize_proc_api): Add declaration.
15688 * proc-events.c (_initialize_proc_events): Add declaration.
15689 * proc-service.c (_initialize_proc_service): Add declaration.
15690 * procfs.c (_initialize_procfs): Add declaration.
15691 * producer.c (_initialize_producer): Add declaration.
15692 * psymtab.c (_initialize_psymtab): Add declaration.
15693 * python/python.c (_initialize_python): Add declaration.
15694 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15695 * record-btrace.c (_initialize_record_btrace): Add declaration.
15696 * record-full.c (_initialize_record_full): Add declaration.
15697 * record.c (_initialize_record): Add declaration.
15698 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15699 * regcache.c (_initialize_regcache): Add declaration.
15700 * reggroups.c (_initialize_reggroup): Add declaration.
15701 * remote-notif.c (_initialize_notif): Add declaration.
15702 * remote-sim.c (_initialize_remote_sim): Add declaration.
15703 * remote.c (_initialize_remote): Add declaration.
15704 * reverse.c (_initialize_reverse): Add declaration.
15705 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15706 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15707 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15708 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15709 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15710 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15711 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15712 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15713 Add declaration.
15714 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15715 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15716 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15717 * rust-exp.y (_initialize_rust_exp): Add declaration.
15718 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15719 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15720 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15721 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15722 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15723 * score-tdep.c (_initialize_score_tdep): Add declaration.
15724 * ser-go32.c (_initialize_ser_dos): Add declaration.
15725 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15726 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15727 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15728 * ser-uds.c (_initialize_ser_socket): Add declaration.
15729 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15730 * serial.c (_initialize_serial): Add declaration.
15731 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15732 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15733 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15734 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15735 * skip.c (_initialize_step_skip): Add declaration.
15736 * sol-thread.c (_initialize_sol_thread): Add declaration.
15737 * solib-aix.c (_initialize_solib_aix): Add declaration.
15738 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15739 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15740 * solib-frv.c (_initialize_frv_solib): Add declaration.
15741 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15742 * solib-target.c (_initialize_solib_target): Add declaration.
15743 * solib.c (_initialize_solib): Add declaration.
15744 * source-cache.c (_initialize_source_cache): Add declaration.
15745 * source.c (_initialize_source): Add declaration.
15746 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15747 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15748 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15749 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15750 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15751 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15752 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15753 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15754 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15755 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15756 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15757 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15758 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15759 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15760 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15761 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15762 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15763 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15764 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15765 * stabsread.c (_initialize_stabsread): Add declaration.
15766 * stack.c (_initialize_stack): Add declaration.
15767 * stap-probe.c (_initialize_stap_probe): Add declaration.
15768 * std-regs.c (_initialize_frame_reg): Add declaration.
15769 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15770 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15771 * symfile.c (_initialize_symfile): Add declaration.
15772 * symmisc.c (_initialize_symmisc): Add declaration.
15773 * symtab.c (_initialize_symtab): Add declaration.
15774 * target.c (_initialize_target): Add declaration.
15775 * target-connection.c (_initialize_target_connection): Add
15776 declaration.
15777 * target-dcache.c (_initialize_target_dcache): Add declaration.
15778 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15779 * thread.c (_initialize_thread): Add declaration.
15780 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15781 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15782 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15783 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15784 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15785 * tracectf.c (_initialize_ctf): Add declaration.
15786 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15787 * tracefile.c (_initialize_tracefile): Add declaration.
15788 * tracepoint.c (_initialize_tracepoint): Add declaration.
15789 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15790 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15791 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15792 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15793 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15794 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15795 * tui/tui.c (_initialize_tui): Add declaration.
15796 * typeprint.c (_initialize_typeprint): Add declaration.
15797 * ui-style.c (_initialize_ui_style): Add declaration.
15798 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15799 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15800 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15801 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15802 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15803 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15804 * unittests/filtered_iterator-selftests.c
15805 (_initialize_filtered_iterator_selftests): Add declaration.
15806 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15807 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15808 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15809 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15810 * unittests/main-thread-selftests.c
15811 (_initialize_main_thread_selftests): Add declaration.
15812 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15813 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15814 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15815 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15816 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15817 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15818 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15819 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15820 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15821 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15822 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15823 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15824 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15825 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15826 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15827 declaration.
15828 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15829 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15830 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15831 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15832 * user-regs.c (_initialize_user_regs): Add declaration.
15833 * utils.c (_initialize_utils): Add declaration.
15834 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15835 * valops.c (_initialize_valops): Add declaration.
15836 * valprint.c (_initialize_valprint): Add declaration.
15837 * value.c (_initialize_values): Add declaration.
15838 * varobj.c (_initialize_varobj): Add declaration.
15839 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15840 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15841 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15842 * windows-nat.c (_initialize_windows_nat): Add declaration.
15843 (_initialize_check_for_gdb_ini): Add declaration.
15844 (_initialize_loadable): Add declaration.
15845 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15846 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15847 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15848 * xcoffread.c (_initialize_xcoffread): Add declaration.
15849 * xml-support.c (_initialize_xml_support): Add declaration.
15850 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15851 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15852 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15853 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15854
e2de1eec
SM
158552020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15856
15857 * regformats/regdat.sh: Generate declaration for init function.
15858
e0037b4c
SM
158592020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15860
15861 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15862 up.
15863 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15864 close_one_inferior>: New methods.
15865 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15866 pass down target to find_inferior_pid.
15867 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15868 Pass down target to find_inferior_ptid.
15869 (gdbsim_target::create_inferior): Pass down target to
15870 add_thread_silent.
15871 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15872 target down to find_inferior_ptid and switch_to_thread.
15873 (gdbsim_target::close): Update to call close_one_inferior.
15874 (struct resume_data): Remove.
15875 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15876 directly, rather than through a void pointer.
15877 (gdbsim_target::resume): Update to call resume_one_inferior.
15878
58920b5b
SM
158792020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15880
15881 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15882
4ec89149
PA
158832020-01-12 Pedro Alves <palves@redhat.com>
15884
15885 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15886 directly for the current inferior instead of
15887 discard_all_inferiors.
15888 (discard_all_inferiors): Delete.
15889
7c392d1d
TT
158902020-01-11 Tom Tromey <tom@tromey.com>
15891
15892 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15893 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15894 deprecated_safe_get_selected_frame.
15895
d9ebdab7
TBA
158962020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15897
15898 * inferior.c (print_inferior): Switch inferior before printing it.
15899
f3c469b9
PA
159002020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15901 Pedro Alves <palves@redhat.com>
15902
15903 * progspace-and-thread.c (switch_to_program_space_and_thread):
15904 Assert there's an inferior for PSPACE. Use
15905 switch_to_inferior_no_thread to switch the inferior too.
15906 * progspace.c (program_space::~program_space): Call
15907 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15908 (program_space::free_all_objfiles): Don't call clear_symtab_users
15909 here.
15910 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15911
65c574f6
PA
159122020-01-10 Pedro Alves <palves@redhat.com>
15913
15914 * NEWS: Mention multi-target debugging, "info connections", and
15915 "add-inferior -no-connection".
15916
2f4fcf00
PA
159172020-01-10 Pedro Alves <palves@redhat.com>
15918
15919 * infrun.c: Include "target-connection.h".
15920 (check_multi_target_resumption): New.
15921 (proceed): Call it.
15922 * target-connection.c (make_target_connection_string): Make
15923 extern.
15924 * target-connection.h (make_target_connection_string): Declare.
15925
121b3efd
PA
159262020-01-10 Pedro Alves <palves@redhat.com>
15927
15928 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15929 * inferior.c (uiout_field_connection): New function.
15930 (print_inferior): Add new "connection-id" column.
15931 (add_inferior_command): Show connection number/string of added
15932 inferior.
15933 * process-stratum-target.h
15934 (process_stratum_target::connection_string): New virtual method.
15935 (process_stratum_target::connection_number): New field.
15936 * remote.c (remote_target::connection_string): New override.
15937 * target-connection.c: New file.
15938 * target-connection.h: New file.
15939 * target.c (decref_target): Remove process_stratum targets from
15940 the connection list.
15941 (target_stack::push): Add process_stratum targets to the
15942 connection list.
15943
4f837581
PA
159442020-01-10 Pedro Alves <palves@redhat.com>
15945
15946 Revert:
15947 2016-04-12 Pedro Alves <palves@redhat.com>
15948 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15949 Remove references to name.
15950 * serial.h (struct serial) <name>: Delete.
15951
f4ec508e
PA
159522020-01-10 Pedro Alves <palves@redhat.com>
15953
15954 * gdbarch-selftests.c (register_to_value_test): Remove "target
15955 already pushed" check.
15956
5b6d1e4f
PA
159572020-01-10 Pedro Alves <palves@redhat.com>
15958 John Baldwin <jhb@FreeBSD.org>
15959
15960 * aarch64-linux-nat.c
15961 (aarch64_linux_nat_target::thread_architecture): Adjust.
15962 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15963 (task_command_1): Likewise.
15964 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15965 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15966 (aix_thread_target::store_registers)
15967 (aix_thread_target::thread_alive): Adjust.
15968 * amd64-fbsd-tdep.c: Include "inferior.h".
15969 (amd64fbsd_get_thread_local_address): Pass down target.
15970 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15971 thread's gdbarch instead of target_gdbarch.
15972 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15973 get_last_target_status.
15974 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15975 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15976 inferiors.
15977 (update_inserted_breakpoint_locations): Skip if inferiors with no
15978 execution.
15979 (update_global_location_list): When handling moribund locations,
15980 find representative inferior for location's pspace, and use thread
15981 count of its process_stratum target.
15982 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15983 * bsd-uthread.c (bsd_uthread_target::wait): Use
15984 as_process_stratum_target and adjust thread_change_ptid and
15985 add_thread calls.
15986 (bsd_uthread_target::update_thread_list): Use
15987 as_process_stratum_target and adjust find_thread_ptid,
15988 thread_change_ptid and add_thread calls.
15989 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15990 find_thread_ptid call.
15991 * corelow.c (add_to_thread_list): Adjust add_thread call.
15992 (core_target_open): Adjust add_thread_silent and thread_count
15993 calls.
15994 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15995 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15996 * event-top.c (async_disconnect): Pop targets from all inferiors.
15997 * exec.c (add_target_sections): Push exec target on all inferiors
15998 sharing the program space.
15999 (remove_target_sections): Remove the exec target from all
16000 inferiors sharing the program space.
16001 (exec_on_vfork): New.
16002 * exec.h (exec_on_vfork): Declare.
16003 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16004 Pass it down.
16005 (fbsd_nat_target::update_thread_list): Adjust.
16006 (fbsd_nat_target::resume): Adjust.
16007 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16008 down.
16009 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16010 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16011 get_thread_arch_regcache call.
16012 * fork-child.c (gdb_startup_inferior): Pass target down to
16013 startup_inferior and set_executing.
16014 * gdbthread.h (struct process_stratum_target): Forward declare.
16015 (add_thread, add_thread_silent, add_thread_with_info)
16016 (in_thread_list): Add process_stratum_target parameter.
16017 (find_thread_ptid(inferior*, ptid_t)): New overload.
16018 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16019 parameter.
16020 (all_threads()): Delete overload.
16021 (all_threads, all_non_exited_threads): Add process_stratum_target
16022 parameter.
16023 (all_threads_safe): Use brace initialization.
16024 (thread_count): Add process_stratum_target parameter.
16025 (set_resumed, set_running, set_stop_requested, set_executing)
16026 (threads_are_executing, finish_thread_state): Add
16027 process_stratum_target parameter.
16028 (switch_to_thread): Use is_current_thread.
16029 * i386-fbsd-tdep.c: Include "inferior.h".
16030 (i386fbsd_get_thread_local_address): Pass down target.
16031 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16032 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16033 have_inferiors check.
16034 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16035 (inf_ptrace_target::attach): Adjust.
16036 * infcall.c (run_inferior_call): Adjust.
16037 * infcmd.c (run_command_1): Pass target to
16038 scoped_finish_thread_state.
16039 (proceed_thread_callback): Skip inferiors with no execution.
16040 (continue_command): Rename 'all_threads' local to avoid hiding
16041 'all_threads' function. Adjust get_last_target_status call.
16042 (prepare_one_step): Adjust set_running call.
16043 (signal_command): Use user_visible_resume_target. Compare thread
16044 pointers instead of inferior_ptid.
16045 (info_program_command): Adjust to pass down target.
16046 (attach_command): Mark target's 'thread_executing' flag.
16047 (stop_current_target_threads_ns): New, factored out from ...
16048 (interrupt_target_1): ... this. Switch inferior before making
16049 target calls.
16050 * inferior-iter.h
16051 (struct all_inferiors_iterator, struct all_inferiors_range)
16052 (struct all_inferiors_safe_range)
16053 (struct all_non_exited_inferiors_range): Filter on
16054 process_stratum_target too. Remove explicit.
16055 * inferior.c (inferior::inferior): Push dummy target on target
16056 stack.
16057 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16058 Add process_stratum_target parameter, and pass it down.
16059 (have_live_inferiors): Adjust.
16060 (switch_to_inferior_and_push_target): New.
16061 (add_inferior_command, clone_inferior_command): Handle
16062 "-no-connection" parameter. Use
16063 switch_to_inferior_and_push_target.
16064 (_initialize_inferior): Mention "-no-connection" option in
16065 the help of "add-inferior" and "clone-inferior" commands.
16066 * inferior.h: Include "process-stratum-target.h".
16067 (interrupt_target_1): Use bool.
16068 (struct inferior) <push_target, unpush_target, target_is_pushed,
16069 find_target_beneath, top_target, process_target, target_at,
16070 m_stack>: New.
16071 (discard_all_inferiors): Delete.
16072 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16073 (all_inferiors, all_non_exited_inferiors): Add
16074 process_stratum_target parameter.
16075 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16076 (target_last_proc_target): New global.
16077 (follow_fork_inferior): Push target on new inferior. Pass target
16078 to add_thread_silent. Call exec_on_vfork. Handle target's
16079 reference count.
16080 (follow_fork): Adjust get_last_target_status call. Also consider
16081 target.
16082 (follow_exec): Push target on new inferior.
16083 (struct execution_control_state) <target>: New field.
16084 (user_visible_resume_target): New.
16085 (do_target_resume): Call target_async.
16086 (resume_1): Set target's threads_executing flag. Consider resume
16087 target.
16088 (commit_resume_all_targets): New.
16089 (proceed): Also consider resume target. Skip threads of inferiors
16090 with no execution. Commit resumtion in all targets.
16091 (start_remote): Pass current inferior to wait_for_inferior.
16092 (infrun_thread_stop_requested): Consider target as well. Pass
16093 thread_info pointer to clear_inline_frame_state instead of ptid.
16094 (infrun_thread_thread_exit): Consider target as well.
16095 (random_pending_event_thread): New inferior parameter. Use it.
16096 (do_target_wait): Rename to ...
16097 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16098 down.
16099 (threads_are_resumed_pending_p, do_target_wait): New.
16100 (prepare_for_detach): Adjust calls.
16101 (wait_for_inferior): New inferior parameter. Handle it. Use
16102 do_target_wait_1 instead of do_target_wait.
16103 (fetch_inferior_event): Adjust. Switch to representative
16104 inferior. Pass target down.
16105 (set_last_target_status): Add process_stratum_target parameter.
16106 Save target in global.
16107 (get_last_target_status): Add process_stratum_target parameter and
16108 handle it.
16109 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16110 (context_switch): Check inferior_ptid == null_ptid before calling
16111 inferior_thread().
16112 (get_inferior_stop_soon): Pass down target.
16113 (wait_one): Rename to ...
16114 (poll_one_curr_target): ... this.
16115 (struct wait_one_event): New.
16116 (wait_one): New.
16117 (stop_all_threads): Adjust.
16118 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16119 event's target.
16120 (switch_back_to_stepped_thread): Also consider target.
16121 (print_stop_event): Update.
16122 (normal_stop): Update. Also consider the resume target.
16123 * infrun.h (wait_for_inferior): Remove declaration.
16124 (user_visible_resume_target): New declaration.
16125 (get_last_target_status, set_last_target_status): New
16126 process_stratum_target parameter.
16127 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16128 process_stratum_target parameter, and use it.
16129 (clear_inline_frame_state (thread_info*)): New.
16130 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16131 process_stratum_target parameter.
16132 (clear_inline_frame_state (thread_info*)): Declare.
16133 * linux-fork.c (delete_checkpoint_command): Pass target down to
16134 find_thread_ptid.
16135 (checkpoint_command): Adjust.
16136 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16137 instead of just tweaking inferior_ptid.
16138 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16139 (exit_lwp): Pass target down to find_thread_ptid.
16140 (attach_proc_task_lwp_callback): Pass target down to
16141 add_thread/set_running/set_executing.
16142 (linux_nat_target::attach): Pass target down to
16143 thread_change_ptid.
16144 (get_detach_signal): Pass target down to find_thread_ptid.
16145 Consider last target status's target.
16146 (linux_resume_one_lwp_throw, resume_lwp)
16147 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16148 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16149 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16150 (linux_nat_target::async_wait_fd): New.
16151 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16152 target down.
16153 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16154 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16155 * linux-thread-db.c (struct thread_db_info::process_target): New
16156 field.
16157 (add_thread_db_info): Save target.
16158 (get_thread_db_info): New process_stratum_target parameter. Also
16159 match target.
16160 (delete_thread_db_info): New process_stratum_target parameter.
16161 Also match target.
16162 (thread_from_lwp): Adjust to pass down target.
16163 (thread_db_notice_clone): Pass down target.
16164 (check_thread_db_callback): Pass down target.
16165 (try_thread_db_load_1): Always push the thread_db target.
16166 (try_thread_db_load, record_thread): Pass target down.
16167 (thread_db_target::detach): Pass target down. Always unpush the
16168 thread_db target.
16169 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16170 target down. Always unpush the thread_db target.
16171 (find_new_threads_callback, thread_db_find_new_threads_2)
16172 (thread_db_target::update_thread_list): Pass target down.
16173 (thread_db_target::pid_to_str): Pass current inferior down.
16174 (thread_db_target::get_thread_local_address): Pass target down.
16175 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16176 target down.
16177 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16178 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16179 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16180 (procfs_init_inferior): Rename to ...
16181 (procfs_target::procfs_init_inferior): ... this and adjust.
16182 (procfs_target::create_inferior, procfs_notice_thread)
16183 (procfs_do_thread_registers): Adjust.
16184 * ppc-fbsd-tdep.c: Include "inferior.h".
16185 (ppcfbsd_get_thread_local_address): Pass down target.
16186 * proc-service.c (ps_xfer_memory): Switch current inferior and
16187 program space as well.
16188 (get_ps_regcache): Pass target down.
16189 * process-stratum-target.c
16190 (process_stratum_target::thread_address_space)
16191 (process_stratum_target::thread_architecture): Pass target down.
16192 * process-stratum-target.h
16193 (process_stratum_target::threads_executing): New field.
16194 (as_process_stratum_target): New.
16195 * ravenscar-thread.c
16196 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16197 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16198 down.
16199 * record-btrace.c (record_btrace_target::info_record): Adjust.
16200 (record_btrace_target::record_method)
16201 (record_btrace_target::record_is_replaying)
16202 (record_btrace_target::fetch_registers)
16203 (get_thread_current_frame_id, record_btrace_target::resume)
16204 (record_btrace_target::wait, record_btrace_target::stop): Pass
16205 target down.
16206 * record-full.c (record_full_wait_1): Switch to event thread.
16207 Pass target down.
16208 * regcache.c (regcache::regcache)
16209 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16210 process_stratum_target parameter and handle it.
16211 (current_thread_target): New global.
16212 (get_thread_regcache): Add process_stratum_target parameter and
16213 handle it. Switch inferior before calling target method.
16214 (get_thread_regcache): Pass target down.
16215 (get_thread_regcache_for_ptid): Pass target down.
16216 (registers_changed_ptid): Add process_stratum_target parameter and
16217 handle it.
16218 (registers_changed_thread, registers_changed): Pass target down.
16219 (test_get_thread_arch_aspace_regcache): New.
16220 (current_regcache_test): Define a couple local test_target_ops
16221 instances and use them for testing.
16222 (readwrite_regcache): Pass process_stratum_target parameter.
16223 (cooked_read_test, cooked_write_test): Pass mock_target down.
16224 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16225 (get_thread_arch_aspace_regcache): Add process_stratum_target
16226 parameter.
16227 (regcache::target): New method.
16228 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16229 (regcache::registers_changed_ptid): Add process_stratum_target
16230 parameter.
16231 (regcache::m_target): New field.
16232 (registers_changed_ptid): Add process_stratum_target parameter.
16233 * remote.c (remote_state::supports_vCont_probed): New field.
16234 (remote_target::async_wait_fd): New method.
16235 (remote_unpush_and_throw): Add remote_target parameter.
16236 (get_current_remote_target): Adjust.
16237 (remote_target::remote_add_inferior): Push target.
16238 (remote_target::remote_add_thread)
16239 (remote_target::remote_notice_new_inferior)
16240 (get_remote_thread_info): Pass target down.
16241 (remote_target::update_thread_list): Skip threads of inferiors
16242 bound to other targets. (remote_target::close): Don't discard
16243 inferiors. (remote_target::add_current_inferior_and_thread)
16244 (remote_target::process_initial_stop_replies)
16245 (remote_target::start_remote)
16246 (remote_target::remote_serial_quit_handler): Pass down target.
16247 (remote_target::remote_unpush_target): New remote_target
16248 parameter. Unpush the target from all inferiors.
16249 (remote_target::remote_unpush_and_throw): New remote_target
16250 parameter. Pass it down.
16251 (remote_target::open_1): Check whether the current inferior has
16252 execution instead of checking whether any inferior is live. Pass
16253 target down.
16254 (remote_target::remote_detach_1): Pass down target. Use
16255 remote_unpush_target.
16256 (extended_remote_target::attach): Pass down target.
16257 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16258 (remote_target::append_resumption): Pass down target.
16259 (remote_target::append_pending_thread_resumptions)
16260 (remote_target::remote_resume_with_hc, remote_target::resume)
16261 (remote_target::commit_resume): Pass down target.
16262 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16263 (remote_target::interrupt_query)
16264 (remote_target::remove_new_fork_children)
16265 (remote_target::check_pending_events_prevent_wildcard_vcont)
16266 (remote_target::remote_parse_stop_reply)
16267 (remote_target::process_stop_reply): Pass down target.
16268 (first_remote_resumed_thread): New remote_target parameter. Pass
16269 it down.
16270 (remote_target::wait_as): Pass down target.
16271 (unpush_and_perror): New remote_target parameter. Pass it down.
16272 (remote_target::readchar, remote_target::remote_serial_write)
16273 (remote_target::getpkt_or_notif_sane_1)
16274 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16275 down target.
16276 (remote_target::mourn_inferior): Pass down target. Use
16277 remote_unpush_target.
16278 (remote_target::core_of_thread)
16279 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16280 (remote_target::pid_to_exec_file)
16281 (remote_target::thread_handle_to_thread_info): Pass down target.
16282 (remote_target::async_wait_fd): New.
16283 * riscv-fbsd-tdep.c: Include "inferior.h".
16284 (riscv_fbsd_get_thread_local_address): Pass down target.
16285 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16286 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16287 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16288 Adjust.
16289 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16290 * solib-svr4.c (enable_break): Pass down target.
16291 * spu-multiarch.c (parse_spufs_run): Pass down target.
16292 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16293 * target-delegates.c: Regenerate.
16294 * target.c (g_target_stack): Delete.
16295 (current_top_target): Return the current inferior's top target.
16296 (target_has_execution_1): Refer to the passed-in inferior's top
16297 target.
16298 (target_supports_terminal_ours): Check whether the initial
16299 inferior was already created.
16300 (decref_target): New.
16301 (target_stack::push): Incref/decref the target.
16302 (push_target, push_target, unpush_target): Adjust.
16303 (target_stack::unpush): Defref target.
16304 (target_is_pushed): Return bool. Adjust to refer to the current
16305 inferior's target stack.
16306 (dispose_inferior): Delete, and inline parts ...
16307 (target_preopen): ... here. Only dispose of the current inferior.
16308 (target_detach): Hold strong target reference while detaching.
16309 Pass target down.
16310 (target_thread_name): Add assertion.
16311 (target_resume): Pass down target.
16312 (target_ops::beneath, find_target_at): Adjust to refer to the
16313 current inferior's target stack.
16314 (get_dummy_target): New.
16315 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16316 has a thread running.
16317 (initialize_targets): Rename to ...
16318 (_initialize_target): ... this.
16319 * target.h: Include "gdbsupport/refcounted-object.h".
16320 (struct target_ops): Inherit refcounted_object.
16321 (target_ops::shortname, target_ops::longname): Make const.
16322 (target_ops::async_wait_fd): New method.
16323 (decref_target): Declare.
16324 (struct target_ops_ref_policy): New.
16325 (target_ops_ref): New typedef.
16326 (get_dummy_target): Declare function.
16327 (target_is_pushed): Return bool.
16328 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16329 (all_matching_threads_iterator::all_matching_threads_iterator):
16330 Handle filter target.
16331 * thread-iter.h (struct all_matching_threads_iterator, struct
16332 all_matching_threads_range, class all_non_exited_threads_range):
16333 Filter by target too. Remove explicit.
16334 * thread.c (threads_executing): Delete.
16335 (inferior_thread): Pass down current inferior.
16336 (clear_thread_inferior_resources): Pass down thread pointer
16337 instead of ptid_t.
16338 (add_thread_silent, add_thread_with_info, add_thread): Add
16339 process_stratum_target parameter. Use it for thread and inferior
16340 searches.
16341 (is_current_thread): New.
16342 (thread_info::deletable): Use it.
16343 (find_thread_ptid, thread_count, in_thread_list)
16344 (thread_change_ptid, set_resumed, set_running): New
16345 process_stratum_target parameter. Pass it down.
16346 (set_executing): New process_stratum_target parameter. Pass it
16347 down. Adjust reference to 'threads_executing'.
16348 (threads_are_executing): New process_stratum_target parameter.
16349 Adjust reference to 'threads_executing'.
16350 (set_stop_requested, finish_thread_state): New
16351 process_stratum_target parameter. Pass it down.
16352 (switch_to_thread): Also match inferior.
16353 (switch_to_thread): New process_stratum_target parameter. Pass it
16354 down.
16355 (update_threads_executing): Reimplement.
16356 * top.c (quit_force): Pop targets from all inferior.
16357 (gdb_init): Don't call initialize_targets.
16358 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16359 Declare.
16360 (windows_add_thread, windows_delete_thread): Adjust.
16361 (get_windows_debug_event): Rename to ...
16362 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16363 * tracefile-tfile.c (tfile_target_open): Pass down target.
16364 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16365 Forward declare.
16366 (switch_to_thread): Add process_stratum_target parameter.
16367 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16368 parameter. Use it.
16369 (mi_on_resume): Pass target down.
16370 * nat/fork-inferior.c (startup_inferior): Add
16371 process_stratum_target parameter. Pass it down.
16372 * nat/fork-inferior.h (startup_inferior): Add
16373 process_stratum_target parameter.
16374 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16375
75c6c844
PA
163762020-01-10 Pedro Alves <palves@redhat.com>
16377
16378 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16379 directly. Instead find the first thread in the thread list and
16380 use switch_to_thread.
16381
78f2c40a
PA
163822020-01-10 Pedro Alves <palves@redhat.com>
16383
16384 * remote.c (remote_target::remote_add_inferior): Don't bind a
16385 process to the current inferior if the current inferior is already
16386 bound to a process.
16387
e7af6c70
TBA
163882020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16389 Pedro Alves <palves@redhat.com>
16390
16391 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16392 If no process is specified, return null_ptid instead of
16393 inferior_ptid.
16394 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16395 TARGET_WAITKIND_SIGNALLED with no pid.
16396
31ba933e
PA
163972020-01-10 Pedro Alves <palves@redhat.com>
16398
16399 * remote.c (first_remote_resumed_thread): New.
16400 (remote_target::wait_as): Use it as default event_ptid instead of
16401 inferior_ptid.
16402
735fc2ca
PA
164032020-01-10 Pedro Alves <palves@redhat.com>
16404
16405 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16406
c17e02e1
PA
164072020-01-10 Pedro Alves <palves@redhat.com>
16408
16409 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16410 not -1.
16411
ab1ddbcf
PA
164122020-01-10 Pedro Alves <palves@redhat.com>
16413
16414 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16415 ptid to get_last_target_status.
16416 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16417 ptid to get_last_target_status.
16418 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16419 get_last_target_status.
16420 (info_program_command): Don't pass a target_waitstatus to
16421 get_last_target_status.
16422 * infrun.c (init_wait_for_inferior): Use
16423 nullify_last_target_wait_ptid.
16424 (get_last_target_status): Handle nullptr arguments.
16425 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16426 (print_stop_event): Don't pass a ptid to get_last_target_status.
16427 (normal_stop): Don't pass a ptid to get_last_target_status.
16428 * infrun.h (get_last_target_status, set_last_target_status): Move
16429 comments here and update.
16430 (nullify_last_target_wait_ptid): Declare.
16431 * linux-fork.c (fork_load_infrun_state): Remove local extern
16432 declaration of nullify_last_target_wait_ptid.
16433 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16434 to get_last_target_status.
16435
f3f8ece4
PA
164362020-01-10 Pedro Alves <palves@redhat.com>
16437
16438 * gdbthread.h (scoped_restore_current_thread)
16439 <dont_restore, restore, m_dont_restore>: Declare.
16440 * thread.c (thread_alive): Add assertion. Return bool.
16441 (switch_to_thread_if_alive): New.
16442 (prune_threads): Switch inferior/thread.
16443 (print_thread_info_1): Switch thread before calling target methods.
16444 (scoped_restore_current_thread::restore): New, factored out from
16445 ...
16446 (scoped_restore_current_thread::~scoped_restore_current_thread):
16447 ... this.
16448 (scoped_restore_current_thread::scoped_restore_current_thread):
16449 Add assertion.
16450 (thread_apply_all_command, thread_select): Use
16451 switch_to_thread_if_alive.
16452 * infrun.c (proceed, restart_threads, handle_signal_stop)
16453 (switch_back_to_stepped_thread): Switch current thread before
16454 calling target methods.
16455
db2d40f7
PA
164562020-01-10 Pedro Alves <palves@redhat.com>
16457
16458 * inferior.c (switch_to_inferior_no_thread): New function,
16459 factored out from ...
16460 (inferior_command): ... here.
16461 * inferior.h (switch_to_inferior_no_thread): Declare.
16462 * mi/mi-main.c (run_one_inferior): Use
16463 switch_to_inferior_no_thread.
16464
bd420a2d
PA
164652020-01-10 Pedro Alves <palves@redhat.com>
16466
16467 * infcmd.c (kill_command): Remove dead code.
16468
ddf5db90
PA
164692020-01-10 Pedro Alves <palves@redhat.com>
16470
16471 * remote.c (remote_target::mourn_inferior): No longer check
16472 whether the target is running.
16473
5018ce90
PA
164742020-01-10 Pedro Alves <palves@redhat.com>
16475
16476 * corelow.c (core_target::has_execution): Change parameter type to
16477 inferior pointer.
16478 * inferior.c (number_of_live_inferiors): Use
16479 inferior::has_execution instead of target_has_execution_1.
16480 * inferior.h (inferior::has_execution): New.
16481 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16482 inferior::has_execution instead of target_has_execution_1.
16483 * process-stratum-target.c
16484 (process_stratum_target::has_execution): Change parameter type to
16485 inferior pointer. Check the inferior's PID instead of
16486 inferior_ptid.
16487 * process-stratum-target.h
16488 (process_stratum_target::has_execution): Change parameter type to
16489 inferior pointer.
16490 * record-full.c (record_full_core_target::has_execution): Change
16491 parameter type to inferior pointer.
16492 * target.c (target_has_execution_1): Change parameter type to
16493 inferior pointer.
16494 (target_has_execution_current): Adjust.
16495 * target.h (target_ops::has_execution): Change parameter type to
16496 inferior pointer.
16497 (target_has_execution_1): Change parameter type to inferior
16498 pointer. Change return type to bool.
16499 * tracefile.h (tracefile_target::has_execution): Change parameter
16500 type to inferior pointer.
16501
74375d18
PA
165022020-01-10 Pedro Alves <palves@redhat.com>
16503
16504 * exceptions.c (print_flush): Remove current_top_target() check.
16505
acdf84a6
PA
165062020-01-10 Pedro Alves <palves@redhat.com>
16507
16508 * remote.c (show_remote_exec_file): Show the current inferior's
16509 exec-file instead of the command variable's value.
16510
ec506636
PA
165112020-01-10 Pedro Alves <palves@redhat.com>
16512
16513 * record-full.c (record_full_resume_ptid): New global.
16514 (record_full_target::resume): Set it.
16515 (record_full_wait_1): Use record_full_resume_ptid instead of
16516 inferior_ptid.
16517
873657b9
PA
165182020-01-10 Pedro Alves <palves@redhat.com>
16519
16520 * gdbthread.h (scoped_restore_current_thread)
16521 <dont_restore, restore, m_dont_restore>: Declare.
16522 * thread.c (thread_alive): Add assertion. Return bool.
16523 (switch_to_thread_if_alive): New.
16524 (prune_threads): Switch inferior/thread.
16525 (print_thread_info_1): Switch thread before calling target methods.
16526 (scoped_restore_current_thread::restore): New, factored out from
16527 ...
16528 (scoped_restore_current_thread::~scoped_restore_current_thread):
16529 ... this.
16530 (scoped_restore_current_thread::scoped_restore_current_thread):
16531 Add assertion.
16532 (thread_apply_all_command, thread_select): Use
16533 switch_to_thread_if_alive.
16534
7f0ae84c
GB
165352020-01-10 George Barrett <bob@bob131.so>
16536
16537 * stap-probe.c (stap_modify_semaphore): Don't check for null
16538 semaphores.
16539 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16540 for null semaphores.
16541
f5a7c406
AB
165422020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16543
16544 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16545 all source windows, and maintain horizontal scroll status while
16546 doing so.
16547
9ae6bf64
TT
165482020-01-09 Tom Tromey <tom@tromey.com>
16549
16550 PR tui/18932:
16551 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16552 update_source_window, not print_source_lines.
16553
b2efe70c
AB
165542020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16555
16556 * tui/tui.c (tui_enable): Register tui hooks after calling
16557 tui_display_main.
16558
5f23a082
CB
165592020-01-09 Christian Biesinger <cbiesinger@google.com>
16560
16561 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16562
3061113b
SM
165632020-01-08 Simon Marchi <simon.marchi@efficios.com>
16564
16565 * thread.c (print_thread_info_1): Fix indentation.
16566
57d75002
CB
165672020-01-09 Christian Biesinger <cbiesinger@google.com>
16568
16569 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16570 unique_xmalloc_ptr outside the if to always free the demangled name.
16571
6a053cb1
TT
165722020-01-08 Tom Tromey <tromey@adacore.com>
16573
16574 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16575 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16576 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16577 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16578 Remove.
16579 (section_offsets): New typedef.
16580 * symtab.c (fixup_section, get_msymbol_address): Update.
16581 * symmisc.c (dump_msymbols): Update.
16582 * symfile.h (relative_addr_info_to_section_offsets)
16583 (symfile_map_offsets_to_segments): Update.
16584 * symfile.c (build_section_addr_info_from_objfile)
16585 (init_objfile_sect_indices): Update.
16586 (struct place_section_arg): Change type of "offsets".
16587 (place_section): Update.
16588 (relative_addr_info_to_section_offsets): Change type of
16589 "section_offsets". Remove "num_sections" parameter.
16590 (default_symfile_offsets, syms_from_objfile_1)
16591 (set_objfile_default_section_offset): Update.
16592 (reread_symbols): No need to preserve section offsets by hand.
16593 (symfile_map_offsets_to_segments): Change type of "offsets".
16594 * stap-probe.c (relocate_address): Update.
16595 * stabsread.h (process_one_symbol): Update.
16596 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16597 (solib_target_relocate_section_addresses): Update.
16598 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16599 Update.
16600 * solib-frv.c (frv_relocate_main_executable): Update.
16601 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16602 * solib-aix.c (solib_aix_get_section_offsets): Change return
16603 type.
16604 (solib_aix_solib_create_inferior_hook): Update.
16605 * remote.c (remote_target::get_offsets): Update.
16606 * psymtab.c (find_pc_sect_psymtab): Update.
16607 * psympriv.h (struct partial_symbol) <address, text_low,
16608 text_high>: Update.
16609 * objfiles.h (obj_section_offset): Update.
16610 (struct objfile) <section_offsets>: Change type.
16611 <num_sections>: Remove.
16612 (objfile_relocate): Update.
16613 * objfiles.c (entry_point_address_query): Update
16614 (relocate_one_symbol): Change type of "section_offsets".
16615 (objfile_relocate1, objfile_relocate1): Change type of
16616 "new_offsets".
16617 (objfile_rebase1): Update.
16618 * mipsread.c (mipscoff_symfile_read): Update.
16619 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16620 parameter.
16621 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16622 (parse_external, psymtab_to_symtab_1): Update.
16623 * machoread.c (macho_symfile_offsets): Update.
16624 * ia64-tdep.c (ia64_find_unwind_table): Update.
16625 * hppa-tdep.c (read_unwind_info): Update.
16626 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16627 * dwarf2read.c (create_addrmap_from_index)
16628 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16629 (process_psymtab_comp_unit_reader, add_partial_symbol)
16630 (add_partial_subprogram, process_full_comp_unit)
16631 (read_file_scope, read_func_scope, read_lexical_block_scope)
16632 (read_call_site_scope, dwarf2_rnglists_process)
16633 (dwarf2_ranges_process, dwarf2_ranges_read)
16634 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16635 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16636 Update.
16637 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16638 Update.
16639 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16640 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16641 (process_one_symbol): Change type of "section_offsets".
16642 * ctfread.c (get_objfile_text_range): Update.
16643 * coffread.c (coff_symtab_read, enter_linenos)
16644 (process_coff_symbol): Update.
16645 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16646 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16647
456e800a
TT
166482020-01-08 Tom Tromey <tromey@adacore.com>
16649
16650 * dwarf2read.c (parse_macro_definition): Use std::string.
16651 (parse_macro_definition): Likewise.
16652
6dfa2fc2
TT
166532020-01-08 Tom Tromey <tromey@adacore.com>
16654
16655 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16656 (ATTR_ALLOC_CHUNK): Remove.
16657
421d1616
TT
166582020-01-08 Tom Tromey <tromey@adacore.com>
16659
16660 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16661
43816ebc
TT
166622020-01-08 Tom Tromey <tromey@adacore.com>
16663
16664 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16665 (dwarf2_compute_name, open_dwo_file): Likewise.
16666 (process_enumeration_scope): Use std::vector.
16667 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16668 (partial_die_info::fixup, dwarf2_start_subfile)
16669 (guess_full_die_structure_name, dwarf2_name): Likewise.
16670 (determine_prefix): Update.
16671 (guess_full_die_structure_name): Make return type const.
16672 (partial_die_full_name): Return unique_xmalloc_ptr.
16673 (DW_FIELD_ALLOC_CHUNK): Remove.
16674
4212d509
TT
166752020-01-07 Tom Tromey <tromey@adacore.com>
16676
16677 PR build/24937:
16678 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16679
06a6207a
JT
166802020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16681
16682 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16683
153d79c4
AB
166842020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16685
16686 * stack.c (print_frame_info): Move disassemble_next_line code
16687 inside source_print block.
16688
66182876
EZ
166892020-01-06 Eli Zaretskii <eliz@gnu.org>
16690
16691 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16692 gdb/signals.h, as we are now using native signal symbols.
16693
cbfa8581
SV
166942020-01-06 Shahab Vahedi <shahab@synopsys.com>
16695
16696 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16697 overflow by an early check of content vs threshold.
aac66a4c 16698 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16699 Likewise.
16700
3f602821
EZ
167012020-01-06 Eli Zaretskii <eliz@gnu.org>
16702
16703 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16704
a08c904d
JT
167052020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16706
16707 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16708 export table if no section contains it's RVA.
16709
89a65580
EZ
167102020-01-06 Eli Zaretskii <eliz@gnu.org>
16711
16712 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16713
8b7fcda2
HD
167142020-01-06 Hannes Domani <ssbssa@yahoo.de>
16715
16716 * source.c (print_source_lines_base): Set last_line_listed.
16717
a61b4f69
SV
167182020-01-06 Shahab Vahedi <shahab@synopsys.com>
16719
16720 * tui/tui-disasm.c: Remove trailing spaces.
16721
559e7e50
EZ
167222020-01-06 Eli Zaretskii <eliz@gnu.org>
16723 Pedro Alves <palves@redhat.com>
16724
16725 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16726 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16727 (windows_gdb_signal_to_target): New function, uses the above
16728 enumeration to convert GDB internal signal codes to equivalent
16729 Windows codes.
16730 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16731 * windows-nat.c: Include "gdb_wait.h".
16732 (get_windows_debug_event): Extract the fatal exception from the
16733 exit status and convert to the equivalent Posix signal number.
16734 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16735 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16736 * gdbsupport/gdb_wait.c: New file, implements
16737 windows_status_to_termsig.
16738 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16739 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16740
f2302a34
AB
167412020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16742
16743 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16744 show_layout.
16745
6a5206eb
LM
167462020-01-05 Luis Machado <luis.machado@linaro.org>
16747
16748 * aarch64-linux-nat.c
16749 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16750 and bfd_mach_aarch64.
16751
6ec1d75e
PW
167522020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16753
16754 * ui-file.c (stdio_file::can_emit_style_escape)
16755 (tee_file::can_emit_style_escape): Ensure style is used also on
16756 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16757 to gdb_stdout.
16758 * main.c (set_gdb_data_directory): Use file style to output the
16759 warning that the given pathname is not a directory.
16760 * top.c (show_history_filename, gdb_safe_append_history)
16761 (show_gdb_datadir): Use file style.
16762
44f81a76
HD
167632020-01-03 Hannes Domani <ssbssa@yahoo.de>
16764
16765 * solib-target.c (struct lm_info_target):
16766 Change offsets to be a unique_xmalloc_ptr.
16767 (solib_target_relocate_section_addresses): Update.
16768
25057eb0
HD
167692020-01-03 Hannes Domani <ssbssa@yahoo.de>
16770
16771 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16772
6e2118f5
BE
167732020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16774
16775 * MAINTAINERS (Write After Approval): Add myself.
16776
8133c7dc
LM
167772020-01-02 Luis Machado <luis.machado@linaro.org>
16778
16779 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16780 Cell BE architecture.
16781 * target.h (struct target_ops) <thread_architecture>: Likewise.
16782
48189bec
HD
167832020-01-01 Hannes Domani <ssbssa@yahoo.de>
16784
16785 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16786
ead1063b
HD
167872020-01-01 Hannes Domani <ssbssa@yahoo.de>
16788
16789 * MAINTAINERS (Write After Approval): Add myself.
16790
e5d78223
JB
167912020-01-01 Joel Brobecker <brobecker@adacore.com>
16792
16793 * gdbarch.sh: Update copyright year range of generated files.
16794
b811d2c2
JB
167952020-01-01 Joel Brobecker <brobecker@adacore.com>
16796
16797 Update copyright year range in all GDB files.
16798
5f4def5c
JB
167992020-01-01 Joel Brobecker <brobecker@adacore.com>
16800
16801 * copyright.py: Convert to Python 3.
16802
51fd4002
JB
168032020-01-01 Joel Brobecker <brobecker@adacore.com>
16804
16805 * copyright.py: Adapt after move of gnulib directory from gdb
16806 directory to toplevel directory.
16807
5fb651f2
JB
168082020-01-01 Joel Brobecker <brobecker@adacore.com>
16809
16810 * copyright.py (main): Exit if run from the wrong directory.
16811
5dd8bf88
JB
168122020-01-01 Joel Brobecker <brobecker@adacore.com>
16813
16814 * top.c (print_gdb_version): Change copyright year to 2020.
16815
9f71dacb 168162020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16817
9f71dacb 16818 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16819
9f71dacb 16820For older changes see ChangeLog-2019.
c906108c
SS
16821\f
16822Local Variables:
16823mode: change-log
16824left-margin: 8
16825fill-column: 74
16826version-control: never
57da7796 16827coding: utf-8
c906108c 16828End:
This page took 3.123865 seconds and 4 git commands to generate.