]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix gdb.threads/tls-so_extern.exp with Clang
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ab33b152
AB
12020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * features/Makefile (XMLTOC): Add rx.xml.
4 (FEATURE_XMLFILES): Remove rx.xml.
5 (FEATURE_CFILES rule): Pass '-single-feature' flag.
6 * features/rx.c: Regenerate.
7 * features/rx.xml: Wrap in `target` tags, and reindent.
8 * target-descriptions.c (struct maint_print_c_tdesc_options): New
9 structure.
10 (maint_print_c_tdesc_opt_def): New typedef.
11 (maint_print_c_tdesc_opt_defs): New static global.
12 (make_maint_print_c_tdesc_options_def_group): New function.
13 (maint_print_c_tdesc_cmd): Make use of command line flags, only
14 print single feature C file for target descriptions containing a
15 single feature.
16 (maint_print_c_tdesc_cmd_completer): New function.
17 (_initialize_target_descriptions): Update call to register command
18 completer, and include command line flag in help text.
19
550820e1
AB
202020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
23 numbers.
24 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
25 enum values.
26
baf20f76
TT
272020-11-10 Tom Tromey <tom@tromey.com>
28
29 * value.h (internalvar_name): Update.
30 * value.c (internalvar_name): Make return type const.
31
caaece0e
TT
322020-11-10 Tom Tromey <tom@tromey.com>
33
34 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
35 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
36 const.
37
8e20b4be
TT
382020-11-10 Tom Tromey <tom@tromey.com>
39
40 * objc-lang.h (value_nsstring): Update.
41 * objc-lang.c (value_nsstring): Make "ptr" const.
42
86775fab
AB
432020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
44
45 * expprint.c (print_subexp_funcall): Increment expression position
46 after reading argument count.
47 * f-lang.c (print_subexp_f): Skip over opcode before calling
48 common function.
49 (dump_subexp_body_f): Likewise.
50
3fed4c0b
RG
512020-11-06 Romain Geissler <romain.geissler@amadeus.com>
52
53 PR python/26832
54 * configure: Regenerate.
55 * configure.ac: Check for python modules ctypes instead of
56 itertools.
57
ac3d4064
PA
582020-11-06 Pedro Alves <pedro@palves.net>
59
60 * macroexp.c (struct macro_buffer): Split in two classes. Add
61 uses adjusted.
62 (struct shared_macro_buffer): New, factored out from struct
63 macro_buffer.
64 (struct growable_macro_buffer): New, factored out from struct
65 macro_buffer.
66 (set_token, get_comment, get_identifier, get_pp_number)
67 (get_character_constant, get_string_literal, get_punctuator)
68 (get_next_token_for_substitution): Constify parameters.
69 (substitute_args): Constify locals.
70
606decb2
TT
712020-11-05 Tom Tromey <tom@tromey.com>
72
73 * dwarf2/read.c (read_cutu_die_from_dwo)
74 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
75 (build_type_psymtabs_1): Update.
76 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
77 parameter.
78 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
79 Don't read section. Add assert.
80
9c91c725
TT
812020-11-04 Tom Tromey <tromey@adacore.com>
82
83 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
84
8d9fd3a1
TT
852020-11-04 Tom Tromey <tromey@adacore.com>
86
87 * ada-typeprint.c (ada_print_type): Handle __T types.
88
d8f62e84
TT
892020-11-04 Tom Tromey <tromey@adacore.com>
90
91 * dwarf2/read.c (add_partial_symbol, process_die):
92 Handle DW_TAG_array_type.
93 (is_type_tag_for_partial): Add "lang" parameter.
94 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
95
7ff5b937
TT
962020-11-04 Tom Tromey <tromey@adacore.com>
97
98 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
99
10f6a3ad
TT
1002020-11-04 Tom Tromey <tromey@adacore.com>
101
102 * dwarf2/read.c (read_array_type): Only apply stride to innermost
103 array.
104
b72795a8
TT
1052020-11-04 Tom Tromey <tromey@adacore.com>
106
107 * gdbtypes.c (update_static_array_size): Handle bit stride.
108
24aa1b02
TT
1092020-11-04 Tom Tromey <tromey@adacore.com>
110
111 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
112
c9a28cbe
TT
1132020-11-04 Tom Tromey <tromey@adacore.com>
114
115 * ada-lang.c (ada_is_any_packed_array_type): New function.
116 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
117
57567375
TT
1182020-11-04 Tom Tromey <tromey@adacore.com>
119
120 * dwarf2/read.c (recognize_bound_expression)
121 (quirk_ada_thick_pointer): New functions.
122 (read_array_type): Call quirk_ada_thick_pointer.
123 (set_die_type): Add "skip_data_location" parameter.
124 (quirk_ada_thick_pointer): New function.
125 (process_structure_scope): Call quirk_ada_thick_pointer.
126 * ada-lang.c (ada_is_unconstrained_packed_array_type)
127 (decode_packed_array_bitsize): Handle thick pointers without
128 parallel types.
129 (ada_is_gnat_encoded_packed_array_type): Rename from
130 ada_is_packed_array_type.
131 (ada_is_constrained_packed_array_type): Update.
132 * ada-valprint.c (ada_val_print_gnat_array): Remove.
133 (ada_value_print_1): Use ada_get_decoded_value.
134
a7400e44
TT
1352020-11-04 Tom Tromey <tromey@adacore.com>
136
137 * ada-lang.c (recursively_update_array_bitsize): New function.
138 (decode_constrained_packed_array_type): Call it.
139
75fd6a26
TT
1402020-11-04 Tom Tromey <tromey@adacore.com>
141
142 * ada-lang.c (to_fixed_array_type): Error if
143 decode_constrained_packed_array_type returns NULL.
144
93f9561e
TT
1452020-11-04 Tom Tromey <tromey@adacore.com>
146
147 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
148
257e02d8
TT
1492020-11-02 Tom Tromey <tromey@adacore.com>
150
151 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
152 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
153 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
154 * amd64-ravenscar-thread.c: New file.
155 * amd64-ravenscar-thread.h: New file.
156 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
157 * configure.tgt (amd64_tobjs): Add ravenscar objects.
158
74d877e5
AB
1592020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
160
161 * main.c (execute_cmdargs): New function.
162 (captured_main_1): Make use of execute_cmdargs.
163
64aaad63
AB
1642020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
165
166 * NEWS: Mention changes to config file search path.
167 * main.c
168
5b3d3560
TT
1692020-11-02 Tom Tromey <tromey@adacore.com>
170
171 * python/python.c: Consolidate two HAVE_PYTHON blocks.
172 (python_GdbModuleDef): Move earlier. Now static.
173 (do_start_initialization): Consolidate some IS_PY3K blocks.
174
dda83cd7
SM
1752020-11-02 Simon Marchi <simon.marchi@efficios.com>
176
177 * aarch64-linux-tdep.c: Fix indentation.
178 * aarch64-ravenscar-thread.c: Fix indentation.
179 * aarch64-tdep.c: Fix indentation.
180 * aarch64-tdep.h: Fix indentation.
181 * ada-lang.c: Fix indentation.
182 * ada-lang.h: Fix indentation.
183 * ada-tasks.c: Fix indentation.
184 * ada-typeprint.c: Fix indentation.
185 * ada-valprint.c: Fix indentation.
186 * ada-varobj.c: Fix indentation.
187 * addrmap.c: Fix indentation.
188 * addrmap.h: Fix indentation.
189 * agent.c: Fix indentation.
190 * aix-thread.c: Fix indentation.
191 * alpha-bsd-nat.c: Fix indentation.
192 * alpha-linux-tdep.c: Fix indentation.
193 * alpha-mdebug-tdep.c: Fix indentation.
194 * alpha-nbsd-tdep.c: Fix indentation.
195 * alpha-obsd-tdep.c: Fix indentation.
196 * alpha-tdep.c: Fix indentation.
197 * amd64-bsd-nat.c: Fix indentation.
198 * amd64-darwin-tdep.c: Fix indentation.
199 * amd64-linux-nat.c: Fix indentation.
200 * amd64-linux-tdep.c: Fix indentation.
201 * amd64-nat.c: Fix indentation.
202 * amd64-obsd-tdep.c: Fix indentation.
203 * amd64-tdep.c: Fix indentation.
204 * amd64-windows-tdep.c: Fix indentation.
205 * annotate.c: Fix indentation.
206 * arc-tdep.c: Fix indentation.
207 * arch-utils.c: Fix indentation.
208 * arch/arm-get-next-pcs.c: Fix indentation.
209 * arch/arm.c: Fix indentation.
210 * arm-linux-nat.c: Fix indentation.
211 * arm-linux-tdep.c: Fix indentation.
212 * arm-nbsd-tdep.c: Fix indentation.
213 * arm-pikeos-tdep.c: Fix indentation.
214 * arm-tdep.c: Fix indentation.
215 * arm-tdep.h: Fix indentation.
216 * arm-wince-tdep.c: Fix indentation.
217 * auto-load.c: Fix indentation.
218 * auxv.c: Fix indentation.
219 * avr-tdep.c: Fix indentation.
220 * ax-gdb.c: Fix indentation.
221 * ax-general.c: Fix indentation.
222 * bfin-linux-tdep.c: Fix indentation.
223 * block.c: Fix indentation.
224 * block.h: Fix indentation.
225 * blockframe.c: Fix indentation.
226 * bpf-tdep.c: Fix indentation.
227 * break-catch-sig.c: Fix indentation.
228 * break-catch-syscall.c: Fix indentation.
229 * break-catch-throw.c: Fix indentation.
230 * breakpoint.c: Fix indentation.
231 * breakpoint.h: Fix indentation.
232 * bsd-uthread.c: Fix indentation.
233 * btrace.c: Fix indentation.
234 * build-id.c: Fix indentation.
235 * buildsym-legacy.h: Fix indentation.
236 * buildsym.c: Fix indentation.
237 * c-typeprint.c: Fix indentation.
238 * c-valprint.c: Fix indentation.
239 * c-varobj.c: Fix indentation.
240 * charset.c: Fix indentation.
241 * cli/cli-cmds.c: Fix indentation.
242 * cli/cli-decode.c: Fix indentation.
243 * cli/cli-decode.h: Fix indentation.
244 * cli/cli-script.c: Fix indentation.
245 * cli/cli-setshow.c: Fix indentation.
246 * coff-pe-read.c: Fix indentation.
247 * coffread.c: Fix indentation.
248 * compile/compile-cplus-types.c: Fix indentation.
249 * compile/compile-object-load.c: Fix indentation.
250 * compile/compile-object-run.c: Fix indentation.
251 * completer.c: Fix indentation.
252 * corefile.c: Fix indentation.
253 * corelow.c: Fix indentation.
254 * cp-abi.h: Fix indentation.
255 * cp-namespace.c: Fix indentation.
256 * cp-support.c: Fix indentation.
257 * cp-valprint.c: Fix indentation.
258 * cris-linux-tdep.c: Fix indentation.
259 * cris-tdep.c: Fix indentation.
260 * darwin-nat-info.c: Fix indentation.
261 * darwin-nat.c: Fix indentation.
262 * darwin-nat.h: Fix indentation.
263 * dbxread.c: Fix indentation.
264 * dcache.c: Fix indentation.
265 * disasm.c: Fix indentation.
266 * dtrace-probe.c: Fix indentation.
267 * dwarf2/abbrev.c: Fix indentation.
268 * dwarf2/attribute.c: Fix indentation.
269 * dwarf2/expr.c: Fix indentation.
270 * dwarf2/frame.c: Fix indentation.
271 * dwarf2/index-cache.c: Fix indentation.
272 * dwarf2/index-write.c: Fix indentation.
273 * dwarf2/line-header.c: Fix indentation.
274 * dwarf2/loc.c: Fix indentation.
275 * dwarf2/macro.c: Fix indentation.
276 * dwarf2/read.c: Fix indentation.
277 * dwarf2/read.h: Fix indentation.
278 * elfread.c: Fix indentation.
279 * eval.c: Fix indentation.
280 * event-top.c: Fix indentation.
281 * exec.c: Fix indentation.
282 * exec.h: Fix indentation.
283 * expprint.c: Fix indentation.
284 * f-lang.c: Fix indentation.
285 * f-typeprint.c: Fix indentation.
286 * f-valprint.c: Fix indentation.
287 * fbsd-nat.c: Fix indentation.
288 * fbsd-tdep.c: Fix indentation.
289 * findvar.c: Fix indentation.
290 * fork-child.c: Fix indentation.
291 * frame-unwind.c: Fix indentation.
292 * frame-unwind.h: Fix indentation.
293 * frame.c: Fix indentation.
294 * frv-linux-tdep.c: Fix indentation.
295 * frv-tdep.c: Fix indentation.
296 * frv-tdep.h: Fix indentation.
297 * ft32-tdep.c: Fix indentation.
298 * gcore.c: Fix indentation.
299 * gdb_bfd.c: Fix indentation.
300 * gdbarch.sh: Fix indentation.
301 * gdbarch.c: Re-generate
302 * gdbarch.h: Re-generate.
303 * gdbcore.h: Fix indentation.
304 * gdbthread.h: Fix indentation.
305 * gdbtypes.c: Fix indentation.
306 * gdbtypes.h: Fix indentation.
307 * glibc-tdep.c: Fix indentation.
308 * gnu-nat.c: Fix indentation.
309 * gnu-nat.h: Fix indentation.
310 * gnu-v2-abi.c: Fix indentation.
311 * gnu-v3-abi.c: Fix indentation.
312 * go32-nat.c: Fix indentation.
313 * guile/guile-internal.h: Fix indentation.
314 * guile/scm-cmd.c: Fix indentation.
315 * guile/scm-frame.c: Fix indentation.
316 * guile/scm-iterator.c: Fix indentation.
317 * guile/scm-math.c: Fix indentation.
318 * guile/scm-ports.c: Fix indentation.
319 * guile/scm-pretty-print.c: Fix indentation.
320 * guile/scm-value.c: Fix indentation.
321 * h8300-tdep.c: Fix indentation.
322 * hppa-linux-nat.c: Fix indentation.
323 * hppa-linux-tdep.c: Fix indentation.
324 * hppa-nbsd-nat.c: Fix indentation.
325 * hppa-nbsd-tdep.c: Fix indentation.
326 * hppa-obsd-nat.c: Fix indentation.
327 * hppa-tdep.c: Fix indentation.
328 * hppa-tdep.h: Fix indentation.
329 * i386-bsd-nat.c: Fix indentation.
330 * i386-darwin-nat.c: Fix indentation.
331 * i386-darwin-tdep.c: Fix indentation.
332 * i386-dicos-tdep.c: Fix indentation.
333 * i386-gnu-nat.c: Fix indentation.
334 * i386-linux-nat.c: Fix indentation.
335 * i386-linux-tdep.c: Fix indentation.
336 * i386-nto-tdep.c: Fix indentation.
337 * i386-obsd-tdep.c: Fix indentation.
338 * i386-sol2-nat.c: Fix indentation.
339 * i386-tdep.c: Fix indentation.
340 * i386-tdep.h: Fix indentation.
341 * i386-windows-tdep.c: Fix indentation.
342 * i387-tdep.c: Fix indentation.
343 * i387-tdep.h: Fix indentation.
344 * ia64-libunwind-tdep.c: Fix indentation.
345 * ia64-libunwind-tdep.h: Fix indentation.
346 * ia64-linux-nat.c: Fix indentation.
347 * ia64-linux-tdep.c: Fix indentation.
348 * ia64-tdep.c: Fix indentation.
349 * ia64-tdep.h: Fix indentation.
350 * ia64-vms-tdep.c: Fix indentation.
351 * infcall.c: Fix indentation.
352 * infcmd.c: Fix indentation.
353 * inferior.c: Fix indentation.
354 * infrun.c: Fix indentation.
355 * iq2000-tdep.c: Fix indentation.
356 * language.c: Fix indentation.
357 * linespec.c: Fix indentation.
358 * linux-fork.c: Fix indentation.
359 * linux-nat.c: Fix indentation.
360 * linux-tdep.c: Fix indentation.
361 * linux-thread-db.c: Fix indentation.
362 * lm32-tdep.c: Fix indentation.
363 * m2-lang.c: Fix indentation.
364 * m2-typeprint.c: Fix indentation.
365 * m2-valprint.c: Fix indentation.
366 * m32c-tdep.c: Fix indentation.
367 * m32r-linux-tdep.c: Fix indentation.
368 * m32r-tdep.c: Fix indentation.
369 * m68hc11-tdep.c: Fix indentation.
370 * m68k-bsd-nat.c: Fix indentation.
371 * m68k-linux-nat.c: Fix indentation.
372 * m68k-linux-tdep.c: Fix indentation.
373 * m68k-tdep.c: Fix indentation.
374 * machoread.c: Fix indentation.
375 * macrocmd.c: Fix indentation.
376 * macroexp.c: Fix indentation.
377 * macroscope.c: Fix indentation.
378 * macrotab.c: Fix indentation.
379 * macrotab.h: Fix indentation.
380 * main.c: Fix indentation.
381 * mdebugread.c: Fix indentation.
382 * mep-tdep.c: Fix indentation.
383 * mi/mi-cmd-catch.c: Fix indentation.
384 * mi/mi-cmd-disas.c: Fix indentation.
385 * mi/mi-cmd-env.c: Fix indentation.
386 * mi/mi-cmd-stack.c: Fix indentation.
387 * mi/mi-cmd-var.c: Fix indentation.
388 * mi/mi-cmds.c: Fix indentation.
389 * mi/mi-main.c: Fix indentation.
390 * mi/mi-parse.c: Fix indentation.
391 * microblaze-tdep.c: Fix indentation.
392 * minidebug.c: Fix indentation.
393 * minsyms.c: Fix indentation.
394 * mips-linux-nat.c: Fix indentation.
395 * mips-linux-tdep.c: Fix indentation.
396 * mips-nbsd-tdep.c: Fix indentation.
397 * mips-tdep.c: Fix indentation.
398 * mn10300-linux-tdep.c: Fix indentation.
399 * mn10300-tdep.c: Fix indentation.
400 * moxie-tdep.c: Fix indentation.
401 * msp430-tdep.c: Fix indentation.
402 * namespace.h: Fix indentation.
403 * nat/fork-inferior.c: Fix indentation.
404 * nat/gdb_ptrace.h: Fix indentation.
405 * nat/linux-namespaces.c: Fix indentation.
406 * nat/linux-osdata.c: Fix indentation.
407 * nat/netbsd-nat.c: Fix indentation.
408 * nat/x86-dregs.c: Fix indentation.
409 * nbsd-nat.c: Fix indentation.
410 * nbsd-tdep.c: Fix indentation.
411 * nios2-linux-tdep.c: Fix indentation.
412 * nios2-tdep.c: Fix indentation.
413 * nto-procfs.c: Fix indentation.
414 * nto-tdep.c: Fix indentation.
415 * objfiles.c: Fix indentation.
416 * objfiles.h: Fix indentation.
417 * opencl-lang.c: Fix indentation.
418 * or1k-tdep.c: Fix indentation.
419 * osabi.c: Fix indentation.
420 * osabi.h: Fix indentation.
421 * osdata.c: Fix indentation.
422 * p-lang.c: Fix indentation.
423 * p-typeprint.c: Fix indentation.
424 * p-valprint.c: Fix indentation.
425 * parse.c: Fix indentation.
426 * ppc-linux-nat.c: Fix indentation.
427 * ppc-linux-tdep.c: Fix indentation.
428 * ppc-nbsd-nat.c: Fix indentation.
429 * ppc-nbsd-tdep.c: Fix indentation.
430 * ppc-obsd-nat.c: Fix indentation.
431 * ppc-ravenscar-thread.c: Fix indentation.
432 * ppc-sysv-tdep.c: Fix indentation.
433 * ppc64-tdep.c: Fix indentation.
434 * printcmd.c: Fix indentation.
435 * proc-api.c: Fix indentation.
436 * producer.c: Fix indentation.
437 * producer.h: Fix indentation.
438 * prologue-value.c: Fix indentation.
439 * prologue-value.h: Fix indentation.
440 * psymtab.c: Fix indentation.
441 * python/py-arch.c: Fix indentation.
442 * python/py-bpevent.c: Fix indentation.
443 * python/py-event.c: Fix indentation.
444 * python/py-event.h: Fix indentation.
445 * python/py-finishbreakpoint.c: Fix indentation.
446 * python/py-frame.c: Fix indentation.
447 * python/py-framefilter.c: Fix indentation.
448 * python/py-inferior.c: Fix indentation.
449 * python/py-infthread.c: Fix indentation.
450 * python/py-objfile.c: Fix indentation.
451 * python/py-prettyprint.c: Fix indentation.
452 * python/py-registers.c: Fix indentation.
453 * python/py-signalevent.c: Fix indentation.
454 * python/py-stopevent.c: Fix indentation.
455 * python/py-stopevent.h: Fix indentation.
456 * python/py-threadevent.c: Fix indentation.
457 * python/py-tui.c: Fix indentation.
458 * python/py-unwind.c: Fix indentation.
459 * python/py-value.c: Fix indentation.
460 * python/py-xmethods.c: Fix indentation.
461 * python/python-internal.h: Fix indentation.
462 * python/python.c: Fix indentation.
463 * ravenscar-thread.c: Fix indentation.
464 * record-btrace.c: Fix indentation.
465 * record-full.c: Fix indentation.
466 * record.c: Fix indentation.
467 * reggroups.c: Fix indentation.
468 * regset.h: Fix indentation.
469 * remote-fileio.c: Fix indentation.
470 * remote.c: Fix indentation.
471 * reverse.c: Fix indentation.
472 * riscv-linux-tdep.c: Fix indentation.
473 * riscv-ravenscar-thread.c: Fix indentation.
474 * riscv-tdep.c: Fix indentation.
475 * rl78-tdep.c: Fix indentation.
476 * rs6000-aix-tdep.c: Fix indentation.
477 * rs6000-lynx178-tdep.c: Fix indentation.
478 * rs6000-nat.c: Fix indentation.
479 * rs6000-tdep.c: Fix indentation.
480 * rust-lang.c: Fix indentation.
481 * rx-tdep.c: Fix indentation.
482 * s12z-tdep.c: Fix indentation.
483 * s390-linux-tdep.c: Fix indentation.
484 * score-tdep.c: Fix indentation.
485 * ser-base.c: Fix indentation.
486 * ser-mingw.c: Fix indentation.
487 * ser-uds.c: Fix indentation.
488 * ser-unix.c: Fix indentation.
489 * serial.c: Fix indentation.
490 * sh-linux-tdep.c: Fix indentation.
491 * sh-nbsd-tdep.c: Fix indentation.
492 * sh-tdep.c: Fix indentation.
493 * skip.c: Fix indentation.
494 * sol-thread.c: Fix indentation.
495 * solib-aix.c: Fix indentation.
496 * solib-darwin.c: Fix indentation.
497 * solib-frv.c: Fix indentation.
498 * solib-svr4.c: Fix indentation.
499 * solib.c: Fix indentation.
500 * source.c: Fix indentation.
501 * sparc-linux-tdep.c: Fix indentation.
502 * sparc-nbsd-tdep.c: Fix indentation.
503 * sparc-obsd-tdep.c: Fix indentation.
504 * sparc-ravenscar-thread.c: Fix indentation.
505 * sparc-tdep.c: Fix indentation.
506 * sparc64-linux-tdep.c: Fix indentation.
507 * sparc64-nbsd-tdep.c: Fix indentation.
508 * sparc64-obsd-tdep.c: Fix indentation.
509 * sparc64-tdep.c: Fix indentation.
510 * stabsread.c: Fix indentation.
511 * stack.c: Fix indentation.
512 * stap-probe.c: Fix indentation.
513 * stubs/ia64vms-stub.c: Fix indentation.
514 * stubs/m32r-stub.c: Fix indentation.
515 * stubs/m68k-stub.c: Fix indentation.
516 * stubs/sh-stub.c: Fix indentation.
517 * stubs/sparc-stub.c: Fix indentation.
518 * symfile-mem.c: Fix indentation.
519 * symfile.c: Fix indentation.
520 * symfile.h: Fix indentation.
521 * symmisc.c: Fix indentation.
522 * symtab.c: Fix indentation.
523 * symtab.h: Fix indentation.
524 * target-float.c: Fix indentation.
525 * target.c: Fix indentation.
526 * target.h: Fix indentation.
527 * tic6x-tdep.c: Fix indentation.
528 * tilegx-linux-tdep.c: Fix indentation.
529 * tilegx-tdep.c: Fix indentation.
530 * top.c: Fix indentation.
531 * tracefile-tfile.c: Fix indentation.
532 * tracepoint.c: Fix indentation.
533 * tui/tui-disasm.c: Fix indentation.
534 * tui/tui-io.c: Fix indentation.
535 * tui/tui-regs.c: Fix indentation.
536 * tui/tui-stack.c: Fix indentation.
537 * tui/tui-win.c: Fix indentation.
538 * tui/tui-winsource.c: Fix indentation.
539 * tui/tui.c: Fix indentation.
540 * typeprint.c: Fix indentation.
541 * ui-out.h: Fix indentation.
542 * unittests/copy_bitwise-selftests.c: Fix indentation.
543 * unittests/memory-map-selftests.c: Fix indentation.
544 * utils.c: Fix indentation.
545 * v850-tdep.c: Fix indentation.
546 * valarith.c: Fix indentation.
547 * valops.c: Fix indentation.
548 * valprint.c: Fix indentation.
549 * valprint.h: Fix indentation.
550 * value.c: Fix indentation.
551 * value.h: Fix indentation.
552 * varobj.c: Fix indentation.
553 * vax-tdep.c: Fix indentation.
554 * windows-nat.c: Fix indentation.
555 * windows-tdep.c: Fix indentation.
556 * xcoffread.c: Fix indentation.
557 * xml-syscall.c: Fix indentation.
558 * xml-tdesc.c: Fix indentation.
559 * xstormy16-tdep.c: Fix indentation.
560 * xtensa-config.c: Fix indentation.
561 * xtensa-linux-nat.c: Fix indentation.
562 * xtensa-linux-tdep.c: Fix indentation.
563 * xtensa-tdep.c: Fix indentation.
564
e1f57067
AB
5652020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
566 Craig Blackmore <craig.blackmore@embecosm.com>
567
568 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
569 as an unsigned value.
570
ae7754b2
TT
5712020-11-01 Tom Tromey <tom@tromey.com>
572
573 * dbxread.c (dbx_end_psymtab): Update.
574 * dwarf2/read.c (process_psymtab_comp_unit_reader)
575 (build_type_psymtabs_reader): Update.
576 * xcoffread.c (xcoff_end_psymtab): Update.
577 * ctfread.c (scan_partial_symbols): Update.
578 * psymtab.c (sort_pst_symbols): Remove.
579 (partial_symtab::end): Rename from end_psymtab_common. Inline
580 sort_pst_symbols.
581 * psympriv.h (struct partial_symtab) <end>: New method.
582 (end_psymtab_common): Don't declare.
583
0684bb51
TT
5842020-11-01 Tom Tromey <tom@tromey.com>
585
586 * symmisc.c (count_psyms): New function.
587 (print_objfile_statistics): Use it.
588 * psymtab.c (append_psymbol_to_list): Remove.
589 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
590 * objfiles.h (struct objstats) <n_psyms>: Remove.
591
089002bb
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): Update.
596 (build_type_psymtabs_reader): Update.
597 * xcoffread.c (xcoff_end_psymtab): Update.
598 * ctfread.c (scan_partial_symbols): Update.
599 * psympriv.h (end_psymtab_common): Update.
600 * psymtab.c (end_psymtab_common): Remove objfile parameter.
601 (sort_pst_symbols): Likewise.
602
525454d6
TT
6032020-11-01 Tom Tromey <tom@tromey.com>
604
605 * dbxread.c (dbx_symfile_read): Update.
606 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
607 * xcoffread.c (xcoff_initial_scan): Update.
608 * psympriv.h (init_psymbol_list): Don't declare.
609 * psymtab.c (init_psymbol_list): Remove.
610
60bd1d53
JB
6112020-11-01 Joel Brobecker <brobecker@adacore.com>
612
613 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
614 gnat_encoded_fixed_type_info. Update all callers.
615
db99d0d0
JB
6162020-11-01 Joel Brobecker <brobecker@adacore.com>
617
618 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
619 line too long.
620
75f24e86
JB
6212020-11-01 Joel Brobecker <brobecker@adacore.com>
622
623 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
624 cast_from_fixed. Update all callers.
625 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
626 Update all callers.
627 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
628 Update all callers.
629 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
630 ada_scaling_factor.
631 * ada-typeprint.c: Replace call to ada_scaling_factor by call
632 to print_gnat_encoded_fixed_point_type.
633 * ada-valprint.c: Likewise.
634
4f0469cd
AB
6352020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
636
637 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
638 (debug_prefixed_printf): Add check of debug_displaced flag.
639 * linux-nat.c (linux_nat_debug_printf): Add check of
640 debug_linux_nat flag.
641
17417fb0
SM
6422020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
643
644 * infrun.c (infrun_debug_printf_1): Remove.
645 (displaced_debug_printf_1): Remove.
646 (stop_all_threads): Use debug_prefixed_printf.
647 * infrun.h (infrun_debug_printf_1): Remove.
648 (infrun_debug_printf): Use debug_prefixed_printf.
649 (displaced_debug_printf_1): Remove.
650 (displaced_debug_printf): Use debug_prefixed_printf.
651 * linux-nat.c (linux_nat_debug_printf_1): Remove.
652 (linux_nat_debug_printf): Use debug_prefixed_printf.
653
ad6dba1c
SM
6542020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
655
656 * configure: Re-generate.
657 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
658 AC_LANG_PROGRAM.
659
b6fb30ed
SM
6602020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
661
662 * configure: Re-generate.
663
5164c117
SM
6642020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
665
666 * configure: Re-generate.
667
864ca435
SM
6682020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
669
670 * configure: Re-generate.
671
b9442ec1
SM
6722020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
673
674 * configure: Re-generate.
675
294f2697
SM
6762020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
677
678 * acinclude.m4: Modernize.
679 * configure: Re-generate.
680
5593a99a
SM
6812020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
682
683 * configure.ac: Modernize.
684 * configure: Re-generate.
685
e41fda1d
SM
6862020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
687
688 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
689 * configure: Re-generate.
690 * configure.ac: Remove AM_PROG_CC_STDC.
691
91e1a0ed
SM
6922020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
693
694 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
695 AC_CANONICAL_SYSTEM.
696 * configure: Re-generate.
697
136821d9
SM
6982020-10-30 Simon Marchi <simon.marchi@efficios.com>
699
700 * infrun.h (displaced_debug_printf): New macro. Replace
701 displaced debug prints throughout to use it.
702 (displaced_debug_printf_1): New declaration.
703 (displaced_step_dump_bytes): Return string, remove ui_file
704 parameter, update all callers.
705 * infrun.c (displaced_debug_printf_1): New function.
706 (displaced_step_dump_bytes): Return string, remove ui_file
707 parameter
708
aa2045e7
SM
7092020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
710
711 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
712
b1ec2735
TT
7132020-10-30 Tom Tromey <tromey@adacore.com>
714
715 * Makefile.in (stamp-init): Depend on config.status.
716
b78b3a29
TBA
7172020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
718
719 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
720
d70bdd3c
PA
7212020-10-30 Pedro Alves <pedro@palves.net>
722
723 * thread.c (lookup_selected_frame): Move ...
724 * frame.c (lookup_selected_frame): ... here.
725
79952e69
PA
7262020-10-30 Pedro Alves <pedro@palves.net>
727
728 * blockframe.c (block_innermost_frame): Use get_selected_frame.
729 * frame.c
730 (scoped_restore_selected_frame::scoped_restore_selected_frame):
731 Use save_selected_frame. Save language as well.
732 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
733 Use restore_selected_frame, and restore language as well.
734 (selected_frame_id, selected_frame_level): New.
735 (selected_frame): Update comments.
736 (save_selected_frame, restore_selected_frame): New.
737 (get_selected_frame): Use lookup_selected_frame.
738 (get_selected_frame_if_set): Delete.
739 (select_frame): Record selected_frame_level and selected_frame_id.
740 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
741 fields.
742 (get_selected_frame): Make 'message' parameter optional.
743 (get_selected_frame_if_set): Delete declaration.
744 (select_frame): Update comments.
745 (save_selected_frame, restore_selected_frame)
746 (lookup_selected_frame): Declare.
747 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
748 * infrun.c (struct infcall_control_state) <selected_frame_level>:
749 New field.
750 (save_infcall_control_state): Use save_selected_frame.
751 (restore_selected_frame): Delete.
752 (restore_infcall_control_state): Use restore_selected_frame.
753 * stack.c (select_frame_command_core, frame_command_core): Use
754 get_selected_frame.
755 * thread.c (restore_selected_frame): Rename to ...
756 (lookup_selected_frame): ... this and make extern. Select the
757 current frame if the frame level is -1.
758 (scoped_restore_current_thread::restore): Also restore the
759 language.
760 (scoped_restore_current_thread::~scoped_restore_current_thread):
761 Don't try/catch.
762 (scoped_restore_current_thread::scoped_restore_current_thread):
763 Save the language as well. Use save_selected_frame.
764
58103c33
SM
7652020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
766
767 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
768 documentation.
769 * gdbarch.h: Re-generate.
770
40a53766
SM
7712020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
772
773 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
774 parameter.
775 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
776 Likewise.
777 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
778 Likewise.
779 * arch-utils.c (default_displaced_step_hw_singlestep):
780 Likewise.
781 * arch-utils.h (default_displaced_step_hw_singlestep):
782 Likewise.
783 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
784 Likewise.
785 * s390-tdep.c (s390_displaced_step_hw_singlestep):
786 Likewise.
787 * gdbarch.c: Re-generate.
788 * gdbarch.h: Re-generate.
789 * infrun.c (resume_1): Adjust.
790
8407f91b
TT
7912020-10-29 Tom Tromey <tom@tromey.com>
792
793 * progspace.c (program_space::~program_space): Don't call
794 exec_close.
795
5008b3b2
TT
7962020-10-29 Tom Tromey <tom@tromey.com>
797
798 * exec.c (exec_target::close): Don't change current program
799 space.
800
d9eebde0
TT
8012020-10-29 Tom Tromey <tom@tromey.com>
802
803 * symfile.c (add_symbol_file_command): Update.
804 * exec.c (program_space::add_target_sections): Rename.
805 * symfile-mem.c (symbol_file_add_from_memory): Update.
806 * progspace.h (struct program_space) <add_target_sections>:
807 Declare new overload.
808 * exec.h (add_target_sections_of_objfile): Don't declare.
809
3769e227
TT
8102020-10-29 Tom Tromey <tom@tromey.com>
811
812 * solib.c (solib_map_sections): Update.
813 * exec.c (program_space::add_target_sections): Now a method.
814 (exec_file_attach): Update.
815 * exec.h (add_target_sections): Don't declare.
816 * progspace.h (struct program_space) <add_target_sections>:
817 Declare.
818
2a3f84af
TT
8192020-10-29 Tom Tromey <tom@tromey.com>
820
821 * progspace.h (struct program_space) <remove_target_sections>:
822 Declare.
823 * exec.c (program_space::remove_target_sections): Now a method.
824 * exec.h (remove_target_sections): Don't declare.
825
004eecfd
TT
8262020-10-29 Tom Tromey <tom@tromey.com>
827
828 * inferior.c (delete_inferior): Update.
829 * progspace.c (program_space::empty): Rename from
830 program_space_empty_p. Return bool.
831 * progspace.h (struct program_space) <empty>: New method.
832 (program_space_empty_p): Don't declare.
833
e39fb971
TT
8342020-10-29 Tom Tromey <tom@tromey.com>
835
836 * progspace.c (program_space::~program_space): Don't call
837 clear_program_space_solib_cache.
838 (program_space::clear_solib_cache): Rename from
839 clear_solib_cache.
840 * solib.c (handle_solib_event): Update.
841 * progspace.h (struct program_space) <clear_solib_cache>: New
842 method.
843 (clear_program_space_solib_cache): Don't declare.
844
a42d7dd8
TT
8452020-10-29 Tom Tromey <tom@tromey.com>
846
847 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
848 * target.c (info_target_command): Update.
849 * symfile.c (syms_from_objfile_1, finish_new_objfile)
850 (symbol_file_clear, reread_symbols): Update.
851 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
852 * stabsread.c (scan_file_globals): Update.
853 * solib.c (update_solib_list): Update.
854 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
855 (svr4_fetch_objfile_link_map, enable_break)
856 (svr4_relocate_main_executable)
857 (svr4_iterate_over_objfiles_in_search_order): Update.
858 * solib-frv.c (lm_base, enable_break)
859 (frv_relocate_main_executable): Update.
860 (main_got, frv_fdpic_find_canonical_descriptor): Update.
861 (frv_fetch_objfile_link_map): Update.
862 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
863 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
864 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
865 * remote.c (remote_target::get_offsets): Update.
866 (remote_target::start_remote)
867 (extended_remote_target::post_attach): Update.
868 * objfiles.c (entry_point_address_query): Update.
869 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
870 * minsyms.c (get_symbol_leading_char): Update.
871 * frame.c (inside_main_func): Update.
872 * progspace.h (symfile_objfile): Remove macro.
873
19f6550e
TT
8742020-10-29 Tom Tromey <tom@tromey.com>
875
876 * exec.c (exec_file_attach): Update.
877 * progspace.c (program_space::exec_close): Update.
878 * progspace.h (struct program_space) <ebfd>: Now a
879 gdb_bfd_ref_ptr.
880 <set_exec_bfd>: Change argument type.
881 <exec_bfd>: Update.
882
7e10abd1
TT
8832020-10-29 Tom Tromey <tom@tromey.com>
884
885 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
886 * symfile.c (reread_symbols): Update.
887 * symfile-mem.c (add_symbol_file_from_memory_command)
888 (add_vsyscall_page): Update.
889 * source-cache.c (source_cache::get_plain_source_lines): Update.
890 * solib-svr4.c (find_program_interpreter, elf_locate_base)
891 (svr4_current_sos_direct, svr4_exec_displacement)
892 (svr4_relocate_main_executable): Update.
893 (svr4_iterate_over_objfiles_in_search_order): Update.
894 * solib-frv.c (enable_break2, enable_break): Update.
895 * solib-dsbt.c (lm_base, enable_break): Update.
896 * solib-darwin.c (find_program_interpreter)
897 (darwin_solib_create_inferior_hook): Update.
898 * sol-thread.c (rw_common, ps_pdmodel): Update.
899 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
900 * remote.c (compare_sections_command)
901 (remote_target::trace_set_readonly_regions): Update.
902 * remote-sim.c (get_sim_inferior_data)
903 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
904 (gdbsim_target_open, gdbsim_target::files_info): Update.
905 * exec.h (exec_bfd): Remove macro.
906 * progspace.c (initialize_progspace): Update.
907 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
908 Update.
909 * nto-procfs.c (nto_procfs_target::post_attach)
910 (nto_procfs_target::create_inferior): Update.
911 * maint.c (maintenance_info_sections): Update.
912 * linux-thread-db.c (thread_db_target::get_thread_local_address):
913 Update.
914 * infcmd.c (post_create_inferior): Update.
915 * gcore.c (default_gcore_arch, default_gcore_target): Update.
916 (objfile_find_memory_regions): Update.
917 * exec.c (validate_exec_file, exec_file_attach)
918 (exec_read_partial_read_only, print_section_info): Update.
919 * corelow.c (core_target_open): Update.
920 * corefile.c (reopen_exec_file, validate_files): Update.
921 * arm-tdep.c (gdb_print_insn_arm): Update.
922 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
923 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
924 methods.
925
b55221ab
TT
9262020-10-29 Tom Tromey <tom@tromey.com>
927
928 * progspace.h (current_target_sections): Remove macro.
929 * solib-svr4.c (scan_dyntag): Update.
930 * solib-dsbt.c (scan_dyntag): Update.
931 * exec.c (exec_target::close): Update.
932 (add_target_sections, add_target_sections_of_objfile)
933 (remove_target_sections, exec_target::get_section_table)
934 (exec_target::files_info, set_section_command)
935 (exec_set_section_address, exec_target::has_memory)
936 (exec_target::has_memory): Update.
937
5a36e715
TT
9382020-10-29 Tom Tromey <tom@tromey.com>
939
940 * source-cache.c (source_cache::get_plain_source_lines): Use
941 current_program_space.
942 * corefile.c (reopen_exec_file): Use current_program_space.
943 * exec.c (exec_file_attach): Use current_program_space.
944 * exec.h (exec_bfd_mtime): Remove.
945
784c8592
TT
9462020-10-29 Tom Tromey <tom@tromey.com>
947
948 * gcore.c (default_gcore_mach): Remove.
949 (create_gcore_bfd): Update.
950
8a4f1402
TT
9512020-10-29 Tom Tromey <tom@tromey.com>
952
953 * progspace.c (program_space::exec_close): New method, from
954 exec_close in exec.c.
955 * exec.c (exec_close): Move to progspace.c.
956 (exec_target::close, exec_file_attach): Update.
957 * progspace.h (struct program_space) <exec_close>: Declare
958 method.
959
c20cb686
TT
9602020-10-29 Tom Tromey <tom@tromey.com>
961
962 * progspace.h (struct program_space) <exec_filename>: Rename from
963 pspace_exec_filename. Now a unique_xmalloc_ptr.
964 * inferior.c (print_selected_inferior): Update.
965 (print_inferior): Update.
966 * mi/mi-main.c (print_one_inferior): Update.
967 * exec.h (exec_filename): Remove macro.
968 * corefile.c (get_exec_file): Update.
969 * exec.c (exec_close): Update.
970 (exec_file_attach): Update.
971 * progspace.c (clone_program_space): Update.
972 (print_program_space): Update.
973
6be2a9ab
TT
9742020-10-29 Tom Tromey <tom@tromey.com>
975
976 * target-section.h (struct target_section): Add constructor.
977 * exec.c (build_section_table, add_target_sections_of_objfile):
978 Update.
979 * corelow.c (core_target::build_file_mappings): Update.
980
cfaa8f76
TBA
9812020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
982
983 PR gdb/19318
984 * inferior.c (detach_inferior_command): Restore the current thread.
985 (kill_inferior_command): Ditto.
986
1b00ef06
TV
9872020-10-28 Tom de Vries <tdevries@suse.de>
988
989 PR symtab/26772
990 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
991 map, check it in the "best match" loop.
992
7f40ce1a
SM
9932020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
994
995 * m32c-tdep.c: Remove unused includes.
996
5eb9e3f5
SM
9972020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
998
999 * xtensa-tdep.c: Remove includes.
1000
b1d4d8d1
TBA
10012020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1002
1003 * breakpoint.c (struct condition_command_opts): New struct.
1004 (condition_command_option_defs): New static global.
1005 (make_condition_command_options_def_group): New function.
1006 (condition_completer): Update to consider the '-force' flag.
1007 (condition_command): Use gdb::option for the '-force' flag.
1008
bd24c5d6
TV
10092020-10-27 Tom de Vries <tdevries@suse.de>
1010
1011 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1012 symbols in section check.
1013
61eb46a4
TV
10142020-10-27 Tom de Vries <tdevries@suse.de>
1015
1016 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1017
733d554a
TBA
10182020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1019
1020 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1021 * breakpoint.c: Update the help text of the 'condition' and 'break'
1022 commands.
1023 (set_breakpoint_condition): Take a new bool parameter
1024 to control whether condition definition should be forced even when
1025 the condition expression is invalid in all of the current locations.
1026 (condition_command): Update the call to 'set_breakpoint_condition'.
1027 (find_condition_and_thread): Take the "-force-condition" flag into
1028 account.
1029 * linespec.c (linespec_keywords): Add "-force-condition" as an
1030 element.
1031 (FORCE_KEYWORD_INDEX): New #define.
1032 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1033 as a keyword.
1034 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1035 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1036 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1037 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1038
b5fa468f
TBA
10392020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1040
1041 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1042 * breakpoint.c (set_breakpoint_location_condition): New function.
1043 (set_breakpoint_condition): Disable a breakpoint location if parsing
1044 the condition string gives an error.
1045 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1046 (build_target_condition_list): Ditto.
1047 (build_target_command_list): Ditto.
1048 (build_bpstat_chain): Ditto.
1049 (print_one_breakpoint_location): Ditto.
1050 (print_one_breakpoint): Ditto.
1051 (breakpoint_1): Ditto.
1052 (bp_location::bp_location): Ditto.
1053 (locations_are_equal): Ditto.
1054 (update_breakpoint_locations): Ditto.
1055 (enable_disable_bp_num_loc): Ditto.
1056 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1057 (find_condition_and_thread_for_sals): New static function.
1058 (create_breakpoint): Call find_condition_and_thread_for_sals.
1059 (location_to_sals): Call find_condition_and_thread_for_sals instead
1060 of find_condition_and_thread.
1061
1c47ec3e
TV
10622020-10-26 Tom de Vries <tdevries@suse.de>
1063
1064 * dwarf2/read.c (process_full_comp_unit): Call
1065 dwarf2_find_base_address.
1066
6390859c
TT
10672020-10-26 Tom Tromey <tromey@adacore.com>
1068
1069 * gdbtypes.c (create_range_type): Revert previous patch. Add
1070 comment.
1071
d744f0f9
PA
10722020-10-26 Pedro Alves <pedro@palves.net>
1073
1074 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1075 (my_waitpid): Use gdb::handle_eintr.
1076
006811bc
SM
10772020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1078
1079 * acinclude.m4: Update ptrace.m4 path.
1080 * ptrace.m4: Moved to gdbsupport.
1081
c75e31a1
SM
10822020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1083
1084 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1085 instead of target_gdbarch.
1086
32495661
SM
10872020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1088
1089 * jit.c (jit_reader_load_command): Pass current inferior.
1090 (jit_inferior_init): Change parameter type to inferior, use it.
1091 (jit_inferior_created): Remove.
1092 (jit_inferior_created_hook): Pass inferior parameter down.
1093 (_initialize_jit): Use jit_inferior_created_hook instead of
1094 jit_inferior_created.
1095 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1096 * infrun.c (follow_exec): Pass inferior to
1097 jit_inferior_created_hook.
1098
3f66685e
SM
10992020-10-24 Simon Marchi <simon.marchi@efficios.com>
1100
1101 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1102 parameter and use it.
1103 (thread_db_inferior_created): Pass inferior argument.
1104
a0ff652f
SM
11052020-10-24 Simon Marchi <simon.marchi@efficios.com>
1106
1107 * aix-thread.c (aix_thread_inferior_created): Add inferior
1108 parameter.
1109 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1110 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1111 * jit.c (jit_inferior_created): Likewise.
1112 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1113 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1114 * observable.h (inferior_created): Likewise.
1115 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1116 * symfile-mem.c (add_vsyscall_page): Likewise.
1117 * infcmd.c (post_create_inferior): Pass inferior argument.
1118
3c67532c
JB
11192020-10-24 Joel Brobecker <brobecker@adacore.com>
1120
1121 GDB 10.1 released.
1122
8747316e
JB
11232020-10-23 Joel Brobecker <brobecker@adacore.com>
1124
1125 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1126 to ada_check_typedef.
1127
1a0ea399
AB
11282020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1129
1130 * f-exp.y (f_parse): Rename to...
1131 (f_language::parser): ...this.
1132 * f-lang.c (f_get_encoding): Rename to...
1133 (f_language::get_encoding): ...this.
1134 (f_op_print_tab): Rename to...
1135 (f_language::op_print_tab): ...this.
1136 (exp_descriptor_f): Rename to...
1137 (f_language::exp_descriptor_tab): ...this.
1138 (class f_language): Moved to f-lang.h.
1139 (f_language::language_arch_info): New function, moved out of class
1140 declaration.
1141 (f_language::search_name_hash): Likewise.
1142 (f_language::lookup_symbol_nonlocal): Likewise.
1143 (f_language::get_symbol_name_matcher_inner): Likewise.
1144 * f-lang.h: Add 'valprint.h' include.
1145 (class f_language): Moved here from f-lang.c.
1146 * f-typeprint.c (f_type_print_args): Delete commented out
1147 declaration.
1148 (f_print_typedef): Rename to...
1149 (f_language::print_typedef): ...this.
1150 (f_print_type): Rename to...
1151 (f_language::print_type): ...this.
1152 (f_type_print_varspec_prefix): Delete declaration and rename to...
1153 (f_language::f_type_print_varspec_prefix): ...this.
1154 (f_type_print_varspec_suffix): Delete declaration and rename to...
1155 (f_language::f_type_print_varspec_suffix): ...this.
1156 (f_type_print_base): Delete declaration and rename to...
1157 (f_language::f_type_print_base): ...this.
1158 * f-valprint.c (f_value_print_inner): Rename to...
1159 (f_language::value_print_inner): ...this.
1160 * parse.c: Delete 'f-lang.h' include.
1161
88cefd9b
AB
11622020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1163
1164 * language.h (language_defn::print_type): Add variable names in
1165 declaration, and update header comment.
1166
5399db93
AB
11672020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1168
1169 * ada-lang.c (ada_language::demangle): Rename to...
1170 (ada_language::demangle_symbol): ...this.
1171 * c-lang.c (cplus_language::demangle): Rename to...
1172 (cplus_language::demangle_symbol): ...this.
1173 * d-lang.c (d_language::demangle): Rename to...
1174 (d_language::demangle_symbol): ...this.
1175 * f-lang.c (f_language::demangle): Rename to...
1176 (f_language::demangle_symbol): ...this.
1177 * go-lang.c (go_language::demangle): Rename to...
1178 (go_language::demangle_symbol): ...this.
1179 * language.c (language_demangle): Update call to demangle_symbol.
1180 (auto_or_unknown_language::demangle): Rename to...
1181 (auto_or_unknown_language::demangle_symbol): ...this.
1182 * language.h (language_defn::demangle): Rename to...
1183 (language_defn::demangle_symbol): ...this.
1184 * objc-lang.c (objc_language::demangle): Rename to...
1185 (objc_language::demangle_symbol): ...this.
1186 * rust-lang.c (rust_language::demangle): Rename to...
1187 (rust_language::demangle_symbol): ...this.
1188
4b2f86ef
AB
11892020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1190
1191 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1192 (iterate_over_file_blocks): Replace use of macro with the macros
1193 definition.
1194
e74b39de
AB
11952020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1196
1197 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1198 * valprint.c (maybe_print_array_index): Replace use of macro with
1199 the macros definition.
1200
00c696a6
AB
12012020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1202
1203 * ada-lang.c (ada_language::print_array_index): Call value_print
1204 directly.
1205 * language.c (language_defn::print_array_index): Likewise.
1206 * language.h (LA_VALUE_PRINT): Delete.
1207 * valprint.c (value_print): Call value_print on the
1208 current_language directly.
1209
d3b67c56
AB
12102020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1211
1212 * language.h (LA_PRINT_TYPEDEF): Delete.
1213 * typeprint.c (typedef_print): Call print_typedef directly on the
1214 current_language object.
1215
790e2a12
AB
12162020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1217
1218 * m2-exp.y (m2_parse): Rename to...
1219 (m2_language::parser): ...this. Update function signature.
1220 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1221 (m2_op_print): Rename to...
1222 (m2_language::op_print_tab): ...this, and make const.
1223 (exp_descriptor_modula2): Rename to...
1224 (m2_language::exp_descriptor_modula2): ...this.
1225 (class m2_language): Move to m2-lang.h.
1226 (m2_language::language_arch_info): New function, moved out of
1227 class declaration.
1228 (m2_language::printchar): New function, body from m2_printchar.
1229 (m2_language::printstr): New function, moved out of class
1230 declaration.
1231 (m2_language::emitchar): Likewise.
1232 * m2-lang.h (m2_parse): Delete declaration.
1233 (m2_print_typedef): Delete declaration.
1234 (m2_value_print_inner): Delete declaration.
1235 (class m2_language): Class declaration moved from m2-lang.c,
1236 larger functions are left in m2-lang.c.
1237 * m2-typeprint.c (m2_print_typedef): Rename to...
1238 (m2_language::print_typedef): ...this, and update function
1239 signature.
1240 * m2-valprint.c (m2_value_print_inner): Rename to...
1241 (m2_language::value_print_inner): ...this, replace use of
1242 LA_PRINT_STRING with a direct call to printstr member function,
1243 and update recursive call.
1244
b01175fc
AB
12452020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1246
1247 * language.c (default_is_string_type_p): Delete, implementation
1248 moved into auto_or_unknown_language::is_string_type_p.
1249 (unk_op_print_tab): Moved into
1250 auto_or_unknown_language::opcode_print_table.
1251 (unknown_language_arch_info): Delete, implementation moved into
1252 auto_or_unknown_language::language_arch_info.
1253 (class auto_or_unknown_language): New class, member functions
1254 copied from unknown_language class, with some updates.
1255 (class unknown_language): Most member functions moved into
1256 auto_or_unknown_language class. Inherit from
1257 auto_or_unknown_language class.
1258 (class auto_language): Inherit from auto_or_unknown_language.
1259 Delete most member functions.
1260
1a97fe8c
HD
12612020-10-22 Hannes Domani <ssbssa@yahoo.de>
1262
1263 * stabsread.c (read_member_functions): Remove gdb_assert.
1264
6b9d0dfd
HD
12652020-10-22 Hannes Domani <ssbssa@yahoo.de>
1266
1267 * gdbtypes.c (init_complex_type): Check target type name.
1268
4b4bb603
SM
12692020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1270
1271 * target-debug.h (target_debug_print_struct_target_ops_p):
1272 Remove.
1273 (target_debug_print_async_callback_ftype_p): Remove.
1274 (target_debug_print_struct_trace_state_variable_p): Remove.
1275 (target_debug_print_struct_traceframe_info_p): Remove.
1276 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1277 (target_debug_print_enum_btrace_format): Remove.
1278 (target_debug_print_enum_info_proc_what): Remove.
1279 (target_debug_print_thread_info_pp): Remove.
1280
24f5300a
SM
12812020-10-22 Simon Marchi <simon.marchi@efficios.com>
1282
1283 * target.h (struct target_ops) <make_corefile_notes>:
1284 Change return type to unique pointer.
1285 * target.c (dummy_make_corefile_notes): Likewise.
1286 * exec.c (struct exec_target) <make_corefile_notes>:
1287 Likewise.
1288 (exec_target::make_corefile_notes): Likewise.
1289 * procfs.c (class procfs_target) <make_corefile_notes>:
1290 Likewise.
1291 (procfs_do_thread_registers): Adjust to unique pointer.
1292 (struct procfs_corefile_thread_data): Add constructor.
1293 <note_data>: Change type to unique pointer.
1294 (procfs_corefile_thread_callback): Adjust to unique pointer.
1295 (procfs_target::make_corefile_notes): Change return type to
1296 unique pointer.
1297 * target-delegates.c: Re-generate.
1298 * gcore.c (write_gcore_file_1): Adjust.
1299 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1300 New.
1301
5fb4027f
TV
13022020-10-22 Tom de Vries <tdevries@suse.de>
1303
1304 * block.c (find_block_in_blockvector): Make sure the returned block
1305 contains pc.
1306
4a636814
SM
13072020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1308
1309 PR gdb/26693
1310 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1311 parameter.
1312 (load_cu): Pass existing CU.
1313 (process_imported_unit_die): Likewise.
1314 (follow_die_offset): Likewise.
1315
1bd57575
LM
13162020-10-22 Luis Machado <luis.machado@linaro.org>
1317
1318 * corelow.c (core_target::xfer_partial): Also check for an empty
1319 m_core_unavailable_mappings vector.
1320
6b4c676c
AB
13212020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1322
1323 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1324 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1325 * f-exp.y (arglist): Allow for a series of subranges.
1326 (subrange): Add cases for subranges with strides.
1327 * f-lang.c (value_f90_subarray): Catch use of array strides and
1328 throw an error.
1329 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1330
f2d8e4c5
AB
13312020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1332
1333 * expprint.c (print_subexp_standard): Change enum range_type to
1334 range_flag and rename variables to match.
1335 (dump_subexp_body_standard): Likewise.
1336 * expression.h (enum range_type): Rename to...
1337 (enum range_flag): ...this.
1338 (range_types): Rename to...
1339 (range_flags): ...this.
1340 * f-lang.c (value_f90_subarray): Change enum range_type to
1341 range_flag and rename variables to match.
1342 * parse.c (operator_length_standard): Likewise.
1343 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1344 range_type to range_flag.
1345 * rust-lang.c (rust_evaluate_funcall): Likewise.
1346 (rust_range): Likewise.
1347 (rust_compute_range): Likewise.
1348 (rust_subscript): Likewise.
1349
2f1b18db
AB
13502020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1351
1352 * expprint.c (print_subexp_standard): Update to reflect changes to
1353 enum range_type.
1354 (dump_subexp_body_standard): Likewise.
1355 * expression.h (enum range_type): Convert to a bit field enum, and
1356 make the enum unsigned.
1357 * f-exp.y (subrange): Update to reflect changes to enum
1358 range_type.
1359 * f-lang.c (value_f90_subarray): Likewise.
1360 * parse.c (operator_length_standard): Likewise.
1361 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1362 * rust-lang.c (rust_range): Likewise.
1363 (rust_compute_range): Likewise.
1364 (rust_subscript): Likewise.
1365
a46d1843
SM
13662020-10-21 Simon Marchi <simon.marchi@efficios.com>
1367
1368 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1369 (displaced_step_in_progress): Fix comment.
1370
c21f37a8
SM
13712020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1372
1373 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1374 * gdbarch.c: Re-generate.
1375 * gdbarch.h: Re-generate.
1376 * gcore.c (write_gcore_file_1): Adjust.
1377 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1378 constructor.
1379 <note_data>: Change type to unique pointer.
1380 <abort_iteration>: Change type to bool.
1381 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1382 (fbsd_collect_thread_registers): Return void, adjust.
1383 (struct fbsd_corefile_thread_data): Add construtor.
1384 <note_data>: Change type to unique pointer.
1385 (fbsd_corefile_thread): Adjust.
1386 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1387 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1388 to unique pointer, adjust.
1389 (struct linux_collect_regset_section_cb_data): Add constructor.
1390 <note_data>: Change type to unique pointer.
1391 <abort_iteration>: Change type to bool.
1392 (linux_collect_thread_registers): Return void, adjust.
1393 (struct linux_corefile_thread_data): Add constructor.
1394 <note_data>: Change type to unique pointer.
1395 (linux_corefile_thread): Adjust.
1396 (linux_make_corefile_notes): Return unique pointer, adjust.
1397
07fbbd01
SM
13982020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1399
1400 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1401 * gdbarch.c: Re-generate.
1402 * gdbarch.h: Re-generate.
1403 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1404 bool.
1405 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1406 Likewise.
1407 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1408 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1409 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1410 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1411
39535193
SM
14122020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1413
1414 * gdbarch.sh: Make generated predicates return bool.
1415 * gdbarch.c: Re-generate.
1416 * gdbarch.h: Re-generate.
1417
ad523d01
TT
14182020-10-20 Tom Tromey <tom@tromey.com>
1419
1420 * varobj-iter.h (struct varobj_item): Remove typedef.
1421
c4464ade
SM
14222020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1423
1424 * infrun.c (currently_stepping): Change int to bool
1425 (maybe_software_singlestep): Likewise.
1426 (show_stop_on_solib_events): Likewise.
1427 (stepping_past_nonsteppable_watchpoint): Likewise.
1428 (displaced_step_in_progress_any_inferior): Likewise.
1429 (displaced_step_in_progress_thread): Likewise.
1430 (keep_going_stepped_thread): Likewise.
1431 (thread_still_needs_step_over): Likewise.
1432 (start_step_over): Likewise.
1433 (do_target_resume): Likewise.
1434 (resume_1): Likewise.
1435 (clear_proceed_status): Likewise.
1436 (thread_still_needs_step_over_bp): Likewise.
1437 (proceed): Likewise.
1438 (switch_back_to_stepped_thread): Likewise.
1439 (adjust_pc_after_break): Likewise.
1440 (stepped_in_from): Likewise.
1441 (handle_stop_requested): Likewise.
1442 (handle_syscall_event): Likewise.
1443 (handle_no_resumed): Likewise.
1444 (handle_inferior_event): Likewise.
1445 (finish_step_over): Likewise.
1446 (handle_signal_stop): Likewise.
1447 (process_event_stop_test): Likewise.
1448
2eb20436
SM
14492020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1450
1451 * infrun.c (get_displaced_stepping_state): Fix comment.
1452
e0c45ded
AS
14532020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1454
1455 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1456
22cc388e
TT
14572020-10-19 Tom Tromey <tromey@adacore.com>
1458
1459 PR tui/26719
1460 * tui/tui-winsource.h (struct tui_source_window_base)
1461 <refresh_window>: Rename from refresh_pad.
1462 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1463 Rename from refresh_pad.
1464 (tui_source_window_base::show_source_content)
1465 (tui_source_window_base::do_scroll_horizontal): Update.
1466
3c6eb4d4
TBA
14672020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1468
1469 * thread.c (_initialize_thread): Fine-tune the help text of
1470 'info threads'.
1471
26703721
TBA
14722020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1473
1474 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1475
61c26be8
MS
14762020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1477
1478 * breakpoint.c (handle_jit_event): Add an argument, change how
1479 `jit_event_handler` is called.
1480
932539d7
TT
14812020-10-17 Tom Tromey <tom@tromey.com>
1482
1483 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1484 (scan_xcoff_symtab): Update.
1485 * psymtab.h (class psymtab_storage) <global_psymbols,
1486 static_psymbols, current_global_psymbols,
1487 current_static_psymbols>: Remove.
1488 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1489 (match_partial_symbol, lookup_partial_symbol): Update.
1490 (print_partial_symbols): Change parameters.
1491 (dump_psymtab, recursively_search_psymtabs)
1492 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1493 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1494 (concat): Remove.
1495 (end_psymtab_common): Simplify.
1496 (append_psymbol_to_list): Change parameters.
1497 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1498 (init_psymbol_list): Simplify.
1499 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1500 * psympriv.h (struct partial_symtab) <empty>: New method.
1501 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1502 Remove.
1503 <global_psymbols, static_psymbols>: New members.
1504 <add_psymbol>: New methods.
1505 (add_psymbol_to_list): Don't declare.
1506 (psymbol_placement): Move earlier.
1507 * mdebugread.c (parse_partial_symbols): Update.
1508 (handle_psymbol_enumerators): Change parameters.
1509 (mdebug_expand_psymtab): Update.
1510 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1511 (add_partial_symbol): Update.
1512 * dwarf2/index-write.c (write_psymbols): Change parameters.
1513 (write_one_signatured_type): Update.
1514 (recursively_count_psymbols): Update.
1515 (recursively_write_psymbols): Update.
1516 (class debug_names) <recursively_write_psymbols>: Update.
1517 <write_psymbols>: Change parameters.
1518 <write_one_signatured_type>: Update.
1519 * dbxread.c (read_dbx_symtab): Update.
1520 (dbx_end_psymtab): Use partial_symtab::empty.
1521 * ctfread.c (struct ctf_context) <pst>: New member.
1522 (create_partial_symtab): Set it.
1523 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1524 (scan_partial_symbols): Use the psymtab's context. Update.
1525
cfabbd35
TT
15262020-10-17 Tom Tromey <tom@tromey.com>
1527
1528 * valprint.c (generic_value_print): Remove comment.
1529 * m2-valprint.c (m2_value_print_inner): Remove comment.
1530 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1531 type.
1532
520596f2
TV
15332020-10-17 Tom de Vries <tdevries@suse.de>
1534
1535 PR symtab/26317
1536 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1537 symbol main.
1538
76547ab3
TV
15392020-10-14 Tom de Vries <tdevries@suse.de>
1540
1541 PR gdb/26733
1542 * solib.c (solib_contains_address_p): Handle
1543 'solib->sections == nullptr'.
1544
d3a07122
SM
15452020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1546
1547 PR gdb/26642
1548 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1549 target can't do async.
1550 * target.c (target_wait): Assert that we don't pass
1551 TARGET_WNOHANG to a target that can't async.
1552
1b71cfcf
KR
15532020-10-13 Kamil Rytarowski <n54@gmx.com>
1554
1555 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1556 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1557 * alpha-bsd-nat.c: Adjust include.
1558 * alpha-bsd-tdep.h: Adjust comment.
1559 * alpha-nbsd-tdep.c: Rename to ...
1560 * alpha-netbsd-tdep.c: ... this, adjust include.
1561 * amd64-nbsd-nat.c: Rename to ...
1562 * amd64-netbsd-nat.c: ... this, adjust include.
1563 * amd64-nbsd-tdep.c: Rename to ...
1564 * amd64-netbsd-tdep.c: ... this, adjust include.
1565 * amd64-tdep.h: Adjust include.
1566 * arm-nbsd-nat.c: Rename to ...
1567 * arm-netbsd-nat.c: ... this, adjust include.
1568 * arm-nbsd-tdep.c: Rename to ...
1569 * arm-netbsd-tdep.c: ... this, adjust include.
1570 * arm-nbsd-tdep.h: Rename to ...
1571 * arm-netbsd-tdep.h: ... this, adjust include.
1572 * configure.nat: Adjust file lists.
1573 * configure.tgt: Likewise.
1574 * hppa-nbsd-nat.c: Rename to ...
1575 * hppa-netbsd-nat.c: ... this, adjust include.
1576 * hppa-nbsd-tdep.c: Rename to ...
1577 * hppa-netbsd-tdep.c: ... this, adjust include.
1578 * i386-nbsd-nat.c: Rename to ...
1579 * i386-netbsd-nat.c: ... this, adjust include.
1580 * i386-nbsd-tdep.c: Rename to ...
1581 * i386-netbsd-tdep.c: ... this, adjust include.
1582 * m68k-bsd-nat.c: Adjust include.
1583 * mips-nbsd-nat.c: Rename to ...
1584 * mips-netbsd-nat.c: ... this, adjust include.
1585 * mips-nbsd-tdep.c: Rename to ...
1586 * mips-netbsd-tdep.c: ... this, adjust include.
1587 * mips-nbsd-tdep.h: Rename to ...
1588 * mips-netbsd-tdep.h: ... this.
1589 * nbsd-nat.c: Rename to ...
1590 * netbsd-nat.c: ... this, adjust include.
1591 * nbsd-nat.h: Rename to ...
1592 * netbsd-nat.h: ... this, adjust include.
1593 * nbsd-tdep.c: Rename to ...
1594 * netbsd-tdep.c: ... this, adjust include.
1595 * nbsd-tdep.h: Rename to ...
1596 * netbsd-tdep.h: ... this.
1597 * ppc-nbsd-nat.c: Rename to ...
1598 * ppc-netbsd-nat.c: ... this, adjust include.
1599 * ppc-nbsd-tdep.c: Rename to ...
1600 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1601 * ppc-nbsd-tdep.h: Rename to ...
1602 * ppc-netbsd-tdep.h: ... this.
1603 * sh-nbsd-nat.c: Rename to ...
1604 * sh-netbsd-nat.c: ... this, adjust include.
1605 * sh-nbsd-tdep.c: Rename to ...
1606 * sh-netbsd-tdep.c: ... this, adjust include.
1607 * sparc-nbsd-nat.c: Rename to ...
1608 * sparc-netbsd-nat.c: ... this.
1609 * sparc-nbsd-tdep.c: Rename to ...
1610 * sparc-netbsd-tdep.c: ... this, adjust include.
1611 * sparc64-nbsd-nat.c: Rename to ...
1612 * sparc64-netbsd-nat.c: ... this.
1613 * sparc64-nbsd-tdep.c: Rename to ...
1614 * sparc64-netbsd-tdep.c: ... this, adjust include.
1615 * sparc64-tdep.h: Adjust comment.
1616 * vax-bsd-nat.c: Adjust include.
1617 * vax-nbsd-tdep.c: Rename to ...
1618 * vax-netbsd-tdep.c: ... this, adjust include.
1619
d7a78e5c
TT
16202020-10-12 Tom Tromey <tom@tromey.com>
1621
1622 * target.h (struct target_ops) <get_section_table>: Update.
1623 (target_get_section_table): Update.
1624 * target.c (target_get_section_table, target_section_by_addr)
1625 (memory_xfer_partial_1): Update.
1626 * target-section.h (target_section_table): Now an alias.
1627 * target-delegates.c: Rebuild.
1628 * target-debug.h (target_debug_print_target_section_table_p):
1629 Rename from target_debug_print_struct_target_section_table_p.
1630 * symfile.c (build_section_addr_info_from_section_table): Update.
1631 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1632 * solib-svr4.c (scan_dyntag): Update.
1633 * solib-dsbt.c (scan_dyntag): Update.
1634 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1635 Update.
1636 * record-full.c (record_full_core_target::xfer_partial): Update.
1637 * progspace.h (struct program_space) <target_sections>: Update.
1638 * exec.h (print_section_info): Update.
1639 * exec.c (exec_target::close, build_section_table)
1640 (add_target_sections, add_target_sections_of_objfile)
1641 (remove_target_sections, exec_on_vfork)
1642 (section_table_available_memory)
1643 (section_table_xfer_memory_partial)
1644 (exec_target::get_section_table, exec_target::xfer_partial)
1645 (print_section_info, set_section_command)
1646 (exec_set_section_address, exec_target::has_memory): Update.
1647 * corelow.c (core_target::build_file_mappings)
1648 (core_target::xfer_partial, core_target::info_proc_mappings)
1649 (core_target::info_proc_mappings): Update.
1650 * bfd-target.c (class target_bfd): Update
1651
eda214ce
TT
16522020-10-12 Tom Tromey <tom@tromey.com>
1653
1654 * progspace.c (program_space::~program_space): Don't call
1655 clear_section_table.
1656 * exec.h (clear_section_table): Don't declare.
1657 * exec.c (exec_target::close): Update.
1658 (clear_section_table): Remove.
1659
91840ee3
TT
16602020-10-12 Tom Tromey <tom@tromey.com>
1661
1662 * exec.c (add_target_sections_of_objfile): Simplify.
1663
2d128614
TT
16642020-10-12 Tom Tromey <tom@tromey.com>
1665
1666 * solib.c (solib_map_sections): Update.
1667 * record-full.c (record_full_core_open_1): Update.
1668 * exec.h (build_section_table): Return a target_section_table.
1669 * exec.c (exec_file_attach): Update.
1670 (build_section_table): Return a target_section_table.
1671 * corelow.c (core_target::core_target): Update.
1672 * bfd-target.c (target_bfd::target_bfd): Update.
1673
bb2a6777
TT
16742020-10-12 Tom Tromey <tom@tromey.com>
1675
1676 * target.c (target_section_by_addr, memory_xfer_partial_1):
1677 Update.
1678 * target-section.h (struct target_section_table): Use
1679 std::vector.
1680 * symfile.h (build_section_addr_info_from_section_table): Take a
1681 target_section_table.
1682 * symfile.c (build_section_addr_info_from_section_table): Take a
1683 target_section_table.
1684 * solist.h (struct so_list) <sections>: Change type.
1685 <sections_end>: Remove.
1686 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1687 (solib_contains_address_p): Update.
1688 * solib-svr4.c (scan_dyntag): Update.
1689 * solib-dsbt.c (scan_dyntag): Update.
1690 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1691 Update.
1692 * record-full.c (record_full_core_start, record_full_core_end):
1693 Remove.
1694 (record_full_core_sections): New global.
1695 (record_full_core_open_1, record_full_core_target::xfer_partial):
1696 Update.
1697 * exec.h (build_section_table, section_table_xfer_memory_partial)
1698 (add_target_sections): Take a target_section_table.
1699 * exec.c (exec_file_attach, clear_section_table): Update.
1700 (resize_section_table): Remove.
1701 (build_section_table, add_target_sections): Take a
1702 target_section_table.
1703 (add_target_sections_of_objfile, remove_target_sections)
1704 (exec_on_vfork): Update.
1705 (section_table_available_memory): Take a target_section_table.
1706 (section_table_read_available_memory): Update.
1707 (section_table_xfer_memory_partial): Take a target_section_table.
1708 (print_section_info, set_section_command)
1709 (exec_set_section_address, exec_target::has_memory): Update.
1710 * corelow.c (class core_target) <m_core_section_table,
1711 m_core_file_mappings>: Remove braces.
1712 <~core_target>: Remove.
1713 (core_target::core_target): Update.
1714 (core_target::~core_target): Remove.
1715 (core_target::build_file_mappings)
1716 (core_target::xfer_memory_via_mappings)
1717 (core_target::xfer_partial, core_target::info_proc_mappings):
1718 Update.
1719 * bfd-target.c (target_bfd::xfer_partial): Update.
1720 (target_bfd::target_bfd): Update.
1721 (target_bfd::~target_bfd): Remove.
1722
7b466b10
TT
17232020-10-12 Tom Tromey <tom@tromey.com>
1724
1725 * target.h (struct target_section, struct target_section_table):
1726 Move to target-section.h.
1727 * target-section.h: New file.
1728
87a37e5e
PA
17292020-10-12 Pedro Alves <pedro@palves.net>
1730
1731 PR exp/26602
1732 * valops.c (struct struct_field_searcher): New.
1733 (update_search_result): Rename to ...
1734 (struct_field_searcher::update_result): ... this. Simplify
1735 prototype. Record all found fields.
1736 (do_search_struct_field): Rename to ...
1737 (struct_field_searcher::search): ... this. Simplify prototype.
1738 Maintain stack of visited baseclass path. Call update_result for
1739 fields too. Keep searching fields in baseclasses instead of
1740 stopping at the first found field.
1741 (search_struct_field): Use struct_field_searcher. When looking
1742 for fields, report ambiguous access attempts.
1743
9370fd51
AB
17442020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1745
1746 * frame.c (inside_main_func): Check full symbols as well as
1747 minimal symbols.
1748
59c8a30b
JB
17492020-10-09 Joel Brobecker <brobecker@adacore.com>
1750
1751 * ada-lang.c (advance_wild_match): Rewrite the function's
1752 description. Change the type of target0, t0 and t1 to char.
1753
7c184d33
TT
17542020-10-09 Tom Tromey <tromey@adacore.com>
1755
1756 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1757
5c4258f4
TT
17582020-10-09 Tom Tromey <tromey@adacore.com>
1759
1760 * ada-lang.h (ada_encode): Return std::string.
1761 * ada-lang.c (ada_encode_1): Return std::string.
1762 (ada_encode): Likewise.
1763 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1764 Update.
1765 * ada-exp.y (block_lookup, write_var_or_type): Update.
1766
3d87245c
HD
17672020-10-09 Hannes Domani <ssbssa@yahoo.de>
1768
1769 PR exp/26714
1770 * printcmd.c (print_formatted): Handle void results as
1771 unformatted prints.
1772
bbb826f5
AB
17732020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1774
1775 * arch/aarch32.c (aarch32_create_target_description): Release the
1776 target_desc_up as late as possible.
1777 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1778 * arch/amd64.c (amd64_create_target_description): Likewise.
1779 * arch/arc.c (arc_create_target_description): Return a
1780 target_desc_up, don't release it.
1781 * arch/arc.h (arc_create_target_description): Update declaration.
1782 (arc_lookup_target_description): Move target_desc_up into the
1783 cache, and return a borrowed pointer.
1784 * arch/arm.c (arm_create_target_description): Release the
1785 target_desc_up as late as possible.
1786 * arch/i386.c (i386_create_target_description): Likewise.
1787 * arch/riscv.h (riscv_create_target_description): Update
1788 declaration to match definition.
1789 * arch/tic6x.c (tic6x_create_target_description): Release the
1790 target_desc_up as late as possible.
1791
361cb219
AB
17922020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1793
1794 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1795 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1796
f5c4b229
JV
17972020-10-09 Jan Vrany <jan.vrany@labware.com>
1798
1799 * source.c (directory_command): Notify observers that "directories"
1800 parameter has changed.
1801
b2701685
TT
18022020-10-08 Tom Tromey <tom@tromey.com>
1803
1804 * cli/cli-cmds.c (print_disassembly): Style function name and
1805 addresses. Add _() wrappers.
1806
ada508b6
SV
18072020-10-08 Shahab Vahedi <shahab@synopsys.com>
1808
1809 * NEWS: Mention ARC support in GDBserver.
1810
51a948fd
AB
18112020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1812
1813 * arch/aarch32.c (aarch32_create_target_description): Release
1814 unique_ptr returned from allocate_target_description.
1815 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1816 * arch/amd64.c (amd64_create_target_description): Likewise.
1817 * arch/arc.c (arc_create_target_description): Likewise.
1818 * arch/arm.c (arm_create_target_description): Likewise.
1819 * arch/i386.c (i386_create_target_description): Likewise.
1820 * arch/riscv.c (riscv_create_target_description): Update return
1821 type. Handle allocate_target_description returning a unique_ptr.
1822 (riscv_lookup_target_description): Update to handle unique_ptr.
1823 * arch/tic6x.c (tic6x_create_target_description): Release
1824 unique_ptr returned from allocate_target_description.
1825 * features/microblaze-with-stack-protect.c: Regenerate.
1826 * features/microblaze.c: Regenerate.
1827 * features/mips-dsp-linux.c: Regenerate.
1828 * features/mips-linux.c: Regenerate.
1829 * features/mips64-dsp-linux.c: Regenerate.
1830 * features/mips64-linux.c: Regenerate.
1831 * features/nds32.c: Regenerate.
1832 * features/nios2.c: Regenerate.
1833 * features/or1k.c: Regenerate.
1834 * features/rs6000/powerpc-32.c: Regenerate.
1835 * features/rs6000/powerpc-32l.c: Regenerate.
1836 * features/rs6000/powerpc-403.c: Regenerate.
1837 * features/rs6000/powerpc-403gc.c: Regenerate.
1838 * features/rs6000/powerpc-405.c: Regenerate.
1839 * features/rs6000/powerpc-505.c: Regenerate.
1840 * features/rs6000/powerpc-601.c: Regenerate.
1841 * features/rs6000/powerpc-602.c: Regenerate.
1842 * features/rs6000/powerpc-603.c: Regenerate.
1843 * features/rs6000/powerpc-604.c: Regenerate.
1844 * features/rs6000/powerpc-64.c: Regenerate.
1845 * features/rs6000/powerpc-64l.c: Regenerate.
1846 * features/rs6000/powerpc-7400.c: Regenerate.
1847 * features/rs6000/powerpc-750.c: Regenerate.
1848 * features/rs6000/powerpc-860.c: Regenerate.
1849 * features/rs6000/powerpc-altivec32.c: Regenerate.
1850 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1851 * features/rs6000/powerpc-altivec64.c: Regenerate.
1852 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1853 * features/rs6000/powerpc-e500.c: Regenerate.
1854 * features/rs6000/powerpc-e500l.c: Regenerate.
1855 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1856 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1857 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1858 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1859 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1860 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1861 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1862 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1863 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1864 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1865 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1866 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1867 * features/rs6000/powerpc-vsx32.c: Regenerate.
1868 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1869 * features/rs6000/powerpc-vsx64.c: Regenerate.
1870 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1871 * features/rs6000/rs6000.c: Regenerate.
1872 * features/rx.c: Regenerate.
1873 * features/s390-gs-linux64.c: Regenerate.
1874 * features/s390-linux32.c: Regenerate.
1875 * features/s390-linux32v1.c: Regenerate.
1876 * features/s390-linux32v2.c: Regenerate.
1877 * features/s390-linux64.c: Regenerate.
1878 * features/s390-linux64v1.c: Regenerate.
1879 * features/s390-linux64v2.c: Regenerate.
1880 * features/s390-te-linux64.c: Regenerate.
1881 * features/s390-tevx-linux64.c: Regenerate.
1882 * features/s390-vx-linux64.c: Regenerate.
1883 * features/s390x-gs-linux64.c: Regenerate.
1884 * features/s390x-linux64.c: Regenerate.
1885 * features/s390x-linux64v1.c: Regenerate.
1886 * features/s390x-linux64v2.c: Regenerate.
1887 * features/s390x-te-linux64.c: Regenerate.
1888 * features/s390x-tevx-linux64.c: Regenerate.
1889 * features/s390x-vx-linux64.c: Regenerate.
1890 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1891 from allocate_target_description.
1892 * target-descriptions.c (allocate_target_description): Update
1893 return type.
1894 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1895 allocate_target_description.
1896
485c47e5
TT
18972020-10-07 Tom Tromey <tromey@adacore.com>
1898
1899 * unittests/search-memory-selftests.c: New file.
1900 * Makefile.in (SELFTESTS_SRCS): Add
1901 unittests/search-memory-selftests.c.
1902
3a135a91
TT
19032020-10-07 Tom Tromey <tromey@adacore.com>
1904
1905 PR gdb/16930:
1906 * findcmd.c (_initialize_mem_search): Mention that the range is
1907 inclusive.
1908
4a72de73
TT
19092020-10-07 Tom Tromey <tromey@adacore.com>
1910
1911 * target.h (simple_search_memory): Don't declare.
1912 * target.c (simple_search_memory): Move to gdbsupport.
1913 (default_search_memory): Update.
1914 * remote.c (remote_target::search_memory): Update.
1915
a038ffd8
SM
19162020-10-07 Simon Marchi <simon.marchi@efficios.com>
1917
1918 * Makefile.in (COMPILE): Add CXXFLAGS.
1919 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1920 (check-headers): Add CXXFLAGS.
1921
cc463201
AK
19222020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1923
1924 * arc-linux-tdep.h: New file.
1925 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1926 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1927 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1928 arc_linux_gregset, arc_linux_v2_regset,
1929 arc_linux_iterate_over_regset_sections,
1930 arc_linux_core_read_description): Implement.
1931 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1932 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1933 (arc_gdbarch_features_create): Add.
1934 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1935
e4bd363f
SV
19362020-10-07 Shahab Vahedi <shahab@synopsys.com>
1937
1938 * arch/arc.h: Rename "arc_gdbarch_features" to
1939 "arc_arch_features".
1940 * arc-tdep.h: Likewise.
1941 * arc-tdep.c: Likewise.
1942
b68bef99
TBA
19432020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1944
1945 * infcmd.c (attach_command): Remove the redundant call to
1946 `clear_proceed_status`.
1947
4641551a
KR
19482020-10-07 Kamil Rytarowski <n54@gmx.com>
1949
1950 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1951
91e5e8db
KR
19522020-10-07 Kamil Rytarowski <n54@gmx.com>
1953
1954 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1955 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1956 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1957
64c03bdb
SM
19582020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1959
1960 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1961 (_initialize_break_catch_sig): Don't allocate array.
1962
31a8f60f
AB
19632020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1964
1965 * symtab.c (find_pc_line): Return unmapped addresses when the
1966 requested address is also unmapped.
1967
9e6dbd8b
SM
19682020-10-05 Simon Marchi <simon.marchi@efficios.com>
1969
1970 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1971 tui/tui-out.h.
1972
a1d217e8
SM
19732020-10-05 Simon Marchi <simon.marchi@efficios.com>
1974
1975 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1976 type::is_vector instead of TYPE_VECTOR.
1977
7d144117
SM
19782020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1979
1980 * auto-load.c (auto_load_objfile_script_1): Don't use
1981 debugfile_holder as temporary variable when stripping drive
1982 letter.
1983
cd096ec8
HD
19842020-10-05 Hannes Domani <ssbssa@yahoo.de>
1985
1986 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1987 Add TYPE_CODE_COMPLEX.
1988 (amd64_windows_return_value): Fix types returned via XMM0.
1989
b58e7f72
AH
19902020-10-05 Alan Hayward <alan.hayward@arm.com>
1991
1992 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1993 AArch64/ARM maintainers.
1994
8d378f27
SM
19952020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1996
1997 * NEWS: Mention set/show debug event-loop.
1998
d5519913
TT
19992020-10-02 Tom Tromey <tromey@adacore.com>
2000
2001 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2002 REG_EXTENDED.
2003
18b67edc
SM
20042020-10-02 Simon Marchi <simon.marchi@efficios.com>
2005
2006 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2007 * procfs.c (procfs_inferior_created): Remove.
2008 (_initialize_procfs): Don't register procfs_inferior_created.
2009
6b01403b
SM
20102020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2011
2012 * async-event.c (invoke_async_signal_handlers): Add debug
2013 print.
2014 (check_async_event_handlers): Likewise.
2015 * event-top.c (show_debug_event_loop): New function.
2016 (_initialize_event_top): Register "set debug event-loop"
2017 setting.
2018
ba988419
SM
20192020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2020
2021 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2022 * debug.h: Remove.
2023 * infrun.c: Include gdbsupport/common-debug.h.
2024 * linux-nat.c: Likewise.
2025
db20ebdf
SM
20262020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2027
2028 * async-event.h (create_async_signal_handler): Add name
2029 parameter.
2030 (create_async_event_handler): Likewise.
2031 * async-event.c (struct async_signal_handler) <name>: New field.
2032 (struct async_event_handler) <name>: New field.
2033 (create_async_signal_handler): Assign name.
2034 (create_async_event_handler): Assign name.
2035 * event-top.c (async_init_signals): Pass name when creating
2036 handler.
2037 * infrun.c (_initialize_infrun): Likewise.
2038 * record-btrace.c (record_btrace_push_target): Likewise.
2039 * record-full.c (record_full_open): Likewise.
2040 * remote-notif.c (remote_notif_state_allocate): Likewise.
2041 * remote.c (remote_target::open_1): Likewise.
2042 * tui/tui-win.c (tui_initialize_win): Likewise.
2043
2554f6f5
SM
20442020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2045
2046 * async-event.c (initialize_async_signal_handlers): Pass name to
2047 add_file_handler
2048 * event-top.c (ui_register_input_event_handler): Likewise.
2049 * linux-nat.c (linux_nat_target::async): Likewise.
2050 * run-on-main-thread.c (_initialize_run_on_main_thread):
2051 Likewise
2052 * ser-base.c (reschedule): Likewise.
2053 (ser_base_async): Likewise.
2054 * tui/tui-io.c: Likewise.
2055 * top.h (struct ui) <num>: New field.
2056 * top.c (highest_ui_num): New variable.
2057 (ui::ui): Initialize num.
2058
a7aba266
SM
20592020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2060
2061 * observable.h <inferior_created>: Remove parameters. Update all
2062 listeners.
2063 * inferior.h (post_create_inferior): Remove target parameter.
2064 Update all callers.
2065
048fde1e 20662020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2067
2068 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2069 and DW_MACRO_undef_strx.
2070 (dwarf_decode_macros): Likewise
2071 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2072 which is the value of DW_AT_str_offsets_base.
2073 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2074 str_offsets_base.
2075
064280be
KR
20762020-10-01 Kamil Rytarowski <n54@gmx.com>
2077
2078 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2079
6ff33035
KR
20802020-10-01 Kamil Rytarowski <n54@gmx.com>
2081
2082 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2083 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2084
1eb6eb79
KR
20852020-10-01 Kamil Rytarowski <n54@gmx.com>
2086
2087 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2088
95eb9e54
TV
20892020-09-30 Tom de Vries <tdevries@suse.de>
2090
2091 PR symtab/26683
2092 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2093
cae21f8e
TT
20942020-09-30 Tom Tromey <tromey@adacore.com>
2095
2096 * dwarf2/read.c (handle_variant): Use constant_value.
2097
529908cb
TT
20982020-09-29 Tom Tromey <tom@tromey.com>
2099
2100 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2101 (read_file_scope, dwarf2_get_pc_bounds)
2102 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2103 (read_structure_type, handle_struct_member_die)
2104 (read_enumeration_type, read_array_type, read_set_type)
2105 (read_tag_pointer_type, read_tag_reference_type)
2106 (read_subroutine_type, read_base_type, read_subrange_type)
2107 (read_full_die_1, partial_die_info::read)
2108 (partial_die_info::read, by, new_symbol)
2109 (dwarf2_const_value_data, dwarf2_const_value_attr)
2110 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2111 (prepare_one_comp_unit): Update.
2112 * dwarf2/attribute.h (DW_UNSND): Remove.
2113
c45bc3f8
TT
21142020-09-29 Tom Tromey <tom@tromey.com>
2115
2116 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2117 (read_subroutine_type, partial_die_info::read)
2118 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2119 (dwarf2_add_member_fn): Update.
2120 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2121 * dwarf2/attribute.c (attribute::as_boolean): New method.
2122
23dca5c3
TT
21232020-09-29 Tom Tromey <tom@tromey.com>
2124
2125 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2126 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2127 method.
2128 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2129
52c14d11
TT
21302020-09-29 Tom Tromey <tom@tromey.com>
2131
2132 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2133 the attribute's form.
2134
e8e5c158
TT
21352020-09-29 Tom Tromey <tom@tromey.com>
2136
2137 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2138 (dwarf2_add_member_fn): Update.
2139 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2140 * dwarf2/attribute.c (attribute::defaulted): New method, from
2141 is_valid_DW_AT_defaulted.
2142
d4df075e
TT
21432020-09-29 Tom Tromey <tom@tromey.com>
2144
2145 * dwarf2/read.c (dw2_get_file_names_reader)
2146 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2147 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2148 (dwarf2_symbol_mark_computed): Use as_unsigned.
2149 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2150 method.
2151 <form_is_section_offset>: Update comment.
2152
bf23a268
TT
21532020-09-29 Tom Tromey <tom@tromey.com>
2154
2155 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2156 dwarf2_default_access_attribute. Look up attribute.
2157 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2158 Update.
2159
7a5f294d
TT
21602020-09-29 Tom Tromey <tom@tromey.com>
2161
2162 * dwarf2/read.c (skip_one_die): Update.
2163 (read_full_die_1): Change how reprocessing is done.
2164 (partial_die_info::read): Update.
2165 (read_attribute_value): Remove need_reprocess parameter.
2166 (read_attribute): Likewise.
2167 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2168 New method.
2169
36d378cf
TT
21702020-09-29 Tom Tromey <tom@tromey.com>
2171
2172 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2173 (dwarf2_const_value_attr, dump_die_shallow)
2174 (dwarf2_fetch_constant_bytes): Update.
2175 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2176 comment.
2177 <set_address>: New method.
2178 (DW_ADDR): Remove.
2179 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2180 (attribute::as_string, attribute::as_address): Add assert.
2181
fe56917a
TT
21822020-09-29 Tom Tromey <tom@tromey.com>
2183
2184 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2185 (read_attribute_reprocess, read_attribute_value): Update.
2186 (read_attribute): Clear requires_reprocessing.
2187 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2188 form_requires_reprocessing>: New methods.
2189 <string_init>: Clear requires_reprocessing.
2190 <set_unsigned_reprocess>: New method.
2191 <name>: Shrink by one bit.
2192 <requires_reprocessing>: New member.
2193 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2194 method.
2195
414ad644
TT
21962020-09-29 Tom Tromey <tom@tromey.com>
2197
2198 * dwarf2/read.c (read_attribute_value): Update.
2199 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2200 set_unsigned>: New methods.
2201 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2202
1bc397c5
TT
22032020-09-29 Tom Tromey <tom@tromey.com>
2204
2205 * dwarf2/read.c (get_alignment, read_array_order)
2206 (read_attribute_value, dwarf2_const_value_attr)
2207 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2208 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2209 New methods.
2210 (DW_SND): Remove.
2211
630ed6b9
TT
22122020-09-29 Tom Tromey <tom@tromey.com>
2213
2214 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2215 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2216 Update.
2217 * dwarf2/attribute.h (struct attribute) <as_signature,
2218 set_signature>: New methods.
2219 (DW_SIGNATURE): Remove.
2220
9d2246fc
TT
22212020-09-29 Tom Tromey <tom@tromey.com>
2222
2223 * dwarf2/read.c (read_call_site_scope)
2224 (handle_data_member_location, dwarf2_add_member_fn)
2225 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2226 (partial_die_info::read, read_attribute_value)
2227 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2228 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2229 (dwarf2_symbol_mark_computed): Update.
2230 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2231 methods.
2232 (DW_BLOCK): Remove.
2233 * dwarf2/attribute.c (attribute::form_is_block): Add
2234 DW_FORM_data16.
2235
c6481205
TT
22362020-09-29 Tom Tromey <tom@tromey.com>
2237
2238 * dwarf2/read.c (read_cutu_die_from_dwo)
2239 (read_attribute_reprocess, read_attribute_value, read_attribute)
2240 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2241 (dwarf2_fetch_constant_bytes): Update.
2242 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2243 <set_string_noncanonical, set_string_canonical>: New methods.
2244 <string_is_canonical>: Update comment.
2245 <canonical_string_p>: Add assert.
2246 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2247 * dwarf2/attribute.c (attribute::form_is_string): New method.
2248 (attribute::string): Use it.
2249
3b64bf15
TT
22502020-09-29 Tom Tromey <tom@tromey.com>
2251
2252 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2253 (dump_die_shallow): Use canonical_string_p.
2254 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2255 method.
2256
2c830f54
TT
22572020-09-29 Tom Tromey <tom@tromey.com>
2258
2259 * dwarf2/read.c (partial_die_info::read)
2260 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2261 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2262 attribute::as_string.
2263
6c412691
TT
22642020-09-29 Tom Tromey <tom@tromey.com>
2265
2266 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2267 DW_ADDR.
2268 (attribute::string): Don't use DW_STRING.
2269 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2270 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2271
95f982e5
TT
22722020-09-29 Tom Tromey <tom@tromey.com>
2273
2274 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2275 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2276 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2277 * dwarf2/attribute.h (struct attribute): Rename methods.
2278 * dwarf2/attribute.c (attribute::as_address): Rename from
2279 value_as_address.
2280 (attribute::as_string): Rename from value_as_string.
2281
f800b00e
TT
22822020-09-29 Tom Tromey <tom@tromey.com>
2283
2284 * dwarf2/read.c (partial_die_info::read) <case
2285 DW_AT_linkage_name>: Use value_as_string.
2286 (dwarf2_string_attr): Use value_as_string.
2287 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2288 method.
2289 * dwarf2/attribute.c (attribute::value_as_string): New method.
2290
de38d64a
PA
22912020-09-29 Pedro Alves <pedro@palves.net>
2292
2293 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2294 defined before using '#pragma GCC diagnostic' instead of checking
2295 __clang__.
2296
9aed480c
TT
22972020-09-28 Tom Tromey <tom@tromey.com>
2298
2299 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2300 (handle_signal_stop): Update.
2301 * procfs.c (procfs_target::insert_watchpoint): Update.
2302 * target.h (target_have_steppable_watchpoint): Now a function.
2303
8a3ecb79
TT
23042020-09-28 Tom Tromey <tom@tromey.com>
2305
2306 * infrun.c (set_schedlock_func): Update.
2307 * target.h (target_can_lock_scheduler): Now a function.
2308
55f6301a
TT
23092020-09-28 Tom Tromey <tom@tromey.com>
2310
2311 * inferior.h (class inferior) <has_execution>: Update.
2312 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2313 * valops.c (find_function_in_inferior)
2314 (value_allocate_space_in_inferior): Update.
2315 * top.c (kill_or_detach): Update.
2316 * target.c (target_preopen, set_target_permissions): Update.
2317 (target_has_execution_current): Remove.
2318 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2319 Update.
2320 * solib.c (update_solib_list, reload_shared_libraries): Update.
2321 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2322 * solib-dsbt.c (enable_break): Update.
2323 * score-tdep.c (score7_fetch_inst): Update.
2324 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2325 Update.
2326 * remote.c (remote_target::start_remote)
2327 (remote_target::remote_check_symbols, remote_target::open_1)
2328 (remote_target::remote_detach_1, remote_target::verify_memory)
2329 (remote_target::xfer_partial, remote_target::read_description)
2330 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2331 * record-full.c (record_full_open_1): Update.
2332 * record-btrace.c (record_btrace_target_open): Update.
2333 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2334 (value_nsstring): Update.
2335 * linux-thread-db.c (add_thread_db_info)
2336 (thread_db_find_new_threads_silently, check_thread_db_callback)
2337 (try_thread_db_load_1, record_thread): Update.
2338 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2339 Update.
2340 * linux-fork.c (checkpoint_command): Update.
2341 * infrun.c (set_non_stop, set_observer_mode)
2342 (check_multi_target_resumption, for_each_just_stopped_thread)
2343 (maybe_remove_breakpoints, normal_stop)
2344 (class infcall_suspend_state): Update.
2345 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2346 (info_program_command, attach_command): Update.
2347 * infcall.c (call_function_by_hand_dummy): Update.
2348 * inf-loop.c (inferior_event_handler): Update.
2349 * gcore.c (gcore_command, derive_heap_segment): Update.
2350 * exec.c (exec_file_command): Update.
2351 * eval.c (evaluate_subexp): Update.
2352 * compile/compile.c (compile_to_object): Update.
2353 * cli/cli-dump.c (restore_command): Update.
2354 * breakpoint.c (update_watchpoint)
2355 (update_inserted_breakpoint_locations)
2356 (insert_breakpoint_locations, get_bpstat_thread): Update.
2357 * target.h (target_has_execution): Remove macro.
2358 (target_has_execution_current): Don't declare.
2359 (target_has_execution): Rename from target_has_execution_1. Add
2360 argument default.
2361
05374cfd
TT
23622020-09-28 Tom Tromey <tom@tromey.com>
2363
2364 * mi/mi-main.c (exec_reverse_continue)
2365 (mi_cmd_list_target_features): Update.
2366 * infrun.c (set_exec_direction_func): Update.
2367 * target.c (default_execution_direction): Update.
2368 * reverse.c (exec_reverse_once): Update.
2369 * target.h (target_can_execute_reverse): Now a function.
2370
9dccd06e
TT
23712020-09-28 Tom Tromey <tom@tromey.com>
2372
2373 * tui/tui-regs.c (tui_get_register)
2374 (tui_data_window::show_registers): Update.
2375 * thread.c (scoped_restore_current_thread::restore)
2376 (scoped_restore_current_thread::scoped_restore_current_thread):
2377 Update.
2378 * regcache-dump.c (regcache_print): Update.
2379 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2380 Update.
2381 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2382 * mep-tdep.c (current_me_module, current_options): Update.
2383 * linux-thread-db.c (thread_db_load): Update.
2384 * infcmd.c (registers_info, info_vector_command)
2385 (info_float_command): Update.
2386 * ia64-tdep.c (ia64_frame_prev_register)
2387 (ia64_sigtramp_frame_prev_register): Update.
2388 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2389 * gcore.c (derive_stack_segment): Update.
2390 * frame.c (get_current_frame, has_stack_frames): Update.
2391 * findvar.c (language_defn::read_var_value): Update.
2392 * arm-tdep.c (arm_pc_is_thumb): Update.
2393 * target.c (target_has_registers): Rename from
2394 target_has_registers_1.
2395 * target.h (target_has_registers): Remove macro.
2396 (target_has_registers): Rename from target_has_registers_1.
2397
841de120
TT
23982020-09-28 Tom Tromey <tom@tromey.com>
2399
2400 * windows-tdep.c (tlb_make_value): Update.
2401 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2402 * thread.c (scoped_restore_current_thread::restore)
2403 (scoped_restore_current_thread::scoped_restore_current_thread)
2404 (thread_command): Update.
2405 * stack.c (backtrace_command_1, frame_apply_level_command)
2406 (frame_apply_all_command, frame_apply_command): Update.
2407 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2408 Update.
2409 * gcore.c (derive_stack_segment): Update.
2410 * frame.c (get_current_frame, has_stack_frames): Update.
2411 * auxv.c (info_auxv_command): Update.
2412 * ada-tasks.c (ada_build_task_list): Update.
2413 * target.c (target_has_stack): Rename from target_has_stack_1.
2414 * target.h (target_has_stack): Remove macro.
2415 (target_has_stack): Rename from target_has_stack_1.
2416
a739972c
TT
24172020-09-28 Tom Tromey <tom@tromey.com>
2418
2419 * target.c (target_has_memory): Rename from target_has_memory_1.
2420 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2421 * thread.c (scoped_restore_current_thread::restore)
2422 (scoped_restore_current_thread::scoped_restore_current_thread):
2423 Update.
2424 * frame.c (get_current_frame, has_stack_frames): Update.
2425 * target.h (target_has_memory): Remove macro.
2426 (target_has_memory): Rename from target_has_memory_1.
2427
5b8a4776
TT
24282020-09-28 Tom Tromey <tom@tromey.com>
2429
2430 * target.c (target_has_all_memory_1): Remove.
2431 * target.h (target_has_all_memory): Remove define.
2432 (target_has_all_memory_1): Don't declare.
2433
bd356ec6
SM
24342020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2435
2436 * ser-base.c: Adjust comments formatting.
2437
2c72d5e5
TT
24382020-09-27 Tom Tromey <tom@tromey.com>
2439
2440 PR tui/25342:
2441 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2442
35a98237
TT
24432020-09-27 Tom Tromey <tom@tromey.com>
2444
2445 PR tui/25342:
2446 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2447
9e820dec
TT
24482020-09-27 Tom Tromey <tom@tromey.com>
2449
2450 * unittests/tui-selftests.c: Update.
2451 * tui/tui-winsource.h (struct tui_source_window_base)
2452 <extra_margin, show_line_number, refresh_pad>: New methods.
2453 <m_max_length, m_pad>: New members.
2454 (tui_copy_source_line): Update.
2455 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2456 first_col, line_width, ndigits parameters. Add length.
2457 (tui_source_window_base::show_source_line): Write to pad. Line
2458 number now 0-based.
2459 (tui_source_window_base::refresh_pad): New method.
2460 (tui_source_window_base::show_source_content): Write to pad. Call
2461 refresh_pad.
2462 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2463 not refill.
2464 (tui_source_window_base::update_exec_info): Call
2465 show_line_number.
2466 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2467 method.
2468 <m_digits>: New member.
2469 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2470 and m_max_length.
2471 (tui_source_window::show_line_number): New method.
2472 * tui/tui-io.h (tui_puts): Fix comment.
2473 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2474 m_max_length.
2475
c15c15c8
TT
24762020-09-27 Tom Tromey <tom@tromey.com>
2477
2478 * tui/tui-winsource.c
2479 (tui_source_window_base::set_is_exec_point_at): Don't call
2480 show_source_line.
2481
149830c1
TT
24822020-09-27 Tom Tromey <tom@tromey.com>
2483
2484 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2485 method.
2486 <erase>: Update.
2487 <cursor_x, cursor_y>: Remove.
2488 <m_inner_window>: New member.
2489 (tui_py_window::rerender): Create inner window.
2490 (tui_py_window::output): Write to inner window.
2491
8f9929bb
GR
24922020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2493
2494 PR python/26586
2495 * cli/cli-script.c (execute_control_commands): don't set
2496 instream to nullptr here as this breaks the from_tty argument
2497 to gdb.execute in Python.
2498 (execute_user_command): set instream to nullptr here instead.
2499
956bdb59
SM
25002020-09-25 Simon Marchi <simon.marchi@efficios.com>
2501
2502 * infrun.h (infrun_debug_printf): Fix formatting.
2503 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2504
3b93626b
SJ
25052020-09-25 Saagar Jha <saagar@saagarjha.com>
2506
2507 * compile/compile-object-load.h (struct munmap_list): Add
2508 explicitly-defined move constructor.
2509
b551a89f
TT
25102020-09-24 Tom Tromey <tromey@adacore.com>
2511
2512 PR tui/26638:
2513 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2514 method.
2515 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2516 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2517 (tui_prev_win): Rewrite.
2518
99bb393f
HD
25192020-09-23 Hannes Domani <ssbssa@yahoo.de>
2520
2521 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2522 in WOW64 processes as SIGINT.
2523 * nat/windows-nat.h: Make wow64_process a shared variable.
2524 * windows-nat.c: Remove static wow64_process variable.
2525
20a5fcbd
TT
25262020-09-23 Tom Tromey <tom@tromey.com>
2527
2528 PR symtab/25470:
2529 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2530 offset and bit size.
2531 * printcmd.c (print_scalar_formatted): Handle zero-length
2532 integer.
2533 (print_scalar_formatted): Use bit_size_differs_p.
2534 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2535 constant.
2536 (union type_specific): <int_stuff>: New member.
2537 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2538 methods.
2539 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2540 TYPE_SPECIFIC_FIELD.
2541 (recursive_dump_type, copy_type_recursive): Update.
2542 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2543 DW_AT_data_bit_offset.
2544
bac51ab7
TT
25452020-09-23 Tom Tromey <tom@tromey.com>
2546
2547 * utils.h (class gdb_argv): Add move operators.
2548 <append>: New methods.
2549 * compile/compile.c (build_argc_argv): Remove.
2550 (compile_args_argc): Remove.
2551 (compile_args_argv): Change type.
2552 (set_compile_args): Simplify.
2553 (append_args): Remove.
2554 (filter_args): Remove argcp parameter.
2555 (get_args): Return gdb_argv. Simplify.
2556 (compile_to_object): Update.
2557
92677124
TT
25582020-09-23 Tom Tromey <tom@tromey.com>
2559
2560 * compile/compile-object-run.c (do_module_cleanup)
2561 <~do_module_cleanup> :Remove.
2562 (do_module_cleanup): Update.
2563 * compile/compile-object-load.h (struct munmap_list): Add move
2564 assignment operator.
2565 <source_file>: Now a std::string.
2566 <munmap_list>: Rename. No longer a pointer.
2567 * compile/compile-object-load.c (struct setup_sections_data): Add
2568 constructor.
2569 <setup_one_section>: Declare.
2570 <munmap_list>: Move earlier.
2571 <m_bfd>: New member.
2572 <m_last_size, m_last_section_first, m_last_prot,
2573 m_last_max_alignment>: Rename, add initializers where needed.
2574 (setup_sections_data::setup_one_section): Rename from
2575 setup_sections. Update.
2576 (compile_object_load): Update. Don't use bfd_map_over_sections.
2577
e616f60a
TT
25782020-09-23 Tom Tromey <tom@tromey.com>
2579
2580 * compile/compile-object-run.c (struct do_module_cleanup): Add
2581 parameters to constructor. Update destructor.
2582 <source_file, scope, scope_data, out_value_type, out_value_addr,
2583 munmap_list_head, objfile_name_string>: Remove.
2584 <module>: New member.
2585 (do_module_cleanup): Update.
2586 (compile_object_run): Update.
2587
e947a848
TT
25882020-09-23 Tom Tromey <tom@tromey.com>
2589
2590 * compile/compile.c (eval_compile_command): Update.
2591 * compile/compile-object-run.h (compile_object_run): Take a
2592 compile_module_up.
2593 * compile/compile-object-run.c (compile_object_run): Take a
2594 compile_module_up.
2595 * compile/compile-object-load.h (struct compile_module): Add
2596 constructor, destructor.
2597 (compile_module_up): New typedef.
2598 (compile_object_load): Return compile_object_up.
2599 * compile/compile-object-load.c (compile_object_load): Return
2600 compile_module_up.
2601
0dbf6ee6
TT
26022020-09-23 Tom Tromey <tom@tromey.com>
2603
2604 * compile/compile-object-run.c (struct do_module_cleanup): Add
2605 constructor, destructor.
2606 <objfile_name_string>: Don't use struct hack.
2607 (do_module_cleanup): Use delete.
2608 (compile_object_run): Use new.
2609
ebe824f5
TT
26102020-09-23 Tom Tromey <tom@tromey.com>
2611
2612 * compile/compile-cplus-types.c
2613 (compile_cplus_convert_struct_or_union): Use std::vector.
2614 (compile_cplus_convert_func): Likewise.
2615 * compile/compile-c-types.c (convert_func): Use std::vector.
2616
5dd918d9
TT
26172020-09-21 Tom Tromey <tromey@adacore.com>
2618
2619 * sparc-tdep.c (sparc32_skip_prologue): Use
2620 skip_prologue_using_sal.
2621
5486c517
TT
26222020-09-19 Tom Tromey <tom@tromey.com>
2623
2624 * symfile.c (add_section_size_callback): Remove.
2625 (load_one_section): Rename from load_section_callback. Change
2626 parameters.
2627 (generic_load): Use foreach.
2628
8a6bb1d1
TT
26292020-09-19 Tom Tromey <tom@tromey.com>
2630
2631 * exec.c (add_to_section_table): Remove.
2632 (build_section_table): Use foreach.
2633
08f93a1a
TT
26342020-09-19 Tom Tromey <tom@tromey.com>
2635
2636 * elfread.c (elf_locate_sections): Change parameters.
2637 (elf_symfile_read): Use foreach.
2638
03cd72b8
TT
26392020-09-19 Tom Tromey <tom@tromey.com>
2640
2641 * cli/cli-dump.c (struct callback_data): Remove.
2642 (restore_one_section): Rename from restore_section_callback.
2643 Change parameters.
2644 (restore_binary_file): Change parameters.
2645 (restore_command): Use foreach.
2646
f4f2b85f
TT
26472020-09-19 Tom Tromey <tom@tromey.com>
2648
2649 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2650 (gcore_copy_callback): Likewise.
2651 (gcore_memory_sections): Use foreach.
2652
b35c1d1c
TT
26532020-09-19 Tom Tromey <tom@tromey.com>
2654
2655 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2656 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2657 parameters.
2658 (generic_elf_osabi_sniffer): Use foreach.
2659 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2660 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2661
5bb6e9dd
TT
26622020-09-19 Tom Tromey <tom@tromey.com>
2663
2664 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2665 (dwarf2_get_dwz_file): Use foreach.
2666 (dwarf2_locate_dwo_sections): Change parameters.
2667 (open_and_init_dwo_file): Use foreach.
2668 (dwarf2_locate_common_dwp_sections): Change parameters.
2669 (open_and_init_dwp_file): Use foreach.
2670
ad7277da
TT
26712020-09-19 Tom Tromey <tom@tromey.com>
2672
2673 * symfile.h: (find_lowest_section): Don't declare.
2674 * symfile.c (find_lowest_section): Now static. Change
2675 parameters.
2676 (struct place_section_arg): Remove.
2677 (place_section): Change parameters.
2678 (addr_info_make_relative): Use foreach.
2679 (symfile_dummy_outputs): Remove.
2680 (default_symfile_relocate): Use foreach.
2681
cb814f2e
TT
26822020-09-19 Tom Tromey <tom@tromey.com>
2683
2684 * objfiles.c (add_to_objfile_sections): Rename from
2685 add_to_objfile_sections_full.
2686 (add_to_objfile_sections): Remove.
2687 (build_objfile_section_table): Use foreach.
2688
3cabfd26
TT
26892020-09-19 Tom Tromey <tom@tromey.com>
2690
2691 * stap-probe.c (get_stap_base_address_1): Remove.
2692 (get_stap_base_address): Use foreach.
2693
1ce51eb5
TT
26942020-09-19 Tom Tromey <tom@tromey.com>
2695
2696 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2697 parameters.
2698 (gdb_bfd_close_or_warn): Use foreach.
2699
a190fabb
TT
27002020-09-19 Tom Tromey <tom@tromey.com>
2701
2702 * corelow.c (add_to_thread_list): Change parameters.
2703 (core_target_open): Use foreach.
2704
cafb0d81
TT
27052020-09-19 Tom Tromey <tom@tromey.com>
2706
2707 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2708 existing function.
2709
c8d5abea
AB
27102020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2711
2712 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2713 for arrays.
2714
6d816919
AB
27152020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2716
2717 * eval.c: Remove 'f-lang.h' include.
2718 (value_f90_subarray): Moved to f-lang.c.
2719 (eval_call): Renamed to...
2720 (evaluate_subexp_do_call): ...this, is no longer static, header
2721 comment moved into header file.
2722 (evaluate_funcall): Update call to eval_call.
2723 (skip_undetermined_arglist): Moved to f-lang.c.
2724 (fortran_value_subarray): Likewise.
2725 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2726 moved to evaluate_subexp_f.
2727 (calc_f77_array_dims): Moved to f-lang.c
2728 * expprint.c (print_subexp_funcall): New function.
2729 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2730 moved to print_subexp_f, OP_FUNCALL uses new function.
2731 (dump_subexp_body_funcall): New function.
2732 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2733 moved to dump_subexp_f, OP_FUNCALL uses new function.
2734 * expression.h (evaluate_subexp_do_call): Declare.
2735 * f-lang.c (value_f90_subarray): Moved from eval.c.
2736 (skip_undetermined_arglist): Likewise.
2737 (calc_f77_array_dims): Likewise.
2738 (fortran_value_subarray): Likewise.
2739 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2740 (operator_length_f): Likewise.
2741 (print_subexp_f): Likewise.
2742 (dump_subexp_body_f): Likewise.
2743 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2744 declaration of this operation to here.
2745 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2746 support moved to operator_length_f.
2747 * parser-defs.h (dump_subexp_body_funcall): Declare.
2748 (print_subexp_funcall): Declare.
2749 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2750 fortran-operator.def.
2751
8c37706a
AB
27522020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2753
2754 * eval.c (fortran_value_subarray): New function, content is taken
2755 from...
2756 (evaluate_subexp_standard): ...here, in two places. Now arrays
2757 and strings both call the new function.
2758 (calc_f77_array_dims): Add header comment, handle strings.
2759
14f9473c
VC
27602020-09-18 Victor Collod <vcollod@nvidia.com>
2761
2762 PR gdb/26635
2763 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2764 (i386_analyze_prologue): Call i386_skip_endbr.
2765
b60cea74
TT
27662020-09-18 Tom Tromey <tromey@adacore.com>
2767
2768 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2769 (windows_nat_target::wait): Update.
2770 * target/wait.h (enum target_wait_flag): New. Use
2771 DEF_ENUM_FLAGS_TYPE.
2772 * target/target.h (target_wait): Change type of options.
2773 * target.h (target_options_to_string, default_target_wait):
2774 Update.
2775 (struct target_ops) <wait>: Change type of options.
2776 * target.c (target_wait, default_target_wait, do_option): Change
2777 type of "options".
2778 (target_options_to_string): Likewise.
2779 * target-delegates.c: Rebuild.
2780 * target-debug.h (target_debug_print_target_wait_flags): Rename
2781 from target_debug_print_options.
2782 * sol-thread.c (class sol_thread_target) <wait>: Update.
2783 (sol_thread_target::wait): Update.
2784 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2785 (rs6000_nat_target::wait): Update.
2786 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2787 Update.
2788 (remote_target::wait_ns, remote_target::wait_as): Change type of
2789 "options".
2790 (remote_target::wait): Update.
2791 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2792 (gdbsim_target::wait): Update.
2793 * record-full.c (class record_full_base_target) <wait>: Update.
2794 (record_full_wait_1): Change type of "options".
2795 (record_full_base_target::wait): Update.
2796 * record-btrace.c (class record_btrace_target) <wait>: Update.
2797 (record_btrace_target::wait): Update.
2798 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2799 Update.
2800 (ravenscar_thread_target::wait): Update.
2801 * procfs.c (class procfs_target) <wait>: Update.
2802 (procfs_target::wait): Update.
2803 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2804 * obsd-nat.c (obsd_nat_target::wait): Update.
2805 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2806 (nto_procfs_target::wait): Update.
2807 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2808 * nbsd-nat.c (nbsd_wait): Change type of "options".
2809 (nbsd_nat_target::wait): Update.
2810 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2811 (thread_db_target::wait): Update.
2812 * linux-nat.h (class linux_nat_target) <wait>: Update.
2813 * linux-nat.c (linux_nat_target::wait): Update.
2814 (linux_nat_wait_1): Update.
2815 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2816 "options".
2817 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2818 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2819 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2820 (go32_nat_target::wait): Update.
2821 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2822 * gnu-nat.c (gnu_nat_target::wait): Update.
2823 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2824 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2825 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2826 * darwin-nat.c (darwin_nat_target::wait): Update.
2827 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2828 (bsd_uthread_target::wait): Update.
2829 * aix-thread.c (class aix_thread_target) <wait>: Update.
2830 (aix_thread_target::wait): Update.
2831
0295dde6
AB
28322020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2833
2834 * compile/compile-object-run.c (create_copied_type_recursive): New
2835 function.
2836 (compile_object_run): Use new function.
2837
d3483b43
JT
28382020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2839
2840 * NEWS: Mention x86_64 Cygwin core file support.
2841
e7d612ad
JT
28422020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2843
2844 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2845 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2846
aff9d387
JT
28472020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2848
62a5151b
JT
2849 * windows-tdep.h: Add prototypes.
2850 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2851 (i386_windows_core_pid_to_str): Move and rename ...
2852 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2853 (windows_core_pid_to_str): ... and here.
2854 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2855
28562020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2857 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2858 (amd64_windows_init_abi_common): ... and register.
2859
7d155da3
JT
28602020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2861
2862 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2863 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2864
e8ef12b9
PA
28652020-09-18 Pedro Alves <pedro@palves.net>
2866
2867 PR gdb/26631
2868 * thread.c (thread_find_command): Switch inferior before calling
2869 target methods.
2870
c1e1314d
TT
28712020-09-17 Tom Tromey <tromey@adacore.com>
2872
2873 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2874 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2875 (tdesc_arch_data_up): New typedef.
2876 (tdesc_use_registers, tdesc_data_alloc): Update.
2877 (tdesc_data_cleanup): Don't declare.
2878 * target-descriptions.c (tdesc_data_alloc): Return a
2879 tdesc_arch_data_up.
2880 (tdesc_arch_data_deleter::operator()): Rename from
2881 tdesc_data_cleanup. Change argument type.
2882 (tdesc_use_registers): Change early_data to an rvalue reference.
2883 (tdesc_use_registers): Don't use delete.
2884 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2885 * s390-tdep.c (s390_gdbarch_init): Update.
2886 * rx-tdep.c (rx_gdbarch_init): Update.
2887 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2888 * riscv-tdep.c (riscv_gdbarch_init): Update.
2889 * or1k-tdep.c (or1k_gdbarch_init): Update.
2890 * nios2-tdep.c (nios2_gdbarch_init): Update.
2891 * nds32-tdep.c (nds32_gdbarch_init): Update.
2892 * mips-tdep.c (mips_gdbarch_init): Update.
2893 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2894 * m68k-tdep.c (m68k_gdbarch_init): Update.
2895 * i386-tdep.c (i386_gdbarch_init): Update.
2896 * arm-tdep.c (arm_gdbarch_init): Update.
2897 * arc-tdep.c (arc_tdesc_init): Update.
2898 (arc_gdbarch_init): Update.
2899 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2900
0363df3d
HD
29012020-09-17 Hannes Domani <ssbssa@yahoo.de>
2902
2903 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2904 for WOW64 processes.
2905
280a9412
TT
29062020-09-17 Tom Tromey <tom@tromey.com>
2907
2908 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2909
6108fd18
TT
29102020-09-17 Tom Tromey <tom@tromey.com>
2911
2912 * value.c (preserve_values): Update.
2913 * python/py-type.c (save_objfile_types): Update.
2914 * guile/scm-type.c (save_objfile_types): Update.
2915 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2916 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2917 * compile/compile-object-run.c (compile_object_run): Update.
2918
fa9b1164
TT
29192020-09-17 Tom Tromey <tom@tromey.com>
2920
2921 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2922 Remove.
2923 <m_table>: Now htab_up.
2924 * typeprint.c (typedef_hash_table::recursively_update)
2925 (typedef_hash_table::add_template_parameters)
2926 (typedef_hash_table::typedef_hash_table): Update.
2927 (typedef_hash_table::~typedef_hash_table): Remove.
2928 (typedef_hash_table::typedef_hash_table)
2929 (typedef_hash_table::find_global_typedef)
2930 (typedef_hash_table::find_typedef): Update.
2931
eb53f105
TT
29322020-09-17 Tom Tromey <tom@tromey.com>
2933
2934 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2935
7a8a5d47
TT
29362020-09-17 Tom Tromey <tom@tromey.com>
2937
2938 * linespec.c (class decode_compound_collector)
2939 <~decode_compound_collector>: Remove.
2940 <m_unique_syms>: Now htab_up.
2941 (decode_compound_collector::operator ()): Update.
2942 (class symtab_collector) <~symtab_collector>: Remove.
2943 <m_symtab_table>: Now htab_up.
2944 (symtab_collector::operator ()): Update.
2945
99032cfc
TT
29462020-09-17 Tom Tromey <tom@tromey.com>
2947
2948 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2949 (filename_seen_cache::clear): Update.
2950 (~filename_seen_cache): Remove.
2951 (filename_seen_cache::seen): Update.
2952 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2953 htab_up.
2954 <~filename_seen_cache>: Remove.
2955 <traverse>: Update.
2956
32580f6d
TT
29572020-09-17 Tom Tromey <tom@tromey.com>
2958
2959 * completer.c (completion_tracker::discard_completions)
2960 (completion_tracker::~completion_tracker)
2961 (completion_tracker::maybe_add_completion)
2962 (completion_tracker::remove_completion)
2963 (completion_tracker::recompute_lowest_common_denominator)
2964 (completion_tracker::build_completion_result): Update.
2965 * completer.h (class completion_tracker) <have_completions>:
2966 Update.
2967 <m_entries_hash>: Now htab_up.
2968
c1fb9836
TT
29692020-09-17 Tom Tromey <tom@tromey.com>
2970
2971 * breakpoint.c (ambiguous_names_p): Use htab_up.
2972
88f07206
TT
29732020-09-17 Tom Tromey <tom@tromey.com>
2974
2975 * auto-load.c (struct auto_load_pspace_info)
2976 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2977 <loaded_script_files, loaded_script_texts>: Change type to
2978 htab_up.
2979 (~auto_load_pspace_info) Remove.
2980 (init_loaded_scripts_info, maybe_add_script_file)
2981 (maybe_add_script_text, auto_load_info_scripts): Update.
2982
9519b2ee
TT
29832020-09-17 Tom Tromey <tromey@adacore.com>
2984
2985 * c-exp.y (name_obstack): Now static.
2986
d2cd4113
CC
29872020-09-17 Chungyi Chi <demonic@csie.io>
2988
2989 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2990
b650a282
SM
29912020-09-16 Simon Marchi <simon.marchi@efficios.com>
2992
2993 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2994 (add_solib_catchpoint): Likewise.
2995 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2996 to bool.
2997 (add_solib_catchpoint): Change int parameter/variable to bool.
2998 (catch_load_or_unload): Likewise.
2999 (init_catchpoint): Likewise.
3000 (create_fork_vfork_event_catchpoint): Likewise.
3001 (catch_fork_command_1): Likewise.
3002 (catch_exec_command_1): Likewise.
3003
4d0bcfcf
SM
30042020-09-16 Simon Marchi <simon.marchi@efficios.com>
3005
3006 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3007 Change instance_flags to m_instance_flags.
3008
fe830662
TT
30092020-09-16 Tom Tromey <tromey@adacore.com>
3010
3011 PR gdb/26598:
3012 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3013
fe5ddfc3
JB
30142020-09-16 John Baldwin <jhb@FreeBSD.org>
3015
3016 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3017 PL_FLAG_EXEC.
3018 (fbsd_nat_target::insert_exec_catchpoint)
3019 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3020 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3021 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3022
e911c666
JB
30232020-09-16 John Baldwin <jhb@FreeBSD.org>
3024
3025 * configure.ac: Remove check for kinfo_getvmmap().
3026 * configure, config.in: Regenerate.
3027 * fbsd-nat.c (fbsd_read_mapping): Remove
3028 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3029 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3030 kinfo_get_vmmap() are always present.
3031
1f17d372
JB
30322020-09-16 John Baldwin <jhb@FreeBSD.org>
3033
3034 * fbsd-nat.c: Always include support for
3035 TARGET_OBJECT_SIGNAL_INFO.
3036
bcb1da7f
JB
30372020-09-16 John Baldwin <jhb@FreeBSD.org>
3038
3039 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3040 sysctl and remove procfs fallback.
3041
5515f729
JB
30422020-09-16 John Baldwin <jhb@FreeBSD.org>
3043
3044 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3045 * fbsd-nat.h: Likewise.
3046
da1df1db
TBA
30472020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3048
3049 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3050 argument.
3051
0e25e767
AB
30522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3053
3054 * ada-lang.c (ada_language_data): Delete.
3055 (ada_language): Remove references to ada_language_data.
3056 * c-lang.c (c_language_data): Delete.
3057 (c_language): Remove references to c_language_data.
3058 (cplus_language_data): Delete.
3059 (cplus_language): Remove references to cplus_language_data.
3060 (asm_language_data): Delete.
3061 (asm_language): Remove references to asm_language_data.
3062 (minimal_language_data): Delete.
3063 (minimal_language): Remove references to minimal_language_data.
3064 * d-lang.c (d_language_data): Delete.
3065 (d_language): Remove references to d_language_data.
3066 * f-lang.c (f_language_data): Delete.
3067 (f_language): Remove references to f_language_data.
3068 * go-lang.c (go_language_data): Delete.
3069 (go_language): Remove references to go_language_data.
3070 * language.c (unknown_language_data): Delete.
3071 (unknown_language): Remove references to unknown_language_data.
3072 (auto_language_data): Delete.
3073 (auto_language): Remove references to auto_language_data.
3074 * language.h (language_data): Delete struct.
3075 (language_defn): No longer inherit from language_data.
3076 * m2-lang.c (m2_language_data): Delete.
3077 (m2_language): Remove references to m2_language_data.
3078 * objc-lang.c (objc_language_data): Delete.
3079 (objc_language): Remove references to objc_language_data.
3080 * opencl-lang.c (opencl_language_data): Delete.
3081 (opencl_language): Remove references to opencl_language_data.
3082 * p-lang.c (pascal_language_data): Delete.
3083 (pascal_language): Remove references to pascal_language_data.
3084 * rust-lang.c (rust_language_data): Delete.
3085 (rust_language): Remove references to rust_language_data.
3086
b7c6e27d
AB
30872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3088
3089 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3090 initializer.
3091 (ada_language::opcode_print_table): New member function.
3092 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3093 (c_language::opcode_print_table): New member function.
3094 (cplus_language_data): Remove la_op_print_tab initializer.
3095 (cplus_language::opcode_print_table): New member function.
3096 (asm_language_data): Remove la_op_print_tab initializer.
3097 (asm_language::opcode_print_table): New member function.
3098 (minimal_language_data): Remove la_op_print_tab initializer.
3099 (minimal_language::opcode_print_table): New member function.
3100 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3101 (d_language::opcode_print_table): New member function.
3102 * expprint.c (print_subexp_standard): Update call to
3103 opcode_print_table.
3104 (op_string): Likewise.
3105 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3106 (f_language::opcode_print_table): New member function.
3107 * go-lang.c (go_language_data): Remove la_op_print_tab
3108 initializer.
3109 (go_language::opcode_print_table): New member function.
3110 * language.c (unknown_language_data): Remove la_op_print_tab
3111 initializer.
3112 (unknown_language::opcode_print_table): New member function.
3113 (auto_language_data): Remove la_op_print_tab initializer.
3114 (auto_language::opcode_print_table): New member function.
3115 * language.h (language_data): Remove la_op_print_tab field.
3116 (language_defn::opcode_print_table): Declare new member function.
3117 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3118 initializer.
3119 (m2_language::opcode_print_table): New member function.
3120 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3121 initializer.
3122 (objc_language::opcode_print_table): New member function.
3123 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3124 initializer.
3125 (opencl_language::opcode_print_table): New member function.
3126 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3127 initializer.
3128 (pascal_language::opcode_print_table): New member function.
3129 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3130 initializer.
3131 (rust_language::opcode_print_table): New member function.
3132
5aba6ebe
AB
31332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3134
3135 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3136 (ada_language::expression_ops): New member function.
3137 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3138 (c_language::expression_ops): New member function.
3139 (cplus_language_data): Remove la_exp_desc initializer.
3140 (cplus_language::expression_ops): New member function.
3141 (asm_language_data): Remove la_exp_desc initializer.
3142 (asm_language::expression_ops): New member function.
3143 (minimal_language_data): Remove la_exp_desc initializer.
3144 (minimal_language::expression_ops): New member function.
3145 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3146 (d_language::expression_ops): New member function.
3147 * eval.c (evaluate_subexp): Update call to expression_ops.
3148 * expprint.c (print_subexp): Likewise.
3149 (op_name): Likewise.
3150 (dump_subexp_body): Likewise.
3151 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3152 (f_language::expression_ops): New member function.
3153 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3154 (go_language::expression_ops): New member function.
3155 * language.c (language_defn::expression_ops): New function.
3156 (unknown_language_data): Remove la_exp_desc initializer.
3157 (auto_language_data): Likewise.
3158 * language.h (language_data): Remove la_exp_desc field.
3159 (language_defn::expression_ops): Declare new member function.
3160 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3161 (m2_language::expression_ops): New member function.
3162 * objc-lang.c (objc_language_data): Remove la_exp_desc
3163 initializer.
3164 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3165 initializer.
3166 (opencl_language::expression_ops): New member function.
3167 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3168 * parse.c (operator_length): Update call to expression_ops.
3169 (exp_iterate): Likewise.
3170 * rust-lang.c (rust_language_data): Remove la_exp_desc
3171 initializer.
3172 (ruse_language::expression_ops): New member function.
3173
b63a3f3f
AB
31742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3175
3176 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3177 initializer.
3178 (ada_language::varobj_ops): New member function.
3179 * c-lang.c (c_language_data): Remove la_varobj_ops
3180 initializer.
3181 (cplus_language_data): Likewise.
3182 (cplus_language::varobj_ops): New member function.
3183 (asm_language_data): Remove la_varobj_ops initializer.
3184 (minimal_language_data): Likewise.
3185 * d-lang.c (d_language_data): Likewise.
3186 * f-lang.c (f_language_data): Likewise.
3187 * go-lang.c (go_language_data): Likewise.
3188 * language.c (language_defn::varobj_ops): New function.
3189 (unknown_language_data): Remove la_varobj_ops
3190 initializer.
3191 (auto_language_data): Likewise.
3192 * language.h (language_data): Remove la_varobj_ops field.
3193 (language_defn::varobj_ops): Declare new member function.
3194 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3195 * objc-lang.c (objc_language_data): Likewise.
3196 * opencl-lang.c (opencl_language_data): Likewise.
3197 * p-lang.c (pascal_language_data): Likewise.
3198 * rust-lang.c (rust_language_data): Likewise.
3199 * varobj.c (varobj_create): Update call to varobj_ops.
3200 * varobj.h (default_varobj_ops): Delete define.
3201
1ac14a04
AB
32022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3203
3204 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3205 initializer.
3206 * c-lang.c (c_language_data): Likewise.
3207 (c_language::macro_expansion): New member function.
3208 (cplus_language_data): Likewise.
3209 (cplus_language::macro_expansion): New member function.
3210 (asm_language_data): Likewise.
3211 (asm_language::macro_expansion): New member function.
3212 (minimal_language_data): Likewise.
3213 (minimal_language::macro_expansion): New member function.
3214 * d-lang.c (d_language_data): Remove la_macro_expansion
3215 initializer.
3216 * f-lang.c (f_language_data): Likewise.
3217 * go-lang.c (go_language_data): Likewise.
3218 * language.c (unknown_language_data): Likewise.
3219 (auto_language_data): Likewise.
3220 * language.h (language_data): Remove la_macro_expansion field.
3221 (language_defn::macro_expansion): New member function.
3222 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3223 initializer.
3224 * objc-lang.c (objc_language_data): Likewise.
3225 (objc_language::macro_expansion): New member function.
3226 * opencl-lang.c (opencl_language_data): Likewise.
3227 (opencl_language::macro_expansion): New member function.
3228 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3229 initializer.
3230 * rust-lang.c (rust_language_data): Likewise.
3231 * symtab.c (default_collect_symbol_completion_matches_break_on):
3232 Update call to macro_expansion.
3233
3a3440fb
AB
32342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3235
3236 * ada-lang.c (ada_language_data): Remove la_array_ordering
3237 initializer.
3238 * c-lang.c (c_language_data): Likewise.
3239 (cplus_language_data): Likewise.
3240 (asm_language_data): Likewise.
3241 (minimal_language_data): Likewise.
3242 * d-lang.c (d_language_data): Likewise.
3243 * dwarf2/read.c (read_array_order): Update for call to
3244 array_ordering.
3245 * f-lang.c (f_language_data): Remove la_array_ordering
3246 initializer.
3247 (f_language::array_ordering): New member function.
3248 * go-lang.c (go_language_data): Remove la_array_ordering
3249 initializer.
3250 * language.c (unknown_language_data): Likewise.
3251 (auto_language_data): Likewise.
3252 * language.h (language_data): Delete la_array_ordering field.
3253 (language_defn::array_ordering): New member function.
3254 * m2-lang.c (m2_language_data): Remove la_array_ordering
3255 initializer.
3256 * objc-lang.c (objc_language_data): Likewise.
3257 * opencl-lang.c (opencl_language_data): Likewise.
3258 * p-lang.c (pascal_language_data): Likewise.
3259 * rust-lang.c (rust_language_data): Likewise.
3260
0d201fa4
AB
32612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3262
3263 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3264 initializer.
3265 * c-lang.c (c_language_data): Likewise.
3266 (cplus_language_data): Likewise.
3267 (asm_language_data): Likewise.
3268 (minimal_language_data): Likewise.
3269 * d-lang.c (d_language_data): Likewise.
3270 * f-lang.c (f_language_data): Likewise.
3271 (f_language::case_sensitivity): New member function.
3272 * go-lang.c (go_language_data): Remove la_case_sensitivity
3273 initializer.
3274 * language.c (enum case_mode): Moved here from language.h.
3275 (case_mode): Make static.
3276 (show_case_command): Update for case_sensitivity being a method.
3277 (set_case_command): Likewise.
3278 (set_range_case): Likewise.
3279 (unknown_language_data): Remove la_case_sensitivity initializer.
3280 (auto_language_data): Likewise.
3281 * language.h (case_mode): Delete, move enum declaration to
3282 language.c.
3283 (language_data): Delete la_case_sensitivity field.
3284 (language_defn::case_sensitivity): New member function.
3285 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3286 initializer.
3287 * objc-lang.c (objc_language_data): Likewise.
3288 * opencl-lang.c (opencl_language_data): Likewise.
3289 * p-lang.c (pascal_language_data): Likewise.
3290 * rust-lang.c (rust_language_data): Likewise.
3291
efdf6a73
AB
32922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3293
3294 * ada-lang.c (ada_language_data): Remove la_range_check
3295 initializer.
3296 * c-lang.c (c_language_data): Likewise.
3297 (cplus_language_data): Likewise.
3298 (asm_language_data): Likewise.
3299 (minimal_language_data): Likewise.
3300 * d-lang.c (d_language_data): Likewise.
3301 * f-lang.c (f_language_data): Likewise.
3302 (f_language::range_checking_on_by_default): New member function.
3303 * go-lang.c (go_language_data): Remove la_range_check initializer.
3304 * language.c (enum range_mode): Moved here from language.h.
3305 (range_mode): Made static.
3306 (show_range_command): Update to use
3307 range_checking_on_by_default.
3308 (set_range_command): Likewise.
3309 (set_range_case): Likewise.
3310 (unknown_language_data): Remove la_range_check initializer.
3311 (auto_language_data): Likewise.
3312 * language.h (range_mode): Delete. Enum definition moved to
3313 language.c.
3314 (language_data): Remove la_range_check field.
3315 (language_defn::range_checking_on_by_default): New member
3316 function.
3317 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3318 (m2_language::range_checking_on_by_default): New member function.
3319 * objc-lang.c (objc_language_data): Remove la_range_check
3320 initializer.
3321 * opencl-lang.c (opencl_language_data): Likewise.
3322 * p-lang.c (pascal_language_data): Likewise.
3323 (pascal_language::range_checking_on_by_default): New member
3324 function.
3325 * rust-lang.c (rust_language_data): Remove la_range_check
3326 initializer.
3327 (rust_language::range_checking_on_by_default): New member
3328 function.
3329
bf92aec5
AB
33302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3331
3332 * dwarf2/read.c (dwarf2_physname): Remove special case for
3333 language_go.
3334 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3335 member function.
3336
d3355e4d
AB
33372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3338
3339 * ada-lang.c (ada_language_data): Remove
3340 la_store_sym_names_in_linkage_form_p initializer.
3341 (ada_language::store_sym_names_in_linkage_form_p): New member
3342 function.
3343 * c-lang.c (c_language_data): Remove
3344 la_store_sym_names_in_linkage_form_p initializer.
3345 (c_language::store_sym_names_in_linkage_form_p): New member
3346 function.
3347 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3348 initializer.
3349 (asm_language_data): Likewise.
3350 (asm_language::store_sym_names_in_linkage_form_p): New member
3351 function.
3352 (minimal_language_data): Remove
3353 la_store_sym_names_in_linkage_form_p initializer.
3354 (minimal_language::store_sym_names_in_linkage_form_p): New member
3355 function.
3356 * d-lang.c (d_language_data): Remove
3357 la_store_sym_names_in_linkage_form_p initializer.
3358 * dwarf2/read.c (dwarf2_physname): Update call to
3359 store_sym_names_in_linkage_form_p.
3360 * f-lang.c (f_language_data): Remove
3361 la_store_sym_names_in_linkage_form_p initializer.
3362 * go-lang.c (go_language_data): Remove
3363 la_store_sym_names_in_linkage_form_p initializer.
3364 * language.c (unknown_language_data): Remove
3365 la_store_sym_names_in_linkage_form_p initializer.
3366 (unknown_language::store_sym_names_in_linkage_form_p): New member
3367 function.
3368 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3369 initializer.
3370 (auto_language::store_sym_names_in_linkage_form_p): New member
3371 function.
3372 * language.h (language_data): Remove
3373 la_store_sym_names_in_linkage_form_p member variable.
3374 (language_defn::store_sym_names_in_linkage_form_p): New member
3375 function.
3376 * m2-lang.c (m2_language_data): Remove
3377 la_store_sym_names_in_linkage_form_p initializer.
3378 * objc-lang.c (objc_language_data): Likewise.
3379 * opencl-lang.c (opencl_language_data): Likewise.
3380 * p-lang.c (pascal_language_data): Likewise.
3381 * rust-lang.c (rust_language_data): Likewise.
3382
22c12a6c
AB
33832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3384
3385 * ada-lang.c (ada_language_data): Remove string_lower_bound
3386 initializer.
3387 * c-lang.c (c_language_data): Likewise.
3388 (cplus_language_data): Likewise.
3389 (asm_language_data): Likewise.
3390 (minimal_language_data): Likewise.
3391 * d-lang.c (d_language_data): Likewise.
3392 * f-lang.c (f_language_data): Likewise.
3393 * go-lang.c (go_language_data): Likewise.
3394 * language.c (unknown_language_data): Likewise.
3395 (auto_language_data): Likewise.
3396 * language.h (language_data): Remove string_lower_bound field.
3397 (language_defn::string_lower_bound): New member function.
3398 * m2-lang.c (m2_language_data): Remove string_lower_bound
3399 initializer.
3400 (m2_language::string_lower_bound): New member function.
3401 * objc-lang.c (objc_language_data): Remove string_lower_bound
3402 initializer.
3403 * opencl-lang.c (opencl_language_data): Likewise.
3404 * p-lang.c (pascal_language_data): Likewise.
3405 * rust-lang.c (rust_language_data): Likewise.
3406 * valops.c (value_cstring): Update call to string_lower_bound.
3407 (value_string): Likewise.
3408 * value.c (allocate_repeated_value): Likewise.
3409
1c236ddd
AB
34102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3411
3412 * valops.c (value_repeat): Fix incorrect argument name in comment.
3413
67bd3fd5
AB
34142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3415
3416 * ada-lang.c (ada_language_data): Remove c_style_arrays
3417 initializer.
3418 (ada_language::c_style_arrays_p): New member fuction.
3419 * c-lang.c (c_language_data): Remove c_style_arrays
3420 initializer.
3421 (cplus_language_data): Likewise.
3422 (asm_language_data): Likewise.
3423 (minimal_language_data): Likewise.
3424 * d-lang.c (d_language_data): Likewise.
3425 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3426 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3427 (f_language::c_style_arrays_p): New member function.
3428 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3429 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3430 * language.c (unknown_language_data): Remove c_style_arrays
3431 initializer.
3432 (auto_language_data): Likewise.
3433 * language.h (language_data): Remove c_style_arrays field.
3434 (language_defn::c_style_arrays_p): New member function.
3435 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3436 (m2_language::c_style_arrays_p): New member function.
3437 * objc-lang.c (objc_language_data): Remove c_style_arrays
3438 initializer.
3439 * opencl-lang.c (opencl_language_data): Likewise.
3440 * p-lang.c (pascal_language_data): Likewise.
3441 * rust-lang.c (rust_language_data): Likewise.
3442 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3443 and update local variable to a bool.
3444 * valops.c (value_cast): Update call to c_style_arrays_p.
3445 (value_array): Likewise.
3446 * value.c (coerce_array): Likewise.
3447
85967615
AB
34482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3449
3450 * ada-lang.c (ada_language_data): Remove la_language initializer.
3451 * c-lang.c (c_language_data): Likewise.
3452 (cplus_language_data): Likewise.
3453 (asm_language_data): Likewise.
3454 (minimal_language_data): Likewise.
3455 * d-lang.c (d_language_data): Likewise.
3456 * f-lang.c (f_language_data): Likewise.
3457 * go-lang.c (go_language_data): Likewise.
3458 * language.c (unknown_language_data): Likewise.
3459 (auto_language_data): Likewise.
3460 * language.h (language_data): Remove la_language field.
3461 (language_defn::language_defn): Initialise la_language field.
3462 (language_defn::la_language): New member variable.
3463 * m2-lang.c (m2_language_data): Remove la_language field.
3464 * objc-lang.c (objc_language_data): Likewise.
3465 * opencl-lang.c (opencl_language_data): Likewise.
3466 * p-lang.c (pascal_language_data): Likewise.
3467 * rust-lang.c (rust_language_data): Likewise.
3468
e171d6f1
AB
34692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3470
3471 * ada-lang.c (ada_extensions): Delete, moved into
3472 ada_language::filename_extensions.
3473 (ada_language_data): Remove la_filename_extensions initializer.
3474 (ada_language::filename_extensions): New member function.
3475 * c-lang.c (c_extensions): Delete, moved into
3476 c_language::filename_extensions.
3477 (c_language_data): Remove la_filename_extensions initializer.
3478 (c_language::filename_extensions): New member function.
3479 (cplus_extensions): Delete, moved into
3480 cplus_language::filename_extensions.
3481 (cplus_language_data): Remove la_filename_extensions initializer.
3482 (cplus_language::filename_extensions): New member function.
3483 (asm_extensions): Delete, moved into
3484 asm_language::filename_extensions.
3485 (asm_language_data): Remove la_filename_extensions initializer.
3486 (asm_language::filename_extensions): New member function.
3487 (minimal_language_data): Remove la_filename_extensions
3488 initializer.
3489 * d-lang.c (d_extensions): Delete, moved into
3490 d_language::filename_extensions.
3491 (d_language_data): Remove la_filename_extensions initializer.
3492 (d_language::filename_extensions): New member function.
3493 * f-lang.c (f_extensions): Delete, moved into
3494 f_language::filename_extensions.
3495 (f_language_data): Remove la_filename_extensions initializer.
3496 (f_language::filename_extensions): New member function.
3497 * go-lang.c (go_language_data): Remove la_filename_extensions
3498 initializer.
3499 * language.c (add_set_language_command): Update now that
3500 filename_extensions returns a vector.
3501 (unknown_language_data): Remove la_filename_extensions
3502 initializer.
3503 (auto_language_data): Likewise.
3504 * language.h (language_data): Remove la_filename_extensions field.
3505 (language_defn::filename_extensions): New member function.
3506 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3507 initializer.
3508 * objc-lang.c (objc_extensions): Delete, moved into
3509 objc_language::filename_extensions.
3510 (objc_language_data): Remove la_filename_extensions initializer.
3511 (objc_language::filename_extensions): New member function.
3512 * opencl-lang.c (opencl_language_data): Remove
3513 la_filename_extensions initializer.
3514 * p-lang.c (pascal_extensions): Delete, moved into
3515 pascal_language::filename_extensions.
3516 (pascal_language_data): Remove la_filename_extensions initializer.
3517 (pascal_language::filename_extensions): New member function.
3518 * rust-lang.c (rust_extensions): Delete, moved into
3519 rust_language::filename_extensions.
3520 (rust_language_data): Remove la_filename_extensions initializer.
3521 (rust_language::filename_extensions): New member function.
3522 * symfile.c (add_filename_language): Add new assert.
3523
6f7664a9
AB
35242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3525
3526 * ada-lang.c (ada_language_data): Remove la_name and
3527 la_natural_name initializers.
3528 (ada_language::name): New member function.
3529 (ada_language::natural_name): New member function.
3530 * c-lang.c (c_language_data): Remove la_name and
3531 la_natural_name initializers.
3532 (c_language::name): New member function.
3533 (c_language::natural_name): New member function.
3534 (cplus_language_data): Remove la_name and
3535 la_natural_name initializers.
3536 (cplus_language::name): New member function.
3537 (cplus_language::natural_name): New member function.
3538 (asm_language_data): Remove la_name and
3539 la_natural_name initializers.
3540 (asm_language::name): New member function.
3541 (asm_language::natural_name): New member function.
3542 (minimal_language_data): Remove la_name and
3543 la_natural_name initializers.
3544 (minimal_language::name): New member function.
3545 (minimal_language::natural_name): New member function.
3546 * compile/compile.c (compile_to_object): Update call to
3547 lanugage_defn::name.
3548 * d-lang.c (d_language_data): Remove la_name and
3549 la_natural_name initializers.
3550 (d_language::name): New member function.
3551 (d_language::natural_name): New member function.
3552 * expprint.c (print_subexp_standard): Update call to
3553 language_defn::name.
3554 (dump_raw_expression): Likewise
3555 (dump_prefix_expression): Likewise.
3556 * f-lang.c (f_language_data): Remove la_name and
3557 la_natural_name initializers.
3558 (f_language::name): New member function.
3559 (f_language::natural_name): New member function.
3560 * go-lang.c (go_language_data): Remove la_name and
3561 la_natural_name initializers.
3562 (go_language::name): New member function.
3563 (go_language::natural_name): New member function.
3564 * language.c (show_language_command): Update call to
3565 language_defn::name.
3566 (set_language_command): Likewise.
3567 (language_enum): Likewise.
3568 (language_str): Likewise.
3569 (add_set_language_command): Likewise, use
3570 language_defn::natural_name in the doc string.
3571 (unknown_language_data): Remove la_name and
3572 la_natural_name initializers.
3573 (unknown_language::name): New member function.
3574 (unknown_language::natural_name): New member function.
3575 (auto_language_data): Remove la_name and
3576 la_natural_name initializers.
3577 (auto_language::name): New member function.
3578 (auto_language::natural_name): New member function.
3579 (language_lookup_primitive_type_as_symbol): Update call to
3580 language_defn::name.
3581 * language.h (language_data): Remove la_name and la_natural_name
3582 member variables.
3583 (language_defn::name): New member function.
3584 (language_defn::natural_name): New member function.
3585 * m2-lang.c (m2_language_data): Remove la_name and
3586 la_natural_name initializers.
3587 (m2_language::name): New member function.
3588 (m2_language::natural_name): New member function.
3589 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3590 language_defn::natural_name.
3591 * objc-lang.c (objc_language_data): Remove la_name and
3592 la_natural_name initializers.
3593 (objc_language::name): New member function.
3594 (objc_language::natural_name): New member function.
3595 * opencl-lang.c (opencl_language_data): Remove la_name and
3596 la_natural_name initializers.
3597 (opencl_language::name): New member function.
3598 (opencl_language::natural_name): New member function.
3599 * p-lang.c (pascal_language_data): Remove la_name and
3600 la_natural_name initializers.
3601 (pascal_language::name): New member function.
3602 (pascal_language::natural_name): New member function.
3603 * rust-lang.c (rust_language_data): Remove la_name and
3604 la_natural_name initializers.
3605 (rust_language::name): New member function.
3606 (rust_language::natural_name): New member function.
3607 * symtab.c (lookup_language_this): Update call to
3608 language_defn::name.
3609
5bae7c4e
AB
36102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3611
3612 * ada-lang.c (ada_language_data): Remove la_name_of_this
3613 initializer.
3614 * ax-gdb.c (gen_expr): Update call to name_of_this.
3615 * c-exp.y (classify_name): Likewise.
3616 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3617 (cplus_language_data): Likewise.
3618 (cplus_language::name_of_this): New member function.
3619 (asm_language_data): Remove la_name_of_this initializer.
3620 (minimal_language_data): Likewise.
3621 * d-lang.c (d_language_data): Likewise.
3622 (d_language::name_of_this): New member function.
3623 * expprint.c (print_subexp_standard): Update call to name_of_this.
3624 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3625 * go-lang.c (go_language_data): Likewise.
3626 * language.c (unknown_language_data): Likewise.
3627 (unknown_language::name_of_this): New member function.
3628 (auto_language_data): Remove la_name_of_this initializer.
3629 (auto_language::name_of_this): New member function.
3630 * language.h (language_data): Delete la_name_of_this member
3631 variable.
3632 (language_defn::name_of_this): New member function.
3633 * m2-lang.c (m2_language_data): Remove la_name_of_this
3634 initializer.
3635 * objc-lang.c (objc_language_data): Likewise.
3636 (objc_language::name_of_this): New member function.
3637 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3638 initializer.
3639 * p-lang.c (pascal_language_data): Likewise.
3640 (pascal_language::name_of_this): New member function.
3641 * rust-lang.c (rust_language_data): Remove la_name_of_this
3642 initializer.
3643 * symtab.c (lookup_language_this): Update call to name_of_this.
3644 (lookup_symbol_aux): Likewise.
3645 * valops.c (value_of_this): Likewise.
3646
22e3f3ed
AB
36472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3648
3649 * ada-lang.c (ada_language_data): Remove
3650 la_struct_too_deep_ellipsis initializer.
3651 (ada_language::struct_too_deep_ellipsis): New member function.
3652 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3653 initializer.
3654 (cplus_language_data): Likewise.
3655 (asm_language_data): Likewise.
3656 (minimal_language_data): Likewise.
3657 * cp-valprint.c (cp_print_value): Update call to
3658 struct_too_deep_ellipsis.
3659 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3660 initializer.
3661 * f-lang.c (f_language_data): Likewise.
3662 (f_language::struct_too_deep_ellipsis): New member function.
3663 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3664 initializer.
3665 * language.c (unknown_language_data): Likewise.
3666 (auto_language_data): Likewise.
3667 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3668 member variable.
3669 (language_defn::struct_too_deep_ellipsis): New member function.
3670 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3671 initializer.Q
3672 * objc-lang.c (objc_language_data): Likewise.
3673 * opencl-lang.c (opencl_language_data): Likewise.
3674 * p-lang.c (pascal_language_data): Likewise.
3675 * rust-lang.c (rust_language_data): Likewise.
3676 * valprint.c (val_print_check_max_depth): Update call to
3677 struct_too_deep_ellipsis.
3678
ed29e1c7
FW
36792020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3680
3681 * MAINTAINERS (Write After Approval): Add myself.
3682
12d8f940
TT
36832020-09-15 Tom Tromey <tom@tromey.com>
3684
3685 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3686 Remove.
3687
6b5a7bc7
TT
36882020-09-15 Tom Tromey <tom@tromey.com>
3689
3690 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3691 and TYPE_CODE_METHODPTR cases.
3692 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3693 (c_value_print_inner): Update.
3694 * valprint.c (generic_value_print_memberptr): New function, from
3695 c_value_print_memberptr.
3696 (generic_value_print): Use it. Call cplus_print_method_ptr.
3697
47f0e2ff
TT
36982020-09-15 Tom Tromey <tromey@adacore.com>
3699
3700 * python/python-internal.h (PyInt_FromLong): Remove define.
3701 * python/py-value.c (convert_value_from_python): Use
3702 gdb_py_object_from_longest.
3703 * python/py-type.c (typy_get_code): Use
3704 gdb_py_object_from_longest.
3705 * python/py-symtab.c (salpy_get_line): Use
3706 gdb_py_object_from_longest.
3707 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3708 gdb_py_object_from_longest.
3709 * python/py-record.c (recpy_gap_reason_code): Use
3710 gdb_py_object_from_longest.
3711 * python/py-record-btrace.c (recpy_bt_insn_size)
3712 (recpy_bt_func_level, btpy_list_count): Use
3713 gdb_py_object_from_longest.
3714 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3715 gdb_py_object_from_longest. Fix error handling.
3716 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3717 gdb_py_object_from_longest.
3718 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3719 gdb_py_object_from_longest.
3720 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3721 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3722 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3723
512116ce
TT
37242020-09-15 Tom Tromey <tromey@adacore.com>
3725
3726 * python/python.c (gdbpy_parameter_value): Use
3727 gdb_py_object_from_ulongest.
3728
4ab1029c
TT
37292020-09-15 Tom Tromey <tromey@adacore.com>
3730
3731 * python/py-infevents.c (create_register_changed_event_object):
3732 Use gdb_py_object_from_longest.
3733 * python/py-exitedevent.c (create_exited_event_object): Use
3734 gdb_py_object_from_longest.
3735
062534d4
TT
37362020-09-15 Tom Tromey <tromey@adacore.com>
3737
3738 * python/python.c (gdbpy_parameter_value): Use
3739 gdb_py_object_from_longest.
3740 * python/py-type.c (convert_field, typy_range): Use
3741 gdb_py_object_from_longest.
3742 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3743 gdb_py_object_from_longest.
3744 * python/py-lazy-string.c (stpy_get_length): Use
3745 gdb_py_object_from_longest.
3746 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3747 gdb_py_object_from_longest.
3748 * python/py-infevents.c (create_memory_changed_event_object): Use
3749 gdb_py_object_from_longest.
3750 * python/py-inferior.c (infpy_get_num): Use
3751 gdb_py_object_from_longest.
3752 (infpy_get_pid): Likewise.
3753
d1cab987
TT
37542020-09-15 Tom Tromey <tromey@adacore.com>
3755
3756 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3757 defines.
3758 * python/py-value.c (valpy_long): Use
3759 gdb_py_object_from_ulongest.
3760 * python/py-symtab.c (salpy_get_pc): Use
3761 gdb_py_object_from_ulongest.
3762 (salpy_get_last): Likewise.
3763 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3764 gdb_py_object_from_ulongest.
3765 * python/py-lazy-string.c (stpy_get_address): Use
3766 gdb_py_object_from_ulongest.
3767 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3768 * python/py-arch.c (archpy_disassemble): Use
3769 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3770 error handling.
3771
4bde49dc
TT
37722020-09-15 Tom Tromey <tromey@adacore.com>
3773
3774 * python/python-internal.h (gdb_py_long_from_longest): Remove
3775 defines.
3776 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3777 * python/py-type.c (convert_field, typy_get_sizeof): Use
3778 gdb_py_object_from_longest.
3779 * python/py-record-btrace.c (btpy_list_index): Use
3780 gdb_py_object_from_longest.
3781
37431074
TT
37822020-09-15 Tom Tromey <tromey@adacore.com>
3783
3784 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3785 * python/py-record.c (recpy_element_number): Use
3786 gdb_py_object_from_longest.
3787 (recpy_gap_number): Likewise.
3788
cbe25684
TT
37892020-09-15 Tom Tromey <tromey@adacore.com>
3790
3791 * top.c (ui::ui): Update.
3792 (highest_ui_num): Remove.
3793 * top.h (struct ui) <num>: Remove.
3794
db92ac45
TT
37952020-09-15 Tom Tromey <tromey@adacore.com>
3796
3797 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3798 * ui-style.c (ansi_regex_text): Now array.
3799 * rust-exp.y (number_regex_text): Now array.
3800 * linespec.c (linespec_quote_characters): Now array.
3801 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3802 Now arrays.
3803
d2b31b67
SM
38042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3805
3806 * debuginfod-support.c (debuginfod_client_deleter): New.
3807 (debuginfod_client_up): New.
3808 (debuginfod_init): Return debuginfod_client_up.
3809 (debuginfod_source_query): Adjust.
3810 (debuginfod_debuginfo_query): Adjust.
3811
3246bd8e
SM
38122020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3813
3814 * debuginfod-support.c (debuginfod_source_query): Use
3815 make_unique_xstrdup.
3816
10242f36
SM
38172020-09-14 Simon Marchi <simon.marchi@efficios.com>
3818
3819 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3820 with `type::instance_flags`.
3821
e1044e6a
MM
38222020-09-14 Michael Mullin <masmullin@gmail.com>
3823
3824 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3825 Remove baton parameter.
3826
04902b09
PA
38272020-09-14 Pedro Alves <pedro@palves.net>
3828
3829 * Makefile.in (SELFTESTS_SRCS): Add
3830 unittests/enum-flags-selftests.c.
3831 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3832 btrace_function_flags instead of enum btrace_function_flag.
3833 * compile/compile-c-types.c (convert_qualified): Use
3834 enum_flags::raw.
3835 * compile/compile-cplus-symbols.c (convert_one_symbol)
3836 (convert_symbol_bmsym):
3837 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3838 (compile_cplus_convert_struct_or_union_methods)
3839 (compile_cplus_instance::convert_qualified_base):
3840 * go-exp.y (parse_string_or_char): Add cast to int.
3841 * unittests/enum-flags-selftests.c: New file.
3842 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3843 type to btrace_thread_flags from btrace_thread_flag.
3844 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3845 local's type to btrace_thread_flags from btrace_thread_flag. Add
3846 cast in DEBUG call.
3847
69896a2c
PA
38482020-09-14 Pedro Alves <pedro@palves.net>
3849
3850 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3851 * gdbtypes.c (address_space_name_to_int): Rename to ...
3852 (address_space_name_to_type_instance_flags): ... this.
3853 (address_space_int_to_name): Rename to ...
3854 (address_space_type_instance_flags_to_name): ... this.
3855 * gdbtypes.h (address_space_name_to_int): Rename to ...
3856 (address_space_name_to_type_instance_flags): ... this.
3857 (address_space_int_to_name): Rename to ...
3858 (address_space_type_instance_flags_to_name): ... this.
3859 * type-stack.c (type_stack::insert): Adjust to rename.
3860 * type-stack.h (type_stack::insert): Likewise.
3861
314ad88d
PA
38622020-09-14 Pedro Alves <pedro@palves.net>
3863 Andrew Burgess <andrew.burgess@embecosm.com>
3864
3865 * avr-tdep.c (avr_address_class_type_flags): Return
3866 type_instance_flags.
3867 (avr_address_class_type_flags_to_name): Take a
3868 type_instance_flags.
3869 (avr_address_class_name_to_type_flags): Return bool and take a
3870 type_instance_flags.
3871 * d-lang.c (build_d_types): Use type::set_instance_flags.
3872 * ft32-tdep.c (ft32_address_class_type_flags): Return
3873 type_instance_flags.
3874 (ft32_address_class_type_flags_to_name): Take a
3875 type_instance_flags.
3876 (ft32_address_class_name_to_type_flags): Return bool and take a
3877 type_instance_flags.
3878 (ft32_gdbarch_init): Use type::set_instance_flags.
3879 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3880 * gdbarch.h, gdbarch.c: Regenerate.
3881 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3882 (address_class_name_to_type_flags): Use type_instance_flags and
3883 bool.
3884 * gdbtypes.c (address_space_name_to_int)
3885 (address_space_int_to_name, make_qualified_type): Use
3886 type_instance_flags.
3887 (make_qualified_type): Use type_instance_flags and
3888 type::set_instance_flags.
3889 (make_type_with_address_space, make_cv_type, make_vector_type)
3890 (check_typedef): Use type_instance_flags.
3891 (recursive_dump_type): Cast type_instance_flags to unsigned for
3892 printing.
3893 (copy_type_recursive): Use type::set_instance_flags.
3894 (gdbtypes_post_init): Use type::set_instance_flags.
3895 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3896 <m_instance_flags>: ... this.
3897 <instance_flags, set_instance_flags>: New methods.
3898 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3899 (SET_TYPE_INSTANCE_FLAGS): New.
3900 (address_space_name_to_int, address_space_int_to_name)
3901 (make_type_with_address_space): Pass flags using
3902 type_instance_flags instead of int.
3903 * stabsread.c (cleanup_undefined_types_noname): Use
3904 type::set_instance_flags.
3905 * s390-tdep.c (s390_address_class_type_flags): Return
3906 type_instance_flags.
3907 (s390_address_class_type_flags_to_name): Take a
3908 type_instance_flags.
3909 (s390_address_class_name_to_type_flags): Return bool and take a
3910 type_instance_flags.
3911 * type-stack.c (type_stack::follow_types): Use
3912 type_instance_flags.
3913 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3914
27087b7f
TT
39152020-09-14 Tom Tromey <tromey@adacore.com>
3916
3917 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3918 * x86-tdep.c (x86_is_thunk_register_name)
3919 (x86_in_indirect_branch_thunk): Update.
3920 * sparc64-tdep.c (sparc64_fpu_register_names)
3921 (sparc64_cp0_register_names, sparc64_register_names)
3922 (sparc64_pseudo_register_names): Now const.
3923 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3924 cp0_registers_num>: Now const.
3925 * sparc-tdep.c (sparc_core_register_names)
3926 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3927 (sparc32_pseudo_register_names): Now const.
3928 (validate_tdesc_registers): Update.
3929 * rust-lang.c (rust_extensions): Now const.
3930 * p-lang.c (p_extensions): Now const.
3931 * objc-lang.c (objc_extensions): Now const.
3932 * nto-tdep.c (nto_thread_state_str): Now const.
3933 * moxie-tdep.c (moxie_register_names): Now const.
3934 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3935 Now const.
3936 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3937 (mips_linux_reg_names): Now const.
3938 (mips_gdbarch_init): Update.
3939 * microblaze-tdep.c (microblaze_register_names): Now const.
3940 * m68k-tdep.c (m68k_register_names): Now const.
3941 * m32r-tdep.c (m32r_register_names): Now const.
3942 * ia64-tdep.c (ia64_register_names): Now const.
3943 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3944 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3945 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3946 ymm_avx512_register_names, pkeys_register_names>: Now const.
3947 * i386-tdep.c (i386_register_names, i386_zmm_names)
3948 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3949 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3950 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3951 * f-lang.c (f_extensions): Now const.
3952 * d-lang.c (d_extensions): Now const.
3953 * csky-tdep.c (csky_register_names): Now const.
3954 * charset.c (default_charset_names, charset_enum): Now const.
3955 (_initialize_charset): Update.
3956 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3957 const.
3958 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3959 (bsd_uthread_solib_loaded): Update.
3960 (bsd_uthread_state): Now const.
3961 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3962 (amd64_ymm_avx512_names, amd64_ymmh_names)
3963 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3964 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3965 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3966 (amd64_dword_names): Now const.
3967 * agent.c (can_use_agent_enum): Now const.
3968 * ada-tasks.c (task_states, long_task_states): Now const.
3969 * ada-lang.c (known_runtime_file_name_patterns)
3970 (known_auxiliary_function_name_patterns, attribute_names)
3971 (standard_exc, ada_extensions): Now const.
3972
89806626
SM
39732020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3974
3975 * bcache.h (struct bcache) <bcache>: Remove constructor.
3976 <m_hash_function, m_compare_function>: Remove.
3977 <~bcache>: Make virtual.
3978 <compare>: Remove static method, introduce virtual method.
3979 <default_hash>: Remove.
3980 <hash>: New virtual method.
3981 * bcache.c (bcache::expand_hash_table): Update.
3982 (bcache::insert): Update.
3983 (bcache::hash): New.
3984 (bcache::compare): Update comment and parameter names.
3985 * gdbtypes.c (types_deeply_equal): Update.
3986 * psymtab.h (struct psymbol_bcache): New struct.
3987 (class psymtab_storage) <psymtab_storage>: Make default.
3988 <psymbol_cache>: Change type to psymbol_bcache.
3989 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3990 (psymbol_hash): Change to...
3991 (psymbol_bcache::hash): ... this.
3992 (psymbol_compare): Change to...
3993 (psymbol_bcache::compare): ... this.
3994
677c92fe
SM
39952020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3996
3997 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3998 checking for initial lwp.
3999
3eba3a01
TT
40002020-09-14 Tom Tromey <tromey@adacore.com>
4001
4002 * m68k-tdep.c (m68k_extract_return_value): Use
4003 pointer_result_regnum.
4004 (m68k_store_return_value): Likewise.
4005 (m68k_reg_struct_return_p): Handle vectors and arrays.
4006 (m68k_return_value): Handle arrays.
4007 (m68k_svr4_return_value): Fix single-element aggregate handling.
4008 Handle long double. Adjust for embedded ABI.
4009 (m68k_svr4_init_abi): Set pointer_result_regnum.
4010 (m68k_embedded_init_abi): New function.
4011 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4012 (m68k_osabi_sniffer): New function.
4013 (_initialize_m68k_tdep): Register osabi sniffer.
4014 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4015 member.
4016
33f4dd48
SM
40172020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4018
4019 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4020 with gdb::unique_xmalloc_ptr<char>.
4021
8400a90d
SM
40222020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4023
4024 * xml-support.h (xml_fetch_another): Change type to be a
4025 function_view.
4026 (xml_process_xincludes): Remove baton parameter.
4027 (xml_fetch_content_from_file): Change baton parameter to
4028 dirname.
4029 * xml-support.c (struct xinclude_parsing_data)
4030 <xinclude_parsing_data>: Remove baton parameter.
4031 <fetcher_baton>: Remove.
4032 (xinclude_start_include): Adjust.
4033 (xml_process_xincludes): Adjust.
4034 (xml_fetch_content_from_file): Replace baton parameter with
4035 dirname.
4036 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4037 (xml_init_syscalls_info): Use a lambda.
4038 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4039 (file_read_description_xml): Use a lambda.
4040 (fetch_available_features_from_target): Change baton parameter
4041 to target_ops.
4042 (target_read_description_xml): Use a lambda.
4043 (target_fetch_description_xml): Use a lambda.
4044 (string_read_description_xml): Update.
4045
04f5bab2
SM
40462020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4047
4048 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4049 uses with type::endianity_is_not_default.
4050
db558e34
SM
40512020-09-14 Simon Marchi <simon.marchi@efficios.com>
4052
4053 * gdbtypes.h (struct type) <endianity_is_not_default,
4054 set_endianity_is_not_default>: New methods.
4055 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4056 type::endianity_is_not_default, change all write call sites to
4057 use type::set_endianity_is_not_default.
4058
22c4c60c
SM
40592020-09-14 Simon Marchi <simon.marchi@efficios.com>
4060
4061 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4062 uses with type::is_fixed_instance.
4063
9cdd0d12
SM
40642020-09-14 Simon Marchi <simon.marchi@efficios.com>
4065
4066 * gdbtypes.h (struct type) <is_fixed_instance,
4067 set_is_fixed_instance>: New methods.
4068 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4069 write call sites to use type::set_is_fixed_instance.
4070
0becda7a
SM
40712020-09-14 Simon Marchi <simon.marchi@efficios.com>
4072
4073 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4074 uses with type::is_gnu_ifunc.
4075
03cc7249
SM
40762020-09-14 Simon Marchi <simon.marchi@efficios.com>
4077
4078 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4079 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4080 use type::set_is_gnu_ifunc.
4081
3f46044c
SM
40822020-09-14 Simon Marchi <simon.marchi@efficios.com>
4083
4084 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4085 uses with type::stub_is_supported.
4086
9baccff6
SM
40872020-09-14 Simon Marchi <simon.marchi@efficios.com>
4088
4089 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4090 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4091 use type::set_stub_is_supported.
4092
bd63c870
SM
40932020-09-14 Simon Marchi <simon.marchi@efficios.com>
4094
4095 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4096 uses with type::is_vector.
4097
2062087b
SM
40982020-09-14 Simon Marchi <simon.marchi@efficios.com>
4099
4100 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4101 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4102 use type::set_is_vector.
4103
a409645d
SM
41042020-09-14 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4107 uses with type::has_varargs.
4108
1d6286ed
SM
41092020-09-14 Simon Marchi <simon.marchi@efficios.com>
4110
4111 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4112 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4113 use type::set_has_varargs.
4114
7f9f399b
SM
41152020-09-14 Simon Marchi <simon.marchi@efficios.com>
4116
4117 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4118 uses with type::is_prototyped.
4119
27e69b7a
SM
41202020-09-14 Simon Marchi <simon.marchi@efficios.com>
4121
4122 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4123 New methods.
4124 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4125 call sites to use type::set_is_prototyped.
4126
d2183968
SM
41272020-09-14 Simon Marchi <simon.marchi@efficios.com>
4128
4129 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4130 uses with type::target_is_stub.
4131
8f53807e
SM
41322020-09-14 Simon Marchi <simon.marchi@efficios.com>
4133
4134 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4135 New methods.
4136 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4137 sites to use type::set_target_is_stub.
4138
e46d3488
SM
41392020-09-14 Simon Marchi <simon.marchi@efficios.com>
4140
4141 * gdbtypes.h (TYPE_STUB): Remove, replace all
4142 uses with type::is_stub.
4143
b4b73759
SM
41442020-09-14 Simon Marchi <simon.marchi@efficios.com>
4145
4146 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4147 (TYPE_STUB): Use type::is_stub, change all write call sites to
4148 use type::set_is_stub.
4149
20ce4123
SM
41502020-09-14 Simon Marchi <simon.marchi@efficios.com>
4151
4152 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4153 type::has_no_signedness.
4154
15152a54
SM
41552020-09-14 Simon Marchi <simon.marchi@efficios.com>
4156
4157 * gdbtypes.h (struct type) <has_no_signedness,
4158 set_has_no_signedness>: New methods.
4159 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4160 call sites to use type::set_has_no_signedness.
4161
c6d940a9
SM
41622020-09-14 Simon Marchi <simon.marchi@efficios.com>
4163
4164 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4165 type::is_unsigned.
4166
653223d3
SM
41672020-09-14 Simon Marchi <simon.marchi@efficios.com>
4168
4169 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4170 methods.
4171 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4172 sites to use type::set_is_unsigned.
4173
55ea94da 41742020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4175 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4176
e851246a
SM
4177 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4178 pointer and stack frame offset when unwinding.
55ea94da 4179
6791b117
PA
41802020-09-13 Pedro Alves <pedro@palves.net>
4181
4182 * NEWS: Document "-break-insert --qualified".
4183 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4184
77f2120b
PA
41852020-09-13 Pedro Alves <pedro@palves.net>
4186
4187 * linespec.c (classify_mtype, compare_msyms): Delete.
4188 (search_minsyms_for_name): Remove classification logic. Instead
4189 filter out trampoline symbols if we also found an external
4190 function of the same name.
4191
ed6a896c
JB
41922020-09-13 Joel Brobecker <brobecker@adacore.com>
4193
4194 * NEWS: Create a new section for the next release branch.
4195 Rename the section of the current branch, now that it has
4196 been cut.
4197
32aea73e
JB
41982020-09-13 Joel Brobecker <brobecker@adacore.com>
4199
4200 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4201 * version.in: Bump version to 11.0.50.DATE-git.
4202
8087c3fa
JB
42032020-09-12 Joel Brobecker <brobecker@adacore.com>
4204
4205 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4206
2a67f09d
FW
42072020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4208 Felix Willgerodt <Felix.Willgerodt@intel.com>
4209
4210 * gdbarch.sh: Added bfloat16 type.
4211 * gdbarch.c: Regenerated.
4212 * gdbarch.h: Regenerated.
4213 * gdbtypes.c (floatformats_bfloat16): New struct.
4214 (gdbtypes_post_init): Add builtin_bfloat16.
4215 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4216 (floatformats_bfloat16): New struct.
4217 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4218 (i386_ymm_type): Add field "v16_bfloat16"
4219 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4220 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4221 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4222 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4223 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4224 * features/i386/64bit-avx512.c: Regenerated.
4225 * features/i386/64bit-sse.xml: Add bfloat16 type.
4226 * features/i386/64bit-sse.c: Regenerated.
4227
1347d111
FW
42282020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4229
4230 * i386-tdep.c (i386_zmm_type): Fix field names.
4231 (i386_ymm_type): Fix field names.
4232
7a4e8e7d
TBA
42332020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4234
4235 * breakpoint.c: Fix typo in the help message of the
4236 "set breakpoint condition-evaluation" command.
4237
cf4ac4be
KR
42382020-09-10 Kamil Rytarowski <n54@gmx.com>
4239
4240 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4241 * (nbsd_nat_target::pid_to_exec_file)
4242 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4243 (nbsd_nat_target::post_startup_inferior)
4244 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4245 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4246 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4247 * (nbsd_thread_lister): Remove.
4248
f404573e
KR
42492020-09-10 Kamil Rytarowski <n54@gmx.com>
4250
4251 * fork-inferior.c (startup_inferior): Avoid double free.
4252
1ccb2c17
KR
42532020-09-10 Kamil Rytarowski <n54@gmx.com>
4254
4255 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4256 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4257
feedfcc7
KR
42582020-09-10 Kamil Rytarowski <n54@gmx.com>
4259
4260 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4261 * netbsd-nat.c: Include <sys/ptrace.h>.
4262 * (netbsd_nat::enable_proc_events): Add.
4263
c489f8c6
KR
42642020-09-10 Kamil Rytarowski <n54@gmx.com>
4265
4266 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4267 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4268 (netbsd_nat::for_each_thread): Add.
4269 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4270 "gdbsupport/common-debug.h".
4271 * (netbsd_nat::netbsd_thread_lister)
4272 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4273 (netbsd_nat::for_each_thread): Add.
4274
330662f6
KR
42752020-09-10 Kamil Rytarowski <n54@gmx.com>
4276
4277 * netbsd-nat.h: Include <unistd.h>.
4278 * (netbsd_nat::pid_to_exec_file): Add.
4279 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4280 * (netbsd_nat::pid_to_exec_file) Add.
4281
70b67307
KR
42822020-09-10 Kamil Rytarowski <n54@gmx.com>
4283
4284 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4285
99cf6da6
KR
42862020-09-10 Kamil Rytarowski <n54@gmx.com>
4287
4288 * netbsd-nat.h: New file.
4289 * netbsd-nat.c: Likewise.
4290
1b788fb6
TT
42912020-09-09 Tom Tromey <tromey@adacore.com>
4292
4293 * ada-lang.c (remove_extra_symbols): Do not increment when
4294 removing an element
4295
03b0a45f
TT
42962020-09-08 Tom Tromey <tromey@adacore.com>
4297
4298 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4299
3cae4447
TT
43002020-09-08 Tom Tromey <tromey@adacore.com>
4301
4302 PR win32/25302:
4303 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4304 (gdb_bfd_init_data): New function.
4305 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4306
7f08fd51
TBA
43072020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4308
4309 * infrun.c (fetch_inferior_event): Use
4310 `switch_to_target_no_thread` to switch the target.
4311
3e6ff933
TT
43122020-09-06 Tom Tromey <tom@tromey.com>
4313
4314 * symfile.h (dwarf2_free_objfile): Don't declare.
4315
e56798df
AKS
43162020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4317
4318 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4319 to match 16 byte real/complex type generated by Flang compiler.
4320
8f5c6526
TV
43212020-09-03 Tom de Vries <tdevries@suse.de>
4322
4323 PR breakpoint/26546
4324 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4325 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4326
c5065df0
SM
43272020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4328
4329 * maint.c (index_digits): New function.
4330 (struct maint_print_section_data): Remove.
4331 (print_bfd_section_info): Remove print_data parameter, add arg
4332 and index_digits.
4333 (print_objfile_section_info): Likewise.
4334 (print_bfd_section_info_maybe_relocated): Likewise (plus
4335 objfile).
4336 (maintenance_info_sections): Adjust calls.
4337
02c6f3f1
TT
43382020-09-02 Tom Tromey <tromey@adacore.com>
4339
4340 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4341 for null pointers.
4342 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4343
ef5e5b0b
SM
43442020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4345
4346 * bcache.h (struct bcache) <insert>: Change type of `added` to
4347 pointer to bool.
4348 * bcache.c (bcache::insert): Likewise.
4349 * gdbtypes.c (check_types_worklist): Adjust.
4350 * psymtab.c (add_psymbol_to_bcache): Adjust.
4351
973695d6
KB
43522020-08-31 Kevin Buettner <kevinb@redhat.com>
4353
4354 * corelow.c (unordered_set): Include.
4355 (class core_target): Add field 'm_core_unavailable_mappings'.
4356 (core_target::build_file_mappings): Print only one warning
4357 per inaccessible file. Add unavailable/broken mappings
4358 to m_core_unavailable_mappings.
4359 (core_target::xfer_partial): Call...
4360 (core_target::xfer_memory_via_mappings): New method.
4361
264fc0e2
SM
43622020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4363
4364 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4365 type to bool.
4366
2de01bdb
SM
43672020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4368
4369 * dwarf2/read.c (struct field_info): Fix indentation.
4370
f3bd50f1
SM
43712020-08-31 Simon Marchi <simon.marchi@efficios.com>
4372
4373 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4374 ordering in comment.
4375 * frame.c (frame_id_eq): Fix indentation.
4376
22b9b4b0
SL
43772020-08-31 Scott Linder <scott@scottlinder.com>
4378 Simon Marchi <simon.marchi@efficios.com>
4379
4380 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4381 inline frame ids in outer frame.
4382
84154d16
SM
43832020-08-31 Simon Marchi <simon.marchi@efficios.com>
4384
4385 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4386 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4387 (outer_frame_id): Use FID_STACK_OUTER instead of
4388 FID_STACK_INVALID.
4389 (frame_id_p): Don't check for outer_frame_id.
4390
8efaf6b3
SM
43912020-08-31 Simon Marchi <simon.marchi@efficios.com>
4392
4393 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4394 regnum/frame in value. Call allocate_value_lazy.
4395 * frame.c (frame_unwind_register_value): Use
4396 val_print_not_saved.
4397
fe1fe7ea
SM
43982020-08-31 Simon Marchi <simon.marchi@efficios.com>
4399
4400 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4401
f7c7700d
PA
44022020-08-29 Pedro Alves <pedro@palves.net>
4403
4404 * progspace.c (print_program_space): Use all_inferiors. Switch to
4405 the inferior before calling target_pid_to_str.
4406
e0814aae
TT
44072020-08-28 Tom Tromey <tom@tromey.com>
4408
4409 * xcoffread.c (xcoff_end_psymtab): Update comment.
4410 * dbxread.c (dbx_end_psymtab): Update comment.
4411
626d2320
TV
44122020-08-28 Tom de Vries <tdevries@suse.de>
4413
4414 PR breakpoint/26544
4415 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4416 event_location.
4417 (create_breakpoint): Same.
4418 (base_breakpoint_decode_location): Same.
4419 (bkpt_create_sals_from_location): Same.
4420 (bkpt_decode_location): Same.
4421 (bkpt_probe_create_sals_from_location): Same.
4422 (bkpt_probe_decode_location): Same.
4423 (tracepoint_create_sals_from_location): Same.
4424 (tracepoint_decode_location): Same.
4425 (tracepoint_probe_decode_location): Same.
4426 (strace_marker_create_sals_from_location): Same.
4427 (strace_marker_decode_location): Same.
4428 (create_sals_from_location_default): Same.
4429 (decode_location_default): Same.
4430 * breakpoint.h (struct breakpoint_ops): Same.
4431 (create_breakpoint): Same.
4432 * linespec.h (decode_line_full): Same.
4433 * linespec.c (decode_line_full): Same. Throw error if
4434 result.size () == 0.
4435
df631783
PA
44362020-08-27 Pedro Alves <pedro@palves.net>
4437
4438 PR gdb/26524
4439 * breakpoint.c (until_break_fsm) <location_breakpoint,
4440 caller_breakpoint>: Delete fields.
4441 <breakpoints>: New field.
4442 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4443 two individual breakpoints.
4444 (until_break_fsm::should_stop): Loop over breakpoints in the
4445 breakpoint vector.
4446 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4447 vector.
4448 (until_break_command): Handle location expanding into multiple
4449 sals.
4450
b2b38aa4
PA
44512020-08-27 Pedro Alves <pedro@palves.net>
4452
4453 PR gdb/26523
4454 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4455 bp_until breakpoints user-specified locations. Update intro
4456 comment.
4457
b886559f
SM
44582020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4459
4460 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4461 gdb_bfd_sections): New.
4462 * maint.c (print_bfd_section_info): Change param type to
4463 maint_print_section_data.
4464 (print_objfile_section_info): Likewise.
4465 (print_bfd_section_info_maybe_relocated): Likewise.
4466 (maintenance_info_sections): Use gdb_bfd_sections.
4467
4c6e63bf
SV
44682020-08-25 Shahab Vahedi <shahab@synopsys.com>
4469
4470 * MAINTAINERS: Add ARC target and maintainer.
4471
8d7f0635
AK
44722020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4473
4474 * configure.tgt: ARC support for GNU/Linux.
4475 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4476 * arc-linux-tdep.c: New file.
4477 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4478 * arc-tdep.c (arc_write_pc): Use it.
4479
fdd8731b
SV
44802020-08-25 Shahab Vahedi <shahab@synopsys.com>
4481
4482 * arc-tdep.c (arc_check_for_hardware_loop): New.
4483 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4484
22459524
SV
44852020-08-25 Shahab Vahedi <shahab@synopsys.com>
4486
4487 * arc-tdep.h: Include "gdbarch.h".
4488
995d3a19
SV
44892020-08-25 Shahab Vahedi <shahab@synopsys.com>
4490
4491 * arch/arc.h
4492 (arc_gdbarch_features): New class to stir the selection of target XML.
4493 (arc_create_target_description): Use FEATURES to choose XML target.
4494 (arc_lookup_target_description): Use arc_create_target_description
4495 to create _new_ target descriptions or return the already created
4496 ones if the FEATURES is the same.
4497 * arch/arc.c: Implementation of prototypes described above.
4498 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4499 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4500 * arc-tdep.c (*_feature_name): Make feature names consistent.
4501 (arc_register_feature): A new struct to hold information about
4502 registers of a particular target/feature.
4503 (arc_check_tdesc_feature): Check if XML provides registers in
4504 compliance with ARC_REGISTER_FEATURE structs.
4505 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4506 (determine_*_reg_feature_set): Which feature name to look for.
4507 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4508 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4509 to expected ISA enums to be used in arc_gdbarch_features structs.
4510 * features/Makefile (FEATURE_XMLFILES): Add new files.
4511 * gdb/features/arc/v1-aux.c: New file.
4512 * gdb/features/arc/v1-aux.xml: Likewise.
4513 * gdb/features/arc/v1-core.c: Likewise.
4514 * gdb/features/arc/v1-core.xml: Likewise.
4515 * gdb/features/arc/v2-aux.c: Likewise.
4516 * gdb/features/arc/v2-aux.xml: Likewise.
4517 * gdb/features/arc/v2-core.c: Likewise.
4518 * gdb/features/arc/v2-core.xml: Likewise.
4519 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4520
3945d2d7
GM
45212020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4522 Andrew Burgess <andrew.burgess@embecosm.com>
4523
4524 PR m2/26372
fc5d6901 4525 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4526 an assert. Remove single element array indexing pattern as the
4527 MULTI_SUBSCRIPT support will handle this case too.
4528
2677f2d3
SM
45292020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4530
4531 * value.h (valprint_check_validity): Move declaration from
4532 here...
4533 * valprint.h (valprint_check_validity): ... to here.
4534
c426fddb
SM
45352020-08-24 Simon Marchi <simon.marchi@efficios.com>
4536
4537 * debug.h: New file.
4538 * debug.c (debug_prefixed_vprintf): New function.
4539 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4540 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4541
1eb8556f
SM
45422020-08-24 Simon Marchi <simon.marchi@efficios.com>
4543
4544 * infrun.h (infrun_debug_printf_1): New function declaration.
4545 (infrun_debug_printf): New macro.
4546 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4547 throughout.
4548 (infrun_debug_printf): New function.
4549 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4550 (handle_jit_event): Likewise.
4551
b8fff44e
MW
45522020-08-21 Mark Wielaard <mark@klomp.org>
4553
4554 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4555
d19c3068
SM
45562020-08-22 Simon Marchi <simon.marchi@efficios.com>
4557
4558 * frame.c (enum class frame_id_status): New.
4559 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4560 (fprintf_frame): Update.
4561 (compute_frame_id): Set frame id status to "computing" on entry.
4562 Set it back to "not_computed" on failure and to "computed" on
4563 success.
4564 (get_frame_id): Assert the frame id is not being computed.
4565 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4566 (create_new_frame): Likewise.
4567 (frame_cleanup_after_sniffer): Update assert.
4568
b70e516e
SM
45692020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4570
4571 * regcache.c (pid_ptid_regcache_map): New type.
4572 (target_ptid_regcache_map): Remove.
4573 (target_pid_ptid_regcache_map): New type.
4574 (regcaches): Change type to target_pid_ptid_regcache_map.
4575 (get_thread_arch_aspace_regcache): Update.
4576 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4577 case.
4578 (regcaches_size): Update.
4579 (regcache_count): Update.
4580 (registers_changed_ptid_target_pid_test): New.
4581 (_initialize_regcache): Register new test.
4582
cdd9148a
SM
45832020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4584
4585 * regcache.c (regcache_count): New.
4586 (struct regcache_test_data): New.
4587 (regcache_test_data_up): New.
4588 (populate_regcaches_for_test): New.
4589 (regcaches_test): Remove.
4590 (get_thread_arch_aspace_regcache_test): New.
4591 (registers_changed_ptid_all_test): New.
4592 (registers_changed_ptid_target_test): New.
4593 (registers_changed_ptid_target_ptid_test): New.
4594 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4595 (_initialize_regcache): Register new tests.
4596
dd125343
SM
45972020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4598
4599 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4600 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4601 gdbarch and aspace parameter. Use current inferior's aspace.
4602 Validate regcache's arch value.
4603 (regcaches_test): Update.
4604
3ee93972
SM
46052020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4606
4607 * regcache.c (regcaches_test): Call registers_changed.
4608
33bf4c5c
TBA
46092020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4610
4611 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4612
c2fd7fae
AKS
46132020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4614
4615 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4616 to find the end of prologue for flang compiled binaries.
4617 * arm-tdep.c (arm_skip_prologue): Likewise.
4618 * i386-tdep.c (i386_skip_prologue): Likewise.
4619 * producer.c (producer_is_llvm): New function.
4620 (producer_parsing_tests): Added new tests for clang/flang.
4621 * producer.h (producer_is_llvm): New declaration.
4622
9327494e
SM
46232020-08-18 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * linux-nat.c (linux_nat_debug_printf): New function.
4626 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4627
d138725a
AM
46282020-08-18 Aaron Merey <amerey@redhat.com>
4629
4630 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4631 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4632 (CLIBS): Add DEBUGINFOD_LIBS.
4633
f9b11e6b
ST
46342020-08-17 Sergei Trofimovich <siarheit@google.com>
4635
4636 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4637 'gdbarch_num_regs'.
4638
3ae7ab99
TT
46392020-08-17 Tom Tromey <tromey@adacore.com>
4640
4641 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4642 ada_get_decoded_value returns NULL.
4643
b017825f
TT
46442020-08-17 Tom Tromey <tromey@adacore.com>
4645
4646 * python/py-inferior.c (infpy_search_memory): Use
4647 gdb_py_object_from_ulongest.
4648 * python/py-infevents.c (create_inferior_call_event_object)
4649 (create_memory_changed_event_object): Use
4650 gdb_py_object_from_ulongest.
4651 * python/py-linetable.c (ltpy_entry_get_pc): Use
4652 gdb_py_object_from_ulongest.
4653
7635cf79
SM
46542020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4655
4656 * loc.c (class symbol_needs_eval_context): Fix indentation.
4657
f54be24b
SM
46582020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4659
4660 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4661 bool.
4662
53d5a2a5
TV
46632020-08-17 Tom de Vries <tdevries@suse.de>
4664
4665 PR gdb/26393
4666 * gdbtypes.c (dump_dynamic_prop): New function.
4667 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4668
547ce8f0
TV
46692020-08-15 Tom de Vries <tdevries@suse.de>
4670
4671 PR backtrace/26390
4672 * stack.c (print_frame_args): Temporarily set the selected
4673 frame to FRAME while printing the frame's arguments.
4674
6ea815e7
PFC
46752020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4676
4677 PR breakpoints/26385
4678 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4679 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4680
6e562fa3
PFC
46812020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4682
4683 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4684 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4685 and >= to check return value instead of == -1 and != -1.
4686
d369b608
SM
46872020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4688
4689 * utils.h (class gdb_argv) <as_array_view>: New method.
4690 * utils.c (gdb_argv_as_array_view_test): New.
4691 (_initialize_utils): Register selftest.
4692 * maint.c (maintenance_selftest): Use the new method.
4693
b31488a3
KR
46942020-08-13 Kamil Rytarowski <n54@gmx.com>
4695
4696 * target.h (supports_dumpcore, dumpcore): New
4697 function declarations.
4698 * target.c (supports_dumpcore, dumpcore): New
4699 functions.
4700 * target-delegates.c: Rebuild.
4701 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4702 and target_dumpcore ().
4703
002a3166
AM
47042020-08-13 Aaron Merey <amerey@redhat.com>
4705
4706 * debuginfod-support.c: Replace global variables with user_data.
4707
ece5bc8a
SM
47082020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4709
4710 * maint.c (maintenance_selftest): Split args and pass array_view
4711 to run_tests.
4712
6d8a0a5e
LM
47132020-08-12 Luis Machado <luis.machado@linaro.org>
4714
4715 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4716 type's length.
4717 Use %s and pulongest to print the length.
4718
7cf663a9
PA
47192020-08-12 Pedro Alves <palves@redhat.com>
4720
4721 * NEWS: Move "Multi-target debugging support" item to the
4722 "Changes since GDB 9" section.
4723
27c7b875
PA
47242020-08-12 Pedro Alves <palves@redhat.com>
4725
4726 PR gdb/26336
4727 * progspace.c (program_space::remove_objfile): Invalidate the
4728 frame cache.
4729
1796a2a1
TV
47302020-08-11 Tom de Vries <tdevries@suse.de>
4731
4732 * MAINTAINERS: Mark ms1 as deleted.
4733
f8e3fe0d
LM
47342020-08-10 Luis Machado <luis.machado@linaro.org>
4735
4736 PR gdb/26310
4737
4738 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4739 act accordingly.
4740 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4741 movz/str/stur/stp skipping behavior.
4742
cc308722
LM
47432020-08-10 Luis Machado <luis.machado@linaro.org>
4744
4745 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4746 struct user_sve_header instead of struct sve_context.
4747
041d9819
SM
47482020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4749
4750 * read.h (dwarf2_fetch_die_loc_sect_off,
4751 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4752 `void *` parameter with function_view.
4753 * read.c (dwarf2_fetch_die_loc_sect_off,
4754 dwarf2_fetch_die_loc_cu_off): Likewise.
4755 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4756 (per_cu_dwarf_call): Adjust.
4757 (get_frame_address_in_block_wrapper): Remove.
4758 (indirect_synthetic_pointer): Adjust.
4759 (get_ax_pc): Remove.
4760 (dwarf2_compile_expr_to_ax): Adjust.
4761
38f8aa06
TV
47622020-08-08 Tom de Vries <tdevries@suse.de>
4763
4764 PR build/26344
4765 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4766 constructor.
4767 * regcache.c (get_thread_arch_aspace_regcache): Same.
4768
a52b3ae2
TT
47692020-08-07 Tom Tromey <tromey@adacore.com>
4770
4771 * ravenscar-thread.c
4772 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4773 New method.
4774 (ravenscar_thread_target::wait): Check
4775 runtime_initialized.
4776 (ravenscar_thread_target::prepare_to_store)
4777 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4778 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4779 (ravenscar_thread_target::stopped_by_watchpoint)
4780 (ravenscar_thread_target::stopped_data_address)
4781 (ravenscar_thread_target::core_of_thread): Use
4782 scoped_restore_current_thread and
4783 set_base_thread_from_ravenscar_task.
4784
0e29517d
TT
47852020-08-07 Tom Tromey <tromey@adacore.com>
4786
4787 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4788
592f9bd7
TT
47892020-08-07 Tom Tromey <tromey@adacore.com>
4790
4791 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4792 update_inferior_ptid before update_thread_list.
4793 (temporarily_change_regcache_ptid): New class.
4794 (ravenscar_thread_target::fetch_registers)
4795 (ravenscar_thread_target::store_registers)
4796 (ravenscar_thread_target::prepare_to_store): Use base thread when
4797 forwarding operation.
4798
39e2018a
TT
47992020-08-07 Tom Tromey <tromey@adacore.com>
4800
4801 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4802 "is_pid" case.
4803
2080266b
TT
48042020-08-07 Tom Tromey <tromey@adacore.com>
4805
4806 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4807 New methods.
4808 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4809 first.
4810 (ravenscar_thread_target::add_thread): Rename from
4811 ravenscar_add_thread.
4812 (ravenscar_thread_target::update_thread_list): Use a lambda.
4813 (ravenscar_thread_target::xfer_partial): New method.
4814
78c02f21
TT
48152020-08-07 Tom Tromey <tromey@adacore.com>
4816
4817 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4818 gdb::function_view.
4819 (iterate_over_live_ada_tasks): Change type of argument.
4820 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4821 of argument.
4822
d5d833af
TT
48232020-08-07 Tom Tromey <tromey@adacore.com>
4824
4825 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4826 Remove.
4827 (ravenscar_thread_target::extra_thread_info): Remove.
4828 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4829 defer to target beneath for non-Ravenscar threads.
4830
a8ac85bb
TT
48312020-08-07 Tom Tromey <tromey@adacore.com>
4832
4833 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4834 get_base_thread_from_ravenscar_task>: Now methods.
4835 <m_cpu_map>: New member.
4836 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4837 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4838 (ravenscar_thread_target::task_is_currently_active): Update.
4839 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4840 Now a method.
4841 (ravenscar_thread_target::add_active_thread): Put initial thread
4842 into the m_cpu_map.
4843
550ab58d
TT
48442020-08-07 Tom Tromey <tromey@adacore.com>
4845
4846 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4847 event_ptid.
4848
e9546579
TT
48492020-08-07 Tom Tromey <tromey@adacore.com>
4850
4851 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4852 runtime_initialized.
4853
3d4470e5
TT
48542020-08-07 Tom Tromey <tromey@adacore.com>
4855
4856 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4857 add_active_thread.
4858 (ravenscar_thread_target::add_active_thread): Now public.
4859 (ravenscar_inferior_created): Call add_active_thread after pushing
4860 the target.
4861
888bdb2b
SM
48622020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4863
4864 * regcache.c (ptid_regcache_map): New type.
4865 (target_ptid_regcache_map): New type.
4866 (regcaches): Change type to target_ptid_regcache_map.
4867 (get_thread_arch_aspace_regcache): Update to regcaches' new
4868 type.
4869 (regcache_thread_ptid_changed): Likewise.
4870 (registers_changed_ptid): Likewise.
4871 (regcaches_size): Likewise.
4872 (regcaches_test): Update.
4873 (regcache_thread_ptid_changed): Update.
4874 * regcache.h (regcache_up): New type.
4875 * gdbsupport/ptid.h (hash_ptid): New struct.
4876
b161a60d
SM
48772020-08-07 Simon Marchi <simon.marchi@efficios.com>
4878
4879 * observable.h (thread_ptid_changed): Add parameter
4880 `process_stratum_target *`.
4881 * infrun.c (infrun_thread_ptid_changed): Add parameter
4882 `process_stratum_target *` and use it.
4883 (selftests): New namespace.
4884 (infrun_thread_ptid_changed): New function.
4885 (_initialize_infrun): Register selftest.
4886 * regcache.c (regcache_thread_ptid_changed): Add parameter
4887 `process_stratum_target *` and use it.
4888 (regcache_thread_ptid_changed): New function.
4889 (_initialize_regcache): Register selftest.
4890 * thread.c (thread_change_ptid): Pass target to
4891 thread_ptid_changed observable.
4892
d2854d8d
CT
48932020-08-06 Caroline Tice <cmtice@google.com>
4894
fe4c3d43
SM
4895 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4896 (struct dwp_sections): Update field comments. Add loclists and
4897 rnglists fields.
4898 (struct virtual_v2_dwo_sections): Rename struct to
4899 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4900 size & offset fields for loclists and rnglists.
4901 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4902 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4903 skipping dummy type units.
4904 (create_dwp_hash_table): Update the large comment above the function to
4905 discuss Version 5 DWP files as well, with references. Update all the
4906 version checks in the function to check for version 5 as well. Add new
4907 section at the end to create dwp hash table for version 5.
4908 (create_dwp_v2_section): Rename function to
4909 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4910 Add V5 to error message text.
4911 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4912 into calls to create_dwp_v2_or_v5_section.
4913 (create_dwo_unit_in_dwp_v5): New function.
4914 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4915 check for version2; add else clause to handle version 5.
4916 (open_and_init_dwo_file): Add code to check dwarf version & only call
4917 create_debug_types_hash_table (with sections.types) if version is not 5;
4918 else call create_debug_type_hash_table, with sections.info.
4919 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4920 version 5.
4921 (dwarf2_locate_v5_dwp_sections): New function.
4922 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4923 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4924
159ed7d9
SM
49252020-08-06 Simon Marchi <simon.marchi@efficios.com>
4926
4927 * regcache.h (class regcache): Remove friend
4928 registers_changed_ptid.
4929 <regcache_thread_ptid_changed>: Remove.
4930 <regcaches>: Remove.
4931 * regcache.c (regcache::regcaches): Rename to...
4932 (regcaches): ... this. Make static.
4933 (get_thread_arch_aspace_regcache): Update.
4934 (regcache::regcache_thread_ptid_changed): Rename to...
4935 (regcache_thread_ptid_changed): ... this. Update.
4936 (class regcache_access): Remove.
4937 (regcaches_test): Update.
4938 (_initialize_regcache): Update.
4939 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4940 <forward_list>.
4941
174981ae
SM
49422020-08-06 Simon Marchi <simon.marchi@efficios.com>
4943
4944 * regcache.h (class regcache) <current_regcache>: Rename to...
4945 <regcaches>: ... this. Move doc here.
4946 * regcache.c (regcache::current_regcache) Rename to...
4947 (regcache::regcaches): ... this. Move doc to header.
4948 (get_thread_arch_aspace_regcache): Update.
4949 (regcache::regcache_thread_ptid_changed): Update.
4950 (registers_changed_ptid): Update.
4951 (class regcache_access) <current_regcache_size>: Rename to...
4952 <regcaches_size>: ... this.
4953 (current_regcache_test): Rename to...
4954 (regcaches_test): ... this.
4955 (_initialize_regcache): Update.
4956
ed908db6
VC
49572020-08-06 Victor Collod <vcollod@nvidia.com>
4958
4959 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4960
b5582ab7
KB
49612020-08-05 Kevin Buettner <kevinb@redhat.com>
4962
4963 * corelow.c (core_target::build_file_mappings): Don't output
4964 null pathname in warning.
4965
ea946b86
SM
49662020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4967
4968 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4969 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4970 gdb.dwarf2/dw2-single-line-discriminators.exp,
4971 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4972
57d02173
TT
49732020-08-05 Tom Tromey <tromey@adacore.com>
4974
4975 PR rust/26197:
4976 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4977 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4978 Fix off-by-one and type size errors in ordinary case.
4979
5555c86d
TV
49802020-08-05 Tom de Vries <tdevries@suse.de>
4981
4982 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4983 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4984
97916bfe
SM
49852020-08-04 Simon Marchi <simon.marchi@efficios.com>
4986
4987 * frame.h (frame_id_p): Return bool.
4988 (frame_id_artificial_p): Return bool.
4989 (frame_id_eq): Return bool.
4990 (has_stack_frames): Return bool.
4991 (get_selected_frame): Fix typo in comment.
4992 (get_frame_pc_if_available): Return bool.
4993 (get_frame_address_in_block_if_available): Return bool.
4994 (get_frame_func_if_available): Return bool.
4995 (read_frame_register_unsigned): Return bool.
4996 (get_frame_register_bytes): Return bool.
4997 (safe_frame_unwind_memory): Return bool.
4998 (deprecated_frame_register_read): Return bool.
4999 (frame_unwinder_is): Return bool.
5000 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5001 bool.
5002 <this_id::p>: Likewise.
5003 <prev_p>: Likewise.
5004 (frame_stash_add): Return bool.
5005 (get_frame_id): Use bool.
5006 (frame_id_build_special) Use bool.
5007 (frame_id_build_unavailable_stack): Use bool.
5008 (frame_id_build): Use bool.
5009 (frame_id_p): Return bool, use true/false instead of 1/0.
5010 (frame_id_artificial_p): Likewise.
5011 (frame_id_eq): Likewise.
5012 (frame_id_inner): Likewise.
5013 (get_frame_func_if_available): Likewise.
5014 (read_frame_register_unsigned): Likewise.
5015 (deprecated_frame_register_read): Likewise.
5016 (get_frame_register_bytes): Likewise.
5017 (has_stack_frames): Likewise.
5018 (inside_main_func): Likewise.
5019 (inside_entry_func): Likewise.
5020 (get_frame_pc_if_available): Likewise.
5021 (get_frame_address_in_block_if_available): Likewise.
5022 (frame_unwinder_is): Likewise.
5023 (safe_frame_unwind_memory): Likewise.
5024 (frame_unwind_arch): Likewise.
5025
fedfee88
SM
50262020-08-04 Simon Marchi <simon.marchi@efficios.com>
5027
5028 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5029 type to cached_copy_status.
5030 (fprintf_frame): Adjust.
5031 (get_frame_func_if_available): Adjust.
5032 (frame_cleanup_after_sniffer): Adjust.
5033
6cfa9b59
MW
50342020-08-04 Mark Wielaard <mark@klomp.org>
5035
5036 * MAINTAINERS (Write After Approval): Update email address.
5037
66d6346b
SM
50382020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5039
5040 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5041 dynamic_prop::const_val.
5042
8a6d5e35
SM
50432020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5044
5045 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5046 dynamic_prop::kind.
5047
51d6067d
SM
50482020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5049
5050 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5051
b26e2ae7
JM
50522020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5053
5054 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5055
39791af2
JM
50562020-08-04 Weimin Pan <weimin.pan@oracle.com>
5057 Jose E. Marchesi <jose.marchesi@oracle.com>
5058
5059 * configure.tgt: Add entry for bpf-*-*.
5060 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5061 (ALLDEPFILES): Add bpf-tdep.c.
5062 * bpf-tdep.c: New file.
5063 * MAINTAINERS: Add bpf target and maintainer.
5064 * NEWS: Mention the support for the new target.
5065
521894aa
TV
50662020-08-04 Tom de Vries <tdevries@suse.de>
5067
5068 PR symtab/23270
5069 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5070 Error.
5071
5d6356e9
JB
50722020-08-03 John Baldwin <jhb@FreeBSD.org>
5073
5074 * syscalls/freebsd.xml: Regenerate.
5075
0cf82b81
JB
50762020-08-03 John Baldwin <jhb@FreeBSD.org>
5077
5078 * syscalls/update-freebsd.sh: Fix usage and year range.
5079
8f34b746
TV
50802020-08-03 Tom de Vries <tdevries@suse.de>
5081
5082 PR symtab/26333
5083 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5084 DW_LNE_lo_user/DW_LNE_hi_user range.
5085
5e500d33
SM
50862020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5087
5088 PR ada/26318
5089 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5090 kind.
5091
78319c15
TBA
50922020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5093
5094 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5095
4c55e970
TBA
50962020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5097
5098 * breakpoint.c (set_breakpoint_condition): Update the condition
5099 expressions after checking that the input condition string parses
5100 successfully and does not contain junk at the end.
5101
1e620590
TBA
51022020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5103
5104 * breakpoint.c (set_breakpoint_condition): Update the
5105 condition string after parsing the new condition successfully.
5106
c8693053
RO
51072020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5108
5109 * proc-api.c (_STRUCTURED_PROC): Don't define.
5110 * proc-events.c: Likewise.
5111 * proc-flags.c: Likewise.
5112 * proc-why.c: Likewise.
5113 * procfs.c: Likewise.
5114
5115 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5116 * configure, config.in: Regenerate.
5117
5a99adb8
TV
51182020-07-30 Tom de Vries <tdevries@suse.de>
5119
5120 PR build/26320
5121 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5122 m_red/m_green/m_blue in a union.
5123
8ba83e91
TV
51242020-07-29 Tom de Vries <tdevries@suse.de>
5125
5126 PR tdep/26280
5127 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5128
f75a0693
AB
51292020-07-28 Tom Tromey <tromey@adacore.com>
5130
5131 PR symtab/26270:
5132 * symtab.h (find_pc_partial_function_sym): Declare.
5133 * cli/cli-cmds.c (disassemble_command): Use
5134 find_pc_partial_function_sym. Check asm_demangle.
5135 * blockframe.c (cache_pc_function_sym): New global.
5136 (cache_pc_function_name): Remove.
5137 (clear_pc_function_cache): Update.
5138 (find_pc_partial_function_sym): New function, from
5139 find_pc_partial_function.
5140 (find_pc_partial_function): Rewrite using
5141 find_pc_partial_function_sym.
5142
16f3242c
TT
51432020-07-28 Tom Tromey <tromey@adacore.com>
5144
5145 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5146 help. Add usage.
5147
4888741a
TT
51482020-07-28 Tom Tromey <tromey@adacore.com>
5149
5150 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5151 <DW_OP_GNU_variable_value>: Cast to address type.
5152
4d46f402
KR
51532020-07-28 Kamil Rytarowski <n54@gmx.com>
5154
5155 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5156 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5157 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5158 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5159 (nbsd_get_siginfo_type): New.
5160 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5161 (_initialize_nbsd_tdep): New.
5162
d70f978b
L
51632020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5164
5165 PR binutils/26301
5166 * configure: Regenerated.
5167
377170fa
L
51682020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5169
5170 PR binutils/26301
5171 * configure: Regenerated.
5172
43d5901d
AB
51732020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5174
5175 * python/py-frame.c: Remove 'user-regs.h' include.
5176 (frapy_read_register): Rewrite to make use of
5177 gdbpy_parse_register_id.
5178 * python/py-registers.c (gdbpy_parse_register_id): New function,
5179 moved here from python/py-unwind.c. Updated the return type, and
5180 also accepts register descriptor objects.
5181 * python/py-unwind.c: Remove 'user-regs.h' include.
5182 (pyuw_parse_register_id): Moved to python/py-registers.c.
5183 (unwind_infopy_add_saved_register): Update to use
5184 gdbpy_parse_register_id.
5185 (pending_framepy_read_register): Likewise.
5186 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5187
14fa8fb3
AB
51882020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5189
5190 * python/py-registers.c: Add 'user-regs.h' include.
5191 (register_descriptor_iter_find): New function.
5192 (register_descriptor_iterator_object_methods): New static global
5193 methods array.
5194 (register_descriptor_iterator_object_type): Add pointer to methods
5195 array.
5196
ddce1758
JB
51972020-07-27 John Baldwin <jhb@FreeBSD.org>
5198
5199 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5200 for all architectures on FreeBSD 11.3 and later.
5201
a4089f52
TT
52022020-07-27 Tom Tromey <tromey@adacore.com>
5203
5204 * gcore.h (load_corefile): Don't declare.
5205
95420d30
TV
52062020-07-27 Tom de Vries <tdevries@suse.de>
5207
5208 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5209 * config.in: Regenerate.
5210 * configure: Regenerate.
5211
05a6b8c2
EZ
52122020-07-26 Eli Zaretskii <eliz@gnu.org>
5213
5214 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5215 ws2tcpip.h. When checking whether socklen_t type is defined, use
5216 ws2tcpip.h if it is available and sys/socket.h isn't.
5217 * configure: Regenerate.
5218 * config.in: Regenerate.
5219
e79eb02f
AB
52202020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5221
5222 PR fortran/23051
5223 PR fortran/26139
5224 * valops.c (value_ind): Pass address to
5225 readjust_indirect_value_type.
5226 * value.c (readjust_indirect_value_type): Make parameter
5227 non-const, and add extra address parameter. Resolve original type
5228 before using it.
5229 * value.h (readjust_indirect_value_type): Update function
5230 signature and comment.
5231
876518dd
TV
52322020-07-25 Tom de Vries <tdevries@suse.de>
5233
5234 PR symtab/26243
5235 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5236 entries.
5237
f6720b1c
AM
52382020-07-24 Aaron Merey <amerey@redhat.com>
5239
5240 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5241 * configure: Rebuild.
5242
513487e1
KB
52432020-07-23 Kevin Buettner <kevinb@redhat.com>
5244
5245 PR corefiles/26294
5246 * corelow.c (_initialize_corelow): Add period to help text
5247 for "maintenance print core-file-backed-mappings".
5248
e7bc9db8
PA
52492020-07-23 Pedro Alves <pedro@palves.net>
5250
5251 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5252 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5253 meanwhile.
5254 * frame.c (frame_cache_generation, get_frame_cache_generation):
5255 New.
5256 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5257 (get_prev_frame_if_no_cycle): On exception, don't touch
5258 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5259 * frame.h (get_frame_cache_generation): Declare.
5260
90fcc466
TV
52612020-07-23 Tom de Vries <tdevries@suse.de>
5262
5263 PR tui/26282
5264 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5265 New default constructor.
5266
78344df7
AB
52672020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5268
5269 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5270 exclude non-statement entries.
5271
b089853a
KB
52722020-07-22 Kevin Buettner <kevinb@redhat.com>
5273
5274 * NEWS (New commands): Mention new command
5275 "maintenance print core-file-backed-mappings".
5276
09c2f5d4
KB
52772020-07-22 Kevin Buettner <kevinb@redhat.com>
5278
5279 * corelow.c (gdbcmd.h): Include.
5280 (core_target::info_proc_mappings): New method.
5281 (get_current_core_target): New function.
5282 (maintenance_print_core_file_backed_mappings): New function.
5283 (_initialize_corelow): Add core-file-backed-mappings to
5284 "maint print" commands.
5285
9c5ec5c2 52862020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5287
9c5ec5c2
KB
5288 * linux-tdep.c (dump_note_entry_p): New function.
5289 (linux_dump_mapping_p_ftype): New typedef.
5290 (linux_find_memory_regions_full): Add new parameter,
5291 should_dump_mapping_p.
5292 (linux_find_memory_regions): Adjust call to
5293 linux_find_memory_regions_full.
5294 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5295 call to linux_find_memory_regions_full.
5296
db082f59
KB
52972020-07-22 Kevin Buettner <kevinb@redhat.com>
5298
5299 * corelow.c (solist.h, unordered_map): Include.
5300 (class core_target): Add field m_core_file_mappings and
5301 method build_file_mappings.
5302 (core_target::core_target): Call build_file_mappings.
5303 (core_target::~core_target): Free memory associated with
5304 m_core_file_mappings.
5305 (core_target::build_file_mappings): New method.
5306 (core_target::xfer_partial): Use m_core_file_mappings
5307 for memory transfers.
5308 * linux-tdep.c (linux_read_core_file_mappings): New
5309 function.
5310 (linux_core_info_proc_mappings): Rewrite to use
5311 linux_read_core_file_mappings.
5312 (linux_init_abi): Register linux_read_core_file_mappings.
5313
7e183d27
KB
53142020-07-22 Kevin Buettner <kevinb@redhat.com>
5315
5316 * arch-utils.c (default_read_core_file_mappings): New function.
5317 * arch-utils.c (default_read_core_file_mappings): Declare.
5318 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5319 * gdbarch.h, gdbarch.c: Regenerate.
5320
2735d421
KB
53212020-07-22 Kevin Buettner <kevinb@redhat.com>
5322
5323 PR corefiles/25631
5324 * corelow.c (core_target:xfer_partial): Revise
5325 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5326 case after first checking the stratum beneath the core
5327 target.
5328 (has_all_memory): Return true.
5329 * target.c (raw_memory_xfer_partial): Revise comment
5330 regarding use of has_all_memory.
5331
e56cb451
KB
53322020-07-22 Kevin Buettner <kevinb@redhat.com>
5333
5334 * exec.h (section_table_xfer_memory): Revise declaration,
5335 replacing section name parameter with an optional callback
5336 predicate.
5337 * exec.c (section_table_xfer_memory): Likewise.
5338 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5339 of section_table_xfer_memory.
5340
32fa152e
TT
53412020-07-22 Tom Tromey <tromey@adacore.com>
5342
5343 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5344 lookup_symbol_search_name.
5345
a67a1c41
AB
53462020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5347
5348 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5349 redundant local variable.
5350 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5351 reference, not pointer, update code accordingly.
5352
a7b4ff4f
SM
53532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5354 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5355
5356 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5357 * jit.c (jit_breakpoint_re_set_internal): Use the
5358 `skip_jit_symbol_lookup` field.
5359
2340e834
SM
53602020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5361 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5362
5363 * jit.c (jit_read_descriptor): Define the descriptor address once,
5364 use twice.
5365 (jit_breakpoint_deleted): Move the declaration of the loop variable
5366 `iter` into the loop header.
5367 (jit_breakpoint_re_set_internal): Move the declaration of the local
5368 variable `objf_data` to the first point of definition.
5369 (jit_event_handler): Move the declaration of local variables
5370 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5371 Rename `objf` to `jited`.
5372
c1072906
SM
53732020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5374
5375 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5376 Remove.
5377 * jit.c (get_jiter_objfile_data): Update.
5378
c8474dc3
TBA
53792020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5380 Simon Marchi <simon.marchi@polymtl.ca>
5381
5382 * jit.c (struct jit_program_space_data): Remove.
5383 (jit_program_space_key): Remove.
5384 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5385 stuff.
5386 (get_jit_program_space_data): Remove.
5387 (jit_breakpoint_deleted): Iterate on all of the program space's
5388 objfiles.
5389 (jit_inferior_init): Likewise.
5390 (jit_breakpoint_re_set_internal): Likewise. Also change return
5391 type to void.
5392 (jit_breakpoint_re_set): Pass current_program_space to
5393 jit_breakpoint_re_set_internal.
5394
77208eb7
SM
53952020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5396
5397 * jit.h (struct jiter_objfile_data) <cached_code_address,
5398 jit_breakpoint>: Move to here from ...
5399 * jit.c (jit_program_space_data): ... here.
5400 (jiter_objfile_data::~jiter_objfile_data): Update.
5401 (jit_breakpoint_deleted): Update.
5402 (jit_breakpoint_re_set_internal): Update.
5403
8c1c720f
SM
54042020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5405
5406 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5407 checks.
5408 (jit_read_descriptor): Remove NULL check.
5409 (jit_event_handler): Add an assertion.
5410
0e74a041
SM
54112020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5412
5413 * jit.h (struct jit_objfile_data): Split into...
5414 (struct jiter_objfile_data): ... this ...
5415 (struct jited_objfile_data): ... and this.
5416 * objfiles.h (struct objfile) <jit_data>: Remove.
5417 <jiter_data, jited_data>: New fields.
5418 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5419 (jiter_objfile_data::~jiter_objfile_data): ... this.
5420 (get_jit_objfile_data): Rename to ...
5421 (get_jiter_objfile_data): ... this.
5422 (add_objfile_entry): Update.
5423 (jit_read_descriptor): Use get_jiter_objfile_data.
5424 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5425 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5426 (jit_inferior_exit_hook): Use objfile's jited_data field.
5427
238b5c9f
SM
54282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5429
5430 * jit.h: Forward-declare `struct minimal_symbol`.
5431 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5432 constructor, destructor, and an objfile* field.
5433 * jit.c (jit_objfile_data): Remove.
5434 (struct jit_objfile_data): Migrate from here to jit.h.
5435 (jit_objfile_data::~jit_objfile_data): New destructor
5436 implementation with code moved from free_objfile_data.
5437 (free_objfile_data): Delete.
5438 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5439 (jit_find_objf_with_entry_addr): Ditto.
5440 (jit_inferior_exit_hook): Ditto.
5441 (_initialize_jit): Remove the call to
5442 register_objfile_data_with_cleanup.
5443 * objfiles.h (struct objfile) <jit_data>: New field.
5444
fe053b9e
TBA
54452020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5446
5447 * jit.h: Forward-declare `struct objfile`.
5448 (jit_event_handler): Add a second parameter, the JITer objfile.
5449 * jit.c (jit_read_descriptor): Change the signature to take the
5450 JITer objfile as an argument instead of the jit_program_space_data.
5451 (jit_inferior_init): Update the call to jit_read_descriptor.
5452 (jit_event_handler): Use the new JITer objfile argument when calling
5453 jit_read_descriptor.
5454 * breakpoint.c (handle_jit_event): Update the call to
5455 jit_event_handler to pass the JITer objfile.
5456
4cec0c66
JB
54572020-07-21 John Baldwin <jhb@FreeBSD.org>
5458
5459 * gdbarch.c: Regenerate.
5460 * gdbarch.h: Regenerate.
5461 * gdbarch.sh (handle_segmentation_fault): Remove method.
5462 * infrun.c (handle_segmentation_fault): Remove.
5463 (print_signal_received_reason): Remove call to
5464 handle_segmentation_fault.
5465
0e42f66a
JB
54662020-07-21 John Baldwin <jhb@FreeBSD.org>
5467
5468 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5469 Rename to sparc64_linux_report_signal_info and add siggnal
5470 argument.
5471 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5472 instead of sparc64_linux_handle_segmentation_fault.
5473
77bdfeb2
JB
54742020-07-21 John Baldwin <jhb@FreeBSD.org>
5475
5476 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5477 i386_linux_report_signal_info instead of
5478 i386_linux_handle_segmentation_fault.
5479 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5480 to i386_linux_report_signal_info and add siggnal argument.
5481 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5482 of i386_linux_handle_segmentation_fault.
5483 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5484 to i386_linux_report_signal_info and add siggnal argument.
5485
ad97bfc5
JB
54862020-07-21 John Baldwin <jhb@FreeBSD.org>
5487
5488 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5489 hook if present.
5490
272bb05c
JB
54912020-07-21 John Baldwin <jhb@FreeBSD.org>
5492
5493 * gdbarch.c: Regenerate.
5494 * gdbarch.h: Regenerate.
5495 * gdbarch.sh (report_signal_info): New method.
5496 * infrun.c (print_signal_received_reason): Invoke gdbarch
5497 report_signal_info hook if present.
5498
baf8791e
AB
54992020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5500
5501 * python/py-registers.c : Add 'unordered_map' include.
5502 (gdbpy_new_reggroup): Renamed to...
5503 (gdbpy_get_reggroup): ...this. Update to only create register
5504 group descriptors when needed.
5505 (gdbpy_reggroup_iter_next): Update.
5506
f7306dac
AB
55072020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5508
5509 * python/py-registers.c (gdbpy_register_object_data): New static
5510 global.
5511 (gdbpy_register_object_data_init): New function.
5512 (gdbpy_new_register_descriptor): Renamed to...
5513 (gdbpy_get_register_descriptor): ...this, and update to reuse
5514 existing register descriptors where possible.
5515 (gdbpy_register_descriptor_iter_next): Update.
5516 (gdbpy_initialize_registers): Register new gdbarch data.
5517
05c309a8
SM
55182020-07-21 Simon Marchi <simon.marchi@efficios.com>
5519
5520 * linux-nat.c (stopped_pids): Make static.
5521
d1fd641e
SM
55222020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5523
5524 PR ada/26235
5525 * gdbtypes.c (ada_discrete_type_low_bound,
5526 ada_discrete_type_high_bound): Handle undefined bounds.
5527
1de14d77
KR
55282020-07-21 Kamil Rytarowski <n54@gmx.com>
5529
5530 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5531 declaration.
5532 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5533 function.
5534
ed810cc7
JB
55352020-07-20 John Baldwin <jhb@FreeBSD.org>
5536
5537 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5538 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5539 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5540 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5541 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5542 method.
5543
ae5369e7
LC
55442020-07-20 Ludovic Courtès <ludo@gnu.org>
5545
5546 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5547 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5548 which are deprecated in Guile 3.0.
5549 * configure.ac (try_guile_versions): Add "guile-3.0".
5550 * configure (try_guile_versions): Regenerate.
5551 * NEWS: Update entry.
5552
68cf161c
LC
55532020-07-20 Ludovic Courtès <ludo@gnu.org>
5554 Doug Evans <dje@google.com>
5555
5556 PR gdb/21104
5557 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5558 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5559 USING_GUILE_BEFORE_2_2.
5560 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5561 Change type to 'scm_t_port_type *'.
5562 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5563 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5564 parameter and honor it. Update callers.
5565 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5566 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5567 functions.
5568 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5569 USING_GUILE_BEFORE_2_2.
5570 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5571 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5572 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5573 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5574 and 'SCM_PORT_TYPE'.
5575 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5576 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5577 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5578 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5579 [!USING_GUILE_BEFORE_2_2]: New functions.
5580 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5581 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5582 'gdbscm_memory_port_read'.
5583 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5584 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5585 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5586 function.
5587 (ioscm_init_memory_port): Remove.
5588 (ioscm_init_memory_port_stream): New function
5589 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5590 function.
5591 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5592 Return scm_from_uint (0).
5593 (gdbscm_set_memory_port_read_buffer_size_x)
5594 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5595 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5596 Return scm_from_uint (0).
5597 (gdbscm_set_memory_port_write_buffer_size_x)
5598 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5599 * configure.ac (try_guile_versions): Add "guile-2.2".
5600 * configure: Regenerate.
5601 * NEWS: Add entry.
5602
aee91db3
TT
56032020-07-18 Tom Tromey <tom@tromey.com>
5604
5605 * linux-nat.c (linux_multi_process): Remove.
5606 (linux_nat_target::supports_multi_process): Return true.
5607
0e267416
AB
56082020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5609
5610 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5611 (riscv_lookup_target_description): Return pointer out of
5612 unique_ptr.
5613 * target-descriptions.c (allocate_target_description): Add
5614 comment.
5615 (target_desc_deleter::operator()): Likewise.
5616 * target-descriptions.h (struct target_desc_deleter): Moved to
5617 gdbsupport/tdesc.h.
5618 (target_desc_up): Likewise.
5619
f80c8ec4
TT
56202020-07-17 Tom Tromey <tromey@adacore.com>
5621
5622 * linux-nat.c (linux_nat_target::supports_non_stop)
5623 (linux_nat_target::always_non_stop_p): Use "true".
5624 (linux_nat_target::supports_disable_randomization): Use "true" and
5625 "false".
5626
d0ce17d8
CT
56272020-07-16 Caroline Tice <cmtice@google.com>
5628
5629 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5630 (RNGLIST_HEADER_SIZE64): New constant definition.
5631 (struct dwop_section_names): Add rnglists_dwo.
5632 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5633 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5634 (struct dwo_sections): Add rnglists field.
5635 (read_attribut_reprocess): Add tag parameter.
5636 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5637 (cu_debug_rnglists_section): New function (decl & definition).
5638 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5639 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5640 die whose range is being checked; get rnglist section from
5641 cu_debug_rnglists_section, to get from either objfile or dwo file as
5642 appropriate. Add cases for DW_RLE_base_addressx,
5643 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5644 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5645 test inside if-condition and updating complaint message.
5646 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5647 dwarf2_rnglists_process.
5648 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5649 dwarf2_ranges_process.
5650 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5651 need_ranges_base and update comment appropriately. Also pass die tag
5652 to dwarf2_ranges_read.
5653 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5654 need_ranges_base and update comment appropriately. Also pass die tag
5655 to dwarf2_ranges_process.
5656 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5657 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5658 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5659 need_ranges_base and update comment appropriately. Also pass die tag
5660 to read_attribute_reprocess and dwarf2_ranges_read.
5661 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5662 and update function comment appropriately.
5663 (read_loclist_index): Call read_loclists_rnglists_header instead of
5664 read_loclist_header.
5665 (read_rnglist_index): New function.
5666 (read_attribute_reprocess): Add tag parameter. Add code for
5667 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5668 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5669
3dcc261c
AB
56702020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5671
5672 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5673 being resolved.
5674
ccb9eba6
AB
56752020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5676
5677 * arch-utils.c (show_architecture): Update formatting of messages.
5678
cf88be68
SM
56792020-07-12 Simon Marchi <simon.marchi@efficios.com>
5680
5681 * gdbtypes.h (struct type) <bounds>: Handle array and string
5682 types.
5683 * ada-lang.c (assign_aggregate): Use type::bounds on
5684 array/string type.
5685 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5686 * c-varobj.c (c_number_of_children): Likewise.
5687 (c_describe_child): Likewise.
5688 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5689 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5690 (f_type_print_base): Likewise.
5691 * f-valprint.c (f77_array_offset_tbl): Likewise.
5692 (f77_get_upperbound): Likewise.
5693 (f77_print_array_1): Likewise.
5694 * guile/scm-type.c (gdbscm_type_range): Likewise.
5695 * m2-typeprint.c (m2_array): Likewise.
5696 (m2_is_long_set_of_type): Likewise.
5697 * m2-valprint.c (get_long_set_bounds): Likewise.
5698 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5699 * python/py-type.c (typy_range): Likewise.
5700 * rust-lang.c (rust_internal_print_type): Likewise.
5701 * type-stack.c (type_stack::follow_types): Likewise.
5702 * valarith.c (value_subscripted_rvalue): Likewise.
5703 * valops.c (value_cast): Likewise.
5704
509971ae
SM
57052020-07-12 Simon Marchi <simon.marchi@efficios.com>
5706
5707 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5708 callers to use the equivalent accessor methods.
5709
107406b7
SM
57102020-07-12 Simon Marchi <simon.marchi@efficios.com>
5711
5712 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5713 (struct type) <bit_stride>: New method.
5714 (TYPE_BIT_STRIDE): Remove.
5715 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5716
bb789949
SM
57172020-07-12 Simon Marchi <simon.marchi@efficios.com>
5718
5719 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5720 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5721 callers to use the equivalent accessor methods instead.
5722
39498edb
SM
57232020-07-12 Simon Marchi <simon.marchi@efficios.com>
5724
5725 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5726 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5727 callers to use the equivalent accessor methods instead.
5728
3b606f38
SM
57292020-07-12 Simon Marchi <simon.marchi@efficios.com>
5730
5731 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5732 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5733 to use dynamic_prop::kind.
5734
064d9cb9
SM
57352020-07-12 Simon Marchi <simon.marchi@efficios.com>
5736
5737 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5738 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5739 to get the bound property's kind and check against
5740 PROP_UNDEFINED.
5741
5537ddd0
SM
57422020-07-12 Simon Marchi <simon.marchi@efficios.com>
5743
5744 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5745 all callers to use type::range_bounds followed by
5746 dynamic_prop::{low,high}.
5747
8c2e4e06
SM
57482020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5749
5750 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5751 const_val, set_const_val, baton, set_locexpr, set_loclist,
5752 set_addr_offset, variant_parts, set_variant_parts,
5753 original_type, set_original_type>: New methods.
5754 <kind>: Rename to...
5755 <m_kind>: ... this. Update all users to use the new methods
5756 instead.
5757 <data>: Rename to...
5758 <m_data>: ... this. Update all users to use the new methods
5759 instead.
5760
7c6f2712
SM
57612020-07-12 Simon Marchi <simon.marchi@efficios.com>
5762
5763 * gdbtypes.c (get_discrete_bounds): Return failure if
5764 the range type's bounds are not both defined and constant
5765 values.
5766 (get_array_bounds): Update comment. Remove undefined bound check.
5767
599088e3
SM
57682020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5769
5770 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5771 the type::bounds method directly.
5772
c4dfcb36
SM
57732020-07-12 Simon Marchi <simon.marchi@efficios.com>
5774
5775 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5776 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5777 are used to set the range type's bounds to use set_bounds.
5778
0a278aa7
PW
57792020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5780
5781 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5782
cce20f10
PA
57832020-07-10 Pedro Alves <pedro@palves.net>
5784
5785 * gdbthread.h (inferior_ref): Define.
5786 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5787 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5788 * thread.c
5789 (scoped_restore_current_thread::restore):
5790 Adjust to gdb::ref_ptr.
5791 (scoped_restore_current_thread::~scoped_restore_current_thread):
5792 Remove manual decref handling.
5793 (scoped_restore_current_thread::scoped_restore_current_thread):
5794 Adjust to use
5795 inferior_ref::new_reference/thread_info_ref::new_reference.
5796 Incref the thread before calling get_frame_id instead of after.
5797 Let TARGET_CLOSE_ERROR propagate.
5798
6d7aa592
PA
57992020-07-10 Pedro Alves <pedro@palves.net>
5800
5801 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5802 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5803 NOT_AVAILABLE_ERROR.
5804 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5805 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5806
b3e3a4c1
SM
58072020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5808 Pedro Alves <pedro@palves.net>
5809
5810 PR gdb/26199
5811 * infrun.c (threads_are_resumed_pending_p): Delete.
5812 (do_target_wait): Remove threads_are_executing and
5813 threads_are_resumed_pending_p checks from the inferior_matches
5814 lambda. Update comments.
5815
d6cc5d98
PA
58162020-07-10 Pedro Alves <pedro@palves.net>
5817
5818 PR gdb/26199
5819 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5820 executing threads.
5821
7d3badc6
PA
58222020-07-10 Pedro Alves <pedro@palves.net>
5823
5824 PR gdb/26199
5825 * infrun.c (handle_no_resumed): Handle multiple targets.
5826
42bd97a6
PA
58272020-07-10 Pedro Alves <pedro@palves.net>
5828
5829 PR gdb/26199
5830 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5831 target_is_async_p.
5832
43667cc6
PA
58332020-07-10 Pedro Alves <pedro@palves.net>
5834
5835 PR gdb/26199
5836 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5837 threads, not all threads.
5838
96118d11
PA
58392020-07-10 Pedro Alves <pedro@palves.net>
5840
5841 PR gdb/26199
5842 * remote.c (remote_target::open_1): Pass remote target pointer as
5843 data to create_async_event_handler.
5844 (remote_async_inferior_event_handler): Mark async event handler
5845 before returning if the remote target still has either pending
5846 events or unacknowledged notifications.
5847
54904d81
JB
58482020-07-10 John Baldwin <jhb@FreeBSD.org>
5849
5850 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5851 declaration.
5852 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5853 function.
5854
f37e5866
JB
58552020-07-09 John Baldwin <jhb@FreeBSD.org>
5856
5857 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5858 inferior_ptid.
5859
fc238d4a
JB
58602020-07-09 John Baldwin <jhb@FreeBSD.org>
5861
5862 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5863 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5864 AT_FREEBSD_PS_STRINGS.
5865
6e2469ff
HD
58662020-07-08 Hannes Domani <ssbssa@yahoo.de>
5867
5868 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5869 of debugfile path on Windows.
5870
d1076c41
JB
58712020-07-08 John Baldwin <jhb@FreeBSD.org>
5872
5873 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5874 argument to 'data'.
5875
15f3b077
TT
58762020-07-08 Tom Tromey <tromey@adacore.com>
5877
5878 * ada-lang.c (ada_exception_message_1): Use read_memory.
5879
9fc501fd
AB
58802020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5881
5882 PR python/22748
5883 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5884 special handling for inline frames.
5885 * findvar.c (value_of_register_lazy): Skip inline frames when
5886 creating lazy register values.
5887 * frame.c (frame_id_computed_p): Delete definition.
5888 * frame.h (frame_id_computed_p): Delete declaration.
5889
64cb3757
AB
58902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5891
5892 * NEWS: Mention additions to Python API.
5893 * python/py-arch.c (archpy_register_groups): New function.
5894 (arch_object_methods): Add 'register_groups' method.
5895 * python/py-registers.c (reggroup_iterator_object): New struct.
5896 (reggroup_object): New struct.
5897 (gdbpy_new_reggroup): New function.
5898 (gdbpy_reggroup_to_string): New function.
5899 (gdbpy_reggroup_name): New function.
5900 (gdbpy_reggroup_iter): New function.
5901 (gdbpy_reggroup_iter_next): New function.
5902 (gdbpy_new_reggroup_iterator): New function
5903 (gdbpy_initialize_registers): Register new types.
5904 (reggroup_iterator_object_type): Define new Python type.
5905 (gdbpy_reggroup_getset): New static global.
5906 (reggroup_object_type): Define new Python type.
5907 * python/python-internal.h
5908
0f767f94
AB
59092020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5910
5911 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5912 * python/py-arch.c (archpy_registers): New function.
5913 (arch_object_methods): Add 'registers' method.
5914 * python/py-registers.c: New file.
5915 * python/python-internal.h
5916 (gdbpy_new_register_descriptor_iterator): Declare.
5917 (gdbpy_initialize_registers): Declare.
5918 * python/python.c (do_start_initialization): Call
5919 gdbpy_initialize_registers.
5920 * NEWS: Mention additions to the Python API.
5921
87dbc774
AB
59222020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5923
5924 * NEWS: Mention new Python API method.
5925 * python/py-unwind.c (pending_framepy_architecture): New function.
5926 (pending_frame_object_methods): Add architecture method.
5927
3bc98c0c
AB
59282020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5929
5930 * gdbarch.c: Regenerate.
5931 * gdbarch.h: Regenerate.
5932 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5933 (gdbarch_data): Use internal_error for the case where
5934 deprecated_set_gdbarch_data was originally needed.
5935 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5936 and use passed in obstack.
5937 (libunwind_frame_set_descr): Should no longer get back NULL from
5938 gdbarch_data.
5939 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5940 type.
5941 * user-regs.c (user_regs_init): Update parameters, and use passed
5942 in obstack.
5943 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5944 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5945
d8cc8af6
TV
59462020-07-06 Tom de Vries <tdevries@suse.de>
5947
5948 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5949 End-Of-Sequence in lte_is_less_than.
5950 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5951 "gdb: Don't reorder line table entries too much when sorting".
5952
947f7597
TV
59532020-07-06 Tom de Vries <tdevries@suse.de>
5954
5955 PR tui/26205
5956 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5957
1e7c1b22
TV
59582020-07-05 Tom de Vries <tdevries@suse.de>
5959
5960 PR build/26187
5961 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5962 std::uncaught_exceptions instead of deprecated
5963 std::uncaught_exception.
5964
a36158ec
SM
59652020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5966
5967 * macroexp.h (macro_stringify): Return
5968 gdb::unique_xmalloc_ptr<char>.
5969 * macroexp.c (macro_stringify): Likewise.
5970 * macrotab.c (fixup_definition): Update.
5971
14d960c8
SM
59722020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5973
5974 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5975 (lex_one_token): Update.
5976 * macroexp.c (struct macro_buffer) <release>: Return
5977 gdb::unique_xmalloc_ptr<char>.
5978 (macro_stringify): Update.
5979 (macro_expand): Update.
5980 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5981 * macroexp.h (macro_expand_next): Likewise.
5982
211d5b1c
SM
59832020-07-02 Simon Marchi <simon.marchi@efficios.com>
5984
5985 * macroexp.h (macro_lookup_ftype): Remove.
5986 (macro_expand, macro_expand_once, macro_expand_next): Remove
5987 lookup function parameters, add scope parameter.
5988 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5989 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5990 * macroscope.h (standard_macro_lookup): Change parameter type
5991 to macro_scope.
5992 * macroscope.c (standard_macro_lookup): Likewise.
5993 * c-exp.y (lex_one_token): Update.
5994 * macrocmd.c (macro_expand_command): Likewise.
5995 (macro_expand_once_command): Likewise.
5996
b1a35af2
SM
59972020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5998
5999 * inf-loop.c (inferior_event_handler): Remove client_data param.
6000 * inf-loop.h (inferior_event_handler): Likewise.
6001 * infcmd.c (step_1): Adjust.
6002 * infrun.c (proceed): Adjust.
6003 (fetch_inferior_event): Remove client_data param.
6004 (infrun_async_inferior_event_handler): Adjust.
6005 * infrun.h (fetch_inferior_event): Remove `void *` param.
6006 * linux-nat.c (handle_target_event): Adjust.
6007 * record-btrace.c (record_btrace_handle_async_inferior_event):
6008 Adjust.
6009 * record-full.c (record_full_async_inferior_event_handler):
6010 Adjust.
6011 * remote.c (remote_async_inferior_event_handler): Adjust.
6012
1cdf9e33
TT
60132020-07-01 Tom Tromey <tom@tromey.com>
6014
6015 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6016 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6017
32c1e210
TT
60182020-07-01 Tom Tromey <tom@tromey.com>
6019
6020 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6021 tui_gen_win_info.
6022 (tui_win_info::make_window): Merge with
6023 tui_gen_win_info::make_window.
6024 (tui_win_info::make_visible): Move from tui_gen_win_info.
6025 * tui/tui-win.c (tui_win_info::max_width): Move from
6026 tui_gen_win_info.
6027 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6028 type.
6029 <window_factory>: Likewise.
6030 * tui/tui-layout.c (tui_win_info::resize): Move from
6031 tui_gen_win_info.
6032 (make_standard_window): Change return type.
6033 (get_locator_window, tui_get_window_by_name): Likewise.
6034 (tui_layout_window::apply): Remove a cast.
6035 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6036 (struct tui_win_info): Merge with tui_gen_win_info.
6037 (struct tui_gen_win_info): Remove.
6038
a30cb6da
TT
60392020-07-01 Tom Tromey <tom@tromey.com>
6040
6041 * tui/tui-stack.h (struct tui_locator_window): Derive from
6042 tui_win_info.
6043 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6044 <can_box>: New method.
6045
1eb2161f
TT
60462020-07-01 Tom Tromey <tom@tromey.com>
6047
6048 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6049
7134f2eb
TT
60502020-07-01 Tom Tromey <tom@tromey.com>
6051
6052 * tui/tui-regs.c (tui_data_window::display_registers_from)
6053 (tui_data_window::display_registers_from)
6054 (tui_data_window::first_data_item_displayed)
6055 (tui_data_window::delete_data_content_windows): Update.
6056 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6057 Remove.
6058 (tui_data_window::check_register_values): Update.
6059 (tui_data_item_window::rerender): Add parameters. Update.
6060 (tui_data_item_window::refresh_window): Remove.
6061 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6062 virtual.
6063 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6064 tui_gen_win_info.
6065 <refresh_window, max_height, min_height>: Remove.
6066 <rerender>: Add parameters.
6067 <x, y, visible>: New members.
6068 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6069 <m_item_width>: New member.
6070
22b7b041
TT
60712020-07-01 Tom Tromey <tom@tromey.com>
6072
6073 * tui/tui-regs.c (tui_data_window::show_register_group)
6074 (tui_data_window::check_register_values): Update.
6075 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6076 from item_no.
6077
c9753adb
TT
60782020-07-01 Tom Tromey <tom@tromey.com>
6079
6080 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6081 useless "if".
6082
9ab26b4a
TT
60832020-07-01 Tom Tromey <tom@tromey.com>
6084
6085 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6086 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6087
e555083f
TT
60882020-07-01 Tom Tromey <tom@tromey.com>
6089
6090 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6091 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6092 (struct tui_line_or_address): Move from tui-data.h.
6093 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6094 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6095 (tui_cmd_window, tui_source_window_base, tui_source_window)
6096 (tui_disasm_window): Don't declare.
6097 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6098 to tui-winsource.h.
6099 (SINGLE_KEY): Move to tui-stack.c.
6100
7a02bab7
TT
61012020-07-01 Tom Tromey <tom@tromey.com>
6102
6103 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6104 std::string.
6105 * tui/tui-regs.c (class tab_expansion_file): New.
6106 (tab_expansion_file::write): New method.
6107 (tui_register_format): Change return type. Use
6108 tab_expansion_file.
6109 (tui_get_register, tui_data_window::display_registers_from)
6110 (tui_data_item_window::rerender): Update.
6111 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6112 * tui/tui-io.c (tui_expand_tabs): Remove.
6113
ea68593b
TT
61142020-07-01 Tom Tromey <tom@tromey.com>
6115
6116 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6117
a8caed5d
FS
61182020-07-01 Fangrui Song <maskray@google.com>
6119
6120 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6121
9cdf9820
AKS
61222020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6123
6124 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6125 forms for DW_AT_associated and DW_AT_allocated attributes,
6126 which is already checked in function attr_to_dynamic_prop.
6127
a1520ad8
TT
61282020-06-30 Tom Tromey <tromey@adacore.com>
6129
6130 * dwarf2/read.c (quirk_rust_enum): Correctly call
6131 alloc_rust_variant for default-less enum.
6132
5ac58899
TT
61332020-06-30 Tom Tromey <tromey@adacore.com>
6134
6135 PR build/26183:
6136 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6137 gdb::to_string.
6138
19b187a9
SM
61392020-06-29 Simon Marchi <simon.marchi@efficios.com>
6140
6141 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6142 * gdbarch.h: Re-generate.
6143
cd4c4c07
TT
61442020-06-28 Tom Tromey <tom@tromey.com>
6145
6146 * command.h (cmd_types): Remove.
6147 (cmd_type): Don't declare.
6148 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6149 typedef.
6150 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6151 * cli/cli-decode.c (cmd_type): Remove.
6152
05779d57
PA
61532020-06-27 Pedro Alves <palves@redhat.com>
6154
6155 * fork-child.c (prefork_hook): Adjust.
6156 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6157 Delete.
6158 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6159 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6160 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6161 Remove declarations.
6162 (struct inferior) <set_tty, tty>: New methods.
6163 (struct inferior) <terminal>: Rename to ...
6164 (struct inferior) <m_terminal>: ... this and make private.
6165 * main.c (captured_main_1): Adjust.
6166 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6167 (mi_cmd_inferior_tty_show): Adjust.
6168 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6169 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6170
1776e3e5
NA
61712020-06-26 Nick Alcock <nick.alcock@oracle.com>
6172
6173 * configure.ac: Add --enable-libctf: handle --disable-static
6174 properly.
6175 * acinclude.m4: sinclude ../config/enable.m4.
6176 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6177 (LIBCTF): Substitute in.
6178 (CTF_DEPS): New, likewise.
6179 (CLIBS): libctf needs symbols from libbfd: move earlier.
6180 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6181 flags.
6182 * ctfread.c: Surround in ENABLE_LIBCTF.
6183 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6184 * configure: Regenerate.
6185 * config.in: Likewise.
6186
58373b80
SM
61872020-06-25 Simon Marchi <simon.marchi@efficios.com>
6188
6189 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6190
277474ee
SM
61912020-06-25 Simon Marchi <simon.marchi@efficios.com>
6192
6193 * inferior.h (struct inferior) <terminal>: Change type to
6194 gdb::unique_xmalloc_ptr<char>.
6195 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6196 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6197 field, adjust to unique pointer.
6198 (get_inferior_io_terminal): Adjust to unique pointer.
6199
6d74da72
AB
62002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6201
6202 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6203 registers, not just the known core set of registers.
6204
2e52d038
AB
62052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6206
6207 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6208 fflags, frm, and fcsr registers.
6209 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6210 restore groups.
6211 (riscv_tdesc_unknown_reg): New function.
6212 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6213 tdesc_use_registers.
6214 * riscv-tdep.h (struct gdbarch_tdep): Add
6215 unknown_csrs_first_regnum, unknown_csrs_count,
6216 duplicate_fflags_regnum, duplicate_frm_regnum, and
6217 duplicate_fcsr_regnum fields.
6218
be64fd07
AB
62192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6220
6221 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6222 callback, use the callback (when not null) to help number unknown
6223 registers.
6224 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6225 (tdesc_use_registers): Add extra parameter to declaration.
6226
3b9fce96
AB
62272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6228
6229 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6230 in the file.
6231 (class riscv_pending_register_alias): Likewise.
6232 (riscv_register_feature::register_info): Change 'required_p' field
6233 to 'required', and change its type. Add 'check' member function.
6234 (riscv_register_feature::register_info::check): Define new member
6235 function.
6236 (riscv_xreg_feature): Change initialisation of 'required' field.
6237 (riscv_freg_feature): Likewise.
6238 (riscv_virtual_feature): Likewise.
6239 (riscv_csr_feature): Likewise.
6240 (riscv_check_tdesc_feature): Take extra parameter, the csr
6241 tdesc_feature, rewrite the function to use the new
6242 riscv_register_feature::register_info::check function.
6243 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6244
865bad26
AB
62452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6246
6247 * features/Makefile: Remove all references to the deleted files
6248 below.
6249 * features/riscv/32bit-csr.c: Deleted.
6250 * features/riscv/32bit-csr.xml: Deleted.
6251 * features/riscv/64bit-csr.c: Deleted.
6252 * features/riscv/64bit-csr.xml: Deleted.
6253 * features/riscv/rebuild-csr-xml.sh: Deleted.
6254
ed69cbc8
AB
62552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6256
6257 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6258 whitespace error for declaration of names member variable.
6259 (struct riscv_register_feature): Add new prefer_first_name member
6260 variable, and fix whitespace error in declaration of registers.
6261 (riscv_xreg_feature): Initialize prefer_first_name field.
6262 (riscv_freg_feature): Likewise.
6263 (riscv_virtual_feature): Likewise.
6264 (riscv_csr_feature): Likewise.
6265 (riscv_register_name): Expand on comments. Remove register name
6266 modifications for CSR and virtual registers.
6267
4445e8f5
AB
62682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6269
6270 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6271 errors.
6272
767a879e
AB
62732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6274
6275 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6276 riscv-opc.h.
6277 (class riscv_pending_register_alias): New class.
6278 (riscv_check_tdesc_feature): Take vector of pending aliases and
6279 populate it as appropriate.
6280 (riscv_setup_register_aliases): Delete.
6281 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6282 to riscv_check_tdesc_feature in all cases. Use the vector to
6283 create the register aliases.
6284
bb6e55f3
RO
62852020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6286
6287 * sol2-tdep.c (sol2_static_transform_name): Remove.
6288 (sol2_init_abi): Don't register it.
6289 * gdbarch.sh (static_transform_name): Remove.
6290 * gdbarch.c, gdbarch.h: Regenerate.
6291
6292 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6293 gdbarch_static_transform_name.
6294 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6295 * stabsread.c (define_symbol) <'X'>: Remove.
6296 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6297 handling.
6298 <'V'>: Likewise.
6299 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6300 <'S'>: Remove call to gdbarch_static_transform_name.
6301
c6d36836
RO
63022020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6303
6304 * procfs.c (procfs_pre_trace): New function.
6305 (procfs_target::create_inferior): Pass it to fork_inferior.
6306
a7e6196b
RO
63072020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6308
6309 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6310 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6311 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6312 sol2-tdep.o, sparc-sol2-tdep.o.
6313 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6314 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6315 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6316 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6317
d412e696
RO
63182020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6319
6320 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6321 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6322 Call sol2_init_abi.
6323 Remove calls to set_gdbarch_skip_solib_resolver,
6324 set_gdbarch_core_pid_to_str.
6325 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6326 (i386_sol2_static_transform_name): Remove.
6327 (i386_sol2_init_abi): Call sol2_init_abi.
6328 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6329 set_gdbarch_static_transform_name,
6330 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6331 Use sol2_sigtramp_p.
6332 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6333 (sol2_sigtramp_p): New function.
6334 (sol2_static_transform_name): New function.
6335 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6336 (sol2_init_abi): New function.
6337 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6338 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6339 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6340 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6341 (sparc_sol2_static_transform_name): Remove.
6342 (sparc32_sol2_init_abi): Call sol2_init_abi.
6343 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6344 set_gdbarch_static_transform_name,
6345 set_gdbarch_skip_solib_resolver,
6346 set_gdbarch_core_pid_to_str.
6347 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6348 (sparc_sol2_static_transform_name): Remove
6349 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6350 call sol2_sigtramp_p.
6351 (sparc64_sol2_init_abi): Call sol2_init_abi.
6352 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6353 set_gdbarch_static_transform_name,
6354 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6355
a8654e7d
PW
63562020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6357
6358 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6359 * exec.c (validate_exec_file): If from_tty, set both
6360 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6361 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6362 and from_tty, unconditionally ask a confirmation.
6363
caa7fd04
AB
63642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6365
6366 * target-descriptions.c (tdesc_architecture_name): Protect against
6367 NULL pointer dereference.
6368 (maint_print_xml_tdesc_cmd): New function.
6369 (_initialize_target_descriptions): Register new 'maint print
6370 xml-tdesc' command and give it the filename completer.
6371 * NEWS: Mention new 'maint print xml-tdesc' command.
6372
fbf42f4e
AB
63732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6374
6375 * target-descriptions.c (class tdesc_compatible_info): New class.
6376 (struct target_desc): Change type of compatible vector.
6377 (tdesc_compatible_p): Update for change in type of
6378 target_desc::compatible.
6379 (tdesc_compatible_info_list): New function.
6380 (tdesc_compatible_info_arch_name): New function.
6381 (tdesc_add_compatible): Update for change in type of
6382 target_desc::compatible.
6383 (print_c_tdesc::visit_pre): Likewise.
6384
20821f4e
AB
63852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6386
6387 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6388 whitespace to underscore.
6389 (maint_print_c_tdesc_cmd): Use fake filename for target
6390 descriptions that came from the target.
6391 (_initialize_target_descriptions): Add filename command completion
6392 for 'maint print c-tdesc'.
6393
1fb5ee62
SM
63942020-06-23 Simon Marchi <simon.marchi@efficios.com>
6395
6396 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6397 lines.
6398
fc3ecb3e
SM
63992020-06-23 Simon Marchi <simon.marchi@efficios.com>
6400
6401 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6402 lines.
6403 (dwarf2_find_location_expression): Likewise.
6404 (call_site_parameter_matches): Likewise.
6405 (dwarf2_compile_expr_to_ax): Likewise.
6406 (disassemble_dwarf_expression): Likewise.
6407 (loclist_describe_location): Likewise.
6408
236ef034
PA
64092020-06-23 Pedro Alves <palves@redhat.com>
6410
6411 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6412 progspace-and-thread.h. Include scoped-mock-context.h instead.
6413 (register_to_value_test): Use scoped_mock_context.
6414 * regcache.c: Include "scoped-mock-context.h".
6415 (cooked_read_test): Don't error out if a target is already pushed.
6416 Use scoped_mock_context. Adjust.
6417 * scoped-mock-context.h: New file.
6418
39e7ecca
AB
64192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6420
6421 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6422 initializer.
6423 (ada_language::is_string_type_p): New member function.
6424 * c-lang.c (c_language_data): Delete la_is_string_type_p
6425 initializer.
6426 (cplus_language_data): Likewise.
6427 (asm_language_data): Likewise.
6428 (minimal_language_data): Likewise.
6429 * d-lang.c (d_language_data): Likewise.
6430 * f-lang.c (f_is_string_type_p): Delete function, implementation
6431 moved to f_language::is_string_type_p.
6432 (f_language_data): Delete la_is_string_type_p initializer.
6433 (f_language::is_string_type_p): New member function,
6434 implementation from f_is_string_type_p.
6435 * go-lang.c (go_is_string_type_p): Delete function, implementation
6436 moved to go_language::is_string_type_p.
6437 (go_language_data): Delete la_is_string_type_p initializer.
6438 (go_language::is_string_type_p): New member function,
6439 implementation from go_is_string_type_p.
6440 * language.c (language_defn::is_string_type_p): Define new member
6441 function.
6442 (default_is_string_type_p): Make static, add comment copied from
6443 header file.
6444 (unknown_language_data): Delete la_is_string_type_p initializer.
6445 (unknown_language::is_string_type_p): New member function.
6446 (auto_language_data): Delete la_is_string_type_p initializer.
6447 (auto_language::is_string_type_p): New member function.
6448 * language.h (language_data): Delete la_is_string_type_p field.
6449 (language_defn::is_string_type_p): Declare new function.
6450 (default_is_string_type_p): Delete desclaration, move comment to
6451 definition.
6452 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6453 moved to m2_language::is_string_type_p.
6454 (m2_language_data): Delete la_is_string_type_p initializer.
6455 (m2_language::is_string_type_p): New member function,
6456 implementation from m2_is_string_type_p.
6457 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6458 initializer.
6459 * opencl-lang.c (opencl_language_data): Likewise.
6460 * p-lang.c (pascal_is_string_type_p): Delete function,
6461 implementation moved to pascal_language::is_string_type_p.
6462 (pascal_language_data): Delete la_is_string_type_p initializer.
6463 (pascal_language::is_string_type_p): New member function,
6464 implementation from pascal_is_string_type_p.
6465 * rust-lang.c (rust_is_string_type_p): Delete function,
6466 implementation moved to rust_language::is_string_type_p.
6467 (rust_language_data): Delete la_is_string_type_p initializer.
6468 (rust_language::is_string_type_p): New member function,
6469 implementation from rust_is_string_type_p.
6470 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6471 is_string_type_p.
6472
4ffc13fb
AB
64732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6474
6475 * ada-lang.c (ada_language_data): Delete la_print_typedef
6476 initializer.
6477 (ada_language::print_typedef): New member function.
6478 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6479 (cplus_language_data): Likewise.
6480 (asm_language_data): Likewise.
6481 (minimal_language_data): Likewise.
6482 * d-lang.c (d_language_data): Likewise.
6483 * f-lang.c (f_language_data): Likewise.
6484 (f_language::print_typedef): New member function.
6485 * go-lang.c (go_language_data): Delete la_print_typedef
6486 initializer.
6487 * language.c (language_defn::print_typedef): Define member
6488 function.
6489 (unknown_language_data): Delete la_print_typedef initializer.
6490 (unknown_language::print_typedef): New member function.
6491 (auto_language_data): Delete la_print_typedef initializer.
6492 (auto_language::print_typedef): New member function.
6493 * language.h (language_data): Delete la_print_typedef field.
6494 (language_defn::print_typedef): Declare new member function.
6495 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6496 (default_print_typedef): Delete declaration.
6497 * m2-lang.c (m2_language_data): Delete la_print_typedef
6498 initializer.
6499 (m2_language::print_typedef): New member function.
6500 * objc-lang.c (objc_language_data): Delete la_print_typedef
6501 initializer.
6502 * opencl-lang.c (opencl_language_data): Likewise.
6503 * p-lang.c (pascal_language_data): Likewise.
6504 (pascal_language::print_typedef): New member function.
6505 * rust-lang.c (rust_print_typedef): Delete function,
6506 implementation moved to rust_language::print_typedef.
6507 (rust_language): Delete la_print_typedef initializer.
6508 (rust_language::print_typedef): New member function,
6509 implementation from rust_print_typedef.
6510 * typeprint.c (default_print_typedef): Delete.
6511
d711ee67
AB
65122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6513
6514 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6515 (ada_language::printstr): New member function.
6516 * c-lang.c (c_language_data): Delete la_printstr initializer.
6517 (cplus_language_data): Likewise.
6518 (asm_language_data): Likewise.
6519 (minimal_language_data): Likewise.
6520 * d-lang.c (d_language_data): Likewise.
6521 * f-lang.c (f_printstr): Rename to f_language::printstr.
6522 (f_language_data): Delete la_printstr initializer.
6523 (f_language::printstr): New member function, implementation from
6524 f_printstr.
6525 * go-lang.c (go_language_data): Delete la_printstr initializer.
6526 * language.c (language_defn::printstr): Define new member
6527 function.
6528 (unk_lang_printstr): Delete.
6529 (unknown_language_data): Delete la_printstr initializer.
6530 (unknown_language::printstr): New member function.
6531 (auto_language_data): Delete la_printstr initializer.
6532 (auto_language::printstr): New member function.
6533 * language.h (language_data): Delete la_printstr field.
6534 (language_defn::printstr): Declare new member function.
6535 (LA_PRINT_STRING): Update call to printstr.
6536 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6537 (m2_language_data): Delete la_printstr initializer.
6538 (m2_language::printstr): New member function, implementation from
6539 m2_printstr.
6540 * objc-lang.c (objc_language_data): Delete la_printstr
6541 initializer.
6542 * opencl-lang.c (opencl_language_data): Likewise.
6543 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6544 (pascal_language_data): Delete la_printstr initializer.
6545 (pascal_language::printstr): New member function, implementation
6546 from pascal_printstr.
6547 * p-lang.h (pascal_printstr): Delete declaration.
6548 * rust-lang.c (rust_printstr): Update header comment.
6549 (rust_language_data): Delete la_printstr initializer.
6550 (rust_language::printstr): New member function.
6551
52b50f2c
AB
65522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6553
6554 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6555 (ada_language::printchar): New member function.
6556 * c-lang.c (c_language_data): Delete la_printchar initializer.
6557 (cplus_language_data): Likewise.
6558 (asm_language_data): Likewise.
6559 (minimal_language_data): Likewise.
6560 * d-lang.c (d_language_data): Likewise.
6561 * f-lang.c (f_printchar): Rename to f_language::printchar.
6562 (f_language_data): Delete la_printchar initializer.
6563 (f_language::printchar): New member function, implementation from
6564 f_printchar.
6565 * go-lang.c (go_language_data): Delete la_printchar initializer.
6566 * language.c (unk_lang_printchar): Delete.
6567 (language_defn::printchar): Define new member function.
6568 (unknown_language_data): Delete la_printchar initializer.
6569 (unknown_language::printchar): New member function.
6570 (auto_language_data): Delete la_printchar initializer.
6571 (auto_language::printchar): New member function.
6572 * language.h (language_data): Delete la_printchar field.
6573 (language_defn::printchar): Declare new member function.
6574 (LA_PRINT_CHAR): Update call to printchar.
6575 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6576 (m2_language::printchar): New member function.
6577 * objc-lang.c (objc_language_data): Delete la_printchar
6578 initializer.
6579 * opencl-lang.c (opencl_language_data): Likewise.
6580 * p-lang.c (pascal_language_data): Delete la_printchar
6581 initializer.
6582 (pascal_language::printchar): New member function.
6583 * rust-lang.c (rust_printchar): Rename to
6584 rust_language::printchar.
6585 (rust_language_data): Delete la_printchar initializer.
6586 (rust_language::printchar): New member function, implementation
6587 from rust_printchar.
6588
ec8cec5b
AB
65892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6590
6591 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6592 (ada_language_data): Delete la_emitchar initializer.
6593 (ada_language::emitchar): New member function, implementation from
6594 emit_char.
6595 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6596 (cplus_language_data): Likewise.
6597 (asm_language_data): Likewise.
6598 (minimal_language_data): Likewise.
6599 * d-lang.c (d_language_data): Likewise.
6600 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6601 (f_language_data): Delete la_emitchar initializer.
6602 (f_language::emitchar): New member function, implementation from
6603 f_emit_char.
6604 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6605 * language.c (unk_lang_emit_char): Delete.
6606 (language_defn::emitchar): New member function definition.
6607 (unknown_language_data): Delete la_emitchar initializer.
6608 (unknown_language::emitchar): New member function.
6609 (auto_language_data): Delete la_emitchar initializer.
6610 (auto_language::emitchar): New member function.
6611 * language.h (language_data): Delete la_emitchar field.
6612 (language_defn::emitchar): New member field declaration.
6613 (LA_EMIT_CHAR): Update call to emitchar.
6614 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6615 (m2_language_data): Delete la_emitchar initializer.
6616 (m2_language::emitchar): New member function, implementation from
6617 m2_emit_char.
6618 * objc-lang.c (objc_language_data): Delete la_emitchar
6619 initializer.
6620 * opencl-lang.c (opencl_language_data): Likewise.
6621 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6622 (pascal_language_data): Delete la_emitchar initializer.
6623 (pascal_language::emitchar): New member function, implementation
6624 from pascal_emit_char.
6625 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6626 (rust_language_data): Delete la_emitchar initializer.
6627 (rust_language::emitchar): New member function, implementation
6628 from rust_emitchar.
6629
1bf9c363
AB
66302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6631
6632 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6633 (ada_language_data): Delete la_post_parser initializer.
6634 (ada_language::post_parser): New member function.
6635 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6636 (cplus_language_data): Likewise.
6637 (asm_language_data): Likewise.
6638 (minimal_language_data): Likewise.
6639 * d-lang.c (d_language_data): Likewise.
6640 * f-lang.c (f_language_data): Likewise.
6641 * go-lang.c (go_language_data): Likewise.
6642 * language.c (unknown_language_data): Likewise.
6643 (auto_language_data): Likewise.
6644 * language.h (language_data): Delete la_post_parser field.
6645 (language_defn::post_parser): New member function.
6646 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6647 * objc-lang.c (objc_language_data): Likewise.
6648 * opencl-lang.c (opencl_language_data): Likewise.
6649 * p-lang.c (pascal_language_data): Likewise.
6650 * parse.c (parse_exp_in_context): Update call to post_parser.
6651 (null_post_parser): Delete definition.
6652 * parser-defs.h (null_post_parser): Delete declaration.
6653 * rust-lang.c (rust_language_data): Delete la_post_parser
6654 initializer.
6655
87afa652
AB
66562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6657
6658 * ada-lang.c (parse): Rename to ada_language::parser.
6659 (ada_language_data): Delete la_parser initializer.
6660 (ada_language::parser): New member function, implementation from
6661 parse.
6662 * c-lang.c (c_language_data): Delete la_parser initializer.
6663 (cplus_language_data): Likewise.
6664 (asm_language_data): Likewise.
6665 (minimal_language_data): Likewise.
6666 * d-lang.c (d_language_data): Likewise.
6667 (d_language::parser): New member function.
6668 * f-lang.c (f_language_data): Delete la_parser initializer.
6669 (f_language::parser): New member function.
6670 * go-lang.c (go_language_data): Delete la_parser initializer.
6671 (go_language::parser): New member function.
6672 * language.c (unk_lang_parser): Delete.
6673 (language_defn::parser): Define new member function.
6674 (unknown_language_data): Delete la_parser initializer.
6675 (unknown_language::parser): New member function.
6676 (auto_language_data): Delete la_parser initializer.
6677 (auto_language::parser): New member function.
6678 * language.h (language_data): Delete la_parser field.
6679 (language_defn::parser): Declare new member function.
6680 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6681 (m2_language::parser): New member function.
6682 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6683 * opencl-lang.c (opencl_language_data): Likewise.
6684 * p-lang.c (pascal_language_data): Likewise.
6685 (pascal_language::parser): New member function.
6686 * parse.c (parse_exp_in_context): Update call to parser.
6687 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6688 (rust_language::parser): New member function.
6689
37825800
AB
66902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6691
6692 * top.c (print_gdb_configuration): Print --with-python-libdir
6693 configuration value.
6694
5b860c93
PW
66952020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6696
6697 * NEWS: Mention change to the alias command.
6698
cf00cd6f
PW
66992020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6700
6701 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6702 (alias_command_completer)
6703 (make_alias_options_def_group): New functions.
6704 (alias_opts, alias_option_defs): New struct and array.
6705 (alias_usage_error): Update usage.
6706 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6707 Use option framework.
6708 (_initialize_cli_cmds): Update alias command help.
6709 Update aliases command help.
6710 (show_user):
6711 Add NULL for new default_args lookup_cmd argument.
6712 (valid_command_p): Rename to validate_aliased_command.
6713 Add NULL for new default_args lookup_cmd argument. Verify that the
6714 aliased_command has no default args.
6715 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6716 (lookup_cmd_1, lookup_cmd): New argument default_args.
6717 (add_alias_cmd):
6718 Add NULL for new default_args lookup_cmd argument.
6719 (print_help_for_command): Show default args under the layout
6720 alias some_alias = some_aliased_cmd some_alias_default_arg.
6721 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6722 xfree default_args in destructor.
6723 * cli/cli-script.c (process_next_line, do_define_command):
6724 Add NULL for new default_args lookup_cmd argument.
6725 * command.h: Declare new default_args argument in lookup_cmd
6726 and lookup_cmd_1.
6727 * completer.c (complete_line_internal_1):
6728 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6729 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6730 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6731 Likewise.
6732 * infcmd.c (_initialize_infcmd): Likewise.
6733 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6734 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6735 * python/py-param.c (add_setshow_generic): Likewise.
6736 * remote.c (_initialize_remote): Likewise.
6737 * top.c (execute_command): Prepend default_args if command has some.
6738 (set_verbose):
6739 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6740 * tracepoint.c (validate_actionline, encode_actions_1):
6741 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6742
bd920864
TBA
67432020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6744
6745 * jit.c (jit_read_descriptor): Use bool as the return type.
6746 (jit_breakpoint_re_set_internal): Use bool as the return type.
6747 Invert the return value logic; return true if the jit breakpoint
6748 has been successfully initialized.
6749 (jit_inferior_init): Update the call to
6750 jit_breakpoint_re_set_internal.
6751
f8098322
PA
67522020-06-22 Pedro Alves <palves@redhat.com>
6753
6754 PR gdb/25939
6755 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6756 Use the current inferior instead. Don't return
6757 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6758 wait again.
6759 * sol-thread.c (sol_thread_target::wait): Don't reference
6760 inferior_ptid.
6761 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6762 (sol_update_thread_list_callback): Use the current inferior's pid
6763 instead of inferior_ptid.
6764
196535a6
RO
67652020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6766
6767 * procfs.c: Cleanup many comments.
6768
6769 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6770 (AFTER_WATCHFLAG): Replace by value.
6771
6772 (MAIN_PROC_NAME_FORMAT): Inline ...
6773 (create_procinfo): ... here.
6774
6775 (procfs_debug_inferior): Remove SYS_exec handling.
6776 (syscall_is_exec): Likewise.
6777 (procfs_set_exec_trap): Likewise.
6778
6779 (syscall_is_lwp_exit): Inline in callers.
6780 (syscall_is_exit): Likewise.
6781 (syscall_is_exec): Likewise.
6782 (syscall_is_lwp_create): Likewise.
6783
6784 (invalidate_cache): Remove #if 0 code.
6785
6786 (make_signal_thread_runnable): Remove.
6787 (procfs_target::resume): Remove #if 0 code.
6788
cf6f3e86
RO
67892020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6790
6791 PR gdb/25939
6792 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6793 call ...
6794 (procfs_target::create_inferior): ... here.
6795
48e9cc84
PW
67962020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6797
6798 * exec.c (validate_exec_file): Ensure the build-id is up to
6799 date by calling reopen_exec_file (that checks file timestamp
6800 to decide to re-read the file).
6801
3922b302
PA
68022020-06-18 Pedro Alves <palves@redhat.com>
6803
6804 PR gdb/25412
6805 * gdbthread.h (delete_thread, delete_thread_silent)
6806 (find_thread_ptid): Update comments.
6807 * thread.c (current_thread_): New global.
6808 (is_current_thread): Move higher, and reimplement.
6809 (inferior_thread): Reimplement.
6810 (set_thread_exited): Use bool. Add assertions.
6811 (add_thread_silent): Simplify thread-reuse handling by always
6812 calling delete_thread.
6813 (delete_thread): Remove intro comment.
6814 (find_thread_ptid): Skip exited threads.
6815 (switch_to_thread_no_regs): Write to current_thread_.
6816 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6817 INFERIOR_PTID. Clear current_thread_.
6818
6dbdab44
PA
68192020-06-18 Pedro Alves <palves@redhat.com>
6820
6821 * aix-thread.c (pd_update): Use switch_to_thread.
6822
2da4b788
PA
68232020-06-18 Pedro Alves <palves@redhat.com>
6824
6825 * ravenscar-thread.c (ravenscar_thread_target): Update.
6826 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6827 (ravenscar_thread_target::add_active_thread): ... this. Don't
6828 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6829 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6830
50838d1b
PA
68312020-06-18 Pedro Alves <palves@redhat.com>
6832
6833 * nat/windows-nat.c (current_windows_thread): Remove.
6834 * nat/windows-nat.h (current_windows_thread): Remove.
6835 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6836 Adjust.
6837 (display_selectors): Adjust to fetch the current
6838 windows_thread_info based on inferior_ptid.
6839 (fake_create_process): No longer write to current_windows_thread.
6840 (windows_nat_target::get_windows_debug_event):
6841 Don't set inferior_ptid or current_windows_thread.
6842 (windows_nat_target::wait): Adjust to not rely on
6843 current_windows_thread.
6844 (do_initial_windows_stuff): Now a method of windows_nat_target.
6845 Switch to the last_ptid thread.
6846 (windows_nat_target::attach): Adjust.
6847 (windows_nat_target::detach): Use switch_to_no_thread instead of
6848 writing to inferior_ptid directly.
6849 (windows_nat_target::create_inferior): Adjust.
6850
31ce04e9
PA
68512020-06-18 Pedro Alves <palves@redhat.com>
6852
6853 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6854
1ee1a363
PA
68552020-06-18 Pedro Alves <palves@redhat.com>
6856
6857 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6858 after creating it, instead of writing to inferior_ptid. Don't
6859 write to inferior_ptid.
6860
6d350754
PA
68612020-06-18 Pedro Alves <palves@redhat.com>
6862
6863 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6864
5d971d48
PA
68652020-06-18 Pedro Alves <palves@redhat.com>
6866
6867 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6868 it, instead of writing to inferior_ptid.
6869
86e57d1b
PA
68702020-06-18 Pedro Alves <palves@redhat.com>
6871
6872 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6873 to inferior_ptid.
6874
f2e1c129
PA
68752020-06-18 Pedro Alves <palves@redhat.com>
6876
6877 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6878 instead of writing to inferior_ptid directly.
6879
60db1b85
PA
68802020-06-18 Pedro Alves <palves@redhat.com>
6881
6882 * corelow.c (core_target::close): Use switch_to_no_thread instead
6883 of writing to inferior_ptid directly.
6884 (add_to_thread_list, core_target_open): Use switch_to_thread
6885 instead of writing to inferior_ptid directly.
6886
fe7d6a8d
PA
68872020-06-18 Pedro Alves <palves@redhat.com>
6888
6889 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6890 inferior_ptid.
6891 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6892 inferior_ptid.
6893 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6894 inferior_ptid directly.
6895 (darwin_nat_target::init_thread_list): Switch to thread, instead
6896 of writing to inferior_ptid.
6897 (darwin_nat_target::attach): Don't write to inferior_ptid.
6898 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6899
975f8708
PA
69002020-06-18 Pedro Alves <palves@redhat.com>
6901
6902 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6903 thread.
6904 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6905 Instead use switch_to_thread.
6906 (gnu_nat_target::detach): Use switch_to_no_thread
6907 instead of writing to inferior_ptid directly. Used passed-in
6908 inferior instead of looking up the inferior by pid.
6909
1a204730
PA
69102020-06-18 Pedro Alves <palves@redhat.com>
6911
6912 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6913 inferior_ptid.
6914
ebe84f23
PA
69152020-06-18 Pedro Alves <palves@redhat.com>
6916
6917 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6918 inferior_ptid.
6919 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6920 thread.
6921 (nto_procfs_target::detach): Avoid referencing
6922 inferior_ptid. Use switch_to_no_thread instead of writing to
6923 inferior_ptid directly.
6924 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6925 instead of writing to inferior_ptid directly.
6926 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6927 to thread.
6928
191f02e5
PA
69292020-06-18 Pedro Alves <palves@redhat.com>
6930
6931 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6932 after creating it, instead of writing to inferior_ptid.
6933 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6934 to inferior_ptid directly.
6935 (gdbsim_target::wait): Don't write to inferior_ptid.
6936
0ac55310
PA
69372020-06-18 Pedro Alves <palves@redhat.com>
6938
6939 * remote.c (remote_target::remote_notice_new_inferior): Use
6940 switch_to_thread instead of writing to inferior_ptid directly.
6941 (remote_target::add_current_inferior_and_thread): Use
6942 switch_to_no_thread instead of writing to inferior_ptid directly.
6943 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6944 and switch_to_thread instead of using set_current_inferior or
6945 writing to inferior_ptid directly.
6946
5233f39b
PA
69472020-06-18 Pedro Alves <palves@redhat.com>
6948
6949 * tracectf.c (ctf_target_open): Switch to added thread instead of
6950 writing to inferior_ptid directly.
6951 (ctf_target::close): Use switch_to_no_thread instead of writing to
6952 inferior_ptid directly.
6953
087e161b
PA
69542020-06-18 Pedro Alves <palves@redhat.com>
6955
6956 * tracefile-tfile.c (tfile_target_open): Don't write to
6957 inferior_ptid directly, instead switch to added thread.
6958 (tfile_target::close): Use switch_to_no_thread instead of writing
6959 to inferior_ptid directly.
6960
7fb43e53
PA
69612020-06-18 Pedro Alves <palves@redhat.com>
6962
6963 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6964 (procfs_target::detach): Use switch_to_no_thread
6965 instead of writing to inferior_ptid directly.
6966 (do_attach): Change return type to void. Switch to the added
6967 thread.
6968 (procfs_target::create_inferior): Switch to the added thread.
6969 (procfs_do_thread_registers): Don't write to inferior_ptid.
6970
18493a00
PA
69712020-06-18 Pedro Alves <palves@redhat.com>
6972
6973 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6974 of writing to inferior_ptid.
6975 (scoped_restore_exited_inferior): Delete.
6976 (handle_vfork_child_exec_or_exit): Simplify using
6977 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6978 instead of writing to inferior_ptid.
6979 (THREAD_STOPPED_BY): Delete.
6980 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6981 (thread_stopped_by_hw_breakpoint): Delete.
6982 (save_waitstatus): Use
6983 scoped_restore_current_thread+switch_to_thread, and call
6984 target_stopped_by_watchpoint instead of
6985 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6986 instead of thread_stopped_by_sw_breakpoint, and
6987 target_stopped_by_hw_breakpoint instead of
6988 thread_stopped_by_hw_breakpoint.
6989 (handle_inferior_event)
6990 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6991 inferior_ptid directly, nor
6992 set_current_inferior/set_current_program_space. Use
6993 switch_to_thread / switch_to_inferior_no_thread instead.
6994
a0776b13
PA
69952020-06-18 Pedro Alves <palves@redhat.com>
6996
6997 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6998 instead of writing to inferior_ptid.
6999
6155c136
PA
70002020-06-18 Pedro Alves <palves@redhat.com>
7001
7002 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7003 added thread.
7004 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7005 to the added thread.
7006 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7007 instead of writing to inferior_ptid.
7008
c5316fc6
PA
70092020-06-18 Pedro Alves <palves@redhat.com>
7010
7011 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7012 (register_to_value_test): Mock a program_space too. Heap-allocate
7013 the address space. Don't write to inferior_ptid. Use
7014 switch_to_thread instead.
7015
8df01799
PA
70162020-06-18 Pedro Alves <palves@redhat.com>
7017
7018 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7019 Delete.
7020 (find_signalled_thread()): New, factored out from
7021 linux_make_corefile_notes and adjusted to handle exited threads.
7022 (linux_make_corefile_notes): Adjust to use the new
7023 find_signalled_thread.
7024
41792d68
PA
70252020-06-18 Pedro Alves <palves@redhat.com>
7026
7027 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7028 of saving/restoring inferior_ptid.
7029
612f258a
TT
70302020-06-17 Tom Tromey <tom@tromey.com>
7031
7032 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7033 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7034 declare.
7035 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7036
efb763a5
SM
70372020-06-15 Simon Marchi <simon.marchi@efficios.com>
7038
7039 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7040 of partial symtabs.
7041
2951f6c0
SM
70422020-06-17 Simon Marchi <simon.marchi@efficios.com>
7043
7044 * regformats/reg-arm.dat: Remove.
7045 * regformats/reg-bfin.dat: Remove.
7046 * regformats/reg-cris.dat: Remove.
7047 * regformats/reg-crisv32.dat: Remove.
7048 * regformats/reg-m32r.dat: Remove.
7049 * regformats/reg-tilegx.dat: Remove.
7050 * regformats/reg-tilegx32.dat: Remove.
7051
7d458ea5
SM
70522020-06-17 Simon Marchi <simon.marchi@efficios.com>
7053
7054 * features/Makefile (WHICH): Remove arm files.
7055 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7056 * regformats/arm/arm-with-neon.dat: Remove.
7057 * regformats/arm/arm-with-vfpv2.dat: Remove.
7058 * regformats/arm/arm-with-vfpv3.dat: Remove.
7059
3af96c0d
SM
70602020-06-17 Simon Marchi <simon.marchi@efficios.com>
7061
7062 * features/Makefile (XMLTOC): Remove rx.xml.
7063
b25e22fd
PA
70642020-06-17 Pedro Alves <palves@redhat.com>
7065
7066 * gdbthread.h (thread_control_state) <trap_expected> Update
7067 comments.
7068
a78a19b1
AB
70692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7070
7071 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7072 ada_language::lookup_symbol_nonlocal.
7073 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7074 (ada_language::lookup_symbol_nonlocal): New member function,
7075 implementation from ada_lookup_symbol_nonlocal.
7076 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7077 initializer.
7078 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7079 initializer.
7080 (cplus_language::lookup_symbol_nonlocal): New member function.
7081 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7082 (minimal_language_data) Likewise.
7083 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7084 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7085 initializer.
7086 (d_language::lookup_symbol_nonlocal): New member function.
7087 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7088 initializer.
7089 (f_language::lookup_symbol_nonlocal): New member function.
7090 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7091 initializer.
7092 * language.c (unknown_language_data): Likewise.
7093 (auto_language_data): Likewise.
7094 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7095 field.
7096 (language_defn::lookup_symbol_nonlocal): New member function.
7097 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7098 initializer.
7099 * objc-lang.c (objc_language_data): Likewise.
7100 * opencl-lang.c (opencl_language_data): Likewise.
7101 * p-lang.c (pascal_language_data): Likewise.
7102 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7103 rust_language::lookup_symbol_nonlocal.
7104 (rust_language_data): Delete la_lookup_symbol_nonlocal
7105 initializer.
7106 (rust_language::lookup_symbol_nonlocal): New member function,
7107 implementation from rust_lookup_symbol_nonlocal.
7108 * symtab.c (lookup_symbol_aux): Update call to
7109 lookup_symbol_nonlocal.
7110 (basic_lookup_symbol_nonlocal): Rename to...
7111 (language_defn::lookup_symbol_nonlocal): ...this, and update
7112 header comment. Remove language_defn parameter, and replace with
7113 uses of `this'.
7114 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7115
ebe2334e
AB
71162020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7117
7118 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7119 initializer.
7120 (ada_language::value_print_inner): New member function.
7121 * c-lang.c (c_language_data): Delete la_value_print_inner
7122 initializer.
7123 (cplus_language_data): Likewise.
7124 (asm_language_data): Likewise.
7125 (minimal_language_data): Likewise.
7126 * d-lang.c (d_language_data): Likewise.
7127 (d_language::value_print_inner): New member function.
7128 * f-lang.c (f_language_data): Delete la_value_print_inner
7129 initializer.
7130 (f_language::value_print_inner): New member function.
7131 * f-lang.h (f_value_print_innner): Rename to...
7132 (f_value_print_inner): ...this (note spelling of 'inner').
7133 * f-valprint.c (f_value_print_innner): Rename to...
7134 (f_value_print_inner): ...this (note spelling of 'inner').
7135 * go-lang.c (go_language_data): Delete la_value_print_inner
7136 initializer.
7137 (go_language::value_print_inner): New member function.
7138 * language.c (language_defn::value_print_inner): Define new member
7139 function.
7140 (unk_lang_value_print_inner): Delete.
7141 (unknown_language_data): Delete la_value_print_inner initializer.
7142 (unknown_language::value_print_inner): New member function.
7143 (auto_language_data): Delete la_value_print_inner initializer.
7144 (auto_language::value_print_inner): New member function.
7145 * language.h (language_data): Delete la_value_print_inner field.
7146 (language_defn::value_print_inner): Delcare new member function.
7147 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7148 initializer.
7149 (m2_language::value_print_inner): New member function.
7150 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7151 initializer.
7152 * opencl-lang.c (opencl_language_data): Likewise.
7153 * p-lang.c (pascal_language_data): Likewise.
7154 (pascal_language::value_print_inner): New member function.
7155 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7156 initializer.
7157 (rust_language::value_print_inner): New member function.
7158 * valprint.c (do_val_print): Update call to value_print_inner.
7159
a1d1fa3e
AB
71602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7161
7162 * ada-lang.c (ada_language_data): Delete la_value_print
7163 initializer.
7164 (ada_language::value_print): New member function.
7165 * c-lang.c (c_language_data): Delete la_value_print initializer.
7166 (cplus_language_data): Likewise.
7167 (asm_language_data): Likewise.
7168 (minimal_language_data): Likewise.
7169 * d-lang.c (d_language_data): Likewise.
7170 * f-lang.c (f_language_data): Likewise.
7171 * go-lang.c (go_language_data): Likewise.
7172 * language.c (unk_lang_value_print): Delete.
7173 (language_defn::value_print): Define new member function.
7174 (unknown_language_data): Delete la_value_print initializer.
7175 (unknown_language::value_print): New member function.
7176 (auto_language_data): Delete la_value_print initializer.
7177 (auto_language::value_print): New member function.
7178 * language.h (language_data): Delete la_value_print field.
7179 (language_defn::value_print): Declare new member function.
7180 (LA_VALUE_PRINT): Update call to value_print.
7181 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7182 * objc-lang.c (objc_language_data): Likewise.
7183 * opencl-lang.c (opencl_language_data): Likewise.
7184 * p-lang.c (pascal_language_data): Likewise.
7185 (pascal_language::value_print): New member function.
7186 * rust-lang.c (rust_language_data): Delete la_value_print
7187 initializer.
7188
f16a9f57
AB
71892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7190
7191 * ada-lang.c (ada_watch_location_expression): Rename to
7192 ada_language::watch_location_expression.
7193 (ada_language_data): Delete la_watch_location_expression
7194 initializer.
7195 (ada_language::watch_location_expression): New member function,
7196 implementation from ada_watch_location_expression.
7197 * breakpoint.c (watch_command_1): Update call to
7198 watch_location_expression.
7199 * c-lang.c (c_watch_location_expression): Rename to
7200 language_defn::watch_location_expression.
7201 (c_language_data): Delete la_watch_location_expression
7202 initializer.
7203 (cplus_language_data): Likewise.
7204 (asm_language_data): Likewise.
7205 (minimal_language_data): Likewise.
7206 * c-lang.h (c_watch_location_expression): Delete declaration.
7207 * d-lang.c (d_language_data): Delete la_watch_location_expression
7208 initializer.
7209 * f-lang.c (f_language_data): Likewise.
7210 * go-lang.c (go_language_data): Likewise.
7211 * language.c (language_defn::watch_location_expression): Member
7212 function implementation from c_watch_location_expression.
7213 (unknown_language_data): Delete la_watch_location_expression
7214 initializer.
7215 (auto_language_data): Likewise.
7216 * language.h (language_data): Delete la_watch_location_expression
7217 field.
7218 (language_defn::watch_location_expression): Declare new member
7219 function.
7220 * m2-lang.c (m2_language_data): Delete
7221 la_watch_location_expression initializer.
7222 * objc-lang.c (objc_language_data): Likewise.
7223 * opencl-lang.c (opencl_language_data): Likewise.
7224 * p-lang.c (pascal_language_data): Likewise.
7225 * rust-lang.c (rust_watch_location_expression): Rename to
7226 rust_language::watch_location_expression.
7227 (rust_language_data): Delete la_watch_location_expression
7228 initializer.
7229 (rust_language::watch_location_expression): New member function,
7230 implementation from rust_watch_location_expression.
7231
7e56227d
AB
72322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7233
7234 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7235 ada_language::collect_symbol_completion_matches.
7236 (ada_language_data): Delete la_collect_symbol_completion_matches
7237 initializer.
7238 (ada_language::collect_symbol_completion_matches): New member
7239 function, implementation from
7240 ada_collect_symbol_completion_matches.
7241 * c-lang.c (c_language_data): Delete
7242 la_collect_symbol_completion_matches initializer.
7243 (cplus_language_data): Likewise.
7244 (asm_language_data): Likewise.
7245 (minimal_language_data): Likewise.
7246 * d-lang.c (d_language_data): Likewise.
7247 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7248 f_language::collect_symbol_completion_matches.
7249 (f_language_data): Delete la_collect_symbol_completion_matches
7250 initializer.
7251 (f_language::collect_symbol_completion_matches) New member
7252 function, implementation from f_collect_symbol_completion_matches.
7253 * go-lang.c (go_language_data): Delete
7254 la_collect_symbol_completion_matches initializer.
7255 * language.c (unknown_language_data): Likewise.
7256 (auto_language_data): Likewise.
7257 * language.h (language_data): Delete
7258 la_collect_symbol_completion_matches field.
7259 (language_defn::collect_symbol_completion_matches): New member
7260 function.
7261 * m2-lang.c (m2_language_data): Delete
7262 la_collect_symbol_completion_matches initializer.
7263 * objc-lang.c (objc_language_data): Likewise.
7264 * opencl-lang.c (opencl_language_data): Likewise.
7265 * p-lang.c (pascal_language_data): Likewise.
7266 * rust-lang.c (rust_language_data): Likewise.
7267 * symtab.c (default_collect_symbol_completion_matches): Delete.
7268 (collect_symbol_completion_matches): Update call to
7269 collect_symbol_completion_matches.
7270 (collect_symbol_completion_matches_type): Likewise.
7271 * symtab.h (default_collect_symbol_completion_matches): Delete
7272 declaration.
7273
53fc67f8
AB
72742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7275
7276 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7277 (ada_language_data): Delete la_word_break_characters initializer.
7278 (ada_language::word_break_characters): New member function.
7279 * c-lang.c (c_language_data): Delete la_word_break_characters
7280 initializer.
7281 (cplus_language_data): Likewise.
7282 (asm_language_data): Likewise.
7283 (minimal_language_data): Likewise.
7284 * completer.c: Update global comment.
7285 (advance_to_expression_complete_word_point): Update call to
7286 word_break_characters.
7287 (complete_files_symbols): Likewise.
7288 (complete_line_internal_1): Likewise.
7289 (default_completer_handle_brkchars): Likewise.
7290 (skip_quoted_chars): Likewise.
7291 * d-lang.c (d_language_data): Delete la_word_break_characters
7292 initializer.
7293 * f-lang.c (f_word_break_characters): Delete.
7294 (f_language_data): Delete la_word_break_characters initializer.
7295 (f_language::word_break_characters): New member function.
7296 * go-lang.c (go_language_data): Delete la_word_break_characters
7297 initializer.
7298 * language.c (unknown_language_data): Likewise.
7299 (auto_language_data): Likewise.
7300 * language.h (default_word_break_characters): Move declaration to
7301 earlier in the file.
7302 (language_data): Delete la_word_break_characters field.
7303 (language_defn::word_break_characters): New member function.
7304 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7305 initializer.
7306 * objc-lang.c (objc_language_data): Likewise.
7307 * opencl-lang.c (opencl_language_data): Likewise.
7308 * p-lang.c (pascal_language_data): Likewise.
7309 * rust-lang.c (rust_language_data): Likewise.
7310
c9debfb9
AB
73112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7312
7313 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7314 (ada_language_data): Delete la_get_symbol_name_matcher
7315 initializer.
7316 (language_defn::get_symbol_name_matcher_inner): New member
7317 function.
7318 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7319 initializer.
7320 (cplus_language_data): Likewise.
7321 (cplus_language::get_symbol_name_matcher_inner): New member
7322 function.
7323 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7324 (minimal_language_data): Likewise.
7325 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7326 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7327 initializer.
7328 * dictionary.c (iter_match_first_hashed): Update call to
7329 get_symbol_name_matcher.
7330 (iter_match_next_hashed): Likewise.
7331 (iter_match_next_linear): Likewise.
7332 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7333 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7334 initializer.
7335 (f_language::get_symbol_name_matcher_inner): New member function.
7336 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7337 initializer.
7338 * language.c (default_symbol_name_matcher): Update header comment,
7339 make static.
7340 (language_defn::get_symbol_name_matcher): New definition.
7341 (language_defn::get_symbol_name_matcher_inner): Likewise.
7342 (get_symbol_name_matcher): Delete.
7343 (unknown_language_data): Delete la_get_symbol_name_matcher
7344 initializer.
7345 (auto_language_data): Likewise.
7346 * language.h (language_data): Delete la_get_symbol_name_matcher
7347 field.
7348 (language_defn::get_symbol_name_matcher): New member function.
7349 (language_defn::get_symbol_name_matcher_inner): Likewise.
7350 (default_symbol_name_matcher): Delete declaration.
7351 * linespec.c (find_methods): Update call to
7352 get_symbol_name_matcher.
7353 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7354 initializer.
7355 * minsyms.c (lookup_minimal_symbol): Update call to
7356 get_symbol_name_matcher.
7357 (iterate_over_minimal_symbols): Likewise.
7358 * objc-lang.c (objc_language_data): Delete
7359 la_get_symbol_name_matcher initializer.
7360 * opencl-lang.c (opencl_language_data): Likewise.
7361 * p-lang.c (pascal_language_data): Likewise.
7362 * psymtab.c (psymbol_name_matches): Update call to
7363 get_symbol_name_matcher.
7364 * rust-lang.c (rust_language_data): Delete
7365 la_get_symbol_name_matcher initializer.
7366 * symtab.c (symbol_matches_search_name): Update call to
7367 get_symbol_name_matcher.
7368 (compare_symbol_name): Likewise.
7369
9a49ad8c
AB
73702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7371
7372 * ada-lang.c (ada_language_data): Delete la_compute_program
7373 initializer.
7374 * c-lang.c (c_language_data): Likewise.
7375 (c_language::compute_program): New member function.
7376 (cplus_language_data): Delete la_compute_program initializer.
7377 (cplus_language::compute_program): New member function.
7378 (asm_language_data): Delete la_compute_program initializer.
7379 (minimal_language_data): Likewise.
7380 * c-lang.h (c_compute_program): Update comment.
7381 (cplus_compute_program): Likewise.
7382 * compile/compile-c-support.c (c_compute_program): Likewise.
7383 (cplus_compute_program): Likewise.
7384 * compile/compile.c (compile_to_object): Update call to
7385 la_compute_program.
7386 * d-lang.c (d_language_data): Delete la_compute_program
7387 initializer.
7388 * f-lang.c (f_language_data): Likewise.
7389 * go-lang.c (go_language_data): Likewise.
7390 * language.c (unknown_language_data): Likewise.
7391 (auto_language_data): Likewise.
7392 * language.h (language_data): Delete la_compute_program field.
7393 (language_defn::compute_program): New member function.
7394 * m2-lang.c (m2_language_data): Delete la_compute_program
7395 initializer.
7396 * objc-lang.c (objc_language_data): Likewise.
7397 * opencl-lang.c (opencl_language_data): Likewise.
7398 * p-lang.c (pascal_language_data): Likewise.
7399 * rust-lang.c (rust_language_data): Likewise.
7400
eff93b4d
AB
74012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7402
7403 * ada-lang.c (ada_language_data) Delete
7404 la_class_name_from_physname initializer.
7405 * c-lang.c (c_language_data): Likewise.
7406 (cplus_language_data): Likewise.
7407 (cplus_language::class_name_from_physname): New member function.
7408 (asm_language_data): Delete la_class_name_from_physname
7409 initializer.
7410 (minimal_language_data): Likewise.
7411 * d-lang.c (d_language_data): Likewise.
7412 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7413 method on language_defn class.
7414 (guess_full_die_structure_name): Likewise.
7415 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7416 initializer.
7417 * go-lang.c (go_language_data): Likewise.
7418 * language.c (language_class_name_from_physname): Delete.
7419 (unk_lang_class_name): Delete.
7420 (unknown_language_data): Delete la_class_name_from_physname
7421 initializer.
7422 (auto_language_data): Likewise.
7423 * language.h (language_data): Delete la_class_name_from_physname
7424 field.
7425 (language_defn::class_name_from_physname): New function.
7426 (language_class_name_from_physname): Delete declaration.
7427 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7428 initializer.
7429 * objc-lang.c (objc_language_data): Likewise.
7430 * opencl-lang.c (opencl_language_data): Likewise.
7431 * p-lang.c (pascal_language_data): Likewise.
7432 * rust-lang.c (rust_language_data): Likewise.
7433
de543742
TT
74342020-06-16 Tom Tromey <tom@tromey.com>
7435
7436 * tui/tui-data.h (STATUS_NAME): New macro.
7437 * tui/tui-layout.c (tui_remove_some_windows)
7438 (initialize_known_windows, tui_register_window)
7439 (tui_layout_split::remove_windows, initialize_layouts)
7440 (tui_new_layout_command): Don't use hard-coded window names.
7441
a350efd4
TT
74422020-06-16 Tom Tromey <tom@tromey.com>
7443
7444 PR tui/25348:
7445 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7446 tui_initialize_readline. Only run once. Call rl_initialize.
7447 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7448 tui_initialize_readline.
7449 * tui/tui-io.c (tui_setup_io): Call
7450 tui_ensure_readline_initialized.
7451 * tui/tui-interp.c (tui_interp::init): Update.
7452
39ec0490
TT
74532020-06-16 Tom Tromey <tom@tromey.com>
7454
7455 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7456 Also preserve the status window.
7457
d2d1ea20
TT
74582020-06-16 Tom Tromey <tom@tromey.com>
7459
7460 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7461 where m_window==nullptr.
7462
66920317
TT
74632020-06-15 Tom Tromey <tromey@adacore.com>
7464
7465 * windows-nat.c (windows_nat::handle_output_debug_string):
7466 Update.
7467 (windows_nat::handle_ms_vc_exception): Update.
7468 * target.h (target_read_string): Change API.
7469 * target.c (target_read_string): Change API.
7470 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7471 Update.
7472 * solib-frv.c (frv_current_sos): Update.
7473 * solib-dsbt.c (dsbt_current_sos): Update.
7474 * solib-darwin.c (darwin_current_sos): Update.
7475 * linux-thread-db.c (inferior_has_bug): Update.
7476 * expprint.c (print_subexp_standard): Update.
7477 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7478 (ada_exception_message_1): Update.
7479
a5d871dd
TT
74802020-06-15 Tom Tromey <tromey@adacore.com>
7481
7482 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7483
670e35fa
TT
74842020-06-15 Tom Tromey <tromey@adacore.com>
7485
7486 * valprint.c (read_string): Update comment.
7487 * target.c (MIN): Remove.
7488 (target_read_string): Rewrite.
7489
f5272a3b
TT
74902020-06-15 Tom Tromey <tromey@adacore.com>
7491
7492 * corefile.c (read_memory_string): Remove.
7493 * ada-valprint.c (ada_value_print_ptr): Update.
7494 * ada-lang.h (ada_tag_name): Change return type.
7495 * ada-lang.c (type_from_tag): Update.
7496 (ada_tag_name_from_tsd): Change return type. Use
7497 target_read_string.
7498 (ada_tag_name): Likewise.
7499 * gdbcore.h (read_memory_string): Don't declare.
7500
2c074f49
HD
75012020-06-14 Hannes Domani <ssbssa@yahoo.de>
7502
7503 * symtab.c (rbreak_command): Ignore Windows drive colon.
7504
6a17d503
SM
75052020-06-12 Simon Marchi <simon.marchi@efficios.com>
7506
7507 * NEWS: Mention removed GDBserver host support.
7508
453c733f
NC
75092020-06-12 Nelson Chu <nelson.chu@sifive.com>
7510
7511 * features/riscv/rebuild-csr-xml.sh: Updated.
7512
2b4e6a3f
TT
75132020-06-11 Tom Tromey <tom@tromey.com>
7514
7515 PR gdb/18318:
7516 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7517
4412332f
JG
75182020-06-09 Jonny Grant <jg@jguk.org>
75192020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7520
7521 * main.c (captured_main_1): Don't print new line after help.
7522 (print_gdb_help): add mailing list and IRC channel information
7523 to --help. Add new lines between items in the footer. Remove
7524 quotes around bug url.
7525
2f33032a
KS
75262020-06-11 Keith Seitz <keiths@redhat.com>
7527
7528 PR gdb/21356
7529 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7530 Resolve typedefs for type length calculations.
7531
7ab96794
TV
75322020-06-10 Tom de Vries <tdevries@suse.de>
7533
7534 PR ada/24713
7535 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7536 (write_psymbols): Enable .gdb_index for ada.
7537 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7538 ada.
7539
e5f3ece2
TV
75402020-06-10 Tom de Vries <tdevries@suse.de>
7541
7542 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7543 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7544 namei" instead of "const char *name" argument.
7545 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7546 dw2_symtab_iter_init.
7547
940da03e
SM
75482020-06-08 Simon Marchi <simon.marchi@efficios.com>
7549
7550 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7551 to use type::field and field::type instead.
7552
b6cdac4b
SM
75532020-06-08 Simon Marchi <simon.marchi@efficios.com>
7554
7555 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7556 to use field::type instead.
7557
5d14b6e5
SM
75582020-06-08 Simon Marchi <simon.marchi@efficios.com>
7559
7560 * gdbtypes.h (struct field) <type, set_type>: New methods.
7561 Rename `type` field to...
7562 <m_type>: ... this. Change references throughout to use type or
7563 set_type methods.
7564 (FIELD_TYPE): Use field::type. Change call sites that modify
7565 the field's type to use field::set_type instead.
7566
3d967001
SM
75672020-06-08 Simon Marchi <simon.marchi@efficios.com>
7568
7569 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7570 to use type::index_type instead.
7571
262abc0d
SM
75722020-06-08 Simon Marchi <simon.marchi@efficios.com>
7573
7574 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7575 methods.
7576 (TYPE_INDEX_TYPE): Use type::index_type.
7577 * gdbtypes.c (create_array_type_with_stride): Likewise.
7578
82836c92
TT
75792020-06-07 Tom Tromey <tom@tromey.com>
7580
7581 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7582 parameter.
7583 (generic_value_print): Update.
7584
940dace9
AB
75852020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7586
7587 Revert commit 982a38f60b0.
7588 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7589
982a38f6
AB
75902020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7591
7592 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7593 avoid use after free.
7594
82f06518
TV
75952020-06-05 Tom de Vries <tdevries@suse.de>
7596
7597 * NEWS: Fix typos.
7598
f8c41851
SM
75992020-06-04 Simon Marchi <simon.marchi@efficios.com>
7600
7601 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7602 the per_bfd object.
7603 (dwarf2_read_debug_names): Likewise.
7604 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7605 object when re-using a per_bfd object with an index.
7606
f9b5d5ea
TV
76072020-06-03 Tom de Vries <tdevries@suse.de>
7608
7609 PR symtab/26046
7610 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7611 children for C++.
7612 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7613 DW_TAG_subprogram.
7614
f6eee2d0
AB
76152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7616
7617 * ada-lang.c (ada_language_data): Delete skip_trampoline
7618 initializer.
7619 * c-lang.c (c_language_data): Likewise.
7620 (cplus_language_data): Likewise.
7621 (cplus_language::skip_trampoline): New member function.
7622 (asm_language_data): Delete skip_trampoline initializer.
7623 (minimal_language_data): Likewise.
7624 * d-lang.c (d_language_data): Likewise.
7625 * f-lang.c (f_language_data): Likewise.
7626 * go-lang.c (go_language_data): Likewise.
7627 * language.c (unk_lang_trampoline): Delete function.
7628 (skip_language_trampoline): Update.
7629 (unknown_language_data): Delete skip_trampoline initializer.
7630 (auto_language_data): Likewise.
7631 * language.h (language_data): Delete skip_trampoline field.
7632 (language_defn::skip_trampoline): New function.
7633 * m2-lang.c (m2_language_data): Delete skip_trampoline
7634 initializer.
7635 * objc-lang.c (objc_skip_trampoline): Delete function, move
7636 implementation to objc_language::skip_trampoline.
7637 (objc_language_data): Delete skip_trampoline initializer.
7638 (objc_language::skip_trampoline): New member function with
7639 implementation from objc_skip_trampoline.
7640 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7641 initializer.
7642 * p-lang.c (pascal_language_data): Likewise.
7643 * rust-lang.c (rust_language_data): Likewise.
7644
0a50df5d
AB
76452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7646
7647 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7648 (ada_language::demangle): New member function.
7649 * c-lang.c (c_language_data): Delete la_demangle initializer.
7650 (cplus_language_data): Delete la_demangle initializer.
7651 (cplus_language::demangle): New member function.
7652 (asm_language_data): Delete la_demangle initializer.
7653 (minimal_language_data): Delete la_demangle initializer.
7654 * d-lang.c (d_language_data): Delete la_demangle initializer.
7655 (d_language::demangle): New member function.
7656 * f-lang.c (f_language_data): Delete la_demangle initializer.
7657 (f_language::demangle): New member function.
7658 * go-lang.c (go_language_data): Delete la_demangle initializer.
7659 (go_language::demangle): New member function.
7660 * language.c (language_demangle): Update.
7661 (unk_lang_demangle): Delete.
7662 (unknown_language_data): Delete la_demangle initializer.
7663 (unknown_language::demangle): New member function.
7664 (auto_language_data): Delete la_demangle initializer.
7665 (auto_language::demangle): New member function.
7666 * language.h (language_data): Delete la_demangle field.
7667 (language_defn::demangle): New function.
7668 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7669 * objc-lang.c (objc_language_data): Delete la_demangle
7670 initializer.
7671 (objc_language::demangle): New member function.
7672 * opencl-lang.c (opencl_language_data): Delete la_demangle
7673 initializer.
7674 * p-lang.c (pascal_language_data): Likewise.
7675 * rust-lang.c (rust_language_data): Likewise.
7676 (rust_language::demangle): New member function.
7677
fbfb0a46
AB
76782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7679
7680 * ada-lang.c (ada_language_data): Delete la_print_type
7681 initializer.
7682 (ada_language::print_type): New member function.
7683 * c-lang.c (c_language_data): Delete la_print_type initializer.
7684 (c_language::print_type): New member function.
7685 (cplus_language_data): Delete la_print_type initializer.
7686 (cplus_language::print_type): New member function.
7687 (asm_language_data): Delete la_print_type initializer.
7688 (asm_language::print_type): New member function.
7689 (minimal_language_data): Delete la_print_type initializer.
7690 (minimal_language::print_type): New member function.
7691 * d-lang.c (d_language_data): Delete la_print_type initializer.
7692 (d_language::print_type): New member function.
7693 * f-lang.c (f_language_data): Delete la_print_type initializer.
7694 (f_language::print_type): New member function.
7695 * go-lang.c (go_language_data): Delete la_print_type initializer.
7696 (go_language::print_type): New member function.
7697 * language.c (unk_lang_print_type): Delete.
7698 (unknown_language_data): Delete la_print_type initializer.
7699 (unknown_language::print_type): New member function.
7700 (auto_language_data): Delete la_print_type initializer.
7701 (auto_language::print_type): New member function.
7702 * language.h (language_data): Delete la_print_type field.
7703 (language_defn::print_type): New function.
7704 (LA_PRINT_TYPE): Update.
7705 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7706 (m2_language::print_type): New member function.
7707 * objc-lang.c (objc_language_data): Delete la_print_type
7708 initializer.
7709 (objc_language::print_type): New member function.
7710 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7711 to opencl_language::print_type.
7712 (opencl_language_data): Delete la_print_type initializer.
7713 (opencl_language::print_type): New member function, implementation
7714 from opencl_print_type.
7715 * p-lang.c (pascal_language_data): Delete la_print_type
7716 initializer.
7717 (pascal_language::print_type): New member function.
7718 * rust-lang.c (rust_print_type): Delete, implementation moved to
7719 rust_language::print_type.
7720 (rust_language_data): Delete la_print_type initializer.
7721 (rust_language::print_type): New member function, implementation
7722 from rust_print_type.
7723
6f827019
AB
77242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7725
7726 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7727 implementation moves to...
7728 (ada_language::sniff_from_mangled_name): ...here. Update return
7729 type.
7730 (ada_language_data): Delete la_sniff_from_mangled_name
7731 initializer.
7732 * c-lang.c (c_language_data): Likewise.
7733 (cplus_language_data): Likewise.
7734 (cplus_language::sniff_from_mangled_name): New member function,
7735 implementation taken from gdb_sniff_from_mangled_name.
7736 (asm_language_data): Delete la_sniff_from_mangled_name
7737 initializer.
7738 (minimal_language_data): Likewise.
7739 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7740 implementation moves to cplus_language::sniff_from_mangled_name.
7741 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7742 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7743 moves to...
7744 (d_language::sniff_from_mangled_name): ...here.
7745 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7746 * f-lang.c (f_language_data): Likewise.
7747 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7748 moves to...
7749 (go_language::sniff_from_mangled_name): ...here.
7750 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7751 * language.c (language_sniff_from_mangled_name): Delete.
7752 (unknown_language_data): Delete la_sniff_from_mangled_name
7753 initializer.
7754 (auto_language_data): Likewise.
7755 * language.h (language_data): Delete la_sniff_from_mangled_name
7756 field.
7757 (language_defn::sniff_from_mangled_name): New function.
7758 (language_sniff_from_mangled_name): Delete declaration.
7759 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7760 field.
7761 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7762 implementation moves to...
7763 (objc_language::sniff_from_mangled_name): ...here.
7764 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7765 * opencl-lang.c (opencl_language_data): Likewise.
7766 * p-lang.c (pascal_language_data): Likewise.
7767 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7768 implementation moves to...
7769 (rust_language::sniff_from_mangled_name): ...here.
7770 (rust_language_data): Delete la_sniff_from_mangled_name
7771 initializer.
7772 * symtab.c (symbol_find_demangled_name): Call
7773 sniff_from_mangled_name member function.
7774
fb8006fd
AB
77752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7776
7777 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7778 initializer.
7779 * c-lang.c (c_language_data): Likewise.
7780 (cplus_language_data): Likewise.
7781 (cplus_language::search_name_hash): New member function.
7782 (asm_language_data): Delete la_search_name_hash initializer.
7783 (minimal_language_data): Likewise.
7784 * d-lang.c (d_language_data): Likewise.
7785 * dictionary.c (default_search_name_hash): Rename to...
7786 (language_defn::search_name_hash): ...this.
7787 * f-lang.c (f_language_data): Likewise.
7788 (f_language::search_name_hash): New member function.
7789 * go-lang.c (go_language_data): Delete la_search_name_hash
7790 initializer.
7791 * language.c (unknown_language_data): Likewise.
7792 (auto_language_data): Likewise.
7793 * language.h (struct language_data): Delete la_search_name_hash
7794 field.
7795 (language_defn::search_name_hash): Declare new member function.
7796 (default_search_name_hash): Delete declaration.
7797 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7798 initializer.
7799 * objc-lang.c (objc_language_data): Likewise.
7800 * opencl-lang.c (opencl_language_data): Likewise.
7801 * p-lang.c (pascal_language_data): Likewise.
7802 * rust-lang.c (rust_language_data): Likewise.
7803 * symtab.c (search_name_hash): Update call.
7804
8e25bafe
AB
78052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7806
7807 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7808 initializer.
7809 * c-lang.c (class compile_instance): Declare.
7810 (c_language_data): Delete la_get_compile_instance initializer.
7811 (c_language::get_compile_instance): New member function.
7812 (cplus_language_data): Delete la_get_compile_instance initializer.
7813 (cplus_language::get_compile_instance): New member function.
7814 (asm_language_data): Delete la_get_compile_instance initializer.
7815 (minimal_language_data): Likewise.
7816 * c-lang.h (c_get_compile_context): Update comment.
7817 (cplus_get_compile_context): Update comment.
7818 * compile/compile.c (compile_to_object): Update calls, don't rely
7819 on function pointer being NULL.
7820 * d-lang.c (d_language_data): Delete la_get_compile_instance
7821 initializer.
7822 * f-lang.c (f_language_data): Likewise.
7823 * go-lang.c (go_language_data): Likewise.
7824 * language.c (unknown_language_data): Likewise.
7825 (auto_language_data): Likewise.
7826 * language.h (language_data): Delete la_get_compile_instance field.
7827 (language_defn::get_compile_instance): New member function.
7828 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7829 initializer.
7830 * objc-lang.c (objc_language_data): Likewise.
7831 * opencl-lang.c (opencl_language_data): Likewise.
7832 * p-lang.c (pascal_language_data): Likewise.
7833 * rust-lang.c (rust_language_data): Likewise.
7834
4009ee92
AB
78352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7836
7837 * ada-lang.c (ada_add_all_symbols): Update comment.
7838 (ada_iterate_over_symbols): Delete, move implementation to...
7839 (ada_language::iterate_over_symbols): ...here, a new member
7840 function, rewrite to use range based for loop.
7841 (ada_language_data): Delete la_iterate_over_symbols initializer.
7842 * c-lang.c (c_language_data): Likewise.
7843 (cplus_language_data): Likewise.
7844 (asm_language_data): Likewise.
7845 (minimal_language_data): Likewise.
7846 * d-lang.c (d_language_data): Likewise.
7847 * f-lang.c (f_language_data): Likewise.
7848 * go-lang.c (go_language_data): Likewise.
7849 * language.c (unknown_language_data): Likewise.
7850 (auto_language_data): Likewise.
7851 * language.h (language_data): Delete la_iterate_over_symbols field.
7852 (language_defn::iterate_over_symbols): New member function.
7853 (LA_ITERATE_OVER_SYMBOLS): Update.
7854 * linespec.c (iterate_over_all_matching_symtabs): Update.
7855 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7856 initializer.
7857 * objc-lang.c (objc_language_data): Likewise.
7858 * opencl-lang.c (opencl_language_data): Likewise.
7859 * p-lang.c (pascal_language_data): Likewise.
7860 * rust-lang.c (rust_language_data): Likewise.
7861
54f4ca46
AB
78622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7863
7864 * ada-lang.c (ada_language_data): Delete
7865 la_lookup_transparent_type initializer.
7866 * c-lang.c (c_language_data): Likewise.
7867 (cplus_language_data): Likewise.
7868 (cplus_language::lookup_transparent_type): New member function.
7869 (asm_language_data): Delete la_lookup_transparent_type
7870 initializer.
7871 (minimal_language_data): Likewise.
7872 * d-lang.c (d_language_data): Likewise.
7873 * f-lang.c (f_language_data): Likewise.
7874 * go-lang.c (go_language_data): Likewise.
7875 * language.c (unknown_language_data): Likewise.
7876 (auto_language_data): Likewise.
7877 * language.h (struct language_data): Delete
7878 la_lookup_transparent_type field.
7879 (language_defn::lookup_transparent_type): New member function.
7880 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7881 initializer.
7882 * objc-lang.c (objc_language_data): Likewise.
7883 * opencl-lang.c (opencl_language_data): Likewise.
7884 * p-lang.c (pascal_language_data): Likewise.
7885 * rust-lang.c (rust_language_data): Likewise.
7886 * symtab.c (symbol_matches_domain): Update call.
7887
1fb314aa
AB
78882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7889
7890 * ada-lang.c (ada_language_arch_info): Delete function, move
7891 implementation to...
7892 (ada_language::language_arch_info): ...here, a new member
7893 function.
7894 (ada_language_data): Delete la_language_arch_info.
7895 * c-lang.c (c_language_data): Likewise.
7896 (c_language::language_arch_info): New member function.
7897 (cplus_language_arch_info): Delete function, move
7898 implementation to...
7899 (cplus_language::language_arch_info): ...here, a new member
7900 function.
7901 (cplus_language_data): Delete la_language_arch_info.
7902 (asm_language_data): Likewise.
7903 (asm_language::language_arch_info): New member function.
7904 (minimal_language_data): Delete la_language_arch_info.
7905 (minimal_language::language_arch_info): New member function.
7906 * d-lang.c (d_language_arch_info): Delete function, move
7907 implementation to...
7908 (d_language::language_arch_info): ...here, a new member
7909 function.
7910 (d_language_data): Delete la_language_arch_info.
7911 * f-lang.c (f_language_arch_info): Delete function, move
7912 implementation to...
7913 (f_language::language_arch_info): ...here, a new member
7914 function.
7915 (f_language_data): Delete la_language_arch_info.
7916 * go-lang.c (go_language_arch_info): Delete function, move
7917 implementation to...
7918 (go_language::language_arch_info): ...here, a new member
7919 function.
7920 (go_language_data): Delete la_language_arch_info.
7921 * language.c (unknown_language_data): Likewise.
7922 (unknown_language::language_arch_info): New member function.
7923 (auto_language_data): Delete la_language_arch_info.
7924 (auto_language::language_arch_info): New member function.
7925 (language_gdbarch_post_init): Update call to
7926 la_language_arch_info.
7927 * language.h (language_data): Delete la_language_arch_info
7928 function pointer.
7929 (language_defn::language_arch_info): New function.
7930 * m2-lang.c (m2_language_arch_info): Delete function, move
7931 implementation to...
7932 (m2_language::language_arch_info): ...here, a new member
7933 function.
7934 (m2_language_data): Delete la_language_arch_info.
7935 * objc-lang.c (objc_language_arch_info): Delete function, move
7936 implementation to...
7937 (objc_language::language_arch_info): ...here, a new member
7938 function.
7939 (objc_language_data): Delete la_language_arch_info.
7940 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7941 implementation to...
7942 (opencl_language::language_arch_info): ...here, a new member
7943 function.
7944 (opencl_language_data): Delete la_language_arch_info.
7945 * p-lang.c (pascal_language_arch_info): Delete function, move
7946 implementation to...
7947 (pascal_language::language_arch_info): ...here, a new member
7948 function.
7949 (pascal_language_data): Delete la_language_arch_info.
7950 * rust-lang.c (rust_language_arch_info): Delete function, move
7951 implementation to...
7952 (rust_language::language_arch_info): ...here, a new member
7953 function.
7954 (rust_language_data): Delete la_language_arch_info.
7955
48448202
AB
79562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7957
7958 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7959 initializer.
7960 * c-lang.c (c_language_data): Likewise.
7961 (cplus_language_data): Likewise.
7962 (cplus_language::pass_by_reference_info): New method.
7963 (asm_language_data): Delete la_pass_by_reference initializer.
7964 (minimal_language_data): Likewise.
7965 * cp-abi.c (cp_pass_by_reference): Remove use of
7966 default_pass_by_reference.
7967 * d-lang.c (d_language_data): Likewise.
7968 * f-lang.c (f_language_data): Likewise.
7969 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7970 default_pass_by_reference.
7971 * go-lang.c (go_language_data): Likewise.
7972 * language.c (language_pass_by_reference): Update.
7973 (default_pass_by_reference): Delete.
7974 (unknown_language_data): Delete la_pass_by_reference
7975 initializer.
7976 (auto_language_data): Likewise.
7977 * language.h (struct language_data): Delete la_pass_by_reference
7978 field.
7979 (language_defn::pass_by_reference_info): New member function.
7980 (default_pass_by_reference): Delete declaration.
7981 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7982 initializer.
7983 * objc-lang.c (objc_language_data): Likewise.
7984 * opencl-lang.c (opencl_language_data): Likewise.
7985 * p-lang.c (pascal_language_data): Likewise.
7986 * rust-lang.c (rust_language_data): Likewise.
7987
15e5fd35
AB
79882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7989
7990 * ada-lang.c (ada_read_var_value): Delete function, move
7991 implementation to...
7992 (ada_language::read_var_value): ...here.
7993 (ada_language_data): Delete la_read_var_value initializer.
7994 * c-lang.c (c_language_data): Likewise.
7995 (cplus_language_data): Likewise.
7996 (minimal_language_data): Likewise.
7997 * d-lang.c (d_language_data): Likewise.
7998 * f-lang.c (f_language_data): Likewise.
7999 * findvar.c (default_read_var_value): Rename to...
8000 (language_defn::read_var_value): ...this.
8001 * findvar.c (read_var_value): Update header comment, and change to
8002 call member function instead of function pointer.
8003 * go-lang.c (go_language_data): Likewise.
8004 * language.c (unknown_language_data): Delete la_read_var_value
8005 initializer.
8006 (auto_language_data): Likewise.
8007 * language.h (struct language_data): Delete la_read_var_value
8008 field.
8009 (language_defn::read_var_value): New member function.
8010 (default_read_var_value): Delete declaration.
8011 * m2-lang.c (m2_language_data): Delete la_read_var_value
8012 initializer.
8013 * objc-lang.c (objc_language_data): Likewise.
8014 * opencl-lang.c (opencl_language_data): Likewise.
8015 * p-lang.c (pascal_language_data): Likewise.
8016 * rust-lang.c (rust_language_data): Likewise.
8017 * value.h (default_read_var_value): Delete declaration.
8018
5bd40f2a
AB
80192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8020
8021 * ada-lang.c (ada_print_array_index): Delete function, move
8022 implementation to...
8023 (ada_language::print_array_index): ...here.
8024 (ada_language_data): Delete la_print_array_index initializer.
8025 * c-lang.c (c_language_data): Likewise.
8026 (cplus_language_data): Likewise.
8027 (minimal_language_data): Likewise.
8028 * d-lang.c (d_language_data): Likewise.
8029 * f-lang.c (f_language_data): Likewise.
8030 * go-lang.c (go_language_data): Likewise.
8031 * language.c (default_print_array_index): Delete function, move
8032 implementation to...
8033 (language_defn::print_array_index): ...here.
8034 (unknown_language_data): Delete la_print_array_index initializer.
8035 (auto_language_data): Likewise.
8036 * language.h (struct language_data): Delete la_print_array_index
8037 field.
8038 (language_defn::print_array_index): New member function.
8039 (LA_PRINT_ARRAY_INDEX): Update.
8040 (default_print_array_index): Delete declaration.
8041 * m2-lang.c (m2_language_data): Delete la_print_array_index
8042 initializer.
8043 * objc-lang.c (objc_language_data): Likewise.
8044 * opencl-lang.c (opencl_language_data): Likewise.
8045 * p-lang.c (pascal_language_data): Likewise.
8046 * rust-lang.c (rust_language_data): Likewise.
8047
0874fd07
AB
80482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8049
8050 * gdb/ada-lang.c (ada_language_defn): Convert to...
8051 (ada_language_data): ...this.
8052 (class ada_language): New class.
8053 (ada_language_defn): New static global.
8054 * gdb/c-lang.c (c_language_defn): Convert to...
8055 (c_language_data): ...this.
8056 (class c_language): New class.
8057 (c_language_defn): New static global.
8058 (cplus_language_defn): Convert to...
8059 (cplus_language_data): ...this.
8060 (class cplus_language): New class.
8061 (cplus_language_defn): New static global.
8062 (asm_language_defn): Convert to...
8063 (asm_language_data): ...this.
8064 (class asm_language): New class.
8065 (asm_language_defn): New static global.
8066 (minimal_language_defn): Convert to...
8067 (minimal_language_data): ...this.
8068 (class minimal_language): New class.
8069 (minimal_language_defn): New static global.
8070 * gdb/d-lang.c (d_language_defn): Convert to...
8071 (d_language_data): ...this.
8072 (class d_language): New class.
8073 (d_language_defn): New static global.
8074 * gdb/f-lang.c (f_language_defn): Convert to...
8075 (f_language_data): ...this.
8076 (class f_language): New class.
8077 (f_language_defn): New static global.
8078 * gdb/go-lang.c (go_language_defn): Convert to...
8079 (go_language_data): ...this.
8080 (class go_language): New class.
8081 (go_language_defn): New static global.
8082 * gdb/language.c (unknown_language_defn): Remove declaration.
8083 (current_language): Initialize to nullptr, real initialization is
8084 moved to _initialize_language.
8085 (languages): Delete global.
8086 (language_defn::languages): Define.
8087 (set_language_command): Use language_defn::languages.
8088 (set_language): Likewise.
8089 (range_error): Likewise.
8090 (language_enum): Likewise.
8091 (language_def): Likewise.
8092 (add_set_language_command): Use language_def::languages for the
8093 language list, and language_def to lookup language pointers.
8094 (skip_language_trampoline): Use language_defn::languages.
8095 (unknown_language_defn): Convert to...
8096 (unknown_language_data): ...this.
8097 (class unknown_language): New class.
8098 (unknown_language_defn): New static global.
8099 (auto_language_defn): Convert to...
8100 (auto_language_data): ...this.
8101 (class auto_language): New class.
8102 (auto_language_defn): New static global.
8103 (language_gdbarch_post_init): Use language_defn::languages.
8104 (_initialize_language): Initialize current_language.
8105 * gdb/language.h (struct language_defn): Rename to...
8106 (struct language_data): ...this.
8107 (struct language_defn): New.
8108 (auto_language_defn): Delete.
8109 (unknown_language_defn): Delete.
8110 (minimal_language_defn): Delete.
8111 (ada_language_defn): Delete.
8112 (asm_language_defn): Delete.
8113 (c_language_defn): Delete.
8114 (cplus_language_defn): Delete.
8115 (d_language_defn): Delete.
8116 (f_language_defn): Delete.
8117 (go_language_defn): Delete.
8118 (m2_language_defn): Delete.
8119 (objc_language_defn): Delete.
8120 (opencl_language_defn): Delete.
8121 (pascal_language_defn): Delete.
8122 (rust_language_defn): Delete.
8123 * gdb/m2-lang.c (m2_language_defn): Convert to...
8124 (m2_language_data): ...this.
8125 (class m2_language): New class.
8126 (m2_language_defn): New static global.
8127 * gdb/objc-lang.c (objc_language_defn): Convert to...
8128 (objc_language_data): ...this.
8129 (class objc_language): New class.
8130 (objc_language_defn): New static global.
8131 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8132 (opencl_language_data): ...this.
8133 (class opencl_language): New class.
8134 (opencl_language_defn): New static global.
8135 * gdb/p-lang.c (pascal_language_defn): Convert to...
8136 (pascal_language_data): ...this.
8137 (class pascal_language): New class.
8138 (pascal_language_defn): New static global.
8139 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8140 language pointer, update comment format.
8141 * gdb/rust-lang.c (rust_language_defn): Convert to...
8142 (rust_language_data): ...this.
8143 (class rust_language): New class.
8144 (rust_language_defn): New static global.
8145
1313c56e
AB
81462020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8147
8148 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8149 member variable.
8150 <m_stmt_at_address>: New member variable.
8151 (lnp_state_machine::record_line): Don't record some lines, update
8152 tracking of is_stmt at the same address.
8153 (lnp_state_machine::lnp_state_machine): Initialise new member
8154 variables.
8155
b7ed9f3d
ST
81562020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8157
8158 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8159 "-include gnu-nat-mig.h".
8160 * gnu-nat-mig.h: New file.
8161 * gnu-nat.c: Include "gnu-nat-mig.h".
8162 (exc_server, msg_reply_server, notify_server,
8163 process_reply_server): Remove declarations.
8164
14a8ad62
ST
81652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8166
8167 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8168 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8169 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8170 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8171 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8172 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8173 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8174 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8175 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8176 to gnu_nat_target class.
8177 * gnu-nat.c: Likewise.
8178 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8179 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8180 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8181 object.
8182 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8183 instead of `gnu_target'.
8184
0af5e106
ST
81852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8186
8187 * i386-gnu-tdep.c: Include "gdbcore.h"
8188 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8189 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8190 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8191 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8192 i386_gnu_sigcontext_addr): New functions
8193 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8194 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8195 tdep.
8196
078f2fc9
ST
81972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8198
8199 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8200 before fork_inferior call. Avoid calling it if target_is_pushed returns
8201 true.
8202
53dff92c
ST
82032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8204
8205 * gnu-nat.h (gnu_target): New variable declaration.
8206 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8207 gnu_target.
8208 * gnu-nat.c (gnu_target): New variable.
8209 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8210 add_thread_silent, and add_thread calls.
8211 (gnu_nat_target::create_inferior): Pass gnu_target to
8212 add_thread_silent, thread_change_ptid call.
8213 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8214 call.
8215
5a8b8627
ST
82162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8217
8218 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8219 (gnu_nat_target::find_memory_regions): Remove unused
8220 `old_address' variable.
8221
366f550a
ST
82222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8223
8224 * gnu-nat.c: Include "gdbarch.h".
8225
f14871bf
ST
82262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8227
8228 * reply_mig_hack.awk (Error return): Cast function through
8229 void *, to bypass compiler function call check.
8230
c6887cfb
ST
82312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8232
8233 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8234 $(srcdir)/reply_mig_hack.awk.
8235
6930bffe
ST
82362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8237
8238 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8239
112c22ed
JG
82402020-05-30 Jonny Grant <jg@jguk.org>
8241
8242 * configure.ac (ACX_BUGURL): change bug URL to https.
8243
f68f85b5
PA
82442020-05-30 Pedro Alves <palves@redhat.com>
8245
8246 * cp-support.c (replace_typedefs_template): New.
8247 (replace_typedefs_qualified_name): Handle
8248 DEMANGLE_COMPONENT_TEMPLATE.
8249
976ca316
SM
82502020-05-29 Simon Marchi <simon.marchi@efficios.com>
8251
8252 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8253 dwarf2/index-cache.h, dwarf2/index-write.c,
8254 dwarf2/index-write.h, dwarf2/line-header.c,
8255 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8256 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8257 variables and fields from `dwarf2_per_objfile` to just
8258 `per_objfile` throughout.
8259
989ade05
SM
82602020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8261
8262 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8263 <push_dwarf_reg_entry_value>: Add comment.
8264
c47bae85
KB
82652020-05-28 Kevin Buettner <kevinb@redhat.com>
8266 Keith Seitz <keiths@redhat.com>
8267
8268 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8269 instead of PyEval_ReleaseLock.
8270 (class gdbpy_gil): Move to earlier in file.
8271 (finalize_python): Set gdb_python_initialized.
8272 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8273 when not initialized.
8274
44486dcf
SM
82752020-05-28 Simon Marchi <simon.marchi@efficios.com>
8276
8277 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8278 <push_dwarf_reg_entry_value>: Remove assert. Override
8279 per_objfile with caller_per_objfile.
8280
f030440d
TV
82812020-05-28 Tom de Vries <tdevries@suse.de>
8282
8283 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8284 PR gold/15646 workaround to symbol kind "type".
8285
f0fbb768
TT
82862020-05-27 Tom Tromey <tromey@adacore.com>
8287
8288 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8289
af0b2a3e
TT
82902020-05-27 Tom Tromey <tromey@adacore.com>
8291
8292 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8293 Use htab_find_with_hash.
8294 <add_abbrev>: Remove "abbrev_number" parameter.
8295 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8296 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8297 (hash_abbrev): Add comment.
8298 (abbrev_table::lookup_abbrev): Move to header file.
8299 (abbrev_table::read): Update.
8300
7d00ffec
TT
83012020-05-27 Tom Tromey <tromey@adacore.com>
8302
8303 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8304 method.
8305 <canonical_name>: New member.
8306 <raw_name>: Rename from "name".
8307 (partial_die_info): Initialize canonical_name.
8308 (scan_partial_symbols): Check raw_name.
8309 (partial_die_parent_scope, partial_die_full_name)
8310 (add_partial_symbol, add_partial_subprogram)
8311 (add_partial_enumeration, load_partial_dies): Use "name" method.
8312 (partial_die_info::name): New method.
8313 (partial_die_info::read, guess_partial_die_structure_name)
8314 (partial_die_info::fixup): Update.
8315
697bba18
TT
83162020-05-27 Tom Tromey <tromey@adacore.com>
8317
8318 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8319 <get_ref_die_offset>: Inline.
8320 <get_ref_die_offset_complaint>: New method.
8321 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8322 (attribute::get_ref_die_offset_complaint): Rename from
8323 get_ref_die_offset. Just issue complaint.
8324
c17ace43
HD
83252020-05-27 Hannes Domani <ssbssa@yahoo.de>
8326
8327 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8328
96445f0b
HD
83292020-05-27 Hannes Domani <ssbssa@yahoo.de>
8330
8331 * exec.c (exec_file_attach): Use errno value of first openp failure.
8332
ac637ec3
HD
83332020-05-27 Hannes Domani <ssbssa@yahoo.de>
8334
8335 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8336 Don't close thread handle.
8337
17ee85fc
TT
83382020-05-27 Tom Tromey <tom@tromey.com>
8339 Simon Marchi <simon.marchi@efficios.com>
8340
8341 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8342 shared_ptr.
8343 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8344 member.
8345 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8346 dwarf2_per_bfd_objfile_data_key>: New globals.
8347 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8348 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8349 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8350 shared.
8351 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8352 short-circuit when sharing.
8353 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8354 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8355
39b16f87
SM
83562020-05-27 Simon Marchi <simon.marchi@efficios.com>
8357
8358 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8359 to...
8360 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8361 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8362
fcf23d5b
SM
83632020-05-27 Simon Marchi <simon.marchi@efficios.com>
8364
8365 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8366 build_name_components, find_name_components_bounds>:
8367 Add per_objfile parameter.
8368 (struct mapped_index) <symbol_name_at>: Likewise.
8369 (struct mapped_debug_names): Remove constructor.
8370 <dwarf2_per_objfile>: Remove field.
8371 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8372 (mapped_index_base::find_name_components_bounds,
8373 mapped_index_base::build_name_components,
8374 dw2_expand_symtabs_matching_symbol): Likewise.
8375 (class mock_mapped_index) <symbol_name_at>: Likewise.
8376 (check_match): Likewise.
8377 (check_find_bounds_finds): Likewise.
8378 (test_mapped_index_find_name_component_bounds): Update.
8379 (CHECK_MATCH): Update.
8380 (dw2_expand_symtabs_matching): Update.
8381 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8382 per_objfile parameter.
8383 <find_vec_in_debug_names>: Likewise.
8384 <m_per_objfile>: New field.
8385 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8386 parameter.
8387 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8388 (dw2_debug_names_iterator::next): Update.
8389 (dw2_debug_names_lookup_symbol): Update.
8390 (dw2_debug_names_expand_symtabs_for_function): Update.
8391 (dw2_debug_names_map_matching_symbols): Update.
8392 (dw2_debug_names_expand_symtabs_matching): Update.
8393 (dwarf2_read_debug_names): Update.
8394
7188ed02
SM
83952020-05-27 Simon Marchi <simon.marchi@efficios.com>
8396
8397 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8398 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8399 move to dwarf2_per_objfile.
8400 <read_in_chain>: Remove.
8401 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8402 remove_all_cus, age_comp_units>: New methods.
8403 <m_dwarf2_cus>: New member.
8404 (struct dwarf2_per_cu_data) <cu>: Remove.
8405 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8406 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8407 moved to methods of dwarf2_per_objfile.
8408 (dwarf2_clear_marks): Remove.
8409 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8410 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8411 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8412 (dwarf2_per_objfile::remove_all_cus): New.
8413 (class free_cached_comp_units) <~free_cached_comp_units>:
8414 Update.
8415 (load_cu): Update.
8416 (dw2_do_instantiate_symtab): Adjust.
8417 (fill_in_sig_entry_from_dwo_entry): Adjust.
8418 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8419 (cutu_reader::cutu_reader): Likewise.
8420 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8421 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8422 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8423 and dwarf2_per_objfile::age_comp_units.
8424 (load_partial_comp_unit): Update.
8425 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8426 (process_queue): Likewise.
8427 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8428 backlink.
8429 (dwarf2_read_addr_index): Likewise.
8430 (follow_die_offset): Likewise.
8431 (dwarf2_fetch_die_loc_sect_off): Likewise.
8432 (dwarf2_fetch_constant_bytes): Likewise.
8433 (dwarf2_fetch_die_type_sect_off): Likewise.
8434 (follow_die_sig_1): Likewise.
8435 (load_full_type_unit): Likewise.
8436 (read_signatured_type): Likewise.
8437 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8438 (dwarf2_cu::~dwarf2_cu): Remove.
8439 (dwarf2_per_objfile::get_cu): New.
8440 (dwarf2_per_objfile::set_cu): New.
8441 (age_cached_comp_units): Rename to...
8442 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8443 to std::unordered_map.
8444 (free_one_cached_comp_unit): Rename to...
8445 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8446 to std::unordered_map.
8447 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8448 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8449 a dwarf2_per_objfile in data.
8450 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8451 (dwarf2_clear_marks): Remove.
8452
2e671100
SM
84532020-05-27 Simon Marchi <simon.marchi@efficios.com>
8454
8455 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8456 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8457 (init_tu_and_read_dwo_dies): Likewise.
8458 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8459 (cutu_reader::cutu_reader): Likewise.
8460 (load_partial_comp_unit): Likewise.
8461 (process_psymtab_comp_unit): Update.
8462 (build_type_psymtabs_1): Update.
8463 (process_skeletonless_type_unit): Update.
8464 (load_full_comp_unit): Update.
8465 (find_partial_die): Update.
8466 (dwarf2_read_addr_index): Update.
8467 (read_signatured_type): Update.
8468
2e6a9f79
SM
84692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8470
8471 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8472 m_header_read_in>: New fields.
8473 <get_header>: New method.
8474 * dwarf2/read.c (per_cu_header_read_in): Remove.
8475 (dwarf2_per_cu_data::get_header): New.
8476 (dwarf2_per_cu_data::addr_size): Update.
8477 (dwarf2_per_cu_data::offset_size): Update.
8478 (dwarf2_per_cu_data::ref_addr_size): Update.
8479
1b555f17
SM
84802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8481
8482 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8483 (dw2_do_instantiate_symtab): Update.
8484 (queue_and_load_all_dwo_tus): Change parameter from
8485 dwarf2_per_cu_data to dwarf2_cu.
8486 (dwarf2_fetch_die_loc_sect_off): Update.
8487 (dwarf2_fetch_constant_bytes): Update.
8488 (dwarf2_fetch_die_type_sect_off): Update.
8489
8fc0b21d
SM
84902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8491
8492 * dwarf2/read.c (process_full_comp_unit,
8493 process_full_type_unit): Remove per_cu, per_objfile paramters.
8494 Add dwarf2_cu parameter.
8495 (process_queue): Update.
8496
168c9250
SM
84972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8498
8499 * dwarf2/read.c (create_cu_from_index_list): Replace
8500 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8501 (create_cus_from_index_list): Likewise.
8502 (create_cus_from_index): Likewise.
8503 (create_signatured_type_table_from_index): Likewise.
8504 (create_cus_from_debug_names_list): Likewise.
8505 (create_cus_from_debug_names): Likewise.
8506 (dwarf2_read_gdb_index): Update.
8507 (dwarf2_read_debug_names): Update.
8508
e286671b
TT
85092020-05-27 Tom Tromey <tom@tromey.com>
8510 Simon Marchi <simon.marchi@efficios.com>
8511
8512 * dwarf2/read.h (struct dwarf2_per_objfile)
8513 <get_type_for_signatured_type, set_type_for_signatured_type>:
8514 New methods.
8515 <m_type_map>: New member.
8516 (struct signatured_type) <type>: Remove.
8517 * dwarf2/read.c
8518 (dwarf2_per_objfile::get_type_for_signatured_type,
8519 dwarf2_per_objfile::set_type_for_signatured_type): New.
8520 (get_signatured_type): Use new methods.
8521
8adb8487
TT
85222020-05-27 Tom Tromey <tom@tromey.com>
8523 Simon Marchi <simon.marchi@efficios.com>
8524
8525 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8526 (struct dwarf2_per_objfile) <type_units>: New member.
8527 <get_type_unit_group_unshareable>: New method.
8528 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8529 num_symtabs, symtabs>: Remove; move to
8530 type_unit_group_unshareable.
8531 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8532 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8533 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8534
127bbf4b
SM
85352020-05-27 Simon Marchi <simon.marchi@efficios.com>
8536
8537 * dwarf2/read.h (struct dwarf2_per_cu_data):
8538 <dwarf2_per_objfile>: Remove.
8539 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8540 dwarf2_per_objfile.
8541 (create_signatured_type_table_from_index): Likewise.
8542 (create_signatured_type_table_from_debug_names): Likewise.
8543 (create_debug_type_hash_table): Likewise.
8544 (fill_in_sig_entry_from_dwo_entry): Likewise.
8545 (create_type_unit_group): Likewise.
8546 (read_comp_units_from_section): Likewise.
8547 (create_cus_hash_table): Likewise.
8548
f6e649dd
SM
85492020-05-27 Simon Marchi <simon.marchi@efficios.com>
8550
8551 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8552 dwarf2_per_cu_data::dwarf2_per_objfile.
8553 (compute_compunit_symtab_includes): Likewise.
8554 (dwarf2_cu::start_symtab): Likewise.
8555
aa66c379
SM
85562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8557
8558 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8559 parameter.
8560 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8561 (read_namespace_alias): Update.
8562 (lookup_die_type): Update.
8563 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8564 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8565 Update.
8566 (disassemble_dwarf_expression): Update.
8567
120ce1b5
SM
85682020-05-27 Simon Marchi <simon.marchi@efficios.com>
8569
8570 * dwarf2/read.h (struct dwarf2_queue_item): Add
8571 dwarf2_per_objfile parameter, assign new parameter.
8572 <per_objfile>: New field.
8573 * dwarf2/read.c (free_one_cached_comp_unit): Add
8574 dwarf2_per_objfile parameter.
8575 (queue_comp_unit): Likewise.
8576 (dw2_do_instantiate_symtab): Update.
8577 (process_psymtab_comp_unit): Update.
8578 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8579 (process_imported_unit_die): Update.
8580 (queue_and_load_dwo_tu): Update.
8581 (follow_die_offset): Update.
8582 (follow_die_sig_1): Update.
8583
9f47c707
SM
85842020-05-27 Simon Marchi <simon.marchi@efficios.com>
8585
8586 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8587 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8588 (read_call_site_scope): Assign per_objfile.
8589 (dwarf2_per_cu_data::objfile): Remove.
8590 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8591 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8592 dwarf2_per_objfile parameter.
8593 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8594 dwarf2_per_objfile parameter.
8595 (dwarf_expr_reg_to_entry_parameter): Add output
8596 dwarf2_per_objfile parameter.
8597 (locexpr_get_frame_base): Update.
8598 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8599 <push_dwarf_reg_entry_value>: Update.
8600 <call_site_to_target_addr>: Update.
8601 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8602 parameter.
8603 (value_of_dwarf_reg_entry): Update.
8604 (rw_pieced_value): Update.
8605 (indirect_synthetic_pointer): Update.
8606 (dwarf2_evaluate_property): Update.
8607 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8608 parameter.
8609 (locexpr_read_variable): Update.
8610 (locexpr_get_symbol_read_needs): Update.
8611 (loclist_read_variable): Update.
8612
14095eb3
SM
86132020-05-27 Simon Marchi <simon.marchi@efficios.com>
8614
8615 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8616 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8617 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8618 parameter.
8619 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8620 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8621 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8622 parameter.
8623 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8624 sect_variable_value): Add dwarf2_per_objfile parameter.
8625 (class dwarf_evaluate_loc_desc) <dwarf_call,
8626 dwarf_variable_value>: Update.
8627 (fetch_const_value_from_synthetic_pointer): Add
8628 dwarf2_per_objfile parameter.
8629 (fetch_const_value_from_synthetic_pointer): Update.
8630 (coerced_pieced_ref): Update.
8631 (class symbol_needs_eval_context) <dwarf_call,
8632 dwarf_variable_value>: Update.
8633 (dwarf2_compile_expr_to_ax): Update.
8634
3c3cd3d4
SM
86352020-05-27 Simon Marchi <simon.marchi@efficios.com>
8636
8637 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8638 parameter.
8639 (dwarf2_evaluate_loc_desc_full): Update.
8640
82ca3f51
SM
86412020-05-27 Simon Marchi <simon.marchi@efficios.com>
8642
8643 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8644 parameter.
8645 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8646 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8647 dwarf2_per_objfile parameter.
8648 (decode_debug_loc_dwo_addresses): Likewise.
8649 (dwarf2_find_location_expression): Update.
8650 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8651 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8652 parameter.
8653 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8654 parameter.
8655 (locexpr_describe_location_1): Likewise.
8656 (locexpr_describe_location): Update.
8657
4b167ea1
SM
86582020-05-27 Simon Marchi <simon.marchi@efficios.com>
8659
8660 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8661 Remove.
8662 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8663 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8664 (dwarf2_compile_property_to_c): Update.
8665 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8666 use text offset from objfile.
8667 (locexpr_tracepoint_var_ref): Update.
8668 (locexpr_generate_c_location): Update.
8669 (loclist_describe_location): Update.
8670 (loclist_tracepoint_var_ref): Update.
8671 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8672 dwarf2_per_objfile parameter.
8673 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8674 use text offset from objfile.
8675 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8676
89b07335
SM
86772020-05-27 Simon Marchi <simon.marchi@efficios.com>
8678
8679 * dwarf2/expr.h (struct dwarf_expr_context)
8680 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8681 <offset>: Remove.
8682 <per_objfile>: New member.
8683 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8684 dwarf2_per_objfile parameter. Don't set offset, set
8685 per_objfile.
8686 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8687 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8688 a dwarf2_per_objfile object instead of an offset.
8689 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8690 constructor.
8691 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8692 to dwarf2_expr_executor constructor. Don't set offset.
8693 (dwarf2_fetch_cfa_info): Update.
8694 (struct dwarf2_frame_cache) <text_offset>: Remove.
8695 <per_objfile>: New field.
8696 (dwarf2_frame_cache): Update.
8697 (dwarf2_frame_prev_register): Update.
8698 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8699 <dwarf_evaluate_loc_desc>: Add constructor.
8700 (dwarf2_evaluate_loc_desc_full): Update.
8701 (dwarf2_locexpr_baton_eval): Update.
8702 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8703 Add constructor.
8704 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8705
293e7e51
SM
87062020-05-27 Simon Marchi <simon.marchi@efficios.com>
8707
8708 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8709 addr_sized_int_type>: Move to dwarf2_cu.
8710 <int_type>: Move to dwarf2_per_objfile.
8711 (struct dwarf2_per_objfile) <int_type>: Move here.
8712 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8713 addr_sized_int_type>: Move here.
8714 (read_func_scope): Update.
8715 (read_array_type): Update.
8716 (read_tag_string_type): Update.
8717 (attr_to_dynamic_prop): Update.
8718 (dwarf2_per_cu_data::int_type): Rename to...
8719 (dwarf2_per_objfile::int_type): ... this.
8720 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8721 (dwarf2_cu::addr_sized_int_type): ... this.
8722 (read_subrange_type): Update.
8723 (dwarf2_per_cu_data::addr_type): Rename to...
8724 (dwarf2_cu::addr_type): ... this.
8725 (set_die_type): Update.
8726
64874a40
SM
87272020-05-27 Simon Marchi <simon.marchi@efficios.com>
8728
8729 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8730 data through per_cu->cu.
8731
4ab09049
SM
87322020-05-27 Simon Marchi <simon.marchi@efficios.com>
8733
8734 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8735 dwarf2_per_cu_data parameter fo dwarf2_cu.
8736 (lookup_dwo_type_unit): Likewise.
8737 (read_cutu_die_from_dwo): Likewise.
8738 (lookup_dwo_unit): Likewise.
8739 (open_and_init_dwo_file): Likewise.
8740 (lookup_dwo_cutu): Likewise.
8741 (lookup_dwo_comp_unit): Likewise.
8742 (lookup_dwo_type_unit): Likewise.
8743 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8744 (cutu_reader::cutu_reader): Update.
8745
47b14e86
SM
87462020-05-27 Simon Marchi <simon.marchi@efficios.com>
8747
8748 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8749 parameter.
8750 (process_full_type_unit): Likewise.
8751 (process_queue): Update.
8752
43182c09
SM
87532020-05-27 Simon Marchi <simon.marchi@efficios.com>
8754
8755 * dwarf2/read.c (recursively_compute_inclusions): Add
8756 dwarf2_per_objfile parameter.
8757 (compute_compunit_symtab_includes): Likewise.
8758 (process_cu_includes): Update.
8759
7aa104c4
SM
87602020-05-27 Simon Marchi <simon.marchi@efficios.com>
8761
8762 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8763 parameter.
8764 (create_type_unit_group): Update.
8765 (process_psymtab_comp_unit_reader): Update.
8766 (build_type_psymtabs_reader): Update.
8767
e3beb21d
SM
87682020-05-27 Simon Marchi <simon.marchi@efficios.com>
8769
8770 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8771 object through m_this_cu->cu.
8772
d460f660
SM
87732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8774
8775 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8776 the info parameter.
8777 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8778
ab432490
SM
87792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8780
8781 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8782 per_objfile parameter.
8783 (load_full_type_unit): Add per_objfile parameter.
8784 (read_signatured_type): Likewise.
8785 (load_full_comp_unit): Likewise.
8786 (load_cu): Likewise.
8787 (dw2_do_instantiate_symtab): Likewise.
8788 (dw2_get_file_names): Likewise.
8789 (dw2_map_symtabs_matching_filename): Update.
8790 (dw_expand_symtabs_matching_file_matcher): Update.
8791 (dw2_map_symbol_filenames): Update.
8792 (process_psymtab_comp_unit): Add per_objfile parameter.
8793 (build_type_psymtabs_1): Update.
8794 (process_skeletonless_type_unit): Update.
8795 (dwarf2_build_psymtabs_hard): Update.
8796 (load_partial_comp_unit): Add per_objfile parameter.
8797 (scan_partial_symbols): Update.
8798 (load_full_comp_unit): Add per_objfile parameter.
8799 (process_imported_unit_die): Update.
8800 (create_cus_hash_table): Update.
8801 (find_partial_die): Update.
8802 (dwarf2_read_addr_index): Update.
8803 (follow_die_offset): Update.
8804 (dwarf2_fetch_die_loc_sect_off): Update.
8805 (dwarf2_fetch_constant_bytes): Update.
8806 (dwarf2_fetch_die_type_sect_off): Update.
8807 (follow_die_sig_1): Update.
8808 (load_full_type_unit): Add per_objfile parameter.
8809 (read_signatured_type): Likewise.
8810
313bad1b
SM
88112020-05-27 Simon Marchi <simon.marchi@efficios.com>
8812
8813 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8814 of objfile_name.
8815
c3699833
SM
88162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8817
8818 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8819 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8820 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8821 field.
8822 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8823 (create_cus_from_index): Update.
8824 (dwarf2_read_gdb_index): Update.
8825 (create_cus_from_debug_names): Update.
8826 (dwarf2_read_debug_names): Update.
8827 (get_abbrev_section_for_cu): Update.
8828 (create_all_comp_units): Update.
8829 (read_attribute_value): Update.
8830 (get_debug_line_section): Update.
8831 * dwarf2/index-cache.c (index_cache::store): Update.
8832 * dwarf2/index-write.c (save_gdb_index_command): Update.
8833 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8834
1859c670
SM
88352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8836
8837 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8838 member.
8839 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8840 dwarf2_per_cu_data::per_bfd.
8841 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8842 (create_type_unit_group): Likewise.
8843 (queue_comp_unit): Remove reference to
8844 per_cu->dwarf2_per_objfile.
8845 (maybe_queue_comp_unit): Likewise.
8846 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8847 (create_cus_hash_table): Assign new field.
8848
5e22e966
SM
88492020-05-27 Simon Marchi <simon.marchi@efficios.com>
8850
8851 * dwarf2/read.c: Replace
8852 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8853 dwarf2_cu->per_objfile throughout.
8854
97a1449a
SM
88552020-05-27 Simon Marchi <simon.marchi@efficios.com>
8856
8857 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8858 parameter, don't use per_cu->dwarf2_per_objfile.
8859 (dw2_instantiate_symtab): Likewise.
8860 (dw2_find_last_source_symtab): Update.
8861 (dw2_map_expand_apply): Update.
8862 (dw2_lookup_symbol): Update.
8863 (dw2_expand_symtabs_for_function): Update.
8864 (dw2_expand_all_symtabs): Update.
8865 (dw2_expand_symtabs_with_fullname): Update.
8866 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8867 don't use per_cu->dwarf2_per_objfile.
8868 (dw2_expand_marked_cus): Update.
8869 (dw2_find_pc_sect_compunit_symtab): Update.
8870 (dw2_debug_names_lookup_symbol): Update.
8871 (dw2_debug_names_expand_symtabs_for_function): Update.
8872 (dw2_debug_names_map_matching_symbols): Update.
8873 (dwarf2_psymtab::expand_psymtab): Update.
8874
9e021579
SM
88752020-05-27 Simon Marchi <simon.marchi@efficios.com>
8876
8877 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8878 <per_objfile>: New member.
8879 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8880 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8881 call to dwarf2_cu.
8882 (cutu_reader::cutu_reader): Update.
8883 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8884
ae090bdb
SM
88852020-05-27 Simon Marchi <simon.marchi@efficios.com>
8886
8887 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8888 struct dwarf2_per_objfile.
8889 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8890 dwarf2_per_bfd.
8891 * dwarf2/read.c (set_die_type): Update.
8892 (get_die_type_at_offset): Update.
8893
af758d11
SM
88942020-05-27 Tom Tromey <tom@tromey.com>
8895 Simon Marchi <simon.marchi@efficios.com>
8896
8897 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8898 method.
8899 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8900 get_symtab, set_symtab>: New methods.
8901 <m_symtabs>: New field.
8902 (struct dwarf2_psymtab): Derive from partial_symtab.
8903 <readin_p, get_compunit_symtab>: Declare methods.
8904 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8905 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8906 New methods.
8907 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8908 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8909 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8910 (dw2_symtab_iter_next, dw2_print_stats)
8911 (dw2_expand_symtabs_with_fullname)
8912 (dw2_expand_symtabs_matching_one)
8913 (dw_expand_symtabs_matching_file_matcher)
8914 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8915 (dw2_debug_names_iterator::next)
8916 (dw2_debug_names_map_matching_symbols)
8917 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8918 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8919 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8920 New methods.
8921 (get_compunit_symtab, process_full_comp_unit)
8922 (process_full_type_unit): Update.
8923 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8924
5989a64e
SM
89252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8926
8927 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8928 then introduce a new dwarf2_per_objfile type.
8929 <read_line_string>: Move to the new dwarf2_per_objfile type.
8930 <objfile>: Likewise.
8931 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8932 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8933 dwarf2_per_objfile->per_bfd.
8934 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8935 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8936 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8937 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8938 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8939 (dwarf2_per_objfile::locate_sections): Rename to...
8940 (dwarf2_per_bfd::locate_sections): ... this.
8941 (dwarf2_per_objfile::get_cutu): Rename to...
8942 (dwarf2_per_bfd::get_cutu): ... this.
8943 (dwarf2_per_objfile::get_cu): Rename to...
8944 (dwarf2_per_bfd::get_cu): ... this.
8945 (dwarf2_per_objfile::get_tu): Rename to...
8946 (dwarf2_per_bfd::get_tu): ... this.
8947 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8948 (dwarf2_per_bfd::allocate_per_cu): ... this.
8949 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8950 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8951 (get_gdb_index_contents_ftype): Change parameter from
8952 dwarf2_per_objfile to dwarf2_per_bfd.
8953 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8954 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8955
a50264ba
TT
89562020-05-27 Tom Tromey <tom@tromey.com>
8957 Simon Marchi <simon.marchi@efficios.com>
8958
8959 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8960 (allocate_piece_closure): Set "per_objfile" member.
8961 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8962 (locexpr_describe_location, loclist_describe_location): Use new
8963 member.
8964 * dwarf2/read.c (read_call_site_scope)
8965 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8966 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8967 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8968 handle_data_member_location): Set per_objfile member.
8969 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8970 member.
8971 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8972
d3473f0c
TT
89732020-05-27 Tom Tromey <tom@tromey.com>
8974
8975 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8976 allocate_signatured_type>: Declare new methods.
8977 <m_num_psymtabs>: New member.
8978 (struct dwarf2_per_cu_data) <index>: New member.
8979 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8980 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8981 (create_cu_from_index_list): Use allocate_per_cu.
8982 (create_signatured_type_table_from_index)
8983 (create_signatured_type_table_from_debug_names)
8984 (create_debug_type_hash_table, add_type_unit)
8985 (read_comp_units_from_section): Use allocate_signatured_type.
8986
5717c425
TT
89872020-05-27 Tom Tromey <tom@tromey.com>
8988
8989 * psymtab.c (partial_map_expand_apply)
8990 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8991 (psym_lookup_global_symbol_language)
8992 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8993 (psym_print_stats, psym_expand_symtabs_for_function)
8994 (psym_map_symbol_filenames, psym_map_matching_symbols)
8995 (psym_expand_symtabs_matching)
8996 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8997 (maintenance_check_psymtabs): Update.
8998 * psympriv.h (struct partial_symtab) <readin_p,
8999 get_compunit_symtab>: Add objfile parameter.
9000 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9001 Likewise.
9002 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9003 get_compunit_symtab>: Likewise.
9004 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9005
45940949
TT
90062020-05-27 Tom Tromey <tom@tromey.com>
9007
9008 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9009 member.
9010 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9011 (create_cu_from_index_list)
9012 (create_signatured_type_table_from_index)
9013 (create_signatured_type_table_from_debug_names)
9014 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9015 (dwarf2_create_include_psymtab)
9016 (create_debug_type_hash_table, add_type_unit)
9017 (create_type_unit_group, read_comp_units_from_section)
9018 (dwarf2_compute_name, create_cus_hash_table)
9019 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9020 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9021 obstack.
9022 (dw2_get_real_path): Likewise. Change argument to
9023 dwarf2_per_objfile.
9024
f8c6d152
LM
90252020-05-27 Luis Machado <luis.machado@linaro.org>
9026
9027 PR tdep/26000
9028 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9029 for ldrd (immediate).
9030
e98d2e6d
PW
90312020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9032
9033 * command.h: Add comment giving the name of class_tui.
9034 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9035 create the fake command for the help for class_tui.
9036
53a47a3e
TT
90372020-05-26 Tom Tromey <tromey@adacore.com>
9038
9039 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9040 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9041 (val_atr): New function.
9042 (value_val_atr): Use it.
9043 * ada-valprint.c (print_optional_low_bound): Change low bound
9044 handling for enums.
9045 (val_print_packed_array_elements): Don't call discrete_position.
9046 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9047 discrete_position for enum types.
9048 * language.c (default_print_array_index): Change type.
9049 * language.h (struct language_defn) <la_print_array_index>: Add
9050 index_type parameter, change type of index_value.
9051 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9052 (default_print_array_index): Update.
9053 * valprint.c (maybe_print_array_index): Don't call
9054 value_from_longest. Update.
9055 (value_print_array_elements): Don't call discrete_position.
9056
0bc2354b
TT
90572020-05-26 Tom Tromey <tromey@adacore.com>
9058
9059 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9060 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9061
1218a4bf
CDA
90622020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9063
9064 PR gdb/13519
9065 * avr-tdep.c (avr_integer_to_address): Return data or code
9066 address accordingly to the second 'type' argument of the
9067 function.
9068
92651b1d
MW
90692020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9070
9071 * infcmd.c, inferior.h: (construct_inferior_arguments):
9072 Moved function from here to gdbsupport/common-inferior.{h,cc}
9073
0a4f5f8c
TT
90742020-05-23 Tom Tromey <tom@tromey.com>
9075
9076 Revert commit eca1f90c:
9077 * NEWS: Remove entry for completion styling.
9078 * completer.c (_rl_completion_prefix_display_length): Move
9079 declaration later.
9080 (gdb_fnprint): Revert.
9081 (gdb_display_match_list_1): Likewise.
9082 * cli/cli-style.c (completion_prefix_style)
9083 (completion_difference_style, completion_suffix_style): Remove.
9084 (_initialize_cli_style): Revert.
9085 * cli/cli-style.h (completion_prefix_style)
9086 (completion_difference_style, completion_suffix_style): Don't
9087 declare.
9088
e08bd6c5
PA
90892020-05-24 Pedro Alves <palves@redhat.com>
9090
9091 * symtab.c (completion_list_add_name): Return boolean indication
9092 of whether the symbol matched.
9093 (completion_list_add_symbol): Don't try to remove C++ aliases if
9094 the symbol didn't match in the first place.
9095 * symtab.h (completion_list_add_name): Return bool.
9096
ceacbf6e
SM
90972020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9098
9099 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9100 type::field.
9101
26f16254
JB
91022020-05-23 Joel Brobecker <brobecker@adacore.com>
9103
9104 GDB 9.2 released.
9105
eca1f90c
TT
91062020-05-23 Tom Tromey <tom@tromey.com>
9107
9108 * NEWS: Add entry for completion styling.
9109 * completer.c (_rl_completion_prefix_display_length): Move
9110 declaration earlier.
9111 (gdb_fnprint): Use completion_style.
9112 (gdb_display_match_list_1): Likewise.
9113 * cli/cli-style.c (completion_prefix_style)
9114 (completion_difference_style, completion_suffix_style): New
9115 globals.
9116 (_initialize_cli_style): Register new globals.
9117 * cli/cli-style.h (completion_prefix_style)
9118 (completion_difference_style, completion_suffix_style): Declare.
9119
51e2cfa2
PA
91202020-05-23 Pedro Alves <palves@redhat.com>
9121
9122 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9123 (parse_escape): Use ISDIGIT instead of isdigit.
9124 (puts_debug): Use gdb_isprint instead of isprint.
9125 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9126 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9127 ISSPACE instead of isspace.
9128 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9129 instead of isspace.
9130 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9131 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9132 instead of isxdigit and ISDIGIT instead of isdigit.
9133
80fc5e77
SM
91342020-05-22 Simon Marchi <simon.marchi@efficios.com>
9135
9136 * gdbtypes.h (struct type) <field>: New method.
9137 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9138 or type::field.
9139
3cabb6b0
SM
91402020-05-22 Simon Marchi <simon.marchi@efficios.com>
9141
9142 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9143 (TYPE_FIELDS): Use type::fields. Change all call sites that
9144 modify the propery to use type::set_fields instead.
9145
1f704f76
SM
91462020-05-22 Simon Marchi <simon.marchi@efficios.com>
9147
9148 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9149 type::num_fields instead.
9150
5e33d5f4
SM
91512020-05-22 Simon Marchi <simon.marchi@efficios.com>
9152
9153 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9154 methods.
9155 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9156 that modify the number of fields to use type::set_num_fields
9157 instead.
9158
9392ebb3
TT
91592020-05-22 Tom Tromey <tromey@adacore.com>
9160
9161 * compile/compile-object-load.h (munmap_list_free): Don't
9162 declare.
9163
7c13f4e8
AB
91642020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9165
9166 * annotate.c (annotate_source_line): Update return type, add call
9167 to update current symtab and line.
9168 * annotate.h (annotate_source_line): Update return type, and
9169 extend header comment.
9170 * source.c (info_line_command): Check annotation_level before
9171 calling annotate_source_line.
9172 * stack.c (print_frame_info): If calling annotate_source_line
9173 returns true, then don't print any other source line information.
9174
aa370940
SM
91752020-05-21 Simon Marchi <simon.marchi@efficios.com>
9176
9177 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9178
84d53fa9
SM
91792020-05-21 Simon Marchi <simon.marchi@efficios.com>
9180
9181 * coffread.c (patch_type): Remove NULL check before xfree.
9182 * corefile.c (set_gnutarget): Likewise.
9183 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9184 * exec.c (build_section_table): Likewise.
9185 * remote.c (remote_target::pass_signals): Likewise.
9186 * utils.c (n_spaces): Likewise.
9187 * cli/cli-script.c (document_command): Likewise.
9188 * i386-windows-tdep.c (core_process_module_section): Likewise.
9189 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9190
9d428aae
SM
91912020-05-20 Simon Marchi <simon.marchi@efficios.com>
9192
9193 * symfile.c (reread_symbols): Clear objfile's section_offsets
9194 vector and section indices, re-compute them by calling
9195 sym_offsets.
9196
250106a7
TT
91972020-05-20 Tom Tromey <tromey@adacore.com>
9198
9199 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9200 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9201
9a0bacfb
TV
92022020-05-20 Tom de Vries <tdevries@suse.de>
9203
9204 PR symtab/25833
9205 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9206
7b958a48
AM
92072020-05-20 Alan Modra <amodra@gmail.com>
9208
9209 PR 25993
9210 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9211 bfd_set_filename.
9212 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9213 passed to bfd_set_filename.
9214 * symfile-mem.c (add_vsyscall_page): Likewise for string
9215 passed to symbol_file_add_from_memory.
9216 (symbol_file_add_from_memory): Make name param a const char* and
9217 don't strdup.
9218
c7e97679
AM
92192020-05-20 Alan Modra <amodra@gmail.com>
9220
9221 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9222 rather than accessing bfd->filename directly.
9223 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9224 and use bfd_section_name.
9225 * dwarf2/frame.c (decode_frame_entry): Likewise.
9226 * exec.c (exec_set_section_address): Likewise.
9227 * solib-aix.c (solib_aix_bfd_open): Likewise.
9228 * stap-probe.c (get_stap_base_address): Likewise.
9229 * symfile.c (reread_symbols): Likewise.
9230
563c591b
TT
92312020-05-19 Tom Tromey <tromey@adacore.com>
9232
9233 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9234
f408d82c
SM
92352020-05-19 Simon Marchi <simon.marchi@efficios.com>
9236
9237 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9238
98c59b52
PA
92392020-05-19 Pedro Alves <palves@redhat.com>
9240
9241 * NEWS (set exec-file-mismatch): Adjust entry.
9242 * exec.c: Include "build-id.h".
9243 (validate_exec_file): Try to match build IDs instead of filenames.
9244 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9245 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9246 and pass down 'warn_if_slow'.
9247 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9248 gdb_bfd_open_closure to pass it down.
9249 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9250
4111f652
PA
92512020-05-19 Pedro Alves <palves@redhat.com>
9252
9253 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9254 * target.c (target_fileio_open_1): Rename to target_fileio_open
9255 and make extern. Use bool.
9256 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9257 (target_fileio_read_alloc_1): Adjust.
9258 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9259 (target_fileio_open_warn_if_slow): Delete declaration.
9260
ad80db5b
PA
92612020-05-19 Pedro Alves <palves@redhat.com>
9262
9263 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9264 Adjust all callers.
9265
1d6ce4d3
YS
92662020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9267
9268 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9269 whether disp is negative.
9270
9005fbbb
SM
92712020-05-19 Simon Marchi <simon.marchi@efficios.com>
9272
9273 * symfile.h (struct symfile_segment_data)
9274 <~symfile_segment_data>: Remove.
9275 <segment_info>: Change to std::vector.
9276 * symfile.c (default_symfile_segments): Update.
9277 * elfread.c (elf_symfile_segments): Update.
9278
68b888ff
SM
92792020-05-19 Simon Marchi <simon.marchi@efficios.com>
9280
9281 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9282 <segments>: New.
9283 <segment_bases, segment_sizes>: Remove.
9284 * symfile.c (default_symfile_segments): Update.
9285 * elfread.c (elf_symfile_segments): Update.
9286 * remote.c (remote_target::get_offsets): Update.
9287 * solib-target.c (solib_target_relocate_section_addresses):
9288 Update.
9289
62982abd
SM
92902020-05-19 Simon Marchi <simon.marchi@efficios.com>
9291
9292 * symfile.h (struct symfile_segment_data): Initialize fields.
9293 <~symfile_segment_data>: Add.
9294 (symfile_segment_data_up): New.
9295 (struct sym_fns) <sym_segments>: Return a
9296 symfile_segment_data_up.
9297 (default_symfile_segments): Return a symfile_segment_data_up.
9298 (free_symfile_segment_data): Remove.
9299 (get_symfile_segment_data): Return a symfile_segment_data_up.
9300 * symfile.c (default_symfile_segments): Likewise.
9301 (get_symfile_segment_data): Likewise.
9302 (free_symfile_segment_data): Remove.
9303 (symfile_find_segment_sections): Update.
9304 * elfread.c (elf_symfile_segments): Return a
9305 symfile_segment_data_up.
9306 * remote.c (remote_target::get_offsets): Update.
9307 * solib-target.c (solib_target_relocate_section_addresses):
9308 Update.
9309 * symfile-debug.c (debug_sym_segments): Return a
9310 symfile_segment_data_up.
9311
7f204339
RO
93122020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9313
e52a0f1b
RO
9314 PR build/25981
9315 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9316 Hardcode register numbers.
9317
7f204339
RO
9318 PR build/25981
9319 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9320 procfs_find_LDT_entry): Remove.
9321 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9322 procfs_find_LDT_entry): Remove.
9323 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9324 Remove.
9325
7f32a4d5
PA
93262020-05-17 Pedro Alves <palves@redhat.com>
9327 Andrew Burgess <andrew.burgess@embecosm.com>
9328 Keno Fischer <keno@juliacomputing.com>
9329
9330 PR gdb/25741
9331 * breakpoint.c (build_target_condition_list): Update comments.
9332 (build_target_command_list): Update comments and skip matching
9333 locations.
9334 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9335 a separate function. Simplify "set breakpoint auto-hw off"
9336 handling.
9337 (insert_breakpoints): Update comment.
9338 (tracepoint_locations_match): New parameter. For breakpoints,
9339 compare location types too, if the caller wants to.
9340 (handle_automatic_hardware_breakpoints): New functions.
9341 (bp_location_is_less_than): Also sort by location type and
9342 hardware breakpoint length.
9343 (update_global_location_list): Handle "set breakpoint auto-hw on"
9344 here.
9345 (update_breakpoint_locations): Ask breakpoint_locations_match to
9346 ignore location types.
9347
7d93a1e0
SM
93482020-05-16 Simon Marchi <simon.marchi@efficios.com>
9349
9350 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9351 type::name instead.
9352
d0e39ea2
SM
93532020-05-16 Simon Marchi <simon.marchi@efficios.com>
9354
9355 * gdbtypes.h (struct type) <name, set_name>: New methods.
9356 (TYPE_CODE): Use type::name. Change all call sites used to set
9357 the name to use type::set_name instead.
9358
2dab0c7b
TT
93592020-05-16 Tom Tromey <tom@tromey.com>
9360
9361 * top.c (quit_force): Update.
9362 * infrun.c (handle_no_resumed): Update.
9363 * top.h (all_uis): New function.
9364 (ALL_UIS): Remove.
9365
59f7bd8d
SM
93662020-05-16 Simon Marchi <simon.marchi@efficios.com>
9367
9368 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9369
9bf058f0
PA
93702020-05-16 Pedro Alves <palves@redhat.com>
9371
9372 * ia64-linux-nat.c
9373 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9374 Declare method.
9375 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9376
8f86ae1a
SM
93772020-05-15 Simon Marchi <simon.marchi@efficios.com>
9378
9379 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9380 (sparc64_adi_info): Likewise.
9381
d6bc0792
TT
93822020-05-15 Tom Tromey <tom@tromey.com>
9383
9384 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9385 block_objfile.
9386 (lookup_objfile_from_block): Remove.
9387 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9388 (lookup_global_symbol): Use block_objfile.
9389 * symtab.h (lookup_objfile_from_block): Don't declare.
9390 * printcmd.c (clear_dangling_display_expressions): Use
9391 block_objfile.
9392 * parse.c (operator_check_standard): Use block_objfile.
9393
8c14c3a3
TT
93942020-05-15 Tom Tromey <tom@tromey.com>
9395
9396 * language.c (language_alloc_type_symbol): Set
9397 SYMBOL_SECTION.
9398 * symtab.c (initialize_objfile_symbol): Remove.
9399 (allocate_symbol): Remove.
9400 (allocate_template_symbol): Remove.
9401 * dwarf2/read.c (fixup_go_packaging): Use "new".
9402 (new_symbol): Use "new".
9403 (read_variable): Don't call initialize_objfile_symbol. Use
9404 "new".
9405 (read_func_scope): Use "new".
9406 * xcoffread.c (process_xcoff_symbol): Don't call
9407 initialize_objfile_symbol.
9408 (SYMBOL_DUP): Remove.
9409 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9410 "new".
9411 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9412 (allocate_template_symbol): Don't declare.
9413 (struct symbol): Add copy constructor. Change defaults.
9414 * jit.c (finalize_symtab): Use "new".
9415 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9416 Use "new".
9417 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9418 (common_block_end): Use "new".
9419 * mdebugread.c (parse_symbol): Use "new".
9420 (new_symbol): Likewise.
9421
5b4a1a8d
PW
94222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9423
9424 * NEWS: Mention changes to help and apropos.
9425
57b4f16e
PW
94262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9427
9428 * command.h (enum command_class): Improve comments, document
9429 that class_alias is for user-defined aliases, give the class
9430 name for each class, remove unused class_xdb.
9431 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9432 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9433 by a precise class.
9434 * infcmd.c (_initialize_infcmd): Likewise.
9435 * reverse.c (_initialize_reverse): Likewise.
9436 * stack.c (_initialize_stack): Likewise.
9437 * symfile.c (_initialize_symfile): Likewise.
9438 * tracepoint.c (_initialize_tracepoint): Likewise.
9439
7c05caf7
PW
94402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9441
9442 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9443 when their aliased command is traversed.
9444 (help_cmd): Add fput_command_names_styled call to
9445 output command name and aliases when command has an alias.
9446
3b3aaacb
PW
94472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9448
9449 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9450 * cli/cli-decode.c (help_cmd_list): Declare as static,
9451 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9452 a command together with the command.
9453 (fput_command_name_styled, fput_command_names_styled): New functions.
9454 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9455 fput_command_name_styled.
9456 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9457 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9458
7aa1b46f
PW
94592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9460
9461 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9462 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9463 * command.h (cmd_show_list): Likewise.
9464 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9465 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9466
89bcba74
PW
94672020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9468
9469 * unittests/command-def-selftests.c (traverse_command_structure):
9470 Verify all commands of a list have the same prefix command and
9471 that only the top cmdlist commands have a null prefix.
9472
3f4d92eb
PW
94732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9474
9475 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9476 as prefix, not one of its aliases.
9477 (set_cmd_prefix): Remove.
9478 (do_add_cmd): Centralize the setting of the prefix of a command, when
9479 command is defined after its full chain of prefix commands.
9480 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9481 (add_setshow_cmd_full): Likewise.
9482 (update_prefix_field_of_prefixed_commands): New function.
9483 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9484 update_prefix_field_of_prefixed_commands.
9485 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9486 addresses of remote_set_cmdlist and remote_show_cmdlist given
9487 as argument, not the address of an argument.
9488 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9489 * gdb/remote.c (_initialize_remote): Likewise.
9490
0605465f
PW
94912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9492
9493 * cli/cli-cmds.c (alias_command): Check for an existing alias
9494 using lookup_cmd_composition, as valid_command_p is too strict
9495 and forbids aliases that are the prefix of an existing alias
9496 or command.
9497 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9498 command is properly recognised as a valid command.
9499
58e6ac70
PW
95002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9501
9502 * unittests/help-doc-selftests.c: Rename to
9503 unittests/command-def-selftests.c
9504 * unittests/command-def-selftests.c (help_doc_tests): Update some
9505 comments.
9506 (command_structure_tests, traverse_command_structure): New namespace
9507 and function.
9508 (command_structure_invariants_tests): New function.
9509 (_initialize_command_def_selftests) Renamed from
9510 _initialize_help_doc_selftests, register command_structure_invariants
9511 selftest.
9512
a7b9ceb8
PW
95132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9514
9515 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9516 an alias of 'show'.
9517
b2188a06
JB
95182020-05-15 Joel Brobecker <brobecker@adacore.com>
9519
9520 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9521 ada_is_fixed_point_type. Update all callers.
9522 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9523 all callers.
9524 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9525 Update all callers.
9526 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9527 print_fixed_point_type. Update all callers.
9528 * ada-valprint.c (ada_value_print_num): Replace call to
9529 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9530
a51951c2
KB
95312020-05-14 Kevin Buettner <kevinb@redhat.com>
9532
9533 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9534 processors.
9535 (cpu_supports_bts): Add CV_AMD case.
9536
29d6859f
LM
95372020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9538 Simon Marchi <simon.marchi@efficios.com>
9539
9540 * infrun.c (stop_all_threads): Collect multiple wait events at
9541 each pass.
9542
78134374
SM
95432020-05-14 Simon Marchi <simon.marchi@efficios.com>
9544
9545 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9546 type::code instead.
9547
67607e24
SM
95482020-05-14 Simon Marchi <simon.marchi@efficios.com>
9549
9550 * gdbtypes.h (struct type) <code, set_code>: New methods.
9551 (TYPE_CODE): Use type::code. Change all call sites used to set
9552 the code to use type::set_code instead.
9553
a05575d3
TBA
95542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9555 Tom de Vries <tdevries@suse.de>
9556 Pedro Alves <palves@redhat.com>
9557
9558 PR threads/25478
9559 * infrun.c (stop_all_threads): Do NOT ignore
9560 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9561 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9562 received.
9563 (handle_no_resumed): Remove code handling a live inferior with no
9564 threads.
9565 * remote.c (has_single_non_exited_thread): New.
9566 (remote_target::update_thread_list): Do not delete a thread if is
9567 the last thread of the process.
9568 * thread.c (thread_select): Call delete_exited_threads instead of
9569 prune_threads.
9570
6ad82919
TBA
95712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9572
9573 * infrun.c (stop_all_threads): Enable/disable thread events of all
9574 targets. Move a debug message denoting the end of the function
9575 into the SCOPED_EXIT block.
9576
d890404b
TBA
95772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9578
9579 * process-stratum-target.h: Include <set>.
9580 (all_non_exited_process_targets, switch_to_target_no_thread): New
9581 function declarations.
9582 * process-stratum-target.c (all_non_exited_process_targets)
9583 (switch_to_target_no_thread): New function implementations.
9584
293b3ebc
TBA
95852020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9586
9587 * infrun.c (handle_inferior_event): Extract out a piece of code
9588 into...
9589 (mark_non_executing_threads): ...this new function.
9590
7ca9b62a
TBA
95912020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9592
9593 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9594 use.
9595
fc75c28b
TBA
95962020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9597
9598 * regcache.c (regcache_read_pc_protected): New function
9599 implementation that returns 0 if the PC cannot read via
9600 'regcache_read_pc'.
9601 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9602 instead of 'regcache_read_pc'.
9603 (keep_going_pass_signal): Ditto.
9604
a89febbd
TT
96052020-05-13 Tom Tromey <tromey@adacore.com>
9606
9607 * ada-lang.c (align_value): Remove.
9608 (ada_template_to_fixed_record_type_1): Use align_up.
9609
f7e23710
TBA
96102020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9611
9612 * async-event.c: Update the copyright year.
9613 * async-event.h: Update the copyright year.
9614
02ff80c2
SM
96152020-05-12 Simon Marchi <simon.marchi@efficios.com>
9616
9617 * objfiles.h (is_addr_in_objfile,
9618 shared_objfile_contains_address_p): Return bool.
9619 * objfile.c (is_addr_in_objfile,
9620 shared_objfile_contains_address_p): Return bool.
9621
4fd6c7e8
TT
96222020-05-11 Tom Tromey <tromey@adacore.com>
9623
9624 * cli/cli-cmds.c (info_command): Restore.
9625 (_initialize_cli_cmds): Use add_prefix_command for "info".
9626 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9627
5eb68a39
TT
96282020-05-11 Tom Tromey <tromey@adacore.com>
9629
9630 * ada-lang.c (ada_value_primitive_field): Now public.
9631 * ada-lang.h (ada_value_primitive_field): Declare.
9632 * ada-valprint.c (print_field_values): Use
9633 ada_value_primitive_field for wrapper fields.
9634
7666722f
TV
96352020-05-11 Tom de Vries <tdevries@suse.de>
9636
9637 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9638 MODULE_DOMAIN.
9639
3ee6bb11
TV
96402020-05-11 Tom de Vries <tdevries@suse.de>
9641
9642 PR symtab/25941
9643 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9644 with length 0, if not gdb-produced.
9645 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9646
43434996
TV
96472020-05-09 Tom de Vries <tdevries@suse.de>
9648
9649 PR gdb/25955
9650 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9651 calculation.
9652
2f78cffc
TT
96532020-05-09 Tom Tromey <tom@tromey.com>
9654
9655 * top.c (server_command): Now bool.
9656 * top.h (server_command): Now bool.
9657
4f7bc5ed
TT
96582020-05-08 Tom Tromey <tromey@adacore.com>
9659
9660 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9661 already being processed.
9662
8be4b118
TT
96632020-05-08 Tom Tromey <tom@tromey.com>
9664
9665 * printcmd.c (struct display) <next>: Remove.
9666 <display>: New constructor.
9667 <exp_string>: Now a std::string.
9668 <enabled_p>: Now a bool.
9669 (display_number): Move definition earlier.
9670 (displays): Rename from display_chain. Now a std::vector.
9671 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9672 (display_command): Update.
9673 (do_one_display, disable_display)
9674 (enable_disable_display_command, do_enable_disable_display):
9675 Update.
9676 (free_display): Remove.
9677 (clear_displays): Rewrite.
9678 (delete_display): Update.
9679 (map_display_numbers): Use function_view. Remove "data"
9680 parameter. Update.
9681 (do_delete_display): Remove.
9682 (undisplay_command): Update.
9683 (do_one_display, do_displays, disable_display)
9684 (info_display_command): Update.
9685 (do_enable_disable_display): Remove.
9686 (enable_disable_display_command)
9687 (clear_dangling_display_expressions): Update.
9688
94c93c35
TT
96892020-05-08 Tom Tromey <tom@tromey.com>
9690
9691 * symtab.c (set_symbol_cache_size)
9692 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9693 (maintenance_print_symbol_cache_statistics): Update.
9694 * symmisc.c (print_symbol_bcache_statistics)
9695 (print_objfile_statistics, maintenance_print_objfiles)
9696 (maintenance_info_symtabs, maintenance_check_symtabs)
9697 (maintenance_expand_symtabs, maintenance_info_line_tables):
9698 Update.
9699 * symfile-debug.c (set_debug_symfile): Update.
9700 * source.c (forget_cached_source_info): Update.
9701 * python/python.c (gdbpy_progspaces): Update.
9702 * psymtab.c (maintenance_info_psymtabs): Update.
9703 * probe.c (parse_probes): Update.
9704 * linespec.c (iterate_over_all_matching_symtabs)
9705 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9706 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9707 * exec.c (exec_target::close): Update.
9708 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9709 * breakpoint.c (print_one_breakpoint_location)
9710 (create_longjmp_master_breakpoint)
9711 (create_std_terminate_master_breakpoint): Update.
9712 * progspace.c (program_spaces): Now a std::vector.
9713 (maybe_new_address_space): Update.
9714 (add_program_space): Remove.
9715 (program_space::program_space): Update.
9716 (remove_program_space): Update.
9717 (number_of_program_spaces): Remove.
9718 (print_program_space, update_address_spaces): Update.
9719 * progspace.h (program_spaces): Change type.
9720 (ALL_PSPACES): Remove.
9721 (number_of_program_spaces): Don't declare.
9722 (struct program_space) <next>: Remove.
9723
a1fd1ac9
TT
97242020-05-08 Tom Tromey <tom@tromey.com>
9725
9726 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9727 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9728 (enable_break): Update.
9729 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9730 (frv_fdpic_find_canonical_descriptor): Update.
9731 (frv_fetch_objfile_link_map): Update.
9732 * progspace.c (program_space::free_all_objfiles): Update.
9733 (program_space::solibs): New method.
9734 * progspace.h (struct program_space) <solibs>: New method.
9735 * solist.h (master_so_list): Don't declare.
9736 (ALL_SO_LIBS): Remove.
9737 * solib.h (so_list_head): Remove.
9738 (update_solib_list): Update comment.
9739 * solib.c (master_so_list): Remove.
9740 (solib_used, update_solib_list, solib_add)
9741 (info_sharedlibrary_command, clear_solib)
9742 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9743
38eae084
TT
97442020-05-08 Tom Tromey <tom@tromey.com>
9745
9746 * extension.c (extension_languages): Now a std::array.
9747 (ALL_EXTENSION_LANGUAGES): Remove.
9748 (get_ext_lang_defn, get_ext_lang_of_file)
9749 (eval_ext_lang_from_control_command): Update.
9750 (finish_ext_lang_initialization)
9751 (auto_load_ext_lang_scripts_for_objfile)
9752 (ext_lang_type_printers::ext_lang_type_printers)
9753 (apply_ext_lang_type_printers)
9754 (ext_lang_type_printers::~ext_lang_type_printers)
9755 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9756 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9757 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9758 (get_matching_xmethod_workers, ext_lang_colorize)
9759 (ext_lang_before_prompt): Update.
9760 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9761
596dc4ad
TT
97622020-05-08 Tom Tromey <tom@tromey.com>
9763
9764 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9765 overload.
9766 <swap_string, m_string>: Remove.
9767 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9768 Update.
9769 * stabsread.c (define_symbol, read_type): Update.
9770 * linespec.c (find_linespec_symbols): Update.
9771 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9772 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9773 * dbxread.c (read_dbx_symtab): Update.
9774 * cp-support.h (cp_canonicalize_string_full)
9775 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9776 Return unique_xmalloc_ptr.
9777 * cp-support.c (inspect_type): Update.
9778 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9779 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9780 Likewise.
9781 * c-typeprint.c (print_name_maybe_canonical): Update.
9782 * break-catch-throw.c (check_status_exception_catchpoint):
9783 Update.
9784
bf4cb9be
TV
97852020-05-08 Tom de Vries <tdevries@suse.de>
9786
9787 * infrun.c (follow_fork): Copy current_line and current_symtab to
9788 child thread.
9789
a1b68f28
SM
97902020-05-07 Simon Marchi <simon.marchi@efficios.com>
9791
9792 * async-event.c (struct async_signal_handler, struct
9793 async_event_handler): Reformat, remove typedef.
9794
98d48915
SM
97952020-05-07 Simon Marchi <simon.marchi@efficios.com>
9796
9797 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9798 access thistype->main_type->dyn_prop_list directly.
9799
7aa91313
SM
98002020-05-07 Simon Marchi <simon.marchi@efficios.com>
9801
9802 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9803 (remove_dyn_prop): Remove. Update all users to use
9804 type::remove_dyn_prop.
9805 * gdbtypes.c (remove_dyn_prop): Rename to...
9806 (type::remove_dyn_prop): ... this.
9807
5c54719c
SM
98082020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9809
9810 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9811 (add_dyn_prop): Remove. Update all users to use
9812 type::add_dyn_prop.
9813 * gdbtypes.c (add_dyn_prop): Rename to...
9814 (type::add_dyn_prop): ... this.
9815
24e99c6c
SM
98162020-05-07 Simon Marchi <simon.marchi@efficios.com>
9817
9818 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9819 (get_dyn_prop): Remove. Update all users to use
9820 type::dyn_prop.
9821 * gdbtypes.c (get_dyn_prop): Rename to...
9822 (type::dyn_prop): ... this.
9823
0d4bf016
SM
98242020-05-06 Simon Marchi <simon.marchi@efficios.com>
9825
9826 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9827
ac4a4f1c
SM
98282020-05-06 Simon Marchi <simon.marchi@efficios.com>
9829
9830 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9831 instruction, skip it if it's there.
9832
a3bbacc1
SM
98332020-05-05 Simon Marchi <simon.marchi@efficios.com>
9834
9835 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9836
c3236f84
SM
98372020-05-04 Simon Marchi <simon.marchi@efficios.com>
9838
9839 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9840 * gdbtypes.c (recursive_dump_type): Remove use of
9841 TYPE_INCOMPLETE.
9842
3b6acaee
TT
98432020-05-03 Tom Tromey <tom@tromey.com>
9844
9845 * breakpoint.c (catch_command, tcatch_command): Remove.
9846 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9847 add_show_prefix_cmd.
9848 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9849 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9850 Remove.
9851 (add_internal_problem_command): Use add_basic_prefix_cmd,
9852 add_show_prefix_cmd.
9853 * mips-tdep.c (set_mipsfpu_command): Remove.
9854 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9855 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9856 (_initialize_index_cache): Use add_basic_prefix_cmd.
9857 * memattr.c (dummy_cmd): Remove.
9858 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9859 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9860 (_initialize_tui_win): Use add_basic_prefix_cmd,
9861 add_show_prefix_cmd.
9862 * cli/cli-logging.c (set_logging_command): Remove.
9863 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9864 add_show_prefix_cmd.
9865 (show_logging_command): Remove.
9866 * target.c (target_command): Remove.
9867 (add_target): Use add_basic_prefix_cmd.
9868
a51119cd
HD
98692020-05-02 Hannes Domani <ssbssa@yahoo.de>
9870
9871 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9872
652fc23a 98732020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9874
652fc23a
PW
9875 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9876 info_command.
9877
117539e6
KR
98782020-04-30 Kamil Rytarowski <n54@gmx.com>
9879
9880 * nbsd-nat.c (nbsd_enable_proc_events)
9881 (nbsd_nat_target::post_startup_inferior): Add.
9882 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9883 (nbsd_nat_target::update_thread_list): Rewrite.
9884 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9885 "PTRACE_LWP_CREATE".
9886 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9887
102e38eb 98882020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9889
102e38eb
PW
9890 * stack.c (_initialize_stack): Remove duplicated creation
9891 of "frame" command and "f" alias.
9892
ee9d1e5f
HD
98932020-04-30 Hannes Domani <ssbssa@yahoo.de>
9894
9895 PR gdb/18706
9896 * gdbtypes.c (check_typedef): Calculate size of array of
9897 stubbed type.
9898
627c7fb8
HD
98992020-04-30 Hannes Domani <ssbssa@yahoo.de>
9900
9901 PR gdb/15559
9902 * i386-tdep.c (i386_push_dummy_call): Call
9903 i386_thiscall_push_dummy_call.
9904 (i386_thiscall_push_dummy_call): New function.
9905 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9906 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9907 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9908
ffc2844e
SM
99092020-04-29 Simon Marchi <simon.marchi@efficios.com>
9910
9911 * gdbarch.sh (do_read): Add shellcheck disable directive for
9912 warning SC2162.
9913
1207375d
SM
99142020-04-29 Simon Marchi <simon.marchi@efficios.com>
9915
9916 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9917 "referenced but not assigned" warning.
9918
9fdb2916
SM
99192020-04-29 Simon Marchi <simon.marchi@efficios.com>
9920
9921 * gdbarch.sh: Remove code that sets fallbackdefault.
9922
759cea5e
SM
99232020-04-29 Simon Marchi <simon.marchi@efficios.com>
9924
9925 * gdbarch.sh: Use shell operators && and || instead of
9926 -a and -o.
9927
cb02ab24
SM
99282020-04-29 Simon Marchi <simon.marchi@efficios.com>
9929
9930 * gdbarch.sh: Use $(...) instead of `...`.
9931
a6fc5ffc
SM
99322020-04-29 Simon Marchi <simon.marchi@efficios.com>
9933
9934 * gdbarch.sh: Use double quotes around variables.
9935
8d113d13
SM
99362020-04-29 Simon Marchi <simon.marchi@efficios.com>
9937
9938 * gdbarch.sh: Use %s with printf, instead of variables in the
9939 format string.
9940
ed6acedd
TT
99412020-04-29 Tom Tromey <tromey@adacore.com>
9942
9943 PR ada/25875:
9944 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9945 type fields here.
9946 (read_enumeration_type): Call
9947 update_enumeration_type_from_children later. Update comments.
9948 (process_enumeration_scope): Don't create type fields.
9949
b68b1b58
KR
99502020-04-29 Kamil Rytarowski <n54@gmx.com>
9951
9952 * nbsd-tdep.c: Include "xml-syscall.h".
9953 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9954
f94b2e03
KR
99552020-04-29 Kamil Rytarowski <n54@gmx.com>
9956
9957 * nbsd-nat.c: Include "sys/wait.h".
9958 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9959 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9960 (nbsd_nat_target::remove_exec_catchpoint)
9961 (nbsd_nat_target::set_syscall_catchpoint): Add.
9962 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9963 (nbsd_nat_target::insert_exec_catchpoint)
9964 (nbsd_nat_target::remove_exec_catchpoint)
9965 (nbsd_nat_target::set_syscall_catchpoint): Add.
9966 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9967 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9968 `nbsd_get_syscall_number'.
9969
fc49bc72
TT
99702020-04-29 Tom Tromey <tom@tromey.com>
9971
9972 * stack.c (print_block_frame_labels): Remove.
9973
d642b692
HD
99742020-04-29 Hannes Domani <ssbssa@yahoo.de>
9975
9976 PR gdb/17320
9977 * ada-valprint.c (val_print_packed_array_elements): Move array
9978 end bracket to new line.
9979 (ada_val_print_string): Remove extra spaces before first array
9980 element.
9981 * c-valprint.c (c_value_print_array): Likewise.
9982 * m2-valprint.c (m2_print_array_contents): Likewise.
9983 (m2_value_print_inner): Likewise.
9984 * p-valprint.c (pascal_value_print_inner): Likewise.
9985 * valprint.c (generic_val_print_array): Likewise.
9986 (value_print_array_elements): Move first array element and array
9987 end bracket to new line.
9988
ea90f227
TV
99892020-04-29 Tom de Vries <tdevries@suse.de>
9990
9991 PR symtab/25889
9992 * linespec.c (find_method): Fix ix calculation.
9993
4498ef4f
KR
99942020-04-28 Kamil Rytarowski <n54@gmx.com>
9995
9996 * syscalls/update-netbsd.sh: New file.
9997 * syscalls/netbsd.xml: Regenerate.
9998 * data-directory/Makefile.in: Register `netbsd.xml' in
9999 `SYSCALLS_FILES'.
10000
a55e30b5
SM
100012020-04-28 Simon Marchi <simon.marchi@efficios.com>
10002
10003 * syscalls/update-freebsd.sh: Add double quotes.
10004
2b2fbab8
TT
100052020-04-28 Tom Tromey <tom@tromey.com>
10006
10007 * NEWS: Update.
10008 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10009 (cmdpy_init): Allow class_tui.
10010
a65189c9
TV
100112020-04-28 Mark Williams <mark@myosotissp.com>
10012
10013 PR gdb/24480
10014 * dwarf2read.c: Add missing assingments to list_in_scope when
10015 start_symtab was already called.
10016
1b95cdb7
SM
100172020-04-28 Simon Marchi <simon.marchi@efficios.com>
10018
10019 PR gdb/25881
10020 * dwarf2/read.c (offset_map_type): Use
10021 gdb:hash_enum<sect_offset> as hash function.
10022
15cd93d0
TV
100232020-04-28 Tom de Vries <tdevries@suse.de>
10024
10025 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10026 with DW_AT_signature.
10027
1eb39914
SM
100282020-04-27 Simon Marchi <simon.marchi@efficios.com>
10029
10030 * configure.ac: Remove check for fs_base/gs_base in
10031 user_regs_struct.
10032 * configure: Re-generate.
10033 * config.in: Re-generate.
10034 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10035 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10036 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10037
991a3e2e
LM
100382020-04-27 Luis Machado <luis.machado@linaro.org>
10039
10040 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10041 problematic inline frame unwinding situation.
10042 * frame.c (frame_id_computed_p): New function.
10043 * frame.h (frame_id_computed_p): New prototype.
10044
361ba0e8
TT
100452020-04-26 Tom Tromey <tom@tromey.com>
10046
10047 * command.h (enum command_class) <class_pseudo>: Remove.
10048
bc3609fd
PW
100492020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10050
10051 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10052 and whitespace.
10053
b9771db7
KR
100542020-04-25 Kamil Rytarowski <n54@gmx.com>
10055
ec16513e
SM
10056 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10057 `PT_GET_PROCESS_STATE' block.
b9771db7 10058
7151c1af
TT
100592020-04-24 Tom Tromey <tom@tromey.com>
10060
10061 * symtab.h (symbol_get_demangled_name): Don't declare.
10062 * symtab.c (symbol_get_demangled_name): Remove.
10063 (general_symbol_info::natural_name)
10064 (general_symbol_info::demangled_name): Update.
10065
906bb4c5
TT
100662020-04-24 Tom Tromey <tom@tromey.com>
10067
10068 PR rust/25025:
10069 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10070
bcfe6157
TT
100712020-04-24 Tom Tromey <tom@tromey.com>
10072
10073 PR symtab/12707:
10074 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10075 exists.
10076 (new_symbol): Likewise.
10077 * compile/compile-object-load.c (get_out_value_type): Use
10078 symbol_matches_search_name.
10079
f049a313
TT
100802020-04-24 Tom Tromey <tom@tromey.com>
10081
10082 * dwarf2/read.c (add_partial_symbol): Do not call
10083 compute_and_set_names.
10084
76e288d1
TT
100852020-04-24 Tom Tromey <tom@tromey.com>
10086
10087 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10088 overload.
10089
2467f4f6
TT
100902020-04-24 Tom Tromey <tom@tromey.com>
10091
10092 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10093 (add_psymbol_to_list): New overload. Make old overload call new
10094 one.
10095 * psympriv.h (add_psymbol_to_list): New overload.
10096
e61108c9
TT
100972020-04-24 Tom Tromey <tom@tromey.com>
10098
10099 * dwarf2/read.c (partial_die_info::read) <case
10100 DW_AT_linkage_name>: Use value_as_string.
10101 (dwarf2_string_attr): Use value_as_string.
10102 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10103 method.
10104 * dwarf2/attribute.c (attribute::value_as_string): New method.
10105
8c87a452
TT
101062020-04-24 Tom Tromey <tom@tromey.com>
10107
10108 * symtab.c (general_symbol_info::natural_name)
10109 (general_symbol_info::demangled_name): Check for language_rust.
10110
787de330
TT
101112020-04-24 Tom Tromey <tom@tromey.com>
10112
10113 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10114 (dwarf2_physname): ... from here.
10115 (partial_die_info::read): Add Rust "{" hack.
10116
ff985671
TT
101172020-04-24 Tom Tromey <tom@tromey.com>
10118
10119 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10120 method.
10121 (symbol_set_demangled_name): Don't declare.
10122 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10123 symbol_set_demangled_name.
10124 (general_symbol_info::set_language)
10125 (general_symbol_info::compute_and_set_names): Update.
10126 * minsyms.c (minimal_symbol_reader::install): Update.
10127 * dwarf2/read.c (new_symbol): Update.
10128
1acda803
TT
101292020-04-24 Tom Tromey <tromey@adacore.com>
10130
10131 PR python/23662:
10132 * python/py-type.c (convert_field): Handle
10133 FIELD_LOC_KIND_DWARF_BLOCK.
10134 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10135 (typy_get_dynamic): Nw function.
10136 (type_object_getset): Add "dynamic".
10137 * NEWS: Add entry.
10138
d656f129
TT
101392020-04-24 Tom Tromey <tromey@adacore.com>
10140
10141 * ada-typeprint.c (print_choices, print_variant_part)
10142 (print_record_field_types_dynamic): New functions.
10143 (print_record_field_types): Use print_record_field_types_dynamic.
10144
7d79de9a
TT
101452020-04-24 Tom Tromey <tromey@adacore.com>
10146
10147 * dwarf2/read.c (handle_data_member_location): New overload.
10148 (dwarf2_add_field): Use it.
10149 (decode_locdesc): Add "computed" parameter. Update comment.
10150 * gdbtypes.c (is_dynamic_type_internal): Also look for
10151 FIELD_LOC_KIND_DWARF_BLOCK.
10152 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10153 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10154 virtual base classes.
10155 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10156 FIELD_LOC_KIND_DWARF_BLOCK.
10157
f8e89861
TT
101582020-04-24 Tom Tromey <tromey@adacore.com>
10159
10160 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10161 * gdbtypes.c (is_dynamic_type_internal): Check
10162 TYPE_HAS_DYNAMIC_LENGTH.
10163 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10164 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10165 New macros.
10166 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10167 constant.
10168
9c6a1327
TT
101692020-04-24 Tom Tromey <tromey@adacore.com>
10170
10171 * dwarf2/read.c (struct variant_field): Rewrite.
10172 (struct variant_part_builder): New.
10173 (struct nextfield): Remove "variant" field. Add "offset".
10174 (struct field_info): Add "current_variant_part" and
10175 "variant_parts".
10176 (alloc_discriminant_info): Remove.
10177 (alloc_rust_variant): New function.
10178 (quirk_rust_enum): Update.
10179 (dwarf2_add_field): Set "offset" member. Don't handle
10180 DW_TAG_variant_part.
10181 (offset_map_type): New typedef.
10182 (convert_variant_range, create_one_variant)
10183 (create_one_variant_part, create_variant_parts)
10184 (add_variant_property): New functions.
10185 (dwarf2_attach_fields_to_type): Call add_variant_property.
10186 (read_structure_type): Don't handle DW_TAG_variant_part.
10187 (handle_variant_part, handle_variant): New functions.
10188 (handle_struct_member_die): Use them.
10189 (process_structure_scope): Don't handle variant parts.
10190 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10191 (struct discriminant_info): Remove.
10192 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10193 (struct main_type) <flag_discriminated_union>: Remove.
10194 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10195 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10196 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10197 Update.
10198 * valops.c (value_union_variant): Remove.
10199 * value.h (value_union_variant): Don't declare.
10200
b249d2c2
TT
102012020-04-24 Tom Tromey <tromey@adacore.com>
10202
10203 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10204 (ada_value_primitive_packed_val): Update.
10205 * ada-valprint.c (ada_value_print_1): Update.
10206 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10207 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10208 just an address. Use evaluate_for_locexpr_baton.
10209 (dwarf2_evaluate_property): Update.
10210 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10211 array_view.
10212 * findvar.c (default_read_var_value): Update.
10213 * gdbtypes.c (compute_variant_fields_inner)
10214 (resolve_dynamic_type_internal): Update.
10215 (resolve_dynamic_type): Change type of valaddr parameter.
10216 * gdbtypes.h (resolve_dynamic_type): Update.
10217 * valarith.c (value_subscripted_rvalue): Update.
10218 * value.c (value_from_contents_and_address): Update.
10219
61122aa9
TT
102202020-04-24 Tom Tromey <tromey@adacore.com>
10221
10222 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10223 "push_initial_value" parameter.
10224 (dwarf2_evaluate_property): Likewise.
10225 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10226
ef83a141
TT
102272020-04-24 Tom Tromey <tromey@adacore.com>
10228
10229 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10230 (variant::matches, compute_variant_fields_recurse)
10231 (compute_variant_fields_inner, compute_variant_fields): New
10232 functions.
10233 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10234 Use resolved_type after type is made.
10235 (operator==): Add new cases.
10236 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10237 (struct discriminant_range, struct variant, struct variant_part):
10238 New.
10239 (union dynamic_prop_data) <variant_parts, original_type>: New
10240 members.
10241 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10242 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10243 constants.
10244 * value.c (unpack_bits_as_long): Now public.
10245 * value.h (unpack_bits_as_long): Declare.
10246
675127ec
TT
102472020-04-24 Tom Tromey <tromey@adacore.com>
10248
10249 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10250 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10251
9852ceef
HD
102522020-04-24 Hannes Domani <ssbssa@yahoo.de>
10253
10254 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10255
7632c6ce
KR
102562020-04-24 Kamil Rytarowski <n54@gmx.com>
10257
10258 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10259 (remove_fork_catchpoint, post_startup_inferior)
10260 (post_attach): Move...
10261 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10262 (remove_fork_catchpoint, post_startup_inferior)
10263 (post_attach): ...here.
10264 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10265 (remove_fork_catchpoint, post_startup_inferior)
10266 (post_attach): Move...
10267 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10268 (remove_fork_catchpoint, post_startup_inferior)
10269 (post_attach): ...here.
10270
7be2bb4f
TT
102712020-04-24 Tom Tromey <tromey@adacore.com>
10272
10273 * nat/windows-nat.h (struct windows_thread_info)
10274 <pc_adjusted>: New member.
10275 * windows-nat.c (windows_fetch_one_register): Check
10276 pc_adjusted.
10277 (windows_nat_target::get_windows_debug_event)
10278 (windows_nat_target::wait): Set pc_adjusted.
10279
f80cb3b4
TV
102802020-04-24 Tom de Vries <tdevries@suse.de>
10281
10282 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10283 Run gdb-add-index inside temp dir.
10284
29514b87
TT
102852020-04-23 Tom Tromey <tromey@adacore.com>
10286
10287 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10288 in loop.
10289
5939967b
LM
102902020-04-23 Luis Machado <luis.machado@linaro.org>
10291
10292 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10293 get_frame_register instead of gdbarch_unwind_pc.
10294
70bc38f5
TV
102952020-04-23 Tom de Vries <tdevries@suse.de>
10296
10297 * symtab.c (lookup_global_symbol): Prefer def over decl.
10298
de82891c
TV
102992020-04-23 Tom de Vries <tdevries@suse.de>
10300
10301 PR symtab/25807
10302 * block.c (best_symbol, better_symbol): Promote to external.
10303 * block.h (best_symbol, better_symbol): Declare.
10304 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10305 decl.
10306
ecc6c606
TT
103072020-04-23 Tom Tromey <tromey@adacore.com>
10308
10309 PR ada/25837:
10310 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10311 "const char *", not a "const std::string &".
10312 <name_and_matcher::operator==>: Update.
10313 * unittests/lookup_name_info-selftests.c: Change type of
10314 "result".
10315
740480b8
TT
103162020-04-23 Tom Tromey <tom@tromey.com>
10317
10318 * inferior.h (iterate_over_inferiors): Don't declare.
10319 * inferior.c (iterate_over_inferiors): Remove.
10320 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10321 Remove.
10322 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10323 use iterate_over_inferiors.
10324 (darwin_resume_inferior_it)
10325 (struct resume_inferior_threads_param)
10326 (darwin_resume_inferior_threads_it): Remove.
10327 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10328
ae3ab1f0
TV
103292020-04-23 Tom de Vries <tdevries@suse.de>
10330
10331 * blockframe.c (find_pc_partial_function): Use
10332 find_pc_sect_compunit_symtab rather than
10333 objfile->sf->qf->find_pc_sect_compunit_symtab.
10334
317d2668
TV
103352020-04-22 Tom de Vries <tdevries@suse.de>
10336
10337 PR symtab/25764
10338 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10339 in psymtabs.
10340
eea9e357
TV
103412020-04-22 Tom de Vries <tdevries@suse.de>
10342
10343 PR symtab/25801
10344 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10345 symtabs.
10346
3d5afab3
TV
103472020-04-22 Tom de Vries <tdevries@suse.de>
10348
10349 PR symtab/25700
10350 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10351 CU if already created.
10352
d43b7a2d
TBA
103532020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10354
10355 * infrun.c (displaced_step_fixup): Switch to the event_thread
10356 before calling displaced_step_restore, not after.
10357
d89edf9b
MM
103582020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10359
10360 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10361 its inferior is not recorded by us.
10362 (record_btrace_target_open): Replace call to
10363 all_non_exited_threads () with call to current_inferior
10364 ()->non_exited_threads ().
10365 (record_btrace_target::stop_recording): Likewise.
10366 (record_btrace_target::close): Likewise.
10367 (record_btrace_target::wait): Likewise.
10368 (record_btrace_target::record_stop_replaying): Likewise.
10369
5897fd49
MM
103702020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10371
10372 * btrace.c (btrace_enable): Throw an error on double enables and
10373 when enabling recording fails.
10374 (btrace_disable): Throw an error if the thread is not recorded.
10375
1a476b6d
MM
103762020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10377
10378 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10379 request if we do not have a thread_info.
10380
4778a5f8
TV
103812020-04-21 Tom de Vries <tdevries@suse.de>
10382
10383 PR gdb/25471
10384 * thread.c
10385 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10386 exception in get_frame_id.
10387
0fa7617d
TT
103882020-04-20 Tom Tromey <tromey@adacore.com>
10389
10390 * python/python.c (struct gdbpy_event): Mark move constructor as
10391 noexcept.
10392 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10393 constructor as noexcept.
10394 * completer.h (struct completion_result): Mark move constructor as
10395 noexcept.
10396 * completer.c (completion_result::completion_result): Use
10397 initialization style. Don't call reset_match_list.
10398
ad23bda0
MS
103992020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10400
10401 * MAINTAINERS (Write After Approval): Add myself.
10402
45e1f031
TT
104032020-04-18 Tom Tromey <tom@tromey.com>
10404
10405 * windows-tdep.c (init_w32_command_list)
10406 (w32_prefix_command_valid): Restore.
10407 (_initialize_windows_tdep): Call init_w32_command_list.
10408
08feed99
TT
104092020-04-18 Tom Tromey <tom@tromey.com>
10410
10411 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10412 * value.c (value_fn_field): Update.
10413 * valops.c (find_function_in_inferior)
10414 (value_allocate_space_in_inferior): Update.
10415 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10416 Update.
10417 * tui/tui-source.c (tui_source_window::set_contents): Update.
10418 * symtab.c (lookup_global_or_static_symbol)
10419 (find_function_start_sal_1, skip_prologue_sal)
10420 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10421 * symmisc.c (dump_msymbols, dump_symtab_1)
10422 (maintenance_print_one_line_table): Update.
10423 * symfile.c (init_entry_point_info, section_is_mapped)
10424 (list_overlays_command, simple_read_overlay_table)
10425 (simple_overlay_update_1): Update.
10426 * stap-probe.c (handle_stap_probe): Update.
10427 * stabsread.c (dbx_init_float_type, define_symbol)
10428 (read_one_struct_field, read_enum_type, read_range_type): Update.
10429 * source.c (info_line_command): Update.
10430 * python/python.c (gdbpy_source_objfile_script)
10431 (gdbpy_execute_objfile_script): Update.
10432 * python/py-type.c (save_objfile_types): Update.
10433 * python/py-objfile.c (py_free_objfile): Update.
10434 * python/py-inferior.c (python_new_objfile): Update.
10435 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10436 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10437 (maintenance_check_psymtabs): Update.
10438 * printcmd.c (info_address_command): Update.
10439 * objfiles.h (struct objfile) <arch>: New method, from
10440 get_objfile_arch.
10441 (get_objfile_arch): Don't declare.
10442 * objfiles.c (get_objfile_arch): Remove.
10443 (filter_overlapping_sections): Update.
10444 * minsyms.c (msymbol_is_function): Update.
10445 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10446 (output_nondebug_symbol): Update.
10447 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10448 (mdebug_expand_psymtab): Update.
10449 * machoread.c (macho_add_oso_symfile): Update.
10450 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10451 Update.
10452 * linux-fork.c (checkpoint_command): Update.
10453 * linespec.c (convert_linespec_to_sals): Update.
10454 * jit.c (finalize_symtab): Update.
10455 * infrun.c (insert_exception_resume_from_probe): Update.
10456 * ia64-tdep.c (ia64_find_unwind_table): Update.
10457 * hppa-tdep.c (internalize_unwinds): Update.
10458 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10459 Update.
10460 * gcore.c (call_target_sbrk): Update.
10461 * elfread.c (record_minimal_symbol, elf_symtab_read)
10462 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10463 (elf_gnu_ifunc_resolve_by_got): Update.
10464 * dwarf2/read.c (create_addrmap_from_index)
10465 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10466 (read_debug_names_from_section)
10467 (process_psymtab_comp_unit_reader, add_partial_symbol)
10468 (add_partial_subprogram, process_full_comp_unit)
10469 (read_file_scope, read_func_scope, read_lexical_block_scope)
10470 (read_call_site_scope, dwarf2_ranges_read)
10471 (dwarf2_record_block_ranges, dwarf2_add_field)
10472 (mark_common_block_symbol_computed, read_tag_pointer_type)
10473 (read_tag_string_type, dwarf2_init_float_type)
10474 (dwarf2_init_complex_target_type, read_base_type)
10475 (partial_die_info::read, partial_die_info::read)
10476 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10477 (dwarf2_fetch_die_loc_sect_off): Update.
10478 * dwarf2/loc.c (dwarf2_find_location_expression)
10479 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10480 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10481 (dwarf2_loc_desc_get_symbol_read_needs)
10482 (locexpr_describe_location_piece, locexpr_describe_location_1)
10483 (loclist_describe_location): Update.
10484 * dwarf2/index-write.c (write_debug_names): Update.
10485 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10486 * dtrace-probe.c (dtrace_process_dof): Update.
10487 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10488 (process_one_symbol): Update.
10489 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10490 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10491 (coff_read_enum_type): Update.
10492 * cli/cli-cmds.c (edit_command, list_command): Update.
10493 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10494 * breakpoint.c (create_overlay_event_breakpoint)
10495 (create_longjmp_master_breakpoint)
10496 (create_std_terminate_master_breakpoint)
10497 (create_exception_master_breakpoint, get_sal_arch): Update.
10498 * block.c (block_gdbarch): Update.
10499 * annotate.c (annotate_source_line): Update.
10500
0743fc83
TT
105012020-04-17 Tom Tromey <tromey@adacore.com>
10502
10503 * auto-load.c (show_auto_load_cmd): Remove.
10504 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10505 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10506 (maintenance_print_arc_command): Remove.
10507 * tui/tui-win.c (tui_command): Remove.
10508 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10509 * tui/tui-layout.c (tui_layout_command): Remove.
10510 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10511 * python/python.c (user_set_python, user_show_python): Remove.
10512 (_initialize_python): Use add_basic_prefix_cmd,
10513 add_show_prefix_cmd.
10514 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10515 (install_gdb_commands): Use add_basic_prefix_cmd,
10516 add_show_prefix_cmd.
10517 (info_guile_command): Remove.
10518 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10519 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10520 add_show_prefix_cmd.
10521 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10522 Remove do_set and do_show parameters.
10523 * cli/cli-style.c (set_style, show_style): Remove.
10524 (_initialize_cli_style): Use add_basic_prefix_cmd,
10525 add_show_prefix_cmd.
10526 (cli_style_option::add_setshow_commands): Remove do_set and
10527 do_show parameters.
10528 (cli_style_option::add_setshow_commands): Use
10529 add_basic_prefix_cmd, add_show_prefix_cmd.
10530 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10531 (set_style_name): Remove.
10532 * cli/cli-dump.c (dump_command, append_command): Remove.
10533 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10534 (tekhex_dump_command, binary_dump_command)
10535 (binary_append_command): Remove.
10536 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10537 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10538 (init_w32_command_list): Remove; move into ...
10539 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10540 * valprint.c (set_print, show_print, set_print_raw)
10541 (show_print_raw): Remove.
10542 (_initialize_valprint): Use add_basic_prefix_cmd,
10543 add_show_prefix_cmd.
10544 * typeprint.c (set_print_type, show_print_type): Remove.
10545 (_initialize_typeprint): Use add_basic_prefix_cmd,
10546 add_show_prefix_cmd.
10547 * record.c (set_record_command, show_record_command): Remove.
10548 (_initialize_record): Use add_basic_prefix_cmd,
10549 add_show_prefix_cmd.
10550 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10551 add_show_prefix_cmd.
10552 (info_command, show_command, set_debug, show_debug): Remove.
10553 * top.h (set_history, show_history): Don't declare.
10554 * top.c (set_history, show_history): Remove.
10555 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10556 (unset_tdesc_cmd): Remove.
10557 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10558 add_show_prefix_cmd.
10559 * symtab.c (info_module_command): Remove.
10560 (_initialize_symtab): Use add_basic_prefix_cmd.
10561 * symfile.c (overlay_command): Remove.
10562 (_initialize_symfile): Use add_basic_prefix_cmd.
10563 * sparc64-tdep.c (info_adi_command): Remove.
10564 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10565 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10566 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10567 add_show_prefix_cmd.
10568 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10569 (_initialize_serial): Use add_basic_prefix_cmd,
10570 add_show_prefix_cmd.
10571 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10572 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10573 add_show_prefix_cmd.
10574 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10575 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10576 add_show_prefix_cmd.
10577 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10578 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10579 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10580 add_show_prefix_cmd.
10581 * remote.c (remote_command, set_remote_cmd): Remove.
10582 (_initialize_remote): Use add_basic_prefix_cmd.
10583 * record-full.c (set_record_full_command)
10584 (show_record_full_command): Remove.
10585 (_initialize_record_full): Use add_basic_prefix_cmd,
10586 add_show_prefix_cmd.
10587 * record-btrace.c (cmd_set_record_btrace)
10588 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10589 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10590 (cmd_show_record_btrace_pt): Remove.
10591 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10592 add_show_prefix_cmd.
10593 * ravenscar-thread.c (set_ravenscar_command)
10594 (show_ravenscar_command): Remove.
10595 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10596 add_show_prefix_cmd.
10597 * mips-tdep.c (show_mips_command, set_mips_command)
10598 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10599 add_show_prefix_cmd.
10600 * maint.c (maintenance_command, maintenance_info_command)
10601 (maintenance_check_command, maintenance_print_command)
10602 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10603 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10604 add_show_prefix_cmd.
10605 (show_per_command_cmd): Remove.
10606 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10607 Remove.
10608 (maintenance_show_test_settings_cmd): Remove.
10609 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10610 add_show_prefix_cmd.
10611 * maint-test-options.c (maintenance_test_options_command):
10612 Remove.
10613 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10614 * macrocmd.c (macro_command): Remove
10615 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10616 * language.c (set_check, show_check): Remove.
10617 (_initialize_language): Use add_basic_prefix_cmd,
10618 add_show_prefix_cmd.
10619 * infcmd.c (unset_command): Remove.
10620 (_initialize_infcmd): Use add_basic_prefix_cmd.
10621 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10622 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10623 add_show_prefix_cmd.
10624 * go32-nat.c (go32_info_dos_command): Remove.
10625 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10626 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10627 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10628 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10629 (_initialize_frame): Use add_basic_prefix_cmd,
10630 add_show_prefix_cmd.
10631 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10632 (_initialize_dcache): Use add_basic_prefix_cmd,
10633 add_show_prefix_cmd.
10634 * cp-support.c (maint_cplus_command): Remove.
10635 (_initialize_cp_support): Use add_basic_prefix_cmd.
10636 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10637 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10638 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10639 add_basic_prefix_cmd, add_show_prefix_cmd.
10640 * breakpoint.c (save_command): Remove.
10641 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10642 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10643 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10644 add_show_prefix_cmd.
10645 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10646 (set_ada_command, show_ada_command): Remove.
10647 (_initialize_ada_language): Use add_basic_prefix_cmd,
10648 add_show_prefix_cmd.
10649 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10650
3557f442
KR
106512020-04-16 Kamil Rytarowski <n54@gmx.com>
10652
10653 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10654 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10655
16197208
SM
106562020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10657
10658 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10659 warning messages.
10660
00ac85d3
SM
106612020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10662
10663 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10664 import table is not at beginning of .idata section.
10665
381ce63f
PA
106662020-04-16 Pedro Alves <palves@redhat.com>
10667
10668 * inferior.c (delete_inferior): Use delete operator directly
10669 instead of delete_program_space.
10670 * progspace.c (add_program_space): New, factored out from
10671 program_space::program_space.
10672 (remove_program_space): New, factored out from
10673 delete_program_space.
10674 (program_space::program_space): Remove intro comment. Rewrite.
10675 (program_space::~program_space): Remove intro comment. Call
10676 remove_program_space.
10677 (delete_program_space): Delete.
10678 * progspace.h (program_space::program_space): Make explicit. Move
10679 intro comment here, adjusted.
10680 (program_space::~program_space): Move intro comment here,
10681 adjusted.
10682 (delete_program_space): Remove.
10683
a010605f
TT
106842020-04-16 Tom Tromey <tromey@adacore.com>
10685
10686 * windows-nat.c (windows_nat::handle_access_violation): New
10687 function.
10688 * nat/windows-nat.h (handle_access_violation): Declare.
10689 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10690 windows-nat.c. Call handle_access_violation.
10691
efba5c23
TV
106922020-04-16 Tom de Vries <tdevries@suse.de>
10693
10694 PR symtab/25791
10695 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10696 CUs without psymtab.
10697
97ed802d
KB
106982020-04-16 Kevin Buettner <kevinb@redhat.com>
10699
10700 * python/python.c (do_start_initialization): Don't call
10701 PyEval_InitThreads for Python 3.9 and beyond.
10702
c7d64809
KR
107032020-04-15 Kamil Rytarowski <n54@gmx.com>
10704
10705 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10706 thread functions.
10707 (obsd_nat_target::wait): Likewise.
10708
ce127a96
TT
107092020-04-15 Tom Tromey <tromey@adacore.com>
10710
10711 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10712 (DEBUG_EXCEPT): Use debug_printf.
10713
99f1bc6a
AB
107142020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10715
10716 * completer.c (class completion_tracker::completion_hash_entry)
10717 <hash_name>: New member function.
10718 (completion_tracker::discard_completions): New callback to hash a
10719 completion_hash_entry, pass this to htab_create_alloc.
10720
a0e9b532
JT
107212016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10722
10723 * windows-nat.c (windows_make_so): Warn rather than stopping with
10724 an error if realpath() fails.
10725
06ca5dd4
KR
107262020-04-14 Kamil Rytarowski <n54@gmx.com>
10727
10728 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10729 (nbsd_nat_target::info_proc): Add do_status.
10730
194d088f
TV
107312020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10732 Tom de Vries <tdevries@suse.de>
10733
10734 PR symtab/25718
10735 * psympriv.h (struct partial_symtab::read_symtab)
10736 (struct partial_symtab::expand_psymtab)
10737 (struct partial_symtab::read_dependencies): Update comments.
10738 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10739 read_symtab for includer.
10740 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10741 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10742 (struct dwarf2_include_psymtab::m_readin): Remove.
10743 (struct dwarf2_include_psymtab::includer): New member function.
10744 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10745
c1a66c06
TV
107462020-04-14 Tom de Vries <tdevries@suse.de>
10747
10748 PR symtab/25720
10749 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10750 with NULL symbol_matcher and lookup_name.
10751 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10752 and lookup_name.
10753 * dwarf2/read.c (dw2_expand_symtabs_matching)
10754 (dw2_debug_names_expand_symtabs_matching): Same.
10755 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10756 Make lookup_name a pointer. Update comment.
10757 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10758 lookup_name being a pointer.
10759 * symfile.c (expand_symtabs_matching): Same.
10760 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10761 * linespec.c (iterate_over_all_matching_symtabs): Same.
10762
400b5eca
TT
107632020-04-13 Tom Tromey <tom@tromey.com>
10764
10765 * run-on-main-thread.c: Update include.
10766 * unittests/main-thread-selftests.c: Update include.
10767 * tui/tui-win.c: Update include.
10768 * tui/tui-io.c: Update include.
10769 * tui/tui-interp.c: Update include.
10770 * tui/tui-hooks.c: Update include.
10771 * top.h: Update include.
10772 * top.c: Update include.
10773 * ser-base.c: Update include.
10774 * remote.c: Update include.
10775 * remote-notif.c: Update include.
10776 * remote-fileio.c: Update include.
10777 * record-full.c: Update include.
10778 * record-btrace.c: Update include.
10779 * python/python.c: Update include.
10780 * posix-hdep.c: Update include.
10781 * mingw-hdep.c: Update include.
10782 * mi/mi-main.c: Update include.
10783 * mi/mi-interp.c: Update include.
10784 * main.c: Update include.
10785 * linux-nat.c: Update include.
10786 * interps.c: Update include.
10787 * infrun.c: Update include.
10788 * inf-loop.c: Update include.
10789 * event-top.c: Update include.
10790 * event-loop.c: Move to ../gdbsupport/.
10791 * event-loop.h: Move to ../gdbsupport/.
10792 * async-event.h: Update include.
10793 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10794
93b54c8e
TT
107952020-04-13 Tom Tromey <tom@tromey.com>
10796
10797 * tui/tui-win.c: Include async-event.h.
10798 * remote.c: Include async-event.h.
10799 * remote-notif.c: Include async-event.h.
10800 * record-full.c: Include async-event.h.
10801 * record-btrace.c: Include async-event.h.
10802 * infrun.c: Include async-event.h.
10803 * event-top.c: Include async-event.h.
10804 * event-loop.h: Move some declarations to async-event.h.
10805 * event-loop.c: Don't include ser-event.h or top.h. Move some
10806 code to async-event.c.
10807 * async-event.h: New file.
10808 * async-event.c: New file.
10809 * Makefile.in (COMMON_SFILES): Add async-event.c.
10810 (HFILES_NO_SRCDIR): Add async-event.h.
10811
c1cd3163
TT
108122020-04-13 Tom Tromey <tom@tromey.com>
10813
10814 * utils.c (flush_streams): New function.
10815 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10816
29f2bf4f
TT
108172020-04-13 Tom Tromey <tom@tromey.com>
10818
10819 * event-loop.c (handle_file_event): Use warning, not
10820 printf_unfiltered.
10821
98029d02
TT
108222020-04-13 Tom Tromey <tom@tromey.com>
10823
10824 * event-loop.c: Include <chrono>.
10825
06cc9596
TT
108262020-04-13 Tom Tromey <tom@tromey.com>
10827
10828 * gdb_select.h: Move to ../gdbsupport/.
10829 * event-loop.c: Update include path.
10830 * top.c: Update include path.
10831 * ser-base.c: Update include path.
10832 * ui-file.c: Update include path.
10833 * ser-tcp.c: Update include path.
10834 * guile/scm-ports.c: Update include path.
10835 * posix-hdep.c: Update include path.
10836 * ser-unix.c: Update include path.
10837 * gdb_usleep.c: Update include path.
10838 * mingw-hdep.c: Update include path.
10839 * inflow.c: Update include path.
10840 * infrun.c: Update include path.
10841 * event-top.c: Update include path.
10842
8ae8e197
TT
108432020-04-13 Tom Tromey <tom@tromey.com>
10844
10845 * configure: Rebuild.
10846 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10847
58cf28e8
TT
108482020-04-13 Tom Tromey <tom@tromey.com>
10849
10850 * event-loop.h (start_event_loop): Don't declare.
10851 * event-loop.c (start_event_loop): Move...
10852 * main.c (start_event_loop): ...here. Now static.
10853
b7f999ae
SDJ
108542020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10855
10856 * MAINTAINERS: Update my email address.
10857
1085dfd4
KR
108582020-04-12 Kamil Rytarowski <n54@gmx.com>
10859
10860 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10861 IP_ALL.
10862
49d1d1f5
KR
108632020-04-12 Kamil Rytarowski <n54@gmx.com>
10864
10865 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10866 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10867
b4848d2a
KR
108682020-04-12 Kamil Rytarowski <n54@gmx.com>
10869
10870 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10871 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10872
51c133d5
KR
108732020-04-12 Kamil Rytarowski <n54@gmx.com>
10874
10875 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10876
54b8cbd0
KR
108772020-04-11 Kamil Rytarowski <n54@gmx.com>
10878
10879 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10880 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10881 (nbsd_nat_target::info_proc): New functions.
10882 * nbsd-nat.c (kinfo_get_vmmap): New function.
10883 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10884 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10885 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10886 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10887 functions.
10888 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10889 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10890 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10891 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10892 (KINFO_VME_FLAG_GROWS_DOWN): New.
10893
cf83625d
AS
108942020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10895
10896 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10897 bit shift.
10898
0c4311ab
TT
108992020-04-10 Tom Tromey <tromey@adacore.com>
10900
10901 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10902
3e65b3e9
TT
109032020-04-10 Tom Tromey <tromey@adacore.com>
10904
10905 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10906 separate debug files.
10907
13302e95
HD
109082020-04-10 Hannes Domani <ssbssa@yahoo.de>
10909
10910 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10911 Move to...
10912 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10913 ... here.
10914 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10915 Check for STATUS_WX86_BREAKPOINT.
10916 (windows_nat_target::wait): Same.
10917
bdfc1e8a
TV
109182020-04-10 Tom de Vries <tdevries@suse.de>
10919
10920 PR cli/25808
10921 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10922
f4460aec
SM
109232020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10924
10925 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10926 (Write After Approval): Remove Tom de Vries.
10927
a25198bb
BE
109282020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10929
10930 revert partially:
10931 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10932
aac66a4c
SM
10933 * buildsym.c (record_line): Fix undefined behavior and preserve
10934 lines at eof.
a25198bb 10935
206c98a6
KR
109362020-04-09 Kamil Rytarowski <n54@gmx.com>
10937
10938 * auxv.h (svr4_auxv_parse): New.
10939 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10940 and generic_auxv_parse.
10941 (svr4_auxv_parse): Add.
10942 * obsd-tdep.c: Include "auxv.h".
10943 (obsd_auxv_parse): Remove.
10944 (obsd_init_abi): Remove comment.
10945 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10946 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10947 * nbsd-tdep.c: Include "auxv.h".
10948 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10949
71fbdbaf
TT
109502020-04-08 Tom Tromey <tromey@adacore.com>
10951
10952 * nat/windows-nat.h (last_wait_event): Don't declare.
10953 (wait_for_debug_event): Update comment.
10954 * nat/windows-nat.c (last_wait_event): Now static.
10955
2c1d95e8
TT
109562020-04-08 Tom Tromey <tromey@adacore.com>
10957
10958 * windows-nat.c (wait_for_debug_event): Move to
10959 nat/windows-nat.c.
10960 * nat/windows-nat.h (wait_for_debug_event): Declare.
10961 * nat/windows-nat.c (wait_for_debug_event): Move from
10962 windows-nat.c. No longer static.
10963
d2977bc4
TT
109642020-04-08 Tom Tromey <tromey@adacore.com>
10965
10966 * windows-nat.c (get_windows_debug_event): Use
10967 fetch_pending_stop.
10968 * nat/windows-nat.h (fetch_pending_stop): Declare.
10969 * nat/windows-nat.c (fetch_pending_stop): New function.
10970
e758e19c
TT
109712020-04-08 Tom Tromey <tromey@adacore.com>
10972
10973 * windows-nat.c (windows_continue): Use matching_pending_stop and
10974 continue_last_debug_event.
10975 * nat/windows-nat.h (matching_pending_stop)
10976 (continue_last_debug_event): Declare.
10977 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10978 (matching_pending_stop, continue_last_debug_event): New
10979 functions.
10980
8d30e395
TT
109812020-04-08 Tom Tromey <tromey@adacore.com>
10982
10983 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10984 (handle_exception_result): Move to nat/windows-nat.h.
10985 (DEBUG_EXCEPTION_SIMPLE): Remove.
10986 (windows_nat::handle_ms_vc_exception): New function.
10987 (handle_exception): Move to nat/windows-nat.c.
10988 (get_windows_debug_event): Update.
10989 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10990 nat/windows-nat.c.
10991 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10992 (handle_exception_result): Move from windows-nat.c.
10993 (handle_exception): Declare.
10994 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10995 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10996 windows-nat.c.
10997
29de418d
TT
109982020-04-08 Tom Tromey <tromey@adacore.com>
10999
11000 * windows-nat.c (exception_count, event_count): Remove.
11001 (handle_exception, get_windows_debug_event)
11002 (do_initial_windows_stuff): Update.
11003
a816ba18
TT
110042020-04-08 Tom Tromey <tromey@adacore.com>
11005
11006 * windows-nat.c (windows_nat::handle_load_dll)
11007 (windows_nat::handle_unload_dll): Rename. No longer static.
11008 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11009 Declare.
11010
a00caa12
TT
110112020-04-08 Tom Tromey <tromey@adacore.com>
11012
11013 * complaints.h (stop_whining): Declare at top-level.
11014 (complaint): Don't declare stop_whining.
11015
d41b524f
TT
110162020-04-08 Tom Tromey <tromey@adacore.com>
11017
11018 * windows-nat.c (windows_nat::handle_output_debug_string):
11019 Rename. No longer static.
11020 * nat/windows-nat.h (handle_output_debug_string): Declare.
11021
3c76026d
TT
110222020-04-08 Tom Tromey <tromey@adacore.com>
11023
11024 * windows-nat.c (current_process_handle, current_process_id)
11025 (main_thread_id, last_sig, current_event, last_wait_event)
11026 (current_windows_thread, desired_stop_thread_id, pending_stops)
11027 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11028 (display_selectors, fake_create_process)
11029 (get_windows_debug_event): Update.
11030 * nat/windows-nat.h (current_process_handle, current_process_id)
11031 (main_thread_id, last_sig, current_event, last_wait_event)
11032 (current_windows_thread, desired_stop_thread_id, pending_stops)
11033 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11034 * nat/windows-nat.c (current_process_handle, current_process_id)
11035 (main_thread_id, last_sig, current_event, last_wait_event)
11036 (current_windows_thread, desired_stop_thread_id, pending_stops)
11037 (siginfo_er): New globals. Move from windows-nat.c.
11038
9d8679cc
TT
110392020-04-08 Tom Tromey <tromey@adacore.com>
11040
11041 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11042 (handle_load_dll): Update.
11043 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11044
28688adf
TT
110452020-04-08 Tom Tromey <tromey@adacore.com>
11046
11047 * windows-nat.c (enum thread_disposition_type): Move to
11048 nat/windows-nat.h.
11049 (windows_nat::thread_rec): Rename from thread_rec. No longer
11050 static.
11051 (windows_add_thread, windows_nat_target::fetch_registers)
11052 (windows_nat_target::store_registers, handle_exception)
11053 (windows_nat_target::resume, get_windows_debug_event)
11054 (windows_nat_target::get_tib_address)
11055 (windows_nat_target::thread_name)
11056 (windows_nat_target::thread_alive): Update.
11057 * nat/windows-nat.h (enum thread_disposition_type): Move from
11058 windows-nat.c.
11059 (thread_rec): Declare.
11060
4834dad0
TT
110612020-04-08 Tom Tromey <tromey@adacore.com>
11062
11063 * windows-nat.c: Add "using namespace".
11064 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11065 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11066
65bafd5b
TT
110672020-04-08 Tom Tromey <tromey@adacore.com>
11068
11069 * nat/windows-nat.h (struct windows_thread_info): Declare
11070 destructor.
11071 * nat/windows-nat.c (~windows_thread_info): New.
11072
0a4afda3
TT
110732020-04-08 Tom Tromey <tromey@adacore.com>
11074
11075 PR gdb/22992
11076 * windows-nat.c (current_event): Update comment.
11077 (last_wait_event, desired_stop_thread_id): New globals.
11078 (struct pending_stop): New.
11079 (pending_stops): New global.
11080 (windows_nat_target) <stopped_by_sw_breakpoint>
11081 <supports_stopped_by_sw_breakpoint>: New methods.
11082 (windows_fetch_one_register): Add assertions. Adjust PC.
11083 (windows_continue): Handle pending stops. Suspend other threads
11084 when stepping. Use last_wait_event
11085 (wait_for_debug_event): New function.
11086 (get_windows_debug_event): Use wait_for_debug_event. Handle
11087 pending stops. Queue spurious stops.
11088 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11089 (windows_nat_target::kill): Use wait_for_debug_event.
11090 * nat/windows-nat.h (struct windows_thread_info)
11091 <stopped_at_software_breakpoint>: New field.
11092 * nat/windows-nat.c (windows_thread_info::resume): Clear
11093 stopped_at_software_breakpoint.
11094
8e61ebec
TT
110952020-04-08 Tom Tromey <tromey@adacore.com>
11096
11097 * windows-nat.c (enum thread_disposition_type): New.
11098 (thread_rec): Replace "get_context" parameter with "disposition";
11099 change type.
11100 (windows_add_thread, windows_nat_target::fetch_registers)
11101 (windows_nat_target::store_registers, handle_exception)
11102 (windows_nat_target::resume, get_windows_debug_event)
11103 (windows_nat_target::get_tib_address)
11104 (windows_nat_target::thread_name)
11105 (windows_nat_target::thread_alive): Update.
11106
98a03287
TT
111072020-04-08 Tom Tromey <tromey@adacore.com>
11108
11109 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11110 (windows_continue): Use windows_continue::resume.
11111 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11112 resume>: Declare new methods.
11113 * nat/windows-nat.c: New file.
11114 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11115
7c7411bc
TT
111162020-04-08 Tom Tromey <tromey@adacore.com>
11117
11118 * windows-nat.c (windows_add_thread, windows_delete_thread)
11119 (windows_nat_target::fetch_registers)
11120 (windows_nat_target::store_registers, fake_create_process)
11121 (windows_nat_target::resume, windows_nat_target::resume)
11122 (get_windows_debug_event, windows_nat_target::wait)
11123 (windows_nat_target::pid_to_str)
11124 (windows_nat_target::get_tib_address)
11125 (windows_nat_target::get_ada_task_ptid)
11126 (windows_nat_target::thread_name)
11127 (windows_nat_target::thread_alive): Use lwp, not tid.
11128
2950fdf7
TT
111292020-04-08 Tom Tromey <tromey@adacore.com>
11130
11131 * windows-nat.c (handle_exception)
11132 (windows_nat_target::thread_name): Update.
11133 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11134 <name>: Now unique_xmalloc_ptr.
11135
62fe396b
TT
111362020-04-08 Tom Tromey <tromey@adacore.com>
11137
11138 * windows-nat.c (thread_rec)
11139 (windows_nat_target::fetch_registers): Update.
11140 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11141 Update comment.
11142 <debug_registers_changed, reload_context>: Now bool.
11143
e9534bd2
TT
111442020-04-08 Tom Tromey <tromey@adacore.com>
11145
11146 * windows-nat.c (windows_add_thread): Use new.
11147 (windows_init_thread_list, windows_delete_thread): Use delete.
11148 (get_windows_debug_event): Update.
11149 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11150 destructor, and initializers.
11151
ae1f8880
TT
111522020-04-08 Tom Tromey <tromey@adacore.com>
11153
11154 * windows-nat.c (struct windows_thread_info): Remove.
11155 * nat/windows-nat.h: New file.
11156
55a1e039
TT
111572020-04-08 Tom Tromey <tromey@adacore.com>
11158
11159 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11160 (thread_rec, windows_add_thread, windows_delete_thread)
11161 (windows_continue): Update.
11162
93366324
TT
111632020-04-08 Tom Tromey <tromey@adacore.com>
11164
11165 * windows-nat.c (struct windows_thread_info): Remove typedef.
11166 (thread_head): Remove.
11167 (thread_list): New global.
11168 (thread_rec, windows_add_thread, windows_init_thread_list)
11169 (windows_delete_thread, windows_continue): Update.
11170
0f2265e2
SM
111712020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11172
11173 * windows-tdep.h (windows_init_abi): Add comment.
11174 (cygwin_init_abi): New declaration.
11175 * windows-tdep.c: Split signal enumeration in two, one for
11176 Windows and one for Cygwin.
11177 (windows_gdb_signal_to_target): Only deal with signal of the
11178 Windows OS ABI.
11179 (cygwin_gdb_signal_to_target): New function.
11180 (windows_init_abi): Rename to windows_init_abi_common, don't set
11181 gdb_signal_to_target gdbarch method. Add new new function with
11182 this name.
11183 (cygwin_init_abi): New function.
11184 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11185 comment. Don't call windows_init_abi.
11186 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11187 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11188 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11189 i386_windows_init_abi_common, don't call windows_init_abi. Add
11190 a new function of this name.
11191 (i386_cygwin_init_abi): New function.
11192 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11193 OS ABI Cygwin.
11194
3810f182
SM
111952020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11196
11197 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11198 parameter.c.
11199 (dwarf2_read_gdb_index): Update.
11200
063f8e80
KR
112012020-04-07 Kamil Rytarowski <n54@gmx.com>
11202
11203 * nbsd-tdep.c: Include "objfiles.h".
11204 (nbsd_skip_solib_resolver): New.
11205 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11206
85a9510c 112072020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11208
11209 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11210 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11211 with DW_LLE_base_addressx are being emitted in DWARFv5.
11212 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11213 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11214 unsigned integer.
11215
9fc3eaae 112162020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11217
11218 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11219 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11220 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11221 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11222 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11223 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11224 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11225
11226
41144253 112272020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11228
11229 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11230 (read_loclist_index): New function definition.
11231 (lookup_loclist_base): New function definition.
11232 (read_loclist_header): New function definition.
11233 (dwarf2_cu): Add loclist_base and loclist_header field.
11234 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11235 (read_full_die_1): Read the value of DW_AT_loclists_base.
11236 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11237 (read_attribute_value): Handle DW_FORM_loclistx.
11238 (skip_one_die): Handle DW_FORM_loclistx.
11239 (loclist_header): New structure declaration.
11240 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11241
9f4e76a4
SM
112422020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11243
11244 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11245 constructor. Remove `addr` parameter from other constructor and
11246 add `per_cu` parameter.
11247 * dwarf2/read.c (create_partial_symtab): Update.
11248
25c11aca
TV
112492020-04-07 Tom de Vries <tdevries@suse.de>
11250
11251 PR symtab/25796
11252 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11253 (partial_die_info::fixup): Inherit has_const_value.
11254
5707e24b
TV
112552020-04-07 Tom de Vries <tdevries@suse.de>
11256
11257 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11258 symbols without address.
11259
05f00e22
KR
112602020-04-06 Kamil Rytarowski <n54@gmx.com>
11261
11262 * nbsd-nat.h (struct thread_info): Add forward declaration.
11263 (nbsd_nat_target::thread_alive): Add.
11264 (nbsd_nat_target::thread_name): Likewise.
11265 (nbsd_nat_target::update_thread_list): Likewise.
11266 (update_thread_list::post_attach): Likewise.
11267 (post_attach::pid_to_str): Likewise.
11268 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11269 (nbsd_thread_lister): Add.
11270 (nbsd_nat_target::thread_alive): Likewise.
11271 (nbsd_nat_target::thread_name): Likewise.
11272 (nbsd_add_threads): Likewise.
11273 (update_thread_list::post_attach): Likewise.
11274 (nbsd_nat_target::update_thread_list): Likewise.
11275 (post_attach::pid_to_str): Likewise.
11276
6ee448cc
TT
112772020-04-06 Tom Tromey <tromey@adacore.com>
11278
11279 * ada-valprint.c (print_variant_part): Extract the variant field.
11280 (print_field_values): Use the field as the outer value when
11281 recursing.
11282
dea34e8c
TT
112832020-04-06 Tom Tromey <tromey@adacore.com>
11284
11285 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11286 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11287 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11288 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11289 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11290
93689ce9
TT
112912020-04-06 Tom Tromey <tromey@adacore.com>
11292
11293 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11294 TYPE_CODE_ERROR.
11295
79743962
KR
112962020-04-06 Kamil Rytarowski <n54@gmx.com>
11297
11298 * nbsd-tdep.c: Include "gdbarch.h".
11299 Define enum with NetBSD signal numbers.
11300 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11301 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11302 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11303 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11304 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11305 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11306 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11307 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11308 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11309 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11310 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11311 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11312
9e7c9a03
HD
113132020-04-03 Hannes Domani <ssbssa@yahoo.de>
11314
11315 PR gdb/25325
11316 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11317
d9e49b61
TT
113182020-04-03 Tom Tromey <tromey@adacore.com>
11319
11320 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11321 Read constant block.
11322
e0fc5c3f
SM
113232020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11324
11325 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11326 (gdb_bfd_get_full_section_contents): New declaration.
11327 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11328 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11329 gdb_bfd_get_full_section_contents.
11330
e2ff18a0
SM
113312020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11332
11333 * exec.c (build_section_table): Replace internal_error with
11334 gdb_assert.
11335 (section_table_xfer_memory_partial): Likewise.
11336 * mdebugread.c (parse_partial_symbols): Likewise.
11337 * psymtab.c (lookup_partial_symbol): Likewise.
11338 * utils.c (wrap_here): Likewise.
11339
0830d301
TT
113402020-04-02 Tom Tromey <tromey@adacore.com>
11341
11342 * f-lang.c (build_fortran_types): Use arch_type to initialize
11343 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11344
e7da7f8f
TT
113452020-04-02 Tom Tromey <tromey@adacore.com>
11346
11347 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11348 of attributes.
11349
c90d28ac
AB
113502020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11351 Bernd Edlinger <bernd.edlinger@hotmail.de>
11352 Tom Tromey <tromey@adacore.com>
11353
11354 * buildsym.c (buildsym_compunit::record_line): Remove
11355 deduplication code.
11356
1aa98955
TV
113572020-04-02 Tom de Vries <tdevries@suse.de>
11358
11359 PR ada/24671
11360 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11361
d3214198
TV
113622020-04-02 Tom de Vries <tdevries@suse.de>
11363
11364 * dwarf2/read.c (dwarf2_gdb_index_functions,
11365 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11366 NULL.
11367 * psymtab.c (psym_lookup_global_symbol_language): New function.
11368 (psym_functions): Init psym_lookup_global_symbol_language with
11369 psym_lookup_global_symbol_language.
11370 * symfile-debug.c (debug_sym_quick_functions): Init
11371 lookup_global_symbol_language with NULL.
11372 * symfile.c (set_initial_language): Remove fixme comment.
11373 * symfile.h (struct quick_symbol_functions): Add
11374 lookup_global_symbol_language.
11375 * symtab.c (find_quick_global_symbol_language): New function.
11376 (find_main_name): Use find_quick_global_symbol_language.
11377
2836752f
SM
113782020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11379
11380 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11381
64dc2d4b
BE
113822020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11383
11384 * buildsym.c (record_line): Fix undefined behavior and preserve
11385 lines at eof.
11386
bbe3dc41
BE
113872020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11388
11389 * buildsym.c (record_line): Fix the resizing condition.
11390
6b4a335b
TT
113912020-04-01 Tom Tromey <tom@tromey.com>
11392
11393 * value.h (value_literal_complex): Add comment.
11394 * valops.c (value_literal_complex): Refer to value.h.
11395
3638a098
TT
113962020-04-01 Tom Tromey <tom@tromey.com>
11397
11398 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11399 (scalar_type): New rule, from typebase.
11400 (typebase): Use scalar_type. Recognize complex types.
11401 (field_name): Handle FLOAT_KEYWORD.
11402 (ident_tokens): Add _Complex and __complex__.
11403
c34e8714
TT
114042020-04-01 Tom Tromey <tom@tromey.com>
11405
11406 PR exp/25299:
11407 * valarith.c (promotion_type, complex_binop): New functions.
11408 (scalar_binop): Handle complex numbers. Use promotion_type.
11409 (value_pos, value_neg, value_complement): Handle complex numbers.
11410
fa649bb7
TT
114112020-04-01 Tom Tromey <tom@tromey.com>
11412
11413 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11414 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11415 (parse_number): Handle complex numbers.
11416
981c08ce
TT
114172020-04-01 Tom Tromey <tom@tromey.com>
11418
11419 * c-valprint.c (c_decorations): Change complex suffix to "i".
11420
4c99290d
TT
114212020-04-01 Tom Tromey <tom@tromey.com>
11422
11423 * valprint.c (generic_value_print_complex): Use accessors.
11424 * value.h (value_real_part, value_imaginary_part): Declare.
11425 * valops.c (value_real_part, value_imaginary_part): New
11426 functions.
11427 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11428
5b930b45
TT
114292020-04-01 Tom Tromey <tom@tromey.com>
11430
11431 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11432 (read_range_type): Update.
11433 * mdebugread.c (basic_type): Update.
11434 * go-lang.c (build_go_types): Use init_complex_type.
11435 * gdbtypes.h (struct main_type) <complex_type>: New member.
11436 (init_complex_type): Update.
11437 (arch_complex_type): Don't declare.
11438 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11439 Make name if none given. Use alloc_type_copy. Look for cached
11440 complex type.
11441 (arch_complex_type): Remove.
11442 (gdbtypes_post_init): Use init_complex_type.
11443 * f-lang.c (build_fortran_types): Use init_complex_type.
11444 * dwarf2/read.c (read_base_type): Update.
11445 * d-lang.c (build_d_types): Use init_complex_type.
11446 * ctfread.c (read_base_type): Update.
11447
53cccef1
TBA
114482020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11449
11450 * infrun.c (stop_all_threads): Update assertion, plus when
11451 stopping threads, take into account that we might be trying
11452 to stop an all-stop target.
11453 (stop_waiting): Call 'stop_all_threads' if there exists a
11454 non-stop target.
11455
a0714d30
TBA
114562020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11457
11458 * target.h (exists_non_stop_target): New function declaration.
11459 * target.c (exists_non_stop_target): New function.
11460
60e22c1e
HD
114612020-04-01 Hannes Domani <ssbssa@yahoo.de>
11462
11463 PR gdb/24789
11464 * eval.c (is_integral_or_integral_reference): New function.
11465 (evaluate_subexp_standard): Allow integer references in
11466 pointer arithmetic.
11467
e139a727
TBA
114682020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11469
11470 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11471 check for no ptid in the stop reply when the target is non-stop.
11472
e0802d59
TT
114732020-04-01 Tom Tromey <tromey@adacore.com>
11474
11475 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11476 "name" parameter to rvalue reference. Initialize m_name_holder.
11477 <lookup_name_info>: New overloads.
11478 <name>: Return gdb::string_view.
11479 <c_str>: New method.
11480 <make_ignore_params>: Update.
11481 <search_name_hash>: Update.
11482 <language_lookup_name>: Return const char *.
11483 <m_name>: Change type.
11484 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11485 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11486 (lookup_name_info::match_any): Update.
11487 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11488 Update.
11489 * minsyms.c (linkage_name_str): Update.
11490 * language.c (default_symbol_name_matcher): Update.
11491 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11492 Update.
11493 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11494 (ada_lookup_name_info::ada_lookup_name_info): Update.
11495 (literal_symbol_name_matcher): Update.
11496
8c072cb6
TT
114972020-04-01 Tom Tromey <tromey@adacore.com>
11498
11499 * psymtab.c (psymtab_search_name): Remove function.
11500 (psym_lookup_symbol): Create search name and lookup name here.
11501 (lookup_partial_symbol): Remove "name" parameter; add
11502 lookup_name.
11503 (psym_expand_symtabs_for_function): Update.
11504
6f29a534
TT
115052020-03-31 Joel Jones <joelkevinjones@gmail.com>
11506
11507 PR tui/25597:
11508 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11509
af62665e
TT
115102020-03-31 Tom Tromey <tromey@adacore.com>
11511
11512 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11513 memcpy.
11514
d1a89da5
NC
115152020-03-30 Nelson Chu <nelson.chu@sifive.com>
11516
11517 * features/riscv/32bit-csr.xml: Regenerated.
11518 * features/riscv/64bit-csr.xml: Regenerated.
11519
d8af9068
TT
115202020-03-30 Tom Tromey <tromey@adacore.com>
11521
11522 * ada-valprint.c (print_variant_part): Update.
11523 * ada-lang.h (ada_which_variant_applies): Update.
11524 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11525 outer_valaddr parameters; replace with "outer" value parameter.
11526 (to_fixed_variant_branch_type): Update.
11527
227c0bf4
PFC
115282020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11529
11530 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11531 <list>. Remove inclusion of observable.h.
11532 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11533 (struct arch_lwp_info): New struct.
11534 (class ppc_linux_dreg_interface): New class.
11535 (struct ppc_linux_process_info): New struct.
11536 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11537 <low_new_clone, low_forget_process, low_prepare_to_resume>
11538 <copy_thread_dreg_state, mark_thread_stale>
11539 <mark_debug_registers_changed, register_hw_breakpoint>
11540 <clear_hw_breakpoint, register_wp, clear_wp>
11541 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11542 <num_memory_accesses, get_trigger_type>
11543 <create_watchpoint_request, hwdebug_point_cmp>
11544 <init_arch_lwp_info, get_arch_lwp_info>
11545 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11546 methods.
11547 <struct ptid_hash>: New inner struct.
11548 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11549 members.
11550 (saved_dabr_value, hwdebug_info, max_slots_number)
11551 (struct hw_break_tuple, struct thread_points, ppc_threads)
11552 (have_ptrace_hwdebug_interface)
11553 (hwdebug_find_thread_points_by_tid)
11554 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11555 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11556 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11557 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11558 use m_dreg_interface.
11559 (hwdebug_point_cmp): Change to...
11560 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11561 reference arguments instead of pointers.
11562 (ppc_linux_nat_target::ranged_break_num_registers): Use
11563 m_dreg_interface.
11564 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11565 m_dreg_interface. Call register_hw_breakpoint.
11566 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11567 m_dreg_interface. Call clear_hw_breakpoint.
11568 (get_trigger_type): Change to...
11569 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11570 comment.
11571 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11572 use m_dreg_interface. Call register_hw_breakpoint.
11573 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11574 use m_dreg_interface. Call clear_hw_breakpoint.
11575 (can_use_watchpoint_cond_accel): Change to...
11576 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11577 method. Update comment, use m_dreg_interface and
11578 m_process_info.
11579 (calculate_dvc): Change to...
11580 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11581 m_dreg_interface.
11582 (num_memory_accesses): Change to...
11583 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11584 (check_condition): Change to...
11585 (ppc_linux_nat_target::check_condition): ...this method.
11586 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11587 comment, use m_dreg_interface.
11588 (create_watchpoint_request): Change to...
11589 (ppc_linux_nat_target::create_watchpoint_request): ...this
11590 method. Use m_dreg_interface.
11591 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11592 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11593 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11594 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11595 (ppc_linux_nat_target::low_forget_process)
11596 (ppc_linux_nat_target::low_new_fork)
11597 (ppc_linux_nat_target::low_new_clone)
11598 (ppc_linux_nat_target::low_delete_thread)
11599 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11600 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11601 only call mark_thread_stale.
11602 (ppc_linux_thread_exit): Remove.
11603 (ppc_linux_nat_target::stopped_data_address): Change to...
11604 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11605 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11606 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11607 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11608 comment. Call low_stopped_data_address.
11609 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11610 m_dreg_interface.
11611 (ppc_linux_nat_target::masked_watch_num_registers): Use
11612 m_dreg_interface.
11613 (ppc_linux_nat_target::copy_thread_dreg_state)
11614 (ppc_linux_nat_target::mark_thread_stale)
11615 (ppc_linux_nat_target::mark_debug_registers_changed)
11616 (ppc_linux_nat_target::register_hw_breakpoint)
11617 (ppc_linux_nat_target::clear_hw_breakpoint)
11618 (ppc_linux_nat_target::register_wp)
11619 (ppc_linux_nat_target::clear_wp)
11620 (ppc_linux_nat_target::init_arch_lwp_info)
11621 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11622 (_initialize_ppc_linux_nat): Remove observer callback.
11623
4db10d8f
PFC
116242020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11625
11626 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11627 (ppc_linux_nat_target::auxv_parse)
11628 (ppc_linux_nat_target::read_description)
11629 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11630 Move up.
11631
1310c1b0
PFC
116322020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11633
11634 * linux-nat.h (low_new_clone): New method.
11635 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11636
69b037c3
SM
116372020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11638
11639 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11640 (dbx_expand_psymtab): ... this.
11641 (start_psymtab): Update.
11642 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11643 (mdebug_expand_psymtab): ... this.
11644 (parse_partial_symbols): Update.
11645 (new_psymtab): Update.
11646 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11647 (xcoff_expand_psymtab): ... this.
11648 (xcoff_start_psymtab): Update.
11649
48993951
SM
116502020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11651
11652 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11653 <expand_dependencies>: ... this.
11654 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11655 (partial_symtab::expand_dependencies): ... this.
11656 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11657 Update.
11658 (dwarf2_psymtab::expand_psymtab): Update.
11659 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11660 * mdebugread.c (psymtab_to_symtab_1): Update.
11661 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11662
3ad83046
SM
116632020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11664
11665 * psympriv.h (discard_psymtab): Remove.
11666 * dbxread.c (dbx_end_psymtab): Update.
11667 * xcoffread.c (xcoff_end_psymtab): Update.
11668
4d1b9ab6
TT
116692020-03-28 Tom Tromey <tom@tromey.com>
11670
11671 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11672 comment.
11673
f1749218
TT
116742020-03-28 Tom Tromey <tom@tromey.com>
11675
11676 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11677
ebea7626
HD
116782020-03-27 Hannes Domani <ssbssa@yahoo.de>
11679
11680 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11681
a879b4d5
JB
116822020-03-26 John Baldwin <jhb@FreeBSD.org>
11683
11684 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11685
0826b30a
TT
116862020-03-26 Tom Tromey <tom@tromey.com>
11687
11688 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11689 (mark_common_block_symbol_computed, read_tag_string_type)
11690 (attr_to_dynamic_prop, read_subrange_type): Update.
11691 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11692 to be methods on struct attribute.
11693 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11694 (read_call_site_scope, partial_die_info::read)
11695 (partial_die_info::read, lookup_die_type, follow_die_ref):
11696 Update.
11697 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11698 from dwarf2_get_ref_die_offset.
11699 (attribute::constant_value): New method, from
11700 dwarf2_get_attr_constant_value.
11701 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11702 Declare method.
11703 <constant_value>: New method.
11704
2b2558bf
TT
117052020-03-26 Tom Tromey <tom@tromey.com>
11706
11707 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11708 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11709 (dwarf_type_encoding_name): Move to stringify.c.
11710 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11711 * dwarf2/stringify.c: New file.
11712 * dwarf2/stringify.h: New file.
11713
eeb64781
TT
117142020-03-26 Tom Tromey <tom@tromey.com>
11715
11716 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11717 Rewrite.
11718
a39fdb41
TT
117192020-03-26 Tom Tromey <tom@tromey.com>
11720
11721 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11722 methods.
11723 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11724 (lookup_ranges_base): Likewise.
11725 (read_cutu_die_from_dwo, read_full_die_1): Update.
11726
436c571c
TT
117272020-03-26 Tom Tromey <tom@tromey.com>
11728
11729 * dwarf2/read.c (read_import_statement, read_file_scope)
11730 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11731 (read_lexical_block_scope, read_call_site_scope)
11732 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11733 (handle_struct_member_die, process_structure_scope)
11734 (update_enumeration_type_from_children)
11735 (process_enumeration_scope, read_array_type, read_common_block)
11736 (read_namespace, read_module, read_subroutine_type): Update.
11737 (sibling_die): Remove.
11738
052c8bb8
TT
117392020-03-26 Tom Tromey <tom@tromey.com>
11740
11741 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11742 (build_type_psymtabs_reader, read_structure_type)
11743 (read_enumeration_type, read_full_die_1): Update.
11744 (dwarf2_attr_no_follow): Move to die.h.
11745 * dwarf2/die.h (struct die_info) <attr>: New method.
11746
2b24b6e4
TT
117472020-03-26 Tom Tromey <tom@tromey.com>
11748
11749 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11750 <base_address>: Now an optional.
11751 (dwarf2_find_base_address, dwarf2_rnglists_process)
11752 (dwarf2_ranges_process, fill_in_loclist_baton)
11753 (dwarf2_symbol_mark_computed): Update.
11754
c2d50fd0
TT
117552020-03-26 Tom Tromey <tom@tromey.com>
11756
11757 * dwarf2/read.c (struct die_info): Move to die.h.
11758 * dwarf2/die.h: New file.
11759
0df7ad3a
TT
117602020-03-26 Tom Tromey <tom@tromey.com>
11761
11762 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11763 * dwarf2/read.c
11764 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11765 Move to line-header.c.
11766 (read_checked_initial_length_and_offset, read_formatted_entries):
11767 Likewise.
11768 (dwarf_decode_line_header): Split into two.
11769 * dwarf2/line-header.c
11770 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11771 Move from read.c.
11772 (read_checked_initial_length_and_offset, read_formatted_entries):
11773 Likewise.
11774 (dwarf_decode_line_header): New function, split from read.c.
11775
86c0bb4c
TT
117762020-03-26 Tom Tromey <tom@tromey.com>
11777
11778 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11779 Declare method.
11780 * dwarf2/read.c (read_attribute_value): Update.
11781 (dwarf2_per_objfile::read_line_string): Rename from
11782 read_indirect_line_string.
11783 (read_formatted_entries): Update.
11784
2ef46c2f
TT
117852020-03-26 Tom Tromey <tom@tromey.com>
11786
11787 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11788 variable.
11789
4f9c1eda
TT
117902020-03-26 Tom Tromey <tom@tromey.com>
11791
11792 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11793 const.
11794 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11795 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11796 parameter const.
11797
5a0e026f
TT
117982020-03-26 Tom Tromey <tom@tromey.com>
11799
11800 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11801 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11802 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11803 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11804
8844c11b
TT
118052020-03-26 Tom Tromey <tom@tromey.com>
11806
11807 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11808 file_names_size, file_full_name, file_file_name>: Use const.
11809 <file_name_at, file_names>: Add const overload.
11810 * dwarf2/line-header.c (line_header::file_file_name)
11811 (line_header::file_full_name): Update.
11812
c90ec28a
TT
118132020-03-26 Tom Tromey <tom@tromey.com>
11814
11815 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11816 (macro_start_file, consume_improper_spaces)
11817 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11818 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11819 (dwarf_decode_macros): Move to macro.c.
11820 * dwarf2/macro.c: New file.
11821 * dwarf2/macro.h: New file.
11822 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11823
4f44ae6c
TT
118242020-03-26 Tom Tromey <tom@tromey.com>
11825
11826 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11827 method.
11828 * dwarf2/section.c: New method. From
11829 read_indirect_string_at_offset_from.
11830 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11831 (read_indirect_string_at_offset_from): Move to section.c.
11832 (read_indirect_string_at_offset): Rewrite.
11833 (read_indirect_line_string_at_offset): Remove.
11834 (read_indirect_string, read_indirect_line_string)
11835 (dwarf_decode_macro_bytes): Update.
11836
a0194fa8
TT
118372020-03-26 Tom Tromey <tom@tromey.com>
11838
11839 * dwarf2/section.h (struct dwarf2_section_info)
11840 <overload_complaint>: Declare.
11841 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11842 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11843 Rename from dwarf2_section_buffer_overflow_complaint.
11844 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11845 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11846
3d27bbdb
TT
118472020-03-26 Tom Tromey <tom@tromey.com>
11848
11849 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11850 Declare.
11851 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11852 Move from read.c.
11853 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11854 to section.c.
11855
9eac9650
TT
118562020-03-26 Tom Tromey <tom@tromey.com>
11857
11858 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11859
bf80d710
TT
118602020-03-26 Tom Tromey <tom@tromey.com>
11861
11862 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11863 "builder".
11864 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11865 parameter.
11866 (dwarf_decode_macros): Update.
11867
0314b390
TT
118682020-03-26 Tom Tromey <tom@tromey.com>
11869
11870 * dwarf2/read.c (read_attribute_value): Update.
11871 (read_indirect_string_from_dwz): Move to dwz.c; change into
11872 method.
11873 (dwarf_decode_macro_bytes): Update.
11874 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11875 * dwarf2/dwz.c: New file.
11876 * Makefile.in (COMMON_SFILES): Add dwz.c.
11877
9fda78b6
TT
118782020-03-26 Tom Tromey <tom@tromey.com>
11879
11880 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11881 * dwarf2/read.c: Add include.
11882 * dwarf2/index-write.c: Add include.
11883 * dwarf2/index-cache.c: Add include.
11884 * dwarf2/dwz.h: New file.
11885
33aa3c10
TT
118862020-03-25 Tom Tromey <tom@tromey.com>
11887
11888 * compile/compile-object-load.c (get_out_value_type): Mention
11889 correct symbol name in error message.
11890
d503b685
HD
118912020-03-25 Hannes Domani <ssbssa@yahoo.de>
11892
11893 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11894
7b1eff95
TV
118952020-03-25 Tom de Vries <tdevries@suse.de>
11896
11897 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11898 * symmisc.c (dump_symtab_1): Print user and includes fields.
11899 (maintenance_info_symtabs): Same.
11900
dd895392
AB
119012020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11902
11903 PR gdb/25534
11904 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11905 (riscv_regcache_cooked_write): New function.
11906 (riscv_push_dummy_call): Use new function.
11907 (riscv_return_value): Likewise.
11908
5ab2fbf1
SM
119092020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11910
11911 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11912 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11913 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11914 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11915 * infrun.c (follow_fork): Likewise.
11916 (follow_fork_inferior): Likewise.
11917 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11918 * linux-nat.h (class linux_nat_target): Likewise.
11919 * remote.c (class remote_target) <follow_fork>: Likewise.
11920 (remote_target::follow_fork): Likewise.
11921 * target-delegates.c: Re-generate.
11922 * target.c (default_follow_fork): Likewise.
11923 (target_follow_fork): Likewise.
11924 * target.h (struct target_ops) <follow_fork>: Likewise.
11925 (target_follow_fork): Likewise.
11926
a64fafb5
TV
119272020-03-24 Tom de Vries <tdevries@suse.de>
11928
11929 * psymtab.c (maintenance_info_psymtabs): Print user field.
11930
fe26d3a3
TT
119312020-03-20 Tom Tromey <tromey@adacore.com>
11932
11933 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11934 const.
11935 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11936 const.
11937
c884cc46
SM
119382020-03-20 Simon Marchi <simon.marchi@efficios.com>
11939
11940 * ptrace.m4: Don't check for ptrace declaration.
11941 * config.in: Re-generate.
11942 * configure: Re-generate.
11943 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11944 not defined.
11945
1ff700c2
KR
119462020-03-20 Kamil Rytarowski <n54@gmx.com>
11947
11948 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11949 `PTRACE_TYPE_RET'.
11950 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11951 * sparc-nat.c (gdb_ptrace): Likewise.
11952 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11953
f7d4f0b1
TT
119542020-03-20 Tom Tromey <tromey@adacore.com>
11955
11956 * c-exp.y (lex_one_token): Fix assert.
11957
f67210ff
TT
119582020-03-20 Tom Tromey <tromey@adacore.com>
11959
11960 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11961 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11962 strncpy call.
11963
1773be9e
TT
119642020-03-20 Tom Tromey <tromey@adacore.com>
11965
11966 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11967
70304be9
TT
119682020-03-20 Tom Tromey <tromey@adacore.com>
11969
11970 * ada-valprint.c (print_variant_part): Remove parameters; switch
11971 to value-based API.
11972 (print_field_values): Likewise.
11973 (ada_val_print_struct_union): Likewise.
11974 (ada_value_print_1): Update.
11975
9faa006d
KR
119762020-03-20 Kamil Rytarowski <n54@gmx.com>
11977
11978 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11979 nbsd_nat_target instead of inf_ptrace_target.
11980 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11981 nbsd_nat_target.
11982
4a90f062
KR
119832020-03-20 Kamil Rytarowski <n54@gmx.com>
11984
11985 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11986 it to the ptrace call.
11987 * (store_registers): Likewise.
11988
119892020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11990
11991 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11992 it to the ptrace call.
11993 * (store_registers): Likewise.
11994
2d07da27
LM
119952020-03-19 Luis Machado <luis.machado@linaro.org>
11996
11997 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11998 valid, fetch vg value from ptrace.
11999
f09db380
KR
120002020-03-19 Kamil Rytarowski <n54@gmx.com>
12001 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12002 * inf-ptrace.c: Likewise.
12003 * (gdb_ptrace): Add.
12004 * (inf_ptrace_target::resume): Update.
12005 * (inf_ptrace_target::xfer_partial): Likewise.
12006 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12007 * (inf_ptrace_peek_poke): Update.
12008
fcc7376e
KR
120092020-03-19 Kamil Rytarowski <n54@gmx.com>
12010
12011 * x86-bsd-nat.c (gdb_ptrace): New.
12012 * (x86bsd_dr_set): Add new argument `ptid'.
12013 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12014 x86bsd_dr_set_addr): Update.
12015
cada5fc9
AB
120162020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12017
12018 * remote.c (remote_target::process_stop_reply): Handle events for
12019 all threads differently.
12020
19a2740f
AB
120212020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12022
12023 * completer.c (completion_tracker::remove_completion): Define new
12024 function.
12025 * completer.h (completion_tracker::remove_completion): Declare new
12026 function.
12027 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12028 when adding a C++ function symbol.
12029
724fd9ba
AB
120302020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12031
12032 * completer.c (completion_tracker::completion_hash_entry): Define
12033 new class.
12034 (advance_to_filename_complete_word_point): Call
12035 recompute_lowest_common_denominator.
12036 (completion_tracker::completion_tracker): Call discard_completions
12037 to setup the hash table.
12038 (completion_tracker::discard_completions): Allow for being called
12039 from the constructor, pass new equal function, and element deleter
12040 when constructing the hash table. Initialise new class member
12041 variables.
12042 (completion_tracker::maybe_add_completion): Remove use of
12043 m_entries_vec, and store more information into m_entries_hash.
12044 (completion_tracker::recompute_lcd_visitor): New function, most
12045 content taken from...
12046 (completion_tracker::recompute_lowest_common_denominator):
12047 ...here, this now just visits each item in the hash calling the
12048 above visitor.
12049 (completion_tracker::build_completion_result): Remove use of
12050 m_entries_vec, call recompute_lowest_common_denominator.
12051 * completer.h (completion_tracker::have_completions): Remove use
12052 of m_entries_vec.
12053 (completion_tracker::completion_hash_entry): Declare new class.
12054 (completion_tracker::recompute_lowest_common_denominator): Change
12055 function signature.
12056 (completion_tracker::recompute_lcd_visitor): Declare new function.
12057 (completion_tracker::m_entries_vec): Delete.
12058 (completion_tracker::m_entries_hash): Initialize to NULL.
12059 (completion_tracker::m_lowest_common_denominator_valid): New
12060 member variable.
12061 (completion_tracker::m_lowest_common_denominator_max_length): New
12062 member variable.
12063
5a82b8a1
KR
120642020-03-17 Kamil Rytarowski <n54@gmx.com>
12065
12066 * regformats/regdef.h: Put reg in gdb namespace.
12067
fb516a69
KR
120682020-03-17 Kamil Rytarowski <n54@gmx.com>
12069
12070 * i386-bsd-nat.c (gdb_ptrace): New.
12071 * (i386bsd_fetch_inferior_registers,
12072 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12073 * (i386bsd_fetch_inferior_registers,
12074 i386bsd_store_inferior_registers) Use gdb_ptrace.
12075
1c0aa1fb
KR
120762020-03-17 Kamil Rytarowski <n54@gmx.com>
12077
12078 * amd64-bsd-nat.c (gdb_ptrace): New.
12079 * (amd64bsd_fetch_inferior_registers,
12080 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12081 * (amd64bsd_fetch_inferior_registers,
12082 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12083
5ccd2fb7
KR
120842020-03-17 Kamil Rytarowski <n54@gmx.com>
12085
12086 * user-regs.c (user_reg::read): Rename to...
12087 (user_reg::xread): ...this.
12088 * (append_user_reg): Rename argument `read' to `xread'.
12089 * (user_reg_add_builtin): Likewise.
12090 * (user_reg_add): Likewise.
12091 * (value_of_user_reg): Likewise.
12092
2108a63a
KR
120932020-03-17 Kamil Rytarowski <n54@gmx.com>
12094
12095 * sparc-nat.c (gdb_ptrace): New.
12096 * sparc-nat.c (sparc_fetch_inferior_registers)
12097 (sparc_store_inferior_registers) Remove obsolete comment.
12098 * sparc-nat.c (sparc_fetch_inferior_registers)
12099 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12100 * sparc-nat.c (sparc_fetch_inferior_registers)
12101 (sparc_store_inferior_registers) Use gdb_ptrace.
12102
a225c9a8
KR
121032020-03-17 Kamil Rytarowski <n54@gmx.com>
12104
12105 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12106 it to the ptrace call.
12107 * sh-nbsd-nat.c (store_registers): Likewise.
12108
98097623
KR
121092020-03-17 Kamil Rytarowski <n54@gmx.com>
12110
12111 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12112 nbsd_nat_target instead of inf_ptrace_target.
12113 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12114 nbsd_nat_target.
12115
9e38d619
KR
121162020-03-17 Kamil Rytarowski <n54@gmx.com>
12117
12118 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12119
a2ecbe9f
KR
121202020-03-17 Kamil Rytarowski <n54@gmx.com>
12121
12122 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12123 <sys/sysctl.h>.
12124 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12125
58990295
TV
121262020-03-17 Tom de Vries <tdevries@suse.de>
12127
12128 PR gdb/23710
12129 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12130 fields.
12131 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12132 fields.
12133 (process_imported_unit_die): Skip import of c++ CUs.
12134
771dd3a8
TT
121352020-03-16 Tom Tromey <tom@tromey.com>
12136
12137 * p-valprint.c (pascal_object_print_value): Initialize
12138 base_value.
12139
817a7585
AK
121402020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12141 Shahab Vahedi <shahab@synopsys.com>
12142
12143 * Makefile.in: Add arch/arc.o
12144 * configure.tgt: Likewise.
12145 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12146 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12147 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12148 * arc-tdep.h (arc_read_description): Add proto type.
12149 * arch/arc.c: New file.
12150 * arch/arc.h: Likewise.
12151 * features/Makefile: Replace old target descriptions with new.
12152 * features/arc-arcompact.c: Remove.
12153 * features/arc-arcompact.xml: Likewise.
12154 * features/arc-v2.c: Likewise
12155 * features/arc-v2.xml: Likewise
12156 * features/arc/aux-arcompact.xml: New file.
12157 * features/arc/aux-v2.xml: Likewise.
12158 * features/arc/core-arcompact.xml: Likewise.
12159 * features/arc/core-v2.xml: Likewise.
12160 * features/arc/aux-arcompact.c: Generate.
12161 * features/arc/aux-v2.c: Likewise.
12162 * features/arc/core-arcompact.c: Likewise.
12163 * features/arc/core-v2.c: Likewise.
12164 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12165
67430cd0
TT
121662020-03-16 Tom Tromey <tromey@adacore.com>
12167
12168 PR gdb/25663:
12169 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12170 putting value into bcache.
12171
30efb6c7
SM
121722020-03-16 Simon Marchi <simon.marchi@efficios.com>
12173
12174 PR gdb/21500
12175 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12176 to...
12177 (amd64_windows_init_abi_common): ... this. Don't set size of
12178 long type.
12179 (amd64_windows_init_abi): New function.
12180 (amd64_cygwin_init_abi): New function.
12181 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12182 the Cygwin OS ABI.
12183 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12184 comment.
12185
8db52437
SM
121862020-03-16 Simon Marchi <simon.marchi@efficios.com>
12187
12188 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12189 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12190 (pe_import_directory_entry): New struct type.
12191 (is_linked_with_cygwin_dll): New function.
12192 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12193 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12194 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12195
5982a56a
SM
121962020-03-16 Simon Marchi <simon.marchi@efficios.com>
12197
12198 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12199 i386_cygwin_core_osabi_sniffer.
12200
7a1998df
SM
122012020-03-16 Simon Marchi <simon.marchi@efficios.com>
12202
12203 * i386-cygwin-tdep.c: Rename to...
12204 * i386-windows-tdep.c: ... this.
12205 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12206 i386-windows-tdep.c.
12207 * configure.tgt: Likewise.
12208
053205cc
SM
122092020-03-16 Simon Marchi <simon.marchi@efficios.com>
12210
12211 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12212 * osabi.c (gdb_osabi_names): Add "Windows".
12213 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12214 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12215 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12216 i386_cygwin_osabi_sniffer.
12217 (_initialize_i386_cygwin_tdep): Register OS ABI
12218 GDB_OSABI_WINDOWS for i386.
12219 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12220 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12221 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12222 for x86-64.
12223 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12224 when the target matches '*-*-mingw*'.
12225
fe4b2ee6
SM
122262020-03-16 Simon Marchi <simon.marchi@efficios.com>
12227
12228 * defs.h (enum gdb_osabi): Move to...
12229 * osabi.h (enum gdb_osabi): ... here.
12230 * gdbarch.sh: Include osabi.h in gdbarch.h.
12231 * gdbarch.h: Re-generate.
12232
cb9b645d
SM
122332020-03-16 Simon Marchi <simon.marchi@efficios.com>
12234
12235 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12236 function.
12237 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12238
3293bbaf
TT
122392020-03-14 Tom Tromey <tom@tromey.com>
12240
12241 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12242 for C++.
12243 (c_type_print_modifier): Likewise. Add "language" parameter.
12244 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12245 (c_type_print_base_1): Update.
12246 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12247 constants.
12248 * type-stack.c (type_stack::insert): Handle tp_atomic and
12249 tp_restrict.
12250 (type_stack::follow_type_instance_flags): Likewise.
12251 (type_stack::follow_types): Likewise. Merge type-following code.
12252 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12253 (space_identifier, cv_with_space_id)
12254 (const_or_volatile_or_space_identifier_noopt)
12255 (const_or_volatile_or_space_identifier): Remove.
12256 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12257 rules.
12258 (ptr_operator, typebase): Update.
12259 (enum token_flag) <FLAG_C>: New constant.
12260 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12261 "_Atomic".
12262 (lex_one_token): Handle FLAG_C.
12263
154151a6
KR
122642020-03-14 Kamil Rytarowski <n54@gmx.com>
12265
12266 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12267 it to the ptrace call.
12268 * m68k-bsd-nat.c (store_registers): Likewise.
12269
bc107784
KR
122702020-03-14 Kamil Rytarowski <n54@gmx.com>
12271
12272 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12273 gdb_byte *.
12274 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12275 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12276 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12277
01a80117
KR
122782020-03-14 Kamil Rytarowski <n54@gmx.com>
12279
12280 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12281 nbsd_nat_target instead of inf_ptrace_target.
12282 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12283 nbsd_nat_target.
12284
f90280ca
KR
122852020-03-14 Kamil Rytarowski <n54@gmx.com>
12286
12287 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12288 register_t.
12289
6def66f1
KR
122902020-03-14 Kamil Rytarowski <n54@gmx.com>
12291
12292 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12293 it to the ptrace call.
12294 * alpha-bsd-nat.c (store_registers): Likewise.
12295
66eaca97
KR
122962020-03-14 Kamil Rytarowski <n54@gmx.com>
12297
12298 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12299 includes.
12300 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12301 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12302 fill_fpregset): Likewise.
12303
4fed520b
KR
123042020-03-14 Kamil Rytarowski <n54@gmx.com>
12305
12306 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12307 nbsd_nat_target instead of inf_ptrace_target.
12308 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12309 nbsd_nat_target.
12310
2190cf06
KR
123112020-03-14 Kamil Rytarowski <n54@gmx.com>
12312
12313 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12314 register_t.
12315
75c56d3d
KR
123162020-03-14 Kamil Rytarowski <n54@gmx.com>
12317
12318 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12319 it to the ptrace call.
12320 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12321 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12322 * arm-nbsd-nat.c (store_register): Likewise.
12323 * arm-nbsd-nat.c (store_regs): Likewise.
12324 * arm-nbsd-nat.c (store_fp_register): Likewise.
12325 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12326
6018d381
KR
123272020-03-14 Kamil Rytarowski <n54@gmx.com>
12328
12329 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12330 nbsd_nat_target instead of inf_ptrace_target.
12331 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12332 nbsd_nat_target.
12333
013f99f0
KR
123342020-03-14 Kamil Rytarowski <n54@gmx.com>
12335
12336 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12337 it to the ptrace call.
12338 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12339
12753073
KR
123402020-03-14 Kamil Rytarowski <n54@gmx.com>
12341
6227b330
KR
12342 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12343 it to the ptrace call.
12344 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12345
123462020-03-14 Kamil Rytarowski <n54@gmx.com>
12347
12348 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12349 gdb_byte *.
12753073
KR
12350 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12351
d5be5fa4
KR
123522020-03-14 Kamil Rytarowski <n54@gmx.com>
12353
12354 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12355 instead of inf_ptrace_target.
12356 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12357 nbsd_nat_target.
12358
8110f842
KR
123592020-03-14 Kamil Rytarowski <n54@gmx.com>
12360
12361 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12362 register_t.
12363
52feded7
KR
123642020-03-14 Kamil Rytarowski <n54@gmx.com>
12365
12366 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12367 register_t.
12368
25567eee
KR
123692020-03-14 Kamil Rytarowski <n54@gmx.com>
12370
12371 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12372 register_t.
12373
426a9c18
TT
123742020-03-13 Tom Tromey <tom@tromey.com>
12375
12376 * value.h (val_print): Don't declare.
12377 * valprint.h (val_print_array_elements)
12378 (val_print_scalar_formatted, generic_val_print): Don't declare.
12379 * valprint.c (generic_val_print_array): Take a struct value.
12380 (generic_val_print_ptr, generic_val_print_memberptr)
12381 (generic_val_print_bool, generic_val_print_int)
12382 (generic_val_print_char, generic_val_print_complex)
12383 (generic_val_print): Remove.
12384 (generic_value_print): Update.
12385 (do_val_print): Remove unused parameters. Don't call
12386 la_val_print.
12387 (val_print): Remove.
12388 (common_val_print): Update. Don't call value_check_printable.
12389 (val_print_scalar_formatted, val_print_array_elements): Remove.
12390 * rust-lang.c (rust_val_print): Remove.
12391 (rust_language_defn): Update.
12392 * p-valprint.c (pascal_val_print): Remove.
12393 (pascal_value_print_inner): Update.
12394 (pascal_object_print_val_fields, pascal_object_print_val):
12395 Remove.
12396 (pascal_object_print_static_field): Update.
12397 * p-lang.h (pascal_val_print): Don't declare.
12398 * p-lang.c (pascal_language_defn): Update.
12399 * opencl-lang.c (opencl_language_defn): Update.
12400 * objc-lang.c (objc_language_defn): Update.
12401 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12402 * m2-lang.h (m2_val_print): Don't declare.
12403 * m2-lang.c (m2_language_defn): Update.
12404 * language.h (struct language_defn) <la_val_print>: Remove.
12405 * language.c (unk_lang_value_print_inner): Rename. Change
12406 argument types.
12407 (unknown_language_defn, auto_language_defn): Update.
12408 * go-valprint.c (go_val_print): Remove.
12409 * go-lang.h (go_val_print): Don't declare.
12410 * go-lang.c (go_language_defn): Update.
12411 * f-valprint.c (f_val_print): Remove.
12412 * f-lang.h (f_value_print): Don't declare.
12413 * f-lang.c (f_language_defn): Update.
12414 * d-valprint.c (d_val_print): Remove.
12415 * d-lang.h (d_value_print): Don't declare.
12416 * d-lang.c (d_language_defn): Update.
12417 * cp-valprint.c (cp_print_value_fields)
12418 (cp_print_value_fields_rtti, cp_print_value): Remove.
12419 (cp_print_static_field): Update.
12420 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12421 (c_val_print_struct, c_val_print_union, c_val_print_int)
12422 (c_val_print_memberptr, c_val_print): Remove.
12423 * c-lang.h (c_val_print_array, cp_print_value_fields)
12424 (cp_print_value_fields_rtti): Don't declare.
12425 * c-lang.c (c_language_defn, cplus_language_defn)
12426 (asm_language_defn, minimal_language_defn): Update.
12427 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12428 (ada_val_print_enum): Take a struct value.
12429 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12430 (ada_val_print): Remove.
12431 (ada_value_print_1): Update.
12432 (printable_val_type): Remove.
12433 * ada-lang.h (ada_val_print): Don't declare.
12434 * ada-lang.c (ada_language_defn): Update.
12435
42331a1e
TT
124362020-03-13 Tom Tromey <tom@tromey.com>
12437
12438 * valprint.c (do_val_print): Update.
12439 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12440 a struct value.
12441 (value_to_value_object_no_release): Declare.
12442 * python/py-value.c (value_to_value_object_no_release): New
12443 function.
12444 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12445 struct value.
12446 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12447 function.
12448 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12449 a struct value.
12450 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12451 Declare.
12452 (gdbscm_apply_val_pretty_printer): Take a struct value.
12453 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12454 value.
12455 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12456 value.
12457 * extension-priv.h (struct extension_language_ops)
12458 <apply_val_pretty_printer>: Take a struct value.
12459 * cp-valprint.c (cp_print_value): Create a struct value.
12460 (cp_print_value): Update.
12461
3a916a97
TT
124622020-03-13 Tom Tromey <tom@tromey.com>
12463
12464 * ada-valprint.c (print_field_values): Call common_val_print.
12465
b59eac37
TT
124662020-03-13 Tom Tromey <tom@tromey.com>
12467
12468 * ada-valprint.c (val_print_packed_array_elements): Remove
12469 bitoffset and val parameters. Call common_val_print.
12470 (ada_val_print_string): Remove offset, address, and original_value
12471 parameters.
12472 (ada_val_print_array): Update.
12473 (ada_value_print_array): New function.
12474 (ada_value_print_1): Call it.
12475
03371129
TT
124762020-03-13 Tom Tromey <tom@tromey.com>
12477
12478 * ada-valprint.c (ada_value_print): Use common_val_print.
12479
2e088f8b
TT
124802020-03-13 Tom Tromey <tom@tromey.com>
12481
12482 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12483
39ef85a8
TT
124842020-03-13 Tom Tromey <tom@tromey.com>
12485
12486 * ada-valprint.c (ada_value_print_num): New function.
12487 (ada_value_print_1): Use it.
12488
b9fa6e07
TT
124892020-03-13 Tom Tromey <tom@tromey.com>
12490
12491 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12492
416595d6
TT
124932020-03-13 Tom Tromey <tom@tromey.com>
12494
12495 * ada-valprint.c (ada_value_print_ptr): New function.
12496 (ada_value_print_1): Use it.
12497
5b5e15ec
TT
124982020-03-13 Tom Tromey <tom@tromey.com>
12499
12500 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12501 call common_val_print.
12502 (ada_val_print_1): Update.
12503 (ada_value_print_1): New function.
12504 (ada_value_print_inner): Rewrite.
12505
fbf54e75
TT
125062020-03-13 Tom Tromey <tom@tromey.com>
12507
12508 * cp-valprint.c (cp_print_value_fields): Update.
12509 (cp_print_value): New function.
12510
64b653ca
TT
125112020-03-13 Tom Tromey <tom@tromey.com>
12512
12513 * m2-valprint.c (m2_value_print_inner): Use
12514 cp_print_value_fields.
12515 * cp-valprint.c (cp_print_value_fields): New function.
12516 * c-valprint.c (c_value_print_struct): New function.
12517 (c_value_print_inner): Use c_value_print_struct.
12518 * c-lang.h (cp_print_value_fields): Declare.
12519
6999f067
TT
125202020-03-13 Tom Tromey <tom@tromey.com>
12521
12522 * c-valprint.c (c_value_print_array): New function.
12523 (c_value_print_inner): Use it.
12524
ce80b8bd
TT
125252020-03-13 Tom Tromey <tom@tromey.com>
12526
12527 * c-valprint.c (c_value_print_memberptr): New function.
12528 (c_value_print_inner): Use it.
12529
2faac269
TT
125302020-03-13 Tom Tromey <tom@tromey.com>
12531
12532 * c-valprint.c (c_value_print_int): New function.
12533 (c_value_print_inner): Use it.
12534
da3e2c29
TT
125352020-03-13 Tom Tromey <tom@tromey.com>
12536
12537 * c-valprint.c (c_value_print_ptr): New function.
12538 (c_value_print_inner): Use it.
12539
50836231
TT
125402020-03-13 Tom Tromey <tom@tromey.com>
12541
12542 * c-valprint.c (c_value_print_inner): Rewrite.
12543
4f412b6e
TT
125442020-03-13 Tom Tromey <tom@tromey.com>
12545
12546 * valprint.c (generic_value_print_complex): New function.
12547 (generic_value_print): Use it.
12548
f5354008
TT
125492020-03-13 Tom Tromey <tom@tromey.com>
12550
12551 * valprint.c (generic_val_print_float): Don't call
12552 val_print_scalar_formatted.
12553 (generic_val_print, generic_value_print): Update.
12554
3eec3b05
TT
125552020-03-13 Tom Tromey <tom@tromey.com>
12556
12557 * valprint.c (generic_value_print_char): New function
12558 (generic_value_print): Use it.
12559
fdddfccb
TT
125602020-03-13 Tom Tromey <tom@tromey.com>
12561
12562 * valprint.c (generic_value_print_int): New function.
12563 (generic_value_print): Use it.
12564
6dde7521
TT
125652020-03-13 Tom Tromey <tom@tromey.com>
12566
12567 * valprint.c (generic_value_print_bool): New function.
12568 (generic_value_print): Use it.
12569
4112d2e6
TT
125702020-03-13 Tom Tromey <tom@tromey.com>
12571
12572 * valprint.c (generic_val_print_func): Simplify.
12573 (generic_val_print, generic_value_print): Update.
12574
65786af6
TT
125752020-03-13 Tom Tromey <tom@tromey.com>
12576
12577 * valprint.c (generic_val_print_flags): Remove.
12578 (generic_val_print, generic_value_print): Update.
12579 (val_print_type_code_flags): Add original_value parameter.
12580
40f3ce18
TT
125812020-03-13 Tom Tromey <tom@tromey.com>
12582
12583 * valprint.c (generic_val_print): Update.
12584 (generic_value_print): Update.
12585 * valprint.c (generic_val_print_enum): Don't call
12586 val_print_scalar_formatted.
12587
2a5b130b
TT
125882020-03-13 Tom Tromey <tom@tromey.com>
12589
12590 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12591 * valprint.c (generic_value_print_ptr): New function.
12592
abc66ce9
TT
125932020-03-13 Tom Tromey <tom@tromey.com>
12594
12595 * valprint.c (generic_value_print): Rewrite.
12596
07a32858
TT
125972020-03-13 Tom Tromey <tom@tromey.com>
12598
12599 * p-valprint.c (pascal_object_print_value_fields)
12600 (pascal_object_print_value): New functions.
12601
64d64d3a
TT
126022020-03-13 Tom Tromey <tom@tromey.com>
12603
12604 * p-valprint.c (pascal_value_print_inner): Rewrite.
12605
6a95a1f5
TT
126062020-03-13 Tom Tromey <tom@tromey.com>
12607
12608 * f-valprint.c (f_value_print_innner): Rewrite.
12609
59fcdac6
TT
126102020-03-13 Tom Tromey <tom@tromey.com>
12611
12612 * m2-valprint.c (m2_print_unbounded_array): New overload.
12613 (m2_print_unbounded_array): Update.
12614 (m2_print_array_contents): Take a struct value.
12615 (m2_value_print_inner): Rewrite.
12616
d133c3e1
TT
126172020-03-13 Tom Tromey <tom@tromey.com>
12618
12619 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12620 (d_value_print_inner): New function.
12621 * d-lang.h (d_value_print_inner): Declare.
12622 * d-lang.c (d_language_defn): Use d_value_print_inner.
12623
23b0f06b
TT
126242020-03-13 Tom Tromey <tom@tromey.com>
12625
12626 * go-valprint.c (go_value_print_inner): New function.
12627 * go-lang.h (go_value_print_inner): Declare.
12628 * go-lang.c (go_language_defn): Use go_value_print_inner.
12629
5f56f7cb
TT
126302020-03-13 Tom Tromey <tom@tromey.com>
12631
12632 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12633 API.
12634 (rust_val_print): Rewrite.
12635 (rust_value_print_inner): New function, from rust_val_print.
12636 (rust_language_defn): Use rust_value_print_inner.
12637
26792ee0
TT
126382020-03-13 Tom Tromey <tom@tromey.com>
12639
12640 * ada-valprint.c (ada_value_print_inner): New function.
12641 * ada-lang.h (ada_value_print_inner): Declare.
12642 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12643
24051bbe
TT
126442020-03-13 Tom Tromey <tom@tromey.com>
12645
12646 * f-valprint.c (f_value_print_innner): New function.
12647 * f-lang.h (f_value_print_innner): Declare.
12648 * f-lang.c (f_language_defn): Use f_value_print_innner.
12649
c0941be6
TT
126502020-03-13 Tom Tromey <tom@tromey.com>
12651
12652 * p-valprint.c (pascal_value_print_inner): New function.
12653 * p-lang.h (pascal_value_print_inner): Declare.
12654 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12655
62c4663d
TT
126562020-03-13 Tom Tromey <tom@tromey.com>
12657
12658 * m2-valprint.c (m2_value_print_inner): New function.
12659 * m2-lang.h (m2_value_print_inner): Declare.
12660 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12661
62182190
TT
126622020-03-13 Tom Tromey <tom@tromey.com>
12663
12664 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12665 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12666 * c-valprint.c (c_value_print_inner): New function.
12667 * c-lang.h (c_value_print_inner): Declare.
12668 * c-lang.c (c_language_defn, cplus_language_defn)
12669 (asm_language_defn, minimal_language_defn): Use
12670 c_value_print_inner.
12671
1e592a8a
TT
126722020-03-13 Tom Tromey <tom@tromey.com>
12673
12674 * p-valprint.c (pascal_object_print_value_fields): Now static.
12675 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12676
7fe471e9
TT
126772020-03-13 Tom Tromey <tom@tromey.com>
12678
12679 * c-valprint.c (c_val_print_array): Simplify.
12680
d121c6ce
TT
126812020-03-13 Tom Tromey <tom@tromey.com>
12682
12683 * valprint.c (value_print_array_elements): New function.
12684 * valprint.h (value_print_array_elements): Declare.
12685
4dba70ee
TT
126862020-03-13 Tom Tromey <tom@tromey.com>
12687
12688 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12689 * mips-tdep.c (mips_print_register): Use
12690 value_print_scalar_formatted.
12691
4f9ae810
TT
126922020-03-13 Tom Tromey <tom@tromey.com>
12693
12694 * valprint.h (value_print_scalar_formatted): Declare.
12695 * valprint.c (value_print_scalar_formatted): New function.
12696
156bfec9
TT
126972020-03-13 Tom Tromey <tom@tromey.com>
12698
12699 * valprint.h (generic_value_print): Declare.
12700 * valprint.c (generic_value_print): New function.
12701
2b4e573d
TT
127022020-03-13 Tom Tromey <tom@tromey.com>
12703
12704 * valprint.c (do_val_print): Call la_value_print_inner, if
12705 available.
12706 * rust-lang.c (rust_language_defn): Update.
12707 * p-lang.c (pascal_language_defn): Update.
12708 * opencl-lang.c (opencl_language_defn): Update.
12709 * objc-lang.c (objc_language_defn): Update.
12710 * m2-lang.c (m2_language_defn): Update.
12711 * language.h (struct language_defn) <la_value_print_inner>: New
12712 member.
12713 * language.c (unknown_language_defn, auto_language_defn): Update.
12714 * go-lang.c (go_language_defn): Update.
12715 * f-lang.c (f_language_defn): Update.
12716 * d-lang.c (d_language_defn): Update.
12717 * c-lang.c (c_language_defn, cplus_language_defn)
12718 (asm_language_defn, minimal_language_defn): Update.
12719 * ada-lang.c (ada_language_defn): Update.
12720
a1f6a07c
TT
127212020-03-13 Tom Tromey <tom@tromey.com>
12722
12723 * c-valprint.c (c_value_print): Use common_val_print.
12724
410cf315
TT
127252020-03-13 Tom Tromey <tom@tromey.com>
12726
12727 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12728
72a45c93
TT
127292020-03-13 Tom Tromey <tom@tromey.com>
12730
12731 * f-valprint.c (f77_print_array_1, f_val_print): Use
12732 common_val_print.
12733
040f66bd
TT
127342020-03-13 Tom Tromey <tom@tromey.com>
12735
12736 * riscv-tdep.c (riscv_print_one_register_info): Use
12737 common_val_print.
12738
a6e05a6c
TT
127392020-03-13 Tom Tromey <tom@tromey.com>
12740
12741 * mi/mi-main.c (output_register): Use common_val_print.
12742
3444c526
TT
127432020-03-13 Tom Tromey <tom@tromey.com>
12744
12745 * infcmd.c (default_print_one_register_info): Use
12746 common_val_print.
12747
c2a44efe
TT
127482020-03-13 Tom Tromey <tom@tromey.com>
12749
12750 * valprint.h (common_val_print_checked): Declare.
12751 * valprint.c (common_val_print_checked): New function.
12752 * stack.c (print_frame_arg): Use common_val_print_checked.
12753
b0c26e99
TT
127542020-03-13 Tom Tromey <tom@tromey.com>
12755
12756 * valprint.c (do_val_print): New function, from val_print.
12757 (val_print): Use do_val_print.
12758 (common_val_print): Use do_val_print.
12759
ce3acbe9
TT
127602020-03-13 Tom Tromey <tom@tromey.com>
12761
12762 * valprint.c (value_print): Use scoped_value_mark.
12763
96c7f873
TV
127642020-03-13 Tom de Vries <tdevries@suse.de>
12765
12766 PR symtab/25646
12767 * psymtab.c (partial_symtab::partial_symtab): Don't set
12768 globals_offset and statics_offset. Push element onto
12769 current_global_psymbols and current_static_psymbols stacks.
12770 (concat): New function.
12771 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12772 element from current_global_psymbols and current_static_psymbols
12773 stacks. Concat popped elements to global_psymbols and
12774 static_symbols.
12775 (add_psymbol_to_list): Use current_global_psymbols and
12776 current_static_psymbols stacks.
12777 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12778 current_static_psymbols fields.
12779
6ba0a321
CB
127802020-03-12 Christian Biesinger <cbiesinger@google.com>
12781
12782 * corelow.c (sniff_core_bfd): Remove.
12783 (class core_target) <m_core_vec>: Remove.
12784 (core_target::core_target): Update.
12785 (core_file_fns): Remove.
12786 (deprecated_add_core_fns): Remove.
12787 (default_core_sniffer): Remove.
12788 (sniff_core_bfd): Remove.
12789 (default_check_format): Remove.
12790 (gdb_check_format): Remove.
12791 (core_target_open): Update.
12792 (core_target::get_core_register_section): Update.
12793 (get_core_registers_cb): Update.
12794 (core_target::fetch_registers): Update.
12795 * gdbcore.h (struct core_fns): Remove.
12796 (deprecated_add_core_fns): Remove.
12797 (default_core_sniffer): Remove.
12798 (default_check_format): Remove.
12799
227031b2
TT
128002020-03-12 Tom Tromey <tom@tromey.com>
12801
12802 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12803 CORE_ADDR.
12804 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12805
53807e9f
TT
128062020-03-12 Tom Tromey <tom@tromey.com>
12807
12808 * remote.c (remote_target::download_tracepoint)
12809 (remote_target::enable_tracepoint)
12810 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12811 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12812 sprintf_vma.
12813
64f25102
TT
128142020-03-12 Tom Tromey <tom@tromey.com>
12815
12816 * symfile-mem.c: Update CORE_ADDR size assert.
12817
272cd5a3
SM
128182020-03-12 Simon Marchi <simon.marchi@efficios.com>
12819
12820 * selftest.m4: Move to gdbsupport/.
12821 * acinclude.m4: Update path to selftest.m4.
12822
74cd3f9d
SM
128232020-03-12 Simon Marchi <simon.marchi@efficios.com>
12824
12825 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12826 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12827 gdbarch-selfselftests.c and selftest-arch.c.
12828 (SUBDIR_UNITTESTS_OBS): Rename to...
12829 (SELFTESTS_OBS): ... this.
12830 (COMMON_SFILES): Remove disasm-selftests.c and
12831 gdbarch-selftests.c.
12832 * configure.ac: Don't add selftest-arch.{c,o} to
12833 CONFIG_{SRCS,OBS}.
12834 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12835 preprocessor conditions.
12836
db6878ac
SM
128372020-03-12 Simon Marchi <simon.marchi@efficios.com>
12838
12839 * configure.ac: Don't source bfd/development.sh.
12840 * selftest.m4: Modify comment.
12841 * configure: Re-generate.
12842
4d696a5c
SM
128432020-03-12 Simon Marchi <simon.marchi@efficios.com>
12844
12845 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12846 not "true" or "false".
12847 * configure: Re-generate.
12848
8dd8e1c7
CB
128492020-03-12 Christian Biesinger <cbiesinger@google.com>
12850
12851 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12852 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12853 renamed to arm_nbsd_supply_gregset.
12854 (fetch_register): Update to call arm_nbsd_supply_gregset.
12855 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12856 (arm_netbsd_nat_target::fetch_registers): Update.
12857 (fetch_elfcore_registers): Removed.
12858 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12859 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12860 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12861 not require NetBSD system headers.
12862 (arm_nbsd_regset): New struct.
12863 (arm_nbsd_iterate_over_regset_sections): New function.
12864 (arm_netbsd_init_abi_common): Updated to call
12865 set_gdbarch_iterate_over_regset_sections.
12866 * arm-nbsd-tdep.h: New file.
12867
dd69bf7a
KB
128682020-03-11 Kevin Buettner <kevinb@redhat.com>
12869
12870 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12871 recursion.
12872
a0761e34
SM
128732020-03-11 Simon Marchi <simon.marchi@efficios.com>
12874
12875 * configure: Re-generate.
12876
e7a82140
TT
128772020-03-11 Tom Tromey <tromey@adacore.com>
12878
12879 * ada-typeprint.c (print_choices): Fix comment.
12880
dcc050c8
AB
128812020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12882
12883 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12884 previous item in the list, when the list has no items.
12885
1c33af77
TV
128862020-03-11 Tom de Vries <tdevries@suse.de>
12887
12888 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12889 PROP_LOCLIST handling code.
12890
8c95582d
AB
128912020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12892
12893 * buildsym-legacy.c (record_line): Pass extra parameter to
12894 record_line.
12895 * buildsym.c (buildsym_compunit::record_line): Take an extra
12896 parameter, reduce duplication in the line table, and record the
12897 is_stmt flag in the line table.
12898 * buildsym.h (buildsym_compunit::record_line): Add extra
12899 parameter.
12900 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12901 non-statement lines.
12902 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12903 this to the symtab builder.
12904 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12905 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12906 through to dwarf_record_line_1.
12907 * infrun.c (process_event_stop_test): When stepping, don't stop at
12908 a non-statement instruction, and only refresh the step info when
12909 we land in the middle of a line's range. Also add an extra
12910 comment.
12911 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12912 field.
12913 * record-btrace.c (btrace_find_line_range): Only record lines
12914 marked as is-statement.
12915 * stack.c (frame_show_address): Show the frame address if we are
12916 in a non-statement sal.
12917 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12918 (maintenance_print_one_line_table): Print a header for the is_stmt
12919 column, and include is_stmt information in the output.
12920 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12921 preference to non-statements.
12922 (find_pcs_for_symtab_line): Prefer is-statement entries.
12923 (find_line_common): Likewise.
12924 * symtab.h (struct linetable_entry): Add is_stmt field.
12925 (struct symtab_and_line): Likewise.
12926 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12927 arranging the line table.
12928
e4003a34
TV
129292020-03-07 Tom de Vries <tdevries@suse.de>
12930
12931 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12932 DIE.
12933
e8932576
TT
129342020-03-07 Tom Tromey <tom@tromey.com>
12935
12936 * valops.c (value_literal_complex): Remove obsolete comment.
12937 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12938 comment.
12939
29734269
SM
129402020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12941
12942 * infrun.h: Forward-declare thread_info.
12943 (set_step_info): Add thread_info parameter, add doc.
12944 * infrun.c (set_step_info): Add thread_info parameter, move doc
12945 to header.
12946 * infrun.c (process_event_stop_test): Pass thread to
12947 set_step_info call.
12948 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12949 set_step_info.
12950 (prepare_one_step): Add thread_info parameter, pass it to
12951 set_step_frame and prepare_one_step (recursive) call.
12952 (step_1): Pass thread to prepare_one_step call.
12953 (step_command_fsm::should_stop): Pass thread to
12954 prepare_one_step.
12955 (until_next_fsm): Pass thread to set_step_frame call.
12956 (finish_command): Pass thread to set_step_info call.
12957
b7d64b29
HD
129582020-03-06 Hannes Domani <ssbssa@yahoo.de>
12959
12960 * windows-tdep.c (windows_solib_create_inferior_hook):
12961 Check if inferior is running.
12962
09f2921c
TV
129632020-03-06 Tom de Vries <tdevries@suse.de>
12964
12965 * NEWS: Fix "the the".
12966 * ctfread.c: Same.
12967
fd760e79
TV
129682020-03-06 Tom de Vries <tdevries@suse.de>
12969
12970 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12971
20ea4a60
AB
129722020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12973
12974 * .dir-locals.el: Add a comment referencing the other copies of
12975 this file.
12976
0afbabf0
JB
129772020-03-05 John Baldwin <jhb@FreeBSD.org>
12978
12979 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12980 psargs.
12981
842806cb
TBA
129822020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12983
12984 * .gitattributes: New file.
12985
be1e3d3e
TT
129862020-03-04 Tom Tromey <tom@tromey.com>
12987
12988 * symmisc.c (print_symbol_bcache_statistics)
12989 (print_objfile_statistics): Update.
12990 * symfile.c (allocate_symtab): Use intern.
12991 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12992 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12993 macro_cache>: Remove.
12994 <string_cache>: New member.
12995 (struct objfile) <intern>: New methods.
12996 * elfread.c (elf_symtab_read): Use intern.
12997 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12998 (dwarf2_compute_name, dwarf2_physname)
12999 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13000 names.
13001 (guess_partial_die_structure_name): Update.
13002 (partial_die_info::fixup): Intern name.
13003 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13004 name.
13005 (dwarf2_name): Intern name. Update.
13006 * buildsym.c (buildsym_compunit::get_macro_table): Use
13007 string_cache.
13008
4e7625fd
TT
130092020-03-04 Tom Tromey <tom@tromey.com>
13010
13011 * jit.c (bfd_open_from_target_memory): Make "target" const.
13012 * corefile.c (gnutarget): Now const.
13013 * gdbcore.h (gnutarget): Now const.
13014
46f9f931
HD
130152020-03-04 Hannes Domani <ssbssa@yahoo.de>
13016
13017 * NEWS: Mention support for WOW64 processes.
13018 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13019 (amd64_windows_segment_register_p): Remove static.
13020 (_initialize_amd64_windows_nat): Update.
13021 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13022 * i386-windows-nat.c (context_offset): Update.
13023 (i386_mappings): Rename and remove static.
13024 (i386_windows_segment_register_p): Remove static.
13025 (_initialize_i386_windows_nat): Update.
13026 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13027 (STATUS_WX86_SINGLE_STEP): New macro.
13028 (EnumProcessModulesEx): New macro.
13029 (Wow64SuspendThread): New macro.
13030 (Wow64GetThreadContext): New macro.
13031 (Wow64SetThreadContext): New macro.
13032 (Wow64GetThreadSelectorEntry): New macro.
13033 (windows_set_context_register_offsets): Add static.
13034 (windows_set_segment_register_p): Likewise.
13035 (windows_add_thread): Adapt for WOW64 processes.
13036 (windows_fetch_one_register): Likewise.
13037 (windows_nat_target::fetch_registers): Likewise.
13038 (windows_store_one_register): Likewise.
13039 (display_selector): Likewise.
13040 (display_selectors): Likewise.
13041 (handle_exception): Likewise.
13042 (windows_continue): Likewise.
13043 (windows_nat_target::resume): Likewise.
13044 (windows_add_all_dlls): Likewise.
13045 (do_initial_windows_stuff): Likewise.
13046 (windows_nat_target::attach): Likewise.
13047 (windows_get_exec_module_filename): Likewise.
13048 (windows_nat_target::create_inferior): Likewise.
13049 (windows_xfer_siginfo): Likewise.
13050 (_initialize_loadable): Initialize Wow64SuspendThread,
13051 Wow64GetThreadContext, Wow64SetThreadContext,
13052 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13053 * windows-nat.h (windows_set_context_register_offsets):
13054 Remove declaration.
13055 (windows_set_segment_register_p): Likewise.
13056 (i386_windows_segment_register_p): Add declaration.
13057 (amd64_windows_segment_register_p): Likewise.
13058
440cf44e
LM
130592020-03-04 Luis Machado <luis.machado@linaro.org>
13060
13061 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13062 in "info registers" for AArch64/ARM.
13063
13064 The change caused "info registers" to not print GPR's.
13065
13066 gdb/ChangeLog:
13067
13068 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13069
13070 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13071 when reg->group is empty and reggroup is not.
13072
1009d92f
TT
130732020-03-03 Tom Tromey <tromey@adacore.com>
13074
13075 * dwarf2/frame.c (struct dwarf2_frame_cache)
13076 <checked_tailcall_bottom, entry_cfa_sp_offset,
13077 entry_cfa_sp_offset_p>: Remove members.
13078 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13079 (dwarf2_frame_prev_register): Don't call
13080 dwarf2_tailcall_sniffer_first.
13081 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13082 * frame-unwind.c (add_unwinder): New fuction.
13083 (frame_unwind_init): Use it. Add tailcall unwinder.
13084
5e5d66b6
AB
130852020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13086 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13087
13088 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13089 value should be printed as true.
13090
584cf46d
HD
130912020-03-03 Hannes Domani <ssbssa@yahoo.de>
13092
13093 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13094 (windows_init_abi): Set and use windows_so_ops.
13095
7b973adc
SDJ
130962020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13097
13098 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13099 when verifying if dealing with a convenience variable.
13100
bb7b70ab
LM
131012020-03-03 Luis Machado <luis.machado@linaro.org>
13102
13103 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13104
9822cb57
SM
131052020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13106
13107 * infrun.c (gdbarch_supports_displaced_stepping): New.
13108 (use_displaced_stepping): Break up conditions in smaller pieces.
13109 Use gdbarch_supports_displaced_stepping.
13110 (displaced_step_prepare_throw): Use
13111 gdbarch_supports_displaced_stepping.
13112
63e163f2
AB
131132020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13114
13115 * NEWS: Mention new behaviour of the history filename.
13116 * top.c (write_history_p): Add comment.
13117 (show_write_history_p): Add header comment, give a different
13118 message when history writing is on, but the history filename is
13119 empty.
13120 (history_filename): Add comment.
13121 (history_filename_empty): New function.
13122 (show_history_filename): Add header comment, give a different
13123 message when the filename is empty.
13124 (init_history): Compare history_filename against nullptr, and only
13125 read history if the filename is not empty.
13126 (set_history_filename): Add header comment, and only make
13127 non-empty filenames absolute.
13128 (init_main): Make the filename argument to 'set history filename'
13129 optional.
13130
81b86b97
CB
131312020-03-02 Christian Biesinger <cbiesinger@google.com>
13132
13133 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13134 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13135 (fetch_fp_register): Update.
13136 (fetch_fp_regs): Update.
13137 (store_fp_register): Update.
13138 (store_fp_regs): Update.
13139 (arm_netbsd_nat_target::read_description): New function.
13140 (fetch_elfcore_registers): Update.
13141
24ed6739
AB
131422020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13143
13144 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13145 general_thread if the stop reply is missing a thread-id.
13146 (remote_target::process_stop_reply): Use the first non-exited
13147 thread if the target didn't pass a thread-id.
13148 * infrun.c (do_target_wait): Move call to
13149 switch_to_inferior_no_thread to ....
13150 (do_target_wait_1): ... here.
13151
a84bb2a0
JT
131522020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13153
13154 * debuginfod-support.c: Include defs.h first.
13155
658dadf0
TV
131562020-02-28 Tom de Vries <tdevries@suse.de>
13157
13158 * symfile.c (set_initial_language): Use default language for lookup.
13159
4ebe4877
SM
131602020-02-28 Simon Marchi <simon.marchi@efficios.com>
13161
13162 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13163 reader variable, pass `this` to read_cutu_die_from_dwo.
13164
e5da1139
AM
131652020-02-27 Aaron Merey <amerey@redhat.com>
13166
13167 * source.c (open_source_file): Check for nullptr when computing
13168 srcpath.
13169
317f7127
TT
131702020-02-27 Tom Tromey <tromey@adacore.com>
13171
13172 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13173 member.
13174 (dwarf2_add_field): Don't update nfields.
13175 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13176
3104d9ee
AB
131772020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13178
13179 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13180 abs.
13181
b83470bf
TT
131822020-02-26 Tom Tromey <tom@tromey.com>
13183
13184 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13185 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13186 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13187 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13188 per_cu_data.
13189
edfe0a0c
TT
131902020-02-26 Tom Tromey <tom@tromey.com>
13191
13192 * dwarf2/index-write.c (psym_index_map): Change type.
13193 (add_address_entry_worker, write_one_signatured_type)
13194 (recursively_count_psymbols, recursively_write_psymbols)
13195 (class debug_names, psyms_seen_size, write_gdbindex)
13196 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13197
0d79cdc4
AM
131982020-02-26 Aaron Merey <amerey@redhat.com>
13199
13200 * Makefile.in: Handle optional debuginfod support.
13201 * NEWS: Update.
13202 * README: Add --with-debuginfod summary.
13203 * config.in: Regenerate.
13204 * configure: Regenerate.
13205 * configure.ac: Handle optional debuginfod support.
13206 * debuginfod-support.c: debuginfod helper functions.
13207 * debuginfod-support.h: Ditto.
13208 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13209 summary.
13210 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13211 when a dwz file cannot be found.
13212 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13213 debuginfo file cannot be found.
13214 * source.c (open_source_file): Query debuginfod servers when a
13215 source file cannot be found.
13216 * top.c (print_gdb_configuration): Include
13217 --{with,without}-debuginfod in the output.
13218
b65ce565
JG
132192020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13220
13221 * thread.c (thr_try_catch_cmd): Print thread name.
13222
d4c9a4f8
SM
132232020-02-26 Simon Marchi <simon.marchi@efficios.com>
13224
13225 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13226 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13227 dwarf2_fetch_die_type_sect_off): Move to...
13228 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13229 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13230 dwarf2_fetch_die_type_sect_off): ... here.
13231 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13232 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13233 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13234
0dce4280
TV
132352020-02-26 Tom de Vries <tdevries@suse.de>
13236
13237 PR gdb/25603
13238 * symfile.c (set_initial_language): Exit-early if
13239 language_mode == language_mode_manual.
13240
450a1bfc
SM
132412020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13242
13243 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13244 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13245 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13246
9e80cfa1
AB
132472020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13248
13249 * gdbtypes.c (create_array_type_with_stride): Handle negative
13250 array strides.
13251 * valarith.c (value_subscripted_rvalue): Likewise.
13252
09624f1f
LM
132532020-02-25 Luis Machado <luis.machado@linaro.org>
13254
13255 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13256
8cb5117c
SM
132572020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13258
13259 * loc.h (dwarf2_get_die_type): Move to...
13260 * read.h (dwarf2_get_die_type): ... here.
13261 * read.c (dwarf2_get_die_type): Move doc to header.
13262
c325c44e
JB
132632020-02-25 Joel Brobecker <brobecker@adacore.com>
13264
13265 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13266 'gnulib/Makefile.in' to the list.
13267
4ac93832
TT
132682020-02-24 Tom Tromey <tom@tromey.com>
13269
13270 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13271 Remove.
13272 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13273 XOBNEWVEC.
13274
197400e8
TT
132752020-02-24 Tom Tromey <tom@tromey.com>
13276
13277 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13278 New method.
13279 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13280 (dw2_do_instantiate_symtab, dw2_get_file_names)
13281 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13282
76935768
TT
132832020-02-24 Tom Tromey <tom@tromey.com>
13284
13285 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13286 make_scoped_restore.
13287 (dwarf2_psymtab::read_symtab): Don't clear
13288 reading_partial_symbols.
13289
a88ef40d
TV
132902020-02-24 Tom de Vries <tdevries@suse.de>
13291
13292 PR gdb/25592
13293 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13294
c9af6521
TV
132952020-02-24 Tom de Vries <tdevries@suse.de>
13296
13297 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13298 commands layout next/prev/regs.
13299
5707a07a
TT
133002020-02-22 Tom Tromey <tom@tromey.com>
13301
13302 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13303 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13304
3b0fb49e
TT
133052020-02-22 Tom Tromey <tom@tromey.com>
13306
13307 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13308
283be8bf
TT
133092020-02-22 Tom Tromey <tom@tromey.com>
13310
13311 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13312 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13313 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13314 * tui/tui.c (_initialize_tui): Add usage text.
13315
ca793b96
TT
133162020-02-22 Tom Tromey <tom@tromey.com>
13317
13318 * tui/tui-win.c (tui_set_focus_command)
13319 (tui_set_win_height_command): Use error_no_arg.
13320 (_initialize_tui_win): Update help text.
13321 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13322
432b5c40
TT
133232020-02-22 Tom Tromey <tom@tromey.com>
13324
13325 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13326 * tui/tui-disasm.h (struct tui_disasm_window)
13327 <display_start_addr>: Declare.
13328 * tui/tui-source.h (struct tui_source_window)
13329 <display_start_addr>: Declare.
13330 * tui/tui-winsource.h (struct tui_source_window_base)
13331 <show_source_line, display_start_addr>: New methods.
13332 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13333 Rename and move to protected section.
13334 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13335 (tui_source_window_base::do_erase_source_content): Update.
13336 (tui_source_window_base::show_source_line): Now a method.
13337 (tui_source_window_base::show_source_content)
13338 (tui_source_window_base::tui_source_window_base)
13339 (tui_source_window_base::rerender)
13340 (tui_source_window_base::refill)
13341 (tui_source_window_base::do_scroll_horizontal)
13342 (tui_source_window_base::set_is_exec_point_at)
13343 (tui_source_window_base::update_breakpoint_info)
13344 (tui_source_window_base::update_exec_info): Update.
13345 * tui/tui-source.c (tui_source_window::set_contents)
13346 (tui_source_window::showing_source_p)
13347 (tui_source_window::do_scroll_vertical)
13348 (tui_source_window::location_matches_p)
13349 (tui_source_window::line_is_displayed): Update.
13350 (tui_source_window::display_start_addr): New method.
13351 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13352 (tui_disasm_window::do_scroll_vertical)
13353 (tui_disasm_window::location_matches_p): Update.
13354 (tui_disasm_window::display_start_addr): New method.
13355
01b1af32
TT
133562020-02-22 Tom Tromey <tom@tromey.com>
13357
13358 * NEWS: Add entry for gdb.register_window_type.
13359 * tui/tui-layout.h (window_factory): New typedef.
13360 (tui_register_window): Declare.
13361 * tui/tui-layout.c (saved_tui_windows): New global.
13362 (tui_apply_current_layout): Use it.
13363 (tui_register_window): New function.
13364 * python/python.c (do_start_initialization): Call
13365 gdbpy_initialize_tui.
13366 (python_GdbMethods): Add "register_window_type" function.
13367 * python/python-internal.h (gdbpy_register_tui_window)
13368 (gdbpy_initialize_tui): Declare.
13369 * python/py-tui.c: New file.
13370 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13371
fc96d20b
TT
133722020-02-22 Tom Tromey <tom@tromey.com>
13373
13374 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13375
935c78c0
TT
133762020-02-22 Tom Tromey <tom@tromey.com>
13377
13378 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13379 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13380 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13381 (tui_set_win_focus_to): Move from tui-win.c.
13382
0240c8f1
TT
133832020-02-22 Tom Tromey <tom@tromey.com>
13384
13385 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13386 functions.
13387 (known_window_types): New global.
13388 (tui_get_window_by_name): Reimplement.
13389 (initialize_known_windows): New function.
13390 (validate_window_name): Rewrite.
13391 (_initialize_tui_layout): Call initialize_known_windows.
13392
fdb01f0c
TT
133932020-02-22 Tom Tromey <tom@tromey.com>
13394
13395 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13396 Remove constants.
13397 * tui/tui-winsource.h (struct tui_source_window_base)
13398 <tui_source_window_base>: Remove parameter.
13399 * tui/tui-winsource.c
13400 (tui_source_window_base::tui_source_window_base): Remove
13401 parameter.
13402 (tui_source_window_base::refill): Update.
13403 * tui/tui-stack.h (struct tui_locator_window)
13404 <tui_locator_window>: Update.
13405 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13406 Default the constructor.
13407 * tui/tui-regs.h (struct tui_data_item_window)
13408 <tui_data_item_window>: Default the constructor.
13409 (struct tui_data_window) <tui_data_window>: Likewise.
13410 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13411 Default the constructor.
13412 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13413 Default the constructor.
13414 <type>: Remove.
13415 (struct tui_win_info) <tui_win_info>: Default the constructor.
13416 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13417 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13418 Default the constructor.
13419
865a5aec
TT
134202020-02-22 Tom Tromey <tom@tromey.com>
13421
13422 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13423 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13424 * tui/tui-win.c (tui_resize_all): Don't call
13425 tui_delete_invisible_windows.
13426 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13427 done.
13428 (tui_set_layout): Update.
13429 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13430 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13431 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13432
e098d18c
TT
134332020-02-22 Tom Tromey <tom@tromey.com>
13434
13435 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13436 correctly.
13437
eb9c8874
TT
134382020-02-22 Tom Tromey <tom@tromey.com>
13439
13440 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13441
7eed1a8e
TT
134422020-02-22 Tom Tromey <tom@tromey.com>
13443
13444 * tui/tui-winsource.h (struct tui_source_window_iterator)
13445 <inner_iterator>: New etytypedef.
13446 <tui_source_window_iterator>: Take "end" parameter.
13447 <tui_source_window_iterator>: Take iterator.
13448 <operator*, advance>: Update.
13449 <m_iter>: Change type.
13450 <m_end>: New field.
13451 (struct tui_source_windows) <begin, end>: Update.
13452 * tui/tui-layout.c (tui_windows): New global.
13453 (tui_apply_current_layout): Clear tui_windows.
13454 (tui_layout_window::apply): Update tui_windows.
13455 * tui/tui-data.h (tui_windows): Declare.
13456 (all_tui_windows): Now inline function.
13457 (class tui_window_iterator, struct all_tui_windows): Remove.
13458
7c043ba6
TT
134592020-02-22 Tom Tromey <tom@tromey.com>
13460
13461 PR tui/17850:
13462 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13463 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13464 "height" argument.
13465 (class tui_layout_window) <get_sizes>: Likewise.
13466 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13467 argument.
13468 <get_sizes>: Add "height" argument.
13469 <m_vertical>: New field.
13470 * tui/tui-layout.c (tui_layout_split::clone): Update.
13471 (tui_layout_split::get_sizes): Add "height" argument.
13472 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13473 (tui_new_layout_command): Parse "-horizontal".
13474 (_initialize_tui_layout): Update help string.
13475 (tui_layout_split::specification): Add "-horizontal" when needed.
13476 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13477 argument.
13478 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13479 New methods.
13480
6bc56648
TT
134812020-02-22 Tom Tromey <tom@tromey.com>
13482
13483 * tui/tui-layout.h (enum tui_adjust_result): New.
13484 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13485 (class tui_layout_window) <adjust_size>: Return
13486 tui_adjust_result. Rewrite.
13487 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13488 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13489
c22fef7e
TT
134902020-02-22 Tom Tromey <tom@tromey.com>
13491
13492 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13493 parameter and return types.
13494 (class tui_layout_base) <specification>: Add "depth".
13495 (class tui_layout_window) <specification>: Add "depth".
13496 (class tui_layout_split) <specification>: Add "depth".
13497 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13498 and return types.
13499 (tui_new_layout_command): Parse sub-layouts.
13500 (_initialize_tui_layout): Update help string.
13501 (tui_layout_window::specification): Add "depth".
13502 (add_layout_command): Update.
13503
ee325b61
TT
135042020-02-22 Tom Tromey <tom@tromey.com>
13505
13506 * NEWS: Add "tui new-layout" item.
13507 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13508 Add new-layout command to help text.
13509 (validate_window_name): New function.
13510 (tui_new_layout_command): New function.
13511 (_initialize_tui_layout): Register "new-layout".
13512 (tui_layout_window::specification): New method.
13513 (tui_layout_window::specification): New method.
13514 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13515 method.
13516 (class tui_layout_window) <specification>: New method.
13517 (class tui_layout_split) <specification>: New method.
13518
416eb92d
TT
135192020-02-22 Tom Tromey <tom@tromey.com>
13520
13521 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13522 * tui/tui-win.c (window_name_completer): Update comment.
13523 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13524 Declare method.
13525 (class tui_layout_window) <replace_window>: Likewise.
13526 (class tui_layout_split) <replace_window>: Likewise.
13527 (tui_set_layout): Don't declare.
13528 (tui_set_initial_layout): Declare function.
13529 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13530 (asm_regs_layout): New globals.
13531 (tui_current_layout, show_layout): Remove.
13532 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13533 (find_layout, tui_apply_layout): New function.
13534 (layout_completer): Remove.
13535 (tui_next_layout): Reimplement.
13536 (tui_next_layout_command): New function.
13537 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13538 (tui_regs_layout): Reimplement.
13539 (tui_regs_layout_command): New function.
13540 (extract_display_start_addr): Rewrite.
13541 (next_layout, prev_layout): Remove.
13542 (tui_layout_window::replace_window): New method.
13543 (tui_layout_split::replace_window): New method.
13544 (destroy_layout): New function.
13545 (layout_list): New global.
13546 (add_layout_command): New function.
13547 (initialize_layouts): Update.
13548 (tui_layout_command): New function.
13549 (_initialize_tui_layout): Install "layout" commands.
13550 * tui/tui-data.h (enum tui_layout_type): Remove.
13551 (tui_current_layout): Don't declare.
13552
0dbc2fc7
TT
135532020-02-22 Tom Tromey <tom@tromey.com>
13554
13555 * tui/tui-regs.c (tui_reg_layout): Remove.
13556 (tui_reg_command): Use tui_regs_layout.
13557 * tui/tui-layout.h (tui_reg_command): Declare.
13558 * tui/tui-layout.c (tui_reg_command): New function.
13559
5afe342e
TT
135602020-02-22 Tom Tromey <tom@tromey.com>
13561
13562 * tui/tui.c (tui_rl_delete_other_windows): Call
13563 tui_remove_some_windows.
13564 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13565 Declare method.
13566 (class tui_layout_window) <remove_windows>: New method.
13567 (class tui_layout_split) <remove_windows>: Declare.
13568 (tui_remove_some_windows): Declare.
13569 * tui/tui-layout.c (tui_remove_some_windows): New function.
13570 (tui_layout_split::remove_windows): New method.
13571
427326a8
TT
135722020-02-22 Tom Tromey <tom@tromey.com>
13573
13574 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13575 * tui/tui-layout.h (tui_next_layout): Declare.
13576 * tui/tui-layout.c (tui_next_layout): New function.
13577
3fe12b6d
TT
135782020-02-22 Tom Tromey <tom@tromey.com>
13579
13580 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13581 correct coordinates.
13582
59b8b5d2
TT
135832020-02-22 Tom Tromey <tom@tromey.com>
13584
13585 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13586 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13587 DATA_WIN case.
13588
2a3d458b
TT
135892020-02-22 Tom Tromey <tom@tromey.com>
13590
13591 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13592 TUI_DISASM_WIN, not tui_win_list.
13593
3f0cbb04
TT
135942020-02-22 Tom Tromey <tom@tromey.com>
13595
13596 * valprint.c (generic_val_print_enum_1)
13597 (val_print_type_code_flags): Style member names.
13598 * rust-lang.c (val_print_struct, rust_print_enum)
13599 (rust_print_struct_def, rust_internal_print_type): Style member
13600 names.
13601 * p-valprint.c (pascal_object_print_value_fields): Style member
13602 names. Only call fprintf_symbol_filtered for static members.
13603 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13604 * f-valprint.c (f_val_print): Style member names.
13605 * f-typeprint.c (f_type_print_base): Style member names.
13606 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13607 call fprintf_symbol_filtered for static members.
13608 (cp_print_class_member): Style member names.
13609 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13610 member names.
13611 * ada-valprint.c (ada_print_scalar): Style enum names.
13612 (ada_val_print_enum): Likewise.
13613 * ada-typeprint.c (print_enum_type): Style enum names.
13614
d4d947ae
TT
136152020-02-21 Tom Tromey <tom@tromey.com>
13616
13617 * psympriv.h (struct partial_symtab): Update comment.
13618
e94e944b
TT
136192020-02-21 Tom Tromey <tromey@adacore.com>
13620
13621 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13622 type is CORE_ADDR.
13623
1eb73179
TV
136242020-02-21 Tom de Vries <tdevries@suse.de>
13625
13626 PR gdb/25534
13627 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13628 if dependencies[i]->user != NULL.
13629
4f180d53
AT
136302020-02-21 Ali Tamur <tamur@google.com>
13631
13632 * dwarf2/read.c (dwarf2_name): Add null check.
13633
22b6cd70
TT
136342020-02-20 Tom Tromey <tom@tromey.com>
13635
13636 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13637 ">=", in binary search.
13638 (dwarf2_find_containing_comp_unit): New overload.
13639 (run_test): New self-test.
13640 (_initialize_dwarf2_read): Register new test.
13641
bd0cf5a6
NC
136422020-02-20 Nelson Chu <nelson.chu@sifive.com>
13643
13644 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13645 * riscv-tdep.h: Likewise.
13646 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13647 rv32-only CSR.
13648 * features/riscv/64bit-csr.xml: Regenerated.
13649
3f702acd
SDJ
136502020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13651 Tom Tromey <tom@tromey.com>
13652
13653 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13654 of 'fputc_unfiltered'.
13655 (putchar_unfiltered): Call 'fputc_unfiltered'.
13656 (fputc_unfiltered): Call 'fputs_unfiltered'.
13657
d13c7322
AB
136582020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13659
13660 * config.in: Regenerate.
13661 * configure: Regenerate.
13662 * configure.ac: Add --with-python-libdir option.
13663 * main.c: Use WITH_PYTHON_LIBDIR.
13664
869d8950
TT
136652020-02-19 Tom Tromey <tom@tromey.com>
13666
13667 * symtab.c (general_symbol_info::compute_and_set_names): Use
13668 obstack_strndup. Simplify call to symbol_set_demangled_name.
13669
298e9637
SM
136702020-02-19 Simon Marchi <simon.marchi@efficios.com>
13671
13672 * dwarf2/read.c (allocate_signatured_type_table,
13673 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13674 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13675 Remove objfile parameter, update all callers.
13676
08410482
DE
136772020-02-19 Doug Evans <dje@google.com>
13678
13679 PR rust/25535
13680 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13681 rust_enum_variant calculation.
13682
dfdeeca1
TT
136832020-02-19 Tom Tromey <tromey@adacore.com>
13684
13685 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13686
2ef5453b
TT
136872020-02-19 Tom Tromey <tromey@adacore.com>
13688
13689 * ada-lang.c (cache_symbol): Use obstack_strdup.
13690
9f1528a1
AB
136912020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13692
13693 * configure: Regenerate.
13694
d3c22fa8
TT
136952020-02-19 Tom Tromey <tromey@adacore.com>
13696
13697 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13698 NULL check.
13699
bf84f706
MR
137002020-02-19 Maciej W. Rozycki <macro@wdc.com>
13701
13702 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13703
d1c9b20f
AB
137042020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13705
13706 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13707 if GDBSERVER is not defined.
13708 (riscv_tdesc_cache): Likewise, also store const target_desc.
13709 (STATIC_IN_GDB): Define.
13710 (riscv_create_target_description): Update declaration with
13711 STATIC_IN_GDB.
13712 (riscv_lookup_target_description): New function, only define if
13713 GDBSERVER is not defined.
13714 * arch/riscv.h (riscv_create_target_description): Declare only
13715 when GDBSERVER is defined.
13716 (riscv_lookup_target_description): New declaration when GDBSERVER
13717 is not defined.
13718 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13719 (riscv_linux_read_features): ...this, and return
13720 riscv_gdbarch_features instead of target_desc.
13721 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13722 (riscv_linux_read_description): Rename to...
13723 (riscv_linux_read_features): ...this.
13724 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13725 Update to use riscv_gdbarch_features and
13726 riscv_lookup_target_description.
13727 * riscv-tdep.c (riscv_find_default_target_description): Use
13728 riscv_lookup_target_description instead of
13729 riscv_create_target_description.
13730
373d7ac0
SM
137312020-02-18 Simon Marchi <simon.marchi@efficios.com>
13732
13733 * valprint.c (generic_val_print_enum_1): When printing a flag
13734 enum with value 0 and there is no enumerator with value 0, print
13735 just "0" instead of "(unknown: 0x0)".
13736
b29a2df0
SM
137372020-02-18 Simon Marchi <simon.marchi@efficios.com>
13738
13739 * valprint.c (generic_val_print_enum_1): Print unknown part of
13740 flag enum in hex.
13741
6740f0cc
SM
137422020-02-18 Simon Marchi <simon.marchi@efficios.com>
13743
13744 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13745 flag enums to contain duplicate enumerators.
13746 * valprint.c (generic_val_print_enum_1): Update comment.
13747
edd45eb0
SM
137482020-02-18 Simon Marchi <simon.marchi@efficios.com>
13749
13750 * dwarf2/read.c: Include "count-one-bits.h".
13751 (update_enumeration_type_from_children): If an enumerator has
13752 multiple bits set, don't treat the enumeration as a "flag enum".
13753 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13754 of flag enums have 0 or 1 bit set.
13755
6d0cf446
BE
137562020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13757
13758 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13759 conversion.
13760 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13761 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13762 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13763 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13764 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13765
7001c1b7
SM
137662020-02-18 Simon Marchi <simon.marchi@efficios.com>
13767
13768 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13769
fdb61c6c
SM
137702020-02-14 Simon Marchi <simon.marchi@efficios.com>
13771
13772 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13773 displaced_step_closure_up.
13774 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13775 (struct displaced_step_closure_up):
13776 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13777 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13778 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13779 Likewise.
13780 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13781 * gdbarch.c, gdbarch.h: Re-generate.
13782 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13783 displaced_step_closure_up.
13784 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13785 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13786 * infrun.h (displaced_step_closure_up): New type alias.
13787 (struct displaced_step_inferior_state) <step_closure>: Change
13788 type to displaced_step_closure_up.
13789 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13790 displaced_step_closure_up.
13791 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13792
a4a38eb4
TT
137932020-02-14 Tom Tromey <tom@tromey.com>
13794
13795 * minidebug.c (gnu_debug_key): New global.
13796 (find_separate_debug_file_in_section): Use it.
13797
e8217e61
SM
137982020-02-14 Simon Marchi <simon.marchi@efficios.com>
13799
13800 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13801 std::unique_ptr.
13802 * gdbarch.c: Re-generate.
13803 * gdbarch.h: Re-generate.
13804 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13805 change.
13806 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13807 type to std::unique_ptr.
13808 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13809 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13810 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13811 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13812 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13813 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13814 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13815 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13816 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13817
d8d83535
SM
138182020-02-14 Simon Marchi <simon.marchi@efficios.com>
13819
13820 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13821 std::unique_ptr.
13822 (displaced_step_clear): Rename to...
13823 (displaced_step_reset): ... this. Just call displaced->reset ().
13824 (displaced_step_clear_cleanup): Rename to...
13825 (displaced_step_reset_cleanup): ... this.
13826 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13827 (displaced_step_fixup): Likewise.
13828 (resume_1): Likewise.
13829 (handle_inferior_event): Restore child's memory before calling
13830 displaced_step_fixup on the parent.
13831 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13832 to std::unique_ptr.
13833 <step_closure>: Change type to std::unique_ptr.
13834
5f661e03
SM
138352020-02-14 Simon Marchi <simon.marchi@efficios.com>
13836
13837 * arm-tdep.c: Include count-one-bits.h.
13838 (cleanup_block_store_pc): Use count_one_bits.
13839 (cleanup_block_load_pc): Use count_one_bits.
13840 (arm_copy_block_xfer): Use count_one_bits.
13841 (thumb2_copy_block_xfer): Use count_one_bits.
13842 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13843 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13844 (thumb_get_next_pcs_raw): Use count_one_bits.
13845 (arm_get_next_pcs_raw): Use count_one_bits_l.
13846 * arch/arm.c (bitcount): Remove.
13847 * arch/arm.h (bitcount): Remove.
13848
8084e579
TT
138492020-02-14 Tom Tromey <tromey@adacore.com>
13850
13851 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13852 Update.
13853 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13854 * dwarf2/loc.c (call_site_find_chain_1): Return
13855 unique_xmalloc_ptr.
13856 (call_site_find_chain): Likewise.
13857
258bf0ee
RB
138582020-02-14 Richard Biener <rguenther@suse.de>
13859
13860 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13861 on expression with division operators.
13862
f98a8458
AKS
138632020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13864
13865 * MAINTAINERS (Write After Approval): Adding myself.
13866
d1437c0e
TT
138672020-02-12 Tom Tromey <tom@tromey.com>
13868
13869 * event-loop.c (event_data, gdb_event, event_handler_func):
13870 Remove.
13871
3d4560f7
TT
138722020-02-12 Tom Tromey <tom@tromey.com>
13873
13874 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13875 (dwarf2_frame_objfile_data): Add comment.
13876 (find_comp_unit, set_comp_unit): New functions.
13877 (dwarf2_frame_find_fde): Use find_comp_unit.
13878 (dwarf2_build_frame_info): Use set_comp_unit.
13879
21982304
TT
138802020-02-12 Tom Tromey <tom@tromey.com>
13881
13882 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13883 (comp_unit): Don't initialize objfile.
13884 (execute_cfa_program): Add text_offset parameter.
13885 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13886 (dwarf2_frame_cache): Update.
13887 (dwarf2_build_frame_info): Don't set "objfile" member.
13888
4debb237
TT
138892020-02-12 Tom Tromey <tom@tromey.com>
13890
13891 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13892 (decode_frame_entry): Likewise.
13893 (dwarf2_build_frame_info): Update.
13894
0d404d44
TT
138952020-02-12 Tom Tromey <tom@tromey.com>
13896
13897 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13898 (decode_frame_entry_1): Use the comp_unit obstack.
13899
a7a3ae5c
TT
139002020-02-12 Tom Tromey <tom@tromey.com>
13901
13902 * dwarf2/frame.c (struct comp_unit): Add initializers and
13903 constructor.
13904 (dwarf2_frame_objfile_data): Store a comp_unit.
13905 (dwarf2_frame_find_fde): Update.
13906 (dwarf2_build_frame_info): Use "new".
13907
a9d65418
TT
139082020-02-12 Tom Tromey <tom@tromey.com>
13909
13910 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13911 (dwarf2_fde_table): Typedef for std::vector.
13912 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13913 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13914 (decode_frame_entry): Update.
13915 (dwarf2_build_frame_info): Use "new".
13916
7559c217
CB
139172020-02-12 Christian Biesinger <cbiesinger@google.com>
13918
13919 * arm-tdep.c (arm_gdbarch_init): Update.
13920 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13921 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13922 have_neon, is_m>: Change to bool.
13923
aeefc73c
CB
139242020-02-12 Christian Biesinger <cbiesinger@google.com>
13925
13926 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13927
d27b8e5f
TT
139282020-02-12 Tom Tromey <tom@tromey.com>
13929
13930 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13931
cd5900f3
HD
139322020-02-12 Hannes Domani <ssbssa@yahoo.de>
13933
13934 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13935 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13936
f056b22b
TT
139372020-02-11 Tom Tromey <tom@tromey.com>
13938
13939 * psymtab.h: Update comment.
13940
f92ff6b5
TT
139412020-02-11 Tom Tromey <tom@tromey.com>
13942
13943 * gdb_obstack.h (struct auto_obstack): Use
13944 DISABLE_COPY_AND_ASSIGN.
13945
3fd6912b
TT
139462020-02-11 Tom Tromey <tom@tromey.com>
13947
13948 * dwarf2/frame.h (struct objfile): Don't forward declare.
13949
69ed9b74
CB
139502020-02-11 Christian Biesinger <cbiesinger@google.com>
13951
13952 * cris-tdep.c (cris_supply_gregset): Change signature to match
13953 what struct regset expects.
13954 (cris_regset): New struct.
13955 (fetch_core_registers): Remove.
13956 (cris_iterate_over_regset_sections): New function.
13957 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13958 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13959
bda874f6
CB
139602020-02-11 Christian Biesinger <cbiesinger@google.com>
13961
13962 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13963 registers.
13964
754e1564
CB
139652020-02-11 Christian Biesinger <cbiesinger@google.com>
13966
13967 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13968
8ddd8e0e
SM
139692020-02-11 Simon Marchi <simon.marchi@efficios.com>
13970
13971 * configure: Re-generate.
13972
898e7f60
SM
139732020-02-11 Simon Marchi <simon.marchi@efficios.com>
13974
13975 * configure: Re-generate.
13976
58df732b
SM
139772020-02-11 Simon Marchi <simon.marchi@efficios.com>
13978
13979 * acinclude: Update warning.m4 path.
13980 * warning.m4: Move to gdbsupport.
13981
da5bd37e
TT
139822020-02-11 Tom Tromey <tromey@adacore.com>
13983
13984 * remote.c (remote_console_output): Update.
13985 * printcmd.c (printf_command): Update.
13986 * event-loop.c (gdb_wait_for_event): Update.
13987 * linux-nat.c (sigchld_handler): Update.
13988 * remote-sim.c (gdb_os_write_stdout): Update.
13989 (gdb_os_flush_stdout): Update.
13990 (gdb_os_flush_stderr): Update.
13991 (gdb_os_write_stderr): Update.
13992 * exceptions.c (print_exception): Update.
13993 * remote-fileio.c (remote_fileio_func_read): Update.
13994 (remote_fileio_func_write): Update.
13995 * tui/tui.c (tui_enable): Update.
13996 * tui/tui-interp.c (tui_interp::init): Update.
13997 * utils.c (init_page_info): Update.
13998 (putchar_unfiltered, fputc_unfiltered): Update.
13999 (gdb_flush): Update.
14000 (emit_style_escape): Update.
14001 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14002 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14003 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14004 (stderr_file::write): Update.
14005 (stderr_file::puts): Update.
14006 * ui-file.h (ui_file_isatty, ui_file_write)
14007 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14008 (ui_file_puts): Don't declare.
14009
85f0dd3c
TV
140102020-02-10 Tom de Vries <tdevries@suse.de>
14011
14012 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14013 sentinel to char *.
14014
2e927613
TV
140152020-02-09 Tom de Vries <tdevries@suse.de>
14016
14017 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14018 filename if it matches "<artificial>".
14019
6bafc845
HD
140202020-02-09 Hannes Domani <ssbssa@yahoo.de>
14021
14022 * windows-tdep.c (struct enum_value_name): New struct.
14023 (create_enum): New function.
14024 (windows_get_siginfo_type): Create and use enum types.
14025
7928d571
HD
140262020-02-09 Hannes Domani <ssbssa@yahoo.de>
14027
14028 * NEWS: Mention $_siginfo support for Windows.
14029 * windows-nat.c (handle_exception): Set siginfo_er.
14030 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14031 (windows_xfer_siginfo): New function.
14032 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14033 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14034 (init_windows_gdbarch_data): New function.
14035 (get_windows_gdbarch_data): New function.
14036 (windows_get_siginfo_type): New function.
14037 (windows_init_abi): Register windows_get_siginfo_type.
14038 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14039
6751ebae
TT
140402020-02-08 Tom Tromey <tom@tromey.com>
14041
14042 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14043 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14044 <keep>: Declare method.
14045 <m_keep>: Remove member.
14046 <~cutu_reader>: Remove.
14047 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14048 (cutu_reader::cutu_reader): Update.
14049 (cutu_reader::keep): Rename from ~cutu_reader.
14050 (process_psymtab_comp_unit, build_type_psymtabs_1)
14051 (process_skeletonless_type_unit, load_partial_comp_unit)
14052 (load_full_comp_unit, dwarf2_read_addr_index)
14053 (read_signatured_type): Update.
14054
135f5437
TT
140552020-02-08 Tom Tromey <tom@tromey.com>
14056
14057 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14058 "want_partial_unit" parameter.
14059 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14060 Inline check for DW_TAG_partial_unit.
14061 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14062
9f66ff1c
TT
140632020-02-08 Tom Tromey <tom@tromey.com>
14064
14065 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14066 read.c.
14067 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14068 read.c.
14069
c8a7a66f
TT
140702020-02-08 Tom Tromey <tom@tromey.com>
14071
14072 * dwarf2/read.c (read_address): Move to comp-unit.c.
14073 (dwarf2_rnglists_process, dwarf2_ranges_process)
14074 (read_attribute_value, dwarf_decode_lines_1)
14075 (var_decode_location, decode_locdesc): Update.
14076 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14077 read.c. Remove "cu" parameter.
14078 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14079 method.
14080
8266302d
TT
140812020-02-08 Tom Tromey <tom@tromey.com>
14082
14083 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14084 (read_indirect_line_string): Update.
14085 * dwarf2/comp-unit.c (read_offset): Remove.
14086 (read_comp_unit_head): Update.
14087 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14088 method.
14089 (read_offset): Don't declare.
14090
4057dfde
TT
140912020-02-08 Tom Tromey <tom@tromey.com>
14092
14093 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14094 * dwarf2/read.c (struct comp_unit_head): Move to
14095 dwarf2/comp-unit.h.
14096 (enum class rcuh_kind): Move to comp-unit.h.
14097 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14098 (read_comp_unit_head, error_check_comp_unit_head)
14099 (read_and_check_comp_unit_head): Move to comp-unit.c.
14100 (read_offset, dwarf_unit_type_name): Likewise.
14101 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14102 (cutu_reader::cutu_reader, read_call_site_scope)
14103 (find_partial_die, follow_die_offset): Update.
14104 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14105
24aa364d
TT
141062020-02-08 Tom Tromey <tom@tromey.com>
14107
14108 * dwarf2/read.c (read_offset_1): Move to leb.c.
14109 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14110 (dwarf_decode_macro_bytes): Update.
14111 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14112 * dwarf2/leb.h (read_offset): Declare.
14113
2c7d5afc
TT
141142020-02-08 Tom Tromey <tom@tromey.com>
14115
14116 * dwarf2/read.c (dwarf2_section_size): Remove.
14117 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14118 Update.
14119 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14120
4075cb26
TT
141212020-02-08 Tom Tromey <tom@tromey.com>
14122
14123 * dwarf2/read.c (read_initial_length): Move to leb.c.
14124 * dwarf2/leb.h (read_initial_length): Declare.
14125 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14126 handle_nonstd parameter.
14127 * dwarf2/frame.c (read_initial_length): Remove.
14128 (decode_frame_entry_1): Update.
14129
09ba997f
TT
141302020-02-08 Tom Tromey <tom@tromey.com>
14131
14132 * dwarf2/loc.c (dwarf2_find_location_expression)
14133 (dwarf_evaluate_loc_desc::get_tls_address)
14134 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14135 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14136 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14137 (dwarf2_compile_property_to_c)
14138 (dwarf2_loc_desc_get_symbol_read_needs)
14139 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14140 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14141 (loclist_describe_location, loclist_tracepoint_var_ref)
14142 (loclist_generate_c_location): Update.
14143 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14144 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14145 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14146 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14147 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14148 (dwarf2_per_cu_data::addr_size)
14149 (dwarf2_per_cu_data::ref_addr_size)
14150 (dwarf2_per_cu_data::text_offset)
14151 (dwarf2_per_cu_data::addr_type): Now methods.
14152 (per_cu_header_read_in): Make per_cu "const".
14153 (dwarf2_version): Remove.
14154 (dwarf2_per_cu_data::int_type): Now a method.
14155 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14156 (set_die_type, read_array_type, read_subrange_index_type)
14157 (read_tag_string_type, read_subrange_type): Update.
14158 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14159 offset_size, ref_addr_size, text_offset, addr_type, version,
14160 objfile, int_type, addr_sized_int_type>: Declare methods.
14161
96c738c0
TT
141622020-02-08 Tom Tromey <tom@tromey.com>
14163
14164 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14165 Move earlier.
14166
8fdd972c
TT
141672020-02-08 Tom Tromey <tom@tromey.com>
14168
14169 * dwarf2/read.h (dwarf_line_debug): Declare.
14170 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14171 * dwarf2/read.c: Move line_header code to new files.
14172 (dwarf_line_debug): No longer static.
14173 * dwarf2/line-header.c: New file.
14174 * dwarf2/line-header.h: New file.
14175
03075812
TT
141762020-02-08 Tom Tromey <tom@tromey.com>
14177
14178 * dwarf2/read.c (struct line_header) <file_full_name,
14179 file_file_name>: Return unique_xmalloc_ptr.
14180 (line_header::file_file_name): Update.
14181 (line_header::file_full_name): Update.
14182 (dw2_get_file_names_reader): Update.
14183 (macro_start_file): Update.
14184
bb822404
TT
141852020-02-08 Tom Tromey <tom@tromey.com>
14186
14187 * dwarf2/read.c (struct line_header) <file_full_name,
14188 file_file_name>: Declare methods.
14189 (dw2_get_file_names_reader): Update.
14190 (file_file_name): Now a method.
14191 (file_full_name): Likewise.
14192 (macro_start_file): Update.
14193
009b64fc
TT
141942020-02-08 Tom Tromey <tom@tromey.com>
14195
14196 * dwarf2/read.c (dwarf_always_disassemble)
14197 (show_dwarf_always_disassemble): Move to loc.c.
14198 (_initialize_dwarf2_read): Move "always-disassemble" registration
14199 to loc.c.
14200 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14201 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14202 static.
14203 (show_dwarf_always_disassemble): Move from read.c.
14204 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14205
5895093f
TT
142062020-02-08 Tom Tromey <tom@tromey.com>
14207
14208 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14209 (create_quick_file_names_table): Return htab_up.
14210 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14211 Update.
14212 * dwarf2/read.h (struct dwarf2_per_objfile)
14213 <quick_file_names_table>: Now htab_up.
14214
b3b32279
TT
142152020-02-08 Tom Tromey <tom@tromey.com>
14216
14217 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14218
1d33d811
TT
142192020-02-08 Tom Tromey <tom@tromey.com>
14220
14221 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14222 Rewrite.
14223 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14224 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14225 (abbrev_table::abbrev_table): No longer inline.
14226 (ABBREV_HASH_SIZE): Remove.
14227 (abbrev_table::m_abbrevs): Now an htab_up.
14228
86de1d91
TT
142292020-02-08 Tom Tromey <tom@tromey.com>
14230
14231 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14232 (cutu_reader): Update.
14233 (build_type_psymtabs_1): Update.
14234 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14235 (abbrev_table::alloc_abbrev): Update.
14236 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14237 (abbrev_table::read): New static method, renamed from
14238 abbrev_table_read_table.
14239 (abbrev_table::alloc_abbrev)
14240 (abbrev_table::add_abbrev): Now private.
14241 (abbrev_table::abbrev_table): Now private.
14242 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14243
0335378b
TT
142442020-02-08 Tom Tromey <tom@tromey.com>
14245
14246 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14247 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14248 htab_up.
14249
48b490f2
TT
142502020-02-08 Tom Tromey <tom@tromey.com>
14251
14252 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14253 htab_up.
14254 (lookup_dwo_unit_in_dwp): Update.
14255 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14256 on obstack.
14257
bc68fb19
TT
142582020-02-08 Tom Tromey <tom@tromey.com>
14259
14260 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14261 obstack.
14262
d15acc42
TT
142632020-02-08 Tom Tromey <tom@tromey.com>
14264
14265 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14266 line_header_hash.
14267 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14268 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14269 Change type to htab_up.
14270
eaa5fa8b
TT
142712020-02-08 Tom Tromey <tom@tromey.com>
14272
14273 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14274 htab_up. Don't allocate on obstack.
14275 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14276 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14277 Change type to htab_up.
14278
b0b6a987
TT
142792020-02-08 Tom Tromey <tom@tromey.com>
14280
14281 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14282 Change type to htab_up.
14283 * dwarf2/read.c (create_signatured_type_table_from_index)
14284 (create_signatured_type_table_from_debug_names)
14285 (create_all_type_units, add_type_unit)
14286 (lookup_dwo_signatured_type, lookup_signatured_type)
14287 (process_skeletonless_type_unit): Update.
14288 (create_debug_type_hash_table, create_debug_types_hash_table):
14289 Change type of types_htab.
14290 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14291 htab_up. Don't allocate on obstack.
14292 (create_cus_hash_table): Change type of cus_htab parameter.
14293 (struct dwo_file) <cus, tus>: Now htab_up.
14294 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14295 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14296 (queue_and_load_all_dwo_tus): Update.
14297 * dwarf2/index-write.c (write_gdbindex): Update.
14298 (write_debug_names): Update.
14299
39856def
TT
143002020-02-08 Tom Tromey <tom@tromey.com>
14301
14302 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14303 dwarf2/read.c. Remove "next" member. Add constructor ntad
14304 destructor.
14305 (struct dwarf2_per_objfile) <queue>: New member.
14306 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14307 dwarf2/read.h.
14308 (dwarf2_queue, dwarf2_queue_tail): Remove.
14309 (class dwarf2_queue_guard): Add parameter to constructor. Use
14310 DISABLE_COPY_AND_ASSIGN.
14311 <m_per_objfile>: New member.
14312 <~dwarf2_queue_guard>: Rewrite.
14313 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14314 Update.
14315 (~dwarf2_queue_item): New.
14316
3e225074
TT
143172020-02-08 Tom Tromey <tom@tromey.com>
14318
14319 * dwarf2/read.c (struct die_info) <has_children>: New member.
14320 (dw2_get_file_names_reader): Remove has_children.
14321 (dw2_get_file_names): Update.
14322 (read_cutu_die_from_dwo): Remove has_children.
14323 (cutu_reader::init_tu_and_read_dwo_dies)
14324 (cutu_reader::cutu_reader): Update.
14325 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14326 Remove has_children.
14327 (build_type_psymtabs_1, process_skeletonless_type_unit)
14328 (load_partial_comp_unit, load_full_comp_unit): Update.
14329 (create_dwo_cu_reader): Remove has_children.
14330 (create_cus_hash_table, read_die_and_children): Update.
14331 (read_full_die_1,read_full_die): Remove has_children.
14332 (read_signatured_type): Update.
14333 (class cutu_reader) <has_children>: Remove.
14334
82ca8957
TT
143352020-02-08 Tom Tromey <tom@tromey.com>
14336
14337 * dwarf2/expr.c: Rename from dwarf2expr.c.
14338 * dwarf2/expr.h: Rename from dwarf2expr.h.
14339 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14340 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14341 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14342 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14343 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14344 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14345 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14346 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14347 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14348 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14349 * dwarf2/loc.c: Rename from dwarf2loc.c.
14350 * dwarf2/loc.h: Rename from dwarf2loc.h.
14351 * dwarf2/read.c: Rename from dwarf2read.c.
14352 * dwarf2/read.h: Rename from dwarf2read.h.
14353 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14354 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14355 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14356 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14357 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14358 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14359 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14360 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14361 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14362 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14363 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14364 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14365 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14366 Update.
14367 * Makefile.in (COMMON_SFILES): Update.
14368 (HFILES_NO_SRCDIR): Update.
14369
9e35d499
TT
143702020-02-08 Tom Tromey <tom@tromey.com>
14371
14372 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14373 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14374
1eba2311
TT
143752020-02-08 Tom Tromey <tom@tromey.com>
14376
14377 * dwarf2read.h (struct die_info): Don't declare.
14378
e41c2da2
TT
143792020-02-08 Tom Tromey <tom@tromey.com>
14380
14381 * dwarf2read.h (die_info_ptr): Remove typedef.
14382
4fc6c0d5
TT
143832020-02-08 Tom Tromey <tom@tromey.com>
14384
14385 * dwarf2read.c (read_call_site_scope)
14386 (handle_data_member_location, dwarf2_add_member_fn)
14387 (mark_common_block_symbol_computed, read_common_block)
14388 (attr_to_dynamic_prop, partial_die_info::read)
14389 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14390 (dwarf2_symbol_mark_computed, set_die_type): Update.
14391 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14392 method.
14393 (attr_form_is_block): Don't declare.
14394 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14395
cd6c91b4
TT
143962020-02-08 Tom Tromey <tom@tromey.com>
14397
14398 * dwarf2read.c (dwarf2_find_base_address, )
14399 (read_call_site_scope, rust_containing_type)
14400 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14401 (handle_data_member_location, dwarf2_add_member_fn)
14402 (get_alignment, read_structure_type, process_structure_scope)
14403 (mark_common_block_symbol_computed, read_common_block)
14404 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14405 (partial_die_info::read, read_attribute_value, new_symbol)
14406 (lookup_die_type, dwarf2_get_ref_die_offset)
14407 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14408 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14409 (dwarf2_symbol_mark_computed): Update.
14410 * dwarf2/attribute.h (struct attribute) <value_as_address,
14411 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14412 methods.
14413 (value_as_address, attr_form_is_section_offset)
14414 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14415 * dwarf2/attribute.c (attribute::value_as_address)
14416 (attribute::form_is_section_offset, attribute::form_is_constant)
14417 (attribute::form_is_ref): Now methods.
14418
162dce55
TT
144192020-02-08 Tom Tromey <tom@tromey.com>
14420
14421 * dwarf2read.c (struct attribute, DW_STRING)
14422 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14423 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14424 (attr_form_is_block, attr_form_is_section_offset)
14425 (attr_form_is_constant, attr_form_is_ref): Move.
14426 * dwarf2/attribute.h: New file.
14427 * dwarf2/attribute.c: New file, from dwarf2read.c.
14428 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14429
3054dd54
TT
144302020-02-08 Tom Tromey <tom@tromey.com>
14431
14432 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14433 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14434 Move.
14435 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14436 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14437 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14438 abbrev.c.
14439 * dwarf2/abbrev.h: New file.
14440 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14441 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14442
96b79293
TT
144432020-02-08 Tom Tromey <tom@tromey.com>
14444
14445 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14446 (dwarf2_section_size, dwarf2_get_section_info)
14447 (create_signatured_type_table_from_debug_names)
14448 (create_addrmap_from_aranges, read_debug_names_from_section)
14449 (get_gdb_index_contents_from_section, read_comp_unit_head)
14450 (error_check_comp_unit_head, read_abbrev_offset)
14451 (create_debug_type_hash_table, init_cu_die_reader)
14452 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14453 (read_comp_units_from_section, create_cus_hash_table)
14454 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14455 (create_dwp_v2_section, dwarf2_rnglists_process)
14456 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14457 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14458 (read_indirect_string_from_dwz, read_addr_index_1)
14459 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14460 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14461 (fill_in_loclist_baton): Update.
14462 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14463 get_containing_section, get_bfd_owner, get_bfd_section,
14464 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14465 (dwarf2_read_section, get_section_name, get_section_file_name)
14466 (get_containing_section, get_section_bfd_owner)
14467 (get_section_bfd_section, get_section_name, get_section_file_name)
14468 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14469 declare.
14470 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14471 (dwarf2_section_info::get_bfd_owner)
14472 (dwarf2_section_info::get_bfd_section)
14473 (dwarf2_section_info::get_name)
14474 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14475 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14476 (dwarf2_section_info::read): Now methods.
14477 * dwarf-index-write.c (class debug_names): Update.
14478
2c86cff9
TT
144792020-02-08 Tom Tromey <tom@tromey.com>
14480
14481 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14482 Move to dwarf2/section.h.
14483 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14484 (get_section_bfd_section, get_section_name)
14485 (get_section_file_name, get_section_id, get_section_flags)
14486 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14487 dwarf2/section.c.
14488 * dwarf2/section.h: New file.
14489 * dwarf2/section.c: New file, from dwarf2read.c.
14490 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14491
f4382c45
TT
144922020-02-08 Tom Tromey <tom@tromey.com>
14493
14494 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14495 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14496 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14497 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14498 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14499 * dwarf2/leb.h: New file, from dwarf2read.c.
14500 * dwarf2/leb.c: New file, from dwarf2read.c.
14501 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14502 Remove.
14503 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14504 (COMMON_SFILES): Add dwarf2/leb.c.
14505
01840b7a
JB
145062020-02-08 Joel Brobecker <brobecker@adacore.com>
14507
14508 GDB 9.1 released.
14509
dfcb27e4
IB
145102020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14511
14512 PR gdb/25190:
aac66a4c
SM
14513 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14514 * gdb/remote.c (remote_console_output): Update.
14515 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14516 (ui_file_puts): ...this.
14517 * gdb/ui-file.h (ui_file_puts): Add declaration.
14518 * gdb/utils.c (emit_style_escape): Update.
14519 (flush_wrap_buffer): Update.
14520 (fputs_maybe_filtered): Update.
14521 (fputs_unfiltered): Add function.
dfcb27e4 14522
faa17681
IB
145232020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14524
aac66a4c
SM
14525 * gdb/event-loop.c (gdb_wait_for_event): Update.
14526 * gdb/printcmd.c (printf_command): Update.
14527 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14528 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14529 (gdb_os_flush_stderr): Update.
14530 * gdb/remote.c (remote_console_output): Update.
14531 * gdb/ui-file.c (gdb_flush): Rename to...
14532 (ui_file_flush): ...this.
14533 (stderr_file::write): Update.
14534 (stderr_file::puts): Update.
14535 * gdb/ui-file.h (gdb_flush): Rename to...
14536 (ui_file_flush): ...this.
14537 * gdb/utils.c (gdb_flush): Add function.
14538 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14539
5abbbe1d
TT
145402020-02-07 Tom Tromey <tromey@adacore.com>
14541
14542 PR breakpoints/24915:
14543 * source.c (find_and_open_source): Do not check basenames_may_differ.
14544
919adfe8
TT
145452020-02-07 Tom Tromey <tom@tromey.com>
14546
14547 * README: Update gdbserver documentation.
14548 * gdbserver: Move to top level.
14549 * configure.tgt (build_gdbserver): Remove.
14550 * configure.ac: Remove --enable-gdbserver.
14551 * configure: Rebuild.
14552 * Makefile.in (distclean): Don't mention gdbserver.
14553
1d5d29e7
SV
145542020-02-06 Shahab Vahedi <shahab@synopsys.com>
14555
14556 * source-cache.c (source_cache::ensure): Surround
14557 get_plain_source_lines with a try/catch.
14558 (source_cache::get_line_charpos): Get rid of try/catch
14559 and only check for the return value of "ensure".
14560 * tui/tui-source.c (tui_source_window::set_contents):
14561 Simplify "nlines" calculation.
14562
6eb1129c
SV
145632020-02-06 Shahab Vahedi <shahab@synopsys.com>
14564
14565 * MAINTAINERS (Write After Approval): Add myself.
14566
c6a42d11
CB
145672020-02-05 Christian Biesinger <cbiesinger@google.com>
14568
14569 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14570 function call.
14571
c8ecdda6
CB
145722020-02-05 Christian Biesinger <cbiesinger@google.com>
14573
14574 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14575
f6480e70
MR
145762020-02-05 Maciej W. Rozycki <macro@wdc.com>
14577
14578 * nat/riscv-linux-tdesc.h: New file.
14579 * nat/riscv-linux-tdesc.c: New file, taking code from...
14580 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14581 ... here.
14582 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14583 NATDEPFILES.
14584
dcc9fbc6
AB
145852020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14586
14587 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14588 we don't set the fake simulator ptid to the null_ptid.
14589
719546c4
SM
145902020-02-03 Simon Marchi <simon.marchi@efficios.com>
14591
14592 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14593 * gdbthread.h (class thread_info) <resumed>: Likewise.
14594 * infrun.c (resume_1): Likewise.
14595 (proceed): Likewise.
14596 (infrun_thread_stop_requested): Likewise.
14597 (stop_all_threads): Likewise.
14598 (handle_inferior_event): Likewise.
14599 (restart_threads): Likewise.
14600 (finish_step_over): Likewise.
14601 (keep_going_stepped_thread): Likewise.
14602 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14603 (linux_handle_extended_wait): Likewise.
14604 * record-btrace.c (get_thread_current_frame_id): Likewise.
14605 * record-full.c (record_full_wait_1): Likewise.
14606 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14607 * target.c (target_resume): Likewise.
14608 * thread.c (set_running_thread): Likewise.
14609
e409c542
AKS
146102020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14611
14612 * f-valprint.c (f77_print_array_1): Changed datatype of index
14613 variable to LONGEST from int to enable it to contain bound
14614 values correctly.
14615
ee98c0da
MR
146162020-02-03 Maciej W. Rozycki <macro@wdc.com>
14617
14618 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14619 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14620 offsets according to FLEN determined.
14621 (riscv_linux_nat_target::read_description): Determine FLEN
14622 dynamically.
14623 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14624 according to FLEN determined.
14625 (riscv_linux_nat_target::store_registers): Likewise.
14626
aa66aac4
SV
146272020-02-01 Shahab Vahedi <shahab@synopsys.com>
14628
14629 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14630 when reg->group is empty and reggroup is not.
14631
fd9faca8
TT
146322020-01-31 Tom Tromey <tromey@adacore.com>
14633
14634 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14635 Call beneath target's mourn_inferior after unpushing.
14636
42330a68
AB
146372020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14638
14639 PR tui/9765
14640 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14641 have enough lines to fill the screen, still return the lowest
14642 address we found.
14643
7a27a45b
AB
146442020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14645
14646 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14647 '-', '<', and '>' commands.
14648
c47f70e2
PA
146492020-01-29 Pedro Alves <palves@redhat.com>
14650 Sergio Durigan Junior <sergiodj@redhat.com>
14651
14652 * infcmd.c (construct_inferior_arguments): Assert that
14653 'argc' is greater than 0.
14654
5133a315
LM
146552020-01-29 Luis Machado <luis.machado@linaro.org>
14656
14657 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14658 (BRK_INSN_MASK): Define to 0xd4200000.
14659 (aarch64_program_breakpoint_here_p): New function.
14660 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14661 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14662 breakpoint.c.
14663 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14664 breakpoint.h
14665 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14666 call gdbarch_program_breakpoint_here_p.
14667 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14668 default_program_breakpoint_here_p, changed return type to bool and
14669 simplified.
14670 * breakpoint.h (program_breakpoint_here): Moved prototype to
14671 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14672 return type to bool.
14673 * gdbarch.c: Regenerate.
14674 * gdbarch.h: Regenerate.
14675 * gdbarch.sh (program_breakpoint_here_p): New method.
14676 * infrun.c (handle_signal_stop): Call
14677 gdbarch_program_breakpoint_here_p.
14678
168f8c6b
TT
146792020-01-26 Tom Tromey <tom@tromey.com>
14680
14681 * ctfread.c (struct ctf_fp_info): Reindent.
14682 (_initialize_ctfread): Remove.
14683
128a391f
TT
146842020-01-26 Tom Tromey <tom@tromey.com>
14685
14686 * psymtab.c (partial_map_expand_apply)
14687 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14688 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14689 (psym_print_stats, psym_expand_symtabs_for_function)
14690 (psym_map_symbol_filenames, psym_map_matching_symbols)
14691 (psym_expand_symtabs_matching)
14692 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14693 (maintenance_check_psymtabs): Use new methods.
14694 * psympriv.h (struct partial_symtab) <readin_p,
14695 get_compunit_symtab>: New methods.
14696 <readin, compunit_symtab>: Remove members.
14697 (struct standard_psymtab): New.
14698 (struct legacy_psymtab): Derive from standard_psymtab.
14699 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14700 standard_psymtab.
14701 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14702
0494dbec
TT
147032020-01-26 Tom Tromey <tom@tromey.com>
14704
14705 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14706 read_dependencies. Add assert.
14707 * psymtab.c (partial_symtab::read_dependencies): New method.
14708 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14709 method.
14710 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14711 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14712 read_dependencies.
14713 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14714 Add assert.
14715
8566b89b
TT
147162020-01-26 Tom Tromey <tom@tromey.com>
14717
14718 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14719 Call expand_psymtab.
14720 (xcoff_read_symtab): Call expand_psymtab.
14721 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14722 legacy_expand_psymtab.
14723 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14724 method.
14725 (struct legacy_psymtab) <expand_psymtab>: Implement.
14726 <legacy_expand_psymtab>: New member.
14727 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14728 (parse_partial_symbols): Set legacy_expand_psymtab.
14729 (psymtab_to_symtab_1): Change argument order. Call
14730 expand_psymtab.
14731 (new_psymtab): Set legacy_expand_psymtab.
14732 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14733 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14734 expand_psymtab.
14735 (dwarf2_psymtab::expand_psymtab): Rename from
14736 psymtab_to_symtab_1. Call expand_psymtab.
14737 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14738 (dbx_end_psymtab): Likewise.
14739 (dbx_psymtab_to_symtab_1): Change argument order. Call
14740 expand_psymtab.
14741 (dbx_read_symtab): Call expand_psymtab.
14742 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14743 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14744 (ctf_psymtab::read_symtab): Call expand_psymtab.
14745
077cbab2
TT
147462020-01-26 Tom Tromey <tom@tromey.com>
14747
14748 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14749 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14750 messages.
14751 * mdebugread.c (mdebug_read_symtab): Remove prints.
14752 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14753 assert.
14754 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14755
891813be
TT
147562020-01-26 Tom Tromey <tom@tromey.com>
14757
14758 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14759 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14760 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14761 legacy_symtab.
14762 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14763 * psymtab.c (psymtab_to_symtab): Call method.
14764 (dump_psymtab): Update.
14765 * psympriv.h (struct partial_symtab): Add virtual destructor.
14766 <read_symtab>: New method.
14767 (struct legacy_symtab): New.
14768 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14769 (struct pst_map) <pst>: Now a legacy_psymtab.
14770 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14771 (new_psymtab): Use legacy_psymtab.
14772 * dwarf2read.h (struct dwarf2_psymtab): New.
14773 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14774 * dwarf2read.c (dwarf2_create_include_psymtab)
14775 (dwarf2_build_include_psymtabs, create_type_unit_group)
14776 (create_partial_symtab, process_psymtab_comp_unit_reader)
14777 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14778 (set_partial_user): Use dwarf2_psymtab.
14779 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14780 (psymtab_to_symtab_1, process_full_comp_unit)
14781 (process_full_type_unit, dwarf2_ranges_read)
14782 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14783 (dwarf_decode_lines): Use dwarf2_psymtab.
14784 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14785 (add_address_entry_worker, write_one_signatured_type)
14786 (recursively_count_psymbols, recursively_write_psymbols)
14787 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14788 (write_debug_names): Likewise.
14789 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14790 <pst>: Now a legacy_psymtab.
14791 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14792 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14793 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14794 * ctfread.c (struct ctf_psymtab): New.
14795 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14796 ctf_psymtab.
14797 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14798 (create_partial_symtab): Return a ctf_psymtab.
14799 (scan_partial_symbols): Update.
14800
c3693a1d
TT
148012020-01-26 Tom Tromey <tom@tromey.com>
14802
14803 * xcoffread.c (xcoff_start_psymtab): Use new.
14804 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14805 renamed from start_psymtab_common.
14806 * psympriv.h (struct partial_symtab): Add new constructor.
14807 (start_psymtab_common): Don't declare.
14808 * mdebugread.c (parse_partial_symbols): Use new.
14809 * dwarf2read.c (create_partial_symtab): Use new.
14810 * dbxread.c (start_psymtab): Use new.
14811 * ctfread.c (create_partial_symtab): Use new.
14812
32caafd0
TT
148132020-01-26 Tom Tromey <tom@tromey.com>
14814
14815 * xcoffread.c (xcoff_end_psymtab): Use new.
14816 * psymtab.c (start_psymtab_common): Use new.
14817 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14818 Update.
14819 * psympriv.h (struct partial_symtab): Add parameters to
14820 constructor. Don't inline.
14821 (allocate_psymtab): Don't declare.
14822 * mdebugread.c (new_psymtab): Use new.
14823 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14824 * dbxread.c (dbx_end_psymtab): Use new.
14825
abaa2f23
TT
148262020-01-26 Tom Tromey <tom@tromey.com>
14827
14828 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14829 allocate_psymtab. Update documentation.
14830 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14831 allocate_psymtab. Do not use new.
14832 (allocate_psymtab): Use new. Update.
14833
6d94535f
TT
148342020-01-26 Tom Tromey <tom@tromey.com>
14835
14836 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14837 * psymtab.c (psym_print_stats): Update.
14838 * psympriv.h (struct partial_symtab) <readin,
14839 psymtabs_addrmap_supported, anonymous>: Now bool.
14840 * mdebugread.c (psymtab_to_symtab_1): Update.
14841 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14842 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14843 (process_full_comp_unit, process_full_type_unit): Update.
14844 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14845 * ctfread.c (psymtab_to_symtab): Update.
14846
6f17252b
TT
148472020-01-26 Tom Tromey <tom@tromey.com>
14848
14849 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14850 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14851 * psymtab.c (psymtab_storage): Delete psymtabs.
14852 (psymtab_storage::allocate_psymtab): Use new.
14853 (psymtab_storage::discard_psymtab): Use delete.
14854 * psympriv.h (struct partial_symtab): Add constructor and
14855 initializers.
14856
f6f1cebc
TT
148572020-01-26 Tom Tromey <tom@tromey.com>
14858
14859 * machoread.c: Do not include psympriv.h.
14860
e47e48f6
PW
148612020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14862
14863 * NEWS: Mention the new option and the set/show commands.
14864
a2fedca9
PW
148652020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14866
14867 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14868 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14869 (validate_exec_file): New variables, enums, functions.
14870 (exec_file_locate_attach, print_section_info): Style the filenames.
14871 (_initialize_exec): Install show_exec_file_mismatch_command and
14872 set_exec_file_mismatch_command.
14873 * gdbcore.h (validate_exec_file): Declare.
14874 * infcmd.c (attach_command): Call validate_exec_file.
14875 * remote.c ( remote_target::remote_add_inferior): Likewise.
14876
7ffa82e1
AB
148772020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14878
14879 * frame.c (find_frame_sal): Move call to get_next_frame into more
14880 inner scope.
14881 * inline-frame.c (inilne_state) <inline_state>: Update argument
14882 types.
14883 (inilne_state) <skipped_symbol>: Rename to...
14884 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14885 (skip_inline_frames): Build vector of skipped symbols and use this
14886 to reate the inline_state.
14887 (inline_skipped_symbol): Add a comment and some assertions, fetch
14888 skipped symbol from the list.
14889
3d92a3e3
AB
148902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14891
14892 * buildsym.c (lte_is_less_than): Delete.
14893 (buildsym_compunit::end_symtab_with_blockvector): Create local
14894 lambda function to sort line table entries, and use
14895 std::stable_sort instead of std::sort.
14896 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14897 markers when looking for a previous line.
14898
94a72be7
AB
148992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14900
14901 * dwarf2read.c (lnp_state_machine::record_line): Include
14902 end_sequence parameter in debug print out. Record the line if we
14903 are at an end_sequence marker even if it's not the start of a
14904 statement.
14905 * symmisc.c (maintenance_print_one_line_table): Print end of
14906 sequence markers with 'END' not '0'.
14907
53af73bf
PA
149082020-01-24 Pedro Alves <palves@redhat.com>
14909
14910 PR gdb/25410
14911 * thread.c (scoped_restore_current_thread::restore): Use
14912 switch_to_inferior_no_thread.
14913 * exec.c: Include "progspace-and-thread.h".
14914 (add_target_sections, remove_target_sections):
14915 scoped_restore_current_pspace_and_thread instead of
14916 scoped_restore_current_thread.
14917 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14918 and aspace to the inferior before calling clone_program_space.
14919 Remove stale comment.
14920
3050c6f4
CB
149212020-01-24 Christian Biesinger <cbiesinger@google.com>
14922
14923 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14924 (arm_netbsd_nat_target::fetch_registers): ...this.
14925 (arm_nbsd_nat_target::store_registers): Rename to...
14926 (arm_netbsd_nat_target::store_registers): ...this.
14927
73685c7e
CB
149282020-01-24 Christian Biesinger <cbiesinger@google.com>
14929
14930 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14931 register_t.
14932
89203d40
CB
149332020-01-24 Christian Biesinger <cbiesinger@google.com>
14934
14935 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14936 Update comment.
14937 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14938 Likewise.
14939 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14940 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14941 the correct replacement (iterate_over_regset_sections).
14942 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14943 Update comment.
14944
1ba1ac88
AB
149452020-01-24 Graham Markall <graham.markall@embecosm.com>
14946
14947 PR gdb/23718
14948 * gdb/python/python.c (execute_gdb_command): Call
14949 async_enable_stdin in catch block.
14950
f3364a6d
AB
149512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14952
14953 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14954 SWITCH_THRU_ALL_UIS.
14955
733d0a67
AB
149562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14957
14958 PR tui/9765
14959 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14960 comment, add extra parameter, and update to store previous symbol
14961 when appropriate.
14962 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14963 add extra parameter.
14964 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14965 remove unneeded parameter, add try/catch around gdb_print_insn,
14966 rewrite to add items to asm_lines vector.
14967 (tui_find_backward_disassembly_start_address): New function.
14968 (tui_find_disassembly_address): Updated throughout.
14969 (tui_disasm_window::set_contents): Update for changes to
14970 tui_disassemble.
14971 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14972 number of lines to scroll.
14973
b3b3bada
SM
149742020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14975
14976 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14977 (SECT_OFF_DATA): Likewise.
14978 (SECT_OFF_RODATA): Likewise.
14979 (SECT_OFF_TEXT): Likewise.
14980 (SECT_OFF_BSS): Likewise.
14981 (struct objfile) <text_section_offset, data_section_offset>: New
14982 methods.
14983 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14984 objfile::text_section_offset.
14985 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14986 * coffread.c (coff_symtab_read): Likewise.
14987 (enter_linenos): Likewise.
14988 (process_coff_symbol): Likewise.
14989 * ctfread.c (get_objfile_text_range): Likewise.
14990 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14991 Use objfile::data_section_offset.
14992 * dwarf2-frame.c (execute_cfa_program): Use
14993 objfile::text_section_offset.
14994 (dwarf2_frame_find_fde): Likewise.
14995 * dwarf2read.c (create_addrmap_from_index): Likewise.
14996 (create_addrmap_from_aranges): Likewise.
14997 (dw2_find_pc_sect_compunit_symtab): Likewise.
14998 (process_psymtab_comp_unit_reader): Likewise.
14999 (add_partial_symbol): Likewise.
15000 (add_partial_subprogram): Likewise.
15001 (process_full_comp_unit): Likewise.
15002 (read_file_scope): Likewise.
15003 (read_func_scope): Likewise.
15004 (read_lexical_block_scope): Likewise.
15005 (read_call_site_scope): Likewise.
15006 (dwarf2_rnglists_process): Likewise.
15007 (dwarf2_ranges_process): Likewise.
15008 (dwarf2_ranges_read): Likewise.
15009 (dwarf_decode_lines_1): Likewise.
15010 (new_symbol): Likewise.
15011 (dwarf2_fetch_die_loc_sect_off): Likewise.
15012 (dwarf2_per_cu_text_offset): Likewise.
15013 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15014 * hppa-tdep.c (read_unwind_info): Likewise.
15015 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15016 * psympriv.h (struct partial_symtab): Likewise.
15017 * psymtab.c (find_pc_sect_psymtab): Likewise.
15018 * solib-svr4.c (enable_break): Likewise.
15019 * stap-probe.c (relocate_address): Use
15020 objfile::data_section_offset.
15021 * xcoffread.c (enter_line_range): Use
15022 objfile::text_section_offset.
15023 (read_xcoff_symtab): Likewise.
15024
ab53f382
SM
150252020-01-23 Simon Marchi <simon.marchi@efficios.com>
15026
15027 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15028 declaration to narrower scopes.
15029
e7eee665
SM
150302020-01-23 Simon Marchi <simon.marchi@efficios.com>
15031
15032 * darwin-nat.h (struct darwin_exception_msg, enum
15033 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15034 Move up.
15035 (class darwin_nat_target) <wait_1, check_new_threads,
15036 decode_exception_message, decode_message, stop_inferior,
15037 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15038 * darwin-nat.c (darwin_check_new_threads): Rename to...
15039 (darwin_nat_target::check_new_threads): ... this.
15040 (darwin_suspend_inferior_it): Remove.
15041 (darwin_decode_exception_message): Rename to...
15042 (darwin_nat_target::decode_exception_message): ... this.
15043 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15044 (darwin_decode_message): Rename to...
15045 (darwin_nat_target::decode_message): ... this.
15046 (cancel_breakpoint): Rename to...
15047 (darwin_nat_target::cancel_breakpoint): ... this.
15048 (darwin_wait): Rename to...
15049 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15050 instead of iterate_over_inferiors.
15051 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15052 (darwin_stop_inferior): Rename to...
15053 (darwin_nat_target::stop_inferior): ... this.
15054 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15055 (darwin_init_thread_list): Rename to...
15056 (darwin_nat_target::init_thread_list): ... this.
15057 (darwin_ptrace_him): Rename to...
15058 (darwin_nat_target::ptrace_him): ... this.
15059 (darwin_nat_target::create_inferior): Pass lambda function to
15060 fork_inferior.
15061 (darwin_nat_target::detach): Call stop_inferior instead of
15062 darwin_stop_inferior.
15063 * fork-inferior.h (fork_inferior): Change init_trace_fun
15064 parameter to gdb::function_view.
15065 * fork-inferior.c (fork_inferior): Likewise.
15066
c162ed3e
HD
150672020-01-23 Hannes Domani <ssbssa@yahoo.de>
15068
15069 * i386-cygwin-tdep.c (core_process_module_section): Update.
15070 * windows-nat.c (struct lm_info_windows): Add text_offset.
15071 (windows_xfer_shared_libraries): Update.
15072 * windows-tdep.c (windows_xfer_shared_library):
15073 Add text_offset_cached argument.
15074 * windows-tdep.h (windows_xfer_shared_library): Update.
15075
a1237872
SM
150762020-01-21 Simon Marchi <simon.marchi@efficios.com>
15077
15078 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15079
b3ee6dd9
SM
150802020-01-21 Simon Marchi <simon.marchi@efficios.com>
15081
15082 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15083 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15084 replace with range-based for.
15085 (gdbsim_interrupt_inferior): Remove.
15086 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15087 with a range-based for. Inline code from
15088 gdbsim_interrupt_inferior.
15089
f9fac3c8
SM
150902020-01-21 Simon Marchi <simon.marchi@efficios.com>
15091
15092 * infrun.c (proceed): Fix indentation.
15093
f6474de9
TT
150942020-01-21 Tom Tromey <tromey@adacore.com>
15095
15096 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15097 * python/python.c (python_extension_ops): Update.
15098 (gdbpy_colorize): New function.
15099 * python/lib/gdb/__init__.py (colorize): New function.
15100 * extension.h (ext_lang_colorize): Declare.
15101 * extension.c (ext_lang_colorize): New function.
15102 * extension-priv.h (struct extension_language_ops) <colorize>: New
15103 member.
15104 * cli/cli-style.c (_initialize_cli_style): Update help text.
15105
f0c702d4
LM
151062020-01-21 Luis Machado <luis.machado@linaro.org>
15107
15108 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15109 <cond>: Change type to bool.
15110 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15111 (aarch64_displaced_step_cb): Likewise.
15112 (aarch64_displaced_step_tb): Likewise.
15113
1ab139e5
LM
151142020-01-21 Luis Machado <luis.machado@linaro.org>
15115
15116 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15117 output.
15118
0c271889
LM
151192020-01-21 Luis Machado <luis.machado@linaro.org>
15120
15121 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15122 <pc_adjust>: Adjust the documentation.
15123 (aarch64_displaced_step_fixup): Check if PC really moved before
15124 adjusting it.
15125
4d89c1c7
TT
151262020-01-19 Tom Tromey <tom@tromey.com>
15127
15128 * disasm.c (~gdb_disassembler): New destructor.
15129 (gdb_buffered_insn_length): Call disassemble_free_target.
15130 * disasm.h (class gdb_disassembler): Declare destructor. Use
15131 DISABLE_COPY_AND_ASSIGN.
15132
c0ab21c2
TT
151332020-01-19 Tom Tromey <tom@tromey.com>
15134
15135 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15136 (die_reader_func_ftype): Remove.
15137 (cutu_reader): New class.
15138 (dw2_get_file_names_reader): Remove "data" parameter.
15139 (dw2_get_file_names): Use cutu_reader.
15140 (create_debug_type_hash_table): Update.
15141 (read_cutu_die_from_dwo): Update comment.
15142 (lookup_dwo_unit): Add dwo_name parameter.
15143 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15144 die_reader_func_ftype and data parameters.
15145 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15146 Remove die_reader_func_ftype and data parameters.
15147 (~cutu_reader): New; from init_cutu_and_read_dies.
15148 (cutu_reader::cutu_reader): Rename from
15149 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15150 and data parameters.
15151 (init_cutu_and_read_dies_simple): Remove.
15152 (struct process_psymtab_comp_unit_data): Remove.
15153 (process_psymtab_comp_unit_reader): Remove data parameter; add
15154 want_partial_unit and pretend_language parameters.
15155 (process_psymtab_comp_unit): Use cutu_reader.
15156 (build_type_psymtabs_reader): Remove data parameter.
15157 (build_type_psymtabs_1): Use cutu_reader.
15158 (process_skeletonless_type_unit): Likewise.
15159 (load_partial_comp_unit_reader): Remove.
15160 (load_partial_comp_unit): Use cutu_reader.
15161 (load_full_comp_unit_reader): Remove.
15162 (load_full_comp_unit): Use cutu_reader.
15163 (struct create_dwo_cu_data): Remove.
15164 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15165 dwo_unit parameters.
15166 (create_cus_hash_table): Use cutu_reader.
15167 (struct dwarf2_read_addr_index_data): Remove.
15168 (dwarf2_read_addr_index_reader): Remove.
15169 (dwarf2_read_addr_index): Use cutu_reader.
15170 (read_signatured_type_reader): Remove.
15171 (read_signatured_type): Use cutu_reader.
15172
45bbae5c
TT
151732020-01-19 Tom Tromey <tom@tromey.com>
15174
15175 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15176 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15177 (tui_wrefresh): Declare.
15178 * tui/tui-wingeneral.c (suppress_output): New global.
15179 (tui_suppress_output, ~tui_suppress_output): New constructor and
15180 destructor.
15181 (tui_wrefresh): New function.
15182 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15183 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15184 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15185 method.
15186 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15187 tui_wrefresh.
15188 (tui_data_window::no_refresh): New method.
15189 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15190 (tui_reg_command): Use tui_suppress_output
15191 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15192 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15193 method.
15194 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15195
4f13c1c0
TT
151962020-01-19 Tom Tromey <tom@tromey.com>
15197
15198 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15199 Handle case where symtab is null.
15200
fa47e446
SM
152012020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15202
15203 * linux-fork.c (one_fork_p): Simplify.
15204
26f42329
SM
152052020-01-17 Simon Marchi <simon.marchi@efficios.com>
15206
15207 * top.c (struct qt_args): Remove.
15208 (kill_or_detach): Change return type to void, replace `void *`
15209 parameter with a proper one.
15210 (print_inferior_quit_action): Likewise.
15211 (quit_confirm): Use range-based for loop to iterate over inferiors.
15212 (quit_force): Likewise.
15213
a9ac81b1
SM
152142020-01-17 Simon Marchi <simon.marchi@efficios.com>
15215
15216 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15217 `void *` parameter with proper parameters.
15218 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15219 (print_one_inferior): Change return type to void, replace `void *`
15220 parameter with proper parameters.
15221 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15222 inferiors.
15223 (get_other_inferior): Remove.
15224 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15225 inferiors.
15226
788eca49
SM
152272020-01-17 Simon Marchi <simon.marchi@efficios.com>
15228
15229 * mi/mi-interp.c (report_initial_inferior): Remove.
15230 (mi_interp::init): Use range-based for to iterate over inferiors.
15231
d9bc85b6
SM
152322020-01-17 Simon Marchi <simon.marchi@efficios.com>
15233
15234 * python/py-inferior.c (build_inferior_list): Remove.
15235 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15236
40c94099
CB
152372020-01-16 Christian Biesinger <cbiesinger@google.com>
15238
15239 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15240 (btrace_stitch_trace): Likewise.
15241 * charset.c (intermediate_encoding): Likewise (vaild).
15242 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15243 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15244 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15245
e0cdfe3c
HD
152462020-01-16 Hannes Domani <ssbssa@yahoo.de>
15247
15248 * windows-tdep.c (windows_get_tlb_type):
15249 Add rtl_user_process_parameters type.
15250
790f1718 152512020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15252 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15253
15254 PR build/24805
15255 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15256 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15257 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15258 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15259 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15260 (ps_plog): Redeclare exported functions with default visibility.
15261
3112ed97
NA
152622020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15263
15264 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15265 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15266
8dc3273e
SM
152672020-01-15 Simon Marchi <simon.marchi@efficios.com>
15268
15269 * infcmd.c (post_create_inferior): Use get_thread_regcache
15270 instead of get_current_regcache.
15271
ff47f4f0
TT
152722020-01-14 Tom Tromey <tom@tromey.com>
15273
15274 PR symtab/12535:
15275 * python/python.c (gdbpy_decode_line): Treat empty string the same
15276 as no argument.
15277
975f45b7
TT
152782020-01-14 Tom Tromey <tom@tromey.com>
15279
15280 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15281
25e57356
TT
152822020-01-14 Tom Tromey <tom@tromey.com>
15283
15284 * nat/linux-btrace.c: Don't include <config.h>.
15285 * nat/linux-ptrace.c: Don't include <config.h>.
15286 * nat/x86-linux-dregs.c: Don't include <config.h>.
15287
05ea2a05
TT
152882020-01-14 Tom Tromey <tom@tromey.com>
15289
15290 * configure: Rebuild.
15291 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15292
01027315
TT
152932020-01-14 Tom Tromey <tom@tromey.com>
15294
15295 * nat/x86-linux-dregs.c: Include configh.h.
15296 * nat/linux-ptrace.c: Include configh.h.
15297 * nat/linux-btrace.c: Include configh.h.
15298 * defs.h: Include config.h, bfd.h.
15299 * configure.ac: Don't source common.host.
15300 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15301 * configure: Rebuild.
15302 * acinclude.m4: Update path.
15303 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15304 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15305 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15306 (CLIBS): Add LIBSUPPORT.
15307 (CDEPS): Likewise.
15308 (COMMON_SFILES): Remove gdbsupport files.
15309 (HFILES_NO_SRCDIR): Likewise.
15310 (stamp-version): Update path to create-version.sh.
15311 (ALLDEPFILES): Remove gdbsupport files.
15312
b2ceabe8
TT
153132020-01-14 Tom Tromey <tom@tromey.com>
15314
15315 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15316 USE_WIN32API when needed.
15317 * configure.ac (USE_WIN32API): Don't define.
15318 (WIN32LIBS): Use WIN32APILIBS.
15319 * configure: Rebuild.
15320
25c51f71
TT
153212020-01-14 Tom Tromey <tom@tromey.com>
15322
15323 * configure: Rebuild.
15324 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15325
717c684d
BE
153262020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15327
15328 * skip.c (skip_function_command): Make skip w/o arguments use the
15329 name of the inlined function if pc is inside any inlined function.
15330
7da6a5b9
LM
153312020-01-14 Luis Machado <luis.machado@linaro.org>
15332
15333 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15334 * infrun.c (resume_1): Likewise.
15335 (handle_inferior_event): Remove stale comment.
15336 * linux-nat.c (linux_nat_target::resume): Update comments.
15337 (save_stop_reason): Likewise.
15338 (linux_nat_filter_event): Likewise.
15339 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15340
44e4c775
AB
153412020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15342
15343 * elfread.c (record_minimal_symbol): Set section index to 0 for
15344 non-allocatable sections.
15345
18a8505e
AT
15346
153472020-01-13 Ali Tamur <tamur@google.com>
15348
15349 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15350 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15351 to gdb::optional. Update comments.
15352 (dwo_file): Update comments.
15353 (read_attribute): Update API to take an additional out parameter,
15354 need_reprocess. This is used to mark attributes that need other
15355 attributes (e.g. str_offsets_base) for correct computation which may not
15356 have been read yet.
15357 (read_attribute_reprocess): New function declaration.
15358 (read_addr_index): Likewise.
15359 (read_dwo_str_index): Likewise.
15360 (read_stub_str_index): Likewise.
15361 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15362 (lookup_addr_base): New function definition.
15363 (lookup_ranges_base): Likewise.
15364 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15365 lookup_ranges_base.
15366 (init_cutu_and_read_dies): Update comments.
15367 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15368 unit. This is used to inherit parent's str_offsets_base and addr_base.
15369 Update comments.
15370 (init_cutu_and_read_dies_simple): Reflect API changes.
15371 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15372 (create_cus_hash_table): Change API to take parent compile unit.
15373 Reflect API changes.
15374 (open_and_init_dwo_file): Reflect API changes.
15375 (dwarf2_get_pc_bounds): Update comments.
15376 (dwarf2_record_block_ranges): Likewise.
15377 (read_full_die_1): Change implementation to reprocess attributes that
15378 need str_offsets_base and addr_base.
15379 (partial_die_info::read): Likewise.
15380 (read_attribute_reprocess): New function definition.
15381 (read_attribute_value): Change API to take an additional out parameter,
15382 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15383 when a non-dwo compile unit has index based attributes.
15384 (read_attribute): Reflect API changes.
15385 (read_addr_index_1): Reflect API changes. Update comments.
15386 (dwarf2_read_addr_index_data): Reflect API changes.
15387 (dwarf2_read_addr_index): Likewise.
15388 (read_str_index): Change API and implementation. This becomes a helper
15389 to be used by the new string index related methods. Update error
15390 message and comments.
15391 (read_dwo_str_index): New function definition.
15392 (read_stub_str_index): Likewise.
15393 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15394 * symfile.h (dwarf2_debug_sections): Likewise.
15395 * xcoffread.c (dwarf2_debug_sections): Likewise.
15396
0cac9354
SM
153972020-01-13 Simon Marchi <simon.marchi@efficios.com>
15398
15399 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15400 core_reg_sect type to gdb_byte *.
15401 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15402 * cris-tdep.c (fetch_core_registers): Likewise.
15403 * corelow.c (core_target::get_core_register_section): Change
15404 type of `contents` to gdb::byte_vector.
15405
9a6d629c
AB
154062020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15407
15408 * tui/tui-wingeneral.c (box_win): Position the title in the center
15409 of the border.
15410
d8b2f9e3
SM
154112020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15412
15413 * corelow.c (core_target::get_core_register_section): Use
15414 std::vector instead of alloca.
15415
bb564c58
SM
154162020-01-13 Simon Marchi <simon.marchi@efficios.com>
15417
15418 * warning.m4: Add -Wmissing-declarations to build_warnings.
15419 * configure: Re-generate.
15420
6b366111
SM
154212020-01-13 Simon Marchi <simon.marchi@efficios.com>
15422
15423 * python/python.c (init__gdb_module): Add declaration.
15424
6c265988
SM
154252020-01-13 Simon Marchi <simon.marchi@efficios.com>
15426
15427 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15428 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15429 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15430 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15431 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15432 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15433 * ada-exp.y (_initialize_ada_exp): Add declaration.
15434 * ada-lang.c (_initialize_ada_language): Add declaration.
15435 * ada-tasks.c (_initialize_tasks): Add declaration.
15436 * agent.c (_initialize_agent): Add declaration.
15437 * aix-thread.c (_initialize_aix_thread): Add declaration.
15438 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15439 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15440 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15441 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15442 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15443 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15444 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15445 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15446 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15447 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15448 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15449 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15450 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15451 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15452 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15453 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15454 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15455 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15456 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15457 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15458 * annotate.c (_initialize_annotate): Add declaration.
15459 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15460 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15461 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15462 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15463 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15464 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15465 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15466 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15467 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15468 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15469 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15470 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15471 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15472 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15473 * auto-load.c (_initialize_auto_load): Add declaration.
15474 * auxv.c (_initialize_auxv): Add declaration.
15475 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15476 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15477 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15478 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15479 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15480 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15481 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15482 * breakpoint.c (_initialize_breakpoint): Add declaration.
15483 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15484 * btrace.c (_initialize_btrace): Add declaration.
15485 * charset.c (_initialize_charset): Add declaration.
15486 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15487 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15488 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15489 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15490 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15491 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15492 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15493 * coffread.c (_initialize_coffread): Add declaration.
15494 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15495 * compile/compile.c (_initialize_compile): Add declaration.
15496 * complaints.c (_initialize_complaints): Add declaration.
15497 * completer.c (_initialize_completer): Add declaration.
15498 * copying.c (_initialize_copying): Add declaration.
15499 * corefile.c (_initialize_core): Add declaration.
15500 * corelow.c (_initialize_corelow): Add declaration.
15501 * cp-abi.c (_initialize_cp_abi): Add declaration.
15502 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15503 * cp-support.c (_initialize_cp_support): Add declaration.
15504 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15505 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15506 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15507 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15508 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15509 * ctfread.c (_initialize_ctfread): Add declaration.
15510 * d-lang.c (_initialize_d_language): Add declaration.
15511 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15512 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15513 * dbxread.c (_initialize_dbxread): Add declaration.
15514 * dcache.c (_initialize_dcache): Add declaration.
15515 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15516 * disasm.c (_initialize_disasm): Add declaration.
15517 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15518 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15519 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15520 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15521 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15522 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15523 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15524 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15525 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15526 * elfread.c (_initialize_elfread): Add declaration.
15527 * exec.c (_initialize_exec): Add declaration.
15528 * extension.c (_initialize_extension): Add declaration.
15529 * f-lang.c (_initialize_f_language): Add declaration.
15530 * f-valprint.c (_initialize_f_valprint): Add declaration.
15531 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15532 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15533 * filesystem.c (_initialize_filesystem): Add declaration.
15534 * findcmd.c (_initialize_mem_search): Add declaration.
15535 * findvar.c (_initialize_findvar): Add declaration.
15536 * fork-child.c (_initialize_fork_child): Add declaration.
15537 * frame-base.c (_initialize_frame_base): Add declaration.
15538 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15539 * frame.c (_initialize_frame): Add declaration.
15540 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15541 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15542 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15543 * gcore.c (_initialize_gcore): Add declaration.
15544 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15545 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15546 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15547 * gdbarch.c (_initialize_gdbarch): Add declaration.
15548 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15549 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15550 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15551 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15552 * go-lang.c (_initialize_go_language): Add declaration.
15553 * go32-nat.c (_initialize_go32_nat): Add declaration.
15554 * guile/guile.c (_initialize_guile): Add declaration.
15555 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15556 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15557 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15558 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15559 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15560 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15561 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15562 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15563 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15564 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15565 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15566 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15567 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15568 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15569 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15570 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15571 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15572 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15573 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15574 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15575 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15576 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15577 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15578 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15579 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15580 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15581 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15582 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15583 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15584 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15585 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15586 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15587 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15588 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15589 * infcall.c (_initialize_infcall): Add declaration.
15590 * infcmd.c (_initialize_infcmd): Add declaration.
15591 * inflow.c (_initialize_inflow): Add declaration.
15592 * infrun.c (_initialize_infrun): Add declaration.
15593 * interps.c (_initialize_interpreter): Add declaration.
15594 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15595 * jit.c (_initialize_jit): Add declaration.
15596 * language.c (_initialize_language): Add declaration.
15597 * linux-fork.c (_initialize_linux_fork): Add declaration.
15598 * linux-nat.c (_initialize_linux_nat): Add declaration.
15599 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15600 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15601 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15602 * m2-lang.c (_initialize_m2_language): Add declaration.
15603 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15604 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15605 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15606 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15607 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15608 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15609 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15610 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15611 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15612 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15613 * machoread.c (_initialize_machoread): Add declaration.
15614 * macrocmd.c (_initialize_macrocmd): Add declaration.
15615 * macroscope.c (_initialize_macroscope): Add declaration.
15616 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15617 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15618 * maint.c (_initialize_maint_cmds): Add declaration.
15619 * mdebugread.c (_initialize_mdebugread): Add declaration.
15620 * memattr.c (_initialize_mem): Add declaration.
15621 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15622 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15623 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15624 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15625 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15626 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15627 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15628 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15629 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15630 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15631 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15632 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15633 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15634 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15635 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15636 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15637 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15638 * mipsread.c (_initialize_mipsread): Add declaration.
15639 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15640 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15641 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15642 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15643 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15644 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15645 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15646 * nto-procfs.c (_initialize_procfs): Add declaration.
15647 * objc-lang.c (_initialize_objc_language): Add declaration.
15648 * observable.c (_initialize_observer): Add declaration.
15649 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15650 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15651 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15652 * osabi.c (_initialize_gdb_osabi): Add declaration.
15653 * osdata.c (_initialize_osdata): Add declaration.
15654 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15655 * parse.c (_initialize_parse): Add declaration.
15656 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15657 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15658 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15659 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15660 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15661 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15662 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15663 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15664 * printcmd.c (_initialize_printcmd): Add declaration.
15665 * probe.c (_initialize_probe): Add declaration.
15666 * proc-api.c (_initialize_proc_api): Add declaration.
15667 * proc-events.c (_initialize_proc_events): Add declaration.
15668 * proc-service.c (_initialize_proc_service): Add declaration.
15669 * procfs.c (_initialize_procfs): Add declaration.
15670 * producer.c (_initialize_producer): Add declaration.
15671 * psymtab.c (_initialize_psymtab): Add declaration.
15672 * python/python.c (_initialize_python): Add declaration.
15673 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15674 * record-btrace.c (_initialize_record_btrace): Add declaration.
15675 * record-full.c (_initialize_record_full): Add declaration.
15676 * record.c (_initialize_record): Add declaration.
15677 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15678 * regcache.c (_initialize_regcache): Add declaration.
15679 * reggroups.c (_initialize_reggroup): Add declaration.
15680 * remote-notif.c (_initialize_notif): Add declaration.
15681 * remote-sim.c (_initialize_remote_sim): Add declaration.
15682 * remote.c (_initialize_remote): Add declaration.
15683 * reverse.c (_initialize_reverse): Add declaration.
15684 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15685 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15686 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15687 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15688 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15689 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15690 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15691 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15692 Add declaration.
15693 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15694 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15695 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15696 * rust-exp.y (_initialize_rust_exp): Add declaration.
15697 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15698 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15699 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15700 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15701 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15702 * score-tdep.c (_initialize_score_tdep): Add declaration.
15703 * ser-go32.c (_initialize_ser_dos): Add declaration.
15704 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15705 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15706 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15707 * ser-uds.c (_initialize_ser_socket): Add declaration.
15708 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15709 * serial.c (_initialize_serial): Add declaration.
15710 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15711 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15712 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15713 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15714 * skip.c (_initialize_step_skip): Add declaration.
15715 * sol-thread.c (_initialize_sol_thread): Add declaration.
15716 * solib-aix.c (_initialize_solib_aix): Add declaration.
15717 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15718 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15719 * solib-frv.c (_initialize_frv_solib): Add declaration.
15720 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15721 * solib-target.c (_initialize_solib_target): Add declaration.
15722 * solib.c (_initialize_solib): Add declaration.
15723 * source-cache.c (_initialize_source_cache): Add declaration.
15724 * source.c (_initialize_source): Add declaration.
15725 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15726 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15727 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15728 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15729 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15730 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15731 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15732 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15733 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15734 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15735 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15736 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15737 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15738 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15739 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15740 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15741 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15742 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15743 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15744 * stabsread.c (_initialize_stabsread): Add declaration.
15745 * stack.c (_initialize_stack): Add declaration.
15746 * stap-probe.c (_initialize_stap_probe): Add declaration.
15747 * std-regs.c (_initialize_frame_reg): Add declaration.
15748 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15749 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15750 * symfile.c (_initialize_symfile): Add declaration.
15751 * symmisc.c (_initialize_symmisc): Add declaration.
15752 * symtab.c (_initialize_symtab): Add declaration.
15753 * target.c (_initialize_target): Add declaration.
15754 * target-connection.c (_initialize_target_connection): Add
15755 declaration.
15756 * target-dcache.c (_initialize_target_dcache): Add declaration.
15757 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15758 * thread.c (_initialize_thread): Add declaration.
15759 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15760 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15761 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15762 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15763 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15764 * tracectf.c (_initialize_ctf): Add declaration.
15765 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15766 * tracefile.c (_initialize_tracefile): Add declaration.
15767 * tracepoint.c (_initialize_tracepoint): Add declaration.
15768 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15769 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15770 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15771 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15772 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15773 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15774 * tui/tui.c (_initialize_tui): Add declaration.
15775 * typeprint.c (_initialize_typeprint): Add declaration.
15776 * ui-style.c (_initialize_ui_style): Add declaration.
15777 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15778 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15779 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15780 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15781 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15782 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15783 * unittests/filtered_iterator-selftests.c
15784 (_initialize_filtered_iterator_selftests): Add declaration.
15785 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15786 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15787 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15788 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15789 * unittests/main-thread-selftests.c
15790 (_initialize_main_thread_selftests): Add declaration.
15791 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15792 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15793 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15794 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15795 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15796 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15797 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15798 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15799 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15800 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15801 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15802 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15803 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15804 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15805 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15806 declaration.
15807 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15808 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15809 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15810 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15811 * user-regs.c (_initialize_user_regs): Add declaration.
15812 * utils.c (_initialize_utils): Add declaration.
15813 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15814 * valops.c (_initialize_valops): Add declaration.
15815 * valprint.c (_initialize_valprint): Add declaration.
15816 * value.c (_initialize_values): Add declaration.
15817 * varobj.c (_initialize_varobj): Add declaration.
15818 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15819 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15820 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15821 * windows-nat.c (_initialize_windows_nat): Add declaration.
15822 (_initialize_check_for_gdb_ini): Add declaration.
15823 (_initialize_loadable): Add declaration.
15824 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15825 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15826 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15827 * xcoffread.c (_initialize_xcoffread): Add declaration.
15828 * xml-support.c (_initialize_xml_support): Add declaration.
15829 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15830 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15831 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15832 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15833
e2de1eec
SM
158342020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15835
15836 * regformats/regdat.sh: Generate declaration for init function.
15837
e0037b4c
SM
158382020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15839
15840 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15841 up.
15842 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15843 close_one_inferior>: New methods.
15844 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15845 pass down target to find_inferior_pid.
15846 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15847 Pass down target to find_inferior_ptid.
15848 (gdbsim_target::create_inferior): Pass down target to
15849 add_thread_silent.
15850 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15851 target down to find_inferior_ptid and switch_to_thread.
15852 (gdbsim_target::close): Update to call close_one_inferior.
15853 (struct resume_data): Remove.
15854 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15855 directly, rather than through a void pointer.
15856 (gdbsim_target::resume): Update to call resume_one_inferior.
15857
58920b5b
SM
158582020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15859
15860 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15861
4ec89149
PA
158622020-01-12 Pedro Alves <palves@redhat.com>
15863
15864 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15865 directly for the current inferior instead of
15866 discard_all_inferiors.
15867 (discard_all_inferiors): Delete.
15868
7c392d1d
TT
158692020-01-11 Tom Tromey <tom@tromey.com>
15870
15871 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15872 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15873 deprecated_safe_get_selected_frame.
15874
d9ebdab7
TBA
158752020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15876
15877 * inferior.c (print_inferior): Switch inferior before printing it.
15878
f3c469b9
PA
158792020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15880 Pedro Alves <palves@redhat.com>
15881
15882 * progspace-and-thread.c (switch_to_program_space_and_thread):
15883 Assert there's an inferior for PSPACE. Use
15884 switch_to_inferior_no_thread to switch the inferior too.
15885 * progspace.c (program_space::~program_space): Call
15886 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15887 (program_space::free_all_objfiles): Don't call clear_symtab_users
15888 here.
15889 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15890
65c574f6
PA
158912020-01-10 Pedro Alves <palves@redhat.com>
15892
15893 * NEWS: Mention multi-target debugging, "info connections", and
15894 "add-inferior -no-connection".
15895
2f4fcf00
PA
158962020-01-10 Pedro Alves <palves@redhat.com>
15897
15898 * infrun.c: Include "target-connection.h".
15899 (check_multi_target_resumption): New.
15900 (proceed): Call it.
15901 * target-connection.c (make_target_connection_string): Make
15902 extern.
15903 * target-connection.h (make_target_connection_string): Declare.
15904
121b3efd
PA
159052020-01-10 Pedro Alves <palves@redhat.com>
15906
15907 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15908 * inferior.c (uiout_field_connection): New function.
15909 (print_inferior): Add new "connection-id" column.
15910 (add_inferior_command): Show connection number/string of added
15911 inferior.
15912 * process-stratum-target.h
15913 (process_stratum_target::connection_string): New virtual method.
15914 (process_stratum_target::connection_number): New field.
15915 * remote.c (remote_target::connection_string): New override.
15916 * target-connection.c: New file.
15917 * target-connection.h: New file.
15918 * target.c (decref_target): Remove process_stratum targets from
15919 the connection list.
15920 (target_stack::push): Add process_stratum targets to the
15921 connection list.
15922
4f837581
PA
159232020-01-10 Pedro Alves <palves@redhat.com>
15924
15925 Revert:
15926 2016-04-12 Pedro Alves <palves@redhat.com>
15927 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15928 Remove references to name.
15929 * serial.h (struct serial) <name>: Delete.
15930
f4ec508e
PA
159312020-01-10 Pedro Alves <palves@redhat.com>
15932
15933 * gdbarch-selftests.c (register_to_value_test): Remove "target
15934 already pushed" check.
15935
5b6d1e4f
PA
159362020-01-10 Pedro Alves <palves@redhat.com>
15937 John Baldwin <jhb@FreeBSD.org>
15938
15939 * aarch64-linux-nat.c
15940 (aarch64_linux_nat_target::thread_architecture): Adjust.
15941 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15942 (task_command_1): Likewise.
15943 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15944 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15945 (aix_thread_target::store_registers)
15946 (aix_thread_target::thread_alive): Adjust.
15947 * amd64-fbsd-tdep.c: Include "inferior.h".
15948 (amd64fbsd_get_thread_local_address): Pass down target.
15949 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15950 thread's gdbarch instead of target_gdbarch.
15951 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15952 get_last_target_status.
15953 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15954 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15955 inferiors.
15956 (update_inserted_breakpoint_locations): Skip if inferiors with no
15957 execution.
15958 (update_global_location_list): When handling moribund locations,
15959 find representative inferior for location's pspace, and use thread
15960 count of its process_stratum target.
15961 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15962 * bsd-uthread.c (bsd_uthread_target::wait): Use
15963 as_process_stratum_target and adjust thread_change_ptid and
15964 add_thread calls.
15965 (bsd_uthread_target::update_thread_list): Use
15966 as_process_stratum_target and adjust find_thread_ptid,
15967 thread_change_ptid and add_thread calls.
15968 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15969 find_thread_ptid call.
15970 * corelow.c (add_to_thread_list): Adjust add_thread call.
15971 (core_target_open): Adjust add_thread_silent and thread_count
15972 calls.
15973 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15974 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15975 * event-top.c (async_disconnect): Pop targets from all inferiors.
15976 * exec.c (add_target_sections): Push exec target on all inferiors
15977 sharing the program space.
15978 (remove_target_sections): Remove the exec target from all
15979 inferiors sharing the program space.
15980 (exec_on_vfork): New.
15981 * exec.h (exec_on_vfork): Declare.
15982 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15983 Pass it down.
15984 (fbsd_nat_target::update_thread_list): Adjust.
15985 (fbsd_nat_target::resume): Adjust.
15986 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15987 down.
15988 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15989 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15990 get_thread_arch_regcache call.
15991 * fork-child.c (gdb_startup_inferior): Pass target down to
15992 startup_inferior and set_executing.
15993 * gdbthread.h (struct process_stratum_target): Forward declare.
15994 (add_thread, add_thread_silent, add_thread_with_info)
15995 (in_thread_list): Add process_stratum_target parameter.
15996 (find_thread_ptid(inferior*, ptid_t)): New overload.
15997 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15998 parameter.
15999 (all_threads()): Delete overload.
16000 (all_threads, all_non_exited_threads): Add process_stratum_target
16001 parameter.
16002 (all_threads_safe): Use brace initialization.
16003 (thread_count): Add process_stratum_target parameter.
16004 (set_resumed, set_running, set_stop_requested, set_executing)
16005 (threads_are_executing, finish_thread_state): Add
16006 process_stratum_target parameter.
16007 (switch_to_thread): Use is_current_thread.
16008 * i386-fbsd-tdep.c: Include "inferior.h".
16009 (i386fbsd_get_thread_local_address): Pass down target.
16010 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16011 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16012 have_inferiors check.
16013 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16014 (inf_ptrace_target::attach): Adjust.
16015 * infcall.c (run_inferior_call): Adjust.
16016 * infcmd.c (run_command_1): Pass target to
16017 scoped_finish_thread_state.
16018 (proceed_thread_callback): Skip inferiors with no execution.
16019 (continue_command): Rename 'all_threads' local to avoid hiding
16020 'all_threads' function. Adjust get_last_target_status call.
16021 (prepare_one_step): Adjust set_running call.
16022 (signal_command): Use user_visible_resume_target. Compare thread
16023 pointers instead of inferior_ptid.
16024 (info_program_command): Adjust to pass down target.
16025 (attach_command): Mark target's 'thread_executing' flag.
16026 (stop_current_target_threads_ns): New, factored out from ...
16027 (interrupt_target_1): ... this. Switch inferior before making
16028 target calls.
16029 * inferior-iter.h
16030 (struct all_inferiors_iterator, struct all_inferiors_range)
16031 (struct all_inferiors_safe_range)
16032 (struct all_non_exited_inferiors_range): Filter on
16033 process_stratum_target too. Remove explicit.
16034 * inferior.c (inferior::inferior): Push dummy target on target
16035 stack.
16036 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16037 Add process_stratum_target parameter, and pass it down.
16038 (have_live_inferiors): Adjust.
16039 (switch_to_inferior_and_push_target): New.
16040 (add_inferior_command, clone_inferior_command): Handle
16041 "-no-connection" parameter. Use
16042 switch_to_inferior_and_push_target.
16043 (_initialize_inferior): Mention "-no-connection" option in
16044 the help of "add-inferior" and "clone-inferior" commands.
16045 * inferior.h: Include "process-stratum-target.h".
16046 (interrupt_target_1): Use bool.
16047 (struct inferior) <push_target, unpush_target, target_is_pushed,
16048 find_target_beneath, top_target, process_target, target_at,
16049 m_stack>: New.
16050 (discard_all_inferiors): Delete.
16051 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16052 (all_inferiors, all_non_exited_inferiors): Add
16053 process_stratum_target parameter.
16054 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16055 (target_last_proc_target): New global.
16056 (follow_fork_inferior): Push target on new inferior. Pass target
16057 to add_thread_silent. Call exec_on_vfork. Handle target's
16058 reference count.
16059 (follow_fork): Adjust get_last_target_status call. Also consider
16060 target.
16061 (follow_exec): Push target on new inferior.
16062 (struct execution_control_state) <target>: New field.
16063 (user_visible_resume_target): New.
16064 (do_target_resume): Call target_async.
16065 (resume_1): Set target's threads_executing flag. Consider resume
16066 target.
16067 (commit_resume_all_targets): New.
16068 (proceed): Also consider resume target. Skip threads of inferiors
16069 with no execution. Commit resumtion in all targets.
16070 (start_remote): Pass current inferior to wait_for_inferior.
16071 (infrun_thread_stop_requested): Consider target as well. Pass
16072 thread_info pointer to clear_inline_frame_state instead of ptid.
16073 (infrun_thread_thread_exit): Consider target as well.
16074 (random_pending_event_thread): New inferior parameter. Use it.
16075 (do_target_wait): Rename to ...
16076 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16077 down.
16078 (threads_are_resumed_pending_p, do_target_wait): New.
16079 (prepare_for_detach): Adjust calls.
16080 (wait_for_inferior): New inferior parameter. Handle it. Use
16081 do_target_wait_1 instead of do_target_wait.
16082 (fetch_inferior_event): Adjust. Switch to representative
16083 inferior. Pass target down.
16084 (set_last_target_status): Add process_stratum_target parameter.
16085 Save target in global.
16086 (get_last_target_status): Add process_stratum_target parameter and
16087 handle it.
16088 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16089 (context_switch): Check inferior_ptid == null_ptid before calling
16090 inferior_thread().
16091 (get_inferior_stop_soon): Pass down target.
16092 (wait_one): Rename to ...
16093 (poll_one_curr_target): ... this.
16094 (struct wait_one_event): New.
16095 (wait_one): New.
16096 (stop_all_threads): Adjust.
16097 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16098 event's target.
16099 (switch_back_to_stepped_thread): Also consider target.
16100 (print_stop_event): Update.
16101 (normal_stop): Update. Also consider the resume target.
16102 * infrun.h (wait_for_inferior): Remove declaration.
16103 (user_visible_resume_target): New declaration.
16104 (get_last_target_status, set_last_target_status): New
16105 process_stratum_target parameter.
16106 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16107 process_stratum_target parameter, and use it.
16108 (clear_inline_frame_state (thread_info*)): New.
16109 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16110 process_stratum_target parameter.
16111 (clear_inline_frame_state (thread_info*)): Declare.
16112 * linux-fork.c (delete_checkpoint_command): Pass target down to
16113 find_thread_ptid.
16114 (checkpoint_command): Adjust.
16115 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16116 instead of just tweaking inferior_ptid.
16117 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16118 (exit_lwp): Pass target down to find_thread_ptid.
16119 (attach_proc_task_lwp_callback): Pass target down to
16120 add_thread/set_running/set_executing.
16121 (linux_nat_target::attach): Pass target down to
16122 thread_change_ptid.
16123 (get_detach_signal): Pass target down to find_thread_ptid.
16124 Consider last target status's target.
16125 (linux_resume_one_lwp_throw, resume_lwp)
16126 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16127 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16128 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16129 (linux_nat_target::async_wait_fd): New.
16130 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16131 target down.
16132 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16133 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16134 * linux-thread-db.c (struct thread_db_info::process_target): New
16135 field.
16136 (add_thread_db_info): Save target.
16137 (get_thread_db_info): New process_stratum_target parameter. Also
16138 match target.
16139 (delete_thread_db_info): New process_stratum_target parameter.
16140 Also match target.
16141 (thread_from_lwp): Adjust to pass down target.
16142 (thread_db_notice_clone): Pass down target.
16143 (check_thread_db_callback): Pass down target.
16144 (try_thread_db_load_1): Always push the thread_db target.
16145 (try_thread_db_load, record_thread): Pass target down.
16146 (thread_db_target::detach): Pass target down. Always unpush the
16147 thread_db target.
16148 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16149 target down. Always unpush the thread_db target.
16150 (find_new_threads_callback, thread_db_find_new_threads_2)
16151 (thread_db_target::update_thread_list): Pass target down.
16152 (thread_db_target::pid_to_str): Pass current inferior down.
16153 (thread_db_target::get_thread_local_address): Pass target down.
16154 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16155 target down.
16156 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16157 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16158 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16159 (procfs_init_inferior): Rename to ...
16160 (procfs_target::procfs_init_inferior): ... this and adjust.
16161 (procfs_target::create_inferior, procfs_notice_thread)
16162 (procfs_do_thread_registers): Adjust.
16163 * ppc-fbsd-tdep.c: Include "inferior.h".
16164 (ppcfbsd_get_thread_local_address): Pass down target.
16165 * proc-service.c (ps_xfer_memory): Switch current inferior and
16166 program space as well.
16167 (get_ps_regcache): Pass target down.
16168 * process-stratum-target.c
16169 (process_stratum_target::thread_address_space)
16170 (process_stratum_target::thread_architecture): Pass target down.
16171 * process-stratum-target.h
16172 (process_stratum_target::threads_executing): New field.
16173 (as_process_stratum_target): New.
16174 * ravenscar-thread.c
16175 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16176 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16177 down.
16178 * record-btrace.c (record_btrace_target::info_record): Adjust.
16179 (record_btrace_target::record_method)
16180 (record_btrace_target::record_is_replaying)
16181 (record_btrace_target::fetch_registers)
16182 (get_thread_current_frame_id, record_btrace_target::resume)
16183 (record_btrace_target::wait, record_btrace_target::stop): Pass
16184 target down.
16185 * record-full.c (record_full_wait_1): Switch to event thread.
16186 Pass target down.
16187 * regcache.c (regcache::regcache)
16188 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16189 process_stratum_target parameter and handle it.
16190 (current_thread_target): New global.
16191 (get_thread_regcache): Add process_stratum_target parameter and
16192 handle it. Switch inferior before calling target method.
16193 (get_thread_regcache): Pass target down.
16194 (get_thread_regcache_for_ptid): Pass target down.
16195 (registers_changed_ptid): Add process_stratum_target parameter and
16196 handle it.
16197 (registers_changed_thread, registers_changed): Pass target down.
16198 (test_get_thread_arch_aspace_regcache): New.
16199 (current_regcache_test): Define a couple local test_target_ops
16200 instances and use them for testing.
16201 (readwrite_regcache): Pass process_stratum_target parameter.
16202 (cooked_read_test, cooked_write_test): Pass mock_target down.
16203 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16204 (get_thread_arch_aspace_regcache): Add process_stratum_target
16205 parameter.
16206 (regcache::target): New method.
16207 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16208 (regcache::registers_changed_ptid): Add process_stratum_target
16209 parameter.
16210 (regcache::m_target): New field.
16211 (registers_changed_ptid): Add process_stratum_target parameter.
16212 * remote.c (remote_state::supports_vCont_probed): New field.
16213 (remote_target::async_wait_fd): New method.
16214 (remote_unpush_and_throw): Add remote_target parameter.
16215 (get_current_remote_target): Adjust.
16216 (remote_target::remote_add_inferior): Push target.
16217 (remote_target::remote_add_thread)
16218 (remote_target::remote_notice_new_inferior)
16219 (get_remote_thread_info): Pass target down.
16220 (remote_target::update_thread_list): Skip threads of inferiors
16221 bound to other targets. (remote_target::close): Don't discard
16222 inferiors. (remote_target::add_current_inferior_and_thread)
16223 (remote_target::process_initial_stop_replies)
16224 (remote_target::start_remote)
16225 (remote_target::remote_serial_quit_handler): Pass down target.
16226 (remote_target::remote_unpush_target): New remote_target
16227 parameter. Unpush the target from all inferiors.
16228 (remote_target::remote_unpush_and_throw): New remote_target
16229 parameter. Pass it down.
16230 (remote_target::open_1): Check whether the current inferior has
16231 execution instead of checking whether any inferior is live. Pass
16232 target down.
16233 (remote_target::remote_detach_1): Pass down target. Use
16234 remote_unpush_target.
16235 (extended_remote_target::attach): Pass down target.
16236 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16237 (remote_target::append_resumption): Pass down target.
16238 (remote_target::append_pending_thread_resumptions)
16239 (remote_target::remote_resume_with_hc, remote_target::resume)
16240 (remote_target::commit_resume): Pass down target.
16241 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16242 (remote_target::interrupt_query)
16243 (remote_target::remove_new_fork_children)
16244 (remote_target::check_pending_events_prevent_wildcard_vcont)
16245 (remote_target::remote_parse_stop_reply)
16246 (remote_target::process_stop_reply): Pass down target.
16247 (first_remote_resumed_thread): New remote_target parameter. Pass
16248 it down.
16249 (remote_target::wait_as): Pass down target.
16250 (unpush_and_perror): New remote_target parameter. Pass it down.
16251 (remote_target::readchar, remote_target::remote_serial_write)
16252 (remote_target::getpkt_or_notif_sane_1)
16253 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16254 down target.
16255 (remote_target::mourn_inferior): Pass down target. Use
16256 remote_unpush_target.
16257 (remote_target::core_of_thread)
16258 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16259 (remote_target::pid_to_exec_file)
16260 (remote_target::thread_handle_to_thread_info): Pass down target.
16261 (remote_target::async_wait_fd): New.
16262 * riscv-fbsd-tdep.c: Include "inferior.h".
16263 (riscv_fbsd_get_thread_local_address): Pass down target.
16264 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16265 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16266 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16267 Adjust.
16268 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16269 * solib-svr4.c (enable_break): Pass down target.
16270 * spu-multiarch.c (parse_spufs_run): Pass down target.
16271 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16272 * target-delegates.c: Regenerate.
16273 * target.c (g_target_stack): Delete.
16274 (current_top_target): Return the current inferior's top target.
16275 (target_has_execution_1): Refer to the passed-in inferior's top
16276 target.
16277 (target_supports_terminal_ours): Check whether the initial
16278 inferior was already created.
16279 (decref_target): New.
16280 (target_stack::push): Incref/decref the target.
16281 (push_target, push_target, unpush_target): Adjust.
16282 (target_stack::unpush): Defref target.
16283 (target_is_pushed): Return bool. Adjust to refer to the current
16284 inferior's target stack.
16285 (dispose_inferior): Delete, and inline parts ...
16286 (target_preopen): ... here. Only dispose of the current inferior.
16287 (target_detach): Hold strong target reference while detaching.
16288 Pass target down.
16289 (target_thread_name): Add assertion.
16290 (target_resume): Pass down target.
16291 (target_ops::beneath, find_target_at): Adjust to refer to the
16292 current inferior's target stack.
16293 (get_dummy_target): New.
16294 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16295 has a thread running.
16296 (initialize_targets): Rename to ...
16297 (_initialize_target): ... this.
16298 * target.h: Include "gdbsupport/refcounted-object.h".
16299 (struct target_ops): Inherit refcounted_object.
16300 (target_ops::shortname, target_ops::longname): Make const.
16301 (target_ops::async_wait_fd): New method.
16302 (decref_target): Declare.
16303 (struct target_ops_ref_policy): New.
16304 (target_ops_ref): New typedef.
16305 (get_dummy_target): Declare function.
16306 (target_is_pushed): Return bool.
16307 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16308 (all_matching_threads_iterator::all_matching_threads_iterator):
16309 Handle filter target.
16310 * thread-iter.h (struct all_matching_threads_iterator, struct
16311 all_matching_threads_range, class all_non_exited_threads_range):
16312 Filter by target too. Remove explicit.
16313 * thread.c (threads_executing): Delete.
16314 (inferior_thread): Pass down current inferior.
16315 (clear_thread_inferior_resources): Pass down thread pointer
16316 instead of ptid_t.
16317 (add_thread_silent, add_thread_with_info, add_thread): Add
16318 process_stratum_target parameter. Use it for thread and inferior
16319 searches.
16320 (is_current_thread): New.
16321 (thread_info::deletable): Use it.
16322 (find_thread_ptid, thread_count, in_thread_list)
16323 (thread_change_ptid, set_resumed, set_running): New
16324 process_stratum_target parameter. Pass it down.
16325 (set_executing): New process_stratum_target parameter. Pass it
16326 down. Adjust reference to 'threads_executing'.
16327 (threads_are_executing): New process_stratum_target parameter.
16328 Adjust reference to 'threads_executing'.
16329 (set_stop_requested, finish_thread_state): New
16330 process_stratum_target parameter. Pass it down.
16331 (switch_to_thread): Also match inferior.
16332 (switch_to_thread): New process_stratum_target parameter. Pass it
16333 down.
16334 (update_threads_executing): Reimplement.
16335 * top.c (quit_force): Pop targets from all inferior.
16336 (gdb_init): Don't call initialize_targets.
16337 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16338 Declare.
16339 (windows_add_thread, windows_delete_thread): Adjust.
16340 (get_windows_debug_event): Rename to ...
16341 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16342 * tracefile-tfile.c (tfile_target_open): Pass down target.
16343 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16344 Forward declare.
16345 (switch_to_thread): Add process_stratum_target parameter.
16346 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16347 parameter. Use it.
16348 (mi_on_resume): Pass target down.
16349 * nat/fork-inferior.c (startup_inferior): Add
16350 process_stratum_target parameter. Pass it down.
16351 * nat/fork-inferior.h (startup_inferior): Add
16352 process_stratum_target parameter.
16353 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16354
75c6c844
PA
163552020-01-10 Pedro Alves <palves@redhat.com>
16356
16357 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16358 directly. Instead find the first thread in the thread list and
16359 use switch_to_thread.
16360
78f2c40a
PA
163612020-01-10 Pedro Alves <palves@redhat.com>
16362
16363 * remote.c (remote_target::remote_add_inferior): Don't bind a
16364 process to the current inferior if the current inferior is already
16365 bound to a process.
16366
e7af6c70
TBA
163672020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16368 Pedro Alves <palves@redhat.com>
16369
16370 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16371 If no process is specified, return null_ptid instead of
16372 inferior_ptid.
16373 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16374 TARGET_WAITKIND_SIGNALLED with no pid.
16375
31ba933e
PA
163762020-01-10 Pedro Alves <palves@redhat.com>
16377
16378 * remote.c (first_remote_resumed_thread): New.
16379 (remote_target::wait_as): Use it as default event_ptid instead of
16380 inferior_ptid.
16381
735fc2ca
PA
163822020-01-10 Pedro Alves <palves@redhat.com>
16383
16384 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16385
c17e02e1
PA
163862020-01-10 Pedro Alves <palves@redhat.com>
16387
16388 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16389 not -1.
16390
ab1ddbcf
PA
163912020-01-10 Pedro Alves <palves@redhat.com>
16392
16393 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16394 ptid to get_last_target_status.
16395 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16396 ptid to get_last_target_status.
16397 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16398 get_last_target_status.
16399 (info_program_command): Don't pass a target_waitstatus to
16400 get_last_target_status.
16401 * infrun.c (init_wait_for_inferior): Use
16402 nullify_last_target_wait_ptid.
16403 (get_last_target_status): Handle nullptr arguments.
16404 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16405 (print_stop_event): Don't pass a ptid to get_last_target_status.
16406 (normal_stop): Don't pass a ptid to get_last_target_status.
16407 * infrun.h (get_last_target_status, set_last_target_status): Move
16408 comments here and update.
16409 (nullify_last_target_wait_ptid): Declare.
16410 * linux-fork.c (fork_load_infrun_state): Remove local extern
16411 declaration of nullify_last_target_wait_ptid.
16412 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16413 to get_last_target_status.
16414
f3f8ece4
PA
164152020-01-10 Pedro Alves <palves@redhat.com>
16416
16417 * gdbthread.h (scoped_restore_current_thread)
16418 <dont_restore, restore, m_dont_restore>: Declare.
16419 * thread.c (thread_alive): Add assertion. Return bool.
16420 (switch_to_thread_if_alive): New.
16421 (prune_threads): Switch inferior/thread.
16422 (print_thread_info_1): Switch thread before calling target methods.
16423 (scoped_restore_current_thread::restore): New, factored out from
16424 ...
16425 (scoped_restore_current_thread::~scoped_restore_current_thread):
16426 ... this.
16427 (scoped_restore_current_thread::scoped_restore_current_thread):
16428 Add assertion.
16429 (thread_apply_all_command, thread_select): Use
16430 switch_to_thread_if_alive.
16431 * infrun.c (proceed, restart_threads, handle_signal_stop)
16432 (switch_back_to_stepped_thread): Switch current thread before
16433 calling target methods.
16434
db2d40f7
PA
164352020-01-10 Pedro Alves <palves@redhat.com>
16436
16437 * inferior.c (switch_to_inferior_no_thread): New function,
16438 factored out from ...
16439 (inferior_command): ... here.
16440 * inferior.h (switch_to_inferior_no_thread): Declare.
16441 * mi/mi-main.c (run_one_inferior): Use
16442 switch_to_inferior_no_thread.
16443
bd420a2d
PA
164442020-01-10 Pedro Alves <palves@redhat.com>
16445
16446 * infcmd.c (kill_command): Remove dead code.
16447
ddf5db90
PA
164482020-01-10 Pedro Alves <palves@redhat.com>
16449
16450 * remote.c (remote_target::mourn_inferior): No longer check
16451 whether the target is running.
16452
5018ce90
PA
164532020-01-10 Pedro Alves <palves@redhat.com>
16454
16455 * corelow.c (core_target::has_execution): Change parameter type to
16456 inferior pointer.
16457 * inferior.c (number_of_live_inferiors): Use
16458 inferior::has_execution instead of target_has_execution_1.
16459 * inferior.h (inferior::has_execution): New.
16460 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16461 inferior::has_execution instead of target_has_execution_1.
16462 * process-stratum-target.c
16463 (process_stratum_target::has_execution): Change parameter type to
16464 inferior pointer. Check the inferior's PID instead of
16465 inferior_ptid.
16466 * process-stratum-target.h
16467 (process_stratum_target::has_execution): Change parameter type to
16468 inferior pointer.
16469 * record-full.c (record_full_core_target::has_execution): Change
16470 parameter type to inferior pointer.
16471 * target.c (target_has_execution_1): Change parameter type to
16472 inferior pointer.
16473 (target_has_execution_current): Adjust.
16474 * target.h (target_ops::has_execution): Change parameter type to
16475 inferior pointer.
16476 (target_has_execution_1): Change parameter type to inferior
16477 pointer. Change return type to bool.
16478 * tracefile.h (tracefile_target::has_execution): Change parameter
16479 type to inferior pointer.
16480
74375d18
PA
164812020-01-10 Pedro Alves <palves@redhat.com>
16482
16483 * exceptions.c (print_flush): Remove current_top_target() check.
16484
acdf84a6
PA
164852020-01-10 Pedro Alves <palves@redhat.com>
16486
16487 * remote.c (show_remote_exec_file): Show the current inferior's
16488 exec-file instead of the command variable's value.
16489
ec506636
PA
164902020-01-10 Pedro Alves <palves@redhat.com>
16491
16492 * record-full.c (record_full_resume_ptid): New global.
16493 (record_full_target::resume): Set it.
16494 (record_full_wait_1): Use record_full_resume_ptid instead of
16495 inferior_ptid.
16496
873657b9
PA
164972020-01-10 Pedro Alves <palves@redhat.com>
16498
16499 * gdbthread.h (scoped_restore_current_thread)
16500 <dont_restore, restore, m_dont_restore>: Declare.
16501 * thread.c (thread_alive): Add assertion. Return bool.
16502 (switch_to_thread_if_alive): New.
16503 (prune_threads): Switch inferior/thread.
16504 (print_thread_info_1): Switch thread before calling target methods.
16505 (scoped_restore_current_thread::restore): New, factored out from
16506 ...
16507 (scoped_restore_current_thread::~scoped_restore_current_thread):
16508 ... this.
16509 (scoped_restore_current_thread::scoped_restore_current_thread):
16510 Add assertion.
16511 (thread_apply_all_command, thread_select): Use
16512 switch_to_thread_if_alive.
16513
7f0ae84c
GB
165142020-01-10 George Barrett <bob@bob131.so>
16515
16516 * stap-probe.c (stap_modify_semaphore): Don't check for null
16517 semaphores.
16518 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16519 for null semaphores.
16520
f5a7c406
AB
165212020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16522
16523 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16524 all source windows, and maintain horizontal scroll status while
16525 doing so.
16526
9ae6bf64
TT
165272020-01-09 Tom Tromey <tom@tromey.com>
16528
16529 PR tui/18932:
16530 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16531 update_source_window, not print_source_lines.
16532
b2efe70c
AB
165332020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16534
16535 * tui/tui.c (tui_enable): Register tui hooks after calling
16536 tui_display_main.
16537
5f23a082
CB
165382020-01-09 Christian Biesinger <cbiesinger@google.com>
16539
16540 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16541
3061113b
SM
165422020-01-08 Simon Marchi <simon.marchi@efficios.com>
16543
16544 * thread.c (print_thread_info_1): Fix indentation.
16545
57d75002
CB
165462020-01-09 Christian Biesinger <cbiesinger@google.com>
16547
16548 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16549 unique_xmalloc_ptr outside the if to always free the demangled name.
16550
6a053cb1
TT
165512020-01-08 Tom Tromey <tromey@adacore.com>
16552
16553 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16554 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16555 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16556 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16557 Remove.
16558 (section_offsets): New typedef.
16559 * symtab.c (fixup_section, get_msymbol_address): Update.
16560 * symmisc.c (dump_msymbols): Update.
16561 * symfile.h (relative_addr_info_to_section_offsets)
16562 (symfile_map_offsets_to_segments): Update.
16563 * symfile.c (build_section_addr_info_from_objfile)
16564 (init_objfile_sect_indices): Update.
16565 (struct place_section_arg): Change type of "offsets".
16566 (place_section): Update.
16567 (relative_addr_info_to_section_offsets): Change type of
16568 "section_offsets". Remove "num_sections" parameter.
16569 (default_symfile_offsets, syms_from_objfile_1)
16570 (set_objfile_default_section_offset): Update.
16571 (reread_symbols): No need to preserve section offsets by hand.
16572 (symfile_map_offsets_to_segments): Change type of "offsets".
16573 * stap-probe.c (relocate_address): Update.
16574 * stabsread.h (process_one_symbol): Update.
16575 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16576 (solib_target_relocate_section_addresses): Update.
16577 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16578 Update.
16579 * solib-frv.c (frv_relocate_main_executable): Update.
16580 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16581 * solib-aix.c (solib_aix_get_section_offsets): Change return
16582 type.
16583 (solib_aix_solib_create_inferior_hook): Update.
16584 * remote.c (remote_target::get_offsets): Update.
16585 * psymtab.c (find_pc_sect_psymtab): Update.
16586 * psympriv.h (struct partial_symbol) <address, text_low,
16587 text_high>: Update.
16588 * objfiles.h (obj_section_offset): Update.
16589 (struct objfile) <section_offsets>: Change type.
16590 <num_sections>: Remove.
16591 (objfile_relocate): Update.
16592 * objfiles.c (entry_point_address_query): Update
16593 (relocate_one_symbol): Change type of "section_offsets".
16594 (objfile_relocate1, objfile_relocate1): Change type of
16595 "new_offsets".
16596 (objfile_rebase1): Update.
16597 * mipsread.c (mipscoff_symfile_read): Update.
16598 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16599 parameter.
16600 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16601 (parse_external, psymtab_to_symtab_1): Update.
16602 * machoread.c (macho_symfile_offsets): Update.
16603 * ia64-tdep.c (ia64_find_unwind_table): Update.
16604 * hppa-tdep.c (read_unwind_info): Update.
16605 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16606 * dwarf2read.c (create_addrmap_from_index)
16607 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16608 (process_psymtab_comp_unit_reader, add_partial_symbol)
16609 (add_partial_subprogram, process_full_comp_unit)
16610 (read_file_scope, read_func_scope, read_lexical_block_scope)
16611 (read_call_site_scope, dwarf2_rnglists_process)
16612 (dwarf2_ranges_process, dwarf2_ranges_read)
16613 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16614 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16615 Update.
16616 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16617 Update.
16618 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16619 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16620 (process_one_symbol): Change type of "section_offsets".
16621 * ctfread.c (get_objfile_text_range): Update.
16622 * coffread.c (coff_symtab_read, enter_linenos)
16623 (process_coff_symbol): Update.
16624 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16625 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16626
456e800a
TT
166272020-01-08 Tom Tromey <tromey@adacore.com>
16628
16629 * dwarf2read.c (parse_macro_definition): Use std::string.
16630 (parse_macro_definition): Likewise.
16631
6dfa2fc2
TT
166322020-01-08 Tom Tromey <tromey@adacore.com>
16633
16634 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16635 (ATTR_ALLOC_CHUNK): Remove.
16636
421d1616
TT
166372020-01-08 Tom Tromey <tromey@adacore.com>
16638
16639 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16640
43816ebc
TT
166412020-01-08 Tom Tromey <tromey@adacore.com>
16642
16643 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16644 (dwarf2_compute_name, open_dwo_file): Likewise.
16645 (process_enumeration_scope): Use std::vector.
16646 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16647 (partial_die_info::fixup, dwarf2_start_subfile)
16648 (guess_full_die_structure_name, dwarf2_name): Likewise.
16649 (determine_prefix): Update.
16650 (guess_full_die_structure_name): Make return type const.
16651 (partial_die_full_name): Return unique_xmalloc_ptr.
16652 (DW_FIELD_ALLOC_CHUNK): Remove.
16653
4212d509
TT
166542020-01-07 Tom Tromey <tromey@adacore.com>
16655
16656 PR build/24937:
16657 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16658
06a6207a
JT
166592020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16660
16661 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16662
153d79c4
AB
166632020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16664
16665 * stack.c (print_frame_info): Move disassemble_next_line code
16666 inside source_print block.
16667
66182876
EZ
166682020-01-06 Eli Zaretskii <eliz@gnu.org>
16669
16670 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16671 gdb/signals.h, as we are now using native signal symbols.
16672
cbfa8581
SV
166732020-01-06 Shahab Vahedi <shahab@synopsys.com>
16674
16675 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16676 overflow by an early check of content vs threshold.
aac66a4c 16677 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16678 Likewise.
16679
3f602821
EZ
166802020-01-06 Eli Zaretskii <eliz@gnu.org>
16681
16682 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16683
a08c904d
JT
166842020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16685
16686 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16687 export table if no section contains it's RVA.
16688
89a65580
EZ
166892020-01-06 Eli Zaretskii <eliz@gnu.org>
16690
16691 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16692
8b7fcda2
HD
166932020-01-06 Hannes Domani <ssbssa@yahoo.de>
16694
16695 * source.c (print_source_lines_base): Set last_line_listed.
16696
a61b4f69
SV
166972020-01-06 Shahab Vahedi <shahab@synopsys.com>
16698
16699 * tui/tui-disasm.c: Remove trailing spaces.
16700
559e7e50
EZ
167012020-01-06 Eli Zaretskii <eliz@gnu.org>
16702 Pedro Alves <palves@redhat.com>
16703
16704 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16705 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16706 (windows_gdb_signal_to_target): New function, uses the above
16707 enumeration to convert GDB internal signal codes to equivalent
16708 Windows codes.
16709 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16710 * windows-nat.c: Include "gdb_wait.h".
16711 (get_windows_debug_event): Extract the fatal exception from the
16712 exit status and convert to the equivalent Posix signal number.
16713 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16714 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16715 * gdbsupport/gdb_wait.c: New file, implements
16716 windows_status_to_termsig.
16717 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16718 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16719
f2302a34
AB
167202020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16721
16722 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16723 show_layout.
16724
6a5206eb
LM
167252020-01-05 Luis Machado <luis.machado@linaro.org>
16726
16727 * aarch64-linux-nat.c
16728 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16729 and bfd_mach_aarch64.
16730
6ec1d75e
PW
167312020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16732
16733 * ui-file.c (stdio_file::can_emit_style_escape)
16734 (tee_file::can_emit_style_escape): Ensure style is used also on
16735 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16736 to gdb_stdout.
16737 * main.c (set_gdb_data_directory): Use file style to output the
16738 warning that the given pathname is not a directory.
16739 * top.c (show_history_filename, gdb_safe_append_history)
16740 (show_gdb_datadir): Use file style.
16741
44f81a76
HD
167422020-01-03 Hannes Domani <ssbssa@yahoo.de>
16743
16744 * solib-target.c (struct lm_info_target):
16745 Change offsets to be a unique_xmalloc_ptr.
16746 (solib_target_relocate_section_addresses): Update.
16747
25057eb0
HD
167482020-01-03 Hannes Domani <ssbssa@yahoo.de>
16749
16750 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16751
6e2118f5
BE
167522020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16753
16754 * MAINTAINERS (Write After Approval): Add myself.
16755
8133c7dc
LM
167562020-01-02 Luis Machado <luis.machado@linaro.org>
16757
16758 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16759 Cell BE architecture.
16760 * target.h (struct target_ops) <thread_architecture>: Likewise.
16761
48189bec
HD
167622020-01-01 Hannes Domani <ssbssa@yahoo.de>
16763
16764 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16765
ead1063b
HD
167662020-01-01 Hannes Domani <ssbssa@yahoo.de>
16767
16768 * MAINTAINERS (Write After Approval): Add myself.
16769
e5d78223
JB
167702020-01-01 Joel Brobecker <brobecker@adacore.com>
16771
16772 * gdbarch.sh: Update copyright year range of generated files.
16773
b811d2c2
JB
167742020-01-01 Joel Brobecker <brobecker@adacore.com>
16775
16776 Update copyright year range in all GDB files.
16777
5f4def5c
JB
167782020-01-01 Joel Brobecker <brobecker@adacore.com>
16779
16780 * copyright.py: Convert to Python 3.
16781
51fd4002
JB
167822020-01-01 Joel Brobecker <brobecker@adacore.com>
16783
16784 * copyright.py: Adapt after move of gnulib directory from gdb
16785 directory to toplevel directory.
16786
5fb651f2
JB
167872020-01-01 Joel Brobecker <brobecker@adacore.com>
16788
16789 * copyright.py (main): Exit if run from the wrong directory.
16790
5dd8bf88
JB
167912020-01-01 Joel Brobecker <brobecker@adacore.com>
16792
16793 * top.c (print_gdb_version): Change copyright year to 2020.
16794
9f71dacb 167952020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16796
9f71dacb 16797 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16798
9f71dacb 16799For older changes see ChangeLog-2019.
c906108c
SS
16800\f
16801Local Variables:
16802mode: change-log
16803left-margin: 8
16804fill-column: 74
16805version-control: never
57da7796 16806coding: utf-8
c906108c 16807End: