]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Add a string_view version of startswith
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2
3 * gdbsupport/common-utils.h (startswith): Add an overloaded version
4 that takes gdb::string_view arguments.
5
6 2019-10-26 Tom de Vries <tdevries@suse.de>
7
8 * aarch64-linux-tdep.c: Fix typos in comments.
9 * aarch64-tdep.c: Same.
10 * ada-lang.c: Same.
11 * amd64-nat.c: Same.
12 * arc-tdep.c: Same.
13 * arch/aarch64-insn.c: Same.
14 * block.c: Same.
15 * breakpoint.h: Same.
16 * btrace.h: Same.
17 * c-varobj.c: Same.
18 * cli/cli-decode.c: Same.
19 * cli/cli-script.c: Same.
20 * cli/cli-utils.h: Same.
21 * coff-pe-read.c: Same.
22 * coffread.c: Same.
23 * compile/compile-cplus-symbols.c: Same.
24 * compile/compile-object-run.c: Same.
25 * completer.c: Same.
26 * corelow.c: Same.
27 * cp-support.c: Same.
28 * demangle.c: Same.
29 * dwarf-index-write.c: Same.
30 * dwarf2-frame.c: Same.
31 * dwarf2-frame.h: Same.
32 * eval.c: Same.
33 * frame-base.h: Same.
34 * frame.h: Same.
35 * gdbcmd.h: Same.
36 * gdbtypes.h: Same.
37 * gnu-nat.c: Same.
38 * guile/scm-objfile.c: Same.
39 * i386-tdep.c: Same.
40 * i386-tdep.h: Same.
41 * infcall.c: Same.
42 * infcall.h: Same.
43 * linux-nat.c: Same.
44 * m68k-tdep.c: Same.
45 * macroexp.c: Same.
46 * memattr.c: Same.
47 * mi/mi-cmd-disas.c: Same.
48 * mi/mi-getopt.h: Same.
49 * mi/mi-main.c: Same.
50 * minsyms.c: Same.
51 * nat/aarch64-sve-linux-sigcontext.h: Same.
52 * objfiles.h: Same.
53 * ppc-linux-nat.c: Same.
54 * ppc-linux-tdep.c: Same.
55 * ppc-tdep.h: Same.
56 * progspace.h: Same.
57 * prologue-value.h: Same.
58 * python/py-evtregistry.c: Same.
59 * python/py-instruction.h: Same.
60 * record-btrace.c: Same.
61 * record-full.c: Same.
62 * remote.c: Same.
63 * rs6000-tdep.c: Same.
64 * ser-tcp.c: Same.
65 * sol-thread.c: Same.
66 * sparc-sol2-tdep.c: Same.
67 * sparc64-tdep.c: Same.
68 * stabsread.c: Same.
69 * symfile.c: Same.
70 * symtab.h: Same.
71 * target.c: Same.
72 * tracepoint.c: Same.
73 * tui/tui-data.h: Same.
74 * tui/tui-io.c: Same.
75 * tui/tui-win.c: Same.
76 * tui/tui.c: Same.
77 * unittests/rsp-low-selftests.c: Same.
78 * user-regs.h: Same.
79 * utils.c: Same.
80 * utils.h: Same.
81 * valarith.c: Same.
82 * valops.c: Same.
83 * valprint.c: Same.
84 * valprint.h: Same.
85 * value.c: Same.
86 * value.h: Same.
87 * varobj.c: Same.
88 * x86-nat.h: Same.
89 * xtensa-tdep.c: Same.
90
91 2019-10-25 Ali Tamur <tamur@google.com>
92
93 * charset.c (find_charset_names): Reflect API change.
94
95 2019-10-25 Christian Biesinger <cbiesinger@google.com>
96
97 * symtab.c (struct demangled_name_entry): Change demangled name
98 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
99 part of the struct anymore.
100 (symbol_set_names): No longer obstack allocate + copy the demangled
101 name, just store the allocated name from bfd.
102
103 2019-10-25 Tom Tromey <tromey@adacore.com>
104
105 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
106 (bsearch_cie_cmp, add_cie): Remove.
107 (find_cie): Reimplement.
108 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
109 (dwarf2_build_frame_info): Update.
110
111 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
112
113 PR gdb/25126
114 * symfile.c (reread_symbols): Call forget_cached_source_info to
115 clear the stale source cache.
116
117 2019-10-24 Christian Biesinger <cbiesinger@google.com>
118
119 * configure: Regenerate.
120 * configure.ac: Remove code that sets python_has_threads.
121
122 2019-10-24 Christian Biesinger <cbiesinger@google.com>
123
124 * config.in: Regenerate.
125 * configure: Regenerate.
126 * configure.ac: Remove the code that uses sed to get the python
127 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
128
129 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
130
131 * python/py-progspace.c (pspy_block_for_pc): Return None for all
132 error paths.
133
134 2019-10-23 Tom Tromey <tom@tromey.com>
135
136 * arc-tdep.c: Remove ".." from include.
137 * frv-tdep.c: Remove ".." from include.
138 * lm32-tdep.c: Remove ".." from include.
139 * microblaze-tdep.c: Remove ".." from include.
140 * or1k-tdep.h: Remove ".." from include.
141 * s12z-tdep.c: Remove ".." from include.
142 * Makefile.in (OPCODES_CFLAGS): Add comment.
143 (TOP_CFLAGS): New variable.
144 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
145
146 2019-10-23 Tom Tromey <tom@tromey.com>
147
148 * Makefile.in (READLINE_DIR): Update.
149
150 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
151
152 * infcall.c (call_function_by_hand_dummy): Fix the function
153 comment. And extract out a code section into...
154 (reserve_stack_space): ...this new function.
155
156 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
157
158 * infcall.c (value_arg_coerce): Remove an unused parameter.
159 (call_function_by_hand_dummy): Update the call to
160 'value_arg_coerce'.
161
162 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
163
164 * infcall.c (call_function_by_hand_dummy): Refactor.
165
166 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
167
168 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
169
170 2019-10-23 Tom Tromey <tom@tromey.com>
171
172 * configure: Rebuild.
173 * configure.ac: Don't check for sigprocmask.
174 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
175
176 2019-10-23 Tom Tromey <tom@tromey.com>
177
178 * configure: Rebuild.
179 * acinclude.m4: Use m4_include, not sinclude.
180
181 2019-10-23 Tom de Vries <tdevries@suse.de>
182
183 PR breakpoints/24687
184 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
185
186 2019-10-22 Christian Biesinger <cbiesinger@google.com>
187
188 * symtab.c (struct demangled_name_entry) <language>: Change from
189 bitfield to regular variable.
190
191 2019-10-22 Christian Biesinger <cbiesinger@google.com>
192
193 * symtab.c (struct demangled_name_entry): Add a constructor.
194 (free_demangled_name_entry): New function to call the destructor
195 for demangled_name_entry.
196 (create_demangled_names_hash): Pass free_demangled_name_entry to
197 htab_create_alloc.
198 (symbol_set_names): Call placement new for demangled_name_entry.
199 * utils.c: No longer include xxhash.h here, now that fast_hash
200 is inlined in the header.
201 * utils.h: Instead, include it here.
202
203 2019-10-22 Christian Biesinger <cbiesinger@google.com>
204
205 * Makefile.in: Link with libxxhash.
206 * config.in: Regenerate.
207 * configure: Regenerate.
208 * configure.ac: Search for libxxhash.
209 * utils.c (fast_hash): Use xxhash if present.
210
211 2019-10-22 Christian Biesinger <cbiesinger@google.com>
212
213 * utils.h (fast_hash): New function.
214 * symtab.c (hash_demangled_name_entry): Call new function
215 fast_hash.
216
217 2019-10-22 Christian Biesinger <cbiesinger@google.com>
218
219 * symtab.c (struct demangled_name_entry): Change type of mangled
220 to gdb::string_view. Also adds a constructor that takes the
221 mangled name.
222 (hash_demangled_name_entry): Update.
223 (eq_demangled_name_entry): Update.
224 (free_demangled_name_entry): New function to call the destructor
225 now that this is not a POD anymore.
226 (create_demangled_names_hash): Pass free_demangled_name_entry to
227 htab_create_alloc.
228 (symbol_set_names): Update.
229
230 2019-10-21 Ali Tamur <tamu@google.com>
231
232 * dwarf2read.c (dir_index): Change type.
233 (file_name_index): Likewise.
234 (line_header::include_dir_at): Change comment and implementation on
235 whether it is DWARF 5.
236 (line_header::is_valid_file_index): New function.
237 (line_header::file_name_at): Change comment and implementation on
238 whether it is DWARF 5.
239 (line_header::file_names): Change to private field renamed as
240 m_file_names and introduce a new accessor method.
241 (line_header::file_names_size): New method.
242 (line_header::include_dirs): Change to private field and rename as
243 m_include_dirs.
244 (dw2_get_file_names_reader): Define local var at a smaller scope and
245 reflect API change.
246 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
247 (process_structure_scope): Likewise.
248 (line_header::add_include_dir): Change message and reflect renaming.
249 (line_header::add_file_name): Likewise.
250 (read_formatted_entries): Handle DW_FORM_data16.
251 (dwarf_decode_line_header): Fix line header length calculation.
252 (psymtab_include_file_name): Change comment and API.
253 (lnp_state_machine::m_file): Update comment and reflect type change.
254 (lnp_state_machine::record_line): Reflect type change.
255 (dwarf_decode_lines): Reflect API change.
256 (file_file_name): Likewise.
257 (file_full_name): Likewise.
258
259 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
260
261 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
262
263 2019-10-21 Tom Tromey <tom@tromey.com>
264
265 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
266
267 2019-10-21 Tom Tromey <tom@tromey.com>
268
269 * configure.ac (nm.h): Conditionally create nm.h link. Subst
270 NM_H. Use AC_CONFIG_LINKS.
271 * configure: Rebuild.
272 * Makefile.in (NM_H): New variable.
273 (generated_files): Add NM_H. Remove gcore.
274 (nm.h, stamp-nmh): New targets.
275
276 2019-10-20 Tom Tromey <tom@tromey.com>
277
278 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
279 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
280 obsolete comment.
281 (put_objfile_before): Now static.
282
283 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
284
285 * gdbsupport/common-utils.h (startswith): Change return type to
286 bool.
287
288 2019-10-19 Christian Biesinger <cbiesinger@google.com>
289
290 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
291 * breakpoint.c (bp_locations_compare): Rename to...
292 (bp_location_is_less_than): ...this, and change to std::sort semantics.
293 (update_global_location_list): Use std::sort instead of qsort.
294 * buildsym.c (compare_line_numbers): Rename to...
295 (lte_is_less_than): ...this, and change to std::sort semantics.
296 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
297 instead of qsort.
298 * disasm.c (compare_lines): Rename to...
299 (line_is_less_than): ...this, and change to std::sort semantics.
300 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
301 of qsort.
302 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
303 (fde_is_less_than): ...this, and change to std::sort semantics.
304 (dwarf2_build_frame_info): Call std::sort instead of qsort.
305 * mdebugread.c (compare_blocks):
306 (block_is_less_than): ...this, and change to std::sort semantics.
307 (sort_blocks): Call std::sort instead of qsort.
308 * objfiles.c (qsort_cmp): Rename to...
309 (sort_cmp): ...this, and change to std::sort semantics.
310 (update_section_map): Call std::sort instead of qsort.
311 * remote.c (compare_pnums): Remove.
312 (map_regcache_remote_table): Call std::sort instead of qsort.
313 * utils.c (compare_positive_ints): Remove.
314 * utils.h (compare_positive_ints): Remove.
315 * xcoffread.c (compare_lte): Remove.
316 (arrange_linetable): Call std::sort instead of qsort.
317
318 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
319
320 * symfile.c (init_entry_point_info): Fix typo.
321 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
322
323 2019-10-18 Tom de Vries <tdevries@suse.de>
324
325 * aarch64-tdep.c: Fix typos in comments.
326 * ada-lang.c: Same.
327 * ada-tasks.c: Same.
328 * alpha-tdep.c: Same.
329 * alpha-tdep.h: Same.
330 * amd64-nat.c: Same.
331 * amd64-windows-tdep.c: Same.
332 * arc-tdep.c: Same.
333 * arc-tdep.h: Same.
334 * arch-utils.c: Same.
335 * arm-nbsd-tdep.c: Same.
336 * arm-tdep.c: Same.
337 * ax-gdb.c: Same.
338 * blockframe.c: Same.
339 * btrace.c: Same.
340 * c-varobj.c: Same.
341 * coff-pe-read.c: Same.
342 * coffread.c: Same.
343 * cris-tdep.c: Same.
344 * darwin-nat.c: Same.
345 * dbxread.c: Same.
346 * dcache.c: Same.
347 * disasm.c: Same.
348 * dtrace-probe.c: Same.
349 * dwarf-index-write.c: Same.
350 * dwarf2-frame-tailcall.c: Same.
351 * dwarf2-frame.c: Same.
352 * dwarf2read.c: Same.
353 * eval.c: Same.
354 * exceptions.c: Same.
355 * fbsd-tdep.c: Same.
356 * findvar.c: Same.
357 * frame.c: Same.
358 * frv-tdep.c: Same.
359 * gnu-v3-abi.c: Same.
360 * go32-nat.c: Same.
361 * h8300-tdep.c: Same.
362 * hppa-tdep.c: Same.
363 * i386-linux-tdep.c: Same.
364 * i386-tdep.c: Same.
365 * ia64-libunwind-tdep.c: Same.
366 * ia64-tdep.c: Same.
367 * infcmd.c: Same.
368 * infrun.c: Same.
369 * linespec.c: Same.
370 * linux-nat.c: Same.
371 * linux-thread-db.c: Same.
372 * machoread.c: Same.
373 * mdebugread.c: Same.
374 * mep-tdep.c: Same.
375 * mn10300-tdep.c: Same.
376 * namespace.c: Same.
377 * objfiles.c: Same.
378 * opencl-lang.c: Same.
379 * or1k-tdep.c: Same.
380 * osabi.c: Same.
381 * ppc-linux-nat.c: Same.
382 * ppc-linux-tdep.c: Same.
383 * ppc-sysv-tdep.c: Same.
384 * printcmd.c: Same.
385 * procfs.c: Same.
386 * record-btrace.c: Same.
387 * record-full.c: Same.
388 * remote-fileio.c: Same.
389 * remote.c: Same.
390 * rs6000-tdep.c: Same.
391 * s12z-tdep.c: Same.
392 * score-tdep.c: Same.
393 * ser-base.c: Same.
394 * ser-go32.c: Same.
395 * skip.c: Same.
396 * sol-thread.c: Same.
397 * solib-svr4.c: Same.
398 * solib.c: Same.
399 * source.c: Same.
400 * sparc-nat.c: Same.
401 * sparc-sol2-tdep.c: Same.
402 * sparc-tdep.c: Same.
403 * sparc64-tdep.c: Same.
404 * stabsread.c: Same.
405 * stack.c: Same.
406 * symfile.c: Same.
407 * symtab.c: Same.
408 * target-descriptions.c: Same.
409 * target-float.c: Same.
410 * thread.c: Same.
411 * utils.c: Same.
412 * valops.c: Same.
413 * valprint.c: Same.
414 * value.c: Same.
415 * varobj.c: Same.
416 * windows-nat.c: Same.
417 * xcoffread.c: Same.
418 * xstormy16-tdep.c: Same.
419 * xtensa-tdep.c: Same.
420
421 2019-10-17 Tom Tromey <tromey@adacore.com>
422
423 * configure: Rebuild.
424 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
425 in AC_CONFIG_FILES invocation.
426 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
427 new-style config.status invocation.
428
429 2019-10-17 Tom de Vries <tdevries@suse.de>
430
431 * arm-nbsd-nat.c: Fix typos in comments.
432 * arm-tdep.c: Same.
433 * darwin-nat-info.c: Same.
434 * dwarf2read.c: Same.
435 * elfread.c: Same.
436 * event-top.c: Same.
437 * findvar.c: Same.
438 * gdbtypes.c: Same.
439 * hppa-tdep.c: Same.
440 * i386-tdep.c: Same.
441 * jit.c: Same.
442 * main.c: Same.
443 * mdebugread.c: Same.
444 * moxie-tdep.c: Same.
445 * nto-procfs.c: Same.
446 * osabi.c: Same.
447 * ppc-linux-tdep.c: Same.
448 * remote.c: Same.
449 * riscv-tdep.c: Same.
450 * s390-tdep.c: Same.
451 * sh-tdep.c: Same.
452 * sparc-linux-tdep.c: Same.
453 * sparc-nat.c: Same.
454 * stack.c: Same.
455 * target-descriptions.c: Same.
456 * top.c: Same.
457 * varobj.c: Same.
458
459 2019-10-16 Tom Tromey <tom@tromey.com>
460
461 * objfiles.h (struct objfile) <original_name>: Now const.
462
463 2019-10-16 Christian Biesinger <cbiesinger@google.com>
464
465 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
466 pass on to sigsetjmp's second argument.
467 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
468
469 2019-10-16 Keith Seitz <keiths@redhat.com>
470
471 PR gdb/23567
472 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
473 sections whose size is greater than the file size.
474
475 2019-10-16 Jim Wilson <jimw@sifive.com>
476
477 * riscv-tdep.c (riscv_gcc_target_options): New.
478 (riscv_gnu_triplet_regexp): New.
479 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
480 set_gdbarch_gnu_triplet_regexp.
481
482 2019-10-16 Christian Biesinger <cbiesinger@google.com>
483
484 * Makefile.in: Add xml-builtin.h.
485 * features/feature_to_c.sh: Add an include for xml-builtin.h
486 to ensure that the compiler checks that the types match.
487 * xml-builtin.h: New file.
488 * xml-support.c (fetch_xml_builtin): Add missing const.
489 * xml-support.h: Remove declaration of xml_builtins.
490
491 2019-10-16 Tom de Vries <tdevries@suse.de>
492
493 PR tdep/25096
494 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
495 (amd64_classify_aggregate): ... here.
496 (amd64_classify_aggregate_field): Handled fiels of nested structs
497 recursively.
498
499 2019-10-16 Tom de Vries <tdevries@suse.de>
500
501 PR tdep/24104
502 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
503 that handles 'theclass'.
504
505 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
506
507 * linespec.c (decode_digits_ordinary): Update comment.
508 * make-target-delegates: No longer need to handle VEC case.
509 * memrange.c (normalize_mem_ranges): Update comment.
510 * namespace.c (add_using_directive): Update comment.
511 * objc-lang.c (uniquify_strings): Update comment.
512 * ppc-linux-nat.c (struct thread_points): Update comment.
513 * probe.h (find_probes_in_objfile): Update comment.
514 * target.h (enum flash_preserve_mode): Update comment.
515 * varobj.c (varobj_restrict_range): Update comment.
516 * varobj.h (varobj_list_children): Update comment.
517
518 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
519
520 * Makefile.in: Remove references to vec.h and vec.c.
521 * aarch64-tdep.c: No longer include vec.h.
522 * ada-lang.c: Likewise.
523 * ada-lang.h: Likewise.
524 * arm-tdep.c: Likewise.
525 * ax.h: Likewise.
526 * breakpoint.h: Likewise.
527 * charset.c: Likewise.
528 * cp-support.h: Likewise.
529 * dtrace-probe.c: Likewise.
530 * dwarf2read.c: Likewise.
531 * extension.h: Likewise.
532 * gdb_bfd.c: Likewise.
533 * gdbsupport/gdb_vecs.h: Likewise.
534 * gdbsupport/vec.c: Remove.
535 * gdbsupport/vec.h: Remove.
536 * gdbthread.h: Likewise.
537 * guile/scm-type.c: Likewise.
538 * inline-frame.c: Likewise.
539 * machoread.c: Likewise.
540 * memattr.c: Likewise.
541 * memrange.h: Likewise.
542 * namespace.h: Likewise.
543 * nat/linux-btrace.h: Likewise.
544 * osdata.c: Likewise.
545 * parser-defs.h: Likewise.
546 * progspace.h: Likewise.
547 * python/py-type.c: Likewise.
548 * record-btrace.c: Likewise.
549 * rust-exp.y: Likewise.
550 * solib-target.c: Likewise.
551 * stap-probe.c: Likewise.
552 * target-descriptions.c: Likewise.
553 * target-memory.c: Likewise.
554 * target.h: Likewise.
555 * varobj.c: Likewise.
556 * varobj.h: Likewise.
557 * xml-support.h: Likewise.
558
559 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
560
561 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
562 Update for new std::vector based implementation.
563 (process_psymtab_comp_unit_reader): Likewise.
564 (scan_partial_symbols): Likewise.
565 (recursively_compute_inclusions): Likewise.
566 (compute_compunit_symtab_includes): Likewise.
567 (process_imported_unit_die): Likewise.
568 (queue_and_load_dwo_tu): Likewise.
569 (follow_die_sig_1): Likewise.
570 * gdb/dwarf2read.h: Remove DEF_VEC_P.
571 (typedef dwarf2_per_cu_ptr): Remove.
572 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
573 function.
574 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
575 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
576 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
577 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
578 std::vector.
579
580 2019-10-15 Tom Tromey <tromey@adacore.com>
581
582 * windows-nat.c (windows_nat_target::resume): Use %x when logging
583 TID.
584
585 2019-10-15 Tom Tromey <tromey@adacore.com>
586
587 * windows-nat.c (windows_nat_target::fetch_registers)
588 (windows_nat_target::store_registers): Rename "pid" to "tid".
589
590 2019-10-15 Tom Tromey <tromey@adacore.com>
591
592 * gdbarch.h, gdbarch.c: Rebuild.
593 * gdbarch.sh (gcc_target_options): Change return type to
594 std::string.
595 * compile/compile.c (get_args): Update.
596 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
597 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
598 std::string.
599 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
600 std::string.
601 * arch-utils.c (default_gcc_target_options): Return std::string.
602 * arch-utils.h (default_gcc_target_options): Return std::string.
603 * s390-tdep.c (s390_gcc_target_options): Return std::string.
604
605 2019-10-15 Christian Biesinger <cbiesinger@google.com>
606
607 * breakpoint.c (breakpoint_chain): Make static.
608 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
609 of accessing breakpoint_chain.
610
611 2019-10-15 Christian Biesinger <cbiesinger@google.com>
612
613 * breakpoint.c (iterate_over_breakpoints): Change function pointer
614 to a gdb::function_view and return value to bool.
615 * breakpoint.h (iterate_over_breakpoints): Likewise.
616 * dummy-frame.c (pop_dummy_frame_bpt): Update.
617 (pop_dummy_frame): Update.
618 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
619 (gdbscm_breakpoints): Update.
620 * python/py-breakpoint.c (build_bp_list): Update.
621 (gdbpy_breakpoints): Update.
622 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
623 Update.
624 (bpfinishpy_handle_stop): Update.
625 (bpfinishpy_handle_exit): Update.
626 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
627 (svr4_update_solib_event_breakpoints): Update.
628
629 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
630
631 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
632 when unwrapping single-field structs.
633
634 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
635
636 * dwarf2read.c: Remove includes.
637
638 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
639
640 * ui-out.c (ui_out::call_do_message): Silence
641 -Wformat-nonliteral warning.
642
643 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
644
645 * breakpoint.c: Remove some includes: continuations.h, skip.h,
646 mi/mi-main.h, readline/readline.h, readline/history.h. Add
647 include: readline/tilde.h.
648
649 2019-10-12 Christian Biesinger <cbiesinger@google.com>
650
651 * remote.c (remote_target::get_trace_status): Remove declaration of
652 trace_regblock_size.
653
654 2019-10-12 Christian Biesinger <cbiesinger@google.com>
655
656 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
657 (show_user): Remove declaration of cmdlist.
658 * cli/cli-cmds.h (max_user_call_depth): Declare.
659 * cli/cli-script.c (execute_user_command): Remove declaration
660 of max_user_call_depth.
661
662 2019-10-11 Jim Wilson <jimw@sifive.com>
663
664 * gdbsupport/print-utils.h (pulongest): Fix comment.
665 (plongest): Likewise.
666 (phex): Add missing comment, mention leading zeros.
667 (phex_nz): Add mention of no leading zeros to comment.
668
669 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
670 plongest instead of unsigned long long cast.
671
672 2019-10-10 Christian Biesinger <cbiesinger@google.com>
673
674 * main.c (captured_main_1): Include gdbtk.h and remove declarations
675 for external_editor_command and gdbtk_test.
676
677 2019-10-10 Christian Biesinger <cbiesinger@google.com>
678
679 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
680 * varobj.c (varobjdebug): Move comment to...
681 * varobj.h (varobjdebug): ...here, and declare.
682
683 2019-10-09 Tom Tromey <tom@tromey.com>
684
685 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
686 erase_data_content.
687
688 2019-10-09 Tom Tromey <tom@tromey.com>
689
690 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
691 * tui/tui-stack.c (tui_locator_window::rerender): Update.
692 * tui/tui-command.c (tui_cmd_window::resize)
693 (tui_refresh_cmd_win): Update.
694 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
695 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
696 * tui/tui-data.c (~tui_gen_win_info): Remove.
697 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
698 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
699 (tui_redisplay_readline, tui_mld_flush)
700 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
701 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
702 (tui_data_window::erase_data_content)
703 (tui_data_item_window::rerender)
704 (tui_data_item_window::refresh_window): Update.
705 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
706 (box_win, tui_gen_win_info::make_window)
707 (tui_gen_win_info::make_visible): Update.
708 (tui_delete_win): Remove.
709 * tui/tui-winsource.c
710 (tui_source_window_base::do_erase_source_content): Update.
711 (tui_show_source_line, tui_source_window_base::update_tab_width)
712 (tui_source_window_base::update_exec_info): Update.
713 * tui/tui-data.h (struct curses_deleter): New.
714 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
715 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
716
717 2019-10-09 Tom Tromey <tom@tromey.com>
718
719 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
720
721 2019-10-09 Tom Tromey <tom@tromey.com>
722
723 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
724 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
725
726 2019-10-09 Tom Tromey <tom@tromey.com>
727
728 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
729 window height directly.
730 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
731 declare.
732 * tui/tui-layout.c (tui_default_win_height): Remove.
733 (tui_default_win_viewport_height): Remove.
734
735 2019-10-09 Tom Tromey <tom@tromey.com>
736
737 * tui/tui.h: Remove comments.
738
739 2019-10-09 Tom de Vries <tdevries@suse.de>
740
741 * python/lib/gdb/printer/bound_registers.py: Use
742 '^builtin_type_bound128' as regexp argument for
743 add_builtin_pretty_printer.
744
745 2019-10-09 Christian Biesinger <cbiesinger@google.com>
746
747 * guile/guile.c (guile_extension_script_ops): Remove forward
748 declaration and mark as static.
749 (guile_script_ops): Likewise.
750 (extension_language_guile): Move further down in the file so
751 it can reference the definitions for guile_{extension_,}script_ops.
752
753 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
754
755 * s390-tdep.c (390_process_record): Handle new arch13 instructions
756 except SORTL, DFLTCC, and KDSA.
757
758 2019-10-08 Tom Tromey <tromey@adacore.com>
759
760 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
761 (struct safe_symbol_file_add_args): Remove.
762
763 2019-10-08 Tom Tromey <tromey@adacore.com>
764
765 * windows-nat.c: Don't include buildsym-legacy.h.
766
767 2019-10-08 Tom Tromey <tromey@adacore.com>
768
769 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
770
771 2019-10-08 Christian Biesinger <cbiesinger@google.com>
772
773 * gdbtypes.c (overload_debug): Move comment to header.
774 * gdbtypes.h (overload_debug): Declare.
775 * valops.c: Remove declaration of overload_debug, instead
776 include gdbtypes.h.
777
778 2019-10-08 Christian Biesinger <cbiesinger@google.com>
779
780 * language.c (show_language_command): Pass lang_frame_mismatch_warn
781 through _().
782 (lang_frame_mismatch_warn): Make const, mark with N_(), and
783 move comment...
784 * language.h (lang_frame_mismatch_warn): ... here. Also add
785 declaration.
786 * top.c (lang_frame_mismatch_warn): Remove declaration.
787 (check_frame_language_change): Pass lang_frame_mismatch_warn
788 through _().
789
790 2019-10-07 Christian Biesinger <cbiesinger@google.com>
791
792 * c-lang.h (vtbl_ptr_name): Declare.
793 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
794 it from the header.
795 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
796
797 2019-10-07 Christian Biesinger <cbiesinger@google.com>
798
799 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
800 gdb_static_assert.
801
802 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
803
804 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
805 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
806 * ctfread.c: New file.
807 * ctfread.h: New file.
808 * elfread.c: Include ctfread.h.
809 (struct elfinfo text_p): New member ctfsect.
810 (elf_locate_sections): Mark CTF section.
811 (elf_symfile_read): Call elfctf_build_psymtabs.
812 * Makefile.in (LIBCTF): Add.
813 (CLIBS): Use it.
814 (CDEPS): Likewise.
815 (DIST): Add ctfread.c.
816
817 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
818
819 * ctfread.c (struct nextfield): Renamed to ...
820 (struct ctf_nextfield): ... this.
821 (struct field_info): Renamed to ...
822 (strut ctf_field_info): ... this.
823 (attach_fields_to_type): Update for renamed structures.
824 (ctf_add_member_cb): Likewise.
825 (ctf_add_enum_member_cb): Likewise.
826 (process_struct_members): Likewise.
827 (process_enum_type): Likewise.
828
829 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
830
831 * tracectf.h: Rename, was ctf.h.
832 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
833 * tracefile.c: Likewise.
834 * tracepoint.c: Remove unused include ctf.h.
835 * mi/mi-main.c: Likewise.
836 * Makefile.in Replace ctf.c with tracectf.c.
837
838 2019-10-06 Joel Brobecker <brobecker@adacore.com>
839
840 * version.in: Change version number to "9.0.50.DATE-git".
841
842 2019-10-03 Tom Tromey <tom@tromey.com>
843
844 PR rust/24976:
845 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
846
847 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
850 cp_search_name_hash.
851 * NEWS: Add entry about nested function support.
852
853 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
854 Andrew Burgess <andrew.burgess@embecosm.com>
855
856 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
857 for nested static variables when searchin VAR_DOMAIN.
858 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
859 global scope, update comment.
860 (add_partial_subprogram): Call add_partial_subprogram recursively
861 for nested subroutines when processinng Fortran.
862 (load_partial_dies): Process the child entities of a subprogram
863 when processing Fortran.
864 (partial_die_parent_scope): Handle building scope
865 for Fortran nested functions.
866 (process_die): Record that nested functions have a scope.
867 (new_symbol): Always record Fortran subprograms on the global
868 symbol list.
869 (determine_prefix): How to build the prefix for Fortran
870 subprograms.
871
872 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
873
874 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
875 have just sent the thread a SIGSTOP and are waiting for it to
876 arrive.
877
878 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
879
880 * btrace.c (btrace_add_pc): Remove whitespace before the template
881 parameter in 'std::vector <...>'.
882 (parse_xml_btrace_block): Likewise.
883 (btrace_maint_decode_pt): Likewise.
884 (btrace_maint_update_packets): Likewise.
885 (btrace_maint_print_packets): Likewise.
886 * btrace.h (struct btrace_maint_info): Likewise.
887 * dwarf2read.c (struct type_unit_group): Likewise.
888 (build_type_psymtabs_reader): Likewise.
889 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
890 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
891 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
892
893 2019-10-03 Tom de Vries <tdevries@suse.de>
894
895 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
896 the first line of the help text for set/show style metadata.
897
898 2019-10-02 Tom Tromey <tromey@adacore.com>
899
900 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
901 * gdbsupport/common-inferior.c: New file.
902 * infcmd.c (startup_with_shell): Don't define.
903 * nat/fork-inferior.h (startup_with_shell): Don't declare.
904 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
905 * inferior.h (startup_with_shell): Don't declare.
906
907 2019-10-02 Christian Biesinger <cbiesinger@google.com>
908
909 * gdbsupport/gdb_assert.h: Include errors.h.
910 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
911
912 2019-10-02 Tom Tromey <tromey@adacore.com>
913
914 * NEWS: Add $_ada_exception entry.
915 * ada-lang.c (struct ada_catchpoint): Add constructor.
916 <m_kind>: New member.
917 (allocate_location_exception, re_set_exception): Remove
918 "ex" parameter.
919 (should_stop_exception): Compute $_ada_exception.
920 (check_status_exception, print_it_exception)
921 (print_one_exception, print_mention_exception): Remove
922 "ex" parameter.
923 (allocate_location_catch_exception, re_set_catch_exception)
924 (check_status_exception, print_it_catch_exception)
925 (print_one_catch_exception, print_mention_catch_exception)
926 (print_recreate_catch_exception)
927 (allocate_location_catch_exception_unhandled)
928 (re_set_catch_exception_unhandled)
929 (check_status_exception, print_it_catch_exception_unhandled)
930 (print_one_catch_exception_unhandled)
931 (print_mention_catch_exception_unhandled)
932 (print_recreate_catch_exception_unhandled)
933 (allocate_location_catch_assert, re_set_catch_assert)
934 (check_status_assert, print_it_catch_assert)
935 (print_one_catch_assert, print_mention_catch_assert)
936 (print_recreate_catch_assert)
937 (allocate_location_catch_handlers, re_set_catch_handlers)
938 (check_status_handlers, print_it_catch_handlers)
939 (print_one_catch_handlers, print_mention_catch_handlers)
940 (print_recreate_catch_handlers): Remove.
941 (create_ada_exception_catchpoint): Update.
942 (initialize_ada_catchpoint_ops): Update.
943
944 2019-10-02 Tom Tromey <tromey@adacore.com>
945
946 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
947 (create_excep_cond_exprs): Simplify exception string computation.
948 (ada_exception_catchpoint_cond_string): Likewise.
949
950 2019-10-02 Tom Tromey <tromey@adacore.com>
951
952 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
953 * ada-lang.c (lesseq_defined_than): Handle
954 LOC_STATIC.
955 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
956 parameter.
957 (dwarf2_has_info): Likewise.
958 (new_symbol): Set maybe_copied on symbol when
959 appropriate.
960 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
961 parameter.
962 <can_copy>: New member.
963 * elfread.c (record_minimal_symbol): Set maybe_copied
964 on symbol when appropriate.
965 (elf_symfile_read): Update call to dwarf2_has_info.
966 * minsyms.c (lookup_minimal_symbol_linkage): New
967 function.
968 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
969 * symtab.c (get_symbol_address, get_msymbol_address):
970 New functions.
971 * symtab.h (get_symbol_address, get_msymbol_address):
972 Declare.
973 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
974 maybe_copied.
975 (struct symbol, struct minimal_symbol) <maybe_copied>:
976 New member.
977
978 2019-10-02 Tom Tromey <tromey@adacore.com>
979
980 * source.c (struct current_source_location): New.
981 (current_source_key): New global.
982 (current_source_symtab, current_source_line)
983 (current_source_pspace): Remove.
984 (get_source_location): New function.
985 (get_current_source_symtab_and_line)
986 (set_default_source_symtab_and_line)
987 (set_current_source_symtab_and_line)
988 (clear_current_source_symtab_and_line, select_source_symtab)
989 (info_source_command, print_source_lines_base)
990 (info_line_command, search_command_helper, _initialize_source):
991 Update.
992
993 2019-10-02 Tom Tromey <tromey@adacore.com>
994
995 * source.c (select_source_symtab): Don't call
996 decode_line_with_current_source.
997
998 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
999
1000 * symtab.c (lookup_global_symbol): Search global block.
1001
1002 2019-10-02 Tom Tromey <tromey@adacore.com>
1003
1004 * coffread.c (process_coff_symbol): Update.
1005 * dwarf2read.c (var_decode_location, new_symbol): Update.
1006 * mdebugread.c (parse_symbol): Update.
1007 * objfiles.c (relocate_one_symbol): Update.
1008 * stabsread.c (define_symbol, fix_common_block)
1009 (scan_file_globals): Update.
1010 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1011 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1012 * xcoffread.c (process_xcoff_symbol): Update.
1013
1014 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1015
1016 * MAINTAINERS: Update my email address.
1017
1018 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1019
1020 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1021 std::vector.
1022 (build_type_psymtabs_reader): Update for std::vector.
1023 (build_type_psymtab_dependencies): Likewise.
1024 * dwarf2read.h: Remove use of DEF_VEC_P.
1025 (typedef sig_type_ptr): Delete.
1026
1027 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1030 to std::vector.
1031 (btrace_maint_decode_pt): Likewise, and move allocation of the
1032 vector outside of the loop.
1033 (btrace_maint_update_packets): Update to handle change from VEC to
1034 std::vector.
1035 (btrace_maint_print_packets): Likewise.
1036 (maint_info_btrace_cmd): Likewise.
1037 * btrace.h: Remove use of DEF_VEC_O.
1038 (typedef btrace_pt_packet_s): Delete.
1039 (struct btrace_maint_info) <packets>: Change fromm VEC to
1040 std::vector.
1041 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1042
1043 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1044
1045 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1046 make accesses into the vector constant references.
1047 (btrace_add_pc): Update for std::vector.
1048 (btrace_stitch_bts): Likewise.
1049 (parse_xml_btrace_block): Likewise.
1050 (btrace_maint_update_packets): Likewise.
1051 (btrace_maint_print_packets): Likewise.
1052 (maint_info_btrace_cmd): Likewise.
1053 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1054 std::vector.
1055 (btrace_data::empty): Likewise.
1056 (btrace_data_append): Likewise.
1057 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1058 (typedef btrace_block_s): Delete.
1059 (struct btrace_block): Add constructor.
1060 (struct btrace_data_bts) <blocks>: Change to std::vector.
1061 * nat/linux-btrace.c (perf_event_read_bts): Update for
1062 std::vector.
1063 (linux_read_bts): Likewise.
1064
1065 2019-10-01 Tom Tromey <tom@tromey.com>
1066
1067 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1068
1069 2019-10-01 Tom Tromey <tom@tromey.com>
1070
1071 * stack.c (print_frame, info_frame_command_core): Use
1072 styled_string.
1073 * linux-thread-db.c (try_thread_db_load_1)
1074 (try_thread_db_load_from_pdir_1): Use styled_string.
1075 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1076 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1077 (maybe_print_unsupported_script_warning)
1078 (maybe_print_script_not_found_warning): Use styled_string.
1079 * ada-lang.c (user_select_syms): Use styled_string.
1080
1081 2019-10-01 Tom Tromey <tom@tromey.com>
1082
1083 * p-lang.c (pascal_printstr): Use metadata style.
1084 * value.c (show_convenience): Use metadata style.
1085 * valprint.c (valprint_check_validity, val_print_optimized_out)
1086 (val_print_not_saved, val_print_unavailable)
1087 (val_print_invalid_address, generic_val_print, val_print)
1088 (value_check_printable, val_print_array_elements): Use metadata
1089 style.
1090 * ui-out.h (class ui_out) <field_fmt>: New overload.
1091 <do_field_fmt>: Add style parameter.
1092 * ui-out.c (ui_out::field_fmt): New overload.
1093 * typeprint.c (type_print_unknown_return_type)
1094 (val_print_not_allocated, val_print_not_associated): Use metadata
1095 style.
1096 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1097 parameter.
1098 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1099 * tracepoint.c (tvariables_info_1): Use metadata style.
1100 * stack.c (print_frame_arg, print_frame_info, print_frame)
1101 (info_frame_command_core): Use metadata style.
1102 * skip.c (info_skip_command): Use metadata style.
1103 * rust-lang.c (rust_print_enum): Use metadata style.
1104 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1105 metadata style.
1106 * python/py-framefilter.c (py_print_single_arg): Use metadata
1107 style.
1108 * printcmd.c (do_one_display, print_variable_and_value): Use
1109 metadata style.
1110 * p-valprint.c (pascal_val_print)
1111 (pascal_object_print_value_fields): Use metadata style.
1112 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1113 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1114 parameter.
1115 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1116 * m2-valprint.c (m2_print_long_set): Use metadata style.
1117 * m2-typeprint.c (m2_print_type): Use metadata style.
1118 * infcmd.c (print_return_value_1): Use metadata style.
1119 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1120 * f-valprint.c (info_common_command_for_block): Use metadata
1121 style.
1122 * f-typeprint.c (f_type_print_base): Use metadata style.
1123 * expprint.c (print_subexp_standard): Use metadata style.
1124 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1125 * cli/cli-style.h (class cli_style_option): Add constructor.
1126 (metadata_style): Declare.
1127 * cli/cli-style.c (metadata_style): New global.
1128 (_initialize_cli_style): Register metadata style.
1129 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1130 parameter.
1131 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1132 * c-typeprint.c (c_type_print_base_struct_union)
1133 (c_type_print_base_1): Use metadata style.
1134 * breakpoint.c (watchpoint_value_print)
1135 (print_one_breakpoint_location): Use metadata style.
1136 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1137 style.
1138 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1139 style.
1140 * ada-valprint.c (val_print_packed_array_elements, printstr)
1141 (print_field_values, ada_val_print_ref, ada_val_print): Use
1142 metadata style.
1143 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1144 style.
1145 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1146 style.
1147 * ada-lang.c (user_select_syms): Use metadata style.
1148
1149 2019-10-01 Tom Tromey <tom@tromey.com>
1150
1151 * cli/cli-cmds.c (pwd_command): Style output.
1152
1153 2019-10-01 Pedro Alves <palves@redhat.com>
1154 Tom Tromey <tom@tromey.com>
1155
1156 * symtab.c (print_symbol_info): Use %ps.
1157 (print_msymbol_info): Use %ps.
1158 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1159 * printcmd.c (print_variable_and_value): Use %ps.
1160 * macrocmd.c (show_pp_source_pos): Use %ps.
1161 * infrun.c (print_exited_reason): Use ui_out::message.
1162 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1163 (describe_other_breakpoints): Use ui_out::message and new
1164 formats.
1165 (say_where): Use new formats.
1166 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1167 and new formats.
1168
1169 2019-10-01 Pedro Alves <palves@redhat.com>
1170 Tom Tromey <tom@tromey.com>
1171
1172 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1173 (test_gdb_formats): New function.
1174 (run_tests): Call it.
1175 (test_format_specifier): Update.
1176 * utils.h (fputs_filtered): Update comment.
1177 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1178 (fputs_styled_unfiltered): Declare.
1179 * utils.c (fputs_styled_unfiltered): New function.
1180 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1181 (vfprintf_filtered): Update.
1182 (vfprintf_unfiltered, vprintf_filtered): Update.
1183 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1184 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1185 disallow_ui_out_field>: New constants.
1186 (enum class field_kind): New.
1187 (struct base_field_s, struct signed_field_s): New.
1188 (signed_field): New function.
1189 (struct string_field_s): New.
1190 (string_field): New function.
1191 (struct styled_string_s): New.
1192 (styled_string): New function.
1193 (class ui_out) <message>: Add comment.
1194 <vmessage, call_do_message>: New methods.
1195 <do_message>: Add style parameter.
1196 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1197 methods.
1198 (ui_out::message): Rewrite.
1199 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1200 parameter.
1201 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1202 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1203 gdb_extensions parameter.
1204 (class format_piece): Add parameter to constructor.
1205 (n_int_args): New field.
1206 * gdbsupport/format.c (format_pieces::format_pieces): Add
1207 gdb_extensions parameter. Handle '*'.
1208 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1209 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1210 vfprintf_styled_no_gdbfmt.
1211 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1212 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1213 unfiltered output.
1214 * ui-style.h (struct ui_file_style) <ptr>: New method.
1215
1216 2019-10-01 Tom Tromey <tom@tromey.com>
1217
1218 * unittests/format_pieces-selftests.c: Update. Add final format.
1219 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1220 empty literal pieces.
1221
1222 2019-10-01 Tom Tromey <tom@tromey.com>
1223
1224 * ui-out.h (enum class ui_out_style_kind): Remove.
1225 (class ui_out) <field_string, field_stsream, do_field_string>:
1226 Change type of "style".
1227 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1228 (ui_out::field_string): Update.
1229 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1230 of "style".
1231 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1232 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1233 * stack.c (print_frame_arg, print_frame_info, print_frame):
1234 Update.
1235 * source.c (print_source_lines_base): Update.
1236 * solib.c (info_sharedlibrary_command): Update.
1237 * skip.c (info_skip_command): Update.
1238 * record-btrace.c (btrace_call_history_src_line)
1239 (btrace_call_history): Update.
1240 * python/py-framefilter.c (py_print_frame): Update.
1241 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1242 "style".
1243 * mi/mi-out.c (mi_ui_out::do_table_header)
1244 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1245 (mi_ui_out::do_field_string): Update.
1246 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1247 Update.
1248 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1249 "style".
1250 * cli-out.c (cli_ui_out::do_table_header)
1251 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1252 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1253 (cli_ui_out::do_field_fmt): Update.
1254 * breakpoint.c (print_breakpoint_location): Update.
1255 (update_static_tracepoint): Update.
1256
1257 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1258
1259 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1260 conversion of gdb_datadir.
1261 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1262 remove not needed c_str ().
1263
1264 2019-09-30 Ali Tamur <tamur@google.com>
1265
1266 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1267 (dwarf2_string_attr): Likewise.
1268
1269 2019-09-30 Ali Tamur <tamur@google.com>
1270
1271 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1272 (process_full_type_unit): Likewise.
1273 (dump_die_shallow): Likewise.
1274 (cu_debug_loc_section): Likewise.
1275
1276 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1277
1278 * minsyms.c (compare_minimal_symbols): Rename to...
1279 (minimal_symbol_is_less_than): ...this, and adjust to STL
1280 conventions (return bool, take arguments as references)
1281 (minimal_symbol_reader::install): Call std::sort instead
1282 of qsort.
1283
1284 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1285
1286 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1287 hash and why.
1288 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1289 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1290
1291 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1292
1293 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1294 * psympriv.h (add_psymbol_to_list): Move comment here and update
1295 it.
1296
1297 2019-09-29 Tom de Vries <tdevries@suse.de>
1298
1299 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1300 Use $tmpdir/$(basename "$output_file").dwz instead of
1301 "${output_file}.dwz".
1302
1303 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1304
1305 PR gdb/25045
1306 * hppa-linux-nat.c: Include gdbarch.h.
1307
1308 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1309
1310 * blockframe.c (find_pc_partial_function): Change return type to bool.
1311 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1312 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1313 (stub_gnu_ifunc_resolve_name): Likewise.
1314 * symtab.c (compare_filenames_for_search): Likewise.
1315 (compare_glob_filenames_for_search): Likewise.
1316 (matching_obj_sections): Likewise.
1317 (symbol_matches_domain): Likewise.
1318 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1319 (find_line_pc): Change return type to bool.
1320 (find_line_pc_range): Likewise.
1321 (producer_is_realview): Likewise.
1322 * symtab.h (symbol_matches_domain): Likewise.
1323 (find_pc_partial_function): Likewise.
1324 (find_pc_line_pc_range): Likewise.
1325 (in_gnu_ifunc_stub): Likewise.
1326 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1327 (find_line_pc): Likewise.
1328 (find_line_pc_range): Likewise.
1329 (matching_obj_sections): Likewise.
1330 (find_line_symtab): Change out parameter to bool.
1331 (producer_is_realview): Change return type to bool.
1332 (compare_filenames_for_search): Likewise.
1333 (compare_glob_filenames_for_search): Likewise.
1334
1335 2019-09-26 Tom Tromey <tom@tromey.com>
1336
1337 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1338 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1339 * gdb_usleep.h: Remove.
1340 * gdb_usleep.c: Remove.
1341 * utils.c: Don't include gdb_usleep.h.
1342
1343 2019-09-26 Tom Tromey <tromey@adacore.com>
1344
1345 * python/py-type.c (type_to_type_object): Call check_typedef
1346 for stub types.
1347
1348 2019-09-26 Tom Tromey <tom@tromey.com>
1349
1350 * utils.h (initialize_utils): Don't declare.
1351 * top.c (gdb_init): Don't call initialize_utils.
1352 * utils.c (initialize_utils): Remove. Move contents...
1353 (_initialize_utils): ... here.
1354
1355 2019-09-25 Tom Tromey <tom@tromey.com>
1356
1357 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1358 * utils.h (make_hex_string): Don't declare.
1359 * utils.c (make_hex_string): Remove.
1360
1361 2019-09-24 Tom de Vries <tdevries@suse.de>
1362
1363 PR gdb/23815
1364 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1365 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1366
1367 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1368
1369 * NEWS: Mention new simulator port for PRU.
1370
1371 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1372
1373 * ada-exp.y (write_object_remaining): Update.
1374 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1375 and eliminate the static buffer.
1376 (ada_decode_symbol): Update.
1377 (ada_la_decode): Update.
1378 (ada_sniff_from_mangled_name): Update.
1379 (is_valid_name_for_wild_match): Update.
1380 (ada_lookup_name_info::matches): Update and simplify.
1381 (name_matches_regex): Update.
1382 (ada_add_global_exceptions): Update.
1383 * ada-lang.h (ada_decode): Update signature.
1384 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1385 * dwarf-index-write.c (debug_names::insert): Update.
1386
1387 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1388
1389 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1390 formatting.
1391
1392 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1393
1394 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1395 Change "nonzero" to "true" in documentation.
1396
1397 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1398
1399 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1400 (_initialize_darwin_solib): Don't set
1401 darwin_so_ops.lookup_lib_global_symbol.
1402 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1403 set_gdbarch_iterate_over_objfiles_in_search_order.
1404 (elf_lookup_lib_symbol): Rename to...
1405 (svr4_iterate_over_objfiles_in_search_order): this, and update
1406 to iterate semantics.
1407 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1408 * solib.c (solib_global_lookup): Remove.
1409 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1410 (solib_global_lookup): Remove.
1411 * symtab.c (lookup_global_or_static_symbol): Remove call to
1412 solib_global_lookup.
1413
1414 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1415
1416 * NEWS: Move entries about default MI version now being
1417 version 3, and about the GDB/MI fix for multi-location
1418 breakpoints to the "since GDB 8.3" section.
1419
1420 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1421
1422 GDB 8.3.1 released.
1423
1424 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1425
1426 * NEWS: Mention that Cell/B.E. debugging support was removed.
1427 * MAINTAINERS: Remove spu target.
1428
1429 * config/djgpp/fnchange.lst: Remove entries for removed files.
1430
1431 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1432 spu-multiarch.o, and spu-tdep.o.
1433 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1434 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1435 spu-multiarch.c, and spu-tdep.c.
1436 * spu-linux-nat.c: Remove file.
1437 * spu-multiarch.c: Remove file.
1438 * spu-tdep.c: Remove file.
1439 * spu-tdep.h: Remove file.
1440 * solib-spu.c: Remove file.
1441 * solib-spu.h: Remove file.
1442
1443 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1444 * configure.nat (spu-linux): Remove.
1445 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1446 solib-multiarch.o from gdb_target_obs.
1447 (spu*-*-*): Remove.
1448
1449 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1450 feature flag.
1451 (ppc_linux_no_features): Update.
1452 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1453 Cell/B.E. support.
1454 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1455 (tdesc_powerpc_cell64l): Likewise.
1456 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1457 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1458 Cell/B.E. support.
1459 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1460 Do not include "features/rs6000/powerpc-cell32l.c" or
1461 "features/rs6000/powerpc-cell64l.c".
1462 (ppc_linux_spu_section): Remove.
1463 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1464 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1465 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1466 (ppc_linux_spe_context_lookup): Remove.
1467 (ppc_linux_spe_context_inferior_created): Remove.
1468 (ppc_linux_spe_context_solib_loaded): Remove.
1469 (ppc_linux_spe_context_solib_unloaded): Remove.
1470 (ppc_linux_spe_context): Remove.
1471 (struct ppu2spu_cache): Remove.
1472 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1473 (struct ppu2spu_data): Remove.
1474 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1475 ppu2spu_unwind): Remove.
1476 (ppc_linux_init_abi): Remove Cell/B.E. support.
1477 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1478
1479 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1480 (rs6000/powerpc-cell64l-expedite): Likewise
1481 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1482 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1483 rs6000/powerpc-cell64l.xml.
1484 * features/rs6000/powerpc-cell32l.xml: Remove.
1485 * features/rs6000/powerpc-cell64l.xml: Likewise.
1486 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1487 * features/rs6000/powerpc-cell64l.c: Likewise.
1488 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1489 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1490 * regformats/reg-spu.dat: Remove.
1491
1492 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1493 * corelow.c (struct spuid_list): Remove.
1494 (add_to_spuid_list): Remove.
1495 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1496 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1497 (remote_protocol_features): Remove associated entries.
1498 (_initialize_remote): No longer initialize them.
1499 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1500 * linux-nat.c (SPUFS_MAGIC): Remove.
1501 (linux_proc_xfer_spu): Remove.
1502 (spu_enumerate_spu_ids): Remove.
1503 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1504 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1505 (linux_make_corefile_notes): No longer call it.
1506
1507 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1508 (cooked_write_test): Likewise.
1509
1510 2019-09-20 Tom Tromey <tom@tromey.com>
1511
1512 * NEWS: Mention case-sensitivity of TUI commands.
1513 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1514 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1515 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1516
1517 2019-09-20 Tom Tromey <tom@tromey.com>
1518
1519 * tui/tui-source.c (tui_source_window::set_contents): Use
1520 make_unique_xstrdup.
1521 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1522 make_unique_xstrdup.
1523
1524 2019-09-20 Tom Tromey <tom@tromey.com>
1525
1526 * tui/tui-data.c: Remove separator comments.
1527 * tui/tui-layout.c: Remove separator comments.
1528 * tui/tui-win.c: Remove separator comments.
1529 * tui/tui-wingeneral.c: Remove separator comments.
1530
1531 2019-09-20 Tom Tromey <tom@tromey.com>
1532
1533 * tui/tui.h (strcat_to_buf): Don't declare.
1534 * tui/tui.c (strcat_to_buf): Remove.
1535
1536 2019-09-20 Tom Tromey <tom@tromey.com>
1537
1538 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1539 from "fullname".
1540 * tui/tui-source.c (tui_source_window::set_contents)
1541 (tui_source_window::location_matches_p)
1542 (tui_source_window::maybe_update): Update.
1543
1544 2019-09-20 Tom Tromey <tom@tromey.com>
1545
1546 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1547 Update.
1548 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1549 prefix.
1550 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1551 (tui_data_window::line_from_reg_element_no)
1552 (tui_data_window::first_reg_element_no_inline)
1553 (tui_data_window::show_registers)
1554 (tui_data_window::show_register_group)
1555 (tui_data_window::display_registers_from)
1556 (tui_data_window::display_registers_from_line)
1557 (tui_data_window::first_data_item_displayed)
1558 (tui_data_window::delete_data_content_windows)
1559 (tui_data_window::erase_data_content)
1560 (tui_data_window::do_scroll_vertical)
1561 (tui_data_window::refresh_window)
1562 (tui_data_window::check_register_values): Update.
1563
1564 2019-09-20 Tom Tromey <tom@tromey.com>
1565
1566 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1567 (struct tui_locator_window) <full_name, proc_name>: Now
1568 std::string.
1569 * tui/tui-stack.c (tui_locator_window::make_status_line)
1570 (tui_locator_window::set_locator_fullname)
1571 (tui_locator_window::set_locator_info): Update.
1572 * tui/tui-source.c (tui_source_window::set_contents)
1573 (tui_source_window::showing_source_p): Update.
1574
1575 2019-09-20 Tom Tromey <tom@tromey.com>
1576
1577 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1578 Don't call tui_locator_win_info_ptr.
1579
1580 2019-09-20 Tom Tromey <tom@tromey.com>
1581
1582 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1583
1584 2019-09-20 Tom Tromey <tom@tromey.com>
1585
1586 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1587 height for locator.
1588 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1589 * tui/tui-layout.c (show_source_disasm_command, show_data)
1590 (show_source_or_disasm_and_command): Use 1 as height for locator.
1591
1592 2019-09-20 Tom Tromey <tom@tromey.com>
1593
1594 * tui/tui.c (tui_enable): Update.
1595 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1596 Update.
1597 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1598 Update.
1599 * tui/tui-data.c (win_resized): Now bool.
1600 (tui_win_resized): Return bool.
1601 (tui_set_win_resized_to): Accept a bool.
1602
1603 2019-09-20 Tom Tromey <tom@tromey.com>
1604
1605 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1606 Change type of "refresh_values_only".
1607 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1608 type of "refresh_values_only".
1609
1610 2019-09-20 Tom Tromey <tom@tromey.com>
1611
1612 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1613 std::string.
1614 (tui_disassemble): Add "pos" parameter.
1615 (tui_disasm_window::set_contents): Simplify.
1616
1617 2019-09-20 Tom Tromey <tom@tromey.com>
1618
1619 * tui/tui-winsource.h (struct tui_source_window_base)
1620 <show_source_content>: Now private.
1621 * tui/tui-winsource.c
1622 (tui_source_window_base::show_source_content): Don't handle empty
1623 content case.
1624
1625 2019-09-20 Tom Tromey <tom@tromey.com>
1626
1627 * tui/tui-layout.c (show_source_disasm_command)
1628 (show_source_or_disasm_and_command): Don't call
1629 show_source_content.
1630
1631 2019-09-20 Tom Tromey <tom@tromey.com>
1632
1633 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1634 Declare.
1635 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1636 from tui_make_status_line.
1637 (tui_locator_window::rerender): Update.
1638
1639 2019-09-20 Tom Tromey <tom@tromey.com>
1640
1641 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1642 (tui_locator_window::rerender): Update.
1643
1644 2019-09-20 Tom Tromey <tom@tromey.com>
1645
1646 * tui/tui-winsource.h (struct tui_source_window_base)
1647 <~tui_source_window_base>: Don't declare.
1648 <fullname>: Remove.
1649 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1650 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1651 member.
1652 * tui/tui-source.c (tui_source_window::set_contents): Update.
1653 (tui_source_window::location_matches_p)
1654 (tui_source_window::maybe_update): Update.
1655
1656 2019-09-20 Tom Tromey <tom@tromey.com>
1657
1658 * tui/tui-winsource.h (~tui_source_element): Remove.
1659 (tui_source_element): Update.
1660 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1661 * tui/tui-winsource.c (tui_show_source_line): Update.
1662 * tui/tui-source.c (tui_source_window::set_contents): Update.
1663 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1664
1665 2019-09-20 Tom Tromey <tom@tromey.com>
1666
1667 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1668 declare.
1669 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1670 tui_clear_source_windows_detail.
1671 * tui/tui-winsource.h (struct tui_source_window_base)
1672 <clear_detail>: Don't declare.
1673 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1674 Remove.
1675 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1676
1677 2019-09-20 Tom Tromey <tromey@adacore.com>
1678
1679 PR ada/24919:
1680 * block.c (contained_in): Fix final return value.
1681
1682 2019-09-20 Alan Modra <amodra@gmail.com>
1683
1684 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1685 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1686 (read_indirect_string_from_dwz): Use bfd accessor.
1687 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1688 * machoread.c (macho_symfile_read_all_oso): Likewise.
1689 * solib.c (solib_bfd_open): Likewise.
1690
1691 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1692
1693 * eval.c: Move declaration of overload_resolution to...
1694 * value.h: ...here.
1695
1696 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1697
1698 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1699 * arm-linux-tdep.c: Likewise.
1700 * arm-nbsd-nat.c: Likewise.
1701 * arm-tdep.h: Declare arm_apcs_32.
1702 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1703
1704 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1705
1706 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1707 * dwarf2read.h: Declare dwarf_always_disassemble.
1708
1709 2019-09-19 Tom de Vries <tdevries@suse.de>
1710
1711 PR gdb/25009
1712 * source-cache.c (source_cache::ensure): Catch exception thrown during
1713 construction of the highlighter.
1714
1715 2019-09-18 Alan Modra <amodra@gmail.com>
1716
1717 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1718 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1719 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1720 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1721 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1722 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1723 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1724 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1725 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1726 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1727 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1728 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1729 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1730 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1731 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1732 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1733 * mi/mi-interp.c: Update throughout for bfd section macro and
1734 function changes.
1735 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1736 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1737
1738 2019-09-18 Tom Tromey <tom@tromey.com>
1739
1740 * NEWS: Add entry.
1741 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1742 call rl_initialize.
1743 (tui_enable): Do not call rl_initialize.
1744
1745 2019-09-18 Christian Groessler <chris@groessler.org>
1746
1747 * alpha-linux-nat.c: Include gdbarch.h.
1748
1749 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1750
1751 * ui-file.c: Include cli/cli-style.h.
1752 (term_cli_styling): Remove cli_styling declaration.
1753
1754 2019-09-18 Alan Modra <amodra@gmail.com>
1755
1756 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1757 to bfd_asymbol_section.
1758
1759 2019-09-18 Alan Modra <amodra@gmail.com>
1760
1761 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1762 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1763 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1764
1765 2019-09-18 Alan Modra <amodra@gmail.com>
1766
1767 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1768 * spu-linux-nat.c (spu_bfd_open): Likewise.
1769
1770 2019-09-18 Christian Biesinger <cbiesinger@google.com>
1771
1772 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1773 to bool to match definition in dwarf2read.c.
1774
1775 2019-09-17 Christian Biesinger <cbiesinger@google.com>
1776
1777 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1778 (print_signatures): Likewise.
1779 (trust_pad_over_xvs): Likewise.
1780 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1781 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1782 * arm-linux-nat.c (arm_apcs_32): Likewise.
1783 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1784 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1785 * arm-tdep.c (arm_debug): Likewise.
1786 (arm_apcs_32): Likewise.
1787 * auto-load.c (debug_auto_load): Likewise.
1788 (auto_load_gdb_scripts): Likewise.
1789 (global_auto_load): Likewise.
1790 (auto_load_local_gdbinit): Likewise.
1791 (auto_load_local_gdbinit_loaded): Likewise.
1792 * auto-load.h (global_auto_load): Likewise.
1793 (auto_load_local_gdbinit): Likewise.
1794 (auto_load_local_gdbinit_loaded): Likewise.
1795 * breakpoint.c (disconnected_dprintf): Likewise.
1796 (breakpoint_proceeded): Likewise.
1797 (automatic_hardware_breakpoints): Likewise.
1798 (always_inserted_mode): Likewise.
1799 (target_exact_watchpoints): Likewise.
1800 (_initialize_breakpoint): Update.
1801 * breakpoint.h (target_exact_watchpoints): Change to bool.
1802 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1803 * cli/cli-cmds.c (trace_commands): Likewise.
1804 * cli/cli-cmds.h (trace_commands): Likewise.
1805 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1806 to bool*.
1807 * cli/cli-logging.c (logging_overwrite): Change to bool.
1808 (logging_redirect): Likewise.
1809 (debug_redirect): Likewise.
1810 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1811 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1812 to bool.
1813 <boolean_option_def>: Update.
1814 (struct flag_option_def): Change default type of Context to bool
1815 from int.
1816 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1817 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1818 (get_setshow_command_value_string): Likewise.
1819 * cli/cli-style.c (cli_styling): Change to bool.
1820 (source_styling): Likewise.
1821 * cli/cli-style.h (source_styling): Likewise.
1822 (cli_styling): Likewise.
1823 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1824 to bool.
1825 * command.h (var_types): Update comment.
1826 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1827 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1828 bool.
1829 (debug_compile_cplus_scopes): Likewise.
1830 * compile/compile-internal.h (compile_debug): Likewise.
1831 * compile/compile.c (compile_debug): Likewise.
1832 (struct compile_options) <raw>: Likewise.
1833 * cp-support.c (catch_demangler_crashes): Likewise.
1834 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1835 (usr_cmd_cris_dwarf2_cfi): Likewise.
1836 * csky-tdep.c (csky_debug): Likewise.
1837 * darwin-nat.c (enable_mach_exceptions): Likewise.
1838 * dcache.c (dcache_enabled_p): Likewise.
1839 * defs.h (info_verbose): Likewise.
1840 * demangle.c (demangle): Likewise.
1841 (asm_demangle): Likewise.
1842 * dwarf-index-cache.c (debug_index_cache): Likewise.
1843 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1844 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1845 * dwarf2read.c (check_physname): Likewise.
1846 (use_deprecated_index_sections): Likewise.
1847 (dwarf_always_disassemble): Likewise.
1848 * eval.c (overload_resolution): Likewise.
1849 * event-top.c (set_editing_cmd_var): Likewise.
1850 (exec_done_display_p): Likewise.
1851 * event-top.h (set_editing_cmd_var): Likewise.
1852 (exec_done_display_p): Likewise.
1853 * exec.c (write_files): Likewise.
1854 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1855 (debug_fbsd_nat): Likewise.
1856 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1857 Likewise.
1858 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1859 <backtrace_past_entry> Likewise.
1860 * gdb-demangle.h (demangle): Likewise.
1861 (asm_demangle): Likewise.
1862 * gdb_bfd.c (bfd_sharing): Likewise.
1863 * gdbcore.h (write_files): Likewise.
1864 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1865 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1866 * gdbthread.h (print_thread_events): Likewise.
1867 * gdbtypes.c (opaque_type_resolution): Likewise.
1868 (strict_type_checking): Likewise.
1869 * gnu-nat.c (gnu_debug_flag): Likewise.
1870 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1871 * guile/scm-param.c (pascm_variable): Add boolval.
1872 (add_setshow_generic): Update.
1873 (pascm_param_value): Update.
1874 (pascm_set_param_value_x): Update.
1875 * hppa-tdep.c (hppa_debug): Change to bool..
1876 * infcall.c (may_call_functions_p): Likewise.
1877 (coerce_float_to_double_p): Likewise.
1878 (unwind_on_signal_p): Likewise.
1879 (unwind_on_terminating_exception_p): Likewise.
1880 * infcmd.c (startup_with_shell): Likewise.
1881 * inferior.c (print_inferior_events): Likewise.
1882 * inferior.h (startup_with_shell): Likewise.
1883 (print_inferior_events): Likewise.
1884 * infrun.c (step_stop_if_no_debug): Likewise.
1885 (detach_fork): Likewise.
1886 (debug_displaced): Likewise.
1887 (disable_randomization): Likewise.
1888 (non_stop): Likewise.
1889 (non_stop_1): Likewise.
1890 (observer_mode): Likewise.
1891 (observer_mode_1): Likewise.
1892 (set_observer_mode): Update.
1893 (sched_multi): Change to bool.
1894 * infrun.h (debug_displaced): Likewise.
1895 (sched_multi): Likewise.
1896 (step_stop_if_no_debug): Likewise.
1897 (non_stop): Likewise.
1898 (disable_randomization): Likewise.
1899 * linux-tdep.c (use_coredump_filter): Likewise.
1900 (dump_excluded_mappings): Likewise.
1901 * linux-thread-db.c (auto_load_thread_db): Likewise.
1902 (check_thread_db_on_load): Likewise.
1903 * main.c (captured_main_1): Update.
1904 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1905 xx2_opt, boolean_opt>: Change to bool.
1906 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1907 * maint.c (maintenance_profile_p): Likewise.
1908 (per_command_time): Likewise.
1909 (per_command_space): Likewise.
1910 (per_command_symtab): Likewise.
1911 * memattr.c (inaccessible_by_default): Likewise.
1912 * mi/mi-main.c (mi_async): Likewise.
1913 (mi_async_1): Likewise.
1914 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1915 * nat/fork-inferior.h (startup_with_shell): Likewise.
1916 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1917 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1918 * nios2-tdep.c (nios2_debug): Likewise.
1919 * or1k-tdep.c (or1k_debug): Likewise.
1920 * parse.c (parser_debug): Likewise.
1921 * parser-defs.h (parser_debug): Likewise.
1922 * printcmd.c (print_symbol_filename): Likewise.
1923 * proc-api.c (procfs_trace): Likewise.
1924 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1925 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1926 (set_parameter_value): Update.
1927 (add_setshow_generic): Update.
1928 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1929 to bool*.
1930 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1931 int*.
1932 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1933 * record-btrace.c (record_btrace_target::store_registers): Update.
1934 * record-full.c (record_full_memory_query): Change to bool.
1935 (record_full_stop_at_limit): Likewise.
1936 * record-full.h (record_full_memory_query): Likewise.
1937 * remote-notif.c (notif_debug): Likewise.
1938 * remote-notif.h (notif_debug): Likewise.
1939 * remote.c (use_range_stepping): Likewise.
1940 (interrupt_on_connect): Likewise.
1941 (remote_break): Likewise.
1942 * ser-tcp.c (tcp_auto_retry): Likewise.
1943 * ser-unix.c (serial_hwflow): Likewise.
1944 * skip.c (debug_skip): Likewise.
1945 * solib-aix.c (solib_aix_debug): Likewise.
1946 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1947 (spu_auto_flush_cache_p): Likewise.
1948 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1949 Likewise.
1950 (struct info_print_options) <quiet>: Likewise.
1951 * symfile-debug.c (debug_symfile): Likewise.
1952 * symfile.c (auto_solib_add): Likewise.
1953 (separate_debug_file_debug): Likewise.
1954 * symfile.h (auto_solib_add): Likewise.
1955 (separate_debug_file_debug): Likewise.
1956 * symtab.c (basenames_may_differ): Likewise.
1957 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1958 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1959 (struct info_types_options) <quiet>: Likewise.
1960 * symtab.h (demangle): Likewise.
1961 (basenames_may_differ): Likewise.
1962 * target-dcache.c (stack_cache_enabled_1): Likewise.
1963 (code_cache_enabled_1): Likewise.
1964 * target.c (trust_readonly): Likewise.
1965 (may_write_registers): Likewise.
1966 (may_write_memory): Likewise.
1967 (may_insert_breakpoints): Likewise.
1968 (may_insert_tracepoints): Likewise.
1969 (may_insert_fast_tracepoints): Likewise.
1970 (may_stop): Likewise.
1971 (auto_connect_native_target): Likewise.
1972 (target_stop_and_wait): Update.
1973 (target_async_permitted): Change to bool.
1974 (target_async_permitted_1): Likewise.
1975 (may_write_registers_1): Likewise.
1976 (may_write_memory_1): Likewise.
1977 (may_insert_breakpoints_1): Likewise.
1978 (may_insert_tracepoints_1): Likewise.
1979 (may_insert_fast_tracepoints_1): Likewise.
1980 (may_stop_1): Likewise.
1981 * target.h (target_async_permitted): Likewise.
1982 (may_write_registers): Likewise.
1983 (may_write_memory): Likewise.
1984 (may_insert_breakpoints): Likewise.
1985 (may_insert_tracepoints): Likewise.
1986 (may_insert_fast_tracepoints): Likewise.
1987 (may_stop): Likewise.
1988 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1989 (make_thread_apply_all_options_def_group): Change argument from int*
1990 to bool*.
1991 (thread_apply_all_command): Update.
1992 (print_thread_events): Change to bool.
1993 * top.c (confirm): Likewise.
1994 (command_editing_p): Likewise.
1995 (history_expansion_p): Likewise.
1996 (write_history_p): Likewise.
1997 (info_verbose): Likewise.
1998 * top.h (confirm): Likewise.
1999 (history_expansion_p): Likewise.
2000 * tracepoint.c (disconnected_tracing): Likewise.
2001 (circular_trace_buffer): Likewise.
2002 * typeprint.c (print_methods): Likewise.
2003 (print_typedefs): Likewise.
2004 * utils.c (debug_timestamp): Likewise.
2005 (sevenbit_strings): Likewise.
2006 (pagination_enabled): Likewise.
2007 * utils.h (sevenbit_strings): Likewise.
2008 (pagination_enabled): Likewise.
2009 * valops.c (overload_resolution): Likewise.
2010 * valprint.h (struct value_print_options) <prettyformat_arrays,
2011 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2012 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2013 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2014 Likewise.
2015 * windows-nat.c (new_console): Likewise.
2016 (cygwin_exceptions): Likewise.
2017 (new_group): Likewise.
2018 (debug_exec): Likewise.
2019 (debug_events): Likewise.
2020 (debug_memory): Likewise.
2021 (debug_exceptions): Likewise.
2022 (useshell): Likewise.
2023 * windows-tdep.c (maint_display_all_tib): Likewise.
2024 * xml-support.c (debug_xml): Likewise.
2025
2026 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2027
2028 * source.c (prepare_path_for_appending): New function.
2029 (openp): Make use of new function.
2030 (find_and_open_source): Search for the compilation directory and
2031 source file as a relative path beneath the directory search path.
2032
2033 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2034
2035 * source-cache.c (source_cache::get_line_charpos): Catch
2036 exceptions and return false, this matches the behaviour documented
2037 in the header file.
2038
2039 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2040
2041 * ada-tasks.c (info_task): Remove quoting of the task's name.
2042
2043 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2044
2045 * symfile.c (auto_solib_add): Replace comment with a reference
2046 to the header file.
2047
2048 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2049
2050 * NEWS: Mention that gdb can now be compiled with Python 3
2051 on Windows.
2052
2053 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2054
2055 * maint.c (maint_print_section_data::maint_print_section_data):
2056 Force use of 'float log10 (float)' by casting the argument to
2057 float.
2058
2059 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2060
2061 * maint.c: Add 'cmath' include.
2062 (struct maint_print_section_data): New structure.
2063 (print_section_index): New function.
2064 (print_bfd_section_info): Add header comment, small whitespace
2065 cleanup, and update to call new print_section_index function.
2066 (print_objfile_section_info): Likewise.
2067 (maint_obj_section_from_bfd_section): New function.
2068 (print_bfd_section_info_maybe_relocated): New function.
2069 (maintenance_info_sections): Add header comment, always use
2070 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2071
2072 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2075 inner scope, add check that the objfile has psymtabs before
2076 checking psymtabs_addrmap.
2077 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2078
2079 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2080
2081 * NEWS: Announce that Ada task names are now shown at more places,
2082 and between quotes (except in info task output).
2083 * gdb/ada-tasks.c (task_to_str): New function.
2084 (display_current_task_id): Call task_to_str.
2085 (task_command_1): Likewise.
2086 (print_ada_task_info): In non-mi mode, Properly align headers and data
2087 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2088
2089 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2090
2091 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2092 prstatus.pr_lwp.pr_info instead of making it up.
2093
2094 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2095
2096 * auto-load.c (auto_load_expand_dir_vars): Update.
2097 * defs.h (gdb_datadir): Change to std::string.
2098 (python_libdir): Likewise.
2099 (relocate_gdb_directory): Change return type to std::string.
2100 * guile/guile.c (gdbscm_data_directory): Update.
2101 (initialize_scheme_side): Update.
2102 * jit.c (jit_reader_dir): Change to std::string.
2103 (jit_reader_load_command): Update.
2104 * main.c (gdb_datadir): Change to std::string.
2105 (python_libdir): Likewise.
2106 (set_gdb_data_directory): Update.
2107 (relocate_path): Change to return std::string.
2108 (relocate_gdb_directory): Change to return std::string.
2109 (relocate_gdbinit_path_maybe_in_datadir): Update.
2110 (captured_main_1): Update.
2111 * python/python.c (do_start_initialization): Update.
2112 * top.c (show_gdb_datadir): Update.
2113 * xml-syscall.c (xml_init_syscalls_info): Update.
2114 (init_syscalls_info): Update.
2115
2116 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2117
2118 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2119 out of get_init_files.
2120 (get_init_files): Update.
2121
2122 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2123
2124 * main.c (get_init_files): Change to use std::string.
2125 (captured_main_1): Update.
2126 (print_gdb_help): Update.
2127
2128 2019-09-11 Ali Tamur <tamur@google.com>
2129
2130 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2131 implementation.
2132
2133 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2134
2135 * dbxread.c (read_dbx_symtab): Update.
2136 * dwarf2read.c (load_partial_dies): Update.
2137 * mdebugread.c (parse_partial_symbols): Update.
2138 (handle_psymbol_enumerators): Update.
2139 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2140 * psymtab.c (add_psymbol_to_bcache): Likewise.
2141 (add_psymbol_to_list): Likewise.
2142 * symtab.c (symbol_set_names): Likewise.
2143 * symtab.h (symbol_set_names): Likewise.
2144 * xcoffread.c (scan_xcoff_symtab): Update.
2145
2146 2019-09-11 Tom Tromey <tom@tromey.com>
2147
2148 * symfile-mem.c (symbol_file_add_from_memory): Use
2149 bfd_set_filename.
2150 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2151 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2152
2153 2019-09-10 Tom Tromey <tromey@adacore.com>
2154
2155 * dwarf-index-write.c (write_psymbols): Extend error message.
2156 (debug_names::insert): Add Ada code.
2157 (debug_names::write_psymbols): Remove Ada check.
2158 (debug_names) <m_string_obstack>: New member.
2159 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2160 (gdb_index_symbol_name_matcher::matches): Remove.
2161 (mapped_index_base::find_name_components_bounds): Add "lang"
2162 parameter.
2163 (mapped_index_base::build_name_components): Also split names
2164 according to Ada syntax.
2165 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2166 type of "match_callback".
2167 (check_match, check_find_bounds_finds)
2168 (dw2_expand_symtabs_matching): Update.
2169 (dw2_debug_names_iterator): Add new constructor.
2170 (dw2_debug_names_map_matching_symbols): New function.
2171 (dw2_debug_names_expand_symtabs_matching): Update.
2172 (dwarf2_debug_names_functions): Use
2173 dw2_debug_names_map_matching_symbols.
2174
2175 2019-09-10 Tom Tromey <tromey@adacore.com>
2176
2177 * dwarf2read.c (dw2_get_file_names_reader): Add the
2178 CU's file name to the results.
2179
2180 2019-09-10 Tom Tromey <tromey@adacore.com>
2181
2182 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2183 map_matching_symbols. Update.
2184 * dwarf2read.c (dw2_map_matching_symbols): Update.
2185 * psymtab.c (match_partial_symbol): Change type; update.
2186 (psym_map_matching_symbols): Likewise.
2187 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2188 type; update.
2189 * symfile.h (struct quick_symbol_functions)
2190 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2191 Remove "match".
2192
2193 2019-09-10 Tom Tromey <tromey@adacore.com>
2194
2195 * psymtab.c (map_block): Remove.
2196 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2197 * symtab.c (iterate_over_symbols_terminated): New function.
2198 * symtab.c (iterate_over_symbols_terminated): Declare.
2199
2200 2019-09-10 Tom Tromey <tromey@adacore.com>
2201
2202 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2203 * language.h (struct language_defn) <la_iterate_over_symbols>:
2204 Return bool.
2205 * symtab.c (iterate_over_symbols): Return bool.
2206 * symtab.h (iterate_over_symbols): Return bool.
2207
2208 2019-09-10 Tom Tromey <tromey@adacore.com>
2209
2210 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2211 (add_nonlocal_symbols): Update.
2212 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2213 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2214 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2215 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2216 Change type of "callback". Remove "data".
2217
2218
2219 2019-09-09 Ali Tamur <tamur@google.com>
2220
2221 * dwarf2read.c (comp_unit_head): Update comment.
2222 (dwarf2_dwo_name): New function declaration.
2223 (dwarf_unit_type_name): New function declaration.
2224 (read_comp_unit_head): Add support for new compilation units,
2225 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2226 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2227 (currently named as "signature") in their header. Also clarify error
2228 messages.
2229 (lookup_dwo_id): New function. Returns the dwo id of the given
2230 compile unit.
2231 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2232 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2233 functions.
2234 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2235 (dwarf2_dwo_name): Get the dwo name if present.
2236 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2237 purposes.
2238
2239 2019-09-09 Tom Tromey <tom@tromey.com>
2240
2241 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2242
2243 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2244
2245 * python/python.c (do_start_initialization): Make progname_copy static,
2246 to avoid a leak report.
2247
2248 2019-09-08 Tom Tromey <tom@tromey.com>
2249
2250 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2251
2252 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2253
2254 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2255 Change type to gdb::optional<block_enum>.
2256 (dw2_symtab_iter_init): Change block_index parameter type
2257 to gdb::optional<block_enum>.
2258 (dw2_lookup_symbol): Change block_index parameter
2259 type to block_enum.c
2260 (dw2_debug_names_lookup_symbol): Likewise.
2261 * psymtab.c (psym_lookup_symbol): Likewise.
2262 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2263 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2264 Likewise.
2265
2266 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2267
2268 * defs.h (relocate_gdb_directory): Change int to bool in
2269 signature and rename flag to relocatable.
2270 * main.c (relocate_path): Likewise.
2271 (relocate_gdb_directory): Likewise.
2272
2273 2019-09-06 Alan Modra <amodra@gmail.com>
2274
2275 * coffread.c (coff_symfile_read): Constify filename variable.
2276 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2277 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2278 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2279 * solib.c (reload_shared_libraries_1): Likewise.
2280 * symfile.c (reread_symbols): Likewise.
2281 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2282 * solib-darwin.c (darwin_bfd_open): Likewise.
2283 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2284
2285 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2286
2287 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2288 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2289
2290 2019-09-03 Tom Tromey <tromey@adacore.com>
2291
2292 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2293 types.
2294 (has_negatives): Unbias a range type bound.
2295 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2296 * gdbtypes.c (operator==): Handle new field.
2297 (create_range_type): Add "bias" parameter.
2298 (create_static_range_type, resolve_dynamic_range): Update.
2299 * gdbtypes.h (struct range_bounds) <bias>: New member.
2300 (create_range_type): Add bias parameter.
2301 * printcmd.c (print_scalar_formatted): Unbias range types.
2302 * value.c (unpack_long): Unbias range types.
2303 (pack_long): Bias range types.
2304
2305 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2306
2307 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2308 probe arguments.
2309
2310 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2311
2312 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2313 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2314 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2315 (compile_probe_arg): Likewise.
2316 * probe.h (get_argument_count): Likewise.
2317 * solib-svr4.c (solib_event_probe_action): Likewise.
2318 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2319
2320 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2321
2322 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2323 code to here...
2324 (svr4_create_solib_event_breakpoints): ...from here.
2325
2326 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2327
2328 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2329 suffix from warning message.
2330
2331 2019-08-30 Tom Tromey <tom@tromey.com>
2332
2333 * tui/tui-winsource.h (struct tui_source_window_base)
2334 <refresh_all>: Don't declare.
2335 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2336 Remove.
2337 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2338 tui_show_locator_content.
2339 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2340 declare.
2341 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2342 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2343 declare.
2344
2345 2019-08-30 Tom Tromey <tom@tromey.com>
2346
2347 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2348
2349 2019-08-30 Tom Tromey <tom@tromey.com>
2350
2351 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2352 Remove unnecessary forward declarations.
2353
2354 2019-08-30 Tom Tromey <tom@tromey.com>
2355
2356 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2357 rerender.
2358 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2359 tui_show_locator_content.
2360
2361 2019-08-30 Tom Tromey <tom@tromey.com>
2362
2363 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2364 (tui_locator_window::rerender): Rewrite using body of previous
2365 tui_show_locator_content.
2366
2367 2019-08-30 Tom Tromey <tom@tromey.com>
2368
2369 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2370 set_locator_fullname>: New methods.
2371 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2372 Rename from tui_set_locator_fullname.
2373 (tui_locator_window::set_locator_info): Rename from
2374 tui_set_locator_info. Return bool.
2375 (tui_update_locator_fullname, tui_show_frame_info): Update.
2376
2377 2019-08-30 Tom Tromey <tom@tromey.com>
2378
2379 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2380
2381 2019-08-30 Tom Tromey <tom@tromey.com>
2382
2383 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2384 call touchwin.
2385
2386 2019-08-30 Tom Tromey <tom@tromey.com>
2387
2388 * tui/tui-wingeneral.c (box_win): Assume win_info and
2389 win_info->handle cannot be NULL.
2390
2391 2019-08-30 Tom Tromey <tom@tromey.com>
2392
2393 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2394 refresh_window>: Declare.
2395 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2396 resize.
2397 (tui_data_item_window::rerender): Rename from
2398 tui_display_register.
2399 (tui_data_item_window::refresh_window): New method.
2400 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2401 no-op.
2402
2403 2019-08-30 Tom Tromey <tom@tromey.com>
2404
2405 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2406 regs_column_count, current_group>: Move later. Now private.
2407 <get_current_group>: New method.
2408 * tui/tui-regs.c (tui_reg_command): Update.
2409 * tui/tui-layout.c (tui_set_layout): Update.
2410
2411 2019-08-30 Tom Tromey <tom@tromey.com>
2412
2413 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2414 (tui_data_window::rerender): Don't call
2415 check_and_display_highlight_if_needed.
2416 (tui_data_window::refresh_all): Remove call to
2417 erase_data_content.
2418
2419 2019-08-30 Tom Tromey <tom@tromey.com>
2420
2421 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2422 (tui_data_window::display_registers_from)
2423 (tui_data_window::display_reg_element_at_line)
2424 (tui_data_window::display_registers_from_line): Remove checks of
2425 "empty".
2426
2427 2019-08-30 Tom Tromey <tom@tromey.com>
2428
2429 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2430 Don't declare.
2431 * tui/tui-regs.c (tui_data_window::show_registers): Call
2432 rerender.
2433 (tui_data_window::rerender): Rename from display_all_data.
2434 (tui_data_window::rerender): Remove old implementation.
2435
2436 2019-08-30 Tom Tromey <tom@tromey.com>
2437
2438 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2439 text.
2440 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2441
2442 2019-08-29 Bernhard Wodok <barto@gmx.net>
2443 Sergio Durigan Junior <sergiodj@redhat.com>
2444
2445 PR win32/24284
2446 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2447
2448 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2449
2450 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2451 when searching for types.
2452
2453 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2454
2455 * f-lang.c (f_language_defn): Use f_print_typedef.
2456 * f-lang.h (f_print_typedef): Declare.
2457 * f-typeprint.c (f_print_typedef): Define.
2458
2459 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2460
2461 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2462
2463 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2464
2465 * cli/cli-utils.c (info_print_options_defs): Delete.
2466 (make_info_print_options_def_group): Delete.
2467 (extract_info_print_options): Delete.
2468 (info_print_command_completer): Delete.
2469 (info_print_args_help): Add extra parameter, and optionally
2470 include text about -n flag.
2471 * cli/cli-utils.h (struct info_print_options): Delete.
2472 (extract_info_print_options): Delete declaration.
2473 (info_print_command_completer): Delete declaration.
2474 (info_print_args_help): Add extra parameter, extend header
2475 comment.
2476 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2477 search_symbols.
2478 * stack.c (struct info_print_options): New type.
2479 (info_print_options_defs): New file scoped variable.
2480 (make_info_print_options_def_group): New static function.
2481 (info_print_command_completer): New static function.
2482 (info_locals_command): Update to use new local functions.
2483 (info_args_command): Likewise.
2484 (_initialize_stack): Add extra parameter to calls to
2485 info_print_args_help.
2486 * symtab.c (search_symbols): Add extra parameter, use this to
2487 possibly excluse non-debug symbols.
2488 (symtab_symbol_info): Add extra parameter, which is passed on to
2489 search_symbols.
2490 (struct info_print_options): New type.
2491 (info_print_options_defs): New file scoped variable.
2492 (make_info_print_options_def_group): New static function.
2493 (info_print_command_completer): New static function.
2494 (info_variables_command): Update to use local functions, and pass
2495 extra parameter through to symtab_symbol_info.
2496 (info_functions_command): Likewise.
2497 (info_types_command): Pass additional argument through to
2498 symtab_symbol_info.
2499 (rbreak_command): Pass extra argument to search_symbols.
2500 (_initialize_symtab): Add extra arguments for calls to
2501 info_print_args_help, and update help text for 'info variables',
2502 'whereis', and 'info functions' commands.
2503 * symtab.h (search_symbols): Add extra argument to declaration.
2504 * NEWS: Mention new flags.
2505
2506 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2507
2508 * symtab.c (lookup_static_symbol): Call the new function (and move
2509 it down to be next to lookup_global_symbol).
2510 (struct global_sym_lookup_data): Add block_enum member and rename to...
2511 (struct global_or_static_sym_lookup_data): ...this.
2512 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2513 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2514 (lookup_symbol_global_or_static_iterator_cb): ...this.
2515 (lookup_global_or_static_symbol): New function.
2516 (lookup_global_symbol): Call new function.
2517
2518 2019-08-26 Tom de Vries <tdevries@suse.de>
2519
2520 PR c++/24852
2521 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2522 when pc_probe.prob == NULL.
2523
2524 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2525
2526 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2527 variable symbol_linkage to symbol_linkage_.
2528
2529 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2530
2531 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2532 represent whether the symbol is static, dynamic, or we don't
2533 know.
2534
2535 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2536
2537 * gdb/rx-tdep.c (rx_register_names): New.
2538 (rx_register_name): Delete.
2539 (rx_psw_type): Delete.
2540 (rx_fpsw_type): Delete.
2541 (rx_register_type): Delete.
2542 (rx_gdbarch_init): Convert target-descriptions.
2543 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2544 * gdb/features/Makefile: Add rx.xml.
2545 * gdb/features/rx.xml: New.
2546 * gdb/features/rx.c: Generated.
2547 * gdb/NEWS: Mention target description support.
2548
2549 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2550
2551 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2552 *slot_ptr.
2553
2554 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2555
2556 * configure.ac: Don't check for 'dlfcn.h' (moved to
2557 gdbsupport/common.m4).
2558 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2559 'gdbsupport/'.
2560 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2561 * compile/compile-c-support.c: Include
2562 'gdbsupport/gdb-dlfcn.h'.
2563 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2564 * gdb-dlfcn.c: Move to...
2565 * gdbsupport/gdb-dlfcn.c: ... here.
2566 * gdb-dlfcn.h: Move to...
2567 * gdbsupport/gdb-dlfcn.h: ... here.
2568
2569 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2570
2571 * nios2-tdep.c (struct reg_value): Improve comments. Make
2572 the offset field signed.
2573
2574 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2575
2576 * python/lib/gdb/__init__.py (_execute_file): New function.
2577 * python/python.c (python_run_simple_file): Call gdb._execute_file
2578 on Windows.
2579
2580 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2581
2582 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2583 all uses as this was never set to anything but a zero value.
2584
2585 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2586
2587 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2588
2589 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2590
2591 * tui/tui-data.h (tui_gen_win_info): Add an =default
2592 move constructor, required by some GCC versions.
2593
2594 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2595
2596 * go32-nat.c (go32_sysinfo): Add hygon_p.
2597
2598 2019-08-20 Tom Tromey <tom@tromey.com>
2599
2600 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2601 line_from_reg_element_no, first_reg_element_no_inline,
2602 display_all_data, delete_data_content_windows,
2603 erase_data_content>: Now private.
2604
2605 2019-08-20 Tom Tromey <tom@tromey.com>
2606
2607 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2608 (tui_unhighlight_win, tui_highlight_win)
2609 (tui_win_info::make_window): Update.
2610 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2611
2612 2019-08-20 Tom Tromey <tom@tromey.com>
2613
2614 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2615 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2616 (MAX_PID_WIDTH): Move to tui-stack.c.
2617 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2618 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2619 (MAX_PID_WIDTH): Move from tui-data.h.
2620
2621 2019-08-20 Tom Tromey <tom@tromey.com>
2622
2623 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2624 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2625 (box_win): Update.
2626 (tui_gen_win_info::make_window): Rename from tui_make_window.
2627 (tui_win_info::make_window): New method.
2628 (tui_gen_win_info::make_visible): Update.
2629 * tui/tui-source.c (tui_source_window::set_contents): Update.
2630 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2631 (tui_data_window::display_registers_from): Update.
2632 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2633 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2634 Declare.
2635 <can_box>: Remove.
2636 <title>: Remove.
2637 (struct tui_win_info) <make_window>: Declare.
2638 <can_box>: Now virtual.
2639 <title>: New member.
2640 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2641 * tui/tui-command.c (tui_cmd_window::resize): Update.
2642
2643 2019-08-20 Tom Tromey <tom@tromey.com>
2644
2645 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2646 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2647 (tui_data_window::check_register_values): Update.
2648
2649 2019-08-20 Tom Tromey <tom@tromey.com>
2650
2651 * tui/tui-regs.h (struct tui_data_window): Use
2652 DISABLE_COPY_AND_ASSIGN.
2653 <regs_content>: Change type, removing unique_ptr.
2654 <tui_data_window>: Add move constructor.
2655 * tui/tui-regs.c (tui_data_window::show_registers)
2656 (tui_data_window::show_register_group)
2657 (tui_data_window::display_registers_from)
2658 (tui_data_window::display_registers_from)
2659 (tui_data_window::first_data_item_displayed)
2660 (tui_data_window::delete_data_content_windows)
2661 (tui_data_window::rerender, tui_data_window::refresh_window)
2662 (tui_data_window::check_register_values): Update.
2663
2664 2019-08-20 Tom Tromey <tom@tromey.com>
2665
2666 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2667 show_register_group>: Declare.
2668 (tui_show_register_group): Don't declare.
2669 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2670 tui_show_registers.
2671 (tui_data_window::show_register_group): Rename from
2672 tui_show_register_group.
2673 (tui_data_window::check_register_values, tui_reg_command):
2674 Update.
2675 * tui/tui-layout.c (tui_set_layout): Update.
2676
2677 2019-08-20 Tom Tromey <tom@tromey.com>
2678
2679 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2680 Declare.
2681 (tui_check_register_values): Don't declare.
2682 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2683 from tui_check_register_values.
2684 * tui/tui-hooks.c (tui_register_changed): Update.
2685
2686 2019-08-20 Tom Tromey <tom@tromey.com>
2687
2688 * tui/tui-regs.c (tui_reg_layout): Move later.
2689 (tui_show_registers): Don't enable TUI mode or change layout.
2690
2691 2019-08-20 Tom Tromey <tom@tromey.com>
2692
2693 * tui/tui-regs.h (struct tui_data_item_window)
2694 <~tui_data_item_window>: Remove.
2695 <content>: Now a unique_xmalloc_ptr.
2696 * tui/tui-regs.c (tui_register_format): Return a
2697 unique_xmalloc_ptr.
2698 (tui_get_register): Update.
2699 (~tui_data_item_window): Remove.
2700 (tui_data_window::display_registers_from, tui_display_register):
2701 Update.
2702 * tui/tui-io.h (tui_expand_tabs): Update.
2703 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2704 Remove "col" parameter.
2705
2706 2019-08-20 Tom Tromey <tom@tromey.com>
2707
2708 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2709 field.
2710 * tui/tui-regs.c (~tui_data_item_window): Update.
2711
2712 2019-08-20 Tom Tromey <tom@tromey.com>
2713
2714 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2715 earlier.
2716
2717 2019-08-20 Tom Tromey <tom@tromey.com>
2718
2719 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2720
2721 2019-08-20 Tom Tromey <tom@tromey.com>
2722
2723 * tui/tui-source.h (struct tui_source_window): Update.
2724 * tui/tui-regs.c (tui_show_registers): Update.
2725 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2726 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2727 (NO_REGS_STRING): Remove defines.
2728
2729 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
2730
2731 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2732 unnecessary thread walk if remote doesn't support the packet.
2733
2734 2019-08-19 Tom Tromey <tromey@adacore.com>
2735
2736 * python/py-value.c (value_has_field): Fix indentation.
2737
2738 2019-08-19 Tom Tromey <tromey@adacore.com>
2739
2740 * printcmd.c (do_one_display, info_display_command): Update.
2741 * block.h (contained_in): Return bool. Add allow_nested
2742 parameter.
2743 * block.c (contained_in): Return bool. Add allow_nested
2744 parameter.
2745
2746 2019-08-19 Tom Tromey <tom@tromey.com>
2747
2748 * configure: Rebuild.
2749 * configure.ac: Disallow the combination of -static-libstdc++ and
2750 source highlight.
2751 * source-cache.c (get_language_name): Handle rust.
2752 (source_cache::get_source_lines): Ignore highlighting exceptions.
2753
2754 2019-08-16 Tom Tromey <tom@tromey.com>
2755
2756 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2757 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2758 (struct tui_source_window_base) <make_visible, refresh_window,
2759 resize>: Remove methods.
2760 <execution_info>: Remove field.
2761 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2762 (tui_show_source_line, tui_source_window_base)
2763 (~tui_source_window_base): Update.
2764 (tui_source_window_base::resize)
2765 (tui_source_window_base::make_visible)
2766 (tui_source_window_base::refresh_window): Remove.
2767 (tui_source_window_base::update_exec_info): Update.
2768 * tui/tui-source.c (tui_source_window::set_contents): Update.
2769 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2770
2771 2019-08-16 Tom Tromey <tom@tromey.com>
2772
2773 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2774 deprecated_query_hook.
2775
2776 2019-08-16 Tom Tromey <tom@tromey.com>
2777
2778 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2779 (tui_update_source_windows_with_line): Update.
2780 * tui/tui-source.h (struct tui_source_window)
2781 <show_symtab_source>: Declare.
2782 (tui_show_symtab_source): Don't declare.
2783 * tui/tui-source.c (tui_show_symtab_source): Rename from
2784 tui_show_symtab_source.
2785
2786 2019-08-16 Tom Tromey <tom@tromey.com>
2787
2788 * tui/tui-winsource.h (struct tui_source_window_base)
2789 <set_contents>: Declare.
2790 * tui/tui-winsource.c
2791 (tui_source_window_base::update_source_window_as_is): Update.
2792 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2793 Declare.
2794 (tui_set_source_content): Don't declare.
2795 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2796 tui_set_source_content.
2797 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2798 Declare.
2799 (tui_set_disassem_content): Don't declare.
2800 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2801 tui_set_disassem_content.
2802
2803 2019-08-16 Tom Tromey <tom@tromey.com>
2804
2805 * tui/tui-winsource.h (struct tui_source_window_base)
2806 <update_breakpoint_info>: Declare.
2807 (tui_update_breakpoint_info): Don't declare.
2808 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2809 (tui_update_all_breakpoint_info): Update.
2810 (tui_source_window_base::update_breakpoint_info): Rename from
2811 tui_update_breakpoint_info.
2812 (tui_source_window_base::update_exec_info): Update.
2813
2814 2019-08-16 Tom Tromey <tom@tromey.com>
2815
2816 * tui/tui-winsource.h (struct tui_source_window_base)
2817 <update_source_window>: Declare.
2818 (tui_update_source_window): Don't declare.
2819 * tui/tui-winsource.c
2820 (tui_source_window_base::update_source_window): Rename from
2821 tui_update_source_window.
2822 (tui_source_window_base::rerender): Update.
2823 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2824 * tui/tui-disasm.c (tui_show_disassem)
2825 (tui_show_disassem_and_update_source)
2826 (tui_disasm_window::maybe_update): Update.
2827
2828 2019-08-16 Tom Tromey <tom@tromey.com>
2829
2830 * tui/tui-winsource.h (struct tui_source_window_base)
2831 <update_source_window_as_is>: Declare.
2832 (tui_update_source_window_as_is): Don't declare.
2833 * tui/tui-winsource.c (tui_update_source_window): Update
2834 (tui_source_window_base::update_source_window_as_is): Rename from
2835 tui_update_source_window_as_is.
2836 (tui_source_window_base::refill): Update.
2837 * tui/tui-source.c (tui_show_symtab_source): Update.
2838 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2839 Update.
2840
2841 2019-08-16 Tom Tromey <tom@tromey.com>
2842
2843 * tui/tui-winsource.h (tui_update_source_window)
2844 (tui_update_source_window_as_is): Remove "noerror" parameter.
2845 * tui/tui-winsource.c (tui_update_source_window)
2846 (tui_update_source_window_as_is): Remove "noerror" parameter.
2847 (tui_update_source_windows_with_addr)
2848 (tui_update_source_windows_with_line)
2849 (tui_source_window_base::rerender)
2850 (tui_source_window_base::refill): Update.
2851 * tui/tui-source.h (tui_set_source_content)
2852 (tui_show_symtab_source): Remove "noerror" parameter.
2853 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2854 parameter.
2855 (tui_show_symtab_source): Likewise.
2856 (tui_source_window::maybe_update): Update.
2857 * tui/tui-disasm.c (tui_show_disassem)
2858 (tui_show_disassem_and_update_source)
2859 (tui_disasm_window::do_scroll_vertical)
2860 (tui_disasm_window::maybe_update): Update.
2861
2862 2019-08-16 Tom Tromey <tom@tromey.com>
2863
2864 * tui/tui.c (tui_is_window_visible): Update.
2865 * tui/tui-wingeneral.c (tui_make_window)
2866 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2867 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2868 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2869 (tui_set_win_height_command, parse_scrolling_args): Update.
2870 * tui/tui-source.c (tui_source_window::style_changed): Update.
2871 * tui/tui-regs.c (tui_show_registers)
2872 (tui_data_window::first_data_item_displayed)
2873 (tui_data_window::delete_data_content_windows)
2874 (tui_check_register_values, tui_reg_command): Update.
2875 * tui/tui-disasm.c (tui_show_disassem): Update.
2876 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2877 method.
2878 <is_visible>: Remove field.
2879 * tui/tui-data.c (tui_next_win, tui_prev_win)
2880 (tui_delete_invisible_windows): Update.
2881
2882 2019-08-16 Tom Tromey <tom@tromey.com>
2883
2884 * tui/tui-winsource.h (struct tui_source_window_base)
2885 <m_has_locator>: Remove.
2886 * tui/tui-layout.c (show_source_disasm_command, show_data)
2887 (show_source_or_disasm_and_command): Update.
2888
2889 2019-08-16 Alan Hayward <alan.hayward@arm.com>
2890
2891 * NEWS (Other MI changes): New subsection.
2892 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2893 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2894 * arch-utils.c (default_get_pc_address_flags): New function.
2895 * arch-utils.h (default_get_pc_address_flags): New declaration.
2896 * gdbarch.sh: Add get_pc_address_flags.
2897 * gdbarch.c: Regenerate.
2898 * gdbarch.h: Likewise.
2899 * stack.c (print_pc): New function.
2900 (print_frame_info) (print_frame): Call print_pc.
2901
2902 2019-08-16 Tom de Vries <tdevries@suse.de>
2903
2904 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2905 print_objfile_section_info.
2906
2907 2019-08-15 Tom Tromey <tom@tromey.com>
2908
2909 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2910 calling update_cmdwin_start_line.
2911 * tui/tui-winsource.h (struct tui_source_window_base)
2912 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2913 <rerender>: Declare.
2914 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2915 Call rerender.
2916 (tui_source_window_base::set_new_height): Remove.
2917 (tui_source_window_base::rerender): Rename from
2918 do_make_visible_with_new_height.
2919 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2920 resize method.
2921 (tui_win_info::make_invisible_and_set_new_height)
2922 (tui_win_info::make_visible_with_new_height): Remove.
2923 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2924 Declare.
2925 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2926 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2927 do_make_visible_with_new_height>: Don't declare.
2928 <rerender>: Declare.
2929 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2930 set_new_height.
2931 (tui_data_window::do_make_visible_with_new_height): Remove.
2932 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2933 call tui_show_locator_content.
2934 (tui_gen_win_info::resize): Call rerender.
2935 (show_source_or_disasm_and_command): Don't call
2936 tui_show_locator_content.
2937 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2938 method.
2939 (struct tui_win_info) <rerender>: Declare.
2940 <set_new_height, make_invisible_and_set_new_height,
2941 make_visible_with_new_height>: Don't declare.
2942 * tui/tui-data.c (tui_win_list::rerender): New method.
2943 * tui/tui-command.h (struct tui_cmd_window)
2944 <do_make_visible_with_new_height>: Don't declare.
2945 * tui/tui-command.c
2946 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2947
2948 2019-08-15 Tom Tromey <tromey@adacore.com>
2949
2950 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2951 * ada-lang.c (ada_enum_name): Likewise.
2952
2953 2019-08-15 Christian Biesinger <cbiesinger@google.com>
2954
2955 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2956 leading underscore.
2957 (GdbOutputErrorFile): Likewise.
2958 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2959 accordingly.
2960 (execute_unwinders): Rename to have a leading underscore.
2961 (auto_load_packages): Likewise.
2962 (global scope): Adjust call to auto_load_packages accordingly.
2963 (GdbSetPythonDirectory): Likewise.
2964 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2965 instead of execute_unwinders.
2966
2967 2019-08-15 Tom Tromey <tom@tromey.com>
2968
2969 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2970 (show_data): Don't change window visibility.
2971 (tui_gen_win_info::resize): Remove special case for command
2972 window. Use wresize, when available.
2973 (show_source_or_disasm_and_command): Don't change window
2974 visibility.
2975 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2976 <make_visible>: New method.
2977 * tui/tui-command.c (tui_cmd_window::resize): New method.
2978
2979 2019-08-15 Tom Tromey <tom@tromey.com>
2980
2981 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2982 (struct tui_source_windows): New.
2983 * tui/tui-winsource.c (tui_display_main): Update.
2984 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2985 (new_height_ok, parse_scrolling_args): Update.
2986 * tui/tui-layout.c (show_layout, show_data): Update.
2987 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2988 (tui_add_to_source_windows): Don't declare.
2989 * tui/tui-data.c (source_windows, tui_source_windows)
2990 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2991
2992 2019-08-15 Tom Tromey <tom@tromey.com>
2993
2994 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2995 Rename from reset.
2996 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2997 * tui/tui-layout.c (show_source_disasm_command, show_data):
2998 Update.
2999 (tui_gen_win_info::resize): Rename.
3000 (show_source_or_disasm_and_command): Update.
3001 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3002 reset.
3003
3004 2019-08-15 Tom Tromey <tom@tromey.com>
3005
3006 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3007 * tui/tui-interp.c (tui_interp::init): Don't call
3008 tui_initialize_static_data.
3009 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3010
3011 2019-08-15 Tom Tromey <tom@tromey.com>
3012
3013 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3014 examine tui_win_list.
3015
3016 2019-08-15 Tom Tromey <tom@tromey.com>
3017
3018 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3019 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3020 tui_clear_source_content.
3021 (tui_clear_source_content): Remove.
3022 (tui_source_window_base::do_erase_source_content): Hoist call to
3023 content.clear().
3024 * tui/tui-stack.c (tui_show_frame_info): Don't call
3025 tui_clear_source_content.
3026
3027 2019-08-15 Tom Tromey <tom@tromey.com>
3028
3029 * tui/tui-winsource.h (struct tui_source_window_base)
3030 <do_erase_source_content>: New method.
3031 <erase_source_content>: New method.
3032 (tui_erase_source_content): Don't declare.
3033 * tui/tui-winsource.c (tui_clear_source_content): Update.
3034 (tui_source_window_base::do_erase_source_content): Rename from
3035 tui_erase_source_content.
3036 (tui_source_window_base::show_source_content): Update.
3037 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3038 * tui/tui-source.h (struct tui_source_window)
3039 <erase_source_content>: New method.
3040 * tui/tui-disasm.h (struct tui_disasm_window)
3041 <erase_source_content>: New method.
3042
3043 2019-08-15 Tom Tromey <tom@tromey.com>
3044
3045 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3046 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3047 constructor.
3048 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3049 * tui/tui-source.c (tui_set_source_content): Update.
3050 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3051
3052 2019-08-15 Tom Tromey <tom@tromey.com>
3053
3054 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3055 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3056 tui-source.c.
3057 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3058 Declare.
3059 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3060 method.
3061 (tui_source_window::maybe_update): Update.
3062
3063 2019-08-15 Tom Tromey <tom@tromey.com>
3064
3065 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3066 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3067 tui-disasm.c.
3068 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3069 Declare.
3070 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3071 method.
3072 (tui_disasm_window::maybe_update): Update.
3073
3074 2019-08-15 Tom Tromey <tom@tromey.com>
3075
3076 * tui/tui-winsource.h (struct tui_source_window_base)
3077 <maybe_update>: Declare.
3078 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3079 method.
3080 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3081 Declare.
3082 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3083 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3084 Declare.
3085 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3086
3087 2019-08-15 Tom Tromey <tom@tromey.com>
3088
3089 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3090
3091 2019-08-15 Tom Tromey <tom@tromey.com>
3092
3093 * tui/tui-wingeneral.c: Include tui-stack.h.
3094 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3095 (struct tui_locator_window): Move from tui-data.h.
3096 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3097 (tui_initialize_static_data): Move from tui-data.c.
3098 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3099 (struct tui_locator_window): Move to tui-stack.c.
3100 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3101 (tui_initialize_static_data): Move to tui-stack.c.
3102
3103 2019-08-15 Tom Tromey <tom@tromey.com>
3104
3105 * tui/tui-layout.c (show_source_disasm_command)
3106 (show_source_or_disasm_and_command): Use make_visible method, not
3107 tui_make_window.
3108 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3109 Remove.
3110
3111 2019-08-15 Tom Tromey <tom@tromey.com>
3112
3113 * tui/tui-wingeneral.h (tui_make_window): Update.
3114 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3115 parameter.
3116 (tui_gen_win_info::make_visible): Update.
3117 * tui/tui-regs.c (tui_data_window::display_registers_from):
3118 Update.
3119 * tui/tui-layout.c (show_source_disasm_command)
3120 (show_source_or_disasm_and_command): Update.
3121 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3122 (enum tui_box): Remove.
3123 (struct tui_win_info) <can_box>: New method.
3124 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3125 method.
3126
3127 2019-08-15 Tom de Vries <tdevries@suse.de>
3128
3129 * linux-nat-trad.c: Include gdbarch.h.
3130
3131 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3132
3133 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3134 register sizes.
3135
3136 2019-08-14 Tom Tromey <tromey@adacore.com>
3137
3138 * darwin-nat.c: Include gdbarch.h.
3139 * darwin-nat-info.c: Include gdbarch.h.
3140
3141 2019-08-13 Tom Tromey <tom@tromey.com>
3142
3143 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3144 Remove.
3145 * tui/tui-data.c (tui_initialize_static_data): Update.
3146
3147 2019-08-13 Tom Tromey <tom@tromey.com>
3148
3149 * tui/tui-winsource.h (struct tui_exec_info_window)
3150 <~tui_exec_info_window, maybe_allocate_content, get_content,
3151 m_content>: Remove.
3152 (struct tui_source_window_base) <set_exec_info_content,
3153 show_exec_info_content>: Don't declare.
3154 * tui/tui-winsource.c
3155 (tui_exec_info_window::maybe_allocate_content): Remove.
3156 (tui_source_window_base::update_exec_info): Rename from
3157 set_exec_info_content.
3158 (tui_source_window_base::show_exec_info_content)
3159 (tui_source_window_base::update_exec_info): Remove.
3160
3161 2019-08-13 Tom Tromey <tom@tromey.com>
3162
3163 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3164 declare.
3165 * tui/tui-winsource.c (tui_update_source_window_as_is)
3166 (tui_update_source_windows_with_addr, tui_erase_source_content):
3167 Update.
3168 (tui_clear_exec_info_content): Remove.
3169
3170 2019-08-13 Tom Tromey <tom@tromey.com>
3171
3172 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3173 declare.
3174 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3175 call tui_erase_exec_info_content.
3176 (tui_clear_exec_info_content): Rename from
3177 tui_erase_exec_info_content.
3178 (tui_clear_exec_info_content): Delete.
3179
3180 2019-08-13 Tom Tromey <tom@tromey.com>
3181
3182 * tui/tui-winsource.h (struct tui_source_window_base)
3183 <show_exec_info_content>: Declare.
3184 (tui_show_exec_info_content): Don't declare.
3185 * tui/tui-winsource.c
3186 (tui_source_window_base::show_exec_info_content): Rename from
3187 tui_show_exec_info_content.
3188 (tui_source_window_base::update_exec_info): Update.
3189
3190 2019-08-13 Tom Tromey <tom@tromey.com>
3191
3192 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3193 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3194 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3195 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3196 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3197 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3198 ... here.
3199
3200 2019-08-13 Tom Tromey <tom@tromey.com>
3201
3202 * tui/tui-winsource.h (struct tui_source_window_base)
3203 <update_exec_info>: Declare.
3204 (tui_update_exec_info): Don't declare.
3205 * tui/tui-winsource.c (tui_update_source_window_as_is)
3206 (tui_source_window_base::refresh_all)
3207 (tui_update_all_breakpoint_info): Update.
3208 (tui_source_window_base::update_exec_info): Rename from
3209 tui_update_exec_info.
3210 * tui/tui-stack.c (tui_show_frame_info): Update.
3211
3212 2019-08-13 Tom Tromey <tom@tromey.com>
3213
3214 * tui/tui-winsource.h (struct tui_source_window_base)
3215 <set_exec_info_content>: Declare.
3216 (tui_set_exec_info_content): Don't declare.
3217 * tui/tui-winsource.c
3218 (tui_source_window_base::set_exec_info_content): Rename from
3219 tui_set_exec_info_content.
3220 (tui_update_exec_info): Update.
3221
3222 2019-08-13 Tom Tromey <tom@tromey.com>
3223
3224 * tui/tui-winsource.h (struct tui_source_window_base)
3225 <show_source_content>: Declare.
3226 (tui_show_source_content): Don't declare.
3227 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3228 (tui_source_window_base::show_source_content): Rename from
3229 tui_show_source_content.
3230 (tui_source_window_base::refresh_all): Update.
3231 * tui/tui-layout.c (show_source_disasm_command)
3232 (show_source_or_disasm_and_command): Update.
3233
3234 2019-08-13 Tom Tromey <tom@tromey.com>
3235
3236 * tui/tui-winsource.c (tui_erase_source_content)
3237 (tui_show_source_content, tui_source_window_base::refresh_all):
3238 Update.
3239 * tui/tui-wingeneral.h
3240 (tui_check_and_display_highlight_if_needed): Don't declare.
3241 * tui/tui-wingeneral.c
3242 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3243 check_and_display_highlight_if_needed.
3244 * tui/tui-win.c (tui_rehighlight_all)
3245 (tui_win_info::make_visible_with_new_height): Update.
3246 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3247 (tui_data_window::erase_data_content)
3248 (tui_data_window::display_all_data): Update.
3249 * tui/tui-data.h (struct tui_win_info)
3250 <check_and_display_highlight_if_needed>: Declare.
3251
3252 2019-08-13 Tom Tromey <tom@tromey.com>
3253
3254 * tui/tui-win.c (tui_resize_all): Call
3255 tui_delete_invisible_windows.
3256 * tui/tui-layout.c (show_layout): Call
3257 tui_delete_invisible_windows.
3258 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3259 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3260
3261 2019-08-13 Tom Tromey <tom@tromey.com>
3262
3263 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3264 tui_add_win_to_layout.
3265
3266 2019-08-13 Tom Tromey <tom@tromey.com>
3267
3268 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3269 * tui/tui-layout.c (tui_default_win_height): Now static.
3270
3271 2019-08-13 Tom Tromey <tom@tromey.com>
3272
3273 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3274 single switch.
3275 (show_source_disasm_command, show_source_or_disasm_and_command):
3276 Don't check current layout.
3277
3278 2019-08-13 Tom Tromey <tom@tromey.com>
3279
3280 * tui/tui-wingeneral.c (make_all_visible): Remove.
3281 (tui_make_all_invisible): Simplify.
3282 * tui/tui-layout.c (tui_make_all_invisible): Move from
3283 tui-wingeneral.c; simplify.
3284 (show_layout): Hoist call to tui_make_all_invisible.
3285 (show_data): Don't call tui_make_all_invisible.
3286
3287 2019-08-13 Tom Tromey <tom@tromey.com>
3288
3289 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3290 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3291
3292 2019-08-13 Tom Tromey <tom@tromey.com>
3293
3294 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3295 tui-data.c.
3296 (show_source_disasm_command, show_data)
3297 (show_source_or_disasm_and_command): Don't use
3298 tui_set_current_layout_to.
3299 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3300 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3301 tui-layout.c.
3302 (tui_set_current_layout_to): Remove.
3303
3304 2019-08-13 Tom Tromey <tom@tromey.com>
3305
3306 * tui/tui-layout.c (tui_set_layout): Update.
3307 * tui/tui-data.h (struct tui_layout_def): Remove.
3308 (tui_layout_def): Don't declare.
3309 * tui/tui-data.c (layout_def): Remove.
3310 (tui_layout_def): Remove.
3311
3312 2019-08-13 Tom Tromey <tom@tromey.com>
3313
3314 * tui/tui-winsource.h (struct tui_source_window_base)
3315 <clear_detail>: No longer "override".
3316 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3317 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3318 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3319 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3320 Remove.
3321 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3322
3323 2019-08-13 Tom Tromey <tromey@adacore.com>
3324
3325 * tracepoint.c: Don't include readline.h or history.h.
3326
3327 2019-08-12 Tom Tromey <tom@tromey.com>
3328
3329 * configure: Rebuild.
3330 * configure.ac: Check for readline 7.
3331 * NEWS: Mention readline 7 requirement.
3332 * README: Update.
3333
3334 2019-08-12 Tom Tromey <tom@tromey.com>
3335
3336 * mingw-hdep.c (gdb_select): Remove readline hack.
3337
3338 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3339
3340 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3341 when the function fails.
3342
3343 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3344
3345 * s390-tdep.c (s390_type_align): New function.
3346 (s390_gdbarch_init): Set it as type_align gdbarch method.
3347
3348 2019-08-09 Tom de Vries <tdevries@suse.de>
3349
3350 PR gdb/24591
3351 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3352 pc_low with relocation offset.
3353
3354 2019-08-07 Tom Tromey <tromey@adacore.com>
3355
3356 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3357 (print_frame_args): Update.
3358 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3359 Update.
3360 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3361 * frame.h (struct frame_arg): Add initializers.
3362 <error>: Now a unique_xmalloc_ptr.
3363
3364 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3365
3366 * NEWS: Expand the Pointer Authentication entry.
3367 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3368 (aarch64_frame_unmask_lr): ... to this.
3369 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3370 Call aarch64_frame_unmask_lr.
3371 * frame.c (struct frame_info): Add "masked" variable.
3372 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3373 (fprint_frame): Check for masked pc.
3374 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3375 declarations.
3376 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3377 * stack.c (print_frame): Check for masked pc.
3378
3379 2019-08-06 Tom Tromey <tom@tromey.com>
3380
3381 * stabsread.c (patch_block_stabs, read_one_struct_field)
3382 (read_enum_type): Use obstack_strndup.
3383 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3384 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3385 * dwarf2read.c (guess_full_die_structure_name)
3386 (anonymous_struct_prefix): Use obstack_strndup.
3387 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3388 * c-exp.y (yylex): Use obstack_strndup.
3389 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3390 (write_var_or_type): Use obstack_strndup.
3391
3392 2019-08-06 Tom Tromey <tom@tromey.com>
3393
3394 * symfile.c (reread_symbols): Use obstack_strdup.
3395 * stabsread.c (read_type): Use obstack_strdup.
3396 * gdb_obstack.h (obstack_strdup): New overload.
3397 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3398 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3399 (dwarf2_canonicalize_name): Use obstack_strdup.
3400 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3401 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3402 Use obstack_strdup.
3403
3404 2019-08-06 Tom Tromey <tom@tromey.com>
3405
3406 * gdb_obstack.h (obstack_strdup): Define.
3407 * gdb_obstack.c (obstack_strdup): Don't define.
3408
3409 2019-08-06 Tom Tromey <tom@tromey.com>
3410
3411 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3412 obstack_strdup.
3413 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3414 obstack_strdup.
3415 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3416 * stabsread.c (common_block_start): Use obstack_strdup.
3417 * objfiles.c (set_objfile_main_name, objfile): Use
3418 obstack_strdup.
3419 * namespace.c (add_using_directive): Use obstack_strdup.
3420 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3421 * jit.c (finalize_symtab): Use obstack_strdup.
3422 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3423 (guess_partial_die_structure_name, partial_die_info::fixup)
3424 (dwarf2_name): Use obstack_strdup.
3425 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3426 obstack_strdup.
3427 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3428 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3429 obstack_strdup.
3430 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3431
3432 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3433
3434 * unittests/help-doc-selftests.c: New file.
3435 * Makefile.in: Add the new file.
3436
3437 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3438
3439 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3440 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3441 the full first line, except when FOR_VALUE_PREFIX. In this case,
3442 the trailing '.' is not output, and the first character is uppercased.
3443 (print_help_for_command): Update call to print_doc_line.
3444 (print_doc_of_command): Likewise.
3445 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3446 * cli/cli-option.c (append_indented_doc): Do not append newline.
3447 (build_help_option): Append newline after first appended_indented_doc
3448 only if a second call is done.
3449 (build_help): Append 2 new lines before each option, except the first
3450 one.
3451 * compile/compile.c (_initialize_compile): Add new lines after
3452 %OPTIONS%, when not at the end of the help.
3453 Change help doc or code
3454 producing the help doc to respect the invariants.
3455 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3456 Also removed the new line after 'Options:', as all other commands
3457 do not put an empty line between 'Options:' and the first option.
3458 * printcmd.c (_initialize_printcmd): Likewise.
3459 * stack.c (_initialize_stack): Likewise.
3460 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3461 incorrectly telling COMMAND is optional.
3462 * ada-lang.c (_initialize_ada_language): Change help doc or code
3463 producing the help doc to respect the invariants.
3464 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3465 * breakpoint.c (_initialize_breakpoint): Likewise.
3466 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3467 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3468 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3469 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3470 _initialize_cli_style): Likewise.
3471 * corelow.c (core_target_info): Likewise.
3472 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3473 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3474 * filesystem.c (_initialize_filesystem): Likewise.
3475 * frame.c (_initialize_frame): Likewise.
3476 * gnu-nat.c (add_task_commands): Likewise.
3477 * infcall.c (_initialize_infcall): Likewise.
3478 * infcmd.c (_initialize_infcmd): Likewise.
3479 * interps.c (_initialize_interpreter): Likewise.
3480 * language.c (_initialize_language): Likewise.
3481 * linux-fork.c (_initialize_linux_fork): Likewise.
3482 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3483 * maint.c (_initialize_maint_cmds): Likewise.
3484 * memattr.c (_initialize_mem): Likewise.
3485 * printcmd.c (_initialize_printcmd): Likewise.
3486 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3487 _RegEx): Likewise.
3488 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3489 * record-btrace.c (_initialize_record_btrace): Likewise.
3490 * record-full.c (_initialize_record_full): Likewise.
3491 * record.c (_initialize_record): Likewise.
3492 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3493 * regcache.c (_initialize_regcache): Likewise.
3494 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3495 _initialize_remote): Likewise.
3496 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3497 * serial.c (_initialize_serial): Likewise.
3498 * skip.c (_initialize_step_skip): Likewise.
3499 * source.c (_initialize_source): Likewise.
3500 * stack.c (_initialize_stack): Likewise.
3501 * symfile.c (_initialize_symfile): Likewise.
3502 * symtab.c (_initialize_symtab): Likewise.
3503 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3504 * top.c (init_main): Likewise.
3505 * tracefile-tfile.c (tfile_target_info): Likewise.
3506 * tracepoint.c (_initialize_tracepoint): Likewise.
3507 * tui/tui-win.c (_initialize_tui_win): Likewise.
3508 * utils.c (add_internal_problem_command): Likewise.
3509 * valprint.c (value_print_option_defs): Likewise.
3510
3511 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3512
3513 PR build/24886
3514 * configure.ac: Drop enable-libmcheck support.
3515 * configure, config.in: Rebuild.
3516 * libmcheck.m4: Remove.
3517 * acinclude.m4: Don't include it.
3518 * Makefile.in: Don't distribute it.
3519 * top.c (print_gdb_configuration): Don't mention it.
3520
3521 2019-08-06 Tom Tromey <tom@tromey.com>
3522
3523 * utils.c (set_output_style): Sometimes pass stream to
3524 emit_style_escape.
3525 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3526 * record-btrace.c (btrace_insn_history): Update.
3527 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3528 method.
3529 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3530 Update initializers.
3531 <m_uiout>: New field.
3532 <m_di>: Move lower.
3533 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3534 Remove "uiout" parameter.
3535 (dump_insns): Update.
3536 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3537 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3538
3539 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3540
3541 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3542 (error_in_psymtab_expansion): Likewise.
3543 (lookup_symbol_via_quick_fns): Likewise.
3544 (basic_lookup_transparent_type_quick): Likewise.
3545 (basic_lookup_transparent_type_1): Likewise.
3546
3547 2019-08-06 Tom Tromey <tromey@adacore.com>
3548
3549 * source.c (last_source_error): Now bool.
3550 (print_source_lines_base): Make "noprint" bool. Only open
3551 source file when last_source_visited changes.
3552
3553 2019-08-06 Tom Tromey <tromey@adacore.com>
3554
3555 * annotate.c (annotate_source_line): Use g_source_cache.
3556 * source-cache.c (source_cache::get_plain_source_lines): Change
3557 parameters. Populate m_offset_cache.
3558 (source_cache::ensure): New method.
3559 (source_cache::get_line_charpos): New method.
3560 (extract_lines): Move lower. Change parameters.
3561 (source_cache::get_source_lines): Move lower.
3562 * source-cache.h (class source_cache): Update comment.
3563 <get_line_charpos>: New method.
3564 <get_source_lines>: Update comment.
3565 <clear>: Clear m_offset_cache.
3566 <get_plain_source_lines>: Change parameters.
3567 <ensure>: New method
3568 <m_offset_cache>: New member.
3569 * source.c (forget_cached_source_info_for_objfile): Update.
3570 (info_source_command): Use g_source_cache.
3571 (find_source_lines, open_source_file_with_line_charpos): Remove.
3572 (print_source_lines_base, search_command_helper): Use g_source_cache.
3573 * source.h (open_source_file_with_line_charpos): Don't declare.
3574 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3575 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3576 Use g_source_cache.
3577
3578 2019-08-06 Tom Tromey <tromey@adacore.com>
3579
3580 * source-cache.c (source_cache::get_plain_source_lines):
3581 Remove "first_line" and "last_line" parameters.
3582 (source_cache::get_source_lines): Cache plain text.
3583 * source-cache.h (class source_cache)
3584 <get_plain_source_lines>: Update.
3585
3586 2019-08-06 Tom Tromey <tromey@adacore.com>
3587
3588 * source-cache.c (extract_lines): No longer a method.
3589 Changed type of parameter. Include final newline.
3590 (selftests::extract_lines_test): New function.
3591 (_initialize_source_cache): Likewise.
3592 * source-cache.h (class source_cache)
3593 <extract_lines>: Don't declare.
3594
3595 2019-08-06 Tom Tromey <tromey@adacore.com>
3596
3597 * breakpoint.c (init_breakpoint_sal): Update.
3598 (breakpoint): Update.
3599 * breakpoint.h (struct breakpoint) <filter>: Now a
3600 unique_xmalloc_ptr.
3601
3602 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3603
3604 * NEWS: Mention dictionary access on blocks.
3605 * python/py-block.c (blpy_getitem): New function.
3606 (block_object_as_mapping): New struct.
3607 (block_object_type): Use new struct for tp_as_mapping field.
3608
3609 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3610
3611 * objfiles.h (objfile): Add a comment describing partial symbols.
3612
3613 2019-08-05 Tom Tromey <tromey@adacore.com>
3614
3615 * compile/compile.c (_initialize_compile): Use _(), not N_().
3616 * thread.c (_initialize_thread): Use _(), not N_().
3617 * stack.c (_initialize_stack): Use _(), not N_().
3618 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3619
3620 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3621
3622 * dwarf2read.c (struct dw2_symtab_iterator):
3623 <want_specific_block>: Remove.
3624 <block_index>: Change type to gdb::optional.
3625 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3626 change type of BLOCK_INDEX parameter to gdb::optional.
3627 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3628 (dw2_lookup_symbol): Don't pass argument for
3629 WANT_SPECIFIC_BLOCK.
3630 (dw2_expand_symtabs_for_function): Don't pass argument for
3631 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3632 (class dw2_debug_names_iterator)
3633 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3634 parameter, change BLOCK_INDEX type to gdb::optional.
3635 <m_want_specific_block>: Remove.
3636 <m_block_index>: Change type to gdb::optional.
3637 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3638 gdb::optional. Re-write in function of gdb::optional.
3639 (dw2_debug_names_lookup_symbol): Don't pass argument for
3640 WANT_SPECIFIC_BLOCK.
3641 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3642 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3643 BLOCK_INDEX.
3644
3645 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3646
3647 * NEWS: Mention changes to "info sources" command.
3648
3649 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3650
3651 * symtab.c (filename_partial_match_opts): New struct type.
3652 (struct output_source_filename_data): New members
3653 regexp, c_regexp, partial_match.
3654 (output_source_filename): Use new members to decide to print file.
3655 (info_sources_option_defs): New variable.
3656 (make_info_sources_options_def_group, print_info_sources_header,
3657 info_sources_command_completer):
3658 New functions.
3659 (info_sources_command): Read new optional arguments.
3660 (_initialize_symtab): Update info sources help.
3661
3662 2019-08-02 Alexandre Oliva <oliva@adacore.com>
3663
3664 * ada-lang.c (exception_support_info_v0): Renamed from...
3665 (default_exception_support_info): ... this. Create new
3666 definition for v1.
3667 (ada_has_this_exception_support): Look up catch_handlers_sym.
3668 (ada_exception_support_info_sniffer): Try v0 after default.
3669
3670 2019-08-01 Tom Tromey <tromey@adacore.com>
3671
3672 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3673 gdbarch.h.
3674
3675 2019-08-01 Christian Biesinger <cbiesinger@google.com>
3676
3677 * s12z-tdep.c: Fix include path for s12z-opc.h.
3678
3679 2019-08-01 Alan Hayward <alan.hayward@arm.com>
3680
3681 * NEWS: Require GNU make 3.82.
3682
3683 2019-07-16 Tom Tromey <tom@tromey.com>
3684
3685 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3686 declare.
3687
3688 2019-07-30 Tom Tromey <tromey@adacore.com>
3689
3690 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3691
3692 2019-07-30 Kevin Buettner <kevinb@redhat.com>
3693
3694 * printcmd.c (print_address_symbolic): Print negative offsets.
3695 (build_address_symbolic): Force signed arithmetic when computing
3696 offset.
3697
3698 2019-07-30 Christian Biesinger <cbiesinger@google.com>
3699
3700 PR/24474: Add a function to lookup static variables.
3701 * NEWS: Mention this new function.
3702 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3703 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3704 * python/python.c (python_GdbMethods): Add new function.
3705
3706 2019-07-29 Christian Biesinger <cbiesinger@google.com>
3707
3708 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3709 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3710 (objfpy_lookup_static_symbol): New function.
3711 (objfile_object_methods): Add new functions.
3712
3713 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3714
3715 * NEWS: Mention 'set|show print frame-info'. Mention new
3716 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3717 backtrace argument. Mention that python frame filtering code
3718 is now consistent with what 'backtrace' command prints.
3719
3720 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3721
3722 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3723 comments.
3724 (print_frame_info_auto, print_frame_info_source_line,
3725 print_frame_info_location, print_frame_info_source_and_location,
3726 print_frame_info_location_and_address, print_frame_info_short_location):
3727 New declarations.
3728 (struct frame_print_options): New member print_frame_info.
3729 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3730 * stack.h (get_user_print_what_frame_info): New declaration.
3731 (frame_show_address): New declaration.
3732 * stack.c (print_frame_arguments_choices): New value 'presence'.
3733 (print_frame_info_auto, print_frame_info_source_line,
3734 print_frame_info_location, print_frame_info_source_and_location,
3735 print_frame_info_location_and_address, print_frame_info_short_location,
3736 print_frame_info_choices, print_frame_info_print_what): New definitions.
3737 (print_frame_args): Only print dots for args if print frame-arguments
3738 is 'presence'.
3739 (frame_print_option_defs): New element for "frame-info".
3740 (get_user_print_what_frame_info): New function.
3741 (frame_show_address): Make non static. Move comment to stack.h.
3742 (print_frame_info_to_print_what): New function.
3743 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3744 to decide what to print.
3745 (backtrace_command_1): Handle the new print_frame_arguments_presence
3746 value.
3747 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3748 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3749 (py_print_frame): In non-mi mode, use LOCATION as default for
3750 print_what, similarly to frame information printed directly by
3751 backtrace command. Handle frame-info user option in non MI mode.
3752
3753 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3754
3755 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3756 Add case for debugging 32-bit target on 64-bit host. Revise
3757 comment.
3758
3759 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3760
3761 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3762 instead of find_function_entry_range_from_pc.
3763
3764 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3765
3766 * stack.c (find_frame_funname): Remove code which preferred
3767 minsym over symtab sym in "certain pathological cases".
3768
3769 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3770 parameter. Change type of "do_demangle" to bool.
3771 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3772 Pass suitable "prefer_sym_over_minsym" flag to
3773 build_address_symbolic(). Don't output "+" for negative offsets.
3774 * printcmd.c (print_address_symbolic): Update invocation of
3775 build_address_symbolic to include a "prefer_sym_over_minsym"
3776 flag.
3777 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3778 Restrict cases in which use of minimal symbol is preferred to that
3779 of a found symbol. Update comments.
3780
3781 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3782 for entry pc when entry pc is out of range for that FDE.
3783
3784 2019-07-26 Brian Callahan <bcallah@openbsd.org>
3785
3786 PR gdb/24839:
3787 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3788 type.
3789
3790 2019-07-25 Christian Biesinger <cbiesinger@google.com>
3791
3792 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3793 this function's Python signature.
3794
3795
3796 2019-07-24 Christian Biesinger <cbiesinger@google.com>
3797
3798 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3799 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3800 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3801 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3802 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3803
3804
3805 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3806
3807 * h8300-tdep.c (h8300_register_name_common): New.
3808 h8300_register_name): Use h8300_register_name_common.
3809 (h8300s_register_name): Likewise.
3810 (h8300sx_register_name): Likewise.
3811 (h8300h_register_nam): New.
3812 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3813
3814
3815 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3816
3817 * arm-tdep.c (arm_skip_cmse_entry): New function.
3818 (arm_is_sgstubs_section): New function.
3819 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3820
3821 2019-07-22 Tom Tromey <tom@tromey.com>
3822
3823 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3824 Don't self-assign.
3825
3826 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3827
3828 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3829 type_print.
3830
3831 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3832
3833 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3834 so that GDB doesn't match any msymbols when searching in the
3835 TYPES_DOMAIN.
3836 (print_symbol_info): Print using typedef_print or type_print based
3837 on the type of the symbol. Add updated FIXME comment moved from...
3838 (_initialize_symtab): ... move and update FIXME comment to above.
3839
3840 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3841
3842 * NEWS: Mention adding -q option to "info types".
3843 * symtab.c (struct info_types_options): New struct.
3844 (info_types_options_defs): New variable.
3845 (make_info_types_options_def_group): New function.
3846 (info_types_command): Use gdb::option framework to parse options.
3847 (info_types_command_completer): New function.
3848 (_initialize_symtab): Extend the help text on "info types" and
3849 register command completer.
3850
3851 2019-07-21 Christian Biesinger <cbiesinger@google.com>
3852
3853 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3854 (lookup_symbol_in_objfile): Change int to block_enum and add a
3855 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3856
3857 2019-07-20 Christian Biesinger <cbiesinger@google.com>
3858
3859 * MAINTAINERS (Write After Approval): Add self.
3860
3861 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3862
3863 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3864 instruction to the dummy code region.
3865
3866 2019-07-19 Tom Tromey <tromey@adacore.com>
3867
3868 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3869 (ARGSUSED, PARAMS, __func__): Remove rules.
3870
3871 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3872
3873 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3874 * features/arm/arm-with-iwmmxt.c: Remove.
3875 * features/arm/arm-with-iwmmxt.xml: Remove.
3876 * features/arm/arm-with-m-fpa-layout.c: Remove.
3877 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3878 * features/arm/arm-with-m-vfp-d16.c: Remove.
3879 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3880 * features/arm/arm-with-m.c: Remove.
3881 * features/arm/arm-with-m.xml: Remove.
3882 * features/arm/arm-with-neon.c: Remove.
3883 * features/arm/arm-with-neon.xml: Remove.
3884 * features/arm/arm-with-vfpv2.c: Remove.
3885 * features/arm/arm-with-vfpv2.xml: Remove.
3886 * features/arm/arm-with-vfpv3.c: Remove.
3887 * features/arm/arm-with-vfpv3.xml: Remove.
3888
3889 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3890
3891 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3892
3893 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3894
3895 * arch/aarch32.c (aarch32_create_target_description): Create
3896 target descriptions using features.
3897 * arch/arm.c (arm_create_target_description)
3898 (arm_create_mprofile_target_description): Likewise.
3899 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3900
3901 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3902
3903 * Makefile.in: Add new files.
3904 * aarch32-tdep.c: New file.
3905 * aarch32-tdep.h: New file.
3906 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3907 Call aarch32_read_description.
3908 * arch/aarch32.c: New file.
3909 * arch/aarch32.h: New file.
3910 * arch/arm.c (arm_create_target_description)
3911 (arm_create_mprofile_target_description): New function.
3912 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3913 (arm_create_target_description)
3914 (arm_create_mprofile_target_description): New declaration.
3915 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3916 read_description functions.
3917 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3918 Likewise.
3919 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3920 * arm-tdep.c (tdesc_arm_list): New variable.
3921 (arm_register_g_packet_guesses): Call create description functions.
3922 (arm_read_description) (arm_read_mprofile_description): New
3923 function.
3924 * arm-tdep.h (arm_read_description)
3925 (arm_read_mprofile_description): Add declaration.
3926 * configure.tgt: Add new files.
3927
3928 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3929
3930 * top.c (new_ui_command): Open specified terminal just once.
3931
3932 2019-07-18 Tom Tromey <tromey@adacore.com>
3933
3934 * symtab.c (main_name): Constify return type.
3935 * symfile.c (set_initial_language): Update.
3936 * symtab.h (main_name): Constify return type.
3937
3938 2019-07-17 Tom Tromey <tom@tromey.com>
3939
3940 * tui/tui-winsource.c (tui_update_source_window)
3941 (tui_update_source_window_as_is)
3942 (tui_update_source_windows_with_line): Remove return.
3943 * tui/tui-disasm.c (tui_show_disassem)
3944 (tui_show_disassem_and_update_source): Remove return.
3945 * tui/tui.c (tui_reset): Remove return.
3946 * tui/tui-wingeneral.c
3947 (tui_check_and_display_highlight_if_needed): Remove return.
3948
3949 2019-07-17 Tom Tromey <tom@tromey.com>
3950
3951 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3952
3953 2019-07-17 Tom Tromey <tom@tromey.com>
3954
3955 * tui/tui-winsource.h (struct tui_exec_info_window)
3956 (struct tui_source_window_base): Move from tui-data.h.
3957 * tui/tui-winsource.c: Move many method definitions from
3958 elsewhere. Remove "structuring" comments.
3959 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3960 (tui_source_window_base::refresh_window): Move to
3961 tui-winsource.c.
3962 * tui/tui-win.c (tui_source_window_base::refresh_all)
3963 (tui_source_window_base::update_tab_width)
3964 (tui_source_window_base::set_new_height)
3965 (tui_source_window_base::do_make_visible_with_new_height): Move to
3966 tui-winsource.c.
3967 * tui/tui-source.h: Update.
3968 * tui/tui-source.c (tui_source_window_base::reset): Move to
3969 tui-winsource.c.
3970 * tui/tui-disasm.h: Update.
3971 * tui/tui-data.h (struct tui_exec_info_window): Move to
3972 tui-winsource.h.
3973 (struct tui_source_window_base): Likewise.
3974 * tui/tui-data.c (tui_source_window_base::clear_detail)
3975 (tui_source_window_base, ~tui_source_window_base): Move to
3976 tui-winsource.c.
3977
3978 2019-07-17 Tom Tromey <tom@tromey.com>
3979
3980 * tui/tui-win.c (tui_resize_all)
3981 (tui_source_window_base::update_tab_width)
3982 (tui_adjust_win_heights): Update.
3983 (tui_win_info::make_invisible_and_set_new_height): Rename from
3984 make_invisible_and_set_new_height.
3985 * tui/tui-data.h (struct tui_win_info)
3986 <make_invisible_and_set_new_height>: New method.
3987
3988 2019-07-17 Tom Tromey <tom@tromey.com>
3989
3990 * tui/tui.c: Update.
3991 * tui/tui-source.h (struct tui_source_window): Move from
3992 tui-data.h.
3993 * tui/tui-layout.c: Update.
3994 * tui/tui-disasm.c: Update.
3995 * tui/tui-data.h (struct tui_source_window): Move to
3996 tui-source.h.
3997
3998 2019-07-17 Tom Tromey <tom@tromey.com>
3999
4000 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4001 tui-data.h.
4002 * tui/tui-data.h (struct tui_disasm_window): Move to
4003 tui-disasm.h.
4004
4005 2019-07-17 Tom Tromey <tom@tromey.com>
4006
4007 * tui/tui-regs.h (struct tui_data_item_window): Move from
4008 tui-data.h.
4009 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4010 * tui/tui-data.h (struct tui_data_item_window): Move to
4011 tui-regs.h.
4012 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4013
4014 2019-07-17 Tom Tromey <tom@tromey.com>
4015
4016 * tui/tui.c: Update.
4017 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4018 (tui_cmd_window::max_height): Move to tui-command.c.
4019 * tui/tui-layout.c: Update.
4020 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4021 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4022 tui-command.c.
4023 * tui/tui-command.h (struct tui_cmd_window): Move from
4024 tui-data.h.
4025 * tui/tui-command.c: Remove "structuring" comments.
4026 (tui_cmd_window::clear_detail)
4027 (tui_cmd_window::do_make_visible_with_new_height)
4028 (tui_cmd_window::max_height): Move from elsewhere.
4029
4030 2019-07-17 Tom Tromey <tom@tromey.com>
4031
4032 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4033 Now static.
4034 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4035 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4036
4037 2019-07-17 Tom Tromey <tom@tromey.com>
4038
4039 * tui/tui.c: Update.
4040 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4041 tui-regs.c.
4042 * tui/tui-windata.h: Remove file.
4043 * tui/tui-windata.c: Remove file.
4044 * tui/tui-win.c (tui_data_window::set_new_height)
4045 (tui_data_window::do_make_visible_with_new_height): Move to
4046 tui-regs.c.
4047 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4048 * tui/tui-regs.c: Remove "structuring" comments.
4049 (tui_data_window::first_data_item_displayed)
4050 (tui_data_window::delete_data_content_windows)
4051 (tui_data_window::erase_data_content)
4052 (tui_data_window::display_all_data)
4053 (tui_data_window::refresh_all)
4054 (tui_data_window::do_scroll_vertical)
4055 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4056 (tui_data_window::do_make_visible_with_new_height)
4057 (tui_data_window::refresh_window): Move from elsewhere.
4058 (_initialize_tui_regs): Move to end of file.
4059 * tui/tui-layout.c: Update.
4060 * tui/tui-hooks.c: Update.
4061 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4062 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4063 tui-regs.c.
4064 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4065
4066 2019-07-17 Tom Tromey <tom@tromey.com>
4067
4068 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4069 seen.
4070
4071 2019-07-17 Tom Tromey <tom@tromey.com>
4072
4073 * tui/tui-win.c (tui_source_window_base::set_new_height)
4074 (tui_source_window_base::do_make_visible_with_new_height): Use
4075 m_has_locator field directly.
4076 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4077 method.
4078 (struct tui_source_window_base) <has_locator>: Likewise.
4079
4080 2019-07-17 Tom Tromey <tom@tromey.com>
4081
4082 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4083 Don't declare.
4084 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4085 Remove.
4086 * tui/tui-win.c (tui_source_window_base::set_new_height)
4087 (tui_source_window_base::set_new_height)
4088 (make_invisible_and_set_new_height)
4089 (tui_source_window_base::do_make_visible_with_new_height)
4090 (tui_source_window_base::do_make_visible_with_new_height):
4091 Update.
4092 * tui/tui-layout.c (show_source_disasm_command, show_data)
4093 (show_source_or_disasm_and_command): Update.
4094 * tui/tui-layout.c (show_layout): Update.
4095
4096 2019-07-17 Tom Tromey <tom@tromey.com>
4097
4098 * tui/tui-layout.c (make_data_window): Remove.
4099 (show_data): Unify creation and re-initialization cases.
4100
4101 2019-07-17 Tom Tromey <tom@tromey.com>
4102
4103 * tui/tui-layout.c (make_source_window, make_disasm_window):
4104 Remove.
4105 (show_data): Unify creation and re-initialization cases.
4106
4107 2019-07-17 Tom Tromey <tom@tromey.com>
4108
4109 * tui/tui-layout.c (make_command_window): Remove.
4110 (show_source_disasm_command, show_source_or_disasm_and_command):
4111 Unify creation and re-initialization cases.
4112
4113 2019-07-17 Tom Tromey <tom@tromey.com>
4114
4115 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4116 creation and re-initialization cases.
4117
4118 2019-07-17 Tom Tromey <tom@tromey.com>
4119
4120 * tui/tui-regs.c (tui_get_register): Return void.
4121
4122 2019-07-17 Tom Tromey <tom@tromey.com>
4123
4124 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4125 Simplify.
4126
4127 2019-07-17 Tom Tromey <tom@tromey.com>
4128
4129 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4130 resetting.
4131
4132 2019-07-17 Tom Tromey <tom@tromey.com>
4133
4134 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4135 * tui/tui-regs.c (tui_reg_layout): New function.
4136 (tui_show_registers, tui_reg_command): Use it.
4137 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4138 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4139 parameters.
4140 (tui_layout_command): Remove.
4141
4142 2019-07-17 Tom Tromey <tom@tromey.com>
4143
4144 * tui/tui-layout.h (tui/tui-layout): Return void.
4145 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4146
4147 2019-07-17 Tom Tromey <tom@tromey.com>
4148
4149 * tui/tui-layout.c (show_source_disasm_command, show_data):
4150 Update.
4151 (reset_locator): Remove.
4152 (show_source_or_disasm_and_command): Update.
4153
4154 2019-07-17 Tom Tromey <tom@tromey.com>
4155
4156 * tui/tui-source.c (tui_source_window_base::reset): Remove
4157 win_type parameter.
4158 * tui/tui-layout.c (make_command_window, make_source_window)
4159 (make_disasm_window, make_data_window)
4160 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4161 (reset_locator, show_source_or_disasm_and_command): Update.
4162 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4163 win_type parameter.
4164 (struct tui_source_window_base) <reset>: Likewise.
4165
4166 2019-07-17 Tom Tromey <tom@tromey.com>
4167
4168 * tui/tui-layout.c (show_source_disasm_command): Use
4169 reset_locator.
4170 (reset_locator): New function.
4171 (init_and_make_win): Remove.
4172 (show_source_or_disasm_and_command): Use reset_locator.
4173
4174 2019-07-17 Tom Tromey <tom@tromey.com>
4175
4176 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4177 condition.
4178 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4179 Remove condition.
4180 * tui/tui-source.c (tui_source_window_base::reset): New method.
4181 * tui/tui-layout.c (make_command_window): Don't call
4182 init_and_make_win.
4183 (make_source_window, make_disasm_window): Don't call
4184 make_source_or_disasm_window.
4185 (make_data_window): Don't call init_and_make_win. Change calling
4186 convention.
4187 (show_source_disasm_command, show_data): Simplify.
4188 (make_source_or_disasm_window): Remove.
4189 (show_source_or_disasm_and_command): Simplify.
4190 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4191 (struct tui_source_window_base) <reset>: Likewise.
4192 <execution_info>: Remove initializer.
4193 * tui/tui-data.c (tui_source_window_base): Initialize
4194 execution_info.
4195
4196 2019-07-17 Tom Tromey <tom@tromey.com>
4197
4198 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4199 variable.
4200
4201 2019-07-17 Tom Tromey <tom@tromey.com>
4202
4203 * tui/tui.c (tui_rl_other_window): Update.
4204 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4205 superclass method first. Always iterate over regs_content.
4206 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4207 method.
4208 * tui/tui-win.c (tui_set_focus_command): Update.
4209
4210 2019-07-17 Tom Tromey <tom@tromey.com>
4211
4212 * tui/tui-win.c (tui_set_focus_command): Rename from
4213 tui_set_focus. Call tui_enable.
4214 (tui_set_focus_command): Remove.
4215
4216 2019-07-17 Tom Tromey <tom@tromey.com>
4217
4218 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4219 refresh_window.
4220 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4221 touchwin.
4222 (tui_data_window::refresh_window): Call refresh_window on data
4223 items. Always call superclass refresh_window.
4224 (tui_win_info::refresh): Remove.
4225 (tui_source_window_base::refresh_window): Update.
4226 (tui_refresh_all): Update.
4227 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4228 refresh_window.
4229 (show_source_or_disasm_and_command): Likewise.
4230 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4231 (struct tui_source_window_base) <refresh>: Likewise.
4232
4233 2019-07-17 Tom Tromey <tom@tromey.com>
4234
4235 * tui/tui-winsource.c (tui_clear_source_content)
4236 (tui_show_source_content): Update.
4237 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4238 whether content is empty.
4239 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4240 Remove.
4241
4242 2019-07-17 Tom Tromey <tom@tromey.com>
4243
4244 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4245 window's contents.
4246 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4247 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4248
4249 2019-07-17 Tom Tromey <tom@tromey.com>
4250
4251 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4252 (struct tui_data_item_window): Update.
4253
4254 2019-07-17 Tom Tromey <tom@tromey.com>
4255
4256 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4257 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4258 defines.
4259
4260 2019-07-17 Tom Tromey <tom@tromey.com>
4261
4262 * tui/tui-winsource.h (tui_erase_source_content)
4263 (tui_clear_source_content): Remove "display_prompt" parameter.
4264 * tui/tui-winsource.c (tui_update_source_window_as_is)
4265 (tui_update_source_windows_with_addr): Update.
4266 (tui_clear_source_content): Remove "display_prompt" parameter.
4267 (tui_erase_source_content): Likewise. Simplify.
4268 (tui_show_source_content): Update.
4269 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4270 * tui/tui-stack.c (tui_show_frame_info): Update.
4271 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4272 Remove defines.
4273
4274 2019-07-17 Tom Tromey <tom@tromey.com>
4275
4276 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4277 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4278 parameter.
4279 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4280 parameter.
4281
4282 2019-07-17 Tom Tromey <tom@tromey.com>
4283
4284 * tui/tui-winsource.c (tui_clear_source_content)
4285 (tui_show_source_content, tui_show_exec_info_content)
4286 (tui_clear_exec_info_content): Update.
4287 * tui/tui-stack.c (tui_show_locator_content): Update.
4288 (tui_show_frame_info): Update.
4289 * tui/tui-source.h (tui_source_window): Don't declare.
4290 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4291 from tui_source_is_displayed.
4292 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4293 Remove field.
4294 (struct tui_source_window_base) <content_in_use>: New field. Now
4295 bool.
4296 (struct tui_source_window) <showing_source_p>: New method.
4297 (TUI_SRC_WIN): Change cast.
4298 * tui/tui-data.c (tui_initialize_static_data): Update.
4299
4300 2019-07-17 Tom Tromey <tom@tromey.com>
4301
4302 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4303 location_matches_p.
4304 * tui/tui-source.c (tui_source_window::location_matches_p): New
4305 method.
4306 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4307 method.
4308 * tui/tui-data.h (struct tui_source_window_base)
4309 <location_matches_p>: New method.
4310 (struct tui_source_window, struct tui_disasm_window)
4311 <location_matches_p>: Likewise.
4312
4313 2019-07-17 Tom Tromey <tom@tromey.com>
4314
4315 * tui/tui-win.c (tui_set_win_height_command): Rename from
4316 tui_set_win_height.
4317 (tui_set_win_height_command): Remove.
4318
4319 2019-07-17 Tom Tromey <tom@tromey.com>
4320
4321 * tui/tui-source.c (tui_source_window): New constructor. Add
4322 observer.
4323 (~tui_source_window): New destructor.
4324 (tui_source_window::style_changed): New method.
4325 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4326 (tui_attach_detach_observers): Update.
4327 * tui/tui-data.h (struct tui_source_window): Make constructor not
4328 inline. Add destructor.
4329 (struct tui_source_window) <style_changed>: New method.
4330 <m_observable>: New member.
4331
4332 2019-07-17 Tom Tromey <tom@tromey.com>
4333
4334 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4335 * tui/tui-win.c (tui_resize_all): Fix typo.
4336
4337 2019-07-17 Tom Tromey <tom@tromey.com>
4338
4339 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4340 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4341 (tui_refresh_all): Remove "list" parameter. Use foreach.
4342 * tui/tui-win.c (window_name_completer): Use foreach.
4343 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4344 (update_tab_width): Likewise.
4345 * tui/tui-layout.c (show_layout): Update.
4346 * tui/tui-data.h (class tui_window_iterator): New.
4347 (struct all_tui_windows): New.
4348 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4349
4350 2019-07-17 Tom Tromey <tom@tromey.com>
4351
4352 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4353 parameter. Don't reference globals.
4354 (tui_reg_command): Update.
4355
4356 2019-07-17 Tom Tromey <tom@tromey.com>
4357
4358 * tui/tui-regs.c (tui_show_registers): Simplify.
4359
4360 2019-07-17 Tom Tromey <tom@tromey.com>
4361
4362 * tui/tui-regs.c (tui_show_registers): Update.
4363 (tui_show_register_group): Add win_info parameter.
4364
4365 2019-07-17 Tom Tromey <tom@tromey.com>
4366
4367 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4368 Rename from tui_display_reg_element_at_line.
4369 (tui_data_window::display_registers_from_line): Update.
4370 * tui/tui-data.h (struct tui_data_window)
4371 <display_reg_element_at_line>: New method.
4372
4373 2019-07-17 Tom Tromey <tom@tromey.com>
4374
4375 * tui/tui-regs.h (tui_display_registers_from)
4376 (tui_display_registers_from_line): Don't declare.
4377 * tui/tui-windata.c (tui_data_window::display_all_data)
4378 (tui_data_window::refresh_all)
4379 (tui_data_window::do_scroll_vertical): Update.
4380 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4381 from tui_display_registers_from.
4382 (tui_display_reg_element_at_line): Update.
4383 (tui_data_window::display_registers_from_line): Rename from
4384 tui_display_registers_from_line.
4385 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4386 display_registers_from_line>: New methods.
4387
4388 2019-07-17 Tom Tromey <tom@tromey.com>
4389
4390 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4391 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4392 from tui_erase_data_content.
4393 (tui_data_window::display_all_data)
4394 (tui_data_window::refresh_all)
4395 (tui_data_window::do_scroll_vertical): Update.
4396 * tui/tui-regs.c (tui_show_registers): Update.
4397 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4398 New method.
4399
4400 2019-07-17 Tom Tromey <tom@tromey.com>
4401
4402 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4403 declare.
4404 * tui/tui-windata.c
4405 (tui_data_window::delete_data_content_windows): Rename from
4406 tui_delete_data_content_windows.
4407 (tui_data_window::display_all_data)
4408 (tui_data_window::do_scroll_vertical): Update.
4409 * tui/tui-data.h (struct tui_data_window)
4410 <delete_data_content_windows>: New method.
4411
4412 2019-07-17 Tom Tromey <tom@tromey.com>
4413
4414 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4415 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4416
4417 2019-07-17 Tom Tromey <tom@tromey.com>
4418
4419 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4420 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4421 from tui_display_all_data.
4422 * tui/tui-win.c
4423 (tui_data_window::do_make_visible_with_new_height): Update.
4424 * tui/tui-regs.c (tui_show_registers): Update.
4425 * tui/tui-layout.c (tui_set_layout): Update.
4426 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4427 method.
4428
4429 2019-07-17 Tom Tromey <tom@tromey.com>
4430
4431 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4432 * tui/tui-windata.c (tui_display_data_from): Remove.
4433 (tui_data_window::refresh_all): Update.
4434
4435 2019-07-17 Tom Tromey <tom@tromey.com>
4436
4437 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4438 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4439 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4440 tui_display_registers_from_line.
4441 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4442 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4443 "force_display" parameter.
4444
4445 2019-07-17 Tom Tromey <tom@tromey.com>
4446
4447 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4448 declare.
4449 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4450 Rename from tui_first_reg_element_no_inline.
4451 (tui_display_reg_element_at_line)
4452 (tui_display_registers_from_line): Update.
4453 * tui/tui-data.h (struct tui_data_window)
4454 <first_reg_element_no_inline>: New method.
4455
4456 2019-07-17 Tom Tromey <tom@tromey.com>
4457
4458 * tui/tui-windata.c (tui_display_data_from)
4459 (tui_data_window::do_scroll_vertical): Update.
4460 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4461 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4462 Rename from tui_line_from_reg_element_no.
4463 (tui_display_registers_from_line): Update.
4464 * tui/tui-data.h (struct tui_data_window)
4465 <line_from_reg_element_no>: New method.
4466
4467 2019-07-17 Tom Tromey <tom@tromey.com>
4468
4469 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4470 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4471 tui_last_regs_line_no.
4472 (tui_display_reg_element_at_line)
4473 (tui_display_registers_from_line): Update.
4474 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4475 method.
4476
4477 2019-07-17 Tom Tromey <tom@tromey.com>
4478
4479 PR tui/24722:
4480 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4481 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4482 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4483 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4484 (tui_update_breakpoint_info): Likewise.
4485 * tui/tui-hooks.c (tui_event_create_breakpoint)
4486 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4487 Update.
4488
4489 2019-07-17 Tom Tromey <tom@tromey.com>
4490
4491 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4492
4493 2019-07-17 Tom Tromey <tom@tromey.com>
4494
4495 * tui/tui-winsource.c (tui_update_source_window_as_is)
4496 (tui_update_source_windows_with_addr): Update.
4497 * tui/tui-source.h (tui_set_source_content)
4498 (tui_show_symtab_source): Add "win_info" parameter.
4499 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4500 parameter.
4501 (tui_show_symtab_source): Likewise.
4502
4503 2019-07-17 Tom Tromey <tom@tromey.com>
4504
4505 * tui/tui-wingeneral.c
4506 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4507
4508 2019-07-17 Tom Tromey <tom@tromey.com>
4509
4510 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4511 (struct tui_cmd_window) <can_scroll>: New method.
4512 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4513 method.
4514
4515 2019-07-17 Tom Tromey <tromey@adacore.com>
4516
4517 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4518 do_field_signed>: Rename. Change type of "value".
4519 * ui-out.c (ui_out::field_signed): Rename from field_int.
4520 Change type of "value".
4521 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4522 type of "value".
4523 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4524 do_field_int. Change type of "value".
4525 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4526 do_field_int. Change type of "value".
4527 * tracepoint.c (trace_status_mi, tfind_1)
4528 (print_one_static_tracepoint_marker): Update.
4529 * thread.c (print_thread_info_1, print_selected_thread_frame):
4530 Update.
4531 * stack.c (print_frame, print_frame_info): Update.
4532 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4533 Update.
4534 * source.c (print_source_lines_base): Update.
4535 * skip.c (info_skip_command): Update.
4536 * record-btrace.c (btrace_ui_out_decode_error)
4537 (btrace_call_history_src_line): Update.
4538 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4539 Update.
4540 * progspace.c (print_program_space): Update.
4541 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4542 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4543 do_field_int. Change type of "value".
4544 * mi/mi-out.c (mi_ui_out::do_table_begin)
4545 (mi_ui_out::do_table_header): Update.
4546 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4547 type of "value".
4548 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4549 (mi_cmd_data_list_changed_registers, output_register)
4550 (mi_cmd_data_read_memory, mi_load_progress)
4551 (mi_cmd_trace_frame_collected): Update.
4552 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4553 Update.
4554 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4555 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4556 (mi_cmd_var_list_children, varobj_update_one): Update.
4557 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4558 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4559 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4560 * inferior.c (print_inferior): Update.
4561 * gdb_bfd.c (print_one_bfd): Update.
4562 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4563 Update.
4564 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4565 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4566 do_field_int. Change type of "value".
4567 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4568 do_field_int. Change type of "value".
4569 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4570 (print_one_breakpoint_location, print_it_catch_fork)
4571 (print_one_catch_fork, print_it_catch_vfork)
4572 (print_one_catch_vfork, print_it_catch_solib)
4573 (print_it_catch_exec, print_it_ranged_breakpoint)
4574 (print_mention_watchpoint, print_mention_masked_watchpoint)
4575 (bkpt_print_it, update_static_tracepoint): Update.
4576 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4577 * break-catch-syscall.c (print_it_catch_syscall): Update.
4578 * ada-tasks.c (print_ada_task_info): Update.
4579 * ada-lang.c (print_it_exception, print_mention_exception):
4580 Update.
4581
4582 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4583
4584 PR breakpoints/24541
4585 * gdbarch.c: Regenerate.
4586 * gdbarch.h: Regenerate.
4587 * gdbarch.sh: Adjust return type and parameter types for
4588 'stap_adjust_register'.
4589 (i386_stap_adjust_register): Adjust signature and return new
4590 register name.
4591 * stap-probe.c (stap_parse_register_operand): Adjust use of
4592 'gdbarch_stap_adjust_register'.
4593
4594 2019-07-17 Tom Tromey <tromey@adacore.com>
4595
4596 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4597 declare VEC.
4598 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4599 std::vector.
4600 (struct s390_process_info): Add initializers.
4601 (s390_add_process): Use new.
4602 (s390_linux_nat_target::low_forget_process): Use delete.
4603 (s390_linux_nat_target::low_new_fork)
4604 (s390_linux_nat_target::stopped_by_watchpoint)
4605 (s390_linux_nat_target::low_prepare_to_resume)
4606 (s390_linux_nat_target::insert_watchpoint)
4607 (s390_linux_nat_target::insert_hw_breakpoint)
4608 (s390_linux_nat_target::remove_watchpoint)
4609 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4610
4611 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4612
4613 * aarch64-fbsd-nat.c: Include regcache.h.
4614 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4615 argument.
4616 (aarch64_fbsd_nat_target::fetch_registers)
4617 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4618 variable.
4619 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4620
4621 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4622
4623 * fbsd-nat.c: Include gdbarch.h.
4624
4625 2019-07-15 Tom Tromey <tromey@adacore.com>
4626
4627 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4628
4629 2019-07-15 Tom Tromey <tromey@adacore.com>
4630
4631 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4632 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4633 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4634 * cli-out.c (cli_ui_out::do_field_int): New method.
4635 * ui-out.c (ui_out::field_unsigned): New method.
4636 * symfile.c (generic_load): Use field_unsigned.
4637 (print_transfer_performance): Likewise.
4638 * record-btrace.c (ui_out_field_uint): Remove.
4639 (btrace_call_history_insn_range, btrace_call_history): Use
4640 field_unsigned.
4641 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4642 field_unsigned.
4643 * ui-out.h (class ui_out) <field_unsigned>: New method.
4644 <do_field_unsigned>: Likewise.
4645
4646 2019-07-15 Tom Tromey <tromey@adacore.com>
4647
4648 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4649 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4650 * target.c (flash_erase_command): Use field_string.
4651 * infrun.c (print_signal_received_reason): Use field_string.
4652 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4653 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4654 field_string.
4655 * ada-tasks.c (print_ada_task_info): Use field_string.
4656
4657 2019-07-15 Tom Tromey <tromey@adacore.com>
4658
4659 * target.c (flash_erase_command): Use field_core_addr.
4660 * symfile.c (generic_load): Use field_core_addr.
4661 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4662 Use field_core_addr.
4663 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4664 field_core_addr.
4665
4666 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4667
4668 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4669 value if its desired type is smaller than a CORE_ADDR and signed.
4670
4671 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4672
4673 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4674 of changes to field names, and use new is_reference field to
4675 decide if a property is a reference or not.
4676 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4677 field.
4678 (struct dwarf2_property_baton): Update header comment, rename
4679 'referenced_type' to 'property_type' and update comments.
4680 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4681 default property type, store in property baton, update to take
4682 accound of renamed field.
4683 (read_func_scope): Update call to attr_to_dynamic_prop.
4684 (read_array_type): Likewise.
4685 (dwarf2_per_cu_addr_sized_int_type): New function.
4686 (read_subrange_index_type): Move type finding code to
4687 dwarf2_per_cu_addr_sized_int_type.
4688 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4689 (dwarf2_per_cu_addr_type): New function.
4690 (set_die_type): Update calls to attr_to_dynamic_prop.
4691
4692 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4693
4694 * dwarf2read.c (read_subrange_index_type): New function.
4695 (read_subrange_type): Move code into new function and call it.
4696 * gdbtypes.c (create_range_type): Add some asserts.
4697
4698 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4699
4700 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4701 update return statements.
4702 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4703 declaration, and update comment to match.
4704 * gdbtypes.c (resolve_dynamic_array): Update call to
4705 dwarf2_evaluate_property to match new return type.
4706
4707 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4708
4709 * valarith.c (value_subscripted_rvalue): Change lowerbound
4710 parameter type from int to LONGEST.
4711 * value.h (value_subscripted_rvalue): Likewise in declaration.
4712
4713 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4714
4715 * cli/cli-utils.c (info_print_command_completer): New function.
4716 * cli/cli-utils.h: Add 'completer.h' include, and forward
4717 declaration for 'struct cmd_list_element'.
4718 (info_print_command_completer): Declare.
4719 * stack.c (_initialize_stack): Add completer for 'info locals' and
4720 'info args'.
4721 * symtab.c (_initialize_symtab): Add completer for 'info
4722 variables' and 'info functions'.
4723 * NEWS: Mention completion for additional info commands.
4724
4725 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4726
4727 * cli/cli-utils.c (extract_info_print_args): Delete.
4728 (extract_arg_maybe_quoted): Delete.
4729 (info_print_options_defs): New variable.
4730 (make_info_print_options_def_group): New function.
4731 (extract_info_print_options): Define new function.
4732 * cli/cli-utils.h (extract_info_print_args): Delete.
4733 (struct info_print_options): New structure.
4734 (extract_info_print_options): Declare new function.
4735 * stack.c (info_locals_command): Update to use new
4736 extract_info_print_options, also add a header comment.
4737 (info_args_command): Likewise.
4738 * symtab.c (info_variables_command): Likewise.
4739 (info_functions_command): Likewise.
4740
4741 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4742
4743 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4744 to extract string arguments.
4745 * common/common-utils.c (extract_string_maybe_quoted): New function.
4746 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4747
4748 2019-07-11 Tom Tromey <tromey@adacore.com>
4749
4750 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4751 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4752 * top.h (gdbinit): Don't declare.
4753 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4754 into...
4755 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4756 * top.c (gdb_init): Don't call init_cli_cmds.
4757 (gdbinit): Remove.
4758 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4759
4760 2019-07-11 Tom Tromey <tromey@adacore.com>
4761
4762 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4763 after it has been moved.
4764
4765 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4766
4767 * valops.c (value_must_coerce_to_target): Change return type to
4768 bool.
4769 * value.h (value_must_coerce_to_target): Likewise.
4770
4771 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
4772
4773 * breakpoint.c (is_hardware_watchpoint): Remove
4774 forward-declaration.
4775 (is_masked_watchpoint): Change return type to bool.
4776 (is_tracepoint): Likewise.
4777 (is_breakpoint): Likewise.
4778 (is_hardware_watchpoint): Likewise.
4779 (is_watchpoint): Likewise.
4780 (is_no_memory_software_watchpoint): Likewise.
4781 (is_catchpoint): Likewise.
4782 (breakpoint_1): Make FILTER parameter's return type bool.
4783 is_masked_watchpoint): Change return type to bool.
4784 (save_breakpoints): Make FILTER parameter's return type bool.
4785 * breakpoint.h (is_breakpoint): Change return type to bool.
4786 (is_watchpoint): Likewise.
4787 (is_catchpoint): Likewise.
4788 (is_tracepoint): Likewise.
4789
4790 2019-07-10 Tom Tromey <tom@tromey.com>
4791
4792 * defs.h: Don't include gdbarch.h.
4793 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4794 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4795 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4796 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4797 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4798 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4799 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4800 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4801 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4802 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4803 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4804 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4805 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4806 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4807 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4808 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4809 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4810 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4811 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4812 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4813 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4814 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4815 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4816 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4817 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4818 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4819 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4820
4821 2019-07-10 Tom Tromey <tromey@adacore.com>
4822
4823 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4824 * breakpoint.c (init_ada_exception_breakpoint): Register as
4825 bp_catchpoint.
4826 (print_one_breakpoint_location, print_one_breakpoint): Use
4827 is_ada_exception_catchpoint.
4828 * ada-lang.c (class ada_catchpoint_location): Pass
4829 bp_loc_software_breakpoint to bp_location constructor.
4830 (is_ada_exception_catchpoint): New function.
4831
4832 2019-07-10 Tom Tromey <tromey@adacore.com>
4833
4834 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4835 VEC.
4836 (struct arm_exidx_entry): New method operator<.
4837 (struct arm_exidx_data) <section_maps>: Change type.
4838 (arm_exidx_data_free): Remove.
4839 (arm_exidx_data_key): Change type. Move lower.
4840 (arm_exidx_new_objfile): Update.
4841 (arm_compare_exidx_entries): Remove.
4842 (arm_find_exidx_entry, _initialize_arm_tdep)
4843
4844 2019-07-10 Tom Tromey <tromey@adacore.com>
4845
4846 * solib-spu.c (ocl_program_data_key): Change type.
4847 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4848 Update.
4849
4850 2019-07-10 Tom Tromey <tromey@adacore.com>
4851
4852 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4853 (struct solib_aix_inferior_data) <library_list>: Change type.
4854 (solib_aix_inferior_data_handle): Change type.
4855 (get_solib_aix_inferior_data): Update.
4856 (solib_aix_free_library_list): Remove.
4857 (library_list_start_library): Update.
4858 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4859 return type.
4860 (solib_aix_get_library_list)
4861 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4862 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4863
4864 2019-07-10 Tom Tromey <tromey@adacore.com>
4865
4866 * solib-dsbt.c (struct dsbt_info): Add initializers.
4867 (solib_dsbt_pspace_data): Change type.
4868 (dsbt_pspace_data_cleanup): Remove.
4869 (get_dsbt_info, _initialize_dsbt_solib): Update.
4870
4871 2019-07-10 Tom Tromey <tromey@adacore.com>
4872
4873 * spu-tdep.c (spu_overlay_data): Change type.
4874 (spu_get_overlay_table, spu_overlay_new_objfile)
4875 (_initialize_spu_tdep): Update.
4876
4877 2019-07-10 Tom Tromey <tromey@adacore.com>
4878
4879 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4880 destructor.
4881 (dbx_objfile_data_key): Change type and declare later.
4882 (DBX_SYMFILE_INFO): Rewrite.
4883 * dbxread.c (dbx_objfile_data_key): Change type.
4884 (dbx_symfile_init): Update.
4885 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4886 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4887 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4888
4889 2019-07-10 Tom Tromey <tromey@adacore.com>
4890
4891 * jit.c (jit_program_space_key): Change type. Move lower.
4892 (get_jit_program_space_data): Update.
4893 (jit_program_space_data_cleanup): Remove.
4894 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4895 Update.
4896 (struct jit_program_space_data): Add initializers.
4897
4898 2019-07-10 Tom Tromey <tromey@adacore.com>
4899
4900 * solib-darwin.c (struct darwin_info): Add initializers.
4901 (solib_darwin_pspace_data): Change type.
4902 (darwin_pspace_data_cleanup): Remove.
4903 (get_darwin_info, _initialize_darwin_solib): Update.
4904
4905 2019-07-10 Tom Tromey <tromey@adacore.com>
4906
4907 * remote-sim.c (struct sim_inferior_data): Add initializers,
4908 constructor, and destructor.
4909 (sim_inferior_data_key): Change type. Move lower.
4910 (check_for_duplicate_sim_descriptor): Update.
4911 (get_sim_inferior_data): Use new. Update.
4912 (~sim_inferior_data_cleanup): Rename from
4913 sim_inferior_data_cleanup. Simplify.
4914 (gdbsim_close_inferior, simulator_command)
4915 (sim_command_completer, _initialize_remote_sim): Update.
4916 (next_pid, INITIAL_PID): Move earlier.
4917
4918 2019-07-10 Tom Tromey <tromey@adacore.com>
4919
4920 * python/python-internal.h (create_thread_object): Return
4921 gdbpy_ref.
4922 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4923 * python/py-inferior.c (struct threadlist_entry): Add
4924 constructor.
4925 <thread_obj>: Now a gdbpy_ref.
4926 (thread_to_thread_object): Update.
4927 (add_thread_object): Use new.
4928 (delete_thread_object): Use delete.
4929 (infpy_threads): Update.
4930 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4931 GIL.
4932
4933 2019-07-10 Tom Tromey <tromey@adacore.com>
4934
4935 * valops.c (value_cast): Specialize error message for Ada.
4936
4937 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4938
4939 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4940
4941 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4942
4943 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4944 bpstat_should_step): Return bool, adjust comments.
4945 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4946 bpstat_should_step): Likewise.
4947
4948 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4949
4950 * features/Makefile: Use feature target descriptions for Arm.
4951 * features/arm/arm-core.c: Generate new file.
4952 * features/arm/arm-fpa.c: Likewise.
4953 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4954 * features/arm/arm-m-profile.c: Likewise.
4955 * features/arm/arm-vfpv2.c: Likewise.
4956 * features/arm/arm-vfpv3.c: Likewise.
4957 * features/arm/xscale-iwmmxt.c: Likewise.
4958 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4959
4960 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4961
4962 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4963 ptrace earlier.
4964
4965 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4966
4967 * features/aarch64-pauth.c: Regenerate.
4968
4969 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4970
4971 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4972 bool.
4973 (bpstat_what): Use false instead of 0.
4974
4975 2019-07-09 Pedro Alves <palves@redhat.com>
4976
4977 * break-catch-throw.c (is_exception_catchpoint): New.
4978 * breakpoint.c (print_one_breakpoint_location): New parameter
4979 'raw_loc'. Handle it. Use
4980 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4981 looking at the breakpoint's type.
4982 (print_one_breakpoint): If handling "maint info breakpoints", also
4983 print locations of exception catchpoints.
4984 * breakpoint.h (is_exception_catchpoint): Declare.
4985
4986 2019-07-09 Pedro Alves <palves@redhat.com>
4987
4988 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4989 "addr" field.
4990 (allocate_location_exception_catchpoint): New.
4991 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4992 (initialize_throw_catchpoint_ops): Install
4993 allocate_location_exception_catchpoint as allocate_location
4994 method.
4995 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4996 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4997 bp_loc_other.
4998 (breakpoint_address_is_meaningful): Delete.
4999 (bl_address_is_meaningful): New.
5000 (breakpoint_locations_match): Adjust comment.
5001 (bp_location_from_bp_type): New, factored out of...
5002 (bp_location::bp_location(breakpoint *)): ... this.
5003 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5004 factored out of...
5005 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5006 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5007 breakpoint_address_is_meaningful.
5008 (bp_locations_compare): Adjust comment.
5009 (update_global_location_list): Use bl_address_is_meaningful
5010 instead of breakpoint_address_is_meaningful.
5011 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5012 explicit.
5013 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5014 * python/py-breakpoint.c (bppy_get_location): No longer check
5015 whether location is null.
5016
5017 2019-07-09 Pedro Alves <palves@redhat.com>
5018
5019 PR c++/15468
5020 * breakpoint.c (print_one_breakpoint_location): Remove
5021 single-location assert.
5022
5023 2019-07-09 Tom Tromey <tom@tromey.com>
5024
5025 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5026 * configure: Rebuild.
5027 * configure.ac: Change common to gdbsupport.
5028 * gdbsupport: Rename from common.
5029 * acinclude.m4: Change common to gdbsupport.
5030 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5031 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5032 gdbsupport.
5033 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5034 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5035 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5036 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5037 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5038 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5039 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5040 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5041 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5042 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5043 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5044 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5045 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5046 coff-pe-read.c, command.h, compile/compile-c-support.c,
5047 compile/compile-c.h, compile/compile-cplus-symbols.c,
5048 compile/compile-cplus-types.c, compile/compile-cplus.h,
5049 compile/compile-loc2c.c, compile/compile.c, completer.c,
5050 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5051 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5052 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5053 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5054 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5055 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5056 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5057 features/aarch64-core.c, features/aarch64-fpu.c,
5058 features/aarch64-pauth.c, features/aarch64-sve.c,
5059 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5060 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5061 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5062 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5063 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5064 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5065 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5066 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5067 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5068 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5069 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5070 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5071 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5072 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5073 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5074 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5075 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5076 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5077 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5078 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5079 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5080 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5081 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5082 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5083 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5084 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5085 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5086 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5087 minsyms.c, mips-linux-tdep.c, namespace.h,
5088 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5089 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5090 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5091 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5092 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5093 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5094 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5095 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5096 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5097 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5098 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5099 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5100 procfs.c, producer.c, progspace.h, psymtab.h,
5101 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5102 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5103 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5104 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5105 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5106 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5107 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5108 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5109 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5110 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5111 target-memory.c, target.c, target.h, target/waitstatus.c,
5112 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5113 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5114 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5115 unittests/array-view-selftests.c,
5116 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5117 unittests/common-utils-selftests.c,
5118 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5119 unittests/format_pieces-selftests.c,
5120 unittests/function-view-selftests.c,
5121 unittests/lookup_name_info-selftests.c,
5122 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5123 unittests/mkdir-recursive-selftests.c,
5124 unittests/observable-selftests.c,
5125 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5126 unittests/parse-connection-spec-selftests.c,
5127 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5128 unittests/scoped_fd-selftests.c,
5129 unittests/scoped_mmap-selftests.c,
5130 unittests/scoped_restore-selftests.c,
5131 unittests/string_view-selftests.c, unittests/style-selftests.c,
5132 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5133 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5134 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5135 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5136 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5137 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5138
5139 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5140
5141 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5142 bool value.
5143 (decode_digits_ordinary): Set explicit_line field in sal.
5144 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5145 symtab_and_line that was set on an explicit line number in
5146 assembler code. Do always update the recorded symtab and line if
5147 we do skip the prologue.
5148
5149 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5150
5151 * breakpoint.c (set_breakpoint_location_function): Remove
5152 explicit_loc parameter.
5153 (momentary_breakpoint_from_master): Update call to
5154 set_breakpoint_location_function.
5155 (add_location_to_breakpoint): Likewise.
5156
5157 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5158
5159 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5160 required features based on default bfd type when no specific bfd
5161 is present.
5162
5163 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5164
5165 * NEWS: Mention that GDB printf and eval commands can now print
5166 C-style and Ada-style convenience var strings without
5167 calling the inferior.
5168 * printcmd.c (printf_c_string): Locally print GDB internal var
5169 instead of transiting via the inferior.
5170 (printf_wide_c_string): Likewise.
5171
5172 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5173
5174 PR breakpoints/25011
5175 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5176
5177 2019-07-04 Tom Tromey <tom@tromey.com>
5178
5179 PR tui/24724:
5180 * tui/tui-winsource.c (tui_clear_source_content): Update.
5181 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5182 (tui_update_breakpoint_info): Update.
5183 (tui_set_exec_info_content): Update.
5184 * tui/tui-source.c (tui_set_source_content_nil): Update.
5185 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5186 has_break.
5187 * tui/tui-data.h (enum tui_bp_flag): New.
5188 (tui_bp_flags): New enum flags type.
5189 (struct tui_source_element) <break_mode>: Change type. Rename
5190 from has_break.
5191 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5192 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5193 constants.
5194 * tui/tui-winsource.h: Fix comment.
5195
5196 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5197
5198 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5199 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5200 (store_fpregs_to_thread)
5201 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5202 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5203 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5204 (IWMMXT_REGS_SIZE): Add define.
5205 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5206 (fetch_vfp_regs, store_vfp_regs)
5207 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5208 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5209
5210 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5211
5212 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5213 defines.
5214 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5215 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5216 (ARM_INT_REGISTER_SIZE): ...to this.
5217 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5218 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5219 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5220 (arm_linux_collect_gregset, supply_nwfpe_register)
5221 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5222 defines.
5223 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5224 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5225 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5226 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5227 (arm_return_in_memory, arm_store_return_value)
5228 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5229 (arm_record_ld_st_multiple): Likewise.
5230 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5231 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5232
5233 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5234
5235 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5236 AARCH64_DISPLACED_MODIFIED_INSNS.
5237 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5238 (aarch64_displaced_step_copy_insn): Likewise.
5239 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5240 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5241 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5242 ARM_DISPLACED_MODIFIED_INSNS.
5243 * arm-tdep.c (arm_gdbarch_init): Likewise.
5244 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5245 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5246 (struct arm_displaced_step_closure): Use
5247 ARM_DISPLACED_MODIFIED_INSNS.
5248
5249 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5250
5251 * features/Makefile: Remove unused xml files.
5252 * features/aarch64.xml: Remove.
5253 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5254 * features/i386/amd64-avx-avx512.xml: Remove.
5255 * features/i386/amd64-avx-linux.xml: Remove.
5256 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5257 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5258 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5259 * features/i386/amd64-avx-mpx.xml: Remove.
5260 * features/i386/amd64-avx.xml: Remove.
5261 * features/i386/amd64-linux.xml: Remove.
5262 * features/i386/amd64-mpx-linux.xml: Remove.
5263 * features/i386/amd64-mpx.xml: Remove.
5264 * features/i386/amd64.xml: Remove.
5265 * features/i386/i386-avx-avx512-linux.xml: Remove.
5266 * features/i386/i386-avx-avx512.xml: Remove.
5267 * features/i386/i386-avx-linux.xml: Remove.
5268 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5269 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5270 * features/i386/i386-avx-mpx-linux.xml: Remove.
5271 * features/i386/i386-avx-mpx.xml: Remove.
5272 * features/i386/i386-avx.xml: Remove.
5273 * features/i386/i386-linux.xml: Remove.
5274 * features/i386/i386-mmx-linux.xml: Remove.
5275 * features/i386/i386-mmx.xml: Remove.
5276 * features/i386/i386-mpx-linux.xml: Remove.
5277 * features/i386/i386-mpx.xml: Remove.
5278 * features/i386/i386.xml: Remove.
5279 * features/i386/x32-avx-avx512-linux.xml: Remove.
5280 * features/i386/x32-avx-linux.xml: Remove.
5281 * features/i386/x32-linux.xml: Remove.
5282
5283 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5284
5285 * regformats/aarch64.dat: Remove.
5286 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5287 * regformats/i386/amd64-avx-linux.dat: Remove.
5288 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5289 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5290 * regformats/i386/amd64-linux.dat: Remove.
5291 * regformats/i386/amd64-mpx-linux.dat: Remove.
5292 * regformats/i386/amd64.dat: Remove.
5293 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5294 * regformats/i386/i386-avx-linux.dat: Remove.
5295 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5296 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5297 * regformats/i386/i386-linux.dat: Remove.
5298 * regformats/i386/i386-mmx-linux.dat: Remove.
5299 * regformats/i386/i386-mpx-linux.dat: Remove.
5300 * regformats/i386/i386.dat: Remove.
5301 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5302 * regformats/i386/x32-avx-linux.dat: Remove.
5303 * regformats/i386/x32-linux.dat: Remove.
5304
5305 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5306
5307 * aarch64-tdep.c: Remove xml self tests.
5308 * amd64-linux-tdep.c: Likewise.
5309 * amd64-tdep.c: Likewise.
5310 * i386-linux-tdep.c: Likewise.
5311 * i386-tdep.c: Likewise.
5312
5313 2019-07-03 Pedro Alves <palves@redhat.com>
5314
5315 PR cli/24732
5316 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5317 (pipe_cmd_option_defs): New.
5318 (make_pipe_cmd_options_def_group): New.
5319 (pipe_command): Use gdb::option::process_options.
5320 (pipe_command_completer): New function.
5321 (_initialize_cli_cmds): Install completer for "pipe" command.
5322
5323 2019-07-03 Pedro Alves <palves@redhat.com>
5324
5325 * cli/cli-option.c (union option_value) <string>: New field.
5326 (struct option_def_and_value): Add ctor, move ctor, dtor and
5327 use DISABLE_COPY_AND_ASSIGN.
5328 (option_def_and_value::clear_value): New.
5329 (parse_option, save_option_value_in_ctx, get_val_type_str)
5330 (add_setshow_cmds_for_options): Handle var_string.
5331 * cli-option.h (union option_def::var_address) <string>: New
5332 field.
5333 (struct string_option_def): New.
5334 * maint-test-options.c (struct test_options_opts): Add default
5335 ctor and use DISABLE_COPY_AND_ASSIGN.
5336 <string_opt>: New field.
5337 (test_options_opts::~test_options_opts): New.
5338 (test_options_opts::dump): Also dump "-string".
5339 (test_options_option_defs): Install "string.
5340
5341 2019-07-03 Pedro Alves <palves@redhat.com>
5342
5343 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5344 option_value with a null enumeration.
5345 (complete_options): Save the option values in the context.
5346 (save_option_value_in_ctx): New, factored out from ...
5347 (process_options): ... here.
5348 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5349 of the function.
5350 * maint-test-options.c (test_options_opts::dump): New, factored
5351 out from ...
5352 (maintenance_test_options_command_mode): ... here.
5353 (maintenance_test_options_command_completion_result): Delete.
5354 (maintenance_test_options_command_completion_text): Update
5355 comment.
5356 (maintenance_show_test_options_completion_result): Change
5357 prototype. Just print
5358 maintenance_test_options_command_completion_text.
5359 (save_completion_result): New.
5360 (maintenance_test_options_completer_mode): Pass options context to
5361 complete_options, and then save a dump.
5362 (_initialize_maint_test_options): Use add_cmd to install "maint
5363 show test-options-completion-result".
5364
5365 2019-07-03 Pedro Alves <palves@redhat.com>
5366
5367 * NEWS (New commands): Mention "with" and "maint with".
5368 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5369 (with_command, with_command_completer): New.
5370 (pipe_command): Adjust to new repeat_previous
5371 interface.
5372 (_initialize_cli_cmds): Install the "with" command and its "w"
5373 alias.
5374 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5375 declarations.
5376 * cli/cli-setshow.c (parse_cli_var_uinteger)
5377 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5378 argument strings for all var_types.
5379 (get_setshow_command_value_string): New, factored out from ...
5380 (do_show_command): ... this.
5381 * cli/cli-setshow.h: Include <string>.
5382 (get_setshow_command_value_string): Declare.
5383 * command.h (repeat_previous): Now returns const char *. Adjust
5384 comment.
5385 * maint.c: Include "cli/cli-cmds.h".
5386 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5387 (_initialize_maint_cmds): Register the "maintenance with" command.
5388 * top.c (repeat_previous): Move bits from pipe_command here:
5389 Return the saved command line, if any; error out if there's no
5390 command to relaunch.
5391
5392 2019-07-03 Pedro Alves <palves@redhat.com>
5393
5394 * NEWS (New commands): Mention "maint set/show test-settings"
5395 instead of "maint test-settings".
5396 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5397 (maintenance_test_settings_set_list): Rename to ...
5398 (maintenance_set_test_settings_list): ... this.
5399 (maintenance_test_settings_show_list): Rename to ...
5400 (maintenance_show_test_settings_list): ... this.
5401 (maintenance_test_settings_cmd): Delete.
5402 (maintenance_test_settings_set_cmd): ...
5403 (maintenance_set_test_settings_cmd): ... this.
5404 (maintenance_test_settings_show_cmd): ...
5405 (maintenance_show_test_settings_cmd): ... this.
5406 (maintenance_test_settings_show_value_cmd):
5407 (maintenance_show_test_settings_value_cmd): ... this.
5408 (_initialize_maint_test_settings): No longer install the "maint
5409 test-settings" prefix command. Rename "maint test-settings set"
5410 to "maint set test-settings", and "maint test-settings show" to
5411 "maint show test-settings". Adjust all subcommands.
5412
5413 2019-07-03 Pedro Alves <palves@redhat.com>
5414
5415 * maint-test-settings.c: Fix file's intro comment. Replace all
5416 references to "test-options" with references to "test-settings",
5417 in comments.
5418
5419 2019-07-03 Pedro Alves <palves@redhat.com>
5420
5421 * maint-test-settings.c (maintenance_test_settings_xxx)
5422 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5423 New.
5424 (maintenance_test_settings_enums): Use them.
5425 (maintenance_test_settings_enum): Default to
5426 maintenance_test_settings_xxx.
5427 (_initialize_maint_test_settings): Initialize
5428 MAINTENANCE_TEST_SETTINGS_FILENAME.
5429
5430 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5431
5432 * breakpoint.h (remove_breakpoints_inf): Change return type to
5433 void, move function documentation here.
5434 * breakpoint.c (remove_breakpoints_inf): Change return type to
5435 void, move function documentation to header.
5436
5437 2019-07-02 Pedro Alves <palves@redhat.com>
5438
5439 * NEWS (Completion improvements): Mention "info threads".
5440 * thread.c (struct info_threads_opts, info_threads_option_defs)
5441 (make_info_threads_options_def_group): New.
5442 (info_threads_command): Use gdb::option::process_options.
5443 (info_threads_command_completer): New.
5444 (_initialize_thread): Use gdb::option::build_help to build the
5445 help text for "info threads".
5446
5447 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5448
5449 * defs.h (generic_load): Move from here...
5450 * symfile.h (generic_load): ... to here. Rename name parameter
5451 to args.
5452 * symfile.c (generic_load): Add comment.
5453
5454 2019-07-01 Tom Tromey <tromey@adacore.com>
5455
5456 * dwarf2read.c
5457 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5458 declaration of without_params. Fix formatting.
5459
5460 2019-07-01 Tom Tromey <tromey@adacore.com>
5461
5462 * ada-exp.y (find_primitive_type): Update.
5463 * ada-lang.h (ada_lookup_symbol): Update.
5464 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5465 parameter.
5466 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5467
5468 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5469
5470 PR breakpoints/24541
5471 * gdbarch.c: Regenerate.
5472 * gdbarch.h: Regenerate.
5473 * gdbarch.sh: Add 'stap_adjust_register'.
5474 * i386-tdep.c: Include '<unordered_set>'.
5475 (i386_stap_adjust_register): New function.
5476 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5477 * stap-probe.c (stap_parse_register_operand): Call
5478 'gdbarch_stap_adjust_register'.
5479
5480 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5481
5482 PR python/24742
5483 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5484 * python/python.c (do_start_initialization): Use 'xmalloc'
5485 instead of 'PyMem_Malloc'.
5486
5487 2019-06-28 Tom Tromey <tromey@adacore.com>
5488
5489 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5490 for Ada.
5491
5492 2019-06-27 Tom Tromey <tromey@adacore.com>
5493
5494 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5495 objfile_key.
5496 (arm_find_mapping_symbol, arm_record_special_symbol)
5497 (_initialize_arm_tdep): Update.
5498 (arm_objfile_data_free): Remove.
5499
5500 2019-06-27 Tom Tromey <tromey@adacore.com>
5501
5502 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5503 to cp_print_static_field.
5504
5505 2019-06-26 Tom Tromey <tromey@adacore.com>
5506
5507 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5508 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5509 declare.
5510
5511 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5512
5513 * features/aarch64-core.c (create_feature_aarch64_core):
5514 Regenerate.
5515 * features/aarch64-core.xml: Add cpsr flags.
5516
5517 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5518
5519 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5520 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5521
5522 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5523
5524 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5525 field.
5526 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5527 use.
5528 (arm_record_special_symbol): Don't insert new symbol in sorted
5529 position, push it at the end.
5530
5531 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5532
5533 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5534 (arm_mapping_symbol_s): Remove.
5535 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5536 (arm_mapping_symbol_vec): New typedef.
5537 (struct arm_per_objfile): Add constructor.
5538 <section_maps>: Change type to
5539 std::unique_ptr<arm_mapping_symbol_vec[]>.
5540 (arm_compare_mapping_symbols): Remove.
5541 (arm_find_mapping_symbol): Adjust to section_maps type change.
5542 (arm_objfile_data_free): Call delete on arm_per_objfile.
5543 (arm_record_special_symbol): Adjust to section_maps type change.
5544 Allocate arm_per_objfile with new.
5545
5546 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5547
5548 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5549 with the command prefix.
5550
5551 2019-06-25 Tom Tromey <tom@tromey.com>
5552
5553 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5554 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5555
5556 2019-06-25 Tom Tromey <tom@tromey.com>
5557
5558 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5559 type.
5560 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5561 protected.
5562
5563 2019-06-25 Tom Tromey <tom@tromey.com>
5564
5565 * tui/tui-winsource.c
5566 (tui_source_window_base::set_is_exec_point_at): Add check against
5567 LOA_ADDRESS.
5568
5569 2019-06-25 Tom Tromey <tom@tromey.com>
5570
5571 * tui/tui-source.c (tui_set_source_content): Don't check before
5572 xfree.
5573 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5574
5575 2019-06-25 Tom Tromey <tom@tromey.com>
5576
5577 * tui/tui-winsource.h (tui_update_source_window_as_is)
5578 (tui_alloc_source_buffer, tui_line_is_displayed)
5579 (tui_addr_is_displayed): Change type of win_info.
5580 * tui/tui-winsource.c (tui_update_source_window_as_is)
5581 (tui_clear_source_content, tui_show_source_line)
5582 (tui_show_source_content, tui_source_window_base::refill)
5583 (tui_source_window_base::set_is_exec_point_at)
5584 (tui_source_window_base::set_is_exec_point_at)
5585 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5586 (tui_alloc_source_buffer, tui_line_is_displayed)
5587 (tui_addr_is_displayed): Change type of win_info. Update.
5588 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5589 (tui_source_window_base::do_make_visible_with_new_height):
5590 Update.
5591 * tui/tui-source.c (tui_set_source_content)
5592 (tui_set_source_content_nil)
5593 (tui_source_window::do_scroll_vertical): Update.
5594 * tui/tui-layout.c (show_layout): Update.
5595 * tui/tui-disasm.c (tui_set_disassem_content)
5596 (tui_disasm_window::do_scroll_vertical): Update.
5597 * tui/tui-data.h (tui_win_content): Remove.
5598 (struct tui_gen_win_info) <content, content_size>: Remove.
5599 (struct tui_source_element): Add initializers and destructor.
5600 (union tui_which_element, struct tui_win_element): Remove.
5601 (struct tui_source_window_base) <content>: New field.
5602 (struct tui_data_window): Remove destructor.
5603 (tui_alloc_content, tui_free_win_content)
5604 (tui_free_all_source_wins_content): Don't declare.
5605 * tui/tui-data.c (tui_initialize_static_data): Update.
5606 (init_content_element, tui_alloc_content): Remove.
5607 (~tui_gen_win_info): Update.
5608 (~tui_data_window, tui_free_all_source_wins_content)
5609 (tui_free_win_content, free_content, free_content_elements):
5610 Remove.
5611
5612 2019-06-25 Tom Tromey <tom@tromey.com>
5613
5614 * tui/tui-winsource.h (tui_clear_source_content)
5615 (tui_erase_source_content, tui_show_source_content): Change type
5616 of win_info.
5617 * tui/tui-winsource.c (tui_clear_source_content)
5618 (tui_erase_source_content, tui_show_source_content): Change type
5619 of win_info.
5620 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5621 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5622 win_info.
5623 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5624 win_info.
5625 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5626
5627 2019-06-25 Tom Tromey <tom@tromey.com>
5628
5629 * tui/tui-winsource.c (tui_clear_source_content)
5630 (tui_source_window_base::set_is_exec_point_at): Update.
5631 * tui/tui-source.c (tui_set_source_content_nil): Update.
5632 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5633 a bool.
5634 * tui/tui-data.c (init_content_element): Update.
5635
5636 2019-06-25 Tom Tromey <tom@tromey.com>
5637
5638 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5639 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5640 * tui/tui-layout.c (init_and_make_win): Update.
5641 * tui/tui.h (enum tui_win_type): Update.
5642 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5643 tui_win_is_auxillary.
5644 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5645 tui_win_is_auxillary.
5646
5647 2019-06-25 Tom Tromey <tom@tromey.com>
5648
5649 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5650 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5651 (tui_delete_data_content_windows, tui_display_all_data)
5652 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5653 Update.
5654 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5655 * tui/tui-regs.c (tui_last_regs_line_no)
5656 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5657 (tui_show_registers): Update.
5658 (tui_show_register_group): Return void. Update.
5659 (tui_display_registers_from, tui_display_reg_element_at_line)
5660 (tui_display_registers_from_line, tui_check_register_values):
5661 Update.
5662 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5663 member.
5664 (struct tui_data_window) <regs_content>: Now a std::vector.
5665 <regs_content_count>: Remove.
5666 (tui_add_content_elements, tui_free_data_content): Don't declare.
5667 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5668 (init_content_element): Remove DATA_WIN case. Add assert.
5669 (tui_add_content_elements): Remove.
5670 (tui_data_window): Update.
5671 (tui_free_data_content): Remove.
5672 (free_content_elements): Remove DATA_WIN case.
5673
5674 2019-06-25 Tom Tromey <tom@tromey.com>
5675
5676 * tui/tui-data.c (tui_data_item_window): Update.
5677 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5678 * tui/tui-windata.c (tui_display_all_data)
5679 (tui_display_data_from_line): Update.
5680 (tui_check_data_values): Remove.
5681 * tui/tui-regs.c (tui_show_register_group)
5682 (tui_display_reg_element_at_line): Update.
5683 * tui/tui-hooks.c (tui_register_changed)
5684 (tui_refresh_frame_and_register_information): Call
5685 tui_check_register_values.
5686 * tui/tui-data.h (struct tui_data_window) <data_content,
5687 data_content_count, data_type>: Remove.
5688 (enum tui_data_type): Remove.
5689
5690 * tui/tui-data.c (tui_data_window::clear_detail)
5691 (~tui_data_window): Update.
5692
5693 2019-06-25 Tom Tromey <tom@tromey.com>
5694
5695 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5696 declare.
5697 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5698 Rename from tui_first_data_item_displayed. Update.
5699 (tui_data_window::refresh_all)
5700 (tui_data_window::do_scroll_vertical): Update.
5701 * tui/tui-data.h (struct tui_data_window)
5702 <first_data_item_displayed>: Declare new method.
5703
5704 2019-06-25 Tom Tromey <tom@tromey.com>
5705
5706 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5707 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5708 contents...
5709 (tui_initialize_static_data): ...here.
5710
5711 2019-06-25 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5714 (tui_display_registers_from, tui_check_register_values): Update.
5715 (tui_display_register): Remove win_info parameter; update.
5716 (tui_get_register): Change type of parameters.
5717 * tui/tui-data.h (struct tui_data_element): Remove.
5718 (union tui_which_element) <data>: Remove.
5719 <data_window>: Change type.
5720 (struct tui_data_item_window): New.
5721 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5722 case. Add assert.
5723 (~tui_data_item_window): New destructor.
5724 (free_content_elements): Remove DATA_ITEM_WIN case.
5725
5726 2019-06-25 Tom Tromey <tom@tromey.com>
5727
5728 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5729 Remove.
5730
5731 2019-06-25 Tom Tromey <tom@tromey.com>
5732
5733 * tui/tui-data.h (struct tui_command_element): Remove.
5734 (union tui_which_element) <command>: Remove.
5735 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5736 assert.
5737 (free_content_elements): Remove CMD_WIN case.
5738
5739 2019-06-25 Tom Tromey <tom@tromey.com>
5740
5741 * tui/tui-layout.c (tui_set_layout): Update.
5742 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5743 * tui/tui-data.c (layout_def): Update.
5744
5745 2019-06-25 Tom Tromey <tom@tromey.com>
5746
5747 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5748 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5749 (tui_source_window_base::set_new_height): Update.
5750 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5751 Update.
5752 (tui_set_locator_fullname, tui_set_locator_info)
5753 (tui_show_frame_info): Update.
5754 * tui/tui-source.c (tui_set_source_content)
5755 (tui_source_is_displayed): Update.
5756 * tui/tui-layout.c (show_source_disasm_command, show_data)
5757 (show_source_or_disasm_and_command): Update.
5758 * tui/tui-disasm.c (tui_set_disassem_content)
5759 (tui_get_begin_asm_address): Update.
5760 * tui/tui-data.h (struct tui_locator_element): Remove.
5761 (union tui_which_element) <locator>: Remove.
5762 (struct tui_locator_window): New.
5763 (tui_locator_win_info_ptr): Change return type.
5764 * tui/tui-data.c (_locator): Change type.
5765 (tui_locator_win_info_ptr): Change return type.
5766 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5767 (tui_alloc_content): Add assert.
5768
5769 2019-06-25 Tom Tromey <tom@tromey.com>
5770
5771 * tui/tui-winsource.c
5772 (tui_exec_info_window::maybe_allocate_content): New method.
5773 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5774 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5775 (make_source_or_disasm_window): Add cast.
5776 * tui/tui-data.h (union tui_which_element) <simple_string>:
5777 Remove.
5778 (struct tui_source_info): New.
5779 (struct tui_source_window_base) <execution_info>: Change type.
5780 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5781 case, and add assert.
5782 (tui_alloc_content): Add assert.
5783
5784 2019-06-25 Tom Tromey <tom@tromey.com>
5785
5786 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5787 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5788 * tui/tui-data.c (tui_alloc_win_info): Remove.
5789
5790 2019-06-25 Tom Tromey <tom@tromey.com>
5791
5792 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5793 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5794 can_highlight.
5795
5796 2019-06-25 Tom Tromey <tom@tromey.com>
5797
5798 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5799 make_visible_with_new_height method.
5800 (tui_win_info::make_visible_with_new_height): New method.
5801 (tui_source_window_base::do_make_visible_with_new_height)
5802 (tui_data_window::do_make_visible_with_new_height)
5803 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5804 (make_visible_with_new_height): Remove.
5805 (tui_resize_all, tui_adjust_win_heights): Use
5806 make_visible_with_new_height method.
5807 * tui/tui-data.h (struct tui_win_info)
5808 <do_make_visible_with_new_height, make_visible_with_new_height>:
5809 New methods.
5810 (struct tui_source_window_base, struct tui_data_window)
5811 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5812 methods.
5813
5814 2019-06-25 Tom Tromey <tom@tromey.com>
5815
5816 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5817 method.
5818 (update_tab_width): Call update_tab_width method.
5819 * tui/tui-data.h (struct tui_win_info)
5820 (struct tui_source_window_base) <update_tab_width>: New methods.
5821
5822 2019-06-25 Tom Tromey <tom@tromey.com>
5823
5824 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5825 parameter.
5826 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5827 parameter.
5828 (tui_gen_win_info::make_visible): Update.
5829 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5830 parameter.
5831 * tui/tui-data.h (enum tui_box): New enum.
5832 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5833
5834 2019-06-25 Tom Tromey <tom@tromey.com>
5835
5836 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5837 init_and_make_win for EXEC_INFO_WIN.
5838 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5839 longer inline.
5840 (struct tui_win_info) <~tui_win_info>: Inline.
5841 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5842 Don't declare.
5843 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5844 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5845 Remove.
5846 (tui_initialize_static_data): Update.
5847 (~tui_gen_win_info): Handle more cleanup here.
5848 (~tui_source_window_base): Delete "execution_info".
5849 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5850
5851 2019-06-25 Tom Tromey <tom@tromey.com>
5852
5853 * tui/tui-layout.c (make_command_window): Don't set
5854 can_highlight.
5855 (show_source_disasm_command): Call the reset method.
5856 (show_data): Don't set can_highlight. Call the reset method.
5857 (tui_gen_win_info::reset): Rename from init_gen_win_info
5858 (init_and_make_win): Simplify. Return tui_gen_win_info.
5859 (show_source_or_disasm_and_command): Call the reset method.
5860 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5861 (struct tui_cmd_window): Set can_highlight.
5862
5863 2019-06-25 Tom Tromey <tom@tromey.com>
5864
5865 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5866 from make_visible.
5867 (tui_make_visible, tui_make_invisible): Rewrite.
5868 (tui_win_info::make_visible): Remove.
5869 (tui_source_window_base::make_visible): Update.
5870 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5871 method. Moved from...
5872 (struct tui_win_info) <make_visible>: ...here.
5873
5874 2019-06-25 Tom Tromey <tom@tromey.com>
5875
5876 * tui/tui-winsource.c
5877 (tui_source_window_base::do_scroll_horizontal): Remove direction
5878 parameter.
5879 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5880 direction parameter.
5881 * tui/tui-win.c (tui_win_info::forward_scroll)
5882 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5883 (tui_win_info::right_scroll): Update.
5884 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5885 direction parameter.
5886 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5887 direction parameter.
5888 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5889 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5890 Remove direction parameter.
5891 (struct tui_source_window_base, struct tui_source_window)
5892 (struct tui_disasm_window, struct tui_data_window)
5893 (struct tui_cmd_window): Update.
5894
5895 2019-06-25 Tom Tromey <tom@tromey.com>
5896
5897 * tui/tui-winsource.h (tui_set_exec_info_content)
5898 (tui_show_exec_info_content, tui_erase_exec_info_content)
5899 (tui_clear_exec_info_content, tui_update_exec_info): Change
5900 argument to tui_source_window_base.
5901 * tui/tui-winsource.c (tui_set_exec_info_content)
5902 (tui_show_exec_info_content, tui_erase_exec_info_content)
5903 (tui_clear_exec_info_content, tui_update_exec_info): Change
5904 argument to tui_source_window_base.
5905
5906 2019-06-25 Tom Tromey <tom@tromey.com>
5907
5908 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5909 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5910
5911 2019-06-25 Tom Tromey <tom@tromey.com>
5912
5913 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5914 check.
5915
5916 2019-06-25 Tom Tromey <tom@tromey.com>
5917
5918 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5919 type to void.
5920 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5921 type to void.
5922 * tui/tui-source.c (tui_set_source_content): Update.
5923 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5924
5925 2019-06-25 Tom Tromey <tom@tromey.com>
5926
5927 * tui/tui-win.c (window_name_completer, tui_set_focus)
5928 (tui_all_windows_info): Use name method.
5929 * tui/tui-data.h (struct tui_gen_win_info)
5930 (struct tui_source_window, struct tui_disasm_window)
5931 (struct tui_data_window, struct tui_cmd_window) <name>: New
5932 method.
5933 (tui_win_name): Don't declare.
5934 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5935 (tui_win_name): Remove.
5936
5937 2019-06-25 Tom Tromey <tom@tromey.com>
5938
5939 * tui/tui-winsource.h (tui_update_source_window)
5940 (tui_update_source_window_as_is): Change parameter type.
5941 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5942 to be a tui_source_window_base.
5943 (tui_update_source_window_as_is): Likewise.
5944 * tui/tui-win.c (make_visible_with_new_height): Update.
5945
5946 2019-06-25 Tom Tromey <tom@tromey.com>
5947
5948 * tui/tui-winsource.c (tui_erase_source_content)
5949 (tui_show_source_content, tui_show_exec_info_content)
5950 (tui_erase_exec_info_content): Use refresh_window method.
5951 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5952 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5953 from tui_refresh_win.
5954 (tui_data_window::refresh_window): New method.
5955 (tui_win_info::refresh, tui_source_window_base::refresh)
5956 (tui_refresh_all): Use refresh_window method.
5957 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5958 method.
5959 * tui/tui-regs.c (tui_display_register): Call refresh_window
5960 method.
5961 * tui/tui-layout.c (show_source_disasm_command)
5962 (show_source_or_disasm_and_command): Call refresh_window method.
5963 * tui/tui-data.h (struct tui_gen_win_info)
5964 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5965 New method.
5966
5967 2019-06-25 Tom Tromey <tom@tromey.com>
5968
5969 * tui/tui.c (tui_rl_other_window, tui_enable)
5970 (tui_is_window_visible, tui_get_command_dimension): Update.
5971 * tui/tui-winsource.c (tui_update_source_window_as_is)
5972 (tui_clear_source_content, tui_erase_source_content)
5973 (tui_show_source_line, tui_source_window_base::refill)
5974 (tui_source_window_base::do_scroll_horizontal)
5975 (tui_source_window_base::set_is_exec_point_at)
5976 (tui_update_breakpoint_info, tui_set_exec_info_content)
5977 (tui_alloc_source_buffer, tui_line_is_displayed)
5978 (tui_addr_is_displayed): Update.
5979 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5980 (tui_check_and_display_highlight_if_needed)
5981 (tui_win_info::make_visible, tui_win_info::refresh)
5982 (tui_refresh_all): Update.
5983 * tui/tui-windata.c (tui_first_data_item_displayed)
5984 (tui_delete_data_content_windows, tui_erase_data_content)
5985 (tui_display_all_data, tui_data_window::refresh_all)
5986 (tui_check_data_values): Update.
5987 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5988 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5989 (tui_win_info::backward_scroll, tui_refresh_all_win)
5990 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5991 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5992 (tui_source_window_base::set_new_height)
5993 (tui_data_window::set_new_height)
5994 (make_invisible_and_set_new_height)
5995 (make_visible_with_new_height, new_height_ok)
5996 (parse_scrolling_args): Update.
5997 * tui/tui-stack.c (tui_show_frame_info): Update.
5998 * tui/tui-source.c (tui_set_source_content)
5999 (tui_set_source_content_nil, tui_source_is_displayed)
6000 (tui_source_window::do_scroll_vertical): Update.
6001 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6002 (tui_display_registers_from, tui_display_reg_element_at_line)
6003 (tui_check_register_values, tui_reg_command): Update.
6004 * tui/tui-layout.c (tui_default_win_height)
6005 (show_source_disasm_command, show_data, init_and_make_win)
6006 (show_source_or_disasm_and_command): Update.
6007 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6008 (tui_redisplay_readline, tui_mld_flush)
6009 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6010 (tui_getc): Update.
6011 * tui/tui-disasm.c (tui_set_disassem_content)
6012 (tui_disasm_window::do_scroll_vertical): Update.
6013 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6014 Now virtual.
6015 (struct tui_win_info): Derive from tui_gen_win_info.
6016 <~tui_win_info>: Mark as override.
6017 <generic>: Remove member.
6018 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6019 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6020 (~tui_data_window, ~tui_win_info)
6021 (tui_free_all_source_wins_content): Update.
6022 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6023
6024 2019-06-25 Tom Tromey <tom@tromey.com>
6025
6026 * tui/tui-layout.c (init_and_make_win): Use new.
6027 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6028 destructor, initializers.
6029 (tui_alloc_generic_win_info): Don't declare.
6030 * tui/tui-data.c (_locator): Add argument to constructor.
6031 (source_win, disasm_win): New globals.
6032 (exec_info): Remove.
6033 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6034 Update.
6035 (tui_alloc_generic_win_info): Remove.
6036 (init_content_element): Use new.
6037 (tui_win_info::tui_win_info): Update.
6038 (free_content_elements) <case DATA_WIN>: Use delete.
6039
6040 2019-06-25 Tom Tromey <tom@tromey.com>
6041
6042 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6043 * tui/tui-windata.c (tui_first_data_item_displayed)
6044 (tui_delete_data_content_windows): Update.
6045 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6046 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6047 (tui_display_registers_from, tui_check_register_values): Update.
6048 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6049 pointer.
6050 * tui/tui-data.c (init_content_element): Update. Allocate the new
6051 window.
6052 (tui_free_data_content): Update.
6053 (free_content_elements) <case DATA_WIN>: Free the window.
6054
6055 2019-06-25 Tom Tromey <tom@tromey.com>
6056
6057 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6058 Update.
6059 * tui/tui-layout.c (make_command_window)
6060 (show_source_disasm_command, show_data, init_and_make_win)
6061 (show_source_or_disasm_and_command): Update.
6062 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6063 method.
6064 <can_highight, is_highlighted>: Now bool.
6065 (tui_set_win_highlight): Don't declare.
6066 * tui/tui-data.c (tui_set_win_highlight): Remove.
6067
6068 2019-06-25 Tom Tromey <tom@tromey.com>
6069
6070 * tui/tui-wingeneral.c (make_visible): Remove check of window
6071 type.
6072
6073 2019-06-25 Tom Tromey <tom@tromey.com>
6074
6075 * tui/tui-win.c (tui_win_info::max_height)
6076 (tui_cmd_window::max_height): New methods.
6077 (new_height_ok): Call max_height.
6078 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6079 <max_height>: New method.
6080
6081 2019-06-25 Tom Tromey <tom@tromey.com>
6082
6083 * tui/tui-win.c (tui_source_window_base::set_new_height)
6084 (tui_data_window::set_new_height): New methods.
6085 (make_invisible_and_set_new_height): Call set_new_height method.
6086 * tui/tui-data.h (struct tui_win_info)
6087 (struct tui_source_window_base, struct tui_data_window)
6088 <set_new_height>: New method.
6089
6090 2019-06-25 Tom Tromey <tom@tromey.com>
6091
6092 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6093 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6094 tui_refresh_data_win.
6095 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6096 method.
6097 (tui_refresh_all_win): Call the refresh_all method.
6098 (tui_set_focus): Likewise.
6099 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6100 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6101 Likewise.
6102
6103 2019-06-25 Tom Tromey <tom@tromey.com>
6104
6105 * tui/tui-winsource.h (tui_refill_source_window)
6106 (tui_set_is_exec_point_at): Don't declare.
6107 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6108 (tui_source_window_base::refill): Rename from
6109 tui_refill_source_window.
6110 (tui_source_window_base::do_scroll_horizontal): Update.
6111 (tui_source_window_base::set_is_exec_point_at): Rename from
6112 tui_set_is_exec_point_at.
6113 (tui_update_all_breakpoint_info): Update.
6114 * tui/tui-stack.c (tui_show_frame_info): Update.
6115 * tui/tui-layout.c (show_data): Add cast.
6116 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6117 * tui/tui-data.h (struct tui_source_window_base) <refill,
6118 set_is_exec_point_at>: New methods.
6119 (tui_source_windows, tui_add_to_source_windows): Update types.
6120 (tui_add_to_source_windows): Remove redundant declaration.
6121 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6122 (tui_source_windows): Change return type.
6123 (tui_clear_source_windows_detail): Update.
6124 (tui_add_to_source_windows): Change type of parameter.
6125 (tui_free_all_source_wins_content): Update.
6126
6127 2019-06-25 Tom Tromey <tom@tromey.com>
6128
6129 * tui/tui-wingeneral.c (tui_win_info::refresh)
6130 (tui_source_window_base::refresh): New methods.
6131 (tui_refresh_all): Call the refresh method.
6132 * tui/tui-data.h (struct tui_win_info)
6133 (struct tui_source_window_base) <refresh>: New method.
6134
6135 2019-06-25 Tom Tromey <tom@tromey.com>
6136
6137 * tui/tui.h (tui_is_window_visible): Return bool.
6138 * tui/tui.c (tui_is_window_visible): Return bool.
6139 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6140 (tui_make_visible, tui_make_invisible)
6141 (tui_win_info::make_visible)
6142 (tui_source_window_base::make_visible, make_all_visible)
6143 (tui_make_all_visible, tui_make_all_invisible): Update.
6144 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6145 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6146 bool.
6147 (struct tui_win_info, struct tui_source_window_base)
6148 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6149 * tui/tui-data.c (tui_init_generic_part): Update.
6150
6151 2019-06-25 Tom Tromey <tom@tromey.com>
6152
6153 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6154 (tui_source_window_base::make_visible): New methods.
6155 (make_all_visible): Make method call.
6156 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6157 (struct tui_source_window_base, struct tui_cmd_window): Override
6158 make_visible.
6159 (tui_win_is_source_type): Don't declare.
6160 * tui/tui-data.c (tui_win_is_source_type): Remove.
6161
6162 2019-06-25 Tom Tromey <tom@tromey.com>
6163
6164 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6165 NULL check.
6166
6167 2019-06-25 Tom Tromey <tom@tromey.com>
6168
6169 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6170 Inline constructor. Add initializers for members.
6171 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6172 constructors; now inline in class.
6173
6174 2019-06-25 Tom Tromey <tom@tromey.com>
6175
6176 * tui/tui-regs.c (tui_show_registers): Update.
6177 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6178 bool.
6179 * tui/tui-data.c (tui_data_window::clear_detail)
6180 (tui_data_window): Update.
6181
6182 2019-06-25 Tom Tromey <tom@tromey.com>
6183
6184 * tui/tui-windata.c (tui_display_all_data)
6185 (tui_display_data_from_line, tui_display_data_from)
6186 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6187 Update.
6188 * tui/tui-regs.c (tui_last_regs_line_no)
6189 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6190 (tui_show_registers, tui_show_register_group)
6191 (tui_display_registers_from, tui_display_reg_element_at_line)
6192 (tui_display_registers_from_line, tui_check_register_values)
6193 (tui_reg_next, tui_reg_prev): Update.
6194 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6195 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6196 tui_data_window.
6197 (struct tui_win_info) <detail>: Remove. Add new fields from
6198 tui_data_info.
6199 (TUI_DATA_WIN): Add cast.
6200 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6201 (~tui_data_window): Simplify.
6202
6203 2019-06-25 Tom Tromey <tom@tromey.com>
6204
6205 * tui/tui-layout.c (show_source_disasm_command)
6206 (show_source_or_disasm_and_command): Update.
6207 * tui/tui-io.c (update_cmdwin_start_line)
6208 (tui_redisplay_readline): Update.
6209 * tui/tui-data.h (struct tui_command_info): Remove.
6210 (struct tui_win_info) <detail>: Remove command_info member.
6211 (struct tui_data_window) <start_line>: New member, from
6212 tui_command_info.
6213 (TUI_CMD_WIN): Add casts.
6214
6215 2019-06-25 Tom Tromey <tom@tromey.com>
6216
6217 * tui/tui-winsource.c (tui_update_source_window)
6218 (tui_refill_source_window)
6219 (tui_source_window_base::do_scroll_horizontal)
6220 (tui_update_breakpoint_info, tui_set_exec_info_content)
6221 (tui_show_exec_info_content, tui_erase_exec_info_content)
6222 (tui_clear_exec_info_content): Update.
6223 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6224 Update.
6225 * tui/tui-win.c (make_invisible_and_set_new_height)
6226 (make_visible_with_new_height): Update.
6227 * tui/tui-source.c (tui_set_source_content)
6228 (tui_show_symtab_source): Update.
6229 * tui/tui-layout.c (extract_display_start_addr)
6230 (show_source_disasm_command, show_data)
6231 (make_source_or_disasm_window)
6232 (show_source_or_disasm_and_command): Update.
6233 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6234 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6235 "gdbarch".
6236 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6237 to tui_source_window_base.
6238 (struct tui_win_info) <detail>: Remove source_info member.
6239 (struct tui_source_window_base) <has_locator>: Inline.
6240 Move contents from tui_source_info; rename has_locator member to
6241 m_has_locator.
6242 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6243 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6244 header file.
6245 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6246 Simplify.
6247 (tui_free_all_source_wins_content): Cast to
6248 tui_source_window_base.
6249
6250 2019-06-25 Tom Tromey <tom@tromey.com>
6251
6252 * tui/tui-win.c (make_invisible_and_set_new_height)
6253 (make_visible_with_new_height): Call has_locator method.
6254 * tui/tui-layout.c (show_source_disasm_command, show_data)
6255 (show_source_or_disasm_and_command): Update for bool change.
6256 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6257 (tui_win_info) <has_locator>: New method.
6258 (struct tui_source_window_base) <has_locator>: New method.
6259 (tui_win_has_locator): Don't declare.
6260 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6261 from tui_win_has_locator.
6262 (tui_source_window_base): Use false, not FALSE.
6263
6264 2019-06-25 Tom Tromey <tom@tromey.com>
6265
6266 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6267 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6268 clear_detail method directly.
6269 (tui_clear_win_detail): Remove.
6270
6271 2019-06-25 Tom Tromey <tom@tromey.com>
6272
6273 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6274 "this", not TUI_DISASM_WIN.
6275
6276 2019-06-25 Tom Tromey <tom@tromey.com>
6277
6278 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6279 declare.
6280 * tui/tui-winsource.c
6281 (tui_source_window_base::do_scroll_horizontal): Rename from
6282 tui_horizontal_source_scroll.
6283 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6284 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6285 from tui_vertical_data_scroll.
6286 * tui/tui-win.h (tui_scroll): Don't declare.
6287 * tui/tui-win.c (tui_win_info::forward_scroll)
6288 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6289 (tui_win_info::right_scroll): Rename and update.
6290 (tui_scroll_forward_command, tui_scroll_backward_command)
6291 (tui_scroll_left_command, tui_scroll_right_command): Update.
6292 (tui_scroll): Remove.
6293 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6294 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6295 from tui_vertical_source_scroll.
6296 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6297 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6298 from tui_vertical_disassem_scroll.
6299 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6300 do_scroll_horizontal>: New methods.
6301 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6302 Likewise.
6303 (struct tui_source_window_base): Add do_scroll_horizontal.
6304 (struct tui_source_window, struct tui_disasm_window): Add
6305 do_scroll_vertical.
6306 (struct tui_data_window, struct tui_cmd_window): Add
6307 do_scroll_horizontal and do_scroll_vertical.
6308 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6309
6310 2019-06-25 Tom Tromey <tom@tromey.com>
6311
6312 * tui/tui-data.h (struct tui_source_window_base): New struct.
6313 (struct tui_source_window): Derive from tui_source_window_base.
6314 (struct tui_disasm_window): New struct.
6315 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6316 from tui_source_window::clear_detail.
6317 (tui_source_window_base): Rename from tui_source_window.
6318 (~tui_source_window_base): Rename from ~tui_source_window.
6319 (tui_alloc_win_info): Create a tui_disasm_window.
6320
6321 2019-06-25 Tom Tromey <tom@tromey.com>
6322
6323 * tui/tui-data.h (struct tui_source_window)
6324 (struct tui_data_window): Declare destructors.
6325 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6326 destructors.
6327 (tui_win_info): Simplify.
6328
6329 2019-06-25 Tom Tromey <tom@tromey.com>
6330
6331 * tui/tui-winsource.c (tui_display_main)
6332 (tui_update_source_windows_with_addr)
6333 (tui_update_all_breakpoint_info): Update.
6334 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6335 (new_height_ok, parse_scrolling_args): Update.
6336 * tui/tui-stack.c (tui_show_frame_info): Update.
6337 * tui/tui-data.h (struct tui_list): Remove.
6338 (tui_source_windows): Return a reference to a std::vector.
6339 * tui/tui-data.c (source_windows): Now a std::vector.
6340 (tui_source_windows): Change return type.
6341 (tui_clear_source_windows): Rewrite.
6342 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6343 (tui_free_all_source_wins_content): Rewrite.
6344
6345 2019-06-25 Tom Tromey <tom@tromey.com>
6346
6347 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6348 (struct tui_data_window, struct tui_cmd_window): Declare
6349 clear_detail method.
6350 * tui/tui-data.c (tui_source_window::clear_detail)
6351 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6352 methods.
6353 (tui_clear_win_detail): Simplify.
6354
6355 2019-06-25 Tom Tromey <tom@tromey.com>
6356
6357 * tui/tui-layout.c (make_source_window, make_disasm_window)
6358 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6359 Return the new window.
6360 (show_source_disasm_command, show_data)
6361 (show_source_or_disasm_and_command): Update.
6362
6363 2019-06-25 Tom Tromey <tom@tromey.com>
6364
6365 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6366 parameter. Return the new window.
6367 (show_source_disasm_command): Update and remove NULL check.
6368 (show_source_or_disasm_and_command): Update.
6369
6370 2019-06-25 Tom Tromey <tom@tromey.com>
6371
6372 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6373
6374 2019-06-25 Tom Tromey <tom@tromey.com>
6375
6376 * tui/tui-data.h (struct tui_win_info): Make constructor
6377 protected. Make destructor virtual. Add initializers.
6378 (tui_source_window, tui_data_window, tui_cmd_window): New
6379 classes.
6380 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6381 constructor. Add "type" parameter.
6382 (tui_source_window, tui_data_window, tui_cmd_window): New
6383 constructors.
6384 (tui_alloc_win_info): Instantiate the appropriate subclass.
6385
6386 2019-06-25 Tom Tromey <tom@tromey.com>
6387
6388 * tui/tui-win.c (tui_resize_all): Use delete.
6389 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6390 destructor.
6391 (tui_free_window): Don't declare.
6392 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6393 Update.
6394
6395 2019-06-25 Tom Tromey <tom@tromey.com>
6396
6397 * tui/tui-data.h (struct tui_win_info): Add constructor.
6398 * tui/tui-data.c (tui_alloc_win_info): Use new.
6399 (tui_free_window): Use delete.
6400
6401 2019-06-22 Tom Tromey <tom@tromey.com>
6402
6403 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6404 declare.
6405 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6406
6407 2019-06-22 Tom Tromey <tom@tromey.com>
6408
6409 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6410 declare.
6411 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6412
6413 2019-06-22 Tom de Vries <tdevries@suse.de>
6414
6415 * dwarf2read.c (create_addrmap_from_aranges)
6416 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6417 instead of '%zu'.
6418
6419 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6420
6421 * dwarf2read.h (dwarf2_section_info_def): Remove.
6422 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6423 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6424 std::vector<dwarf2_section_info>.
6425 (struct dwo_file) <~dwo_file>: Remove.
6426 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6427 types field.
6428 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6429 (dwarf2_read_debug_names): Likewise.
6430 (create_debug_types_hash_table): Change parameter type to
6431 array_view, adjust code accordingly.
6432 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6433 (partial_die_info::fixup): Likewise.
6434 (determine_prefix): Likewise.
6435 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6436
6437 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6438
6439 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6440 gdb_bfd_ref_ptr.
6441 <~dwo_file>: Remove call to gdb_bfd_unref.
6442 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6443 gdb_bfd_ref_ptr::get.
6444
6445 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6446
6447 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6448 type to htab_up.
6449 * dwarf2read.c (struct dwo_file): Initialize fields.
6450 <~dwo_file>: New.
6451 (free_dwo_file): Remove, move content to ~dwo_file.
6452 (struct dwo_file_deleter): Remove.
6453 (dwo_file_up>: Remove custom deleter.
6454 (free_dwo_files): Remove.
6455 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6456 dwo_files.
6457 (process_skeletonless_type_units): Call unique_ptr::get.
6458 (allocate_dwo_file_hash_table): Add deleter to created hash
6459 table. Change return type to htab_up.
6460 (lookup_dwo_file_slot): Don't memset dwo_file, call
6461 unique_ptr::get.
6462 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6463 (create_dwo_unit_in_dwp_v2): Likewise.
6464 (open_and_init_dwo_file): Likewise.
6465 (free_dwo_file_from_slot): Remove.
6466
6467 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6468
6469 * dwarf2read.h (struct dwarf2_section_info) <readin,
6470 is_virtual>: Change type to bool.
6471 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6472 true instead of 1.
6473
6474 2019-06-19 Tom Tromey <tom@tromey.com>
6475
6476 * tui/tui-data.h (tui_init_content_element): Don't declare.
6477
6478 2019-06-19 Tom Tromey <tom@tromey.com>
6479
6480 * tui/tui-data.h (tui_init_win_info): Don't declare.
6481
6482 2019-06-19 Tom de Vries <tdevries@suse.de>
6483
6484 * dwarf2read.h (abstract_to_concrete): Change type to
6485 std::unordered_map<sect_offset, std::vector<sect_offset>,
6486 gdb::hash_enum<sect_offset>>.
6487
6488 2019-06-19 Tom Tromey <tromey@adacore.com>
6489
6490 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6491 EVAL_AVOID_SIDE_EFFECTS specially.
6492
6493 2019-06-19 Tom Tromey <tromey@adacore.com>
6494
6495 * source-cache.c (highlighter): New global.
6496 (source_cache::get_source_lines): Create a highlighter on demand.
6497
6498 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6499
6500 * defs.h (deprecated_interactive_hook): Delete declaration.
6501 * interps.c (clear_interpreter_hooks): Remove use of
6502 deprecated_interactive_hook.
6503 * top.c (deprecated_interactive_hook): Delete definition.
6504 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6505
6506 2019-06-18 Tom de Vries <tdevries@suse.de>
6507
6508 PR gdb/24515
6509 * dwarf2read.h (abstract_to_concrete): Change type from
6510 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6511 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6512 * dwarf2read.c (read_variable): Update.
6513 (dwarf2_fetch_die_loc_sect_off): Update.
6514
6515 2019-06-17 Tom de Vries <tdevries@suse.de>
6516
6517 PR gdb/24617
6518 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6519 accessing parent[parent_len - 1].
6520
6521 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6522
6523 PR gdb/24364
6524 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6525 call dtrace_process_dof with NULL dof.
6526
6527 2019-06-16 Tom de Vries <tdevries@suse.de>
6528
6529 PR gdb/24445
6530 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6531
6532 2019-06-16 Tom Tromey <tom@tromey.com>
6533
6534 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6535 (make_all_visible): Use address of member.
6536
6537 2019-06-16 Tom Tromey <tom@tromey.com>
6538
6539 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6540 (tui_free_window, free_content, free_content_elements): Remove
6541 unnecessary cast.
6542 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6543 cast.
6544 * tui/tui-regs.c (tui_show_register_group)
6545 (tui_display_registers_from, tui_display_reg_element_at_line):
6546 Remove unnecessary cast.
6547
6548 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6549
6550 * linux-nat.c (normal_mask): Delete.
6551 (_initialize_linux_nat): Don't initialise normal_mask.
6552
6553 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6554
6555 PR gdb/24445
6556 * dwarf-index-write.h (write_psymtabs_to_index): Add
6557 dwz_basename parameter.
6558 * dwarf-index-write.c (write_gdbindex): Move file writing to
6559 write_gdbindex_1. Change return type void.
6560 (assert_file_size): Move up, remove filename parameter.
6561 (write_gdbindex_1): New function.
6562 (write_debug_names): Change return type to void, call
6563 assert_file_size.
6564 (struct index_wip_file): New struct.
6565 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6566 file logic to index_wip_file. Write index for dwz file if
6567 needed.
6568 (save_gdb_index_command): Pass basename of dwz file, if present.
6569 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6570 build-id of dwz file, if present.
6571 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6572 (dwarf2_get_dwz_file): Likewise.
6573 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6574 (dwarf2_get_dwz_file): Likewise.
6575
6576 2019-06-16 Tom Tromey <tom@tromey.com>
6577
6578 * coffread.c (process_coff_symbol): Use xstrdup.
6579 * value.c (create_internalvar): Use xstrdup.
6580
6581 2019-06-16 Tom Tromey <tom@tromey.com>
6582
6583 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6584 * breakpoint.c (stopin_command, stopat_command)
6585 (until_break_command, decode_location_default): Remove unnecessary
6586 cast.
6587 * utils.c (subset_compare): Remove unnecessary cast.
6588 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6589 cast.
6590 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6591 cast.
6592 * infcmd.c (path_command): Remove unnecessary cast.
6593 * coffread.c (decode_type): Remove unnecessary cast.
6594 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6595 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6596 * tui/tui-stack.c (tui_show_locator_content)
6597 (tui_show_frame_info): Remove unnecessary cast.
6598 * tui/tui-win.c (tui_scroll_forward_command)
6599 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6600 (parse_scrolling_args): Remove unnecessary cast.
6601 * tui/tui-data.c (init_win_info, tui_del_window)
6602 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6603 (free_content_elements): Remove unnecessary cast.
6604 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6605 unnecessary cast.
6606 * tui/tui-source.c (tui_set_source_content)
6607 (tui_vertical_source_scroll): Remove unnecessary cast.
6608 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6609 cast.
6610 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6611 * tui/tui-regs.c (tui_display_registers_from)
6612 (tui_display_register): Remove unnecessary cast.
6613 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6614 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6615 (make_visible): Remove unnecessary cast.
6616 * tui/tui-winsource.c (tui_erase_source_content)
6617 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6618 unnecessary cast.
6619 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6620 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6621 * stabsread.c (read_type, read_array_type, read_range_type):
6622 Remove unnecessary cast.
6623 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6624 (parse_symbol, parse_type, upgrade_type, parse_external)
6625 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6626 unnecessary cast.
6627 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6628
6629 2019-06-16 Tom Tromey <tom@tromey.com>
6630
6631 * tui/tui-data.c (tui_alloc_generic_win_info)
6632 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6633 checks.
6634
6635 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6636 Andrew Burgess <andrew.burgess@embecosm.com>
6637
6638 * f-typeprint.c (f_print_type): Don't return early for not
6639 associated or not allocated types.
6640 (f_type_print_varspec_suffix): Add print_rank parameter and print
6641 ranks of array types in case they dangling.
6642 (f_type_print_base): Add print_rank parameter.
6643
6644 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6645
6646 * NEWS: Mention new MI commands.
6647 * break-catch-throw.c (enum exception_event_kind): Move to
6648 breakpoint.h.
6649 (print_mention_exception_catchpoint): Output text as a single
6650 message.
6651 (catch_exception_command_1): Rename to...
6652 (catch_exception_event): ...this, make non-static, update header
6653 command, and change some parameter types.
6654 (catch_catch_command): Update for changes to
6655 catch_exception_command_1.
6656 (catch_throw_command): Likewise.
6657 (catch_rethrow_command): Likewise.
6658 * breakpoint.c (enum exception_event_kind): Delete.
6659 * breakpoint.h (enum exception_event_kind): Moved here from
6660 break-catch-throw.c.
6661 (catch_exception_event): Declare.
6662 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6663 (mi_cmd_catch_throw): New function.
6664 (mi_cmd_catch_rethrow): New function.
6665 (mi_cmd_catch_catch): New function.
6666 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6667 'catch-catch' entries.
6668 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6669 (mi_cmd_catch_rethrow): Declare.
6670 (mi_cmd_catch_catch): Declare.
6671
6672 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6673
6674 * annotate.c (annotate_source_line): Change return type to void,
6675 update implementation to match.
6676 * annotate.h (annotate_source_line): Change return type to void,
6677 update header comment.
6678 * stack.c (print_frame_info): Don't change what frame information
6679 is printed based on whether annotations are on or not.
6680
6681 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6682
6683 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6684 (annotate_source): Make static.
6685 (annotate_source_line): Moved from source.c and renamed from
6686 identify_source_line. Update the return type.
6687 * annotate.h (annotate_source): Delete declaration.
6688 (annotate_source_line): Declaration moved from source.h, and
6689 renamed from identify_source_line. Return type updated.
6690 * source.c (identify_source_line): Moved to annotate.c and renamed
6691 to annotate_source_line.
6692 (info_line_command): Remove check of annotation_level.
6693 * source.h (identify_source_line): Move declaration to annotate.h
6694 and rename to annotate_source_line.
6695 * stack.c: Add 'annotate.h' include.
6696 (print_frame_info): Remove check of annotation_level before
6697 calling annotate_source_line.
6698
6699 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6700
6701 * source-cache.c (source_cache::get_plain_source_lines): Use
6702 open_source_file_with_line_charpos instead of just
6703 open_source_file, remove call to find_source_lines.
6704 (source_cache::get_source_lines): Likewise.
6705 * source.c (find_source_lines): Make static.
6706 (get_filename_and_charpos): Renamed into...
6707 (open_source_file_with_line_charpos): ..this along with changes to
6708 return a scoped_fd, and some other minor clean ups.
6709 (identify_source_line): Use open_source_file_with_line_charpos.
6710 (search_command_helper): Use open_source_file_with_line_charpos
6711 instead of just open_source_file, remove call to
6712 find_source_lines.
6713 * source.h (open_source_file_with_line_charpos): Declare new
6714 function.
6715 (find_source_lines): Delete declaration.
6716
6717 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6718
6719 * source.c (get_filename_and_charpos): Remove fullname
6720 parameter.
6721 (identify_source_line): Update call to get_filename_and_charpos.
6722
6723 2019-06-14 Tom Tromey <tromey@adacore.com>
6724
6725 PR gdb/24502:
6726 * ui-style.h (skip_ansi_escape): Update comment.
6727 * ui-file.h (class no_terminal_escape_file): New class.
6728 * ui-file.c (no_terminal_escape_file::write)
6729 (no_terminal_escape_file::puts): New methods.
6730 * cli/cli-logging.c (handle_redirections): Use
6731 no_terminal_escape_file.
6732
6733 2019-06-14 Tom Tromey <tromey@adacore.com>
6734
6735 * NEWS: Move convenience variable news above Python news.
6736
6737 2019-06-14 Tom Tromey <tom@tromey.com>
6738
6739 * gnulib: Move directory to top-level.
6740 * configure.ac: Don't configure gnulib.
6741 * configure: Rebuild.
6742 * common/common-defs.h: Use new path to gnulib.
6743 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6744 (GNULIB_H): Remove.
6745 (INCGNU): Look in new gnulib location.
6746 (HFILES_NO_SRCDIR): Remove gnulib files.
6747 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6748 (generated_files): Remove GNULIB_H.
6749 ($(LIBGNU), all-lib): Remove targets.
6750 (distclean): Don't mention GNULIB_BUILDDIR.
6751 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6752
6753 2019-06-14 Tom Tromey <tromey@adacore.com>
6754
6755 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6756 Warn if symbol file does not provide any symbols.
6757
6758 2019-06-14 Tom Tromey <tromey@adacore.com>
6759
6760 * source.c (find_and_open_source): Respect basenames_may_differ.
6761
6762 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6763
6764 * annotate.c (annotate_breakpoints_invalid): Make use of
6765 scoped_restore_terminal_state.
6766 (annotate_frames_invalid): Likewise.
6767
6768 2019-06-14 Tom Tromey <tromey@adacore.com>
6769
6770 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6771 allow assignment to an internalvar.
6772
6773 2019-06-14 Tom Tromey <tromey@adacore.com>
6774
6775 * ada-lex.l: Allow "_" in attribute names.
6776
6777 2019-06-14 Tom Tromey <tromey@adacore.com>
6778
6779 PR gdb/24653:
6780 * regcache.c (registers_changed): Don't call alloca.
6781 * top.c (execute_command): Don't call alloca.
6782
6783 2019-06-13 Pedro Alves <palves@redhat.com>
6784
6785 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6786 'expression'. When parsing an expression, error out if there's
6787 junk after "unlimited".
6788 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6789 (do_set_command): Adjust calls to is_unlimited_literal.
6790
6791 2019-06-13 Pedro Alves <palves@redhat.com>
6792
6793 * compile/compile.c (make_compile_options_def_group): Add braces
6794 around array_view initializer.
6795 * thread.c (make_thread_apply_all_options_def_group)
6796 (make_thread_apply_all_options_def_group): Likewise.
6797
6798 2019-06-13 Pedro Alves <palves@redhat.com>
6799
6800 * NEWS (New commands): Mention "maint test-options
6801 require-delimiter", "maint test-options unknown-is-error", "maint
6802 test-options unknown-is-operand" and "maint show
6803 test-options-completion-result".
6804 (New command options, command completion): New section.
6805 (Completion improvements): New section.
6806 Mention that you can abbreviate "unlimited".
6807
6808 2019-06-13 Pedro Alves <palves@redhat.com>
6809
6810 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6811 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6812 * unittests/cli-utils-selftests.c (test_parse_flags)
6813 (test_parse_flags_qcs): Delete.
6814 (test_cli_utils): Don't call deleted functions.
6815
6816 2019-06-13 Pedro Alves <palves@redhat.com>
6817
6818 * thread.c: Include "cli/cli-option.h".
6819 (tp_array_compar_ascending): Global.
6820 (tp_array_compar): Delete function.
6821 (tp_array_compar_ascending, tp_array_compar_descending): New
6822 functions.
6823 (ascending_option_def, qcs_flag_option_def)
6824 (thr_qcs_flags_option_defs)
6825 (make_thread_apply_all_options_def_group)
6826 (make_thread_apply_options_def_group): New.
6827 (thread_apply_all_command): Use gdb::option::process_options.
6828 (thread_apply_command_completer)
6829 (thread_apply_all_command_completer): New.
6830 (thread_apply_command): Use gdb::option::process_options.
6831 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6832 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6833 to generate help text of "thread apply". Adjust "taas"'s help.
6834 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6835 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6836
6837 2019-06-13 Pedro Alves <palves@redhat.com>
6838
6839 * thread.c (thread_apply_command): Check for invalid TID with
6840 isdigit instead of !isalpha.
6841
6842 2019-06-13 Pedro Alves <palves@redhat.com>
6843
6844 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6845 (validate_flags_qcs): New.
6846 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6847 (validate_flags_qcs): Declare.
6848 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6849 (make_frame_apply_options_def_group): New.
6850 (frame_apply_command_count): Process options with
6851 gdb::option::process_options.
6852 (frame_apply_completer): New.
6853 (frame_apply_level_completer, frame_apply_all_completer)
6854 (frame_apply_completer): New.
6855 (_initialize_stack): Update help of "frame apply", "frame apply
6856 level", "frame apply all" and "faas" to mention supported options
6857 and install command completers.
6858 * stack.h (frame_apply_all_completer): Declare.
6859 * thread.c: Include "stack.h".
6860 (tfaas_command): Add "--".
6861 (_initialize_thread): Update help "tfaas" to mention supported
6862 options and install command completer.
6863
6864 2019-06-13 Pedro Alves <palves@redhat.com>
6865
6866 * completer.c (complete_nested_command_line): New.
6867 (gdb_completion_word_break_characters_throw): Add assertion.
6868 * completer.h (complete_nested_command_line): Declare.
6869
6870 2019-06-13 Pedro Alves <palves@redhat.com>
6871
6872 * stack.c (parse_backtrace_qualifiers): New.
6873 (backtrace_command): Use it.
6874 (backtrace_command_completer): Complete on qualifiers.
6875
6876 2019-06-13 Pedro Alves <palves@redhat.com>
6877
6878 * frame.c: Include "cli/cli-option.h.
6879 (user_set_backtrace_options): New.
6880 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6881 Delete.
6882 (get_prev_frame): Adjust.
6883 (boolean_option_def, uinteger_option_def)
6884 (set_backtrace_option_defs): New.
6885 (_initialize_frame): Adjust and use
6886 gdb::option::add_setshow_cmds_for_options to install "set
6887 backtrace past-main" and "set backtrace past-entry".
6888 * frame.h: Include "cli/cli-option.h".
6889 (struct frame_print_options): Forward declare.
6890 (print_frame_arguments_all, print_frame_arguments_scalars)
6891 (print_frame_arguments_none): Declare.
6892 (print_entry_values): Delete declaration.
6893 (struct frame_print_options, user_frame_print_options): New.
6894 (struct set_backtrace_options): New.
6895 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6896 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6897 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6898 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6899 (list_args_or_locals): Add frame_print_options parameter.
6900 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6901 * python/py-framefilter.c (enumerate_args): Pass down
6902 USER_FRAME_PRINT_OPTIONS.
6903 * stack.c: Include "cli/cli-option.h".
6904 (print_frame_arguments_all, print_frame_arguments_scalars)
6905 (print_frame_arguments_none): Declare.
6906 (print_raw_frame_arguments, print_entry_values): Delete.
6907 (user_frame_print_options): New.
6908 (boolean_option_def, enum_option_def, frame_print_option_defs):
6909 New.
6910 (struct backtrace_cmd_options): New.
6911 (bt_flag_option_def): New.
6912 (backtrace_command_option_defs): New.
6913 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6914 (print_frame_arg, read_frame_arg, print_frame_args)
6915 (print_frame_info, print_frame): Add frame_print_options parameter
6916 and use it.
6917 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6918 (backtrace_command_1): Add frame_print_options and
6919 backtrace_cmd_options parameters and use them.
6920 (make_backtrace_options_def_group): New.
6921 (backtrace_command): Process command options with
6922 gdb::option::process_options.
6923 (backtrace_command_completer): New.
6924 (_initialize_stack): Extend "backtrace"'s help to mention
6925 supported options. Install completer for "backtrace".
6926 Install some settings commands with add_setshow_cmds_for_options.
6927
6928 2019-06-13 Pedro Alves <palves@redhat.com>
6929
6930 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6931 and that "set/show print raw frame-arguments" are now deprecated.
6932
6933 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6934 command.
6935 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6936 * stack.c (_initialize_stack): Install "set/show print
6937 raw-frame-arguments", and deprecate "set/show print raw
6938 frame-arguments".
6939 * valprint.c (_initialize_valprint): Deprecate "set/show print
6940 raw".
6941
6942 2019-06-13 Pedro Alves <palves@redhat.com>
6943
6944 * compile/compile.c (struct compile_options): New.
6945 (compile_flag_option_def, compile_command_option_defs)
6946 (make_compile_options_def_group): New.
6947 (compile_file_command): Handle options with
6948 gdb::option::process_options.
6949 (compile_file_command_completer): New function.
6950 (compile_code_command): Handle options with
6951 gdb::option::process_options.
6952 (compile_code_command_completer): New function.
6953 (_initialize_compiler): Install completers for "compile code" and
6954 "compile file". Mention available options in "compile code" and
6955 "compile code"'s help.
6956 * completer.c (advance_to_completion_word): New, factored out from
6957 ...
6958 (advance_to_expression_complete_word_point): ... this.
6959 (advance_to_filename_complete_word_point): New.
6960 * completer.h (advance_to_filename_complete_word_point): New
6961 declaration.
6962
6963 2019-06-13 Pedro Alves <palves@redhat.com>
6964
6965 * compile/compile.c: Include "cli/cli-option.h".
6966 (compile_print_value): Scope data pointer is now a
6967 value_print_options pointer; adjust.
6968 (compile_print_command): Process options. Scope data pointer is
6969 now a value_print_options pointer; adjust.
6970 (_initialize_compile): Update "compile print"'s help to include
6971 supported options. Install a completer for "compile print".
6972 * cp-valprint.c (show_vtblprint, show_objectprint)
6973 (show_static_field_print): Delete.
6974 (_initialize_cp_valprint): Don't install "set print
6975 static-members", "set print vtbl", "set print object" here.
6976 * printcmd.c: Include "cli/cli-option.h" and
6977 "common/gdb_optional.h".
6978 (print_command_parse_format): Rework to fill in a
6979 value_print_options instead of a format_data.
6980 (print_value): Change parameter type from format_data pointer to
6981 value_print_options reference. Adjust.
6982 (print_command_1): Process options. Adjust to pass down a
6983 value_print_options.
6984 (print_command_completer): New.
6985 (_initialize_printcmd): Install print_command_completer as
6986 handle_brkchars completer for the "print" command. Update
6987 "print"'s help to include supported options.
6988 * valprint.c: Include "cli/cli-option.h".
6989 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6990 here from cp-valprint.c.
6991 (boolean_option_def, uinteger_option_def)
6992 (value_print_option_defs, make_value_print_options_def_group):
6993 New. Use gdb::option::add_setshow_cmds_for_options to install
6994 "set print elements", "set print null-stop", "set print repeats",
6995 "set print pretty", "set print union", "set print array", "set
6996 print address", "set print symbol", "set print array-indexes".
6997 * valprint.h: Include <string> and "cli/cli-option.h".
6998 (make_value_print_options_def_group): Declare.
6999 (print_value): Change parameter type from format_data pointer to
7000 value_print_options reference.
7001 (print_command_completer): Declare.
7002
7003 2019-06-13 Pedro Alves <palves@redhat.com>
7004
7005 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7006 (COMMON_SFILES): Add maint-test-settings.c.
7007 * cli/cli-decode.c (boolean_enums): New global, factored out from
7008 ...
7009 (add_setshow_boolean_cmd): ... here.
7010 * cli/cli-decode.h (boolean_enums): Declare.
7011 * cli/cli-option.c: New file.
7012 * cli/cli-option.h: New file.
7013 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7014 factored out from ...
7015 (parse_cli_boolean_value(const char *)): ... this.
7016 (is_unlimited_literal): Change parameter type to pointer to
7017 pointer. Adjust and advance ARG pointer.
7018 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7019 (parse_cli_var_enum): New, factored out from ...
7020 (do_set_command): ... this. Adjust.
7021 * cli/cli-setshow.h (parse_cli_boolean_value)
7022 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7023 (parse_cli_var_enum): Declare.
7024 * cli/cli-utils.c: Include "cli/cli-option.h".
7025 (get_ulongest): New.
7026 * cli/cli-utils.h (get_ulongest): Declare.
7027 (check_for_argument): New overloads.
7028 * maint-test-options.c: New file.
7029
7030 2019-06-13 Pedro Alves <palves@redhat.com>
7031
7032 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7033 parse a range if "-" is at the end of the string.
7034
7035 2019-06-13 Pedro Alves <palves@redhat.com>
7036
7037 * cli/cli-setshow.c (parse_auto_binary_operation)
7038 (parse_cli_boolean_value): Don't allow "o".
7039
7040 2019-06-13 Pedro Alves <palves@redhat.com>
7041
7042 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7043 * NEWS: Mention maint test-settings KIND.
7044 * maint-test-settings.c: New file.
7045
7046 2019-06-13 Pedro Alves <palves@redhat.com>
7047
7048 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7049 completer.
7050 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7051 "set" completers.
7052
7053 2019-06-13 Pedro Alves <palves@redhat.com>
7054
7055 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7056 after item.
7057
7058 2019-06-13 Pedro Alves <palves@redhat.com>
7059
7060 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7061
7062 2019-06-13 Pedro Alves <palves@redhat.com>
7063
7064 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7065 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7066 call.
7067 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7068 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7069 calls.
7070 (check_for_argument): Skip spaces after argument.
7071
7072 2019-06-13 Pedro Alves <palves@redhat.com>
7073
7074 * thread.c (thread_apply_command): Adjust TID parsing.
7075 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7076 detected before end of string.
7077 (tid_is_in_list): Error out if LIST is invalid.
7078
7079 2019-06-13 Pedro Alves <palves@redhat.com>
7080
7081 * completer.c (complete_line_internal_1): Rewind completion word
7082 point.
7083 (completion_tracker::advance_custom_word_point_by): Change
7084 parameter type to int.
7085 * completer.h (completion_tracker::advance_custom_word_point_by):
7086 Likewise.
7087
7088 2019-06-13 Pedro Alves <palves@redhat.com>
7089
7090 * completer.c (advance_to_completion_word): Handle delimiters.
7091
7092 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7093
7094 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7095
7096 2019-06-11 Tom Tromey <tom@tromey.com>
7097
7098 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7099 (xmalloc_failed): Move to alloc.c.
7100 * alloc.c: New file.
7101 * Makefile.in (COMMON_SFILES): Add alloc.c.
7102
7103 2019-06-11 Tom Tromey <tom@tromey.com>
7104
7105 * nat/linux-waitpid.c: Don't include server.h.
7106 (linux_debug): Remove.
7107 (my_waitpid): Update.
7108
7109 2019-06-11 Tom Tromey <tromey@adacore.com>
7110
7111 * infcall.c (_initialize_infcall): Remove trailing newline from
7112 help.
7113 * user-regs.c (_initialize_user_regs): Remove trailing newline
7114 from help.
7115 * typeprint.c (_initialize_typeprint): Remove trailing newline
7116 from help.
7117 * reverse.c (_initialize_reverse): Remove trailing newlines from
7118 help.
7119 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7120 from help.
7121 * language.c (add_set_language_command): Remove trailing newline
7122 from help.
7123 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7124 help.
7125 * disasm.c (_initialize_disasm): Remove trailing newline from
7126 help.
7127 * top.c (init_main): Remove trailing newline from help.
7128 * interps.c (_initialize_interpreter): Remove trailing newline
7129 from help.
7130 * btrace.c (_initialize_btrace): Remove trailing newlines from
7131 help.
7132 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7133 from help.
7134 * python/python.c (_initialize_python): Remove trailing newline
7135 from help.
7136 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7137 help.
7138 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7139 from help. Reformat some text.
7140 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7141 from help.
7142 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7143 newline from help.
7144
7145 2019-06-11 Tom Tromey <tromey@adacore.com>
7146
7147 * darwin-nat.c (darwin_decode_exception_message)
7148 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7149
7150 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7151
7152 * valops.c (value_slice): Check for not allocated or not
7153 associated values.
7154
7155 2019-06-10 Tom de Vries <tdevries@suse.de>
7156
7157 PR gdb/24618
7158 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7159 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7160 invalid.
7161
7162 2019-06-10 Tom de Vries <tdevries@suse.de>
7163
7164 PR gdb/24611
7165 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7166 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7167
7168 2019-06-10 Tom de Vries <tdevries@suse.de>
7169
7170 PR symtab/24545
7171 * symtab.c (struct demangled_name_entry): Add language field.
7172 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7173 static minimal symbol". Set and use language field.
7174
7175 2019-06-10 Tom Tromey <tromey@adacore.com>
7176
7177 * ada-lang.c (_initialize_ada_language): Update help text.
7178
7179 2019-06-10 Tom Tromey <tromey@adacore.com>
7180
7181 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7182 with a newline.
7183 * guile/guile.c (handle_boot_error): Don't end warning with a
7184 newline.
7185 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7186 warning with a newline.
7187 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7188 newline.
7189 (s12z_frame_cache): Likewise.
7190 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7191 a newline.
7192 * solib-svr4.c (disable_probes_interface): Don't end warning with
7193 a newline.
7194 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7195 newline.
7196 * python/python.c (do_finish_initialization): Don't end warning
7197 with a newline.
7198
7199 2019-06-10 Tom Tromey <tom@tromey.com>
7200
7201 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7202 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7203 gdbpy_enter.
7204
7205 2019-06-10 Tom Tromey <tromey@adacore.com>
7206
7207 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7208 data.
7209 (elf_new_init): Don't call stabsread_new_init.
7210 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7211 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7212 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7213
7214 2019-06-10 Tom de Vries <tdevries@suse.de>
7215
7216 PR symtab/16264
7217 PR symtab/24517
7218 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7219
7220 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7221
7222 * source.c (find_and_open_source): Also rewrite relative file
7223 names.
7224
7225 2019-04-26 Amos Bird <amosbird@gmail.com>
7226
7227 * annotate.c (annotate_thread_exited): Add "thread-exited"
7228 annotation.
7229
7230 2019-06-06 Tom Tromey <tromey@adacore.com>
7231
7232 * maint.h (class scoped_command_stats): Use
7233 DISABLE_COPY_AND_ASSIGN.
7234 <print_time>: New method.
7235 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7236 print_time.
7237 (scoped_command_stats::print_time): New method.
7238
7239 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7240
7241 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7242 instructions of lengths 6 or 8 bytes.
7243
7244 2019-06-04 Pedro Alves <palves@redhat.com>
7245
7246 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7247
7248 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7249 * breakpoint.c (condition_completer): Likewise.
7250 * cli/cli-dump.c (scan_expression): Likewise.
7251 * common/filestuff.c (mkdir_recursive): Likewise.
7252 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7253 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7254 (gdb_abspath): Likewise.
7255 * compile/compile-cplus-types.c
7256 (compile_cplus_instance::decl_name): Likewise.
7257 * completer.c (complete_explicit_location):
7258 (signal_completer, reg_or_group_completer_1): Likewise.
7259 * cp-support.c (cp_remove_params_if_any): Likewise.
7260 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7261 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7262 * infcmd.c (strip_bg_char): Likewise.
7263 * linespec.c (copy_token_string): Likewise.
7264 * mi/mi-main.c (output_cores): Likewise.
7265 * psymtab.c (psymtab_search_name):
7266 * symfile.c (test_set_ext_lang_command): Likewise.
7267 * target.c (target_fileio_read_stralloc): Likewise.
7268 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7269 * value.c (complete_internalvar): Likewise.
7270
7271 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7272
7273 Add objfile property to gdb.Type.
7274 * NEWS: Mention Python API addition.
7275 * python/py-type.c (typy_get_objfile): New method.
7276
7277 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7278
7279 * NEWS: Mention the new set|show style [title|highlight].
7280 Mention changes to "show style", "help" and "apropos".
7281
7282 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7283
7284 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7285 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7286 instead of print_help_for_command.
7287 (print_doc_of_command): New function.
7288 (help_list): Add 'apropos -v word' suggestion.
7289 (print_help_for_command): Style the command name using title style.
7290 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7291 (_initialize_cli_cmds): Describe -v in apropos_command help.
7292
7293 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7294
7295 * cli/cli-style.h (cli_style_option): Add name in constructor,
7296 add m_name class member, add constructor with intensity,
7297 add name class function.
7298 (cli_style_option::add_setshow_commands): Remove name argument.
7299 (highlight_style, title_style): New styles.
7300 * cli/cli-style.c (do_show): New function that shows a style
7301 characteristic styling the style name with itself.
7302 (set_style_name): New function.
7303 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7304 Update all callers according to the changes in cli/cli-style.h.
7305 * utils.h (fputs_highlighted): New function.
7306 * utils.c (fputs_highlighted): Likewise.
7307
7308 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7309
7310 * NEWS: Mention new pipe command and new convenience variables.
7311
7312 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7313
7314 * cli/cli-cmds.c (pipe_command): New function.
7315 (_initialize_cli_cmds): Call add_com for pipe_command.
7316 Define | as an alias for pipe.
7317 (exit_status_set_internal_vars): New function.
7318 (shell_escape): Call exit_status_set_internal_vars.
7319 cli/cli-decode.c (find_command_name_length): Recognize | as
7320 a single character command.
7321
7322 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7323
7324 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7325 top.c (execute_command_to_ui_file): New function, mostly a copy
7326 of execute_command_to_string.
7327 (execute_command_to_string): Implement by calling
7328 execute_command_to_ui_file.
7329
7330 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7331
7332 * top.h (saved_command_line): Remove declaration.
7333 * top.c (previous_saved_command_line, previous_repeat_arguments):
7334 New variables.
7335 (saved_command_line): Make static, define together with other
7336 'repeat variables'.
7337 (dont_repeat): Clear repeat_arguments.
7338 (repeat_previous, get_saved_command_line, save_command_line):
7339 New functions.
7340 (gdb_init): Initialize saved_command_line
7341 and previous_saved_command_line.
7342 * main.c (captured_main_1): Remove saved_command_line initialization.
7343 * event-top.c (handle_line_of_input): Update to use
7344 the new 'repeat' related functions instead of direct access to
7345 saved_command_line.
7346 * command.h (repeat_previous, get_saved_command_line,
7347 save_command_line): New declarations.
7348 (dont_repeat): Add comment.
7349
7350 2019-05-30 Tom Tromey <tromey@adacore.com>
7351
7352 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7353 Fix comment.
7354 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7355
7356 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7357
7358 PR cli/24587
7359 * completer.c (complete): Initialize variable word.
7360
7361 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7362
7363 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7364 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7365 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7366 'body' is NULL to the outter 'if', protecting the '!is_define'
7367 situation as well.
7368
7369 2019-05-29 Tom Tromey <tromey@adacore.com>
7370
7371 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7372 (dwarf_unknown): New function.
7373 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7374 (dwarf_type_encoding_name): Use dwarf_unknown.
7375
7376 2019-05-29 Tom Tromey <tromey@adacore.com>
7377
7378 PR c++/20020:
7379 * cp-valprint.c (cp_print_value_fields): Call
7380 cp_print_static_field inside "try".
7381
7382 2019-05-29 Tom Tromey <tromey@adacore.com>
7383
7384 * inflow.c (struct terminal_info): Add default operator=.
7385 * configure: Rebuild.
7386 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7387 -Wdeprecated-copy-dtor, -Wredundant-move.
7388
7389 2019-05-29 Tom Tromey <tromey@adacore.com>
7390
7391 * NEWS: Add entry.
7392 * infcmd.c (print_return_value_1): Handle finish_print
7393 option.
7394 (show_print_finish): New function.
7395 (_initialize_infcmd): Add "set/show print finish" commands.
7396 * valprint.c (user_print_options): Initialize new member.
7397 * valprint.h (struct value_print_options) <finish_print>: New
7398 member.
7399
7400 2019-05-28 Tom Tromey <tromey@adacore.com>
7401
7402 * ada-lang.c (ada_remove_Xbn_suffix)
7403 (find_old_style_renaming_symbol)
7404 (parse_old_style_renaming): Remove.
7405 (ada_find_renaming_symbol): Don't call
7406 find_old_style_renaming_symbol.
7407 (ada_is_renaming_symbol): Rename from
7408 ada_find_renaming_symbol. Remove "block" parameter. Return
7409 bool. Now static.
7410 (ada_read_var_value): Update and simplify.
7411 * ada-exp.y (write_var_or_type): Remove old code.
7412
7413 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7414
7415 PR gdb/25010
7416 * event-top.c: Remove include comment.
7417 * inflow.c (class scoped_ignore_sigttou): Move from here...
7418 * inflow.h (class scoped_ignore_sigttou): ...to here.
7419 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7420 * top.c: Remove include comment.
7421
7422 2019-05-27 Tom Tromey <tom@tromey.com>
7423
7424 * NEWS: Fix typo.
7425
7426 2019-05-22 Tom Tromey <tromey@adacore.com>
7427
7428 * target.c (target_follow_exec): Constify parameter.
7429 * target-delegates.c: Rebuild.
7430 * remote.c (remote_target::follow_exec): Constify parameter.
7431 * infrun.c (follow_exec): Constify parameter.
7432 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7433 (target_follow_exec): Likewise.
7434
7435 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7436
7437 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7438 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7439
7440 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7441
7442 * NEWS: Add debugredirect and testsuite sections.
7443
7444 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7445
7446 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7447 target descriptions using exclusively floating point register name
7448 aliases.
7449
7450 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7451
7452 PR gdb/18644:
7453 * f-lang.c (build_fortran_types): Handle the case where
7454 gdbarch_floatformat_for_type returns a nullptr.
7455
7456 2019-05-21 Tom de Vries <tdevries@suse.de>
7457
7458 PR cli/24587
7459 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7460
7461 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7462
7463 PR gdb/18644:
7464 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7465 16-byte floats.
7466 * i386-tdep.c (i386_floatformat_for_type): Use
7467 floatformats_ia64_quad for the 16-byte floating point component
7468 within a fortran 32-byte complex number.
7469
7470 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7471
7472 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7473 delete default constructor.
7474 (find_partial_die): Update to return const struct.
7475 (partial_die_parent_scope): Move variable declaration into scope
7476 of its use and change its type to auto.
7477 (guess_partial_die_structure_name): Likewise.
7478 (partial_die_info::fixup): Likewise.
7479
7480 2019-05-17 Tom Tromey <tromey@adacore.com>
7481
7482 * source.c (find_and_open_source): Remove cast.
7483
7484 2019-05-17 Tom Tromey <tromey@adacore.com>
7485
7486 * annotate.c (annotate_source): Make "filename" const.
7487 * annotate.h (annotate_source): Use const.
7488
7489 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7490
7491 * disasm.c (set_disassembler_options): Send errors to stderr.
7492
7493 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7494
7495 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7496 (cli_interp_base::set_logging): Check debug_redirect.
7497 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7498 * cli/cli-logging.c (debug_redirect): Add static variable.
7499 (pop_output_files): Add default param.
7500 (handle_redirections): Print debug setting.
7501 (show_logging_command): Likewise.
7502 (_initialize_cli_logging): Add debugredirect command.
7503 * interps.c (current_interp_set_logging): Add debug_redirect
7504 parameter.
7505 * interps.h (set_logging): Add debug_redirect parameter.
7506 (current_interp_set_logging): Likewise.
7507 * mi/mi-common.h: Likewise.
7508 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7509
7510 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7511 Tom Tromey <tromey@adacore.com>
7512
7513 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7514 directly.
7515 * cli/cli-interp.h (make_logging_output): Remove declaration.
7516 * cli/cli-logging.c (make_logging_output): Remove function.
7517 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7518 directly.
7519 * ui-file.c (tee_file::tee_file): Remove bools.
7520 (tee_file::~tee_file): Remove deletes.
7521 * ui-file.h (tee_file): Remove bools.
7522
7523 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7524
7525 * mi/mi-cmds.h (mi_cmd_complete): New function.
7526 * mi/mi-main.c (mi_cmd_complete): Likewise.
7527 * mi/mi-cmds.c: Define new MI command -complete.
7528 * NEWS: Mention new -complete command.
7529
7530 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7531
7532 * completer.h (complete): New function.
7533 * completer.c (complete): Likewise.
7534 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7535 function defined in completer.h.
7536
7537 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7538
7539 * MAINTAINERS (Write After Approval): Add myself.
7540
7541 2019-05-17 Tom de Vries <tdevries@suse.de>
7542
7543 PR gdb/24094
7544 * dwarf2read.c (struct cu_partial_die_info): New struct.
7545 (find_partial_die): Return cu_partial_die_info.
7546 (partial_die_parent_scope, guess_partial_die_structure_name)
7547 (partial_die_info::fixup): Handle new return type of find_partial_die.
7548
7549 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7550
7551 PR breakpoints/24541
7552 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7553 "std::string", simplifying the algorithm.
7554
7555 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7556
7557 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7558 (stap_static_probe_ops::get_probes): Likewise.
7559
7560 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7561
7562 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7563 '-')" and "else if".
7564 (stap_parse_single_operand): Join checks for
7565 "gdbarch_stap_parse_special_token_p" and
7566 "gdbarch_stap_parse_special_token" in the same "if" statement.
7567 Invert check when verifying for operation on register
7568 displacement.
7569
7570 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7571
7572 * stap-probe.c (stap_get_opcode): Update comment.
7573 (stap_get_expected_argument_type): Likewise.
7574 (handle_stap_probe): Likewise.
7575
7576 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7577
7578 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7579 return type to 'bool'. Adjust comment. Use 'bool' when
7580 appropriate.
7581 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7582 * stap-probe.c (stap_parse_argument_1): Likewise.
7583 (stap_is_operator): Likewise.
7584 (stap_is_generic_prefix): Likewise.
7585 (stap_is_register_prefix): Likewise.
7586 (stap_is_register_indirection_prefix): Likewise.
7587 (stap_is_integer_prefix): Likewise.
7588 (stap_generic_check_suffix): Likewise.
7589 (stap_check_integer_suffix): Likewise.
7590 (stap_check_register_suffix): Likewise.
7591 (stap_check_register_indirection_suffix): Likewise.
7592 (stap_parse_register_operand): Likewise.
7593 (stap_parse_single_operand): Likewise.
7594 (stap_parse_argument_1): Likewise.
7595 (stap_probe::get_argument_count): Likewise.
7596 (stap_is_operator): Likewise.
7597
7598 2019-05-16 Tom Tromey <tromey@adacore.com>
7599
7600 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7601 keyword to foreach.
7602
7603 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7604
7605 * linux-thread-db.c (try_thread_db_load_1): Change return type
7606 to bool.
7607 (try_thread_db_load): Likewise.
7608 (try_thread_db_load_from_pdir_1): Likewise.
7609 (try_thread_db_load_from_pdir): Likewise.
7610 (try_thread_db_load_from_sdir): Likewise.
7611 (try_thread_db_load_from_dir): Likewise.
7612 (thread_db_load_search): Likewise.
7613 (has_libpthread): Likewise.
7614 (thread_db_load): Likewise.
7615
7616 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7617
7618 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7619 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7620 NULL, and complain/return if that's the case.
7621
7622 2019-05-15 John Darrington <john@darrington.wattle.id.au>
7623
7624 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7625 (advance, posn, abstract_read_memory): New functions.
7626 [struct mem_read_abstraction]: New struct.
7627 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7628
7629 2019-05-14 Tom Tromey <tromey@adacore.com>
7630
7631 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7632 value is not lval_memory.
7633
7634 2019-05-14 Tom Tromey <tromey@adacore.com>
7635
7636 * solib.c (info_sharedlibrary_command): Style the file name.
7637
7638 2019-05-14 Alan Hayward <alan.hayward@arm.com>
7639
7640 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7641 (aarch64_vnv_type): Likewise.
7642 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7643 * common/tdesc.c: Likewise.
7644 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7645 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7646 * features/aarch64-fpu.xml: Add ieee half view.
7647 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7648 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7649 * gdbtypes.h (struct builtin_type): Likewise.
7650 (struct objfile_type): Likewise.
7651
7652 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
7653
7654 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7655 typo.
7656 * location.h (string_to_event_location): Likewise.
7657
7658 2019-05-11 Joel Brobecker <brobecker@adacore.com>
7659
7660 GDB 8.3 released.
7661
7662 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7663
7664 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7665 New variable declaration.
7666 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7667 New variable.
7668 (print_one_breakpoint): Use ui_out::test_flags and new global
7669 variable to compute use_fixed_output.
7670 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7671 Remove.
7672 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7673 (mi_multi_location_breakpoint_output_fixed): Remove.
7674 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7675 new variable.
7676 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7677 fix_multi_location_breakpoint_output flag if version >= 3.
7678 * ui-out.h (enum ui_out_flag)
7679 <fix_multi_location_breakpoint_output>: New enumerator.
7680
7681 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7682
7683 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7684
7685 2019-05-10 Tom Tromey <tromey@adacore.com>
7686
7687 * ada-lang.c (catch_ada_completer): New function.
7688 (_initialize_ada_language): Use it.
7689
7690 2019-05-10 Tom Tromey <tromey@adacore.com>
7691
7692 * thread.c (print_thread_info): Make "requested_threads" const.
7693 * gdbthread.h (print_thread_info): Make "requested_threads"
7694 const.
7695 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7696 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7697
7698 2019-05-08 Tom Tromey <tom@tromey.com>
7699
7700 * gdbtypes.c (objfile_type_data): Change type.
7701 (objfile_type, _initialize_gdbtypes): Update.
7702
7703 2019-05-08 Tom Tromey <tom@tromey.com>
7704
7705 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7706 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7707 (_initialize_dwarf2_frame): Update.
7708
7709 2019-05-08 Tom Tromey <tom@tromey.com>
7710
7711 * objc-lang.c (objc_objfile_data): Change type.
7712 (find_methods): Update.
7713 (_initialize_objc_lang): Remove.
7714
7715 2019-05-08 Tom Tromey <tom@tromey.com>
7716
7717 * stabsread.c (rs6000_builtin_type_data): Change type.
7718 (rs6000_builtin_type, _initialize_stabsread): Update.
7719
7720 2019-05-08 Tom Tromey <tom@tromey.com>
7721
7722 * mips-tdep.c (mips_pdr_data): Remove.
7723 (_initialize_mips_tdep): Update.
7724
7725 2019-05-08 Tom Tromey <tom@tromey.com>
7726
7727 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7728 (hppa_init_objfile_priv_data, read_unwind_info)
7729 (find_unwind_entry, _initialize_hppa_tdep): Update.
7730
7731 2019-05-08 Tom Tromey <tom@tromey.com>
7732
7733 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7734 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7735 on obstack.
7736 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7737
7738 2019-05-08 Tom Tromey <tom@tromey.com>
7739
7740 * mdebugread.c (basic_type_data): Change type.
7741 (basic_type, _initialize_mdebugread): Update.
7742
7743 2019-05-08 Tom Tromey <tom@tromey.com>
7744
7745 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7746
7747 2019-05-08 Tom Tromey <tom@tromey.com>
7748
7749 * nto-tdep.c (nto_inferior_data_reg): Change type.
7750 (nto_inferior_data): Update.
7751 (nto_inferior_data_cleanup, nto_new_inferior_data)
7752 (_initialize_nto_tdep): Remove.
7753 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7754
7755 2019-05-08 Tom Tromey <tom@tromey.com>
7756
7757 * ada-lang.c (struct ada_inferior_data): Add initializers.
7758 (ada_inferior_data): Change type.
7759 (ada_inferior_data_cleanup): Remove.
7760 (get_ada_inferior_data, ada_inferior_exit)
7761 (struct ada_pspace_data): Add initializers, destructor.
7762 (ada_pspace_data_handle): Change type.
7763 (get_ada_pspace_data): Update.
7764 (ada_pspace_data_cleanup): Remove.
7765
7766 2019-05-08 Tom Tromey <tom@tromey.com>
7767
7768 * coffread.c (struct coff_symfile_info): Add initializers.
7769 (coff_objfile_data_key): Move lower. Change type.
7770 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7771 Update.
7772 (coff_free_info): Remove.
7773
7774 2019-05-08 Tom Tromey <tom@tromey.com>
7775
7776 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7777 (fbsd_pspace_data_handle): Move lower. Change type.
7778 (get_fbsd_pspace_data): Update.
7779 (fbsd_pspace_data_cleanup): Remove.
7780 (_initialize_fbsd_tdep): Update.
7781
7782 2019-05-08 Tom Tromey <tom@tromey.com>
7783
7784 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7785 (get_ada_tasks_pspace_data): Update.
7786 (ada_tasks_pspace_data_cleanup): Remove.
7787 (_initialize_tasks): Update.
7788 (ada_tasks_inferior_data_handle): Change type.
7789 (get_ada_tasks_inferior_data): Update.
7790 (ada_tasks_inferior_data_cleanup): Remove.
7791 (struct ada_tasks_pspace_data): Add initializers.
7792
7793 2019-05-08 Tom Tromey <tom@tromey.com>
7794
7795 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7796 * symfile-debug.c (debug_sym_get_probes): Change type.
7797 * stap-probe.c (handle_stap_probe):
7798 (stap_static_probe_ops::get_probes): Change type.
7799 * probe.h (class static_probe_ops) <get_probes>: Change type.
7800 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7801 (parse_probes_in_pspace): Update.
7802 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7803 Update.
7804 (any_static_probe_ops::get_probes): Change type.
7805 * elfread.c (elfread_data): New typedef.
7806 (probe_key): Change type.
7807 (elf_get_probes): Likewise. Update.
7808 (probe_key_free): Remove.
7809 (_initialize_elfread): Update.
7810 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7811 Change type.
7812 (dtrace_process_dof_probe, dtrace_process_dof)
7813 (dtrace_static_probe_ops::get_probe): Change type.
7814
7815 2019-05-08 Tom Tromey <tom@tromey.com>
7816
7817 * xcoffread.c (struct xcoff_symfile_info): Rename from
7818 coff_symfile_info. Add initializers.
7819 (xcoff_objfile_data_key): Move lower. Change type.
7820 (XCOFF_DATA): Rewrite.
7821 (xcoff_free_info): Remove.
7822 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7823 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7824 (xcoff_initial_scan): Update.
7825
7826 2019-05-08 Tom Tromey <tom@tromey.com>
7827
7828 * solib-svr4.c (struct svr4_info): Add initializers and
7829 destructor.
7830 <probes_table>: Now an htab_up.
7831 (solib_svr4_pspace_data): Change type.
7832 (free_probes_table): Simplify.
7833 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7834 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7835 (probes_table_remove_objfile_probes, register_solib_event_probe)
7836 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7837 (_initialize_svr4_solib): Update.
7838
7839 2019-05-08 Tom Tromey <tom@tromey.com>
7840
7841 * remote.c (remote_pspace_data): Change type.
7842 (remote_pspace_data_cleanup): Remove.
7843 (get_remote_exec_file, set_pspace_remote_exec_file)
7844 (_initialize_remote): Update.
7845
7846 2019-05-08 Tom Tromey <tom@tromey.com>
7847
7848 * breakpoint.c (breakpoint_objfile_key): Change type.
7849 (get_breakpoint_objfile_data): Update.
7850 (free_breakpoint_objfile_data): Remove.
7851 (_initialize_breakpoint): Update.
7852
7853 2019-05-08 Tom Tromey <tom@tromey.com>
7854
7855 * linux-tdep.c (struct linux_info): Add initializers.
7856 (linux_inferior_data): Move. Change type.
7857 (invalidate_linux_cache_inf): Update.
7858 (linux_inferior_data_cleanup): Remove.
7859 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7860
7861 2019-05-08 Tom Tromey <tom@tromey.com>
7862
7863 * auxv.c (auxv_inferior_data): Move. Change type.
7864 (auxv_inferior_data_cleanup): Remove.
7865 (invalidate_auxv_cache_inf): Rewrite.
7866 (get_auxv_inferior_data, _initialize_auxv): Update.
7867
7868 2019-05-08 Tom Tromey <tom@tromey.com>
7869
7870 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7871 (symfile_debug_objfile_data_key): Change type.
7872 (symfile_debug_installed, debug_qf_has_symbols)
7873 (debug_qf_find_last_source_symtab)
7874 (debug_qf_forget_cached_source_info)
7875 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7876 (debug_qf_print_stats, debug_qf_dump)
7877 (debug_qf_expand_symtabs_for_function)
7878 (debug_qf_expand_all_symtabs)
7879 (debug_qf_expand_symtabs_with_fullname)
7880 (debug_qf_map_matching_symbols)
7881 (debug_qf_expand_symtabs_matching)
7882 (debug_qf_find_pc_sect_compunit_symtab)
7883 (debug_qf_map_symbol_filenames)
7884 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7885 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7886 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7887 (debug_sym_read_linetable, debug_sym_relocate): Update.
7888 (symfile_debug_free_objfile): Remove.
7889 (install_symfile_debug_logging, _initialize_symfile_debug):
7890 Update.
7891
7892 2019-05-08 Tom Tromey <tom@tromey.com>
7893
7894 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7895 allocate_on_obstack.
7896 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7897 (get_dwarf2_per_objfile): Update.
7898 (set_dwarf2_per_objfile): Remove.
7899 (dwarf2_has_info, dwarf2_get_section_info): Update.
7900 (dwarf2_free_objfile): Remove.
7901 (_initialize_dwarf2_read): Update.
7902
7903 2019-05-08 Tom Tromey <tom@tromey.com>
7904
7905 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7906 initializers.
7907 <unsupported_script_warning_printed,
7908 script_not_found_warning_printed>: Now bool.
7909 (auto_load_pspace_data): Change type.
7910 (~auto_load_pspace_info): Rename from
7911 auto_load_pspace_data_cleanup.
7912 (get_auto_load_pspace_data, init_loaded_scripts_info)
7913 (clear_section_scripts, maybe_print_unsupported_script_warning)
7914 (maybe_print_script_not_found_warning, _initialize_auto_load):
7915 Update.
7916
7917 2019-05-08 Tom Tromey <tom@tromey.com>
7918
7919 * objfiles.c (objfile_pspace_info): Add destructor and
7920 initializers.
7921 (objfiles_pspace_data): Change type.
7922 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7923 (get_objfile_pspace_data): Update.
7924 (objfiles_bfd_data): Change type.
7925 (get_objfile_bfd_data): Update.
7926 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7927
7928 2019-05-08 Tom Tromey <tom@tromey.com>
7929
7930 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7931 Change type.
7932 (get_catch_syscall_inferior_data): Update.
7933 (catch_syscall_inferior_data_cleanup): Remove.
7934 (_initialize_break_catch_syscall): Update.
7935
7936 2019-05-08 Tom Tromey <tom@tromey.com>
7937
7938 * inflow.c (struct terminal_info): Add destructor and
7939 initializers.
7940 (inflow_inferior_data): Change type.
7941 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7942 (get_inflow_inferior_data, inflow_inferior_exit)
7943 (swap_terminal_info, _initialize_inflow): Update.
7944
7945 2019-05-08 Tom Tromey <tom@tromey.com>
7946
7947 * target-dcache.c (target_dcache_cleanup): Remove.
7948 (target_dcache_aspace_key): Change type.
7949 (target_dcache_init_p, target_dcache_invalidate)
7950 (target_dcache_get, target_dcache_get_or_init)
7951 (_initialize_target_dcache): Update.
7952 * dcache.h (struct dcache_deleter): New.
7953
7954 2019-05-08 Tom Tromey <tom@tromey.com>
7955
7956 * symtab.c (struct symbol_cache): Add destructor and
7957 initializers.
7958 (symbol_cache_key): Move. Change type.
7959 (make_symbol_cache, free_symbol_cache): Remove.
7960 (get_symbol_cache): Update.
7961 (symbol_cache_cleanup): Remove.
7962 (ALL_PSPACES, symbol_cache_flush)
7963 (maintenance_print_symbol_cache)
7964 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7965 Update.
7966
7967 2019-05-08 Tom Tromey <tom@tromey.com>
7968
7969 * symtab.c (struct main_info): Add destructor and initializers.
7970 (main_progspace_key): Move. Change type.
7971 (get_main_info): Update.
7972 (main_info_cleanup): Remove.
7973 (_initialize_symtab): Update.
7974
7975 2019-05-08 Tom Tromey <tom@tromey.com>
7976
7977 * registry.h (DECLARE_REGISTRY): Define the _key class.
7978
7979 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7980
7981 * NEWS: Merge two 'New commands' sections.
7982
7983 2019-05-08 Joel Brobecker <brobecker@adacore.com>
7984
7985 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7986 parameter and use Ada language definition instead.
7987 (ada_val_print_ptr): Remove unused language parameter.
7988 (ada_val_print_num): Remove language parameter and use Ada language
7989 definition instead.
7990 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7991 parameter.
7992 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7993 parameter and use Ada language definition instead.
7994 (ada_val_print_1): Update all ada_val_print_xxx calls.
7995 Remove language parameter.
7996 (ada_val_print): Update ada_val_print_1 call.
7997
7998 2019-05-08 Tom Tromey <tromey@adacore.com>
7999
8000 * remote.c (remote_hw_watchpoint_limit)
8001 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8002 Now static.
8003
8004 2019-05-08 Tom Tromey <tromey@adacore.com>
8005
8006 * maint.c (_initialize_maint_cmds): Move initialization code to
8007 remote.c.
8008 (watchdog, show_watchdog): Move to remote.c.
8009 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8010 "watchdog" static.
8011 (_initialize_remote): Move initialization code from maint.c.
8012 * defs.h (watchdog): Don't declare.
8013
8014 2019-05-08 Tom Tromey <tromey@adacore.com>
8015
8016 * tui/tui-interp.c: Include main.h.
8017 * interps.c: Include main.h.
8018 * main.h (interpreter_p): Declare.
8019 * defs.h (interpreter_p): Don't declare.
8020
8021 2019-05-08 Tom Tromey <tromey@adacore.com>
8022
8023 * dwarf2loc.c: Include dwarf2read.h.
8024 * defs.h (read_unsigned_leb128): Don't declare.
8025 * dwarf2read.h (read_unsigned_leb128): Declare.
8026
8027 2019-05-08 Tom Tromey <tromey@adacore.com>
8028
8029 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8030 method.
8031
8032 2019-05-08 Tom Tromey <tromey@adacore.com>
8033
8034 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8035 when no wrap column is set.
8036
8037 2019-05-08 Tom Tromey <tromey@adacore.com>
8038
8039 * c-lang.c (c_get_string): Handle non-C-style arrays.
8040
8041 2019-05-08 Tom Tromey <tromey@adacore.com>
8042
8043 * typeprint.c (print_offset_data::update): Print the bit offset,
8044 not the number of bits remaining.
8045
8046 2019-05-08 Tom Tromey <tromey@adacore.com>
8047
8048 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8049 padding at end of comment.
8050
8051 2019-05-08 Tom Tromey <tromey@adacore.com>
8052
8053 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8054 Compare main types.
8055
8056 2019-05-06 Tom Tromey <tom@tromey.com>
8057
8058 * common/scoped_mmap.c: Include common-defs.h.
8059 * common/scoped_mmap.h: Don't include config.h.
8060
8061 2019-05-04 Tom Tromey <tom@tromey.com>
8062
8063 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8064 (struct aarch64_call_info): Add initializers.
8065 <si>: Now a std::vector.
8066 (pass_on_stack, aarch64_push_dummy_call): Update.
8067
8068 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8069 Tom Tromey <tom@tromey.com>
8070
8071 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8072 (ppc_threads): Now a std::vector. Now static.
8073 (hwdebug_find_thread_points_by_tid)
8074 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8075 Update.
8076
8077 2019-05-04 Tom Tromey <tom@tromey.com>
8078
8079 * arc-tdep.c (arc_tdesc_init): Return bool.
8080
8081 2019-05-04 Tom Tromey <tom@tromey.com>
8082
8083 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8084 Use gdb_assert_not_reached.
8085
8086 2019-05-04 Tom Tromey <tom@tromey.com>
8087
8088 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8089 "false".
8090
8091 2019-05-04 Tom Tromey <tom@tromey.com>
8092
8093 * arc-tdep.c (arc_tdesc_init): Use bool.
8094
8095 2019-05-04 Tom Tromey <tom@tromey.com>
8096
8097 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8098
8099 2019-05-04 Tom Tromey <tom@tromey.com>
8100
8101 * cli/cli-cmds.c (valid_command_p): Return bool.
8102
8103 2019-05-04 Tom Tromey <tom@tromey.com>
8104
8105 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8106 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8107
8108 2019-05-04 Raul Tambre <raul@tambre.ee>
8109
8110 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8111 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8112 operator for comparison.
8113
8114 2019-05-04 Tom Tromey <tom@tromey.com>
8115
8116 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8117 (lookup_partial_symbol, print_partial_symbols)
8118 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8119 (psymbol_compare): Update.
8120 (add_psymbol_to_bcache): Clear the entire psymbol.
8121 (maintenance_check_psymtabs): Update.
8122 * psympriv.h (struct partial_symbol): Don't derive from
8123 general_symbol_info.
8124 <obj_section, unrelocated_address, address,
8125 set_unrelocated_address>: Update.
8126 <ginfo>: New member.
8127 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8128 (debug_names::write_psymbols): Update.
8129
8130 2019-05-04 Tom de Vries <tdevries@suse.de>
8131
8132 * contrib/cc-with-tweaks.sh: Support -n arg.
8133
8134 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8135
8136 * corelow.c (core_target::detach): Ensure frame cache and
8137 register caches are cleared.
8138 inferior.c (exit_inferior_1): Likewise.
8139
8140 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8141 Tom Tromey <tom@tromey.com>
8142
8143 * dictionary.c (collate_pending_symbols_by_language): Remove
8144 "struct" from foreach.
8145 * symtab.c (lookup_global_symbol_from_objfile)
8146 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8147 foreach.
8148 * ser-tcp.c (net_open): Remove "struct" from foreach.
8149 * objfiles.c (objfile_relocate, objfile_rebase)
8150 (objfile_has_symbols): Remove "struct" from foreach.
8151 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8152 from foreach.
8153 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8154 foreach.
8155 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8156 "struct" from foreach.
8157 * ada-lang.c (create_excep_cond_exprs)
8158 (ada_exception_catchpoint_cond_string): Remove "struct" from
8159 foreach.
8160
8161 2019-05-03 Tom Tromey <tromey@adacore.com>
8162
8163 * ada-exp.y (convert_char_literal): Check suffix of each
8164 enumerator.
8165
8166 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8167
8168 PR ada/21406:
8169 * ada-exp.y (yywrap): Don't define.
8170 * ada-lex.l (%option): Add noyywrap
8171 (yywrap): Remove.
8172
8173 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8174
8175 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8176 _WIN32_WINNT to the XP level, unless already defined to a higher
8177 level.
8178
8179 * unittests/parse-connection-spec-selftests.c:
8180 * ser-tcp.c:
8181 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8182 override.
8183
8184 * symfile.c (find_separate_debug_file): Remove colon from the
8185 drive spec of DOS/Windows file names of the target, so that the
8186 file name produced from DEBUGDIR and the target's directory will
8187 be valid on DOS/Windows systems.
8188
8189 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8190
8191 * rust-lang.c (val_print_struct): Handle printing structures
8192 containing strings.
8193
8194 2019-05-02 Tom Tromey <tromey@adacore.com>
8195
8196 * valarith.c (_initialize_valarith): Remove.
8197
8198 2019-05-01 Tom Tromey <tromey@adacore.com>
8199
8200 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8201 bitfields.
8202
8203 2019-05-01 Tom Tromey <tromey@adacore.com>
8204
8205 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8206 for big-endian copies.
8207
8208 2019-04-30 Ali Tamur <tamur@google.com>
8209 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8210 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8211 (read_3_bytes): New function.
8212
8213 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8214
8215 * windows-nat.c (main_thread_id): Delete.
8216 (handle_output_debug_string): Replace main_thread_id by
8217 current_event.dwThreadId.
8218 (fake_create_process): Likewise.
8219 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8220 Do not set main_thread_id.
8221 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8222 current_event.dwThreadId.
8223 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8224
8225 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8226
8227 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8228 Use current_event.dwThreadId instead of main_thread_id.
8229
8230 2019-04-30 Tom Tromey <tromey@adacore.com>
8231
8232 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8233 (create_excep_cond_exprs): Iterate over program spaces.
8234 (ada_exception_catchpoint_cond_string): Examine all minimal
8235 symbols for exception types.
8236
8237 2019-04-30 Tom Tromey <tromey@adacore.com>
8238
8239 PR c++/24470:
8240 * dwarf2read.c (process_structure_scope): Handle case where type
8241 has template parameters but no symbol was created.
8242
8243 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8244 Chris January <chris.january@arm.com>
8245
8246 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8247 qualifier.
8248 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8249
8250 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8251
8252 * f-typeprint.c (f_print_type): Update rules for printing
8253 whitespace.
8254 (f_type_print_varspec_suffix): Likewise.
8255
8256 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8257 Chris January <chris.january@arm.com>
8258
8259 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8260 function arguments.
8261
8262 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8263
8264 * f-lang.c (build_fortran_types): Change name of void type to
8265 lower case.
8266 * f-typeprint.c (f_type_print_base): Print the name of the void
8267 type, rather than a fixed string.
8268 * f-valprint.c (f_decorations): Use lower case void string.
8269
8270 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8271 Chris January <chris.january@arm.com>
8272
8273 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8274 types for Fortran.
8275
8276 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8277 Chris January <chris.january@arm.com>
8278 David Lecomber <david.lecomber@arm.com>
8279
8280 * f-exp.y (BINOP_INTRINSIC): New token.
8281 (exp): New parser rule handling BINOP_INTRINSIC.
8282 (f77_keywords): Add new builtin procedures.
8283 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8284 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8285 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8286 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8287 (print_unop_subexp_f): New function.
8288 (print_binop_subexp_f): New function.
8289 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8290 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8291 (dump_subexp_body_f): Likewise.
8292 (operator_check_f): Likewise.
8293 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8294 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8295
8296 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8297
8298 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8299 UNOP_KIND.
8300 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8301 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8302 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8303 (operator_length_f): New fuction.
8304 (print_subexp_f): New function.
8305 (op_name_f): New function.
8306 (dump_subexp_body_f): New function.
8307 (operator_check_f): New function.
8308 (exp_descriptor_f): Replace standard expression handling functions
8309 with new functions.
8310 * gdb/fortran-operator.def: New file.
8311 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8312 * gdb/std-operator.def: Remove UNOP_KIND.
8313
8314 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8315
8316 * std-operator.def: Remove unbalanced, stray double quote
8317 character.
8318
8319 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8320 Chris January <chris.january@arm.com>
8321 Daniel Everett <daniel.everett@arm.com>
8322 Nick Forrington <nick.forrington@arm.com>
8323 Richard Bunt <richard.bunt@arm.com>
8324
8325 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8326 of depth when printing anonymous structs or unions.
8327 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8328 Don't print either the top-level value, or the children if the
8329 max-depth is exceeded.
8330 (ppscm_print_children): When printing the key of a map, allow one
8331 extra level of depth.
8332 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8333 print either the top-level value, or the children if the max-depth
8334 is exceeded.
8335 (print_children): When printing the key of a map, allow one extra
8336 level of depth.
8337 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8338 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8339 (user_print_options): Initialise max_depth field.
8340 (val_print_scalar_or_string_type_p): New function.
8341 (val_print): Check to see if the max depth has been reached.
8342 (val_print_check_max_depth): Define new function.
8343 (show_print_max_depth): New function.
8344 (_initialize_valprint): Add 'print max-depth' option.
8345 * valprint.h (struct value_print_options) <max_depth>: New field.
8346 (val_print_check_max_depth): Declare new function.
8347 * NEWS: Document new feature.
8348
8349 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8350
8351 * ada-lang.c (ada_language_defn): Initialise new field.
8352 * c-lang.c (c_is_string_type_p): New function.
8353 (c_language_defn): Initialise new field.
8354 (cplus_language_defn): Initialise new field.
8355 (asm_language_defn): Initialise new field.
8356 (minimal_language_defn): Initialise new field.
8357 * c-lang.h (c_is_string_type_p): Declare new function.
8358 * d-lang.c (d_language_defn): Initialise new field.
8359 * f-lang.c (f_is_string_type_p): New function.
8360 (f_language_defn): Initialise new field.
8361 * go-lang.c (go_is_string_type_p): New function.
8362 (go_language_defn): Initialise new field.
8363 * language.c (default_is_string_type_p): New function.
8364 (unknown_language_defn): Initialise new field.
8365 (auto_language_defn): Initialise new field.
8366 * language.h (struct language_defn) <la_is_string_type_p>: New
8367 member variable.
8368 (default_is_string_type_p): Declare new function.
8369 * m2-lang.c (m2_language_defn): Initialise new field.
8370 * objc-lang.c (objc_language_defn): Initialise new field.
8371 * opencl-lang.c (opencl_language_defn): Initialise new field.
8372 * p-lang.c (pascal_is_string_type_p): New function.
8373 (pascal_language_defn): Initialise new field.
8374 * rust-lang.c (rust_is_string_type_p): New function.
8375 (rust_language_defn): Initialise new field.
8376
8377 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8378
8379 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8380 New field.
8381 * ada-lang.c (ada_language_defn): Initialise new field.
8382 * c-lang.c (c_language_defn): Likewise.
8383 (cplus_language_defn): Likewise.
8384 (asm_language_defn): Likewise.
8385 (minimal_language_defn): Likewise.
8386 * d-lang.c (d_language_defn): Likewise.
8387 * f-lang.c (f_language_defn): Likewise.
8388 * go-lang.c (go_language_defn): Likewise.
8389 * language.c (unknown_language_defn): Likewise.
8390 (auto_language_defn): Likewise.
8391 * m2-lang.c (m2_language_defn): Likewise.
8392 * objc-lang.c (objc_language_defn): Likewise.
8393 * opencl-lang.c (opencl_language_defn): Likewise.
8394 * p-lang.c (pascal_language_defn): Likewise.
8395 * rust-lang.c (rust_language_defn): Likewise.
8396
8397 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8398
8399 * ada-lang.c (ada_is_character_type): Change return type to bool.
8400 (ada_is_string_type): Likewise.
8401 * ada-lang.h (ada_is_character_type): Update declaration
8402 (ada_is_string_type): Likewise.
8403
8404 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8405
8406 Support style in 'frame|thread apply'
8407
8408 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8409 * record.c (record_start, record_stop): Update callers of
8410 execute_command_to_string with false.
8411 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8412 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8413 methods.
8414 (class string_file): New constructor with term_out parameter.
8415 Override methods term_out and can_emit_style_escape. New member
8416 term_out.
8417 (class stdio_file): Override can_emit_style_escape.
8418 (class tee_file): Override term_out and can_emit_style_escape.
8419 * utils.h (can_emit_style_escape): Remove.
8420 * utils.c (can_emit_style_escape): Likewise.
8421 Update all callers of can_emit_style_escape (SOMESTREAM) to
8422 SOMESTREAM->can_emit_style_escape.
8423 * source-cache.c (source_cache::get_source_lines): Likewise.
8424 * stack.c (frame_apply_command_count): Call execute_command_to_string
8425 passing the term_out characteristic of the current gdb_stdout.
8426 * thread.c (thr_try_catch_cmd): Likewise.
8427 * top.c (execute_command_to_string): pass term_out parameter
8428 to construct the string_file for the command output.
8429 * ui-file.c (term_cli_styling): New function (most code moved
8430 from utils.c can_emit_style_escape).
8431 (string_file::string_file, string_file::can_emit_style_escape,
8432 stdio_file::can_emit_style_escape, tee_file::term_out,
8433 tee_file::can_emit_style_escape): New functions.
8434
8435 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8436
8437 * NEWS: Mention the new set|show may-call-functions.
8438 * infcall.c (may_call_functions_p): New variable.
8439 (show_may_call_functions_p): New function.
8440 (call_function_by_hand_dummy): Throws an error if not
8441 may-call-functions.
8442 (_initialize_infcall): Call add_setshow_boolean_cmd for
8443 may-call-functions.
8444
8445 2019-04-25 Keith Seitz <keiths@redhat.com>
8446
8447 PR c++/24367
8448 * cp-support.c (inspect_type): Don't attempt substitutions
8449 of symbol with the same name.
8450
8451 2019-04-25 Tom Tromey <tromey@adacore.com>
8452
8453 PR gdb/24475:
8454 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8455 static.
8456
8457 2019-04-25 Tom Tromey <tromey@adacore.com>
8458
8459 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8460 rvalue reference.
8461 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8462 (gdb_xml_parser::parse): Use std::move.
8463 * python/python-internal.h (gdbpy_convert_exception): Take a const
8464 reference.
8465 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8466 std::move.
8467 * python/py-utils.c (gdbpy_convert_exception): Take a const
8468 reference.
8469 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8470 Use std::move.
8471 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8472 Use std::move.
8473 * mi/mi-main.c (mi_print_exception): Take a const reference.
8474 * main.c (handle_command_errors): Take a const reference.
8475 * linespec.c (parse_linespec): Use std::move.
8476 * infcall.c (run_inferior_call): Use std::move.
8477 (call_function_by_hand_dummy): Use std::move.
8478 * exec.c (try_open_exec_file): Use std::move.
8479 * exceptions.h (exception_print, exception_fprintf)
8480 (exception_print_same): Update.
8481 * exceptions.c (print_exception, exception_print)
8482 (exception_fprintf, exception_print_same): Change parameters to
8483 const reference.
8484 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8485 * common/new-op.c: Use std::move.
8486 * common/common-exceptions.h (struct gdb_exception): Add move
8487 constructor.
8488 (struct gdb_exception_error, struct gdb_exception_quit, struct
8489 gdb_quit_bad_alloc): Change constructor to move constructor.
8490 (throw_exception): Change parameter to rvalue reference.
8491 * common/common-exceptions.c (throw_exception): Take rvalue
8492 reference.
8493 * cli/cli-interp.c (safe_execute_command): Use std::move.
8494 * breakpoint.c (insert_bp_location, location_to_sals): Use
8495 std::move.
8496
8497 2019-04-25 Tom Tromey <tromey@adacore.com>
8498
8499 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8500 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8501 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8502 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8503 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8504 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8505 guile/scm-value.c: Use unpack.
8506 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8507 gdbscm_gdb_exception.
8508 (gdbscm_throw_gdb_exception): Likewise.
8509 (struct gdbscm_gdb_exception): New.
8510 (unpack): New function.
8511 (gdbscm_wrap): Use unpack.
8512
8513 2019-04-25 Tom Tromey <tromey@adacore.com>
8514
8515 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8516 (gdb_rl_callback_handler): Use std::move.
8517 * common/common-exceptions.h (struct gdb_exception): Add move
8518 assignment operator.
8519 (throw_exception_sjlj): Change "exception" to const reference.
8520 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8521 (throw_exception_sjlj): Change "exception" to const reference.
8522
8523 2019-04-25 Tom Tromey <tromey@adacore.com>
8524
8525 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8526 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8527 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8528 Update.
8529 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8530 Update.
8531 * mi/mi-interp.c (mi_interp::exec): Update.
8532 * linespec.c (parse_linespec): Update.
8533 * infcall.c (run_inferior_call): Update.
8534 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8535 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8536 (gdbscm_lookup_global_symbol): Update.
8537 * guile/scm-param.c (gdbscm_parameter_value): Update.
8538 * guile/scm-frame.c (gdbscm_frame_read_register)
8539 (gdbscm_frame_read_var): Update.
8540 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8541 * exec.c (try_open_exec_file): Update.
8542 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8543 (gdb_rl_callback_handler): Update.
8544 * common/common-exceptions.h (exception_none): Don't declare.
8545 * common/common-exceptions.c (exception_none): Don't define.
8546 (struct catcher) <exception>: Update.
8547 * cli/cli-interp.c (safe_execute_command): Update.
8548 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8549
8550 2019-04-25 Ali Tamur <tamur@google.com>
8551
8552 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8553 (read_attribute_value): Likewise.
8554 (dwarf2_read_addr_index): Update comment.
8555 (read_str_index): Add DW_FORM_strx.
8556 (dwarf2_string_attr): Likewise.
8557 (dwarf2_const_value_attr): Likewise.
8558 (dump_die_shallow): Likewise.
8559 (dwarf2_fetch_constant_bytes): Likewise.
8560 (skip_form_bytes): Likewise.
8561 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8562
8563 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8564
8565 PR corefiles/11608
8566 PR corefiles/18187
8567 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8568 OFFSET. Verify if current mapping contains an ELF header.
8569 (linux_find_memory_regions_full): Adjust call to
8570 dump_mapping_p.
8571
8572 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8573 Kang Li <kanglictf@gmail.com>
8574
8575 PR gdb/21600
8576
8577 * dwarf2-frame.c (read_initial_length): Be consistent about using
8578 unsigned representation of length.
8579 (decode_frame_entry_1): Likewise. Check for wraparound of
8580 end pointer as well as buffer overflow.
8581
8582 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8583
8584 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8585 "vq".
8586
8587 2019-04-24 Tom Tromey <tromey@adacore.com>
8588
8589 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8590
8591 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8592
8593 * s12z-tdep.c (s12z_unwind_pc): Delete.
8594 (s12z_unwind_sp): Delete.
8595 (s12z_gdbarch_init): Don't register deleted functions with
8596 gdbarch.
8597
8598 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8599
8600 * rl78-tdep.c (rl78_unwind_sp): Delete.
8601 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8602
8603 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8604
8605 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8606 (xstormy16_unwind_pc): Delete.
8607 (xstormy16_dummy_id): Delete.
8608 (xstormy16_gdbarch_init): Don't register deleted functions with
8609 gdbarch.
8610
8611 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8612
8613 * vax-tdep.c (vax_unwind_pc): Delete.
8614 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8615
8616 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8617
8618 * v850-tdep.c (v850_unwind_sp): Delete.
8619 (v850_unwind_pc): Delete.
8620 (v850_dummy_id): Delete.
8621 (v850_gdbarch_init): Don't register deleted functions with
8622 gdbarch.
8623
8624 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8625
8626 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8627 (tilegx_unwind_pc): Delete.
8628 (tilegx_unwind_dummy_id): Delete.
8629 (tilegx_gdbarch_init): Don't register deleted functions with
8630 gdbarch.
8631
8632 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8633
8634 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8635 (tic6x_dummy_id): Delete.
8636 (tic6x_gdbarch_init): Don't register deleted functions with
8637 gdbarch.
8638
8639 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8640
8641 * sparc-tdep.c (sparc_unwind_pc): Delete.
8642 (sparc32_gdbarch_init): Don't register deleted function with
8643 gdbarch.
8644
8645 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8646
8647 * sh-tdep.c (sh_unwind_sp): Delete.
8648 (sh_unwind_pc): Delete.
8649 (sh_dummy_id): Delete.
8650 (sh_gdbarch_init): Don't register deleted functions with
8651 gdbarch.
8652
8653 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8654
8655 * score-tdep.c (score_unwind_sp): Delete.
8656 (score_unwind_pc): Delete.
8657 (score_dummy_id): Delete.
8658 (score_gdbarch_init): Don't register deleted functions with
8659 gdbarch.
8660
8661 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8662
8663 * rx-tdep.c (rx_unwind_pc): Delete.
8664 (rx_unwind_sp): Delete.
8665 (rx_dummy_id): Delete.
8666 (rx_gdbarch_init): Don't register deleted functions with
8667 gdbarch. Update comment.
8668
8669 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8670
8671 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8672 (rs6000_dummy_id): Delete.
8673 (rs6000_gdbarch_init): Don't register deleted functions with
8674 gdbarch.
8675
8676 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8677
8678 * or1k-tdep.c (or1k_dummy_id): Delete.
8679 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8680
8681 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8682
8683 * nios2-tdep.c (nios2_dummy_id): Delete.
8684 (nios2_unwind_sp): Delete.
8685 (nios2_gdbarch_init): Don't register deleted functions with
8686 gdbarch.
8687
8688 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8689
8690 * nds32-tdep.c (nds32_dummy_id): Delete.
8691 (nds32_unwind_pc): Delete.
8692 (nds32_unwind_sp): Delete.
8693 (nds32_gdbarch_init): Don't register deleted functions with
8694 gdbarch.
8695
8696 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8697
8698 * msp430-tdep.c (msp430_unwind_pc): Delete.
8699 (msp430_unwind_sp): Delete.
8700 (msp430_dummy_id): Delete.
8701 (msp430_gdbarch_init): Don't register deleted functions with
8702 gdbarch.
8703
8704 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8705
8706 * moxie-tdep.c (moxie_unwind_sp): Delete.
8707 (moxie_unwind_pc): Delete.
8708 (moxie_dummy_id): Delete.
8709 (moxie_gdbarch_init): Don't register deleted functions with
8710 gdbarch.
8711
8712 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8713
8714 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8715 (mn10300_unwind_pc): Delete.
8716 (mn10300_unwind_sp): Delete.
8717 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8718 mn10300_unwind_sp.
8719 (mn10300_frame_unwind_init): Don't register deleted functions with
8720 gdbarch.
8721
8722 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8723
8724 * mep-tdep.c (mep_unwind_pc): Delete.
8725 (mep_unwind_sp): Delete.
8726 (mep_dummy_id): Delete.
8727 (mep_gdbarch_init): Don't register deleted functions with
8728 gdbarch.
8729
8730 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8731
8732 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8733 (m68hc11_unwind_sp): Delete.
8734 (m68hc11_gdbarch_init): Don't register deleted functions with
8735 gdbarch.
8736
8737 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8738
8739 * m32r-tdep.c (m32r_unwind_sp): Delete.
8740 (m32r_unwind_pc): Delete.
8741 (m32r_dummy_id): Delete.
8742 (m32r_gdbarch_init): Don't register deleted functions with
8743 gdbarch.
8744
8745 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8746
8747 * m32c-tdep.c (m32c_unwind_pc): Delete.
8748 (m32c_unwind_sp): Delete.
8749 (m32c_dummy_id): Delete.
8750 (m32c_gdbarch_init): Don't register deleted functions with
8751 gdbarch.
8752
8753 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8754
8755 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8756 (lm32_unwind_pc): Delete.
8757 (lm32_dummy_id): Delete.
8758 (lm32_gdbarch_init): Don't register deleted functions with
8759 gdbarch.
8760
8761 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8762
8763 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8764 (iq2000_unwind_pc): Delete.
8765 (iq2000_dummy_id): Delete.
8766 (iq2000_gdbarch_init): Don't register deleted functions with
8767 gdbarch.
8768
8769 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8770
8771 * nds32-tdep.c (nds32_type_align): Delete.
8772 (nds32_push_dummy_call): Use type_align instead.
8773
8774 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8775
8776 * arm-tdep.c (arm_type_align): Only handle vector override case.
8777 (arm_push_dummy_call): Use type_align.
8778 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8779
8780 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8781
8782 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8783 case.
8784 (pass_on_stack): Use type_align.
8785 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8786 function.
8787
8788 2019-04-23 Tom Tromey <tromey@adacore.com>
8789
8790 * dwarf2read.c (line_header::file_name_at): Remove unused
8791 overload.
8792
8793 2019-04-23 Tom de Vries <tdevries@suse.de>
8794
8795 PR gdb/24438
8796 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8797 invocation.
8798
8799
8800 2019-03-27 Ali Tamur <tamur@google.com>
8801
8802 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8803 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8804 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8805 (dwarf_expr_context::get_addr_index): Likewise
8806 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8807 (symbol_needs_eval_context::get_addr_index): Likewise
8808 (disassemble_dwarf_expression): Add DW_OP_addrx
8809 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8810 (read_cutu_die_from_dwo): Update comment
8811 (skip_one_die): Add DW_FORM_addrx
8812 (read_attribute_value): Likewise
8813 (var_decode_location): Add DW_OP_addrx
8814 (dwarf2_const_value_attr): Add DW_FORM_addrx
8815 (dump_die_shallow): Likewise
8816 (dwarf2_fetch_constant_bytes): Likewise
8817 (decode_locdesc): Add DW_OP_addrx
8818 (skip_form_bytes): Add DW_FORM_addrx
8819
8820 2019-04-22 Ali Tamur <tamur@google.com>
8821
8822 * MAINTAINERS (Write After Approval): Add self.
8823
8824 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
8825
8826 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8827 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8828 (open_symbol_file_object): Likewise.
8829 (svr4_default_sos): Add info parameter.
8830 (svr4_read_so_list): Likewise.
8831 (svr4_current_sos_direct): Adjust functions calls to pass down
8832 info.
8833 (svr4_current_sos_1): Add info parameter.
8834 (svr4_current_sos): Call get_svr4_info, pass info down to
8835 svr4_current_sos_1.
8836 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8837 get_svr4_info.
8838 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8839 get_svr4_info.
8840 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8841 to get_svr4_info.
8842 (probes_table_remove_objfile_probes): Likewise.
8843 (register_solib_event_probe): Add info parameter.
8844 (solist_update_incremental): Pass info parameter down to
8845 svr4_read_so_list.
8846 (disable_probes_interface): Add info parameter.
8847 (svr4_handle_solib_event): Pass current_program_space to
8848 get_svr4_info. Adjust disable_probes_interface cleanup.
8849 (svr4_create_probe_breakpoints): Add info parameter, pass it
8850 down to register_solib_event_probe.
8851 (svr4_create_solib_event_breakpoints): Add info parameter,
8852 pass it down to svr4_create_probe_breakpoints.
8853 (enable_break): Pass info down to
8854 svr4_create_solib_event_breakpoints.
8855 (svr4_solib_create_inferior_hook): Pass current_program_space to
8856 get_svr4_info.
8857 (svr4_clear_solib): Likewise.
8858
8859 2019-04-22 Pedro Alves <palves@redhat.com>
8860
8861 * solib-svr4.c (svr4_free_objfile_observer): New.
8862 (probe_and_action::objfile): New field.
8863 (probes_table_htab_remove_objfile_probes)
8864 (probes_table_remove_objfile_probes): New functions.
8865 (register_solib_event_probe): Add 'objfile' parameter. Store it
8866 in the new probe_and_action. Don't store the probe in 'lookup'.
8867 (svr4_create_probe_breakpoints): Pass objfile to
8868 register_solib_event_probe.
8869 (_initialize_svr4_solib): Register a free_objfile observer.
8870
8871 2019-04-19 Tom Tromey <tom@tromey.com>
8872
8873 * common/queue.h: Remove.
8874
8875 2019-04-19 Tom Tromey <tom@tromey.com>
8876
8877 * event-loop.c: Don't include "common/queue.h".
8878
8879 2019-04-19 Tom Tromey <tom@tromey.com>
8880
8881 * remote.c (remote_target): Use delete.
8882 * remote-notif.h: Include <list>, not "common/queue.h".
8883 (notif_client_p): Remove typedef.
8884 (remote_notif_state): Add constructor, destructor, initializer.
8885 <notif_queue>: Now a std::list.
8886 (remote_notif_state_xfree): Don't declare.
8887 * remote-notif.c (remote_notif_process, handle_notification)
8888 (remote_notif_state_allocate): Update.
8889 (~remote_notif_state): Rename from remote_notif_state_xfree.
8890
8891 2019-04-19 Tom Tromey <tom@tromey.com>
8892
8893 * symfile.c (reread_symbols): Update.
8894 * objfiles.c (objfile_register_static_link)
8895 (objfile_lookup_static_link): Update
8896 (~objfile) Don't delete static_links.
8897 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8898
8899 2019-04-19 Tom Tromey <tom@tromey.com>
8900
8901 * type-stack.h (struct type_stack) <insert>: Constify string.
8902 * type-stack.c (type_stack::insert): Constify string.
8903 * gdbtypes.h (lookup_template_type): Update.
8904 (address_space_name_to_int): Update.
8905 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8906 const.
8907 (lookup_template_type): Make name const.
8908 * c-exp.y: Update rules.
8909 (lex_one_token, classify_name, classify_inner_name)
8910 (c_print_token): Update.
8911 * p-exp.y: Update rules.
8912 (yylex): Update.
8913 * f-exp.y: Update rules.
8914 (yylex): Update.
8915 * d-exp.y: Update rules.
8916 (lex_one_token, classify_name, classify_inner_name): Update.
8917 * parse.c (write_dollar_variable, copy_name): Return std::string.
8918 * parser-defs.h (copy_name): Change return type.
8919 * m2-exp.y: Update rules.
8920 (yylex): Update.
8921 * go-exp.y (lex_one_token): Update.
8922 Update rules.
8923 (classify_unsafe_function, classify_packaged_name)
8924 (classify_name, yylex): Update.
8925
8926 2019-04-19 Sergei Trofimovich <siarheit@google.com>
8927
8928 * configure.ac: add --enable-source-highlight switch.
8929 * configure: Regenerate.
8930 * top.c (print_gdb_version): plumb --enable-source-highlight
8931 status to "show configuration".
8932
8933 2019-04-19 Tom Tromey <tromey@adacore.com>
8934
8935 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8936 Check ADA_TYPE_P.
8937 (empty_record, ada_template_to_fixed_record_type_1)
8938 (template_to_static_fixed_type)
8939 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8940 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8941 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8942 macros.
8943
8944 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8945
8946 PR symtab/24423:
8947 * source.c (print_source_lines_base): Advance "iter" when a
8948 control character is seen.
8949
8950 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8951
8952 * inferior.h (struct infcall_suspend_state_deleter):
8953 Catch exception in destructor to avoid crash.
8954
8955 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8956
8957 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8958 close to the add_com "shell".
8959
8960 2019-04-18 Tom Tromey <tromey@adacore.com>
8961
8962 * process-stratum-target.h (class process_stratum_target)
8963 <stratum>: Add "final".
8964
8965 2019-04-17 Tom Tromey <tromey@adacore.com>
8966
8967 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8968 against nullptr before use.
8969
8970 2019-04-17 Alan Hayward <alan.hayward@arm.com>
8971
8972 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8973
8974 2019-04-17 Jim Wilson <jimw@sifive.com>
8975 Andrew Burgess <andrew.burgess@embecosm.com>
8976
8977 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8978 code read might fail, assume 4-byte breakpoint in that case.
8979
8980 2019-04-15 Leszek Swirski <leszeks@google.com>
8981
8982 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8983 rather than a hand-rolled POD check when checking for forced MEMORY
8984 classification.
8985
8986 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8987
8988 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8989 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8990 function.
8991 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8992 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8993 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8994 declaration.
8995
8996 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8997
8998 * aarch64-linux-nat.c
8999 (aarch64_linux_nat_target::thread_architecture): Add override.
9000 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9001 each VQ.
9002
9003 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9004
9005 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9006
9007 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9008
9009 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9010 target types of size 96-bits, add some additional comments, and
9011 check that the builtin type we found was the correct size.
9012
9013 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9014
9015 * utils.c (prompt_for_continue): Don't restore the styling at the
9016 end, as applied_style has the wrong value. This fixes styling in
9017 long lists of file names that are interrupted by the "Continue?"
9018 prompt.
9019
9020 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9021
9022 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9023 * c-lang.c (c_language_defn): Likewise.
9024 (cplus_language_defn): Likewise.
9025 (asm_language_defn): Likewise.
9026 (minimal_language_defn): Likewise.
9027 * d-lang.c (d_language_defn): Likewise.
9028 * f-lang.c (f_language_defn): Likewise.
9029 * go-lang.c (go_language_defn): Likewise.
9030 * language.c (unknown_language_defn): Likewise.
9031 (auto_language_defn): Likewise.
9032 * language.h (struct language_defn): Remove la_magic field.
9033 (LANG_MAGIC): Delete.
9034 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9035 * objc-lang.c (objc_language_defn): Likewise.
9036 * opencl-lang.c (opencl_language_defn): Likewise.
9037 * p-lang.c (pascal_language_defn): Likewise.
9038 * rust-lang.c (rust_language_defn): Likewise.
9039
9040 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9041
9042 * riscv-tdep.c (riscv_type_align): New function.
9043 (riscv_type_alignment): Delete.
9044 (riscv_arg_location): Use 'type_align'.
9045 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9046
9047 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9048
9049 * gdbtypes.c (type_align): A struct with no non-static fields also
9050 has alignment of 1.
9051
9052 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9053
9054 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9055 component to 0.
9056 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9057 member.
9058 (riscv_struct_info::analyse): New implementation using new
9059 analyse_inner member function.
9060 (riscv_struct_info::field_offset): New member function.
9061 (riscv_struct_info::m_offsets): New member variable.
9062 (riscv_struct_info::analyse_inner): New private member function,
9063 takes the old implementation of riscv_struct_info::analyse but
9064 extended to track field offsets.
9065 (riscv_call_arg_struct): Update the struct folding special cases
9066 to handle cases where empty C++ structs, which are non-zero
9067 length, are found.
9068 (riscv_arg_location): Initialise the length of each location, a
9069 non-zero length now indicates the location is in use.
9070 (riscv_push_dummy_call): Allow for the first location having a
9071 non-zero offset when setting up arguments.
9072 (riscv_return_value): Likewise, but for return values.
9073
9074 2019-04-11 Tom Tromey <tromey@adacore.com>
9075
9076 * utils.c (internal_vproblem): Make "msg" const.
9077
9078 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9079
9080 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9081 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9082 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9083 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9084
9085 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9086
9087 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9088 function.
9089 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9090 of amd64_collect_native_gregset.
9091 (amd64_linux_nat_target::store_registers): Likewise.
9092
9093 2019-04-10 Tom Tromey <tom@tromey.com>
9094
9095 * symtab.c (lookup_global_symbol_from_objfile)
9096 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9097 * objfiles.h (class separate_debug_iterator): New.
9098 (class separate_debug_range): New.
9099 (struct objfile) <separate_debug_objfiles>: New method.
9100 (objfile_separate_debug_iterate): Don't declare.
9101 * objfiles.c (separate_debug_iterator::operator++): Rename from
9102 objfile_separate_debug_iterate.
9103 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9104 iterator.
9105 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9106 iterator.
9107
9108 2019-04-10 Tom Tromey <tom@tromey.com>
9109
9110 * symfile.c (reread_symbols): Remove old comment.
9111 * objfiles.c (free_all_objfiles): Fix a typo.
9112
9113 2019-04-10 Tom Tromey <tom@tromey.com>
9114
9115 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9116 * minsyms.c (lookup_minimal_symbol): Use foreach.
9117 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9118 (lookup_minimal_symbol_solib_trampoline): Likewise.
9119 * symfile.c (reread_symbols): Use foreach.
9120
9121 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9122 Tom Tromey <tromey@adacore.com>
9123
9124 PR rust/24414:
9125 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9126 (rust_lex_int_test): Change "value" to be LONGEST.
9127 (rust_lex_tests): Add test for long integer literal.
9128
9129 2019-04-09 Tom Tromey <tromey@adacore.com>
9130
9131 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9132 to bool.
9133 (extended_remote_target::attach): Update.
9134 (remote_target::remote_notice_new_inferior): Update.
9135 (remote_target::add_current_inferior_and_thread): Update.
9136 * inferior.c (exit_inferior_1): Use "false".
9137 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9138
9139 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9140
9141 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9142 the "start" command.
9143
9144 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9145
9146 * python/py-inferior.c (infpy_thread_from_thread_handle):
9147 Adjust comments to reflect renaming of thread_from_thread_handle
9148 to thread_from_handle. Adjust keywords. Fix type error message.
9149 (inferior_object_methods): Add thread_from_handle. Retain
9150 thread_from_thread_handle, but mark it as deprecated.
9151
9152 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9153
9154 * gdbthread.h (find_thread_by_handle): Revise declaration.
9155 * thread.c (find_thread_by_handle): Likewise. Adjust
9156 implementation too.
9157 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9158 support for buffer objects as handles.
9159
9160 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9161
9162 * python/py-infthread.c (thpy_thread_handle): New function.
9163 (thread_object_methods): Register thpy_thread_handle.
9164
9165 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9166
9167 * gdbthread.h (thread_to_thread_handle): Declare.
9168 * thread.c (gdbtypes.h): Include.
9169 (thread_to_thread_handle): New function.
9170
9171 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9172 (target_thread_info_to_thread_handle): Declare.
9173 * target.c (target_thread_info_to_thread_handle): New function.
9174 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9175 * target-delegates.c: Regenerate.
9176
9177 * linux-thread-db.c (class thread_db_target): Add method
9178 thread_info_to_thread_handle.
9179 (thread_db_target::thread_info_to_thread_handle): Define.
9180 * remote.c (class remote_target): Add new method
9181 thread_info_to_thread_handle.
9182 (remote_target::thread_info_to_thread_handle): Define.
9183
9184 2019-04-08 Pedro Alves <palves@redhat.com>
9185
9186 * common/common-exceptions.c (throw_exception): Don't create
9187 named object to throw; throw directly.
9188 (throw_it): Likewise. Don't initialize gdb_exception::message
9189 here, with new; pass FMT and AP to the ctor instead.
9190 * common/common-exceptions.h: Include <string>.
9191 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9192 const char *, va_list)): New ctor. Use std::make_shared.
9193 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9194 errors)): Delete.
9195 (gdb_exception_error::gdb_exception_error(enum errors, const char
9196 *, va_list)): New.
9197 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9198 Add assertion.
9199 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9200 errors)): Delete.
9201 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9202 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9203 Add assertion.
9204
9205 2019-04-08 Tom Tromey <tom@tromey.com>
9206
9207 * valops.c (value_rtti_indirect_type): Replace throw_exception
9208 with throw.
9209 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9210 with throw.
9211 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9212 throw.
9213 * target.c (target_translate_tls_address): Replace throw_exception
9214 with throw.
9215 * stack.c (frame_apply_command_count): Replace throw_exception
9216 with throw.
9217 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9218 throw.
9219 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9220 with throw.
9221 * rs6000-tdep.c (rs6000_frame_cache)
9222 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9223 * remote.c: Replace throw_exception with throw.
9224 * record-full.c (record_full_message, record_full_wait_1)
9225 (record_full_restore): Replace throw_exception with throw.
9226 * record-btrace.c:
9227 (get_thread_current_frame_id, record_btrace_start_replaying)
9228 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9229 (cmd_record_btrace_start): Replace throw_exception with throw.
9230 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9231 throw.
9232 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9233 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9234 * linespec.c:
9235 (find_linespec_symbols): Replace throw_exception with throw.
9236 * infrun.c (displaced_step_prepare, resume): Replace
9237 throw_exception with throw.
9238 * infcmd.c (post_create_inferior): Replace throw_exception with
9239 throw.
9240 * inf-loop.c (inferior_event_handler): Replace throw_exception
9241 with throw.
9242 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9243 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9244 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9245 (get_prev_frame_always, get_frame_pc_if_available)
9246 (get_frame_address_in_block_if_available, get_frame_language):
9247 Replace throw_exception with throw.
9248 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9249 throw_exception with throw.
9250 * eval.c (fetch_subexp_value, evaluate_var_value)
9251 (evaluate_funcall, evaluate_subexp_standard): Replace
9252 throw_exception with throw.
9253 * dwarf2loc.c (call_site_find_chain)
9254 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9255 Replace throw_exception with throw.
9256 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9257 with throw.
9258 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9259 throw.
9260 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9261 * completer.c (complete_line_internal): Replace throw_exception
9262 with throw.
9263 * compile/compile-object-run.c (compile_object_run): Replace
9264 throw_exception with throw.
9265 * cli/cli-script.c (process_next_line): Replace throw_exception
9266 with throw.
9267 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9268 (btrace_enable, btrace_maint_update_pt_packets): Replace
9269 throw_exception with throw.
9270 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9271 throw_exception with throw.
9272 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9273 throw_exception with throw.
9274 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9275 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9276 * aarch64-tdep.c (aarch64_make_prologue_cache)
9277 (aarch64_make_stub_cache): Replace throw_exception with throw.
9278
9279 2019-04-08 Tom Tromey <tom@tromey.com>
9280
9281 * common/common-exceptions.c (throw_exception): Rename from
9282 throw_exception_cxx. Remove old copy. Make argument const.
9283 (throw_it): Create and throw exception objects directly.
9284 * common/common-exceptions.h (throw_exception): Make argument
9285 const.
9286 (struct gdb_exception_error): Add constructor.
9287 (struct gdb_exception_quit): Add constructor.
9288
9289 2019-04-08 Tom Tromey <tom@tromey.com>
9290
9291 * common/common-exceptions.h (exception_rethrow): Don't declare.
9292 (TRY_SJLJ): Update comment.
9293 (TRY, CATCH, END_CATCH): Remove.
9294 * common/common-exceptions.c (exception_rethrow): Remove.
9295
9296 2019-04-08 Tom Tromey <tom@tromey.com>
9297
9298 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9299 Remove.
9300 (gdb_exception_error): Rename from
9301 gdb_exception_RETURN_MASK_ERROR.
9302 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9303 (gdb_quit_bad_alloc): Update.
9304 * aarch64-tdep.c: Update.
9305 * ada-lang.c: Update.
9306 * ada-typeprint.c: Update.
9307 * ada-valprint.c: Update.
9308 * amd64-tdep.c: Update.
9309 * arch-utils.c: Update.
9310 * break-catch-throw.c: Update.
9311 * breakpoint.c: Update.
9312 * btrace.c: Update.
9313 * c-varobj.c: Update.
9314 * cli/cli-cmds.c: Update.
9315 * cli/cli-interp.c: Update.
9316 * cli/cli-script.c: Update.
9317 * common/common-exceptions.c: Update.
9318 * common/new-op.c: Update.
9319 * common/selftest.c: Update.
9320 * compile/compile-c-symbols.c: Update.
9321 * compile/compile-cplus-symbols.c: Update.
9322 * compile/compile-object-load.c: Update.
9323 * compile/compile-object-run.c: Update.
9324 * completer.c: Update.
9325 * corelow.c: Update.
9326 * cp-abi.c: Update.
9327 * cp-support.c: Update.
9328 * cp-valprint.c: Update.
9329 * darwin-nat.c: Update.
9330 * disasm-selftests.c: Update.
9331 * dtrace-probe.c: Update.
9332 * dwarf-index-cache.c: Update.
9333 * dwarf-index-write.c: Update.
9334 * dwarf2-frame-tailcall.c: Update.
9335 * dwarf2-frame.c: Update.
9336 * dwarf2loc.c: Update.
9337 * dwarf2read.c: Update.
9338 * eval.c: Update.
9339 * event-loop.c: Update.
9340 * event-top.c: Update.
9341 * exec.c: Update.
9342 * f-valprint.c: Update.
9343 * fbsd-tdep.c: Update.
9344 * frame-unwind.c: Update.
9345 * frame.c: Update.
9346 * gdbtypes.c: Update.
9347 * gnu-v3-abi.c: Update.
9348 * guile/guile-internal.h: Update.
9349 * guile/scm-block.c: Update.
9350 * guile/scm-breakpoint.c: Update.
9351 * guile/scm-cmd.c: Update.
9352 * guile/scm-disasm.c: Update.
9353 * guile/scm-frame.c: Update.
9354 * guile/scm-lazy-string.c: Update.
9355 * guile/scm-math.c: Update.
9356 * guile/scm-param.c: Update.
9357 * guile/scm-ports.c: Update.
9358 * guile/scm-pretty-print.c: Update.
9359 * guile/scm-symbol.c: Update.
9360 * guile/scm-symtab.c: Update.
9361 * guile/scm-type.c: Update.
9362 * guile/scm-value.c: Update.
9363 * i386-linux-tdep.c: Update.
9364 * i386-tdep.c: Update.
9365 * inf-loop.c: Update.
9366 * infcall.c: Update.
9367 * infcmd.c: Update.
9368 * infrun.c: Update.
9369 * jit.c: Update.
9370 * language.c: Update.
9371 * linespec.c: Update.
9372 * linux-fork.c: Update.
9373 * linux-nat.c: Update.
9374 * linux-tdep.c: Update.
9375 * linux-thread-db.c: Update.
9376 * main.c: Update.
9377 * mi/mi-cmd-break.c: Update.
9378 * mi/mi-cmd-stack.c: Update.
9379 * mi/mi-interp.c: Update.
9380 * mi/mi-main.c: Update.
9381 * objc-lang.c: Update.
9382 * p-valprint.c: Update.
9383 * parse.c: Update.
9384 * ppc-linux-tdep.c: Update.
9385 * printcmd.c: Update.
9386 * python/py-arch.c: Update.
9387 * python/py-breakpoint.c: Update.
9388 * python/py-cmd.c: Update.
9389 * python/py-finishbreakpoint.c: Update.
9390 * python/py-frame.c: Update.
9391 * python/py-framefilter.c: Update.
9392 * python/py-gdb-readline.c: Update.
9393 * python/py-inferior.c: Update.
9394 * python/py-infthread.c: Update.
9395 * python/py-lazy-string.c: Update.
9396 * python/py-linetable.c: Update.
9397 * python/py-objfile.c: Update.
9398 * python/py-param.c: Update.
9399 * python/py-prettyprint.c: Update.
9400 * python/py-progspace.c: Update.
9401 * python/py-record-btrace.c: Update.
9402 * python/py-record.c: Update.
9403 * python/py-symbol.c: Update.
9404 * python/py-type.c: Update.
9405 * python/py-unwind.c: Update.
9406 * python/py-utils.c: Update.
9407 * python/py-value.c: Update.
9408 * python/python.c: Update.
9409 * record-btrace.c: Update.
9410 * record-full.c: Update.
9411 * remote-fileio.c: Update.
9412 * remote.c: Update.
9413 * riscv-tdep.c: Update.
9414 * rs6000-aix-tdep.c: Update.
9415 * rs6000-tdep.c: Update.
9416 * rust-exp.y: Update.
9417 * rust-lang.c: Update.
9418 * s390-tdep.c: Update.
9419 * selftest-arch.c: Update.
9420 * solib-dsbt.c: Update.
9421 * solib-frv.c: Update.
9422 * solib-spu.c: Update.
9423 * solib-svr4.c: Update.
9424 * solib.c: Update.
9425 * sparc64-linux-tdep.c: Update.
9426 * stack.c: Update.
9427 * symfile-mem.c: Update.
9428 * symmisc.c: Update.
9429 * target.c: Update.
9430 * thread.c: Update.
9431 * top.c: Update.
9432 * tracefile-tfile.c: Update.
9433 * tui/tui.c: Update.
9434 * typeprint.c: Update.
9435 * unittests/cli-utils-selftests.c: Update.
9436 * unittests/parse-connection-spec-selftests.c: Update.
9437 * valops.c: Update.
9438 * valprint.c: Update.
9439 * value.c: Update.
9440 * varobj.c: Update.
9441 * windows-nat.c: Update.
9442 * x86-linux-nat.c: Update.
9443 * xml-support.c: Update.
9444
9445 2019-04-08 Tom Tromey <tom@tromey.com>
9446
9447 * xml-support.c: Use C++ exception handling.
9448 * x86-linux-nat.c: Use C++ exception handling.
9449 * windows-nat.c: Use C++ exception handling.
9450 * varobj.c: Use C++ exception handling.
9451 * value.c: Use C++ exception handling.
9452 * valprint.c: Use C++ exception handling.
9453 * valops.c: Use C++ exception handling.
9454 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9455 handling.
9456 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9457 * typeprint.c: Use C++ exception handling.
9458 * tui/tui.c: Use C++ exception handling.
9459 * tracefile-tfile.c: Use C++ exception handling.
9460 * top.c: Use C++ exception handling.
9461 * thread.c: Use C++ exception handling.
9462 * target.c: Use C++ exception handling.
9463 * symmisc.c: Use C++ exception handling.
9464 * symfile-mem.c: Use C++ exception handling.
9465 * stack.c: Use C++ exception handling.
9466 * sparc64-linux-tdep.c: Use C++ exception handling.
9467 * solib.c: Use C++ exception handling.
9468 * solib-svr4.c: Use C++ exception handling.
9469 * solib-spu.c: Use C++ exception handling.
9470 * solib-frv.c: Use C++ exception handling.
9471 * solib-dsbt.c: Use C++ exception handling.
9472 * selftest-arch.c: Use C++ exception handling.
9473 * s390-tdep.c: Use C++ exception handling.
9474 * rust-lang.c: Use C++ exception handling.
9475 * rust-exp.y: Use C++ exception handling.
9476 * rs6000-tdep.c: Use C++ exception handling.
9477 * rs6000-aix-tdep.c: Use C++ exception handling.
9478 * riscv-tdep.c: Use C++ exception handling.
9479 * remote.c: Use C++ exception handling.
9480 * remote-fileio.c: Use C++ exception handling.
9481 * record-full.c: Use C++ exception handling.
9482 * record-btrace.c: Use C++ exception handling.
9483 * python/python.c: Use C++ exception handling.
9484 * python/py-value.c: Use C++ exception handling.
9485 * python/py-utils.c: Use C++ exception handling.
9486 * python/py-unwind.c: Use C++ exception handling.
9487 * python/py-type.c: Use C++ exception handling.
9488 * python/py-symbol.c: Use C++ exception handling.
9489 * python/py-record.c: Use C++ exception handling.
9490 * python/py-record-btrace.c: Use C++ exception handling.
9491 * python/py-progspace.c: Use C++ exception handling.
9492 * python/py-prettyprint.c: Use C++ exception handling.
9493 * python/py-param.c: Use C++ exception handling.
9494 * python/py-objfile.c: Use C++ exception handling.
9495 * python/py-linetable.c: Use C++ exception handling.
9496 * python/py-lazy-string.c: Use C++ exception handling.
9497 * python/py-infthread.c: Use C++ exception handling.
9498 * python/py-inferior.c: Use C++ exception handling.
9499 * python/py-gdb-readline.c: Use C++ exception handling.
9500 * python/py-framefilter.c: Use C++ exception handling.
9501 * python/py-frame.c: Use C++ exception handling.
9502 * python/py-finishbreakpoint.c: Use C++ exception handling.
9503 * python/py-cmd.c: Use C++ exception handling.
9504 * python/py-breakpoint.c: Use C++ exception handling.
9505 * python/py-arch.c: Use C++ exception handling.
9506 * printcmd.c: Use C++ exception handling.
9507 * ppc-linux-tdep.c: Use C++ exception handling.
9508 * parse.c: Use C++ exception handling.
9509 * p-valprint.c: Use C++ exception handling.
9510 * objc-lang.c: Use C++ exception handling.
9511 * mi/mi-main.c: Use C++ exception handling.
9512 * mi/mi-interp.c: Use C++ exception handling.
9513 * mi/mi-cmd-stack.c: Use C++ exception handling.
9514 * mi/mi-cmd-break.c: Use C++ exception handling.
9515 * main.c: Use C++ exception handling.
9516 * linux-thread-db.c: Use C++ exception handling.
9517 * linux-tdep.c: Use C++ exception handling.
9518 * linux-nat.c: Use C++ exception handling.
9519 * linux-fork.c: Use C++ exception handling.
9520 * linespec.c: Use C++ exception handling.
9521 * language.c: Use C++ exception handling.
9522 * jit.c: Use C++ exception handling.
9523 * infrun.c: Use C++ exception handling.
9524 * infcmd.c: Use C++ exception handling.
9525 * infcall.c: Use C++ exception handling.
9526 * inf-loop.c: Use C++ exception handling.
9527 * i386-tdep.c: Use C++ exception handling.
9528 * i386-linux-tdep.c: Use C++ exception handling.
9529 * guile/scm-value.c: Use C++ exception handling.
9530 * guile/scm-type.c: Use C++ exception handling.
9531 * guile/scm-symtab.c: Use C++ exception handling.
9532 * guile/scm-symbol.c: Use C++ exception handling.
9533 * guile/scm-pretty-print.c: Use C++ exception handling.
9534 * guile/scm-ports.c: Use C++ exception handling.
9535 * guile/scm-param.c: Use C++ exception handling.
9536 * guile/scm-math.c: Use C++ exception handling.
9537 * guile/scm-lazy-string.c: Use C++ exception handling.
9538 * guile/scm-frame.c: Use C++ exception handling.
9539 * guile/scm-disasm.c: Use C++ exception handling.
9540 * guile/scm-cmd.c: Use C++ exception handling.
9541 * guile/scm-breakpoint.c: Use C++ exception handling.
9542 * guile/scm-block.c: Use C++ exception handling.
9543 * guile/guile-internal.h: Use C++ exception handling.
9544 * gnu-v3-abi.c: Use C++ exception handling.
9545 * gdbtypes.c: Use C++ exception handling.
9546 * frame.c: Use C++ exception handling.
9547 * frame-unwind.c: Use C++ exception handling.
9548 * fbsd-tdep.c: Use C++ exception handling.
9549 * f-valprint.c: Use C++ exception handling.
9550 * exec.c: Use C++ exception handling.
9551 * event-top.c: Use C++ exception handling.
9552 * event-loop.c: Use C++ exception handling.
9553 * eval.c: Use C++ exception handling.
9554 * dwarf2read.c: Use C++ exception handling.
9555 * dwarf2loc.c: Use C++ exception handling.
9556 * dwarf2-frame.c: Use C++ exception handling.
9557 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9558 * dwarf-index-write.c: Use C++ exception handling.
9559 * dwarf-index-cache.c: Use C++ exception handling.
9560 * dtrace-probe.c: Use C++ exception handling.
9561 * disasm-selftests.c: Use C++ exception handling.
9562 * darwin-nat.c: Use C++ exception handling.
9563 * cp-valprint.c: Use C++ exception handling.
9564 * cp-support.c: Use C++ exception handling.
9565 * cp-abi.c: Use C++ exception handling.
9566 * corelow.c: Use C++ exception handling.
9567 * completer.c: Use C++ exception handling.
9568 * compile/compile-object-run.c: Use C++ exception handling.
9569 * compile/compile-object-load.c: Use C++ exception handling.
9570 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9571 * compile/compile-c-symbols.c: Use C++ exception handling.
9572 * common/selftest.c: Use C++ exception handling.
9573 * common/new-op.c: Use C++ exception handling.
9574 * cli/cli-script.c: Use C++ exception handling.
9575 * cli/cli-interp.c: Use C++ exception handling.
9576 * cli/cli-cmds.c: Use C++ exception handling.
9577 * c-varobj.c: Use C++ exception handling.
9578 * btrace.c: Use C++ exception handling.
9579 * breakpoint.c: Use C++ exception handling.
9580 * break-catch-throw.c: Use C++ exception handling.
9581 * arch-utils.c: Use C++ exception handling.
9582 * amd64-tdep.c: Use C++ exception handling.
9583 * ada-valprint.c: Use C++ exception handling.
9584 * ada-typeprint.c: Use C++ exception handling.
9585 * ada-lang.c: Use C++ exception handling.
9586 * aarch64-tdep.c: Use C++ exception handling.
9587
9588 2019-04-08 Tom Tromey <tom@tromey.com>
9589
9590 * xml-support.c (gdb_xml_parser::parse): Update.
9591 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9592 * value.c (show_convenience): Update.
9593 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9594 (test_parse_flags_qcs): Update.
9595 * thread.c (thr_try_catch_cmd): Update.
9596 * target.c (target_translate_tls_address): Update.
9597 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9598 (info_frame_command_core, frame_apply_command_count): Update.
9599 * rust-exp.y (rust_lex_exception_test): Update.
9600 * riscv-tdep.c (riscv_print_one_register_info): Update.
9601 * remote.c (remote_target::enable_btrace): Update.
9602 * record-btrace.c (record_btrace_enable_warn): Update.
9603 * python/py-utils.c (gdbpy_convert_exception): Update.
9604 * printcmd.c (do_one_display, print_variable_and_value): Update.
9605 * mi/mi-main.c (mi_print_exception): Update.
9606 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9607 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9608 * linux-nat.c (linux_nat_target::attach): Update.
9609 * linux-fork.c (class scoped_switch_fork_info): Update.
9610 * infrun.c (displaced_step_prepare): Update.
9611 * infcall.c (call_function_by_hand_dummy): Update.
9612 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9613 * gnu-v3-abi.c (print_one_vtable): Update.
9614 * frame.c (get_prev_frame_always): Update.
9615 * f-valprint.c (info_common_command_for_block): Update.
9616 * exec.c (try_open_exec_file): Update.
9617 * exceptions.c (print_exception, exception_print)
9618 (exception_fprintf, exception_print_same): Update.
9619 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9620 * dwarf-index-cache.c (index_cache::store)
9621 (index_cache::lookup_gdb_index): Update.
9622 * darwin-nat.c (maybe_cache_shell): Update.
9623 * cp-valprint.c (cp_print_value_fields): Update.
9624 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9625 (gcc_cplus_symbol_address): Update.
9626 * compile/compile-c-symbols.c (gcc_convert_symbol)
9627 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9628 * common/selftest.c: Update.
9629 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9630 a std::string.
9631 (exception_try_scope_entry, exception_try_scope_exit): Don't
9632 declare.
9633 (struct exception_try_scope): Remove.
9634 (TRY): Don't use exception_try_scope.
9635 (struct gdb_exception): Add constructor, operator=.
9636 <what>: New method.
9637 (struct gdb_exception_RETURN_MASK_ALL)
9638 (struct gdb_exception_RETURN_MASK_ERROR)
9639 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9640 (struct gdb_quit_bad_alloc): Update.
9641 * common/common-exceptions.c (exception_none): Change
9642 initializer.
9643 (struct catcher) <state, exception>: Initialize inline.
9644 <prev>: Remove member.
9645 (current_catcher): Remove.
9646 (catchers): New global.
9647 (exceptions_state_mc_init): Simplify.
9648 (catcher_pop): Remove.
9649 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9650 (try_scope_depth, exception_try_scope_entry)
9651 (exception_try_scope_exit): Remove.
9652 (throw_exception_sjlj): Update.
9653 (exception_messages, exception_messages_size): Remove.
9654 (throw_it): Simplify.
9655 (gdb_exception_sliced_copy): Remove.
9656 (throw_exception_cxx): Update.
9657 * cli/cli-script.c (script_from_file): Update.
9658 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9659 Update.
9660 * ada-valprint.c (ada_val_print): Update.
9661 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9662 (create_excep_cond_exprs): Update.
9663
9664 2019-04-08 Tom Tromey <tom@tromey.com>
9665
9666 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9667 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9668 (TRY, CATCH, END_CATCH): Remove some definitions.
9669 * common/common-exceptions.c: Don't use GDB_XCPT.
9670 (catcher_list_size): Remove.
9671 (throw_exception, throw_it): Simplify.
9672
9673 2019-04-05 Tom Tromey <tom@tromey.com>
9674
9675 Revert the header-sorting patch.
9676 * ft32-tdep.c: Revert.
9677 * frv-tdep.c: Revert.
9678 * frv-linux-tdep.c: Revert.
9679 * frame.c: Revert.
9680 * frame-unwind.c: Revert.
9681 * frame-base.c: Revert.
9682 * fork-child.c: Revert.
9683 * findvar.c: Revert.
9684 * findcmd.c: Revert.
9685 * filesystem.c: Revert.
9686 * filename-seen-cache.h: Revert.
9687 * filename-seen-cache.c: Revert.
9688 * fbsd-tdep.c: Revert.
9689 * fbsd-nat.h: Revert.
9690 * fbsd-nat.c: Revert.
9691 * f-valprint.c: Revert.
9692 * f-typeprint.c: Revert.
9693 * f-lang.c: Revert.
9694 * extension.h: Revert.
9695 * extension.c: Revert.
9696 * extension-priv.h: Revert.
9697 * expprint.c: Revert.
9698 * exec.h: Revert.
9699 * exec.c: Revert.
9700 * exceptions.c: Revert.
9701 * event-top.c: Revert.
9702 * event-loop.c: Revert.
9703 * eval.c: Revert.
9704 * elfread.c: Revert.
9705 * dwarf2read.h: Revert.
9706 * dwarf2read.c: Revert.
9707 * dwarf2loc.c: Revert.
9708 * dwarf2expr.h: Revert.
9709 * dwarf2expr.c: Revert.
9710 * dwarf2-frame.c: Revert.
9711 * dwarf2-frame-tailcall.c: Revert.
9712 * dwarf-index-write.h: Revert.
9713 * dwarf-index-write.c: Revert.
9714 * dwarf-index-common.c: Revert.
9715 * dwarf-index-cache.h: Revert.
9716 * dwarf-index-cache.c: Revert.
9717 * dummy-frame.c: Revert.
9718 * dtrace-probe.c: Revert.
9719 * disasm.h: Revert.
9720 * disasm.c: Revert.
9721 * disasm-selftests.c: Revert.
9722 * dictionary.c: Revert.
9723 * dicos-tdep.c: Revert.
9724 * demangle.c: Revert.
9725 * dcache.h: Revert.
9726 * dcache.c: Revert.
9727 * darwin-nat.h: Revert.
9728 * darwin-nat.c: Revert.
9729 * darwin-nat-info.c: Revert.
9730 * d-valprint.c: Revert.
9731 * d-namespace.c: Revert.
9732 * d-lang.c: Revert.
9733 * ctf.c: Revert.
9734 * csky-tdep.c: Revert.
9735 * csky-linux-tdep.c: Revert.
9736 * cris-tdep.c: Revert.
9737 * cris-linux-tdep.c: Revert.
9738 * cp-valprint.c: Revert.
9739 * cp-support.c: Revert.
9740 * cp-namespace.c: Revert.
9741 * cp-abi.c: Revert.
9742 * corelow.c: Revert.
9743 * corefile.c: Revert.
9744 * continuations.c: Revert.
9745 * completer.h: Revert.
9746 * completer.c: Revert.
9747 * complaints.c: Revert.
9748 * coffread.c: Revert.
9749 * coff-pe-read.c: Revert.
9750 * cli-out.h: Revert.
9751 * cli-out.c: Revert.
9752 * charset.c: Revert.
9753 * c-varobj.c: Revert.
9754 * c-valprint.c: Revert.
9755 * c-typeprint.c: Revert.
9756 * c-lang.c: Revert.
9757 * buildsym.c: Revert.
9758 * buildsym-legacy.c: Revert.
9759 * build-id.h: Revert.
9760 * build-id.c: Revert.
9761 * btrace.c: Revert.
9762 * bsd-uthread.c: Revert.
9763 * breakpoint.h: Revert.
9764 * breakpoint.c: Revert.
9765 * break-catch-throw.c: Revert.
9766 * break-catch-syscall.c: Revert.
9767 * break-catch-sig.c: Revert.
9768 * blockframe.c: Revert.
9769 * block.c: Revert.
9770 * bfin-tdep.c: Revert.
9771 * bfin-linux-tdep.c: Revert.
9772 * bfd-target.c: Revert.
9773 * bcache.c: Revert.
9774 * ax-general.c: Revert.
9775 * ax-gdb.h: Revert.
9776 * ax-gdb.c: Revert.
9777 * avr-tdep.c: Revert.
9778 * auxv.c: Revert.
9779 * auto-load.c: Revert.
9780 * arm-wince-tdep.c: Revert.
9781 * arm-tdep.c: Revert.
9782 * arm-symbian-tdep.c: Revert.
9783 * arm-pikeos-tdep.c: Revert.
9784 * arm-obsd-tdep.c: Revert.
9785 * arm-nbsd-tdep.c: Revert.
9786 * arm-nbsd-nat.c: Revert.
9787 * arm-linux-tdep.c: Revert.
9788 * arm-linux-nat.c: Revert.
9789 * arm-fbsd-tdep.c: Revert.
9790 * arm-fbsd-nat.c: Revert.
9791 * arm-bsd-tdep.c: Revert.
9792 * arch-utils.c: Revert.
9793 * arc-tdep.c: Revert.
9794 * arc-newlib-tdep.c: Revert.
9795 * annotate.h: Revert.
9796 * annotate.c: Revert.
9797 * amd64-windows-tdep.c: Revert.
9798 * amd64-windows-nat.c: Revert.
9799 * amd64-tdep.c: Revert.
9800 * amd64-sol2-tdep.c: Revert.
9801 * amd64-obsd-tdep.c: Revert.
9802 * amd64-obsd-nat.c: Revert.
9803 * amd64-nbsd-tdep.c: Revert.
9804 * amd64-nbsd-nat.c: Revert.
9805 * amd64-nat.c: Revert.
9806 * amd64-linux-tdep.c: Revert.
9807 * amd64-linux-nat.c: Revert.
9808 * amd64-fbsd-tdep.c: Revert.
9809 * amd64-fbsd-nat.c: Revert.
9810 * amd64-dicos-tdep.c: Revert.
9811 * amd64-darwin-tdep.c: Revert.
9812 * amd64-bsd-nat.c: Revert.
9813 * alpha-tdep.c: Revert.
9814 * alpha-obsd-tdep.c: Revert.
9815 * alpha-nbsd-tdep.c: Revert.
9816 * alpha-mdebug-tdep.c: Revert.
9817 * alpha-linux-tdep.c: Revert.
9818 * alpha-linux-nat.c: Revert.
9819 * alpha-bsd-tdep.c: Revert.
9820 * alpha-bsd-nat.c: Revert.
9821 * aix-thread.c: Revert.
9822 * agent.c: Revert.
9823 * addrmap.c: Revert.
9824 * ada-varobj.c: Revert.
9825 * ada-valprint.c: Revert.
9826 * ada-typeprint.c: Revert.
9827 * ada-tasks.c: Revert.
9828 * ada-lang.c: Revert.
9829 * aarch64-tdep.c: Revert.
9830 * aarch64-ravenscar-thread.c: Revert.
9831 * aarch64-newlib-tdep.c: Revert.
9832 * aarch64-linux-tdep.c: Revert.
9833 * aarch64-linux-nat.c: Revert.
9834 * aarch64-fbsd-tdep.c: Revert.
9835 * aarch64-fbsd-nat.c: Revert.
9836 * aarch32-linux-nat.c: Revert.
9837
9838 2019-04-05 Tom Tromey <tom@tromey.com>
9839
9840 * ft32-tdep.c: Sort headers.
9841 * frv-tdep.c: Sort headers.
9842 * frv-linux-tdep.c: Sort headers.
9843 * frame.c: Sort headers.
9844 * frame-unwind.c: Sort headers.
9845 * frame-base.c: Sort headers.
9846 * fork-child.c: Sort headers.
9847 * findvar.c: Sort headers.
9848 * findcmd.c: Sort headers.
9849 * filesystem.c: Sort headers.
9850 * filename-seen-cache.h: Sort headers.
9851 * filename-seen-cache.c: Sort headers.
9852 * fbsd-tdep.c: Sort headers.
9853 * fbsd-nat.h: Sort headers.
9854 * fbsd-nat.c: Sort headers.
9855 * f-valprint.c: Sort headers.
9856 * f-typeprint.c: Sort headers.
9857 * f-lang.c: Sort headers.
9858 * extension.h: Sort headers.
9859 * extension.c: Sort headers.
9860 * extension-priv.h: Sort headers.
9861 * expprint.c: Sort headers.
9862 * exec.h: Sort headers.
9863 * exec.c: Sort headers.
9864 * exceptions.c: Sort headers.
9865 * event-top.c: Sort headers.
9866 * event-loop.c: Sort headers.
9867 * eval.c: Sort headers.
9868 * elfread.c: Sort headers.
9869 * dwarf2read.h: Sort headers.
9870 * dwarf2read.c: Sort headers.
9871 * dwarf2loc.c: Sort headers.
9872 * dwarf2expr.h: Sort headers.
9873 * dwarf2expr.c: Sort headers.
9874 * dwarf2-frame.c: Sort headers.
9875 * dwarf2-frame-tailcall.c: Sort headers.
9876 * dwarf-index-write.h: Sort headers.
9877 * dwarf-index-write.c: Sort headers.
9878 * dwarf-index-common.c: Sort headers.
9879 * dwarf-index-cache.h: Sort headers.
9880 * dwarf-index-cache.c: Sort headers.
9881 * dummy-frame.c: Sort headers.
9882 * dtrace-probe.c: Sort headers.
9883 * disasm.h: Sort headers.
9884 * disasm.c: Sort headers.
9885 * disasm-selftests.c: Sort headers.
9886 * dictionary.c: Sort headers.
9887 * dicos-tdep.c: Sort headers.
9888 * demangle.c: Sort headers.
9889 * dcache.h: Sort headers.
9890 * dcache.c: Sort headers.
9891 * darwin-nat.h: Sort headers.
9892 * darwin-nat.c: Sort headers.
9893 * darwin-nat-info.c: Sort headers.
9894 * d-valprint.c: Sort headers.
9895 * d-namespace.c: Sort headers.
9896 * d-lang.c: Sort headers.
9897 * ctf.c: Sort headers.
9898 * csky-tdep.c: Sort headers.
9899 * csky-linux-tdep.c: Sort headers.
9900 * cris-tdep.c: Sort headers.
9901 * cris-linux-tdep.c: Sort headers.
9902 * cp-valprint.c: Sort headers.
9903 * cp-support.c: Sort headers.
9904 * cp-namespace.c: Sort headers.
9905 * cp-abi.c: Sort headers.
9906 * corelow.c: Sort headers.
9907 * corefile.c: Sort headers.
9908 * continuations.c: Sort headers.
9909 * completer.h: Sort headers.
9910 * completer.c: Sort headers.
9911 * complaints.c: Sort headers.
9912 * coffread.c: Sort headers.
9913 * coff-pe-read.c: Sort headers.
9914 * cli-out.h: Sort headers.
9915 * cli-out.c: Sort headers.
9916 * charset.c: Sort headers.
9917 * c-varobj.c: Sort headers.
9918 * c-valprint.c: Sort headers.
9919 * c-typeprint.c: Sort headers.
9920 * c-lang.c: Sort headers.
9921 * buildsym.c: Sort headers.
9922 * buildsym-legacy.c: Sort headers.
9923 * build-id.h: Sort headers.
9924 * build-id.c: Sort headers.
9925 * btrace.c: Sort headers.
9926 * bsd-uthread.c: Sort headers.
9927 * breakpoint.h: Sort headers.
9928 * breakpoint.c: Sort headers.
9929 * break-catch-throw.c: Sort headers.
9930 * break-catch-syscall.c: Sort headers.
9931 * break-catch-sig.c: Sort headers.
9932 * blockframe.c: Sort headers.
9933 * block.c: Sort headers.
9934 * bfin-tdep.c: Sort headers.
9935 * bfin-linux-tdep.c: Sort headers.
9936 * bfd-target.c: Sort headers.
9937 * bcache.c: Sort headers.
9938 * ax-general.c: Sort headers.
9939 * ax-gdb.h: Sort headers.
9940 * ax-gdb.c: Sort headers.
9941 * avr-tdep.c: Sort headers.
9942 * auxv.c: Sort headers.
9943 * auto-load.c: Sort headers.
9944 * arm-wince-tdep.c: Sort headers.
9945 * arm-tdep.c: Sort headers.
9946 * arm-symbian-tdep.c: Sort headers.
9947 * arm-pikeos-tdep.c: Sort headers.
9948 * arm-obsd-tdep.c: Sort headers.
9949 * arm-nbsd-tdep.c: Sort headers.
9950 * arm-nbsd-nat.c: Sort headers.
9951 * arm-linux-tdep.c: Sort headers.
9952 * arm-linux-nat.c: Sort headers.
9953 * arm-fbsd-tdep.c: Sort headers.
9954 * arm-fbsd-nat.c: Sort headers.
9955 * arm-bsd-tdep.c: Sort headers.
9956 * arch-utils.c: Sort headers.
9957 * arc-tdep.c: Sort headers.
9958 * arc-newlib-tdep.c: Sort headers.
9959 * annotate.h: Sort headers.
9960 * annotate.c: Sort headers.
9961 * amd64-windows-tdep.c: Sort headers.
9962 * amd64-windows-nat.c: Sort headers.
9963 * amd64-tdep.c: Sort headers.
9964 * amd64-sol2-tdep.c: Sort headers.
9965 * amd64-obsd-tdep.c: Sort headers.
9966 * amd64-obsd-nat.c: Sort headers.
9967 * amd64-nbsd-tdep.c: Sort headers.
9968 * amd64-nbsd-nat.c: Sort headers.
9969 * amd64-nat.c: Sort headers.
9970 * amd64-linux-tdep.c: Sort headers.
9971 * amd64-linux-nat.c: Sort headers.
9972 * amd64-fbsd-tdep.c: Sort headers.
9973 * amd64-fbsd-nat.c: Sort headers.
9974 * amd64-dicos-tdep.c: Sort headers.
9975 * amd64-darwin-tdep.c: Sort headers.
9976 * amd64-bsd-nat.c: Sort headers.
9977 * alpha-tdep.c: Sort headers.
9978 * alpha-obsd-tdep.c: Sort headers.
9979 * alpha-nbsd-tdep.c: Sort headers.
9980 * alpha-mdebug-tdep.c: Sort headers.
9981 * alpha-linux-tdep.c: Sort headers.
9982 * alpha-linux-nat.c: Sort headers.
9983 * alpha-bsd-tdep.c: Sort headers.
9984 * alpha-bsd-nat.c: Sort headers.
9985 * aix-thread.c: Sort headers.
9986 * agent.c: Sort headers.
9987 * addrmap.c: Sort headers.
9988 * ada-varobj.c: Sort headers.
9989 * ada-valprint.c: Sort headers.
9990 * ada-typeprint.c: Sort headers.
9991 * ada-tasks.c: Sort headers.
9992 * ada-lang.c: Sort headers.
9993 * aarch64-tdep.c: Sort headers.
9994 * aarch64-ravenscar-thread.c: Sort headers.
9995 * aarch64-newlib-tdep.c: Sort headers.
9996 * aarch64-linux-tdep.c: Sort headers.
9997 * aarch64-linux-nat.c: Sort headers.
9998 * aarch64-fbsd-tdep.c: Sort headers.
9999 * aarch64-fbsd-nat.c: Sort headers.
10000 * aarch32-linux-nat.c: Sort headers.
10001
10002 2019-04-04 Tom Tromey <tom@tromey.com>
10003
10004 * varobj.c (varobj_create): Update.
10005 * rust-exp.y (struct rust_parser) <update_innermost_block,
10006 lookup_symbol>: New methods.
10007 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10008 Rename.
10009 (rust_parser::rust_lookup_type)
10010 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10011 * printcmd.c (display_command, do_one_display): Update.
10012 * parser-defs.h (struct parser_state) <parser_state>: Add
10013 "tracker" parameter.
10014 (block_tracker): New member.
10015 (class innermost_block_tracker) <innermost_block_tracker>: Add
10016 "types" parameter.
10017 <reset>: Remove method.
10018 (innermost_block): Don't declare.
10019 (null_post_parser): Update.
10020 * parse.c (innermost_block): Remove global.
10021 (write_dollar_variable): Update.
10022 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10023 Remove "tracker_types" parameter.
10024 (parse_expression): Add "tracker" parameter.
10025 (parse_expression_for_completion): Update.
10026 (null_post_parser): Add "tracker" parameter.
10027 * p-exp.y: Update rules.
10028 * m2-exp.y: Update rules.
10029 * language.h (struct language_defn) <la_post_parser>: Add
10030 "tracker" parameter.
10031 * go-exp.y: Update rules.
10032 * f-exp.y: Update rules.
10033 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10034 parameter.
10035 * d-exp.y: Update rules.
10036 * c-exp.y: Update rules.
10037 * breakpoint.c (set_breakpoint_condition): Create an
10038 innermost_block_tracker.
10039 (watch_command_1): Likewise.
10040 * ada-lang.c (resolve): Add "tracker" parameter.
10041 (resolve_subexp): Likewise.
10042 * ada-exp.y (write_var_from_sym): Update.
10043
10044 2019-04-04 Tom Tromey <tom@tromey.com>
10045
10046 * type-stack.h: New file.
10047 * type-stack.c: New file.
10048 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10049 type-stack.h.
10050 (insert_into_type_stack, insert_type, push_type, push_type_int)
10051 (insert_type_address_space, pop_type, pop_type_int)
10052 (pop_typelist, pop_type_stack, append_type_stack)
10053 (push_type_stack, get_type_stack, push_typelist)
10054 (follow_type_instance_flags, follow_types): Don't declare.
10055 * parse.c (type_stack): Remove global.
10056 (parse_exp_in_context): Update.
10057 (insert_into_type_stack, insert_type, push_type, push_type_int)
10058 (insert_type_address_space, pop_type, pop_type_int)
10059 (pop_typelist, pop_type_stack, append_type_stack)
10060 (push_type_stack, get_type_stack, push_typelist)
10061 (follow_type_instance_flags, follow_types): Remove (moved to
10062 type-stack.c).
10063 * f-exp.y (type_stack): New global.
10064 Update rules.
10065 (push_kind_type, f_parse): Update.
10066 * d-exp.y (type_stack): New global.
10067 Update rules.
10068 (d_parse): Update.
10069 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10070 Update rules.
10071 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10072 (HFILES_NO_SRCDIR): Add type-stack.h.
10073
10074 2019-04-04 Tom Tromey <tom@tromey.com>
10075
10076 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10077 (rust_parser::convert_ast_to_expression, rust_parse)
10078 (rust_lex_test_completion, rust_lex_tests): Update.
10079 * parser-defs.h (struct expr_completion_state): New.
10080 (struct parser_state) <parser_state>: Add completion parameter.
10081 <mark_struct_expression, mark_completion_tag>: New methods.
10082 <parse_completion, m_completion_state>: New members.
10083 (prefixify_expression, null_post_parser): Update.
10084 (mark_struct_expression, mark_completion_tag): Don't declare.
10085 * parse.c (parse_completion, expout_last_struct)
10086 (expout_tag_completion_type, expout_completion_name): Remove
10087 globals.
10088 (parser_state::mark_struct_expression)
10089 (parser_state::mark_completion_tag): Now methods.
10090 (prefixify_expression): Add last_struct parameter.
10091 (prefixify_subexp): Likewise.
10092 (parse_exp_1): Update.
10093 (parse_exp_in_context): Add cstate parameter. Update.
10094 (parse_expression_for_completion): Create an
10095 expr_completion_state.
10096 (null_post_parser): Add "completion" parameter.
10097 * p-exp.y: Update rules.
10098 (yylex): Update.
10099 * language.h (struct language_defn) <la_post_parser>: Add
10100 "completing" parameter.
10101 * go-exp.y: Update rules.
10102 (lex_one_token): Update.
10103 * expression.h (parse_completion): Don't declare.
10104 * d-exp.y: Update rules.
10105 (lex_one_token): Update rules.
10106 * c-exp.y: Update rules.
10107 (lex_one_token): Update.
10108 * ada-lang.c (resolve): Add "parse_completion" parameter.
10109 (resolve_subexp): Likewise.
10110 (ada_resolve_function): Likewise.
10111
10112 2019-04-04 Tom Tromey <tom@tromey.com>
10113
10114 * parser-defs.h (struct parser_state) <start_arglist,
10115 end_arglist>: New methods.
10116 <arglist_len, m_funcall_chain>: New members.
10117 (arglist_len, start_arglist, end_arglist): Don't declare.
10118 * parse.c (arglist_len, funcall_chain): Remove global.
10119 (start_arglist, end_arglist): Remove functions.
10120 (parse_exp_in_context): Update.
10121 * p-exp.y: Update rules.
10122 * m2-exp.y: Update rules.
10123 * go-exp.y: Update rules.
10124 * f-exp.y: Update rules.
10125 * d-exp.y: Update rules.
10126 * c-exp.y: Update rules.
10127
10128 2019-04-04 Tom Tromey <tom@tromey.com>
10129
10130 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10131 lex_operator, push_back>: New methods.
10132 Update all rules.
10133 (rust_parser::lex_hex, lex_escape): Rename and update.
10134 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10135 (rust_parser::lex_operator): Rename and update.
10136 (rust_parser::lex_number, rustyylex, rustyyerror)
10137 (rust_lex_test_init, rust_lex_test_sequence)
10138 (rust_lex_test_push_back, rust_lex_tests): Update.
10139 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10140 parameter.
10141 <lexptr, prev_lexptr>: New members.
10142 (lexptr, prev_lexptr): Don't declare.
10143 * parse.c (lexptr, prev_lexptr): Remove globals.
10144 (parse_exp_in_context): Update.
10145 * p-exp.y (yylex, yyerror): Update.
10146 * m2-exp.y (parse_number, yylex, yyerror): Update.
10147 * go-exp.y (lex_one_token, yyerror): Update.
10148 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10149 * d-exp.y (lex_one_token, yyerror): Update.
10150 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10151 (lex_one_token, yyerror): Update.
10152 * ada-lex.l (YY_INPUT): Update.
10153 (rewind_to_char): Update.
10154 * ada-exp.y (yyerror): Update.
10155
10156 2019-04-04 Tom Tromey <tom@tromey.com>
10157
10158 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10159 * parser-defs.h (struct parser_state) <parser_state>: Add new
10160 parameter.
10161 <comma_terminates>: New member.
10162 (comma_terminates): Don't declare global.
10163 * parse.c (comma_terminates): Remove global.
10164 (parse_exp_in_context): Update.
10165 * p-exp.y (yylex): Update.
10166 * m2-exp.y (yylex): Update.
10167 * go-exp.y (lex_one_token): Update.
10168 * f-exp.y (yylex): Update.
10169 * d-exp.y (lex_one_token): Update.
10170 * c-exp.y (lex_one_token): Update.
10171 * ada-lex.l: Update.
10172
10173 2019-04-04 Tom Tromey <tom@tromey.com>
10174
10175 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10176 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10177 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10178 * parser-defs.h (paren_depth): Don't declare.
10179 * parse.c (paren_depth): Remove global.
10180 (parse_exp_in_context): Update.
10181 * p-exp.y (paren_depth): New global.
10182 (pascal_parse): Initialize it.
10183 * m2-exp.y (paren_depth): New global.
10184 (m2_parse): Initialize it.
10185 * go-exp.y (paren_depth): New global.
10186 (go_parse): Initialize it.
10187 * f-exp.y (paren_depth): New global.
10188 (f_parse): Initialize it.
10189 * d-exp.y (paren_depth): New global.
10190 (d_parse): Initialize it.
10191 * c-exp.y (paren_depth): New global.
10192 (c_parse): Initialize it.
10193 * ada-lex.l (paren_depth): New global.
10194 (lexer_init): Initialize it.
10195
10196 2019-04-04 Tom Tromey <tom@tromey.com>
10197
10198 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10199 (rust_parser::convert_ast_to_type)
10200 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10201 * parser-defs.h (struct parser_state) <parser_state>: Add
10202 parameters. Initialize new members.
10203 <expression_context_block, expression_context_pc>: New members.
10204 * parse.c (expression_context_block, expression_context_pc):
10205 Remove globals.
10206 (parse_exp_in_context): Update.
10207 * p-exp.y: Update all rules.
10208 (yylex): Update.
10209 * m2-exp.y: Update all rules.
10210 (yylex): Update.
10211 * go-exp.y (yylex): Update.
10212 * f-exp.y (yylex): Update.
10213 * d-exp.y: Update all rules.
10214 (yylex): Update.
10215 * c-exp.y: Update all rules.
10216 (lex_one_token, classify_name, yylex, c_parse): Update.
10217 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10218
10219 2019-04-04 Tom Tromey <tom@tromey.com>
10220
10221 * gdbarch.h, gdbarch.c: Rebuild.
10222 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10223 * stap-probe.h:
10224 (struct stap_parse_info): Replace "parser_state" with
10225 "expr_builder".
10226 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10227 (parser_state): New class.
10228 * parse.c (expr_builder): Rename.
10229 (expr_builder::release): Rename.
10230 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10231 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10232 (write_exp_elt_longcst, write_exp_elt_floatcst)
10233 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10234 (write_exp_string_vector, write_exp_bitstring)
10235 (write_exp_msymbol, mark_struct_expression)
10236 (write_dollar_variable)
10237 (insert_type_address_space, increase_expout_size): Replace
10238 "parser_state" with "expr_builder".
10239 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10240 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10241 "parser_state" with "expr_builder".
10242
10243 2019-04-04 Tom Tromey <tom@tromey.com>
10244
10245 * rust-exp.y: Replace "parse_language" with method call.
10246 * p-exp.y:
10247 (yylex): Replace "parse_language" with method call.
10248 * m2-exp.y:
10249 (yylex): Replace "parse_language" with method call.
10250 * go-exp.y (classify_name): Replace "parse_language" with method
10251 call.
10252 * f-exp.y (yylex): Replace "parse_language" with method call.
10253 * d-exp.y (lex_one_token): Replace "parse_language" with method
10254 call.
10255 * c-exp.y:
10256 (lex_one_token, classify_name, yylex): Replace "parse_language"
10257 with method call.
10258 * ada-exp.y (find_primitive_type, type_char)
10259 (type_system_address): Replace "parse_language" with method call.
10260
10261 2019-04-04 Tom Tromey <tom@tromey.com>
10262
10263 * rust-exp.y: Replace "parse_gdbarch" with method call.
10264 * parse.c (write_dollar_variable, insert_type_address_space):
10265 Replace "parse_gdbarch" with method call.
10266 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10267 call.
10268 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10269 call.
10270 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10271 "parse_gdbarch" with method call.
10272 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10273 with method call.
10274 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10275 "parse_gdbarch" with method call.
10276 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10277 "parse_gdbarch" with method call.
10278 * c-exp.y (parse_type, parse_number, classify_name): Replace
10279 "parse_gdbarch" with method call.
10280 * ada-lex.l: Replace "parse_gdbarch" with method call.
10281 * ada-exp.y (parse_type, find_primitive_type, type_char)
10282 (type_system_address): Replace "parse_gdbarch" with method call.
10283
10284 2019-04-04 Tom Tromey <tom@tromey.com>
10285
10286 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10287 * stap-probe.c (stap_parse_argument): Update.
10288 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10289 initial_size parameter.
10290 * rust-exp.y (rust_lex_tests): Update.
10291 * parse.c (parser_state): Update.
10292 (parse_exp_in_context): Update.
10293 * parser-defs.h (struct parser_state) <parser_state>: Remove
10294 "initial_size" parameter.
10295
10296 2019-04-04 Tom Tromey <tom@tromey.com>
10297
10298 * parser-defs.h (increase_expout_size): Don't declare.
10299 * parse.c (increase_expout_size): Now static.
10300
10301 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10302
10303 * gnu-nat.c (gnu_nat_target::wait): Fix
10304 target_waitstatus_to_string call.
10305
10306 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10307
10308 * eval.c (evaluate_subexp_standard): Handle internal functions
10309 during Fortran function call handling.
10310
10311 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10312
10313 * NEWS: Mention new internal functions.
10314 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10315 (read_base_type): Use dwarf2_init_complex_target_type.
10316 * value.c (creal_internal_fn): New function.
10317 (cimag_internal_fn): New function.
10318 (_initialize_values): Register new internal functions.
10319
10320 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10321
10322 * infrun.c (stop_all_threads): If debug_infrun, always
10323 trace the wait status after wait_one, using
10324 target_waitstatus_to_string and target_pid_to_str.
10325 (handle_inferior_event): Replace various trace of
10326 wait status kind by a single trace.
10327 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10328 wait status kind image by target_waitstatus_to_string.
10329 * target/waitstatus.c (target_waitstatus_to_string): Fix
10330 obsolete comment.
10331
10332 2019-04-01 Tom Tromey <tromey@adacore.com>
10333
10334 PR symtab/23331:
10335 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10336
10337 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10338 Pedro Alves <palves@redhat.com>
10339
10340 * top.c (quit_force): Call 'finalize_values'.
10341 * value.c (finalize_values): New function.
10342 * value.h (finalize_values): Declare.
10343
10344 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10345
10346 * NEWS: Announce $_gdb_major and $_gdb_minor.
10347
10348 * top.c (init_gdb_version_vars): New function.
10349 (gdb_init): Call init_gdb_version_vars.
10350
10351 2019-03-29 Tom Tromey <tromey@adacore.com>
10352
10353 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10354 help text. Remove dead code.
10355
10356 2019-03-29 Keith Seitz <keiths@redhat.com>
10357
10358 From Siddhesh Poyarekar:
10359 * f-lang.h (f77_get_upperbound): Return LONGEST.
10360 (f77_get_lowerbound): Likewise.
10361 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10362 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10363 print them.
10364 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10365 plongest to format print it.
10366 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10367 (f77_get_upperbound): Likewise.
10368 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10369 LOWER_BOUND to LONGEST.
10370 (f77_create_arrayprint_offset_tbl): Likewise.
10371
10372 2019-03-29 Keith Seitz <keiths@redhat.com>
10373
10374 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10375 %s/pulongest for TYPE_LENGTH instead of %d in format
10376 strings.
10377 * ada-typerint.c (ada_print_type): Likewise.
10378 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10379 * compile/compile-c-support.c (generate_register_struct): Likewise.
10380 * gdbtypes.c (recursive_dump_type): Likewise.
10381 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10382 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10383 instead of %d in format strings.
10384 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10385 to std::min to ULONGEST.
10386 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10387 instead of %d in format strings.
10388 * tracepoint.c (info_scope_command): Likewise.
10389 * typeprint.c (print_offset_data::update)
10390 (print_offset_data::finish): Likewise.
10391 * xtensa-tdep.c (xtensa_store_return_value)
10392 (xtensa_push_dummy_call): Likewise.
10393
10394 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10395
10396 * windows-nat.c (display_selector): Fixed format specifications
10397 for 64-bit Cygwin.
10398
10399 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10400
10401 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10402
10403 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10404
10405 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10406 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10407 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10408 (nios2_linux_init_abi): Install it.
10409
10410 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10411
10412 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10413
10414 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10415
10416 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10417
10418 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10419 Tom Tromey <tromey@adacore.com>
10420
10421 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10422
10423 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10424
10425 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10426 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10427 method to compute the bounds of range types. Also print "[evaluated]"
10428 if the bounds' values come from a dynamic evaluation.
10429
10430 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10431
10432 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10433 whitespace when pretty printing is on.
10434
10435 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10436
10437 * ppc-linux-nat.c: Add include.
10438
10439 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10440
10441 * NEWS: Mention AArch64 Pointer Authentication.
10442
10443 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10444
10445 * arm-linux-nat.c: Add include.
10446
10447 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10448
10449 * source-cache.c (source_cache::get_source_lines): Re-read
10450 fullname after calling open_source_file.
10451
10452 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10453
10454 * NEWS: Mention TLS support for FreeBSD.
10455
10456 2019-03-25 Tom Tromey <tromey@adacore.com>
10457
10458 * minsyms.c (BUNCH_SIZE): Update comment.
10459 (~minimal_symbol_reader): Remove old comment.
10460 (compact_minimal_symbols): Update comment.
10461 (minimal_symbol_reader::install): Remove old comment. Update
10462 other comments.
10463
10464 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10465
10466 * s390-linux-nat.c: Add include.
10467
10468 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10469
10470 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10471 Call linux_get_hwcap.
10472 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10473 Likewise.
10474 (aarch64_linux_get_hwcap): Remove function.
10475 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10476 declaration.
10477 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10478 linux_get_hwcap.
10479 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10480 * linux-tdep.c (linux_get_hwcap): Add function.
10481 (linux_get_hwcap2): Likewise.
10482 * linux-tdep.h (linux_get_hwcap): Add declaration.
10483 (linux_get_hwcap2): Likewise.
10484 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10485 (ppc_linux_get_hwcap2): Likewise.
10486 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10487 linux_get_hwcap.
10488 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10489 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10490 (ppc_linux_nat_target::read_description): Likewise.
10491 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10492 * s390-linux-nat.c: Likewise.
10493 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10494
10495 2019-03-24 Tom Tromey <tom@tromey.com>
10496
10497 * ada-lang.c (standard_lookup): Simplify initialization.
10498 (ada_lookup_symbol_nonlocal): Simplify return.
10499 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10500 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10501 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10502 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10503 initialization.
10504 * solib.c (solib_global_lookup): Simplify.
10505 * symtab.c (null_block_symbol): Remove.
10506 (symbol_cache_lookup): Simplify returns.
10507 (lookup_language_this): Simplify returns.
10508 (lookup_symbol_aux): Simplify return.
10509 (lookup_local_symbol): Simplify returns.
10510 (lookup_global_symbol_from_objfile): Simplify return.
10511 (lookup_symbol_in_objfile_symtabs)
10512 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10513 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10514 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10515 * cp-namespace.c (cp_lookup_bare_symbol)
10516 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10517 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10518 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10519 (cp_lookup_symbol_via_imports): Simplify initialization.
10520 (find_symbol_in_baseclass): Likewise.
10521 * symtab.h (null_block_symbol): Remove.
10522 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10523 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10524 (d_lookup_symbol_module): Likewise.
10525 (find_symbol_in_baseclass): Simplify initialization.
10526
10527 2019-03-24 Tom Tromey <tom@tromey.com>
10528
10529 * expression.h: Don't include symtab.h.
10530 (struct block): Forward declare.
10531
10532 2019-03-24 Tom Tromey <tom@tromey.com>
10533
10534 * c-exp.y (typebase): Remove casts.
10535 * gdbtypes.c (lookup_unsigned_typename, )
10536 (lookup_signed_typename): Remove cast.
10537 * eval.c (parse_to_comma_and_eval): Remove cast.
10538 * parse.c (write_dollar_variable): Remove cast.
10539 * block.h (struct block) <superblock>: Now const.
10540 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10541 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10542 (map_block): Make "block" const.
10543 * symfile.h (struct quick_symbol_functions)
10544 <map_matching_symbols>: Constify block argument to "callback".
10545 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10546 const.
10547 (find_pc_sect_compunit_symtab): Make "b" const.
10548 (find_symbol_at_address): Likewise.
10549 (search_symbols): Likewise.
10550 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10551 (dw2_debug_names_lookup_symbol): Likewise.
10552 (dw2_map_matching_symbols): Update.
10553 * p-valprint.c (pascal_val_print): Remove "block".
10554 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10555 (aux_add_nonlocal_symbols): Make "block" const.
10556 (resolve_subexp): Remove cast.
10557 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10558 const.
10559 (iterate_over_file_blocks): Likewise.
10560 * f-exp.y (%union) <bval>: Remove.
10561 * coffread.c (patch_opaque_types): Make "b" const.
10562 * spu-tdep.c (spu_catch_start): Make "block" const.
10563 * c-valprint.c (print_unpacked_pointer): Remove "block".
10564 * symmisc.c (dump_symtab_1): Make "b" const.
10565 (block_depth): Make "block" const.
10566 * d-exp.y (%union) <bval>: Remove.
10567 * cp-support.h (cp_lookup_rtti_type): Update.
10568 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10569 * psymtab.c (psym_lookup_symbol): Make "block" const.
10570 (maintenance_check_psymtabs): Make "b" const.
10571 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10572 (enumerate_locals, enumerate_args): Update.
10573 * python/py-symtab.c (stpy_global_block): Make "block" const.
10574 (stpy_static_block): Likewise.
10575 * inline-frame.c (block_starting_point_at): Make "new_block"
10576 const.
10577 * block.c (find_block_in_blockvector): Make return type const.
10578 (blockvector_for_pc_sect): Make "b" const.
10579 (find_block_in_blockvector): Make "b" const.
10580
10581 2019-03-23 Tom Tromey <tom@tromey.com>
10582
10583 * varobj.c (varobj_create): Update.
10584 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10585 * printcmd.c (display_command, do_one_display): Don't reset
10586 innermost_block.
10587 * parser-defs.h (enum innermost_block_tracker_type): Move to
10588 expression.h.
10589 (innermost_block): Update comment.
10590 * parse.c (parse_exp_1): Add tracker_types parameter.
10591 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10592 tracker_types parameter. Reset innermost_block.
10593 (parse_exp_in_context): Remove.
10594 (parse_expression_for_completion): Update.
10595 * objfiles.c (~objfile): Don't reset expression_context_block or
10596 innermost_block.
10597 * expression.h (enum innermost_block_tracker_type): Move from
10598 parser-defs.h.
10599 (parse_exp_1): Add tracker_types parameter.
10600 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10601 reset innermost_block.
10602
10603 2019-03-23 Tom Tromey <tom@tromey.com>
10604
10605 * objfiles.h: Include bcache.h.
10606
10607 2019-03-23 Tom Tromey <tom@tromey.com>
10608
10609 * linespec.c (get_current_search_block): Use
10610 scoped_restore_current_language.
10611 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10612
10613 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10614 Jiong Wang <jiong.wang@arm.com>
10615
10616 * aarch64-linux-tdep.c
10617 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10618 section.
10619 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10620
10621 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10622 Jiong Wang <jiong.wang@arm.com>
10623
10624 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10625 instructions.
10626 (aarch64_analyze_prologue_test): Add PACIASP test.
10627 (aarch64_prologue_prev_register): Unmask PC value.
10628
10629 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10630 Jiong Wang <jiong.wang@arm.com>
10631
10632 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10633 (aarch64_dwarf2_prev_register): Unmask PC value.
10634 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10635 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10636 DW_CFA_AARCH64_negate_ra_state.
10637 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10638
10639 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10640 Jiong Wang <jiong.wang@arm.com>
10641
10642 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10643 registers.
10644 (aarch64_pseudo_register_name): Likewise.
10645 (aarch64_pseudo_register_type): Likewise.
10646 (aarch64_pseudo_register_reggroup_p): Likewise.
10647 (aarch64_gdbarch_init): Add pauth registers.
10648 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10649 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10650 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10651 (struct gdbarch_tdep): Add regnum for ra_state.
10652
10653 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10654 Jiong Wang <jiong.wang@arm.com>
10655
10656 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10657
10658 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10659 Jiong Wang <jiong.wang@arm.com>
10660
10661 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10662 function.
10663 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10664 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10665 (aarch64_gdbarch_init): Add puth registers.
10666 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10667 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10668 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10669
10670 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10671 Jiong Wang <jiong.wang@arm.com>
10672
10673 * aarch64-linux-nat.c
10674 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10675 * aarch64-linux-tdep.c
10676 (aarch64_linux_core_read_description): Likewise.
10677 (aarch64_linux_get_hwcap): New function.
10678 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10679 (aarch64_linux_get_hwcap): New declaration.
10680
10681 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10682 Jiong Wang <jiong.wang@arm.com>
10683
10684 * aarch64-linux-nat.c
10685 (aarch64_linux_nat_target::read_description): Add pauth param.
10686 * aarch64-linux-tdep.c
10687 (aarch64_linux_core_read_description): Likewise.
10688 * aarch64-tdep.c (struct target_desc): Add in pauth.
10689 (aarch64_read_description): Add pauth param.
10690 (aarch64_gdbarch_init): Likewise.
10691 * aarch64-tdep.h (aarch64_read_description): Likewise.
10692 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10693 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10694 * features/Makefile: Add new files.
10695 * features/aarch64-pauth.c: New file.
10696 * features/aarch64-pauth.xml: New file.
10697
10698 2019-03-20 Tom Tromey <tromey@adacore.com>
10699
10700 * infrun.c (handle_inferior_event): Rename from
10701 handle_inferior_event_1. Create a scoped_value_mark.
10702 (handle_inferior_event): Remove.
10703
10704 2019-03-19 Tom Tromey <tromey@adacore.com>
10705
10706 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10707 * infrun.h (print_stop_event): Add "displays" parameter.
10708 * infrun.c (print_stop_event): Add "displays" parameter.
10709
10710 2019-03-19 Pedro Alves <palves@redhat.com>
10711
10712 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10713 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10714 to -1. Fix TABs vs spaces.
10715 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10716 * tui/tui-out.h (tui_ui_out) Add intro comments.
10717 <m_line, m_start_of_line>: In-class initialize, and add describing
10718 comment.
10719
10720 2019-03-18 Alan Hayward <alan.hayward@arm.com>
10721
10722 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10723 variable names.
10724 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10725
10726 2019-03-18 Pedro Alves <palves@redhat.com>
10727 Eli Zaretskii <eliz@gnu.org>
10728
10729 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10730 m_line and m_start_of_line.
10731
10732 2019-03-18 Eli Zaretskii <eliz@gnu.org>
10733
10734 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10735 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10736 it returns a newline. This fixes a regression in TU mode, whereby
10737 the next line is output on the same screen line as the user input.
10738
10739 2019-03-18 Tom Tromey <tromey@adacore.com>
10740
10741 * minsyms.c (minimal_symbol_reader::install): Remove call to
10742 obstack_blank.
10743
10744 2019-03-18 Pedro Alves <palves@redhat.com>
10745
10746 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10747 New globals.
10748 (apply_style): New, factored out from ...
10749 (apply_ansi_escape): ... this. Handle reverse video mode.
10750 (tui_set_reverse_mode): New function.
10751 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10752 * tui/tui-winsource.c (tui_show_source_line): Use
10753 tui_set_reverse_mode instead of setting A_STANDOUT.
10754 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10755 New setter methods.
10756
10757 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
10758
10759 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10760 Handle tabs.
10761
10762 2019-03-18 Tom Tromey <tromey@adacore.com>
10763
10764 * ada-lang.c (empty_array): Add "high" parameter.
10765 (ada_evaluate_subexp): Update.
10766
10767 2019-03-17 Sergei Trofimovich <siarheit@google.com>
10768
10769 * unittests/string_view-selftests.c: Define
10770 _initialize_string_view_selftests unconditionally.
10771
10772 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10773
10774 PR gdb/24350
10775 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10776
10777 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10778
10779 PR gdb/24351
10780 * windows-nat.c (display_selector): Fix format specifiers.
10781
10782 2019-03-17 Eli Zaretskii <eliz@gnu.org>
10783
10784 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10785 tui_refill_source_window instead of tui_refresh_win, to update the
10786 current execution line. This fixes redisplay of the current line
10787 when stepping through the code with "next" or "step".
10788
10789 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10790
10791 * source-cache.c (source_cache::get_source_lines): Call
10792 find_source_lines to initialize s->nlines. This fixes vertical
10793 scrolling of TUI source window when the DOWN arrow is pressed.
10794
10795 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10796
10797 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10798 linux-thread-db.c (_initialize_thread_db): Likewise.
10799
10800 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10801
10802 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10803 wclrtoeol in tui_show_source_line". This reverts changes made in
10804 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10805
10806 2019-03-15 Tom Tromey <tom@tromey.com>
10807
10808 * symtab.h (struct minimal_symbol): Derive from
10809 general_symbol_info.
10810 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10811 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10812 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10813 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10814 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10815 (MSYMBOL_SEARCH_NAME): Update.
10816 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10817 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10818 * minsyms.c (minimal_symbol_reader::record_full): Update.
10819
10820 2019-03-15 Tom Tromey <tom@tromey.com>
10821
10822 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10823
10824 2019-03-15 Tom Tromey <tom@tromey.com>
10825
10826 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10827 unique_xmalloc_ptr.
10828 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10829 Update.
10830 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10831 (build_minimal_symbol_hash_tables)
10832 (minimal_symbol_reader::install): Update.
10833
10834 2019-03-15 Tom Tromey <tom@tromey.com>
10835
10836 * symtab.c (create_demangled_names_hash): Update.
10837 (symbol_set_names): Update.
10838 * objfiles.h (struct objfile_per_bfd_storage)
10839 <demangled_names_hash>: Now an htab_up.
10840 * objfiles.c (objfile_per_bfd_storage): Simplify.
10841
10842 2019-03-15 Tom Tromey <tom@tromey.com>
10843
10844 * objfiles.h (struct objfile_per_bfd_storage): Declare
10845 destructor.
10846 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10847 New.
10848 (get_objfile_bfd_data): Use new. Don't initialize
10849 language_of_main.
10850 (free_objfile_per_bfd_storage): Remove.
10851 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10852
10853 2019-03-15 Tom Tromey <tom@tromey.com>
10854
10855 * symfile.c (reread_symbols): Update.
10856 * objfiles.c (objfile::objfile): Update.
10857 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10858 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10859 comment.
10860 (minimal_symbol_reader::install): Update.
10861 (terminate_minimal_symbol_table): Remove.
10862 * jit.c (jit_object_close_impl): Update.
10863
10864 2019-03-15 Tom Tromey <tom@tromey.com>
10865
10866 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10867 initializations.
10868
10869 2019-03-15 Tom Tromey <tom@tromey.com>
10870
10871 * objfiles.h (struct objfile_per_bfd_storage)
10872 <demangled_hash_languages>: Now a bitset.
10873 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10874 (lookup_minimal_symbol): Update.
10875
10876 2019-03-15 Tom Tromey <tom@tromey.com>
10877
10878 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10879 Don't return the symbol.
10880 * coffread.c (record_minimal_symbol): Use record_full.
10881
10882 2019-03-14 Eli Zaretskii <eliz@gnu.org>
10883
10884 The MS-Windows port of ncurses fails to switch to a color pair if
10885 one or both of the colors are the implicit default colors. This
10886 change records the default colors when TUI is initialized, and
10887 then specifies them explicitly when a color pair uses the default
10888 colors. This allows color styling in TUI mode on MS-Windows.
10889
10890 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10891 ncurses_norm_attr.
10892 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10893 colors in ncurses_norm_attr.
10894 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10895 "none", replace it with the default color recorded in
10896 ncurses_norm_attr.
10897
10898 2019-03-14 Tom Tromey <tromey@adacore.com>
10899
10900 * source-cache.h (class source_cache) <get_source_lines>: Return
10901 std::string.
10902 * source-cache.c (source_cache::extract_lines): Handle case where
10903 first_pos==npos. Return std::string.
10904 (source_cache::get_source_lines): Update.
10905
10906 2019-03-14 Tom Tromey <tromey@adacore.com>
10907
10908 * NEWS: Add item for "style sources" commands.
10909 * source-cache.c (source_cache::get_source_lines): Check
10910 source_styling.
10911 * cli/cli-style.c (source_styling): New global.
10912 (_initialize_cli_style): Add "style sources" commands.
10913 (show_style_sources): New function.
10914 * cli/cli-style.h (source_styling): Declare.
10915
10916 2019-03-14 Pedro Alves <palves@redhat.com>
10917 Tom Tromey <tromey@adacore.com>
10918
10919 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10920 * tui/tui-winsource.c (tui_refill_source_window): New function,
10921 from...
10922 (tui_horizontal_source_scroll): ... here. Move some logic.
10923 * cli/cli-style.c (set_style_enabled): Notify new observable.
10924 * tui/tui-hooks.c (tui_redisplay_source): New function.
10925 (tui_attach_detach_observers): Attach or detach
10926 tui_redisplay_source.
10927 * observable.h (source_styling_changed): New observable.
10928 * observable.c: Define source_styling_changed observable.
10929
10930 2019-03-13 Tom Tromey <tromey@adacore.com>
10931
10932 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10933 (i386_gnu_nat_target::store_registers): Update.
10934 * target-debug.h (target_debug_print_std_string): New macro.
10935 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10936 * windows-tdep.c (display_one_tib): Update.
10937 * tui/tui-stack.c (tui_make_status_line): Update.
10938 * top.c (print_inferior_quit_action): Update.
10939 * thread.c (thr_try_catch_cmd): Update.
10940 (add_thread_with_info): Update.
10941 (thread_target_id_str): Update.
10942 (thr_try_catch_cmd): Update.
10943 (thread_command): Update.
10944 (thread_find_command): Update.
10945 * record-btrace.c (record_btrace_target::info_record)
10946 (record_btrace_resume_thread, record_btrace_target::resume)
10947 (record_btrace_cancel_resume, record_btrace_step_thread)
10948 (record_btrace_target::wait, record_btrace_target::wait)
10949 (record_btrace_target::wait, record_btrace_target::stop): Update.
10950 * progspace.c (print_program_space): Update.
10951 * process-stratum-target.c
10952 (process_stratum_target::thread_address_space): Update.
10953 * linux-fork.c (linux_fork_mourn_inferior)
10954 (detach_checkpoint_command, info_checkpoints_command)
10955 (linux_fork_context): Update.
10956 (linux_fork_detach): Update.
10957 (class scoped_switch_fork_info): Update.
10958 (delete_checkpoint_command): Update.
10959 * infrun.c (follow_fork_inferior): Update.
10960 (follow_fork_inferior): Update.
10961 (proceed_after_vfork_done): Update.
10962 (handle_vfork_child_exec_or_exit): Update.
10963 (follow_exec): Update.
10964 (displaced_step_prepare_throw): Update.
10965 (displaced_step_restore): Update.
10966 (start_step_over): Update.
10967 (resume_1): Update.
10968 (clear_proceed_status_thread): Update.
10969 (proceed): Update.
10970 (print_target_wait_results): Update.
10971 (do_target_wait): Update.
10972 (context_switch): Update.
10973 (stop_all_threads): Update.
10974 (restart_threads): Update.
10975 (finish_step_over): Update.
10976 (handle_signal_stop): Update.
10977 (switch_back_to_stepped_thread): Update.
10978 (keep_going_pass_signal): Update.
10979 (print_exited_reason): Update.
10980 (normal_stop): Update.
10981 * inferior.c (inferior_pid_to_str): Change return type.
10982 (print_selected_inferior): Update.
10983 (add_inferior): Update.
10984 (detach_inferior): Update.
10985 * dummy-frame.c (fprint_dummy_frames): Update.
10986 * dcache.c (dcache_info_1): Update.
10987 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10988 (btrace_fetch, btrace_clear): Update.
10989 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10990 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10991 type.
10992 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10993 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10994 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10995 * gdbarch.c, gdbarch.h: Rebuild.
10996 * gdbarch.sh (core_pid_to_str): Change return type.
10997 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10998 return type.
10999 (windows_nat_target::pid_to_str): Change return type.
11000 (windows_delete_thread): Update.
11001 (windows_nat_target::attach): Update.
11002 (windows_nat_target::files_info): Update.
11003 * target-delegates.c: Rebuild.
11004 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11005 return type.
11006 (sol_thread_target::pid_to_str): Change return type.
11007 * remote.c (class remote_target) <pid_to_str>: Change return
11008 type.
11009 (remote_target::pid_to_str): Change return type.
11010 (extended_remote_target::attach, remote_target::remote_stop_ns)
11011 (remote_target::remote_notif_remove_queued_reply)
11012 (remote_target::push_stop_reply, remote_target::disable_btrace):
11013 Update.
11014 (extended_remote_target::attach): Update.
11015 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11016 type.
11017 (gdbsim_target::pid_to_str): Change return type.
11018 * ravenscar-thread.c (struct ravenscar_thread_target)
11019 <pid_to_str>: Change return type.
11020 (ravenscar_thread_target::pid_to_str): Change return type.
11021 * procfs.c (class procfs_target) <pid_to_str>: Change return
11022 type.
11023 (procfs_target::pid_to_str): Change return type.
11024 (procfs_target::attach): Update.
11025 (procfs_target::detach): Update.
11026 (procfs_target::fetch_registers): Update.
11027 (procfs_target::store_registers): Update.
11028 (procfs_target::wait): Update.
11029 (procfs_target::files_info): Update.
11030 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11031 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11032 return type.
11033 (nto_procfs_target::pid_to_str): Change return type.
11034 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11035 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11036 return type.
11037 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11038 (exit_lwp): Update.
11039 (attach_proc_task_lwp_callback, get_detach_signal)
11040 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11041 (linux_nat_target::resume, wait_lwp, stop_callback)
11042 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11043 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11044 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11045 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11046 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11047 type.
11048 (inf_ptrace_target::attach): Update.
11049 (inf_ptrace_target::files_info): Update.
11050 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11051 type.
11052 (go32_nat_target::pid_to_str): Change return type.
11053 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11054 (gnu_nat_target::wait): Update.
11055 (gnu_nat_target::wait): Update.
11056 (gnu_nat_target::resume): Update.
11057 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11058 (fbsd_nat_target::wait): Update.
11059 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11060 type.
11061 (darwin_nat_target::attach): Update.
11062 * corelow.c (class core_target) <pid_to_str>: Change return type.
11063 (core_target::pid_to_str): Change return type.
11064 * target.c (normal_pid_to_str): Change return type.
11065 (default_pid_to_str): Likewise.
11066 (target_pid_to_str): Change return type.
11067 (target_translate_tls_address): Update.
11068 (target_announce_detach): Update.
11069 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11070 return type.
11071 (bsd_uthread_target::pid_to_str): Change return type.
11072 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11073 type.
11074 (bsd_kvm_target::pid_to_str): Change return type.
11075 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11076 return type.
11077 (aix_thread_target::pid_to_str): Change return type.
11078 * target.h (struct target_ops) <pid_to_str>: Change return type.
11079 (target_pid_to_str, normal_pid_to_str): Likewise.
11080 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11081 type.
11082 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11083 type.
11084 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11085 return type.
11086 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11087 type.
11088 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11089 type.
11090 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11091 return type.
11092
11093 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11094
11095 * NEWS: Mention that the new default MI version is 3. Mention
11096 changes to the output of commands and events that deal with
11097 multi-location breakpoints.
11098 * breakpoint.c: Include "mi/mi-out.h".
11099 (print_one_breakpoint): Change output syntax if using MI version
11100 >= 3.
11101 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11102 New.
11103 (mi_multi_location_breakpoint_output_fixed): New.
11104 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11105 (mi_cmd_fix_multi_location_breakpoint_output): New.
11106 (mi_multi_location_breakpoint_output_fixed): New.
11107 * mi/mi-cmds.c (mi_cmds): Register command
11108 -fix-multi-location-breakpoint-output.
11109 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11110 interpreter "mi".
11111
11112 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11113
11114 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11115 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11116 instantiate mi_ui_out based on interpreter name.
11117 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11118 * mi/mi-main.c (mi_load_progress): Likewise.
11119
11120 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11121
11122 * NEWS: Combine separate "New targets" sections for 8.3.
11123
11124 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11125
11126 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11127 (ppcfbsd_init_abi): Install gdbarch
11128 "fetch_tls_load_module_address" and "get_thread_local_address"
11129 methods.
11130
11131 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11132
11133 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11134 (riscv_fbsd_init_abi): Install gdbarch
11135 "fetch_tls_load_module_address" and "get_thread_local_address"
11136 methods.
11137
11138 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11139
11140 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11141 (i386fbsd_init_abi): Install gdbarch
11142 "fetch_tls_load_module_address" and "get_thread_local_address"
11143 methods.
11144
11145 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11146
11147 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11148 (amd64fbsd_init_abi): Install gdbarch
11149 "fetch_tls_load_module_address" and "get_thread_local_address"
11150 methods.
11151
11152 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11153
11154 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11155 (struct fbsd_pspace_data): New type.
11156 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11157 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11158 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11159 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11160 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11161
11162 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11163
11164 * gdbtypes.c (lookup_struct_elt): New function.
11165 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11166 * gdbtypes.h (struct struct_elt): New type.
11167 (lookup_struct_elt): New prototype.
11168
11169 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11170
11171 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11172 remove disabled code block.
11173
11174 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11175
11176 * gdbarch.sh (get_thread_local_address): New method.
11177 * gdbarch.h, gdbarch.c: Regenerate.
11178 * target.c (target_translate_tls_address): Use
11179 gdbarch_get_thread_local_address if present instead of
11180 target::get_thread_local_address.
11181
11182 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11183
11184 * target.h (target::get_thread_local_address): Update comment.
11185
11186 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11187
11188 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11189 objfile->separate_debug_objfile_backlink if not NULL.
11190
11191 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11192
11193 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11194 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11195 (amd64bsd_store_inferior_registers): Likewise.
11196 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11197 Enable segment base registers.
11198 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11199 PT_GETFSBASE and PT_GETGSBASE.
11200 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11201 PT_SETGSBASE.
11202 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11203 segment base registers.
11204 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11205
11206 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11207
11208 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11209 Update calls to i386_target_description to add 'segments'
11210 parameter.
11211 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11212 add segment base registers.
11213 * arch/i386.c (i386_create_target_description): Add 'segments'
11214 parameter to enable segment base registers.
11215 * arch/i386.h (i386_create_target_description): Likewise.
11216 * features/i386/32bit-segments.xml: New file.
11217 * features/i386/32bit-segments.c: Generate.
11218 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11219 call to i386_target_description to add 'segments' parameter.
11220 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11221 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11222 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11223 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11224 if feature is present.
11225 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11226 Add 'segments' parameter to call to i386_target_description.
11227 (i386_target_description): Add 'segments' parameter to enable
11228 segment base registers.
11229 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11230 to call to i386_target_description.
11231 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11232 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11233 Define I386_NUM_REGS.
11234 (i386_target_description): Add 'segments' parameter to enable
11235 segment base registers.
11236
11237 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11238
11239 PR/24325
11240 * source-cache.c: #undef open and close, to avoid unresolved
11241 externals during linking.
11242
11243 2019-03-12 Tom Tromey <tromey@adacore.com>
11244
11245 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11246 const. Add initializers.
11247 (_initialize_remote): Don't initialize ptid globals.
11248
11249 2019-03-12 Pedro Alves <palves@redhat.com>
11250
11251 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11252
11253 2019-03-12 Pedro Alves <palves@redhat.com>
11254
11255 * cp-name-parser.y (main): Remove unused 'len' variable.
11256
11257 2019-03-12 Tom Tromey <tromey@adacore.com>
11258
11259 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11260 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11261
11262 2019-03-12 Tom Tromey <tromey@adacore.com>
11263
11264 * linux-nat.c (iterate_over_lwps): Update.
11265 (stop_callback): Remove parameter.
11266 (stop_wait_callback, detach_callback, resume_set_callback)
11267 (select_singlestep_lwp_callback, set_ignore_sigint)
11268 (status_callback, resumed_callback, resume_clear_callback)
11269 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11270 data parameter.
11271 (linux_nat_target::detach, linux_nat_target::resume)
11272 (linux_stop_and_wait_all_lwps, select_event_lwp)
11273 (linux_nat_filter_event, linux_nat_wait_1)
11274 (linux_nat_target::kill, linux_nat_target::stop)
11275 (linux_nat_target::stop): Update.
11276 (linux_nat_resume_callback): Change type.
11277 (resume_stopped_resumed_lwps, count_events_callback)
11278 (select_event_lwp_callback): Likewise.
11279 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11280 * arm-linux-nat.c (struct update_registers_data): Remove.
11281 (update_registers_callback): Change type.
11282 (arm_linux_insert_hw_breakpoint1): Update.
11283 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11284 parameter.
11285 (x86_linux_dr_set_addr): Update.
11286 (x86_linux_dr_set_control): Update.
11287 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11288 (iterate_over_lwps): Use gdb::function_view.
11289 * nat/aarch64-linux-hw-point.c (struct
11290 aarch64_dr_update_callback_param): Remove.
11291 (debug_reg_change_callback): Change type.
11292 (aarch64_notify_debug_reg_change): Update.
11293 * s390-linux-nat.c (s390_refresh_per_info): Update.
11294
11295 2019-03-11 Tom Tromey <tromey@adacore.com>
11296
11297 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11298 redundant assignment to "this_cu".
11299
11300 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11301
11302 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11303
11304 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11305
11306 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11307 from...
11308 (rank_one_type): ... this.
11309
11310 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11311
11312 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11313 from...
11314 (rank_one_type): ... this.
11315
11316 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11317
11318 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11319 from...
11320 (rank_one_type): ... this.
11321
11322 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11323
11324 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11325 from...
11326 (rank_one_type): ... this.
11327
11328 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11329
11330 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11331 from...
11332 (rank_one_type): ... this.
11333
11334 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11335
11336 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11337 from...
11338 (rank_one_type): ... this.
11339
11340 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11341
11342 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11343 from...
11344 (rank_one_type): ... this.
11345
11346 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11347
11348 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11349 from...
11350 (rank_one_type): ... this.
11351
11352 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11353
11354 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11355 from...
11356 (rank_one_type): ... this.
11357
11358 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11359
11360 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11361 from...
11362 (rank_one_type): ... this.
11363
11364 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11365
11366 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11367 from...
11368 (rank_one_type): ... this.
11369
11370 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11371
11372 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11373 from...
11374 (rank_one_type): ... this.
11375
11376 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11377
11378 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11379 inferior-events' shows the example events.
11380
11381 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11382
11383 Support styling on native MS-Windows console
11384
11385 PR/24315
11386 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11387 on MS-Windows if $TERM is not defined.
11388
11389 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11390
11391 * posix-hdep.c (gdb_console_fputs):
11392 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11393 functions.
11394 * ui-file.h (gdb_console_fputs): Add prototype.
11395
11396 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11397 back to fputs only if the former returns zero.
11398
11399 2019-03-07 Tom Tromey <tom@tromey.com>
11400
11401 * symmisc.c (print_symbol_bcache_statistics): Update.
11402 (print_objfile_statistics): Update.
11403 * symfile.c (allocate_symtab): Update.
11404 * stabsread.c: Don't include bcache.h.
11405 * psymtab.h (struct psymbol_bcache): Don't declare.
11406 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11407 (psymbol_bcache_init, psymbol_bcache_free)
11408 (psymbol_bcache_get_bcache): Don't declare.
11409 * psymtab.c (struct psymbol_bcache): Remove.
11410 (psymtab_storage::psymtab_storage): Update.
11411 (psymtab_storage::~psymtab_storage): Update.
11412 (psymbol_bcache_init, psymbol_bcache_free)
11413 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11414 (add_psymbol_to_bcache): Update.
11415 (allocate_psymtab): Update.
11416 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11417 macro_cache>: No longer pointers.
11418 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11419 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11420 * macrotab.c (macro_bcache): Update.
11421 * macroexp.c: Don't include bcache.h.
11422 * gdbtypes.c (check_types_worklist): Update.
11423 (types_deeply_equal): Remove TRY/CATCH. Update.
11424 * elfread.c (elf_symtab_read): Update.
11425 * dwarf2read.c: Don't include bcache.h.
11426 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11427 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11428 (print_bcache_statistics, bcache_memory_used): Don't declare.
11429 (struct bcache): Move from bcache.c. Add constructor, destructor,
11430 methods. Rename all data members.
11431 * bcache.c (struct bcache): Move to bcache.h.
11432 (bcache::expand_hash_table): Rename from expand_hash_table.
11433 (bcache): Remove.
11434 (bcache::insert): Rename from bcache_full.
11435 (bcache::compare): Rename from bcache_compare.
11436 (bcache_xmalloc): Remove.
11437 (bcache::~bcache): Rename from bcache_xfree.
11438 (bcache::print_statistics): Rename from print_bcache_statistics.
11439 (bcache::memory_used): Rename from bcache_memory_used.
11440
11441 2019-03-07 Pedro Alves <palves@redhat.com>
11442
11443 * infrun.c (normal_stop): Also check for
11444 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11445
11446 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11447
11448 * f-lang.c (value_from_host_double): Moved to...
11449 * value.c (value_from_host_double): ...here.
11450 * value.h (value_from_host_double): Declare.
11451 * guile/scm-math.c (vlscm_convert_typed_number): Use
11452 value_from_host_double.
11453 (vlscm_convert_number): Likewise.
11454 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11455 * python/py-value.c (convert_value_from_python): Likewise.
11456
11457 2019-03-06 Tom Tromey <tom@tromey.com>
11458
11459 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11460
11461 2019-03-06 Tom Tromey <tom@tromey.com>
11462
11463 * utils.h (free_current_contents): Don't declare.
11464 * utils.c (free_current_contents): Remove.
11465
11466 2019-03-06 Tom Tromey <tom@tromey.com>
11467
11468 * top.c (quit_force): Update.
11469 * main.c (captured_command_loop): Update.
11470 * common/new-op.c (operator new): Update.
11471 * common/common-exceptions.c (struct catcher)
11472 <save_cleanup_chain>: Remove member.
11473 (exceptions_state_mc_init): Update.
11474 (exception_try_scope_entry): Return nullptr.
11475 (exception_try_scope_exit, exception_rethrow)
11476 (throw_exception_sjlj, throw_exception_cxx): Update.
11477 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11478 (all_cleanups, do_cleanups, discard_cleanups)
11479 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11480 (restore_cleanups, restore_final_cleanups): Don't declare.
11481 (do_final_cleanups): Remove parameter.
11482 * common/cleanups.c (cleanup_chain, make_cleanup)
11483 (make_cleanup_dtor, all_cleanups, do_cleanups)
11484 (discard_my_cleanups, discard_cleanups)
11485 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11486 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11487 (null_cleanup): Remove.
11488 (do_final_cleanups): Remove parameter.
11489
11490 2019-03-06 Tom Tromey <tom@tromey.com>
11491
11492 * remote.c (remote_target::remote_parse_stop_reply): Use
11493 unique_xmalloc_ptr.
11494
11495 2019-03-06 Tom Tromey <tom@tromey.com>
11496
11497 * stabsread.c (struct stabs_field_info): Rename from field_info.
11498 <list, fnlist>: Add initializers.
11499 <obstack>: New member.
11500 (read_member_functions, read_struct_fields, read_baseclasses):
11501 Allocate on obstack. Don't use cleanups.
11502 (read_one_struct_field, read_member_functions, read_struct_fields)
11503 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11504 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11505 (read_struct_type): Update.
11506
11507 2019-03-06 Tom Tromey <tom@tromey.com>
11508
11509 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11510 * common/filestuff.h (make_cleanup_close): Don't declare.
11511 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11512 Remove.
11513
11514 2019-03-06 Tom Tromey <tom@tromey.com>
11515
11516 * solib-aix.c: Use make_scope_exit.
11517
11518 2019-03-06 Tom Tromey <tom@tromey.com>
11519
11520 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11521 Use make_scope_exit.
11522
11523 2019-03-06 Tom Tromey <tom@tromey.com>
11524
11525 * solib-svr4.c (disable_probes_interface): Remove parameter.
11526 (svr4_handle_solib_event): Use make_scope_exit.
11527
11528 2019-03-06 Tom Tromey <tom@tromey.com>
11529
11530 * remote.c (struct stop_reply_deleter): Remove.
11531 (stop_reply_up): Update.
11532 (struct stop_reply): Derive from notif_event. Don't typedef.
11533 <regcache>: Now a std::vector.
11534 (stop_reply_xfree): Remove.
11535 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11536 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11537 (remote_target::discard_pending_stop_replies): Use delete.
11538 (remote_target::remote_parse_stop_reply): Update.
11539 (remote_target::process_stop_reply): Update.
11540 * remote-notif.h (struct notif_event): Add virtual destructor.
11541 Remove "dtr" member.
11542 (struct notif_client) <alloc_event>: Return a unique_ptr.
11543 (notif_event_xfree): Don't declare.
11544 (notif_event_up): New typedef.
11545 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11546 (notif_event_xfree, do_notif_event_xfree): Remove.
11547 (remote_notif_state_xfree): Update.
11548
11549 2019-03-06 Tom Tromey <tom@tromey.com>
11550
11551 * infrun.c (displaced_step_clear_cleanup): Now a
11552 forward_scope_exit type.
11553 (displaced_step_prepare_throw): Update.
11554 (displaced_step_fixup): Update.
11555
11556 2019-03-06 Tom Tromey <tom@tromey.com>
11557
11558 * inferior.h (class inferior): Update comment.
11559 * gdbthread.h (class thread_info): Update comment.
11560
11561 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11562 Tom Tromey <tom@tromey.com>
11563
11564 * stabsread.h (struct stab_section_list): Remove.
11565 (coffstab_build_psymtabs): Update.
11566 * dbxread.c (symbuf_sections): Now a std::vector.
11567 (sect_idx): New global.
11568 (fill_symbuf): Update.
11569 (coffstab_build_psymtabs): Change type of stabsects parameter.
11570 Update.
11571 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11572 std::vector.
11573 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11574 (coff_locate_sections): Update.
11575 (coff_symfile_read): Remove cleanups. Update.
11576 (init_stringtab): Add storage parameter.
11577 (free_stringtab, free_stringtab_cleanup): Remove.
11578 (init_lineno): Add storage parameter.
11579 (free_linetab, free_linetab_cleanup): Remove.
11580
11581 2019-03-06 Pedro Alves <palves@redhat.com>
11582
11583 * linux-fork.c (fork_info::clobber_regs): Delete.
11584 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11585 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11586 comment. Adjust.
11587 (scoped_switch_fork_info::scoped_switch_fork_info)
11588 (checkpoint_command, linux_fork_context): Adjust
11589 fork_save_infrun_state calls.
11590
11591 2019-03-06 Pedro Alves <palves@redhat.com>
11592
11593 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11594 (inf_has_multiple_threads): Return 'bool' and rewrite using
11595 inferior_info::threads().
11596
11597 2019-03-06 Pedro Alves <palves@redhat.com>
11598
11599 * linux-fork.c: Include <list>.
11600 (fork_list): Now a std::list instance.
11601 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11602 (forks_exist_p, find_last_fork): Adjust.
11603 (new_fork): Delete.
11604 (one_fork_p): New.
11605 (add_fork): Adjust.
11606 (free_fork): Delete, folded into fork_info::~fork_info().
11607 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11608 Adjust.
11609 (init_fork_list): Delete.
11610 (linux_fork_killall, linux_fork_mourn_inferior)
11611 (linux_fork_detach, info_checkpoints_command): Adjust.
11612 (_initialize_linux_fork): No longer call init_fork_list.
11613
11614 2019-03-06 Pedro Alves <palves@redhat.com>
11615
11616 * linux-fork.c (new_fork): New, split out of ...
11617 (add_fork): ... this. Return void. Move "first fork" special
11618 case from here, to ...
11619 (checkpoint_command): ... here.
11620 * linux-linux.h (add_fork): Return void.
11621
11622 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11623
11624 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11625
11626 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11627 Chris January <chris.january@arm.com>
11628 David Lecomber <david.lecomber@arm.com>
11629
11630 * f-exp.y: New token, UNOP_INTRINSIC.
11631 (exp): New pattern using UNOP_INTRINSIC token.
11632 (f77_keywords): Add 'abs' keyword.
11633 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11634 (value_from_host_double): New function.
11635 (evaluate_subexp_f): Support UNOP_ABS.
11636
11637 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11638
11639 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11640 types.
11641
11642 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11643
11644 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11645 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11646 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11647
11648 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11649
11650 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11651
11652 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11653 Chris January <chris.january@arm.com>
11654
11655 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11656 * f-exp.y: Define 'KIND' token.
11657 (exp): New pattern for KIND expressions.
11658 (ptype): Handle types with a kind extension.
11659 (direct_abs_decl): Extend to spot kind extensions.
11660 (f77_keywords): Add 'kind' to the list.
11661 (push_kind_type): New function.
11662 (convert_to_kind_type): New function.
11663 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11664 * parse.c (operator_length_standard): Likewise.
11665 * parser-defs.h (enum type_pieces): Add tp_kind.
11666 * std-operator.def: Add UNOP_KIND.
11667
11668 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11669
11670 * f-exp.y (f_parse): Set yydebug.
11671
11672 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11673
11674 * f-lang.c (evaluate_subexp_f): New function.
11675 (exp_descriptor_f): New global.
11676 (f_language_defn): Use exp_descriptor_f instead of
11677 exp_descriptor_standard.
11678
11679 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11680
11681 * f-exp.y (struct token): Add comments.
11682 (dot_ops): Remove uppercase versions and the end marker.
11683 (f77_keywords): Likewise.
11684 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11685 entries in the dot_ops array are case insensitive, and use
11686 strncasecmp to compare strings. Also some whitespace cleanup in
11687 this area. Similar for the f77_keywords array, except entries in
11688 this list might be case sensitive.
11689
11690 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11691
11692 * f-exp.y (struct f77_boolean_val): Add comments.
11693 (boolean_values): Remove uppercase versions, and end marker.
11694 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11695 and use strncasecmp to achieve case insensitivity. Additionally,
11696 perform whitespace cleanup around this code.
11697
11698 2019-03-06 Tom Tromey <tromey@adacore.com>
11699
11700 * remote-sim.c (gdbsim_target_open): Use result of
11701 gdb_argv::release.
11702
11703 2019-03-06 Richard Bunt <richard.bunt@arm.com>
11704 Dirk Schubert <dirk.schubert@arm.com>
11705 Chris January <chris.january@arm.com>
11706
11707 * eval.c (evaluate_subexp_standard): Call Fortran argument
11708 wrapping logic.
11709 * f-lang.c (struct value): A value which can be passed into a
11710 Fortran function call.
11711 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11712 where appropriate.
11713 (struct type): Value ready for a Fortran function call.
11714 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11715 is needed.
11716 * f-lang.h (fortran_argument_convert): Declaration.
11717 (fortran_preserve_arg_pointer): Declaration.
11718 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11719
11720 2019-03-05 Tom Tromey <tromey@adacore.com>
11721
11722 * python/py-prettyprint.c (print_string_repr): Remove #if.
11723 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11724
11725 2019-03-05 Tom Tromey <tromey@adacore.com>
11726
11727 * target.c (the_dummy_target): Move later. Change type to
11728 "dummy_target".
11729 (initialize_targets): Don't initialize the_dummy_target.
11730
11731 2019-03-05 Tom Tromey <tromey@adacore.com>
11732
11733 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11734 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11735
11736 2019-03-05 Tom Tromey <tromey@adacore.com>
11737
11738 * windows-nat.c (windows_nat_target::attach)
11739 (windows_nat_target::detach): Don't call gdb_flush.
11740 * valprint.c (generic_val_print, val_print, val_print_string):
11741 Don't call gdb_flush.
11742 * utils.c (defaulted_query): Don't call gdb_flush.
11743 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11744 * target.c (target_announce_detach): Don't call gdb_flush.
11745 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11746 * remote.c (extended_remote_target::attach): Don't call
11747 gdb_flush.
11748 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11749 * printcmd.c (do_examine): Don't call gdb_flush.
11750 (info_display_command): Don't call gdb_flush.
11751 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11752 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11753 * memattr.c (info_mem_command): Don't call gdb_flush.
11754 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11755 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11756 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11757 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11758 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11759 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11760 (gnu_nat_target::detach): Don't call gdb_flush.
11761 * f-valprint.c (f_val_print): Don't call gdb_flush.
11762 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11763 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11764 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11765 gdb_flush.
11766 * c-valprint.c (c_val_print): Don't call gdb_flush.
11767 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11768
11769 2019-03-05 Tom Tromey <tromey@adacore.com>
11770
11771 * varobj.c (update_dynamic_varobj_children): Update.
11772 (install_default_visualizer): Use reset, not release.
11773 * value.c (set_internalvar): Update.
11774 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11775 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11776 ATTRIBUTE_UNUSED_RESULT.
11777
11778 2019-03-05 Tom Tromey <tromey@adacore.com>
11779
11780 * remote.c (class scoped_remote_fd) <release>: Add
11781 ATTRIBUTE_UNUSED_RESULT.
11782
11783 2019-03-05 Tom Tromey <tromey@adacore.com>
11784
11785 * macroexp.c (struct macro_buffer) <release>: Add
11786 ATTRIBUTE_UNUSED_RESULT.
11787
11788 2019-03-05 Tom Tromey <tromey@adacore.com>
11789
11790 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11791 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11792 ATTRIBUTE_UNUSED_RESULT.
11793
11794 2019-03-05 Tom Tromey <tromey@adacore.com>
11795
11796 * common/scoped_fd.h (class scoped_fd) <release>: Add
11797 ATTRIBUTE_UNUSED_RESULT.
11798
11799 2019-03-05 Tom Tromey <tromey@adacore.com>
11800
11801 * parser-defs.h (struct parser_state) <release>: Add
11802 ATTRIBUTE_UNUSED_RESULT.
11803
11804 2019-03-05 Tom Tromey <tromey@adacore.com>
11805
11806 * utils.h (class gdb_argv) <release>: Add
11807 ATTRIBUTE_UNUSED_RESULT.
11808 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11809
11810 2019-03-02 Eli Zaretskii <eliz@gnu.org>
11811
11812 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11813 for-loop range, to avoid compiler warnings.
11814
11815 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11816 avoid compiler warnings about unused variables.
11817
11818 * NEWS: Mention end of support for native debugging on MS-Windows
11819 before XP.
11820
11821 PR gdb/24292
11822 * common/netstuff.c:
11823 * gdbserver/gdbreplay.c
11824 * gdbserver/remote-utils.c:
11825 * ser-tcp.c:
11826 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11827 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11828 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11829 'getaddrinfo' and 'freeaddrinfo' were not available before
11830 Windows XP, and mingw.org's MinGW headers by default define
11831 _WIN32_WINNT to 0x500.
11832
11833 2019-03-01 Gary Benson <gbenson@redhat.com>
11834
11835 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11836
11837 2019-02-28 Brian Vandenberg <phantall@gmail.com>
11838 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11839
11840 PR gdb/8527
11841 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11842 set_sigint_trap, clear_sigint_trap.
11843
11844 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11845
11846 * target.c (target_detach): Clear the regcache and the
11847 frame cache.
11848
11849 2019-02-27 Pedro Alves <palves@redhat.com>
11850
11851 * utils.c (set_screen_size): When we cap the height/width sizes,
11852 tweak the corresponding command variable to show "unlimited":
11853
11854 2019-02-27 Saagar Jha <saagar@saagarjha.com>
11855 Pedro Alves <palves@redhat.com>
11856
11857 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11858 before calling rl_set_screen_size.
11859
11860 2019-02-27 Tom Tromey <tromey@adacore.com>
11861
11862 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11863 define.
11864 * python/py-value.c: Remove Python 2.4 workaround.
11865 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11866 workaround.
11867 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11868 Python 2.4 workaround.
11869 * python/python-internal.h: Remove Python 2.4 comment.
11870 (Py_ssize_t): Don't define.
11871 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11872 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11873 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11874 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11875 * python/python.c (do_start_initialization): Remove Python 2.4
11876 workaround.
11877 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11878 (print_children): Remove Python 2.4 workaround.
11879 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11880 workaround.
11881 (CHARBUFFERPROC_NAME): Remove.
11882 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11883 Python 2.4 workaround.
11884
11885 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11886
11887 * NEWS: Note minimum Python version.
11888
11889 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11890
11891 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11892 code from these functions. Remove corresponding ifdefs. Use
11893 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11894 Remove gotos and target of gotos.
11895 (infpy_search_memory): Likewise.
11896
11897 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11898
11899 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11900 (hppa_gdbarch_init): Don't register deleted functions with
11901 gdbarch.
11902
11903 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11904
11905 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11906 (h8300_unwind_sp): Delete.
11907 (h8300_dummy_id): Delete.
11908 (h8300_gdbarch_init): Don't register deleted functions with
11909 gdbarch.
11910
11911 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11912
11913 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11914 (ft32_unwind_pc): Delete.
11915 (ft32_unwind_sp): Delete.
11916 (ft32_gdbarch_init): Don't register deleted functions with
11917 gdbarch.
11918
11919 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11920
11921 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11922 (frv_unwind_pc): Delete.
11923 (frv_unwind_sp): Delete.
11924 (frv_gdbarch_init): Don't register deleted functions with
11925 gdbarch.
11926
11927 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11928
11929 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11930 (riscv_unwind_pc): Delete.
11931 (riscv_unwind_sp): Delete.
11932 (riscv_gdbarch_init): Don't register deleted functions with
11933 gdbarch.
11934
11935 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11936
11937 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11938 (csky_unwind_pc): Delete.
11939 (csky_unwind_sp): Delete.
11940 (csky_gdbarch_init): Don't register deleted functions with
11941 gdbarch.
11942
11943 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11944
11945 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11946 (cris_unwind_pc): Delete.
11947 (cris_unwind_sp): Delete.
11948 (cris_gdbarch_init): Don't register deleted functions with
11949 gdbarch.
11950
11951 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11952
11953 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11954 (bfin_unwind_pc): Delete.
11955 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11956
11957 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11958
11959 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11960 (arm_unwind_pc): Delete.
11961 (arm_unwind_sp): Delete.
11962 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11963
11964 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11965
11966 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11967 (arc_unwind_pc): Delete.
11968 (arc_unwind_sp): Delete.
11969 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11970
11971 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11972
11973 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11974 (alpha_unwind_pc): Delete.
11975 (alpha_gdbarch_init): Don't register deleted functions with
11976 gdbarch.
11977
11978 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11979
11980 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11981 (aarch64_unwind_pc): Delete.
11982 (aarch64_unwind_sp): Delete.
11983 (aarch64_gdbarch_init): Don't register deleted functions with
11984 gdbarch.
11985
11986 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11987
11988 * gdbtypes.c (type_align): Don't consider static members when
11989 computing structure alignment.
11990
11991 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11992
11993 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11994 return 0 for other types.
11995 * arch-utils.c (default_type_align): Always return 0.
11996 * gdbarch.h: Regenerate.
11997 * gdbarch.sh (type_align): Extend comment.
11998 * gdbtypes.c (type_align): Add additional comments, always call
11999 gdbarch_type_align before applying the default rules.
12000 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12001 generic code will then apply a suitable default.
12002 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12003 types, return 0 for other types.
12004
12005 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12006
12007 * NEWS: Create a new section for the next release branch.
12008 Rename the section of the current branch, now that it has
12009 been cut.
12010
12011 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12012
12013 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12014 * version.in: Bump version to 8.3.50.DATE-git.
12015
12016 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12017
12018 * aix-thread.c (ptid_cmp): Remove unused variable.
12019 (get_signaled_thread): Likewise.
12020 (store_regs_user_thread): Likewise.
12021 (store_regs_kernel_thread): Likewise.
12022 (fetch_regs_kernel_thread): Remove shadowed variable.
12023
12024 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12025
12026 * features/riscv/32bit-cpu.xml: Add register numbers.
12027 * features/riscv/32bit-fpu.c: Regenerate.
12028 * features/riscv/32bit-fpu.xml: Add register numbers.
12029 * features/riscv/64bit-cpu.xml: Add register numbers.
12030 * features/riscv/64bit-fpu.c: Regenerate.
12031 * features/riscv/64bit-fpu.xml: Add register numbers.
12032
12033 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12034
12035 * NEWS: Mention two argument form of gdb.Value constructor.
12036 * python/py-value.c (convert_buffer_and_type_to_value): New
12037 function.
12038 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12039 Add support for handling an optional second argument. Call
12040 convert_buffer_and_type_to_value as appropriate.
12041 * python/python-internal.h (Py_buffer_deleter): New struct.
12042 (Py_buffer_up): New typedef.
12043
12044 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12045
12046 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12047 instead of releasing ownership.
12048
12049 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12050
12051 * dwarf2read.c (open_and_init_dwp_file): Call
12052 elf_numsections instead of bfd_count_sections to initialize
12053 dwp_file->num_sections.
12054
12055 2019-02-25 Tom Tromey <tromey@adacore.com>
12056
12057 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12058
12059 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12060
12061 * gcore.in: Add '--readnever' option when invoking GDB.
12062
12063 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12064
12065 * MAINTAINERS: Update my email address.
12066
12067 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12068
12069 * build-id.c (build_id_to_debug_bfd_1): New function.
12070 (build_id_to_debug_bfd): Look for separate debug file in
12071 sysroot.
12072
12073 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12074
12075 * gdbarch.sh: Update the copyright year range that is placed into
12076 generated files.
12077
12078 2019-02-22 Keith Seitz <keiths@redhat.com>
12079
12080 PR symtab/23853
12081 * linespec.c (create_sals_line_offset): Search for the default
12082 symtab's filename instead of its fullname.
12083
12084 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12085
12086 * NEWS: Update style defaults.
12087
12088 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12089
12090 * main.c (captured_main_1): Disable styling in batch mode.
12091
12092 2019-02-20 Tom Tromey <tom@tromey.com>
12093
12094 * symtab.c (symtab_symbol_info): Fix typos.
12095
12096 2019-02-20 Tom Tromey <tromey@adacore.com>
12097
12098 * findcmd.c (_initialize_mem_search): Use upper case for
12099 metasyntactic variables.
12100
12101 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12102
12103 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12104 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12105
12106 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12107
12108 * top.h (source_file_name): Change to std::string.
12109 * top.c (source_file_name): Likewise.
12110 (command_line_input): Adjust.
12111 * cli/cli-script.c (script_from_file): Adjust.
12112
12113 2019-02-19 Tom Tromey <tromey@adacore.com>
12114
12115 * ravenscar-thread.c
12116 (ravenscar_thread_target::update_thread_list): Don't call
12117 ada_build_task_list.
12118 * ada-lang.h (ada_build_task_list): Don't declare.
12119 * ada-tasks.c (struct ada_tasks_inferior_data)
12120 <task_list_valid_p>: Now bool.
12121 (read_known_tasks, ada_task_list_changed)
12122 (ada_tasks_invalidate_inferior_data): Update.
12123 (read_known_tasks_array): Return bool.
12124 (read_known_tasks_list): Likewise.
12125 (read_known_tasks): Return void.
12126 (ada_build_task_list): Now static.
12127
12128 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12129
12130 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12131 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12132
12133 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12134
12135 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12136 variant for ada_tasks_pspace_data_handle and
12137 ada_tasks_inferior_data_handle.
12138 (ada_tasks_pspace_data_cleanup): New function.
12139 (ada_tasks_inferior_data_cleanup): New function.
12140
12141 2019-02-17 Tom Tromey <tom@tromey.com>
12142
12143 * macrotab.h (macro_source_fullname): Return a std::string.
12144 * macrotab.c (macro_include, check_for_redefinition)
12145 (macro_undef, macro_lookup_definition, foreach_macro)
12146 (foreach_macro_in_scope): Update.
12147 (macro_source_fullname): Return a std::string.
12148 * macrocmd.c (show_pp_source_pos): Update.
12149
12150 2019-02-17 Tom Tromey <tom@tromey.com>
12151
12152 * macrocmd.c (show_pp_source_pos): Style the file names.
12153
12154 2019-02-17 Tom Tromey <tom@tromey.com>
12155
12156 PR tui/24197:
12157 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12158
12159 2019-02-17 Tom Tromey <tom@tromey.com>
12160
12161 * ada-lang.c (user_select_syms): Use filtered printing.
12162 * utils.c (wrap_style): New global.
12163 (desired_style): Remove.
12164 (emit_style_escape): Add stream parameter.
12165 (set_output_style, reset_terminal_style, prompt_for_continue):
12166 Update.
12167 (flush_wrap_buffer): Only flush gdb_stdout.
12168 (wrap_here): Set wrap_style.
12169 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12170 treat escape sequences as a character. Change when wrap buffer is
12171 flushed.
12172 (fputs_styled): Do not set the output style when the default is
12173 requested.
12174 * ui-style.h (struct ui_file_style) <is_default>: New method.
12175 * source.c (print_source_lines_base): Emit escape sequences in one
12176 piece.
12177
12178 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12179
12180 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12181 integers and enumeration types.
12182
12183 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12184
12185 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12186 instead of lookup_symbol_in_language
12187 (do_exact_match): New function.
12188 (ada_get_symbol_name_matcher): Return do_exact_match when
12189 doing a verbatim match.
12190
12191 2019-02-15 Tom Tromey <tromey@adacore.com>
12192
12193 * ravenscar-thread.c (ravenscar_thread_target::resume)
12194 (ravenscar_thread_target::wait): Special case wildcard requests.
12195
12196 2019-02-15 Tom Tromey <tromey@adacore.com>
12197
12198 * ravenscar-thread.c (base_ptid): Remove.
12199 (struct ravenscar_thread_target) <close>: New method.
12200 <m_base_ptid>: New member.
12201 <update_inferior_ptid, active_task, task_is_currently_active,
12202 runtime_initialized>: Declare methods.
12203 <ravenscar_thread_target>: Add constructor.
12204 (ravenscar_thread_target::task_is_currently_active)
12205 (ravenscar_thread_target::update_inferior_ptid)
12206 (ravenscar_runtime_initialized): Rename. Now methods.
12207 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12208 (ravenscar_thread_target::update_thread_list): Update.
12209 (ravenscar_thread_target::active_task): Now method.
12210 (ravenscar_thread_target::store_registers)
12211 (ravenscar_thread_target::prepare_to_store)
12212 (ravenscar_thread_target::prepare_to_store)
12213 (ravenscar_thread_target::mourn_inferior): Update.
12214 (ravenscar_inferior_created): Use "new" to create target.
12215 (ravenscar_thread_target::get_ada_task_ptid): Update.
12216 (_initialize_ravenscar): Don't initialize base_ptid.
12217 (ravenscar_ops): Remove global.
12218
12219 2019-02-15 Tom Tromey <tromey@adacore.com>
12220
12221 * target.h (push_target): Declare new overload.
12222 * target.c (push_target): New overload, taking an rvalue reference.
12223 * remote.c (remote_target::open_1): Use push_target overload.
12224 * corelow.c (core_target_open): Use push_target overload.
12225
12226 2019-02-15 Tom Tromey <tromey@adacore.com>
12227
12228 * ravenscar-thread.c (is_ravenscar_task)
12229 (ravenscar_task_is_currently_active): Return bool.
12230 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12231 (_initialize_ravenscar): Remove "(void)".
12232 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12233 Return bool.
12234
12235 2019-02-15 Tom Tromey <tromey@adacore.com>
12236
12237 * ravenscar-thread.c (ravenscar_runtime_initializer)
12238 (has_ravenscar_runtime, get_running_thread_id)
12239 (ravenscar_thread_target::resume): Fix indentation.
12240
12241 2019-02-15 Tom Tromey <tromey@adacore.com>
12242
12243 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12244 from ravenscar_arch_ops.
12245 (sparc_ravenscar_ops::fetch_registers)
12246 (sparc_ravenscar_ops::store_registers): Now methods.
12247 (sparc_ravenscar_prepare_to_store): Remove.
12248 (sparc_ravenscar_ops): Redefine.
12249 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12250 methods and destructor. Remove members.
12251 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12252 (ravenscar_thread_target::store_registers)
12253 (ravenscar_thread_target::prepare_to_store): Update.
12254 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12255 Remove.
12256 (struct ppc_ravenscar_powerpc_ops): Derive from
12257 ravenscar_arch_ops.
12258 (ppc_ravenscar_powerpc_ops::fetch_registers)
12259 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12260 (ppc_ravenscar_powerpc_ops): Redefine.
12261 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12262 (ppc_ravenscar_e500_ops::fetch_registers)
12263 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12264 (ppc_ravenscar_e500_ops): Redefine.
12265 * aarch64-ravenscar-thread.c
12266 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12267 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12268 (aarch64_ravenscar_fetch_registers)
12269 (aarch64_ravenscar_store_registers): Now methods.
12270 (aarch64_ravenscar_ops): Redefine.
12271
12272 2019-02-15 Tom Tromey <tromey@adacore.com>
12273
12274 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12275 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12276 (ravenscar_thread_target::stopped_by_watchpoint)
12277 (ravenscar_thread_target::stopped_data_address)
12278 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12279
12280 2019-02-15 Tom Tromey <tromey@adacore.com>
12281
12282 * ravenscar-thread.c: Fix some typos.
12283
12284 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12285 Tom Tromey <tromey@adacore.com>
12286
12287 * ada-lang.c (ada_exception_sal): Change addr_string to a
12288 std::string.
12289 (create_ada_exception_catchpoint): Update.
12290
12291 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12292 Tom Tromey <tromey@adacore.com>
12293
12294 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12295 (bp_location_ops): Remove.
12296 (base_breakpoint_allocate_location): Update.
12297 (free_bp_location): Update.
12298 * ada-lang.c (class ada_catchpoint_location)
12299 <ada_catchpoint_location>: Remove ops parameter.
12300 (ada_catchpoint_location_dtor): Remove.
12301 (ada_catchpoint_location_ops): Remove.
12302 (allocate_location_exception): Update.
12303 * breakpoint.h (struct bp_location_ops): Remove.
12304 (class bp_location) <bp_location>: Remove bp_location_ops
12305 parameter.
12306 <~bp_location>: Add destructor.
12307 <ops>: Remove.
12308
12309 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12310 Pedro Alves <palves@redhat.com>
12311
12312 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12313 'PATH_MAX'.
12314
12315 2019-02-14 David Michael <fedora.dm0@gmail.com>
12316 Samuel Thibault <samuel.thibault@gnu.org>
12317 Thomas Schwinge <thomas@codesourcery.com>
12318
12319 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12320 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12321
12322 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12323
12324 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12325 (check_empty): Use "const char *".
12326
12327 * gnu-nat.c (gnu_nat_target::detach): Instead of
12328 'detach_inferior (pid)' call
12329 'detach_inferior (find_inferior_pid (pid))'.
12330
12331 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12332 'nat/fork-inferior.o'.
12333 * gnu-nat.c: #include "nat/fork-inferior.h".
12334
12335 * gnu-nat.c (gnu_nat_target::detach): Instead of
12336 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12337 * gnu-nat.h: #include "inf-child.h".
12338 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12339 'i386_gnu_nat_target::fetch_registers'.
12340 (gnu_store_registers): Rename/move to
12341 'i386_gnu_nat_target::store_registers'.
12342
12343 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12344 * gnu-nat.h (mach_thread_info): New function.
12345 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12346
12347 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12348
12349 2019-02-14 Frederic Konrad <konrad@adacore.com>
12350
12351 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12352
12353 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12354
12355 * windows-nat.c (windows_add_thread): Add new parameter
12356 "main_thread_p" with default value set to false. Update
12357 function documentation as well as all callers.
12358 (windows_delete_thread): Likewise.
12359 (fake_create_process): Update call to windows_add_thread.
12360 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12361 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12362 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12363 call to windows_delete_thread.
12364
12365 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12366
12367 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12368
12369 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12370
12371 * symfile.c (find_separate_debug_file): Use canonical path of
12372 sysroot with child_path instead of gdb_sysroot if it is valid.
12373
12374 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12375
12376 * symfile.c (find_separate_debug_file): Use child_path to
12377 determine if an object file is under a sysroot.
12378
12379 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12380
12381 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12382 unittests/child-path-selftests.c.
12383 * common/pathstuff.c (child_path): New function.
12384 * common/pathstuff.h (child_path): New prototype.
12385 * unittests/child-path-selftests.c: New file.
12386
12387 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12388
12389 * symfile.c (find_separate_debug_file): Look for separate debug
12390 files in debug directories under the sysroot.
12391
12392 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12393
12394 * symtab.h (struct minimal_symbol data_p): New const method.
12395 (struct minimal_symbol text_p): Likewise.
12396 * symtab.c (output_source_filename): Use file name style
12397 to print file name.
12398 (print_symbol_info): Likewise.
12399 (print_msymbol_info): Use address style to print addresses.
12400 Use function name style to print executable text symbols.
12401 (expand_symtab_containing_pc): Use data_p.
12402 (find_pc_sect_compunit_symtab): Likewise.
12403
12404 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12405
12406 * breakpoint.c (describe_other_breakpoints): Use address style
12407 to print addresses.
12408 (say_where): Likewise.
12409
12410 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12411
12412 * ada-typeprint.c (print_func_type): Print function name
12413 style to print function name.
12414 * c-typeprint.c (c_print_type_1): Likewise.
12415
12416 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12417
12418 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12419 for execve.
12420
12421 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12422
12423 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12424 type_stack.
12425
12426 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12427
12428 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12429 TYPE_CODE_REF types.
12430
12431 2019-02-08 Jim Wilson <jimw@sifive.com>
12432
12433 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12434 (riscv_linux_fregset): New.
12435 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12436
12437 2019-02-07 Tom Tromey <tom@tromey.com>
12438
12439 * thread.c (thread_cancel_execution_command): Update.
12440 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12441 methods.
12442 (struct thread_fsm_ops): Remove.
12443 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12444 (thread_fsm_should_stop, thread_fsm_return_value)
12445 (thread_fsm_set_finished, thread_fsm_finished_p)
12446 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12447 Don't declare.
12448 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12449 * infrun.c (clear_proceed_status_thread)
12450 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12451 (print_stop_event): Update.
12452 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12453 Add constructor.
12454 (step_command_fsm_ops): Remove.
12455 (new_step_command_fsm): Remove.
12456 (step_1): Update.
12457 (step_command_fsm::should_stop): Rename from
12458 step_command_fsm_should_stop.
12459 (step_command_fsm::clean_up): Rename from
12460 step_command_fsm_clean_up.
12461 (step_command_fsm::do_async_reply_reason): Rename from
12462 step_command_fsm_async_reply_reason.
12463 (struct until_next_fsm): Inherit from thread_fsm. Add
12464 constructor.
12465 (until_next_fsm_ops): Remove.
12466 (new_until_next_fsm): Remove.
12467 (until_next_fsm::should_stop): Rename from
12468 until_next_fsm_should_stop.
12469 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12470 (until_next_fsm::do_async_reply_reason): Rename from
12471 until_next_fsm_async_reply_reason.
12472 (struct finish_command_fsm): Inherit from thread_fsm. Add
12473 constructor. Change type of breakpoint.
12474 (finish_command_fsm_ops): Remove.
12475 (new_finish_command_fsm): Remove.
12476 (finish_command_fsm::should_stop): Rename from
12477 finish_command_fsm_should_stop.
12478 (finish_command_fsm::clean_up): Rename from
12479 finish_command_fsm_clean_up.
12480 (finish_command_fsm::return_value): Rename from
12481 finish_command_fsm_return_value.
12482 (finish_command_fsm::do_async_reply_reason): Rename from
12483 finish_command_fsm_async_reply_reason.
12484 (finish_command): Update.
12485 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12486 Add constructor.
12487 (call_thread_fsm_ops): Remove.
12488 (call_thread_fsm::call_thread_fsm): Rename from
12489 new_call_thread_fsm.
12490 (call_thread_fsm::should_stop): Rename from
12491 call_thread_fsm_should_stop.
12492 (call_thread_fsm::should_notify_stop): Rename from
12493 call_thread_fsm_should_notify_stop.
12494 (run_inferior_call, call_function_by_hand_dummy): Update.
12495 * cli/cli-interp.c (should_print_stop_to_console): Update.
12496 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12497 Add constructor. Change type of location_breakpoint,
12498 caller_breakpoint.
12499 (until_break_fsm_ops): Remove.
12500 (new_until_break_fsm): Remove.
12501 (until_break_fsm::should_stop): Rename from
12502 until_break_fsm_should_stop.
12503 (until_break_fsm::clean_up): Rename from
12504 until_break_fsm_clean_up.
12505 (until_break_fsm::do_async_reply_reason): Rename from
12506 until_break_fsm_async_reply_reason.
12507 (until_break_command): Update.
12508 * thread-fsm.c: Remove.
12509 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12510
12511 2019-02-07 Tom Tromey <tom@tromey.com>
12512
12513 * yy-remap.h: Add include guard.
12514 * xtensa-tdep.h: Add include guard.
12515 * xcoffread.h: Rename include guard.
12516 * varobj-iter.h: Add include guard.
12517 * tui/tui.h: Rename include guard.
12518 * tui/tui-winsource.h: Rename include guard.
12519 * tui/tui-wingeneral.h: Rename include guard.
12520 * tui/tui-windata.h: Rename include guard.
12521 * tui/tui-win.h: Rename include guard.
12522 * tui/tui-stack.h: Rename include guard.
12523 * tui/tui-source.h: Rename include guard.
12524 * tui/tui-regs.h: Rename include guard.
12525 * tui/tui-out.h: Rename include guard.
12526 * tui/tui-layout.h: Rename include guard.
12527 * tui/tui-io.h: Rename include guard.
12528 * tui/tui-hooks.h: Rename include guard.
12529 * tui/tui-file.h: Rename include guard.
12530 * tui/tui-disasm.h: Rename include guard.
12531 * tui/tui-data.h: Rename include guard.
12532 * tui/tui-command.h: Rename include guard.
12533 * tic6x-tdep.h: Add include guard.
12534 * target/waitstatus.h: Rename include guard.
12535 * target/wait.h: Rename include guard.
12536 * target/target.h: Rename include guard.
12537 * target/resume.h: Rename include guard.
12538 * target-float.h: Rename include guard.
12539 * stabsread.h: Add include guard.
12540 * rs6000-tdep.h: Add include guard.
12541 * riscv-fbsd-tdep.h: Add include guard.
12542 * regformats/regdef.h: Rename include guard.
12543 * record.h: Rename include guard.
12544 * python/python.h: Rename include guard.
12545 * python/python-internal.h: Rename include guard.
12546 * python/py-stopevent.h: Rename include guard.
12547 * python/py-ref.h: Rename include guard.
12548 * python/py-record.h: Rename include guard.
12549 * python/py-record-full.h: Rename include guard.
12550 * python/py-record-btrace.h: Rename include guard.
12551 * python/py-instruction.h: Rename include guard.
12552 * python/py-events.h: Rename include guard.
12553 * python/py-event.h: Rename include guard.
12554 * procfs.h: Add include guard.
12555 * proc-utils.h: Add include guard.
12556 * p-lang.h: Add include guard.
12557 * or1k-tdep.h: Rename include guard.
12558 * observable.h: Rename include guard.
12559 * nto-tdep.h: Rename include guard.
12560 * nat/x86-linux.h: Rename include guard.
12561 * nat/x86-linux-dregs.h: Rename include guard.
12562 * nat/x86-gcc-cpuid.h: Add include guard.
12563 * nat/x86-dregs.h: Rename include guard.
12564 * nat/x86-cpuid.h: Rename include guard.
12565 * nat/ppc-linux.h: Rename include guard.
12566 * nat/mips-linux-watch.h: Rename include guard.
12567 * nat/linux-waitpid.h: Rename include guard.
12568 * nat/linux-ptrace.h: Rename include guard.
12569 * nat/linux-procfs.h: Rename include guard.
12570 * nat/linux-osdata.h: Rename include guard.
12571 * nat/linux-nat.h: Rename include guard.
12572 * nat/linux-namespaces.h: Rename include guard.
12573 * nat/linux-btrace.h: Rename include guard.
12574 * nat/glibc_thread_db.h: Rename include guard.
12575 * nat/gdb_thread_db.h: Rename include guard.
12576 * nat/gdb_ptrace.h: Rename include guard.
12577 * nat/fork-inferior.h: Rename include guard.
12578 * nat/amd64-linux-siginfo.h: Rename include guard.
12579 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12580 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12581 * nat/aarch64-linux.h: Rename include guard.
12582 * nat/aarch64-linux-hw-point.h: Rename include guard.
12583 * mn10300-tdep.h: Add include guard.
12584 * mips-linux-tdep.h: Add include guard.
12585 * mi/mi-parse.h: Rename include guard.
12586 * mi/mi-out.h: Rename include guard.
12587 * mi/mi-main.h: Rename include guard.
12588 * mi/mi-interp.h: Rename include guard.
12589 * mi/mi-getopt.h: Rename include guard.
12590 * mi/mi-console.h: Rename include guard.
12591 * mi/mi-common.h: Rename include guard.
12592 * mi/mi-cmds.h: Rename include guard.
12593 * mi/mi-cmd-break.h: Rename include guard.
12594 * m2-lang.h: Add include guard.
12595 * location.h: Rename include guard.
12596 * linux-record.h: Rename include guard.
12597 * linux-nat.h: Add include guard.
12598 * linux-fork.h: Add include guard.
12599 * i386-darwin-tdep.h: Rename include guard.
12600 * hppa-linux-offsets.h: Add include guard.
12601 * guile/guile.h: Rename include guard.
12602 * guile/guile-internal.h: Rename include guard.
12603 * gnu-nat.h: Rename include guard.
12604 * gdb-stabs.h: Rename include guard.
12605 * frv-tdep.h: Add include guard.
12606 * f-lang.h: Add include guard.
12607 * event-loop.h: Add include guard.
12608 * darwin-nat.h: Rename include guard.
12609 * cp-abi.h: Rename include guard.
12610 * config/sparc/nm-sol2.h: Rename include guard.
12611 * config/nm-nto.h: Rename include guard.
12612 * config/nm-linux.h: Add include guard.
12613 * config/i386/nm-i386gnu.h: Rename include guard.
12614 * config/djgpp/nl_types.h: Rename include guard.
12615 * config/djgpp/langinfo.h: Rename include guard.
12616 * compile/gcc-cp-plugin.h: Add include guard.
12617 * compile/gcc-c-plugin.h: Add include guard.
12618 * compile/compile.h: Rename include guard.
12619 * compile/compile-object-run.h: Rename include guard.
12620 * compile/compile-object-load.h: Rename include guard.
12621 * compile/compile-internal.h: Rename include guard.
12622 * compile/compile-cplus.h: Rename include guard.
12623 * compile/compile-c.h: Rename include guard.
12624 * common/xml-utils.h: Rename include guard.
12625 * common/x86-xstate.h: Rename include guard.
12626 * common/version.h: Rename include guard.
12627 * common/vec.h: Rename include guard.
12628 * common/tdesc.h: Rename include guard.
12629 * common/selftest.h: Rename include guard.
12630 * common/scoped_restore.h: Rename include guard.
12631 * common/scoped_mmap.h: Rename include guard.
12632 * common/scoped_fd.h: Rename include guard.
12633 * common/safe-iterator.h: Rename include guard.
12634 * common/run-time-clock.h: Rename include guard.
12635 * common/refcounted-object.h: Rename include guard.
12636 * common/queue.h: Rename include guard.
12637 * common/ptid.h: Rename include guard.
12638 * common/print-utils.h: Rename include guard.
12639 * common/preprocessor.h: Rename include guard.
12640 * common/pathstuff.h: Rename include guard.
12641 * common/observable.h: Rename include guard.
12642 * common/netstuff.h: Rename include guard.
12643 * common/job-control.h: Rename include guard.
12644 * common/host-defs.h: Rename include guard.
12645 * common/gdb_wait.h: Rename include guard.
12646 * common/gdb_vecs.h: Rename include guard.
12647 * common/gdb_unlinker.h: Rename include guard.
12648 * common/gdb_unique_ptr.h: Rename include guard.
12649 * common/gdb_tilde_expand.h: Rename include guard.
12650 * common/gdb_sys_time.h: Rename include guard.
12651 * common/gdb_string_view.h: Rename include guard.
12652 * common/gdb_splay_tree.h: Rename include guard.
12653 * common/gdb_setjmp.h: Rename include guard.
12654 * common/gdb_ref_ptr.h: Rename include guard.
12655 * common/gdb_optional.h: Rename include guard.
12656 * common/gdb_locale.h: Rename include guard.
12657 * common/gdb_assert.h: Rename include guard.
12658 * common/filtered-iterator.h: Rename include guard.
12659 * common/filestuff.h: Rename include guard.
12660 * common/fileio.h: Rename include guard.
12661 * common/environ.h: Rename include guard.
12662 * common/common-utils.h: Rename include guard.
12663 * common/common-types.h: Rename include guard.
12664 * common/common-regcache.h: Rename include guard.
12665 * common/common-inferior.h: Rename include guard.
12666 * common/common-gdbthread.h: Rename include guard.
12667 * common/common-exceptions.h: Rename include guard.
12668 * common/common-defs.h: Rename include guard.
12669 * common/common-debug.h: Rename include guard.
12670 * common/cleanups.h: Rename include guard.
12671 * common/buffer.h: Rename include guard.
12672 * common/btrace-common.h: Rename include guard.
12673 * common/break-common.h: Rename include guard.
12674 * cli/cli-utils.h: Rename include guard.
12675 * cli/cli-style.h: Rename include guard.
12676 * cli/cli-setshow.h: Rename include guard.
12677 * cli/cli-script.h: Rename include guard.
12678 * cli/cli-interp.h: Rename include guard.
12679 * cli/cli-decode.h: Rename include guard.
12680 * cli/cli-cmds.h: Rename include guard.
12681 * charset-list.h: Add include guard.
12682 * buildsym-legacy.h: Rename include guard.
12683 * bfin-tdep.h: Add include guard.
12684 * ax.h: Rename include guard.
12685 * arm-linux-tdep.h: Add include guard.
12686 * arm-fbsd-tdep.h: Add include guard.
12687 * arch/xtensa.h: Rename include guard.
12688 * arch/tic6x.h: Add include guard.
12689 * arch/i386.h: Add include guard.
12690 * arch/arm.h: Rename include guard.
12691 * arch/arm-linux.h: Rename include guard.
12692 * arch/arm-get-next-pcs.h: Rename include guard.
12693 * arch/amd64.h: Add include guard.
12694 * arch/aarch64-insn.h: Rename include guard.
12695 * arch-utils.h: Rename include guard.
12696 * annotate.h: Add include guard.
12697 * amd64-darwin-tdep.h: Rename include guard.
12698 * aarch64-linux-tdep.h: Add include guard.
12699 * aarch64-fbsd-tdep.h: Add include guard.
12700 * aarch32-linux-nat.h: Add include guard.
12701
12702 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12703
12704 * macrotab.c (macro_define_internal): New function that
12705 factorizes macro_define_object_internal and macro_define_function
12706 code.
12707 (macro_define_object_internal): Use macro_define_internal.
12708 (macro_define_function): Likewise.
12709
12710 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12711
12712 * macrocmd.c (extract_identifier): Return
12713 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12714 callers.
12715
12716 2019-02-06 John Baldwin <jhb@FreeBSD.org>
12717
12718 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12719
12720 2019-02-05 Tom Tromey <tom@tromey.com>
12721
12722 * target.c (target_stack::unpush): Move assertion earlier.
12723
12724 2019-01-30 Tom Tromey <tom@tromey.com>
12725
12726 PR python/23615:
12727 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12728 (gdbpy_parse_and_eval): Likewise.
12729 * python/python-internal.h (gdbpy_allow_threads): New class.
12730
12731 2019-01-28 John Baldwin <jhb@FreeBSD.org>
12732
12733 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12734 (aarch64_fbsd_fpregmap): Move earlier.
12735 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12736 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12737 instead of individual calls to trad_frame_set_reg_addr.
12738 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12739 earlier.
12740 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12741 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12742 instead of individual calls to trad_frame_set_reg_addr.
12743
12744 2019-01-28 Alan Hayward <alan.hayward@arm.com>
12745
12746 * CONTRIBUTE: Replace contribution list with wiki link.
12747
12748 2019-01-25 Tom Tromey <tom@tromey.com>
12749
12750 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12751
12752 2019-01-25 Tom Tromey <tom@tromey.com>
12753
12754 * xtensa-linux-nat.c: Fix common/ includes.
12755 * xml-support.h: Fix common/ includes.
12756 * xml-support.c: Fix common/ includes.
12757 * x86-linux-nat.c: Fix common/ includes.
12758 * windows-nat.c: Fix common/ includes.
12759 * varobj.h: Fix common/ includes.
12760 * varobj.c: Fix common/ includes.
12761 * value.c: Fix common/ includes.
12762 * valops.c: Fix common/ includes.
12763 * utils.c: Fix common/ includes.
12764 * unittests/xml-utils-selftests.c: Fix common/ includes.
12765 * unittests/utils-selftests.c: Fix common/ includes.
12766 * unittests/unpack-selftests.c: Fix common/ includes.
12767 * unittests/tracepoint-selftests.c: Fix common/ includes.
12768 * unittests/style-selftests.c: Fix common/ includes.
12769 * unittests/string_view-selftests.c: Fix common/ includes.
12770 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12771 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12772 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12773 * unittests/rsp-low-selftests.c: Fix common/ includes.
12774 * unittests/parse-connection-spec-selftests.c: Fix common/
12775 includes.
12776 * unittests/optional-selftests.c: Fix common/ includes.
12777 * unittests/offset-type-selftests.c: Fix common/ includes.
12778 * unittests/observable-selftests.c: Fix common/ includes.
12779 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12780 * unittests/memrange-selftests.c: Fix common/ includes.
12781 * unittests/memory-map-selftests.c: Fix common/ includes.
12782 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12783 * unittests/function-view-selftests.c: Fix common/ includes.
12784 * unittests/environ-selftests.c: Fix common/ includes.
12785 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12786 * unittests/common-utils-selftests.c: Fix common/ includes.
12787 * unittests/cli-utils-selftests.c: Fix common/ includes.
12788 * unittests/array-view-selftests.c: Fix common/ includes.
12789 * ui-file.c: Fix common/ includes.
12790 * tui/tui-io.c: Fix common/ includes.
12791 * tracepoint.h: Fix common/ includes.
12792 * tracepoint.c: Fix common/ includes.
12793 * tracefile-tfile.c: Fix common/ includes.
12794 * top.h: Fix common/ includes.
12795 * top.c: Fix common/ includes.
12796 * thread.c: Fix common/ includes.
12797 * target/waitstatus.h: Fix common/ includes.
12798 * target/waitstatus.c: Fix common/ includes.
12799 * target.h: Fix common/ includes.
12800 * target.c: Fix common/ includes.
12801 * target-memory.c: Fix common/ includes.
12802 * target-descriptions.c: Fix common/ includes.
12803 * symtab.h: Fix common/ includes.
12804 * symfile.c: Fix common/ includes.
12805 * stap-probe.c: Fix common/ includes.
12806 * spu-linux-nat.c: Fix common/ includes.
12807 * sparc-nat.c: Fix common/ includes.
12808 * source.c: Fix common/ includes.
12809 * solib.c: Fix common/ includes.
12810 * solib-target.c: Fix common/ includes.
12811 * ser-unix.c: Fix common/ includes.
12812 * ser-tcp.c: Fix common/ includes.
12813 * ser-pipe.c: Fix common/ includes.
12814 * ser-base.c: Fix common/ includes.
12815 * selftest-arch.c: Fix common/ includes.
12816 * s12z-tdep.c: Fix common/ includes.
12817 * rust-exp.y: Fix common/ includes.
12818 * rs6000-aix-tdep.c: Fix common/ includes.
12819 * riscv-tdep.c: Fix common/ includes.
12820 * remote.c: Fix common/ includes.
12821 * remote-notif.h: Fix common/ includes.
12822 * remote-fileio.h: Fix common/ includes.
12823 * remote-fileio.c: Fix common/ includes.
12824 * regcache.h: Fix common/ includes.
12825 * regcache.c: Fix common/ includes.
12826 * record-btrace.c: Fix common/ includes.
12827 * python/python.c: Fix common/ includes.
12828 * python/py-type.c: Fix common/ includes.
12829 * python/py-inferior.c: Fix common/ includes.
12830 * progspace.h: Fix common/ includes.
12831 * producer.c: Fix common/ includes.
12832 * procfs.c: Fix common/ includes.
12833 * proc-api.c: Fix common/ includes.
12834 * printcmd.c: Fix common/ includes.
12835 * ppc-linux-nat.c: Fix common/ includes.
12836 * parser-defs.h: Fix common/ includes.
12837 * osdata.c: Fix common/ includes.
12838 * obsd-nat.c: Fix common/ includes.
12839 * nat/x86-linux.c: Fix common/ includes.
12840 * nat/x86-linux-dregs.c: Fix common/ includes.
12841 * nat/x86-dregs.h: Fix common/ includes.
12842 * nat/x86-dregs.c: Fix common/ includes.
12843 * nat/ppc-linux.c: Fix common/ includes.
12844 * nat/mips-linux-watch.h: Fix common/ includes.
12845 * nat/mips-linux-watch.c: Fix common/ includes.
12846 * nat/linux-waitpid.c: Fix common/ includes.
12847 * nat/linux-ptrace.h: Fix common/ includes.
12848 * nat/linux-ptrace.c: Fix common/ includes.
12849 * nat/linux-procfs.c: Fix common/ includes.
12850 * nat/linux-personality.c: Fix common/ includes.
12851 * nat/linux-osdata.c: Fix common/ includes.
12852 * nat/linux-namespaces.c: Fix common/ includes.
12853 * nat/linux-btrace.h: Fix common/ includes.
12854 * nat/linux-btrace.c: Fix common/ includes.
12855 * nat/fork-inferior.c: Fix common/ includes.
12856 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12857 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12858 * nat/aarch64-linux.c: Fix common/ includes.
12859 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12860 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12861 * namespace.h: Fix common/ includes.
12862 * mips-linux-tdep.c: Fix common/ includes.
12863 * minsyms.c: Fix common/ includes.
12864 * mi/mi-parse.h: Fix common/ includes.
12865 * mi/mi-main.c: Fix common/ includes.
12866 * mi/mi-cmd-env.c: Fix common/ includes.
12867 * memrange.h: Fix common/ includes.
12868 * memattr.c: Fix common/ includes.
12869 * maint.h: Fix common/ includes.
12870 * maint.c: Fix common/ includes.
12871 * main.c: Fix common/ includes.
12872 * machoread.c: Fix common/ includes.
12873 * location.c: Fix common/ includes.
12874 * linux-thread-db.c: Fix common/ includes.
12875 * linux-nat.c: Fix common/ includes.
12876 * linux-fork.c: Fix common/ includes.
12877 * inline-frame.c: Fix common/ includes.
12878 * infrun.c: Fix common/ includes.
12879 * inflow.c: Fix common/ includes.
12880 * inferior.h: Fix common/ includes.
12881 * inferior.c: Fix common/ includes.
12882 * infcmd.c: Fix common/ includes.
12883 * inf-ptrace.c: Fix common/ includes.
12884 * inf-child.c: Fix common/ includes.
12885 * ia64-linux-nat.c: Fix common/ includes.
12886 * i387-tdep.c: Fix common/ includes.
12887 * i386-tdep.c: Fix common/ includes.
12888 * i386-linux-tdep.c: Fix common/ includes.
12889 * i386-linux-nat.c: Fix common/ includes.
12890 * i386-go32-tdep.c: Fix common/ includes.
12891 * i386-fbsd-tdep.c: Fix common/ includes.
12892 * i386-fbsd-nat.c: Fix common/ includes.
12893 * guile/scm-type.c: Fix common/ includes.
12894 * guile/guile.c: Fix common/ includes.
12895 * go32-nat.c: Fix common/ includes.
12896 * gnu-nat.c: Fix common/ includes.
12897 * gdbthread.h: Fix common/ includes.
12898 * gdbarch-selftests.c: Fix common/ includes.
12899 * gdb_usleep.c: Fix common/ includes.
12900 * gdb_select.h: Fix common/ includes.
12901 * gdb_bfd.c: Fix common/ includes.
12902 * gcore.c: Fix common/ includes.
12903 * fork-child.c: Fix common/ includes.
12904 * findvar.c: Fix common/ includes.
12905 * fbsd-nat.c: Fix common/ includes.
12906 * event-top.c: Fix common/ includes.
12907 * event-loop.c: Fix common/ includes.
12908 * dwarf2read.c: Fix common/ includes.
12909 * dwarf2loc.c: Fix common/ includes.
12910 * dwarf2-frame.c: Fix common/ includes.
12911 * dwarf-index-cache.c: Fix common/ includes.
12912 * dtrace-probe.c: Fix common/ includes.
12913 * disasm-selftests.c: Fix common/ includes.
12914 * defs.h: Fix common/ includes.
12915 * csky-tdep.c: Fix common/ includes.
12916 * cp-valprint.c: Fix common/ includes.
12917 * cp-support.h: Fix common/ includes.
12918 * cp-support.c: Fix common/ includes.
12919 * corelow.c: Fix common/ includes.
12920 * completer.h: Fix common/ includes.
12921 * completer.c: Fix common/ includes.
12922 * compile/compile.c: Fix common/ includes.
12923 * compile/compile-loc2c.c: Fix common/ includes.
12924 * compile/compile-cplus-types.c: Fix common/ includes.
12925 * compile/compile-cplus-symbols.c: Fix common/ includes.
12926 * command.h: Fix common/ includes.
12927 * cli/cli-dump.c: Fix common/ includes.
12928 * cli/cli-cmds.c: Fix common/ includes.
12929 * charset.c: Fix common/ includes.
12930 * build-id.c: Fix common/ includes.
12931 * btrace.h: Fix common/ includes.
12932 * btrace.c: Fix common/ includes.
12933 * breakpoint.h: Fix common/ includes.
12934 * breakpoint.c: Fix common/ includes.
12935 * ax.h:
12936 (enum agent_op): Fix common/ includes.
12937 * ax-general.c (struct aop_map): Fix common/ includes.
12938 * ax-gdb.c: Fix common/ includes.
12939 * auxv.c: Fix common/ includes.
12940 * auto-load.c: Fix common/ includes.
12941 * arm-tdep.c: Fix common/ includes.
12942 * arch/riscv.c: Fix common/ includes.
12943 * arch/ppc-linux-common.c: Fix common/ includes.
12944 * arch/i386.c: Fix common/ includes.
12945 * arch/arm.c: Fix common/ includes.
12946 * arch/arm-linux.c: Fix common/ includes.
12947 * arch/arm-get-next-pcs.c: Fix common/ includes.
12948 * arch/amd64.c: Fix common/ includes.
12949 * arch/aarch64.c: Fix common/ includes.
12950 * arch/aarch64-insn.c: Fix common/ includes.
12951 * arch-utils.c: Fix common/ includes.
12952 * amd64-windows-tdep.c: Fix common/ includes.
12953 * amd64-tdep.c: Fix common/ includes.
12954 * amd64-sol2-tdep.c: Fix common/ includes.
12955 * amd64-obsd-tdep.c: Fix common/ includes.
12956 * amd64-nbsd-tdep.c: Fix common/ includes.
12957 * amd64-linux-tdep.c: Fix common/ includes.
12958 * amd64-linux-nat.c: Fix common/ includes.
12959 * amd64-fbsd-tdep.c: Fix common/ includes.
12960 * amd64-fbsd-nat.c: Fix common/ includes.
12961 * amd64-dicos-tdep.c: Fix common/ includes.
12962 * amd64-darwin-tdep.c: Fix common/ includes.
12963 * agent.c: Fix common/ includes.
12964 * ada-lang.h: Fix common/ includes.
12965 * ada-lang.c: Fix common/ includes.
12966 * aarch64-tdep.c: Fix common/ includes.
12967
12968 2019-01-25 Tom Tromey <tom@tromey.com>
12969
12970 * common/create-version.sh: Use common/version.h.
12971
12972 2019-01-24 Pedro Alves <palves@redhat.com>
12973
12974 * infrun.c (signal_stop, signal_print, signal_program)
12975 (signal_catch, signal_pass): Now arrays instead of pointers.
12976 (update_signals_program_target, do_target_resume)
12977 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12978 * linux-nat.c (linux_nat_target::pass_signals)
12979 (linux_nat_target::create_inferior, linux_nat_target::attach):
12980 Adjust.
12981 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12982 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12983 * procfs.c (procfs_target::pass_signals): Adjust.
12984 * record-full.c (record_full_target::resume): Adjust.
12985 * remote.c (remote_target::pass_signals)
12986 (remote_target::program_signals): Adjust.
12987 * target-debug.h (target_debug_print_signals): Now takes a
12988 gdb::array_view as parameter. Adjust.
12989 * target.h (target_ops) <pass_signals, program_signals>: Replace
12990 pointer and length parameters with gdb::array_view.
12991 (target_pass_signals, target_program_signals): Likewise.
12992 * target-delegates.c: Regenerate.
12993
12994 2019-01-24 Pedro Alves <palves@redhat.com>
12995
12996 * common/forward-scope-exit.h
12997 (forward_scope_exit::forward_scope_exit): Pass arguments to
12998 m_bind_function directly, instead of creating a std::bind and
12999 copying that.
13000
13001 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13002
13003 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13004 for static members.
13005 (pass_in_v_vfp_candidate): Likewise.
13006
13007 2019-01-23 Tom Tromey <tom@tromey.com>
13008 Pedro Alves <palves@redhat.com>
13009
13010 * regcache.c (class regcache_invalidator): Remove.
13011 (regcache::raw_write): Use make_scope_exit.
13012
13013 2019-01-23 Tom Tromey <tom@tromey.com>
13014
13015 * ui-out.h (class ui_out_emit_type): Update comment.
13016
13017 2019-01-23 Tom Tromey <tom@tromey.com>
13018
13019 * infrun.c (fetch_inferior_event): Update comment.
13020
13021 2019-01-23 Tom Tromey <tom@tromey.com>
13022 Pedro Alves <palves@redhat.com>
13023
13024 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13025 parameter.
13026 (fetch_inferior_event): Use SCOPE_EXIT.
13027
13028
13029 2019-01-23 Tom Tromey <tom@tromey.com>
13030 Pedro Alves <palves@redhat.com>
13031
13032 * infrun.c (disable_thread_events): Delete.
13033 (stop_all_threads): Use SCOPE_EXIT.
13034
13035 2019-01-23 Tom Tromey <tom@tromey.com>
13036 Pedro Alves <palves@redhat.com>
13037
13038 * symfile.c: Include forward-scope-exit.h.
13039 (clear_symtab_users_cleanup): Replace forward declaration with
13040 a FORWARD_SCOPE_EXIT.
13041 (syms_from_objfile_1): Use the forward_scope_exit and
13042 gdb::optional instead of cleanup_function.
13043 (reread_symbols): Use the forward_scope_exit instead of
13044 cleanup_function.
13045 (clear_symtab_users_cleanup): Remove function.
13046
13047 2019-01-23 Tom Tromey <tom@tromey.com>
13048 Pedro Alves <palves@redhat.com>
13049
13050 * linux-nat.c: Include scope-exit.h.
13051 (cleanup_target_stop): Remove.
13052 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13053 SCOPE_EXIT.
13054
13055 2019-01-23 Tom Tromey <tom@tromey.com>
13056 Pedro Alves <palves@redhat.com>
13057
13058 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13059 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13060
13061 2019-01-23 Tom Tromey <tom@tromey.com>
13062 Andrew Burgess <andrew.burgess@embecosm.com>
13063 Pedro Alves <palves@redhat.com>
13064
13065 * infrun.c (fetch_inferior_event): Use scope_exit.
13066 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13067 * top.c (execute_command): Use scope_exit.
13068 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13069 * utils.c (do_bpstat_clear_actions_cleanup)
13070 (make_bpstat_clear_actions_cleanup): Remove.
13071
13072 2019-01-23 Tom Tromey <tom@tromey.com>
13073 Pedro Alves <palves@redhat.com>
13074
13075 * infrun.c: Include "common/scope-exit.h"
13076 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13077 (wait_for_inferior): Use SCOPE_EXIT.
13078 (fetch_inferior_event): Use scope_exit.
13079
13080 2019-01-23 Tom Tromey <tom@tromey.com>
13081 Pedro Alves <palves@redhat.com>
13082
13083 * breakpoint.c (create_breakpoint): Remove cleanup.
13084
13085 2019-01-23 Tom Tromey <tom@tromey.com>
13086 Andrew Burgess <andrew.burgess@embecosm.com>
13087 Pedro Alves <palves@redhat.com>
13088
13089 2019-01-23 Pedro Alves <palves@redhat.com>
13090
13091 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13092
13093 2019-01-23 Pedro Alves <palves@redhat.com>
13094 Andrew Burgess <andrew.burgess@embecosm.com>
13095
13096 * gdbthread.h: Include "common/forward-scope-exit.h".
13097 (scoped_finish_thread_state): Redefine custom class in terms of
13098 forward_scope_exit.
13099
13100 2019-01-23 Pedro Alves <palves@redhat.com>
13101 Andrew Burgess <andrew.burgess@embecosm.com>
13102
13103 * common/forward-scope-exit.h: New file.
13104
13105 2019-01-23 Pedro Alves <palves@redhat.com>
13106 Andrew Burgess <andrew.burgess@embecosm.com>
13107 Tom Tromey <tom@tromey.com>
13108
13109 * common/scope-exit.h: New file.
13110
13111 2019-01-23 Pedro Alves <palves@redhat.com>
13112
13113 * common/preprocessor.h (ESC): Rename to ...
13114 (ESC_PARENS): ... this.
13115 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13116 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13117
13118 2019-01-23 Tom Tromey <tom@tromey.com>
13119
13120 * language.h (class scoped_switch_to_sym_language_if_auto):
13121 Initialize m_lang in both cases.
13122
13123 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13124
13125 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13126 with XCNEW.
13127
13128 2019-01-22 Tom Tromey <tom@tromey.com>
13129
13130 * corelow.c: Do not include sys/file.h.
13131
13132 2019-01-22 Tom Tromey <tom@tromey.com>
13133
13134 * tui/tui-wingeneral.h: Include gdb_curses.h.
13135
13136 2019-01-22 Tom Tromey <tom@tromey.com>
13137
13138 * source-cache.h (class source_cache) <get_source_lines,
13139 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13140
13141 2019-01-22 Tom Tromey <tom@tromey.com>
13142
13143 * remote-fileio.h (struct remote_target): Declare.
13144
13145 2019-01-22 Tom Tromey <tom@tromey.com>
13146
13147 * python/py-arch.c: Do not include py-ref.h.
13148 * python/py-bpevent.c: Do not include py-ref.h.
13149 * python/py-cmd.c: Do not include py-ref.h.
13150 * python/py-continueevent.c: Do not include py-ref.h.
13151 * python/py-event.h: Do not include py-ref.h.
13152 * python/py-evtregistry.c: Do not include py-ref.h.
13153 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13154 * python/py-frame.c: Do not include py-ref.h.
13155 * python/py-framefilter.c: Do not include py-ref.h.
13156 * python/py-function.c: Do not include py-ref.h.
13157 * python/py-infevents.c: Do not include py-ref.h.
13158 * python/py-linetable.c: Do not include py-ref.h.
13159 * python/py-objfile.c: Do not include py-ref.h.
13160 * python/py-param.c: Do not include py-ref.h.
13161 * python/py-prettyprint.c: Do not include py-ref.h.
13162 * python/py-progspace.c: Do not include py-ref.h.
13163 * python/py-symbol.c: Do not include py-ref.h.
13164 * python/py-symtab.c: Do not include py-ref.h.
13165 * python/py-type.c: Do not include py-ref.h.
13166 * python/py-unwind.c: Do not include py-ref.h.
13167 * python/py-utils.c: Do not include py-ref.h.
13168 * python/py-value.c: Do not include py-ref.h.
13169 * python/py-varobj.c: Do not include py-ref.h.
13170 * python/py-xmethods.c: Do not include py-ref.h.
13171 * python/python.c: Do not include py-ref.h.
13172 * varobj.c: Do not include py-ref.h.
13173
13174 2019-01-22 Tom Tromey <tom@tromey.com>
13175
13176 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13177 keyword for bcache.
13178
13179 2019-01-22 Tom Tromey <tom@tromey.com>
13180
13181 * compile/compile-cplus-types.c: Remove a comment by #include.
13182
13183 2019-01-22 Tom Tromey <tom@tromey.com>
13184
13185 * compile/gcc-c-plugin.h: Include compile-internal.h.
13186
13187 2019-01-22 Tom Tromey <tom@tromey.com>
13188
13189 * stabsread.c (EXTERN): Do not define.
13190 (symnum, next_symbol_text_func, processing_gcc_compilation)
13191 (within_function, global_sym_chain, global_stabs)
13192 (previous_stab_code, this_object_header_files)
13193 (n_this_object_header_files)
13194 (n_allocated_this_object_header_files): Define.
13195 * stabsread.h (EXTERN): Never define. Use "extern".
13196
13197 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13198
13199 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13200 history_value.
13201
13202 2019-01-21 Tom Tromey <tom@tromey.com>
13203
13204 * ui-out.c: Fix includes.
13205 * tui/tui-source.c: Fix includes.
13206 * target.c: Fix includes.
13207 * remote.c: Fix includes.
13208 * regcache.c: Fix includes.
13209 * python/py-block.c: Fix includes.
13210 * printcmd.c: Fix includes.
13211 * or1k-tdep.c: Fix includes.
13212 * mi/mi-main.c: Fix includes.
13213 * m32r-tdep.c: Fix includes.
13214 * csky-tdep.c: Fix includes.
13215 * compile/compile-cplus-types.c: Fix includes.
13216 * cli/cli-interp.c: Fix includes.
13217
13218 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13219
13220 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13221 for padding.
13222
13223 2019-01-16 Tom Tromey <tom@tromey.com>
13224
13225 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13226 earlier.
13227 (struct objfile) <msymbols_range>: Move from top level.
13228 <msymbols>: New method.
13229 (class objfile_msymbols): Remove.
13230 * symtab.c (default_collect_symbol_completion_matches_break_on):
13231 Update.
13232 * symmisc.c (dump_msymbols): Update.
13233 * stabsread.c (scan_file_globals): Update.
13234 * objc-lang.c (info_selectors_command, info_classes_command)
13235 (find_methods): Update.
13236 * minsyms.c (find_solib_trampoline_target): Update.
13237 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13238 * coffread.c (coff_symfile_read): Update.
13239 * ada-lang.c (ada_lookup_simple_minsym)
13240 (ada_collect_symbol_completion_matches): Update.
13241
13242 2019-01-16 Tom Tromey <tom@tromey.com>
13243
13244 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13245 type. Remove no-argument constructor.
13246 <iterator::operator++>: Simplify.
13247 <begin>: Update.
13248 <end>: Use minimal_symbol_count.
13249
13250 2019-01-16 Tom Tromey <tom@tromey.com>
13251
13252 * objfiles.h (struct objfile) <psymtabs>: New method.
13253 (class objfile_psymtabs): Remove.
13254 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13255 typedef.
13256 <range>: New method.
13257 (require_partial_symbols): Change return type.
13258 * psymtab.c (require_partial_symbols)
13259 (psym_expand_symtabs_matching): Update.
13260 * mdebugread.c (parse_partial_symbols): Update.
13261 * dbxread.c (dbx_end_psymtab): Update.
13262
13263 2019-01-15 Tom Tromey <tom@tromey.com>
13264
13265 * symtab.c (lookup_objfile_from_block)
13266 (lookup_symbol_in_objfile_symtabs)
13267 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13268 (find_line_symtab, info_sources_command)
13269 (default_collect_symbol_completion_matches_break_on)
13270 (make_source_files_completion_list): Update.
13271 * symmisc.c (print_objfile_statistics, dump_objfile)
13272 (maintenance_print_symbols, maintenance_info_symtabs)
13273 (maintenance_check_symtabs, maintenance_info_line_tables):
13274 Update.
13275 * source.c (select_source_symtab)
13276 (forget_cached_source_info_for_objfile): Update.
13277 * objfiles.h (class objfile_compunits): Remove.
13278 (struct objfile) <compunits_range>: New typedef.
13279 (compunits): New method.
13280 * objfiles.c (objfile_relocate1): Update.
13281 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13282 * maint.c (count_symtabs_and_blocks): Update.
13283 * linespec.c (iterate_over_all_matching_symtabs): Update.
13284 * cp-support.c (add_symbol_overload_list_qualified): Update.
13285 * coffread.c (coff_symtab_read): Update.
13286 * ada-lang.c (add_nonlocal_symbols)
13287 (ada_collect_symbol_completion_matches)
13288 (ada_add_global_exceptions): Update.
13289
13290 2019-01-15 Tom Tromey <tom@tromey.com>
13291
13292 * progspace.h (program_space) <objfiles_safe_range>: New
13293 typedef.
13294 <objfiles_safe>: New method.
13295 * objfiles.h (class all_objfiles_safe): Remove.
13296 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13297 * jit.c (jit_inferior_exit_hook): Update.
13298
13299 2019-01-17 Tom Tromey <tom@tromey.com>
13300
13301 * progspace.h (program_space) <objfiles_range>: New typedef.
13302 <objfiles>: New method.
13303 <objfiles_head>: Rename from objfiles.
13304 (object_files): Update.
13305 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13306 * guile/scm-pretty-print.c
13307 (ppscm_find_pretty_printer_from_objfiles): Update.
13308 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13309 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13310 Update.
13311 * python/py-progspace.c (pspy_get_objfiles): Update.
13312 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13313 Update.
13314 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13315 (objfpy_lookup_objfile_by_build_id): Update.
13316 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13317 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13318 Update.
13319 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13320 (expand_symtab_containing_pc, lookup_objfile_from_block)
13321 (lookup_static_symbol, basic_lookup_transparent_type)
13322 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13323 (find_line_symtab, info_sources_command)
13324 (default_collect_symbol_completion_matches_break_on)
13325 (make_source_files_completion_list, find_main_name): Update.
13326 * symmisc.c (print_symbol_bcache_statistics)
13327 (print_objfile_statistics, maintenance_print_symbols)
13328 (maintenance_print_msymbols, maintenance_print_objfiles)
13329 (maintenance_info_symtabs, maintenance_check_symtabs)
13330 (maintenance_expand_symtabs, maintenance_info_line_tables):
13331 Update.
13332 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13333 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13334 (map_overlay_command, unmap_overlay_command)
13335 (simple_overlay_update, expand_symtabs_matching)
13336 (map_symbol_filenames): Update.
13337 * symfile-debug.c (set_debug_symfile): Update.
13338 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13339 Update.
13340 * source.c (select_source_symtab, forget_cached_source_info):
13341 Update.
13342 * solib.c (solib_read_symbols): Update.
13343 * solib-spu.c (append_ocl_sos): Update.
13344 * psymtab.c (maintenance_print_psymbols)
13345 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13346 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13347 * printcmd.c (info_symbol_command): Update.
13348 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13349 Update.
13350 * objfiles.h (class all_objfiles): Remove.
13351 * objfiles.c (have_partial_symbols, have_full_symbols)
13352 (have_minimal_symbols, qsort_cmp, update_section_map)
13353 (shared_objfile_contains_address_p)
13354 (default_iterate_over_objfiles_in_search_order): Update.
13355 * objc-lang.c (info_selectors_command, info_classes_command)
13356 (find_methods): Update.
13357 * minsyms.c (find_solib_trampoline_target): Update.
13358 * maint.c (maintenance_info_sections)
13359 (maintenance_translate_address, count_symtabs_and_blocks):
13360 Update.
13361 * main.c (captured_main_1): Update.
13362 * linux-thread-db.c (try_thread_db_load_from_pdir)
13363 (has_libpthread): Update.
13364 * linespec.c (iterate_over_all_matching_symtabs)
13365 (search_minsyms_for_name): Update.
13366 * jit.c (jit_find_objf_with_entry_addr): Update.
13367 * hppa-tdep.c (find_unwind_entry)
13368 (hppa_lookup_stub_minimal_symbol): Update.
13369 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13370 Update.
13371 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13372 (elf_gnu_ifunc_resolve_by_got): Update.
13373 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13374 * dwarf-index-write.c (save_gdb_index_command): Update.
13375 * cp-support.c (add_symbol_overload_list_qualified): Update.
13376 * breakpoint.c (create_overlay_event_breakpoint)
13377 (create_longjmp_master_breakpoint)
13378 (create_std_terminate_master_breakpoint)
13379 (create_exception_master_breakpoint): Update.
13380 * blockframe.c (find_pc_partial_function): Update.
13381 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13382 (ada_collect_symbol_completion_matches)
13383 (ada_add_global_exceptions): Update.
13384
13385 2019-01-17 Tom Tromey <tom@tromey.com>
13386
13387 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13388 declare VEC.
13389 (solib_target_parse_libraries): Change return type.
13390 (library_list_start_segment, library_list_start_section)
13391 (library_list_end_library, library_list_start_library); Update.
13392 (solib_target_free_library_list): Remove.
13393 (solib_target_parse_libraries): Remove cleanup. Change return
13394 type.
13395 (solib_target_current_sos): Update.
13396
13397 2019-01-17 Tom Tromey <tromey@bapiya>
13398
13399 * valprint.c: Replace "the the" with "the".
13400 * symtab.c: Replace "the the" with "the".
13401 * solib.c: Replace "the the" with "the".
13402 * solib-dsbt.c: Replace "the the" with "the".
13403 * linespec.c: Replace "the the" with "the".
13404 * dwarf2loc.h: Replace "the the" with "the".
13405 * amd64-windows-tdep.c: Replace "the the" with "the".
13406 * aarch64-tdep.c: Replace "the the" with "the".
13407
13408 2019-01-16 Keith Seitz <keiths@redhat.com>
13409
13410 PR gdb/23773
13411 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13412 <builder>: Rename to ..
13413 <m_builder>: ... this and make private.
13414 (dwarf2_cu::get_builder): New method. Change all users of
13415 `builder' to use this method.
13416 (dwarf2_start_symtab): Move to ...
13417 (dwarf2_cu::start_symtab): ... here. Update all callers
13418 (setup_type_unit_groups): Move to ...
13419 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13420 callers.
13421 (dwarf2_cu::reset_builder): New method.
13422 (process_full_compunit, process_full_type_unit): Use
13423 dwarf2_cu::reset_builder.
13424 (follow_die_offset): Record the ancestor CU if it is different
13425 from the followed DIE's CU.
13426 (follow_die_sig_1): Likewise.
13427
13428 2019-01-15 Tom Tromey <tom@tromey.com>
13429
13430 * remote.c (class remote_state) <buf>: Now a char_vector.
13431 <buf_size>: Remove.
13432 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13433 parameter.
13434 (remote_target::getpkt_or_notif_sane_1)
13435 (remote_target::getpkt_sane)
13436 (remote_target::getpkt_or_notif_sane): Likewise.
13437 (class remote_target) <putpkt>: New overload.
13438 (remote_target::read_frame): Change type of "buf_p". Remove
13439 sizeof_p parameter.
13440 (packet_ok): New overload.
13441 (packet_check_result): New overload.
13442 Update all uses.
13443
13444 2019-01-14 Tom Tromey <tom@tromey.com>
13445
13446 * remote-notif.c (handle_notification, remote_notif_ack)
13447 (remote_notif_parse): Make "buf" const.
13448 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13449 const.
13450 (remote_notif_parse, remote_notif_ack, handle_notification):
13451 Likewise.
13452 * remote.c (remote_notif_stop_parse): Make "buf" const.
13453 (remote_target::remote_parse_stop_reply): Make "buf" const.
13454 (remote_notif_stop_ack): Make "buf" const.
13455
13456 2019-01-14 Tom Tromey <tom@tromey.com>
13457
13458 * remote.c (remote_console_output): Make parameter const.
13459
13460 2019-01-14 Tom Tromey <tom@tromey.com>
13461
13462 * target-debug.h (target_debug_print_signals): Constify.
13463 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13464 * procfs.c (procfs_target::pass_signals): Update.
13465 * linux-nat.c (linux_nat_target::pass_signals): Update.
13466 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13467 * target-delegates.c: Rebuild.
13468 * remote.c (remote_target::program_signals): Update.
13469 (remote_target::pass_signals): Update.
13470 * target.c (target_pass_signals): Constify argument.
13471 (target_program_signals): Likewise.
13472 * target.h (struct target_ops) <pass_signals, program_signals>:
13473 Constify argument.
13474 (target_pass_signals, target_program_signals): Constify argument.
13475
13476 2019-01-14 Tom Tromey <tom@tromey.com>
13477
13478 PR tui/28819:
13479 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13480
13481 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13482
13483 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13484 field.
13485 * rs6000-tdep.c: Include reggroups.h.
13486 (IS_V_ALIAS_PSEUDOREG): Define.
13487 (rs6000_register_name): Return names for the "vX" aliases.
13488 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13489 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13490 aliases. Call default_register_reggroup_p for all other
13491 pseudo-registers.
13492 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13493 New functions.
13494 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13495 Handle "vX" aliases.
13496 (v_alias_pseudo_register_collect): New function.
13497 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13498 (rs6000_gdbarch_init): Initialize "vX" aliases as
13499 pseudo-registers. Restore registration of
13500 rs6000_pseudo_register_reggroup_p with
13501 set_tdesc_pseudo_register_reggroup_p.
13502
13503 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13504
13505 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13506 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13507 set_gdbarch_num_pseudo_regs.
13508
13509 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13510
13511 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13512 Remove arg prefixname, add do_set and do_show.
13513 Add member functions set_list and show_list.
13514 * cli/cli-style.c (class cli_style_option): Update accordingly.
13515 (style_set_list): Move to file scope.
13516 (style_show_list): Likewise.
13517 (set_style): Call help_list.
13518 (show_style): Call cmd_show_list.
13519 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13520 Update to use the new macro.
13521
13522 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13523
13524 * ada-lang.c (_initialize_ada_language): Expand the help text
13525 for the "catch exception" command.
13526
13527 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13528
13529 * symtab.c (matching_obj_sections): Initialize obj,
13530 declare it closer to its usage.
13531
13532 2019-01-10 Tom Tromey <tom@tromey.com>
13533
13534 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13535 (basic_inf_threads_range): Remove.
13536 (inf_threads_range, inf_non_exited_threads_range)
13537 (safe_inf_threads_range): Use next_adapter.
13538
13539 2019-01-10 Keith Seitz <keiths@redhat.com>
13540
13541 PR gdb/23712
13542 PR symtab/23010
13543 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13544 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13545
13546 2019-01-10 Keith Seitz <keiths@redhat.com>
13547
13548 PR gdb/23712
13549 PR symtab/23010
13550 * dictionary.c (pending_to_vector): Remove.
13551 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13552 Remove _1 suffix, replacing functions of the same name. Update
13553 all callers.
13554 (dict_create_hashed, dict_create_hashed_expandable)
13555 (dict_create_linear, dict_create_linear_expandable, dict_free)
13556 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13557 Make functions static.
13558
13559 2019-01-10 Keith Seitz <keiths@redhat.com>
13560
13561 PR gdb/23712
13562 PR symtab/23010
13563 * dictionary.h (struct dictionary): Replace declaration with
13564 multidictionary.
13565 (dict_create_hashed, dict_create_hashed_expandable)
13566 (dict_create_linear, dict_create_linear_expandable)
13567 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13568 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13569 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13570 taking multidictionary argument.
13571 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13572 * block.h (struct block) <dict>: Change to multidictionary
13573 and rename `multidict'.
13574 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13575 symmisc.c: Update all dictionary references to multidictionary.
13576
13577 2019-01-10 Keith Seitz <keiths@redhat.com>
13578
13579 PR gdb/23712
13580 PR symtab/23010
13581 * dictionary.c: Include unordered_map.
13582 (pending_to_vector): New function.
13583 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13584 Rewrite the non-"_1" functions to take vector instead
13585 of linked list.
13586 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13587 "new" _1 versions of the same name.
13588 (multidictionary): Define.
13589 (std::hash<enum language): New definition.
13590 (collate_pending_symbols_by_language, mdict_create_hashed)
13591 (mdict_create_hashed_expandable, mdict_create_linear)
13592 (mdict_create_linear_expandable, mdict_free)
13593 (find_language_dictionary, create_new_language_dictionary)
13594 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13595 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13596 (mdict_size, mdict_empty): New functions.
13597 * dictionary.h (mdict_iterator): Define.
13598
13599 2019-01-10 Pedro Alves <palves@redhat.com>
13600
13601 * breakpoint.c (read_uploaded_action)
13602 (create_tracepoint_from_upload): Adjust to use
13603 gdb::unique_xmalloc_ptr.
13604 * ctf.c (ctf_write_uploaded_tp):
13605 (SET_ARRAY_FIELD): Use emplace_back.
13606 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13607 * tracefile-tfile.c (tfile_write_uploaded_tp):
13608 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13609 gdb::unique_xmalloc_ptr.
13610 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13611 at_string, cond_string, cmd_strings>: Replace char pointers
13612 with gdb::unique_xmalloc_ptr.
13613
13614 2019-01-10 Pedro Alves <palves@redhat.com>
13615
13616 * solib-target.c (library_list_start_library): Don't xstrdup name.
13617
13618 2019-01-10 Pedro Alves <palves@redhat.com>
13619
13620 * mdebugread.c (parse_partial_symbols): Use
13621 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13622
13623 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13624
13625 * linux-fork.c (scoped_switch_fork_info)
13626 <~scoped_switch_fork_info>: Fix incorrect variable name.
13627
13628 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13629
13630 * linux-fork.c (scoped_switch_fork_info)
13631 <scoped_switch_fork_info>: Make explicit.
13632 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13633
13634 2019-01-10 Tom Tromey <tom@tromey.com>
13635
13636 * objfiles.h (objfile::reset_psymtabs): Update.
13637 * objfiles.c (objfile::objfile): Update.
13638 * psymtab.h (psymtab_storage::obstack): Update.
13639 (psymtab_storage::m_obstack): Use gdb::optional.
13640 (class psymtab_storage): Update comment. Remove objfile
13641 parameter.
13642 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13643
13644 2019-01-10 Tom Tromey <tom@tromey.com>
13645
13646 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13647 <free_psymtabs>: Now private.
13648 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13649 (allocate_psymtab): Use new method.
13650
13651 2019-01-10 Tom Tromey <tom@tromey.com>
13652
13653 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13654 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13655 * mdebugread.c (parse_partial_symbols): Use
13656 allocate_dependencies.
13657 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13658 allocate_dependencies.
13659 (process_psymtab_comp_unit_reader)
13660 (build_type_psymtab_dependencies): Likewise.
13661 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13662
13663 2019-01-10 Tom Tromey <tom@tromey.com>
13664
13665 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13666 PSYMBOL_SET_LANGUAGE.
13667 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13668
13669 2019-01-10 Tom Tromey <tom@tromey.com>
13670
13671 * psymtab.h (psymtab_storage::obstack): New method.
13672 <m_obstack>: Rename from obstack; now private.
13673 * psymtab.c (psymtab_storage): Update.
13674 * dwarf2read.c (create_addrmap_from_index)
13675 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13676 Update.
13677
13678 2019-01-10 Tom Tromey <tom@tromey.com>
13679
13680 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13681 * objfiles.h (objfile::reset_psymtabs): New method.
13682
13683 2019-01-10 Tom Tromey <tom@tromey.com>
13684
13685 * symmisc.c (print_symbol_bcache_statistics): Update.
13686 (print_objfile_statistics): Update.
13687 * symfile.c (reread_symbols): Update.
13688 * psymtab.h (class psymtab_storage): New.
13689 * psymtab.c (psymtab_storage): New constructor.
13690 (~psymtab_storage): New destructor.
13691 (require_partial_symbols): Update.
13692 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13693 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13694 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13695 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13696 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13697 (start_psymtab_common, end_psymtab_common)
13698 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13699 (allocate_psymtab): Update.
13700 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13701 Update.
13702 (dump_psymtab_addrmap, maintenance_print_psymbols)
13703 (maintenance_check_psymtabs): Update.
13704 (class objfile_psymtabs): Move to objfiles.h.
13705 * psympriv.h (discard_psymtab): Now inline.
13706 (psymtab_discarder::psymtab_discarder): Update.
13707 (psymtab_discarder::~psymtab_discarder): Update.
13708 (ALL_OBJFILE_PSYMTABS): Rewrite.
13709 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13710 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13711 Remove fields.
13712 <partial_symtabs>: New field.
13713 (class objfile_psymtabs): Move from psymtab.h. Update.
13714 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13715 psymbol_cache.
13716 (objfile::~objfile): Don't destroy psymbol_cache.
13717 * mdebugread.c (parse_partial_symbols): Update.
13718 * dwarf2read.c (create_addrmap_from_index)
13719 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13720 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13721 (add_partial_subprogram, dwarf2_ranges_read): Update.
13722 * dwarf-index-write.c (write_address_map)
13723 (write_one_signatured_type, recursively_write_psymbols)
13724 (class debug_names, class debug_names, write_psymtabs_to_index):
13725 Update.
13726
13727 2019-01-10 Tom Tromey <tom@tromey.com>
13728
13729 * symtab.h (SYMBOL_SET_NAMES): Update.
13730 (symbol_set_names): Update.
13731 (MSYMBOL_SET_NAMES): Update.
13732 * symtab.c (symbol_set_names): Change argument to be an
13733 objfile_per_bfd_storage.
13734 * psymtab.c (add_psymbol_to_bcache): Update.
13735 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13736
13737 2019-01-10 Tom Tromey <tom@tromey.com>
13738
13739 * symtab.c (create_demangled_names_hash): Change argument to be an
13740 objfile_per_bfd_storage.
13741 (symbol_set_names): Update.
13742
13743 2019-01-10 Tom Tromey <tom@tromey.com>
13744
13745 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13746 init_psymbol_list.
13747 * psymtab.c (init_psymbol_list): Do nothing if already called.
13748 * psympriv.h (init_psymbol_list): Add comment.
13749 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13750 init_psymbol_list.
13751 * dbxread.c (dbx_symfile_read): Unconditionally call
13752 init_psymbol_list.
13753
13754 2019-01-10 Tom Tromey <tom@tromey.com>
13755
13756 * xcoffread.c (scan_xcoff_symtab): Update.
13757 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13758 "where".
13759 * mdebugread.c (parse_partial_symbols)
13760 (handle_psymbol_enumerators): Update.
13761 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13762 * dbxread.c (read_dbx_symtab): Update.
13763 * psympriv.h (psymbol_placement): New enum.
13764 (add_psymbol_to_list): Update.
13765
13766 2019-01-10 Tom Tromey <tom@tromey.com>
13767
13768 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13769 static_psymbols parameters.
13770 (scan_xcoff_symtab): Update.
13771 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13772 static_psymbols parameters.
13773 * psympriv.h (start_psymtab_common): Update.
13774 * mdebugread.c (parse_partial_symbols): Update.
13775 * dwarf2read.c (create_partial_symtab): Update.
13776 * dbxread.c (read_dbx_symtab): Update.
13777 (start_psymtab): Remove global_psymbols and static_psymbols
13778 parameters.
13779
13780 2019-01-10 Tom Tromey <tom@tromey.com>
13781
13782 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13783 * psymtab.c (allocate_psymtab): Add comment.
13784 * psympriv.h (allocate_psymtab): Add comment.
13785 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13786 initializations.
13787 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13788
13789 2019-01-10 Tom Tromey <tom@tromey.com>
13790
13791 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13792 Don't declare.
13793 * mipsread.c: Include mdebugread.h.
13794 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13795 Declare.
13796 * elfread.c: Include mdebugread.h.
13797
13798 2019-01-09 Tom Tromey <tom@tromey.com>
13799
13800 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13801 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13802 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13803 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13804 (psym_lookup_symbol, psym_find_last_source_symtab)
13805 (psym_forget_cached_source_info, psym_print_stats)
13806 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13807 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13808 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13809 (psym_find_compunit_symtab_by_address)
13810 (maintenance_print_psymbols, maintenance_info_psymtabs)
13811 (maintenance_check_psymtabs): Use ranged for.
13812 * psymtab.h (class objfile_psymtabs): New.
13813 (require_partial_symbols): Return objfile_psymtabs.
13814 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13815
13816 2019-01-09 Tom Tromey <tom@tromey.com>
13817
13818 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13819 (find_pc_mapped_section, list_overlays_command)
13820 (map_overlay_command, unmap_overlay_command)
13821 (simple_overlay_update): Use all_objfiles.
13822 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13823 * printcmd.c (info_symbol_command): Use all_objfiles.
13824 * objfiles.h (ALL_OBJSECTIONS): Remove.
13825 * maint.c (maintenance_translate_address): Use all_objfiles.
13826 * gcore.c (gcore_create_callback): Use all_objfiles.
13827 (objfile_find_memory_regions): Likewise.
13828
13829 2019-01-09 Tom Tromey <tom@tromey.com>
13830
13831 * symtab.c (find_line_symtab, info_sources_command)
13832 (make_source_files_completion_list): Use objfile_compunits.
13833 * source.c (select_source_symtab): Use objfile_compunits.
13834 * objfiles.h (struct objfile): Update comment.
13835 (ALL_OBJFILES): Remove.
13836 (ALL_FILETABS): Remove.
13837 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13838 objfile_compunits.
13839
13840 2019-01-09 Tom Tromey <tom@tromey.com>
13841
13842 * symmisc.c (print_objfile_statistics, dump_objfile)
13843 (maintenance_print_symbols): Use compunit_filetabs.
13844 * source.c (forget_cached_source_info_for_objfile): Use
13845 compunit_filetabs.
13846 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13847 (ALL_FILETABS): Use compunit_filetabs.
13848 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13849 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13850
13851 2019-01-09 Tom Tromey <tom@tromey.com>
13852
13853 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13854 (compunit_filetabs): New.
13855 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13856 compunit_filetabs.
13857 (info_sources_command, make_source_files_completion_list): Remove
13858 declaration.
13859 * symmisc.c (print_objfile_statistics, dump_objfile)
13860 (maintenance_print_symbols): Remove declaration.
13861 (maintenance_info_symtabs): Use compunit_filetabs.
13862 (maintenance_info_line_tables): Likewise.
13863 * source.c (select_source_symtab): Change local variable name.
13864 (forget_cached_source_info_for_objfile): Remove declaration.
13865 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13866 * objfiles.c (objfile_relocate1): Remove declaration.
13867 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13868 declaration.
13869 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13870 * coffread.c (coff_symtab_read): Remove declaration.
13871 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13872 compunit_filetabs.
13873
13874 2019-01-09 Tom Tromey <tom@tromey.com>
13875
13876 * symtab.c (lookup_objfile_from_block)
13877 (find_pc_sect_compunit_symtab, search_symbols)
13878 (default_collect_symbol_completion_matches_break_on): Use
13879 objfile_compunits.
13880 * objfiles.h (ALL_COMPUNITS): Remove.
13881 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13882 * cp-support.c (add_symbol_overload_list_qualified): Use
13883 objfile_compunits.
13884 * ada-lang.c (ada_collect_symbol_completion_matches)
13885 (ada_add_global_exceptions): Use objfile_compunits.
13886
13887 2019-01-09 Tom Tromey <tom@tromey.com>
13888
13889 * source.c (select_source_symtab)
13890 (forget_cached_source_info_for_objfile): Remove declaration.
13891 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13892 declaration.
13893 * maint.c (count_symtabs_and_blocks): Remove declaration.
13894 * cp-support.c (add_symbol_overload_list_qualified): Remove
13895 declaration.
13896 * coffread.c (coff_symtab_read): Remove declaration.
13897 * symtab.c (lookup_symbol_in_objfile_symtabs)
13898 (basic_lookup_transparent_type_1): Use objfile_compunits.
13899 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13900 (info_sources_command, search_symbols)
13901 (default_collect_symbol_completion_matches_break_on)
13902 (make_source_files_completion_list): Remove declaration.
13903 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13904 (ada_collect_symbol_completion_matches)
13905 (ada_add_global_exceptions): Remove declaration.
13906 * linespec.c (iterate_over_all_matching_symtabs): Use
13907 objfile_compunits.
13908 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13909 (class objfile_compunits): New.
13910 (ALL_COMPUNITS): Use objfile_compunits.
13911 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13912 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13913 objfile_compunits.
13914 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13915
13916 2019-01-09 Tom Tromey <tom@tromey.com>
13917
13918 * symtab.c (search_symbols)
13919 (default_collect_symbol_completion_matches_break_on): Use
13920 objfile_msymbols.
13921 * ada-lang.c (ada_lookup_simple_minsym)
13922 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13923 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13924 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13925 objfile_msymbols.
13926 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13927 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13928 * objc-lang.c (find_methods): Use objfile_msymbols.
13929 (info_selectors_command, info_classes_command): Likewise.
13930 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13931 * objfiles.h (class objfile_msymbols): New.
13932 (ALL_OBJFILE_MSYMBOLS): Remove.
13933 (ALL_MSYMBOLS): Remove.
13934
13935 2019-01-09 Tom Tromey <tom@tromey.com>
13936
13937 * common/next-iterator.h (next_adapter): Add Iterator template
13938 parameter.
13939 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13940 (class all_objfiles_safe): New.
13941 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13942 * objfiles.c (put_objfile_before): Update comment.
13943 (add_separate_debug_objfile): Likewise.
13944 (free_all_objfiles): Use all_objfiles_safe.
13945 (objfile_purge_solibs): Likewise.
13946
13947 2019-01-09 Tom Tromey <tom@tromey.com>
13948
13949 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13950 (expand_symtab_containing_pc, lookup_static_symbol)
13951 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13952 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13953 all_objfiles.
13954 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13955 * breakpoint.c (create_overlay_event_breakpoint)
13956 (create_longjmp_master_breakpoint)
13957 (create_std_terminate_master_breakpoint)
13958 (create_exception_master_breakpoint): Use all_objfiles.
13959 * linux-thread-db.c (try_thread_db_load_from_pdir)
13960 (has_libpthread): Use all_objfiles.
13961 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13962 * linespec.c (iterate_over_all_matching_symtabs)
13963 (search_minsyms_for_name): Use all_objfiles.
13964 * maint.c (maintenance_info_sections): Use all_objfiles.
13965 * main.c (captured_main_1): Use all_objfiles.
13966 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13967 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13968 * guile/scm-pretty-print.c
13969 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13970 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13971 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13972 (maintenance_print_msymbols): Use all_objfiles.
13973 * source.c (select_source_symtab): Use all_objfiles.
13974 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13975 * symfile.c (remove_symbol_file_command)
13976 (expand_symtabs_matching, map_symbol_filenames): Use
13977 all_objfiles.
13978 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13979 all_objfiles.
13980 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13981 * objc-lang.c (find_methods): Use all_objfiles.
13982 * objfiles.c (have_partial_symbols, have_full_symbols)
13983 (have_minimal_symbols, qsort_cmp)
13984 (default_iterate_over_objfiles_in_search_order): Use
13985 all_objfiles.
13986 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13987 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13988 (maintenance_check_psymtabs): Use all_objfiles.
13989 (ALL_PSYMTABS): Remove.
13990 * compile/compile-object-run.c (do_module_cleanup): Use
13991 all_objfiles.
13992 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13993 * cp-support.c (add_symbol_overload_list_qualified): Use
13994 all_objfiles.
13995 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13996 Use all_objfiles.
13997 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13998 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13999 all_objfiles.
14000 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14001 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14002 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14003 Uses all_objfiles.
14004 * solib.c (solib_read_symbols): Use all_objfiles
14005
14006 2019-01-09 Tom Tromey <tom@tromey.com>
14007
14008 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14009 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14010 all_objfiles.
14011 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14012 * symmisc.c (print_symbol_bcache_statistics)
14013 (print_objfile_statistics, maintenance_print_objfiles)
14014 (maintenance_info_symtabs, maintenance_check_symtabs)
14015 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14016 all_objfiles.
14017 * source.c (forget_cached_source_info): Use all_objfiles.
14018 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14019 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14020 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14021 * objfiles.c (update_section_map): Use all_objfiles.
14022 (shared_objfile_contains_address_p): Likewise.
14023 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14024 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14025
14026 2019-01-09 Tom Tromey <tom@tromey.com>
14027
14028 * common/next-iterator.h: New file.
14029 * objfiles.h (class all_objfiles): New.
14030 (struct objfile_iterator): New.
14031
14032 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14033
14034 * NEWS: Move the description of the changed "frame", "select-frame",
14035 and "info frame" commands to the Changed commands section.
14036
14037 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14038
14039 * gdbtypes.c (check_stub_method_group): Remove handling of old
14040 mangling schemes.
14041 * linespec.c (find_methods): Likewise.
14042 * stabsread.c (read_member_functions): Likewise.
14043 * valops.c (search_struct_method): Likewise.
14044 (value_struct_elt_for_reference): Likewise.
14045 * NEWS: Mention this change.
14046
14047 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14048
14049 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14050 print_source_lines.
14051 * source.c (print_source_lines_base): Update line number check.
14052 (print_source_lines): New function.
14053 (source_lines_range::source_lines_range): New function.
14054 * source.h (class source_lines_range): New class.
14055 (print_source_lines): New declaration.
14056
14057 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14058
14059 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14060
14061 2019-01-08 Tom Tromey <tom@tromey.com>
14062 Simon Marchi <simon.marchi@ericsson.com>
14063
14064 PR gdb/24060
14065 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14066 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14067 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14068 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14069 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14070 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14071
14072 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14073
14074 * source.c (select_source_symtab): Move header comment to
14075 declaration in source.h.
14076 (forget_cached_source_info_for_objfile): Likewise.
14077 (forget_cached_source_info): Likewise.
14078 (identify_source_line): Likewise.
14079 * source.h (identify_source_line): Move declaration from symtab.h
14080 and add comment from source.c
14081 (print_source_lines): Likewise.
14082 (forget_cached_source_info_for_objfile): Likewise.
14083 (forget_cached_source_info): Likewise.
14084 (select_source_symtab): Likewise.
14085 (enum print_source_lines_flag): Move definition from symtab.h.
14086 * symtab.h (identify_source_line): Move declaration to source.h.
14087 (print_source_lines): Likewise.
14088 (forget_cached_source_info_for_objfile): Likewise.
14089 (forget_cached_source_info): Likewise.
14090 (select_source_symtab): Likewise.
14091 (enum print_source_lines_flag): Move definition to source.h.
14092 * tui/tui-hooks.c: Add 'source.h' include.
14093
14094 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14095
14096 * source.c (print_source_lines_base): Handle requests to print
14097 reverse line number sequences, and guard against empty lines
14098 string.
14099
14100 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14101
14102 * source.c (print_source_lines_base): Fix skip of '\r' if next
14103 character is '\n'.
14104
14105 2019-01-06 Tom Tromey <tom@tromey.com>
14106
14107 * c-exp.y (struct c_parse_state) <macro_original_text,
14108 expansion_obstack>: New member.
14109 (macro_original_text, expansion_obstack): Remove globals.
14110 (scan_macro_expansion, scanning_macro_expansion)
14111 (finished_macro_expansion): Update.
14112 (scan_macro_cleanup): Remove.
14113 (yylex, c_parse): Update.
14114
14115 2019-01-06 Tom Tromey <tom@tromey.com>
14116
14117 * c-exp.y (struct c_parse_state) <strings>: New member.
14118 (operator_stoken): Update.
14119
14120 2019-01-06 Tom Tromey <tom@tromey.com>
14121
14122 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14123 (union type_stack_elt) <typelist_val>: Now a pointer to
14124 std::vector.
14125 (type_stack_cleanup): Don't declare.
14126 (push_typelist): Update.
14127 * parse.c (pop_typelist): Return a std::vector.
14128 (push_typelist): Take a std::vector.
14129 (follow_types): Update. Do not free args.
14130 (type_stack_cleanup): Remove.
14131 * c-exp.y (struct c_parse_state): New.
14132 (cpstate): New global.
14133 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14134 (nonempty_typelist): Update.
14135 (func_mod): Create a new vector.
14136 (c_parse): Create a c_parse_state.
14137 (check_parameter_typelist): Do not delete params.
14138 (function_method): Update. Do not delete type_list.
14139
14140 2019-01-06 Tom Tromey <tom@tromey.com>
14141
14142 PR gdb/28155:
14143 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14144 check_typedef.
14145 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14146 (print_return_value): Likewise.
14147
14148 2019-01-05 Tom Tromey <tom@tromey.com>
14149
14150 * contrib/cleanup_check.py: Remove.
14151 * contrib/gcc-with-excheck: Remove.
14152 * contrib/exsummary.py: Remove.
14153 * contrib/excheck.py: Remove.
14154
14155 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14156
14157 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14158 NULL. Initialize tpprev to NULL instead of assigning it
14159 to NULL on the next statement.
14160 * windows-nat.c (windows_delete_thread): Remove check for
14161 main_thread_id before printing thread exit notifications.
14162 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14163 Remove thread ID check against main_thread_id.
14164 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14165 windows_delete_thread.
14166 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14167
14168 2019-01-04 Tom Tromey <tom@tromey.com>
14169
14170 * compile/compile.c (_initialize_compile): Use upper case for
14171 metasyntactic variables.
14172 * symmisc.c (_initialize_symmisc): Use upper case for
14173 metasyntactic variables.
14174 * psymtab.c (_initialize_psymtab): Use upper case for
14175 metasyntactic variables.
14176 * demangle.c (demangle_command): Use upper case for metasyntactic
14177 variables.
14178 (_initialize_demangler): Likewise.
14179 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14180 variables.
14181
14182 2019-01-03 Tom Tromey <tom@tromey.com>
14183
14184 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14185
14186 2019-01-03 Tom Tromey <tom@tromey.com>
14187
14188 * python/py-symtab.c (salpy_str): Update.
14189 (struct salpy_sal_object) <symtab>: Now a PyObject.
14190 (salpy_dealloc): Update.
14191 (del_objfile_sal): Use gdbpy_ref.
14192
14193 2019-01-03 Tom Tromey <tom@tromey.com>
14194
14195 * python/py-type.c (convert_field): Use new_reference. Return
14196 gdbpy_ref.
14197 (make_fielditem): Return gdbpy_ref.
14198 (typy_fields): Update.
14199 (typy_getitem): Update.
14200 (field_name): Return gdbpy_ref. Use new_reference.
14201 (typy_iterator_iternext): Update.
14202
14203 2019-01-03 Tom Tromey <tom@tromey.com>
14204
14205 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14206
14207 2019-01-03 Tom Tromey <tom@tromey.com>
14208
14209 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14210 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14211 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14212 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14213 (pspy_set_type_printers): Likewise.
14214 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14215 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14216 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14217 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14218 (objfpy_set_type_printers): Likewise.
14219
14220 2019-01-03 Tom Tromey <tom@tromey.com>
14221
14222 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14223 (gdbpy_print_stack): Use gdbpy_err_fetch.
14224 * python/python-internal.h (class gdbpy_err_fetch): New class.
14225 (class gdbpy_enter) <m_error_type, m_error_value,
14226 m_error_traceback>: Remove.
14227 <m_error>: New member.
14228 (gdbpy_exception_to_string): Don't declare.
14229 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14230 * python/py-value.c (convert_value_from_python): Use
14231 gdbpy_err_fetch.
14232 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14233 gdbpy_exception_to_string.
14234 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14235 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14236 gdbpy_err_fetch.
14237
14238 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14239
14240 * linux-nat.c (delete_lwp_cleanup): Delete.
14241 (struct lwp_deleter): New struct.
14242 (lwp_info_up): New typedef.
14243 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14244 lwp_info_up.
14245
14246 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14247
14248 * linux-fork.c (class scoped_switch_fork_info): New class.
14249 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14250
14251 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14252
14253 * valops.c (find_overload_match): Remove use of null_cleanup, and
14254 calls to do_cleanups.
14255
14256 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14257
14258 * compile/compile-cplus-types.c
14259 (compile_cplus_instance::decl_name): Handle changes to
14260 cp_func_name.
14261 * cp-support.c (cp_func_name): Update header comment, update
14262 return type.
14263 * cp-support.h (cp_func_name): Update return type in declaration.
14264 * valops.c (find_overload_match): Move temp_func local to top
14265 level of function and change its type. Use temp_func to hold and
14266 delete temporary string obtained from cp_func_name.
14267
14268 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14269
14270 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14271 gdb::char_vector, remove cleanup, and update uses of `msg`.
14272
14273 2019-01-03 Jim Wilson <jimw@sifive.com>
14274
14275 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14276
14277 2019-01-02 Tom Tromey <tom@tromey.com>
14278
14279 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14280 (tdesc_parse_xml): Remove cleanups.
14281 * target-descriptions.h (make_cleanup_free_target_description):
14282 Don't declare.
14283 (target_desc_deleter): New struct.
14284 (target_desc_up): New typedef.
14285 * target-descriptions.c (target_desc_deleter::operator()): Rename
14286 from free_target_description.
14287 (make_cleanup_free_target_description): Remove.
14288
14289 2019-01-02 Tom Tromey <tom@tromey.com>
14290
14291 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14292 constructor, destructor.
14293 (linespec_parser): Remove typedef.
14294 (~linespec_parser): Rename from linespec_parser_delete.
14295 (linespec_lex_to_end, linespec_complete_label)
14296 (linespec_complete): Update.
14297 (decode_line_full): Remove cleanups.
14298 (decode_line_1): Update.
14299
14300 2019-01-02 Tom Tromey <tom@tromey.com>
14301
14302 * python/python-internal.h (inferior_to_inferior_object): Change
14303 return type.
14304 * python/py-exitedevent.c (create_exited_event_object): Update.
14305 * python/py-inferior.c (inferior_to_inferior_object): Return
14306 gdbpy_ref.
14307 (python_new_inferior, python_inferior_deleted)
14308 (thread_to_thread_object, delete_thread_object)
14309 (build_inferior_list, gdbpy_selected_inferior): Update.
14310 * python/py-infthread.c (create_thread_object): Update. Also fail
14311 if inferior_to_inferior_object fails.
14312
14313 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14314
14315 * inferior.h (class inferior) <displaced_step_state>: New field.
14316 * infrun.h (struct displaced_step_state): Move here from
14317 infrun.c. Initialize fields, add constructor.
14318 <inf>: Remove field.
14319 <reset>: New method.
14320 * infrun.c (struct displaced_step_inferior_state): Move to
14321 infrun.h.
14322 (displaced_step_inferior_states): Remove.
14323 (get_displaced_stepping_state): Adust.
14324 (displaced_step_in_progress_any_inferior): Adjust.
14325 (displaced_step_in_progress_thread): Adjust.
14326 (displaced_step_in_progress): Adjust.
14327 (add_displaced_stepping_state): Remove.
14328 (get_displaced_step_closure_by_addr): Adjust.
14329 (remove_displaced_stepping_state): Remove.
14330 (infrun_inferior_exit): Call displaced_step_state.reset.
14331 (use_displaced_stepping): Don't check for NULL.
14332 (displaced_step_prepare_throw): Call
14333 get_displaced_stepping_state.
14334 (displaced_step_fixup): Don't check for NULL.
14335 (prepare_for_detach): Don't check for NULL.
14336
14337 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14338
14339 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14340 in case of call that did not complete.
14341
14342 2019-01-02 Andrey Utkin <autkin@undo.io>
14343
14344 * symfile.c (find_separate_debug_file): Fix search of debug files for
14345 remote debuggee.
14346
14347 2019-01-02 Tom Tromey <tom@tromey.com>
14348
14349 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14350 indentation.
14351 * python/py-frame.c (frapy_older): Remove cast.
14352 (frapy_newer): Likewise.
14353 * python/py-breakpoint.c (local_setattro): Remove cast.
14354 * python/py-arch.c (archpy_name): Remove local variable.
14355 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14356
14357 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14358
14359 * unittests/basic_string_view/element_access/char/empty.cc:
14360 Fix year range in copyright header.
14361
14362 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14363
14364 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14365 Delete.
14366 <operator==>: Update with for removed field.
14367 <hash>: Likewise.
14368 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14369 <isa_features>: ...this.
14370 <abi_features>: New field.
14371 (riscv_isa_flen): Update comment.
14372 (riscv_abi_xlen): New declaration.
14373 (riscv_abi_flen): New declaration.
14374 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14375 isa_features.
14376 (riscv_abi_xlen): New function.
14377 (riscv_isa_flen): Update to get answer from isa_features.
14378 (riscv_abi_flen): New function.
14379 (riscv_has_fp_abi): Update to get answer from abi_features.
14380 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14381 xlen and flen.
14382 (riscv_call_info) <xlen, flen>: Update comment.
14383 (riscv_call_arg_struct): Remove invalid assertions
14384 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14385 is removed.
14386 (riscv_gdbarch_init): Gather isa features and abi features
14387 separately, ensure both match on the gdbarch when reusing an old
14388 gdbarch. Relax an error check to allow 32-bit abi float to run on
14389 a target with 64-bit float hardware.
14390
14391 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14392
14393 * source.c (search_command_helper): Stop reverse search
14394 when line 1 has been searched.
14395
14396 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14397
14398 * record-full.c (record_full_base_target::close): Rewrite
14399 record_full_core_buf_list free logic.
14400
14401 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14402
14403 * break-catch-syscall.c (print_one_catch_syscall): xfree
14404 the last text.
14405
14406 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14407
14408 * top.c (print_gdb_version): Update Copyright year in version
14409 message.
14410
14411 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14412
14413 Update copyright year range in all GDB files.
14414
14415 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14416
14417 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14418
14419 For older changes see ChangeLog-2018.
14420 \f
14421 Local Variables:
14422 mode: change-log
14423 left-margin: 8
14424 fill-column: 74
14425 version-control: never
14426 coding: utf-8
14427 End:
14428