Only make a nullterminated string if we need to
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0c921b21
CB
12019-10-29 Christian Biesinger <cbiesinger@google.com>
2
3 * symtab.h (symbol_set_names): Document that copy_name must be
4 set to true for non-nullterminated strings.
5 * symtab.c (symbol_set_names): Only make a nullterminated copy of
6 linkage_name if the entry was not found and we need to demangle.
7
35e65c49
CB
82019-10-29 Christian Biesinger <cbiesinger@google.com>
9
10 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
11 * dwarf2-frame.c (bsearch_fde_cmp): Update.
12 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
13 * gdbsupport/gdb_binary_search.h: New file.
14
ed2a2229
CB
152019-10-29 Christian Biesinger <cbiesinger@google.com>
16
17 * NEWS: Mention new --with-system-gdbinit-dir option.
18 * config.in: Regenerate.
19 * configure: Regenerate.
20 * configure.ac: Add new option --with-system-gdbinit-dir.
21 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
22 for a ".gdb" suffix.
23 * main.c (get_init_files): Change system_gdbinit argument to
24 a vector and return the files in SYSTEM_GDBINIT_DIR in
25 addition to SYSTEM_GDBINIT.
26 (captured_main_1): Update.
27 (print_gdb_help): Update.
28 * top.c (print_gdb_configuration): Also print the value of
29 SYSTEM_GDBINIT_DIR.
30
87f34879
CB
312019-10-28 Christian Biesinger <cbiesinger@google.com>
32
33 * gdbsupport/common-utils.h (startswith): Add an overloaded version
34 that takes gdb::string_view arguments.
35
30baf67b
TV
362019-10-26 Tom de Vries <tdevries@suse.de>
37
38 * aarch64-linux-tdep.c: Fix typos in comments.
39 * aarch64-tdep.c: Same.
40 * ada-lang.c: Same.
41 * amd64-nat.c: Same.
42 * arc-tdep.c: Same.
43 * arch/aarch64-insn.c: Same.
44 * block.c: Same.
45 * breakpoint.h: Same.
46 * btrace.h: Same.
47 * c-varobj.c: Same.
48 * cli/cli-decode.c: Same.
49 * cli/cli-script.c: Same.
50 * cli/cli-utils.h: Same.
51 * coff-pe-read.c: Same.
52 * coffread.c: Same.
53 * compile/compile-cplus-symbols.c: Same.
54 * compile/compile-object-run.c: Same.
55 * completer.c: Same.
56 * corelow.c: Same.
57 * cp-support.c: Same.
58 * demangle.c: Same.
59 * dwarf-index-write.c: Same.
60 * dwarf2-frame.c: Same.
61 * dwarf2-frame.h: Same.
62 * eval.c: Same.
63 * frame-base.h: Same.
64 * frame.h: Same.
65 * gdbcmd.h: Same.
66 * gdbtypes.h: Same.
67 * gnu-nat.c: Same.
68 * guile/scm-objfile.c: Same.
69 * i386-tdep.c: Same.
70 * i386-tdep.h: Same.
71 * infcall.c: Same.
72 * infcall.h: Same.
73 * linux-nat.c: Same.
74 * m68k-tdep.c: Same.
75 * macroexp.c: Same.
76 * memattr.c: Same.
77 * mi/mi-cmd-disas.c: Same.
78 * mi/mi-getopt.h: Same.
79 * mi/mi-main.c: Same.
80 * minsyms.c: Same.
81 * nat/aarch64-sve-linux-sigcontext.h: Same.
82 * objfiles.h: Same.
83 * ppc-linux-nat.c: Same.
84 * ppc-linux-tdep.c: Same.
85 * ppc-tdep.h: Same.
86 * progspace.h: Same.
87 * prologue-value.h: Same.
88 * python/py-evtregistry.c: Same.
89 * python/py-instruction.h: Same.
90 * record-btrace.c: Same.
91 * record-full.c: Same.
92 * remote.c: Same.
93 * rs6000-tdep.c: Same.
94 * ser-tcp.c: Same.
95 * sol-thread.c: Same.
96 * sparc-sol2-tdep.c: Same.
97 * sparc64-tdep.c: Same.
98 * stabsread.c: Same.
99 * symfile.c: Same.
100 * symtab.h: Same.
101 * target.c: Same.
102 * tracepoint.c: Same.
103 * tui/tui-data.h: Same.
104 * tui/tui-io.c: Same.
105 * tui/tui-win.c: Same.
106 * tui/tui.c: Same.
107 * unittests/rsp-low-selftests.c: Same.
108 * user-regs.h: Same.
109 * utils.c: Same.
110 * utils.h: Same.
111 * valarith.c: Same.
112 * valops.c: Same.
113 * valprint.c: Same.
114 * valprint.h: Same.
115 * value.c: Same.
116 * value.h: Same.
117 * varobj.c: Same.
118 * x86-nat.h: Same.
119 * xtensa-tdep.c: Same.
120
1834d45f
AT
1212019-10-25 Ali Tamur <tamur@google.com>
122
123 * charset.c (find_charset_names): Reflect API change.
124
5396ae17
CB
1252019-10-25 Christian Biesinger <cbiesinger@google.com>
126
127 * symtab.c (struct demangled_name_entry): Change demangled name
128 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
129 part of the struct anymore.
130 (symbol_set_names): No longer obstack allocate + copy the demangled
131 name, just store the allocated name from bfd.
132
93878f47
TT
1332019-10-25 Tom Tromey <tromey@adacore.com>
134
135 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
136 (bsearch_cie_cmp, add_cie): Remove.
137 (find_cie): Reimplement.
138 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
139 (dwarf2_build_frame_info): Update.
140
7b71fc97
L
1412019-10-24 H.J. Lu <hongjiu.lu@intel.com>
142
143 PR gdb/25126
144 * symfile.c (reread_symbols): Call forget_cached_source_info to
145 clear the stale source cache.
146
cbb5a2ea
CB
1472019-10-24 Christian Biesinger <cbiesinger@google.com>
148
149 * configure: Regenerate.
150 * configure.ac: Remove code that sets python_has_threads.
151
71737c43
CB
1522019-10-24 Christian Biesinger <cbiesinger@google.com>
153
154 * config.in: Regenerate.
155 * configure: Regenerate.
156 * configure.ac: Remove the code that uses sed to get the python
157 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
158
33d569b7
AB
1592019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
160
161 * python/py-progspace.c (pspy_block_for_pc): Return None for all
162 error paths.
163
f16f7b7c
TT
1642019-10-23 Tom Tromey <tom@tromey.com>
165
166 * arc-tdep.c: Remove ".." from include.
167 * frv-tdep.c: Remove ".." from include.
168 * lm32-tdep.c: Remove ".." from include.
169 * microblaze-tdep.c: Remove ".." from include.
170 * or1k-tdep.h: Remove ".." from include.
171 * s12z-tdep.c: Remove ".." from include.
172 * Makefile.in (OPCODES_CFLAGS): Add comment.
173 (TOP_CFLAGS): New variable.
174 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
175
6999161a
TT
1762019-10-23 Tom Tromey <tom@tromey.com>
177
178 * Makefile.in (READLINE_DIR): Update.
179
12e7c35e
TBA
1802019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
181
182 * infcall.c (call_function_by_hand_dummy): Fix the function
183 comment. And extract out a code section into...
184 (reserve_stack_space): ...this new function.
185
37055cad
TBA
1862019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
187
188 * infcall.c (value_arg_coerce): Remove an unused parameter.
189 (call_function_by_hand_dummy): Update the call to
190 'value_arg_coerce'.
191
39bcc47c
TBA
1922019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
193
194 * infcall.c (call_function_by_hand_dummy): Refactor.
195
bd888c0f
TBA
1962019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
197
198 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
199
c12d372d
TT
2002019-10-23 Tom Tromey <tom@tromey.com>
201
202 * configure: Rebuild.
203 * configure.ac: Don't check for sigprocmask.
204 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
205
4d0b984b
TT
2062019-10-23 Tom Tromey <tom@tromey.com>
207
208 * configure: Rebuild.
209 * acinclude.m4: Use m4_include, not sinclude.
210
7e785608
TV
2112019-10-23 Tom de Vries <tdevries@suse.de>
212
213 PR breakpoints/24687
214 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
215
403772ef
CB
2162019-10-22 Christian Biesinger <cbiesinger@google.com>
217
218 * symtab.c (struct demangled_name_entry) <language>: Change from
219 bitfield to regular variable.
220
3a494279
CB
2212019-10-22 Christian Biesinger <cbiesinger@google.com>
222
223 * symtab.c (struct demangled_name_entry): Add a constructor.
224 (free_demangled_name_entry): New function to call the destructor
225 for demangled_name_entry.
226 (create_demangled_names_hash): Pass free_demangled_name_entry to
227 htab_create_alloc.
228 (symbol_set_names): Call placement new for demangled_name_entry.
229 * utils.c: No longer include xxhash.h here, now that fast_hash
230 is inlined in the header.
231 * utils.h: Instead, include it here.
232
ccb1ba62
CB
2332019-10-22 Christian Biesinger <cbiesinger@google.com>
234
235 * Makefile.in: Link with libxxhash.
236 * config.in: Regenerate.
237 * configure: Regenerate.
238 * configure.ac: Search for libxxhash.
239 * utils.c (fast_hash): Use xxhash if present.
240
1a6ff1a9
CB
2412019-10-22 Christian Biesinger <cbiesinger@google.com>
242
243 * utils.h (fast_hash): New function.
244 * symtab.c (hash_demangled_name_entry): Call new function
245 fast_hash.
246
7bb43059
CB
2472019-10-22 Christian Biesinger <cbiesinger@google.com>
248
249 * symtab.c (struct demangled_name_entry): Change type of mangled
250 to gdb::string_view. Also adds a constructor that takes the
251 mangled name.
252 (hash_demangled_name_entry): Update.
253 (eq_demangled_name_entry): Update.
254 (free_demangled_name_entry): New function to call the destructor
255 now that this is not a POD anymore.
256 (create_demangled_names_hash): Pass free_demangled_name_entry to
257 htab_create_alloc.
258 (symbol_set_names): Update.
259
7ba99d21
AT
2602019-10-21 Ali Tamur <tamu@google.com>
261
262 * dwarf2read.c (dir_index): Change type.
263 (file_name_index): Likewise.
264 (line_header::include_dir_at): Change comment and implementation on
265 whether it is DWARF 5.
266 (line_header::is_valid_file_index): New function.
267 (line_header::file_name_at): Change comment and implementation on
268 whether it is DWARF 5.
269 (line_header::file_names): Change to private field renamed as
270 m_file_names and introduce a new accessor method.
271 (line_header::file_names_size): New method.
272 (line_header::include_dirs): Change to private field and rename as
273 m_include_dirs.
274 (dw2_get_file_names_reader): Define local var at a smaller scope and
275 reflect API change.
276 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
277 (process_structure_scope): Likewise.
278 (line_header::add_include_dir): Change message and reflect renaming.
279 (line_header::add_file_name): Likewise.
280 (read_formatted_entries): Handle DW_FORM_data16.
281 (dwarf_decode_line_header): Fix line header length calculation.
282 (psymtab_include_file_name): Change comment and API.
283 (lnp_state_machine::m_file): Update comment and reflect type change.
284 (lnp_state_machine::record_line): Reflect type change.
285 (dwarf_decode_lines): Reflect API change.
286 (file_file_name): Likewise.
287 (file_full_name): Likewise.
288
45f47c3a
AB
2892019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
292
e5f3c0e3
TT
2932019-10-21 Tom Tromey <tom@tromey.com>
294
295 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
296
a0a461e5
TT
2972019-10-21 Tom Tromey <tom@tromey.com>
298
299 * configure.ac (nm.h): Conditionally create nm.h link. Subst
300 NM_H. Use AC_CONFIG_LINKS.
301 * configure: Rebuild.
302 * Makefile.in (NM_H): New variable.
303 (generated_files): Add NM_H. Remove gcore.
304 (nm.h, stamp-nmh): New targets.
305
54d83b8d
TT
3062019-10-20 Tom Tromey <tom@tromey.com>
307
308 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
309 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
310 obsolete comment.
311 (put_objfile_before): Now static.
312
23771117
SM
3132019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * gdbsupport/common-utils.h (startswith): Change return type to
316 bool.
317
39ef2f62
CB
3182019-10-19 Christian Biesinger <cbiesinger@google.com>
319
320 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
321 * breakpoint.c (bp_locations_compare): Rename to...
322 (bp_location_is_less_than): ...this, and change to std::sort semantics.
323 (update_global_location_list): Use std::sort instead of qsort.
324 * buildsym.c (compare_line_numbers): Rename to...
325 (lte_is_less_than): ...this, and change to std::sort semantics.
326 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
327 instead of qsort.
328 * disasm.c (compare_lines): Rename to...
329 (line_is_less_than): ...this, and change to std::sort semantics.
330 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
331 of qsort.
332 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
333 (fde_is_less_than): ...this, and change to std::sort semantics.
334 (dwarf2_build_frame_info): Call std::sort instead of qsort.
335 * mdebugread.c (compare_blocks):
336 (block_is_less_than): ...this, and change to std::sort semantics.
337 (sort_blocks): Call std::sort instead of qsort.
338 * objfiles.c (qsort_cmp): Rename to...
339 (sort_cmp): ...this, and change to std::sort semantics.
340 (update_section_map): Call std::sort instead of qsort.
341 * remote.c (compare_pnums): Remove.
342 (map_regcache_remote_table): Call std::sort instead of qsort.
343 * utils.c (compare_positive_ints): Remove.
344 * utils.h (compare_positive_ints): Remove.
345 * xcoffread.c (compare_lte): Remove.
346 (arrange_linetable): Call std::sort instead of qsort.
347
f71433ee
SDJ
3482019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
349
350 * symfile.c (init_entry_point_info): Fix typo.
351 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
352
85102364
TV
3532019-10-18 Tom de Vries <tdevries@suse.de>
354
355 * aarch64-tdep.c: Fix typos in comments.
356 * ada-lang.c: Same.
357 * ada-tasks.c: Same.
358 * alpha-tdep.c: Same.
359 * alpha-tdep.h: Same.
360 * amd64-nat.c: Same.
361 * amd64-windows-tdep.c: Same.
362 * arc-tdep.c: Same.
363 * arc-tdep.h: Same.
364 * arch-utils.c: Same.
365 * arm-nbsd-tdep.c: Same.
366 * arm-tdep.c: Same.
367 * ax-gdb.c: Same.
368 * blockframe.c: Same.
369 * btrace.c: Same.
370 * c-varobj.c: Same.
371 * coff-pe-read.c: Same.
372 * coffread.c: Same.
373 * cris-tdep.c: Same.
374 * darwin-nat.c: Same.
375 * dbxread.c: Same.
376 * dcache.c: Same.
377 * disasm.c: Same.
378 * dtrace-probe.c: Same.
379 * dwarf-index-write.c: Same.
380 * dwarf2-frame-tailcall.c: Same.
381 * dwarf2-frame.c: Same.
382 * dwarf2read.c: Same.
383 * eval.c: Same.
384 * exceptions.c: Same.
385 * fbsd-tdep.c: Same.
386 * findvar.c: Same.
387 * frame.c: Same.
388 * frv-tdep.c: Same.
389 * gnu-v3-abi.c: Same.
390 * go32-nat.c: Same.
391 * h8300-tdep.c: Same.
392 * hppa-tdep.c: Same.
393 * i386-linux-tdep.c: Same.
394 * i386-tdep.c: Same.
395 * ia64-libunwind-tdep.c: Same.
396 * ia64-tdep.c: Same.
397 * infcmd.c: Same.
398 * infrun.c: Same.
399 * linespec.c: Same.
400 * linux-nat.c: Same.
401 * linux-thread-db.c: Same.
402 * machoread.c: Same.
403 * mdebugread.c: Same.
404 * mep-tdep.c: Same.
405 * mn10300-tdep.c: Same.
406 * namespace.c: Same.
407 * objfiles.c: Same.
408 * opencl-lang.c: Same.
409 * or1k-tdep.c: Same.
410 * osabi.c: Same.
411 * ppc-linux-nat.c: Same.
412 * ppc-linux-tdep.c: Same.
413 * ppc-sysv-tdep.c: Same.
414 * printcmd.c: Same.
415 * procfs.c: Same.
416 * record-btrace.c: Same.
417 * record-full.c: Same.
418 * remote-fileio.c: Same.
419 * remote.c: Same.
420 * rs6000-tdep.c: Same.
421 * s12z-tdep.c: Same.
422 * score-tdep.c: Same.
423 * ser-base.c: Same.
424 * ser-go32.c: Same.
425 * skip.c: Same.
426 * sol-thread.c: Same.
427 * solib-svr4.c: Same.
428 * solib.c: Same.
429 * source.c: Same.
430 * sparc-nat.c: Same.
431 * sparc-sol2-tdep.c: Same.
432 * sparc-tdep.c: Same.
433 * sparc64-tdep.c: Same.
434 * stabsread.c: Same.
435 * stack.c: Same.
436 * symfile.c: Same.
437 * symtab.c: Same.
438 * target-descriptions.c: Same.
439 * target-float.c: Same.
440 * thread.c: Same.
441 * utils.c: Same.
442 * valops.c: Same.
443 * valprint.c: Same.
444 * value.c: Same.
445 * varobj.c: Same.
446 * windows-nat.c: Same.
447 * xcoffread.c: Same.
448 * xstormy16-tdep.c: Same.
449 * xtensa-tdep.c: Same.
450
c5adaa19
TT
4512019-10-17 Tom Tromey <tromey@adacore.com>
452
453 * configure: Rebuild.
454 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
455 in AC_CONFIG_FILES invocation.
456 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
457 new-style config.status invocation.
458
405feb71
TV
4592019-10-17 Tom de Vries <tdevries@suse.de>
460
461 * arm-nbsd-nat.c: Fix typos in comments.
462 * arm-tdep.c: Same.
463 * darwin-nat-info.c: Same.
464 * dwarf2read.c: Same.
465 * elfread.c: Same.
466 * event-top.c: Same.
467 * findvar.c: Same.
468 * gdbtypes.c: Same.
469 * hppa-tdep.c: Same.
470 * i386-tdep.c: Same.
471 * jit.c: Same.
472 * main.c: Same.
473 * mdebugread.c: Same.
474 * moxie-tdep.c: Same.
475 * nto-procfs.c: Same.
476 * osabi.c: Same.
477 * ppc-linux-tdep.c: Same.
478 * remote.c: Same.
479 * riscv-tdep.c: Same.
480 * s390-tdep.c: Same.
481 * sh-tdep.c: Same.
482 * sparc-linux-tdep.c: Same.
483 * sparc-nat.c: Same.
484 * stack.c: Same.
485 * target-descriptions.c: Same.
486 * top.c: Same.
487 * varobj.c: Same.
488
befcd486
TT
4892019-10-16 Tom Tromey <tom@tromey.com>
490
491 * objfiles.h (struct objfile) <original_name>: Now const.
492
17bfe554
CB
4932019-10-16 Christian Biesinger <cbiesinger@google.com>
494
495 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
496 pass on to sigsetjmp's second argument.
497 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
498
950b7495
KS
4992019-10-16 Keith Seitz <keiths@redhat.com>
500
501 PR gdb/23567
502 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
503 sections whose size is greater than the file size.
504
ff371ec9
JW
5052019-10-16 Jim Wilson <jimw@sifive.com>
506
507 * riscv-tdep.c (riscv_gcc_target_options): New.
508 (riscv_gnu_triplet_regexp): New.
509 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
510 set_gdbarch_gnu_triplet_regexp.
511
fec4e896
CB
5122019-10-16 Christian Biesinger <cbiesinger@google.com>
513
514 * Makefile.in: Add xml-builtin.h.
515 * features/feature_to_c.sh: Add an include for xml-builtin.h
516 to ensure that the compiler checks that the types match.
517 * xml-builtin.h: New file.
518 * xml-support.c (fetch_xml_builtin): Add missing const.
519 * xml-support.h: Remove declaration of xml_builtins.
520
d10eccaa
TV
5212019-10-16 Tom de Vries <tdevries@suse.de>
522
523 PR tdep/25096
524 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
525 (amd64_classify_aggregate): ... here.
526 (amd64_classify_aggregate_field): Handled fiels of nested structs
527 recursively.
528
745ff14e
TV
5292019-10-16 Tom de Vries <tdevries@suse.de>
530
531 PR tdep/24104
532 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
533 that handles 'theclass'.
534
791b7405
AB
5352019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
536
537 * linespec.c (decode_digits_ordinary): Update comment.
538 * make-target-delegates: No longer need to handle VEC case.
539 * memrange.c (normalize_mem_ranges): Update comment.
540 * namespace.c (add_using_directive): Update comment.
541 * objc-lang.c (uniquify_strings): Update comment.
542 * ppc-linux-nat.c (struct thread_points): Update comment.
543 * probe.h (find_probes_in_objfile): Update comment.
544 * target.h (enum flash_preserve_mode): Update comment.
545 * varobj.c (varobj_restrict_range): Update comment.
546 * varobj.h (varobj_list_children): Update comment.
547
0dc32745
AB
5482019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
549
550 * Makefile.in: Remove references to vec.h and vec.c.
551 * aarch64-tdep.c: No longer include vec.h.
552 * ada-lang.c: Likewise.
553 * ada-lang.h: Likewise.
554 * arm-tdep.c: Likewise.
555 * ax.h: Likewise.
556 * breakpoint.h: Likewise.
557 * charset.c: Likewise.
558 * cp-support.h: Likewise.
559 * dtrace-probe.c: Likewise.
560 * dwarf2read.c: Likewise.
561 * extension.h: Likewise.
562 * gdb_bfd.c: Likewise.
563 * gdbsupport/gdb_vecs.h: Likewise.
564 * gdbsupport/vec.c: Remove.
565 * gdbsupport/vec.h: Remove.
566 * gdbthread.h: Likewise.
567 * guile/scm-type.c: Likewise.
568 * inline-frame.c: Likewise.
569 * machoread.c: Likewise.
570 * memattr.c: Likewise.
571 * memrange.h: Likewise.
572 * namespace.h: Likewise.
573 * nat/linux-btrace.h: Likewise.
574 * osdata.c: Likewise.
575 * parser-defs.h: Likewise.
576 * progspace.h: Likewise.
577 * python/py-type.c: Likewise.
578 * record-btrace.c: Likewise.
579 * rust-exp.y: Likewise.
580 * solib-target.c: Likewise.
581 * stap-probe.c: Likewise.
582 * target-descriptions.c: Likewise.
583 * target-memory.c: Likewise.
584 * target.h: Likewise.
585 * varobj.c: Likewise.
586 * varobj.h: Likewise.
587 * xml-support.h: Likewise.
588
ae640021
AB
5892019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
590
591 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
592 Update for new std::vector based implementation.
593 (process_psymtab_comp_unit_reader): Likewise.
594 (scan_partial_symbols): Likewise.
595 (recursively_compute_inclusions): Likewise.
596 (compute_compunit_symtab_includes): Likewise.
597 (process_imported_unit_die): Likewise.
598 (queue_and_load_dwo_tu): Likewise.
599 (follow_die_sig_1): Likewise.
600 * gdb/dwarf2read.h: Remove DEF_VEC_P.
601 (typedef dwarf2_per_cu_ptr): Remove.
602 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
603 function.
604 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
605 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
606 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
607 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
608 std::vector.
609
55dfc88f
TT
6102019-10-15 Tom Tromey <tromey@adacore.com>
611
612 * windows-nat.c (windows_nat_target::resume): Use %x when logging
613 TID.
614
96b49c5e
TT
6152019-10-15 Tom Tromey <tromey@adacore.com>
616
617 * windows-nat.c (windows_nat_target::fetch_registers)
618 (windows_nat_target::store_registers): Rename "pid" to "tid".
619
953cff56
TT
6202019-10-15 Tom Tromey <tromey@adacore.com>
621
622 * gdbarch.h, gdbarch.c: Rebuild.
623 * gdbarch.sh (gcc_target_options): Change return type to
624 std::string.
625 * compile/compile.c (get_args): Update.
626 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
627 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
628 std::string.
629 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
630 std::string.
631 * arch-utils.c (default_gcc_target_options): Return std::string.
632 * arch-utils.h (default_gcc_target_options): Return std::string.
633 * s390-tdep.c (s390_gcc_target_options): Return std::string.
634
81e6b8eb
CB
6352019-10-15 Christian Biesinger <cbiesinger@google.com>
636
637 * breakpoint.c (breakpoint_chain): Make static.
638 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
639 of accessing breakpoint_chain.
640
95da600f
CB
6412019-10-15 Christian Biesinger <cbiesinger@google.com>
642
643 * breakpoint.c (iterate_over_breakpoints): Change function pointer
644 to a gdb::function_view and return value to bool.
645 * breakpoint.h (iterate_over_breakpoints): Likewise.
646 * dummy-frame.c (pop_dummy_frame_bpt): Update.
647 (pop_dummy_frame): Update.
648 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
649 (gdbscm_breakpoints): Update.
650 * python/py-breakpoint.c (build_bp_list): Update.
651 (gdbpy_breakpoints): Update.
652 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
653 Update.
654 (bpfinishpy_handle_stop): Update.
655 (bpfinishpy_handle_exit): Update.
656 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
657 (svr4_update_solib_event_breakpoints): Update.
658
ba18312d
AA
6592019-10-15 Andreas Arnez <arnez@linux.ibm.com>
660
661 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
662 when unwrapping single-field structs.
663
6acc1a0b
SM
6642019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
665
666 * dwarf2read.c: Remove includes.
667
284782de
SM
6682019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
669
670 * ui-out.c (ui_out::call_do_message): Silence
671 -Wformat-nonliteral warning.
672
073bbbb0
SM
6732019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
674
675 * breakpoint.c: Remove some includes: continuations.h, skip.h,
676 mi/mi-main.h, readline/readline.h, readline/history.h. Add
677 include: readline/tilde.h.
678
7b9a15e1
CB
6792019-10-12 Christian Biesinger <cbiesinger@google.com>
680
681 * remote.c (remote_target::get_trace_status): Remove declaration of
682 trace_regblock_size.
683
cc8dee1f
CB
6842019-10-12 Christian Biesinger <cbiesinger@google.com>
685
686 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
687 (show_user): Remove declaration of cmdlist.
688 * cli/cli-cmds.h (max_user_call_depth): Declare.
689 * cli/cli-script.c (execute_user_command): Remove declaration
690 of max_user_call_depth.
691
a83d4ef6
JW
6922019-10-11 Jim Wilson <jimw@sifive.com>
693
5f93c5a6
JW
694 * gdbsupport/print-utils.h (pulongest): Fix comment.
695 (plongest): Likewise.
696 (phex): Add missing comment, mention leading zeros.
697 (phex_nz): Add mention of no leading zeros to comment.
698
a83d4ef6
JW
699 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
700 plongest instead of unsigned long long cast.
701
26344e0c
CB
7022019-10-10 Christian Biesinger <cbiesinger@google.com>
703
704 * main.c (captured_main_1): Include gdbtk.h and remove declarations
705 for external_editor_command and gdbtk_test.
706
c2c440a9
CB
7072019-10-10 Christian Biesinger <cbiesinger@google.com>
708
709 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
710 * varobj.c (varobjdebug): Move comment to...
711 * varobj.h (varobjdebug): ...here, and declare.
712
a31bff9d
TT
7132019-10-09 Tom Tromey <tom@tromey.com>
714
715 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
716 erase_data_content.
717
7523da63
TT
7182019-10-09 Tom Tromey <tom@tromey.com>
719
720 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
721 * tui/tui-stack.c (tui_locator_window::rerender): Update.
722 * tui/tui-command.c (tui_cmd_window::resize)
723 (tui_refresh_cmd_win): Update.
724 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
725 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
726 * tui/tui-data.c (~tui_gen_win_info): Remove.
727 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
728 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
729 (tui_redisplay_readline, tui_mld_flush)
730 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
731 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
732 (tui_data_window::erase_data_content)
733 (tui_data_item_window::rerender)
734 (tui_data_item_window::refresh_window): Update.
735 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
736 (box_win, tui_gen_win_info::make_window)
737 (tui_gen_win_info::make_visible): Update.
738 (tui_delete_win): Remove.
739 * tui/tui-winsource.c
740 (tui_source_window_base::do_erase_source_content): Update.
741 (tui_show_source_line, tui_source_window_base::update_tab_width)
742 (tui_source_window_base::update_exec_info): Update.
743 * tui/tui-data.h (struct curses_deleter): New.
744 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
745 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
746
a7798e7f
TT
7472019-10-09 Tom Tromey <tom@tromey.com>
748
749 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
750
5c45899e
TT
7512019-10-09 Tom Tromey <tom@tromey.com>
752
753 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
754 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
755
6d7fd9aa
TT
7562019-10-09 Tom Tromey <tom@tromey.com>
757
758 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
759 window height directly.
760 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
761 declare.
762 * tui/tui-layout.c (tui_default_win_height): Remove.
763 (tui_default_win_viewport_height): Remove.
764
d2dd1084
TT
7652019-10-09 Tom Tromey <tom@tromey.com>
766
767 * tui/tui.h: Remove comments.
768
cff32449
TV
7692019-10-09 Tom de Vries <tdevries@suse.de>
770
771 * python/lib/gdb/printer/bound_registers.py: Use
772 '^builtin_type_bound128' as regexp argument for
773 add_builtin_pretty_printer.
774
6a25e8a2
CB
7752019-10-09 Christian Biesinger <cbiesinger@google.com>
776
777 * guile/guile.c (guile_extension_script_ops): Remove forward
778 declaration and mark as static.
779 (guile_script_ops): Likewise.
780 (extension_language_guile): Move further down in the file so
781 it can reference the definitions for guile_{extension_,}script_ops.
782
6d9d6da4
AA
7832019-10-09 Andreas Arnez <arnez@linux.ibm.com>
784
785 * s390-tdep.c (390_process_record): Handle new arch13 instructions
786 except SORTL, DFLTCC, and KDSA.
787
3abea05d
TT
7882019-10-08 Tom Tromey <tromey@adacore.com>
789
790 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
791 (struct safe_symbol_file_add_args): Remove.
792
dde996e2
TT
7932019-10-08 Tom Tromey <tromey@adacore.com>
794
795 * windows-nat.c: Don't include buildsym-legacy.h.
796
cd6fdaa1
TT
7972019-10-08 Tom Tromey <tromey@adacore.com>
798
799 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
800
79bb1944
CB
8012019-10-08 Christian Biesinger <cbiesinger@google.com>
802
803 * gdbtypes.c (overload_debug): Move comment to header.
804 * gdbtypes.h (overload_debug): Declare.
805 * valops.c: Remove declaration of overload_debug, instead
806 include gdbtypes.h.
807
34916edc
CB
8082019-10-08 Christian Biesinger <cbiesinger@google.com>
809
810 * language.c (show_language_command): Pass lang_frame_mismatch_warn
811 through _().
812 (lang_frame_mismatch_warn): Make const, mark with N_(), and
813 move comment...
814 * language.h (lang_frame_mismatch_warn): ... here. Also add
815 declaration.
816 * top.c (lang_frame_mismatch_warn): Remove declaration.
817 (check_frame_language_change): Pass lang_frame_mismatch_warn
818 through _().
819
bad5c026
CB
8202019-10-07 Christian Biesinger <cbiesinger@google.com>
821
822 * c-lang.h (vtbl_ptr_name): Declare.
823 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
824 it from the header.
825 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
826
51f1fdc3
CB
8272019-10-07 Christian Biesinger <cbiesinger@google.com>
828
829 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
830 gdb_static_assert.
831
30d1f018
WP
8322019-10-07 Weimin Pan <weimin.pan@oracle.com>
833
606813d5
WP
834 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
835 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
836 * ctfread.c: New file.
837 * ctfread.h: New file.
838 * elfread.c: Include ctfread.h.
839 (struct elfinfo text_p): New member ctfsect.
840 (elf_locate_sections): Mark CTF section.
841 (elf_symfile_read): Call elfctf_build_psymtabs.
842 * Makefile.in (LIBCTF): Add.
843 (CLIBS): Use it.
844 (CDEPS): Likewise.
845 (DIST): Add ctfread.c.
606813d5
WP
846
8472019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * ctfread.c (struct nextfield): Renamed to ...
850 (struct ctf_nextfield): ... this.
851 (struct field_info): Renamed to ...
852 (strut ctf_field_info): ... this.
853 (attach_fields_to_type): Update for renamed structures.
854 (ctf_add_member_cb): Likewise.
855 (ctf_add_enum_member_cb): Likewise.
856 (process_struct_members): Likewise.
857 (process_enum_type): Likewise.
30d1f018 858
518fe38c
WP
8592019-10-07 Weimin Pan <weimin.pan@oracle.com>
860
861 * tracectf.h: Rename, was ctf.h.
862 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
863 * tracefile.c: Likewise.
864 * tracepoint.c: Remove unused include ctf.h.
865 * mi/mi-main.c: Likewise.
866 * Makefile.in Replace ctf.c with tracectf.c.
867
225f296a
JB
8682019-10-06 Joel Brobecker <brobecker@adacore.com>
869
870 * version.in: Change version number to "9.0.50.DATE-git".
871
77c2dba3
TT
8722019-10-03 Tom Tromey <tom@tromey.com>
873
874 PR rust/24976:
875 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
876
179aed7f
AB
8772019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
878
879 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
880 cp_search_name_hash.
881 * NEWS: Add entry about nested function support.
882
0a4b0913
AB
8832019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
884 Andrew Burgess <andrew.burgess@embecosm.com>
885
886 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
887 for nested static variables when searchin VAR_DOMAIN.
888 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
889 global scope, update comment.
890 (add_partial_subprogram): Call add_partial_subprogram recursively
891 for nested subroutines when processinng Fortran.
892 (load_partial_dies): Process the child entities of a subprogram
893 when processing Fortran.
894 (partial_die_parent_scope): Handle building scope
895 for Fortran nested functions.
896 (process_die): Record that nested functions have a scope.
897 (new_symbol): Always record Fortran subprograms on the global
898 symbol list.
899 (determine_prefix): How to build the prefix for Fortran
900 subprograms.
901
d8c06f22
AB
9022019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
903
904 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
905 have just sent the thread a SIGSTOP and are waiting for it to
906 arrive.
907
a8b3b8e9
AB
9082019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
909
910 * btrace.c (btrace_add_pc): Remove whitespace before the template
911 parameter in 'std::vector <...>'.
912 (parse_xml_btrace_block): Likewise.
913 (btrace_maint_decode_pt): Likewise.
914 (btrace_maint_update_packets): Likewise.
915 (btrace_maint_print_packets): Likewise.
916 * btrace.h (struct btrace_maint_info): Likewise.
917 * dwarf2read.c (struct type_unit_group): Likewise.
918 (build_type_psymtabs_reader): Likewise.
919 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
920 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
921 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
922
4d825eab
TV
9232019-10-03 Tom de Vries <tdevries@suse.de>
924
925 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
926 the first line of the help text for set/show style metadata.
927
80fd2826
TT
9282019-10-02 Tom Tromey <tromey@adacore.com>
929
930 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
931 * gdbsupport/common-inferior.c: New file.
932 * infcmd.c (startup_with_shell): Don't define.
933 * nat/fork-inferior.h (startup_with_shell): Don't declare.
934 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
935 * inferior.h (startup_with_shell): Don't declare.
936
70054538
CB
9372019-10-02 Christian Biesinger <cbiesinger@google.com>
938
939 * gdbsupport/gdb_assert.h: Include errors.h.
940 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
941
37f6a7f4
TT
9422019-10-02 Tom Tromey <tromey@adacore.com>
943
944 * NEWS: Add $_ada_exception entry.
945 * ada-lang.c (struct ada_catchpoint): Add constructor.
946 <m_kind>: New member.
947 (allocate_location_exception, re_set_exception): Remove
948 "ex" parameter.
949 (should_stop_exception): Compute $_ada_exception.
950 (check_status_exception, print_it_exception)
951 (print_one_exception, print_mention_exception): Remove
952 "ex" parameter.
953 (allocate_location_catch_exception, re_set_catch_exception)
954 (check_status_exception, print_it_catch_exception)
955 (print_one_catch_exception, print_mention_catch_exception)
956 (print_recreate_catch_exception)
957 (allocate_location_catch_exception_unhandled)
958 (re_set_catch_exception_unhandled)
959 (check_status_exception, print_it_catch_exception_unhandled)
960 (print_one_catch_exception_unhandled)
961 (print_mention_catch_exception_unhandled)
962 (print_recreate_catch_exception_unhandled)
963 (allocate_location_catch_assert, re_set_catch_assert)
964 (check_status_assert, print_it_catch_assert)
965 (print_one_catch_assert, print_mention_catch_assert)
966 (print_recreate_catch_assert)
967 (allocate_location_catch_handlers, re_set_catch_handlers)
968 (check_status_handlers, print_it_catch_handlers)
969 (print_one_catch_handlers, print_mention_catch_handlers)
970 (print_recreate_catch_handlers): Remove.
971 (create_ada_exception_catchpoint): Update.
972 (initialize_ada_catchpoint_ops): Update.
973
fccf9de1
TT
9742019-10-02 Tom Tromey <tromey@adacore.com>
975
976 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
977 (create_excep_cond_exprs): Simplify exception string computation.
978 (ada_exception_catchpoint_cond_string): Likewise.
979
4b610737
TT
9802019-10-02 Tom Tromey <tromey@adacore.com>
981
982 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
983 * ada-lang.c (lesseq_defined_than): Handle
984 LOC_STATIC.
985 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
986 parameter.
987 (dwarf2_has_info): Likewise.
988 (new_symbol): Set maybe_copied on symbol when
989 appropriate.
990 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
991 parameter.
992 <can_copy>: New member.
993 * elfread.c (record_minimal_symbol): Set maybe_copied
994 on symbol when appropriate.
995 (elf_symfile_read): Update call to dwarf2_has_info.
996 * minsyms.c (lookup_minimal_symbol_linkage): New
997 function.
998 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
999 * symtab.c (get_symbol_address, get_msymbol_address):
1000 New functions.
1001 * symtab.h (get_symbol_address, get_msymbol_address):
1002 Declare.
1003 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1004 maybe_copied.
1005 (struct symbol, struct minimal_symbol) <maybe_copied>:
1006 New member.
1007
1dd58850
TT
10082019-10-02 Tom Tromey <tromey@adacore.com>
1009
1010 * source.c (struct current_source_location): New.
1011 (current_source_key): New global.
1012 (current_source_symtab, current_source_line)
1013 (current_source_pspace): Remove.
1014 (get_source_location): New function.
1015 (get_current_source_symtab_and_line)
1016 (set_default_source_symtab_and_line)
1017 (set_current_source_symtab_and_line)
1018 (clear_current_source_symtab_and_line, select_source_symtab)
1019 (info_source_command, print_source_lines_base)
1020 (info_line_command, search_command_helper, _initialize_source):
1021 Update.
1022
5c281dbb
TT
10232019-10-02 Tom Tromey <tromey@adacore.com>
1024
1025 * source.c (select_source_symtab): Don't call
1026 decode_line_with_current_source.
1027
d3d32391
AB
10282019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1029
1030 * symtab.c (lookup_global_symbol): Search global block.
1031
38583298
TT
10322019-10-02 Tom Tromey <tromey@adacore.com>
1033
1034 * coffread.c (process_coff_symbol): Update.
1035 * dwarf2read.c (var_decode_location, new_symbol): Update.
1036 * mdebugread.c (parse_symbol): Update.
1037 * objfiles.c (relocate_one_symbol): Update.
1038 * stabsread.c (define_symbol, fix_common_block)
1039 (scan_file_globals): Update.
1040 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1041 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1042 * xcoffread.c (process_xcoff_symbol): Update.
1043
9344c18f
AA
10442019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1045
1046 * MAINTAINERS: Update my email address.
1047
df07e2c7
AB
10482019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1049
1050 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1051 std::vector.
1052 (build_type_psymtabs_reader): Update for std::vector.
1053 (build_type_psymtab_dependencies): Likewise.
1054 * dwarf2read.h: Remove use of DEF_VEC_P.
1055 (typedef sig_type_ptr): Delete.
1056
554ac434
AB
10572019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1058
1059 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1060 to std::vector.
1061 (btrace_maint_decode_pt): Likewise, and move allocation of the
1062 vector outside of the loop.
1063 (btrace_maint_update_packets): Update to handle change from VEC to
1064 std::vector.
1065 (btrace_maint_print_packets): Likewise.
1066 (maint_info_btrace_cmd): Likewise.
1067 * btrace.h: Remove use of DEF_VEC_O.
1068 (typedef btrace_pt_packet_s): Delete.
1069 (struct btrace_maint_info) <packets>: Change fromm VEC to
1070 std::vector.
1071 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1072
46f29a9a
AB
10732019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1074
1075 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1076 make accesses into the vector constant references.
1077 (btrace_add_pc): Update for std::vector.
1078 (btrace_stitch_bts): Likewise.
1079 (parse_xml_btrace_block): Likewise.
1080 (btrace_maint_update_packets): Likewise.
1081 (btrace_maint_print_packets): Likewise.
1082 (maint_info_btrace_cmd): Likewise.
1083 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1084 std::vector.
1085 (btrace_data::empty): Likewise.
1086 (btrace_data_append): Likewise.
1087 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1088 (typedef btrace_block_s): Delete.
1089 (struct btrace_block): Add constructor.
1090 (struct btrace_data_bts) <blocks>: Change to std::vector.
1091 * nat/linux-btrace.c (perf_event_read_bts): Update for
1092 std::vector.
1093 (linux_read_bts): Likewise.
1094
d770d56f
TT
10952019-10-01 Tom Tromey <tom@tromey.com>
1096
1097 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1098
9d636d67
TT
10992019-10-01 Tom Tromey <tom@tromey.com>
1100
1101 * stack.c (print_frame, info_frame_command_core): Use
1102 styled_string.
1103 * linux-thread-db.c (try_thread_db_load_1)
1104 (try_thread_db_load_from_pdir_1): Use styled_string.
1105 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1106 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1107 (maybe_print_unsupported_script_warning)
1108 (maybe_print_script_not_found_warning): Use styled_string.
1109 * ada-lang.c (user_select_syms): Use styled_string.
1110
7f6aba03
TT
11112019-10-01 Tom Tromey <tom@tromey.com>
1112
1113 * p-lang.c (pascal_printstr): Use metadata style.
1114 * value.c (show_convenience): Use metadata style.
1115 * valprint.c (valprint_check_validity, val_print_optimized_out)
1116 (val_print_not_saved, val_print_unavailable)
1117 (val_print_invalid_address, generic_val_print, val_print)
1118 (value_check_printable, val_print_array_elements): Use metadata
1119 style.
1120 * ui-out.h (class ui_out) <field_fmt>: New overload.
1121 <do_field_fmt>: Add style parameter.
1122 * ui-out.c (ui_out::field_fmt): New overload.
1123 * typeprint.c (type_print_unknown_return_type)
1124 (val_print_not_allocated, val_print_not_associated): Use metadata
1125 style.
1126 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1127 parameter.
1128 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1129 * tracepoint.c (tvariables_info_1): Use metadata style.
1130 * stack.c (print_frame_arg, print_frame_info, print_frame)
1131 (info_frame_command_core): Use metadata style.
1132 * skip.c (info_skip_command): Use metadata style.
1133 * rust-lang.c (rust_print_enum): Use metadata style.
1134 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1135 metadata style.
1136 * python/py-framefilter.c (py_print_single_arg): Use metadata
1137 style.
1138 * printcmd.c (do_one_display, print_variable_and_value): Use
1139 metadata style.
1140 * p-valprint.c (pascal_val_print)
1141 (pascal_object_print_value_fields): Use metadata style.
1142 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1143 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1144 parameter.
1145 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1146 * m2-valprint.c (m2_print_long_set): Use metadata style.
1147 * m2-typeprint.c (m2_print_type): Use metadata style.
1148 * infcmd.c (print_return_value_1): Use metadata style.
1149 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1150 * f-valprint.c (info_common_command_for_block): Use metadata
1151 style.
1152 * f-typeprint.c (f_type_print_base): Use metadata style.
1153 * expprint.c (print_subexp_standard): Use metadata style.
1154 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1155 * cli/cli-style.h (class cli_style_option): Add constructor.
1156 (metadata_style): Declare.
1157 * cli/cli-style.c (metadata_style): New global.
1158 (_initialize_cli_style): Register metadata style.
1159 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1160 parameter.
1161 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1162 * c-typeprint.c (c_type_print_base_struct_union)
1163 (c_type_print_base_1): Use metadata style.
1164 * breakpoint.c (watchpoint_value_print)
1165 (print_one_breakpoint_location): Use metadata style.
1166 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1167 style.
1168 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1169 style.
1170 * ada-valprint.c (val_print_packed_array_elements, printstr)
1171 (print_field_values, ada_val_print_ref, ada_val_print): Use
1172 metadata style.
1173 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1174 style.
1175 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1176 style.
1177 * ada-lang.c (user_select_syms): Use metadata style.
1178
14309bb6
TT
11792019-10-01 Tom Tromey <tom@tromey.com>
1180
1181 * cli/cli-cmds.c (pwd_command): Style output.
1182
6a831f06
PA
11832019-10-01 Pedro Alves <palves@redhat.com>
1184 Tom Tromey <tom@tromey.com>
1185
1186 * symtab.c (print_symbol_info): Use %ps.
1187 (print_msymbol_info): Use %ps.
1188 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1189 * printcmd.c (print_variable_and_value): Use %ps.
1190 * macrocmd.c (show_pp_source_pos): Use %ps.
1191 * infrun.c (print_exited_reason): Use ui_out::message.
1192 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1193 (describe_other_breakpoints): Use ui_out::message and new
1194 formats.
1195 (say_where): Use new formats.
1196 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1197 and new formats.
1198
2a3c1174
PA
11992019-10-01 Pedro Alves <palves@redhat.com>
1200 Tom Tromey <tom@tromey.com>
1201
1202 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1203 (test_gdb_formats): New function.
1204 (run_tests): Call it.
1205 (test_format_specifier): Update.
1206 * utils.h (fputs_filtered): Update comment.
1207 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1208 (fputs_styled_unfiltered): Declare.
1209 * utils.c (fputs_styled_unfiltered): New function.
1210 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1211 (vfprintf_filtered): Update.
1212 (vfprintf_unfiltered, vprintf_filtered): Update.
1213 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1214 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1215 disallow_ui_out_field>: New constants.
1216 (enum class field_kind): New.
1217 (struct base_field_s, struct signed_field_s): New.
1218 (signed_field): New function.
1219 (struct string_field_s): New.
1220 (string_field): New function.
1221 (struct styled_string_s): New.
1222 (styled_string): New function.
1223 (class ui_out) <message>: Add comment.
1224 <vmessage, call_do_message>: New methods.
1225 <do_message>: Add style parameter.
1226 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1227 methods.
1228 (ui_out::message): Rewrite.
1229 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1230 parameter.
1231 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1232 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1233 gdb_extensions parameter.
1234 (class format_piece): Add parameter to constructor.
1235 (n_int_args): New field.
1236 * gdbsupport/format.c (format_pieces::format_pieces): Add
1237 gdb_extensions parameter. Handle '*'.
1238 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1239 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1240 vfprintf_styled_no_gdbfmt.
1241 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1242 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1243 unfiltered output.
1244 * ui-style.h (struct ui_file_style) <ptr>: New method.
1245
0dfe5bfb
TT
12462019-10-01 Tom Tromey <tom@tromey.com>
1247
1248 * unittests/format_pieces-selftests.c: Update. Add final format.
1249 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1250 empty literal pieces.
1251
e43b10e1
TT
12522019-10-01 Tom Tromey <tom@tromey.com>
1253
1254 * ui-out.h (enum class ui_out_style_kind): Remove.
1255 (class ui_out) <field_string, field_stsream, do_field_string>:
1256 Change type of "style".
1257 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1258 (ui_out::field_string): Update.
1259 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1260 of "style".
1261 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1262 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1263 * stack.c (print_frame_arg, print_frame_info, print_frame):
1264 Update.
1265 * source.c (print_source_lines_base): Update.
1266 * solib.c (info_sharedlibrary_command): Update.
1267 * skip.c (info_skip_command): Update.
1268 * record-btrace.c (btrace_call_history_src_line)
1269 (btrace_call_history): Update.
1270 * python/py-framefilter.c (py_print_frame): Update.
1271 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1272 "style".
1273 * mi/mi-out.c (mi_ui_out::do_table_header)
1274 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1275 (mi_ui_out::do_field_string): Update.
1276 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1277 Update.
1278 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1279 "style".
1280 * cli-out.c (cli_ui_out::do_table_header)
1281 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1282 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1283 (cli_ui_out::do_field_fmt): Update.
1284 * breakpoint.c (print_breakpoint_location): Update.
1285 (update_static_tracepoint): Update.
1286
cd7c32c3
PW
12872019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1288
1289 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1290 conversion of gdb_datadir.
1291 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1292 remove not needed c_str ().
1293
8fe0f950
AT
12942019-09-30 Ali Tamur <tamur@google.com>
1295
1296 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1297 (dwarf2_string_attr): Likewise.
1298
5f48f8f3
AT
12992019-09-30 Ali Tamur <tamur@google.com>
1300
1301 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1302 (process_full_type_unit): Likewise.
1303 (dump_die_shallow): Likewise.
1304 (cu_debug_loc_section): Likewise.
1305
6fb08628
CB
13062019-09-28 Christian Biesinger <cbiesinger@google.com>
1307
1308 * minsyms.c (compare_minimal_symbols): Rename to...
1309 (minimal_symbol_is_less_than): ...this, and adjust to STL
1310 conventions (return bool, take arguments as references)
1311 (minimal_symbol_reader::install): Call std::sort instead
1312 of qsort.
1313
c7ee338a
CB
13142019-09-29 Christian Biesinger <cbiesinger@google.com>
1315
1316 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1317 hash and why.
1318 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1319 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1320
703a86c2
SM
13212019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1322
1323 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1324 * psympriv.h (add_psymbol_to_list): Move comment here and update
1325 it.
1326
0df0352a
TV
13272019-09-29 Tom de Vries <tdevries@suse.de>
1328
1329 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1330 Use $tmpdir/$(basename "$output_file").dwz instead of
1331 "${output_file}.dwz".
1332
ad75efa6
SM
13332019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1334
1335 PR gdb/25045
1336 * hppa-linux-nat.c: Include gdbarch.h.
1337
ececd218
CB
13382019-09-26 Christian Biesinger <cbiesinger@google.com>
1339
1340 * blockframe.c (find_pc_partial_function): Change return type to bool.
1341 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1342 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1343 (stub_gnu_ifunc_resolve_name): Likewise.
1344 * symtab.c (compare_filenames_for_search): Likewise.
1345 (compare_glob_filenames_for_search): Likewise.
1346 (matching_obj_sections): Likewise.
1347 (symbol_matches_domain): Likewise.
1348 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1349 (find_line_pc): Change return type to bool.
1350 (find_line_pc_range): Likewise.
1351 (producer_is_realview): Likewise.
1352 * symtab.h (symbol_matches_domain): Likewise.
1353 (find_pc_partial_function): Likewise.
1354 (find_pc_line_pc_range): Likewise.
1355 (in_gnu_ifunc_stub): Likewise.
1356 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1357 (find_line_pc): Likewise.
1358 (find_line_pc_range): Likewise.
1359 (matching_obj_sections): Likewise.
1360 (find_line_symtab): Change out parameter to bool.
1361 (producer_is_realview): Change return type to bool.
1362 (compare_filenames_for_search): Likewise.
1363 (compare_glob_filenames_for_search): Likewise.
1364
27a900b8
TT
13652019-09-26 Tom Tromey <tom@tromey.com>
1366
1367 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1368 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1369 * gdb_usleep.h: Remove.
1370 * gdb_usleep.c: Remove.
1371 * utils.c: Don't include gdb_usleep.h.
1372
5d63b30a
TT
13732019-09-26 Tom Tromey <tromey@adacore.com>
1374
1375 * python/py-type.c (type_to_type_object): Call check_typedef
1376 for stub types.
1377
12904d37
TT
13782019-09-26 Tom Tromey <tom@tromey.com>
1379
1380 * utils.h (initialize_utils): Don't declare.
1381 * top.c (gdb_init): Don't call initialize_utils.
1382 * utils.c (initialize_utils): Remove. Move contents...
1383 (_initialize_utils): ... here.
1384
858f25f0
TT
13852019-09-25 Tom Tromey <tom@tromey.com>
1386
1387 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1388 * utils.h (make_hex_string): Don't declare.
1389 * utils.c (make_hex_string): Remove.
1390
3d435220
TV
13912019-09-24 Tom de Vries <tdevries@suse.de>
1392
1393 PR gdb/23815
1394 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1395 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1396
ddd44b70
DD
13972019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1398
1399 * NEWS: Mention new simulator port for PRU.
1400
f945dedf
CB
14012019-09-23 Christian Biesinger <cbiesinger@google.com>
1402
1403 * ada-exp.y (write_object_remaining): Update.
1404 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1405 and eliminate the static buffer.
1406 (ada_decode_symbol): Update.
1407 (ada_la_decode): Update.
1408 (ada_sniff_from_mangled_name): Update.
1409 (is_valid_name_for_wild_match): Update.
1410 (ada_lookup_name_info::matches): Update and simplify.
1411 (name_matches_regex): Update.
1412 (ada_add_global_exceptions): Update.
1413 * ada-lang.h (ada_decode): Update signature.
1414 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1415 * dwarf-index-write.c (debug_names::insert): Update.
1416
7ab78ccb
SM
14172019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1418
1419 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1420 formatting.
1421
9252448b
SM
14222019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1423
1424 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1425 Change "nonzero" to "true" in documentation.
1426
626ca2c0
CB
14272019-09-20 Christian Biesinger <cbiesinger@google.com>
1428
1429 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1430 (_initialize_darwin_solib): Don't set
1431 darwin_so_ops.lookup_lib_global_symbol.
1432 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1433 set_gdbarch_iterate_over_objfiles_in_search_order.
1434 (elf_lookup_lib_symbol): Rename to...
1435 (svr4_iterate_over_objfiles_in_search_order): this, and update
1436 to iterate semantics.
1437 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1438 * solib.c (solib_global_lookup): Remove.
1439 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1440 (solib_global_lookup): Remove.
1441 * symtab.c (lookup_global_or_static_symbol): Remove call to
1442 solib_global_lookup.
1443
5a3a0d63
JB
14442019-09-20 Joel Brobecker <brobecker@adacore.com>
1445
1446 * NEWS: Move entries about default MI version now being
1447 version 3, and about the GDB/MI fix for multi-location
1448 breakpoints to the "since GDB 8.3" section.
1449
ffea1427
JB
14502019-09-20 Joel Brobecker <brobecker@adacore.com>
1451
1452 GDB 8.3.1 released.
1453
abf516c6
UW
14542019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1455
1456 * NEWS: Mention that Cell/B.E. debugging support was removed.
1457 * MAINTAINERS: Remove spu target.
1458
1459 * config/djgpp/fnchange.lst: Remove entries for removed files.
1460
1461 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1462 spu-multiarch.o, and spu-tdep.o.
1463 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1464 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1465 spu-multiarch.c, and spu-tdep.c.
1466 * spu-linux-nat.c: Remove file.
1467 * spu-multiarch.c: Remove file.
1468 * spu-tdep.c: Remove file.
1469 * spu-tdep.h: Remove file.
1470 * solib-spu.c: Remove file.
1471 * solib-spu.h: Remove file.
1472
1473 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1474 * configure.nat (spu-linux): Remove.
1475 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1476 solib-multiarch.o from gdb_target_obs.
1477 (spu*-*-*): Remove.
1478
1479 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1480 feature flag.
1481 (ppc_linux_no_features): Update.
1482 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1483 Cell/B.E. support.
1484 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1485 (tdesc_powerpc_cell64l): Likewise.
1486 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1487 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1488 Cell/B.E. support.
1489 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1490 Do not include "features/rs6000/powerpc-cell32l.c" or
1491 "features/rs6000/powerpc-cell64l.c".
1492 (ppc_linux_spu_section): Remove.
1493 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1494 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1495 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1496 (ppc_linux_spe_context_lookup): Remove.
1497 (ppc_linux_spe_context_inferior_created): Remove.
1498 (ppc_linux_spe_context_solib_loaded): Remove.
1499 (ppc_linux_spe_context_solib_unloaded): Remove.
1500 (ppc_linux_spe_context): Remove.
1501 (struct ppu2spu_cache): Remove.
1502 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1503 (struct ppu2spu_data): Remove.
1504 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1505 ppu2spu_unwind): Remove.
1506 (ppc_linux_init_abi): Remove Cell/B.E. support.
1507 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1508
1509 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1510 (rs6000/powerpc-cell64l-expedite): Likewise
1511 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1512 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1513 rs6000/powerpc-cell64l.xml.
1514 * features/rs6000/powerpc-cell32l.xml: Remove.
1515 * features/rs6000/powerpc-cell64l.xml: Likewise.
1516 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1517 * features/rs6000/powerpc-cell64l.c: Likewise.
1518 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1519 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1520 * regformats/reg-spu.dat: Remove.
1521
1522 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1523 * corelow.c (struct spuid_list): Remove.
1524 (add_to_spuid_list): Remove.
1525 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1526 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1527 (remote_protocol_features): Remove associated entries.
1528 (_initialize_remote): No longer initialize them.
1529 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1530 * linux-nat.c (SPUFS_MAGIC): Remove.
1531 (linux_proc_xfer_spu): Remove.
1532 (spu_enumerate_spu_ids): Remove.
1533 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1534 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1535 (linux_make_corefile_notes): No longer call it.
1536
1537 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1538 (cooked_write_test): Likewise.
1539
78e8cb91
TT
15402019-09-20 Tom Tromey <tom@tromey.com>
1541
1542 * NEWS: Mention case-sensitivity of TUI commands.
1543 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1544 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1545 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1546
f074b67e
TT
15472019-09-20 Tom Tromey <tom@tromey.com>
1548
1549 * tui/tui-source.c (tui_source_window::set_contents): Use
1550 make_unique_xstrdup.
1551 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1552 make_unique_xstrdup.
1553
63c4bf19
TT
15542019-09-20 Tom Tromey <tom@tromey.com>
1555
1556 * tui/tui-data.c: Remove separator comments.
1557 * tui/tui-layout.c: Remove separator comments.
1558 * tui/tui-win.c: Remove separator comments.
1559 * tui/tui-wingeneral.c: Remove separator comments.
1560
43df9b2f
TT
15612019-09-20 Tom Tromey <tom@tromey.com>
1562
1563 * tui/tui.h (strcat_to_buf): Don't declare.
1564 * tui/tui.c (strcat_to_buf): Remove.
1565
7226433c
TT
15662019-09-20 Tom Tromey <tom@tromey.com>
1567
1568 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1569 from "fullname".
1570 * tui/tui-source.c (tui_source_window::set_contents)
1571 (tui_source_window::location_matches_p)
1572 (tui_source_window::maybe_update): Update.
1573
80df3337
TT
15742019-09-20 Tom Tromey <tom@tromey.com>
1575
1576 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1577 Update.
1578 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1579 prefix.
1580 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1581 (tui_data_window::line_from_reg_element_no)
1582 (tui_data_window::first_reg_element_no_inline)
1583 (tui_data_window::show_registers)
1584 (tui_data_window::show_register_group)
1585 (tui_data_window::display_registers_from)
1586 (tui_data_window::display_registers_from_line)
1587 (tui_data_window::first_data_item_displayed)
1588 (tui_data_window::delete_data_content_windows)
1589 (tui_data_window::erase_data_content)
1590 (tui_data_window::do_scroll_vertical)
1591 (tui_data_window::refresh_window)
1592 (tui_data_window::check_register_values): Update.
1593
9923f347
TT
15942019-09-20 Tom Tromey <tom@tromey.com>
1595
1596 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1597 (struct tui_locator_window) <full_name, proc_name>: Now
1598 std::string.
1599 * tui/tui-stack.c (tui_locator_window::make_status_line)
1600 (tui_locator_window::set_locator_fullname)
1601 (tui_locator_window::set_locator_info): Update.
1602 * tui/tui-source.c (tui_source_window::set_contents)
1603 (tui_source_window::showing_source_p): Update.
1604
b76251ab
TT
16052019-09-20 Tom Tromey <tom@tromey.com>
1606
1607 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1608 Don't call tui_locator_win_info_ptr.
1609
0891be08
TT
16102019-09-20 Tom Tromey <tom@tromey.com>
1611
1612 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1613
1b935acf
TT
16142019-09-20 Tom Tromey <tom@tromey.com>
1615
1616 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1617 height for locator.
1618 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1619 * tui/tui-layout.c (show_source_disasm_command, show_data)
1620 (show_source_or_disasm_and_command): Use 1 as height for locator.
1621
9abd8a65
TT
16222019-09-20 Tom Tromey <tom@tromey.com>
1623
1624 * tui/tui.c (tui_enable): Update.
1625 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1626 Update.
1627 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1628 Update.
1629 * tui/tui-data.c (win_resized): Now bool.
1630 (tui_win_resized): Return bool.
1631 (tui_set_win_resized_to): Accept a bool.
1632
b5457826
TT
16332019-09-20 Tom Tromey <tom@tromey.com>
1634
1635 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1636 Change type of "refresh_values_only".
1637 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1638 type of "refresh_values_only".
1639
6b915f7d
TT
16402019-09-20 Tom Tromey <tom@tromey.com>
1641
1642 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1643 std::string.
1644 (tui_disassemble): Add "pos" parameter.
1645 (tui_disasm_window::set_contents): Simplify.
1646
2ad52f6f
TT
16472019-09-20 Tom Tromey <tom@tromey.com>
1648
1649 * tui/tui-winsource.h (struct tui_source_window_base)
1650 <show_source_content>: Now private.
1651 * tui/tui-winsource.c
1652 (tui_source_window_base::show_source_content): Don't handle empty
1653 content case.
1654
b3b1bde6
TT
16552019-09-20 Tom Tromey <tom@tromey.com>
1656
1657 * tui/tui-layout.c (show_source_disasm_command)
1658 (show_source_or_disasm_and_command): Don't call
1659 show_source_content.
1660
71a25ed2
TT
16612019-09-20 Tom Tromey <tom@tromey.com>
1662
1663 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1664 Declare.
1665 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1666 from tui_make_status_line.
1667 (tui_locator_window::rerender): Update.
1668
f8532154
TT
16692019-09-20 Tom Tromey <tom@tromey.com>
1670
1671 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1672 (tui_locator_window::rerender): Update.
1673
2d81b349
TT
16742019-09-20 Tom Tromey <tom@tromey.com>
1675
1676 * tui/tui-winsource.h (struct tui_source_window_base)
1677 <~tui_source_window_base>: Don't declare.
1678 <fullname>: Remove.
1679 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1680 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1681 member.
1682 * tui/tui-source.c (tui_source_window::set_contents): Update.
1683 (tui_source_window::location_matches_p)
1684 (tui_source_window::maybe_update): Update.
1685
f14bec58
TT
16862019-09-20 Tom Tromey <tom@tromey.com>
1687
1688 * tui/tui-winsource.h (~tui_source_element): Remove.
1689 (tui_source_element): Update.
1690 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1691 * tui/tui-winsource.c (tui_show_source_line): Update.
1692 * tui/tui-source.c (tui_source_window::set_contents): Update.
1693 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1694
78d5933a
TT
16952019-09-20 Tom Tromey <tom@tromey.com>
1696
1697 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1698 declare.
1699 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1700 tui_clear_source_windows_detail.
1701 * tui/tui-winsource.h (struct tui_source_window_base)
1702 <clear_detail>: Don't declare.
1703 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1704 Remove.
1705 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1706
d4207696
TT
17072019-09-20 Tom Tromey <tromey@adacore.com>
1708
1709 PR ada/24919:
1710 * block.c (contained_in): Fix final return value.
1711
00f93c44
AM
17122019-09-20 Alan Modra <amodra@gmail.com>
1713
1714 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1715 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1716 (read_indirect_string_from_dwz): Use bfd accessor.
1717 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1718 * machoread.c (macho_symfile_read_all_oso): Likewise.
1719 * solib.c (solib_bfd_open): Likewise.
1720
e4153ae6
CB
17212019-09-19 Christian Biesinger <cbiesinger@google.com>
1722
1723 * eval.c: Move declaration of overload_resolution to...
1724 * value.h: ...here.
1725
c7ae7675
CB
17262019-09-19 Christian Biesinger <cbiesinger@google.com>
1727
1728 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1729 * arm-linux-tdep.c: Likewise.
1730 * arm-nbsd-nat.c: Likewise.
1731 * arm-tdep.h: Declare arm_apcs_32.
1732 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1733
e86f08d2
CB
17342019-09-19 Christian Biesinger <cbiesinger@google.com>
1735
1736 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1737 * dwarf2read.h: Declare dwarf_always_disassemble.
1738
f64e2f40
TV
17392019-09-19 Tom de Vries <tdevries@suse.de>
1740
1741 PR gdb/25009
1742 * source-cache.c (source_cache::ensure): Catch exception thrown during
1743 construction of the highlighter.
1744
fd361982
AM
17452019-09-18 Alan Modra <amodra@gmail.com>
1746
1747 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1748 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1749 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1750 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1751 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1752 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1753 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1754 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1755 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1756 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1757 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1758 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1759 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1760 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1761 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1762 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1763 * mi/mi-interp.c: Update throughout for bfd section macro and
1764 function changes.
1765 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1766 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1767
11061048
TT
17682019-09-18 Tom Tromey <tom@tromey.com>
1769
1770 * NEWS: Add entry.
1771 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1772 call rl_initialize.
1773 (tui_enable): Do not call rl_initialize.
1774
7a27b85f
CG
17752019-09-18 Christian Groessler <chris@groessler.org>
1776
1777 * alpha-linux-nat.c: Include gdbarch.h.
1778
f64eea3a
SM
17792019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1780
1781 * ui-file.c: Include cli/cli-style.h.
1782 (term_cli_styling): Remove cli_styling declaration.
1783
e6f7f6d1
AM
17842019-09-18 Alan Modra <amodra@gmail.com>
1785
1786 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1787 to bfd_asymbol_section.
1788
1d38e9d1
AM
17892019-09-18 Alan Modra <amodra@gmail.com>
1790
1791 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1792 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1793 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1794
90d92a63
AM
17952019-09-18 Alan Modra <amodra@gmail.com>
1796
1797 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1798 * spu-linux-nat.c (spu_bfd_open): Likewise.
1799
a3d181d2
CB
18002019-09-18 Christian Biesinger <cbiesinger@google.com>
1801
1802 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1803 to bool to match definition in dwarf2read.c.
1804
491144b5
CB
18052019-09-17 Christian Biesinger <cbiesinger@google.com>
1806
1807 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1808 (print_signatures): Likewise.
1809 (trust_pad_over_xvs): Likewise.
1810 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1811 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1812 * arm-linux-nat.c (arm_apcs_32): Likewise.
1813 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1814 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1815 * arm-tdep.c (arm_debug): Likewise.
1816 (arm_apcs_32): Likewise.
1817 * auto-load.c (debug_auto_load): Likewise.
1818 (auto_load_gdb_scripts): Likewise.
1819 (global_auto_load): Likewise.
1820 (auto_load_local_gdbinit): Likewise.
1821 (auto_load_local_gdbinit_loaded): Likewise.
1822 * auto-load.h (global_auto_load): Likewise.
1823 (auto_load_local_gdbinit): Likewise.
1824 (auto_load_local_gdbinit_loaded): Likewise.
1825 * breakpoint.c (disconnected_dprintf): Likewise.
1826 (breakpoint_proceeded): Likewise.
1827 (automatic_hardware_breakpoints): Likewise.
1828 (always_inserted_mode): Likewise.
1829 (target_exact_watchpoints): Likewise.
1830 (_initialize_breakpoint): Update.
1831 * breakpoint.h (target_exact_watchpoints): Change to bool.
1832 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1833 * cli/cli-cmds.c (trace_commands): Likewise.
1834 * cli/cli-cmds.h (trace_commands): Likewise.
1835 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1836 to bool*.
1837 * cli/cli-logging.c (logging_overwrite): Change to bool.
1838 (logging_redirect): Likewise.
1839 (debug_redirect): Likewise.
1840 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1841 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1842 to bool.
1843 <boolean_option_def>: Update.
1844 (struct flag_option_def): Change default type of Context to bool
1845 from int.
1846 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1847 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1848 (get_setshow_command_value_string): Likewise.
1849 * cli/cli-style.c (cli_styling): Change to bool.
1850 (source_styling): Likewise.
1851 * cli/cli-style.h (source_styling): Likewise.
1852 (cli_styling): Likewise.
1853 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1854 to bool.
1855 * command.h (var_types): Update comment.
1856 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1857 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1858 bool.
1859 (debug_compile_cplus_scopes): Likewise.
1860 * compile/compile-internal.h (compile_debug): Likewise.
1861 * compile/compile.c (compile_debug): Likewise.
1862 (struct compile_options) <raw>: Likewise.
1863 * cp-support.c (catch_demangler_crashes): Likewise.
1864 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1865 (usr_cmd_cris_dwarf2_cfi): Likewise.
1866 * csky-tdep.c (csky_debug): Likewise.
1867 * darwin-nat.c (enable_mach_exceptions): Likewise.
1868 * dcache.c (dcache_enabled_p): Likewise.
1869 * defs.h (info_verbose): Likewise.
1870 * demangle.c (demangle): Likewise.
1871 (asm_demangle): Likewise.
1872 * dwarf-index-cache.c (debug_index_cache): Likewise.
1873 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1874 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1875 * dwarf2read.c (check_physname): Likewise.
1876 (use_deprecated_index_sections): Likewise.
1877 (dwarf_always_disassemble): Likewise.
1878 * eval.c (overload_resolution): Likewise.
1879 * event-top.c (set_editing_cmd_var): Likewise.
1880 (exec_done_display_p): Likewise.
1881 * event-top.h (set_editing_cmd_var): Likewise.
1882 (exec_done_display_p): Likewise.
1883 * exec.c (write_files): Likewise.
1884 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1885 (debug_fbsd_nat): Likewise.
1886 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1887 Likewise.
1888 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1889 <backtrace_past_entry> Likewise.
1890 * gdb-demangle.h (demangle): Likewise.
1891 (asm_demangle): Likewise.
1892 * gdb_bfd.c (bfd_sharing): Likewise.
1893 * gdbcore.h (write_files): Likewise.
1894 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1895 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1896 * gdbthread.h (print_thread_events): Likewise.
1897 * gdbtypes.c (opaque_type_resolution): Likewise.
1898 (strict_type_checking): Likewise.
1899 * gnu-nat.c (gnu_debug_flag): Likewise.
1900 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1901 * guile/scm-param.c (pascm_variable): Add boolval.
1902 (add_setshow_generic): Update.
1903 (pascm_param_value): Update.
1904 (pascm_set_param_value_x): Update.
1905 * hppa-tdep.c (hppa_debug): Change to bool..
1906 * infcall.c (may_call_functions_p): Likewise.
1907 (coerce_float_to_double_p): Likewise.
1908 (unwind_on_signal_p): Likewise.
1909 (unwind_on_terminating_exception_p): Likewise.
1910 * infcmd.c (startup_with_shell): Likewise.
1911 * inferior.c (print_inferior_events): Likewise.
1912 * inferior.h (startup_with_shell): Likewise.
1913 (print_inferior_events): Likewise.
1914 * infrun.c (step_stop_if_no_debug): Likewise.
1915 (detach_fork): Likewise.
1916 (debug_displaced): Likewise.
1917 (disable_randomization): Likewise.
1918 (non_stop): Likewise.
1919 (non_stop_1): Likewise.
1920 (observer_mode): Likewise.
1921 (observer_mode_1): Likewise.
1922 (set_observer_mode): Update.
1923 (sched_multi): Change to bool.
1924 * infrun.h (debug_displaced): Likewise.
1925 (sched_multi): Likewise.
1926 (step_stop_if_no_debug): Likewise.
1927 (non_stop): Likewise.
1928 (disable_randomization): Likewise.
1929 * linux-tdep.c (use_coredump_filter): Likewise.
1930 (dump_excluded_mappings): Likewise.
1931 * linux-thread-db.c (auto_load_thread_db): Likewise.
1932 (check_thread_db_on_load): Likewise.
1933 * main.c (captured_main_1): Update.
1934 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1935 xx2_opt, boolean_opt>: Change to bool.
1936 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1937 * maint.c (maintenance_profile_p): Likewise.
1938 (per_command_time): Likewise.
1939 (per_command_space): Likewise.
1940 (per_command_symtab): Likewise.
1941 * memattr.c (inaccessible_by_default): Likewise.
1942 * mi/mi-main.c (mi_async): Likewise.
1943 (mi_async_1): Likewise.
1944 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1945 * nat/fork-inferior.h (startup_with_shell): Likewise.
1946 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1947 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1948 * nios2-tdep.c (nios2_debug): Likewise.
1949 * or1k-tdep.c (or1k_debug): Likewise.
1950 * parse.c (parser_debug): Likewise.
1951 * parser-defs.h (parser_debug): Likewise.
1952 * printcmd.c (print_symbol_filename): Likewise.
1953 * proc-api.c (procfs_trace): Likewise.
1954 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1955 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1956 (set_parameter_value): Update.
1957 (add_setshow_generic): Update.
1958 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1959 to bool*.
1960 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1961 int*.
1962 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1963 * record-btrace.c (record_btrace_target::store_registers): Update.
1964 * record-full.c (record_full_memory_query): Change to bool.
1965 (record_full_stop_at_limit): Likewise.
1966 * record-full.h (record_full_memory_query): Likewise.
1967 * remote-notif.c (notif_debug): Likewise.
1968 * remote-notif.h (notif_debug): Likewise.
1969 * remote.c (use_range_stepping): Likewise.
1970 (interrupt_on_connect): Likewise.
1971 (remote_break): Likewise.
1972 * ser-tcp.c (tcp_auto_retry): Likewise.
1973 * ser-unix.c (serial_hwflow): Likewise.
1974 * skip.c (debug_skip): Likewise.
1975 * solib-aix.c (solib_aix_debug): Likewise.
1976 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1977 (spu_auto_flush_cache_p): Likewise.
1978 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1979 Likewise.
1980 (struct info_print_options) <quiet>: Likewise.
1981 * symfile-debug.c (debug_symfile): Likewise.
1982 * symfile.c (auto_solib_add): Likewise.
1983 (separate_debug_file_debug): Likewise.
1984 * symfile.h (auto_solib_add): Likewise.
1985 (separate_debug_file_debug): Likewise.
1986 * symtab.c (basenames_may_differ): Likewise.
1987 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1988 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1989 (struct info_types_options) <quiet>: Likewise.
1990 * symtab.h (demangle): Likewise.
1991 (basenames_may_differ): Likewise.
1992 * target-dcache.c (stack_cache_enabled_1): Likewise.
1993 (code_cache_enabled_1): Likewise.
1994 * target.c (trust_readonly): Likewise.
1995 (may_write_registers): Likewise.
1996 (may_write_memory): Likewise.
1997 (may_insert_breakpoints): Likewise.
1998 (may_insert_tracepoints): Likewise.
1999 (may_insert_fast_tracepoints): Likewise.
2000 (may_stop): Likewise.
2001 (auto_connect_native_target): Likewise.
2002 (target_stop_and_wait): Update.
2003 (target_async_permitted): Change to bool.
2004 (target_async_permitted_1): Likewise.
2005 (may_write_registers_1): Likewise.
2006 (may_write_memory_1): Likewise.
2007 (may_insert_breakpoints_1): Likewise.
2008 (may_insert_tracepoints_1): Likewise.
2009 (may_insert_fast_tracepoints_1): Likewise.
2010 (may_stop_1): Likewise.
2011 * target.h (target_async_permitted): Likewise.
2012 (may_write_registers): Likewise.
2013 (may_write_memory): Likewise.
2014 (may_insert_breakpoints): Likewise.
2015 (may_insert_tracepoints): Likewise.
2016 (may_insert_fast_tracepoints): Likewise.
2017 (may_stop): Likewise.
2018 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2019 (make_thread_apply_all_options_def_group): Change argument from int*
2020 to bool*.
2021 (thread_apply_all_command): Update.
2022 (print_thread_events): Change to bool.
2023 * top.c (confirm): Likewise.
2024 (command_editing_p): Likewise.
2025 (history_expansion_p): Likewise.
2026 (write_history_p): Likewise.
2027 (info_verbose): Likewise.
2028 * top.h (confirm): Likewise.
2029 (history_expansion_p): Likewise.
2030 * tracepoint.c (disconnected_tracing): Likewise.
2031 (circular_trace_buffer): Likewise.
2032 * typeprint.c (print_methods): Likewise.
2033 (print_typedefs): Likewise.
2034 * utils.c (debug_timestamp): Likewise.
2035 (sevenbit_strings): Likewise.
2036 (pagination_enabled): Likewise.
2037 * utils.h (sevenbit_strings): Likewise.
2038 (pagination_enabled): Likewise.
2039 * valops.c (overload_resolution): Likewise.
2040 * valprint.h (struct value_print_options) <prettyformat_arrays,
2041 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2042 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2043 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2044 Likewise.
2045 * windows-nat.c (new_console): Likewise.
2046 (cygwin_exceptions): Likewise.
2047 (new_group): Likewise.
2048 (debug_exec): Likewise.
2049 (debug_events): Likewise.
2050 (debug_memory): Likewise.
2051 (debug_exceptions): Likewise.
2052 (useshell): Likewise.
2053 * windows-tdep.c (maint_display_all_tib): Likewise.
2054 * xml-support.c (debug_xml): Likewise.
2055
f1b620e9
MG
20562019-09-17 Mike Gulick <mgulick@mathworks.com>
2057
2058 * source.c (prepare_path_for_appending): New function.
2059 (openp): Make use of new function.
2060 (find_and_open_source): Search for the compilation directory and
2061 source file as a relative path beneath the directory search path.
2062
67f3ed6a
AB
20632019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2064
2065 * source-cache.c (source_cache::get_line_charpos): Catch
2066 exceptions and return false, this matches the behaviour documented
2067 in the header file.
2068
74332189
JB
20692019-09-17 Joel Brobecker <brobecker@adacore.com>
2070
2071 * ada-tasks.c (info_task): Remove quoting of the task's name.
2072
f2f24aa9
CB
20732019-09-16 Christian Biesinger <cbiesinger@google.com>
2074
2075 * symfile.c (auto_solib_add): Replace comment with a reference
2076 to the header file.
2077
6a062a93
CB
20782019-09-14 Christian Biesinger <cbiesinger@google.com>
2079
2080 * NEWS: Mention that gdb can now be compiled with Python 3
2081 on Windows.
2082
ec6c8338
AB
20832019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2084
2085 * maint.c (maint_print_section_data::maint_print_section_data):
2086 Force use of 'float log10 (float)' by casting the argument to
2087 float.
2088
aa17805f
AB
20892019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2090
2091 * maint.c: Add 'cmath' include.
2092 (struct maint_print_section_data): New structure.
2093 (print_section_index): New function.
2094 (print_bfd_section_info): Add header comment, small whitespace
2095 cleanup, and update to call new print_section_index function.
2096 (print_objfile_section_info): Likewise.
2097 (maint_obj_section_from_bfd_section): New function.
2098 (print_bfd_section_info_maybe_relocated): New function.
2099 (maintenance_info_sections): Add header comment, always use
2100 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2101
3dd9bb46
AB
21022019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2103
2104 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2105 inner scope, add check that the objfile has psymtabs before
2106 checking psymtabs_addrmap.
2107 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2108
4993045d
PW
21092019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2110
2111 * NEWS: Announce that Ada task names are now shown at more places,
2112 and between quotes (except in info task output).
2113 * gdb/ada-tasks.c (task_to_str): New function.
2114 (display_current_task_id): Call task_to_str.
2115 (task_command_1): Likewise.
2116 (print_ada_task_info): In non-mi mode, Properly align headers and data
2117 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2118
7a289707
RO
21192019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2120
2121 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2122 prstatus.pr_lwp.pr_info instead of making it up.
2123
f2aec7f6
CB
21242019-09-11 Christian Biesinger <cbiesinger@google.com>
2125
2126 * auto-load.c (auto_load_expand_dir_vars): Update.
2127 * defs.h (gdb_datadir): Change to std::string.
2128 (python_libdir): Likewise.
2129 (relocate_gdb_directory): Change return type to std::string.
2130 * guile/guile.c (gdbscm_data_directory): Update.
2131 (initialize_scheme_side): Update.
2132 * jit.c (jit_reader_dir): Change to std::string.
2133 (jit_reader_load_command): Update.
2134 * main.c (gdb_datadir): Change to std::string.
2135 (python_libdir): Likewise.
2136 (set_gdb_data_directory): Update.
2137 (relocate_path): Change to return std::string.
2138 (relocate_gdb_directory): Change to return std::string.
2139 (relocate_gdbinit_path_maybe_in_datadir): Update.
2140 (captured_main_1): Update.
2141 * python/python.c (do_start_initialization): Update.
2142 * top.c (show_gdb_datadir): Update.
2143 * xml-syscall.c (xml_init_syscalls_info): Update.
2144 (init_syscalls_info): Update.
2145
9224a013
CB
21462019-09-11 Christian Biesinger <cbiesinger@google.com>
2147
2148 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2149 out of get_init_files.
2150 (get_init_files): Update.
2151
f48cd836
CB
21522019-09-11 Christian Biesinger <cbiesinger@google.com>
2153
2154 * main.c (get_init_files): Change to use std::string.
2155 (captured_main_1): Update.
2156 (print_gdb_help): Update.
2157
9cab7ecd
AT
21582019-09-11 Ali Tamur <tamur@google.com>
2159
2160 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2161 implementation.
2162
67547d89
CB
21632019-09-11 Christian Biesinger <cbiesinger@google.com>
2164
2165 * dbxread.c (read_dbx_symtab): Update.
2166 * dwarf2read.c (load_partial_dies): Update.
2167 * mdebugread.c (parse_partial_symbols): Update.
2168 (handle_psymbol_enumerators): Update.
2169 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2170 * psymtab.c (add_psymbol_to_bcache): Likewise.
2171 (add_psymbol_to_list): Likewise.
2172 * symtab.c (symbol_set_names): Likewise.
2173 * symtab.h (symbol_set_names): Likewise.
2174 * xcoffread.c (scan_xcoff_symtab): Update.
2175
64b2d4a0
TT
21762019-09-11 Tom Tromey <tom@tromey.com>
2177
2178 * symfile-mem.c (symbol_file_add_from_memory): Use
2179 bfd_set_filename.
2180 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2181 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2182
3b00ef10
TT
21832019-09-10 Tom Tromey <tromey@adacore.com>
2184
2185 * dwarf-index-write.c (write_psymbols): Extend error message.
2186 (debug_names::insert): Add Ada code.
2187 (debug_names::write_psymbols): Remove Ada check.
2188 (debug_names) <m_string_obstack>: New member.
2189 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2190 (gdb_index_symbol_name_matcher::matches): Remove.
2191 (mapped_index_base::find_name_components_bounds): Add "lang"
2192 parameter.
2193 (mapped_index_base::build_name_components): Also split names
2194 according to Ada syntax.
2195 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2196 type of "match_callback".
2197 (check_match, check_find_bounds_finds)
2198 (dw2_expand_symtabs_matching): Update.
2199 (dw2_debug_names_iterator): Add new constructor.
2200 (dw2_debug_names_map_matching_symbols): New function.
2201 (dw2_debug_names_expand_symtabs_matching): Update.
2202 (dwarf2_debug_names_functions): Use
2203 dw2_debug_names_map_matching_symbols.
2204
aa391654
TT
22052019-09-10 Tom Tromey <tromey@adacore.com>
2206
2207 * dwarf2read.c (dw2_get_file_names_reader): Add the
2208 CU's file name to the results.
2209
b054970d
TT
22102019-09-10 Tom Tromey <tromey@adacore.com>
2211
2212 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2213 map_matching_symbols. Update.
2214 * dwarf2read.c (dw2_map_matching_symbols): Update.
2215 * psymtab.c (match_partial_symbol): Change type; update.
2216 (psym_map_matching_symbols): Likewise.
2217 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2218 type; update.
2219 * symfile.h (struct quick_symbol_functions)
2220 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2221 Remove "match".
2222
6a3dbf1b
TT
22232019-09-10 Tom Tromey <tromey@adacore.com>
2224
2225 * psymtab.c (map_block): Remove.
2226 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2227 * symtab.c (iterate_over_symbols_terminated): New function.
2228 * symtab.c (iterate_over_symbols_terminated): Declare.
2229
6969f124
TT
22302019-09-10 Tom Tromey <tromey@adacore.com>
2231
2232 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2233 * language.h (struct language_defn) <la_iterate_over_symbols>:
2234 Return bool.
2235 * symtab.c (iterate_over_symbols): Return bool.
2236 * symtab.h (iterate_over_symbols): Return bool.
2237
199b4314
TT
22382019-09-10 Tom Tromey <tromey@adacore.com>
2239
2240 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2241 (add_nonlocal_symbols): Update.
2242 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2243 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2244 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2245 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2246 Change type of "callback". Remove "data".
2247
a084a2a6
AT
2248
22492019-09-09 Ali Tamur <tamur@google.com>
2250
2251 * dwarf2read.c (comp_unit_head): Update comment.
2252 (dwarf2_dwo_name): New function declaration.
2253 (dwarf_unit_type_name): New function declaration.
2254 (read_comp_unit_head): Add support for new compilation units,
2255 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2256 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2257 (currently named as "signature") in their header. Also clarify error
2258 messages.
2259 (lookup_dwo_id): New function. Returns the dwo id of the given
2260 compile unit.
2261 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2262 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2263 functions.
2264 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2265 (dwarf2_dwo_name): Get the dwo name if present.
2266 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2267 purposes.
2268
25a2915e
TT
22692019-09-09 Tom Tromey <tom@tromey.com>
2270
2271 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2272
e4df0874
PW
22732019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2274
2275 * python/python.c (do_start_initialization): Make progname_copy static,
2276 to avoid a leak report.
2277
8634b462
TT
22782019-09-08 Tom Tromey <tom@tromey.com>
2279
2280 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2281
c7f839cb
SM
22822019-09-07 Simon Marchi <simon.marchi@efficios.com>
2283
2284 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2285 Change type to gdb::optional<block_enum>.
2286 (dw2_symtab_iter_init): Change block_index parameter type
2287 to gdb::optional<block_enum>.
2288 (dw2_lookup_symbol): Change block_index parameter
2289 type to block_enum.c
2290 (dw2_debug_names_lookup_symbol): Likewise.
2291 * psymtab.c (psym_lookup_symbol): Likewise.
2292 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2293 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2294 Likewise.
2295
ead0e69a
CB
22962019-09-06 Christian Biesinger <cbiesinger@google.com>
2297
2298 * defs.h (relocate_gdb_directory): Change int to bool in
2299 signature and rename flag to relocatable.
2300 * main.c (relocate_path): Likewise.
2301 (relocate_gdb_directory): Likewise.
2302
b16c44de
AM
23032019-09-06 Alan Modra <amodra@gmail.com>
2304
2305 * coffread.c (coff_symfile_read): Constify filename variable.
2306 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2307 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2308 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2309 * solib.c (reload_shared_libraries_1): Likewise.
2310 * symfile.c (reread_symbols): Likewise.
2311 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2312 * solib-darwin.c (darwin_bfd_open): Likewise.
2313 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2314
06ff036e
AB
23152019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2316
2317 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2318 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2319
4e962e74
TT
23202019-09-03 Tom Tromey <tromey@adacore.com>
2321
2322 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2323 types.
2324 (has_negatives): Unbias a range type bound.
2325 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2326 * gdbtypes.c (operator==): Handle new field.
2327 (create_range_type): Add "bias" parameter.
2328 (create_static_range_type, resolve_dynamic_range): Update.
2329 * gdbtypes.h (struct range_bounds) <bias>: New member.
2330 (create_range_type): Add bias parameter.
2331 * printcmd.c (print_scalar_formatted): Unbias range types.
2332 * value.c (unpack_long): Unbias range types.
2333 (pack_long): Bias range types.
2334
d90b8f26
AH
23352019-09-02 Alan Hayward <alan.hayward@arm.com>
2336
2337 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2338 probe arguments.
2339
fe01123e
AH
23402019-09-02 Alan Hayward <alan.hayward@arm.com>
2341
2342 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2343 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2344 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2345 (compile_probe_arg): Likewise.
2346 * probe.h (get_argument_count): Likewise.
2347 * solib-svr4.c (solib_event_probe_action): Likewise.
2348 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2349
e661ef01
AH
23502019-09-02 Alan Hayward <alan.hayward@arm.com>
2351
2352 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2353 code to here...
2354 (svr4_create_solib_event_breakpoints): ...from here.
2355
47a536d9
SDJ
23562019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2357
2358 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2359 suffix from warning message.
2360
d6a00eba
TT
23612019-08-30 Tom Tromey <tom@tromey.com>
2362
2363 * tui/tui-winsource.h (struct tui_source_window_base)
2364 <refresh_all>: Don't declare.
2365 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2366 Remove.
2367 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2368 tui_show_locator_content.
2369 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2370 declare.
2371 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2372 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2373 declare.
2374
55b2657b
TT
23752019-08-30 Tom Tromey <tom@tromey.com>
2376
2377 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2378
12a8555a
TT
23792019-08-30 Tom Tromey <tom@tromey.com>
2380
2381 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2382 Remove unnecessary forward declarations.
2383
900ac242
TT
23842019-08-30 Tom Tromey <tom@tromey.com>
2385
2386 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2387 rerender.
2388 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2389 tui_show_locator_content.
2390
99ab33fb
TT
23912019-08-30 Tom Tromey <tom@tromey.com>
2392
2393 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2394 (tui_locator_window::rerender): Rewrite using body of previous
2395 tui_show_locator_content.
2396
e594a5d1
TT
23972019-08-30 Tom Tromey <tom@tromey.com>
2398
2399 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2400 set_locator_fullname>: New methods.
2401 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2402 Rename from tui_set_locator_fullname.
2403 (tui_locator_window::set_locator_info): Rename from
2404 tui_set_locator_info. Return bool.
2405 (tui_update_locator_fullname, tui_show_frame_info): Update.
2406
715bb467
TT
24072019-08-30 Tom Tromey <tom@tromey.com>
2408
2409 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2410
772f3f03
TT
24112019-08-30 Tom Tromey <tom@tromey.com>
2412
2413 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2414 call touchwin.
2415
108e13ab
TT
24162019-08-30 Tom Tromey <tom@tromey.com>
2417
2418 * tui/tui-wingeneral.c (box_win): Assume win_info and
2419 win_info->handle cannot be NULL.
2420
cdaa6eb4
TT
24212019-08-30 Tom Tromey <tom@tromey.com>
2422
2423 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2424 refresh_window>: Declare.
2425 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2426 resize.
2427 (tui_data_item_window::rerender): Rename from
2428 tui_display_register.
2429 (tui_data_item_window::refresh_window): New method.
2430 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2431 no-op.
2432
89df7f90
TT
24332019-08-30 Tom Tromey <tom@tromey.com>
2434
2435 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2436 regs_column_count, current_group>: Move later. Now private.
2437 <get_current_group>: New method.
2438 * tui/tui-regs.c (tui_reg_command): Update.
2439 * tui/tui-layout.c (tui_set_layout): Update.
2440
1bf2866a
TT
24412019-08-30 Tom Tromey <tom@tromey.com>
2442
2443 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2444 (tui_data_window::rerender): Don't call
2445 check_and_display_highlight_if_needed.
2446 (tui_data_window::refresh_all): Remove call to
2447 erase_data_content.
2448
0670413d
TT
24492019-08-30 Tom Tromey <tom@tromey.com>
2450
2451 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2452 (tui_data_window::display_registers_from)
2453 (tui_data_window::display_reg_element_at_line)
2454 (tui_data_window::display_registers_from_line): Remove checks of
2455 "empty".
2456
18bb55c7
TT
24572019-08-30 Tom Tromey <tom@tromey.com>
2458
2459 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2460 Don't declare.
2461 * tui/tui-regs.c (tui_data_window::show_registers): Call
2462 rerender.
2463 (tui_data_window::rerender): Rename from display_all_data.
2464 (tui_data_window::rerender): Remove old implementation.
2465
1f6d2f10
TT
24662019-08-30 Tom Tromey <tom@tromey.com>
2467
2468 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2469 text.
2470 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2471
16d01f9c
BW
24722019-08-29 Bernhard Wodok <barto@gmx.net>
2473 Sergio Durigan Junior <sergiodj@redhat.com>
2474
2475 PR win32/24284
2476 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2477
d8f27c60
AB
24782019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2479
2480 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2481 when searching for types.
2482
1f20c35e
AB
24832019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2484
2485 * f-lang.c (f_language_defn): Use f_print_typedef.
2486 * f-lang.h (f_print_typedef): Declare.
2487 * f-typeprint.c (f_print_typedef): Define.
2488
550105b7
CB
24892019-08-27 Christian Biesinger <cbiesinger@google.com>
2490
2491 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2492
4acfdd20
AB
24932019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2494
2495 * cli/cli-utils.c (info_print_options_defs): Delete.
2496 (make_info_print_options_def_group): Delete.
2497 (extract_info_print_options): Delete.
2498 (info_print_command_completer): Delete.
2499 (info_print_args_help): Add extra parameter, and optionally
2500 include text about -n flag.
2501 * cli/cli-utils.h (struct info_print_options): Delete.
2502 (extract_info_print_options): Delete declaration.
2503 (info_print_command_completer): Delete declaration.
2504 (info_print_args_help): Add extra parameter, extend header
2505 comment.
2506 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2507 search_symbols.
2508 * stack.c (struct info_print_options): New type.
2509 (info_print_options_defs): New file scoped variable.
2510 (make_info_print_options_def_group): New static function.
2511 (info_print_command_completer): New static function.
2512 (info_locals_command): Update to use new local functions.
2513 (info_args_command): Likewise.
2514 (_initialize_stack): Add extra parameter to calls to
2515 info_print_args_help.
2516 * symtab.c (search_symbols): Add extra parameter, use this to
2517 possibly excluse non-debug symbols.
2518 (symtab_symbol_info): Add extra parameter, which is passed on to
2519 search_symbols.
2520 (struct info_print_options): New type.
2521 (info_print_options_defs): New file scoped variable.
2522 (make_info_print_options_def_group): New static function.
2523 (info_print_command_completer): New static function.
2524 (info_variables_command): Update to use local functions, and pass
2525 extra parameter through to symtab_symbol_info.
2526 (info_functions_command): Likewise.
2527 (info_types_command): Pass additional argument through to
2528 symtab_symbol_info.
2529 (rbreak_command): Pass extra argument to search_symbols.
2530 (_initialize_symtab): Add extra arguments for calls to
2531 info_print_args_help, and update help text for 'info variables',
2532 'whereis', and 'info functions' commands.
2533 * symtab.h (search_symbols): Add extra argument to declaration.
2534 * NEWS: Mention new flags.
2535
9aa55206
CB
25362019-08-26 Christian Biesinger <cbiesinger@google.com>
2537
2538 * symtab.c (lookup_static_symbol): Call the new function (and move
2539 it down to be next to lookup_global_symbol).
2540 (struct global_sym_lookup_data): Add block_enum member and rename to...
2541 (struct global_or_static_sym_lookup_data): ...this.
2542 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2543 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2544 (lookup_symbol_global_or_static_iterator_cb): ...this.
2545 (lookup_global_or_static_symbol): New function.
2546 (lookup_global_symbol): Call new function.
2547
5c31b358
TV
25482019-08-26 Tom de Vries <tdevries@suse.de>
2549
2550 PR c++/24852
2551 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2552 when pc_probe.prob == NULL.
2553
23c13d42
SM
25542019-08-25 Simon Marchi <simon.marchi@efficios.com>
2555
2556 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2557 variable symbol_linkage to symbol_linkage_.
2558
beadd3e8
SM
25592019-08-25 Simon Marchi <simon.marchi@efficios.com>
2560
2561 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2562 represent whether the symbol is static, dynamic, or we don't
2563 know.
2564
e3ec872f
YS
25652019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2566
2567 * gdb/rx-tdep.c (rx_register_names): New.
2568 (rx_register_name): Delete.
2569 (rx_psw_type): Delete.
2570 (rx_fpsw_type): Delete.
2571 (rx_register_type): Delete.
2572 (rx_gdbarch_init): Convert target-descriptions.
2573 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2574 * gdb/features/Makefile: Add rx.xml.
2575 * gdb/features/rx.xml: New.
2576 * gdb/features/rx.c: Generated.
2577 * gdb/NEWS: Mention target description support.
2578
d0509ba4
CB
25792019-08-22 Christian Biesinger <cbiesinger@google.com>
2580
2581 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2582 *slot_ptr.
2583
2d41fa11
SDJ
25842019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2585
2586 * configure.ac: Don't check for 'dlfcn.h' (moved to
2587 gdbsupport/common.m4).
2588 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2589 'gdbsupport/'.
2590 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2591 * compile/compile-c-support.c: Include
2592 'gdbsupport/gdb-dlfcn.h'.
2593 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2594 * gdb-dlfcn.c: Move to...
2595 * gdbsupport/gdb-dlfcn.c: ... here.
2596 * gdb-dlfcn.h: Move to...
2597 * gdbsupport/gdb-dlfcn.h: ... here.
2598
de8af808
SL
25992019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2600
2601 * nios2-tdep.c (struct reg_value): Improve comments. Make
2602 the offset field signed.
2603
27204489
CB
26042019-08-22 Christian Biesinger <cbiesinger@google.com>
2605
2606 * python/lib/gdb/__init__.py (_execute_file): New function.
2607 * python/python.c (python_run_simple_file): Call gdb._execute_file
2608 on Windows.
2609
43771869
AB
26102019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2611
2612 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2613 all uses as this was never set to anything but a zero value.
2614
26c957f1
PA
26152019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2616
2617 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2618
c07aae6e
CB
26192019-08-21 Christian Biesinger <cbiesinger@google.com>
2620
2621 * tui/tui-data.h (tui_gen_win_info): Add an =default
2622 move constructor, required by some GCC versions.
2623
3960cb7a
JF
26242019-08-21 Jinke Fan <fanjinke51@yeah.net>
2625
2626 * go32-nat.c (go32_sysinfo): Add hygon_p.
2627
04c72a68
TT
26282019-08-20 Tom Tromey <tom@tromey.com>
2629
2630 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2631 line_from_reg_element_no, first_reg_element_no_inline,
2632 display_all_data, delete_data_content_windows,
2633 erase_data_content>: Now private.
2634
072272ce
TT
26352019-08-20 Tom Tromey <tom@tromey.com>
2636
2637 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2638 (tui_unhighlight_win, tui_highlight_win)
2639 (tui_win_info::make_window): Update.
2640 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2641
973961bd
TT
26422019-08-20 Tom Tromey <tom@tromey.com>
2643
2644 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2645 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2646 (MAX_PID_WIDTH): Move to tui-stack.c.
2647 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2648 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2649 (MAX_PID_WIDTH): Move from tui-data.h.
2650
ab0e1f1a
TT
26512019-08-20 Tom Tromey <tom@tromey.com>
2652
2653 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2654 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2655 (box_win): Update.
2656 (tui_gen_win_info::make_window): Rename from tui_make_window.
2657 (tui_win_info::make_window): New method.
2658 (tui_gen_win_info::make_visible): Update.
2659 * tui/tui-source.c (tui_source_window::set_contents): Update.
2660 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2661 (tui_data_window::display_registers_from): Update.
2662 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2663 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2664 Declare.
2665 <can_box>: Remove.
2666 <title>: Remove.
2667 (struct tui_win_info) <make_window>: Declare.
2668 <can_box>: Now virtual.
2669 <title>: New member.
2670 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2671 * tui/tui-command.c (tui_cmd_window::resize): Update.
2672
100c2bf3
TT
26732019-08-20 Tom Tromey <tom@tromey.com>
2674
2675 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2676 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2677 (tui_data_window::check_register_values): Update.
2678
fa4dc567
TT
26792019-08-20 Tom Tromey <tom@tromey.com>
2680
2681 * tui/tui-regs.h (struct tui_data_window): Use
2682 DISABLE_COPY_AND_ASSIGN.
2683 <regs_content>: Change type, removing unique_ptr.
2684 <tui_data_window>: Add move constructor.
2685 * tui/tui-regs.c (tui_data_window::show_registers)
2686 (tui_data_window::show_register_group)
2687 (tui_data_window::display_registers_from)
2688 (tui_data_window::display_registers_from)
2689 (tui_data_window::first_data_item_displayed)
2690 (tui_data_window::delete_data_content_windows)
2691 (tui_data_window::rerender, tui_data_window::refresh_window)
2692 (tui_data_window::check_register_values): Update.
2693
ca02d7c8
TT
26942019-08-20 Tom Tromey <tom@tromey.com>
2695
2696 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2697 show_register_group>: Declare.
2698 (tui_show_register_group): Don't declare.
2699 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2700 tui_show_registers.
2701 (tui_data_window::show_register_group): Rename from
2702 tui_show_register_group.
2703 (tui_data_window::check_register_values, tui_reg_command):
2704 Update.
2705 * tui/tui-layout.c (tui_set_layout): Update.
2706
63356bfd
TT
27072019-08-20 Tom Tromey <tom@tromey.com>
2708
2709 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2710 Declare.
2711 (tui_check_register_values): Don't declare.
2712 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2713 from tui_check_register_values.
2714 * tui/tui-hooks.c (tui_register_changed): Update.
2715
42cc14a7
TT
27162019-08-20 Tom Tromey <tom@tromey.com>
2717
2718 * tui/tui-regs.c (tui_reg_layout): Move later.
2719 (tui_show_registers): Don't enable TUI mode or change layout.
2720
b9ad3686
TT
27212019-08-20 Tom Tromey <tom@tromey.com>
2722
2723 * tui/tui-regs.h (struct tui_data_item_window)
2724 <~tui_data_item_window>: Remove.
2725 <content>: Now a unique_xmalloc_ptr.
2726 * tui/tui-regs.c (tui_register_format): Return a
2727 unique_xmalloc_ptr.
2728 (tui_get_register): Update.
2729 (~tui_data_item_window): Remove.
2730 (tui_data_window::display_registers_from, tui_display_register):
2731 Update.
2732 * tui/tui-io.h (tui_expand_tabs): Update.
2733 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2734 Remove "col" parameter.
2735
8e114aab
TT
27362019-08-20 Tom Tromey <tom@tromey.com>
2737
2738 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2739 field.
2740 * tui/tui-regs.c (~tui_data_item_window): Update.
2741
1a4f81dd
TT
27422019-08-20 Tom Tromey <tom@tromey.com>
2743
2744 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2745 earlier.
2746
0f8d8876
TT
27472019-08-20 Tom Tromey <tom@tromey.com>
2748
2749 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2750
605dc2c2
TT
27512019-08-20 Tom Tromey <tom@tromey.com>
2752
2753 * tui/tui-source.h (struct tui_source_window): Update.
2754 * tui/tui-regs.c (tui_show_registers): Update.
2755 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2756 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2757 (NO_REGS_STRING): Remove defines.
2758
aedbe3bb
CM
27592019-08-20 Conrad Meyer <cem@FreeBSD.org>
2760
2761 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2762 unnecessary thread walk if remote doesn't support the packet.
2763
7ce8f214
TT
27642019-08-19 Tom Tromey <tromey@adacore.com>
2765
2766 * python/py-value.c (value_has_field): Fix indentation.
2767
f21c2bd7
TT
27682019-08-19 Tom Tromey <tromey@adacore.com>
2769
2770 * printcmd.c (do_one_display, info_display_command): Update.
2771 * block.h (contained_in): Return bool. Add allow_nested
2772 parameter.
2773 * block.c (contained_in): Return bool. Add allow_nested
2774 parameter.
2775
d806ea2d
TT
27762019-08-19 Tom Tromey <tom@tromey.com>
2777
2778 * configure: Rebuild.
2779 * configure.ac: Disallow the combination of -static-libstdc++ and
2780 source highlight.
2781 * source-cache.c (get_language_name): Handle rust.
2782 (source_cache::get_source_lines): Ignore highlighting exceptions.
2783
398fdd60
TT
27842019-08-16 Tom Tromey <tom@tromey.com>
2785
2786 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2787 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2788 (struct tui_source_window_base) <make_visible, refresh_window,
2789 resize>: Remove methods.
2790 <execution_info>: Remove field.
2791 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2792 (tui_show_source_line, tui_source_window_base)
2793 (~tui_source_window_base): Update.
2794 (tui_source_window_base::resize)
2795 (tui_source_window_base::make_visible)
2796 (tui_source_window_base::refresh_window): Remove.
2797 (tui_source_window_base::update_exec_info): Update.
2798 * tui/tui-source.c (tui_source_window::set_contents): Update.
2799 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2800
e699d331
TT
28012019-08-16 Tom Tromey <tom@tromey.com>
2802
2803 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2804 deprecated_query_hook.
2805
bb01dbfc
TT
28062019-08-16 Tom Tromey <tom@tromey.com>
2807
2808 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2809 (tui_update_source_windows_with_line): Update.
2810 * tui/tui-source.h (struct tui_source_window)
2811 <show_symtab_source>: Declare.
2812 (tui_show_symtab_source): Don't declare.
2813 * tui/tui-source.c (tui_show_symtab_source): Rename from
2814 tui_show_symtab_source.
2815
81c82c4b
TT
28162019-08-16 Tom Tromey <tom@tromey.com>
2817
2818 * tui/tui-winsource.h (struct tui_source_window_base)
2819 <set_contents>: Declare.
2820 * tui/tui-winsource.c
2821 (tui_source_window_base::update_source_window_as_is): Update.
2822 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2823 Declare.
2824 (tui_set_source_content): Don't declare.
2825 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2826 tui_set_source_content.
2827 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2828 Declare.
2829 (tui_set_disassem_content): Don't declare.
2830 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2831 tui_set_disassem_content.
2832
2ddaf614
TT
28332019-08-16 Tom Tromey <tom@tromey.com>
2834
2835 * tui/tui-winsource.h (struct tui_source_window_base)
2836 <update_breakpoint_info>: Declare.
2837 (tui_update_breakpoint_info): Don't declare.
2838 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2839 (tui_update_all_breakpoint_info): Update.
2840 (tui_source_window_base::update_breakpoint_info): Rename from
2841 tui_update_breakpoint_info.
2842 (tui_source_window_base::update_exec_info): Update.
2843
017f9828
TT
28442019-08-16 Tom Tromey <tom@tromey.com>
2845
2846 * tui/tui-winsource.h (struct tui_source_window_base)
2847 <update_source_window>: Declare.
2848 (tui_update_source_window): Don't declare.
2849 * tui/tui-winsource.c
2850 (tui_source_window_base::update_source_window): Rename from
2851 tui_update_source_window.
2852 (tui_source_window_base::rerender): Update.
2853 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2854 * tui/tui-disasm.c (tui_show_disassem)
2855 (tui_show_disassem_and_update_source)
2856 (tui_disasm_window::maybe_update): Update.
2857
ed8358e9
TT
28582019-08-16 Tom Tromey <tom@tromey.com>
2859
2860 * tui/tui-winsource.h (struct tui_source_window_base)
2861 <update_source_window_as_is>: Declare.
2862 (tui_update_source_window_as_is): Don't declare.
2863 * tui/tui-winsource.c (tui_update_source_window): Update
2864 (tui_source_window_base::update_source_window_as_is): Rename from
2865 tui_update_source_window_as_is.
2866 (tui_source_window_base::refill): Update.
2867 * tui/tui-source.c (tui_show_symtab_source): Update.
2868 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2869 Update.
2870
20149b6b
TT
28712019-08-16 Tom Tromey <tom@tromey.com>
2872
2873 * tui/tui-winsource.h (tui_update_source_window)
2874 (tui_update_source_window_as_is): Remove "noerror" parameter.
2875 * tui/tui-winsource.c (tui_update_source_window)
2876 (tui_update_source_window_as_is): Remove "noerror" parameter.
2877 (tui_update_source_windows_with_addr)
2878 (tui_update_source_windows_with_line)
2879 (tui_source_window_base::rerender)
2880 (tui_source_window_base::refill): Update.
2881 * tui/tui-source.h (tui_set_source_content)
2882 (tui_show_symtab_source): Remove "noerror" parameter.
2883 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2884 parameter.
2885 (tui_show_symtab_source): Likewise.
2886 (tui_source_window::maybe_update): Update.
2887 * tui/tui-disasm.c (tui_show_disassem)
2888 (tui_show_disassem_and_update_source)
2889 (tui_disasm_window::do_scroll_vertical)
2890 (tui_disasm_window::maybe_update): Update.
2891
2d83e710
TT
28922019-08-16 Tom Tromey <tom@tromey.com>
2893
2894 * tui/tui.c (tui_is_window_visible): Update.
2895 * tui/tui-wingeneral.c (tui_make_window)
2896 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2897 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2898 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2899 (tui_set_win_height_command, parse_scrolling_args): Update.
2900 * tui/tui-source.c (tui_source_window::style_changed): Update.
2901 * tui/tui-regs.c (tui_show_registers)
2902 (tui_data_window::first_data_item_displayed)
2903 (tui_data_window::delete_data_content_windows)
2904 (tui_check_register_values, tui_reg_command): Update.
2905 * tui/tui-disasm.c (tui_show_disassem): Update.
2906 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2907 method.
2908 <is_visible>: Remove field.
2909 * tui/tui-data.c (tui_next_win, tui_prev_win)
2910 (tui_delete_invisible_windows): Update.
2911
d4ab829a
TT
29122019-08-16 Tom Tromey <tom@tromey.com>
2913
2914 * tui/tui-winsource.h (struct tui_source_window_base)
2915 <m_has_locator>: Remove.
2916 * tui/tui-layout.c (show_source_disasm_command, show_data)
2917 (show_source_or_disasm_and_command): Update.
2918
aa7ca1bb
AH
29192019-08-16 Alan Hayward <alan.hayward@arm.com>
2920
2921 * NEWS (Other MI changes): New subsection.
2922 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2923 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2924 * arch-utils.c (default_get_pc_address_flags): New function.
2925 * arch-utils.h (default_get_pc_address_flags): New declaration.
2926 * gdbarch.sh: Add get_pc_address_flags.
2927 * gdbarch.c: Regenerate.
2928 * gdbarch.h: Likewise.
2929 * stack.c (print_pc): New function.
2930 (print_frame_info) (print_frame): Call print_pc.
2931
6eac171f
TV
29322019-08-16 Tom de Vries <tdevries@suse.de>
2933
2934 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2935 print_objfile_section_info.
2936
3df505f6
TT
29372019-08-15 Tom Tromey <tom@tromey.com>
2938
2939 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2940 calling update_cmdwin_start_line.
2941 * tui/tui-winsource.h (struct tui_source_window_base)
2942 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2943 <rerender>: Declare.
2944 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2945 Call rerender.
2946 (tui_source_window_base::set_new_height): Remove.
2947 (tui_source_window_base::rerender): Rename from
2948 do_make_visible_with_new_height.
2949 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2950 resize method.
2951 (tui_win_info::make_invisible_and_set_new_height)
2952 (tui_win_info::make_visible_with_new_height): Remove.
2953 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2954 Declare.
2955 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2956 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2957 do_make_visible_with_new_height>: Don't declare.
2958 <rerender>: Declare.
2959 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2960 set_new_height.
2961 (tui_data_window::do_make_visible_with_new_height): Remove.
2962 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2963 call tui_show_locator_content.
2964 (tui_gen_win_info::resize): Call rerender.
2965 (show_source_or_disasm_and_command): Don't call
2966 tui_show_locator_content.
2967 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2968 method.
2969 (struct tui_win_info) <rerender>: Declare.
2970 <set_new_height, make_invisible_and_set_new_height,
2971 make_visible_with_new_height>: Don't declare.
2972 * tui/tui-data.c (tui_win_list::rerender): New method.
2973 * tui/tui-command.h (struct tui_cmd_window)
2974 <do_make_visible_with_new_height>: Don't declare.
2975 * tui/tui-command.c
2976 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2977
272560b5
TT
29782019-08-15 Tom Tromey <tromey@adacore.com>
2979
2980 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2981 * ada-lang.c (ada_enum_name): Likewise.
2982
08235187
CB
29832019-08-15 Christian Biesinger <cbiesinger@google.com>
2984
2985 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2986 leading underscore.
2987 (GdbOutputErrorFile): Likewise.
2988 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2989 accordingly.
2990 (execute_unwinders): Rename to have a leading underscore.
2991 (auto_load_packages): Likewise.
2992 (global scope): Adjust call to auto_load_packages accordingly.
2993 (GdbSetPythonDirectory): Likewise.
2994 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2995 instead of execute_unwinders.
2996
db502012
TT
29972019-08-15 Tom Tromey <tom@tromey.com>
2998
2999 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3000 (show_data): Don't change window visibility.
3001 (tui_gen_win_info::resize): Remove special case for command
3002 window. Use wresize, when available.
3003 (show_source_or_disasm_and_command): Don't change window
3004 visibility.
3005 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3006 <make_visible>: New method.
3007 * tui/tui-command.c (tui_cmd_window::resize): New method.
3008
3891b65e
TT
30092019-08-15 Tom Tromey <tom@tromey.com>
3010
3011 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3012 (struct tui_source_windows): New.
3013 * tui/tui-winsource.c (tui_display_main): Update.
3014 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3015 (new_height_ok, parse_scrolling_args): Update.
3016 * tui/tui-layout.c (show_layout, show_data): Update.
3017 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3018 (tui_add_to_source_windows): Don't declare.
3019 * tui/tui-data.c (source_windows, tui_source_windows)
3020 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3021
ee556432
TT
30222019-08-15 Tom Tromey <tom@tromey.com>
3023
3024 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3025 Rename from reset.
3026 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3027 * tui/tui-layout.c (show_source_disasm_command, show_data):
3028 Update.
3029 (tui_gen_win_info::resize): Rename.
3030 (show_source_or_disasm_and_command): Update.
3031 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3032 reset.
3033
46f438e3
TT
30342019-08-15 Tom Tromey <tom@tromey.com>
3035
3036 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3037 * tui/tui-interp.c (tui_interp::init): Don't call
3038 tui_initialize_static_data.
3039 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3040
f4ce562c
TT
30412019-08-15 Tom Tromey <tom@tromey.com>
3042
3043 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3044 examine tui_win_list.
3045
c398c3d0
TT
30462019-08-15 Tom Tromey <tom@tromey.com>
3047
3048 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3049 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3050 tui_clear_source_content.
3051 (tui_clear_source_content): Remove.
3052 (tui_source_window_base::do_erase_source_content): Hoist call to
3053 content.clear().
3054 * tui/tui-stack.c (tui_show_frame_info): Don't call
3055 tui_clear_source_content.
3056
e25d2004
TT
30572019-08-15 Tom Tromey <tom@tromey.com>
3058
3059 * tui/tui-winsource.h (struct tui_source_window_base)
3060 <do_erase_source_content>: New method.
3061 <erase_source_content>: New method.
3062 (tui_erase_source_content): Don't declare.
3063 * tui/tui-winsource.c (tui_clear_source_content): Update.
3064 (tui_source_window_base::do_erase_source_content): Rename from
3065 tui_erase_source_content.
3066 (tui_source_window_base::show_source_content): Update.
3067 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3068 * tui/tui-source.h (struct tui_source_window)
3069 <erase_source_content>: New method.
3070 * tui/tui-disasm.h (struct tui_disasm_window)
3071 <erase_source_content>: New method.
3072
002f15c2
TT
30732019-08-15 Tom Tromey <tom@tromey.com>
3074
3075 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3076 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3077 constructor.
3078 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3079 * tui/tui-source.c (tui_set_source_content): Update.
3080 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3081
c9033fe8
TT
30822019-08-15 Tom Tromey <tom@tromey.com>
3083
3084 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3085 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3086 tui-source.c.
3087 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3088 Declare.
3089 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3090 method.
3091 (tui_source_window::maybe_update): Update.
3092
088f37dd
TT
30932019-08-15 Tom Tromey <tom@tromey.com>
3094
3095 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3096 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3097 tui-disasm.c.
3098 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3099 Declare.
3100 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3101 method.
3102 (tui_disasm_window::maybe_update): Update.
3103
a54700c6
TT
31042019-08-15 Tom Tromey <tom@tromey.com>
3105
3106 * tui/tui-winsource.h (struct tui_source_window_base)
3107 <maybe_update>: Declare.
3108 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3109 method.
3110 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3111 Declare.
3112 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3113 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3114 Declare.
3115 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3116
e2a678a5
TT
31172019-08-15 Tom Tromey <tom@tromey.com>
3118
3119 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3120
f2dda477
TT
31212019-08-15 Tom Tromey <tom@tromey.com>
3122
3123 * tui/tui-wingeneral.c: Include tui-stack.h.
3124 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3125 (struct tui_locator_window): Move from tui-data.h.
3126 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3127 (tui_initialize_static_data): Move from tui-data.c.
3128 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3129 (struct tui_locator_window): Move to tui-stack.c.
3130 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3131 (tui_initialize_static_data): Move to tui-stack.c.
3132
ed4a1084
TT
31332019-08-15 Tom Tromey <tom@tromey.com>
3134
3135 * tui/tui-layout.c (show_source_disasm_command)
3136 (show_source_or_disasm_and_command): Use make_visible method, not
3137 tui_make_window.
3138 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3139 Remove.
3140
65962b20
TT
31412019-08-15 Tom Tromey <tom@tromey.com>
3142
3143 * tui/tui-wingeneral.h (tui_make_window): Update.
3144 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3145 parameter.
3146 (tui_gen_win_info::make_visible): Update.
3147 * tui/tui-regs.c (tui_data_window::display_registers_from):
3148 Update.
3149 * tui/tui-layout.c (show_source_disasm_command)
3150 (show_source_or_disasm_and_command): Update.
3151 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3152 (enum tui_box): Remove.
3153 (struct tui_win_info) <can_box>: New method.
3154 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3155 method.
3156
2208ee91
TV
31572019-08-15 Tom de Vries <tdevries@suse.de>
3158
3159 * linux-nat-trad.c: Include gdbarch.h.
3160
75faf5c4
AH
31612019-08-14 Alan Hayward <alan.hayward@arm.com>
3162
3163 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3164 register sizes.
3165
b1c896b3
TT
31662019-08-14 Tom Tromey <tromey@adacore.com>
3167
3168 * darwin-nat.c: Include gdbarch.h.
3169 * darwin-nat-info.c: Include gdbarch.h.
3170
6405cd73
TT
31712019-08-13 Tom Tromey <tom@tromey.com>
3172
3173 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3174 Remove.
3175 * tui/tui-data.c (tui_initialize_static_data): Update.
3176
5216580d
TT
31772019-08-13 Tom Tromey <tom@tromey.com>
3178
3179 * tui/tui-winsource.h (struct tui_exec_info_window)
3180 <~tui_exec_info_window, maybe_allocate_content, get_content,
3181 m_content>: Remove.
3182 (struct tui_source_window_base) <set_exec_info_content,
3183 show_exec_info_content>: Don't declare.
3184 * tui/tui-winsource.c
3185 (tui_exec_info_window::maybe_allocate_content): Remove.
3186 (tui_source_window_base::update_exec_info): Rename from
3187 set_exec_info_content.
3188 (tui_source_window_base::show_exec_info_content)
3189 (tui_source_window_base::update_exec_info): Remove.
3190
93858ad3
TT
31912019-08-13 Tom Tromey <tom@tromey.com>
3192
3193 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3194 declare.
3195 * tui/tui-winsource.c (tui_update_source_window_as_is)
3196 (tui_update_source_windows_with_addr, tui_erase_source_content):
3197 Update.
3198 (tui_clear_exec_info_content): Remove.
3199
e321e7ce
TT
32002019-08-13 Tom Tromey <tom@tromey.com>
3201
3202 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3203 declare.
3204 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3205 call tui_erase_exec_info_content.
3206 (tui_clear_exec_info_content): Rename from
3207 tui_erase_exec_info_content.
3208 (tui_clear_exec_info_content): Delete.
3209
8270ac62
TT
32102019-08-13 Tom Tromey <tom@tromey.com>
3211
3212 * tui/tui-winsource.h (struct tui_source_window_base)
3213 <show_exec_info_content>: Declare.
3214 (tui_show_exec_info_content): Don't declare.
3215 * tui/tui-winsource.c
3216 (tui_source_window_base::show_exec_info_content): Rename from
3217 tui_show_exec_info_content.
3218 (tui_source_window_base::update_exec_info): Update.
3219
7b56485d
TT
32202019-08-13 Tom Tromey <tom@tromey.com>
3221
3222 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3223 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3224 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3225 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3226 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3227 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3228 ... here.
3229
7ba913dc
TT
32302019-08-13 Tom Tromey <tom@tromey.com>
3231
3232 * tui/tui-winsource.h (struct tui_source_window_base)
3233 <update_exec_info>: Declare.
3234 (tui_update_exec_info): Don't declare.
3235 * tui/tui-winsource.c (tui_update_source_window_as_is)
3236 (tui_source_window_base::refresh_all)
3237 (tui_update_all_breakpoint_info): Update.
3238 (tui_source_window_base::update_exec_info): Rename from
3239 tui_update_exec_info.
3240 * tui/tui-stack.c (tui_show_frame_info): Update.
3241
37a4a131
TT
32422019-08-13 Tom Tromey <tom@tromey.com>
3243
3244 * tui/tui-winsource.h (struct tui_source_window_base)
3245 <set_exec_info_content>: Declare.
3246 (tui_set_exec_info_content): Don't declare.
3247 * tui/tui-winsource.c
3248 (tui_source_window_base::set_exec_info_content): Rename from
3249 tui_set_exec_info_content.
3250 (tui_update_exec_info): Update.
3251
0bd27e07
TT
32522019-08-13 Tom Tromey <tom@tromey.com>
3253
3254 * tui/tui-winsource.h (struct tui_source_window_base)
3255 <show_source_content>: Declare.
3256 (tui_show_source_content): Don't declare.
3257 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3258 (tui_source_window_base::show_source_content): Rename from
3259 tui_show_source_content.
3260 (tui_source_window_base::refresh_all): Update.
3261 * tui/tui-layout.c (show_source_disasm_command)
3262 (show_source_or_disasm_and_command): Update.
3263
b4ef5aeb
TT
32642019-08-13 Tom Tromey <tom@tromey.com>
3265
3266 * tui/tui-winsource.c (tui_erase_source_content)
3267 (tui_show_source_content, tui_source_window_base::refresh_all):
3268 Update.
3269 * tui/tui-wingeneral.h
3270 (tui_check_and_display_highlight_if_needed): Don't declare.
3271 * tui/tui-wingeneral.c
3272 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3273 check_and_display_highlight_if_needed.
3274 * tui/tui-win.c (tui_rehighlight_all)
3275 (tui_win_info::make_visible_with_new_height): Update.
3276 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3277 (tui_data_window::erase_data_content)
3278 (tui_data_window::display_all_data): Update.
3279 * tui/tui-data.h (struct tui_win_info)
3280 <check_and_display_highlight_if_needed>: Declare.
3281
fede5273
TT
32822019-08-13 Tom Tromey <tom@tromey.com>
3283
3284 * tui/tui-win.c (tui_resize_all): Call
3285 tui_delete_invisible_windows.
3286 * tui/tui-layout.c (show_layout): Call
3287 tui_delete_invisible_windows.
3288 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3289 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3290
22c3f490
TT
32912019-08-13 Tom Tromey <tom@tromey.com>
3292
3293 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3294 tui_add_win_to_layout.
3295
16cb7910
TT
32962019-08-13 Tom Tromey <tom@tromey.com>
3297
3298 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3299 * tui/tui-layout.c (tui_default_win_height): Now static.
3300
cc0c3ffb
TT
33012019-08-13 Tom Tromey <tom@tromey.com>
3302
3303 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3304 single switch.
3305 (show_source_disasm_command, show_source_or_disasm_and_command):
3306 Don't check current layout.
3307
3f3ffe54
TT
33082019-08-13 Tom Tromey <tom@tromey.com>
3309
3310 * tui/tui-wingeneral.c (make_all_visible): Remove.
3311 (tui_make_all_invisible): Simplify.
3312 * tui/tui-layout.c (tui_make_all_invisible): Move from
3313 tui-wingeneral.c; simplify.
3314 (show_layout): Hoist call to tui_make_all_invisible.
3315 (show_data): Don't call tui_make_all_invisible.
3316
69258091
TT
33172019-08-13 Tom Tromey <tom@tromey.com>
3318
3319 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3320 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3321
62cf57fe
TT
33222019-08-13 Tom Tromey <tom@tromey.com>
3323
3324 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3325 tui-data.c.
3326 (show_source_disasm_command, show_data)
3327 (show_source_or_disasm_and_command): Don't use
3328 tui_set_current_layout_to.
3329 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3330 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3331 tui-layout.c.
3332 (tui_set_current_layout_to): Remove.
3333
2afade5d
TT
33342019-08-13 Tom Tromey <tom@tromey.com>
3335
3336 * tui/tui-layout.c (tui_set_layout): Update.
3337 * tui/tui-data.h (struct tui_layout_def): Remove.
3338 (tui_layout_def): Don't declare.
3339 * tui/tui-data.c (layout_def): Remove.
3340 (tui_layout_def): Remove.
3341
a3504e96
TT
33422019-08-13 Tom Tromey <tom@tromey.com>
3343
3344 * tui/tui-winsource.h (struct tui_source_window_base)
3345 <clear_detail>: No longer "override".
3346 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3347 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3348 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3349 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3350 Remove.
3351 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3352
29c92911
TT
33532019-08-13 Tom Tromey <tromey@adacore.com>
3354
3355 * tracepoint.c: Don't include readline.h or history.h.
3356
86c6b807
TT
33572019-08-12 Tom Tromey <tom@tromey.com>
3358
3359 * configure: Rebuild.
3360 * configure.ac: Check for readline 7.
3361 * NEWS: Mention readline 7 requirement.
3362 * README: Update.
3363
5db2718c
TT
33642019-08-12 Tom Tromey <tom@tromey.com>
3365
3366 * mingw-hdep.c (gdb_select): Remove readline hack.
3367
dac36daf
PFC
33682019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3369
3370 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3371 when the function fails.
3372
1022c627
AA
33732019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3374
3375 * s390-tdep.c (s390_type_align): New function.
3376 (s390_gdbarch_init): Set it as type_align gdbarch method.
3377
eba4caf2
TV
33782019-08-09 Tom de Vries <tdevries@suse.de>
3379
3380 PR gdb/24591
3381 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3382 pc_low with relocation offset.
3383
123cd851
TT
33842019-08-07 Tom Tromey <tromey@adacore.com>
3385
3386 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3387 (print_frame_args): Update.
3388 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3389 Update.
3390 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3391 * frame.h (struct frame_arg): Add initializers.
3392 <error>: Now a unique_xmalloc_ptr.
3393
3d31bc39
AH
33942019-08-07 Alan Hayward <alan.hayward@arm.com>
3395
3396 * NEWS: Expand the Pointer Authentication entry.
3397 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3398 (aarch64_frame_unmask_lr): ... to this.
3399 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3400 Call aarch64_frame_unmask_lr.
3401 * frame.c (struct frame_info): Add "masked" variable.
3402 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3403 (fprint_frame): Check for masked pc.
3404 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3405 declarations.
3406 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3407 * stack.c (print_frame): Check for masked pc.
3408
0cf9feb9
TT
34092019-08-06 Tom Tromey <tom@tromey.com>
3410
3411 * stabsread.c (patch_block_stabs, read_one_struct_field)
3412 (read_enum_type): Use obstack_strndup.
3413 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3414 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3415 * dwarf2read.c (guess_full_die_structure_name)
3416 (anonymous_struct_prefix): Use obstack_strndup.
3417 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3418 * c-exp.y (yylex): Use obstack_strndup.
3419 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3420 (write_var_or_type): Use obstack_strndup.
3421
efba19b0
TT
34222019-08-06 Tom Tromey <tom@tromey.com>
3423
3424 * symfile.c (reread_symbols): Use obstack_strdup.
3425 * stabsread.c (read_type): Use obstack_strdup.
3426 * gdb_obstack.h (obstack_strdup): New overload.
3427 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3428 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3429 (dwarf2_canonicalize_name): Use obstack_strdup.
3430 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3431 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3432 Use obstack_strdup.
3433
f25102f7
TT
34342019-08-06 Tom Tromey <tom@tromey.com>
3435
3436 * gdb_obstack.h (obstack_strdup): Define.
3437 * gdb_obstack.c (obstack_strdup): Don't define.
3438
021887d8
TT
34392019-08-06 Tom Tromey <tom@tromey.com>
3440
3441 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3442 obstack_strdup.
3443 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3444 obstack_strdup.
3445 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3446 * stabsread.c (common_block_start): Use obstack_strdup.
3447 * objfiles.c (set_objfile_main_name, objfile): Use
3448 obstack_strdup.
3449 * namespace.c (add_using_directive): Use obstack_strdup.
3450 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3451 * jit.c (finalize_symtab): Use obstack_strdup.
3452 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3453 (guess_partial_die_structure_name, partial_die_info::fixup)
3454 (dwarf2_name): Use obstack_strdup.
3455 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3456 obstack_strdup.
3457 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3458 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3459 obstack_strdup.
3460 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3461
d2834edc
PW
34622019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3463
3464 * unittests/help-doc-selftests.c: New file.
3465 * Makefile.in: Add the new file.
3466
590042fc
PW
34672019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3468
3469 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3470 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3471 the full first line, except when FOR_VALUE_PREFIX. In this case,
3472 the trailing '.' is not output, and the first character is uppercased.
3473 (print_help_for_command): Update call to print_doc_line.
3474 (print_doc_of_command): Likewise.
3475 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3476 * cli/cli-option.c (append_indented_doc): Do not append newline.
3477 (build_help_option): Append newline after first appended_indented_doc
3478 only if a second call is done.
3479 (build_help): Append 2 new lines before each option, except the first
3480 one.
3481 * compile/compile.c (_initialize_compile): Add new lines after
3482 %OPTIONS%, when not at the end of the help.
3483 Change help doc or code
3484 producing the help doc to respect the invariants.
3485 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3486 Also removed the new line after 'Options:', as all other commands
3487 do not put an empty line between 'Options:' and the first option.
3488 * printcmd.c (_initialize_printcmd): Likewise.
3489 * stack.c (_initialize_stack): Likewise.
3490 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3491 incorrectly telling COMMAND is optional.
3492 * ada-lang.c (_initialize_ada_language): Change help doc or code
3493 producing the help doc to respect the invariants.
3494 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3495 * breakpoint.c (_initialize_breakpoint): Likewise.
3496 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3497 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3498 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3499 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3500 _initialize_cli_style): Likewise.
3501 * corelow.c (core_target_info): Likewise.
3502 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3503 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3504 * filesystem.c (_initialize_filesystem): Likewise.
3505 * frame.c (_initialize_frame): Likewise.
3506 * gnu-nat.c (add_task_commands): Likewise.
3507 * infcall.c (_initialize_infcall): Likewise.
3508 * infcmd.c (_initialize_infcmd): Likewise.
3509 * interps.c (_initialize_interpreter): Likewise.
3510 * language.c (_initialize_language): Likewise.
3511 * linux-fork.c (_initialize_linux_fork): Likewise.
3512 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3513 * maint.c (_initialize_maint_cmds): Likewise.
3514 * memattr.c (_initialize_mem): Likewise.
3515 * printcmd.c (_initialize_printcmd): Likewise.
3516 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3517 _RegEx): Likewise.
3518 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3519 * record-btrace.c (_initialize_record_btrace): Likewise.
3520 * record-full.c (_initialize_record_full): Likewise.
3521 * record.c (_initialize_record): Likewise.
3522 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3523 * regcache.c (_initialize_regcache): Likewise.
3524 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3525 _initialize_remote): Likewise.
3526 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3527 * serial.c (_initialize_serial): Likewise.
3528 * skip.c (_initialize_step_skip): Likewise.
3529 * source.c (_initialize_source): Likewise.
3530 * stack.c (_initialize_stack): Likewise.
3531 * symfile.c (_initialize_symfile): Likewise.
3532 * symtab.c (_initialize_symtab): Likewise.
3533 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3534 * top.c (init_main): Likewise.
3535 * tracefile-tfile.c (tfile_target_info): Likewise.
3536 * tracepoint.c (_initialize_tracepoint): Likewise.
3537 * tui/tui-win.c (_initialize_tui_win): Likewise.
3538 * utils.c (add_internal_problem_command): Likewise.
3539 * valprint.c (value_print_option_defs): Likewise.
3540
404f2902
FCE
35412019-08-06 Frank Ch. Eigler <fche@redhat.com>
3542
3543 PR build/24886
3544 * configure.ac: Drop enable-libmcheck support.
3545 * configure, config.in: Rebuild.
3546 * libmcheck.m4: Remove.
3547 * acinclude.m4: Don't include it.
3548 * Makefile.in: Don't distribute it.
3549 * top.c (print_gdb_configuration): Don't mention it.
3550
046bebe1
TT
35512019-08-06 Tom Tromey <tom@tromey.com>
3552
3553 * utils.c (set_output_style): Sometimes pass stream to
3554 emit_style_escape.
3555 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3556 * record-btrace.c (btrace_insn_history): Update.
3557 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3558 method.
3559 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3560 Update initializers.
3561 <m_uiout>: New field.
3562 <m_di>: Move lower.
3563 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3564 Remove "uiout" parameter.
3565 (dump_insns): Update.
3566 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3567 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3568
ddbcedf5
CB
35692019-08-06 Christian Biesinger <cbiesinger@google.com>
3570
3571 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3572 (error_in_psymtab_expansion): Likewise.
3573 (lookup_symbol_via_quick_fns): Likewise.
3574 (basic_lookup_transparent_type_quick): Likewise.
3575 (basic_lookup_transparent_type_1): Likewise.
3576
b08b16c8
TT
35772019-08-06 Tom Tromey <tromey@adacore.com>
3578
3579 * source.c (last_source_error): Now bool.
3580 (print_source_lines_base): Make "noprint" bool. Only open
3581 source file when last_source_visited changes.
3582
cb44333d
TT
35832019-08-06 Tom Tromey <tromey@adacore.com>
3584
3585 * annotate.c (annotate_source_line): Use g_source_cache.
3586 * source-cache.c (source_cache::get_plain_source_lines): Change
3587 parameters. Populate m_offset_cache.
3588 (source_cache::ensure): New method.
3589 (source_cache::get_line_charpos): New method.
3590 (extract_lines): Move lower. Change parameters.
3591 (source_cache::get_source_lines): Move lower.
3592 * source-cache.h (class source_cache): Update comment.
3593 <get_line_charpos>: New method.
3594 <get_source_lines>: Update comment.
3595 <clear>: Clear m_offset_cache.
3596 <get_plain_source_lines>: Change parameters.
3597 <ensure>: New method
3598 <m_offset_cache>: New member.
3599 * source.c (forget_cached_source_info_for_objfile): Update.
3600 (info_source_command): Use g_source_cache.
3601 (find_source_lines, open_source_file_with_line_charpos): Remove.
3602 (print_source_lines_base, search_command_helper): Use g_source_cache.
3603 * source.h (open_source_file_with_line_charpos): Don't declare.
3604 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3605 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3606 Use g_source_cache.
3607
872dceaa
TT
36082019-08-06 Tom Tromey <tromey@adacore.com>
3609
3610 * source-cache.c (source_cache::get_plain_source_lines):
3611 Remove "first_line" and "last_line" parameters.
3612 (source_cache::get_source_lines): Cache plain text.
3613 * source-cache.h (class source_cache)
3614 <get_plain_source_lines>: Update.
3615
269249d9
TT
36162019-08-06 Tom Tromey <tromey@adacore.com>
3617
3618 * source-cache.c (extract_lines): No longer a method.
3619 Changed type of parameter. Include final newline.
3620 (selftests::extract_lines_test): New function.
3621 (_initialize_source_cache): Likewise.
3622 * source-cache.h (class source_cache)
3623 <extract_lines>: Don't declare.
3624
c0e8dcd8
TT
36252019-08-06 Tom Tromey <tromey@adacore.com>
3626
3627 * breakpoint.c (init_breakpoint_sal): Update.
3628 (breakpoint): Update.
3629 * breakpoint.h (struct breakpoint) <filter>: Now a
3630 unique_xmalloc_ptr.
3631
0b27c27d
CB
36322019-08-05 Christian Biesinger <cbiesinger@google.com>
3633
3634 * NEWS: Mention dictionary access on blocks.
3635 * python/py-block.c (blpy_getitem): New function.
3636 (block_object_as_mapping): New struct.
3637 (block_object_type): Use new struct for tp_as_mapping field.
3638
4ee94178
CB
36392019-08-05 Christian Biesinger <cbiesinger@google.com>
3640
3641 * objfiles.h (objfile): Add a comment describing partial symbols.
3642
8abfcabc
TT
36432019-08-05 Tom Tromey <tromey@adacore.com>
3644
3645 * compile/compile.c (_initialize_compile): Use _(), not N_().
3646 * thread.c (_initialize_thread): Use _(), not N_().
3647 * stack.c (_initialize_stack): Use _(), not N_().
3648 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3649
2b79f376
SM
36502019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3651
3652 * dwarf2read.c (struct dw2_symtab_iterator):
3653 <want_specific_block>: Remove.
3654 <block_index>: Change type to gdb::optional.
3655 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3656 change type of BLOCK_INDEX parameter to gdb::optional.
3657 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3658 (dw2_lookup_symbol): Don't pass argument for
3659 WANT_SPECIFIC_BLOCK.
3660 (dw2_expand_symtabs_for_function): Don't pass argument for
3661 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3662 (class dw2_debug_names_iterator)
3663 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3664 parameter, change BLOCK_INDEX type to gdb::optional.
3665 <m_want_specific_block>: Remove.
3666 <m_block_index>: Change type to gdb::optional.
3667 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3668 gdb::optional. Re-write in function of gdb::optional.
3669 (dw2_debug_names_lookup_symbol): Don't pass argument for
3670 WANT_SPECIFIC_BLOCK.
3671 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3672 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3673 BLOCK_INDEX.
3674
ae60f04e
PW
36752019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3676
3677 * NEWS: Mention changes to "info sources" command.
3678
28cd9371
PW
36792019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3680
3681 * symtab.c (filename_partial_match_opts): New struct type.
3682 (struct output_source_filename_data): New members
3683 regexp, c_regexp, partial_match.
3684 (output_source_filename): Use new members to decide to print file.
3685 (info_sources_option_defs): New variable.
3686 (make_info_sources_options_def_group, print_info_sources_header,
3687 info_sources_command_completer):
3688 New functions.
3689 (info_sources_command): Read new optional arguments.
3690 (_initialize_symtab): Update info sources help.
3691
ca683e3a
AO
36922019-08-02 Alexandre Oliva <oliva@adacore.com>
3693
3694 * ada-lang.c (exception_support_info_v0): Renamed from...
3695 (default_exception_support_info): ... this. Create new
3696 definition for v1.
3697 (ada_has_this_exception_support): Look up catch_handlers_sym.
3698 (ada_exception_support_info_sniffer): Try v0 after default.
3699
f1264162
TT
37002019-08-01 Tom Tromey <tromey@adacore.com>
3701
3702 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3703 gdbarch.h.
3704
0a7b2485
CB
37052019-08-01 Christian Biesinger <cbiesinger@google.com>
3706
3707 * s12z-tdep.c: Fix include path for s12z-opc.h.
3708
c6bdbeb7
AH
37092019-08-01 Alan Hayward <alan.hayward@arm.com>
3710
3711 * NEWS: Require GNU make 3.82.
3712
a2bd7b82
TT
37132019-07-16 Tom Tromey <tom@tromey.com>
3714
3715 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3716 declare.
3717
aa3b6533
TT
37182019-07-30 Tom Tromey <tromey@adacore.com>
3719
3720 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3721
a1530dc7
KB
37222019-07-30 Kevin Buettner <kevinb@redhat.com>
3723
3724 * printcmd.c (print_address_symbolic): Print negative offsets.
3725 (build_address_symbolic): Force signed arithmetic when computing
3726 offset.
3727
2906593f
CB
37282019-07-30 Christian Biesinger <cbiesinger@google.com>
3729
3730 PR/24474: Add a function to lookup static variables.
3731 * NEWS: Mention this new function.
3732 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3733 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3734 * python/python.c (python_GdbMethods): Add new function.
3735
c620ed88
CB
37362019-07-29 Christian Biesinger <cbiesinger@google.com>
3737
3738 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3739 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3740 (objfpy_lookup_static_symbol): New function.
3741 (objfile_object_methods): Add new functions.
3742
bc4268a5
PW
37432019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3744
3745 * NEWS: Mention 'set|show print frame-info'. Mention new
3746 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3747 backtrace argument. Mention that python frame filtering code
3748 is now consistent with what 'backtrace' command prints.
3749
4b5e8d19
PW
37502019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3751
3752 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3753 comments.
3754 (print_frame_info_auto, print_frame_info_source_line,
3755 print_frame_info_location, print_frame_info_source_and_location,
3756 print_frame_info_location_and_address, print_frame_info_short_location):
3757 New declarations.
3758 (struct frame_print_options): New member print_frame_info.
3759 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3760 * stack.h (get_user_print_what_frame_info): New declaration.
3761 (frame_show_address): New declaration.
3762 * stack.c (print_frame_arguments_choices): New value 'presence'.
3763 (print_frame_info_auto, print_frame_info_source_line,
3764 print_frame_info_location, print_frame_info_source_and_location,
3765 print_frame_info_location_and_address, print_frame_info_short_location,
3766 print_frame_info_choices, print_frame_info_print_what): New definitions.
3767 (print_frame_args): Only print dots for args if print frame-arguments
3768 is 'presence'.
3769 (frame_print_option_defs): New element for "frame-info".
3770 (get_user_print_what_frame_info): New function.
3771 (frame_show_address): Make non static. Move comment to stack.h.
3772 (print_frame_info_to_print_what): New function.
3773 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3774 to decide what to print.
3775 (backtrace_command_1): Handle the new print_frame_arguments_presence
3776 value.
3777 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3778 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3779 (py_print_frame): In non-mi mode, use LOCATION as default for
3780 print_what, similarly to frame information printed directly by
3781 backtrace command. Handle frame-info user option in non MI mode.
3782
6bdfee81
KB
37832019-07-27 Kevin Buettner <kevinb@redhat.com>
3784
3785 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3786 Add case for debugging 32-bit target on 64-bit host. Revise
3787 comment.
3788
98a617f8
KB
37892019-07-27 Kevin Buettner <kevinb@redhat.com>
3790
3791 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3792 instead of find_function_entry_range_from_pc.
3793
567238c9
KB
37942019-07-27 Kevin Buettner <kevinb@redhat.com>
3795
3796 * stack.c (find_frame_funname): Remove code which preferred
3797 minsym over symtab sym in "certain pathological cases".
3798
2dc80cf8
KB
3799 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3800 parameter. Change type of "do_demangle" to bool.
3801 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3802 Pass suitable "prefer_sym_over_minsym" flag to
3803 build_address_symbolic(). Don't output "+" for negative offsets.
3804 * printcmd.c (print_address_symbolic): Update invocation of
3805 build_address_symbolic to include a "prefer_sym_over_minsym"
3806 flag.
3807 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3808 Restrict cases in which use of minimal symbol is preferred to that
3809 of a found symbol. Update comments.
3810
1aff7173
KB
3811 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3812 for entry pc when entry pc is out of range for that FDE.
3813
89b085ac
BC
38142019-07-26 Brian Callahan <bcallah@openbsd.org>
3815
3816 PR gdb/24839:
3817 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3818 type.
3819
f32feb4a
CB
38202019-07-25 Christian Biesinger <cbiesinger@google.com>
3821
3822 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3823 this function's Python signature.
3824
3825
38262019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3827
3828 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3829 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3830 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3831 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3832 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3833
3834
c54e4253
YS
38352019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3836
3837 * h8300-tdep.c (h8300_register_name_common): New.
3838 h8300_register_name): Use h8300_register_name_common.
3839 (h8300s_register_name): Likewise.
3840 (h8300sx_register_name): Likewise.
3841 (h8300h_register_nam): New.
3842 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3843
3844
40eadf04
SP
38452019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3846
3847 * arm-tdep.c (arm_skip_cmse_entry): New function.
3848 (arm_is_sgstubs_section): New function.
3849 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3850
bfa2a36d
TT
38512019-07-22 Tom Tromey <tom@tromey.com>
3852
3853 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3854 Don't self-assign.
3855
a8e9d247
AB
38562019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3857
3858 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3859 type_print.
3860
eb86c5e2
AB
38612019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3862
3863 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3864 so that GDB doesn't match any msymbols when searching in the
3865 TYPES_DOMAIN.
3866 (print_symbol_info): Print using typedef_print or type_print based
3867 on the type of the symbol. Add updated FIXME comment moved from...
3868 (_initialize_symtab): ... move and update FIXME comment to above.
3869
a8eab7c6
AB
38702019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3871
3872 * NEWS: Mention adding -q option to "info types".
3873 * symtab.c (struct info_types_options): New struct.
3874 (info_types_options_defs): New variable.
3875 (make_info_types_options_def_group): New function.
3876 (info_types_command): Use gdb::option framework to parse options.
3877 (info_types_command_completer): New function.
3878 (_initialize_symtab): Extend the help text on "info types" and
3879 register command completer.
3880
b4603c34
CB
38812019-07-21 Christian Biesinger <cbiesinger@google.com>
3882
3883 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3884 (lookup_symbol_in_objfile): Change int to block_enum and add a
3885 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3886
c8cdc1e0
CB
38872019-07-20 Christian Biesinger <cbiesinger@google.com>
3888
3889 * MAINTAINERS (Write After Approval): Add self.
3890
01e175fe
AB
38912019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3892
3893 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3894 instruction to the dummy code region.
3895
56f79b63
TT
38962019-07-19 Tom Tromey <tromey@adacore.com>
3897
3898 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3899 (ARGSUSED, PARAMS, __func__): Remove rules.
3900
4c5aa8e0
AH
39012019-07-19 Alan Hayward <alan.hayward@arm.com>
3902
3903 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3904 * features/arm/arm-with-iwmmxt.c: Remove.
3905 * features/arm/arm-with-iwmmxt.xml: Remove.
3906 * features/arm/arm-with-m-fpa-layout.c: Remove.
3907 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3908 * features/arm/arm-with-m-vfp-d16.c: Remove.
3909 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3910 * features/arm/arm-with-m.c: Remove.
3911 * features/arm/arm-with-m.xml: Remove.
3912 * features/arm/arm-with-neon.c: Remove.
3913 * features/arm/arm-with-neon.xml: Remove.
3914 * features/arm/arm-with-vfpv2.c: Remove.
3915 * features/arm/arm-with-vfpv2.xml: Remove.
3916 * features/arm/arm-with-vfpv3.c: Remove.
3917 * features/arm/arm-with-vfpv3.xml: Remove.
3918
f42b2617
AH
39192019-07-19 Alan Hayward <alan.hayward@arm.com>
3920
3921 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3922
f29ec966
AH
39232019-07-19 Alan Hayward <alan.hayward@arm.com>
3924
3925 * arch/aarch32.c (aarch32_create_target_description): Create
3926 target descriptions using features.
3927 * arch/arm.c (arm_create_target_description)
3928 (arm_create_mprofile_target_description): Likewise.
3929 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3930
d105cce5
AH
39312019-07-19 Alan Hayward <alan.hayward@arm.com>
3932
3933 * Makefile.in: Add new files.
3934 * aarch32-tdep.c: New file.
3935 * aarch32-tdep.h: New file.
3936 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3937 Call aarch32_read_description.
3938 * arch/aarch32.c: New file.
3939 * arch/aarch32.h: New file.
3940 * arch/arm.c (arm_create_target_description)
3941 (arm_create_mprofile_target_description): New function.
3942 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3943 (arm_create_target_description)
3944 (arm_create_mprofile_target_description): New declaration.
3945 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3946 read_description functions.
3947 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3948 Likewise.
3949 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3950 * arm-tdep.c (tdesc_arm_list): New variable.
3951 (arm_register_g_packet_guesses): Call create description functions.
3952 (arm_read_description) (arm_read_mprofile_description): New
3953 function.
3954 * arm-tdep.h (arm_read_description)
3955 (arm_read_mprofile_description): Add declaration.
3956 * configure.tgt: Add new files.
3957
afe09f0b
GL
39582019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3959
3960 * top.c (new_ui_command): Open specified terminal just once.
3961
cd215b2e
TT
39622019-07-18 Tom Tromey <tromey@adacore.com>
3963
3964 * symtab.c (main_name): Constify return type.
3965 * symfile.c (set_initial_language): Update.
3966 * symtab.h (main_name): Constify return type.
3967
d8f68fcb
TT
39682019-07-17 Tom Tromey <tom@tromey.com>
3969
3970 * tui/tui-winsource.c (tui_update_source_window)
3971 (tui_update_source_window_as_is)
3972 (tui_update_source_windows_with_line): Remove return.
3973 * tui/tui-disasm.c (tui_show_disassem)
3974 (tui_show_disassem_and_update_source): Remove return.
3975 * tui/tui.c (tui_reset): Remove return.
3976 * tui/tui-wingeneral.c
3977 (tui_check_and_display_highlight_if_needed): Remove return.
3978
ca5af91e
TT
39792019-07-17 Tom Tromey <tom@tromey.com>
3980
3981 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3982
5104fe36
TT
39832019-07-17 Tom Tromey <tom@tromey.com>
3984
3985 * tui/tui-winsource.h (struct tui_exec_info_window)
3986 (struct tui_source_window_base): Move from tui-data.h.
3987 * tui/tui-winsource.c: Move many method definitions from
3988 elsewhere. Remove "structuring" comments.
3989 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3990 (tui_source_window_base::refresh_window): Move to
3991 tui-winsource.c.
3992 * tui/tui-win.c (tui_source_window_base::refresh_all)
3993 (tui_source_window_base::update_tab_width)
3994 (tui_source_window_base::set_new_height)
3995 (tui_source_window_base::do_make_visible_with_new_height): Move to
3996 tui-winsource.c.
3997 * tui/tui-source.h: Update.
3998 * tui/tui-source.c (tui_source_window_base::reset): Move to
3999 tui-winsource.c.
4000 * tui/tui-disasm.h: Update.
4001 * tui/tui-data.h (struct tui_exec_info_window): Move to
4002 tui-winsource.h.
4003 (struct tui_source_window_base): Likewise.
4004 * tui/tui-data.c (tui_source_window_base::clear_detail)
4005 (tui_source_window_base, ~tui_source_window_base): Move to
4006 tui-winsource.c.
4007
daa15dde
TT
40082019-07-17 Tom Tromey <tom@tromey.com>
4009
4010 * tui/tui-win.c (tui_resize_all)
4011 (tui_source_window_base::update_tab_width)
4012 (tui_adjust_win_heights): Update.
4013 (tui_win_info::make_invisible_and_set_new_height): Rename from
4014 make_invisible_and_set_new_height.
4015 * tui/tui-data.h (struct tui_win_info)
4016 <make_invisible_and_set_new_height>: New method.
4017
bfad4537
TT
40182019-07-17 Tom Tromey <tom@tromey.com>
4019
4020 * tui/tui.c: Update.
4021 * tui/tui-source.h (struct tui_source_window): Move from
4022 tui-data.h.
4023 * tui/tui-layout.c: Update.
4024 * tui/tui-disasm.c: Update.
4025 * tui/tui-data.h (struct tui_source_window): Move to
4026 tui-source.h.
4027
88f7e873
TT
40282019-07-17 Tom Tromey <tom@tromey.com>
4029
4030 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4031 tui-data.h.
4032 * tui/tui-data.h (struct tui_disasm_window): Move to
4033 tui-disasm.h.
4034
96bd6233
TT
40352019-07-17 Tom Tromey <tom@tromey.com>
4036
4037 * tui/tui-regs.h (struct tui_data_item_window): Move from
4038 tui-data.h.
4039 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4040 * tui/tui-data.h (struct tui_data_item_window): Move to
4041 tui-regs.h.
4042 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4043
ce38393b
TT
40442019-07-17 Tom Tromey <tom@tromey.com>
4045
4046 * tui/tui.c: Update.
4047 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4048 (tui_cmd_window::max_height): Move to tui-command.c.
4049 * tui/tui-layout.c: Update.
4050 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4051 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4052 tui-command.c.
4053 * tui/tui-command.h (struct tui_cmd_window): Move from
4054 tui-data.h.
4055 * tui/tui-command.c: Remove "structuring" comments.
4056 (tui_cmd_window::clear_detail)
4057 (tui_cmd_window::do_make_visible_with_new_height)
4058 (tui_cmd_window::max_height): Move from elsewhere.
4059
2d8b51cb
TT
40602019-07-17 Tom Tromey <tom@tromey.com>
4061
4062 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4063 Now static.
4064 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4065 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4066
18ab23af
TT
40672019-07-17 Tom Tromey <tom@tromey.com>
4068
4069 * tui/tui.c: Update.
4070 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4071 tui-regs.c.
4072 * tui/tui-windata.h: Remove file.
4073 * tui/tui-windata.c: Remove file.
4074 * tui/tui-win.c (tui_data_window::set_new_height)
4075 (tui_data_window::do_make_visible_with_new_height): Move to
4076 tui-regs.c.
4077 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4078 * tui/tui-regs.c: Remove "structuring" comments.
4079 (tui_data_window::first_data_item_displayed)
4080 (tui_data_window::delete_data_content_windows)
4081 (tui_data_window::erase_data_content)
4082 (tui_data_window::display_all_data)
4083 (tui_data_window::refresh_all)
4084 (tui_data_window::do_scroll_vertical)
4085 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4086 (tui_data_window::do_make_visible_with_new_height)
4087 (tui_data_window::refresh_window): Move from elsewhere.
4088 (_initialize_tui_regs): Move to end of file.
4089 * tui/tui-layout.c: Update.
4090 * tui/tui-hooks.c: Update.
4091 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4092 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4093 tui-regs.c.
4094 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4095
88b7e7cc
TT
40962019-07-17 Tom Tromey <tom@tromey.com>
4097
4098 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4099 seen.
4100
0fcd3711
TT
41012019-07-17 Tom Tromey <tom@tromey.com>
4102
4103 * tui/tui-win.c (tui_source_window_base::set_new_height)
4104 (tui_source_window_base::do_make_visible_with_new_height): Use
4105 m_has_locator field directly.
4106 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4107 method.
4108 (struct tui_source_window_base) <has_locator>: Likewise.
4109
4a38112d
TT
41102019-07-17 Tom Tromey <tom@tromey.com>
4111
4112 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4113 Don't declare.
4114 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4115 Remove.
4116 * tui/tui-win.c (tui_source_window_base::set_new_height)
4117 (tui_source_window_base::set_new_height)
4118 (make_invisible_and_set_new_height)
4119 (tui_source_window_base::do_make_visible_with_new_height)
4120 (tui_source_window_base::do_make_visible_with_new_height):
4121 Update.
4122 * tui/tui-layout.c (show_source_disasm_command, show_data)
4123 (show_source_or_disasm_and_command): Update.
4124 * tui/tui-layout.c (show_layout): Update.
4125
09129226
TT
41262019-07-17 Tom Tromey <tom@tromey.com>
4127
4128 * tui/tui-layout.c (make_data_window): Remove.
4129 (show_data): Unify creation and re-initialization cases.
4130
4a8a5e84
TT
41312019-07-17 Tom Tromey <tom@tromey.com>
4132
4133 * tui/tui-layout.c (make_source_window, make_disasm_window):
4134 Remove.
4135 (show_data): Unify creation and re-initialization cases.
4136
76d2be8e
TT
41372019-07-17 Tom Tromey <tom@tromey.com>
4138
4139 * tui/tui-layout.c (make_command_window): Remove.
4140 (show_source_disasm_command, show_source_or_disasm_and_command):
4141 Unify creation and re-initialization cases.
4142
890b8bde
TT
41432019-07-17 Tom Tromey <tom@tromey.com>
4144
4145 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4146 creation and re-initialization cases.
4147
2cdfa113
TT
41482019-07-17 Tom Tromey <tom@tromey.com>
4149
4150 * tui/tui-regs.c (tui_get_register): Return void.
4151
8e3cfd09
TT
41522019-07-17 Tom Tromey <tom@tromey.com>
4153
4154 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4155 Simplify.
4156
f4e04977
TT
41572019-07-17 Tom Tromey <tom@tromey.com>
4158
4159 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4160 resetting.
4161
0379b883
TT
41622019-07-17 Tom Tromey <tom@tromey.com>
4163
4164 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4165 * tui/tui-regs.c (tui_reg_layout): New function.
4166 (tui_show_registers, tui_reg_command): Use it.
4167 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4168 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4169 parameters.
4170 (tui_layout_command): Remove.
4171
b7fbad91
TT
41722019-07-17 Tom Tromey <tom@tromey.com>
4173
4174 * tui/tui-layout.h (tui/tui-layout): Return void.
4175 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4176
4e1e56b9
TT
41772019-07-17 Tom Tromey <tom@tromey.com>
4178
4179 * tui/tui-layout.c (show_source_disasm_command, show_data):
4180 Update.
4181 (reset_locator): Remove.
4182 (show_source_or_disasm_and_command): Update.
4183
1e0c09ba
TT
41842019-07-17 Tom Tromey <tom@tromey.com>
4185
4186 * tui/tui-source.c (tui_source_window_base::reset): Remove
4187 win_type parameter.
4188 * tui/tui-layout.c (make_command_window, make_source_window)
4189 (make_disasm_window, make_data_window)
4190 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4191 (reset_locator, show_source_or_disasm_and_command): Update.
4192 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4193 win_type parameter.
4194 (struct tui_source_window_base) <reset>: Likewise.
4195
1bf605de
TT
41962019-07-17 Tom Tromey <tom@tromey.com>
4197
4198 * tui/tui-layout.c (show_source_disasm_command): Use
4199 reset_locator.
4200 (reset_locator): New function.
4201 (init_and_make_win): Remove.
4202 (show_source_or_disasm_and_command): Use reset_locator.
4203
098f9ed4
TT
42042019-07-17 Tom Tromey <tom@tromey.com>
4205
4206 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4207 condition.
4208 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4209 Remove condition.
4210 * tui/tui-source.c (tui_source_window_base::reset): New method.
4211 * tui/tui-layout.c (make_command_window): Don't call
4212 init_and_make_win.
4213 (make_source_window, make_disasm_window): Don't call
4214 make_source_or_disasm_window.
4215 (make_data_window): Don't call init_and_make_win. Change calling
4216 convention.
4217 (show_source_disasm_command, show_data): Simplify.
4218 (make_source_or_disasm_window): Remove.
4219 (show_source_or_disasm_and_command): Simplify.
4220 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4221 (struct tui_source_window_base) <reset>: Likewise.
4222 <execution_info>: Remove initializer.
4223 * tui/tui-data.c (tui_source_window_base): Initialize
4224 execution_info.
4225
80110957
TT
42262019-07-17 Tom Tromey <tom@tromey.com>
4227
4228 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4229 variable.
4230
cf82af05
TT
42312019-07-17 Tom Tromey <tom@tromey.com>
4232
4233 * tui/tui.c (tui_rl_other_window): Update.
4234 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4235 superclass method first. Always iterate over regs_content.
4236 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4237 method.
4238 * tui/tui-win.c (tui_set_focus_command): Update.
4239
01aeb396
TT
42402019-07-17 Tom Tromey <tom@tromey.com>
4241
4242 * tui/tui-win.c (tui_set_focus_command): Rename from
4243 tui_set_focus. Call tui_enable.
4244 (tui_set_focus_command): Remove.
4245
fd6c75ee
TT
42462019-07-17 Tom Tromey <tom@tromey.com>
4247
4248 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4249 refresh_window.
4250 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4251 touchwin.
4252 (tui_data_window::refresh_window): Call refresh_window on data
4253 items. Always call superclass refresh_window.
4254 (tui_win_info::refresh): Remove.
4255 (tui_source_window_base::refresh_window): Update.
4256 (tui_refresh_all): Update.
4257 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4258 refresh_window.
4259 (show_source_or_disasm_and_command): Likewise.
4260 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4261 (struct tui_source_window_base) <refresh>: Likewise.
4262
f6cc34a9
TT
42632019-07-17 Tom Tromey <tom@tromey.com>
4264
4265 * tui/tui-winsource.c (tui_clear_source_content)
4266 (tui_show_source_content): Update.
4267 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4268 whether content is empty.
4269 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4270 Remove.
4271
f31ec9af
TT
42722019-07-17 Tom Tromey <tom@tromey.com>
4273
4274 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4275 window's contents.
4276 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4277 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4278
d1b6f1e5
TT
42792019-07-17 Tom Tromey <tom@tromey.com>
4280
4281 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4282 (struct tui_data_item_window): Update.
4283
d9743a13
TT
42842019-07-17 Tom Tromey <tom@tromey.com>
4285
4286 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4287 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4288 defines.
4289
caf0bc4e
TT
42902019-07-17 Tom Tromey <tom@tromey.com>
4291
4292 * tui/tui-winsource.h (tui_erase_source_content)
4293 (tui_clear_source_content): Remove "display_prompt" parameter.
4294 * tui/tui-winsource.c (tui_update_source_window_as_is)
4295 (tui_update_source_windows_with_addr): Update.
4296 (tui_clear_source_content): Remove "display_prompt" parameter.
4297 (tui_erase_source_content): Likewise. Simplify.
4298 (tui_show_source_content): Update.
4299 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4300 * tui/tui-stack.c (tui_show_frame_info): Update.
4301 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4302 Remove defines.
4303
9d391078
TT
43042019-07-17 Tom Tromey <tom@tromey.com>
4305
4306 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4307 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4308 parameter.
4309 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4310 parameter.
4311
a38da35d
TT
43122019-07-17 Tom Tromey <tom@tromey.com>
4313
4314 * tui/tui-winsource.c (tui_clear_source_content)
4315 (tui_show_source_content, tui_show_exec_info_content)
4316 (tui_clear_exec_info_content): Update.
4317 * tui/tui-stack.c (tui_show_locator_content): Update.
4318 (tui_show_frame_info): Update.
4319 * tui/tui-source.h (tui_source_window): Don't declare.
4320 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4321 from tui_source_is_displayed.
4322 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4323 Remove field.
4324 (struct tui_source_window_base) <content_in_use>: New field. Now
4325 bool.
4326 (struct tui_source_window) <showing_source_p>: New method.
4327 (TUI_SRC_WIN): Change cast.
4328 * tui/tui-data.c (tui_initialize_static_data): Update.
4329
c2cd8994
TT
43302019-07-17 Tom Tromey <tom@tromey.com>
4331
4332 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4333 location_matches_p.
4334 * tui/tui-source.c (tui_source_window::location_matches_p): New
4335 method.
4336 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4337 method.
4338 * tui/tui-data.h (struct tui_source_window_base)
4339 <location_matches_p>: New method.
4340 (struct tui_source_window, struct tui_disasm_window)
4341 <location_matches_p>: Likewise.
4342
4dde7b34
TT
43432019-07-17 Tom Tromey <tom@tromey.com>
4344
4345 * tui/tui-win.c (tui_set_win_height_command): Rename from
4346 tui_set_win_height.
4347 (tui_set_win_height_command): Remove.
4348
b73dd877
TT
43492019-07-17 Tom Tromey <tom@tromey.com>
4350
4351 * tui/tui-source.c (tui_source_window): New constructor. Add
4352 observer.
4353 (~tui_source_window): New destructor.
4354 (tui_source_window::style_changed): New method.
4355 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4356 (tui_attach_detach_observers): Update.
4357 * tui/tui-data.h (struct tui_source_window): Make constructor not
4358 inline. Add destructor.
4359 (struct tui_source_window) <style_changed>: New method.
4360 <m_observable>: New member.
4361
ae2b5380
TT
43622019-07-17 Tom Tromey <tom@tromey.com>
4363
4364 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4365 * tui/tui-win.c (tui_resize_all): Fix typo.
4366
1ce3e844
TT
43672019-07-17 Tom Tromey <tom@tromey.com>
4368
4369 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4370 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4371 (tui_refresh_all): Remove "list" parameter. Use foreach.
4372 * tui/tui-win.c (window_name_completer): Use foreach.
4373 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4374 (update_tab_width): Likewise.
4375 * tui/tui-layout.c (show_layout): Update.
4376 * tui/tui-data.h (class tui_window_iterator): New.
4377 (struct all_tui_windows): New.
4378 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4379
fe3eaf1c
TT
43802019-07-17 Tom Tromey <tom@tromey.com>
4381
4382 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4383 parameter. Don't reference globals.
4384 (tui_reg_command): Update.
4385
368c1354
TT
43862019-07-17 Tom Tromey <tom@tromey.com>
4387
4388 * tui/tui-regs.c (tui_show_registers): Simplify.
4389
e80cd204
TT
43902019-07-17 Tom Tromey <tom@tromey.com>
4391
4392 * tui/tui-regs.c (tui_show_registers): Update.
4393 (tui_show_register_group): Add win_info parameter.
4394
aca2dd16
TT
43952019-07-17 Tom Tromey <tom@tromey.com>
4396
4397 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4398 Rename from tui_display_reg_element_at_line.
4399 (tui_data_window::display_registers_from_line): Update.
4400 * tui/tui-data.h (struct tui_data_window)
4401 <display_reg_element_at_line>: New method.
4402
517e9505
TT
44032019-07-17 Tom Tromey <tom@tromey.com>
4404
4405 * tui/tui-regs.h (tui_display_registers_from)
4406 (tui_display_registers_from_line): Don't declare.
4407 * tui/tui-windata.c (tui_data_window::display_all_data)
4408 (tui_data_window::refresh_all)
4409 (tui_data_window::do_scroll_vertical): Update.
4410 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4411 from tui_display_registers_from.
4412 (tui_display_reg_element_at_line): Update.
4413 (tui_data_window::display_registers_from_line): Rename from
4414 tui_display_registers_from_line.
4415 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4416 display_registers_from_line>: New methods.
4417
f76d8b19
TT
44182019-07-17 Tom Tromey <tom@tromey.com>
4419
4420 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4421 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4422 from tui_erase_data_content.
4423 (tui_data_window::display_all_data)
4424 (tui_data_window::refresh_all)
4425 (tui_data_window::do_scroll_vertical): Update.
4426 * tui/tui-regs.c (tui_show_registers): Update.
4427 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4428 New method.
4429
b4094625
TT
44302019-07-17 Tom Tromey <tom@tromey.com>
4431
4432 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4433 declare.
4434 * tui/tui-windata.c
4435 (tui_data_window::delete_data_content_windows): Rename from
4436 tui_delete_data_content_windows.
4437 (tui_data_window::display_all_data)
4438 (tui_data_window::do_scroll_vertical): Update.
4439 * tui/tui-data.h (struct tui_data_window)
4440 <delete_data_content_windows>: New method.
4441
c223a729
TT
44422019-07-17 Tom Tromey <tom@tromey.com>
4443
4444 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4445 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4446
50daf268
TT
44472019-07-17 Tom Tromey <tom@tromey.com>
4448
4449 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4450 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4451 from tui_display_all_data.
4452 * tui/tui-win.c
4453 (tui_data_window::do_make_visible_with_new_height): Update.
4454 * tui/tui-regs.c (tui_show_registers): Update.
4455 * tui/tui-layout.c (tui_set_layout): Update.
4456 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4457 method.
4458
df5f8cab
TT
44592019-07-17 Tom Tromey <tom@tromey.com>
4460
4461 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4462 * tui/tui-windata.c (tui_display_data_from): Remove.
4463 (tui_data_window::refresh_all): Update.
4464
80cb6c27
TT
44652019-07-17 Tom Tromey <tom@tromey.com>
4466
4467 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4468 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4469 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4470 tui_display_registers_from_line.
4471 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4472 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4473 "force_display" parameter.
4474
baff0c28
TT
44752019-07-17 Tom Tromey <tom@tromey.com>
4476
4477 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4478 declare.
4479 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4480 Rename from tui_first_reg_element_no_inline.
4481 (tui_display_reg_element_at_line)
4482 (tui_display_registers_from_line): Update.
4483 * tui/tui-data.h (struct tui_data_window)
4484 <first_reg_element_no_inline>: New method.
4485
3b23c5f2
TT
44862019-07-17 Tom Tromey <tom@tromey.com>
4487
4488 * tui/tui-windata.c (tui_display_data_from)
4489 (tui_data_window::do_scroll_vertical): Update.
4490 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4491 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4492 Rename from tui_line_from_reg_element_no.
4493 (tui_display_registers_from_line): Update.
4494 * tui/tui-data.h (struct tui_data_window)
4495 <line_from_reg_element_no>: New method.
4496
0b5ec218
TT
44972019-07-17 Tom Tromey <tom@tromey.com>
4498
4499 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4500 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4501 tui_last_regs_line_no.
4502 (tui_display_reg_element_at_line)
4503 (tui_display_registers_from_line): Update.
4504 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4505 method.
4506
0807ab7b
TT
45072019-07-17 Tom Tromey <tom@tromey.com>
4508
4509 PR tui/24722:
4510 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4511 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4512 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4513 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4514 (tui_update_breakpoint_info): Likewise.
4515 * tui/tui-hooks.c (tui_event_create_breakpoint)
4516 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4517 Update.
4518
9ad7fdef
TT
45192019-07-17 Tom Tromey <tom@tromey.com>
4520
4521 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4522
5813316f
TT
45232019-07-17 Tom Tromey <tom@tromey.com>
4524
4525 * tui/tui-winsource.c (tui_update_source_window_as_is)
4526 (tui_update_source_windows_with_addr): Update.
4527 * tui/tui-source.h (tui_set_source_content)
4528 (tui_show_symtab_source): Add "win_info" parameter.
4529 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4530 parameter.
4531 (tui_show_symtab_source): Likewise.
4532
00e264e7
TT
45332019-07-17 Tom Tromey <tom@tromey.com>
4534
4535 * tui/tui-wingeneral.c
4536 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4537
06210ce4
TT
45382019-07-17 Tom Tromey <tom@tromey.com>
4539
4540 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4541 (struct tui_cmd_window) <can_scroll>: New method.
4542 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4543 method.
4544
381befee
TT
45452019-07-17 Tom Tromey <tromey@adacore.com>
4546
4547 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4548 do_field_signed>: Rename. Change type of "value".
4549 * ui-out.c (ui_out::field_signed): Rename from field_int.
4550 Change type of "value".
4551 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4552 type of "value".
4553 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4554 do_field_int. Change type of "value".
4555 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4556 do_field_int. Change type of "value".
4557 * tracepoint.c (trace_status_mi, tfind_1)
4558 (print_one_static_tracepoint_marker): Update.
4559 * thread.c (print_thread_info_1, print_selected_thread_frame):
4560 Update.
4561 * stack.c (print_frame, print_frame_info): Update.
4562 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4563 Update.
4564 * source.c (print_source_lines_base): Update.
4565 * skip.c (info_skip_command): Update.
4566 * record-btrace.c (btrace_ui_out_decode_error)
4567 (btrace_call_history_src_line): Update.
4568 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4569 Update.
4570 * progspace.c (print_program_space): Update.
4571 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4572 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4573 do_field_int. Change type of "value".
4574 * mi/mi-out.c (mi_ui_out::do_table_begin)
4575 (mi_ui_out::do_table_header): Update.
4576 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4577 type of "value".
4578 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4579 (mi_cmd_data_list_changed_registers, output_register)
4580 (mi_cmd_data_read_memory, mi_load_progress)
4581 (mi_cmd_trace_frame_collected): Update.
4582 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4583 Update.
4584 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4585 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4586 (mi_cmd_var_list_children, varobj_update_one): Update.
4587 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4588 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4589 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4590 * inferior.c (print_inferior): Update.
4591 * gdb_bfd.c (print_one_bfd): Update.
4592 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4593 Update.
4594 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4595 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4596 do_field_int. Change type of "value".
4597 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4598 do_field_int. Change type of "value".
4599 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4600 (print_one_breakpoint_location, print_it_catch_fork)
4601 (print_one_catch_fork, print_it_catch_vfork)
4602 (print_one_catch_vfork, print_it_catch_solib)
4603 (print_it_catch_exec, print_it_ranged_breakpoint)
4604 (print_mention_watchpoint, print_mention_masked_watchpoint)
4605 (bkpt_print_it, update_static_tracepoint): Update.
4606 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4607 * break-catch-syscall.c (print_it_catch_syscall): Update.
4608 * ada-tasks.c (print_ada_task_info): Update.
4609 * ada-lang.c (print_it_exception, print_mention_exception):
4610 Update.
4611
6b78c3f8
AB
46122019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4613
4614 PR breakpoints/24541
4615 * gdbarch.c: Regenerate.
4616 * gdbarch.h: Regenerate.
4617 * gdbarch.sh: Adjust return type and parameter types for
4618 'stap_adjust_register'.
4619 (i386_stap_adjust_register): Adjust signature and return new
4620 register name.
4621 * stap-probe.c (stap_parse_register_operand): Adjust use of
4622 'gdbarch_stap_adjust_register'.
4623
d72a9b85
TT
46242019-07-17 Tom Tromey <tromey@adacore.com>
4625
4626 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4627 declare VEC.
4628 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4629 std::vector.
4630 (struct s390_process_info): Add initializers.
4631 (s390_add_process): Use new.
4632 (s390_linux_nat_target::low_forget_process): Use delete.
4633 (s390_linux_nat_target::low_new_fork)
4634 (s390_linux_nat_target::stopped_by_watchpoint)
4635 (s390_linux_nat_target::low_prepare_to_resume)
4636 (s390_linux_nat_target::insert_watchpoint)
4637 (s390_linux_nat_target::insert_hw_breakpoint)
4638 (s390_linux_nat_target::remove_watchpoint)
4639 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4640
206e6c58
JB
46412019-07-16 John Baldwin <jhb@FreeBSD.org>
4642
4643 * aarch64-fbsd-nat.c: Include regcache.h.
4644 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4645 argument.
4646 (aarch64_fbsd_nat_target::fetch_registers)
4647 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4648 variable.
4649 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4650
cbde90f2
JB
46512019-07-16 John Baldwin <jhb@FreeBSD.org>
4652
4653 * fbsd-nat.c: Include gdbarch.h.
4654
07128006
TT
46552019-07-15 Tom Tromey <tromey@adacore.com>
4656
4657 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4658
1f77b012
TT
46592019-07-15 Tom Tromey <tromey@adacore.com>
4660
4661 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4662 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4663 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4664 * cli-out.c (cli_ui_out::do_field_int): New method.
4665 * ui-out.c (ui_out::field_unsigned): New method.
4666 * symfile.c (generic_load): Use field_unsigned.
4667 (print_transfer_performance): Likewise.
4668 * record-btrace.c (ui_out_field_uint): Remove.
4669 (btrace_call_history_insn_range, btrace_call_history): Use
4670 field_unsigned.
4671 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4672 field_unsigned.
4673 * ui-out.h (class ui_out) <field_unsigned>: New method.
4674 <do_field_unsigned>: Likewise.
4675
33eca680
TT
46762019-07-15 Tom Tromey <tromey@adacore.com>
4677
4678 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4679 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4680 * target.c (flash_erase_command): Use field_string.
4681 * infrun.c (print_signal_received_reason): Use field_string.
4682 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4683 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4684 field_string.
4685 * ada-tasks.c (print_ada_task_info): Use field_string.
4686
ca8d69be
TT
46872019-07-15 Tom Tromey <tromey@adacore.com>
4688
4689 * target.c (flash_erase_command): Use field_core_addr.
4690 * symfile.c (generic_load): Use field_core_addr.
4691 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4692 Use field_core_addr.
4693 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4694 field_core_addr.
4695
0d4e84ed
AB
46962019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4697
4698 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4699 value if its desired type is smaller than a CORE_ADDR and signed.
4700
9a49df9d
AB
47012019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4702
4703 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4704 of changes to field names, and use new is_reference field to
4705 decide if a property is a reference or not.
4706 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4707 field.
4708 (struct dwarf2_property_baton): Update header comment, rename
4709 'referenced_type' to 'property_type' and update comments.
4710 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4711 default property type, store in property baton, update to take
4712 accound of renamed field.
4713 (read_func_scope): Update call to attr_to_dynamic_prop.
4714 (read_array_type): Likewise.
4715 (dwarf2_per_cu_addr_sized_int_type): New function.
4716 (read_subrange_index_type): Move type finding code to
4717 dwarf2_per_cu_addr_sized_int_type.
4718 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4719 (dwarf2_per_cu_addr_type): New function.
4720 (set_die_type): Update calls to attr_to_dynamic_prop.
4721
b86352cf
AB
47222019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4723
4724 * dwarf2read.c (read_subrange_index_type): New function.
4725 (read_subrange_type): Move code into new function and call it.
4726 * gdbtypes.c (create_range_type): Add some asserts.
4727
603490bf
AB
47282019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4729
4730 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4731 update return statements.
4732 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4733 declaration, and update comment to match.
4734 * gdbtypes.c (resolve_dynamic_array): Update call to
4735 dwarf2_evaluate_property to match new return type.
4736
592f9d27
AB
47372019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4738
4739 * valarith.c (value_subscripted_rvalue): Change lowerbound
4740 parameter type from int to LONGEST.
4741 * value.h (value_subscripted_rvalue): Likewise in declaration.
4742
60cfcb20
AB
47432019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4744
4745 * cli/cli-utils.c (info_print_command_completer): New function.
4746 * cli/cli-utils.h: Add 'completer.h' include, and forward
4747 declaration for 'struct cmd_list_element'.
4748 (info_print_command_completer): Declare.
4749 * stack.c (_initialize_stack): Add completer for 'info locals' and
4750 'info args'.
4751 * symtab.c (_initialize_symtab): Add completer for 'info
4752 variables' and 'info functions'.
4753 * NEWS: Mention completion for additional info commands.
4754
b16507e0
AB
47552019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4756
4757 * cli/cli-utils.c (extract_info_print_args): Delete.
4758 (extract_arg_maybe_quoted): Delete.
4759 (info_print_options_defs): New variable.
4760 (make_info_print_options_def_group): New function.
4761 (extract_info_print_options): Define new function.
4762 * cli/cli-utils.h (extract_info_print_args): Delete.
4763 (struct info_print_options): New structure.
4764 (extract_info_print_options): Declare new function.
4765 * stack.c (info_locals_command): Update to use new
4766 extract_info_print_options, also add a header comment.
4767 (info_args_command): Likewise.
4768 * symtab.c (info_variables_command): Likewise.
4769 (info_functions_command): Likewise.
4770
021d8588
AB
47712019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4772
4773 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4774 to extract string arguments.
4775 * common/common-utils.c (extract_string_maybe_quoted): New function.
4776 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4777
b777eb6d
TT
47782019-07-11 Tom Tromey <tromey@adacore.com>
4779
4780 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4781 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4782 * top.h (gdbinit): Don't declare.
4783 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4784 into...
4785 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4786 * top.c (gdb_init): Don't call init_cli_cmds.
4787 (gdbinit): Remove.
4788 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4789
72ee03ff
TT
47902019-07-11 Tom Tromey <tromey@adacore.com>
4791
4792 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4793 after it has been moved.
4794
00db9531
SM
47952019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4796
4797 * valops.c (value_must_coerce_to_target): Change return type to
4798 bool.
4799 * value.h (value_must_coerce_to_target): Likewise.
4800
f2478a7e
SM
48012019-07-10 Simon Marchi <simon.marchi@efficios.com>
4802
4803 * breakpoint.c (is_hardware_watchpoint): Remove
4804 forward-declaration.
4805 (is_masked_watchpoint): Change return type to bool.
4806 (is_tracepoint): Likewise.
4807 (is_breakpoint): Likewise.
4808 (is_hardware_watchpoint): Likewise.
4809 (is_watchpoint): Likewise.
4810 (is_no_memory_software_watchpoint): Likewise.
4811 (is_catchpoint): Likewise.
4812 (breakpoint_1): Make FILTER parameter's return type bool.
4813 is_masked_watchpoint): Change return type to bool.
4814 (save_breakpoints): Make FILTER parameter's return type bool.
4815 * breakpoint.h (is_breakpoint): Change return type to bool.
4816 (is_watchpoint): Likewise.
4817 (is_catchpoint): Likewise.
4818 (is_tracepoint): Likewise.
4819
0d12e84c
TT
48202019-07-10 Tom Tromey <tom@tromey.com>
4821
4822 * defs.h: Don't include gdbarch.h.
4823 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4824 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4825 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4826 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4827 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4828 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4829 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4830 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4831 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4832 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4833 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4834 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4835 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4836 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4837 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4838 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4839 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4840 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4841 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4842 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4843 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4844 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4845 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4846 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4847 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4848 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4849 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4850
f06f1252
TT
48512019-07-10 Tom Tromey <tromey@adacore.com>
4852
4853 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4854 * breakpoint.c (init_ada_exception_breakpoint): Register as
4855 bp_catchpoint.
4856 (print_one_breakpoint_location, print_one_breakpoint): Use
4857 is_ada_exception_catchpoint.
4858 * ada-lang.c (class ada_catchpoint_location): Pass
4859 bp_loc_software_breakpoint to bp_location constructor.
4860 (is_ada_exception_catchpoint): New function.
4861
7a5d944b
TT
48622019-07-10 Tom Tromey <tromey@adacore.com>
4863
4864 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4865 VEC.
4866 (struct arm_exidx_entry): New method operator<.
4867 (struct arm_exidx_data) <section_maps>: Change type.
4868 (arm_exidx_data_free): Remove.
4869 (arm_exidx_data_key): Change type. Move lower.
4870 (arm_exidx_new_objfile): Update.
4871 (arm_compare_exidx_entries): Remove.
4872 (arm_find_exidx_entry, _initialize_arm_tdep)
4873
48c66e1d
TT
48742019-07-10 Tom Tromey <tromey@adacore.com>
4875
4876 * solib-spu.c (ocl_program_data_key): Change type.
4877 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4878 Update.
4879
a269fbf1
TT
48802019-07-10 Tom Tromey <tromey@adacore.com>
4881
4882 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4883 (struct solib_aix_inferior_data) <library_list>: Change type.
4884 (solib_aix_inferior_data_handle): Change type.
4885 (get_solib_aix_inferior_data): Update.
4886 (solib_aix_free_library_list): Remove.
4887 (library_list_start_library): Update.
4888 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4889 return type.
4890 (solib_aix_get_library_list)
4891 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4892 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4893
c294730c
TT
48942019-07-10 Tom Tromey <tromey@adacore.com>
4895
4896 * solib-dsbt.c (struct dsbt_info): Add initializers.
4897 (solib_dsbt_pspace_data): Change type.
4898 (dsbt_pspace_data_cleanup): Remove.
4899 (get_dsbt_info, _initialize_dsbt_solib): Update.
4900
9d52077d
TT
49012019-07-10 Tom Tromey <tromey@adacore.com>
4902
4903 * spu-tdep.c (spu_overlay_data): Change type.
4904 (spu_get_overlay_table, spu_overlay_new_objfile)
4905 (_initialize_spu_tdep): Update.
4906
22a20dca
TT
49072019-07-10 Tom Tromey <tromey@adacore.com>
4908
4909 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4910 destructor.
4911 (dbx_objfile_data_key): Change type and declare later.
4912 (DBX_SYMFILE_INFO): Rewrite.
4913 * dbxread.c (dbx_objfile_data_key): Change type.
4914 (dbx_symfile_init): Update.
4915 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4916 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4917 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4918
cb60f420
TT
49192019-07-10 Tom Tromey <tromey@adacore.com>
4920
4921 * jit.c (jit_program_space_key): Change type. Move lower.
4922 (get_jit_program_space_data): Update.
4923 (jit_program_space_data_cleanup): Remove.
4924 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4925 Update.
4926 (struct jit_program_space_data): Add initializers.
4927
51df2ae3
TT
49282019-07-10 Tom Tromey <tromey@adacore.com>
4929
4930 * solib-darwin.c (struct darwin_info): Add initializers.
4931 (solib_darwin_pspace_data): Change type.
4932 (darwin_pspace_data_cleanup): Remove.
4933 (get_darwin_info, _initialize_darwin_solib): Update.
4934
18101a35
TT
49352019-07-10 Tom Tromey <tromey@adacore.com>
4936
4937 * remote-sim.c (struct sim_inferior_data): Add initializers,
4938 constructor, and destructor.
4939 (sim_inferior_data_key): Change type. Move lower.
4940 (check_for_duplicate_sim_descriptor): Update.
4941 (get_sim_inferior_data): Use new. Update.
4942 (~sim_inferior_data_cleanup): Rename from
4943 sim_inferior_data_cleanup. Simplify.
4944 (gdbsim_close_inferior, simulator_command)
4945 (sim_command_completer, _initialize_remote_sim): Update.
4946 (next_pid, INITIAL_PID): Move earlier.
4947
05b08ac1
TT
49482019-07-10 Tom Tromey <tromey@adacore.com>
4949
4950 * python/python-internal.h (create_thread_object): Return
4951 gdbpy_ref.
4952 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4953 * python/py-inferior.c (struct threadlist_entry): Add
4954 constructor.
4955 <thread_obj>: Now a gdbpy_ref.
4956 (thread_to_thread_object): Update.
4957 (add_thread_object): Use new.
4958 (delete_thread_object): Use delete.
4959 (infpy_threads): Update.
4960 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4961 GIL.
4962
32372d80
TT
49632019-07-10 Tom Tromey <tromey@adacore.com>
4964
4965 * valops.c (value_cast): Specialize error message for Ada.
4966
5c458ae8
SM
49672019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4968
4969 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4970
4c462cb0
SM
49712019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4972
4973 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4974 bpstat_should_step): Return bool, adjust comments.
4975 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4976 bpstat_should_step): Likewise.
4977
89abbcc2
AH
49782019-07-10 Alan Hayward <alan.hayward@arm.com>
4979
4980 * features/Makefile: Use feature target descriptions for Arm.
4981 * features/arm/arm-core.c: Generate new file.
4982 * features/arm/arm-fpa.c: Likewise.
4983 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4984 * features/arm/arm-m-profile.c: Likewise.
4985 * features/arm/arm-vfpv2.c: Likewise.
4986 * features/arm/arm-vfpv3.c: Likewise.
4987 * features/arm/xscale-iwmmxt.c: Likewise.
4988 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4989
166a82be
AH
49902019-07-10 Alan Hayward <alan.hayward@arm.com>
4991
4992 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4993 ptrace earlier.
4994
9fb4c7e9
AH
49952019-07-10 Alan Hayward <alan.hayward@arm.com>
4996
4997 * features/aarch64-pauth.c: Regenerate.
4998
e2d0f980
SM
49992019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5000
5001 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5002 bool.
5003 (bpstat_what): Use false instead of 0.
5004
a38118e5
PA
50052019-07-09 Pedro Alves <palves@redhat.com>
5006
5007 * break-catch-throw.c (is_exception_catchpoint): New.
5008 * breakpoint.c (print_one_breakpoint_location): New parameter
5009 'raw_loc'. Handle it. Use
5010 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5011 looking at the breakpoint's type.
5012 (print_one_breakpoint): If handling "maint info breakpoints", also
5013 print locations of exception catchpoints.
5014 * breakpoint.h (is_exception_catchpoint): Declare.
5015
cb1e4e32
PA
50162019-07-09 Pedro Alves <palves@redhat.com>
5017
5018 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5019 "addr" field.
5020 (allocate_location_exception_catchpoint): New.
5021 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5022 (initialize_throw_catchpoint_ops): Install
5023 allocate_location_exception_catchpoint as allocate_location
5024 method.
5025 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5026 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5027 bp_loc_other.
5028 (breakpoint_address_is_meaningful): Delete.
5029 (bl_address_is_meaningful): New.
5030 (breakpoint_locations_match): Adjust comment.
5031 (bp_location_from_bp_type): New, factored out of...
5032 (bp_location::bp_location(breakpoint *)): ... this.
5033 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5034 factored out of...
5035 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5036 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5037 breakpoint_address_is_meaningful.
5038 (bp_locations_compare): Adjust comment.
5039 (update_global_location_list): Use bl_address_is_meaningful
5040 instead of breakpoint_address_is_meaningful.
5041 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5042 explicit.
5043 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5044 * python/py-breakpoint.c (bppy_get_location): No longer check
5045 whether location is null.
5046
b58a68fe
PA
50472019-07-09 Pedro Alves <palves@redhat.com>
5048
5049 PR c++/15468
5050 * breakpoint.c (print_one_breakpoint_location): Remove
5051 single-location assert.
5052
268a13a5
TT
50532019-07-09 Tom Tromey <tom@tromey.com>
5054
5055 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5056 * configure: Rebuild.
5057 * configure.ac: Change common to gdbsupport.
5058 * gdbsupport: Rename from common.
5059 * acinclude.m4: Change common to gdbsupport.
5060 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5061 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5062 gdbsupport.
5063 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5064 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5065 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5066 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5067 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5068 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5069 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5070 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5071 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5072 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5073 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5074 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5075 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5076 coff-pe-read.c, command.h, compile/compile-c-support.c,
5077 compile/compile-c.h, compile/compile-cplus-symbols.c,
5078 compile/compile-cplus-types.c, compile/compile-cplus.h,
5079 compile/compile-loc2c.c, compile/compile.c, completer.c,
5080 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5081 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5082 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5083 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5084 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5085 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5086 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5087 features/aarch64-core.c, features/aarch64-fpu.c,
5088 features/aarch64-pauth.c, features/aarch64-sve.c,
5089 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5090 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5091 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5092 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5093 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5094 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5095 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5096 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5097 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5098 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5099 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5100 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5101 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5102 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5103 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5104 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5105 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5106 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5107 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5108 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5109 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5110 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5111 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5112 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5113 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5114 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5115 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5116 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5117 minsyms.c, mips-linux-tdep.c, namespace.h,
5118 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5119 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5120 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5121 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5122 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5123 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5124 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5125 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5126 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5127 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5128 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5129 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5130 procfs.c, producer.c, progspace.h, psymtab.h,
5131 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5132 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5133 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5134 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5135 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5136 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5137 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5138 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5139 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5140 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5141 target-memory.c, target.c, target.h, target/waitstatus.c,
5142 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5143 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5144 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5145 unittests/array-view-selftests.c,
5146 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5147 unittests/common-utils-selftests.c,
5148 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5149 unittests/format_pieces-selftests.c,
5150 unittests/function-view-selftests.c,
5151 unittests/lookup_name_info-selftests.c,
5152 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5153 unittests/mkdir-recursive-selftests.c,
5154 unittests/observable-selftests.c,
5155 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5156 unittests/parse-connection-spec-selftests.c,
5157 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5158 unittests/scoped_fd-selftests.c,
5159 unittests/scoped_mmap-selftests.c,
5160 unittests/scoped_restore-selftests.c,
5161 unittests/string_view-selftests.c, unittests/style-selftests.c,
5162 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5163 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5164 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5165 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5166 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5167 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5168
5b0e2db4
AB
51692019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5170
5171 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5172 bool value.
5173 (decode_digits_ordinary): Set explicit_line field in sal.
5174 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5175 symtab_and_line that was set on an explicit line number in
5176 assembler code. Do always update the recorded symtab and line if
5177 we do skip the prologue.
5178
0ba852ab
AB
51792019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5180
5181 * breakpoint.c (set_breakpoint_location_function): Remove
5182 explicit_loc parameter.
5183 (momentary_breakpoint_from_master): Update call to
5184 set_breakpoint_location_function.
5185 (add_location_to_breakpoint): Likewise.
5186
b3a7d171
AB
51872019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5188
5189 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5190 required features based on default bfd type when no specific bfd
5191 is present.
5192
1f6f6e21
PW
51932019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5194
5195 * NEWS: Mention that GDB printf and eval commands can now print
5196 C-style and Ada-style convenience var strings without
5197 calling the inferior.
5198 * printcmd.c (printf_c_string): Locally print GDB internal var
5199 instead of transiting via the inferior.
5200 (printf_wide_c_string): Likewise.
5201
52022019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 5203
5862c886 5204 PR breakpoints/25011
ea142fbf
AH
5205 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5206
0598af48
TT
52072019-07-04 Tom Tromey <tom@tromey.com>
5208
5209 PR tui/24724:
5210 * tui/tui-winsource.c (tui_clear_source_content): Update.
5211 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5212 (tui_update_breakpoint_info): Update.
5213 (tui_set_exec_info_content): Update.
5214 * tui/tui-source.c (tui_set_source_content_nil): Update.
5215 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5216 has_break.
5217 * tui/tui-data.h (enum tui_bp_flag): New.
5218 (tui_bp_flags): New enum flags type.
5219 (struct tui_source_element) <break_mode>: Change type. Rename
5220 from has_break.
5221 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5222 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5223 constants.
5224 * tui/tui-winsource.h: Fix comment.
5225
350fab54
AH
52262019-07-04 Alan Hayward <alan.hayward@arm.com>
5227
5228 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5229 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5230 (store_fpregs_to_thread)
5231 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5232 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5233 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5234 (IWMMXT_REGS_SIZE): Add define.
5235 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5236 (fetch_vfp_regs, store_vfp_regs)
5237 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5238 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5239
f0452268
AH
52402019-07-04 Alan Hayward <alan.hayward@arm.com>
5241
5242 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5243 defines.
5244 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5245 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5246 (ARM_INT_REGISTER_SIZE): ...to this.
5247 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5248 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5249 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5250 (arm_linux_collect_gregset, supply_nwfpe_register)
5251 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5252 defines.
5253 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5254 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5255 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5256 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5257 (arm_return_in_memory, arm_store_return_value)
5258 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5259 (arm_record_ld_st_multiple): Likewise.
5260 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5261 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5262
e935475c
AH
52632019-07-04 Alan Hayward <alan.hayward@arm.com>
5264
5265 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5266 AARCH64_DISPLACED_MODIFIED_INSNS.
5267 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5268 (aarch64_displaced_step_copy_insn): Likewise.
5269 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5270 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5271 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5272 ARM_DISPLACED_MODIFIED_INSNS.
5273 * arm-tdep.c (arm_gdbarch_init): Likewise.
5274 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5275 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5276 (struct arm_displaced_step_closure): Use
5277 ARM_DISPLACED_MODIFIED_INSNS.
5278
df0bb381
AH
52792019-07-04 Alan Hayward <alan.hayward@arm.com>
5280
5281 * features/Makefile: Remove unused xml files.
5282 * features/aarch64.xml: Remove.
5283 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5284 * features/i386/amd64-avx-avx512.xml: Remove.
5285 * features/i386/amd64-avx-linux.xml: Remove.
5286 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5287 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5288 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5289 * features/i386/amd64-avx-mpx.xml: Remove.
5290 * features/i386/amd64-avx.xml: Remove.
5291 * features/i386/amd64-linux.xml: Remove.
5292 * features/i386/amd64-mpx-linux.xml: Remove.
5293 * features/i386/amd64-mpx.xml: Remove.
5294 * features/i386/amd64.xml: Remove.
5295 * features/i386/i386-avx-avx512-linux.xml: Remove.
5296 * features/i386/i386-avx-avx512.xml: Remove.
5297 * features/i386/i386-avx-linux.xml: Remove.
5298 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5299 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5300 * features/i386/i386-avx-mpx-linux.xml: Remove.
5301 * features/i386/i386-avx-mpx.xml: Remove.
5302 * features/i386/i386-avx.xml: Remove.
5303 * features/i386/i386-linux.xml: Remove.
5304 * features/i386/i386-mmx-linux.xml: Remove.
5305 * features/i386/i386-mmx.xml: Remove.
5306 * features/i386/i386-mpx-linux.xml: Remove.
5307 * features/i386/i386-mpx.xml: Remove.
5308 * features/i386/i386.xml: Remove.
5309 * features/i386/x32-avx-avx512-linux.xml: Remove.
5310 * features/i386/x32-avx-linux.xml: Remove.
5311 * features/i386/x32-linux.xml: Remove.
5312
edd6266a
AH
53132019-07-04 Alan Hayward <alan.hayward@arm.com>
5314
5315 * regformats/aarch64.dat: Remove.
5316 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5317 * regformats/i386/amd64-avx-linux.dat: Remove.
5318 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5319 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5320 * regformats/i386/amd64-linux.dat: Remove.
5321 * regformats/i386/amd64-mpx-linux.dat: Remove.
5322 * regformats/i386/amd64.dat: Remove.
5323 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5324 * regformats/i386/i386-avx-linux.dat: Remove.
5325 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5326 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5327 * regformats/i386/i386-linux.dat: Remove.
5328 * regformats/i386/i386-mmx-linux.dat: Remove.
5329 * regformats/i386/i386-mpx-linux.dat: Remove.
5330 * regformats/i386/i386.dat: Remove.
5331 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5332 * regformats/i386/x32-avx-linux.dat: Remove.
5333 * regformats/i386/x32-linux.dat: Remove.
5334
2b40fda7
AH
53352019-07-04 Alan Hayward <alan.hayward@arm.com>
5336
5337 * aarch64-tdep.c: Remove xml self tests.
5338 * amd64-linux-tdep.c: Likewise.
5339 * amd64-tdep.c: Likewise.
5340 * i386-linux-tdep.c: Likewise.
5341 * i386-tdep.c: Likewise.
5342
5f4ba3e7
PA
53432019-07-03 Pedro Alves <palves@redhat.com>
5344
5345 PR cli/24732
5346 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5347 (pipe_cmd_option_defs): New.
5348 (make_pipe_cmd_options_def_group): New.
5349 (pipe_command): Use gdb::option::process_options.
5350 (pipe_command_completer): New function.
5351 (_initialize_cli_cmds): Install completer for "pipe" command.
5352
3d9be6f5
PA
53532019-07-03 Pedro Alves <palves@redhat.com>
5354
5355 * cli/cli-option.c (union option_value) <string>: New field.
5356 (struct option_def_and_value): Add ctor, move ctor, dtor and
5357 use DISABLE_COPY_AND_ASSIGN.
5358 (option_def_and_value::clear_value): New.
5359 (parse_option, save_option_value_in_ctx, get_val_type_str)
5360 (add_setshow_cmds_for_options): Handle var_string.
5361 * cli-option.h (union option_def::var_address) <string>: New
5362 field.
5363 (struct string_option_def): New.
5364 * maint-test-options.c (struct test_options_opts): Add default
5365 ctor and use DISABLE_COPY_AND_ASSIGN.
5366 <string_opt>: New field.
5367 (test_options_opts::~test_options_opts): New.
5368 (test_options_opts::dump): Also dump "-string".
5369 (test_options_option_defs): Install "string.
5370
41fc454c
PA
53712019-07-03 Pedro Alves <palves@redhat.com>
5372
5373 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5374 option_value with a null enumeration.
5375 (complete_options): Save the option values in the context.
5376 (save_option_value_in_ctx): New, factored out from ...
5377 (process_options): ... here.
5378 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5379 of the function.
5380 * maint-test-options.c (test_options_opts::dump): New, factored
5381 out from ...
5382 (maintenance_test_options_command_mode): ... here.
5383 (maintenance_test_options_command_completion_result): Delete.
5384 (maintenance_test_options_command_completion_text): Update
5385 comment.
5386 (maintenance_show_test_options_completion_result): Change
5387 prototype. Just print
5388 maintenance_test_options_command_completion_text.
5389 (save_completion_result): New.
5390 (maintenance_test_options_completer_mode): Pass options context to
5391 complete_options, and then save a dump.
5392 (_initialize_maint_test_options): Use add_cmd to install "maint
5393 show test-options-completion-result".
5394
fdbc9870
PA
53952019-07-03 Pedro Alves <palves@redhat.com>
5396
5397 * NEWS (New commands): Mention "with" and "maint with".
5398 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5399 (with_command, with_command_completer): New.
5400 (pipe_command): Adjust to new repeat_previous
5401 interface.
5402 (_initialize_cli_cmds): Install the "with" command and its "w"
5403 alias.
5404 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5405 declarations.
5406 * cli/cli-setshow.c (parse_cli_var_uinteger)
5407 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5408 argument strings for all var_types.
5409 (get_setshow_command_value_string): New, factored out from ...
5410 (do_show_command): ... this.
5411 * cli/cli-setshow.h: Include <string>.
5412 (get_setshow_command_value_string): Declare.
5413 * command.h (repeat_previous): Now returns const char *. Adjust
5414 comment.
5415 * maint.c: Include "cli/cli-cmds.h".
5416 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5417 (_initialize_maint_cmds): Register the "maintenance with" command.
5418 * top.c (repeat_previous): Move bits from pipe_command here:
5419 Return the saved command line, if any; error out if there's no
5420 command to relaunch.
5421
c6ac8931
PA
54222019-07-03 Pedro Alves <palves@redhat.com>
5423
5424 * NEWS (New commands): Mention "maint set/show test-settings"
5425 instead of "maint test-settings".
5426 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5427 (maintenance_test_settings_set_list): Rename to ...
5428 (maintenance_set_test_settings_list): ... this.
5429 (maintenance_test_settings_show_list): Rename to ...
5430 (maintenance_show_test_settings_list): ... this.
5431 (maintenance_test_settings_cmd): Delete.
5432 (maintenance_test_settings_set_cmd): ...
5433 (maintenance_set_test_settings_cmd): ... this.
5434 (maintenance_test_settings_show_cmd): ...
5435 (maintenance_show_test_settings_cmd): ... this.
5436 (maintenance_test_settings_show_value_cmd):
5437 (maintenance_show_test_settings_value_cmd): ... this.
5438 (_initialize_maint_test_settings): No longer install the "maint
5439 test-settings" prefix command. Rename "maint test-settings set"
5440 to "maint set test-settings", and "maint test-settings show" to
5441 "maint show test-settings". Adjust all subcommands.
5442
d1fcf2fd
PA
54432019-07-03 Pedro Alves <palves@redhat.com>
5444
5445 * maint-test-settings.c: Fix file's intro comment. Replace all
5446 references to "test-options" with references to "test-settings",
5447 in comments.
5448
970f9d09
PA
54492019-07-03 Pedro Alves <palves@redhat.com>
5450
5451 * maint-test-settings.c (maintenance_test_settings_xxx)
5452 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5453 New.
5454 (maintenance_test_settings_enums): Use them.
5455 (maintenance_test_settings_enum): Default to
5456 maintenance_test_settings_xxx.
5457 (_initialize_maint_test_settings): Initialize
5458 MAINTENANCE_TEST_SETTINGS_FILENAME.
5459
f3869b1a
SM
54602019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5461
5462 * breakpoint.h (remove_breakpoints_inf): Change return type to
5463 void, move function documentation here.
5464 * breakpoint.c (remove_breakpoints_inf): Change return type to
5465 void, move function documentation to header.
5466
54d66006
PA
54672019-07-02 Pedro Alves <palves@redhat.com>
5468
5469 * NEWS (Completion improvements): Mention "info threads".
5470 * thread.c (struct info_threads_opts, info_threads_option_defs)
5471 (make_info_threads_options_def_group): New.
5472 (info_threads_command): Use gdb::option::process_options.
5473 (info_threads_command_completer): New.
5474 (_initialize_thread): Use gdb::option::build_help to build the
5475 help text for "info threads".
5476
854f6088
SM
54772019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5478
5479 * defs.h (generic_load): Move from here...
5480 * symfile.h (generic_load): ... to here. Rename name parameter
5481 to args.
5482 * symfile.c (generic_load): Add comment.
5483
54ee4252
TT
54842019-07-01 Tom Tromey <tromey@adacore.com>
5485
5486 * dwarf2read.c
5487 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5488 declaration of without_params. Fix formatting.
5489
65392b3e
TT
54902019-07-01 Tom Tromey <tromey@adacore.com>
5491
5492 * ada-exp.y (find_primitive_type): Update.
5493 * ada-lang.h (ada_lookup_symbol): Update.
5494 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5495 parameter.
5496 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5497
7d7571f0
SDJ
54982019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5499
5500 PR breakpoints/24541
5501 * gdbarch.c: Regenerate.
5502 * gdbarch.h: Regenerate.
5503 * gdbarch.sh: Add 'stap_adjust_register'.
5504 * i386-tdep.c: Include '<unordered_set>'.
5505 (i386_stap_adjust_register): New function.
5506 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5507 * stap-probe.c (stap_parse_register_operand): Call
5508 'gdbarch_stap_adjust_register'.
5509
5af5392a
SDJ
55102019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5511
5512 PR python/24742
5513 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5514 * python/python.c (do_start_initialization): Use 'xmalloc'
5515 instead of 'PyMem_Malloc'.
5516
10d06d82
TT
55172019-06-28 Tom Tromey <tromey@adacore.com>
5518
5519 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5520 for Ada.
5521
1b7f24cd
TT
55222019-06-27 Tom Tromey <tromey@adacore.com>
5523
5524 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5525 objfile_key.
5526 (arm_find_mapping_symbol, arm_record_special_symbol)
5527 (_initialize_arm_tdep): Update.
5528 (arm_objfile_data_free): Remove.
5529
3d507ff2
TT
55302019-06-27 Tom Tromey <tromey@adacore.com>
5531
5532 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5533 to cp_print_static_field.
5534
762c164d
TT
55352019-06-26 Tom Tromey <tromey@adacore.com>
5536
5537 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5538 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5539 declare.
5540
aa2f9bcf
AH
55412019-06-26 Alan Hayward <alan.hayward@arm.com>
5542
5543 * features/aarch64-core.c (create_feature_aarch64_core):
5544 Regenerate.
5545 * features/aarch64-core.xml: Add cpsr flags.
5546
3426ae57
AH
55472019-06-26 Alan Hayward <alan.hayward@arm.com>
5548
5549 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5550 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5551
4838e44c
SM
55522019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5553
5554 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5555 field.
5556 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5557 use.
5558 (arm_record_special_symbol): Don't insert new symbol in sorted
5559 position, push it at the end.
5560
54cc7474
SM
55612019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5562
5563 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5564 (arm_mapping_symbol_s): Remove.
5565 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5566 (arm_mapping_symbol_vec): New typedef.
5567 (struct arm_per_objfile): Add constructor.
5568 <section_maps>: Change type to
5569 std::unique_ptr<arm_mapping_symbol_vec[]>.
5570 (arm_compare_mapping_symbols): Remove.
5571 (arm_find_mapping_symbol): Adjust to section_maps type change.
5572 (arm_objfile_data_free): Call delete on arm_per_objfile.
5573 (arm_record_special_symbol): Adjust to section_maps type change.
5574 Allocate arm_per_objfile with new.
5575
b65b566c
PW
55762019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5577
5578 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5579 with the command prefix.
5580
c2fc64f5
TT
55812019-06-25 Tom Tromey <tom@tromey.com>
5582
5583 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5584 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5585
fb54fa76
TT
55862019-06-25 Tom Tromey <tom@tromey.com>
5587
5588 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5589 type.
5590 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5591 protected.
5592
f7952c57
TT
55932019-06-25 Tom Tromey <tom@tromey.com>
5594
5595 * tui/tui-winsource.c
5596 (tui_source_window_base::set_is_exec_point_at): Add check against
5597 LOA_ADDRESS.
5598
17568d78
TT
55992019-06-25 Tom Tromey <tom@tromey.com>
5600
5601 * tui/tui-source.c (tui_set_source_content): Don't check before
5602 xfree.
5603 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5604
53e7cdba
TT
56052019-06-25 Tom Tromey <tom@tromey.com>
5606
5607 * tui/tui-winsource.h (tui_update_source_window_as_is)
5608 (tui_alloc_source_buffer, tui_line_is_displayed)
5609 (tui_addr_is_displayed): Change type of win_info.
5610 * tui/tui-winsource.c (tui_update_source_window_as_is)
5611 (tui_clear_source_content, tui_show_source_line)
5612 (tui_show_source_content, tui_source_window_base::refill)
5613 (tui_source_window_base::set_is_exec_point_at)
5614 (tui_source_window_base::set_is_exec_point_at)
5615 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5616 (tui_alloc_source_buffer, tui_line_is_displayed)
5617 (tui_addr_is_displayed): Change type of win_info. Update.
5618 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5619 (tui_source_window_base::do_make_visible_with_new_height):
5620 Update.
5621 * tui/tui-source.c (tui_set_source_content)
5622 (tui_set_source_content_nil)
5623 (tui_source_window::do_scroll_vertical): Update.
5624 * tui/tui-layout.c (show_layout): Update.
5625 * tui/tui-disasm.c (tui_set_disassem_content)
5626 (tui_disasm_window::do_scroll_vertical): Update.
5627 * tui/tui-data.h (tui_win_content): Remove.
5628 (struct tui_gen_win_info) <content, content_size>: Remove.
5629 (struct tui_source_element): Add initializers and destructor.
5630 (union tui_which_element, struct tui_win_element): Remove.
5631 (struct tui_source_window_base) <content>: New field.
5632 (struct tui_data_window): Remove destructor.
5633 (tui_alloc_content, tui_free_win_content)
5634 (tui_free_all_source_wins_content): Don't declare.
5635 * tui/tui-data.c (tui_initialize_static_data): Update.
5636 (init_content_element, tui_alloc_content): Remove.
5637 (~tui_gen_win_info): Update.
5638 (~tui_data_window, tui_free_all_source_wins_content)
5639 (tui_free_win_content, free_content, free_content_elements):
5640 Remove.
5641
7908abbf
TT
56422019-06-25 Tom Tromey <tom@tromey.com>
5643
5644 * tui/tui-winsource.h (tui_clear_source_content)
5645 (tui_erase_source_content, tui_show_source_content): Change type
5646 of win_info.
5647 * tui/tui-winsource.c (tui_clear_source_content)
5648 (tui_erase_source_content, tui_show_source_content): Change type
5649 of win_info.
5650 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5651 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5652 win_info.
5653 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5654 win_info.
5655 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5656
02c28df0
TT
56572019-06-25 Tom Tromey <tom@tromey.com>
5658
5659 * tui/tui-winsource.c (tui_clear_source_content)
5660 (tui_source_window_base::set_is_exec_point_at): Update.
5661 * tui/tui-source.c (tui_set_source_content_nil): Update.
5662 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5663 a bool.
5664 * tui/tui-data.c (init_content_element): Update.
5665
6658b1bf
TT
56662019-06-25 Tom Tromey <tom@tromey.com>
5667
5668 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5669 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5670 * tui/tui-layout.c (init_and_make_win): Update.
5671 * tui/tui.h (enum tui_win_type): Update.
5672 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5673 tui_win_is_auxillary.
5674 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5675 tui_win_is_auxillary.
5676
21e1c91e
TT
56772019-06-25 Tom Tromey <tom@tromey.com>
5678
5679 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5680 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5681 (tui_delete_data_content_windows, tui_display_all_data)
5682 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5683 Update.
5684 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5685 * tui/tui-regs.c (tui_last_regs_line_no)
5686 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5687 (tui_show_registers): Update.
5688 (tui_show_register_group): Return void. Update.
5689 (tui_display_registers_from, tui_display_reg_element_at_line)
5690 (tui_display_registers_from_line, tui_check_register_values):
5691 Update.
5692 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5693 member.
5694 (struct tui_data_window) <regs_content>: Now a std::vector.
5695 <regs_content_count>: Remove.
5696 (tui_add_content_elements, tui_free_data_content): Don't declare.
5697 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5698 (init_content_element): Remove DATA_WIN case. Add assert.
5699 (tui_add_content_elements): Remove.
5700 (tui_data_window): Update.
5701 (tui_free_data_content): Remove.
5702 (free_content_elements): Remove DATA_WIN case.
5703
115ac53b
TT
57042019-06-25 Tom Tromey <tom@tromey.com>
5705
5706 * tui/tui-data.c (tui_data_item_window): Update.
5707 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5708 * tui/tui-windata.c (tui_display_all_data)
5709 (tui_display_data_from_line): Update.
5710 (tui_check_data_values): Remove.
5711 * tui/tui-regs.c (tui_show_register_group)
5712 (tui_display_reg_element_at_line): Update.
5713 * tui/tui-hooks.c (tui_register_changed)
5714 (tui_refresh_frame_and_register_information): Call
5715 tui_check_register_values.
5716 * tui/tui-data.h (struct tui_data_window) <data_content,
5717 data_content_count, data_type>: Remove.
5718 (enum tui_data_type): Remove.
5719
5720 * tui/tui-data.c (tui_data_window::clear_detail)
5721 (~tui_data_window): Update.
5722
eaf9738b
TT
57232019-06-25 Tom Tromey <tom@tromey.com>
5724
5725 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5726 declare.
5727 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5728 Rename from tui_first_data_item_displayed. Update.
5729 (tui_data_window::refresh_all)
5730 (tui_data_window::do_scroll_vertical): Update.
5731 * tui/tui-data.h (struct tui_data_window)
5732 <first_data_item_displayed>: Declare new method.
5733
31ca4723
TT
57342019-06-25 Tom Tromey <tom@tromey.com>
5735
5736 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5737 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5738 contents...
5739 (tui_initialize_static_data): ...here.
5740
41bcff7f
TT
57412019-06-25 Tom Tromey <tom@tromey.com>
5742
5743 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5744 (tui_display_registers_from, tui_check_register_values): Update.
5745 (tui_display_register): Remove win_info parameter; update.
5746 (tui_get_register): Change type of parameters.
5747 * tui/tui-data.h (struct tui_data_element): Remove.
5748 (union tui_which_element) <data>: Remove.
5749 <data_window>: Change type.
5750 (struct tui_data_item_window): New.
5751 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5752 case. Add assert.
5753 (~tui_data_item_window): New destructor.
5754 (free_content_elements): Remove DATA_ITEM_WIN case.
5755
d2802c33
TT
57562019-06-25 Tom Tromey <tom@tromey.com>
5757
5758 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5759 Remove.
5760
dd835f8b
TT
57612019-06-25 Tom Tromey <tom@tromey.com>
5762
5763 * tui/tui-data.h (struct tui_command_element): Remove.
5764 (union tui_which_element) <command>: Remove.
5765 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5766 assert.
5767 (free_content_elements): Remove CMD_WIN case.
5768
bd7db367
TT
57692019-06-25 Tom Tromey <tom@tromey.com>
5770
5771 * tui/tui-layout.c (tui_set_layout): Update.
5772 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5773 * tui/tui-data.c (layout_def): Update.
5774
3add462f
TT
57752019-06-25 Tom Tromey <tom@tromey.com>
5776
5777 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5778 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5779 (tui_source_window_base::set_new_height): Update.
5780 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5781 Update.
5782 (tui_set_locator_fullname, tui_set_locator_info)
5783 (tui_show_frame_info): Update.
5784 * tui/tui-source.c (tui_set_source_content)
5785 (tui_source_is_displayed): Update.
5786 * tui/tui-layout.c (show_source_disasm_command, show_data)
5787 (show_source_or_disasm_and_command): Update.
5788 * tui/tui-disasm.c (tui_set_disassem_content)
5789 (tui_get_begin_asm_address): Update.
5790 * tui/tui-data.h (struct tui_locator_element): Remove.
5791 (union tui_which_element) <locator>: Remove.
5792 (struct tui_locator_window): New.
5793 (tui_locator_win_info_ptr): Change return type.
5794 * tui/tui-data.c (_locator): Change type.
5795 (tui_locator_win_info_ptr): Change return type.
5796 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5797 (tui_alloc_content): Add assert.
5798
489e9d8b
TT
57992019-06-25 Tom Tromey <tom@tromey.com>
5800
5801 * tui/tui-winsource.c
5802 (tui_exec_info_window::maybe_allocate_content): New method.
5803 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5804 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5805 (make_source_or_disasm_window): Add cast.
5806 * tui/tui-data.h (union tui_which_element) <simple_string>:
5807 Remove.
5808 (struct tui_source_info): New.
5809 (struct tui_source_window_base) <execution_info>: Change type.
5810 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5811 case, and add assert.
5812 (tui_alloc_content): Add assert.
5813
c3fabb7d
TT
58142019-06-25 Tom Tromey <tom@tromey.com>
5815
5816 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5817 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5818 * tui/tui-data.c (tui_alloc_win_info): Remove.
5819
bbc228ee
TT
58202019-06-25 Tom Tromey <tom@tromey.com>
5821
5822 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5823 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5824 can_highlight.
5825
5fcee43a
TT
58262019-06-25 Tom Tromey <tom@tromey.com>
5827
5828 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5829 make_visible_with_new_height method.
5830 (tui_win_info::make_visible_with_new_height): New method.
5831 (tui_source_window_base::do_make_visible_with_new_height)
5832 (tui_data_window::do_make_visible_with_new_height)
5833 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5834 (make_visible_with_new_height): Remove.
5835 (tui_resize_all, tui_adjust_win_heights): Use
5836 make_visible_with_new_height method.
5837 * tui/tui-data.h (struct tui_win_info)
5838 <do_make_visible_with_new_height, make_visible_with_new_height>:
5839 New methods.
5840 (struct tui_source_window_base, struct tui_data_window)
5841 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5842 methods.
5843
d83f1fe6
TT
58442019-06-25 Tom Tromey <tom@tromey.com>
5845
5846 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5847 method.
5848 (update_tab_width): Call update_tab_width method.
5849 * tui/tui-data.h (struct tui_win_info)
5850 (struct tui_source_window_base) <update_tab_width>: New methods.
5851
17374de4
TT
58522019-06-25 Tom Tromey <tom@tromey.com>
5853
5854 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5855 parameter.
5856 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5857 parameter.
5858 (tui_gen_win_info::make_visible): Update.
5859 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5860 parameter.
5861 * tui/tui-data.h (enum tui_box): New enum.
5862 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5863
f936bca2
TT
58642019-06-25 Tom Tromey <tom@tromey.com>
5865
5866 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5867 init_and_make_win for EXEC_INFO_WIN.
5868 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5869 longer inline.
5870 (struct tui_win_info) <~tui_win_info>: Inline.
5871 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5872 Don't declare.
5873 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5874 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5875 Remove.
5876 (tui_initialize_static_data): Update.
5877 (~tui_gen_win_info): Handle more cleanup here.
5878 (~tui_source_window_base): Delete "execution_info".
5879 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5880
d6ba6a11
TT
58812019-06-25 Tom Tromey <tom@tromey.com>
5882
5883 * tui/tui-layout.c (make_command_window): Don't set
5884 can_highlight.
5885 (show_source_disasm_command): Call the reset method.
5886 (show_data): Don't set can_highlight. Call the reset method.
5887 (tui_gen_win_info::reset): Rename from init_gen_win_info
5888 (init_and_make_win): Simplify. Return tui_gen_win_info.
5889 (show_source_or_disasm_and_command): Call the reset method.
5890 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5891 (struct tui_cmd_window): Set can_highlight.
5892
48a3bd16
TT
58932019-06-25 Tom Tromey <tom@tromey.com>
5894
5895 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5896 from make_visible.
5897 (tui_make_visible, tui_make_invisible): Rewrite.
5898 (tui_win_info::make_visible): Remove.
5899 (tui_source_window_base::make_visible): Update.
5900 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5901 method. Moved from...
5902 (struct tui_win_info) <make_visible>: ...here.
5903
c3bd716f
TT
59042019-06-25 Tom Tromey <tom@tromey.com>
5905
5906 * tui/tui-winsource.c
5907 (tui_source_window_base::do_scroll_horizontal): Remove direction
5908 parameter.
5909 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5910 direction parameter.
5911 * tui/tui-win.c (tui_win_info::forward_scroll)
5912 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5913 (tui_win_info::right_scroll): Update.
5914 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5915 direction parameter.
5916 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5917 direction parameter.
5918 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5919 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5920 Remove direction parameter.
5921 (struct tui_source_window_base, struct tui_source_window)
5922 (struct tui_disasm_window, struct tui_data_window)
5923 (struct tui_cmd_window): Update.
5924
21c32dca
TT
59252019-06-25 Tom Tromey <tom@tromey.com>
5926
5927 * tui/tui-winsource.h (tui_set_exec_info_content)
5928 (tui_show_exec_info_content, tui_erase_exec_info_content)
5929 (tui_clear_exec_info_content, tui_update_exec_info): Change
5930 argument to tui_source_window_base.
5931 * tui/tui-winsource.c (tui_set_exec_info_content)
5932 (tui_show_exec_info_content, tui_erase_exec_info_content)
5933 (tui_clear_exec_info_content, tui_update_exec_info): Change
5934 argument to tui_source_window_base.
5935
73fbdc65
TT
59362019-06-25 Tom Tromey <tom@tromey.com>
5937
5938 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5939 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5940
33325343
TT
59412019-06-25 Tom Tromey <tom@tromey.com>
5942
5943 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5944 check.
5945
29d2c474
TT
59462019-06-25 Tom Tromey <tom@tromey.com>
5947
5948 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5949 type to void.
5950 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5951 type to void.
5952 * tui/tui-source.c (tui_set_source_content): Update.
5953 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5954
152f3f4b
TT
59552019-06-25 Tom Tromey <tom@tromey.com>
5956
5957 * tui/tui-win.c (window_name_completer, tui_set_focus)
5958 (tui_all_windows_info): Use name method.
5959 * tui/tui-data.h (struct tui_gen_win_info)
5960 (struct tui_source_window, struct tui_disasm_window)
5961 (struct tui_data_window, struct tui_cmd_window) <name>: New
5962 method.
5963 (tui_win_name): Don't declare.
5964 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5965 (tui_win_name): Remove.
5966
be4da588
TT
59672019-06-25 Tom Tromey <tom@tromey.com>
5968
5969 * tui/tui-winsource.h (tui_update_source_window)
5970 (tui_update_source_window_as_is): Change parameter type.
5971 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5972 to be a tui_source_window_base.
5973 (tui_update_source_window_as_is): Likewise.
5974 * tui/tui-win.c (make_visible_with_new_height): Update.
5975
5b81daba
TT
59762019-06-25 Tom Tromey <tom@tromey.com>
5977
5978 * tui/tui-winsource.c (tui_erase_source_content)
5979 (tui_show_source_content, tui_show_exec_info_content)
5980 (tui_erase_exec_info_content): Use refresh_window method.
5981 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5982 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5983 from tui_refresh_win.
5984 (tui_data_window::refresh_window): New method.
5985 (tui_win_info::refresh, tui_source_window_base::refresh)
5986 (tui_refresh_all): Use refresh_window method.
5987 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5988 method.
5989 * tui/tui-regs.c (tui_display_register): Call refresh_window
5990 method.
5991 * tui/tui-layout.c (show_source_disasm_command)
5992 (show_source_or_disasm_and_command): Call refresh_window method.
5993 * tui/tui-data.h (struct tui_gen_win_info)
5994 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5995 New method.
5996
cb2ce893
TT
59972019-06-25 Tom Tromey <tom@tromey.com>
5998
5999 * tui/tui.c (tui_rl_other_window, tui_enable)
6000 (tui_is_window_visible, tui_get_command_dimension): Update.
6001 * tui/tui-winsource.c (tui_update_source_window_as_is)
6002 (tui_clear_source_content, tui_erase_source_content)
6003 (tui_show_source_line, tui_source_window_base::refill)
6004 (tui_source_window_base::do_scroll_horizontal)
6005 (tui_source_window_base::set_is_exec_point_at)
6006 (tui_update_breakpoint_info, tui_set_exec_info_content)
6007 (tui_alloc_source_buffer, tui_line_is_displayed)
6008 (tui_addr_is_displayed): Update.
6009 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6010 (tui_check_and_display_highlight_if_needed)
6011 (tui_win_info::make_visible, tui_win_info::refresh)
6012 (tui_refresh_all): Update.
6013 * tui/tui-windata.c (tui_first_data_item_displayed)
6014 (tui_delete_data_content_windows, tui_erase_data_content)
6015 (tui_display_all_data, tui_data_window::refresh_all)
6016 (tui_check_data_values): Update.
6017 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6018 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6019 (tui_win_info::backward_scroll, tui_refresh_all_win)
6020 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6021 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6022 (tui_source_window_base::set_new_height)
6023 (tui_data_window::set_new_height)
6024 (make_invisible_and_set_new_height)
6025 (make_visible_with_new_height, new_height_ok)
6026 (parse_scrolling_args): Update.
6027 * tui/tui-stack.c (tui_show_frame_info): Update.
6028 * tui/tui-source.c (tui_set_source_content)
6029 (tui_set_source_content_nil, tui_source_is_displayed)
6030 (tui_source_window::do_scroll_vertical): Update.
6031 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6032 (tui_display_registers_from, tui_display_reg_element_at_line)
6033 (tui_check_register_values, tui_reg_command): Update.
6034 * tui/tui-layout.c (tui_default_win_height)
6035 (show_source_disasm_command, show_data, init_and_make_win)
6036 (show_source_or_disasm_and_command): Update.
6037 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6038 (tui_redisplay_readline, tui_mld_flush)
6039 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6040 (tui_getc): Update.
6041 * tui/tui-disasm.c (tui_set_disassem_content)
6042 (tui_disasm_window::do_scroll_vertical): Update.
6043 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6044 Now virtual.
6045 (struct tui_win_info): Derive from tui_gen_win_info.
6046 <~tui_win_info>: Mark as override.
6047 <generic>: Remove member.
6048 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6049 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6050 (~tui_data_window, ~tui_win_info)
6051 (tui_free_all_source_wins_content): Update.
6052 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6053
ab313b35
TT
60542019-06-25 Tom Tromey <tom@tromey.com>
6055
6056 * tui/tui-layout.c (init_and_make_win): Use new.
6057 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6058 destructor, initializers.
6059 (tui_alloc_generic_win_info): Don't declare.
6060 * tui/tui-data.c (_locator): Add argument to constructor.
6061 (source_win, disasm_win): New globals.
6062 (exec_info): Remove.
6063 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6064 Update.
6065 (tui_alloc_generic_win_info): Remove.
6066 (init_content_element): Use new.
6067 (tui_win_info::tui_win_info): Update.
6068 (free_content_elements) <case DATA_WIN>: Use delete.
6069
dc2c33e4
TT
60702019-06-25 Tom Tromey <tom@tromey.com>
6071
6072 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6073 * tui/tui-windata.c (tui_first_data_item_displayed)
6074 (tui_delete_data_content_windows): Update.
6075 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6076 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6077 (tui_display_registers_from, tui_check_register_values): Update.
6078 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6079 pointer.
6080 * tui/tui-data.c (init_content_element): Update. Allocate the new
6081 window.
6082 (tui_free_data_content): Update.
6083 (free_content_elements) <case DATA_WIN>: Free the window.
6084
214a5cbe
TT
60852019-06-25 Tom Tromey <tom@tromey.com>
6086
6087 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6088 Update.
6089 * tui/tui-layout.c (make_command_window)
6090 (show_source_disasm_command, show_data, init_and_make_win)
6091 (show_source_or_disasm_and_command): Update.
6092 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6093 method.
6094 <can_highight, is_highlighted>: Now bool.
6095 (tui_set_win_highlight): Don't declare.
6096 * tui/tui-data.c (tui_set_win_highlight): Remove.
6097
8e2daf15
TT
60982019-06-25 Tom Tromey <tom@tromey.com>
6099
6100 * tui/tui-wingeneral.c (make_visible): Remove check of window
6101 type.
6102
8903bd8a
TT
61032019-06-25 Tom Tromey <tom@tromey.com>
6104
6105 * tui/tui-win.c (tui_win_info::max_height)
6106 (tui_cmd_window::max_height): New methods.
6107 (new_height_ok): Call max_height.
6108 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6109 <max_height>: New method.
6110
3f02ce1e
TT
61112019-06-25 Tom Tromey <tom@tromey.com>
6112
6113 * tui/tui-win.c (tui_source_window_base::set_new_height)
6114 (tui_data_window::set_new_height): New methods.
6115 (make_invisible_and_set_new_height): Call set_new_height method.
6116 * tui/tui-data.h (struct tui_win_info)
6117 (struct tui_source_window_base, struct tui_data_window)
6118 <set_new_height>: New method.
6119
1825f487
TT
61202019-06-25 Tom Tromey <tom@tromey.com>
6121
6122 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6123 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6124 tui_refresh_data_win.
6125 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6126 method.
6127 (tui_refresh_all_win): Call the refresh_all method.
6128 (tui_set_focus): Likewise.
6129 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6130 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6131 Likewise.
6132
ad54d15b
TT
61332019-06-25 Tom Tromey <tom@tromey.com>
6134
6135 * tui/tui-winsource.h (tui_refill_source_window)
6136 (tui_set_is_exec_point_at): Don't declare.
6137 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6138 (tui_source_window_base::refill): Rename from
6139 tui_refill_source_window.
6140 (tui_source_window_base::do_scroll_horizontal): Update.
6141 (tui_source_window_base::set_is_exec_point_at): Rename from
6142 tui_set_is_exec_point_at.
6143 (tui_update_all_breakpoint_info): Update.
6144 * tui/tui-stack.c (tui_show_frame_info): Update.
6145 * tui/tui-layout.c (show_data): Add cast.
6146 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6147 * tui/tui-data.h (struct tui_source_window_base) <refill,
6148 set_is_exec_point_at>: New methods.
6149 (tui_source_windows, tui_add_to_source_windows): Update types.
6150 (tui_add_to_source_windows): Remove redundant declaration.
6151 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6152 (tui_source_windows): Change return type.
6153 (tui_clear_source_windows_detail): Update.
6154 (tui_add_to_source_windows): Change type of parameter.
6155 (tui_free_all_source_wins_content): Update.
6156
2042b506
TT
61572019-06-25 Tom Tromey <tom@tromey.com>
6158
6159 * tui/tui-wingeneral.c (tui_win_info::refresh)
6160 (tui_source_window_base::refresh): New methods.
6161 (tui_refresh_all): Call the refresh method.
6162 * tui/tui-data.h (struct tui_win_info)
6163 (struct tui_source_window_base) <refresh>: New method.
6164
56122977
TT
61652019-06-25 Tom Tromey <tom@tromey.com>
6166
6167 * tui/tui.h (tui_is_window_visible): Return bool.
6168 * tui/tui.c (tui_is_window_visible): Return bool.
6169 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6170 (tui_make_visible, tui_make_invisible)
6171 (tui_win_info::make_visible)
6172 (tui_source_window_base::make_visible, make_all_visible)
6173 (tui_make_all_visible, tui_make_all_invisible): Update.
6174 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6175 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6176 bool.
6177 (struct tui_win_info, struct tui_source_window_base)
6178 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6179 * tui/tui-data.c (tui_init_generic_part): Update.
6180
cda37efb
TT
61812019-06-25 Tom Tromey <tom@tromey.com>
6182
6183 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6184 (tui_source_window_base::make_visible): New methods.
6185 (make_all_visible): Make method call.
6186 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6187 (struct tui_source_window_base, struct tui_cmd_window): Override
6188 make_visible.
6189 (tui_win_is_source_type): Don't declare.
6190 * tui/tui-data.c (tui_win_is_source_type): Remove.
6191
6a0ee02c
TT
61922019-06-25 Tom Tromey <tom@tromey.com>
6193
6194 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6195 NULL check.
6196
63901aec
TT
61972019-06-25 Tom Tromey <tom@tromey.com>
6198
6199 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6200 Inline constructor. Add initializers for members.
6201 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6202 constructors; now inline in class.
6203
ceb13a13
TT
62042019-06-25 Tom Tromey <tom@tromey.com>
6205
6206 * tui/tui-regs.c (tui_show_registers): Update.
6207 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6208 bool.
6209 * tui/tui-data.c (tui_data_window::clear_detail)
6210 (tui_data_window): Update.
6211
238eb706
TT
62122019-06-25 Tom Tromey <tom@tromey.com>
6213
6214 * tui/tui-windata.c (tui_display_all_data)
6215 (tui_display_data_from_line, tui_display_data_from)
6216 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6217 Update.
6218 * tui/tui-regs.c (tui_last_regs_line_no)
6219 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6220 (tui_show_registers, tui_show_register_group)
6221 (tui_display_registers_from, tui_display_reg_element_at_line)
6222 (tui_display_registers_from_line, tui_check_register_values)
6223 (tui_reg_next, tui_reg_prev): Update.
6224 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6225 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6226 tui_data_window.
6227 (struct tui_win_info) <detail>: Remove. Add new fields from
6228 tui_data_info.
6229 (TUI_DATA_WIN): Add cast.
6230 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6231 (~tui_data_window): Simplify.
6232
81491aa0
TT
62332019-06-25 Tom Tromey <tom@tromey.com>
6234
6235 * tui/tui-layout.c (show_source_disasm_command)
6236 (show_source_or_disasm_and_command): Update.
6237 * tui/tui-io.c (update_cmdwin_start_line)
6238 (tui_redisplay_readline): Update.
6239 * tui/tui-data.h (struct tui_command_info): Remove.
6240 (struct tui_win_info) <detail>: Remove command_info member.
6241 (struct tui_data_window) <start_line>: New member, from
6242 tui_command_info.
6243 (TUI_CMD_WIN): Add casts.
6244
e6e41501
TT
62452019-06-25 Tom Tromey <tom@tromey.com>
6246
6247 * tui/tui-winsource.c (tui_update_source_window)
6248 (tui_refill_source_window)
6249 (tui_source_window_base::do_scroll_horizontal)
6250 (tui_update_breakpoint_info, tui_set_exec_info_content)
6251 (tui_show_exec_info_content, tui_erase_exec_info_content)
6252 (tui_clear_exec_info_content): Update.
6253 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6254 Update.
6255 * tui/tui-win.c (make_invisible_and_set_new_height)
6256 (make_visible_with_new_height): Update.
6257 * tui/tui-source.c (tui_set_source_content)
6258 (tui_show_symtab_source): Update.
6259 * tui/tui-layout.c (extract_display_start_addr)
6260 (show_source_disasm_command, show_data)
6261 (make_source_or_disasm_window)
6262 (show_source_or_disasm_and_command): Update.
6263 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6264 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6265 "gdbarch".
6266 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6267 to tui_source_window_base.
6268 (struct tui_win_info) <detail>: Remove source_info member.
6269 (struct tui_source_window_base) <has_locator>: Inline.
6270 Move contents from tui_source_info; rename has_locator member to
6271 m_has_locator.
6272 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6273 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6274 header file.
6275 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6276 Simplify.
6277 (tui_free_all_source_wins_content): Cast to
6278 tui_source_window_base.
6279
44f0e208
TT
62802019-06-25 Tom Tromey <tom@tromey.com>
6281
6282 * tui/tui-win.c (make_invisible_and_set_new_height)
6283 (make_visible_with_new_height): Call has_locator method.
6284 * tui/tui-layout.c (show_source_disasm_command, show_data)
6285 (show_source_or_disasm_and_command): Update for bool change.
6286 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6287 (tui_win_info) <has_locator>: New method.
6288 (struct tui_source_window_base) <has_locator>: New method.
6289 (tui_win_has_locator): Don't declare.
6290 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6291 from tui_win_has_locator.
6292 (tui_source_window_base): Use false, not FALSE.
6293
7778b912
TT
62942019-06-25 Tom Tromey <tom@tromey.com>
6295
6296 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6297 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6298 clear_detail method directly.
6299 (tui_clear_win_detail): Remove.
6300
f83d391c
TT
63012019-06-25 Tom Tromey <tom@tromey.com>
6302
6303 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6304 "this", not TUI_DISASM_WIN.
6305
13446e05
TT
63062019-06-25 Tom Tromey <tom@tromey.com>
6307
6308 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6309 declare.
6310 * tui/tui-winsource.c
6311 (tui_source_window_base::do_scroll_horizontal): Rename from
6312 tui_horizontal_source_scroll.
6313 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6314 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6315 from tui_vertical_data_scroll.
6316 * tui/tui-win.h (tui_scroll): Don't declare.
6317 * tui/tui-win.c (tui_win_info::forward_scroll)
6318 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6319 (tui_win_info::right_scroll): Rename and update.
6320 (tui_scroll_forward_command, tui_scroll_backward_command)
6321 (tui_scroll_left_command, tui_scroll_right_command): Update.
6322 (tui_scroll): Remove.
6323 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6324 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6325 from tui_vertical_source_scroll.
6326 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6327 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6328 from tui_vertical_disassem_scroll.
6329 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6330 do_scroll_horizontal>: New methods.
6331 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6332 Likewise.
6333 (struct tui_source_window_base): Add do_scroll_horizontal.
6334 (struct tui_source_window, struct tui_disasm_window): Add
6335 do_scroll_vertical.
6336 (struct tui_data_window, struct tui_cmd_window): Add
6337 do_scroll_horizontal and do_scroll_vertical.
6338 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6339
5cf82909
TT
63402019-06-25 Tom Tromey <tom@tromey.com>
6341
6342 * tui/tui-data.h (struct tui_source_window_base): New struct.
6343 (struct tui_source_window): Derive from tui_source_window_base.
6344 (struct tui_disasm_window): New struct.
6345 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6346 from tui_source_window::clear_detail.
6347 (tui_source_window_base): Rename from tui_source_window.
6348 (~tui_source_window_base): Rename from ~tui_source_window.
6349 (tui_alloc_win_info): Create a tui_disasm_window.
6350
ee1d42d6
TT
63512019-06-25 Tom Tromey <tom@tromey.com>
6352
6353 * tui/tui-data.h (struct tui_source_window)
6354 (struct tui_data_window): Declare destructors.
6355 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6356 destructors.
6357 (tui_win_info): Simplify.
6358
b4eb2452
TT
63592019-06-25 Tom Tromey <tom@tromey.com>
6360
6361 * tui/tui-winsource.c (tui_display_main)
6362 (tui_update_source_windows_with_addr)
6363 (tui_update_all_breakpoint_info): Update.
6364 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6365 (new_height_ok, parse_scrolling_args): Update.
6366 * tui/tui-stack.c (tui_show_frame_info): Update.
6367 * tui/tui-data.h (struct tui_list): Remove.
6368 (tui_source_windows): Return a reference to a std::vector.
6369 * tui/tui-data.c (source_windows): Now a std::vector.
6370 (tui_source_windows): Change return type.
6371 (tui_clear_source_windows): Rewrite.
6372 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6373 (tui_free_all_source_wins_content): Rewrite.
6374
8761a91b
TT
63752019-06-25 Tom Tromey <tom@tromey.com>
6376
6377 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6378 (struct tui_data_window, struct tui_cmd_window): Declare
6379 clear_detail method.
6380 * tui/tui-data.c (tui_source_window::clear_detail)
6381 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6382 methods.
6383 (tui_clear_win_detail): Simplify.
6384
0ed69eda
TT
63852019-06-25 Tom Tromey <tom@tromey.com>
6386
6387 * tui/tui-layout.c (make_source_window, make_disasm_window)
6388 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6389 Return the new window.
6390 (show_source_disasm_command, show_data)
6391 (show_source_or_disasm_and_command): Update.
6392
82432e10
TT
63932019-06-25 Tom Tromey <tom@tromey.com>
6394
6395 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6396 parameter. Return the new window.
6397 (show_source_disasm_command): Update and remove NULL check.
6398 (show_source_or_disasm_and_command): Update.
6399
ec328aa5
TT
64002019-06-25 Tom Tromey <tom@tromey.com>
6401
6402 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6403
33b906ab
TT
64042019-06-25 Tom Tromey <tom@tromey.com>
6405
6406 * tui/tui-data.h (struct tui_win_info): Make constructor
6407 protected. Make destructor virtual. Add initializers.
6408 (tui_source_window, tui_data_window, tui_cmd_window): New
6409 classes.
6410 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6411 constructor. Add "type" parameter.
6412 (tui_source_window, tui_data_window, tui_cmd_window): New
6413 constructors.
6414 (tui_alloc_win_info): Instantiate the appropriate subclass.
6415
e7e11af4
TT
64162019-06-25 Tom Tromey <tom@tromey.com>
6417
6418 * tui/tui-win.c (tui_resize_all): Use delete.
6419 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6420 destructor.
6421 (tui_free_window): Don't declare.
6422 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6423 Update.
6424
6792b55e
TT
64252019-06-25 Tom Tromey <tom@tromey.com>
6426
6427 * tui/tui-data.h (struct tui_win_info): Add constructor.
6428 * tui/tui-data.c (tui_alloc_win_info): Use new.
6429 (tui_free_window): Use delete.
6430
f95675e1
TT
64312019-06-22 Tom Tromey <tom@tromey.com>
6432
6433 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6434 declare.
6435 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6436
5bff081c
TT
64372019-06-22 Tom Tromey <tom@tromey.com>
6438
6439 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6440 declare.
6441 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6442
47e3f474
TV
64432019-06-22 Tom de Vries <tdevries@suse.de>
6444
6445 * dwarf2read.c (create_addrmap_from_aranges)
6446 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6447 instead of '%zu'.
6448
fd5866f6
SM
64492019-06-21 Simon Marchi <simon.marchi@efficios.com>
6450
6451 * dwarf2read.h (dwarf2_section_info_def): Remove.
6452 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6453 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6454 std::vector<dwarf2_section_info>.
6455 (struct dwo_file) <~dwo_file>: Remove.
6456 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6457 types field.
6458 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6459 (dwarf2_read_debug_names): Likewise.
6460 (create_debug_types_hash_table): Change parameter type to
6461 array_view, adjust code accordingly.
6462 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6463 (partial_die_info::fixup): Likewise.
6464 (determine_prefix): Likewise.
6465 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6466
fb1eb2f9
SM
64672019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6468
6469 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6470 gdb_bfd_ref_ptr.
6471 <~dwo_file>: Remove call to gdb_bfd_unref.
6472 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6473 gdb_bfd_ref_ptr::get.
6474
51ac9db5
SM
64752019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6476
6477 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6478 type to htab_up.
6479 * dwarf2read.c (struct dwo_file): Initialize fields.
6480 <~dwo_file>: New.
6481 (free_dwo_file): Remove, move content to ~dwo_file.
6482 (struct dwo_file_deleter): Remove.
6483 (dwo_file_up>: Remove custom deleter.
6484 (free_dwo_files): Remove.
6485 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6486 dwo_files.
6487 (process_skeletonless_type_units): Call unique_ptr::get.
6488 (allocate_dwo_file_hash_table): Add deleter to created hash
6489 table. Change return type to htab_up.
6490 (lookup_dwo_file_slot): Don't memset dwo_file, call
6491 unique_ptr::get.
6492 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6493 (create_dwo_unit_in_dwp_v2): Likewise.
6494 (open_and_init_dwo_file): Likewise.
6495 (free_dwo_file_from_slot): Remove.
6496
dc4ccb6f
SM
64972019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6498
6499 * dwarf2read.h (struct dwarf2_section_info) <readin,
6500 is_virtual>: Change type to bool.
6501 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6502 true instead of 1.
6503
e6a1c5cb
TT
65042019-06-19 Tom Tromey <tom@tromey.com>
6505
6506 * tui/tui-data.h (tui_init_content_element): Don't declare.
6507
6f6ffbeb
TT
65082019-06-19 Tom Tromey <tom@tromey.com>
6509
6510 * tui/tui-data.h (tui_init_win_info): Don't declare.
6511
f23f598e
TV
65122019-06-19 Tom de Vries <tdevries@suse.de>
6513
6514 * dwarf2read.h (abstract_to_concrete): Change type to
6515 std::unordered_map<sect_offset, std::vector<sect_offset>,
6516 gdb::hash_enum<sect_offset>>.
6517
680e1bee
TT
65182019-06-19 Tom Tromey <tromey@adacore.com>
6519
6520 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6521 EVAL_AVOID_SIDE_EFFECTS specially.
6522
dcf37923
TT
65232019-06-19 Tom Tromey <tromey@adacore.com>
6524
6525 * source-cache.c (highlighter): New global.
6526 (source_cache::get_source_lines): Create a highlighter on demand.
6527
494986d5
AB
65282019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6529
6530 * defs.h (deprecated_interactive_hook): Delete declaration.
6531 * interps.c (clear_interpreter_hooks): Remove use of
6532 deprecated_interactive_hook.
6533 * top.c (deprecated_interactive_hook): Delete definition.
6534 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6535
3360b6e7
TV
65362019-06-18 Tom de Vries <tdevries@suse.de>
6537
6538 PR gdb/24515
6539 * dwarf2read.h (abstract_to_concrete): Change type from
6540 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6541 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6542 * dwarf2read.c (read_variable): Update.
6543 (dwarf2_fetch_die_loc_sect_off): Update.
6544
310b3441
TV
65452019-06-17 Tom de Vries <tdevries@suse.de>
6546
6547 PR gdb/24617
6548 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6549 accessing parent[parent_len - 1].
6550
ba9777be
PP
65512019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6552
6553 PR gdb/24364
6554 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6555 call dtrace_process_dof with NULL dof.
6556
2b9f6e89
TV
65572019-06-16 Tom de Vries <tdevries@suse.de>
6558
6559 PR gdb/24445
6560 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6561
431b3ead
TT
65622019-06-16 Tom Tromey <tom@tromey.com>
6563
6564 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6565 (make_all_visible): Use address of member.
6566
d04b44a1
TT
65672019-06-16 Tom Tromey <tom@tromey.com>
6568
6569 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6570 (tui_free_window, free_content, free_content_elements): Remove
6571 unnecessary cast.
6572 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6573 cast.
6574 * tui/tui-regs.c (tui_show_register_group)
6575 (tui_display_registers_from, tui_display_reg_element_at_line):
6576 Remove unnecessary cast.
6577
bf5142e7
AB
65782019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6579
6580 * linux-nat.c (normal_mask): Delete.
6581 (_initialize_linux_nat): Don't initialise normal_mask.
6582
c4973306
SM
65832019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6584
6585 PR gdb/24445
6586 * dwarf-index-write.h (write_psymtabs_to_index): Add
6587 dwz_basename parameter.
6588 * dwarf-index-write.c (write_gdbindex): Move file writing to
6589 write_gdbindex_1. Change return type void.
6590 (assert_file_size): Move up, remove filename parameter.
6591 (write_gdbindex_1): New function.
6592 (write_debug_names): Change return type to void, call
6593 assert_file_size.
6594 (struct index_wip_file): New struct.
6595 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6596 file logic to index_wip_file. Write index for dwz file if
6597 needed.
6598 (save_gdb_index_command): Pass basename of dwz file, if present.
6599 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6600 build-id of dwz file, if present.
6601 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6602 (dwarf2_get_dwz_file): Likewise.
6603 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6604 (dwarf2_get_dwz_file): Likewise.
6605
395f9c91
TT
66062019-06-16 Tom Tromey <tom@tromey.com>
6607
6608 * coffread.c (process_coff_symbol): Use xstrdup.
6609 * value.c (create_internalvar): Use xstrdup.
6610
cafb3438
TT
66112019-06-16 Tom Tromey <tom@tromey.com>
6612
6613 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6614 * breakpoint.c (stopin_command, stopat_command)
6615 (until_break_command, decode_location_default): Remove unnecessary
6616 cast.
6617 * utils.c (subset_compare): Remove unnecessary cast.
6618 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6619 cast.
6620 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6621 cast.
6622 * infcmd.c (path_command): Remove unnecessary cast.
6623 * coffread.c (decode_type): Remove unnecessary cast.
6624 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6625 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6626 * tui/tui-stack.c (tui_show_locator_content)
6627 (tui_show_frame_info): Remove unnecessary cast.
6628 * tui/tui-win.c (tui_scroll_forward_command)
6629 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6630 (parse_scrolling_args): Remove unnecessary cast.
6631 * tui/tui-data.c (init_win_info, tui_del_window)
6632 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6633 (free_content_elements): Remove unnecessary cast.
6634 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6635 unnecessary cast.
6636 * tui/tui-source.c (tui_set_source_content)
6637 (tui_vertical_source_scroll): Remove unnecessary cast.
6638 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6639 cast.
6640 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6641 * tui/tui-regs.c (tui_display_registers_from)
6642 (tui_display_register): Remove unnecessary cast.
6643 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6644 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6645 (make_visible): Remove unnecessary cast.
6646 * tui/tui-winsource.c (tui_erase_source_content)
6647 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6648 unnecessary cast.
6649 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6650 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6651 * stabsread.c (read_type, read_array_type, read_range_type):
6652 Remove unnecessary cast.
6653 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6654 (parse_symbol, parse_type, upgrade_type, parse_external)
6655 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6656 unnecessary cast.
6657 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6658
730ead81
TT
66592019-06-16 Tom Tromey <tom@tromey.com>
6660
6661 * tui/tui-data.c (tui_alloc_generic_win_info)
6662 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6663 checks.
6664
584a927c
AB
66652019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6666 Andrew Burgess <andrew.burgess@embecosm.com>
6667
6668 * f-typeprint.c (f_print_type): Don't return early for not
6669 associated or not allocated types.
6670 (f_type_print_varspec_suffix): Add print_rank parameter and print
6671 ranks of array types in case they dangling.
6672 (f_type_print_base): Add print_rank parameter.
6673
30056ea0
AB
66742019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6675
6676 * NEWS: Mention new MI commands.
6677 * break-catch-throw.c (enum exception_event_kind): Move to
6678 breakpoint.h.
6679 (print_mention_exception_catchpoint): Output text as a single
6680 message.
6681 (catch_exception_command_1): Rename to...
6682 (catch_exception_event): ...this, make non-static, update header
6683 command, and change some parameter types.
6684 (catch_catch_command): Update for changes to
6685 catch_exception_command_1.
6686 (catch_throw_command): Likewise.
6687 (catch_rethrow_command): Likewise.
6688 * breakpoint.c (enum exception_event_kind): Delete.
6689 * breakpoint.h (enum exception_event_kind): Moved here from
6690 break-catch-throw.c.
6691 (catch_exception_event): Declare.
6692 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6693 (mi_cmd_catch_throw): New function.
6694 (mi_cmd_catch_rethrow): New function.
6695 (mi_cmd_catch_catch): New function.
6696 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6697 'catch-catch' entries.
6698 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6699 (mi_cmd_catch_rethrow): Declare.
6700 (mi_cmd_catch_catch): Declare.
6701
ec8e2b6d
AB
67022019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6703
6704 * annotate.c (annotate_source_line): Change return type to void,
6705 update implementation to match.
6706 * annotate.h (annotate_source_line): Change return type to void,
6707 update header comment.
6708 * stack.c (print_frame_info): Don't change what frame information
6709 is printed based on whether annotations are on or not.
6710
0d3abd8c
AB
67112019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6712
6713 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6714 (annotate_source): Make static.
6715 (annotate_source_line): Moved from source.c and renamed from
6716 identify_source_line. Update the return type.
6717 * annotate.h (annotate_source): Delete declaration.
6718 (annotate_source_line): Declaration moved from source.h, and
6719 renamed from identify_source_line. Return type updated.
6720 * source.c (identify_source_line): Moved to annotate.c and renamed
6721 to annotate_source_line.
6722 (info_line_command): Remove check of annotation_level.
6723 * source.h (identify_source_line): Move declaration to annotate.h
6724 and rename to annotate_source_line.
6725 * stack.c: Add 'annotate.h' include.
6726 (print_frame_info): Remove check of annotation_level before
6727 calling annotate_source_line.
6728
00df30ae
AB
67292019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6730
6731 * source-cache.c (source_cache::get_plain_source_lines): Use
6732 open_source_file_with_line_charpos instead of just
6733 open_source_file, remove call to find_source_lines.
6734 (source_cache::get_source_lines): Likewise.
6735 * source.c (find_source_lines): Make static.
6736 (get_filename_and_charpos): Renamed into...
6737 (open_source_file_with_line_charpos): ..this along with changes to
6738 return a scoped_fd, and some other minor clean ups.
6739 (identify_source_line): Use open_source_file_with_line_charpos.
6740 (search_command_helper): Use open_source_file_with_line_charpos
6741 instead of just open_source_file, remove call to
6742 find_source_lines.
6743 * source.h (open_source_file_with_line_charpos): Declare new
6744 function.
6745 (find_source_lines): Delete declaration.
6746
afda45a2
AB
67472019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6748
6749 * source.c (get_filename_and_charpos): Remove fullname
6750 parameter.
6751 (identify_source_line): Update call to get_filename_and_charpos.
6752
0735b091
TT
67532019-06-14 Tom Tromey <tromey@adacore.com>
6754
6755 PR gdb/24502:
6756 * ui-style.h (skip_ansi_escape): Update comment.
6757 * ui-file.h (class no_terminal_escape_file): New class.
6758 * ui-file.c (no_terminal_escape_file::write)
6759 (no_terminal_escape_file::puts): New methods.
6760 * cli/cli-logging.c (handle_redirections): Use
6761 no_terminal_escape_file.
6762
52ce35e2
TT
67632019-06-14 Tom Tromey <tromey@adacore.com>
6764
6765 * NEWS: Move convenience variable news above Python news.
6766
73cc7272
TT
67672019-06-14 Tom Tromey <tom@tromey.com>
6768
6769 * gnulib: Move directory to top-level.
6770 * configure.ac: Don't configure gnulib.
6771 * configure: Rebuild.
6772 * common/common-defs.h: Use new path to gnulib.
6773 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6774 (GNULIB_H): Remove.
6775 (INCGNU): Look in new gnulib location.
6776 (HFILES_NO_SRCDIR): Remove gnulib files.
6777 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6778 (generated_files): Remove GNULIB_H.
6779 ($(LIBGNU), all-lib): Remove targets.
6780 (distclean): Don't mention GNULIB_BUILDDIR.
6781 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6782
f5686554
TT
67832019-06-14 Tom Tromey <tromey@adacore.com>
6784
6785 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6786 Warn if symbol file does not provide any symbols.
6787
a0c1ffed
TT
67882019-06-14 Tom Tromey <tromey@adacore.com>
6789
6790 * source.c (find_and_open_source): Respect basenames_may_differ.
6791
7c39e397
AB
67922019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6793
6794 * annotate.c (annotate_breakpoints_invalid): Make use of
6795 scoped_restore_terminal_state.
6796 (annotate_frames_invalid): Likewise.
6797
f411722c
TT
67982019-06-14 Tom Tromey <tromey@adacore.com>
6799
6800 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6801 allow assignment to an internalvar.
6802
4268ec18
TT
68032019-06-14 Tom Tromey <tromey@adacore.com>
6804
6805 * ada-lex.l: Allow "_" in attribute names.
6806
abdb711e
TT
68072019-06-14 Tom Tromey <tromey@adacore.com>
6808
6809 PR gdb/24653:
6810 * regcache.c (registers_changed): Don't call alloca.
6811 * top.c (execute_command): Don't call alloca.
6812
4c048731
PA
68132019-06-13 Pedro Alves <palves@redhat.com>
6814
6815 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6816 'expression'. When parsing an expression, error out if there's
6817 junk after "unlimited".
6818 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6819 (do_set_command): Adjust calls to is_unlimited_literal.
6820
66eb1ed3
PA
68212019-06-13 Pedro Alves <palves@redhat.com>
6822
6823 * compile/compile.c (make_compile_options_def_group): Add braces
6824 around array_view initializer.
6825 * thread.c (make_thread_apply_all_options_def_group)
6826 (make_thread_apply_all_options_def_group): Likewise.
6827
3345721a
PA
68282019-06-13 Pedro Alves <palves@redhat.com>
6829
6830 * NEWS (New commands): Mention "maint test-options
6831 require-delimiter", "maint test-options unknown-is-error", "maint
6832 test-options unknown-is-operand" and "maint show
6833 test-options-completion-result".
6834 (New command options, command completion): New section.
6835 (Completion improvements): New section.
6836 Mention that you can abbreviate "unlimited".
6837
6206060d
PA
68382019-06-13 Pedro Alves <palves@redhat.com>
6839
6840 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6841 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6842 * unittests/cli-utils-selftests.c (test_parse_flags)
6843 (test_parse_flags_qcs): Delete.
6844 (test_cli_utils): Don't call deleted functions.
6845
6665660a
PA
68462019-06-13 Pedro Alves <palves@redhat.com>
6847
6848 * thread.c: Include "cli/cli-option.h".
6849 (tp_array_compar_ascending): Global.
6850 (tp_array_compar): Delete function.
6851 (tp_array_compar_ascending, tp_array_compar_descending): New
6852 functions.
6853 (ascending_option_def, qcs_flag_option_def)
6854 (thr_qcs_flags_option_defs)
6855 (make_thread_apply_all_options_def_group)
6856 (make_thread_apply_options_def_group): New.
6857 (thread_apply_all_command): Use gdb::option::process_options.
6858 (thread_apply_command_completer)
6859 (thread_apply_all_command_completer): New.
6860 (thread_apply_command): Use gdb::option::process_options.
6861 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6862 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6863 to generate help text of "thread apply". Adjust "taas"'s help.
6864 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6865 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6866
f7e13587
PA
68672019-06-13 Pedro Alves <palves@redhat.com>
6868
6869 * thread.c (thread_apply_command): Check for invalid TID with
6870 isdigit instead of !isalpha.
6871
5d707134
PA
68722019-06-13 Pedro Alves <palves@redhat.com>
6873
6874 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6875 (validate_flags_qcs): New.
6876 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6877 (validate_flags_qcs): Declare.
6878 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6879 (make_frame_apply_options_def_group): New.
6880 (frame_apply_command_count): Process options with
6881 gdb::option::process_options.
6882 (frame_apply_completer): New.
6883 (frame_apply_level_completer, frame_apply_all_completer)
6884 (frame_apply_completer): New.
6885 (_initialize_stack): Update help of "frame apply", "frame apply
6886 level", "frame apply all" and "faas" to mention supported options
6887 and install command completers.
6888 * stack.h (frame_apply_all_completer): Declare.
6889 * thread.c: Include "stack.h".
6890 (tfaas_command): Add "--".
6891 (_initialize_thread): Update help "tfaas" to mention supported
6892 options and install command completer.
6893
272d4594
PA
68942019-06-13 Pedro Alves <palves@redhat.com>
6895
6896 * completer.c (complete_nested_command_line): New.
6897 (gdb_completion_word_break_characters_throw): Add assertion.
6898 * completer.h (complete_nested_command_line): Declare.
6899
90a1ef87
PA
69002019-06-13 Pedro Alves <palves@redhat.com>
6901
6902 * stack.c (parse_backtrace_qualifiers): New.
6903 (backtrace_command): Use it.
6904 (backtrace_command_completer): Complete on qualifiers.
6905
d4c16835
PA
69062019-06-13 Pedro Alves <palves@redhat.com>
6907
6908 * frame.c: Include "cli/cli-option.h.
6909 (user_set_backtrace_options): New.
6910 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6911 Delete.
6912 (get_prev_frame): Adjust.
6913 (boolean_option_def, uinteger_option_def)
6914 (set_backtrace_option_defs): New.
6915 (_initialize_frame): Adjust and use
6916 gdb::option::add_setshow_cmds_for_options to install "set
6917 backtrace past-main" and "set backtrace past-entry".
6918 * frame.h: Include "cli/cli-option.h".
6919 (struct frame_print_options): Forward declare.
6920 (print_frame_arguments_all, print_frame_arguments_scalars)
6921 (print_frame_arguments_none): Declare.
6922 (print_entry_values): Delete declaration.
6923 (struct frame_print_options, user_frame_print_options): New.
6924 (struct set_backtrace_options): New.
6925 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6926 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6927 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6928 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6929 (list_args_or_locals): Add frame_print_options parameter.
6930 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6931 * python/py-framefilter.c (enumerate_args): Pass down
6932 USER_FRAME_PRINT_OPTIONS.
6933 * stack.c: Include "cli/cli-option.h".
6934 (print_frame_arguments_all, print_frame_arguments_scalars)
6935 (print_frame_arguments_none): Declare.
6936 (print_raw_frame_arguments, print_entry_values): Delete.
6937 (user_frame_print_options): New.
6938 (boolean_option_def, enum_option_def, frame_print_option_defs):
6939 New.
6940 (struct backtrace_cmd_options): New.
6941 (bt_flag_option_def): New.
6942 (backtrace_command_option_defs): New.
6943 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6944 (print_frame_arg, read_frame_arg, print_frame_args)
6945 (print_frame_info, print_frame): Add frame_print_options parameter
6946 and use it.
6947 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6948 (backtrace_command_1): Add frame_print_options and
6949 backtrace_cmd_options parameters and use them.
6950 (make_backtrace_options_def_group): New.
6951 (backtrace_command): Process command options with
6952 gdb::option::process_options.
6953 (backtrace_command_completer): New.
6954 (_initialize_stack): Extend "backtrace"'s help to mention
6955 supported options. Install completer for "backtrace".
6956 Install some settings commands with add_setshow_cmds_for_options.
6957
2daf894e
PA
69582019-06-13 Pedro Alves <palves@redhat.com>
6959
6960 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6961 and that "set/show print raw frame-arguments" are now deprecated.
6962
6963 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6964 command.
6965 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6966 * stack.c (_initialize_stack): Install "set/show print
6967 raw-frame-arguments", and deprecate "set/show print raw
6968 frame-arguments".
6969 * valprint.c (_initialize_valprint): Deprecate "set/show print
6970 raw".
6971
e6ed716c
PA
69722019-06-13 Pedro Alves <palves@redhat.com>
6973
6974 * compile/compile.c (struct compile_options): New.
6975 (compile_flag_option_def, compile_command_option_defs)
6976 (make_compile_options_def_group): New.
6977 (compile_file_command): Handle options with
6978 gdb::option::process_options.
6979 (compile_file_command_completer): New function.
6980 (compile_code_command): Handle options with
6981 gdb::option::process_options.
6982 (compile_code_command_completer): New function.
6983 (_initialize_compiler): Install completers for "compile code" and
6984 "compile file". Mention available options in "compile code" and
6985 "compile code"'s help.
6986 * completer.c (advance_to_completion_word): New, factored out from
6987 ...
6988 (advance_to_expression_complete_word_point): ... this.
6989 (advance_to_filename_complete_word_point): New.
6990 * completer.h (advance_to_filename_complete_word_point): New
6991 declaration.
6992
7d8062de
PA
69932019-06-13 Pedro Alves <palves@redhat.com>
6994
6995 * compile/compile.c: Include "cli/cli-option.h".
6996 (compile_print_value): Scope data pointer is now a
6997 value_print_options pointer; adjust.
6998 (compile_print_command): Process options. Scope data pointer is
6999 now a value_print_options pointer; adjust.
7000 (_initialize_compile): Update "compile print"'s help to include
7001 supported options. Install a completer for "compile print".
7002 * cp-valprint.c (show_vtblprint, show_objectprint)
7003 (show_static_field_print): Delete.
7004 (_initialize_cp_valprint): Don't install "set print
7005 static-members", "set print vtbl", "set print object" here.
7006 * printcmd.c: Include "cli/cli-option.h" and
7007 "common/gdb_optional.h".
7008 (print_command_parse_format): Rework to fill in a
7009 value_print_options instead of a format_data.
7010 (print_value): Change parameter type from format_data pointer to
7011 value_print_options reference. Adjust.
7012 (print_command_1): Process options. Adjust to pass down a
7013 value_print_options.
7014 (print_command_completer): New.
7015 (_initialize_printcmd): Install print_command_completer as
7016 handle_brkchars completer for the "print" command. Update
7017 "print"'s help to include supported options.
7018 * valprint.c: Include "cli/cli-option.h".
7019 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7020 here from cp-valprint.c.
7021 (boolean_option_def, uinteger_option_def)
7022 (value_print_option_defs, make_value_print_options_def_group):
7023 New. Use gdb::option::add_setshow_cmds_for_options to install
7024 "set print elements", "set print null-stop", "set print repeats",
7025 "set print pretty", "set print union", "set print array", "set
7026 print address", "set print symbol", "set print array-indexes".
7027 * valprint.h: Include <string> and "cli/cli-option.h".
7028 (make_value_print_options_def_group): Declare.
7029 (print_value): Change parameter type from format_data pointer to
7030 value_print_options reference.
7031 (print_command_completer): Declare.
7032
9d0faba9
PA
70332019-06-13 Pedro Alves <palves@redhat.com>
7034
7035 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7036 (COMMON_SFILES): Add maint-test-settings.c.
7037 * cli/cli-decode.c (boolean_enums): New global, factored out from
7038 ...
7039 (add_setshow_boolean_cmd): ... here.
7040 * cli/cli-decode.h (boolean_enums): Declare.
7041 * cli/cli-option.c: New file.
7042 * cli/cli-option.h: New file.
7043 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7044 factored out from ...
7045 (parse_cli_boolean_value(const char *)): ... this.
7046 (is_unlimited_literal): Change parameter type to pointer to
7047 pointer. Adjust and advance ARG pointer.
7048 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7049 (parse_cli_var_enum): New, factored out from ...
7050 (do_set_command): ... this. Adjust.
7051 * cli/cli-setshow.h (parse_cli_boolean_value)
7052 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7053 (parse_cli_var_enum): Declare.
7054 * cli/cli-utils.c: Include "cli/cli-option.h".
7055 (get_ulongest): New.
7056 * cli/cli-utils.h (get_ulongest): Declare.
7057 (check_for_argument): New overloads.
7058 * maint-test-options.c: New file.
7059
2c722807
PA
70602019-06-13 Pedro Alves <palves@redhat.com>
7061
7062 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7063 parse a range if "-" is at the end of the string.
7064
dee7b4c8
PA
70652019-06-13 Pedro Alves <palves@redhat.com>
7066
7067 * cli/cli-setshow.c (parse_auto_binary_operation)
7068 (parse_cli_boolean_value): Don't allow "o".
7069
dca0f6c0
PA
70702019-06-13 Pedro Alves <palves@redhat.com>
7071
7072 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7073 * NEWS: Mention maint test-settings KIND.
7074 * maint-test-settings.c: New file.
7075
597bf39d
PA
70762019-06-13 Pedro Alves <palves@redhat.com>
7077
7078 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7079 completer.
7080 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7081 "set" completers.
7082
48c410fb
PA
70832019-06-13 Pedro Alves <palves@redhat.com>
7084
7085 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7086 after item.
7087
93bcb043
PA
70882019-06-13 Pedro Alves <palves@redhat.com>
7089
7090 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7091
cbba3ecd
PA
70922019-06-13 Pedro Alves <palves@redhat.com>
7093
7094 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7095 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7096 call.
7097 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7098 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7099 calls.
7100 (check_for_argument): Skip spaces after argument.
7101
b9a3f842
PA
71022019-06-13 Pedro Alves <palves@redhat.com>
7103
7104 * thread.c (thread_apply_command): Adjust TID parsing.
7105 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7106 detected before end of string.
7107 (tid_is_in_list): Error out if LIST is invalid.
7108
3844e605
PA
71092019-06-13 Pedro Alves <palves@redhat.com>
7110
7111 * completer.c (complete_line_internal_1): Rewind completion word
7112 point.
7113 (completion_tracker::advance_custom_word_point_by): Change
7114 parameter type to int.
7115 * completer.h (completion_tracker::advance_custom_word_point_by):
7116 Likewise.
7117
00b56dbe
PA
71182019-06-13 Pedro Alves <palves@redhat.com>
7119
7120 * completer.c (advance_to_completion_word): Handle delimiters.
7121
d106773e
PA
71222019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7123
7124 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7125
08f10e02
TT
71262019-06-11 Tom Tromey <tom@tromey.com>
7127
7128 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7129 (xmalloc_failed): Move to alloc.c.
7130 * alloc.c: New file.
7131 * Makefile.in (COMMON_SFILES): Add alloc.c.
7132
1c7fe951
TT
71332019-06-11 Tom Tromey <tom@tromey.com>
7134
7135 * nat/linux-waitpid.c: Don't include server.h.
7136 (linux_debug): Remove.
7137 (my_waitpid): Update.
7138
89549d7f
TT
71392019-06-11 Tom Tromey <tromey@adacore.com>
7140
7141 * infcall.c (_initialize_infcall): Remove trailing newline from
7142 help.
7143 * user-regs.c (_initialize_user_regs): Remove trailing newline
7144 from help.
7145 * typeprint.c (_initialize_typeprint): Remove trailing newline
7146 from help.
7147 * reverse.c (_initialize_reverse): Remove trailing newlines from
7148 help.
7149 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7150 from help.
7151 * language.c (add_set_language_command): Remove trailing newline
7152 from help.
7153 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7154 help.
7155 * disasm.c (_initialize_disasm): Remove trailing newline from
7156 help.
7157 * top.c (init_main): Remove trailing newline from help.
7158 * interps.c (_initialize_interpreter): Remove trailing newline
7159 from help.
7160 * btrace.c (_initialize_btrace): Remove trailing newlines from
7161 help.
7162 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7163 from help.
7164 * python/python.c (_initialize_python): Remove trailing newline
7165 from help.
7166 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7167 help.
7168 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7169 from help. Reformat some text.
7170 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7171 from help.
7172 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7173 newline from help.
7174
86108c13
TT
71752019-06-11 Tom Tromey <tromey@adacore.com>
7176
7177 * darwin-nat.c (darwin_decode_exception_message)
7178 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7179
a7067863
AB
71802019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7181
7182 * valops.c (value_slice): Check for not allocated or not
7183 associated values.
7184
9ab08412
TV
71852019-06-10 Tom de Vries <tdevries@suse.de>
7186
7187 PR gdb/24618
7188 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7189 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7190 invalid.
7191
f19e22e9
TV
71922019-06-10 Tom de Vries <tdevries@suse.de>
7193
7194 PR gdb/24611
7195 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7196 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7197
e99f9db0
TV
71982019-06-10 Tom de Vries <tdevries@suse.de>
7199
7200 PR symtab/24545
7201 * symtab.c (struct demangled_name_entry): Add language field.
7202 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7203 static minimal symbol". Set and use language field.
7204
9bf7038b
TT
72052019-06-10 Tom Tromey <tromey@adacore.com>
7206
7207 * ada-lang.c (_initialize_ada_language): Update help text.
7208
422186a9
TT
72092019-06-10 Tom Tromey <tromey@adacore.com>
7210
7211 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7212 with a newline.
7213 * guile/guile.c (handle_boot_error): Don't end warning with a
7214 newline.
7215 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7216 warning with a newline.
7217 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7218 newline.
7219 (s12z_frame_cache): Likewise.
7220 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7221 a newline.
7222 * solib-svr4.c (disable_probes_interface): Don't end warning with
7223 a newline.
7224 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7225 newline.
7226 * python/python.c (do_finish_initialization): Don't end warning
7227 with a newline.
7228
25ce02ee
TT
72292019-06-10 Tom Tromey <tom@tromey.com>
7230
7231 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7232 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7233 gdbpy_enter.
7234
caa429d8
TT
72352019-06-10 Tom Tromey <tromey@adacore.com>
7236
7237 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7238 data.
7239 (elf_new_init): Don't call stabsread_new_init.
7240 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7241 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7242 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7243
81873cc8
TV
72442019-06-10 Tom de Vries <tdevries@suse.de>
7245
7246 PR symtab/16264
7247 PR symtab/24517
7248 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7249
4fa0265e
РИ
72502019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7251
7252 * source.c (find_and_open_source): Also rewrite relative file
7253 names.
7254
1a3da2cd
AB
72552019-04-26 Amos Bird <amosbird@gmail.com>
7256
7257 * annotate.c (annotate_thread_exited): Add "thread-exited"
7258 annotation.
7259
3847a7bf
TT
72602019-06-06 Tom Tromey <tromey@adacore.com>
7261
7262 * maint.h (class scoped_command_stats): Use
7263 DISABLE_COPY_AND_ASSIGN.
7264 <print_time>: New method.
7265 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7266 print_time.
7267 (scoped_command_stats::print_time): New method.
7268
312617a3
AB
72692019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7270
7271 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7272 instructions of lengths 6 or 8 bytes.
7273
b02f78f9
PA
72742019-06-04 Pedro Alves <palves@redhat.com>
7275
7276 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7277
7278 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7279 * breakpoint.c (condition_completer): Likewise.
7280 * cli/cli-dump.c (scan_expression): Likewise.
7281 * common/filestuff.c (mkdir_recursive): Likewise.
7282 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7283 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7284 (gdb_abspath): Likewise.
7285 * compile/compile-cplus-types.c
7286 (compile_cplus_instance::decl_name): Likewise.
7287 * completer.c (complete_explicit_location):
7288 (signal_completer, reg_or_group_completer_1): Likewise.
7289 * cp-support.c (cp_remove_params_if_any): Likewise.
7290 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7291 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7292 * infcmd.c (strip_bg_char): Likewise.
7293 * linespec.c (copy_token_string): Likewise.
7294 * mi/mi-main.c (output_cores): Likewise.
7295 * psymtab.c (psymtab_search_name):
7296 * symfile.c (test_set_ext_lang_command): Likewise.
7297 * target.c (target_fileio_read_stralloc): Likewise.
7298 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7299 * value.c (complete_internalvar): Likewise.
7300
e1f2e1a2
CB
73012019-06-04 Christian Biesinger <cbiesinger@google.com>
7302
7303 Add objfile property to gdb.Type.
d3238f7d
PA
7304 * NEWS: Mention Python API addition.
7305 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 7306
e664d728
PW
73072019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7308
7309 * NEWS: Mention the new set|show style [title|highlight].
7310 Mention changes to "show style", "help" and "apropos".
7311
66d8c862
PW
73122019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7313
7314 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7315 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7316 instead of print_help_for_command.
7317 (print_doc_of_command): New function.
7318 (help_list): Add 'apropos -v word' suggestion.
7319 (print_help_for_command): Style the command name using title style.
7320 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7321 (_initialize_cli_cmds): Describe -v in apropos_command help.
7322
9303eb2f
PW
73232019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7324
7325 * cli/cli-style.h (cli_style_option): Add name in constructor,
7326 add m_name class member, add constructor with intensity,
7327 add name class function.
7328 (cli_style_option::add_setshow_commands): Remove name argument.
7329 (highlight_style, title_style): New styles.
7330 * cli/cli-style.c (do_show): New function that shows a style
7331 characteristic styling the style name with itself.
7332 (set_style_name): New function.
7333 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7334 Update all callers according to the changes in cli/cli-style.h.
7335 * utils.h (fputs_highlighted): New function.
7336 * utils.c (fputs_highlighted): Likewise.
7337
e2c52041
PW
73382019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7339
7340 * NEWS: Mention new pipe command and new convenience variables.
7341
947d3946
PW
73422019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7343
7344 * cli/cli-cmds.c (pipe_command): New function.
7345 (_initialize_cli_cmds): Call add_com for pipe_command.
7346 Define | as an alias for pipe.
7347 (exit_status_set_internal_vars): New function.
7348 (shell_escape): Call exit_status_set_internal_vars.
7349 cli/cli-decode.c (find_command_name_length): Recognize | as
7350 a single character command.
7351
b8fd0918
PW
73522019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7353
7354 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7355 top.c (execute_command_to_ui_file): New function, mostly a copy
7356 of execute_command_to_string.
7357 (execute_command_to_string): Implement by calling
7358 execute_command_to_ui_file.
7359
68bb5386
PW
73602019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7361
7362 * top.h (saved_command_line): Remove declaration.
7363 * top.c (previous_saved_command_line, previous_repeat_arguments):
7364 New variables.
7365 (saved_command_line): Make static, define together with other
7366 'repeat variables'.
7367 (dont_repeat): Clear repeat_arguments.
7368 (repeat_previous, get_saved_command_line, save_command_line):
7369 New functions.
7370 (gdb_init): Initialize saved_command_line
7371 and previous_saved_command_line.
7372 * main.c (captured_main_1): Remove saved_command_line initialization.
7373 * event-top.c (handle_line_of_input): Update to use
7374 the new 'repeat' related functions instead of direct access to
7375 saved_command_line.
7376 * command.h (repeat_previous, get_saved_command_line,
7377 save_command_line): New declarations.
7378 (dont_repeat): Add comment.
7379
bfcdb852
TT
73802019-05-30 Tom Tromey <tromey@adacore.com>
7381
7382 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7383 Fix comment.
7384 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7385
0ef209f2
JV
73862019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7387
7388 PR cli/24587
7389 * completer.c (complete): Initialize variable word.
7390
955b06fa
SDJ
73912019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7392
7393 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7394 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7395 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7396 'body' is NULL to the outter 'if', protecting the '!is_define'
7397 situation as well.
7398
fa9c3fa0
TT
73992019-05-29 Tom Tromey <tromey@adacore.com>
7400
7401 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7402 (dwarf_unknown): New function.
7403 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7404 (dwarf_type_encoding_name): Use dwarf_unknown.
7405
4330d61d
TT
74062019-05-29 Tom Tromey <tromey@adacore.com>
7407
7408 PR c++/20020:
7409 * cp-valprint.c (cp_print_value_fields): Call
7410 cp_print_static_field inside "try".
7411
33a6bc35
TT
74122019-05-29 Tom Tromey <tromey@adacore.com>
7413
7414 * inflow.c (struct terminal_info): Add default operator=.
7415 * configure: Rebuild.
7416 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7417 -Wdeprecated-copy-dtor, -Wredundant-move.
7418
000439d5
TT
74192019-05-29 Tom Tromey <tromey@adacore.com>
7420
7421 * NEWS: Add entry.
7422 * infcmd.c (print_return_value_1): Handle finish_print
7423 option.
7424 (show_print_finish): New function.
7425 (_initialize_infcmd): Add "set/show print finish" commands.
7426 * valprint.c (user_print_options): Initialize new member.
7427 * valprint.h (struct value_print_options) <finish_print>: New
7428 member.
7429
c0e70c62
TT
74302019-05-28 Tom Tromey <tromey@adacore.com>
7431
7432 * ada-lang.c (ada_remove_Xbn_suffix)
7433 (find_old_style_renaming_symbol)
7434 (parse_old_style_renaming): Remove.
7435 (ada_find_renaming_symbol): Don't call
7436 find_old_style_renaming_symbol.
7437 (ada_is_renaming_symbol): Rename from
7438 ada_find_renaming_symbol. Remove "block" parameter. Return
7439 bool. Now static.
7440 (ada_read_var_value): Update and simplify.
7441 * ada-exp.y (write_var_or_type): Remove old code.
7442
766f8836
AH
74432019-05-28 Alan Hayward <alan.hayward@arm.com>
7444
68255adc 7445 PR gdb/25010
766f8836
AH
7446 * event-top.c: Remove include comment.
7447 * inflow.c (class scoped_ignore_sigttou): Move from here...
7448 * inflow.h (class scoped_ignore_sigttou): ...to here.
7449 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7450 * top.c: Remove include comment.
7451
eb41253a
TT
74522019-05-27 Tom Tromey <tom@tromey.com>
7453
7454 * NEWS: Fix typo.
7455
4ca51187
TT
74562019-05-22 Tom Tromey <tromey@adacore.com>
7457
7458 * target.c (target_follow_exec): Constify parameter.
7459 * target-delegates.c: Rebuild.
7460 * remote.c (remote_target::follow_exec): Constify parameter.
7461 * infrun.c (follow_exec): Constify parameter.
7462 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7463 (target_follow_exec): Likewise.
7464
8fca4da0
AH
74652019-05-22 Alan Hayward <alan.hayward@arm.com>
7466
7467 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7468 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7469
b7060614
AH
74702019-05-22 Alan Hayward <alan.hayward@arm.com>
7471
7472 * NEWS: Add debugredirect and testsuite sections.
7473
0a5954bd
SC
74742019-05-22 Simon Cook <simon.cook@embecosm.com>
7475
7476 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7477 target descriptions using exclusively floating point register name
7478 aliases.
7479
dc42e902
AB
74802019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7481
7482 PR gdb/18644:
7483 * f-lang.c (build_fortran_types): Handle the case where
7484 gdbarch_floatformat_for_type returns a nullptr.
7485
fb7806c7
TV
74862019-05-21 Tom de Vries <tdevries@suse.de>
7487
7488 PR cli/24587
7489 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7490
34d11c68
AB
74912019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7492
7493 PR gdb/18644:
7494 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7495 16-byte floats.
7496 * i386-tdep.c (i386_floatformat_for_type): Use
7497 floatformats_ia64_quad for the 16-byte floating point component
7498 within a fortran 32-byte complex number.
7499
122cf0f2
AB
75002019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7501
7502 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7503 delete default constructor.
7504 (find_partial_die): Update to return const struct.
7505 (partial_die_parent_scope): Move variable declaration into scope
7506 of its use and change its type to auto.
7507 (guess_partial_die_structure_name): Likewise.
7508 (partial_die_info::fixup): Likewise.
7509
33d0e35a
TT
75102019-05-17 Tom Tromey <tromey@adacore.com>
7511
7512 * source.c (find_and_open_source): Remove cast.
7513
a45575b0
TT
75142019-05-17 Tom Tromey <tromey@adacore.com>
7515
7516 * annotate.c (annotate_source): Make "filename" const.
7517 * annotate.h (annotate_source): Use const.
7518
81f47ac2
AH
75192019-05-17 Alan Hayward <alan.hayward@arm.com>
7520
7521 * disasm.c (set_disassembler_options): Send errors to stderr.
7522
ca1285d1
AH
75232019-05-17 Alan Hayward <alan.hayward@arm.com>
7524
7525 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7526 (cli_interp_base::set_logging): Check debug_redirect.
7527 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7528 * cli/cli-logging.c (debug_redirect): Add static variable.
7529 (pop_output_files): Add default param.
7530 (handle_redirections): Print debug setting.
7531 (show_logging_command): Likewise.
7532 (_initialize_cli_logging): Add debugredirect command.
7533 * interps.c (current_interp_set_logging): Add debug_redirect
7534 parameter.
7535 * interps.h (set_logging): Add debug_redirect parameter.
7536 (current_interp_set_logging): Likewise.
7537 * mi/mi-common.h: Likewise.
7538 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7539
75402019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
7541 Tom Tromey <tromey@adacore.com>
7542
7543 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7544 directly.
7545 * cli/cli-interp.h (make_logging_output): Remove declaration.
7546 * cli/cli-logging.c (make_logging_output): Remove function.
7547 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7548 directly.
7549 * ui-file.c (tee_file::tee_file): Remove bools.
7550 (tee_file::~tee_file): Remove deletes.
7551 * ui-file.h (tee_file): Remove bools.
7552
26648588
JV
75532019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7554
7555 * mi/mi-cmds.h (mi_cmd_complete): New function.
7556 * mi/mi-main.c (mi_cmd_complete): Likewise.
7557 * mi/mi-cmds.c: Define new MI command -complete.
7558 * NEWS: Mention new -complete command.
7559
6e035501
JV
75602019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7561
7562 * completer.h (complete): New function.
7563 * completer.c (complete): Likewise.
7564 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7565 function defined in completer.h.
7566
7d0e2ece
JV
75672019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7568
e79be6e5 7569 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 7570
fb816e8b
TV
75712019-05-17 Tom de Vries <tdevries@suse.de>
7572
7573 PR gdb/24094
7574 * dwarf2read.c (struct cu_partial_die_info): New struct.
7575 (find_partial_die): Return cu_partial_die_info.
7576 (partial_die_parent_scope, guess_partial_die_structure_name)
7577 (partial_die_info::fixup): Handle new return type of find_partial_die.
7578
677052f2
SDJ
75792019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7580
a1726c38 7581 PR breakpoints/24541
677052f2
SDJ
7582 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7583 "std::string", simplifying the algorithm.
7584
f3da9116
SDJ
75852019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7586
7587 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7588 (stap_static_probe_ops::get_probes): Likewise.
7589
f1bb75ab
SDJ
75902019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7591
7592 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7593 '-')" and "else if".
7594 (stap_parse_single_operand): Join checks for
7595 "gdbarch_stap_parse_special_token_p" and
7596 "gdbarch_stap_parse_special_token" in the same "if" statement.
7597 Invert check when verifying for operation on register
7598 displacement.
7599
3ca58cde
SDJ
76002019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7601
7602 * stap-probe.c (stap_get_opcode): Update comment.
7603 (stap_get_expected_argument_type): Likewise.
7604 (handle_stap_probe): Likewise.
7605
af2d9bee
SDJ
76062019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7607
7608 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7609 return type to 'bool'. Adjust comment. Use 'bool' when
7610 appropriate.
7611 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7612 * stap-probe.c (stap_parse_argument_1): Likewise.
7613 (stap_is_operator): Likewise.
7614 (stap_is_generic_prefix): Likewise.
7615 (stap_is_register_prefix): Likewise.
7616 (stap_is_register_indirection_prefix): Likewise.
7617 (stap_is_integer_prefix): Likewise.
7618 (stap_generic_check_suffix): Likewise.
7619 (stap_check_integer_suffix): Likewise.
7620 (stap_check_register_suffix): Likewise.
7621 (stap_check_register_indirection_suffix): Likewise.
7622 (stap_parse_register_operand): Likewise.
7623 (stap_parse_single_operand): Likewise.
7624 (stap_parse_argument_1): Likewise.
7625 (stap_probe::get_argument_count): Likewise.
7626 (stap_is_operator): Likewise.
7627
61c9c421
TT
76282019-05-16 Tom Tromey <tromey@adacore.com>
7629
7630 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7631 keyword to foreach.
7632
9ddc1af1
SM
76332019-05-15 Simon Marchi <simon.marchi@efficios.com>
7634
7635 * linux-thread-db.c (try_thread_db_load_1): Change return type
7636 to bool.
7637 (try_thread_db_load): Likewise.
7638 (try_thread_db_load_from_pdir_1): Likewise.
7639 (try_thread_db_load_from_pdir): Likewise.
7640 (try_thread_db_load_from_sdir): Likewise.
7641 (try_thread_db_load_from_dir): Likewise.
7642 (thread_db_load_search): Likewise.
7643 (has_libpthread): Likewise.
7644 (thread_db_load): Likewise.
7645
7bede828
SDJ
76462019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7647
7648 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7649 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7650 NULL, and complain/return if that's the case.
7651
c5358db4
JD
76522019-05-15 John Darrington <john@darrington.wattle.id.au>
7653
7654 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7655 (advance, posn, abstract_read_memory): New functions.
7656 [struct mem_read_abstraction]: New struct.
7657 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7658
c408a94f
TT
76592019-05-14 Tom Tromey <tromey@adacore.com>
7660
7661 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7662 value is not lval_memory.
7663
e7bd7fba
TT
76642019-05-14 Tom Tromey <tromey@adacore.com>
7665
7666 * solib.c (info_sharedlibrary_command): Style the file name.
7667
a6d0f249
AH
76682019-05-14 Alan Hayward <alan.hayward@arm.com>
7669
7670 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7671 (aarch64_vnv_type): Likewise.
7672 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7673 * common/tdesc.c: Likewise.
7674 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7675 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7676 * features/aarch64-fpu.xml: Add ieee half view.
7677 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7678 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7679 * gdbtypes.h (struct builtin_type): Likewise.
7680 (struct objfile_type): Likewise.
7681
66b8bb74
SM
76822019-05-12 Paul Naert <paul.naert@polymtl.ca>
7683
7684 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7685 typo.
7686 * location.h (string_to_event_location): Likewise.
7687
21c219fd
JB
76882019-05-11 Joel Brobecker <brobecker@adacore.com>
7689
7690 GDB 8.3 released.
7691
13674803
SM
76922019-05-10 Simon Marchi <simon.marchi@efficios.com>
7693
7694 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7695 New variable declaration.
7696 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7697 New variable.
7698 (print_one_breakpoint): Use ui_out::test_flags and new global
7699 variable to compute use_fixed_output.
7700 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7701 Remove.
7702 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7703 (mi_multi_location_breakpoint_output_fixed): Remove.
7704 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7705 new variable.
7706 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7707 fix_multi_location_breakpoint_output flag if version >= 3.
7708 * ui-out.h (enum ui_out_flag)
7709 <fix_multi_location_breakpoint_output>: New enumerator.
7710
a9eac7f9
SM
77112019-05-10 Simon Marchi <simon.marchi@efficios.com>
7712
7713 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7714
71bed2db
TT
77152019-05-10 Tom Tromey <tromey@adacore.com>
7716
7717 * ada-lang.c (catch_ada_completer): New function.
7718 (_initialize_ada_language): Use it.
7719
24c54127
TT
77202019-05-10 Tom Tromey <tromey@adacore.com>
7721
7722 * thread.c (print_thread_info): Make "requested_threads" const.
7723 * gdbthread.h (print_thread_info): Make "requested_threads"
7724 const.
7725 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7726 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7727
7a102139
TT
77282019-05-08 Tom Tromey <tom@tromey.com>
7729
7730 * gdbtypes.c (objfile_type_data): Change type.
7731 (objfile_type, _initialize_gdbtypes): Update.
7732
924d79e2
TT
77332019-05-08 Tom Tromey <tom@tromey.com>
7734
7735 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7736 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7737 (_initialize_dwarf2_frame): Update.
7738
4c58e337
TT
77392019-05-08 Tom Tromey <tom@tromey.com>
7740
7741 * objc-lang.c (objc_objfile_data): Change type.
7742 (find_methods): Update.
7743 (_initialize_objc_lang): Remove.
7744
d772d2ab
TT
77452019-05-08 Tom Tromey <tom@tromey.com>
7746
7747 * stabsread.c (rs6000_builtin_type_data): Change type.
7748 (rs6000_builtin_type, _initialize_stabsread): Update.
7749
d11d83f4
TT
77502019-05-08 Tom Tromey <tom@tromey.com>
7751
7752 * mips-tdep.c (mips_pdr_data): Remove.
7753 (_initialize_mips_tdep): Update.
7754
9a73f0ad
TT
77552019-05-08 Tom Tromey <tom@tromey.com>
7756
7757 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7758 (hppa_init_objfile_priv_data, read_unwind_info)
7759 (find_unwind_entry, _initialize_hppa_tdep): Update.
7760
8127a2fa
TT
77612019-05-08 Tom Tromey <tom@tromey.com>
7762
7763 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7764 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7765 on obstack.
7766 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7767
91d3055d
TT
77682019-05-08 Tom Tromey <tom@tromey.com>
7769
7770 * mdebugread.c (basic_type_data): Change type.
7771 (basic_type, _initialize_mdebugread): Update.
7772
31930bd3
TT
77732019-05-08 Tom Tromey <tom@tromey.com>
7774
7775 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7776
bdb3ed9e
TT
77772019-05-08 Tom Tromey <tom@tromey.com>
7778
7779 * nto-tdep.c (nto_inferior_data_reg): Change type.
7780 (nto_inferior_data): Update.
7781 (nto_inferior_data_cleanup, nto_new_inferior_data)
7782 (_initialize_nto_tdep): Remove.
7783 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7784
f37b313d
TT
77852019-05-08 Tom Tromey <tom@tromey.com>
7786
7787 * ada-lang.c (struct ada_inferior_data): Add initializers.
7788 (ada_inferior_data): Change type.
7789 (ada_inferior_data_cleanup): Remove.
7790 (get_ada_inferior_data, ada_inferior_exit)
7791 (struct ada_pspace_data): Add initializers, destructor.
7792 (ada_pspace_data_handle): Change type.
7793 (get_ada_pspace_data): Update.
7794 (ada_pspace_data_cleanup): Remove.
7795
24699405
TT
77962019-05-08 Tom Tromey <tom@tromey.com>
7797
7798 * coffread.c (struct coff_symfile_info): Add initializers.
7799 (coff_objfile_data_key): Move lower. Change type.
7800 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7801 Update.
7802 (coff_free_info): Remove.
7803
d4e05d2f
TT
78042019-05-08 Tom Tromey <tom@tromey.com>
7805
7806 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7807 (fbsd_pspace_data_handle): Move lower. Change type.
7808 (get_fbsd_pspace_data): Update.
7809 (fbsd_pspace_data_cleanup): Remove.
7810 (_initialize_fbsd_tdep): Update.
7811
14ef6690
TT
78122019-05-08 Tom Tromey <tom@tromey.com>
7813
7814 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7815 (get_ada_tasks_pspace_data): Update.
7816 (ada_tasks_pspace_data_cleanup): Remove.
7817 (_initialize_tasks): Update.
7818 (ada_tasks_inferior_data_handle): Change type.
7819 (get_ada_tasks_inferior_data): Update.
7820 (ada_tasks_inferior_data_cleanup): Remove.
7821 (struct ada_tasks_pspace_data): Add initializers.
7822
814cf43a
TT
78232019-05-08 Tom Tromey <tom@tromey.com>
7824
7825 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7826 * symfile-debug.c (debug_sym_get_probes): Change type.
7827 * stap-probe.c (handle_stap_probe):
7828 (stap_static_probe_ops::get_probes): Change type.
7829 * probe.h (class static_probe_ops) <get_probes>: Change type.
7830 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7831 (parse_probes_in_pspace): Update.
7832 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7833 Update.
7834 (any_static_probe_ops::get_probes): Change type.
7835 * elfread.c (elfread_data): New typedef.
7836 (probe_key): Change type.
7837 (elf_get_probes): Likewise. Update.
7838 (probe_key_free): Remove.
7839 (_initialize_elfread): Update.
7840 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7841 Change type.
7842 (dtrace_process_dof_probe, dtrace_process_dof)
7843 (dtrace_static_probe_ops::get_probe): Change type.
7844
02dc647e
TT
78452019-05-08 Tom Tromey <tom@tromey.com>
7846
7847 * xcoffread.c (struct xcoff_symfile_info): Rename from
7848 coff_symfile_info. Add initializers.
7849 (xcoff_objfile_data_key): Move lower. Change type.
7850 (XCOFF_DATA): Rewrite.
7851 (xcoff_free_info): Remove.
7852 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7853 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7854 (xcoff_initial_scan): Update.
7855
09232438
TT
78562019-05-08 Tom Tromey <tom@tromey.com>
7857
7858 * solib-svr4.c (struct svr4_info): Add initializers and
7859 destructor.
7860 <probes_table>: Now an htab_up.
7861 (solib_svr4_pspace_data): Change type.
7862 (free_probes_table): Simplify.
7863 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7864 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7865 (probes_table_remove_objfile_probes, register_solib_event_probe)
7866 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7867 (_initialize_svr4_solib): Update.
7868
7b4a314f
TT
78692019-05-08 Tom Tromey <tom@tromey.com>
7870
7871 * remote.c (remote_pspace_data): Change type.
7872 (remote_pspace_data_cleanup): Remove.
7873 (get_remote_exec_file, set_pspace_remote_exec_file)
7874 (_initialize_remote): Update.
7875
51d3063a
TT
78762019-05-08 Tom Tromey <tom@tromey.com>
7877
7878 * breakpoint.c (breakpoint_objfile_key): Change type.
7879 (get_breakpoint_objfile_data): Update.
7880 (free_breakpoint_objfile_data): Remove.
7881 (_initialize_breakpoint): Update.
7882
89fb8848
TT
78832019-05-08 Tom Tromey <tom@tromey.com>
7884
7885 * linux-tdep.c (struct linux_info): Add initializers.
7886 (linux_inferior_data): Move. Change type.
7887 (invalidate_linux_cache_inf): Update.
7888 (linux_inferior_data_cleanup): Remove.
7889 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7890
e9b89e2d
TT
78912019-05-08 Tom Tromey <tom@tromey.com>
7892
7893 * auxv.c (auxv_inferior_data): Move. Change type.
7894 (auxv_inferior_data_cleanup): Remove.
7895 (invalidate_auxv_cache_inf): Rewrite.
7896 (get_auxv_inferior_data, _initialize_auxv): Update.
7897
8c42777c
TT
78982019-05-08 Tom Tromey <tom@tromey.com>
7899
7900 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7901 (symfile_debug_objfile_data_key): Change type.
7902 (symfile_debug_installed, debug_qf_has_symbols)
7903 (debug_qf_find_last_source_symtab)
7904 (debug_qf_forget_cached_source_info)
7905 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7906 (debug_qf_print_stats, debug_qf_dump)
7907 (debug_qf_expand_symtabs_for_function)
7908 (debug_qf_expand_all_symtabs)
7909 (debug_qf_expand_symtabs_with_fullname)
7910 (debug_qf_map_matching_symbols)
7911 (debug_qf_expand_symtabs_matching)
7912 (debug_qf_find_pc_sect_compunit_symtab)
7913 (debug_qf_map_symbol_filenames)
7914 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7915 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7916 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7917 (debug_sym_read_linetable, debug_sym_relocate): Update.
7918 (symfile_debug_free_objfile): Remove.
7919 (install_symfile_debug_logging, _initialize_symfile_debug):
7920 Update.
7921
5bfd760d
TT
79222019-05-08 Tom Tromey <tom@tromey.com>
7923
7924 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7925 allocate_on_obstack.
7926 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7927 (get_dwarf2_per_objfile): Update.
7928 (set_dwarf2_per_objfile): Remove.
7929 (dwarf2_has_info, dwarf2_get_section_info): Update.
7930 (dwarf2_free_objfile): Remove.
7931 (_initialize_dwarf2_read): Update.
7932
e85e19b4
TT
79332019-05-08 Tom Tromey <tom@tromey.com>
7934
7935 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7936 initializers.
7937 <unsupported_script_warning_printed,
7938 script_not_found_warning_printed>: Now bool.
7939 (auto_load_pspace_data): Change type.
7940 (~auto_load_pspace_info): Rename from
7941 auto_load_pspace_data_cleanup.
7942 (get_auto_load_pspace_data, init_loaded_scripts_info)
7943 (clear_section_scripts, maybe_print_unsupported_script_warning)
7944 (maybe_print_script_not_found_warning, _initialize_auto_load):
7945 Update.
7946
f6aa7436
TT
79472019-05-08 Tom Tromey <tom@tromey.com>
7948
7949 * objfiles.c (objfile_pspace_info): Add destructor and
7950 initializers.
7951 (objfiles_pspace_data): Change type.
7952 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7953 (get_objfile_pspace_data): Update.
7954 (objfiles_bfd_data): Change type.
7955 (get_objfile_bfd_data): Update.
7956 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7957
6ae614f6
TT
79582019-05-08 Tom Tromey <tom@tromey.com>
7959
7960 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7961 Change type.
7962 (get_catch_syscall_inferior_data): Update.
7963 (catch_syscall_inferior_data_cleanup): Remove.
7964 (_initialize_break_catch_syscall): Update.
7965
6509b8eb
TT
79662019-05-08 Tom Tromey <tom@tromey.com>
7967
7968 * inflow.c (struct terminal_info): Add destructor and
7969 initializers.
7970 (inflow_inferior_data): Change type.
7971 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7972 (get_inflow_inferior_data, inflow_inferior_exit)
7973 (swap_terminal_info, _initialize_inflow): Update.
7974
35632941
TT
79752019-05-08 Tom Tromey <tom@tromey.com>
7976
7977 * target-dcache.c (target_dcache_cleanup): Remove.
7978 (target_dcache_aspace_key): Change type.
7979 (target_dcache_init_p, target_dcache_invalidate)
7980 (target_dcache_get, target_dcache_get_or_init)
7981 (_initialize_target_dcache): Update.
7982 * dcache.h (struct dcache_deleter): New.
7983
3017b94d
TT
79842019-05-08 Tom Tromey <tom@tromey.com>
7985
7986 * symtab.c (struct symbol_cache): Add destructor and
7987 initializers.
7988 (symbol_cache_key): Move. Change type.
7989 (make_symbol_cache, free_symbol_cache): Remove.
7990 (get_symbol_cache): Update.
7991 (symbol_cache_cleanup): Remove.
7992 (ALL_PSPACES, symbol_cache_flush)
7993 (maintenance_print_symbol_cache)
7994 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7995 Update.
7996
a32ad8c5
TT
79972019-05-08 Tom Tromey <tom@tromey.com>
7998
7999 * symtab.c (struct main_info): Add destructor and initializers.
8000 (main_progspace_key): Move. Change type.
8001 (get_main_info): Update.
8002 (main_info_cleanup): Remove.
8003 (_initialize_symtab): Update.
8004
5f6e90a0
TT
80052019-05-08 Tom Tromey <tom@tromey.com>
8006
8007 * registry.h (DECLARE_REGISTRY): Define the _key class.
8008
1bd0c6e4
AB
80092019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8010
8011 * NEWS: Merge two 'New commands' sections.
8012
2228ef77
XR
80132019-05-08 Joel Brobecker <brobecker@adacore.com>
8014
8015 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8016 parameter and use Ada language definition instead.
8017 (ada_val_print_ptr): Remove unused language parameter.
8018 (ada_val_print_num): Remove language parameter and use Ada language
8019 definition instead.
8020 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8021 parameter.
8022 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8023 parameter and use Ada language definition instead.
8024 (ada_val_print_1): Update all ada_val_print_xxx calls.
8025 Remove language parameter.
8026 (ada_val_print): Update ada_val_print_1 call.
8027
60fcc1c3
TT
80282019-05-08 Tom Tromey <tromey@adacore.com>
8029
8030 * remote.c (remote_hw_watchpoint_limit)
8031 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8032 Now static.
8033
ed2b7c17
TT
80342019-05-08 Tom Tromey <tromey@adacore.com>
8035
8036 * maint.c (_initialize_maint_cmds): Move initialization code to
8037 remote.c.
8038 (watchdog, show_watchdog): Move to remote.c.
8039 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8040 "watchdog" static.
8041 (_initialize_remote): Move initialization code from maint.c.
8042 * defs.h (watchdog): Don't declare.
8043
b0be6c91
TT
80442019-05-08 Tom Tromey <tromey@adacore.com>
8045
8046 * tui/tui-interp.c: Include main.h.
8047 * interps.c: Include main.h.
8048 * main.h (interpreter_p): Declare.
8049 * defs.h (interpreter_p): Don't declare.
8050
587ee17b
TT
80512019-05-08 Tom Tromey <tromey@adacore.com>
8052
8053 * dwarf2loc.c: Include dwarf2read.h.
8054 * defs.h (read_unsigned_leb128): Don't declare.
8055 * dwarf2read.h (read_unsigned_leb128): Declare.
8056
ca1df239
TT
80572019-05-08 Tom Tromey <tromey@adacore.com>
8058
8059 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8060 method.
8061
99f20f08
TT
80622019-05-08 Tom Tromey <tromey@adacore.com>
8063
8064 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8065 when no wrap column is set.
8066
80e55b13
TT
80672019-05-08 Tom Tromey <tromey@adacore.com>
8068
8069 * c-lang.c (c_get_string): Handle non-C-style arrays.
8070
9d3421af
TT
80712019-05-08 Tom Tromey <tromey@adacore.com>
8072
8073 * typeprint.c (print_offset_data::update): Print the bit offset,
8074 not the number of bits remaining.
8075
844333e2
TT
80762019-05-08 Tom Tromey <tromey@adacore.com>
8077
8078 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8079 padding at end of comment.
8080
988915ee
TT
80812019-05-08 Tom Tromey <tromey@adacore.com>
8082
8083 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8084 Compare main types.
8085
26bfd823
TT
80862019-05-06 Tom Tromey <tom@tromey.com>
8087
8088 * common/scoped_mmap.c: Include common-defs.h.
8089 * common/scoped_mmap.h: Don't include config.h.
8090
89055eaa
TT
80912019-05-04 Tom Tromey <tom@tromey.com>
8092
8093 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8094 (struct aarch64_call_info): Add initializers.
8095 <si>: Now a std::vector.
8096 (pass_on_stack, aarch64_push_dummy_call): Update.
8097
5da01df5
TT
80982019-05-04 Simon Marchi <simon.marchi@efficios.com>
8099 Tom Tromey <tom@tromey.com>
8100
8101 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8102 (ppc_threads): Now a std::vector. Now static.
8103 (hwdebug_find_thread_points_by_tid)
8104 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8105 Update.
8106
fbdf05a1
TT
81072019-05-04 Tom Tromey <tom@tromey.com>
8108
8109 * arc-tdep.c (arc_tdesc_init): Return bool.
8110
06d16ec9
TT
81112019-05-04 Tom Tromey <tom@tromey.com>
8112
8113 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8114 Use gdb_assert_not_reached.
8115
9c056022
TT
81162019-05-04 Tom Tromey <tom@tromey.com>
8117
8118 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8119 "false".
8120
fa9c2a59
TT
81212019-05-04 Tom Tromey <tom@tromey.com>
8122
8123 * arc-tdep.c (arc_tdesc_init): Use bool.
8124
e2eb806a
TT
81252019-05-04 Tom Tromey <tom@tromey.com>
8126
8127 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8128
6fe87677
TT
81292019-05-04 Tom Tromey <tom@tromey.com>
8130
8131 * cli/cli-cmds.c (valid_command_p): Return bool.
8132
7f008c9e
TT
81332019-05-04 Tom Tromey <tom@tromey.com>
8134
8135 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8136 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8137
b6484282
RT
81382019-05-04 Raul Tambre <raul@tambre.ee>
8139
8140 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8141 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8142 operator for comparison.
8143
af97b416
TT
81442019-05-04 Tom Tromey <tom@tromey.com>
8145
8146 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8147 (lookup_partial_symbol, print_partial_symbols)
8148 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8149 (psymbol_compare): Update.
8150 (add_psymbol_to_bcache): Clear the entire psymbol.
8151 (maintenance_check_psymtabs): Update.
8152 * psympriv.h (struct partial_symbol): Don't derive from
8153 general_symbol_info.
8154 <obj_section, unrelocated_address, address,
8155 set_unrelocated_address>: Update.
8156 <ginfo>: New member.
8157 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8158 (debug_names::write_psymbols): Update.
8159
9d6d4be8
TV
81602019-05-04 Tom de Vries <tdevries@suse.de>
8161
8162 * contrib/cc-with-tweaks.sh: Support -n arg.
8163
66452beb
PW
81642019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8165
8166 * corelow.c (core_target::detach): Ensure frame cache and
8167 register caches are cleared.
8168 inferior.c (exit_inferior_1): Likewise.
8169
bde09ab7
TT
81702019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8171 Tom Tromey <tom@tromey.com>
8172
8173 * dictionary.c (collate_pending_symbols_by_language): Remove
8174 "struct" from foreach.
8175 * symtab.c (lookup_global_symbol_from_objfile)
8176 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8177 foreach.
8178 * ser-tcp.c (net_open): Remove "struct" from foreach.
8179 * objfiles.c (objfile_relocate, objfile_rebase)
8180 (objfile_has_symbols): Remove "struct" from foreach.
8181 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8182 from foreach.
8183 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8184 foreach.
8185 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8186 "struct" from foreach.
8187 * ada-lang.c (create_excep_cond_exprs)
8188 (ada_exception_catchpoint_cond_string): Remove "struct" from
8189 foreach.
8190
222a8d25
TT
81912019-05-03 Tom Tromey <tromey@adacore.com>
8192
8193 * ada-exp.y (convert_char_literal): Check suffix of each
8194 enumerator.
8195
fcd60b84
DP
81962019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8197
8198 PR ada/21406:
8199 * ada-exp.y (yywrap): Don't define.
8200 * ada-lex.l (%option): Add noyywrap
8201 (yywrap): Remove.
8202
5f2459c2
EZ
82032019-05-03 Eli Zaretskii <eliz@gnu.org>
8204
353ea2d1
EZ
8205 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8206 _WIN32_WINNT to the XP level, unless already defined to a higher
8207 level.
8208
8209 * unittests/parse-connection-spec-selftests.c:
8210 * ser-tcp.c:
8211 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8212 override.
8213
5f2459c2
EZ
8214 * symfile.c (find_separate_debug_file): Remove colon from the
8215 drive spec of DOS/Windows file names of the target, so that the
8216 file name produced from DEBUGDIR and the target's directory will
8217 be valid on DOS/Windows systems.
8218
80062eb9
AB
82192019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8220
8221 * rust-lang.c (val_print_struct): Handle printing structures
8222 containing strings.
8223
b8c05e85
TT
82242019-05-02 Tom Tromey <tromey@adacore.com>
8225
8226 * valarith.c (_initialize_valarith): Remove.
8227
4504bbde
TT
82282019-05-01 Tom Tromey <tromey@adacore.com>
8229
8230 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8231 bitfields.
8232
d48e62f4
TT
82332019-05-01 Tom Tromey <tromey@adacore.com>
8234
8235 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8236 for big-endian copies.
8237
15f18d14
AT
82382019-04-30 Ali Tamur <tamur@google.com>
8239 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8240 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8241 (read_3_bytes): New function.
8242
ab4ee614
JB
82432019-04-30 Joel Brobecker <brobecker@adacore.com>
8244
8245 * windows-nat.c (main_thread_id): Delete.
8246 (handle_output_debug_string): Replace main_thread_id by
8247 current_event.dwThreadId.
8248 (fake_create_process): Likewise.
8249 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8250 Do not set main_thread_id.
8251 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8252 current_event.dwThreadId.
8253 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8254
8ed5b76e
JB
82552019-04-30 Joel Brobecker <brobecker@adacore.com>
8256
8257 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8258 Use current_event.dwThreadId instead of main_thread_id.
8259
2ff0a947
TT
82602019-04-30 Tom Tromey <tromey@adacore.com>
8261
8262 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8263 (create_excep_cond_exprs): Iterate over program spaces.
8264 (ada_exception_catchpoint_cond_string): Examine all minimal
8265 symbols for exception types.
8266
a776957c
TT
82672019-04-30 Tom Tromey <tromey@adacore.com>
8268
8269 PR c++/24470:
8270 * dwarf2read.c (process_structure_scope): Handle case where type
8271 has template parameters but no symbol was created.
8272
bc68014d
AB
82732019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8274 Chris January <chris.january@arm.com>
8275
8276 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8277 qualifier.
8278 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8279
f1fdc960
AB
82802019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8281
8282 * f-typeprint.c (f_print_type): Update rules for printing
8283 whitespace.
8284 (f_type_print_varspec_suffix): Likewise.
8285
bf7a4de1
AB
82862019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8287 Chris January <chris.january@arm.com>
8288
8289 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8290 function arguments.
8291
bbe75b9d
AB
82922019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8293
8294 * f-lang.c (build_fortran_types): Change name of void type to
8295 lower case.
8296 * f-typeprint.c (f_type_print_base): Print the name of the void
8297 type, rather than a fixed string.
8298 * f-valprint.c (f_decorations): Use lower case void string.
8299
1db455a7
AB
83002019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8301 Chris January <chris.january@arm.com>
8302
8303 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8304 types for Fortran.
8305
b6d03bb2
AB
83062019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8307 Chris January <chris.january@arm.com>
8308 David Lecomber <david.lecomber@arm.com>
8309
8310 * f-exp.y (BINOP_INTRINSIC): New token.
8311 (exp): New parser rule handling BINOP_INTRINSIC.
8312 (f77_keywords): Add new builtin procedures.
8313 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8314 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8315 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8316 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8317 (print_unop_subexp_f): New function.
8318 (print_binop_subexp_f): New function.
8319 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8320 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8321 (dump_subexp_body_f): Likewise.
8322 (operator_check_f): Likewise.
8323 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8324 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8325
83228e93
AB
83262019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8327
8328 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8329 UNOP_KIND.
8330 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8331 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8332 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8333 (operator_length_f): New fuction.
8334 (print_subexp_f): New function.
8335 (op_name_f): New function.
8336 (dump_subexp_body_f): New function.
8337 (operator_check_f): New function.
8338 (exp_descriptor_f): Replace standard expression handling functions
8339 with new functions.
8340 * gdb/fortran-operator.def: New file.
8341 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8342 * gdb/std-operator.def: Remove UNOP_KIND.
8343
6fdcd7cc
AB
83442019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8345
8346 * std-operator.def: Remove unbalanced, stray double quote
8347 character.
8348
2e62ab40
AB
83492019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8350 Chris January <chris.january@arm.com>
8351 Daniel Everett <daniel.everett@arm.com>
8352 Nick Forrington <nick.forrington@arm.com>
8353 Richard Bunt <richard.bunt@arm.com>
8354
8355 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8356 of depth when printing anonymous structs or unions.
8357 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8358 Don't print either the top-level value, or the children if the
8359 max-depth is exceeded.
8360 (ppscm_print_children): When printing the key of a map, allow one
8361 extra level of depth.
8362 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8363 print either the top-level value, or the children if the max-depth
8364 is exceeded.
8365 (print_children): When printing the key of a map, allow one extra
8366 level of depth.
8367 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8368 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8369 (user_print_options): Initialise max_depth field.
8370 (val_print_scalar_or_string_type_p): New function.
8371 (val_print): Check to see if the max depth has been reached.
8372 (val_print_check_max_depth): Define new function.
8373 (show_print_max_depth): New function.
8374 (_initialize_valprint): Add 'print max-depth' option.
8375 * valprint.h (struct value_print_options) <max_depth>: New field.
8376 (val_print_check_max_depth): Declare new function.
8377 * NEWS: Document new feature.
8378
4be290b2
AB
83792019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8380
8381 * ada-lang.c (ada_language_defn): Initialise new field.
8382 * c-lang.c (c_is_string_type_p): New function.
8383 (c_language_defn): Initialise new field.
8384 (cplus_language_defn): Initialise new field.
8385 (asm_language_defn): Initialise new field.
8386 (minimal_language_defn): Initialise new field.
8387 * c-lang.h (c_is_string_type_p): Declare new function.
8388 * d-lang.c (d_language_defn): Initialise new field.
8389 * f-lang.c (f_is_string_type_p): New function.
8390 (f_language_defn): Initialise new field.
8391 * go-lang.c (go_is_string_type_p): New function.
8392 (go_language_defn): Initialise new field.
8393 * language.c (default_is_string_type_p): New function.
8394 (unknown_language_defn): Initialise new field.
8395 (auto_language_defn): Initialise new field.
8396 * language.h (struct language_defn) <la_is_string_type_p>: New
8397 member variable.
8398 (default_is_string_type_p): Declare new function.
8399 * m2-lang.c (m2_language_defn): Initialise new field.
8400 * objc-lang.c (objc_language_defn): Initialise new field.
8401 * opencl-lang.c (opencl_language_defn): Initialise new field.
8402 * p-lang.c (pascal_is_string_type_p): New function.
8403 (pascal_language_defn): Initialise new field.
8404 * rust-lang.c (rust_is_string_type_p): New function.
8405 (rust_language_defn): Initialise new field.
8406
721b08c6
AB
84072019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8408
8409 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8410 New field.
8411 * ada-lang.c (ada_language_defn): Initialise new field.
8412 * c-lang.c (c_language_defn): Likewise.
8413 (cplus_language_defn): Likewise.
8414 (asm_language_defn): Likewise.
8415 (minimal_language_defn): Likewise.
8416 * d-lang.c (d_language_defn): Likewise.
8417 * f-lang.c (f_language_defn): Likewise.
8418 * go-lang.c (go_language_defn): Likewise.
8419 * language.c (unknown_language_defn): Likewise.
8420 (auto_language_defn): Likewise.
8421 * m2-lang.c (m2_language_defn): Likewise.
8422 * objc-lang.c (objc_language_defn): Likewise.
8423 * opencl-lang.c (opencl_language_defn): Likewise.
8424 * p-lang.c (pascal_language_defn): Likewise.
8425 * rust-lang.c (rust_language_defn): Likewise.
8426
fc913e53
AB
84272019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8428
8429 * ada-lang.c (ada_is_character_type): Change return type to bool.
8430 (ada_is_string_type): Likewise.
8431 * ada-lang.h (ada_is_character_type): Update declaration
8432 (ada_is_string_type): Likewise.
8433
fa731fa0
PW
84342019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8435
8436 Support style in 'frame|thread apply'
8437
8438 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8439 * record.c (record_start, record_stop): Update callers of
8440 execute_command_to_string with false.
8441 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8442 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8443 methods.
8444 (class string_file): New constructor with term_out parameter.
8445 Override methods term_out and can_emit_style_escape. New member
8446 term_out.
8447 (class stdio_file): Override can_emit_style_escape.
8448 (class tee_file): Override term_out and can_emit_style_escape.
8449 * utils.h (can_emit_style_escape): Remove.
8450 * utils.c (can_emit_style_escape): Likewise.
8451 Update all callers of can_emit_style_escape (SOMESTREAM) to
8452 SOMESTREAM->can_emit_style_escape.
8453 * source-cache.c (source_cache::get_source_lines): Likewise.
8454 * stack.c (frame_apply_command_count): Call execute_command_to_string
8455 passing the term_out characteristic of the current gdb_stdout.
8456 * thread.c (thr_try_catch_cmd): Likewise.
8457 * top.c (execute_command_to_string): pass term_out parameter
8458 to construct the string_file for the command output.
8459 * ui-file.c (term_cli_styling): New function (most code moved
8460 from utils.c can_emit_style_escape).
8461 (string_file::string_file, string_file::can_emit_style_escape,
8462 stdio_file::can_emit_style_escape, tee_file::term_out,
8463 tee_file::can_emit_style_escape): New functions.
8464
136afab8
PW
84652019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8466
8467 * NEWS: Mention the new set|show may-call-functions.
8468 * infcall.c (may_call_functions_p): New variable.
8469 (show_may_call_functions_p): New function.
8470 (call_function_by_hand_dummy): Throws an error if not
8471 may-call-functions.
8472 (_initialize_infcall): Call add_setshow_boolean_cmd for
8473 may-call-functions.
8474
725cbb63
KS
84752019-04-25 Keith Seitz <keiths@redhat.com>
8476
8477 PR c++/24367
8478 * cp-support.c (inspect_type): Don't attempt substitutions
8479 of symbol with the same name.
8480
3d1cbb78
TT
84812019-04-25 Tom Tromey <tromey@adacore.com>
8482
8483 PR gdb/24475:
8484 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8485 static.
8486
94aeb44b
TT
84872019-04-25 Tom Tromey <tromey@adacore.com>
8488
8489 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8490 rvalue reference.
8491 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8492 (gdb_xml_parser::parse): Use std::move.
8493 * python/python-internal.h (gdbpy_convert_exception): Take a const
8494 reference.
8495 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8496 std::move.
8497 * python/py-utils.c (gdbpy_convert_exception): Take a const
8498 reference.
8499 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8500 Use std::move.
8501 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8502 Use std::move.
8503 * mi/mi-main.c (mi_print_exception): Take a const reference.
8504 * main.c (handle_command_errors): Take a const reference.
8505 * linespec.c (parse_linespec): Use std::move.
8506 * infcall.c (run_inferior_call): Use std::move.
8507 (call_function_by_hand_dummy): Use std::move.
8508 * exec.c (try_open_exec_file): Use std::move.
8509 * exceptions.h (exception_print, exception_fprintf)
8510 (exception_print_same): Update.
8511 * exceptions.c (print_exception, exception_print)
8512 (exception_fprintf, exception_print_same): Change parameters to
8513 const reference.
8514 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8515 * common/new-op.c: Use std::move.
8516 * common/common-exceptions.h (struct gdb_exception): Add move
8517 constructor.
8518 (struct gdb_exception_error, struct gdb_exception_quit, struct
8519 gdb_quit_bad_alloc): Change constructor to move constructor.
8520 (throw_exception): Change parameter to rvalue reference.
8521 * common/common-exceptions.c (throw_exception): Take rvalue
8522 reference.
8523 * cli/cli-interp.c (safe_execute_command): Use std::move.
8524 * breakpoint.c (insert_bp_location, location_to_sals): Use
8525 std::move.
8526
680d7fd5
TT
85272019-04-25 Tom Tromey <tromey@adacore.com>
8528
8529 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8530 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8531 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8532 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8533 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8534 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8535 guile/scm-value.c: Use unpack.
8536 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8537 gdbscm_gdb_exception.
8538 (gdbscm_throw_gdb_exception): Likewise.
8539 (struct gdbscm_gdb_exception): New.
8540 (unpack): New function.
8541 (gdbscm_wrap): Use unpack.
8542
c6fdd8b2
TT
85432019-04-25 Tom Tromey <tromey@adacore.com>
8544
8545 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8546 (gdb_rl_callback_handler): Use std::move.
8547 * common/common-exceptions.h (struct gdb_exception): Add move
8548 assignment operator.
8549 (throw_exception_sjlj): Change "exception" to const reference.
8550 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8551 (throw_exception_sjlj): Change "exception" to const reference.
8552
cc06b668
TT
85532019-04-25 Tom Tromey <tromey@adacore.com>
8554
8555 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8556 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8557 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8558 Update.
8559 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8560 Update.
8561 * mi/mi-interp.c (mi_interp::exec): Update.
8562 * linespec.c (parse_linespec): Update.
8563 * infcall.c (run_inferior_call): Update.
8564 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8565 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8566 (gdbscm_lookup_global_symbol): Update.
8567 * guile/scm-param.c (gdbscm_parameter_value): Update.
8568 * guile/scm-frame.c (gdbscm_frame_read_register)
8569 (gdbscm_frame_read_var): Update.
8570 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8571 * exec.c (try_open_exec_file): Update.
8572 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8573 (gdb_rl_callback_handler): Update.
8574 * common/common-exceptions.h (exception_none): Don't declare.
8575 * common/common-exceptions.c (exception_none): Don't define.
8576 (struct catcher) <exception>: Update.
8577 * cli/cli-interp.c (safe_execute_command): Update.
8578 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8579
cf532bd1
AT
85802019-04-25 Ali Tamur <tamur@google.com>
8581
8582 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8583 (read_attribute_value): Likewise.
8584 (dwarf2_read_addr_index): Update comment.
8585 (read_str_index): Add DW_FORM_strx.
8586 (dwarf2_string_attr): Likewise.
8587 (dwarf2_const_value_attr): Likewise.
8588 (dump_die_shallow): Likewise.
8589 (dwarf2_fetch_constant_bytes): Likewise.
8590 (skip_form_bytes): Likewise.
8591 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8592
82433e3e
SDJ
85932019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8594
8595 PR corefiles/11608
8596 PR corefiles/18187
8597 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8598 OFFSET. Verify if current mapping contains an ELF header.
8599 (linux_find_memory_regions_full): Adjust call to
8600 dump_mapping_p.
8601
723adb65
SL
86022019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8603 Kang Li <kanglictf@gmail.com>
8604
8605 PR gdb/21600
8606
8607 * dwarf2-frame.c (read_initial_length): Be consistent about using
8608 unsigned representation of length.
8609 (decode_frame_entry_1): Likewise. Check for wraparound of
8610 end pointer as well as buffer overflow.
8611
596179f7
SDJ
86122019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8613
8614 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8615 "vq".
8616
a59240a4
TT
86172019-04-24 Tom Tromey <tromey@adacore.com>
8618
8619 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8620
f872fdbb
AB
86212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8622
8623 * s12z-tdep.c (s12z_unwind_pc): Delete.
8624 (s12z_unwind_sp): Delete.
8625 (s12z_gdbarch_init): Don't register deleted functions with
8626 gdbarch.
8627
b614e6f3
AB
86282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8629
8630 * rl78-tdep.c (rl78_unwind_sp): Delete.
8631 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8632
14faed38
AB
86332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8634
8635 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8636 (xstormy16_unwind_pc): Delete.
8637 (xstormy16_dummy_id): Delete.
8638 (xstormy16_gdbarch_init): Don't register deleted functions with
8639 gdbarch.
8640
541aad8a
AB
86412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8642
8643 * vax-tdep.c (vax_unwind_pc): Delete.
8644 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8645
29222070
AB
86462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8647
8648 * v850-tdep.c (v850_unwind_sp): Delete.
8649 (v850_unwind_pc): Delete.
8650 (v850_dummy_id): Delete.
8651 (v850_gdbarch_init): Don't register deleted functions with
8652 gdbarch.
8653
0f534d76
AB
86542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8655
8656 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8657 (tilegx_unwind_pc): Delete.
8658 (tilegx_unwind_dummy_id): Delete.
8659 (tilegx_gdbarch_init): Don't register deleted functions with
8660 gdbarch.
8661
1ba7b7f9
AB
86622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8663
8664 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8665 (tic6x_dummy_id): Delete.
8666 (tic6x_gdbarch_init): Don't register deleted functions with
8667 gdbarch.
8668
d31f262c
AB
86692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8670
8671 * sparc-tdep.c (sparc_unwind_pc): Delete.
8672 (sparc32_gdbarch_init): Don't register deleted function with
8673 gdbarch.
8674
6d14d64d
AB
86752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8676
8677 * sh-tdep.c (sh_unwind_sp): Delete.
8678 (sh_unwind_pc): Delete.
8679 (sh_dummy_id): Delete.
8680 (sh_gdbarch_init): Don't register deleted functions with
8681 gdbarch.
8682
a40dde9d
AB
86832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8684
8685 * score-tdep.c (score_unwind_sp): Delete.
8686 (score_unwind_pc): Delete.
8687 (score_dummy_id): Delete.
8688 (score_gdbarch_init): Don't register deleted functions with
8689 gdbarch.
8690
47c47d69
AB
86912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8692
8693 * rx-tdep.c (rx_unwind_pc): Delete.
8694 (rx_unwind_sp): Delete.
8695 (rx_dummy_id): Delete.
8696 (rx_gdbarch_init): Don't register deleted functions with
8697 gdbarch. Update comment.
8698
833a4480
AB
86992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8700
8701 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8702 (rs6000_dummy_id): Delete.
8703 (rs6000_gdbarch_init): Don't register deleted functions with
8704 gdbarch.
8705
3f2cef49
AB
87062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8707
8708 * or1k-tdep.c (or1k_dummy_id): Delete.
8709 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8710
96acf884
AB
87112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8712
8713 * nios2-tdep.c (nios2_dummy_id): Delete.
8714 (nios2_unwind_sp): Delete.
8715 (nios2_gdbarch_init): Don't register deleted functions with
8716 gdbarch.
8717
ca0ab0aa
AB
87182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8719
8720 * nds32-tdep.c (nds32_dummy_id): Delete.
8721 (nds32_unwind_pc): Delete.
8722 (nds32_unwind_sp): Delete.
8723 (nds32_gdbarch_init): Don't register deleted functions with
8724 gdbarch.
8725
c8259044
AB
87262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8727
8728 * msp430-tdep.c (msp430_unwind_pc): Delete.
8729 (msp430_unwind_sp): Delete.
8730 (msp430_dummy_id): Delete.
8731 (msp430_gdbarch_init): Don't register deleted functions with
8732 gdbarch.
8733
27f113c8
AB
87342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8735
8736 * moxie-tdep.c (moxie_unwind_sp): Delete.
8737 (moxie_unwind_pc): Delete.
8738 (moxie_dummy_id): Delete.
8739 (moxie_gdbarch_init): Don't register deleted functions with
8740 gdbarch.
8741
aee6c3cd
AB
87422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8743
8744 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8745 (mn10300_unwind_pc): Delete.
8746 (mn10300_unwind_sp): Delete.
8747 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8748 mn10300_unwind_sp.
8749 (mn10300_frame_unwind_init): Don't register deleted functions with
8750 gdbarch.
8751
8e2b5aea
AB
87522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8753
8754 * mep-tdep.c (mep_unwind_pc): Delete.
8755 (mep_unwind_sp): Delete.
8756 (mep_dummy_id): Delete.
8757 (mep_gdbarch_init): Don't register deleted functions with
8758 gdbarch.
8759
43cf3ede
AB
87602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8761
8762 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8763 (m68hc11_unwind_sp): Delete.
8764 (m68hc11_gdbarch_init): Don't register deleted functions with
8765 gdbarch.
8766
5e79b7bb
AB
87672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8768
8769 * m32r-tdep.c (m32r_unwind_sp): Delete.
8770 (m32r_unwind_pc): Delete.
8771 (m32r_dummy_id): Delete.
8772 (m32r_gdbarch_init): Don't register deleted functions with
8773 gdbarch.
8774
89b268d8
AB
87752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8776
8777 * m32c-tdep.c (m32c_unwind_pc): Delete.
8778 (m32c_unwind_sp): Delete.
8779 (m32c_dummy_id): Delete.
8780 (m32c_gdbarch_init): Don't register deleted functions with
8781 gdbarch.
8782
946c28d2
AB
87832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8784
8785 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8786 (lm32_unwind_pc): Delete.
8787 (lm32_dummy_id): Delete.
8788 (lm32_gdbarch_init): Don't register deleted functions with
8789 gdbarch.
8790
bf12844a
AB
87912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8792
8793 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8794 (iq2000_unwind_pc): Delete.
8795 (iq2000_dummy_id): Delete.
8796 (iq2000_gdbarch_init): Don't register deleted functions with
8797 gdbarch.
8798
ecbc06d2
AB
87992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8800
8801 * nds32-tdep.c (nds32_type_align): Delete.
8802 (nds32_push_dummy_call): Use type_align instead.
8803
030197b4
AB
88042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8805
8806 * arm-tdep.c (arm_type_align): Only handle vector override case.
8807 (arm_push_dummy_call): Use type_align.
8808 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8809
b907456c
AB
88102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8811
8812 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8813 case.
8814 (pass_on_stack): Use type_align.
8815 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8816 function.
8817
9e97ba43
TT
88182019-04-23 Tom Tromey <tromey@adacore.com>
8819
8820 * dwarf2read.c (line_header::file_name_at): Remove unused
8821 overload.
8822
6892f601
TV
88232019-04-23 Tom de Vries <tdevries@suse.de>
8824
8825 PR gdb/24438
8826 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8827 invocation.
8828
336d760d
AT
8829
88302019-03-27 Ali Tamur <tamur@google.com>
8831
8832 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8833 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8834 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8835 (dwarf_expr_context::get_addr_index): Likewise
8836 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8837 (symbol_needs_eval_context::get_addr_index): Likewise
8838 (disassemble_dwarf_expression): Add DW_OP_addrx
8839 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8840 (read_cutu_die_from_dwo): Update comment
8841 (skip_one_die): Add DW_FORM_addrx
8842 (read_attribute_value): Likewise
8843 (var_decode_location): Add DW_OP_addrx
8844 (dwarf2_const_value_attr): Add DW_FORM_addrx
8845 (dump_die_shallow): Likewise
8846 (dwarf2_fetch_constant_bytes): Likewise
8847 (decode_locdesc): Add DW_OP_addrx
8848 (skip_form_bytes): Add DW_FORM_addrx
8849
ad9d13f8
AT
88502019-04-22 Ali Tamur <tamur@google.com>
8851
8852 * MAINTAINERS (Write After Approval): Add self.
8853
d70cc3ba
SM
88542019-04-22 Simon Marchi <simon.marchi@efficios.com>
8855
8856 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8857 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8858 (open_symbol_file_object): Likewise.
8859 (svr4_default_sos): Add info parameter.
8860 (svr4_read_so_list): Likewise.
8861 (svr4_current_sos_direct): Adjust functions calls to pass down
8862 info.
8863 (svr4_current_sos_1): Add info parameter.
8864 (svr4_current_sos): Call get_svr4_info, pass info down to
8865 svr4_current_sos_1.
8866 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8867 get_svr4_info.
8868 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8869 get_svr4_info.
8870 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8871 to get_svr4_info.
8872 (probes_table_remove_objfile_probes): Likewise.
8873 (register_solib_event_probe): Add info parameter.
8874 (solist_update_incremental): Pass info parameter down to
8875 svr4_read_so_list.
8876 (disable_probes_interface): Add info parameter.
8877 (svr4_handle_solib_event): Pass current_program_space to
8878 get_svr4_info. Adjust disable_probes_interface cleanup.
8879 (svr4_create_probe_breakpoints): Add info parameter, pass it
8880 down to register_solib_event_probe.
8881 (svr4_create_solib_event_breakpoints): Add info parameter,
8882 pass it down to svr4_create_probe_breakpoints.
8883 (enable_break): Pass info down to
8884 svr4_create_solib_event_breakpoints.
8885 (svr4_solib_create_inferior_hook): Pass current_program_space to
8886 get_svr4_info.
8887 (svr4_clear_solib): Likewise.
8888
7905fc35
PA
88892019-04-22 Pedro Alves <palves@redhat.com>
8890
8891 * solib-svr4.c (svr4_free_objfile_observer): New.
8892 (probe_and_action::objfile): New field.
8893 (probes_table_htab_remove_objfile_probes)
8894 (probes_table_remove_objfile_probes): New functions.
8895 (register_solib_event_probe): Add 'objfile' parameter. Store it
8896 in the new probe_and_action. Don't store the probe in 'lookup'.
8897 (svr4_create_probe_breakpoints): Pass objfile to
8898 register_solib_event_probe.
8899 (_initialize_svr4_solib): Register a free_objfile observer.
8900
fb881986
TT
89012019-04-19 Tom Tromey <tom@tromey.com>
8902
8903 * common/queue.h: Remove.
8904
8732db6c
TT
89052019-04-19 Tom Tromey <tom@tromey.com>
8906
8907 * event-loop.c: Don't include "common/queue.h".
8908
97dfbadd
TT
89092019-04-19 Tom Tromey <tom@tromey.com>
8910
8911 * remote.c (remote_target): Use delete.
8912 * remote-notif.h: Include <list>, not "common/queue.h".
8913 (notif_client_p): Remove typedef.
8914 (remote_notif_state): Add constructor, destructor, initializer.
8915 <notif_queue>: Now a std::list.
8916 (remote_notif_state_xfree): Don't declare.
8917 * remote-notif.c (remote_notif_process, handle_notification)
8918 (remote_notif_state_allocate): Update.
8919 (~remote_notif_state): Rename from remote_notif_state_xfree.
8920
cf250e36
TT
89212019-04-19 Tom Tromey <tom@tromey.com>
8922
8923 * symfile.c (reread_symbols): Update.
8924 * objfiles.c (objfile_register_static_link)
8925 (objfile_lookup_static_link): Update
8926 (~objfile) Don't delete static_links.
8927 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8928
61f4b350
TT
89292019-04-19 Tom Tromey <tom@tromey.com>
8930
8931 * type-stack.h (struct type_stack) <insert>: Constify string.
8932 * type-stack.c (type_stack::insert): Constify string.
8933 * gdbtypes.h (lookup_template_type): Update.
8934 (address_space_name_to_int): Update.
8935 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8936 const.
8937 (lookup_template_type): Make name const.
8938 * c-exp.y: Update rules.
8939 (lex_one_token, classify_name, classify_inner_name)
8940 (c_print_token): Update.
8941 * p-exp.y: Update rules.
8942 (yylex): Update.
8943 * f-exp.y: Update rules.
8944 (yylex): Update.
8945 * d-exp.y: Update rules.
8946 (lex_one_token, classify_name, classify_inner_name): Update.
8947 * parse.c (write_dollar_variable, copy_name): Return std::string.
8948 * parser-defs.h (copy_name): Change return type.
8949 * m2-exp.y: Update rules.
8950 (yylex): Update.
8951 * go-exp.y (lex_one_token): Update.
8952 Update rules.
8953 (classify_unsafe_function, classify_packaged_name)
8954 (classify_name, yylex): Update.
8955
189b8c2e
ST
89562019-04-19 Sergei Trofimovich <siarheit@google.com>
8957
8958 * configure.ac: add --enable-source-highlight switch.
8959 * configure: Regenerate.
8960 * top.c (print_gdb_version): plumb --enable-source-highlight
8961 status to "show configuration".
8962
8ecb59f8
TT
89632019-04-19 Tom Tromey <tromey@adacore.com>
8964
8965 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8966 Check ADA_TYPE_P.
8967 (empty_record, ada_template_to_fixed_record_type_1)
8968 (template_to_static_fixed_type)
8969 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8970 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8971 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8972 macros.
8973
62160ec9
TT
89742019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8975
8976 PR symtab/24423:
8977 * source.c (print_source_lines_base): Advance "iter" when a
8978 control character is seen.
8979
f2ae8bc8
PW
89802019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8981
8982 * inferior.h (struct infcall_suspend_state_deleter):
8983 Catch exception in destructor to avoid crash.
8984
d563b953
PW
89852019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8986
8987 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8988 close to the add_com "shell".
8989
dc34c897
TT
89902019-04-18 Tom Tromey <tromey@adacore.com>
8991
8992 * process-stratum-target.h (class process_stratum_target)
8993 <stratum>: Add "final".
8994
a12e5744
TT
89952019-04-17 Tom Tromey <tromey@adacore.com>
8996
8997 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8998 against nullptr before use.
8999
a7e559cc
AH
90002019-04-17 Alan Hayward <alan.hayward@arm.com>
9001
9002 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9003
c01660c6
AB
90042019-04-17 Jim Wilson <jimw@sifive.com>
9005 Andrew Burgess <andrew.burgess@embecosm.com>
9006
9007 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9008 code read might fail, assume 4-byte breakpoint in that case.
9009
4aa866af
LS
90102019-04-15 Leszek Swirski <leszeks@google.com>
9011
9012 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9013 rather than a hand-rolled POD check when checking for forced MEMORY
9014 classification.
9015
48574d91
AH
90162019-04-15 Alan Hayward <alan.hayward@arm.com>
9017
9018 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9019 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9020 function.
9021 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9022 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9023 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9024 declaration.
9025
4da037ef
AH
90262019-04-15 Alan Hayward <alan.hayward@arm.com>
9027
9028 * aarch64-linux-nat.c
9029 (aarch64_linux_nat_target::thread_architecture): Add override.
9030 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9031 each VQ.
9032
ccb8d7e8
AH
90332019-04-15 Alan Hayward <alan.hayward@arm.com>
9034
9035 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9036
35add35e
AB
90372019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9038
9039 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9040 target types of size 96-bits, add some additional comments, and
9041 check that the builtin type we found was the correct size.
9042
51196bbc
EZ
90432019-04-12 Eli Zaretskii <eliz@gnu.org>
9044
9045 * utils.c (prompt_for_continue): Don't restore the styling at the
9046 end, as applied_style has the wrong value. This fixes styling in
9047 long lists of file names that are interrupted by the "Continue?"
9048 prompt.
9049
62253a61
AB
90502019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9051
9052 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9053 * c-lang.c (c_language_defn): Likewise.
9054 (cplus_language_defn): Likewise.
9055 (asm_language_defn): Likewise.
9056 (minimal_language_defn): Likewise.
9057 * d-lang.c (d_language_defn): Likewise.
9058 * f-lang.c (f_language_defn): Likewise.
9059 * go-lang.c (go_language_defn): Likewise.
9060 * language.c (unknown_language_defn): Likewise.
9061 (auto_language_defn): Likewise.
9062 * language.h (struct language_defn): Remove la_magic field.
9063 (LANG_MAGIC): Delete.
9064 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9065 * objc-lang.c (objc_language_defn): Likewise.
9066 * opencl-lang.c (opencl_language_defn): Likewise.
9067 * p-lang.c (pascal_language_defn): Likewise.
9068 * rust-lang.c (rust_language_defn): Likewise.
9069
a9158a86
AB
90702019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9071
9072 * riscv-tdep.c (riscv_type_align): New function.
9073 (riscv_type_alignment): Delete.
9074 (riscv_arg_location): Use 'type_align'.
9075 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9076
41077b66
AB
90772019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9078
9079 * gdbtypes.c (type_align): A struct with no non-static fields also
9080 has alignment of 1.
9081
9f0272f8
AB
90822019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9083
9084 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9085 component to 0.
9086 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9087 member.
9088 (riscv_struct_info::analyse): New implementation using new
9089 analyse_inner member function.
9090 (riscv_struct_info::field_offset): New member function.
9091 (riscv_struct_info::m_offsets): New member variable.
9092 (riscv_struct_info::analyse_inner): New private member function,
9093 takes the old implementation of riscv_struct_info::analyse but
9094 extended to track field offsets.
9095 (riscv_call_arg_struct): Update the struct folding special cases
9096 to handle cases where empty C++ structs, which are non-zero
9097 length, are found.
9098 (riscv_arg_location): Initialise the length of each location, a
9099 non-zero length now indicates the location is in use.
9100 (riscv_push_dummy_call): Allow for the first location having a
9101 non-zero offset when setting up arguments.
9102 (riscv_return_value): Likewise, but for return values.
9103
02cf60c7
TT
91042019-04-11 Tom Tromey <tromey@adacore.com>
9105
9106 * utils.c (internal_vproblem): Make "msg" const.
9107
68811f8f
AH
91082019-04-11 Alan Hayward <alan.hayward@arm.com>
9109
9110 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9111 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9112 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9113 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9114
3f52fdbc
KB
91152019-04-10 Kevin Buettner <kevinb@redhat.com>
9116
9117 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9118 function.
9119 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9120 of amd64_collect_native_gregset.
9121 (amd64_linux_nat_target::store_registers): Likewise.
9122
e9ad22ee
TT
91232019-04-10 Tom Tromey <tom@tromey.com>
9124
9125 * symtab.c (lookup_global_symbol_from_objfile)
9126 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9127 * objfiles.h (class separate_debug_iterator): New.
9128 (class separate_debug_range): New.
9129 (struct objfile) <separate_debug_objfiles>: New method.
9130 (objfile_separate_debug_iterate): Don't declare.
9131 * objfiles.c (separate_debug_iterator::operator++): Rename from
9132 objfile_separate_debug_iterate.
9133 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9134 iterator.
9135 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9136 iterator.
9137
ee371134
TT
91382019-04-10 Tom Tromey <tom@tromey.com>
9139
9140 * symfile.c (reread_symbols): Remove old comment.
9141 * objfiles.c (free_all_objfiles): Fix a typo.
9142
bf227d61
TT
91432019-04-10 Tom Tromey <tom@tromey.com>
9144
9145 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9146 * minsyms.c (lookup_minimal_symbol): Use foreach.
9147 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9148 (lookup_minimal_symbol_solib_trampoline): Likewise.
9149 * symfile.c (reread_symbols): Use foreach.
9150
8dc433a0
TT
91512019-04-09 Ivan Begert <ivanbegert@gmail.com>
9152 Tom Tromey <tromey@adacore.com>
9153
9154 PR rust/24414:
9155 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9156 (rust_lex_int_test): Change "value" to be LONGEST.
9157 (rust_lex_tests): Add test for long integer literal.
9158
9ab8741a
TT
91592019-04-09 Tom Tromey <tromey@adacore.com>
9160
9161 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9162 to bool.
9163 (extended_remote_target::attach): Update.
9164 (remote_target::remote_notice_new_inferior): Update.
9165 (remote_target::add_current_inferior_and_thread): Update.
9166 * inferior.c (exit_inferior_1): Use "false".
9167 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9168
e242fd12
SM
91692019-04-09 Simon Marchi <simon.marchi@efficios.com>
9170
9ca1957f 9171 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
9172 the "start" command.
9173
2b0c8b01
KB
91742019-04-08 Kevin Buettner <kevinb@redhat.com>
9175
9176 * python/py-inferior.c (infpy_thread_from_thread_handle):
9177 Adjust comments to reflect renaming of thread_from_thread_handle
9178 to thread_from_handle. Adjust keywords. Fix type error message.
9179 (inferior_object_methods): Add thread_from_handle. Retain
9180 thread_from_thread_handle, but mark it as deprecated.
9181
50a82723
KB
91822019-04-08 Kevin Buettner <kevinb@redhat.com>
9183
9184 * gdbthread.h (find_thread_by_handle): Revise declaration.
9185 * thread.c (find_thread_by_handle): Likewise. Adjust
9186 implementation too.
9187 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9188 support for buffer objects as handles.
9189
cf63b016
KB
91902019-04-08 Kevin Buettner <kevinb@redhat.com>
9191
9192 * python/py-infthread.c (thpy_thread_handle): New function.
9193 (thread_object_methods): Register thpy_thread_handle.
9194
3d6c6204
KB
91952019-04-08 Kevin Buettner <kevinb@redhat.com>
9196
9197 * gdbthread.h (thread_to_thread_handle): Declare.
9198 * thread.c (gdbtypes.h): Include.
9199 (thread_to_thread_handle): New function.
9200
9201 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9202 (target_thread_info_to_thread_handle): Declare.
9203 * target.c (target_thread_info_to_thread_handle): New function.
9204 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9205 * target-delegates.c: Regenerate.
9206
9207 * linux-thread-db.c (class thread_db_target): Add method
9208 thread_info_to_thread_handle.
9209 (thread_db_target::thread_info_to_thread_handle): Define.
9210 * remote.c (class remote_target): Add new method
9211 thread_info_to_thread_handle.
9212 (remote_target::thread_info_to_thread_handle): Define.
9213
56be6ea8
PA
92142019-04-08 Pedro Alves <palves@redhat.com>
9215
9216 * common/common-exceptions.c (throw_exception): Don't create
9217 named object to throw; throw directly.
9218 (throw_it): Likewise. Don't initialize gdb_exception::message
9219 here, with new; pass FMT and AP to the ctor instead.
9220 * common/common-exceptions.h: Include <string>.
9221 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9222 const char *, va_list)): New ctor. Use std::make_shared.
9223 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9224 errors)): Delete.
9225 (gdb_exception_error::gdb_exception_error(enum errors, const char
9226 *, va_list)): New.
9227 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9228 Add assertion.
9229 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9230 errors)): Delete.
9231 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9232 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9233 Add assertion.
9234
eedc3f4f
TT
92352019-04-08 Tom Tromey <tom@tromey.com>
9236
9237 * valops.c (value_rtti_indirect_type): Replace throw_exception
9238 with throw.
9239 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9240 with throw.
9241 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9242 throw.
9243 * target.c (target_translate_tls_address): Replace throw_exception
9244 with throw.
9245 * stack.c (frame_apply_command_count): Replace throw_exception
9246 with throw.
9247 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9248 throw.
9249 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9250 with throw.
9251 * rs6000-tdep.c (rs6000_frame_cache)
9252 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9253 * remote.c: Replace throw_exception with throw.
9254 * record-full.c (record_full_message, record_full_wait_1)
9255 (record_full_restore): Replace throw_exception with throw.
9256 * record-btrace.c:
9257 (get_thread_current_frame_id, record_btrace_start_replaying)
9258 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9259 (cmd_record_btrace_start): Replace throw_exception with throw.
9260 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9261 throw.
9262 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9263 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9264 * linespec.c:
9265 (find_linespec_symbols): Replace throw_exception with throw.
9266 * infrun.c (displaced_step_prepare, resume): Replace
9267 throw_exception with throw.
9268 * infcmd.c (post_create_inferior): Replace throw_exception with
9269 throw.
9270 * inf-loop.c (inferior_event_handler): Replace throw_exception
9271 with throw.
9272 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9273 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9274 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9275 (get_prev_frame_always, get_frame_pc_if_available)
9276 (get_frame_address_in_block_if_available, get_frame_language):
9277 Replace throw_exception with throw.
9278 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9279 throw_exception with throw.
9280 * eval.c (fetch_subexp_value, evaluate_var_value)
9281 (evaluate_funcall, evaluate_subexp_standard): Replace
9282 throw_exception with throw.
9283 * dwarf2loc.c (call_site_find_chain)
9284 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9285 Replace throw_exception with throw.
9286 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9287 with throw.
9288 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9289 throw.
9290 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9291 * completer.c (complete_line_internal): Replace throw_exception
9292 with throw.
9293 * compile/compile-object-run.c (compile_object_run): Replace
9294 throw_exception with throw.
9295 * cli/cli-script.c (process_next_line): Replace throw_exception
9296 with throw.
9297 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9298 (btrace_enable, btrace_maint_update_pt_packets): Replace
9299 throw_exception with throw.
9300 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9301 throw_exception with throw.
9302 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9303 throw_exception with throw.
9304 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9305 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9306 * aarch64-tdep.c (aarch64_make_prologue_cache)
9307 (aarch64_make_stub_cache): Replace throw_exception with throw.
9308
26003a20
TT
93092019-04-08 Tom Tromey <tom@tromey.com>
9310
9311 * common/common-exceptions.c (throw_exception): Rename from
9312 throw_exception_cxx. Remove old copy. Make argument const.
9313 (throw_it): Create and throw exception objects directly.
9314 * common/common-exceptions.h (throw_exception): Make argument
9315 const.
9316 (struct gdb_exception_error): Add constructor.
9317 (struct gdb_exception_quit): Add constructor.
9318
d272eb37
TT
93192019-04-08 Tom Tromey <tom@tromey.com>
9320
9321 * common/common-exceptions.h (exception_rethrow): Don't declare.
9322 (TRY_SJLJ): Update comment.
9323 (TRY, CATCH, END_CATCH): Remove.
9324 * common/common-exceptions.c (exception_rethrow): Remove.
9325
230d2906
TT
93262019-04-08 Tom Tromey <tom@tromey.com>
9327
9328 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9329 Remove.
9330 (gdb_exception_error): Rename from
9331 gdb_exception_RETURN_MASK_ERROR.
9332 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9333 (gdb_quit_bad_alloc): Update.
9334 * aarch64-tdep.c: Update.
9335 * ada-lang.c: Update.
9336 * ada-typeprint.c: Update.
9337 * ada-valprint.c: Update.
9338 * amd64-tdep.c: Update.
9339 * arch-utils.c: Update.
9340 * break-catch-throw.c: Update.
9341 * breakpoint.c: Update.
9342 * btrace.c: Update.
9343 * c-varobj.c: Update.
9344 * cli/cli-cmds.c: Update.
9345 * cli/cli-interp.c: Update.
9346 * cli/cli-script.c: Update.
9347 * common/common-exceptions.c: Update.
9348 * common/new-op.c: Update.
9349 * common/selftest.c: Update.
9350 * compile/compile-c-symbols.c: Update.
9351 * compile/compile-cplus-symbols.c: Update.
9352 * compile/compile-object-load.c: Update.
9353 * compile/compile-object-run.c: Update.
9354 * completer.c: Update.
9355 * corelow.c: Update.
9356 * cp-abi.c: Update.
9357 * cp-support.c: Update.
9358 * cp-valprint.c: Update.
9359 * darwin-nat.c: Update.
9360 * disasm-selftests.c: Update.
9361 * dtrace-probe.c: Update.
9362 * dwarf-index-cache.c: Update.
9363 * dwarf-index-write.c: Update.
9364 * dwarf2-frame-tailcall.c: Update.
9365 * dwarf2-frame.c: Update.
9366 * dwarf2loc.c: Update.
9367 * dwarf2read.c: Update.
9368 * eval.c: Update.
9369 * event-loop.c: Update.
9370 * event-top.c: Update.
9371 * exec.c: Update.
9372 * f-valprint.c: Update.
9373 * fbsd-tdep.c: Update.
9374 * frame-unwind.c: Update.
9375 * frame.c: Update.
9376 * gdbtypes.c: Update.
9377 * gnu-v3-abi.c: Update.
9378 * guile/guile-internal.h: Update.
9379 * guile/scm-block.c: Update.
9380 * guile/scm-breakpoint.c: Update.
9381 * guile/scm-cmd.c: Update.
9382 * guile/scm-disasm.c: Update.
9383 * guile/scm-frame.c: Update.
9384 * guile/scm-lazy-string.c: Update.
9385 * guile/scm-math.c: Update.
9386 * guile/scm-param.c: Update.
9387 * guile/scm-ports.c: Update.
9388 * guile/scm-pretty-print.c: Update.
9389 * guile/scm-symbol.c: Update.
9390 * guile/scm-symtab.c: Update.
9391 * guile/scm-type.c: Update.
9392 * guile/scm-value.c: Update.
9393 * i386-linux-tdep.c: Update.
9394 * i386-tdep.c: Update.
9395 * inf-loop.c: Update.
9396 * infcall.c: Update.
9397 * infcmd.c: Update.
9398 * infrun.c: Update.
9399 * jit.c: Update.
9400 * language.c: Update.
9401 * linespec.c: Update.
9402 * linux-fork.c: Update.
9403 * linux-nat.c: Update.
9404 * linux-tdep.c: Update.
9405 * linux-thread-db.c: Update.
9406 * main.c: Update.
9407 * mi/mi-cmd-break.c: Update.
9408 * mi/mi-cmd-stack.c: Update.
9409 * mi/mi-interp.c: Update.
9410 * mi/mi-main.c: Update.
9411 * objc-lang.c: Update.
9412 * p-valprint.c: Update.
9413 * parse.c: Update.
9414 * ppc-linux-tdep.c: Update.
9415 * printcmd.c: Update.
9416 * python/py-arch.c: Update.
9417 * python/py-breakpoint.c: Update.
9418 * python/py-cmd.c: Update.
9419 * python/py-finishbreakpoint.c: Update.
9420 * python/py-frame.c: Update.
9421 * python/py-framefilter.c: Update.
9422 * python/py-gdb-readline.c: Update.
9423 * python/py-inferior.c: Update.
9424 * python/py-infthread.c: Update.
9425 * python/py-lazy-string.c: Update.
9426 * python/py-linetable.c: Update.
9427 * python/py-objfile.c: Update.
9428 * python/py-param.c: Update.
9429 * python/py-prettyprint.c: Update.
9430 * python/py-progspace.c: Update.
9431 * python/py-record-btrace.c: Update.
9432 * python/py-record.c: Update.
9433 * python/py-symbol.c: Update.
9434 * python/py-type.c: Update.
9435 * python/py-unwind.c: Update.
9436 * python/py-utils.c: Update.
9437 * python/py-value.c: Update.
9438 * python/python.c: Update.
9439 * record-btrace.c: Update.
9440 * record-full.c: Update.
9441 * remote-fileio.c: Update.
9442 * remote.c: Update.
9443 * riscv-tdep.c: Update.
9444 * rs6000-aix-tdep.c: Update.
9445 * rs6000-tdep.c: Update.
9446 * rust-exp.y: Update.
9447 * rust-lang.c: Update.
9448 * s390-tdep.c: Update.
9449 * selftest-arch.c: Update.
9450 * solib-dsbt.c: Update.
9451 * solib-frv.c: Update.
9452 * solib-spu.c: Update.
9453 * solib-svr4.c: Update.
9454 * solib.c: Update.
9455 * sparc64-linux-tdep.c: Update.
9456 * stack.c: Update.
9457 * symfile-mem.c: Update.
9458 * symmisc.c: Update.
9459 * target.c: Update.
9460 * thread.c: Update.
9461 * top.c: Update.
9462 * tracefile-tfile.c: Update.
9463 * tui/tui.c: Update.
9464 * typeprint.c: Update.
9465 * unittests/cli-utils-selftests.c: Update.
9466 * unittests/parse-connection-spec-selftests.c: Update.
9467 * valops.c: Update.
9468 * valprint.c: Update.
9469 * value.c: Update.
9470 * varobj.c: Update.
9471 * windows-nat.c: Update.
9472 * x86-linux-nat.c: Update.
9473 * xml-support.c: Update.
9474
a70b8144
TT
94752019-04-08 Tom Tromey <tom@tromey.com>
9476
9477 * xml-support.c: Use C++ exception handling.
9478 * x86-linux-nat.c: Use C++ exception handling.
9479 * windows-nat.c: Use C++ exception handling.
9480 * varobj.c: Use C++ exception handling.
9481 * value.c: Use C++ exception handling.
9482 * valprint.c: Use C++ exception handling.
9483 * valops.c: Use C++ exception handling.
9484 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9485 handling.
9486 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9487 * typeprint.c: Use C++ exception handling.
9488 * tui/tui.c: Use C++ exception handling.
9489 * tracefile-tfile.c: Use C++ exception handling.
9490 * top.c: Use C++ exception handling.
9491 * thread.c: Use C++ exception handling.
9492 * target.c: Use C++ exception handling.
9493 * symmisc.c: Use C++ exception handling.
9494 * symfile-mem.c: Use C++ exception handling.
9495 * stack.c: Use C++ exception handling.
9496 * sparc64-linux-tdep.c: Use C++ exception handling.
9497 * solib.c: Use C++ exception handling.
9498 * solib-svr4.c: Use C++ exception handling.
9499 * solib-spu.c: Use C++ exception handling.
9500 * solib-frv.c: Use C++ exception handling.
9501 * solib-dsbt.c: Use C++ exception handling.
9502 * selftest-arch.c: Use C++ exception handling.
9503 * s390-tdep.c: Use C++ exception handling.
9504 * rust-lang.c: Use C++ exception handling.
9505 * rust-exp.y: Use C++ exception handling.
9506 * rs6000-tdep.c: Use C++ exception handling.
9507 * rs6000-aix-tdep.c: Use C++ exception handling.
9508 * riscv-tdep.c: Use C++ exception handling.
9509 * remote.c: Use C++ exception handling.
9510 * remote-fileio.c: Use C++ exception handling.
9511 * record-full.c: Use C++ exception handling.
9512 * record-btrace.c: Use C++ exception handling.
9513 * python/python.c: Use C++ exception handling.
9514 * python/py-value.c: Use C++ exception handling.
9515 * python/py-utils.c: Use C++ exception handling.
9516 * python/py-unwind.c: Use C++ exception handling.
9517 * python/py-type.c: Use C++ exception handling.
9518 * python/py-symbol.c: Use C++ exception handling.
9519 * python/py-record.c: Use C++ exception handling.
9520 * python/py-record-btrace.c: Use C++ exception handling.
9521 * python/py-progspace.c: Use C++ exception handling.
9522 * python/py-prettyprint.c: Use C++ exception handling.
9523 * python/py-param.c: Use C++ exception handling.
9524 * python/py-objfile.c: Use C++ exception handling.
9525 * python/py-linetable.c: Use C++ exception handling.
9526 * python/py-lazy-string.c: Use C++ exception handling.
9527 * python/py-infthread.c: Use C++ exception handling.
9528 * python/py-inferior.c: Use C++ exception handling.
9529 * python/py-gdb-readline.c: Use C++ exception handling.
9530 * python/py-framefilter.c: Use C++ exception handling.
9531 * python/py-frame.c: Use C++ exception handling.
9532 * python/py-finishbreakpoint.c: Use C++ exception handling.
9533 * python/py-cmd.c: Use C++ exception handling.
9534 * python/py-breakpoint.c: Use C++ exception handling.
9535 * python/py-arch.c: Use C++ exception handling.
9536 * printcmd.c: Use C++ exception handling.
9537 * ppc-linux-tdep.c: Use C++ exception handling.
9538 * parse.c: Use C++ exception handling.
9539 * p-valprint.c: Use C++ exception handling.
9540 * objc-lang.c: Use C++ exception handling.
9541 * mi/mi-main.c: Use C++ exception handling.
9542 * mi/mi-interp.c: Use C++ exception handling.
9543 * mi/mi-cmd-stack.c: Use C++ exception handling.
9544 * mi/mi-cmd-break.c: Use C++ exception handling.
9545 * main.c: Use C++ exception handling.
9546 * linux-thread-db.c: Use C++ exception handling.
9547 * linux-tdep.c: Use C++ exception handling.
9548 * linux-nat.c: Use C++ exception handling.
9549 * linux-fork.c: Use C++ exception handling.
9550 * linespec.c: Use C++ exception handling.
9551 * language.c: Use C++ exception handling.
9552 * jit.c: Use C++ exception handling.
9553 * infrun.c: Use C++ exception handling.
9554 * infcmd.c: Use C++ exception handling.
9555 * infcall.c: Use C++ exception handling.
9556 * inf-loop.c: Use C++ exception handling.
9557 * i386-tdep.c: Use C++ exception handling.
9558 * i386-linux-tdep.c: Use C++ exception handling.
9559 * guile/scm-value.c: Use C++ exception handling.
9560 * guile/scm-type.c: Use C++ exception handling.
9561 * guile/scm-symtab.c: Use C++ exception handling.
9562 * guile/scm-symbol.c: Use C++ exception handling.
9563 * guile/scm-pretty-print.c: Use C++ exception handling.
9564 * guile/scm-ports.c: Use C++ exception handling.
9565 * guile/scm-param.c: Use C++ exception handling.
9566 * guile/scm-math.c: Use C++ exception handling.
9567 * guile/scm-lazy-string.c: Use C++ exception handling.
9568 * guile/scm-frame.c: Use C++ exception handling.
9569 * guile/scm-disasm.c: Use C++ exception handling.
9570 * guile/scm-cmd.c: Use C++ exception handling.
9571 * guile/scm-breakpoint.c: Use C++ exception handling.
9572 * guile/scm-block.c: Use C++ exception handling.
9573 * guile/guile-internal.h: Use C++ exception handling.
9574 * gnu-v3-abi.c: Use C++ exception handling.
9575 * gdbtypes.c: Use C++ exception handling.
9576 * frame.c: Use C++ exception handling.
9577 * frame-unwind.c: Use C++ exception handling.
9578 * fbsd-tdep.c: Use C++ exception handling.
9579 * f-valprint.c: Use C++ exception handling.
9580 * exec.c: Use C++ exception handling.
9581 * event-top.c: Use C++ exception handling.
9582 * event-loop.c: Use C++ exception handling.
9583 * eval.c: Use C++ exception handling.
9584 * dwarf2read.c: Use C++ exception handling.
9585 * dwarf2loc.c: Use C++ exception handling.
9586 * dwarf2-frame.c: Use C++ exception handling.
9587 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9588 * dwarf-index-write.c: Use C++ exception handling.
9589 * dwarf-index-cache.c: Use C++ exception handling.
9590 * dtrace-probe.c: Use C++ exception handling.
9591 * disasm-selftests.c: Use C++ exception handling.
9592 * darwin-nat.c: Use C++ exception handling.
9593 * cp-valprint.c: Use C++ exception handling.
9594 * cp-support.c: Use C++ exception handling.
9595 * cp-abi.c: Use C++ exception handling.
9596 * corelow.c: Use C++ exception handling.
9597 * completer.c: Use C++ exception handling.
9598 * compile/compile-object-run.c: Use C++ exception handling.
9599 * compile/compile-object-load.c: Use C++ exception handling.
9600 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9601 * compile/compile-c-symbols.c: Use C++ exception handling.
9602 * common/selftest.c: Use C++ exception handling.
9603 * common/new-op.c: Use C++ exception handling.
9604 * cli/cli-script.c: Use C++ exception handling.
9605 * cli/cli-interp.c: Use C++ exception handling.
9606 * cli/cli-cmds.c: Use C++ exception handling.
9607 * c-varobj.c: Use C++ exception handling.
9608 * btrace.c: Use C++ exception handling.
9609 * breakpoint.c: Use C++ exception handling.
9610 * break-catch-throw.c: Use C++ exception handling.
9611 * arch-utils.c: Use C++ exception handling.
9612 * amd64-tdep.c: Use C++ exception handling.
9613 * ada-valprint.c: Use C++ exception handling.
9614 * ada-typeprint.c: Use C++ exception handling.
9615 * ada-lang.c: Use C++ exception handling.
9616 * aarch64-tdep.c: Use C++ exception handling.
9617
3d6e9d23
TT
96182019-04-08 Tom Tromey <tom@tromey.com>
9619
9620 * xml-support.c (gdb_xml_parser::parse): Update.
9621 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9622 * value.c (show_convenience): Update.
9623 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9624 (test_parse_flags_qcs): Update.
9625 * thread.c (thr_try_catch_cmd): Update.
9626 * target.c (target_translate_tls_address): Update.
9627 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9628 (info_frame_command_core, frame_apply_command_count): Update.
9629 * rust-exp.y (rust_lex_exception_test): Update.
9630 * riscv-tdep.c (riscv_print_one_register_info): Update.
9631 * remote.c (remote_target::enable_btrace): Update.
9632 * record-btrace.c (record_btrace_enable_warn): Update.
9633 * python/py-utils.c (gdbpy_convert_exception): Update.
9634 * printcmd.c (do_one_display, print_variable_and_value): Update.
9635 * mi/mi-main.c (mi_print_exception): Update.
9636 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9637 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9638 * linux-nat.c (linux_nat_target::attach): Update.
9639 * linux-fork.c (class scoped_switch_fork_info): Update.
9640 * infrun.c (displaced_step_prepare): Update.
9641 * infcall.c (call_function_by_hand_dummy): Update.
9642 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9643 * gnu-v3-abi.c (print_one_vtable): Update.
9644 * frame.c (get_prev_frame_always): Update.
9645 * f-valprint.c (info_common_command_for_block): Update.
9646 * exec.c (try_open_exec_file): Update.
9647 * exceptions.c (print_exception, exception_print)
9648 (exception_fprintf, exception_print_same): Update.
9649 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9650 * dwarf-index-cache.c (index_cache::store)
9651 (index_cache::lookup_gdb_index): Update.
9652 * darwin-nat.c (maybe_cache_shell): Update.
9653 * cp-valprint.c (cp_print_value_fields): Update.
9654 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9655 (gcc_cplus_symbol_address): Update.
9656 * compile/compile-c-symbols.c (gcc_convert_symbol)
9657 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9658 * common/selftest.c: Update.
9659 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9660 a std::string.
9661 (exception_try_scope_entry, exception_try_scope_exit): Don't
9662 declare.
9663 (struct exception_try_scope): Remove.
9664 (TRY): Don't use exception_try_scope.
9665 (struct gdb_exception): Add constructor, operator=.
9666 <what>: New method.
9667 (struct gdb_exception_RETURN_MASK_ALL)
9668 (struct gdb_exception_RETURN_MASK_ERROR)
9669 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9670 (struct gdb_quit_bad_alloc): Update.
9671 * common/common-exceptions.c (exception_none): Change
9672 initializer.
9673 (struct catcher) <state, exception>: Initialize inline.
9674 <prev>: Remove member.
9675 (current_catcher): Remove.
9676 (catchers): New global.
9677 (exceptions_state_mc_init): Simplify.
9678 (catcher_pop): Remove.
9679 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9680 (try_scope_depth, exception_try_scope_entry)
9681 (exception_try_scope_exit): Remove.
9682 (throw_exception_sjlj): Update.
9683 (exception_messages, exception_messages_size): Remove.
9684 (throw_it): Simplify.
9685 (gdb_exception_sliced_copy): Remove.
9686 (throw_exception_cxx): Update.
9687 * cli/cli-script.c (script_from_file): Update.
9688 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9689 Update.
9690 * ada-valprint.c (ada_val_print): Update.
9691 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9692 (create_excep_cond_exprs): Update.
9693
c5c10118
TT
96942019-04-08 Tom Tromey <tom@tromey.com>
9695
9696 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9697 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9698 (TRY, CATCH, END_CATCH): Remove some definitions.
9699 * common/common-exceptions.c: Don't use GDB_XCPT.
9700 (catcher_list_size): Remove.
9701 (throw_exception, throw_it): Simplify.
9702
4de283e4
TT
97032019-04-05 Tom Tromey <tom@tromey.com>
9704
9705 Revert the header-sorting patch.
9706 * ft32-tdep.c: Revert.
9707 * frv-tdep.c: Revert.
9708 * frv-linux-tdep.c: Revert.
9709 * frame.c: Revert.
9710 * frame-unwind.c: Revert.
9711 * frame-base.c: Revert.
9712 * fork-child.c: Revert.
9713 * findvar.c: Revert.
9714 * findcmd.c: Revert.
9715 * filesystem.c: Revert.
9716 * filename-seen-cache.h: Revert.
9717 * filename-seen-cache.c: Revert.
9718 * fbsd-tdep.c: Revert.
9719 * fbsd-nat.h: Revert.
9720 * fbsd-nat.c: Revert.
9721 * f-valprint.c: Revert.
9722 * f-typeprint.c: Revert.
9723 * f-lang.c: Revert.
9724 * extension.h: Revert.
9725 * extension.c: Revert.
9726 * extension-priv.h: Revert.
9727 * expprint.c: Revert.
9728 * exec.h: Revert.
9729 * exec.c: Revert.
9730 * exceptions.c: Revert.
9731 * event-top.c: Revert.
9732 * event-loop.c: Revert.
9733 * eval.c: Revert.
9734 * elfread.c: Revert.
9735 * dwarf2read.h: Revert.
9736 * dwarf2read.c: Revert.
9737 * dwarf2loc.c: Revert.
9738 * dwarf2expr.h: Revert.
9739 * dwarf2expr.c: Revert.
9740 * dwarf2-frame.c: Revert.
9741 * dwarf2-frame-tailcall.c: Revert.
9742 * dwarf-index-write.h: Revert.
9743 * dwarf-index-write.c: Revert.
9744 * dwarf-index-common.c: Revert.
9745 * dwarf-index-cache.h: Revert.
9746 * dwarf-index-cache.c: Revert.
9747 * dummy-frame.c: Revert.
9748 * dtrace-probe.c: Revert.
9749 * disasm.h: Revert.
9750 * disasm.c: Revert.
9751 * disasm-selftests.c: Revert.
9752 * dictionary.c: Revert.
9753 * dicos-tdep.c: Revert.
9754 * demangle.c: Revert.
9755 * dcache.h: Revert.
9756 * dcache.c: Revert.
9757 * darwin-nat.h: Revert.
9758 * darwin-nat.c: Revert.
9759 * darwin-nat-info.c: Revert.
9760 * d-valprint.c: Revert.
9761 * d-namespace.c: Revert.
9762 * d-lang.c: Revert.
9763 * ctf.c: Revert.
9764 * csky-tdep.c: Revert.
9765 * csky-linux-tdep.c: Revert.
9766 * cris-tdep.c: Revert.
9767 * cris-linux-tdep.c: Revert.
9768 * cp-valprint.c: Revert.
9769 * cp-support.c: Revert.
9770 * cp-namespace.c: Revert.
9771 * cp-abi.c: Revert.
9772 * corelow.c: Revert.
9773 * corefile.c: Revert.
9774 * continuations.c: Revert.
9775 * completer.h: Revert.
9776 * completer.c: Revert.
9777 * complaints.c: Revert.
9778 * coffread.c: Revert.
9779 * coff-pe-read.c: Revert.
9780 * cli-out.h: Revert.
9781 * cli-out.c: Revert.
9782 * charset.c: Revert.
9783 * c-varobj.c: Revert.
9784 * c-valprint.c: Revert.
9785 * c-typeprint.c: Revert.
9786 * c-lang.c: Revert.
9787 * buildsym.c: Revert.
9788 * buildsym-legacy.c: Revert.
9789 * build-id.h: Revert.
9790 * build-id.c: Revert.
9791 * btrace.c: Revert.
9792 * bsd-uthread.c: Revert.
9793 * breakpoint.h: Revert.
9794 * breakpoint.c: Revert.
9795 * break-catch-throw.c: Revert.
9796 * break-catch-syscall.c: Revert.
9797 * break-catch-sig.c: Revert.
9798 * blockframe.c: Revert.
9799 * block.c: Revert.
9800 * bfin-tdep.c: Revert.
9801 * bfin-linux-tdep.c: Revert.
9802 * bfd-target.c: Revert.
9803 * bcache.c: Revert.
9804 * ax-general.c: Revert.
9805 * ax-gdb.h: Revert.
9806 * ax-gdb.c: Revert.
9807 * avr-tdep.c: Revert.
9808 * auxv.c: Revert.
9809 * auto-load.c: Revert.
9810 * arm-wince-tdep.c: Revert.
9811 * arm-tdep.c: Revert.
9812 * arm-symbian-tdep.c: Revert.
9813 * arm-pikeos-tdep.c: Revert.
9814 * arm-obsd-tdep.c: Revert.
9815 * arm-nbsd-tdep.c: Revert.
9816 * arm-nbsd-nat.c: Revert.
9817 * arm-linux-tdep.c: Revert.
9818 * arm-linux-nat.c: Revert.
9819 * arm-fbsd-tdep.c: Revert.
9820 * arm-fbsd-nat.c: Revert.
9821 * arm-bsd-tdep.c: Revert.
9822 * arch-utils.c: Revert.
9823 * arc-tdep.c: Revert.
9824 * arc-newlib-tdep.c: Revert.
9825 * annotate.h: Revert.
9826 * annotate.c: Revert.
9827 * amd64-windows-tdep.c: Revert.
9828 * amd64-windows-nat.c: Revert.
9829 * amd64-tdep.c: Revert.
9830 * amd64-sol2-tdep.c: Revert.
9831 * amd64-obsd-tdep.c: Revert.
9832 * amd64-obsd-nat.c: Revert.
9833 * amd64-nbsd-tdep.c: Revert.
9834 * amd64-nbsd-nat.c: Revert.
9835 * amd64-nat.c: Revert.
9836 * amd64-linux-tdep.c: Revert.
9837 * amd64-linux-nat.c: Revert.
9838 * amd64-fbsd-tdep.c: Revert.
9839 * amd64-fbsd-nat.c: Revert.
9840 * amd64-dicos-tdep.c: Revert.
9841 * amd64-darwin-tdep.c: Revert.
9842 * amd64-bsd-nat.c: Revert.
9843 * alpha-tdep.c: Revert.
9844 * alpha-obsd-tdep.c: Revert.
9845 * alpha-nbsd-tdep.c: Revert.
9846 * alpha-mdebug-tdep.c: Revert.
9847 * alpha-linux-tdep.c: Revert.
9848 * alpha-linux-nat.c: Revert.
9849 * alpha-bsd-tdep.c: Revert.
9850 * alpha-bsd-nat.c: Revert.
9851 * aix-thread.c: Revert.
9852 * agent.c: Revert.
9853 * addrmap.c: Revert.
9854 * ada-varobj.c: Revert.
9855 * ada-valprint.c: Revert.
9856 * ada-typeprint.c: Revert.
9857 * ada-tasks.c: Revert.
9858 * ada-lang.c: Revert.
9859 * aarch64-tdep.c: Revert.
9860 * aarch64-ravenscar-thread.c: Revert.
9861 * aarch64-newlib-tdep.c: Revert.
9862 * aarch64-linux-tdep.c: Revert.
9863 * aarch64-linux-nat.c: Revert.
9864 * aarch64-fbsd-tdep.c: Revert.
9865 * aarch64-fbsd-nat.c: Revert.
9866 * aarch32-linux-nat.c: Revert.
9867
d55e5aa6
TT
98682019-04-05 Tom Tromey <tom@tromey.com>
9869
9870 * ft32-tdep.c: Sort headers.
9871 * frv-tdep.c: Sort headers.
9872 * frv-linux-tdep.c: Sort headers.
9873 * frame.c: Sort headers.
9874 * frame-unwind.c: Sort headers.
9875 * frame-base.c: Sort headers.
9876 * fork-child.c: Sort headers.
9877 * findvar.c: Sort headers.
9878 * findcmd.c: Sort headers.
9879 * filesystem.c: Sort headers.
9880 * filename-seen-cache.h: Sort headers.
9881 * filename-seen-cache.c: Sort headers.
9882 * fbsd-tdep.c: Sort headers.
9883 * fbsd-nat.h: Sort headers.
9884 * fbsd-nat.c: Sort headers.
9885 * f-valprint.c: Sort headers.
9886 * f-typeprint.c: Sort headers.
9887 * f-lang.c: Sort headers.
9888 * extension.h: Sort headers.
9889 * extension.c: Sort headers.
9890 * extension-priv.h: Sort headers.
9891 * expprint.c: Sort headers.
9892 * exec.h: Sort headers.
9893 * exec.c: Sort headers.
9894 * exceptions.c: Sort headers.
9895 * event-top.c: Sort headers.
9896 * event-loop.c: Sort headers.
9897 * eval.c: Sort headers.
9898 * elfread.c: Sort headers.
9899 * dwarf2read.h: Sort headers.
9900 * dwarf2read.c: Sort headers.
9901 * dwarf2loc.c: Sort headers.
9902 * dwarf2expr.h: Sort headers.
9903 * dwarf2expr.c: Sort headers.
9904 * dwarf2-frame.c: Sort headers.
9905 * dwarf2-frame-tailcall.c: Sort headers.
9906 * dwarf-index-write.h: Sort headers.
9907 * dwarf-index-write.c: Sort headers.
9908 * dwarf-index-common.c: Sort headers.
9909 * dwarf-index-cache.h: Sort headers.
9910 * dwarf-index-cache.c: Sort headers.
9911 * dummy-frame.c: Sort headers.
9912 * dtrace-probe.c: Sort headers.
9913 * disasm.h: Sort headers.
9914 * disasm.c: Sort headers.
9915 * disasm-selftests.c: Sort headers.
9916 * dictionary.c: Sort headers.
9917 * dicos-tdep.c: Sort headers.
9918 * demangle.c: Sort headers.
9919 * dcache.h: Sort headers.
9920 * dcache.c: Sort headers.
9921 * darwin-nat.h: Sort headers.
9922 * darwin-nat.c: Sort headers.
9923 * darwin-nat-info.c: Sort headers.
9924 * d-valprint.c: Sort headers.
9925 * d-namespace.c: Sort headers.
9926 * d-lang.c: Sort headers.
9927 * ctf.c: Sort headers.
9928 * csky-tdep.c: Sort headers.
9929 * csky-linux-tdep.c: Sort headers.
9930 * cris-tdep.c: Sort headers.
9931 * cris-linux-tdep.c: Sort headers.
9932 * cp-valprint.c: Sort headers.
9933 * cp-support.c: Sort headers.
9934 * cp-namespace.c: Sort headers.
9935 * cp-abi.c: Sort headers.
9936 * corelow.c: Sort headers.
9937 * corefile.c: Sort headers.
9938 * continuations.c: Sort headers.
9939 * completer.h: Sort headers.
9940 * completer.c: Sort headers.
9941 * complaints.c: Sort headers.
9942 * coffread.c: Sort headers.
9943 * coff-pe-read.c: Sort headers.
9944 * cli-out.h: Sort headers.
9945 * cli-out.c: Sort headers.
9946 * charset.c: Sort headers.
9947 * c-varobj.c: Sort headers.
9948 * c-valprint.c: Sort headers.
9949 * c-typeprint.c: Sort headers.
9950 * c-lang.c: Sort headers.
9951 * buildsym.c: Sort headers.
9952 * buildsym-legacy.c: Sort headers.
9953 * build-id.h: Sort headers.
9954 * build-id.c: Sort headers.
9955 * btrace.c: Sort headers.
9956 * bsd-uthread.c: Sort headers.
9957 * breakpoint.h: Sort headers.
9958 * breakpoint.c: Sort headers.
9959 * break-catch-throw.c: Sort headers.
9960 * break-catch-syscall.c: Sort headers.
9961 * break-catch-sig.c: Sort headers.
9962 * blockframe.c: Sort headers.
9963 * block.c: Sort headers.
9964 * bfin-tdep.c: Sort headers.
9965 * bfin-linux-tdep.c: Sort headers.
9966 * bfd-target.c: Sort headers.
9967 * bcache.c: Sort headers.
9968 * ax-general.c: Sort headers.
9969 * ax-gdb.h: Sort headers.
9970 * ax-gdb.c: Sort headers.
9971 * avr-tdep.c: Sort headers.
9972 * auxv.c: Sort headers.
9973 * auto-load.c: Sort headers.
9974 * arm-wince-tdep.c: Sort headers.
9975 * arm-tdep.c: Sort headers.
9976 * arm-symbian-tdep.c: Sort headers.
9977 * arm-pikeos-tdep.c: Sort headers.
9978 * arm-obsd-tdep.c: Sort headers.
9979 * arm-nbsd-tdep.c: Sort headers.
9980 * arm-nbsd-nat.c: Sort headers.
9981 * arm-linux-tdep.c: Sort headers.
9982 * arm-linux-nat.c: Sort headers.
9983 * arm-fbsd-tdep.c: Sort headers.
9984 * arm-fbsd-nat.c: Sort headers.
9985 * arm-bsd-tdep.c: Sort headers.
9986 * arch-utils.c: Sort headers.
9987 * arc-tdep.c: Sort headers.
9988 * arc-newlib-tdep.c: Sort headers.
9989 * annotate.h: Sort headers.
9990 * annotate.c: Sort headers.
9991 * amd64-windows-tdep.c: Sort headers.
9992 * amd64-windows-nat.c: Sort headers.
9993 * amd64-tdep.c: Sort headers.
9994 * amd64-sol2-tdep.c: Sort headers.
9995 * amd64-obsd-tdep.c: Sort headers.
9996 * amd64-obsd-nat.c: Sort headers.
9997 * amd64-nbsd-tdep.c: Sort headers.
9998 * amd64-nbsd-nat.c: Sort headers.
9999 * amd64-nat.c: Sort headers.
10000 * amd64-linux-tdep.c: Sort headers.
10001 * amd64-linux-nat.c: Sort headers.
10002 * amd64-fbsd-tdep.c: Sort headers.
10003 * amd64-fbsd-nat.c: Sort headers.
10004 * amd64-dicos-tdep.c: Sort headers.
10005 * amd64-darwin-tdep.c: Sort headers.
10006 * amd64-bsd-nat.c: Sort headers.
10007 * alpha-tdep.c: Sort headers.
10008 * alpha-obsd-tdep.c: Sort headers.
10009 * alpha-nbsd-tdep.c: Sort headers.
10010 * alpha-mdebug-tdep.c: Sort headers.
10011 * alpha-linux-tdep.c: Sort headers.
10012 * alpha-linux-nat.c: Sort headers.
10013 * alpha-bsd-tdep.c: Sort headers.
10014 * alpha-bsd-nat.c: Sort headers.
10015 * aix-thread.c: Sort headers.
10016 * agent.c: Sort headers.
10017 * addrmap.c: Sort headers.
10018 * ada-varobj.c: Sort headers.
10019 * ada-valprint.c: Sort headers.
10020 * ada-typeprint.c: Sort headers.
10021 * ada-tasks.c: Sort headers.
10022 * ada-lang.c: Sort headers.
10023 * aarch64-tdep.c: Sort headers.
10024 * aarch64-ravenscar-thread.c: Sort headers.
10025 * aarch64-newlib-tdep.c: Sort headers.
10026 * aarch64-linux-tdep.c: Sort headers.
10027 * aarch64-linux-nat.c: Sort headers.
10028 * aarch64-fbsd-tdep.c: Sort headers.
10029 * aarch64-fbsd-nat.c: Sort headers.
10030 * aarch32-linux-nat.c: Sort headers.
10031
699bd4cf
TT
100322019-04-04 Tom Tromey <tom@tromey.com>
10033
10034 * varobj.c (varobj_create): Update.
10035 * rust-exp.y (struct rust_parser) <update_innermost_block,
10036 lookup_symbol>: New methods.
10037 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10038 Rename.
10039 (rust_parser::rust_lookup_type)
10040 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10041 * printcmd.c (display_command, do_one_display): Update.
10042 * parser-defs.h (struct parser_state) <parser_state>: Add
10043 "tracker" parameter.
10044 (block_tracker): New member.
10045 (class innermost_block_tracker) <innermost_block_tracker>: Add
10046 "types" parameter.
10047 <reset>: Remove method.
10048 (innermost_block): Don't declare.
10049 (null_post_parser): Update.
10050 * parse.c (innermost_block): Remove global.
10051 (write_dollar_variable): Update.
10052 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10053 Remove "tracker_types" parameter.
10054 (parse_expression): Add "tracker" parameter.
10055 (parse_expression_for_completion): Update.
10056 (null_post_parser): Add "tracker" parameter.
10057 * p-exp.y: Update rules.
10058 * m2-exp.y: Update rules.
10059 * language.h (struct language_defn) <la_post_parser>: Add
10060 "tracker" parameter.
10061 * go-exp.y: Update rules.
10062 * f-exp.y: Update rules.
10063 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10064 parameter.
10065 * d-exp.y: Update rules.
10066 * c-exp.y: Update rules.
10067 * breakpoint.c (set_breakpoint_condition): Create an
10068 innermost_block_tracker.
10069 (watch_command_1): Likewise.
10070 * ada-lang.c (resolve): Add "tracker" parameter.
10071 (resolve_subexp): Likewise.
10072 * ada-exp.y (write_var_from_sym): Update.
10073
dac43e32
TT
100742019-04-04 Tom Tromey <tom@tromey.com>
10075
10076 * type-stack.h: New file.
10077 * type-stack.c: New file.
10078 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10079 type-stack.h.
10080 (insert_into_type_stack, insert_type, push_type, push_type_int)
10081 (insert_type_address_space, pop_type, pop_type_int)
10082 (pop_typelist, pop_type_stack, append_type_stack)
10083 (push_type_stack, get_type_stack, push_typelist)
10084 (follow_type_instance_flags, follow_types): Don't declare.
10085 * parse.c (type_stack): Remove global.
10086 (parse_exp_in_context): Update.
10087 (insert_into_type_stack, insert_type, push_type, push_type_int)
10088 (insert_type_address_space, pop_type, pop_type_int)
10089 (pop_typelist, pop_type_stack, append_type_stack)
10090 (push_type_stack, get_type_stack, push_typelist)
10091 (follow_type_instance_flags, follow_types): Remove (moved to
10092 type-stack.c).
10093 * f-exp.y (type_stack): New global.
10094 Update rules.
10095 (push_kind_type, f_parse): Update.
10096 * d-exp.y (type_stack): New global.
10097 Update rules.
10098 (d_parse): Update.
10099 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10100 Update rules.
10101 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10102 (HFILES_NO_SRCDIR): Add type-stack.h.
10103
2a612529
TT
101042019-04-04 Tom Tromey <tom@tromey.com>
10105
10106 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10107 (rust_parser::convert_ast_to_expression, rust_parse)
10108 (rust_lex_test_completion, rust_lex_tests): Update.
10109 * parser-defs.h (struct expr_completion_state): New.
10110 (struct parser_state) <parser_state>: Add completion parameter.
10111 <mark_struct_expression, mark_completion_tag>: New methods.
10112 <parse_completion, m_completion_state>: New members.
10113 (prefixify_expression, null_post_parser): Update.
10114 (mark_struct_expression, mark_completion_tag): Don't declare.
10115 * parse.c (parse_completion, expout_last_struct)
10116 (expout_tag_completion_type, expout_completion_name): Remove
10117 globals.
10118 (parser_state::mark_struct_expression)
10119 (parser_state::mark_completion_tag): Now methods.
10120 (prefixify_expression): Add last_struct parameter.
10121 (prefixify_subexp): Likewise.
10122 (parse_exp_1): Update.
10123 (parse_exp_in_context): Add cstate parameter. Update.
10124 (parse_expression_for_completion): Create an
10125 expr_completion_state.
10126 (null_post_parser): Add "completion" parameter.
10127 * p-exp.y: Update rules.
10128 (yylex): Update.
10129 * language.h (struct language_defn) <la_post_parser>: Add
10130 "completing" parameter.
10131 * go-exp.y: Update rules.
10132 (lex_one_token): Update.
10133 * expression.h (parse_completion): Don't declare.
10134 * d-exp.y: Update rules.
10135 (lex_one_token): Update rules.
10136 * c-exp.y: Update rules.
10137 (lex_one_token): Update.
10138 * ada-lang.c (resolve): Add "parse_completion" parameter.
10139 (resolve_subexp): Likewise.
10140 (ada_resolve_function): Likewise.
10141
43476f0b
TT
101422019-04-04 Tom Tromey <tom@tromey.com>
10143
10144 * parser-defs.h (struct parser_state) <start_arglist,
10145 end_arglist>: New methods.
10146 <arglist_len, m_funcall_chain>: New members.
10147 (arglist_len, start_arglist, end_arglist): Don't declare.
10148 * parse.c (arglist_len, funcall_chain): Remove global.
10149 (start_arglist, end_arglist): Remove functions.
10150 (parse_exp_in_context): Update.
10151 * p-exp.y: Update rules.
10152 * m2-exp.y: Update rules.
10153 * go-exp.y: Update rules.
10154 * f-exp.y: Update rules.
10155 * d-exp.y: Update rules.
10156 * c-exp.y: Update rules.
10157
5776fca3
TT
101582019-04-04 Tom Tromey <tom@tromey.com>
10159
10160 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10161 lex_operator, push_back>: New methods.
10162 Update all rules.
10163 (rust_parser::lex_hex, lex_escape): Rename and update.
10164 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10165 (rust_parser::lex_operator): Rename and update.
10166 (rust_parser::lex_number, rustyylex, rustyyerror)
10167 (rust_lex_test_init, rust_lex_test_sequence)
10168 (rust_lex_test_push_back, rust_lex_tests): Update.
10169 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10170 parameter.
10171 <lexptr, prev_lexptr>: New members.
10172 (lexptr, prev_lexptr): Don't declare.
10173 * parse.c (lexptr, prev_lexptr): Remove globals.
10174 (parse_exp_in_context): Update.
10175 * p-exp.y (yylex, yyerror): Update.
10176 * m2-exp.y (parse_number, yylex, yyerror): Update.
10177 * go-exp.y (lex_one_token, yyerror): Update.
10178 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10179 * d-exp.y (lex_one_token, yyerror): Update.
10180 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10181 (lex_one_token, yyerror): Update.
10182 * ada-lex.l (YY_INPUT): Update.
10183 (rewind_to_char): Update.
10184 * ada-exp.y (yyerror): Update.
10185
8621b685
TT
101862019-04-04 Tom Tromey <tom@tromey.com>
10187
10188 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10189 * parser-defs.h (struct parser_state) <parser_state>: Add new
10190 parameter.
10191 <comma_terminates>: New member.
10192 (comma_terminates): Don't declare global.
10193 * parse.c (comma_terminates): Remove global.
10194 (parse_exp_in_context): Update.
10195 * p-exp.y (yylex): Update.
10196 * m2-exp.y (yylex): Update.
10197 * go-exp.y (lex_one_token): Update.
10198 * f-exp.y (yylex): Update.
10199 * d-exp.y (lex_one_token): Update.
10200 * c-exp.y (lex_one_token): Update.
10201 * ada-lex.l: Update.
10202
28aaf3fd
TT
102032019-04-04 Tom Tromey <tom@tromey.com>
10204
10205 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10206 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10207 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10208 * parser-defs.h (paren_depth): Don't declare.
10209 * parse.c (paren_depth): Remove global.
10210 (parse_exp_in_context): Update.
10211 * p-exp.y (paren_depth): New global.
10212 (pascal_parse): Initialize it.
10213 * m2-exp.y (paren_depth): New global.
10214 (m2_parse): Initialize it.
10215 * go-exp.y (paren_depth): New global.
10216 (go_parse): Initialize it.
10217 * f-exp.y (paren_depth): New global.
10218 (f_parse): Initialize it.
10219 * d-exp.y (paren_depth): New global.
10220 (d_parse): Initialize it.
10221 * c-exp.y (paren_depth): New global.
10222 (c_parse): Initialize it.
10223 * ada-lex.l (paren_depth): New global.
10224 (lexer_init): Initialize it.
10225
1e58a4a4
TT
102262019-04-04 Tom Tromey <tom@tromey.com>
10227
10228 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10229 (rust_parser::convert_ast_to_type)
10230 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10231 * parser-defs.h (struct parser_state) <parser_state>: Add
10232 parameters. Initialize new members.
10233 <expression_context_block, expression_context_pc>: New members.
10234 * parse.c (expression_context_block, expression_context_pc):
10235 Remove globals.
10236 (parse_exp_in_context): Update.
10237 * p-exp.y: Update all rules.
10238 (yylex): Update.
10239 * m2-exp.y: Update all rules.
10240 (yylex): Update.
10241 * go-exp.y (yylex): Update.
10242 * f-exp.y (yylex): Update.
10243 * d-exp.y: Update all rules.
10244 (yylex): Update.
10245 * c-exp.y: Update all rules.
10246 (lex_one_token, classify_name, yylex, c_parse): Update.
10247 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10248
37eedb39
TT
102492019-04-04 Tom Tromey <tom@tromey.com>
10250
10251 * gdbarch.h, gdbarch.c: Rebuild.
10252 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10253 * stap-probe.h:
10254 (struct stap_parse_info): Replace "parser_state" with
10255 "expr_builder".
10256 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10257 (parser_state): New class.
10258 * parse.c (expr_builder): Rename.
10259 (expr_builder::release): Rename.
10260 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10261 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10262 (write_exp_elt_longcst, write_exp_elt_floatcst)
10263 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10264 (write_exp_string_vector, write_exp_bitstring)
10265 (write_exp_msymbol, mark_struct_expression)
10266 (write_dollar_variable)
10267 (insert_type_address_space, increase_expout_size): Replace
10268 "parser_state" with "expr_builder".
10269 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10270 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10271 "parser_state" with "expr_builder".
10272
73923d7e
TT
102732019-04-04 Tom Tromey <tom@tromey.com>
10274
10275 * rust-exp.y: Replace "parse_language" with method call.
10276 * p-exp.y:
10277 (yylex): Replace "parse_language" with method call.
10278 * m2-exp.y:
10279 (yylex): Replace "parse_language" with method call.
10280 * go-exp.y (classify_name): Replace "parse_language" with method
10281 call.
10282 * f-exp.y (yylex): Replace "parse_language" with method call.
10283 * d-exp.y (lex_one_token): Replace "parse_language" with method
10284 call.
10285 * c-exp.y:
10286 (lex_one_token, classify_name, yylex): Replace "parse_language"
10287 with method call.
10288 * ada-exp.y (find_primitive_type, type_char)
10289 (type_system_address): Replace "parse_language" with method call.
10290
fa9f5be6
TT
102912019-04-04 Tom Tromey <tom@tromey.com>
10292
10293 * rust-exp.y: Replace "parse_gdbarch" with method call.
10294 * parse.c (write_dollar_variable, insert_type_address_space):
10295 Replace "parse_gdbarch" with method call.
10296 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10297 call.
10298 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10299 call.
10300 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10301 "parse_gdbarch" with method call.
10302 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10303 with method call.
10304 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10305 "parse_gdbarch" with method call.
10306 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10307 "parse_gdbarch" with method call.
10308 * c-exp.y (parse_type, parse_number, classify_name): Replace
10309 "parse_gdbarch" with method call.
10310 * ada-lex.l: Replace "parse_gdbarch" with method call.
10311 * ada-exp.y (parse_type, find_primitive_type, type_char)
10312 (type_system_address): Replace "parse_gdbarch" with method call.
10313
1201a264
TT
103142019-04-04 Tom Tromey <tom@tromey.com>
10315
10316 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10317 * stap-probe.c (stap_parse_argument): Update.
10318 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10319 initial_size parameter.
10320 * rust-exp.y (rust_lex_tests): Update.
10321 * parse.c (parser_state): Update.
10322 (parse_exp_in_context): Update.
10323 * parser-defs.h (struct parser_state) <parser_state>: Remove
10324 "initial_size" parameter.
10325
e3980ce2
TT
103262019-04-04 Tom Tromey <tom@tromey.com>
10327
10328 * parser-defs.h (increase_expout_size): Don't declare.
10329 * parse.c (increase_expout_size): Now static.
10330
e9f8e3f1
TS
103312019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10332
10333 * gnu-nat.c (gnu_nat_target::wait): Fix
10334 target_waitstatus_to_string call.
10335
d7df6549
AB
103362019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10337
10338 * eval.c (evaluate_subexp_standard): Handle internal functions
10339 during Fortran function call handling.
10340
8bdc1658
AB
103412019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10342
10343 * NEWS: Mention new internal functions.
10344 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10345 (read_base_type): Use dwarf2_init_complex_target_type.
10346 * value.c (creal_internal_fn): New function.
10347 (cimag_internal_fn): New function.
10348 (_initialize_values): Register new internal functions.
10349
c29705b7
PW
103502019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10351
10352 * infrun.c (stop_all_threads): If debug_infrun, always
10353 trace the wait status after wait_one, using
10354 target_waitstatus_to_string and target_pid_to_str.
10355 (handle_inferior_event): Replace various trace of
10356 wait status kind by a single trace.
10357 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10358 wait status kind image by target_waitstatus_to_string.
10359 * target/waitstatus.c (target_waitstatus_to_string): Fix
10360 obsolete comment.
10361
05caa1d2
TT
103622019-04-01 Tom Tromey <tromey@adacore.com>
10363
10364 PR symtab/23331:
10365 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10366
9d1447e0
SDJ
103672019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10368 Pedro Alves <palves@redhat.com>
10369
10370 * top.c (quit_force): Call 'finalize_values'.
10371 * value.c (finalize_values): New function.
10372 * value.h (finalize_values): Declare.
10373
7734102d
EZ
103742019-03-30 Eli Zaretskii <eliz@gnu.org>
10375
10376 * NEWS: Announce $_gdb_major and $_gdb_minor.
10377
10378 * top.c (init_gdb_version_vars): New function.
10379 (gdb_init): Call init_gdb_version_vars.
10380
188e1fa9
TT
103812019-03-29 Tom Tromey <tromey@adacore.com>
10382
10383 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10384 help text. Remove dead code.
10385
2880242d
KS
103862019-03-29 Keith Seitz <keiths@redhat.com>
10387
10388 From Siddhesh Poyarekar:
10389 * f-lang.h (f77_get_upperbound): Return LONGEST.
10390 (f77_get_lowerbound): Likewise.
10391 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10392 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10393 print them.
10394 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10395 plongest to format print it.
10396 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10397 (f77_get_upperbound): Likewise.
10398 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10399 LOWER_BOUND to LONGEST.
10400 (f77_create_arrayprint_offset_tbl): Likewise.
10401
cc1defb1
KS
104022019-03-29 Keith Seitz <keiths@redhat.com>
10403
10404 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10405 %s/pulongest for TYPE_LENGTH instead of %d in format
10406 strings.
10407 * ada-typerint.c (ada_print_type): Likewise.
10408 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10409 * compile/compile-c-support.c (generate_register_struct): Likewise.
10410 * gdbtypes.c (recursive_dump_type): Likewise.
10411 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10412 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10413 instead of %d in format strings.
10414 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10415 to std::min to ULONGEST.
10416 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10417 instead of %d in format strings.
10418 * tracepoint.c (info_scope_command): Likewise.
10419 * typeprint.c (print_offset_data::update)
10420 (print_offset_data::finish): Likewise.
10421 * xtensa-tdep.c (xtensa_store_return_value)
10422 (xtensa_push_dummy_call): Likewise.
10423
e432ccf1
JT
104242019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10425
10426 * windows-nat.c (display_selector): Fixed format specifications
10427 for 64-bit Cygwin.
10428
65d2b333
PW
104292019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10430
10431 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10432
f489207e
SL
104332019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10434
10435 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10436 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10437 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10438 (nios2_linux_init_abi): Install it.
10439
bffa1015
AH
104402019-03-28 Alan Hayward <alan.hayward@arm.com>
10441
10442 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10443
fc96163a
AH
104442019-03-28 Alan Hayward <alan.hayward@arm.com>
10445
10446 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10447
20dc7e9b
PW
104482019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10449 Tom Tromey <tromey@adacore.com>
10450
10451 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10452
7f5331a8
JB
104532019-03-26 Joel Brobecker <brobecker@adacore.com>
10454
10455 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10456 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10457 method to compute the bounds of range types. Also print "[evaluated]"
10458 if the bounds' values come from a dynamic evaluation.
10459
18c77628
AB
104602019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10461
10462 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10463 whitespace when pretty printing is on.
10464
53c973f2
AH
104652019-03-26 Alan Hayward <alan.hayward@arm.com>
10466
e79be6e5 10467 * ppc-linux-nat.c: Add include.
53c973f2 10468
d851aa71
AH
104692019-03-26 Alan Hayward <alan.hayward@arm.com>
10470
e79be6e5 10471 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 10472
2fe7bab7
AH
104732019-03-26 Alan Hayward <alan.hayward@arm.com>
10474
e79be6e5 10475 * arm-linux-nat.c: Add include.
2fe7bab7 10476
068ef30e
SM
104772019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10478
10479 * source-cache.c (source_cache::get_source_lines): Re-read
10480 fullname after calling open_source_file.
10481
81a24d04
JB
104822019-03-25 John Baldwin <jhb@FreeBSD.org>
10483
10484 * NEWS: Mention TLS support for FreeBSD.
10485
79e7ae11
TT
104862019-03-25 Tom Tromey <tromey@adacore.com>
10487
10488 * minsyms.c (BUNCH_SIZE): Update comment.
10489 (~minimal_symbol_reader): Remove old comment.
10490 (compact_minimal_symbols): Update comment.
10491 (minimal_symbol_reader::install): Remove old comment. Update
10492 other comments.
10493
d45963c2
AH
104942019-03-25 Alan Hayward <alan.hayward@arm.com>
10495
10496 * s390-linux-nat.c: Add include.
10497
0f83012e
AH
104982019-03-25 Alan Hayward <alan.hayward@arm.com>
10499
10500 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10501 Call linux_get_hwcap.
10502 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10503 Likewise.
10504 (aarch64_linux_get_hwcap): Remove function.
10505 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10506 declaration.
10507 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10508 linux_get_hwcap.
10509 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10510 * linux-tdep.c (linux_get_hwcap): Add function.
10511 (linux_get_hwcap2): Likewise.
10512 * linux-tdep.h (linux_get_hwcap): Add declaration.
10513 (linux_get_hwcap2): Likewise.
10514 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10515 (ppc_linux_get_hwcap2): Likewise.
10516 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10517 linux_get_hwcap.
10518 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10519 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10520 (ppc_linux_nat_target::read_description): Likewise.
10521 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10522 * s390-linux-nat.c: Likewise.
10523 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10524
6640a367
TT
105252019-03-24 Tom Tromey <tom@tromey.com>
10526
10527 * ada-lang.c (standard_lookup): Simplify initialization.
10528 (ada_lookup_symbol_nonlocal): Simplify return.
10529 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10530 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10531 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10532 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10533 initialization.
10534 * solib.c (solib_global_lookup): Simplify.
10535 * symtab.c (null_block_symbol): Remove.
10536 (symbol_cache_lookup): Simplify returns.
10537 (lookup_language_this): Simplify returns.
10538 (lookup_symbol_aux): Simplify return.
10539 (lookup_local_symbol): Simplify returns.
10540 (lookup_global_symbol_from_objfile): Simplify return.
10541 (lookup_symbol_in_objfile_symtabs)
10542 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10543 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10544 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10545 * cp-namespace.c (cp_lookup_bare_symbol)
10546 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10547 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10548 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10549 (cp_lookup_symbol_via_imports): Simplify initialization.
10550 (find_symbol_in_baseclass): Likewise.
10551 * symtab.h (null_block_symbol): Remove.
10552 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10553 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10554 (d_lookup_symbol_module): Likewise.
10555 (find_symbol_in_baseclass): Simplify initialization.
10556
a930ebcd
TT
105572019-03-24 Tom Tromey <tom@tromey.com>
10558
10559 * expression.h: Don't include symtab.h.
10560 (struct block): Forward declare.
10561
582942f4
TT
105622019-03-24 Tom Tromey <tom@tromey.com>
10563
10564 * c-exp.y (typebase): Remove casts.
10565 * gdbtypes.c (lookup_unsigned_typename, )
10566 (lookup_signed_typename): Remove cast.
10567 * eval.c (parse_to_comma_and_eval): Remove cast.
10568 * parse.c (write_dollar_variable): Remove cast.
10569 * block.h (struct block) <superblock>: Now const.
10570 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10571 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10572 (map_block): Make "block" const.
10573 * symfile.h (struct quick_symbol_functions)
10574 <map_matching_symbols>: Constify block argument to "callback".
10575 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10576 const.
10577 (find_pc_sect_compunit_symtab): Make "b" const.
10578 (find_symbol_at_address): Likewise.
10579 (search_symbols): Likewise.
10580 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10581 (dw2_debug_names_lookup_symbol): Likewise.
10582 (dw2_map_matching_symbols): Update.
10583 * p-valprint.c (pascal_val_print): Remove "block".
10584 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10585 (aux_add_nonlocal_symbols): Make "block" const.
10586 (resolve_subexp): Remove cast.
10587 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10588 const.
10589 (iterate_over_file_blocks): Likewise.
10590 * f-exp.y (%union) <bval>: Remove.
10591 * coffread.c (patch_opaque_types): Make "b" const.
10592 * spu-tdep.c (spu_catch_start): Make "block" const.
10593 * c-valprint.c (print_unpacked_pointer): Remove "block".
10594 * symmisc.c (dump_symtab_1): Make "b" const.
10595 (block_depth): Make "block" const.
10596 * d-exp.y (%union) <bval>: Remove.
10597 * cp-support.h (cp_lookup_rtti_type): Update.
10598 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10599 * psymtab.c (psym_lookup_symbol): Make "block" const.
10600 (maintenance_check_psymtabs): Make "b" const.
10601 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10602 (enumerate_locals, enumerate_args): Update.
10603 * python/py-symtab.c (stpy_global_block): Make "block" const.
10604 (stpy_static_block): Likewise.
10605 * inline-frame.c (block_starting_point_at): Make "new_block"
10606 const.
10607 * block.c (find_block_in_blockvector): Make return type const.
10608 (blockvector_for_pc_sect): Make "b" const.
10609 (find_block_in_blockvector): Make "b" const.
10610
7ad417dd
TT
106112019-03-23 Tom Tromey <tom@tromey.com>
10612
10613 * varobj.c (varobj_create): Update.
10614 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10615 * printcmd.c (display_command, do_one_display): Don't reset
10616 innermost_block.
10617 * parser-defs.h (enum innermost_block_tracker_type): Move to
10618 expression.h.
10619 (innermost_block): Update comment.
10620 * parse.c (parse_exp_1): Add tracker_types parameter.
10621 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10622 tracker_types parameter. Reset innermost_block.
10623 (parse_exp_in_context): Remove.
10624 (parse_expression_for_completion): Update.
10625 * objfiles.c (~objfile): Don't reset expression_context_block or
10626 innermost_block.
10627 * expression.h (enum innermost_block_tracker_type): Move from
10628 parser-defs.h.
10629 (parse_exp_1): Add tracker_types parameter.
10630 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10631 reset innermost_block.
10632
b366c208
TT
106332019-03-23 Tom Tromey <tom@tromey.com>
10634
10635 * objfiles.h: Include bcache.h.
10636
9bb9b2f9
TT
106372019-03-23 Tom Tromey <tom@tromey.com>
10638
10639 * linespec.c (get_current_search_block): Use
10640 scoped_restore_current_language.
10641 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10642
59c28372
AH
106432019-03-22 Alan Hayward <alan.hayward@arm.com>
10644 Jiong Wang <jiong.wang@arm.com>
10645
10646 * aarch64-linux-tdep.c
10647 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10648 section.
10649 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10650
17e116a7
AH
106512019-03-22 Alan Hayward <alan.hayward@arm.com>
10652 Jiong Wang <jiong.wang@arm.com>
10653
10654 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10655 instructions.
10656 (aarch64_analyze_prologue_test): Add PACIASP test.
10657 (aarch64_prologue_prev_register): Unmask PC value.
10658
11e1b75f
AH
106592019-03-22 Alan Hayward <alan.hayward@arm.com>
10660 Jiong Wang <jiong.wang@arm.com>
10661
10662 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10663 (aarch64_dwarf2_prev_register): Unmask PC value.
10664 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10665 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10666 DW_CFA_AARCH64_negate_ra_state.
10667 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10668
34dcc7cf
AH
106692019-03-22 Alan Hayward <alan.hayward@arm.com>
10670 Jiong Wang <jiong.wang@arm.com>
10671
10672 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10673 registers.
10674 (aarch64_pseudo_register_name): Likewise.
10675 (aarch64_pseudo_register_type): Likewise.
10676 (aarch64_pseudo_register_reggroup_p): Likewise.
10677 (aarch64_gdbarch_init): Add pauth registers.
10678 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10679 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10680 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10681 (struct gdbarch_tdep): Add regnum for ra_state.
10682
1ef53e6b
AH
106832019-03-22 Alan Hayward <alan.hayward@arm.com>
10684 Jiong Wang <jiong.wang@arm.com>
10685
10686 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10687
76bed0fd
AH
106882019-03-22 Alan Hayward <alan.hayward@arm.com>
10689 Jiong Wang <jiong.wang@arm.com>
10690
10691 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10692 function.
10693 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10694 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10695 (aarch64_gdbarch_init): Add puth registers.
10696 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10697 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10698 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10699
ee4fbcfa
AH
107002019-03-22 Alan Hayward <alan.hayward@arm.com>
10701 Jiong Wang <jiong.wang@arm.com>
10702
10703 * aarch64-linux-nat.c
10704 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10705 * aarch64-linux-tdep.c
10706 (aarch64_linux_core_read_description): Likewise.
10707 (aarch64_linux_get_hwcap): New function.
10708 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10709 (aarch64_linux_get_hwcap): New declaration.
10710
6dc0ebde
AH
107112019-03-22 Alan Hayward <alan.hayward@arm.com>
10712 Jiong Wang <jiong.wang@arm.com>
10713
10714 * aarch64-linux-nat.c
10715 (aarch64_linux_nat_target::read_description): Add pauth param.
10716 * aarch64-linux-tdep.c
10717 (aarch64_linux_core_read_description): Likewise.
10718 * aarch64-tdep.c (struct target_desc): Add in pauth.
10719 (aarch64_read_description): Add pauth param.
10720 (aarch64_gdbarch_init): Likewise.
10721 * aarch64-tdep.h (aarch64_read_description): Likewise.
10722 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10723 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10724 * features/Makefile: Add new files.
10725 * features/aarch64-pauth.c: New file.
10726 * features/aarch64-pauth.xml: New file.
10727
595915c1
TT
107282019-03-20 Tom Tromey <tromey@adacore.com>
10729
10730 * infrun.c (handle_inferior_event): Rename from
10731 handle_inferior_event_1. Create a scoped_value_mark.
10732 (handle_inferior_event): Remove.
10733
4c7d57e7
TT
107342019-03-19 Tom Tromey <tromey@adacore.com>
10735
10736 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10737 * infrun.h (print_stop_event): Add "displays" parameter.
10738 * infrun.c (print_stop_event): Add "displays" parameter.
10739
cb246234
PA
107402019-03-19 Pedro Alves <palves@redhat.com>
10741
10742 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10743 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10744 to -1. Fix TABs vs spaces.
10745 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10746 * tui/tui-out.h (tui_ui_out) Add intro comments.
10747 <m_line, m_start_of_line>: In-class initialize, and add describing
10748 comment.
10749
3a0e45b2
AH
107502019-03-18 Alan Hayward <alan.hayward@arm.com>
10751
10752 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10753 variable names.
10754 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10755
5371b850
PA
107562019-03-18 Pedro Alves <palves@redhat.com>
10757 Eli Zaretskii <eliz@gnu.org>
10758
10759 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10760 m_line and m_start_of_line.
10761
b17c4cd0
EZ
107622019-03-18 Eli Zaretskii <eliz@gnu.org>
10763
10764 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10765 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10766 it returns a newline. This fixes a regression in TU mode, whereby
10767 the next line is output on the same screen line as the user input.
10768
4bd56d18
TT
107692019-03-18 Tom Tromey <tromey@adacore.com>
10770
10771 * minsyms.c (minimal_symbol_reader::install): Remove call to
10772 obstack_blank.
10773
55c10aca
PA
107742019-03-18 Pedro Alves <palves@redhat.com>
10775
10776 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10777 New globals.
10778 (apply_style): New, factored out from ...
10779 (apply_ansi_escape): ... this. Handle reverse video mode.
10780 (tui_set_reverse_mode): New function.
10781 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10782 * tui/tui-winsource.c (tui_show_source_line): Use
10783 tui_set_reverse_mode instead of setting A_STANDOUT.
10784 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10785 New setter methods.
10786
647bb750
HD
107872019-03-18 Hannes Domani <ssbssa@yahoo.de>
10788
10789 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10790 Handle tabs.
10791
bff8c71f
TT
107922019-03-18 Tom Tromey <tromey@adacore.com>
10793
10794 * ada-lang.c (empty_array): Add "high" parameter.
10795 (ada_evaluate_subexp): Update.
10796
58785d98
ST
107972019-03-17 Sergei Trofimovich <siarheit@google.com>
10798
10799 * unittests/string_view-selftests.c: Define
10800 _initialize_string_view_selftests unconditionally.
10801
d4cbef22
ВМ
108022019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10803
10804 PR gdb/24350
10805 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10806
fce4c071
ВМ
108072019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10808
10809 PR gdb/24351
10810 * windows-nat.c (display_selector): Fix format specifiers.
10811
f7f0a123
EZ
108122019-03-17 Eli Zaretskii <eliz@gnu.org>
10813
10814 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10815 tui_refill_source_window instead of tui_refresh_win, to update the
10816 current execution line. This fixes redisplay of the current line
10817 when stepping through the code with "next" or "step".
10818
ab42892f
EZ
108192019-03-16 Eli Zaretskii <eliz@gnu.org>
10820
10821 * source-cache.c (source_cache::get_source_lines): Call
10822 find_source_lines to initialize s->nlines. This fixes vertical
10823 scrolling of TUI source window when the DOWN arrow is pressed.
10824
8d8c087f
PW
108252019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10826
10827 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10828 linux-thread-db.c (_initialize_thread_db): Likewise.
10829
798e1c30
EZ
108302019-03-16 Eli Zaretskii <eliz@gnu.org>
10831
10832 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10833 wclrtoeol in tui_show_source_line". This reverts changes made in
10834 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10835
eefba3da
TT
108362019-03-15 Tom Tromey <tom@tromey.com>
10837
10838 * symtab.h (struct minimal_symbol): Derive from
10839 general_symbol_info.
10840 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10841 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10842 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10843 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10844 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10845 (MSYMBOL_SEARCH_NAME): Update.
10846 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10847 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10848 * minsyms.c (minimal_symbol_reader::record_full): Update.
10849
0de2420c
TT
108502019-03-15 Tom Tromey <tom@tromey.com>
10851
10852 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10853
042d75e4
TT
108542019-03-15 Tom Tromey <tom@tromey.com>
10855
10856 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10857 unique_xmalloc_ptr.
10858 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10859 Update.
10860 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10861 (build_minimal_symbol_hash_tables)
10862 (minimal_symbol_reader::install): Update.
10863
db92718b
TT
108642019-03-15 Tom Tromey <tom@tromey.com>
10865
10866 * symtab.c (create_demangled_names_hash): Update.
10867 (symbol_set_names): Update.
10868 * objfiles.h (struct objfile_per_bfd_storage)
10869 <demangled_names_hash>: Now an htab_up.
10870 * objfiles.c (objfile_per_bfd_storage): Simplify.
10871
d6797f46
TT
108722019-03-15 Tom Tromey <tom@tromey.com>
10873
10874 * objfiles.h (struct objfile_per_bfd_storage): Declare
10875 destructor.
10876 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10877 New.
10878 (get_objfile_bfd_data): Use new. Don't initialize
10879 language_of_main.
10880 (free_objfile_per_bfd_storage): Remove.
10881 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10882
741d7538
TT
108832019-03-15 Tom Tromey <tom@tromey.com>
10884
10885 * symfile.c (reread_symbols): Update.
10886 * objfiles.c (objfile::objfile): Update.
10887 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10888 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10889 comment.
10890 (minimal_symbol_reader::install): Update.
10891 (terminate_minimal_symbol_table): Remove.
10892 * jit.c (jit_object_close_impl): Update.
10893
788c80d1
TT
108942019-03-15 Tom Tromey <tom@tromey.com>
10895
10896 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10897 initializations.
10898
1b7a07cb
TT
108992019-03-15 Tom Tromey <tom@tromey.com>
10900
10901 * objfiles.h (struct objfile_per_bfd_storage)
10902 <demangled_hash_languages>: Now a bitset.
10903 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10904 (lookup_minimal_symbol): Update.
10905
3db066bc
TT
109062019-03-15 Tom Tromey <tom@tromey.com>
10907
10908 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10909 Don't return the symbol.
10910 * coffread.c (record_minimal_symbol): Use record_full.
10911
3fff2c37
EZ
109122019-03-14 Eli Zaretskii <eliz@gnu.org>
10913
10914 The MS-Windows port of ncurses fails to switch to a color pair if
10915 one or both of the colors are the implicit default colors. This
10916 change records the default colors when TUI is initialized, and
10917 then specifies them explicitly when a color pair uses the default
10918 colors. This allows color styling in TUI mode on MS-Windows.
10919
10920 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10921 ncurses_norm_attr.
10922 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10923 colors in ncurses_norm_attr.
10924 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10925 "none", replace it with the default color recorded in
10926 ncurses_norm_attr.
10927
3b336828
TT
109282019-03-14 Tom Tromey <tromey@adacore.com>
10929
10930 * source-cache.h (class source_cache) <get_source_lines>: Return
10931 std::string.
10932 * source-cache.c (source_cache::extract_lines): Handle case where
10933 first_pos==npos. Return std::string.
10934 (source_cache::get_source_lines): Update.
10935
d085f989
TT
109362019-03-14 Tom Tromey <tromey@adacore.com>
10937
10938 * NEWS: Add item for "style sources" commands.
10939 * source-cache.c (source_cache::get_source_lines): Check
10940 source_styling.
10941 * cli/cli-style.c (source_styling): New global.
10942 (_initialize_cli_style): Add "style sources" commands.
10943 (show_style_sources): New function.
10944 * cli/cli-style.h (source_styling): Declare.
10945
6f11e682
TT
109462019-03-14 Pedro Alves <palves@redhat.com>
10947 Tom Tromey <tromey@adacore.com>
10948
10949 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10950 * tui/tui-winsource.c (tui_refill_source_window): New function,
10951 from...
10952 (tui_horizontal_source_scroll): ... here. Move some logic.
10953 * cli/cli-style.c (set_style_enabled): Notify new observable.
10954 * tui/tui-hooks.c (tui_redisplay_source): New function.
10955 (tui_attach_detach_observers): Attach or detach
10956 tui_redisplay_source.
10957 * observable.h (source_styling_changed): New observable.
10958 * observable.c: Define source_styling_changed observable.
10959
a068643d
TT
109602019-03-13 Tom Tromey <tromey@adacore.com>
10961
10962 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10963 (i386_gnu_nat_target::store_registers): Update.
10964 * target-debug.h (target_debug_print_std_string): New macro.
10965 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10966 * windows-tdep.c (display_one_tib): Update.
10967 * tui/tui-stack.c (tui_make_status_line): Update.
10968 * top.c (print_inferior_quit_action): Update.
10969 * thread.c (thr_try_catch_cmd): Update.
10970 (add_thread_with_info): Update.
10971 (thread_target_id_str): Update.
10972 (thr_try_catch_cmd): Update.
10973 (thread_command): Update.
10974 (thread_find_command): Update.
10975 * record-btrace.c (record_btrace_target::info_record)
10976 (record_btrace_resume_thread, record_btrace_target::resume)
10977 (record_btrace_cancel_resume, record_btrace_step_thread)
10978 (record_btrace_target::wait, record_btrace_target::wait)
10979 (record_btrace_target::wait, record_btrace_target::stop): Update.
10980 * progspace.c (print_program_space): Update.
10981 * process-stratum-target.c
10982 (process_stratum_target::thread_address_space): Update.
10983 * linux-fork.c (linux_fork_mourn_inferior)
10984 (detach_checkpoint_command, info_checkpoints_command)
10985 (linux_fork_context): Update.
10986 (linux_fork_detach): Update.
10987 (class scoped_switch_fork_info): Update.
10988 (delete_checkpoint_command): Update.
10989 * infrun.c (follow_fork_inferior): Update.
10990 (follow_fork_inferior): Update.
10991 (proceed_after_vfork_done): Update.
10992 (handle_vfork_child_exec_or_exit): Update.
10993 (follow_exec): Update.
10994 (displaced_step_prepare_throw): Update.
10995 (displaced_step_restore): Update.
10996 (start_step_over): Update.
10997 (resume_1): Update.
10998 (clear_proceed_status_thread): Update.
10999 (proceed): Update.
11000 (print_target_wait_results): Update.
11001 (do_target_wait): Update.
11002 (context_switch): Update.
11003 (stop_all_threads): Update.
11004 (restart_threads): Update.
11005 (finish_step_over): Update.
11006 (handle_signal_stop): Update.
11007 (switch_back_to_stepped_thread): Update.
11008 (keep_going_pass_signal): Update.
11009 (print_exited_reason): Update.
11010 (normal_stop): Update.
11011 * inferior.c (inferior_pid_to_str): Change return type.
11012 (print_selected_inferior): Update.
11013 (add_inferior): Update.
11014 (detach_inferior): Update.
11015 * dummy-frame.c (fprint_dummy_frames): Update.
11016 * dcache.c (dcache_info_1): Update.
11017 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11018 (btrace_fetch, btrace_clear): Update.
11019 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11020 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11021 type.
11022 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11023 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11024 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11025 * gdbarch.c, gdbarch.h: Rebuild.
11026 * gdbarch.sh (core_pid_to_str): Change return type.
11027 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11028 return type.
11029 (windows_nat_target::pid_to_str): Change return type.
11030 (windows_delete_thread): Update.
11031 (windows_nat_target::attach): Update.
11032 (windows_nat_target::files_info): Update.
11033 * target-delegates.c: Rebuild.
11034 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11035 return type.
11036 (sol_thread_target::pid_to_str): Change return type.
11037 * remote.c (class remote_target) <pid_to_str>: Change return
11038 type.
11039 (remote_target::pid_to_str): Change return type.
11040 (extended_remote_target::attach, remote_target::remote_stop_ns)
11041 (remote_target::remote_notif_remove_queued_reply)
11042 (remote_target::push_stop_reply, remote_target::disable_btrace):
11043 Update.
11044 (extended_remote_target::attach): Update.
11045 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11046 type.
11047 (gdbsim_target::pid_to_str): Change return type.
11048 * ravenscar-thread.c (struct ravenscar_thread_target)
11049 <pid_to_str>: Change return type.
11050 (ravenscar_thread_target::pid_to_str): Change return type.
11051 * procfs.c (class procfs_target) <pid_to_str>: Change return
11052 type.
11053 (procfs_target::pid_to_str): Change return type.
11054 (procfs_target::attach): Update.
11055 (procfs_target::detach): Update.
11056 (procfs_target::fetch_registers): Update.
11057 (procfs_target::store_registers): Update.
11058 (procfs_target::wait): Update.
11059 (procfs_target::files_info): Update.
11060 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11061 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11062 return type.
11063 (nto_procfs_target::pid_to_str): Change return type.
11064 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11065 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11066 return type.
11067 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11068 (exit_lwp): Update.
11069 (attach_proc_task_lwp_callback, get_detach_signal)
11070 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11071 (linux_nat_target::resume, wait_lwp, stop_callback)
11072 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11073 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11074 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11075 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11076 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11077 type.
11078 (inf_ptrace_target::attach): Update.
11079 (inf_ptrace_target::files_info): Update.
11080 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11081 type.
11082 (go32_nat_target::pid_to_str): Change return type.
11083 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11084 (gnu_nat_target::wait): Update.
11085 (gnu_nat_target::wait): Update.
11086 (gnu_nat_target::resume): Update.
11087 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11088 (fbsd_nat_target::wait): Update.
11089 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11090 type.
11091 (darwin_nat_target::attach): Update.
11092 * corelow.c (class core_target) <pid_to_str>: Change return type.
11093 (core_target::pid_to_str): Change return type.
11094 * target.c (normal_pid_to_str): Change return type.
11095 (default_pid_to_str): Likewise.
11096 (target_pid_to_str): Change return type.
11097 (target_translate_tls_address): Update.
11098 (target_announce_detach): Update.
11099 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11100 return type.
11101 (bsd_uthread_target::pid_to_str): Change return type.
11102 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11103 type.
11104 (bsd_kvm_target::pid_to_str): Change return type.
11105 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11106 return type.
11107 (aix_thread_target::pid_to_str): Change return type.
11108 * target.h (struct target_ops) <pid_to_str>: Change return type.
11109 (target_pid_to_str, normal_pid_to_str): Likewise.
11110 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11111 type.
11112 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11113 type.
11114 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11115 return type.
11116 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11117 type.
11118 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11119 type.
11120 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11121 return type.
11122
b4be1b06
SM
111232019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11124
11125 * NEWS: Mention that the new default MI version is 3. Mention
11126 changes to the output of commands and events that deal with
11127 multi-location breakpoints.
11128 * breakpoint.c: Include "mi/mi-out.h".
11129 (print_one_breakpoint): Change output syntax if using MI version
11130 >= 3.
11131 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11132 New.
11133 (mi_multi_location_breakpoint_output_fixed): New.
11134 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11135 (mi_cmd_fix_multi_location_breakpoint_output): New.
11136 (mi_multi_location_breakpoint_output_fixed): New.
11137 * mi/mi-cmds.c (mi_cmds): Register command
11138 -fix-multi-location-breakpoint-output.
11139 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11140 interpreter "mi".
11141
8e5e5494
SM
111422019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11143
11144 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11145 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11146 instantiate mi_ui_out based on interpreter name.
11147 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11148 * mi/mi-main.c (mi_load_progress): Likewise.
11149
197df35e
JB
111502019-03-12 John Baldwin <jhb@FreeBSD.org>
11151
11152 * NEWS: Combine separate "New targets" sections for 8.3.
11153
8399425f
JB
111542019-03-12 John Baldwin <jhb@FreeBSD.org>
11155
11156 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11157 (ppcfbsd_init_abi): Install gdbarch
11158 "fetch_tls_load_module_address" and "get_thread_local_address"
11159 methods.
11160
b0f87ed0
JB
111612019-03-12 John Baldwin <jhb@FreeBSD.org>
11162
11163 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11164 (riscv_fbsd_init_abi): Install gdbarch
11165 "fetch_tls_load_module_address" and "get_thread_local_address"
11166 methods.
11167
ce25aa57
JB
111682019-03-12 John Baldwin <jhb@FreeBSD.org>
11169
11170 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11171 (i386fbsd_init_abi): Install gdbarch
11172 "fetch_tls_load_module_address" and "get_thread_local_address"
11173 methods.
11174
f5424cfa
JB
111752019-03-12 John Baldwin <jhb@FreeBSD.org>
11176
11177 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11178 (amd64fbsd_init_abi): Install gdbarch
11179 "fetch_tls_load_module_address" and "get_thread_local_address"
11180 methods.
11181
945f3901
JB
111822019-03-12 John Baldwin <jhb@FreeBSD.org>
11183
11184 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11185 (struct fbsd_pspace_data): New type.
11186 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11187 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11188 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11189 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11190 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11191
ef0bd204
JB
111922019-03-12 John Baldwin <jhb@FreeBSD.org>
11193
11194 * gdbtypes.c (lookup_struct_elt): New function.
11195 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11196 * gdbtypes.h (struct struct_elt): New type.
11197 (lookup_struct_elt): New prototype.
11198
36c53a02
JB
111992019-03-12 John Baldwin <jhb@FreeBSD.org>
11200
11201 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11202 remove disabled code block.
11203
6e056c81
JB
112042019-03-12 John Baldwin <jhb@FreeBSD.org>
11205
11206 * gdbarch.sh (get_thread_local_address): New method.
11207 * gdbarch.h, gdbarch.c: Regenerate.
11208 * target.c (target_translate_tls_address): Use
11209 gdbarch_get_thread_local_address if present instead of
11210 target::get_thread_local_address.
11211
cd250a18
JB
112122019-03-12 John Baldwin <jhb@FreeBSD.org>
11213
11214 * target.h (target::get_thread_local_address): Update comment.
11215
df22c1e5
JB
112162019-03-12 John Baldwin <jhb@FreeBSD.org>
11217
11218 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11219 objfile->separate_debug_objfile_backlink if not NULL.
11220
dd6876c9
JB
112212019-03-12 John Baldwin <jhb@FreeBSD.org>
11222
11223 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11224 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11225 (amd64bsd_store_inferior_registers): Likewise.
11226 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11227 Enable segment base registers.
11228 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11229 PT_GETFSBASE and PT_GETGSBASE.
11230 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11231 PT_SETGSBASE.
11232 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11233 segment base registers.
11234 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11235
1163a4b7
JB
112362019-03-12 John Baldwin <jhb@FreeBSD.org>
11237
11238 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11239 Update calls to i386_target_description to add 'segments'
11240 parameter.
11241 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11242 add segment base registers.
11243 * arch/i386.c (i386_create_target_description): Add 'segments'
11244 parameter to enable segment base registers.
11245 * arch/i386.h (i386_create_target_description): Likewise.
11246 * features/i386/32bit-segments.xml: New file.
11247 * features/i386/32bit-segments.c: Generate.
11248 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11249 call to i386_target_description to add 'segments' parameter.
11250 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11251 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11252 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11253 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11254 if feature is present.
11255 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11256 Add 'segments' parameter to call to i386_target_description.
11257 (i386_target_description): Add 'segments' parameter to enable
11258 segment base registers.
11259 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11260 to call to i386_target_description.
11261 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11262 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11263 Define I386_NUM_REGS.
11264 (i386_target_description): Add 'segments' parameter to enable
11265 segment base registers.
11266
3a350822
EZ
112672019-03-12 Eli Zaretskii <eliz@gnu.org>
11268
11269 PR/24325
11270 * source-cache.c: #undef open and close, to avoid unresolved
11271 externals during linking.
11272
ffdd69cf
TT
112732019-03-12 Tom Tromey <tromey@adacore.com>
11274
11275 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11276 const. Add initializers.
11277 (_initialize_remote): Don't initialize ptid globals.
11278
ec148c57
PA
112792019-03-12 Pedro Alves <palves@redhat.com>
11280
11281 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11282
32764270
PA
112832019-03-12 Pedro Alves <palves@redhat.com>
11284
11285 * cp-name-parser.y (main): Remove unused 'len' variable.
11286
17547186
TT
112872019-03-12 Tom Tromey <tromey@adacore.com>
11288
11289 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11290 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11291
d3a70e03
TT
112922019-03-12 Tom Tromey <tromey@adacore.com>
11293
11294 * linux-nat.c (iterate_over_lwps): Update.
11295 (stop_callback): Remove parameter.
11296 (stop_wait_callback, detach_callback, resume_set_callback)
11297 (select_singlestep_lwp_callback, set_ignore_sigint)
11298 (status_callback, resumed_callback, resume_clear_callback)
11299 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11300 data parameter.
11301 (linux_nat_target::detach, linux_nat_target::resume)
11302 (linux_stop_and_wait_all_lwps, select_event_lwp)
11303 (linux_nat_filter_event, linux_nat_wait_1)
11304 (linux_nat_target::kill, linux_nat_target::stop)
11305 (linux_nat_target::stop): Update.
11306 (linux_nat_resume_callback): Change type.
11307 (resume_stopped_resumed_lwps, count_events_callback)
11308 (select_event_lwp_callback): Likewise.
11309 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11310 * arm-linux-nat.c (struct update_registers_data): Remove.
11311 (update_registers_callback): Change type.
11312 (arm_linux_insert_hw_breakpoint1): Update.
11313 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11314 parameter.
11315 (x86_linux_dr_set_addr): Update.
11316 (x86_linux_dr_set_control): Update.
11317 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11318 (iterate_over_lwps): Use gdb::function_view.
11319 * nat/aarch64-linux-hw-point.c (struct
11320 aarch64_dr_update_callback_param): Remove.
11321 (debug_reg_change_callback): Change type.
11322 (aarch64_notify_debug_reg_change): Update.
11323 * s390-linux-nat.c (s390_refresh_per_info): Update.
11324
82cb27ff
TT
113252019-03-11 Tom Tromey <tromey@adacore.com>
11326
11327 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11328 redundant assignment to "this_cu".
11329
568c0683
SM
113302019-03-08 Simon Marchi <simon.marchi@efficios.com>
11331
11332 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11333
f09ce22d
SM
113342019-03-08 Simon Marchi <simon.marchi@efficios.com>
11335
11336 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11337 from...
11338 (rank_one_type): ... this.
11339
595f96a9
SM
113402019-03-08 Simon Marchi <simon.marchi@efficios.com>
11341
11342 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11343 from...
11344 (rank_one_type): ... this.
11345
2598a94b
SM
113462019-03-08 Simon Marchi <simon.marchi@efficios.com>
11347
11348 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11349 from...
11350 (rank_one_type): ... this.
11351
7f17b20d
SM
113522019-03-08 Simon Marchi <simon.marchi@efficios.com>
11353
11354 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11355 from...
11356 (rank_one_type): ... this.
11357
2c509035
SM
113582019-03-08 Simon Marchi <simon.marchi@efficios.com>
11359
11360 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11361 from...
11362 (rank_one_type): ... this.
11363
0dd322dc
SM
113642019-03-08 Simon Marchi <simon.marchi@efficios.com>
11365
11366 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11367 from...
11368 (rank_one_type): ... this.
11369
41ea4728
SM
113702019-03-08 Simon Marchi <simon.marchi@efficios.com>
11371
11372 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11373 from...
11374 (rank_one_type): ... this.
11375
793cd1d2
SM
113762019-03-08 Simon Marchi <simon.marchi@efficios.com>
11377
11378 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11379 from...
11380 (rank_one_type): ... this.
11381
34910087
SM
113822019-03-08 Simon Marchi <simon.marchi@efficios.com>
11383
11384 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11385 from...
11386 (rank_one_type): ... this.
11387
f1f832d6
SM
113882019-03-08 Simon Marchi <simon.marchi@efficios.com>
11389
11390 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11391 from...
11392 (rank_one_type): ... this.
11393
b9f4512f
SM
113942019-03-08 Simon Marchi <simon.marchi@efficios.com>
11395
11396 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11397 from...
11398 (rank_one_type): ... this.
11399
9293fc63
SM
114002019-03-08 Simon Marchi <simon.marchi@efficios.com>
11401
11402 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11403 from...
11404 (rank_one_type): ... this.
11405
e3abbe7e
PW
114062019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11407
11408 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11409 inferior-events' shows the example events.
11410
e4adb939
EZ
114112019-03-08 Eli Zaretskii <eliz@gnu.org>
11412
11413 Support styling on native MS-Windows console
11414
11415 PR/24315
11416 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11417 on MS-Windows if $TERM is not defined.
11418
11419 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11420
11421 * posix-hdep.c (gdb_console_fputs):
11422 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11423 functions.
11424 * ui-file.h (gdb_console_fputs): Add prototype.
11425
11426 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11427 back to fputs only if the former returns zero.
11428
25629dfd
TT
114292019-03-07 Tom Tromey <tom@tromey.com>
11430
11431 * symmisc.c (print_symbol_bcache_statistics): Update.
11432 (print_objfile_statistics): Update.
11433 * symfile.c (allocate_symtab): Update.
11434 * stabsread.c: Don't include bcache.h.
11435 * psymtab.h (struct psymbol_bcache): Don't declare.
11436 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11437 (psymbol_bcache_init, psymbol_bcache_free)
11438 (psymbol_bcache_get_bcache): Don't declare.
11439 * psymtab.c (struct psymbol_bcache): Remove.
11440 (psymtab_storage::psymtab_storage): Update.
11441 (psymtab_storage::~psymtab_storage): Update.
11442 (psymbol_bcache_init, psymbol_bcache_free)
11443 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11444 (add_psymbol_to_bcache): Update.
11445 (allocate_psymtab): Update.
11446 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11447 macro_cache>: No longer pointers.
11448 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11449 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11450 * macrotab.c (macro_bcache): Update.
11451 * macroexp.c: Don't include bcache.h.
11452 * gdbtypes.c (check_types_worklist): Update.
11453 (types_deeply_equal): Remove TRY/CATCH. Update.
11454 * elfread.c (elf_symtab_read): Update.
11455 * dwarf2read.c: Don't include bcache.h.
11456 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11457 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11458 (print_bcache_statistics, bcache_memory_used): Don't declare.
11459 (struct bcache): Move from bcache.c. Add constructor, destructor,
11460 methods. Rename all data members.
11461 * bcache.c (struct bcache): Move to bcache.h.
11462 (bcache::expand_hash_table): Rename from expand_hash_table.
11463 (bcache): Remove.
11464 (bcache::insert): Rename from bcache_full.
11465 (bcache::compare): Rename from bcache_compare.
11466 (bcache_xmalloc): Remove.
11467 (bcache::~bcache): Rename from bcache_xfree.
11468 (bcache::print_statistics): Rename from print_bcache_statistics.
11469 (bcache::memory_used): Rename from bcache_memory_used.
11470
fe726667
PA
114712019-03-07 Pedro Alves <palves@redhat.com>
11472
11473 * infrun.c (normal_stop): Also check for
11474 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11475
7584bb30
AB
114762019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11477
11478 * f-lang.c (value_from_host_double): Moved to...
11479 * value.c (value_from_host_double): ...here.
11480 * value.h (value_from_host_double): Declare.
11481 * guile/scm-math.c (vlscm_convert_typed_number): Use
11482 value_from_host_double.
11483 (vlscm_convert_number): Likewise.
11484 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11485 * python/py-value.c (convert_value_from_python): Likewise.
11486
a7b1986e
TT
114872019-03-06 Tom Tromey <tom@tromey.com>
11488
11489 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11490
0ccf4211
TT
114912019-03-06 Tom Tromey <tom@tromey.com>
11492
11493 * utils.h (free_current_contents): Don't declare.
11494 * utils.c (free_current_contents): Remove.
11495
fe7b42e5
TT
114962019-03-06 Tom Tromey <tom@tromey.com>
11497
11498 * top.c (quit_force): Update.
11499 * main.c (captured_command_loop): Update.
11500 * common/new-op.c (operator new): Update.
11501 * common/common-exceptions.c (struct catcher)
11502 <save_cleanup_chain>: Remove member.
11503 (exceptions_state_mc_init): Update.
11504 (exception_try_scope_entry): Return nullptr.
11505 (exception_try_scope_exit, exception_rethrow)
11506 (throw_exception_sjlj, throw_exception_cxx): Update.
11507 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11508 (all_cleanups, do_cleanups, discard_cleanups)
11509 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11510 (restore_cleanups, restore_final_cleanups): Don't declare.
11511 (do_final_cleanups): Remove parameter.
11512 * common/cleanups.c (cleanup_chain, make_cleanup)
11513 (make_cleanup_dtor, all_cleanups, do_cleanups)
11514 (discard_my_cleanups, discard_cleanups)
11515 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11516 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11517 (null_cleanup): Remove.
11518 (do_final_cleanups): Remove parameter.
11519
c6321f19
TT
115202019-03-06 Tom Tromey <tom@tromey.com>
11521
11522 * remote.c (remote_target::remote_parse_stop_reply): Use
11523 unique_xmalloc_ptr.
11524
61b30099
TT
115252019-03-06 Tom Tromey <tom@tromey.com>
11526
11527 * stabsread.c (struct stabs_field_info): Rename from field_info.
11528 <list, fnlist>: Add initializers.
11529 <obstack>: New member.
11530 (read_member_functions, read_struct_fields, read_baseclasses):
11531 Allocate on obstack. Don't use cleanups.
11532 (read_one_struct_field, read_member_functions, read_struct_fields)
11533 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11534 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11535 (read_struct_type): Update.
11536
6cceac94
TT
115372019-03-06 Tom Tromey <tom@tromey.com>
11538
11539 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11540 * common/filestuff.h (make_cleanup_close): Don't declare.
11541 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11542 Remove.
11543
72412762
TT
115442019-03-06 Tom Tromey <tom@tromey.com>
11545
11546 * solib-aix.c: Use make_scope_exit.
11547
2b6ff1c0
TT
115482019-03-06 Tom Tromey <tom@tromey.com>
11549
11550 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11551 Use make_scope_exit.
11552
d01c5877
TT
115532019-03-06 Tom Tromey <tom@tromey.com>
11554
11555 * solib-svr4.c (disable_probes_interface): Remove parameter.
11556 (svr4_handle_solib_event): Use make_scope_exit.
11557
32603266
TT
115582019-03-06 Tom Tromey <tom@tromey.com>
11559
11560 * remote.c (struct stop_reply_deleter): Remove.
11561 (stop_reply_up): Update.
11562 (struct stop_reply): Derive from notif_event. Don't typedef.
11563 <regcache>: Now a std::vector.
11564 (stop_reply_xfree): Remove.
11565 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11566 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11567 (remote_target::discard_pending_stop_replies): Use delete.
11568 (remote_target::remote_parse_stop_reply): Update.
11569 (remote_target::process_stop_reply): Update.
11570 * remote-notif.h (struct notif_event): Add virtual destructor.
11571 Remove "dtr" member.
11572 (struct notif_client) <alloc_event>: Return a unique_ptr.
11573 (notif_event_xfree): Don't declare.
11574 (notif_event_up): New typedef.
11575 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11576 (notif_event_xfree, do_notif_event_xfree): Remove.
11577 (remote_notif_state_xfree): Update.
11578
9799571e
TT
115792019-03-06 Tom Tromey <tom@tromey.com>
11580
11581 * infrun.c (displaced_step_clear_cleanup): Now a
11582 forward_scope_exit type.
11583 (displaced_step_prepare_throw): Update.
11584 (displaced_step_fixup): Update.
11585
09e3c4ca
TT
115862019-03-06 Tom Tromey <tom@tromey.com>
11587
11588 * inferior.h (class inferior): Update comment.
11589 * gdbthread.h (class thread_info): Update comment.
11590
e2a03548
TT
115912019-03-06 Joel Brobecker <brobecker@adacore.com>
11592 Tom Tromey <tom@tromey.com>
11593
11594 * stabsread.h (struct stab_section_list): Remove.
11595 (coffstab_build_psymtabs): Update.
11596 * dbxread.c (symbuf_sections): Now a std::vector.
11597 (sect_idx): New global.
11598 (fill_symbuf): Update.
11599 (coffstab_build_psymtabs): Change type of stabsects parameter.
11600 Update.
11601 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11602 std::vector.
11603 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11604 (coff_locate_sections): Update.
11605 (coff_symfile_read): Remove cleanups. Update.
11606 (init_stringtab): Add storage parameter.
11607 (free_stringtab, free_stringtab_cleanup): Remove.
11608 (init_lineno): Add storage parameter.
11609 (free_linetab, free_linetab_cleanup): Remove.
11610
b7e60d85
PA
116112019-03-06 Pedro Alves <palves@redhat.com>
11612
11613 * linux-fork.c (fork_info::clobber_regs): Delete.
11614 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11615 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11616 comment. Adjust.
11617 (scoped_switch_fork_info::scoped_switch_fork_info)
11618 (checkpoint_command, linux_fork_context): Adjust
11619 fork_save_infrun_state calls.
11620
e52c971f
PA
116212019-03-06 Pedro Alves <palves@redhat.com>
11622
11623 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11624 (inf_has_multiple_threads): Return 'bool' and rewrite using
11625 inferior_info::threads().
11626
06974e6c
PA
116272019-03-06 Pedro Alves <palves@redhat.com>
11628
11629 * linux-fork.c: Include <list>.
11630 (fork_list): Now a std::list instance.
11631 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11632 (forks_exist_p, find_last_fork): Adjust.
11633 (new_fork): Delete.
11634 (one_fork_p): New.
11635 (add_fork): Adjust.
11636 (free_fork): Delete, folded into fork_info::~fork_info().
11637 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11638 Adjust.
11639 (init_fork_list): Delete.
11640 (linux_fork_killall, linux_fork_mourn_inferior)
11641 (linux_fork_detach, info_checkpoints_command): Adjust.
11642 (_initialize_linux_fork): No longer call init_fork_list.
11643
72f31aea
PA
116442019-03-06 Pedro Alves <palves@redhat.com>
11645
11646 * linux-fork.c (new_fork): New, split out of ...
11647 (add_fork): ... this. Return void. Move "first fork" special
11648 case from here, to ...
11649 (checkpoint_command): ... here.
11650 * linux-linux.h (add_fork): Return void.
11651
efbecbc1
AB
116522019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11653
11654 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11655
0841c79a
AB
116562019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11657 Chris January <chris.january@arm.com>
11658 David Lecomber <david.lecomber@arm.com>
11659
11660 * f-exp.y: New token, UNOP_INTRINSIC.
11661 (exp): New pattern using UNOP_INTRINSIC token.
11662 (f77_keywords): Add 'abs' keyword.
11663 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11664 (value_from_host_double): New function.
11665 (evaluate_subexp_f): Support UNOP_ABS.
11666
4a270568
AB
116672019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11668
11669 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11670 types.
11671
067630bd
AB
116722019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11673
11674 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11675 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11676 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11677
3be47f7a
AB
116782019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11679
11680 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11681
4d00f5d8
AB
116822019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11683 Chris January <chris.january@arm.com>
11684
11685 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11686 * f-exp.y: Define 'KIND' token.
11687 (exp): New pattern for KIND expressions.
11688 (ptype): Handle types with a kind extension.
11689 (direct_abs_decl): Extend to spot kind extensions.
11690 (f77_keywords): Add 'kind' to the list.
11691 (push_kind_type): New function.
11692 (convert_to_kind_type): New function.
11693 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11694 * parse.c (operator_length_standard): Likewise.
11695 * parser-defs.h (enum type_pieces): Add tp_kind.
11696 * std-operator.def: Add UNOP_KIND.
11697
e454224f
AB
116982019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11699
11700 * f-exp.y (f_parse): Set yydebug.
11701
9dad4a58
AB
117022019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11703
11704 * f-lang.c (evaluate_subexp_f): New function.
11705 (exp_descriptor_f): New global.
11706 (f_language_defn): Use exp_descriptor_f instead of
11707 exp_descriptor_standard.
11708
c8f91604
AB
117092019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11710
11711 * f-exp.y (struct token): Add comments.
11712 (dot_ops): Remove uppercase versions and the end marker.
11713 (f77_keywords): Likewise.
11714 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11715 entries in the dot_ops array are case insensitive, and use
11716 strncasecmp to compare strings. Also some whitespace cleanup in
11717 this area. Similar for the f77_keywords array, except entries in
11718 this list might be case sensitive.
11719
dd9f2c76
AB
117202019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11721
11722 * f-exp.y (struct f77_boolean_val): Add comments.
11723 (boolean_values): Remove uppercase versions, and end marker.
11724 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11725 and use strncasecmp to achieve case insensitivity. Additionally,
11726 perform whitespace cleanup around this code.
11727
67a3048c
TT
117282019-03-06 Tom Tromey <tromey@adacore.com>
11729
11730 * remote-sim.c (gdbsim_target_open): Use result of
11731 gdb_argv::release.
11732
aa3cfbda
RB
117332019-03-06 Richard Bunt <richard.bunt@arm.com>
11734 Dirk Schubert <dirk.schubert@arm.com>
11735 Chris January <chris.january@arm.com>
11736
11737 * eval.c (evaluate_subexp_standard): Call Fortran argument
11738 wrapping logic.
11739 * f-lang.c (struct value): A value which can be passed into a
11740 Fortran function call.
11741 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11742 where appropriate.
11743 (struct type): Value ready for a Fortran function call.
11744 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11745 is needed.
11746 * f-lang.h (fortran_argument_convert): Declaration.
11747 (fortran_preserve_arg_pointer): Declaration.
11748 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11749
ea38e5df
TT
117502019-03-05 Tom Tromey <tromey@adacore.com>
11751
11752 * python/py-prettyprint.c (print_string_repr): Remove #if.
11753 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11754
06b5b831
TT
117552019-03-05 Tom Tromey <tromey@adacore.com>
11756
11757 * target.c (the_dummy_target): Move later. Change type to
11758 "dummy_target".
11759 (initialize_targets): Don't initialize the_dummy_target.
11760
edbd9e45
TT
117612019-03-05 Tom Tromey <tromey@adacore.com>
11762
11763 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11764 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11765
c119e040
TT
117662019-03-05 Tom Tromey <tromey@adacore.com>
11767
11768 * windows-nat.c (windows_nat_target::attach)
11769 (windows_nat_target::detach): Don't call gdb_flush.
11770 * valprint.c (generic_val_print, val_print, val_print_string):
11771 Don't call gdb_flush.
11772 * utils.c (defaulted_query): Don't call gdb_flush.
11773 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11774 * target.c (target_announce_detach): Don't call gdb_flush.
11775 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11776 * remote.c (extended_remote_target::attach): Don't call
11777 gdb_flush.
11778 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11779 * printcmd.c (do_examine): Don't call gdb_flush.
11780 (info_display_command): Don't call gdb_flush.
11781 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11782 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11783 * memattr.c (info_mem_command): Don't call gdb_flush.
11784 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11785 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11786 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11787 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11788 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11789 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11790 (gnu_nat_target::detach): Don't call gdb_flush.
11791 * f-valprint.c (f_val_print): Don't call gdb_flush.
11792 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11793 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11794 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11795 gdb_flush.
11796 * c-valprint.c (c_val_print): Don't call gdb_flush.
11797 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11798
895dafa6
TT
117992019-03-05 Tom Tromey <tromey@adacore.com>
11800
11801 * varobj.c (update_dynamic_varobj_children): Update.
11802 (install_default_visualizer): Use reset, not release.
11803 * value.c (set_internalvar): Update.
11804 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11805 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11806 ATTRIBUTE_UNUSED_RESULT.
11807
88a774b9
TT
118082019-03-05 Tom Tromey <tromey@adacore.com>
11809
11810 * remote.c (class scoped_remote_fd) <release>: Add
11811 ATTRIBUTE_UNUSED_RESULT.
11812
4e4a8b93
TT
118132019-03-05 Tom Tromey <tromey@adacore.com>
11814
11815 * macroexp.c (struct macro_buffer) <release>: Add
11816 ATTRIBUTE_UNUSED_RESULT.
11817
083eef1f
TT
118182019-03-05 Tom Tromey <tromey@adacore.com>
11819
11820 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11821 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11822 ATTRIBUTE_UNUSED_RESULT.
11823
3cabd438
TT
118242019-03-05 Tom Tromey <tromey@adacore.com>
11825
11826 * common/scoped_fd.h (class scoped_fd) <release>: Add
11827 ATTRIBUTE_UNUSED_RESULT.
11828
41e3300a
TT
118292019-03-05 Tom Tromey <tromey@adacore.com>
11830
11831 * parser-defs.h (struct parser_state) <release>: Add
11832 ATTRIBUTE_UNUSED_RESULT.
11833
18cb7c9f
TT
118342019-03-05 Tom Tromey <tromey@adacore.com>
11835
11836 * utils.h (class gdb_argv) <release>: Add
11837 ATTRIBUTE_UNUSED_RESULT.
11838 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11839
41fa577f
EZ
118402019-03-02 Eli Zaretskii <eliz@gnu.org>
11841
a6a4b2c6
EZ
11842 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11843 for-loop range, to avoid compiler warnings.
11844
11845 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11846 avoid compiler warnings about unused variables.
11847
742a7df5
EZ
11848 * NEWS: Mention end of support for native debugging on MS-Windows
11849 before XP.
11850
41fa577f
EZ
11851 PR gdb/24292
11852 * common/netstuff.c:
11853 * gdbserver/gdbreplay.c
11854 * gdbserver/remote-utils.c:
11855 * ser-tcp.c:
11856 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11857 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11858 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11859 'getaddrinfo' and 'freeaddrinfo' were not available before
11860 Windows XP, and mingw.org's MinGW headers by default define
11861 _WIN32_WINNT to 0x500.
11862
827f438f
GB
118632019-03-01 Gary Benson <gbenson@redhat.com>
11864
11865 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11866
92137da0
RO
118672019-02-28 Brian Vandenberg <phantall@gmail.com>
11868 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11869
11870 PR gdb/8527
11871 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11872 set_sigint_trap, clear_sigint_trap.
11873
799efbe8
PW
118742019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11875
11876 * target.c (target_detach): Clear the regcache and the
11877 frame cache.
11878
8ed25214
PA
118792019-02-27 Pedro Alves <palves@redhat.com>
11880
11881 * utils.c (set_screen_size): When we cap the height/width sizes,
11882 tweak the corresponding command variable to show "unlimited":
11883
23031e31
SJ
118842019-02-27 Saagar Jha <saagar@saagarjha.com>
11885 Pedro Alves <palves@redhat.com>
11886
11887 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11888 before calling rl_set_screen_size.
11889
6c28e44a
TT
118902019-02-27 Tom Tromey <tromey@adacore.com>
11891
11892 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11893 define.
11894 * python/py-value.c: Remove Python 2.4 workaround.
11895 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11896 workaround.
11897 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11898 Python 2.4 workaround.
11899 * python/python-internal.h: Remove Python 2.4 comment.
11900 (Py_ssize_t): Don't define.
11901 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11902 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11903 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11904 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11905 * python/python.c (do_start_initialization): Remove Python 2.4
11906 workaround.
11907 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11908 (print_children): Remove Python 2.4 workaround.
11909 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11910 workaround.
11911 (CHARBUFFERPROC_NAME): Remove.
11912 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11913 Python 2.4 workaround.
11914
2c3fc25d 119152019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11916
2c3fc25d
KB
11917 * NEWS: Note minimum Python version.
11918
6ca62222
KB
119192019-02-27 Kevin Buettner <kevinb@redhat.com>
11920
11921 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11922 code from these functions. Remove corresponding ifdefs. Use
11923 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11924 Remove gotos and target of gotos.
11925 (infpy_search_memory): Likewise.
11926
f4bc7d2c
AB
119272019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11928
11929 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11930 (hppa_gdbarch_init): Don't register deleted functions with
11931 gdbarch.
11932
9734a586
AB
119332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11934
11935 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11936 (h8300_unwind_sp): Delete.
11937 (h8300_dummy_id): Delete.
11938 (h8300_gdbarch_init): Don't register deleted functions with
11939 gdbarch.
11940
68b867f3
AB
119412019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11942
11943 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11944 (ft32_unwind_pc): Delete.
11945 (ft32_unwind_sp): Delete.
11946 (ft32_gdbarch_init): Don't register deleted functions with
11947 gdbarch.
11948
2fbe7ad0
AB
119492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11950
11951 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11952 (frv_unwind_pc): Delete.
11953 (frv_unwind_sp): Delete.
11954 (frv_gdbarch_init): Don't register deleted functions with
11955 gdbarch.
11956
76055cbe
AB
119572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11958
11959 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11960 (riscv_unwind_pc): Delete.
11961 (riscv_unwind_sp): Delete.
11962 (riscv_gdbarch_init): Don't register deleted functions with
11963 gdbarch.
11964
4133e5a1
AB
119652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11966
11967 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11968 (csky_unwind_pc): Delete.
11969 (csky_unwind_sp): Delete.
11970 (csky_gdbarch_init): Don't register deleted functions with
11971 gdbarch.
11972
8010f576
AB
119732019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11974
11975 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11976 (cris_unwind_pc): Delete.
11977 (cris_unwind_sp): Delete.
11978 (cris_gdbarch_init): Don't register deleted functions with
11979 gdbarch.
11980
b56bf084
AB
119812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11982
11983 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11984 (bfin_unwind_pc): Delete.
11985 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11986
a19a650f
AB
119872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11988
11989 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11990 (arm_unwind_pc): Delete.
11991 (arm_unwind_sp): Delete.
11992 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11993
f8278c3c
AB
119942019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11995
11996 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11997 (arc_unwind_pc): Delete.
11998 (arc_unwind_sp): Delete.
11999 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12000
480e46cf
AB
120012019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12002
12003 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12004 (alpha_unwind_pc): Delete.
12005 (alpha_gdbarch_init): Don't register deleted functions with
12006 gdbarch.
12007
7a995095
AB
120082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12009
12010 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12011 (aarch64_unwind_pc): Delete.
12012 (aarch64_unwind_sp): Delete.
12013 (aarch64_gdbarch_init): Don't register deleted functions with
12014 gdbarch.
12015
bf9a735e
AB
120162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12017
12018 * gdbtypes.c (type_align): Don't consider static members when
12019 computing structure alignment.
12020
5561fc30
AB
120212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12022
12023 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12024 return 0 for other types.
12025 * arch-utils.c (default_type_align): Always return 0.
12026 * gdbarch.h: Regenerate.
12027 * gdbarch.sh (type_align): Extend comment.
12028 * gdbtypes.c (type_align): Add additional comments, always call
12029 gdbarch_type_align before applying the default rules.
12030 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12031 generic code will then apply a suitable default.
12032 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12033 types, return 0 for other types.
12034
9335e75a
JB
120352019-02-27 Joel Brobecker <brobecker@adacore.com>
12036
12037 * NEWS: Create a new section for the next release branch.
12038 Rename the section of the current branch, now that it has
12039 been cut.
12040
3d34d8de
JB
120412019-02-27 Joel Brobecker <brobecker@adacore.com>
12042
12043 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12044 * version.in: Bump version to 8.3.50.DATE-git.
12045
143420fb
SM
120462019-02-26 Simon Marchi <simon.marchi@efficios.com>
12047
12048 * aix-thread.c (ptid_cmp): Remove unused variable.
12049 (get_signaled_thread): Likewise.
12050 (store_regs_user_thread): Likewise.
12051 (store_regs_kernel_thread): Likewise.
12052 (fetch_regs_kernel_thread): Remove shadowed variable.
12053
172fb711
AB
120542019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12055
12056 * features/riscv/32bit-cpu.xml: Add register numbers.
12057 * features/riscv/32bit-fpu.c: Regenerate.
12058 * features/riscv/32bit-fpu.xml: Add register numbers.
12059 * features/riscv/64bit-cpu.xml: Add register numbers.
12060 * features/riscv/64bit-fpu.c: Regenerate.
12061 * features/riscv/64bit-fpu.xml: Add register numbers.
12062
26c89782
KB
120632019-02-26 Kevin Buettner <kevinb@redhat.com>
12064
af54ade9 12065 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
12066 * python/py-value.c (convert_buffer_and_type_to_value): New
12067 function.
12068 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12069 Add support for handling an optional second argument. Call
12070 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
12071 * python/python-internal.h (Py_buffer_deleter): New struct.
12072 (Py_buffer_up): New typedef.
12073
0f58c9e8
JB
120742019-02-25 John Baldwin <jhb@FreeBSD.org>
12075
12076 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12077 instead of releasing ownership.
12078
0a0f4c01
JR
120792019-02-25 Jordan Rupprecht <rupprecht@google.com>
12080
12081 * dwarf2read.c (open_and_init_dwp_file): Call
12082 elf_numsections instead of bfd_count_sections to initialize
12083 dwp_file->num_sections.
12084
cd5a152c
TT
120852019-02-25 Tom Tromey <tromey@adacore.com>
12086
12087 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12088
8a6a8513
SDJ
120892019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12090
12091 * gcore.in: Add '--readnever' option when invoking GDB.
12092
04dcda9c
SM
120932019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12094
12095 * MAINTAINERS: Update my email address.
12096
07bc701d
SM
120972019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12098
12099 * build-id.c (build_id_to_debug_bfd_1): New function.
12100 (build_id_to_debug_bfd): Look for separate debug file in
12101 sysroot.
12102
c6f4a5d0
AB
121032019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12104
12105 * gdbarch.sh: Update the copyright year range that is placed into
12106 generated files.
12107
9600246d
KS
121082019-02-22 Keith Seitz <keiths@redhat.com>
12109
12110 PR symtab/23853
12111 * linespec.c (create_sals_line_offset): Search for the default
12112 symtab's filename instead of its fullname.
12113
7557a514
AH
121142019-02-21 Alan Hayward <alan.hayward@arm.com>
12115
12116 * NEWS: Update style defaults.
12117
ee2bcb0c
AH
121182019-02-21 Alan Hayward <alan.hayward@arm.com>
12119
12120 * main.c (captured_main_1): Disable styling in batch mode.
12121
0c95f9ed
TT
121222019-02-20 Tom Tromey <tom@tromey.com>
12123
12124 * symtab.c (symtab_symbol_info): Fix typos.
12125
c763b894
TT
121262019-02-20 Tom Tromey <tromey@adacore.com>
12127
12128 * findcmd.c (_initialize_mem_search): Use upper case for
12129 metasyntactic variables.
12130
0ef8a082
AH
121312019-02-20 Alan Hayward <alan.hayward@arm.com>
12132
12133 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12134 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12135
6caa91b6
SM
121362019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12137
12138 * top.h (source_file_name): Change to std::string.
12139 * top.c (source_file_name): Likewise.
12140 (command_line_input): Adjust.
12141 * cli/cli-script.c (script_from_file): Adjust.
12142
98814c6c
TT
121432019-02-19 Tom Tromey <tromey@adacore.com>
12144
12145 * ravenscar-thread.c
12146 (ravenscar_thread_target::update_thread_list): Don't call
12147 ada_build_task_list.
12148 * ada-lang.h (ada_build_task_list): Don't declare.
12149 * ada-tasks.c (struct ada_tasks_inferior_data)
12150 <task_list_valid_p>: Now bool.
12151 (read_known_tasks, ada_task_list_changed)
12152 (ada_tasks_invalidate_inferior_data): Update.
12153 (read_known_tasks_array): Return bool.
12154 (read_known_tasks_list): Likewise.
12155 (read_known_tasks): Return void.
12156 (ada_build_task_list): Now static.
12157
70cd633e
AB
121582019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12159
12160 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12161 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12162
040b3e95
PW
121632019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12164
12165 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12166 variant for ada_tasks_pspace_data_handle and
12167 ada_tasks_inferior_data_handle.
12168 (ada_tasks_pspace_data_cleanup): New function.
12169 (ada_tasks_inferior_data_cleanup): New function.
12170
9409233b
TT
121712019-02-17 Tom Tromey <tom@tromey.com>
12172
12173 * macrotab.h (macro_source_fullname): Return a std::string.
12174 * macrotab.c (macro_include, check_for_redefinition)
12175 (macro_undef, macro_lookup_definition, foreach_macro)
12176 (foreach_macro_in_scope): Update.
12177 (macro_source_fullname): Return a std::string.
12178 * macrocmd.c (show_pp_source_pos): Update.
12179
6506371f
TT
121802019-02-17 Tom Tromey <tom@tromey.com>
12181
12182 * macrocmd.c (show_pp_source_pos): Style the file names.
12183
0c820d67
TT
121842019-02-17 Tom Tromey <tom@tromey.com>
12185
12186 PR tui/24197:
12187 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12188
a0087920
TT
121892019-02-17 Tom Tromey <tom@tromey.com>
12190
12191 * ada-lang.c (user_select_syms): Use filtered printing.
12192 * utils.c (wrap_style): New global.
12193 (desired_style): Remove.
12194 (emit_style_escape): Add stream parameter.
12195 (set_output_style, reset_terminal_style, prompt_for_continue):
12196 Update.
12197 (flush_wrap_buffer): Only flush gdb_stdout.
12198 (wrap_here): Set wrap_style.
12199 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12200 treat escape sequences as a character. Change when wrap buffer is
12201 flushed.
12202 (fputs_styled): Do not set the output style when the default is
12203 requested.
12204 * ui-style.h (struct ui_file_style) <is_default>: New method.
12205 * source.c (print_source_lines_base): Emit escape sequences in one
12206 piece.
12207
75ba10dc
JB
122082019-02-17 Joel Brobecker <brobecker@adacore.com>
12209
12210 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12211 integers and enumeration types.
12212
a2cd4f14
JB
122132019-02-17 Joel Brobecker <brobecker@adacore.com>
12214
12215 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12216 instead of lookup_symbol_in_language
12217 (do_exact_match): New function.
12218 (ada_get_symbol_name_matcher): Return do_exact_match when
12219 doing a verbatim match.
12220
485b851b
TT
122212019-02-15 Tom Tromey <tromey@adacore.com>
12222
12223 * ravenscar-thread.c (ravenscar_thread_target::resume)
12224 (ravenscar_thread_target::wait): Special case wildcard requests.
12225
0b790b1e
TT
122262019-02-15 Tom Tromey <tromey@adacore.com>
12227
12228 * ravenscar-thread.c (base_ptid): Remove.
12229 (struct ravenscar_thread_target) <close>: New method.
12230 <m_base_ptid>: New member.
12231 <update_inferior_ptid, active_task, task_is_currently_active,
12232 runtime_initialized>: Declare methods.
12233 <ravenscar_thread_target>: Add constructor.
12234 (ravenscar_thread_target::task_is_currently_active)
12235 (ravenscar_thread_target::update_inferior_ptid)
12236 (ravenscar_runtime_initialized): Rename. Now methods.
12237 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12238 (ravenscar_thread_target::update_thread_list): Update.
12239 (ravenscar_thread_target::active_task): Now method.
12240 (ravenscar_thread_target::store_registers)
12241 (ravenscar_thread_target::prepare_to_store)
12242 (ravenscar_thread_target::prepare_to_store)
12243 (ravenscar_thread_target::mourn_inferior): Update.
12244 (ravenscar_inferior_created): Use "new" to create target.
12245 (ravenscar_thread_target::get_ada_task_ptid): Update.
12246 (_initialize_ravenscar): Don't initialize base_ptid.
12247 (ravenscar_ops): Remove global.
12248
dea57a62
TT
122492019-02-15 Tom Tromey <tromey@adacore.com>
12250
12251 * target.h (push_target): Declare new overload.
12252 * target.c (push_target): New overload, taking an rvalue reference.
12253 * remote.c (remote_target::open_1): Use push_target overload.
12254 * corelow.c (core_target_open): Use push_target overload.
12255
989f3c58
TT
122562019-02-15 Tom Tromey <tromey@adacore.com>
12257
12258 * ravenscar-thread.c (is_ravenscar_task)
12259 (ravenscar_task_is_currently_active): Return bool.
12260 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12261 (_initialize_ravenscar): Remove "(void)".
12262 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12263 Return bool.
12264
6cbcc006
TT
122652019-02-15 Tom Tromey <tromey@adacore.com>
12266
12267 * ravenscar-thread.c (ravenscar_runtime_initializer)
12268 (has_ravenscar_runtime, get_running_thread_id)
12269 (ravenscar_thread_target::resume): Fix indentation.
12270
7657f14d
TT
122712019-02-15 Tom Tromey <tromey@adacore.com>
12272
12273 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12274 from ravenscar_arch_ops.
12275 (sparc_ravenscar_ops::fetch_registers)
12276 (sparc_ravenscar_ops::store_registers): Now methods.
12277 (sparc_ravenscar_prepare_to_store): Remove.
12278 (sparc_ravenscar_ops): Redefine.
12279 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12280 methods and destructor. Remove members.
12281 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12282 (ravenscar_thread_target::store_registers)
12283 (ravenscar_thread_target::prepare_to_store): Update.
12284 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12285 Remove.
12286 (struct ppc_ravenscar_powerpc_ops): Derive from
12287 ravenscar_arch_ops.
12288 (ppc_ravenscar_powerpc_ops::fetch_registers)
12289 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12290 (ppc_ravenscar_powerpc_ops): Redefine.
12291 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12292 (ppc_ravenscar_e500_ops::fetch_registers)
12293 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12294 (ppc_ravenscar_e500_ops): Redefine.
12295 * aarch64-ravenscar-thread.c
12296 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12297 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12298 (aarch64_ravenscar_fetch_registers)
12299 (aarch64_ravenscar_store_registers): Now methods.
12300 (aarch64_ravenscar_ops): Redefine.
12301
5b6ea500
TT
123022019-02-15 Tom Tromey <tromey@adacore.com>
12303
12304 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12305 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12306 (ravenscar_thread_target::stopped_by_watchpoint)
12307 (ravenscar_thread_target::stopped_data_address)
12308 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12309
e397fd39
TT
123102019-02-15 Tom Tromey <tromey@adacore.com>
12311
12312 * ravenscar-thread.c: Fix some typos.
12313
cc12f4a8
TT
123142019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12315 Tom Tromey <tromey@adacore.com>
12316
12317 * ada-lang.c (ada_exception_sal): Change addr_string to a
12318 std::string.
12319 (create_ada_exception_catchpoint): Update.
12320
5f486660
TT
123212019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12322 Tom Tromey <tromey@adacore.com>
12323
12324 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12325 (bp_location_ops): Remove.
12326 (base_breakpoint_allocate_location): Update.
12327 (free_bp_location): Update.
12328 * ada-lang.c (class ada_catchpoint_location)
12329 <ada_catchpoint_location>: Remove ops parameter.
12330 (ada_catchpoint_location_dtor): Remove.
12331 (ada_catchpoint_location_ops): Remove.
12332 (allocate_location_exception): Update.
12333 * breakpoint.h (struct bp_location_ops): Remove.
12334 (class bp_location) <bp_location>: Remove bp_location_ops
12335 parameter.
12336 <~bp_location>: Add destructor.
12337 <ops>: Remove.
12338
b671c7fb
TS
123392019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12340 Pedro Alves <palves@redhat.com>
12341
12342 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12343 'PATH_MAX'.
12344
8071c5ce
DM
123452019-02-14 David Michael <fedora.dm0@gmail.com>
12346 Samuel Thibault <samuel.thibault@gnu.org>
12347 Thomas Schwinge <thomas@codesourcery.com>
12348
12349 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12350 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12351
b1041ae0
TS
123522019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12353
924514e1
TS
12354 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12355 (check_empty): Use "const char *".
12356
c29ee8d4
TS
12357 * gnu-nat.c (gnu_nat_target::detach): Instead of
12358 'detach_inferior (pid)' call
12359 'detach_inferior (find_inferior_pid (pid))'.
12360
6c6ef69f
TS
12361 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12362 'nat/fork-inferior.o'.
12363 * gnu-nat.c: #include "nat/fork-inferior.h".
12364
2d0a338c
TS
12365 * gnu-nat.c (gnu_nat_target::detach): Instead of
12366 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12367 * gnu-nat.h: #include "inf-child.h".
12368 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12369 'i386_gnu_nat_target::fetch_registers'.
12370 (gnu_store_registers): Rename/move to
12371 'i386_gnu_nat_target::store_registers'.
12372
cabb5f06
TS
12373 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12374 * gnu-nat.h (mach_thread_info): New function.
12375 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12376
b1041ae0
TS
12377 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12378
2988d01e
KF
123792019-02-14 Frederic Konrad <konrad@adacore.com>
12380
12381 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12382
c559d709
JB
123832019-02-14 Joel Brobecker <brobecker@adacore.com>
12384
12385 * windows-nat.c (windows_add_thread): Add new parameter
12386 "main_thread_p" with default value set to false. Update
12387 function documentation as well as all callers.
12388 (windows_delete_thread): Likewise.
12389 (fake_create_process): Update call to windows_add_thread.
12390 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12391 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12392 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12393 call to windows_delete_thread.
12394
007024cc
SM
123952019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12396
12397 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12398
f62318e9
JB
123992019-02-12 John Baldwin <jhb@FreeBSD.org>
12400
12401 * symfile.c (find_separate_debug_file): Use canonical path of
12402 sysroot with child_path instead of gdb_sysroot if it is valid.
12403
cd4b7848
JB
124042019-02-12 John Baldwin <jhb@FreeBSD.org>
12405
12406 * symfile.c (find_separate_debug_file): Use child_path to
12407 determine if an object file is under a sysroot.
12408
efac4bfe
JB
124092019-02-12 John Baldwin <jhb@FreeBSD.org>
12410
12411 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12412 unittests/child-path-selftests.c.
12413 * common/pathstuff.c (child_path): New function.
12414 * common/pathstuff.h (child_path): New prototype.
12415 * unittests/child-path-selftests.c: New file.
12416
402d2bfe
JB
124172019-02-12 John Baldwin <jhb@FreeBSD.org>
12418
12419 * symfile.c (find_separate_debug_file): Look for separate debug
12420 files in debug directories under the sysroot.
12421
1ed9f74e
PW
124222019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12423
12424 * symtab.h (struct minimal_symbol data_p): New const method.
12425 (struct minimal_symbol text_p): Likewise.
12426 * symtab.c (output_source_filename): Use file name style
12427 to print file name.
12428 (print_symbol_info): Likewise.
12429 (print_msymbol_info): Use address style to print addresses.
12430 Use function name style to print executable text symbols.
12431 (expand_symtab_containing_pc): Use data_p.
12432 (find_pc_sect_compunit_symtab): Likewise.
12433
2636d81d
PW
124342019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12435
12436 * breakpoint.c (describe_other_breakpoints): Use address style
12437 to print addresses.
12438 (say_where): Likewise.
12439
ac8c53cc
PW
124402019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12441
12442 * ada-typeprint.c (print_func_type): Print function name
12443 style to print function name.
12444 * c-typeprint.c (c_print_type_1): Likewise.
12445
ea638c43
AH
124462019-02-11 Alan Hayward <alan.hayward@arm.com>
12447
12448 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12449 for execve.
12450
ab759ca8
PW
124512019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12452
12453 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12454 type_stack.
12455
aff29d1c
JB
124562019-02-10 Joel Brobecker <brobecker@adacore.com>
12457
12458 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12459 TYPE_CODE_REF types.
12460
617126bc
JW
124612019-02-08 Jim Wilson <jimw@sifive.com>
12462
12463 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12464 (riscv_linux_fregset): New.
12465 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12466
46e3ed7f
TT
124672019-02-07 Tom Tromey <tom@tromey.com>
12468
12469 * thread.c (thread_cancel_execution_command): Update.
12470 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12471 methods.
12472 (struct thread_fsm_ops): Remove.
12473 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12474 (thread_fsm_should_stop, thread_fsm_return_value)
12475 (thread_fsm_set_finished, thread_fsm_finished_p)
12476 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12477 Don't declare.
12478 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12479 * infrun.c (clear_proceed_status_thread)
12480 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12481 (print_stop_event): Update.
12482 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12483 Add constructor.
12484 (step_command_fsm_ops): Remove.
12485 (new_step_command_fsm): Remove.
12486 (step_1): Update.
12487 (step_command_fsm::should_stop): Rename from
12488 step_command_fsm_should_stop.
12489 (step_command_fsm::clean_up): Rename from
12490 step_command_fsm_clean_up.
12491 (step_command_fsm::do_async_reply_reason): Rename from
12492 step_command_fsm_async_reply_reason.
12493 (struct until_next_fsm): Inherit from thread_fsm. Add
12494 constructor.
12495 (until_next_fsm_ops): Remove.
12496 (new_until_next_fsm): Remove.
12497 (until_next_fsm::should_stop): Rename from
12498 until_next_fsm_should_stop.
12499 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12500 (until_next_fsm::do_async_reply_reason): Rename from
12501 until_next_fsm_async_reply_reason.
12502 (struct finish_command_fsm): Inherit from thread_fsm. Add
12503 constructor. Change type of breakpoint.
12504 (finish_command_fsm_ops): Remove.
12505 (new_finish_command_fsm): Remove.
12506 (finish_command_fsm::should_stop): Rename from
12507 finish_command_fsm_should_stop.
12508 (finish_command_fsm::clean_up): Rename from
12509 finish_command_fsm_clean_up.
12510 (finish_command_fsm::return_value): Rename from
12511 finish_command_fsm_return_value.
12512 (finish_command_fsm::do_async_reply_reason): Rename from
12513 finish_command_fsm_async_reply_reason.
12514 (finish_command): Update.
12515 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12516 Add constructor.
12517 (call_thread_fsm_ops): Remove.
12518 (call_thread_fsm::call_thread_fsm): Rename from
12519 new_call_thread_fsm.
12520 (call_thread_fsm::should_stop): Rename from
12521 call_thread_fsm_should_stop.
12522 (call_thread_fsm::should_notify_stop): Rename from
12523 call_thread_fsm_should_notify_stop.
12524 (run_inferior_call, call_function_by_hand_dummy): Update.
12525 * cli/cli-interp.c (should_print_stop_to_console): Update.
12526 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12527 Add constructor. Change type of location_breakpoint,
12528 caller_breakpoint.
12529 (until_break_fsm_ops): Remove.
12530 (new_until_break_fsm): Remove.
12531 (until_break_fsm::should_stop): Rename from
12532 until_break_fsm_should_stop.
12533 (until_break_fsm::clean_up): Rename from
12534 until_break_fsm_clean_up.
12535 (until_break_fsm::do_async_reply_reason): Rename from
12536 until_break_fsm_async_reply_reason.
12537 (until_break_command): Update.
12538 * thread-fsm.c: Remove.
12539 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12540
1a5c2598
TT
125412019-02-07 Tom Tromey <tom@tromey.com>
12542
12543 * yy-remap.h: Add include guard.
12544 * xtensa-tdep.h: Add include guard.
12545 * xcoffread.h: Rename include guard.
12546 * varobj-iter.h: Add include guard.
12547 * tui/tui.h: Rename include guard.
12548 * tui/tui-winsource.h: Rename include guard.
12549 * tui/tui-wingeneral.h: Rename include guard.
12550 * tui/tui-windata.h: Rename include guard.
12551 * tui/tui-win.h: Rename include guard.
12552 * tui/tui-stack.h: Rename include guard.
12553 * tui/tui-source.h: Rename include guard.
12554 * tui/tui-regs.h: Rename include guard.
12555 * tui/tui-out.h: Rename include guard.
12556 * tui/tui-layout.h: Rename include guard.
12557 * tui/tui-io.h: Rename include guard.
12558 * tui/tui-hooks.h: Rename include guard.
12559 * tui/tui-file.h: Rename include guard.
12560 * tui/tui-disasm.h: Rename include guard.
12561 * tui/tui-data.h: Rename include guard.
12562 * tui/tui-command.h: Rename include guard.
12563 * tic6x-tdep.h: Add include guard.
12564 * target/waitstatus.h: Rename include guard.
12565 * target/wait.h: Rename include guard.
12566 * target/target.h: Rename include guard.
12567 * target/resume.h: Rename include guard.
12568 * target-float.h: Rename include guard.
12569 * stabsread.h: Add include guard.
12570 * rs6000-tdep.h: Add include guard.
12571 * riscv-fbsd-tdep.h: Add include guard.
12572 * regformats/regdef.h: Rename include guard.
12573 * record.h: Rename include guard.
12574 * python/python.h: Rename include guard.
12575 * python/python-internal.h: Rename include guard.
12576 * python/py-stopevent.h: Rename include guard.
12577 * python/py-ref.h: Rename include guard.
12578 * python/py-record.h: Rename include guard.
12579 * python/py-record-full.h: Rename include guard.
12580 * python/py-record-btrace.h: Rename include guard.
12581 * python/py-instruction.h: Rename include guard.
12582 * python/py-events.h: Rename include guard.
12583 * python/py-event.h: Rename include guard.
12584 * procfs.h: Add include guard.
12585 * proc-utils.h: Add include guard.
12586 * p-lang.h: Add include guard.
12587 * or1k-tdep.h: Rename include guard.
12588 * observable.h: Rename include guard.
12589 * nto-tdep.h: Rename include guard.
12590 * nat/x86-linux.h: Rename include guard.
12591 * nat/x86-linux-dregs.h: Rename include guard.
12592 * nat/x86-gcc-cpuid.h: Add include guard.
12593 * nat/x86-dregs.h: Rename include guard.
12594 * nat/x86-cpuid.h: Rename include guard.
12595 * nat/ppc-linux.h: Rename include guard.
12596 * nat/mips-linux-watch.h: Rename include guard.
12597 * nat/linux-waitpid.h: Rename include guard.
12598 * nat/linux-ptrace.h: Rename include guard.
12599 * nat/linux-procfs.h: Rename include guard.
12600 * nat/linux-osdata.h: Rename include guard.
12601 * nat/linux-nat.h: Rename include guard.
12602 * nat/linux-namespaces.h: Rename include guard.
12603 * nat/linux-btrace.h: Rename include guard.
12604 * nat/glibc_thread_db.h: Rename include guard.
12605 * nat/gdb_thread_db.h: Rename include guard.
12606 * nat/gdb_ptrace.h: Rename include guard.
12607 * nat/fork-inferior.h: Rename include guard.
12608 * nat/amd64-linux-siginfo.h: Rename include guard.
12609 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12610 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12611 * nat/aarch64-linux.h: Rename include guard.
12612 * nat/aarch64-linux-hw-point.h: Rename include guard.
12613 * mn10300-tdep.h: Add include guard.
12614 * mips-linux-tdep.h: Add include guard.
12615 * mi/mi-parse.h: Rename include guard.
12616 * mi/mi-out.h: Rename include guard.
12617 * mi/mi-main.h: Rename include guard.
12618 * mi/mi-interp.h: Rename include guard.
12619 * mi/mi-getopt.h: Rename include guard.
12620 * mi/mi-console.h: Rename include guard.
12621 * mi/mi-common.h: Rename include guard.
12622 * mi/mi-cmds.h: Rename include guard.
12623 * mi/mi-cmd-break.h: Rename include guard.
12624 * m2-lang.h: Add include guard.
12625 * location.h: Rename include guard.
12626 * linux-record.h: Rename include guard.
12627 * linux-nat.h: Add include guard.
12628 * linux-fork.h: Add include guard.
12629 * i386-darwin-tdep.h: Rename include guard.
12630 * hppa-linux-offsets.h: Add include guard.
12631 * guile/guile.h: Rename include guard.
12632 * guile/guile-internal.h: Rename include guard.
12633 * gnu-nat.h: Rename include guard.
12634 * gdb-stabs.h: Rename include guard.
12635 * frv-tdep.h: Add include guard.
12636 * f-lang.h: Add include guard.
12637 * event-loop.h: Add include guard.
12638 * darwin-nat.h: Rename include guard.
12639 * cp-abi.h: Rename include guard.
12640 * config/sparc/nm-sol2.h: Rename include guard.
12641 * config/nm-nto.h: Rename include guard.
12642 * config/nm-linux.h: Add include guard.
12643 * config/i386/nm-i386gnu.h: Rename include guard.
12644 * config/djgpp/nl_types.h: Rename include guard.
12645 * config/djgpp/langinfo.h: Rename include guard.
12646 * compile/gcc-cp-plugin.h: Add include guard.
12647 * compile/gcc-c-plugin.h: Add include guard.
12648 * compile/compile.h: Rename include guard.
12649 * compile/compile-object-run.h: Rename include guard.
12650 * compile/compile-object-load.h: Rename include guard.
12651 * compile/compile-internal.h: Rename include guard.
12652 * compile/compile-cplus.h: Rename include guard.
12653 * compile/compile-c.h: Rename include guard.
12654 * common/xml-utils.h: Rename include guard.
12655 * common/x86-xstate.h: Rename include guard.
12656 * common/version.h: Rename include guard.
12657 * common/vec.h: Rename include guard.
12658 * common/tdesc.h: Rename include guard.
12659 * common/selftest.h: Rename include guard.
12660 * common/scoped_restore.h: Rename include guard.
12661 * common/scoped_mmap.h: Rename include guard.
12662 * common/scoped_fd.h: Rename include guard.
12663 * common/safe-iterator.h: Rename include guard.
12664 * common/run-time-clock.h: Rename include guard.
12665 * common/refcounted-object.h: Rename include guard.
12666 * common/queue.h: Rename include guard.
12667 * common/ptid.h: Rename include guard.
12668 * common/print-utils.h: Rename include guard.
12669 * common/preprocessor.h: Rename include guard.
12670 * common/pathstuff.h: Rename include guard.
12671 * common/observable.h: Rename include guard.
12672 * common/netstuff.h: Rename include guard.
12673 * common/job-control.h: Rename include guard.
12674 * common/host-defs.h: Rename include guard.
12675 * common/gdb_wait.h: Rename include guard.
12676 * common/gdb_vecs.h: Rename include guard.
12677 * common/gdb_unlinker.h: Rename include guard.
12678 * common/gdb_unique_ptr.h: Rename include guard.
12679 * common/gdb_tilde_expand.h: Rename include guard.
12680 * common/gdb_sys_time.h: Rename include guard.
12681 * common/gdb_string_view.h: Rename include guard.
12682 * common/gdb_splay_tree.h: Rename include guard.
12683 * common/gdb_setjmp.h: Rename include guard.
12684 * common/gdb_ref_ptr.h: Rename include guard.
12685 * common/gdb_optional.h: Rename include guard.
12686 * common/gdb_locale.h: Rename include guard.
12687 * common/gdb_assert.h: Rename include guard.
12688 * common/filtered-iterator.h: Rename include guard.
12689 * common/filestuff.h: Rename include guard.
12690 * common/fileio.h: Rename include guard.
12691 * common/environ.h: Rename include guard.
12692 * common/common-utils.h: Rename include guard.
12693 * common/common-types.h: Rename include guard.
12694 * common/common-regcache.h: Rename include guard.
12695 * common/common-inferior.h: Rename include guard.
12696 * common/common-gdbthread.h: Rename include guard.
12697 * common/common-exceptions.h: Rename include guard.
12698 * common/common-defs.h: Rename include guard.
12699 * common/common-debug.h: Rename include guard.
12700 * common/cleanups.h: Rename include guard.
12701 * common/buffer.h: Rename include guard.
12702 * common/btrace-common.h: Rename include guard.
12703 * common/break-common.h: Rename include guard.
12704 * cli/cli-utils.h: Rename include guard.
12705 * cli/cli-style.h: Rename include guard.
12706 * cli/cli-setshow.h: Rename include guard.
12707 * cli/cli-script.h: Rename include guard.
12708 * cli/cli-interp.h: Rename include guard.
12709 * cli/cli-decode.h: Rename include guard.
12710 * cli/cli-cmds.h: Rename include guard.
12711 * charset-list.h: Add include guard.
12712 * buildsym-legacy.h: Rename include guard.
12713 * bfin-tdep.h: Add include guard.
12714 * ax.h: Rename include guard.
12715 * arm-linux-tdep.h: Add include guard.
12716 * arm-fbsd-tdep.h: Add include guard.
12717 * arch/xtensa.h: Rename include guard.
12718 * arch/tic6x.h: Add include guard.
12719 * arch/i386.h: Add include guard.
12720 * arch/arm.h: Rename include guard.
12721 * arch/arm-linux.h: Rename include guard.
12722 * arch/arm-get-next-pcs.h: Rename include guard.
12723 * arch/amd64.h: Add include guard.
12724 * arch/aarch64-insn.h: Rename include guard.
12725 * arch-utils.h: Rename include guard.
12726 * annotate.h: Add include guard.
12727 * amd64-darwin-tdep.h: Rename include guard.
12728 * aarch64-linux-tdep.h: Add include guard.
12729 * aarch64-fbsd-tdep.h: Add include guard.
12730 * aarch32-linux-nat.h: Add include guard.
12731
ab9268d2
PW
127322019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12733
12734 * macrotab.c (macro_define_internal): New function that
12735 factorizes macro_define_object_internal and macro_define_function
12736 code.
12737 (macro_define_object_internal): Use macro_define_internal.
12738 (macro_define_function): Likewise.
12739
bb0da2b4
PW
127402019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12741
12742 * macrocmd.c (extract_identifier): Return
12743 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12744 callers.
12745
424eb552
JB
127462019-02-06 John Baldwin <jhb@FreeBSD.org>
12747
12748 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12749
1688cb29
TT
127502019-02-05 Tom Tromey <tom@tromey.com>
12751
12752 * target.c (target_stack::unpush): Move assertion earlier.
12753
b5eba2d8
TT
127542019-01-30 Tom Tromey <tom@tromey.com>
12755
12756 PR python/23615:
12757 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12758 (gdbpy_parse_and_eval): Likewise.
12759 * python/python-internal.h (gdbpy_allow_threads): New class.
12760
7054e2ff
JB
127612019-01-28 John Baldwin <jhb@FreeBSD.org>
12762
12763 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12764 (aarch64_fbsd_fpregmap): Move earlier.
12765 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12766 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12767 instead of individual calls to trad_frame_set_reg_addr.
12768 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12769 earlier.
12770 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12771 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12772 instead of individual calls to trad_frame_set_reg_addr.
12773
36c25ffa
AH
127742019-01-28 Alan Hayward <alan.hayward@arm.com>
12775
12776 * CONTRIBUTE: Replace contribution list with wiki link.
12777
a0707f3c
TT
127782019-01-25 Tom Tromey <tom@tromey.com>
12779
12780 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12781
0747795c
TT
127822019-01-25 Tom Tromey <tom@tromey.com>
12783
12784 * xtensa-linux-nat.c: Fix common/ includes.
12785 * xml-support.h: Fix common/ includes.
12786 * xml-support.c: Fix common/ includes.
12787 * x86-linux-nat.c: Fix common/ includes.
12788 * windows-nat.c: Fix common/ includes.
12789 * varobj.h: Fix common/ includes.
12790 * varobj.c: Fix common/ includes.
12791 * value.c: Fix common/ includes.
12792 * valops.c: Fix common/ includes.
12793 * utils.c: Fix common/ includes.
12794 * unittests/xml-utils-selftests.c: Fix common/ includes.
12795 * unittests/utils-selftests.c: Fix common/ includes.
12796 * unittests/unpack-selftests.c: Fix common/ includes.
12797 * unittests/tracepoint-selftests.c: Fix common/ includes.
12798 * unittests/style-selftests.c: Fix common/ includes.
12799 * unittests/string_view-selftests.c: Fix common/ includes.
12800 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12801 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12802 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12803 * unittests/rsp-low-selftests.c: Fix common/ includes.
12804 * unittests/parse-connection-spec-selftests.c: Fix common/
12805 includes.
12806 * unittests/optional-selftests.c: Fix common/ includes.
12807 * unittests/offset-type-selftests.c: Fix common/ includes.
12808 * unittests/observable-selftests.c: Fix common/ includes.
12809 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12810 * unittests/memrange-selftests.c: Fix common/ includes.
12811 * unittests/memory-map-selftests.c: Fix common/ includes.
12812 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12813 * unittests/function-view-selftests.c: Fix common/ includes.
12814 * unittests/environ-selftests.c: Fix common/ includes.
12815 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12816 * unittests/common-utils-selftests.c: Fix common/ includes.
12817 * unittests/cli-utils-selftests.c: Fix common/ includes.
12818 * unittests/array-view-selftests.c: Fix common/ includes.
12819 * ui-file.c: Fix common/ includes.
12820 * tui/tui-io.c: Fix common/ includes.
12821 * tracepoint.h: Fix common/ includes.
12822 * tracepoint.c: Fix common/ includes.
12823 * tracefile-tfile.c: Fix common/ includes.
12824 * top.h: Fix common/ includes.
12825 * top.c: Fix common/ includes.
12826 * thread.c: Fix common/ includes.
12827 * target/waitstatus.h: Fix common/ includes.
12828 * target/waitstatus.c: Fix common/ includes.
12829 * target.h: Fix common/ includes.
12830 * target.c: Fix common/ includes.
12831 * target-memory.c: Fix common/ includes.
12832 * target-descriptions.c: Fix common/ includes.
12833 * symtab.h: Fix common/ includes.
12834 * symfile.c: Fix common/ includes.
12835 * stap-probe.c: Fix common/ includes.
12836 * spu-linux-nat.c: Fix common/ includes.
12837 * sparc-nat.c: Fix common/ includes.
12838 * source.c: Fix common/ includes.
12839 * solib.c: Fix common/ includes.
12840 * solib-target.c: Fix common/ includes.
12841 * ser-unix.c: Fix common/ includes.
12842 * ser-tcp.c: Fix common/ includes.
12843 * ser-pipe.c: Fix common/ includes.
12844 * ser-base.c: Fix common/ includes.
12845 * selftest-arch.c: Fix common/ includes.
12846 * s12z-tdep.c: Fix common/ includes.
12847 * rust-exp.y: Fix common/ includes.
12848 * rs6000-aix-tdep.c: Fix common/ includes.
12849 * riscv-tdep.c: Fix common/ includes.
12850 * remote.c: Fix common/ includes.
12851 * remote-notif.h: Fix common/ includes.
12852 * remote-fileio.h: Fix common/ includes.
12853 * remote-fileio.c: Fix common/ includes.
12854 * regcache.h: Fix common/ includes.
12855 * regcache.c: Fix common/ includes.
12856 * record-btrace.c: Fix common/ includes.
12857 * python/python.c: Fix common/ includes.
12858 * python/py-type.c: Fix common/ includes.
12859 * python/py-inferior.c: Fix common/ includes.
12860 * progspace.h: Fix common/ includes.
12861 * producer.c: Fix common/ includes.
12862 * procfs.c: Fix common/ includes.
12863 * proc-api.c: Fix common/ includes.
12864 * printcmd.c: Fix common/ includes.
12865 * ppc-linux-nat.c: Fix common/ includes.
12866 * parser-defs.h: Fix common/ includes.
12867 * osdata.c: Fix common/ includes.
12868 * obsd-nat.c: Fix common/ includes.
12869 * nat/x86-linux.c: Fix common/ includes.
12870 * nat/x86-linux-dregs.c: Fix common/ includes.
12871 * nat/x86-dregs.h: Fix common/ includes.
12872 * nat/x86-dregs.c: Fix common/ includes.
12873 * nat/ppc-linux.c: Fix common/ includes.
12874 * nat/mips-linux-watch.h: Fix common/ includes.
12875 * nat/mips-linux-watch.c: Fix common/ includes.
12876 * nat/linux-waitpid.c: Fix common/ includes.
12877 * nat/linux-ptrace.h: Fix common/ includes.
12878 * nat/linux-ptrace.c: Fix common/ includes.
12879 * nat/linux-procfs.c: Fix common/ includes.
12880 * nat/linux-personality.c: Fix common/ includes.
12881 * nat/linux-osdata.c: Fix common/ includes.
12882 * nat/linux-namespaces.c: Fix common/ includes.
12883 * nat/linux-btrace.h: Fix common/ includes.
12884 * nat/linux-btrace.c: Fix common/ includes.
12885 * nat/fork-inferior.c: Fix common/ includes.
12886 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12887 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12888 * nat/aarch64-linux.c: Fix common/ includes.
12889 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12890 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12891 * namespace.h: Fix common/ includes.
12892 * mips-linux-tdep.c: Fix common/ includes.
12893 * minsyms.c: Fix common/ includes.
12894 * mi/mi-parse.h: Fix common/ includes.
12895 * mi/mi-main.c: Fix common/ includes.
12896 * mi/mi-cmd-env.c: Fix common/ includes.
12897 * memrange.h: Fix common/ includes.
12898 * memattr.c: Fix common/ includes.
12899 * maint.h: Fix common/ includes.
12900 * maint.c: Fix common/ includes.
12901 * main.c: Fix common/ includes.
12902 * machoread.c: Fix common/ includes.
12903 * location.c: Fix common/ includes.
12904 * linux-thread-db.c: Fix common/ includes.
12905 * linux-nat.c: Fix common/ includes.
12906 * linux-fork.c: Fix common/ includes.
12907 * inline-frame.c: Fix common/ includes.
12908 * infrun.c: Fix common/ includes.
12909 * inflow.c: Fix common/ includes.
12910 * inferior.h: Fix common/ includes.
12911 * inferior.c: Fix common/ includes.
12912 * infcmd.c: Fix common/ includes.
12913 * inf-ptrace.c: Fix common/ includes.
12914 * inf-child.c: Fix common/ includes.
12915 * ia64-linux-nat.c: Fix common/ includes.
12916 * i387-tdep.c: Fix common/ includes.
12917 * i386-tdep.c: Fix common/ includes.
12918 * i386-linux-tdep.c: Fix common/ includes.
12919 * i386-linux-nat.c: Fix common/ includes.
12920 * i386-go32-tdep.c: Fix common/ includes.
12921 * i386-fbsd-tdep.c: Fix common/ includes.
12922 * i386-fbsd-nat.c: Fix common/ includes.
12923 * guile/scm-type.c: Fix common/ includes.
12924 * guile/guile.c: Fix common/ includes.
12925 * go32-nat.c: Fix common/ includes.
12926 * gnu-nat.c: Fix common/ includes.
12927 * gdbthread.h: Fix common/ includes.
12928 * gdbarch-selftests.c: Fix common/ includes.
12929 * gdb_usleep.c: Fix common/ includes.
12930 * gdb_select.h: Fix common/ includes.
12931 * gdb_bfd.c: Fix common/ includes.
12932 * gcore.c: Fix common/ includes.
12933 * fork-child.c: Fix common/ includes.
12934 * findvar.c: Fix common/ includes.
12935 * fbsd-nat.c: Fix common/ includes.
12936 * event-top.c: Fix common/ includes.
12937 * event-loop.c: Fix common/ includes.
12938 * dwarf2read.c: Fix common/ includes.
12939 * dwarf2loc.c: Fix common/ includes.
12940 * dwarf2-frame.c: Fix common/ includes.
12941 * dwarf-index-cache.c: Fix common/ includes.
12942 * dtrace-probe.c: Fix common/ includes.
12943 * disasm-selftests.c: Fix common/ includes.
12944 * defs.h: Fix common/ includes.
12945 * csky-tdep.c: Fix common/ includes.
12946 * cp-valprint.c: Fix common/ includes.
12947 * cp-support.h: Fix common/ includes.
12948 * cp-support.c: Fix common/ includes.
12949 * corelow.c: Fix common/ includes.
12950 * completer.h: Fix common/ includes.
12951 * completer.c: Fix common/ includes.
12952 * compile/compile.c: Fix common/ includes.
12953 * compile/compile-loc2c.c: Fix common/ includes.
12954 * compile/compile-cplus-types.c: Fix common/ includes.
12955 * compile/compile-cplus-symbols.c: Fix common/ includes.
12956 * command.h: Fix common/ includes.
12957 * cli/cli-dump.c: Fix common/ includes.
12958 * cli/cli-cmds.c: Fix common/ includes.
12959 * charset.c: Fix common/ includes.
12960 * build-id.c: Fix common/ includes.
12961 * btrace.h: Fix common/ includes.
12962 * btrace.c: Fix common/ includes.
12963 * breakpoint.h: Fix common/ includes.
12964 * breakpoint.c: Fix common/ includes.
12965 * ax.h:
12966 (enum agent_op): Fix common/ includes.
12967 * ax-general.c (struct aop_map): Fix common/ includes.
12968 * ax-gdb.c: Fix common/ includes.
12969 * auxv.c: Fix common/ includes.
12970 * auto-load.c: Fix common/ includes.
12971 * arm-tdep.c: Fix common/ includes.
12972 * arch/riscv.c: Fix common/ includes.
12973 * arch/ppc-linux-common.c: Fix common/ includes.
12974 * arch/i386.c: Fix common/ includes.
12975 * arch/arm.c: Fix common/ includes.
12976 * arch/arm-linux.c: Fix common/ includes.
12977 * arch/arm-get-next-pcs.c: Fix common/ includes.
12978 * arch/amd64.c: Fix common/ includes.
12979 * arch/aarch64.c: Fix common/ includes.
12980 * arch/aarch64-insn.c: Fix common/ includes.
12981 * arch-utils.c: Fix common/ includes.
12982 * amd64-windows-tdep.c: Fix common/ includes.
12983 * amd64-tdep.c: Fix common/ includes.
12984 * amd64-sol2-tdep.c: Fix common/ includes.
12985 * amd64-obsd-tdep.c: Fix common/ includes.
12986 * amd64-nbsd-tdep.c: Fix common/ includes.
12987 * amd64-linux-tdep.c: Fix common/ includes.
12988 * amd64-linux-nat.c: Fix common/ includes.
12989 * amd64-fbsd-tdep.c: Fix common/ includes.
12990 * amd64-fbsd-nat.c: Fix common/ includes.
12991 * amd64-dicos-tdep.c: Fix common/ includes.
12992 * amd64-darwin-tdep.c: Fix common/ includes.
12993 * agent.c: Fix common/ includes.
12994 * ada-lang.h: Fix common/ includes.
12995 * ada-lang.c: Fix common/ includes.
12996 * aarch64-tdep.c: Fix common/ includes.
12997
2f5c153e
TT
129982019-01-25 Tom Tromey <tom@tromey.com>
12999
13000 * common/create-version.sh: Use common/version.h.
13001
adc6a863
PA
130022019-01-24 Pedro Alves <palves@redhat.com>
13003
13004 * infrun.c (signal_stop, signal_print, signal_program)
13005 (signal_catch, signal_pass): Now arrays instead of pointers.
13006 (update_signals_program_target, do_target_resume)
13007 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13008 * linux-nat.c (linux_nat_target::pass_signals)
13009 (linux_nat_target::create_inferior, linux_nat_target::attach):
13010 Adjust.
13011 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13012 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13013 * procfs.c (procfs_target::pass_signals): Adjust.
13014 * record-full.c (record_full_target::resume): Adjust.
13015 * remote.c (remote_target::pass_signals)
13016 (remote_target::program_signals): Adjust.
13017 * target-debug.h (target_debug_print_signals): Now takes a
13018 gdb::array_view as parameter. Adjust.
13019 * target.h (target_ops) <pass_signals, program_signals>: Replace
13020 pointer and length parameters with gdb::array_view.
13021 (target_pass_signals, target_program_signals): Likewise.
13022 * target-delegates.c: Regenerate.
13023
3046d67a
PA
130242019-01-24 Pedro Alves <palves@redhat.com>
13025
13026 * common/forward-scope-exit.h
13027 (forward_scope_exit::forward_scope_exit): Pass arguments to
13028 m_bind_function directly, instead of creating a std::bind and
13029 copying that.
13030
353229bf
AH
130312019-01-24 Alan Hayward <alan.hayward@arm.com>
13032
13033 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13034 for static members.
13035 (pass_in_v_vfp_candidate): Likewise.
13036
311dc83a
TT
130372019-01-23 Tom Tromey <tom@tromey.com>
13038 Pedro Alves <palves@redhat.com>
13039
13040 * regcache.c (class regcache_invalidator): Remove.
13041 (regcache::raw_write): Use make_scope_exit.
13042
296bd123
TT
130432019-01-23 Tom Tromey <tom@tromey.com>
13044
13045 * ui-out.h (class ui_out_emit_type): Update comment.
13046
979a0d13
TT
130472019-01-23 Tom Tromey <tom@tromey.com>
13048
13049 * infrun.c (fetch_inferior_event): Update comment.
13050
d238133d
TT
130512019-01-23 Tom Tromey <tom@tromey.com>
13052 Pedro Alves <palves@redhat.com>
13053
13054 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13055 parameter.
13056 (fetch_inferior_event): Use SCOPE_EXIT.
13057
13058
9885e6bb
TT
130592019-01-23 Tom Tromey <tom@tromey.com>
13060 Pedro Alves <palves@redhat.com>
13061
13062 * infrun.c (disable_thread_events): Delete.
13063 (stop_all_threads): Use SCOPE_EXIT.
13064
286526c1
TT
130652019-01-23 Tom Tromey <tom@tromey.com>
13066 Pedro Alves <palves@redhat.com>
13067
13068 * symfile.c: Include forward-scope-exit.h.
13069 (clear_symtab_users_cleanup): Replace forward declaration with
13070 a FORWARD_SCOPE_EXIT.
13071 (syms_from_objfile_1): Use the forward_scope_exit and
13072 gdb::optional instead of cleanup_function.
13073 (reread_symbols): Use the forward_scope_exit instead of
13074 cleanup_function.
13075 (clear_symtab_users_cleanup): Remove function.
13076
1db93f14
TT
130772019-01-23 Tom Tromey <tom@tromey.com>
13078 Pedro Alves <palves@redhat.com>
13079
13080 * linux-nat.c: Include scope-exit.h.
13081 (cleanup_target_stop): Remove.
13082 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13083 SCOPE_EXIT.
13084
2cc83d1e
TT
130852019-01-23 Tom Tromey <tom@tromey.com>
13086 Pedro Alves <palves@redhat.com>
13087
13088 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13089 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13090
694c6bf5
TT
130912019-01-23 Tom Tromey <tom@tromey.com>
13092 Andrew Burgess <andrew.burgess@embecosm.com>
13093 Pedro Alves <palves@redhat.com>
13094
13095 * infrun.c (fetch_inferior_event): Use scope_exit.
13096 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13097 * top.c (execute_command): Use scope_exit.
13098 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13099 * utils.c (do_bpstat_clear_actions_cleanup)
13100 (make_bpstat_clear_actions_cleanup): Remove.
13101
4c41382a
TT
131022019-01-23 Tom Tromey <tom@tromey.com>
13103 Pedro Alves <palves@redhat.com>
13104
13105 * infrun.c: Include "common/scope-exit.h"
13106 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13107 (wait_for_inferior): Use SCOPE_EXIT.
13108 (fetch_inferior_event): Use scope_exit.
13109
89f8fb50
TT
131102019-01-23 Tom Tromey <tom@tromey.com>
13111 Pedro Alves <palves@redhat.com>
13112
13113 * breakpoint.c (create_breakpoint): Remove cleanup.
13114
5419bdae
TT
131152019-01-23 Tom Tromey <tom@tromey.com>
13116 Andrew Burgess <andrew.burgess@embecosm.com>
13117 Pedro Alves <palves@redhat.com>
13118
e587ef42
PA
131192019-01-23 Pedro Alves <palves@redhat.com>
13120
13121 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13122
77f0e74c
PA
131232019-01-23 Pedro Alves <palves@redhat.com>
13124 Andrew Burgess <andrew.burgess@embecosm.com>
13125
13126 * gdbthread.h: Include "common/forward-scope-exit.h".
13127 (scoped_finish_thread_state): Redefine custom class in terms of
13128 forward_scope_exit.
13129
5b9b3e53
PA
131302019-01-23 Pedro Alves <palves@redhat.com>
13131 Andrew Burgess <andrew.burgess@embecosm.com>
13132
13133 * common/forward-scope-exit.h: New file.
13134
54b65c9b
PA
131352019-01-23 Pedro Alves <palves@redhat.com>
13136 Andrew Burgess <andrew.burgess@embecosm.com>
13137 Tom Tromey <tom@tromey.com>
13138
13139 * common/scope-exit.h: New file.
13140
cf08fb29
PA
131412019-01-23 Pedro Alves <palves@redhat.com>
13142
13143 * common/preprocessor.h (ESC): Rename to ...
13144 (ESC_PARENS): ... this.
13145 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13146 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13147
ae73e2e2
TT
131482019-01-23 Tom Tromey <tom@tromey.com>
13149
13150 * language.h (class scoped_switch_to_sym_language_if_auto):
13151 Initialize m_lang in both cases.
13152
6594e122
AH
131532019-01-23 Alan Hayward <alan.hayward@arm.com>
13154
13155 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13156 with XCNEW.
13157
a7c9855d
TT
131582019-01-22 Tom Tromey <tom@tromey.com>
13159
13160 * corelow.c: Do not include sys/file.h.
13161
93cc1d53
TT
131622019-01-22 Tom Tromey <tom@tromey.com>
13163
13164 * tui/tui-wingeneral.h: Include gdb_curses.h.
13165
38561778
TT
131662019-01-22 Tom Tromey <tom@tromey.com>
13167
13168 * source-cache.h (class source_cache) <get_source_lines,
13169 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13170
37b3ab5b
TT
131712019-01-22 Tom Tromey <tom@tromey.com>
13172
13173 * remote-fileio.h (struct remote_target): Declare.
13174
3fabc016
TT
131752019-01-22 Tom Tromey <tom@tromey.com>
13176
13177 * python/py-arch.c: Do not include py-ref.h.
13178 * python/py-bpevent.c: Do not include py-ref.h.
13179 * python/py-cmd.c: Do not include py-ref.h.
13180 * python/py-continueevent.c: Do not include py-ref.h.
13181 * python/py-event.h: Do not include py-ref.h.
13182 * python/py-evtregistry.c: Do not include py-ref.h.
13183 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13184 * python/py-frame.c: Do not include py-ref.h.
13185 * python/py-framefilter.c: Do not include py-ref.h.
13186 * python/py-function.c: Do not include py-ref.h.
13187 * python/py-infevents.c: Do not include py-ref.h.
13188 * python/py-linetable.c: Do not include py-ref.h.
13189 * python/py-objfile.c: Do not include py-ref.h.
13190 * python/py-param.c: Do not include py-ref.h.
13191 * python/py-prettyprint.c: Do not include py-ref.h.
13192 * python/py-progspace.c: Do not include py-ref.h.
13193 * python/py-symbol.c: Do not include py-ref.h.
13194 * python/py-symtab.c: Do not include py-ref.h.
13195 * python/py-type.c: Do not include py-ref.h.
13196 * python/py-unwind.c: Do not include py-ref.h.
13197 * python/py-utils.c: Do not include py-ref.h.
13198 * python/py-value.c: Do not include py-ref.h.
13199 * python/py-varobj.c: Do not include py-ref.h.
13200 * python/py-xmethods.c: Do not include py-ref.h.
13201 * python/python.c: Do not include py-ref.h.
13202 * varobj.c: Do not include py-ref.h.
13203
6b4d7774
TT
132042019-01-22 Tom Tromey <tom@tromey.com>
13205
13206 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13207 keyword for bcache.
13208
7af7e9b5
TT
132092019-01-22 Tom Tromey <tom@tromey.com>
13210
13211 * compile/compile-cplus-types.c: Remove a comment by #include.
13212
951d1049
TT
132132019-01-22 Tom Tromey <tom@tromey.com>
13214
13215 * compile/gcc-c-plugin.h: Include compile-internal.h.
13216
d65d5705
TT
132172019-01-22 Tom Tromey <tom@tromey.com>
13218
13219 * stabsread.c (EXTERN): Do not define.
13220 (symnum, next_symbol_text_func, processing_gcc_compilation)
13221 (within_function, global_sym_chain, global_stabs)
13222 (previous_stab_code, this_object_header_files)
13223 (n_this_object_header_files)
13224 (n_allocated_this_object_header_files): Define.
13225 * stabsread.h (EXTERN): Never define. Use "extern".
13226
b6fb1ee5
PW
132272019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13228
13229 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13230 history_value.
13231
be6d4f74
TT
132322019-01-21 Tom Tromey <tom@tromey.com>
13233
13234 * ui-out.c: Fix includes.
13235 * tui/tui-source.c: Fix includes.
13236 * target.c: Fix includes.
13237 * remote.c: Fix includes.
13238 * regcache.c: Fix includes.
13239 * python/py-block.c: Fix includes.
13240 * printcmd.c: Fix includes.
13241 * or1k-tdep.c: Fix includes.
13242 * mi/mi-main.c: Fix includes.
13243 * m32r-tdep.c: Fix includes.
13244 * csky-tdep.c: Fix includes.
13245 * compile/compile-cplus-types.c: Fix includes.
13246 * cli/cli-interp.c: Fix includes.
13247
73021deb
AH
132482019-01-21 Alan Hayward <alan.hayward@arm.com>
13249
13250 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13251 for padding.
13252
7932255d
TT
132532019-01-16 Tom Tromey <tom@tromey.com>
13254
13255 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13256 earlier.
13257 (struct objfile) <msymbols_range>: Move from top level.
13258 <msymbols>: New method.
13259 (class objfile_msymbols): Remove.
13260 * symtab.c (default_collect_symbol_completion_matches_break_on):
13261 Update.
13262 * symmisc.c (dump_msymbols): Update.
13263 * stabsread.c (scan_file_globals): Update.
13264 * objc-lang.c (info_selectors_command, info_classes_command)
13265 (find_methods): Update.
13266 * minsyms.c (find_solib_trampoline_target): Update.
13267 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13268 * coffread.c (coff_symfile_read): Update.
13269 * ada-lang.c (ada_lookup_simple_minsym)
13270 (ada_collect_symbol_completion_matches): Update.
13271
604b1bfb
TT
132722019-01-16 Tom Tromey <tom@tromey.com>
13273
13274 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13275 type. Remove no-argument constructor.
13276 <iterator::operator++>: Simplify.
13277 <begin>: Update.
13278 <end>: Use minimal_symbol_count.
13279
f252c6d5
TT
132802019-01-16 Tom Tromey <tom@tromey.com>
13281
13282 * objfiles.h (struct objfile) <psymtabs>: New method.
13283 (class objfile_psymtabs): Remove.
13284 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13285 typedef.
13286 <range>: New method.
13287 (require_partial_symbols): Change return type.
13288 * psymtab.c (require_partial_symbols)
13289 (psym_expand_symtabs_matching): Update.
13290 * mdebugread.c (parse_partial_symbols): Update.
13291 * dbxread.c (dbx_end_psymtab): Update.
13292
b669c953
TT
132932019-01-15 Tom Tromey <tom@tromey.com>
13294
13295 * symtab.c (lookup_objfile_from_block)
13296 (lookup_symbol_in_objfile_symtabs)
13297 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13298 (find_line_symtab, info_sources_command)
13299 (default_collect_symbol_completion_matches_break_on)
13300 (make_source_files_completion_list): Update.
13301 * symmisc.c (print_objfile_statistics, dump_objfile)
13302 (maintenance_print_symbols, maintenance_info_symtabs)
13303 (maintenance_check_symtabs, maintenance_info_line_tables):
13304 Update.
13305 * source.c (select_source_symtab)
13306 (forget_cached_source_info_for_objfile): Update.
13307 * objfiles.h (class objfile_compunits): Remove.
13308 (struct objfile) <compunits_range>: New typedef.
13309 (compunits): New method.
13310 * objfiles.c (objfile_relocate1): Update.
13311 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13312 * maint.c (count_symtabs_and_blocks): Update.
13313 * linespec.c (iterate_over_all_matching_symtabs): Update.
13314 * cp-support.c (add_symbol_overload_list_qualified): Update.
13315 * coffread.c (coff_symtab_read): Update.
13316 * ada-lang.c (add_nonlocal_symbols)
13317 (ada_collect_symbol_completion_matches)
13318 (ada_add_global_exceptions): Update.
13319
7e955d83
TT
133202019-01-15 Tom Tromey <tom@tromey.com>
13321
13322 * progspace.h (program_space) <objfiles_safe_range>: New
13323 typedef.
13324 <objfiles_safe>: New method.
13325 * objfiles.h (class all_objfiles_safe): Remove.
13326 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13327 * jit.c (jit_inferior_exit_hook): Update.
13328
2030c079
TT
133292019-01-17 Tom Tromey <tom@tromey.com>
13330
13331 * progspace.h (program_space) <objfiles_range>: New typedef.
13332 <objfiles>: New method.
13333 <objfiles_head>: Rename from objfiles.
13334 (object_files): Update.
13335 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13336 * guile/scm-pretty-print.c
13337 (ppscm_find_pretty_printer_from_objfiles): Update.
13338 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13339 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13340 Update.
13341 * python/py-progspace.c (pspy_get_objfiles): Update.
13342 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13343 Update.
13344 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13345 (objfpy_lookup_objfile_by_build_id): Update.
13346 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13347 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13348 Update.
13349 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13350 (expand_symtab_containing_pc, lookup_objfile_from_block)
13351 (lookup_static_symbol, basic_lookup_transparent_type)
13352 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13353 (find_line_symtab, info_sources_command)
13354 (default_collect_symbol_completion_matches_break_on)
13355 (make_source_files_completion_list, find_main_name): Update.
13356 * symmisc.c (print_symbol_bcache_statistics)
13357 (print_objfile_statistics, maintenance_print_symbols)
13358 (maintenance_print_msymbols, maintenance_print_objfiles)
13359 (maintenance_info_symtabs, maintenance_check_symtabs)
13360 (maintenance_expand_symtabs, maintenance_info_line_tables):
13361 Update.
13362 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13363 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13364 (map_overlay_command, unmap_overlay_command)
13365 (simple_overlay_update, expand_symtabs_matching)
13366 (map_symbol_filenames): Update.
13367 * symfile-debug.c (set_debug_symfile): Update.
13368 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13369 Update.
13370 * source.c (select_source_symtab, forget_cached_source_info):
13371 Update.
13372 * solib.c (solib_read_symbols): Update.
13373 * solib-spu.c (append_ocl_sos): Update.
13374 * psymtab.c (maintenance_print_psymbols)
13375 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13376 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13377 * printcmd.c (info_symbol_command): Update.
13378 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13379 Update.
13380 * objfiles.h (class all_objfiles): Remove.
13381 * objfiles.c (have_partial_symbols, have_full_symbols)
13382 (have_minimal_symbols, qsort_cmp, update_section_map)
13383 (shared_objfile_contains_address_p)
13384 (default_iterate_over_objfiles_in_search_order): Update.
13385 * objc-lang.c (info_selectors_command, info_classes_command)
13386 (find_methods): Update.
13387 * minsyms.c (find_solib_trampoline_target): Update.
13388 * maint.c (maintenance_info_sections)
13389 (maintenance_translate_address, count_symtabs_and_blocks):
13390 Update.
13391 * main.c (captured_main_1): Update.
13392 * linux-thread-db.c (try_thread_db_load_from_pdir)
13393 (has_libpthread): Update.
13394 * linespec.c (iterate_over_all_matching_symtabs)
13395 (search_minsyms_for_name): Update.
13396 * jit.c (jit_find_objf_with_entry_addr): Update.
13397 * hppa-tdep.c (find_unwind_entry)
13398 (hppa_lookup_stub_minimal_symbol): Update.
13399 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13400 Update.
13401 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13402 (elf_gnu_ifunc_resolve_by_got): Update.
13403 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13404 * dwarf-index-write.c (save_gdb_index_command): Update.
13405 * cp-support.c (add_symbol_overload_list_qualified): Update.
13406 * breakpoint.c (create_overlay_event_breakpoint)
13407 (create_longjmp_master_breakpoint)
13408 (create_std_terminate_master_breakpoint)
13409 (create_exception_master_breakpoint): Update.
13410 * blockframe.c (find_pc_partial_function): Update.
13411 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13412 (ada_collect_symbol_completion_matches)
13413 (ada_add_global_exceptions): Update.
13414
776489e0
TT
134152019-01-17 Tom Tromey <tom@tromey.com>
13416
13417 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13418 declare VEC.
13419 (solib_target_parse_libraries): Change return type.
13420 (library_list_start_segment, library_list_start_section)
13421 (library_list_end_library, library_list_start_library); Update.
13422 (solib_target_free_library_list): Remove.
13423 (solib_target_parse_libraries): Remove cleanup. Change return
13424 type.
13425 (solib_target_current_sos): Update.
13426
6471e7d2
TT
134272019-01-17 Tom Tromey <tromey@bapiya>
13428
13429 * valprint.c: Replace "the the" with "the".
13430 * symtab.c: Replace "the the" with "the".
13431 * solib.c: Replace "the the" with "the".
13432 * solib-dsbt.c: Replace "the the" with "the".
13433 * linespec.c: Replace "the the" with "the".
13434 * dwarf2loc.h: Replace "the the" with "the".
13435 * amd64-windows-tdep.c: Replace "the the" with "the".
13436 * aarch64-tdep.c: Replace "the the" with "the".
13437
c24bdb02
KS
134382019-01-16 Keith Seitz <keiths@redhat.com>
13439
13440 PR gdb/23773
13441 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13442 <builder>: Rename to ..
13443 <m_builder>: ... this and make private.
13444 (dwarf2_cu::get_builder): New method. Change all users of
13445 `builder' to use this method.
13446 (dwarf2_start_symtab): Move to ...
13447 (dwarf2_cu::start_symtab): ... here. Update all callers
13448 (setup_type_unit_groups): Move to ...
13449 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13450 callers.
13451 (dwarf2_cu::reset_builder): New method.
13452 (process_full_compunit, process_full_type_unit): Use
13453 dwarf2_cu::reset_builder.
13454 (follow_die_offset): Record the ancestor CU if it is different
13455 from the followed DIE's CU.
13456 (follow_die_sig_1): Likewise.
13457
8d64371b
TT
134582019-01-15 Tom Tromey <tom@tromey.com>
13459
13460 * remote.c (class remote_state) <buf>: Now a char_vector.
13461 <buf_size>: Remove.
13462 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13463 parameter.
13464 (remote_target::getpkt_or_notif_sane_1)
13465 (remote_target::getpkt_sane)
13466 (remote_target::getpkt_or_notif_sane): Likewise.
13467 (class remote_target) <putpkt>: New overload.
13468 (remote_target::read_frame): Change type of "buf_p". Remove
13469 sizeof_p parameter.
13470 (packet_ok): New overload.
13471 (packet_check_result): New overload.
13472 Update all uses.
13473
bb277751
TT
134742019-01-14 Tom Tromey <tom@tromey.com>
13475
13476 * remote-notif.c (handle_notification, remote_notif_ack)
13477 (remote_notif_parse): Make "buf" const.
13478 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13479 const.
13480 (remote_notif_parse, remote_notif_ack, handle_notification):
13481 Likewise.
13482 * remote.c (remote_notif_stop_parse): Make "buf" const.
13483 (remote_target::remote_parse_stop_reply): Make "buf" const.
13484 (remote_notif_stop_ack): Make "buf" const.
13485
05be00a8
TT
134862019-01-14 Tom Tromey <tom@tromey.com>
13487
13488 * remote.c (remote_console_output): Make parameter const.
13489
491adeca
TT
134902019-01-14 Tom Tromey <tom@tromey.com>
13491
13492 * target-debug.h (target_debug_print_signals): Constify.
13493 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13494 * procfs.c (procfs_target::pass_signals): Update.
13495 * linux-nat.c (linux_nat_target::pass_signals): Update.
13496 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13497 * target-delegates.c: Rebuild.
13498 * remote.c (remote_target::program_signals): Update.
13499 (remote_target::pass_signals): Update.
13500 * target.c (target_pass_signals): Constify argument.
13501 (target_program_signals): Likewise.
13502 * target.h (struct target_ops) <pass_signals, program_signals>:
13503 Constify argument.
13504 (target_pass_signals, target_program_signals): Constify argument.
13505
bbd94648
TT
135062019-01-14 Tom Tromey <tom@tromey.com>
13507
13508 PR tui/28819:
13509 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13510
6f072a10
PFC
135112019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13512
13513 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13514 field.
13515 * rs6000-tdep.c: Include reggroups.h.
13516 (IS_V_ALIAS_PSEUDOREG): Define.
13517 (rs6000_register_name): Return names for the "vX" aliases.
13518 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13519 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13520 aliases. Call default_register_reggroup_p for all other
13521 pseudo-registers.
13522 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13523 New functions.
13524 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13525 Handle "vX" aliases.
13526 (v_alias_pseudo_register_collect): New function.
13527 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13528 (rs6000_gdbarch_init): Initialize "vX" aliases as
13529 pseudo-registers. Restore registration of
13530 rs6000_pseudo_register_reggroup_p with
13531 set_tdesc_pseudo_register_reggroup_p.
13532
1a782351
MF
135332019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13534
13535 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13536 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13537 set_gdbarch_num_pseudo_regs.
13538
d73cff18
PW
135392019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13540
13541 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13542 Remove arg prefixname, add do_set and do_show.
13543 Add member functions set_list and show_list.
13544 * cli/cli-style.c (class cli_style_option): Update accordingly.
13545 (style_set_list): Move to file scope.
13546 (style_show_list): Likewise.
13547 (set_style): Call help_list.
13548 (show_style): Call cmd_show_list.
13549 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13550 Update to use the new macro.
13551
60a90376
JB
135522019-10-12 Joel Brobecker <brobecker@adacore.com>
13553
13554 * ada-lang.c (_initialize_ada_language): Expand the help text
13555 for the "catch exception" command.
13556
9d7c67bf
PW
135572019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13558
13559 * symtab.c (matching_obj_sections): Initialize obj,
13560 declare it closer to its usage.
13561
7cf47dc4
TT
135622019-01-10 Tom Tromey <tom@tromey.com>
13563
13564 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13565 (basic_inf_threads_range): Remove.
13566 (inf_threads_range, inf_non_exited_threads_range)
13567 (safe_inf_threads_range): Use next_adapter.
13568
d3cb6808
KS
135692019-01-10 Keith Seitz <keiths@redhat.com>
13570
13571 PR gdb/23712
13572 PR symtab/23010
13573 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13574 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13575
63a20375
KS
135762019-01-10 Keith Seitz <keiths@redhat.com>
13577
13578 PR gdb/23712
13579 PR symtab/23010
13580 * dictionary.c (pending_to_vector): Remove.
13581 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13582 Remove _1 suffix, replacing functions of the same name. Update
13583 all callers.
13584 (dict_create_hashed, dict_create_hashed_expandable)
13585 (dict_create_linear, dict_create_linear_expandable, dict_free)
13586 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13587 Make functions static.
13588
b026f593
KS
135892019-01-10 Keith Seitz <keiths@redhat.com>
13590
13591 PR gdb/23712
13592 PR symtab/23010
13593 * dictionary.h (struct dictionary): Replace declaration with
13594 multidictionary.
13595 (dict_create_hashed, dict_create_hashed_expandable)
13596 (dict_create_linear, dict_create_linear_expandable)
13597 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13598 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13599 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13600 taking multidictionary argument.
13601 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13602 * block.h (struct block) <dict>: Change to multidictionary
13603 and rename `multidict'.
13604 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13605 symmisc.c: Update all dictionary references to multidictionary.
13606
c7748ee9
KS
136072019-01-10 Keith Seitz <keiths@redhat.com>
13608
13609 PR gdb/23712
13610 PR symtab/23010
13611 * dictionary.c: Include unordered_map.
13612 (pending_to_vector): New function.
13613 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13614 Rewrite the non-"_1" functions to take vector instead
13615 of linked list.
13616 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13617 "new" _1 versions of the same name.
13618 (multidictionary): Define.
13619 (std::hash<enum language): New definition.
13620 (collate_pending_symbols_by_language, mdict_create_hashed)
13621 (mdict_create_hashed_expandable, mdict_create_linear)
13622 (mdict_create_linear_expandable, mdict_free)
13623 (find_language_dictionary, create_new_language_dictionary)
13624 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13625 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13626 (mdict_size, mdict_empty): New functions.
13627 * dictionary.h (mdict_iterator): Define.
13628
67aa1f3c
PA
136292019-01-10 Pedro Alves <palves@redhat.com>
13630
13631 * breakpoint.c (read_uploaded_action)
13632 (create_tracepoint_from_upload): Adjust to use
13633 gdb::unique_xmalloc_ptr.
13634 * ctf.c (ctf_write_uploaded_tp):
13635 (SET_ARRAY_FIELD): Use emplace_back.
13636 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13637 * tracefile-tfile.c (tfile_write_uploaded_tp):
13638 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13639 gdb::unique_xmalloc_ptr.
13640 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13641 at_string, cond_string, cmd_strings>: Replace char pointers
13642 with gdb::unique_xmalloc_ptr.
13643
2f667667
PA
136442019-01-10 Pedro Alves <palves@redhat.com>
13645
13646 * solib-target.c (library_list_start_library): Don't xstrdup name.
13647
36cb7237
PA
136482019-01-10 Pedro Alves <palves@redhat.com>
13649
13650 * mdebugread.c (parse_partial_symbols): Use
13651 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13652
da584958
AB
136532019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13654
13655 * linux-fork.c (scoped_switch_fork_info)
13656 <~scoped_switch_fork_info>: Fix incorrect variable name.
13657
1ef8573c
AB
136582019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13659
13660 * linux-fork.c (scoped_switch_fork_info)
13661 <scoped_switch_fork_info>: Make explicit.
13662 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13663
8d7bcccb
TT
136642019-01-10 Tom Tromey <tom@tromey.com>
13665
13666 * objfiles.h (objfile::reset_psymtabs): Update.
13667 * objfiles.c (objfile::objfile): Update.
13668 * psymtab.h (psymtab_storage::obstack): Update.
13669 (psymtab_storage::m_obstack): Use gdb::optional.
13670 (class psymtab_storage): Update comment. Remove objfile
13671 parameter.
13672 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13673
b596a3c7
TT
136742019-01-10 Tom Tromey <tom@tromey.com>
13675
13676 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13677 <free_psymtabs>: Now private.
13678 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13679 (allocate_psymtab): Use new method.
13680
a9342b62
TT
136812019-01-10 Tom Tromey <tom@tromey.com>
13682
13683 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13684 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13685 * mdebugread.c (parse_partial_symbols): Use
13686 allocate_dependencies.
13687 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13688 allocate_dependencies.
13689 (process_psymtab_comp_unit_reader)
13690 (build_type_psymtab_dependencies): Likewise.
13691 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13692
5af70966
TT
136932019-01-10 Tom Tromey <tom@tromey.com>
13694
13695 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13696 PSYMBOL_SET_LANGUAGE.
13697 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13698
5923a04c
TT
136992019-01-10 Tom Tromey <tom@tromey.com>
13700
13701 * psymtab.h (psymtab_storage::obstack): New method.
13702 <m_obstack>: Rename from obstack; now private.
13703 * psymtab.c (psymtab_storage): Update.
13704 * dwarf2read.c (create_addrmap_from_index)
13705 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13706 Update.
13707
6d6a12bf
TT
137082019-01-10 Tom Tromey <tom@tromey.com>
13709
13710 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13711 * objfiles.h (objfile::reset_psymtabs): New method.
13712
d320c2b5
TT
137132019-01-10 Tom Tromey <tom@tromey.com>
13714
13715 * symmisc.c (print_symbol_bcache_statistics): Update.
13716 (print_objfile_statistics): Update.
13717 * symfile.c (reread_symbols): Update.
13718 * psymtab.h (class psymtab_storage): New.
13719 * psymtab.c (psymtab_storage): New constructor.
13720 (~psymtab_storage): New destructor.
13721 (require_partial_symbols): Update.
13722 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13723 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13724 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13725 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13726 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13727 (start_psymtab_common, end_psymtab_common)
13728 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13729 (allocate_psymtab): Update.
13730 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13731 Update.
13732 (dump_psymtab_addrmap, maintenance_print_psymbols)
13733 (maintenance_check_psymtabs): Update.
13734 (class objfile_psymtabs): Move to objfiles.h.
13735 * psympriv.h (discard_psymtab): Now inline.
13736 (psymtab_discarder::psymtab_discarder): Update.
13737 (psymtab_discarder::~psymtab_discarder): Update.
13738 (ALL_OBJFILE_PSYMTABS): Rewrite.
13739 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13740 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13741 Remove fields.
13742 <partial_symtabs>: New field.
13743 (class objfile_psymtabs): Move from psymtab.h. Update.
13744 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13745 psymbol_cache.
13746 (objfile::~objfile): Don't destroy psymbol_cache.
13747 * mdebugread.c (parse_partial_symbols): Update.
13748 * dwarf2read.c (create_addrmap_from_index)
13749 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13750 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13751 (add_partial_subprogram, dwarf2_ranges_read): Update.
13752 * dwarf-index-write.c (write_address_map)
13753 (write_one_signatured_type, recursively_write_psymbols)
13754 (class debug_names, class debug_names, write_psymtabs_to_index):
13755 Update.
13756
1d94a5a3
TT
137572019-01-10 Tom Tromey <tom@tromey.com>
13758
13759 * symtab.h (SYMBOL_SET_NAMES): Update.
13760 (symbol_set_names): Update.
13761 (MSYMBOL_SET_NAMES): Update.
13762 * symtab.c (symbol_set_names): Change argument to be an
13763 objfile_per_bfd_storage.
13764 * psymtab.c (add_psymbol_to_bcache): Update.
13765 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13766
0f14768a
TT
137672019-01-10 Tom Tromey <tom@tromey.com>
13768
13769 * symtab.c (create_demangled_names_hash): Change argument to be an
13770 objfile_per_bfd_storage.
13771 (symbol_set_names): Update.
13772
6eee24ce
TT
137732019-01-10 Tom Tromey <tom@tromey.com>
13774
13775 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13776 init_psymbol_list.
13777 * psymtab.c (init_psymbol_list): Do nothing if already called.
13778 * psympriv.h (init_psymbol_list): Add comment.
13779 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13780 init_psymbol_list.
13781 * dbxread.c (dbx_symfile_read): Unconditionally call
13782 init_psymbol_list.
13783
75aedd27
TT
137842019-01-10 Tom Tromey <tom@tromey.com>
13785
13786 * xcoffread.c (scan_xcoff_symtab): Update.
13787 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13788 "where".
13789 * mdebugread.c (parse_partial_symbols)
13790 (handle_psymbol_enumerators): Update.
13791 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13792 * dbxread.c (read_dbx_symtab): Update.
13793 * psympriv.h (psymbol_placement): New enum.
13794 (add_psymbol_to_list): Update.
13795
939652a5
TT
137962019-01-10 Tom Tromey <tom@tromey.com>
13797
13798 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13799 static_psymbols parameters.
13800 (scan_xcoff_symtab): Update.
13801 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13802 static_psymbols parameters.
13803 * psympriv.h (start_psymtab_common): Update.
13804 * mdebugread.c (parse_partial_symbols): Update.
13805 * dwarf2read.c (create_partial_symtab): Update.
13806 * dbxread.c (read_dbx_symtab): Update.
13807 (start_psymtab): Remove global_psymbols and static_psymbols
13808 parameters.
13809
baa62830
TT
138102019-01-10 Tom Tromey <tom@tromey.com>
13811
13812 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13813 * psymtab.c (allocate_psymtab): Add comment.
13814 * psympriv.h (allocate_psymtab): Add comment.
13815 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13816 initializations.
13817 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13818
0e8f53ba
TT
138192019-01-10 Tom Tromey <tom@tromey.com>
13820
13821 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13822 Don't declare.
13823 * mipsread.c: Include mdebugread.h.
13824 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13825 Declare.
13826 * elfread.c: Include mdebugread.h.
13827
b22a7c6a
TT
138282019-01-09 Tom Tromey <tom@tromey.com>
13829
13830 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13831 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13832 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13833 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13834 (psym_lookup_symbol, psym_find_last_source_symtab)
13835 (psym_forget_cached_source_info, psym_print_stats)
13836 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13837 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13838 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13839 (psym_find_compunit_symtab_by_address)
13840 (maintenance_print_psymbols, maintenance_info_psymtabs)
13841 (maintenance_check_psymtabs): Use ranged for.
13842 * psymtab.h (class objfile_psymtabs): New.
13843 (require_partial_symbols): Return objfile_psymtabs.
13844 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13845
3b9d3ac2
TT
138462019-01-09 Tom Tromey <tom@tromey.com>
13847
13848 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13849 (find_pc_mapped_section, list_overlays_command)
13850 (map_overlay_command, unmap_overlay_command)
13851 (simple_overlay_update): Use all_objfiles.
13852 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13853 * printcmd.c (info_symbol_command): Use all_objfiles.
13854 * objfiles.h (ALL_OBJSECTIONS): Remove.
13855 * maint.c (maintenance_translate_address): Use all_objfiles.
13856 * gcore.c (gcore_create_callback): Use all_objfiles.
13857 (objfile_find_memory_regions): Likewise.
13858
8b31193a
TT
138592019-01-09 Tom Tromey <tom@tromey.com>
13860
13861 * symtab.c (find_line_symtab, info_sources_command)
13862 (make_source_files_completion_list): Use objfile_compunits.
13863 * source.c (select_source_symtab): Use objfile_compunits.
13864 * objfiles.h (struct objfile): Update comment.
13865 (ALL_OBJFILES): Remove.
13866 (ALL_FILETABS): Remove.
13867 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13868 objfile_compunits.
13869
d5da8b3c
TT
138702019-01-09 Tom Tromey <tom@tromey.com>
13871
13872 * symmisc.c (print_objfile_statistics, dump_objfile)
13873 (maintenance_print_symbols): Use compunit_filetabs.
13874 * source.c (forget_cached_source_info_for_objfile): Use
13875 compunit_filetabs.
13876 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13877 (ALL_FILETABS): Use compunit_filetabs.
13878 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13879 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13880
5accd1a0
TT
138812019-01-09 Tom Tromey <tom@tromey.com>
13882
13883 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13884 (compunit_filetabs): New.
13885 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13886 compunit_filetabs.
13887 (info_sources_command, make_source_files_completion_list): Remove
13888 declaration.
13889 * symmisc.c (print_objfile_statistics, dump_objfile)
13890 (maintenance_print_symbols): Remove declaration.
13891 (maintenance_info_symtabs): Use compunit_filetabs.
13892 (maintenance_info_line_tables): Likewise.
13893 * source.c (select_source_symtab): Change local variable name.
13894 (forget_cached_source_info_for_objfile): Remove declaration.
13895 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13896 * objfiles.c (objfile_relocate1): Remove declaration.
13897 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13898 declaration.
13899 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13900 * coffread.c (coff_symtab_read): Remove declaration.
13901 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13902 compunit_filetabs.
13903
d8aeb77f
TT
139042019-01-09 Tom Tromey <tom@tromey.com>
13905
13906 * symtab.c (lookup_objfile_from_block)
13907 (find_pc_sect_compunit_symtab, search_symbols)
13908 (default_collect_symbol_completion_matches_break_on): Use
13909 objfile_compunits.
13910 * objfiles.h (ALL_COMPUNITS): Remove.
13911 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13912 * cp-support.c (add_symbol_overload_list_qualified): Use
13913 objfile_compunits.
13914 * ada-lang.c (ada_collect_symbol_completion_matches)
13915 (ada_add_global_exceptions): Use objfile_compunits.
13916
592553c4
TT
139172019-01-09 Tom Tromey <tom@tromey.com>
13918
13919 * source.c (select_source_symtab)
13920 (forget_cached_source_info_for_objfile): Remove declaration.
13921 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13922 declaration.
13923 * maint.c (count_symtabs_and_blocks): Remove declaration.
13924 * cp-support.c (add_symbol_overload_list_qualified): Remove
13925 declaration.
13926 * coffread.c (coff_symtab_read): Remove declaration.
13927 * symtab.c (lookup_symbol_in_objfile_symtabs)
13928 (basic_lookup_transparent_type_1): Use objfile_compunits.
13929 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13930 (info_sources_command, search_symbols)
13931 (default_collect_symbol_completion_matches_break_on)
13932 (make_source_files_completion_list): Remove declaration.
13933 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13934 (ada_collect_symbol_completion_matches)
13935 (ada_add_global_exceptions): Remove declaration.
13936 * linespec.c (iterate_over_all_matching_symtabs): Use
13937 objfile_compunits.
13938 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13939 (class objfile_compunits): New.
13940 (ALL_COMPUNITS): Use objfile_compunits.
13941 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13942 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13943 objfile_compunits.
13944 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13945
5325b9bf
TT
139462019-01-09 Tom Tromey <tom@tromey.com>
13947
13948 * symtab.c (search_symbols)
13949 (default_collect_symbol_completion_matches_break_on): Use
13950 objfile_msymbols.
13951 * ada-lang.c (ada_lookup_simple_minsym)
13952 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13953 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13954 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13955 objfile_msymbols.
13956 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13957 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13958 * objc-lang.c (find_methods): Use objfile_msymbols.
13959 (info_selectors_command, info_classes_command): Likewise.
13960 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13961 * objfiles.h (class objfile_msymbols): New.
13962 (ALL_OBJFILE_MSYMBOLS): Remove.
13963 (ALL_MSYMBOLS): Remove.
13964
cac85af2
TT
139652019-01-09 Tom Tromey <tom@tromey.com>
13966
13967 * common/next-iterator.h (next_adapter): Add Iterator template
13968 parameter.
13969 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13970 (class all_objfiles_safe): New.
13971 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13972 * objfiles.c (put_objfile_before): Update comment.
13973 (add_separate_debug_objfile): Likewise.
13974 (free_all_objfiles): Use all_objfiles_safe.
13975 (objfile_purge_solibs): Likewise.
13976
aed57c53
TT
139772019-01-09 Tom Tromey <tom@tromey.com>
13978
13979 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13980 (expand_symtab_containing_pc, lookup_static_symbol)
13981 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13982 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13983 all_objfiles.
13984 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13985 * breakpoint.c (create_overlay_event_breakpoint)
13986 (create_longjmp_master_breakpoint)
13987 (create_std_terminate_master_breakpoint)
13988 (create_exception_master_breakpoint): Use all_objfiles.
13989 * linux-thread-db.c (try_thread_db_load_from_pdir)
13990 (has_libpthread): Use all_objfiles.
13991 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13992 * linespec.c (iterate_over_all_matching_symtabs)
13993 (search_minsyms_for_name): Use all_objfiles.
13994 * maint.c (maintenance_info_sections): Use all_objfiles.
13995 * main.c (captured_main_1): Use all_objfiles.
13996 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13997 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13998 * guile/scm-pretty-print.c
13999 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14000 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14001 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14002 (maintenance_print_msymbols): Use all_objfiles.
14003 * source.c (select_source_symtab): Use all_objfiles.
14004 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14005 * symfile.c (remove_symbol_file_command)
14006 (expand_symtabs_matching, map_symbol_filenames): Use
14007 all_objfiles.
14008 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14009 all_objfiles.
14010 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14011 * objc-lang.c (find_methods): Use all_objfiles.
14012 * objfiles.c (have_partial_symbols, have_full_symbols)
14013 (have_minimal_symbols, qsort_cmp)
14014 (default_iterate_over_objfiles_in_search_order): Use
14015 all_objfiles.
14016 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14017 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14018 (maintenance_check_psymtabs): Use all_objfiles.
14019 (ALL_PSYMTABS): Remove.
14020 * compile/compile-object-run.c (do_module_cleanup): Use
14021 all_objfiles.
14022 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14023 * cp-support.c (add_symbol_overload_list_qualified): Use
14024 all_objfiles.
14025 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14026 Use all_objfiles.
14027 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14028 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14029 all_objfiles.
14030 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14031 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14032 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14033 Uses all_objfiles.
14034 * solib.c (solib_read_symbols): Use all_objfiles
14035
99d89cde
TT
140362019-01-09 Tom Tromey <tom@tromey.com>
14037
14038 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14039 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14040 all_objfiles.
14041 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14042 * symmisc.c (print_symbol_bcache_statistics)
14043 (print_objfile_statistics, maintenance_print_objfiles)
14044 (maintenance_info_symtabs, maintenance_check_symtabs)
14045 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14046 all_objfiles.
14047 * source.c (forget_cached_source_info): Use all_objfiles.
14048 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14049 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14050 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14051 * objfiles.c (update_section_map): Use all_objfiles.
14052 (shared_objfile_contains_address_p): Likewise.
14053 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14054 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14055
21708325
TT
140562019-01-09 Tom Tromey <tom@tromey.com>
14057
14058 * common/next-iterator.h: New file.
14059 * objfiles.h (class all_objfiles): New.
14060 (struct objfile_iterator): New.
14061
669e09f6
PW
140622019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14063
14064 * NEWS: Move the description of the changed "frame", "select-frame",
14065 and "info frame" commands to the Changed commands section.
14066
041be526
SM
140672019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14068
14069 * gdbtypes.c (check_stub_method_group): Remove handling of old
14070 mangling schemes.
14071 * linespec.c (find_methods): Likewise.
14072 * stabsread.c (read_member_functions): Likewise.
14073 * valops.c (search_struct_method): Likewise.
14074 (value_struct_elt_for_reference): Likewise.
14075 * NEWS: Mention this change.
14076
0e2a2133
AB
140772019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14078
14079 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14080 print_source_lines.
14081 * source.c (print_source_lines_base): Update line number check.
14082 (print_source_lines): New function.
14083 (source_lines_range::source_lines_range): New function.
14084 * source.h (class source_lines_range): New class.
14085 (print_source_lines): New declaration.
14086
1055a3b4
PW
140872019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14088
14089 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14090
cfeadda5
TT
140912019-01-08 Tom Tromey <tom@tromey.com>
14092 Simon Marchi <simon.marchi@ericsson.com>
14093
14094 PR gdb/24060
14095 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14096 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14097 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14098 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14099 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14100 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14101
583068ca
AB
141022019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14103
14104 * source.c (select_source_symtab): Move header comment to
14105 declaration in source.h.
14106 (forget_cached_source_info_for_objfile): Likewise.
14107 (forget_cached_source_info): Likewise.
14108 (identify_source_line): Likewise.
14109 * source.h (identify_source_line): Move declaration from symtab.h
14110 and add comment from source.c
14111 (print_source_lines): Likewise.
14112 (forget_cached_source_info_for_objfile): Likewise.
14113 (forget_cached_source_info): Likewise.
14114 (select_source_symtab): Likewise.
14115 (enum print_source_lines_flag): Move definition from symtab.h.
14116 * symtab.h (identify_source_line): Move declaration to source.h.
14117 (print_source_lines): Likewise.
14118 (forget_cached_source_info_for_objfile): Likewise.
14119 (forget_cached_source_info): Likewise.
14120 (select_source_symtab): Likewise.
14121 (enum print_source_lines_flag): Move definition to source.h.
14122 * tui/tui-hooks.c: Add 'source.h' include.
14123
ec98a4ad
AB
141242019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14125
14126 * source.c (print_source_lines_base): Handle requests to print
14127 reverse line number sequences, and guard against empty lines
14128 string.
14129
62ea19c1
AB
141302019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14131
14132 * source.c (print_source_lines_base): Fix skip of '\r' if next
14133 character is '\n'.
14134
9d30e1fd
TT
141352019-01-06 Tom Tromey <tom@tromey.com>
14136
14137 * c-exp.y (struct c_parse_state) <macro_original_text,
14138 expansion_obstack>: New member.
14139 (macro_original_text, expansion_obstack): Remove globals.
14140 (scan_macro_expansion, scanning_macro_expansion)
14141 (finished_macro_expansion): Update.
14142 (scan_macro_cleanup): Remove.
14143 (yylex, c_parse): Update.
14144
c65bac38
TT
141452019-01-06 Tom Tromey <tom@tromey.com>
14146
14147 * c-exp.y (struct c_parse_state) <strings>: New member.
14148 (operator_stoken): Update.
14149
02e12e38
TT
141502019-01-06 Tom Tromey <tom@tromey.com>
14151
14152 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14153 (union type_stack_elt) <typelist_val>: Now a pointer to
14154 std::vector.
14155 (type_stack_cleanup): Don't declare.
14156 (push_typelist): Update.
14157 * parse.c (pop_typelist): Return a std::vector.
14158 (push_typelist): Take a std::vector.
14159 (follow_types): Update. Do not free args.
14160 (type_stack_cleanup): Remove.
14161 * c-exp.y (struct c_parse_state): New.
14162 (cpstate): New global.
14163 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14164 (nonempty_typelist): Update.
14165 (func_mod): Create a new vector.
14166 (c_parse): Create a c_parse_state.
14167 (check_parameter_typelist): Do not delete params.
14168 (function_method): Update. Do not delete type_list.
14169
f097f5ad
TT
141702019-01-06 Tom Tromey <tom@tromey.com>
14171
14172 PR gdb/28155:
14173 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14174 check_typedef.
14175 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14176 (print_return_value): Likewise.
14177
d2adf9f1
TT
141782019-01-05 Tom Tromey <tom@tromey.com>
14179
14180 * contrib/cleanup_check.py: Remove.
14181 * contrib/gcc-with-excheck: Remove.
14182 * contrib/exsummary.py: Remove.
14183 * contrib/excheck.py: Remove.
14184
2eab46b1
JB
141852019-01-05 Joel Brobecker <brobecker@adacore.com>
14186
14187 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14188 NULL. Initialize tpprev to NULL instead of assigning it
14189 to NULL on the next statement.
14190 * windows-nat.c (windows_delete_thread): Remove check for
14191 main_thread_id before printing thread exit notifications.
14192 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14193 Remove thread ID check against main_thread_id.
14194 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14195 windows_delete_thread.
14196 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14197
48c5e7e2
TT
141982019-01-04 Tom Tromey <tom@tromey.com>
14199
14200 * compile/compile.c (_initialize_compile): Use upper case for
14201 metasyntactic variables.
14202 * symmisc.c (_initialize_symmisc): Use upper case for
14203 metasyntactic variables.
14204 * psymtab.c (_initialize_psymtab): Use upper case for
14205 metasyntactic variables.
14206 * demangle.c (demangle_command): Use upper case for metasyntactic
14207 variables.
14208 (_initialize_demangler): Likewise.
14209 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14210 variables.
14211
986041cd
TT
142122019-01-03 Tom Tromey <tom@tromey.com>
14213
14214 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14215
7c711119
TT
142162019-01-03 Tom Tromey <tom@tromey.com>
14217
14218 * python/py-symtab.c (salpy_str): Update.
14219 (struct salpy_sal_object) <symtab>: Now a PyObject.
14220 (salpy_dealloc): Update.
14221 (del_objfile_sal): Use gdbpy_ref.
14222
1b20edf0
TT
142232019-01-03 Tom Tromey <tom@tromey.com>
14224
14225 * python/py-type.c (convert_field): Use new_reference. Return
14226 gdbpy_ref.
14227 (make_fielditem): Return gdbpy_ref.
14228 (typy_fields): Update.
14229 (typy_getitem): Update.
14230 (field_name): Return gdbpy_ref. Use new_reference.
14231 (typy_iterator_iternext): Update.
14232
ea41325b
TT
142332019-01-03 Tom Tromey <tom@tromey.com>
14234
14235 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14236
2a3c71d6
TT
142372019-01-03 Tom Tromey <tom@tromey.com>
14238
14239 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14240 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14241 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14242 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14243 (pspy_set_type_printers): Likewise.
14244 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14245 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14246 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14247 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14248 (objfpy_set_type_printers): Likewise.
14249
5c329e6a
TT
142502019-01-03 Tom Tromey <tom@tromey.com>
14251
14252 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14253 (gdbpy_print_stack): Use gdbpy_err_fetch.
14254 * python/python-internal.h (class gdbpy_err_fetch): New class.
14255 (class gdbpy_enter) <m_error_type, m_error_value,
14256 m_error_traceback>: Remove.
14257 <m_error>: New member.
14258 (gdbpy_exception_to_string): Don't declare.
14259 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14260 * python/py-value.c (convert_value_from_python): Use
14261 gdbpy_err_fetch.
14262 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14263 gdbpy_exception_to_string.
14264 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14265 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14266 gdbpy_err_fetch.
14267
169bb27b
AB
142682019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14269
14270 * linux-nat.c (delete_lwp_cleanup): Delete.
14271 (struct lwp_deleter): New struct.
14272 (lwp_info_up): New typedef.
14273 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14274 lwp_info_up.
14275
a07c8880
AB
142762019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14277
14278 * linux-fork.c (class scoped_switch_fork_info): New class.
14279 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14280
26089c49
AB
142812019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14282
14283 * valops.c (find_overload_match): Remove use of null_cleanup, and
14284 calls to do_cleanups.
14285
06d3e5b0
AB
142862019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14287
14288 * compile/compile-cplus-types.c
14289 (compile_cplus_instance::decl_name): Handle changes to
14290 cp_func_name.
14291 * cp-support.c (cp_func_name): Update header comment, update
14292 return type.
14293 * cp-support.h (cp_func_name): Update return type in declaration.
14294 * valops.c (find_overload_match): Move temp_func local to top
14295 level of function and change its type. Use temp_func to hold and
14296 delete temporary string obtained from cp_func_name.
14297
66644cd3
AB
142982019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14299
14300 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14301 gdb::char_vector, remove cleanup, and update uses of `msg`.
14302
592d8c0a
JW
143032019-01-03 Jim Wilson <jimw@sifive.com>
14304
14305 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14306
c55d06ec
TT
143072019-01-02 Tom Tromey <tom@tromey.com>
14308
14309 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14310 (tdesc_parse_xml): Remove cleanups.
14311 * target-descriptions.h (make_cleanup_free_target_description):
14312 Don't declare.
14313 (target_desc_deleter): New struct.
14314 (target_desc_up): New typedef.
14315 * target-descriptions.c (target_desc_deleter::operator()): Rename
14316 from free_target_description.
14317 (make_cleanup_free_target_description): Remove.
14318
3a6ae42d
TT
143192019-01-02 Tom Tromey <tom@tromey.com>
14320
14321 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14322 constructor, destructor.
14323 (linespec_parser): Remove typedef.
14324 (~linespec_parser): Rename from linespec_parser_delete.
14325 (linespec_lex_to_end, linespec_complete_label)
14326 (linespec_complete): Update.
14327 (decode_line_full): Remove cleanups.
14328 (decode_line_1): Update.
14329
61fd3e73
TT
143302019-01-02 Tom Tromey <tom@tromey.com>
14331
14332 * python/python-internal.h (inferior_to_inferior_object): Change
14333 return type.
14334 * python/py-exitedevent.c (create_exited_event_object): Update.
14335 * python/py-inferior.c (inferior_to_inferior_object): Return
14336 gdbpy_ref.
14337 (python_new_inferior, python_inferior_deleted)
14338 (thread_to_thread_object, delete_thread_object)
14339 (build_inferior_list, gdbpy_selected_inferior): Update.
14340 * python/py-infthread.c (create_thread_object): Update. Also fail
14341 if inferior_to_inferior_object fails.
14342
d20172fc
SM
143432019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14344
14345 * inferior.h (class inferior) <displaced_step_state>: New field.
14346 * infrun.h (struct displaced_step_state): Move here from
14347 infrun.c. Initialize fields, add constructor.
14348 <inf>: Remove field.
14349 <reset>: New method.
14350 * infrun.c (struct displaced_step_inferior_state): Move to
14351 infrun.h.
14352 (displaced_step_inferior_states): Remove.
14353 (get_displaced_stepping_state): Adust.
14354 (displaced_step_in_progress_any_inferior): Adjust.
14355 (displaced_step_in_progress_thread): Adjust.
14356 (displaced_step_in_progress): Adjust.
14357 (add_displaced_stepping_state): Remove.
14358 (get_displaced_step_closure_by_addr): Adjust.
14359 (remove_displaced_stepping_state): Remove.
14360 (infrun_inferior_exit): Call displaced_step_state.reset.
14361 (use_displaced_stepping): Don't check for NULL.
14362 (displaced_step_prepare_throw): Call
14363 get_displaced_stepping_state.
14364 (displaced_step_fixup): Don't check for NULL.
14365 (prepare_for_detach): Don't check for NULL.
14366
e3319240
PW
143672019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14368
14369 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14370 in case of call that did not complete.
14371
5d36dfb9
AU
143722019-01-02 Andrey Utkin <autkin@undo.io>
14373
14374 * symfile.c (find_separate_debug_file): Fix search of debug files for
14375 remote debuggee.
14376
8833fbf0
TT
143772019-01-02 Tom Tromey <tom@tromey.com>
14378
14379 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14380 indentation.
14381 * python/py-frame.c (frapy_older): Remove cast.
14382 (frapy_newer): Likewise.
14383 * python/py-breakpoint.c (local_setattro): Remove cast.
14384 * python/py-arch.c (archpy_name): Remove local variable.
14385 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14386
4ada3dfd
JB
143872019-01-02 Joel Brobecker <brobecker@adacore.com>
14388
14389 * unittests/basic_string_view/element_access/char/empty.cc:
14390 Fix year range in copyright header.
14391
113b7b81
AB
143922019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14393
14394 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14395 Delete.
14396 <operator==>: Update with for removed field.
14397 <hash>: Likewise.
14398 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14399 <isa_features>: ...this.
14400 <abi_features>: New field.
14401 (riscv_isa_flen): Update comment.
14402 (riscv_abi_xlen): New declaration.
14403 (riscv_abi_flen): New declaration.
14404 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14405 isa_features.
14406 (riscv_abi_xlen): New function.
14407 (riscv_isa_flen): Update to get answer from isa_features.
14408 (riscv_abi_flen): New function.
14409 (riscv_has_fp_abi): Update to get answer from abi_features.
14410 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14411 xlen and flen.
14412 (riscv_call_info) <xlen, flen>: Update comment.
14413 (riscv_call_arg_struct): Remove invalid assertions
14414 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14415 is removed.
14416 (riscv_gdbarch_init): Gather isa features and abi features
14417 separately, ensure both match on the gdbarch when reusing an old
14418 gdbarch. Relax an error check to allow 32-bit abi float to run on
14419 a target with 64-bit float hardware.
14420
b18ca514
PW
144212019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14422
14423 * source.c (search_command_helper): Stop reverse search
14424 when line 1 has been searched.
14425
ec70d8db
PW
144262019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14427
14428 * record-full.c (record_full_base_target::close): Rewrite
14429 record_full_core_buf_list free logic.
14430
5b38f9c1
PW
144312019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14432
14433 * break-catch-syscall.c (print_one_catch_syscall): xfree
14434 the last text.
14435
66d91b39
JB
144362019-01-01 Joel Brobecker <brobecker@adacore.com>
14437
14438 * top.c (print_gdb_version): Update Copyright year in version
14439 message.
14440
42a4f53d
JB
144412019-01-01 Joel Brobecker <brobecker@adacore.com>
14442
14443 Update copyright year range in all GDB files.
14444
7e955d83 144452019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 14446
5bbd631d 14447 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 14448
5bbd631d 14449For older changes see ChangeLog-2018.
c906108c
SS
14450\f
14451Local Variables:
14452mode: change-log
14453left-margin: 8
14454fill-column: 74
14455version-control: never
57da7796 14456coding: utf-8
c906108c 14457End:
5bbd631d 14458
This page took 3.779924 seconds and 4 git commands to generate.