addrmap: use gdb_static_assert for type size assertions
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2
3 * addrmap.c: Add static assertions of type size, moved from
4 _initialize_addrmap.
5 (_initialize_addrmap): Remove.
6
7 2019-10-29 Christian Biesinger <cbiesinger@google.com>
8
9 * coffread.c (record_minimal_symbol): Update.
10 (process_coff_symbol): Update.
11 * dbxread.c (read_dbx_symtab): Update.
12 * dwarf2read.c (add_partial_symbol): Update.
13 (fixup_go_packaging): Update.
14 (load_partial_dies): Update.
15 (new_symbol): Update.
16 * elfread.c (record_minimal_symbol): Change signature to use
17 gdb::string_view instead of name+len.
18 (elf_symtab_read): Update.
19 (elf_rel_plt_read): Update.
20 * mdebugread.c (parse_partial_symbols): Update.
21 (handle_psymbol_enumerators): Update.
22 (new_symbol): Update.
23 * minsyms.c (minimal_symbol_reader::record_full): Change signature
24 to use gdb::string_view instead of name+len.
25 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
26 * psympriv.h (add_psymbol_to_list): Likewise.
27 * psymtab.c (add_psymbol_to_bcache): Likewise.
28 (add_psymbol_to_list): Likewise.
29 * stabsread.c (define_symbol): Update.
30 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
31 * symtab.h (SYMBOL_SET_NAMES): Likewise.
32 (symbol_set_names): Likewise.
33 * xcoffread.c (scan_xcoff_symtab): Update.
34
35 2019-10-29 Christian Biesinger <cbiesinger@google.com>
36
37 * symtab.h (symbol_set_names): Document that copy_name must be
38 set to true for non-nullterminated strings.
39 * symtab.c (symbol_set_names): Only make a nullterminated copy of
40 linkage_name if the entry was not found and we need to demangle.
41
42 2019-10-29 Christian Biesinger <cbiesinger@google.com>
43
44 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
45 * dwarf2-frame.c (bsearch_fde_cmp): Update.
46 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
47 * gdbsupport/gdb_binary_search.h: New file.
48
49 2019-10-29 Christian Biesinger <cbiesinger@google.com>
50
51 * NEWS: Mention new --with-system-gdbinit-dir option.
52 * config.in: Regenerate.
53 * configure: Regenerate.
54 * configure.ac: Add new option --with-system-gdbinit-dir.
55 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
56 for a ".gdb" suffix.
57 * main.c (get_init_files): Change system_gdbinit argument to
58 a vector and return the files in SYSTEM_GDBINIT_DIR in
59 addition to SYSTEM_GDBINIT.
60 (captured_main_1): Update.
61 (print_gdb_help): Update.
62 * top.c (print_gdb_configuration): Also print the value of
63 SYSTEM_GDBINIT_DIR.
64
65 2019-10-28 Christian Biesinger <cbiesinger@google.com>
66
67 * gdbsupport/common-utils.h (startswith): Add an overloaded version
68 that takes gdb::string_view arguments.
69
70 2019-10-26 Tom de Vries <tdevries@suse.de>
71
72 * aarch64-linux-tdep.c: Fix typos in comments.
73 * aarch64-tdep.c: Same.
74 * ada-lang.c: Same.
75 * amd64-nat.c: Same.
76 * arc-tdep.c: Same.
77 * arch/aarch64-insn.c: Same.
78 * block.c: Same.
79 * breakpoint.h: Same.
80 * btrace.h: Same.
81 * c-varobj.c: Same.
82 * cli/cli-decode.c: Same.
83 * cli/cli-script.c: Same.
84 * cli/cli-utils.h: Same.
85 * coff-pe-read.c: Same.
86 * coffread.c: Same.
87 * compile/compile-cplus-symbols.c: Same.
88 * compile/compile-object-run.c: Same.
89 * completer.c: Same.
90 * corelow.c: Same.
91 * cp-support.c: Same.
92 * demangle.c: Same.
93 * dwarf-index-write.c: Same.
94 * dwarf2-frame.c: Same.
95 * dwarf2-frame.h: Same.
96 * eval.c: Same.
97 * frame-base.h: Same.
98 * frame.h: Same.
99 * gdbcmd.h: Same.
100 * gdbtypes.h: Same.
101 * gnu-nat.c: Same.
102 * guile/scm-objfile.c: Same.
103 * i386-tdep.c: Same.
104 * i386-tdep.h: Same.
105 * infcall.c: Same.
106 * infcall.h: Same.
107 * linux-nat.c: Same.
108 * m68k-tdep.c: Same.
109 * macroexp.c: Same.
110 * memattr.c: Same.
111 * mi/mi-cmd-disas.c: Same.
112 * mi/mi-getopt.h: Same.
113 * mi/mi-main.c: Same.
114 * minsyms.c: Same.
115 * nat/aarch64-sve-linux-sigcontext.h: Same.
116 * objfiles.h: Same.
117 * ppc-linux-nat.c: Same.
118 * ppc-linux-tdep.c: Same.
119 * ppc-tdep.h: Same.
120 * progspace.h: Same.
121 * prologue-value.h: Same.
122 * python/py-evtregistry.c: Same.
123 * python/py-instruction.h: Same.
124 * record-btrace.c: Same.
125 * record-full.c: Same.
126 * remote.c: Same.
127 * rs6000-tdep.c: Same.
128 * ser-tcp.c: Same.
129 * sol-thread.c: Same.
130 * sparc-sol2-tdep.c: Same.
131 * sparc64-tdep.c: Same.
132 * stabsread.c: Same.
133 * symfile.c: Same.
134 * symtab.h: Same.
135 * target.c: Same.
136 * tracepoint.c: Same.
137 * tui/tui-data.h: Same.
138 * tui/tui-io.c: Same.
139 * tui/tui-win.c: Same.
140 * tui/tui.c: Same.
141 * unittests/rsp-low-selftests.c: Same.
142 * user-regs.h: Same.
143 * utils.c: Same.
144 * utils.h: Same.
145 * valarith.c: Same.
146 * valops.c: Same.
147 * valprint.c: Same.
148 * valprint.h: Same.
149 * value.c: Same.
150 * value.h: Same.
151 * varobj.c: Same.
152 * x86-nat.h: Same.
153 * xtensa-tdep.c: Same.
154
155 2019-10-25 Ali Tamur <tamur@google.com>
156
157 * charset.c (find_charset_names): Reflect API change.
158
159 2019-10-25 Christian Biesinger <cbiesinger@google.com>
160
161 * symtab.c (struct demangled_name_entry): Change demangled name
162 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
163 part of the struct anymore.
164 (symbol_set_names): No longer obstack allocate + copy the demangled
165 name, just store the allocated name from bfd.
166
167 2019-10-25 Tom Tromey <tromey@adacore.com>
168
169 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
170 (bsearch_cie_cmp, add_cie): Remove.
171 (find_cie): Reimplement.
172 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
173 (dwarf2_build_frame_info): Update.
174
175 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
176
177 PR gdb/25126
178 * symfile.c (reread_symbols): Call forget_cached_source_info to
179 clear the stale source cache.
180
181 2019-10-24 Christian Biesinger <cbiesinger@google.com>
182
183 * configure: Regenerate.
184 * configure.ac: Remove code that sets python_has_threads.
185
186 2019-10-24 Christian Biesinger <cbiesinger@google.com>
187
188 * config.in: Regenerate.
189 * configure: Regenerate.
190 * configure.ac: Remove the code that uses sed to get the python
191 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
192
193 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
194
195 * python/py-progspace.c (pspy_block_for_pc): Return None for all
196 error paths.
197
198 2019-10-23 Tom Tromey <tom@tromey.com>
199
200 * arc-tdep.c: Remove ".." from include.
201 * frv-tdep.c: Remove ".." from include.
202 * lm32-tdep.c: Remove ".." from include.
203 * microblaze-tdep.c: Remove ".." from include.
204 * or1k-tdep.h: Remove ".." from include.
205 * s12z-tdep.c: Remove ".." from include.
206 * Makefile.in (OPCODES_CFLAGS): Add comment.
207 (TOP_CFLAGS): New variable.
208 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
209
210 2019-10-23 Tom Tromey <tom@tromey.com>
211
212 * Makefile.in (READLINE_DIR): Update.
213
214 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
215
216 * infcall.c (call_function_by_hand_dummy): Fix the function
217 comment. And extract out a code section into...
218 (reserve_stack_space): ...this new function.
219
220 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
221
222 * infcall.c (value_arg_coerce): Remove an unused parameter.
223 (call_function_by_hand_dummy): Update the call to
224 'value_arg_coerce'.
225
226 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
227
228 * infcall.c (call_function_by_hand_dummy): Refactor.
229
230 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
231
232 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
233
234 2019-10-23 Tom Tromey <tom@tromey.com>
235
236 * configure: Rebuild.
237 * configure.ac: Don't check for sigprocmask.
238 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
239
240 2019-10-23 Tom Tromey <tom@tromey.com>
241
242 * configure: Rebuild.
243 * acinclude.m4: Use m4_include, not sinclude.
244
245 2019-10-23 Tom de Vries <tdevries@suse.de>
246
247 PR breakpoints/24687
248 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
249
250 2019-10-22 Christian Biesinger <cbiesinger@google.com>
251
252 * symtab.c (struct demangled_name_entry) <language>: Change from
253 bitfield to regular variable.
254
255 2019-10-22 Christian Biesinger <cbiesinger@google.com>
256
257 * symtab.c (struct demangled_name_entry): Add a constructor.
258 (free_demangled_name_entry): New function to call the destructor
259 for demangled_name_entry.
260 (create_demangled_names_hash): Pass free_demangled_name_entry to
261 htab_create_alloc.
262 (symbol_set_names): Call placement new for demangled_name_entry.
263 * utils.c: No longer include xxhash.h here, now that fast_hash
264 is inlined in the header.
265 * utils.h: Instead, include it here.
266
267 2019-10-22 Christian Biesinger <cbiesinger@google.com>
268
269 * Makefile.in: Link with libxxhash.
270 * config.in: Regenerate.
271 * configure: Regenerate.
272 * configure.ac: Search for libxxhash.
273 * utils.c (fast_hash): Use xxhash if present.
274
275 2019-10-22 Christian Biesinger <cbiesinger@google.com>
276
277 * utils.h (fast_hash): New function.
278 * symtab.c (hash_demangled_name_entry): Call new function
279 fast_hash.
280
281 2019-10-22 Christian Biesinger <cbiesinger@google.com>
282
283 * symtab.c (struct demangled_name_entry): Change type of mangled
284 to gdb::string_view. Also adds a constructor that takes the
285 mangled name.
286 (hash_demangled_name_entry): Update.
287 (eq_demangled_name_entry): Update.
288 (free_demangled_name_entry): New function to call the destructor
289 now that this is not a POD anymore.
290 (create_demangled_names_hash): Pass free_demangled_name_entry to
291 htab_create_alloc.
292 (symbol_set_names): Update.
293
294 2019-10-21 Ali Tamur <tamu@google.com>
295
296 * dwarf2read.c (dir_index): Change type.
297 (file_name_index): Likewise.
298 (line_header::include_dir_at): Change comment and implementation on
299 whether it is DWARF 5.
300 (line_header::is_valid_file_index): New function.
301 (line_header::file_name_at): Change comment and implementation on
302 whether it is DWARF 5.
303 (line_header::file_names): Change to private field renamed as
304 m_file_names and introduce a new accessor method.
305 (line_header::file_names_size): New method.
306 (line_header::include_dirs): Change to private field and rename as
307 m_include_dirs.
308 (dw2_get_file_names_reader): Define local var at a smaller scope and
309 reflect API change.
310 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
311 (process_structure_scope): Likewise.
312 (line_header::add_include_dir): Change message and reflect renaming.
313 (line_header::add_file_name): Likewise.
314 (read_formatted_entries): Handle DW_FORM_data16.
315 (dwarf_decode_line_header): Fix line header length calculation.
316 (psymtab_include_file_name): Change comment and API.
317 (lnp_state_machine::m_file): Update comment and reflect type change.
318 (lnp_state_machine::record_line): Reflect type change.
319 (dwarf_decode_lines): Reflect API change.
320 (file_file_name): Likewise.
321 (file_full_name): Likewise.
322
323 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
324
325 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
326
327 2019-10-21 Tom Tromey <tom@tromey.com>
328
329 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
330
331 2019-10-21 Tom Tromey <tom@tromey.com>
332
333 * configure.ac (nm.h): Conditionally create nm.h link. Subst
334 NM_H. Use AC_CONFIG_LINKS.
335 * configure: Rebuild.
336 * Makefile.in (NM_H): New variable.
337 (generated_files): Add NM_H. Remove gcore.
338 (nm.h, stamp-nmh): New targets.
339
340 2019-10-20 Tom Tromey <tom@tromey.com>
341
342 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
343 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
344 obsolete comment.
345 (put_objfile_before): Now static.
346
347 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
348
349 * gdbsupport/common-utils.h (startswith): Change return type to
350 bool.
351
352 2019-10-19 Christian Biesinger <cbiesinger@google.com>
353
354 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
355 * breakpoint.c (bp_locations_compare): Rename to...
356 (bp_location_is_less_than): ...this, and change to std::sort semantics.
357 (update_global_location_list): Use std::sort instead of qsort.
358 * buildsym.c (compare_line_numbers): Rename to...
359 (lte_is_less_than): ...this, and change to std::sort semantics.
360 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
361 instead of qsort.
362 * disasm.c (compare_lines): Rename to...
363 (line_is_less_than): ...this, and change to std::sort semantics.
364 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
365 of qsort.
366 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
367 (fde_is_less_than): ...this, and change to std::sort semantics.
368 (dwarf2_build_frame_info): Call std::sort instead of qsort.
369 * mdebugread.c (compare_blocks):
370 (block_is_less_than): ...this, and change to std::sort semantics.
371 (sort_blocks): Call std::sort instead of qsort.
372 * objfiles.c (qsort_cmp): Rename to...
373 (sort_cmp): ...this, and change to std::sort semantics.
374 (update_section_map): Call std::sort instead of qsort.
375 * remote.c (compare_pnums): Remove.
376 (map_regcache_remote_table): Call std::sort instead of qsort.
377 * utils.c (compare_positive_ints): Remove.
378 * utils.h (compare_positive_ints): Remove.
379 * xcoffread.c (compare_lte): Remove.
380 (arrange_linetable): Call std::sort instead of qsort.
381
382 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
383
384 * symfile.c (init_entry_point_info): Fix typo.
385 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
386
387 2019-10-18 Tom de Vries <tdevries@suse.de>
388
389 * aarch64-tdep.c: Fix typos in comments.
390 * ada-lang.c: Same.
391 * ada-tasks.c: Same.
392 * alpha-tdep.c: Same.
393 * alpha-tdep.h: Same.
394 * amd64-nat.c: Same.
395 * amd64-windows-tdep.c: Same.
396 * arc-tdep.c: Same.
397 * arc-tdep.h: Same.
398 * arch-utils.c: Same.
399 * arm-nbsd-tdep.c: Same.
400 * arm-tdep.c: Same.
401 * ax-gdb.c: Same.
402 * blockframe.c: Same.
403 * btrace.c: Same.
404 * c-varobj.c: Same.
405 * coff-pe-read.c: Same.
406 * coffread.c: Same.
407 * cris-tdep.c: Same.
408 * darwin-nat.c: Same.
409 * dbxread.c: Same.
410 * dcache.c: Same.
411 * disasm.c: Same.
412 * dtrace-probe.c: Same.
413 * dwarf-index-write.c: Same.
414 * dwarf2-frame-tailcall.c: Same.
415 * dwarf2-frame.c: Same.
416 * dwarf2read.c: Same.
417 * eval.c: Same.
418 * exceptions.c: Same.
419 * fbsd-tdep.c: Same.
420 * findvar.c: Same.
421 * frame.c: Same.
422 * frv-tdep.c: Same.
423 * gnu-v3-abi.c: Same.
424 * go32-nat.c: Same.
425 * h8300-tdep.c: Same.
426 * hppa-tdep.c: Same.
427 * i386-linux-tdep.c: Same.
428 * i386-tdep.c: Same.
429 * ia64-libunwind-tdep.c: Same.
430 * ia64-tdep.c: Same.
431 * infcmd.c: Same.
432 * infrun.c: Same.
433 * linespec.c: Same.
434 * linux-nat.c: Same.
435 * linux-thread-db.c: Same.
436 * machoread.c: Same.
437 * mdebugread.c: Same.
438 * mep-tdep.c: Same.
439 * mn10300-tdep.c: Same.
440 * namespace.c: Same.
441 * objfiles.c: Same.
442 * opencl-lang.c: Same.
443 * or1k-tdep.c: Same.
444 * osabi.c: Same.
445 * ppc-linux-nat.c: Same.
446 * ppc-linux-tdep.c: Same.
447 * ppc-sysv-tdep.c: Same.
448 * printcmd.c: Same.
449 * procfs.c: Same.
450 * record-btrace.c: Same.
451 * record-full.c: Same.
452 * remote-fileio.c: Same.
453 * remote.c: Same.
454 * rs6000-tdep.c: Same.
455 * s12z-tdep.c: Same.
456 * score-tdep.c: Same.
457 * ser-base.c: Same.
458 * ser-go32.c: Same.
459 * skip.c: Same.
460 * sol-thread.c: Same.
461 * solib-svr4.c: Same.
462 * solib.c: Same.
463 * source.c: Same.
464 * sparc-nat.c: Same.
465 * sparc-sol2-tdep.c: Same.
466 * sparc-tdep.c: Same.
467 * sparc64-tdep.c: Same.
468 * stabsread.c: Same.
469 * stack.c: Same.
470 * symfile.c: Same.
471 * symtab.c: Same.
472 * target-descriptions.c: Same.
473 * target-float.c: Same.
474 * thread.c: Same.
475 * utils.c: Same.
476 * valops.c: Same.
477 * valprint.c: Same.
478 * value.c: Same.
479 * varobj.c: Same.
480 * windows-nat.c: Same.
481 * xcoffread.c: Same.
482 * xstormy16-tdep.c: Same.
483 * xtensa-tdep.c: Same.
484
485 2019-10-17 Tom Tromey <tromey@adacore.com>
486
487 * configure: Rebuild.
488 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
489 in AC_CONFIG_FILES invocation.
490 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
491 new-style config.status invocation.
492
493 2019-10-17 Tom de Vries <tdevries@suse.de>
494
495 * arm-nbsd-nat.c: Fix typos in comments.
496 * arm-tdep.c: Same.
497 * darwin-nat-info.c: Same.
498 * dwarf2read.c: Same.
499 * elfread.c: Same.
500 * event-top.c: Same.
501 * findvar.c: Same.
502 * gdbtypes.c: Same.
503 * hppa-tdep.c: Same.
504 * i386-tdep.c: Same.
505 * jit.c: Same.
506 * main.c: Same.
507 * mdebugread.c: Same.
508 * moxie-tdep.c: Same.
509 * nto-procfs.c: Same.
510 * osabi.c: Same.
511 * ppc-linux-tdep.c: Same.
512 * remote.c: Same.
513 * riscv-tdep.c: Same.
514 * s390-tdep.c: Same.
515 * sh-tdep.c: Same.
516 * sparc-linux-tdep.c: Same.
517 * sparc-nat.c: Same.
518 * stack.c: Same.
519 * target-descriptions.c: Same.
520 * top.c: Same.
521 * varobj.c: Same.
522
523 2019-10-16 Tom Tromey <tom@tromey.com>
524
525 * objfiles.h (struct objfile) <original_name>: Now const.
526
527 2019-10-16 Christian Biesinger <cbiesinger@google.com>
528
529 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
530 pass on to sigsetjmp's second argument.
531 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
532
533 2019-10-16 Keith Seitz <keiths@redhat.com>
534
535 PR gdb/23567
536 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
537 sections whose size is greater than the file size.
538
539 2019-10-16 Jim Wilson <jimw@sifive.com>
540
541 * riscv-tdep.c (riscv_gcc_target_options): New.
542 (riscv_gnu_triplet_regexp): New.
543 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
544 set_gdbarch_gnu_triplet_regexp.
545
546 2019-10-16 Christian Biesinger <cbiesinger@google.com>
547
548 * Makefile.in: Add xml-builtin.h.
549 * features/feature_to_c.sh: Add an include for xml-builtin.h
550 to ensure that the compiler checks that the types match.
551 * xml-builtin.h: New file.
552 * xml-support.c (fetch_xml_builtin): Add missing const.
553 * xml-support.h: Remove declaration of xml_builtins.
554
555 2019-10-16 Tom de Vries <tdevries@suse.de>
556
557 PR tdep/25096
558 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
559 (amd64_classify_aggregate): ... here.
560 (amd64_classify_aggregate_field): Handled fiels of nested structs
561 recursively.
562
563 2019-10-16 Tom de Vries <tdevries@suse.de>
564
565 PR tdep/24104
566 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
567 that handles 'theclass'.
568
569 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * linespec.c (decode_digits_ordinary): Update comment.
572 * make-target-delegates: No longer need to handle VEC case.
573 * memrange.c (normalize_mem_ranges): Update comment.
574 * namespace.c (add_using_directive): Update comment.
575 * objc-lang.c (uniquify_strings): Update comment.
576 * ppc-linux-nat.c (struct thread_points): Update comment.
577 * probe.h (find_probes_in_objfile): Update comment.
578 * target.h (enum flash_preserve_mode): Update comment.
579 * varobj.c (varobj_restrict_range): Update comment.
580 * varobj.h (varobj_list_children): Update comment.
581
582 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
583
584 * Makefile.in: Remove references to vec.h and vec.c.
585 * aarch64-tdep.c: No longer include vec.h.
586 * ada-lang.c: Likewise.
587 * ada-lang.h: Likewise.
588 * arm-tdep.c: Likewise.
589 * ax.h: Likewise.
590 * breakpoint.h: Likewise.
591 * charset.c: Likewise.
592 * cp-support.h: Likewise.
593 * dtrace-probe.c: Likewise.
594 * dwarf2read.c: Likewise.
595 * extension.h: Likewise.
596 * gdb_bfd.c: Likewise.
597 * gdbsupport/gdb_vecs.h: Likewise.
598 * gdbsupport/vec.c: Remove.
599 * gdbsupport/vec.h: Remove.
600 * gdbthread.h: Likewise.
601 * guile/scm-type.c: Likewise.
602 * inline-frame.c: Likewise.
603 * machoread.c: Likewise.
604 * memattr.c: Likewise.
605 * memrange.h: Likewise.
606 * namespace.h: Likewise.
607 * nat/linux-btrace.h: Likewise.
608 * osdata.c: Likewise.
609 * parser-defs.h: Likewise.
610 * progspace.h: Likewise.
611 * python/py-type.c: Likewise.
612 * record-btrace.c: Likewise.
613 * rust-exp.y: Likewise.
614 * solib-target.c: Likewise.
615 * stap-probe.c: Likewise.
616 * target-descriptions.c: Likewise.
617 * target-memory.c: Likewise.
618 * target.h: Likewise.
619 * varobj.c: Likewise.
620 * varobj.h: Likewise.
621 * xml-support.h: Likewise.
622
623 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
624
625 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
626 Update for new std::vector based implementation.
627 (process_psymtab_comp_unit_reader): Likewise.
628 (scan_partial_symbols): Likewise.
629 (recursively_compute_inclusions): Likewise.
630 (compute_compunit_symtab_includes): Likewise.
631 (process_imported_unit_die): Likewise.
632 (queue_and_load_dwo_tu): Likewise.
633 (follow_die_sig_1): Likewise.
634 * gdb/dwarf2read.h: Remove DEF_VEC_P.
635 (typedef dwarf2_per_cu_ptr): Remove.
636 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
637 function.
638 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
639 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
640 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
641 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
642 std::vector.
643
644 2019-10-15 Tom Tromey <tromey@adacore.com>
645
646 * windows-nat.c (windows_nat_target::resume): Use %x when logging
647 TID.
648
649 2019-10-15 Tom Tromey <tromey@adacore.com>
650
651 * windows-nat.c (windows_nat_target::fetch_registers)
652 (windows_nat_target::store_registers): Rename "pid" to "tid".
653
654 2019-10-15 Tom Tromey <tromey@adacore.com>
655
656 * gdbarch.h, gdbarch.c: Rebuild.
657 * gdbarch.sh (gcc_target_options): Change return type to
658 std::string.
659 * compile/compile.c (get_args): Update.
660 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
661 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
662 std::string.
663 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
664 std::string.
665 * arch-utils.c (default_gcc_target_options): Return std::string.
666 * arch-utils.h (default_gcc_target_options): Return std::string.
667 * s390-tdep.c (s390_gcc_target_options): Return std::string.
668
669 2019-10-15 Christian Biesinger <cbiesinger@google.com>
670
671 * breakpoint.c (breakpoint_chain): Make static.
672 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
673 of accessing breakpoint_chain.
674
675 2019-10-15 Christian Biesinger <cbiesinger@google.com>
676
677 * breakpoint.c (iterate_over_breakpoints): Change function pointer
678 to a gdb::function_view and return value to bool.
679 * breakpoint.h (iterate_over_breakpoints): Likewise.
680 * dummy-frame.c (pop_dummy_frame_bpt): Update.
681 (pop_dummy_frame): Update.
682 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
683 (gdbscm_breakpoints): Update.
684 * python/py-breakpoint.c (build_bp_list): Update.
685 (gdbpy_breakpoints): Update.
686 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
687 Update.
688 (bpfinishpy_handle_stop): Update.
689 (bpfinishpy_handle_exit): Update.
690 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
691 (svr4_update_solib_event_breakpoints): Update.
692
693 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
694
695 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
696 when unwrapping single-field structs.
697
698 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
699
700 * dwarf2read.c: Remove includes.
701
702 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
703
704 * ui-out.c (ui_out::call_do_message): Silence
705 -Wformat-nonliteral warning.
706
707 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
708
709 * breakpoint.c: Remove some includes: continuations.h, skip.h,
710 mi/mi-main.h, readline/readline.h, readline/history.h. Add
711 include: readline/tilde.h.
712
713 2019-10-12 Christian Biesinger <cbiesinger@google.com>
714
715 * remote.c (remote_target::get_trace_status): Remove declaration of
716 trace_regblock_size.
717
718 2019-10-12 Christian Biesinger <cbiesinger@google.com>
719
720 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
721 (show_user): Remove declaration of cmdlist.
722 * cli/cli-cmds.h (max_user_call_depth): Declare.
723 * cli/cli-script.c (execute_user_command): Remove declaration
724 of max_user_call_depth.
725
726 2019-10-11 Jim Wilson <jimw@sifive.com>
727
728 * gdbsupport/print-utils.h (pulongest): Fix comment.
729 (plongest): Likewise.
730 (phex): Add missing comment, mention leading zeros.
731 (phex_nz): Add mention of no leading zeros to comment.
732
733 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
734 plongest instead of unsigned long long cast.
735
736 2019-10-10 Christian Biesinger <cbiesinger@google.com>
737
738 * main.c (captured_main_1): Include gdbtk.h and remove declarations
739 for external_editor_command and gdbtk_test.
740
741 2019-10-10 Christian Biesinger <cbiesinger@google.com>
742
743 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
744 * varobj.c (varobjdebug): Move comment to...
745 * varobj.h (varobjdebug): ...here, and declare.
746
747 2019-10-09 Tom Tromey <tom@tromey.com>
748
749 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
750 erase_data_content.
751
752 2019-10-09 Tom Tromey <tom@tromey.com>
753
754 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
755 * tui/tui-stack.c (tui_locator_window::rerender): Update.
756 * tui/tui-command.c (tui_cmd_window::resize)
757 (tui_refresh_cmd_win): Update.
758 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
759 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
760 * tui/tui-data.c (~tui_gen_win_info): Remove.
761 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
762 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
763 (tui_redisplay_readline, tui_mld_flush)
764 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
765 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
766 (tui_data_window::erase_data_content)
767 (tui_data_item_window::rerender)
768 (tui_data_item_window::refresh_window): Update.
769 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
770 (box_win, tui_gen_win_info::make_window)
771 (tui_gen_win_info::make_visible): Update.
772 (tui_delete_win): Remove.
773 * tui/tui-winsource.c
774 (tui_source_window_base::do_erase_source_content): Update.
775 (tui_show_source_line, tui_source_window_base::update_tab_width)
776 (tui_source_window_base::update_exec_info): Update.
777 * tui/tui-data.h (struct curses_deleter): New.
778 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
779 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
780
781 2019-10-09 Tom Tromey <tom@tromey.com>
782
783 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
784
785 2019-10-09 Tom Tromey <tom@tromey.com>
786
787 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
788 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
789
790 2019-10-09 Tom Tromey <tom@tromey.com>
791
792 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
793 window height directly.
794 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
795 declare.
796 * tui/tui-layout.c (tui_default_win_height): Remove.
797 (tui_default_win_viewport_height): Remove.
798
799 2019-10-09 Tom Tromey <tom@tromey.com>
800
801 * tui/tui.h: Remove comments.
802
803 2019-10-09 Tom de Vries <tdevries@suse.de>
804
805 * python/lib/gdb/printer/bound_registers.py: Use
806 '^builtin_type_bound128' as regexp argument for
807 add_builtin_pretty_printer.
808
809 2019-10-09 Christian Biesinger <cbiesinger@google.com>
810
811 * guile/guile.c (guile_extension_script_ops): Remove forward
812 declaration and mark as static.
813 (guile_script_ops): Likewise.
814 (extension_language_guile): Move further down in the file so
815 it can reference the definitions for guile_{extension_,}script_ops.
816
817 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
818
819 * s390-tdep.c (390_process_record): Handle new arch13 instructions
820 except SORTL, DFLTCC, and KDSA.
821
822 2019-10-08 Tom Tromey <tromey@adacore.com>
823
824 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
825 (struct safe_symbol_file_add_args): Remove.
826
827 2019-10-08 Tom Tromey <tromey@adacore.com>
828
829 * windows-nat.c: Don't include buildsym-legacy.h.
830
831 2019-10-08 Tom Tromey <tromey@adacore.com>
832
833 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
834
835 2019-10-08 Christian Biesinger <cbiesinger@google.com>
836
837 * gdbtypes.c (overload_debug): Move comment to header.
838 * gdbtypes.h (overload_debug): Declare.
839 * valops.c: Remove declaration of overload_debug, instead
840 include gdbtypes.h.
841
842 2019-10-08 Christian Biesinger <cbiesinger@google.com>
843
844 * language.c (show_language_command): Pass lang_frame_mismatch_warn
845 through _().
846 (lang_frame_mismatch_warn): Make const, mark with N_(), and
847 move comment...
848 * language.h (lang_frame_mismatch_warn): ... here. Also add
849 declaration.
850 * top.c (lang_frame_mismatch_warn): Remove declaration.
851 (check_frame_language_change): Pass lang_frame_mismatch_warn
852 through _().
853
854 2019-10-07 Christian Biesinger <cbiesinger@google.com>
855
856 * c-lang.h (vtbl_ptr_name): Declare.
857 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
858 it from the header.
859 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
860
861 2019-10-07 Christian Biesinger <cbiesinger@google.com>
862
863 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
864 gdb_static_assert.
865
866 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
867
868 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
869 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
870 * ctfread.c: New file.
871 * ctfread.h: New file.
872 * elfread.c: Include ctfread.h.
873 (struct elfinfo text_p): New member ctfsect.
874 (elf_locate_sections): Mark CTF section.
875 (elf_symfile_read): Call elfctf_build_psymtabs.
876 * Makefile.in (LIBCTF): Add.
877 (CLIBS): Use it.
878 (CDEPS): Likewise.
879 (DIST): Add ctfread.c.
880
881 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
882
883 * ctfread.c (struct nextfield): Renamed to ...
884 (struct ctf_nextfield): ... this.
885 (struct field_info): Renamed to ...
886 (strut ctf_field_info): ... this.
887 (attach_fields_to_type): Update for renamed structures.
888 (ctf_add_member_cb): Likewise.
889 (ctf_add_enum_member_cb): Likewise.
890 (process_struct_members): Likewise.
891 (process_enum_type): Likewise.
892
893 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
894
895 * tracectf.h: Rename, was ctf.h.
896 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
897 * tracefile.c: Likewise.
898 * tracepoint.c: Remove unused include ctf.h.
899 * mi/mi-main.c: Likewise.
900 * Makefile.in Replace ctf.c with tracectf.c.
901
902 2019-10-06 Joel Brobecker <brobecker@adacore.com>
903
904 * version.in: Change version number to "9.0.50.DATE-git".
905
906 2019-10-03 Tom Tromey <tom@tromey.com>
907
908 PR rust/24976:
909 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
910
911 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
912
913 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
914 cp_search_name_hash.
915 * NEWS: Add entry about nested function support.
916
917 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
918 Andrew Burgess <andrew.burgess@embecosm.com>
919
920 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
921 for nested static variables when searchin VAR_DOMAIN.
922 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
923 global scope, update comment.
924 (add_partial_subprogram): Call add_partial_subprogram recursively
925 for nested subroutines when processinng Fortran.
926 (load_partial_dies): Process the child entities of a subprogram
927 when processing Fortran.
928 (partial_die_parent_scope): Handle building scope
929 for Fortran nested functions.
930 (process_die): Record that nested functions have a scope.
931 (new_symbol): Always record Fortran subprograms on the global
932 symbol list.
933 (determine_prefix): How to build the prefix for Fortran
934 subprograms.
935
936 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
937
938 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
939 have just sent the thread a SIGSTOP and are waiting for it to
940 arrive.
941
942 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
943
944 * btrace.c (btrace_add_pc): Remove whitespace before the template
945 parameter in 'std::vector <...>'.
946 (parse_xml_btrace_block): Likewise.
947 (btrace_maint_decode_pt): Likewise.
948 (btrace_maint_update_packets): Likewise.
949 (btrace_maint_print_packets): Likewise.
950 * btrace.h (struct btrace_maint_info): Likewise.
951 * dwarf2read.c (struct type_unit_group): Likewise.
952 (build_type_psymtabs_reader): Likewise.
953 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
954 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
955 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
956
957 2019-10-03 Tom de Vries <tdevries@suse.de>
958
959 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
960 the first line of the help text for set/show style metadata.
961
962 2019-10-02 Tom Tromey <tromey@adacore.com>
963
964 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
965 * gdbsupport/common-inferior.c: New file.
966 * infcmd.c (startup_with_shell): Don't define.
967 * nat/fork-inferior.h (startup_with_shell): Don't declare.
968 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
969 * inferior.h (startup_with_shell): Don't declare.
970
971 2019-10-02 Christian Biesinger <cbiesinger@google.com>
972
973 * gdbsupport/gdb_assert.h: Include errors.h.
974 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
975
976 2019-10-02 Tom Tromey <tromey@adacore.com>
977
978 * NEWS: Add $_ada_exception entry.
979 * ada-lang.c (struct ada_catchpoint): Add constructor.
980 <m_kind>: New member.
981 (allocate_location_exception, re_set_exception): Remove
982 "ex" parameter.
983 (should_stop_exception): Compute $_ada_exception.
984 (check_status_exception, print_it_exception)
985 (print_one_exception, print_mention_exception): Remove
986 "ex" parameter.
987 (allocate_location_catch_exception, re_set_catch_exception)
988 (check_status_exception, print_it_catch_exception)
989 (print_one_catch_exception, print_mention_catch_exception)
990 (print_recreate_catch_exception)
991 (allocate_location_catch_exception_unhandled)
992 (re_set_catch_exception_unhandled)
993 (check_status_exception, print_it_catch_exception_unhandled)
994 (print_one_catch_exception_unhandled)
995 (print_mention_catch_exception_unhandled)
996 (print_recreate_catch_exception_unhandled)
997 (allocate_location_catch_assert, re_set_catch_assert)
998 (check_status_assert, print_it_catch_assert)
999 (print_one_catch_assert, print_mention_catch_assert)
1000 (print_recreate_catch_assert)
1001 (allocate_location_catch_handlers, re_set_catch_handlers)
1002 (check_status_handlers, print_it_catch_handlers)
1003 (print_one_catch_handlers, print_mention_catch_handlers)
1004 (print_recreate_catch_handlers): Remove.
1005 (create_ada_exception_catchpoint): Update.
1006 (initialize_ada_catchpoint_ops): Update.
1007
1008 2019-10-02 Tom Tromey <tromey@adacore.com>
1009
1010 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1011 (create_excep_cond_exprs): Simplify exception string computation.
1012 (ada_exception_catchpoint_cond_string): Likewise.
1013
1014 2019-10-02 Tom Tromey <tromey@adacore.com>
1015
1016 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1017 * ada-lang.c (lesseq_defined_than): Handle
1018 LOC_STATIC.
1019 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1020 parameter.
1021 (dwarf2_has_info): Likewise.
1022 (new_symbol): Set maybe_copied on symbol when
1023 appropriate.
1024 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1025 parameter.
1026 <can_copy>: New member.
1027 * elfread.c (record_minimal_symbol): Set maybe_copied
1028 on symbol when appropriate.
1029 (elf_symfile_read): Update call to dwarf2_has_info.
1030 * minsyms.c (lookup_minimal_symbol_linkage): New
1031 function.
1032 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1033 * symtab.c (get_symbol_address, get_msymbol_address):
1034 New functions.
1035 * symtab.h (get_symbol_address, get_msymbol_address):
1036 Declare.
1037 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1038 maybe_copied.
1039 (struct symbol, struct minimal_symbol) <maybe_copied>:
1040 New member.
1041
1042 2019-10-02 Tom Tromey <tromey@adacore.com>
1043
1044 * source.c (struct current_source_location): New.
1045 (current_source_key): New global.
1046 (current_source_symtab, current_source_line)
1047 (current_source_pspace): Remove.
1048 (get_source_location): New function.
1049 (get_current_source_symtab_and_line)
1050 (set_default_source_symtab_and_line)
1051 (set_current_source_symtab_and_line)
1052 (clear_current_source_symtab_and_line, select_source_symtab)
1053 (info_source_command, print_source_lines_base)
1054 (info_line_command, search_command_helper, _initialize_source):
1055 Update.
1056
1057 2019-10-02 Tom Tromey <tromey@adacore.com>
1058
1059 * source.c (select_source_symtab): Don't call
1060 decode_line_with_current_source.
1061
1062 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1063
1064 * symtab.c (lookup_global_symbol): Search global block.
1065
1066 2019-10-02 Tom Tromey <tromey@adacore.com>
1067
1068 * coffread.c (process_coff_symbol): Update.
1069 * dwarf2read.c (var_decode_location, new_symbol): Update.
1070 * mdebugread.c (parse_symbol): Update.
1071 * objfiles.c (relocate_one_symbol): Update.
1072 * stabsread.c (define_symbol, fix_common_block)
1073 (scan_file_globals): Update.
1074 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1075 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1076 * xcoffread.c (process_xcoff_symbol): Update.
1077
1078 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1079
1080 * MAINTAINERS: Update my email address.
1081
1082 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1083
1084 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1085 std::vector.
1086 (build_type_psymtabs_reader): Update for std::vector.
1087 (build_type_psymtab_dependencies): Likewise.
1088 * dwarf2read.h: Remove use of DEF_VEC_P.
1089 (typedef sig_type_ptr): Delete.
1090
1091 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1092
1093 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1094 to std::vector.
1095 (btrace_maint_decode_pt): Likewise, and move allocation of the
1096 vector outside of the loop.
1097 (btrace_maint_update_packets): Update to handle change from VEC to
1098 std::vector.
1099 (btrace_maint_print_packets): Likewise.
1100 (maint_info_btrace_cmd): Likewise.
1101 * btrace.h: Remove use of DEF_VEC_O.
1102 (typedef btrace_pt_packet_s): Delete.
1103 (struct btrace_maint_info) <packets>: Change fromm VEC to
1104 std::vector.
1105 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1106
1107 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1108
1109 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1110 make accesses into the vector constant references.
1111 (btrace_add_pc): Update for std::vector.
1112 (btrace_stitch_bts): Likewise.
1113 (parse_xml_btrace_block): Likewise.
1114 (btrace_maint_update_packets): Likewise.
1115 (btrace_maint_print_packets): Likewise.
1116 (maint_info_btrace_cmd): Likewise.
1117 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1118 std::vector.
1119 (btrace_data::empty): Likewise.
1120 (btrace_data_append): Likewise.
1121 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1122 (typedef btrace_block_s): Delete.
1123 (struct btrace_block): Add constructor.
1124 (struct btrace_data_bts) <blocks>: Change to std::vector.
1125 * nat/linux-btrace.c (perf_event_read_bts): Update for
1126 std::vector.
1127 (linux_read_bts): Likewise.
1128
1129 2019-10-01 Tom Tromey <tom@tromey.com>
1130
1131 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1132
1133 2019-10-01 Tom Tromey <tom@tromey.com>
1134
1135 * stack.c (print_frame, info_frame_command_core): Use
1136 styled_string.
1137 * linux-thread-db.c (try_thread_db_load_1)
1138 (try_thread_db_load_from_pdir_1): Use styled_string.
1139 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1140 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1141 (maybe_print_unsupported_script_warning)
1142 (maybe_print_script_not_found_warning): Use styled_string.
1143 * ada-lang.c (user_select_syms): Use styled_string.
1144
1145 2019-10-01 Tom Tromey <tom@tromey.com>
1146
1147 * p-lang.c (pascal_printstr): Use metadata style.
1148 * value.c (show_convenience): Use metadata style.
1149 * valprint.c (valprint_check_validity, val_print_optimized_out)
1150 (val_print_not_saved, val_print_unavailable)
1151 (val_print_invalid_address, generic_val_print, val_print)
1152 (value_check_printable, val_print_array_elements): Use metadata
1153 style.
1154 * ui-out.h (class ui_out) <field_fmt>: New overload.
1155 <do_field_fmt>: Add style parameter.
1156 * ui-out.c (ui_out::field_fmt): New overload.
1157 * typeprint.c (type_print_unknown_return_type)
1158 (val_print_not_allocated, val_print_not_associated): Use metadata
1159 style.
1160 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1161 parameter.
1162 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1163 * tracepoint.c (tvariables_info_1): Use metadata style.
1164 * stack.c (print_frame_arg, print_frame_info, print_frame)
1165 (info_frame_command_core): Use metadata style.
1166 * skip.c (info_skip_command): Use metadata style.
1167 * rust-lang.c (rust_print_enum): Use metadata style.
1168 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1169 metadata style.
1170 * python/py-framefilter.c (py_print_single_arg): Use metadata
1171 style.
1172 * printcmd.c (do_one_display, print_variable_and_value): Use
1173 metadata style.
1174 * p-valprint.c (pascal_val_print)
1175 (pascal_object_print_value_fields): Use metadata style.
1176 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1177 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1178 parameter.
1179 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1180 * m2-valprint.c (m2_print_long_set): Use metadata style.
1181 * m2-typeprint.c (m2_print_type): Use metadata style.
1182 * infcmd.c (print_return_value_1): Use metadata style.
1183 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1184 * f-valprint.c (info_common_command_for_block): Use metadata
1185 style.
1186 * f-typeprint.c (f_type_print_base): Use metadata style.
1187 * expprint.c (print_subexp_standard): Use metadata style.
1188 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1189 * cli/cli-style.h (class cli_style_option): Add constructor.
1190 (metadata_style): Declare.
1191 * cli/cli-style.c (metadata_style): New global.
1192 (_initialize_cli_style): Register metadata style.
1193 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1194 parameter.
1195 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1196 * c-typeprint.c (c_type_print_base_struct_union)
1197 (c_type_print_base_1): Use metadata style.
1198 * breakpoint.c (watchpoint_value_print)
1199 (print_one_breakpoint_location): Use metadata style.
1200 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1201 style.
1202 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1203 style.
1204 * ada-valprint.c (val_print_packed_array_elements, printstr)
1205 (print_field_values, ada_val_print_ref, ada_val_print): Use
1206 metadata style.
1207 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1208 style.
1209 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1210 style.
1211 * ada-lang.c (user_select_syms): Use metadata style.
1212
1213 2019-10-01 Tom Tromey <tom@tromey.com>
1214
1215 * cli/cli-cmds.c (pwd_command): Style output.
1216
1217 2019-10-01 Pedro Alves <palves@redhat.com>
1218 Tom Tromey <tom@tromey.com>
1219
1220 * symtab.c (print_symbol_info): Use %ps.
1221 (print_msymbol_info): Use %ps.
1222 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1223 * printcmd.c (print_variable_and_value): Use %ps.
1224 * macrocmd.c (show_pp_source_pos): Use %ps.
1225 * infrun.c (print_exited_reason): Use ui_out::message.
1226 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1227 (describe_other_breakpoints): Use ui_out::message and new
1228 formats.
1229 (say_where): Use new formats.
1230 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1231 and new formats.
1232
1233 2019-10-01 Pedro Alves <palves@redhat.com>
1234 Tom Tromey <tom@tromey.com>
1235
1236 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1237 (test_gdb_formats): New function.
1238 (run_tests): Call it.
1239 (test_format_specifier): Update.
1240 * utils.h (fputs_filtered): Update comment.
1241 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1242 (fputs_styled_unfiltered): Declare.
1243 * utils.c (fputs_styled_unfiltered): New function.
1244 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1245 (vfprintf_filtered): Update.
1246 (vfprintf_unfiltered, vprintf_filtered): Update.
1247 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1248 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1249 disallow_ui_out_field>: New constants.
1250 (enum class field_kind): New.
1251 (struct base_field_s, struct signed_field_s): New.
1252 (signed_field): New function.
1253 (struct string_field_s): New.
1254 (string_field): New function.
1255 (struct styled_string_s): New.
1256 (styled_string): New function.
1257 (class ui_out) <message>: Add comment.
1258 <vmessage, call_do_message>: New methods.
1259 <do_message>: Add style parameter.
1260 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1261 methods.
1262 (ui_out::message): Rewrite.
1263 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1264 parameter.
1265 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1266 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1267 gdb_extensions parameter.
1268 (class format_piece): Add parameter to constructor.
1269 (n_int_args): New field.
1270 * gdbsupport/format.c (format_pieces::format_pieces): Add
1271 gdb_extensions parameter. Handle '*'.
1272 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1273 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1274 vfprintf_styled_no_gdbfmt.
1275 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1276 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1277 unfiltered output.
1278 * ui-style.h (struct ui_file_style) <ptr>: New method.
1279
1280 2019-10-01 Tom Tromey <tom@tromey.com>
1281
1282 * unittests/format_pieces-selftests.c: Update. Add final format.
1283 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1284 empty literal pieces.
1285
1286 2019-10-01 Tom Tromey <tom@tromey.com>
1287
1288 * ui-out.h (enum class ui_out_style_kind): Remove.
1289 (class ui_out) <field_string, field_stsream, do_field_string>:
1290 Change type of "style".
1291 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1292 (ui_out::field_string): Update.
1293 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1294 of "style".
1295 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1296 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1297 * stack.c (print_frame_arg, print_frame_info, print_frame):
1298 Update.
1299 * source.c (print_source_lines_base): Update.
1300 * solib.c (info_sharedlibrary_command): Update.
1301 * skip.c (info_skip_command): Update.
1302 * record-btrace.c (btrace_call_history_src_line)
1303 (btrace_call_history): Update.
1304 * python/py-framefilter.c (py_print_frame): Update.
1305 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1306 "style".
1307 * mi/mi-out.c (mi_ui_out::do_table_header)
1308 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1309 (mi_ui_out::do_field_string): Update.
1310 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1311 Update.
1312 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1313 "style".
1314 * cli-out.c (cli_ui_out::do_table_header)
1315 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1316 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1317 (cli_ui_out::do_field_fmt): Update.
1318 * breakpoint.c (print_breakpoint_location): Update.
1319 (update_static_tracepoint): Update.
1320
1321 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1322
1323 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1324 conversion of gdb_datadir.
1325 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1326 remove not needed c_str ().
1327
1328 2019-09-30 Ali Tamur <tamur@google.com>
1329
1330 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1331 (dwarf2_string_attr): Likewise.
1332
1333 2019-09-30 Ali Tamur <tamur@google.com>
1334
1335 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1336 (process_full_type_unit): Likewise.
1337 (dump_die_shallow): Likewise.
1338 (cu_debug_loc_section): Likewise.
1339
1340 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1341
1342 * minsyms.c (compare_minimal_symbols): Rename to...
1343 (minimal_symbol_is_less_than): ...this, and adjust to STL
1344 conventions (return bool, take arguments as references)
1345 (minimal_symbol_reader::install): Call std::sort instead
1346 of qsort.
1347
1348 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1349
1350 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1351 hash and why.
1352 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1353 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1354
1355 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1356
1357 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1358 * psympriv.h (add_psymbol_to_list): Move comment here and update
1359 it.
1360
1361 2019-09-29 Tom de Vries <tdevries@suse.de>
1362
1363 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1364 Use $tmpdir/$(basename "$output_file").dwz instead of
1365 "${output_file}.dwz".
1366
1367 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1368
1369 PR gdb/25045
1370 * hppa-linux-nat.c: Include gdbarch.h.
1371
1372 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1373
1374 * blockframe.c (find_pc_partial_function): Change return type to bool.
1375 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1376 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1377 (stub_gnu_ifunc_resolve_name): Likewise.
1378 * symtab.c (compare_filenames_for_search): Likewise.
1379 (compare_glob_filenames_for_search): Likewise.
1380 (matching_obj_sections): Likewise.
1381 (symbol_matches_domain): Likewise.
1382 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1383 (find_line_pc): Change return type to bool.
1384 (find_line_pc_range): Likewise.
1385 (producer_is_realview): Likewise.
1386 * symtab.h (symbol_matches_domain): Likewise.
1387 (find_pc_partial_function): Likewise.
1388 (find_pc_line_pc_range): Likewise.
1389 (in_gnu_ifunc_stub): Likewise.
1390 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1391 (find_line_pc): Likewise.
1392 (find_line_pc_range): Likewise.
1393 (matching_obj_sections): Likewise.
1394 (find_line_symtab): Change out parameter to bool.
1395 (producer_is_realview): Change return type to bool.
1396 (compare_filenames_for_search): Likewise.
1397 (compare_glob_filenames_for_search): Likewise.
1398
1399 2019-09-26 Tom Tromey <tom@tromey.com>
1400
1401 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1402 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1403 * gdb_usleep.h: Remove.
1404 * gdb_usleep.c: Remove.
1405 * utils.c: Don't include gdb_usleep.h.
1406
1407 2019-09-26 Tom Tromey <tromey@adacore.com>
1408
1409 * python/py-type.c (type_to_type_object): Call check_typedef
1410 for stub types.
1411
1412 2019-09-26 Tom Tromey <tom@tromey.com>
1413
1414 * utils.h (initialize_utils): Don't declare.
1415 * top.c (gdb_init): Don't call initialize_utils.
1416 * utils.c (initialize_utils): Remove. Move contents...
1417 (_initialize_utils): ... here.
1418
1419 2019-09-25 Tom Tromey <tom@tromey.com>
1420
1421 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1422 * utils.h (make_hex_string): Don't declare.
1423 * utils.c (make_hex_string): Remove.
1424
1425 2019-09-24 Tom de Vries <tdevries@suse.de>
1426
1427 PR gdb/23815
1428 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1429 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1430
1431 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1432
1433 * NEWS: Mention new simulator port for PRU.
1434
1435 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1436
1437 * ada-exp.y (write_object_remaining): Update.
1438 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1439 and eliminate the static buffer.
1440 (ada_decode_symbol): Update.
1441 (ada_la_decode): Update.
1442 (ada_sniff_from_mangled_name): Update.
1443 (is_valid_name_for_wild_match): Update.
1444 (ada_lookup_name_info::matches): Update and simplify.
1445 (name_matches_regex): Update.
1446 (ada_add_global_exceptions): Update.
1447 * ada-lang.h (ada_decode): Update signature.
1448 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1449 * dwarf-index-write.c (debug_names::insert): Update.
1450
1451 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1452
1453 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1454 formatting.
1455
1456 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1457
1458 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1459 Change "nonzero" to "true" in documentation.
1460
1461 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1462
1463 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1464 (_initialize_darwin_solib): Don't set
1465 darwin_so_ops.lookup_lib_global_symbol.
1466 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1467 set_gdbarch_iterate_over_objfiles_in_search_order.
1468 (elf_lookup_lib_symbol): Rename to...
1469 (svr4_iterate_over_objfiles_in_search_order): this, and update
1470 to iterate semantics.
1471 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1472 * solib.c (solib_global_lookup): Remove.
1473 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1474 (solib_global_lookup): Remove.
1475 * symtab.c (lookup_global_or_static_symbol): Remove call to
1476 solib_global_lookup.
1477
1478 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1479
1480 * NEWS: Move entries about default MI version now being
1481 version 3, and about the GDB/MI fix for multi-location
1482 breakpoints to the "since GDB 8.3" section.
1483
1484 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1485
1486 GDB 8.3.1 released.
1487
1488 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1489
1490 * NEWS: Mention that Cell/B.E. debugging support was removed.
1491 * MAINTAINERS: Remove spu target.
1492
1493 * config/djgpp/fnchange.lst: Remove entries for removed files.
1494
1495 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1496 spu-multiarch.o, and spu-tdep.o.
1497 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1498 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1499 spu-multiarch.c, and spu-tdep.c.
1500 * spu-linux-nat.c: Remove file.
1501 * spu-multiarch.c: Remove file.
1502 * spu-tdep.c: Remove file.
1503 * spu-tdep.h: Remove file.
1504 * solib-spu.c: Remove file.
1505 * solib-spu.h: Remove file.
1506
1507 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1508 * configure.nat (spu-linux): Remove.
1509 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1510 solib-multiarch.o from gdb_target_obs.
1511 (spu*-*-*): Remove.
1512
1513 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1514 feature flag.
1515 (ppc_linux_no_features): Update.
1516 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1517 Cell/B.E. support.
1518 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1519 (tdesc_powerpc_cell64l): Likewise.
1520 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1521 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1522 Cell/B.E. support.
1523 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1524 Do not include "features/rs6000/powerpc-cell32l.c" or
1525 "features/rs6000/powerpc-cell64l.c".
1526 (ppc_linux_spu_section): Remove.
1527 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1528 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1529 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1530 (ppc_linux_spe_context_lookup): Remove.
1531 (ppc_linux_spe_context_inferior_created): Remove.
1532 (ppc_linux_spe_context_solib_loaded): Remove.
1533 (ppc_linux_spe_context_solib_unloaded): Remove.
1534 (ppc_linux_spe_context): Remove.
1535 (struct ppu2spu_cache): Remove.
1536 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1537 (struct ppu2spu_data): Remove.
1538 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1539 ppu2spu_unwind): Remove.
1540 (ppc_linux_init_abi): Remove Cell/B.E. support.
1541 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1542
1543 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1544 (rs6000/powerpc-cell64l-expedite): Likewise
1545 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1546 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1547 rs6000/powerpc-cell64l.xml.
1548 * features/rs6000/powerpc-cell32l.xml: Remove.
1549 * features/rs6000/powerpc-cell64l.xml: Likewise.
1550 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1551 * features/rs6000/powerpc-cell64l.c: Likewise.
1552 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1553 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1554 * regformats/reg-spu.dat: Remove.
1555
1556 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1557 * corelow.c (struct spuid_list): Remove.
1558 (add_to_spuid_list): Remove.
1559 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1560 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1561 (remote_protocol_features): Remove associated entries.
1562 (_initialize_remote): No longer initialize them.
1563 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1564 * linux-nat.c (SPUFS_MAGIC): Remove.
1565 (linux_proc_xfer_spu): Remove.
1566 (spu_enumerate_spu_ids): Remove.
1567 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1568 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1569 (linux_make_corefile_notes): No longer call it.
1570
1571 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1572 (cooked_write_test): Likewise.
1573
1574 2019-09-20 Tom Tromey <tom@tromey.com>
1575
1576 * NEWS: Mention case-sensitivity of TUI commands.
1577 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1578 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1579 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1580
1581 2019-09-20 Tom Tromey <tom@tromey.com>
1582
1583 * tui/tui-source.c (tui_source_window::set_contents): Use
1584 make_unique_xstrdup.
1585 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1586 make_unique_xstrdup.
1587
1588 2019-09-20 Tom Tromey <tom@tromey.com>
1589
1590 * tui/tui-data.c: Remove separator comments.
1591 * tui/tui-layout.c: Remove separator comments.
1592 * tui/tui-win.c: Remove separator comments.
1593 * tui/tui-wingeneral.c: Remove separator comments.
1594
1595 2019-09-20 Tom Tromey <tom@tromey.com>
1596
1597 * tui/tui.h (strcat_to_buf): Don't declare.
1598 * tui/tui.c (strcat_to_buf): Remove.
1599
1600 2019-09-20 Tom Tromey <tom@tromey.com>
1601
1602 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1603 from "fullname".
1604 * tui/tui-source.c (tui_source_window::set_contents)
1605 (tui_source_window::location_matches_p)
1606 (tui_source_window::maybe_update): Update.
1607
1608 2019-09-20 Tom Tromey <tom@tromey.com>
1609
1610 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1611 Update.
1612 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1613 prefix.
1614 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1615 (tui_data_window::line_from_reg_element_no)
1616 (tui_data_window::first_reg_element_no_inline)
1617 (tui_data_window::show_registers)
1618 (tui_data_window::show_register_group)
1619 (tui_data_window::display_registers_from)
1620 (tui_data_window::display_registers_from_line)
1621 (tui_data_window::first_data_item_displayed)
1622 (tui_data_window::delete_data_content_windows)
1623 (tui_data_window::erase_data_content)
1624 (tui_data_window::do_scroll_vertical)
1625 (tui_data_window::refresh_window)
1626 (tui_data_window::check_register_values): Update.
1627
1628 2019-09-20 Tom Tromey <tom@tromey.com>
1629
1630 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1631 (struct tui_locator_window) <full_name, proc_name>: Now
1632 std::string.
1633 * tui/tui-stack.c (tui_locator_window::make_status_line)
1634 (tui_locator_window::set_locator_fullname)
1635 (tui_locator_window::set_locator_info): Update.
1636 * tui/tui-source.c (tui_source_window::set_contents)
1637 (tui_source_window::showing_source_p): Update.
1638
1639 2019-09-20 Tom Tromey <tom@tromey.com>
1640
1641 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1642 Don't call tui_locator_win_info_ptr.
1643
1644 2019-09-20 Tom Tromey <tom@tromey.com>
1645
1646 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1647
1648 2019-09-20 Tom Tromey <tom@tromey.com>
1649
1650 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1651 height for locator.
1652 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1653 * tui/tui-layout.c (show_source_disasm_command, show_data)
1654 (show_source_or_disasm_and_command): Use 1 as height for locator.
1655
1656 2019-09-20 Tom Tromey <tom@tromey.com>
1657
1658 * tui/tui.c (tui_enable): Update.
1659 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1660 Update.
1661 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1662 Update.
1663 * tui/tui-data.c (win_resized): Now bool.
1664 (tui_win_resized): Return bool.
1665 (tui_set_win_resized_to): Accept a bool.
1666
1667 2019-09-20 Tom Tromey <tom@tromey.com>
1668
1669 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1670 Change type of "refresh_values_only".
1671 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1672 type of "refresh_values_only".
1673
1674 2019-09-20 Tom Tromey <tom@tromey.com>
1675
1676 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1677 std::string.
1678 (tui_disassemble): Add "pos" parameter.
1679 (tui_disasm_window::set_contents): Simplify.
1680
1681 2019-09-20 Tom Tromey <tom@tromey.com>
1682
1683 * tui/tui-winsource.h (struct tui_source_window_base)
1684 <show_source_content>: Now private.
1685 * tui/tui-winsource.c
1686 (tui_source_window_base::show_source_content): Don't handle empty
1687 content case.
1688
1689 2019-09-20 Tom Tromey <tom@tromey.com>
1690
1691 * tui/tui-layout.c (show_source_disasm_command)
1692 (show_source_or_disasm_and_command): Don't call
1693 show_source_content.
1694
1695 2019-09-20 Tom Tromey <tom@tromey.com>
1696
1697 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1698 Declare.
1699 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1700 from tui_make_status_line.
1701 (tui_locator_window::rerender): Update.
1702
1703 2019-09-20 Tom Tromey <tom@tromey.com>
1704
1705 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1706 (tui_locator_window::rerender): Update.
1707
1708 2019-09-20 Tom Tromey <tom@tromey.com>
1709
1710 * tui/tui-winsource.h (struct tui_source_window_base)
1711 <~tui_source_window_base>: Don't declare.
1712 <fullname>: Remove.
1713 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1714 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1715 member.
1716 * tui/tui-source.c (tui_source_window::set_contents): Update.
1717 (tui_source_window::location_matches_p)
1718 (tui_source_window::maybe_update): Update.
1719
1720 2019-09-20 Tom Tromey <tom@tromey.com>
1721
1722 * tui/tui-winsource.h (~tui_source_element): Remove.
1723 (tui_source_element): Update.
1724 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1725 * tui/tui-winsource.c (tui_show_source_line): Update.
1726 * tui/tui-source.c (tui_source_window::set_contents): Update.
1727 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1728
1729 2019-09-20 Tom Tromey <tom@tromey.com>
1730
1731 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1732 declare.
1733 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1734 tui_clear_source_windows_detail.
1735 * tui/tui-winsource.h (struct tui_source_window_base)
1736 <clear_detail>: Don't declare.
1737 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1738 Remove.
1739 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1740
1741 2019-09-20 Tom Tromey <tromey@adacore.com>
1742
1743 PR ada/24919:
1744 * block.c (contained_in): Fix final return value.
1745
1746 2019-09-20 Alan Modra <amodra@gmail.com>
1747
1748 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1749 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1750 (read_indirect_string_from_dwz): Use bfd accessor.
1751 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1752 * machoread.c (macho_symfile_read_all_oso): Likewise.
1753 * solib.c (solib_bfd_open): Likewise.
1754
1755 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1756
1757 * eval.c: Move declaration of overload_resolution to...
1758 * value.h: ...here.
1759
1760 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1761
1762 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1763 * arm-linux-tdep.c: Likewise.
1764 * arm-nbsd-nat.c: Likewise.
1765 * arm-tdep.h: Declare arm_apcs_32.
1766 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1767
1768 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1769
1770 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1771 * dwarf2read.h: Declare dwarf_always_disassemble.
1772
1773 2019-09-19 Tom de Vries <tdevries@suse.de>
1774
1775 PR gdb/25009
1776 * source-cache.c (source_cache::ensure): Catch exception thrown during
1777 construction of the highlighter.
1778
1779 2019-09-18 Alan Modra <amodra@gmail.com>
1780
1781 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1782 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1783 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1784 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1785 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1786 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1787 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1788 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1789 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1790 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1791 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1792 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1793 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1794 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1795 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1796 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1797 * mi/mi-interp.c: Update throughout for bfd section macro and
1798 function changes.
1799 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1800 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1801
1802 2019-09-18 Tom Tromey <tom@tromey.com>
1803
1804 * NEWS: Add entry.
1805 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1806 call rl_initialize.
1807 (tui_enable): Do not call rl_initialize.
1808
1809 2019-09-18 Christian Groessler <chris@groessler.org>
1810
1811 * alpha-linux-nat.c: Include gdbarch.h.
1812
1813 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1814
1815 * ui-file.c: Include cli/cli-style.h.
1816 (term_cli_styling): Remove cli_styling declaration.
1817
1818 2019-09-18 Alan Modra <amodra@gmail.com>
1819
1820 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1821 to bfd_asymbol_section.
1822
1823 2019-09-18 Alan Modra <amodra@gmail.com>
1824
1825 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1826 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1827 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1828
1829 2019-09-18 Alan Modra <amodra@gmail.com>
1830
1831 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1832 * spu-linux-nat.c (spu_bfd_open): Likewise.
1833
1834 2019-09-18 Christian Biesinger <cbiesinger@google.com>
1835
1836 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1837 to bool to match definition in dwarf2read.c.
1838
1839 2019-09-17 Christian Biesinger <cbiesinger@google.com>
1840
1841 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1842 (print_signatures): Likewise.
1843 (trust_pad_over_xvs): Likewise.
1844 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1845 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1846 * arm-linux-nat.c (arm_apcs_32): Likewise.
1847 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1848 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1849 * arm-tdep.c (arm_debug): Likewise.
1850 (arm_apcs_32): Likewise.
1851 * auto-load.c (debug_auto_load): Likewise.
1852 (auto_load_gdb_scripts): Likewise.
1853 (global_auto_load): Likewise.
1854 (auto_load_local_gdbinit): Likewise.
1855 (auto_load_local_gdbinit_loaded): Likewise.
1856 * auto-load.h (global_auto_load): Likewise.
1857 (auto_load_local_gdbinit): Likewise.
1858 (auto_load_local_gdbinit_loaded): Likewise.
1859 * breakpoint.c (disconnected_dprintf): Likewise.
1860 (breakpoint_proceeded): Likewise.
1861 (automatic_hardware_breakpoints): Likewise.
1862 (always_inserted_mode): Likewise.
1863 (target_exact_watchpoints): Likewise.
1864 (_initialize_breakpoint): Update.
1865 * breakpoint.h (target_exact_watchpoints): Change to bool.
1866 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1867 * cli/cli-cmds.c (trace_commands): Likewise.
1868 * cli/cli-cmds.h (trace_commands): Likewise.
1869 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1870 to bool*.
1871 * cli/cli-logging.c (logging_overwrite): Change to bool.
1872 (logging_redirect): Likewise.
1873 (debug_redirect): Likewise.
1874 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1875 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1876 to bool.
1877 <boolean_option_def>: Update.
1878 (struct flag_option_def): Change default type of Context to bool
1879 from int.
1880 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1881 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1882 (get_setshow_command_value_string): Likewise.
1883 * cli/cli-style.c (cli_styling): Change to bool.
1884 (source_styling): Likewise.
1885 * cli/cli-style.h (source_styling): Likewise.
1886 (cli_styling): Likewise.
1887 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1888 to bool.
1889 * command.h (var_types): Update comment.
1890 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1891 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1892 bool.
1893 (debug_compile_cplus_scopes): Likewise.
1894 * compile/compile-internal.h (compile_debug): Likewise.
1895 * compile/compile.c (compile_debug): Likewise.
1896 (struct compile_options) <raw>: Likewise.
1897 * cp-support.c (catch_demangler_crashes): Likewise.
1898 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1899 (usr_cmd_cris_dwarf2_cfi): Likewise.
1900 * csky-tdep.c (csky_debug): Likewise.
1901 * darwin-nat.c (enable_mach_exceptions): Likewise.
1902 * dcache.c (dcache_enabled_p): Likewise.
1903 * defs.h (info_verbose): Likewise.
1904 * demangle.c (demangle): Likewise.
1905 (asm_demangle): Likewise.
1906 * dwarf-index-cache.c (debug_index_cache): Likewise.
1907 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1908 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1909 * dwarf2read.c (check_physname): Likewise.
1910 (use_deprecated_index_sections): Likewise.
1911 (dwarf_always_disassemble): Likewise.
1912 * eval.c (overload_resolution): Likewise.
1913 * event-top.c (set_editing_cmd_var): Likewise.
1914 (exec_done_display_p): Likewise.
1915 * event-top.h (set_editing_cmd_var): Likewise.
1916 (exec_done_display_p): Likewise.
1917 * exec.c (write_files): Likewise.
1918 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1919 (debug_fbsd_nat): Likewise.
1920 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1921 Likewise.
1922 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1923 <backtrace_past_entry> Likewise.
1924 * gdb-demangle.h (demangle): Likewise.
1925 (asm_demangle): Likewise.
1926 * gdb_bfd.c (bfd_sharing): Likewise.
1927 * gdbcore.h (write_files): Likewise.
1928 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1929 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1930 * gdbthread.h (print_thread_events): Likewise.
1931 * gdbtypes.c (opaque_type_resolution): Likewise.
1932 (strict_type_checking): Likewise.
1933 * gnu-nat.c (gnu_debug_flag): Likewise.
1934 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1935 * guile/scm-param.c (pascm_variable): Add boolval.
1936 (add_setshow_generic): Update.
1937 (pascm_param_value): Update.
1938 (pascm_set_param_value_x): Update.
1939 * hppa-tdep.c (hppa_debug): Change to bool..
1940 * infcall.c (may_call_functions_p): Likewise.
1941 (coerce_float_to_double_p): Likewise.
1942 (unwind_on_signal_p): Likewise.
1943 (unwind_on_terminating_exception_p): Likewise.
1944 * infcmd.c (startup_with_shell): Likewise.
1945 * inferior.c (print_inferior_events): Likewise.
1946 * inferior.h (startup_with_shell): Likewise.
1947 (print_inferior_events): Likewise.
1948 * infrun.c (step_stop_if_no_debug): Likewise.
1949 (detach_fork): Likewise.
1950 (debug_displaced): Likewise.
1951 (disable_randomization): Likewise.
1952 (non_stop): Likewise.
1953 (non_stop_1): Likewise.
1954 (observer_mode): Likewise.
1955 (observer_mode_1): Likewise.
1956 (set_observer_mode): Update.
1957 (sched_multi): Change to bool.
1958 * infrun.h (debug_displaced): Likewise.
1959 (sched_multi): Likewise.
1960 (step_stop_if_no_debug): Likewise.
1961 (non_stop): Likewise.
1962 (disable_randomization): Likewise.
1963 * linux-tdep.c (use_coredump_filter): Likewise.
1964 (dump_excluded_mappings): Likewise.
1965 * linux-thread-db.c (auto_load_thread_db): Likewise.
1966 (check_thread_db_on_load): Likewise.
1967 * main.c (captured_main_1): Update.
1968 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1969 xx2_opt, boolean_opt>: Change to bool.
1970 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1971 * maint.c (maintenance_profile_p): Likewise.
1972 (per_command_time): Likewise.
1973 (per_command_space): Likewise.
1974 (per_command_symtab): Likewise.
1975 * memattr.c (inaccessible_by_default): Likewise.
1976 * mi/mi-main.c (mi_async): Likewise.
1977 (mi_async_1): Likewise.
1978 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1979 * nat/fork-inferior.h (startup_with_shell): Likewise.
1980 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1981 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1982 * nios2-tdep.c (nios2_debug): Likewise.
1983 * or1k-tdep.c (or1k_debug): Likewise.
1984 * parse.c (parser_debug): Likewise.
1985 * parser-defs.h (parser_debug): Likewise.
1986 * printcmd.c (print_symbol_filename): Likewise.
1987 * proc-api.c (procfs_trace): Likewise.
1988 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1989 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1990 (set_parameter_value): Update.
1991 (add_setshow_generic): Update.
1992 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1993 to bool*.
1994 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1995 int*.
1996 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1997 * record-btrace.c (record_btrace_target::store_registers): Update.
1998 * record-full.c (record_full_memory_query): Change to bool.
1999 (record_full_stop_at_limit): Likewise.
2000 * record-full.h (record_full_memory_query): Likewise.
2001 * remote-notif.c (notif_debug): Likewise.
2002 * remote-notif.h (notif_debug): Likewise.
2003 * remote.c (use_range_stepping): Likewise.
2004 (interrupt_on_connect): Likewise.
2005 (remote_break): Likewise.
2006 * ser-tcp.c (tcp_auto_retry): Likewise.
2007 * ser-unix.c (serial_hwflow): Likewise.
2008 * skip.c (debug_skip): Likewise.
2009 * solib-aix.c (solib_aix_debug): Likewise.
2010 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2011 (spu_auto_flush_cache_p): Likewise.
2012 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2013 Likewise.
2014 (struct info_print_options) <quiet>: Likewise.
2015 * symfile-debug.c (debug_symfile): Likewise.
2016 * symfile.c (auto_solib_add): Likewise.
2017 (separate_debug_file_debug): Likewise.
2018 * symfile.h (auto_solib_add): Likewise.
2019 (separate_debug_file_debug): Likewise.
2020 * symtab.c (basenames_may_differ): Likewise.
2021 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2022 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2023 (struct info_types_options) <quiet>: Likewise.
2024 * symtab.h (demangle): Likewise.
2025 (basenames_may_differ): Likewise.
2026 * target-dcache.c (stack_cache_enabled_1): Likewise.
2027 (code_cache_enabled_1): Likewise.
2028 * target.c (trust_readonly): Likewise.
2029 (may_write_registers): Likewise.
2030 (may_write_memory): Likewise.
2031 (may_insert_breakpoints): Likewise.
2032 (may_insert_tracepoints): Likewise.
2033 (may_insert_fast_tracepoints): Likewise.
2034 (may_stop): Likewise.
2035 (auto_connect_native_target): Likewise.
2036 (target_stop_and_wait): Update.
2037 (target_async_permitted): Change to bool.
2038 (target_async_permitted_1): Likewise.
2039 (may_write_registers_1): Likewise.
2040 (may_write_memory_1): Likewise.
2041 (may_insert_breakpoints_1): Likewise.
2042 (may_insert_tracepoints_1): Likewise.
2043 (may_insert_fast_tracepoints_1): Likewise.
2044 (may_stop_1): Likewise.
2045 * target.h (target_async_permitted): Likewise.
2046 (may_write_registers): Likewise.
2047 (may_write_memory): Likewise.
2048 (may_insert_breakpoints): Likewise.
2049 (may_insert_tracepoints): Likewise.
2050 (may_insert_fast_tracepoints): Likewise.
2051 (may_stop): Likewise.
2052 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2053 (make_thread_apply_all_options_def_group): Change argument from int*
2054 to bool*.
2055 (thread_apply_all_command): Update.
2056 (print_thread_events): Change to bool.
2057 * top.c (confirm): Likewise.
2058 (command_editing_p): Likewise.
2059 (history_expansion_p): Likewise.
2060 (write_history_p): Likewise.
2061 (info_verbose): Likewise.
2062 * top.h (confirm): Likewise.
2063 (history_expansion_p): Likewise.
2064 * tracepoint.c (disconnected_tracing): Likewise.
2065 (circular_trace_buffer): Likewise.
2066 * typeprint.c (print_methods): Likewise.
2067 (print_typedefs): Likewise.
2068 * utils.c (debug_timestamp): Likewise.
2069 (sevenbit_strings): Likewise.
2070 (pagination_enabled): Likewise.
2071 * utils.h (sevenbit_strings): Likewise.
2072 (pagination_enabled): Likewise.
2073 * valops.c (overload_resolution): Likewise.
2074 * valprint.h (struct value_print_options) <prettyformat_arrays,
2075 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2076 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2077 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2078 Likewise.
2079 * windows-nat.c (new_console): Likewise.
2080 (cygwin_exceptions): Likewise.
2081 (new_group): Likewise.
2082 (debug_exec): Likewise.
2083 (debug_events): Likewise.
2084 (debug_memory): Likewise.
2085 (debug_exceptions): Likewise.
2086 (useshell): Likewise.
2087 * windows-tdep.c (maint_display_all_tib): Likewise.
2088 * xml-support.c (debug_xml): Likewise.
2089
2090 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2091
2092 * source.c (prepare_path_for_appending): New function.
2093 (openp): Make use of new function.
2094 (find_and_open_source): Search for the compilation directory and
2095 source file as a relative path beneath the directory search path.
2096
2097 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2098
2099 * source-cache.c (source_cache::get_line_charpos): Catch
2100 exceptions and return false, this matches the behaviour documented
2101 in the header file.
2102
2103 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2104
2105 * ada-tasks.c (info_task): Remove quoting of the task's name.
2106
2107 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2108
2109 * symfile.c (auto_solib_add): Replace comment with a reference
2110 to the header file.
2111
2112 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2113
2114 * NEWS: Mention that gdb can now be compiled with Python 3
2115 on Windows.
2116
2117 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2118
2119 * maint.c (maint_print_section_data::maint_print_section_data):
2120 Force use of 'float log10 (float)' by casting the argument to
2121 float.
2122
2123 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2124
2125 * maint.c: Add 'cmath' include.
2126 (struct maint_print_section_data): New structure.
2127 (print_section_index): New function.
2128 (print_bfd_section_info): Add header comment, small whitespace
2129 cleanup, and update to call new print_section_index function.
2130 (print_objfile_section_info): Likewise.
2131 (maint_obj_section_from_bfd_section): New function.
2132 (print_bfd_section_info_maybe_relocated): New function.
2133 (maintenance_info_sections): Add header comment, always use
2134 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2135
2136 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2137
2138 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2139 inner scope, add check that the objfile has psymtabs before
2140 checking psymtabs_addrmap.
2141 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2142
2143 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2144
2145 * NEWS: Announce that Ada task names are now shown at more places,
2146 and between quotes (except in info task output).
2147 * gdb/ada-tasks.c (task_to_str): New function.
2148 (display_current_task_id): Call task_to_str.
2149 (task_command_1): Likewise.
2150 (print_ada_task_info): In non-mi mode, Properly align headers and data
2151 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2152
2153 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2154
2155 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2156 prstatus.pr_lwp.pr_info instead of making it up.
2157
2158 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2159
2160 * auto-load.c (auto_load_expand_dir_vars): Update.
2161 * defs.h (gdb_datadir): Change to std::string.
2162 (python_libdir): Likewise.
2163 (relocate_gdb_directory): Change return type to std::string.
2164 * guile/guile.c (gdbscm_data_directory): Update.
2165 (initialize_scheme_side): Update.
2166 * jit.c (jit_reader_dir): Change to std::string.
2167 (jit_reader_load_command): Update.
2168 * main.c (gdb_datadir): Change to std::string.
2169 (python_libdir): Likewise.
2170 (set_gdb_data_directory): Update.
2171 (relocate_path): Change to return std::string.
2172 (relocate_gdb_directory): Change to return std::string.
2173 (relocate_gdbinit_path_maybe_in_datadir): Update.
2174 (captured_main_1): Update.
2175 * python/python.c (do_start_initialization): Update.
2176 * top.c (show_gdb_datadir): Update.
2177 * xml-syscall.c (xml_init_syscalls_info): Update.
2178 (init_syscalls_info): Update.
2179
2180 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2181
2182 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2183 out of get_init_files.
2184 (get_init_files): Update.
2185
2186 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2187
2188 * main.c (get_init_files): Change to use std::string.
2189 (captured_main_1): Update.
2190 (print_gdb_help): Update.
2191
2192 2019-09-11 Ali Tamur <tamur@google.com>
2193
2194 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2195 implementation.
2196
2197 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2198
2199 * dbxread.c (read_dbx_symtab): Update.
2200 * dwarf2read.c (load_partial_dies): Update.
2201 * mdebugread.c (parse_partial_symbols): Update.
2202 (handle_psymbol_enumerators): Update.
2203 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2204 * psymtab.c (add_psymbol_to_bcache): Likewise.
2205 (add_psymbol_to_list): Likewise.
2206 * symtab.c (symbol_set_names): Likewise.
2207 * symtab.h (symbol_set_names): Likewise.
2208 * xcoffread.c (scan_xcoff_symtab): Update.
2209
2210 2019-09-11 Tom Tromey <tom@tromey.com>
2211
2212 * symfile-mem.c (symbol_file_add_from_memory): Use
2213 bfd_set_filename.
2214 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2215 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2216
2217 2019-09-10 Tom Tromey <tromey@adacore.com>
2218
2219 * dwarf-index-write.c (write_psymbols): Extend error message.
2220 (debug_names::insert): Add Ada code.
2221 (debug_names::write_psymbols): Remove Ada check.
2222 (debug_names) <m_string_obstack>: New member.
2223 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2224 (gdb_index_symbol_name_matcher::matches): Remove.
2225 (mapped_index_base::find_name_components_bounds): Add "lang"
2226 parameter.
2227 (mapped_index_base::build_name_components): Also split names
2228 according to Ada syntax.
2229 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2230 type of "match_callback".
2231 (check_match, check_find_bounds_finds)
2232 (dw2_expand_symtabs_matching): Update.
2233 (dw2_debug_names_iterator): Add new constructor.
2234 (dw2_debug_names_map_matching_symbols): New function.
2235 (dw2_debug_names_expand_symtabs_matching): Update.
2236 (dwarf2_debug_names_functions): Use
2237 dw2_debug_names_map_matching_symbols.
2238
2239 2019-09-10 Tom Tromey <tromey@adacore.com>
2240
2241 * dwarf2read.c (dw2_get_file_names_reader): Add the
2242 CU's file name to the results.
2243
2244 2019-09-10 Tom Tromey <tromey@adacore.com>
2245
2246 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2247 map_matching_symbols. Update.
2248 * dwarf2read.c (dw2_map_matching_symbols): Update.
2249 * psymtab.c (match_partial_symbol): Change type; update.
2250 (psym_map_matching_symbols): Likewise.
2251 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2252 type; update.
2253 * symfile.h (struct quick_symbol_functions)
2254 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2255 Remove "match".
2256
2257 2019-09-10 Tom Tromey <tromey@adacore.com>
2258
2259 * psymtab.c (map_block): Remove.
2260 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2261 * symtab.c (iterate_over_symbols_terminated): New function.
2262 * symtab.c (iterate_over_symbols_terminated): Declare.
2263
2264 2019-09-10 Tom Tromey <tromey@adacore.com>
2265
2266 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2267 * language.h (struct language_defn) <la_iterate_over_symbols>:
2268 Return bool.
2269 * symtab.c (iterate_over_symbols): Return bool.
2270 * symtab.h (iterate_over_symbols): Return bool.
2271
2272 2019-09-10 Tom Tromey <tromey@adacore.com>
2273
2274 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2275 (add_nonlocal_symbols): Update.
2276 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2277 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2278 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2279 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2280 Change type of "callback". Remove "data".
2281
2282
2283 2019-09-09 Ali Tamur <tamur@google.com>
2284
2285 * dwarf2read.c (comp_unit_head): Update comment.
2286 (dwarf2_dwo_name): New function declaration.
2287 (dwarf_unit_type_name): New function declaration.
2288 (read_comp_unit_head): Add support for new compilation units,
2289 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2290 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2291 (currently named as "signature") in their header. Also clarify error
2292 messages.
2293 (lookup_dwo_id): New function. Returns the dwo id of the given
2294 compile unit.
2295 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2296 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2297 functions.
2298 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2299 (dwarf2_dwo_name): Get the dwo name if present.
2300 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2301 purposes.
2302
2303 2019-09-09 Tom Tromey <tom@tromey.com>
2304
2305 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2306
2307 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2308
2309 * python/python.c (do_start_initialization): Make progname_copy static,
2310 to avoid a leak report.
2311
2312 2019-09-08 Tom Tromey <tom@tromey.com>
2313
2314 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2315
2316 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2317
2318 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2319 Change type to gdb::optional<block_enum>.
2320 (dw2_symtab_iter_init): Change block_index parameter type
2321 to gdb::optional<block_enum>.
2322 (dw2_lookup_symbol): Change block_index parameter
2323 type to block_enum.c
2324 (dw2_debug_names_lookup_symbol): Likewise.
2325 * psymtab.c (psym_lookup_symbol): Likewise.
2326 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2327 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2328 Likewise.
2329
2330 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2331
2332 * defs.h (relocate_gdb_directory): Change int to bool in
2333 signature and rename flag to relocatable.
2334 * main.c (relocate_path): Likewise.
2335 (relocate_gdb_directory): Likewise.
2336
2337 2019-09-06 Alan Modra <amodra@gmail.com>
2338
2339 * coffread.c (coff_symfile_read): Constify filename variable.
2340 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2341 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2342 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2343 * solib.c (reload_shared_libraries_1): Likewise.
2344 * symfile.c (reread_symbols): Likewise.
2345 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2346 * solib-darwin.c (darwin_bfd_open): Likewise.
2347 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2348
2349 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2350
2351 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2352 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2353
2354 2019-09-03 Tom Tromey <tromey@adacore.com>
2355
2356 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2357 types.
2358 (has_negatives): Unbias a range type bound.
2359 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2360 * gdbtypes.c (operator==): Handle new field.
2361 (create_range_type): Add "bias" parameter.
2362 (create_static_range_type, resolve_dynamic_range): Update.
2363 * gdbtypes.h (struct range_bounds) <bias>: New member.
2364 (create_range_type): Add bias parameter.
2365 * printcmd.c (print_scalar_formatted): Unbias range types.
2366 * value.c (unpack_long): Unbias range types.
2367 (pack_long): Bias range types.
2368
2369 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2370
2371 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2372 probe arguments.
2373
2374 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2375
2376 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2377 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2378 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2379 (compile_probe_arg): Likewise.
2380 * probe.h (get_argument_count): Likewise.
2381 * solib-svr4.c (solib_event_probe_action): Likewise.
2382 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2383
2384 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2385
2386 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2387 code to here...
2388 (svr4_create_solib_event_breakpoints): ...from here.
2389
2390 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2391
2392 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2393 suffix from warning message.
2394
2395 2019-08-30 Tom Tromey <tom@tromey.com>
2396
2397 * tui/tui-winsource.h (struct tui_source_window_base)
2398 <refresh_all>: Don't declare.
2399 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2400 Remove.
2401 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2402 tui_show_locator_content.
2403 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2404 declare.
2405 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2406 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2407 declare.
2408
2409 2019-08-30 Tom Tromey <tom@tromey.com>
2410
2411 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2412
2413 2019-08-30 Tom Tromey <tom@tromey.com>
2414
2415 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2416 Remove unnecessary forward declarations.
2417
2418 2019-08-30 Tom Tromey <tom@tromey.com>
2419
2420 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2421 rerender.
2422 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2423 tui_show_locator_content.
2424
2425 2019-08-30 Tom Tromey <tom@tromey.com>
2426
2427 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2428 (tui_locator_window::rerender): Rewrite using body of previous
2429 tui_show_locator_content.
2430
2431 2019-08-30 Tom Tromey <tom@tromey.com>
2432
2433 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2434 set_locator_fullname>: New methods.
2435 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2436 Rename from tui_set_locator_fullname.
2437 (tui_locator_window::set_locator_info): Rename from
2438 tui_set_locator_info. Return bool.
2439 (tui_update_locator_fullname, tui_show_frame_info): Update.
2440
2441 2019-08-30 Tom Tromey <tom@tromey.com>
2442
2443 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2444
2445 2019-08-30 Tom Tromey <tom@tromey.com>
2446
2447 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2448 call touchwin.
2449
2450 2019-08-30 Tom Tromey <tom@tromey.com>
2451
2452 * tui/tui-wingeneral.c (box_win): Assume win_info and
2453 win_info->handle cannot be NULL.
2454
2455 2019-08-30 Tom Tromey <tom@tromey.com>
2456
2457 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2458 refresh_window>: Declare.
2459 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2460 resize.
2461 (tui_data_item_window::rerender): Rename from
2462 tui_display_register.
2463 (tui_data_item_window::refresh_window): New method.
2464 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2465 no-op.
2466
2467 2019-08-30 Tom Tromey <tom@tromey.com>
2468
2469 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2470 regs_column_count, current_group>: Move later. Now private.
2471 <get_current_group>: New method.
2472 * tui/tui-regs.c (tui_reg_command): Update.
2473 * tui/tui-layout.c (tui_set_layout): Update.
2474
2475 2019-08-30 Tom Tromey <tom@tromey.com>
2476
2477 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2478 (tui_data_window::rerender): Don't call
2479 check_and_display_highlight_if_needed.
2480 (tui_data_window::refresh_all): Remove call to
2481 erase_data_content.
2482
2483 2019-08-30 Tom Tromey <tom@tromey.com>
2484
2485 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2486 (tui_data_window::display_registers_from)
2487 (tui_data_window::display_reg_element_at_line)
2488 (tui_data_window::display_registers_from_line): Remove checks of
2489 "empty".
2490
2491 2019-08-30 Tom Tromey <tom@tromey.com>
2492
2493 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2494 Don't declare.
2495 * tui/tui-regs.c (tui_data_window::show_registers): Call
2496 rerender.
2497 (tui_data_window::rerender): Rename from display_all_data.
2498 (tui_data_window::rerender): Remove old implementation.
2499
2500 2019-08-30 Tom Tromey <tom@tromey.com>
2501
2502 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2503 text.
2504 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2505
2506 2019-08-29 Bernhard Wodok <barto@gmx.net>
2507 Sergio Durigan Junior <sergiodj@redhat.com>
2508
2509 PR win32/24284
2510 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2511
2512 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2513
2514 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2515 when searching for types.
2516
2517 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * f-lang.c (f_language_defn): Use f_print_typedef.
2520 * f-lang.h (f_print_typedef): Declare.
2521 * f-typeprint.c (f_print_typedef): Define.
2522
2523 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2524
2525 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2526
2527 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * cli/cli-utils.c (info_print_options_defs): Delete.
2530 (make_info_print_options_def_group): Delete.
2531 (extract_info_print_options): Delete.
2532 (info_print_command_completer): Delete.
2533 (info_print_args_help): Add extra parameter, and optionally
2534 include text about -n flag.
2535 * cli/cli-utils.h (struct info_print_options): Delete.
2536 (extract_info_print_options): Delete declaration.
2537 (info_print_command_completer): Delete declaration.
2538 (info_print_args_help): Add extra parameter, extend header
2539 comment.
2540 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2541 search_symbols.
2542 * stack.c (struct info_print_options): New type.
2543 (info_print_options_defs): New file scoped variable.
2544 (make_info_print_options_def_group): New static function.
2545 (info_print_command_completer): New static function.
2546 (info_locals_command): Update to use new local functions.
2547 (info_args_command): Likewise.
2548 (_initialize_stack): Add extra parameter to calls to
2549 info_print_args_help.
2550 * symtab.c (search_symbols): Add extra parameter, use this to
2551 possibly excluse non-debug symbols.
2552 (symtab_symbol_info): Add extra parameter, which is passed on to
2553 search_symbols.
2554 (struct info_print_options): New type.
2555 (info_print_options_defs): New file scoped variable.
2556 (make_info_print_options_def_group): New static function.
2557 (info_print_command_completer): New static function.
2558 (info_variables_command): Update to use local functions, and pass
2559 extra parameter through to symtab_symbol_info.
2560 (info_functions_command): Likewise.
2561 (info_types_command): Pass additional argument through to
2562 symtab_symbol_info.
2563 (rbreak_command): Pass extra argument to search_symbols.
2564 (_initialize_symtab): Add extra arguments for calls to
2565 info_print_args_help, and update help text for 'info variables',
2566 'whereis', and 'info functions' commands.
2567 * symtab.h (search_symbols): Add extra argument to declaration.
2568 * NEWS: Mention new flags.
2569
2570 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2571
2572 * symtab.c (lookup_static_symbol): Call the new function (and move
2573 it down to be next to lookup_global_symbol).
2574 (struct global_sym_lookup_data): Add block_enum member and rename to...
2575 (struct global_or_static_sym_lookup_data): ...this.
2576 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2577 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2578 (lookup_symbol_global_or_static_iterator_cb): ...this.
2579 (lookup_global_or_static_symbol): New function.
2580 (lookup_global_symbol): Call new function.
2581
2582 2019-08-26 Tom de Vries <tdevries@suse.de>
2583
2584 PR c++/24852
2585 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2586 when pc_probe.prob == NULL.
2587
2588 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2589
2590 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2591 variable symbol_linkage to symbol_linkage_.
2592
2593 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2594
2595 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2596 represent whether the symbol is static, dynamic, or we don't
2597 know.
2598
2599 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2600
2601 * gdb/rx-tdep.c (rx_register_names): New.
2602 (rx_register_name): Delete.
2603 (rx_psw_type): Delete.
2604 (rx_fpsw_type): Delete.
2605 (rx_register_type): Delete.
2606 (rx_gdbarch_init): Convert target-descriptions.
2607 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2608 * gdb/features/Makefile: Add rx.xml.
2609 * gdb/features/rx.xml: New.
2610 * gdb/features/rx.c: Generated.
2611 * gdb/NEWS: Mention target description support.
2612
2613 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2614
2615 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2616 *slot_ptr.
2617
2618 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2619
2620 * configure.ac: Don't check for 'dlfcn.h' (moved to
2621 gdbsupport/common.m4).
2622 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2623 'gdbsupport/'.
2624 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2625 * compile/compile-c-support.c: Include
2626 'gdbsupport/gdb-dlfcn.h'.
2627 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2628 * gdb-dlfcn.c: Move to...
2629 * gdbsupport/gdb-dlfcn.c: ... here.
2630 * gdb-dlfcn.h: Move to...
2631 * gdbsupport/gdb-dlfcn.h: ... here.
2632
2633 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2634
2635 * nios2-tdep.c (struct reg_value): Improve comments. Make
2636 the offset field signed.
2637
2638 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2639
2640 * python/lib/gdb/__init__.py (_execute_file): New function.
2641 * python/python.c (python_run_simple_file): Call gdb._execute_file
2642 on Windows.
2643
2644 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2645
2646 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2647 all uses as this was never set to anything but a zero value.
2648
2649 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2650
2651 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2652
2653 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2654
2655 * tui/tui-data.h (tui_gen_win_info): Add an =default
2656 move constructor, required by some GCC versions.
2657
2658 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2659
2660 * go32-nat.c (go32_sysinfo): Add hygon_p.
2661
2662 2019-08-20 Tom Tromey <tom@tromey.com>
2663
2664 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2665 line_from_reg_element_no, first_reg_element_no_inline,
2666 display_all_data, delete_data_content_windows,
2667 erase_data_content>: Now private.
2668
2669 2019-08-20 Tom Tromey <tom@tromey.com>
2670
2671 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2672 (tui_unhighlight_win, tui_highlight_win)
2673 (tui_win_info::make_window): Update.
2674 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2675
2676 2019-08-20 Tom Tromey <tom@tromey.com>
2677
2678 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2679 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2680 (MAX_PID_WIDTH): Move to tui-stack.c.
2681 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2682 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2683 (MAX_PID_WIDTH): Move from tui-data.h.
2684
2685 2019-08-20 Tom Tromey <tom@tromey.com>
2686
2687 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2688 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2689 (box_win): Update.
2690 (tui_gen_win_info::make_window): Rename from tui_make_window.
2691 (tui_win_info::make_window): New method.
2692 (tui_gen_win_info::make_visible): Update.
2693 * tui/tui-source.c (tui_source_window::set_contents): Update.
2694 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2695 (tui_data_window::display_registers_from): Update.
2696 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2697 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2698 Declare.
2699 <can_box>: Remove.
2700 <title>: Remove.
2701 (struct tui_win_info) <make_window>: Declare.
2702 <can_box>: Now virtual.
2703 <title>: New member.
2704 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2705 * tui/tui-command.c (tui_cmd_window::resize): Update.
2706
2707 2019-08-20 Tom Tromey <tom@tromey.com>
2708
2709 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2710 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2711 (tui_data_window::check_register_values): Update.
2712
2713 2019-08-20 Tom Tromey <tom@tromey.com>
2714
2715 * tui/tui-regs.h (struct tui_data_window): Use
2716 DISABLE_COPY_AND_ASSIGN.
2717 <regs_content>: Change type, removing unique_ptr.
2718 <tui_data_window>: Add move constructor.
2719 * tui/tui-regs.c (tui_data_window::show_registers)
2720 (tui_data_window::show_register_group)
2721 (tui_data_window::display_registers_from)
2722 (tui_data_window::display_registers_from)
2723 (tui_data_window::first_data_item_displayed)
2724 (tui_data_window::delete_data_content_windows)
2725 (tui_data_window::rerender, tui_data_window::refresh_window)
2726 (tui_data_window::check_register_values): Update.
2727
2728 2019-08-20 Tom Tromey <tom@tromey.com>
2729
2730 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2731 show_register_group>: Declare.
2732 (tui_show_register_group): Don't declare.
2733 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2734 tui_show_registers.
2735 (tui_data_window::show_register_group): Rename from
2736 tui_show_register_group.
2737 (tui_data_window::check_register_values, tui_reg_command):
2738 Update.
2739 * tui/tui-layout.c (tui_set_layout): Update.
2740
2741 2019-08-20 Tom Tromey <tom@tromey.com>
2742
2743 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2744 Declare.
2745 (tui_check_register_values): Don't declare.
2746 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2747 from tui_check_register_values.
2748 * tui/tui-hooks.c (tui_register_changed): Update.
2749
2750 2019-08-20 Tom Tromey <tom@tromey.com>
2751
2752 * tui/tui-regs.c (tui_reg_layout): Move later.
2753 (tui_show_registers): Don't enable TUI mode or change layout.
2754
2755 2019-08-20 Tom Tromey <tom@tromey.com>
2756
2757 * tui/tui-regs.h (struct tui_data_item_window)
2758 <~tui_data_item_window>: Remove.
2759 <content>: Now a unique_xmalloc_ptr.
2760 * tui/tui-regs.c (tui_register_format): Return a
2761 unique_xmalloc_ptr.
2762 (tui_get_register): Update.
2763 (~tui_data_item_window): Remove.
2764 (tui_data_window::display_registers_from, tui_display_register):
2765 Update.
2766 * tui/tui-io.h (tui_expand_tabs): Update.
2767 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2768 Remove "col" parameter.
2769
2770 2019-08-20 Tom Tromey <tom@tromey.com>
2771
2772 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2773 field.
2774 * tui/tui-regs.c (~tui_data_item_window): Update.
2775
2776 2019-08-20 Tom Tromey <tom@tromey.com>
2777
2778 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2779 earlier.
2780
2781 2019-08-20 Tom Tromey <tom@tromey.com>
2782
2783 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2784
2785 2019-08-20 Tom Tromey <tom@tromey.com>
2786
2787 * tui/tui-source.h (struct tui_source_window): Update.
2788 * tui/tui-regs.c (tui_show_registers): Update.
2789 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2790 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2791 (NO_REGS_STRING): Remove defines.
2792
2793 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
2794
2795 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2796 unnecessary thread walk if remote doesn't support the packet.
2797
2798 2019-08-19 Tom Tromey <tromey@adacore.com>
2799
2800 * python/py-value.c (value_has_field): Fix indentation.
2801
2802 2019-08-19 Tom Tromey <tromey@adacore.com>
2803
2804 * printcmd.c (do_one_display, info_display_command): Update.
2805 * block.h (contained_in): Return bool. Add allow_nested
2806 parameter.
2807 * block.c (contained_in): Return bool. Add allow_nested
2808 parameter.
2809
2810 2019-08-19 Tom Tromey <tom@tromey.com>
2811
2812 * configure: Rebuild.
2813 * configure.ac: Disallow the combination of -static-libstdc++ and
2814 source highlight.
2815 * source-cache.c (get_language_name): Handle rust.
2816 (source_cache::get_source_lines): Ignore highlighting exceptions.
2817
2818 2019-08-16 Tom Tromey <tom@tromey.com>
2819
2820 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2821 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2822 (struct tui_source_window_base) <make_visible, refresh_window,
2823 resize>: Remove methods.
2824 <execution_info>: Remove field.
2825 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2826 (tui_show_source_line, tui_source_window_base)
2827 (~tui_source_window_base): Update.
2828 (tui_source_window_base::resize)
2829 (tui_source_window_base::make_visible)
2830 (tui_source_window_base::refresh_window): Remove.
2831 (tui_source_window_base::update_exec_info): Update.
2832 * tui/tui-source.c (tui_source_window::set_contents): Update.
2833 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2834
2835 2019-08-16 Tom Tromey <tom@tromey.com>
2836
2837 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2838 deprecated_query_hook.
2839
2840 2019-08-16 Tom Tromey <tom@tromey.com>
2841
2842 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2843 (tui_update_source_windows_with_line): Update.
2844 * tui/tui-source.h (struct tui_source_window)
2845 <show_symtab_source>: Declare.
2846 (tui_show_symtab_source): Don't declare.
2847 * tui/tui-source.c (tui_show_symtab_source): Rename from
2848 tui_show_symtab_source.
2849
2850 2019-08-16 Tom Tromey <tom@tromey.com>
2851
2852 * tui/tui-winsource.h (struct tui_source_window_base)
2853 <set_contents>: Declare.
2854 * tui/tui-winsource.c
2855 (tui_source_window_base::update_source_window_as_is): Update.
2856 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2857 Declare.
2858 (tui_set_source_content): Don't declare.
2859 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2860 tui_set_source_content.
2861 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2862 Declare.
2863 (tui_set_disassem_content): Don't declare.
2864 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2865 tui_set_disassem_content.
2866
2867 2019-08-16 Tom Tromey <tom@tromey.com>
2868
2869 * tui/tui-winsource.h (struct tui_source_window_base)
2870 <update_breakpoint_info>: Declare.
2871 (tui_update_breakpoint_info): Don't declare.
2872 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2873 (tui_update_all_breakpoint_info): Update.
2874 (tui_source_window_base::update_breakpoint_info): Rename from
2875 tui_update_breakpoint_info.
2876 (tui_source_window_base::update_exec_info): Update.
2877
2878 2019-08-16 Tom Tromey <tom@tromey.com>
2879
2880 * tui/tui-winsource.h (struct tui_source_window_base)
2881 <update_source_window>: Declare.
2882 (tui_update_source_window): Don't declare.
2883 * tui/tui-winsource.c
2884 (tui_source_window_base::update_source_window): Rename from
2885 tui_update_source_window.
2886 (tui_source_window_base::rerender): Update.
2887 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2888 * tui/tui-disasm.c (tui_show_disassem)
2889 (tui_show_disassem_and_update_source)
2890 (tui_disasm_window::maybe_update): Update.
2891
2892 2019-08-16 Tom Tromey <tom@tromey.com>
2893
2894 * tui/tui-winsource.h (struct tui_source_window_base)
2895 <update_source_window_as_is>: Declare.
2896 (tui_update_source_window_as_is): Don't declare.
2897 * tui/tui-winsource.c (tui_update_source_window): Update
2898 (tui_source_window_base::update_source_window_as_is): Rename from
2899 tui_update_source_window_as_is.
2900 (tui_source_window_base::refill): Update.
2901 * tui/tui-source.c (tui_show_symtab_source): Update.
2902 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2903 Update.
2904
2905 2019-08-16 Tom Tromey <tom@tromey.com>
2906
2907 * tui/tui-winsource.h (tui_update_source_window)
2908 (tui_update_source_window_as_is): Remove "noerror" parameter.
2909 * tui/tui-winsource.c (tui_update_source_window)
2910 (tui_update_source_window_as_is): Remove "noerror" parameter.
2911 (tui_update_source_windows_with_addr)
2912 (tui_update_source_windows_with_line)
2913 (tui_source_window_base::rerender)
2914 (tui_source_window_base::refill): Update.
2915 * tui/tui-source.h (tui_set_source_content)
2916 (tui_show_symtab_source): Remove "noerror" parameter.
2917 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2918 parameter.
2919 (tui_show_symtab_source): Likewise.
2920 (tui_source_window::maybe_update): Update.
2921 * tui/tui-disasm.c (tui_show_disassem)
2922 (tui_show_disassem_and_update_source)
2923 (tui_disasm_window::do_scroll_vertical)
2924 (tui_disasm_window::maybe_update): Update.
2925
2926 2019-08-16 Tom Tromey <tom@tromey.com>
2927
2928 * tui/tui.c (tui_is_window_visible): Update.
2929 * tui/tui-wingeneral.c (tui_make_window)
2930 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2931 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2932 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2933 (tui_set_win_height_command, parse_scrolling_args): Update.
2934 * tui/tui-source.c (tui_source_window::style_changed): Update.
2935 * tui/tui-regs.c (tui_show_registers)
2936 (tui_data_window::first_data_item_displayed)
2937 (tui_data_window::delete_data_content_windows)
2938 (tui_check_register_values, tui_reg_command): Update.
2939 * tui/tui-disasm.c (tui_show_disassem): Update.
2940 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2941 method.
2942 <is_visible>: Remove field.
2943 * tui/tui-data.c (tui_next_win, tui_prev_win)
2944 (tui_delete_invisible_windows): Update.
2945
2946 2019-08-16 Tom Tromey <tom@tromey.com>
2947
2948 * tui/tui-winsource.h (struct tui_source_window_base)
2949 <m_has_locator>: Remove.
2950 * tui/tui-layout.c (show_source_disasm_command, show_data)
2951 (show_source_or_disasm_and_command): Update.
2952
2953 2019-08-16 Alan Hayward <alan.hayward@arm.com>
2954
2955 * NEWS (Other MI changes): New subsection.
2956 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2957 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2958 * arch-utils.c (default_get_pc_address_flags): New function.
2959 * arch-utils.h (default_get_pc_address_flags): New declaration.
2960 * gdbarch.sh: Add get_pc_address_flags.
2961 * gdbarch.c: Regenerate.
2962 * gdbarch.h: Likewise.
2963 * stack.c (print_pc): New function.
2964 (print_frame_info) (print_frame): Call print_pc.
2965
2966 2019-08-16 Tom de Vries <tdevries@suse.de>
2967
2968 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2969 print_objfile_section_info.
2970
2971 2019-08-15 Tom Tromey <tom@tromey.com>
2972
2973 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2974 calling update_cmdwin_start_line.
2975 * tui/tui-winsource.h (struct tui_source_window_base)
2976 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2977 <rerender>: Declare.
2978 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2979 Call rerender.
2980 (tui_source_window_base::set_new_height): Remove.
2981 (tui_source_window_base::rerender): Rename from
2982 do_make_visible_with_new_height.
2983 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2984 resize method.
2985 (tui_win_info::make_invisible_and_set_new_height)
2986 (tui_win_info::make_visible_with_new_height): Remove.
2987 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2988 Declare.
2989 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2990 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2991 do_make_visible_with_new_height>: Don't declare.
2992 <rerender>: Declare.
2993 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2994 set_new_height.
2995 (tui_data_window::do_make_visible_with_new_height): Remove.
2996 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2997 call tui_show_locator_content.
2998 (tui_gen_win_info::resize): Call rerender.
2999 (show_source_or_disasm_and_command): Don't call
3000 tui_show_locator_content.
3001 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3002 method.
3003 (struct tui_win_info) <rerender>: Declare.
3004 <set_new_height, make_invisible_and_set_new_height,
3005 make_visible_with_new_height>: Don't declare.
3006 * tui/tui-data.c (tui_win_list::rerender): New method.
3007 * tui/tui-command.h (struct tui_cmd_window)
3008 <do_make_visible_with_new_height>: Don't declare.
3009 * tui/tui-command.c
3010 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3011
3012 2019-08-15 Tom Tromey <tromey@adacore.com>
3013
3014 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3015 * ada-lang.c (ada_enum_name): Likewise.
3016
3017 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3018
3019 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3020 leading underscore.
3021 (GdbOutputErrorFile): Likewise.
3022 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3023 accordingly.
3024 (execute_unwinders): Rename to have a leading underscore.
3025 (auto_load_packages): Likewise.
3026 (global scope): Adjust call to auto_load_packages accordingly.
3027 (GdbSetPythonDirectory): Likewise.
3028 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3029 instead of execute_unwinders.
3030
3031 2019-08-15 Tom Tromey <tom@tromey.com>
3032
3033 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3034 (show_data): Don't change window visibility.
3035 (tui_gen_win_info::resize): Remove special case for command
3036 window. Use wresize, when available.
3037 (show_source_or_disasm_and_command): Don't change window
3038 visibility.
3039 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3040 <make_visible>: New method.
3041 * tui/tui-command.c (tui_cmd_window::resize): New method.
3042
3043 2019-08-15 Tom Tromey <tom@tromey.com>
3044
3045 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3046 (struct tui_source_windows): New.
3047 * tui/tui-winsource.c (tui_display_main): Update.
3048 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3049 (new_height_ok, parse_scrolling_args): Update.
3050 * tui/tui-layout.c (show_layout, show_data): Update.
3051 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3052 (tui_add_to_source_windows): Don't declare.
3053 * tui/tui-data.c (source_windows, tui_source_windows)
3054 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3055
3056 2019-08-15 Tom Tromey <tom@tromey.com>
3057
3058 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3059 Rename from reset.
3060 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3061 * tui/tui-layout.c (show_source_disasm_command, show_data):
3062 Update.
3063 (tui_gen_win_info::resize): Rename.
3064 (show_source_or_disasm_and_command): Update.
3065 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3066 reset.
3067
3068 2019-08-15 Tom Tromey <tom@tromey.com>
3069
3070 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3071 * tui/tui-interp.c (tui_interp::init): Don't call
3072 tui_initialize_static_data.
3073 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3074
3075 2019-08-15 Tom Tromey <tom@tromey.com>
3076
3077 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3078 examine tui_win_list.
3079
3080 2019-08-15 Tom Tromey <tom@tromey.com>
3081
3082 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3083 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3084 tui_clear_source_content.
3085 (tui_clear_source_content): Remove.
3086 (tui_source_window_base::do_erase_source_content): Hoist call to
3087 content.clear().
3088 * tui/tui-stack.c (tui_show_frame_info): Don't call
3089 tui_clear_source_content.
3090
3091 2019-08-15 Tom Tromey <tom@tromey.com>
3092
3093 * tui/tui-winsource.h (struct tui_source_window_base)
3094 <do_erase_source_content>: New method.
3095 <erase_source_content>: New method.
3096 (tui_erase_source_content): Don't declare.
3097 * tui/tui-winsource.c (tui_clear_source_content): Update.
3098 (tui_source_window_base::do_erase_source_content): Rename from
3099 tui_erase_source_content.
3100 (tui_source_window_base::show_source_content): Update.
3101 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3102 * tui/tui-source.h (struct tui_source_window)
3103 <erase_source_content>: New method.
3104 * tui/tui-disasm.h (struct tui_disasm_window)
3105 <erase_source_content>: New method.
3106
3107 2019-08-15 Tom Tromey <tom@tromey.com>
3108
3109 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3110 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3111 constructor.
3112 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3113 * tui/tui-source.c (tui_set_source_content): Update.
3114 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3115
3116 2019-08-15 Tom Tromey <tom@tromey.com>
3117
3118 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3119 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3120 tui-source.c.
3121 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3122 Declare.
3123 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3124 method.
3125 (tui_source_window::maybe_update): Update.
3126
3127 2019-08-15 Tom Tromey <tom@tromey.com>
3128
3129 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3130 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3131 tui-disasm.c.
3132 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3133 Declare.
3134 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3135 method.
3136 (tui_disasm_window::maybe_update): Update.
3137
3138 2019-08-15 Tom Tromey <tom@tromey.com>
3139
3140 * tui/tui-winsource.h (struct tui_source_window_base)
3141 <maybe_update>: Declare.
3142 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3143 method.
3144 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3145 Declare.
3146 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3147 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3148 Declare.
3149 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3150
3151 2019-08-15 Tom Tromey <tom@tromey.com>
3152
3153 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3154
3155 2019-08-15 Tom Tromey <tom@tromey.com>
3156
3157 * tui/tui-wingeneral.c: Include tui-stack.h.
3158 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3159 (struct tui_locator_window): Move from tui-data.h.
3160 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3161 (tui_initialize_static_data): Move from tui-data.c.
3162 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3163 (struct tui_locator_window): Move to tui-stack.c.
3164 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3165 (tui_initialize_static_data): Move to tui-stack.c.
3166
3167 2019-08-15 Tom Tromey <tom@tromey.com>
3168
3169 * tui/tui-layout.c (show_source_disasm_command)
3170 (show_source_or_disasm_and_command): Use make_visible method, not
3171 tui_make_window.
3172 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3173 Remove.
3174
3175 2019-08-15 Tom Tromey <tom@tromey.com>
3176
3177 * tui/tui-wingeneral.h (tui_make_window): Update.
3178 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3179 parameter.
3180 (tui_gen_win_info::make_visible): Update.
3181 * tui/tui-regs.c (tui_data_window::display_registers_from):
3182 Update.
3183 * tui/tui-layout.c (show_source_disasm_command)
3184 (show_source_or_disasm_and_command): Update.
3185 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3186 (enum tui_box): Remove.
3187 (struct tui_win_info) <can_box>: New method.
3188 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3189 method.
3190
3191 2019-08-15 Tom de Vries <tdevries@suse.de>
3192
3193 * linux-nat-trad.c: Include gdbarch.h.
3194
3195 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3196
3197 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3198 register sizes.
3199
3200 2019-08-14 Tom Tromey <tromey@adacore.com>
3201
3202 * darwin-nat.c: Include gdbarch.h.
3203 * darwin-nat-info.c: Include gdbarch.h.
3204
3205 2019-08-13 Tom Tromey <tom@tromey.com>
3206
3207 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3208 Remove.
3209 * tui/tui-data.c (tui_initialize_static_data): Update.
3210
3211 2019-08-13 Tom Tromey <tom@tromey.com>
3212
3213 * tui/tui-winsource.h (struct tui_exec_info_window)
3214 <~tui_exec_info_window, maybe_allocate_content, get_content,
3215 m_content>: Remove.
3216 (struct tui_source_window_base) <set_exec_info_content,
3217 show_exec_info_content>: Don't declare.
3218 * tui/tui-winsource.c
3219 (tui_exec_info_window::maybe_allocate_content): Remove.
3220 (tui_source_window_base::update_exec_info): Rename from
3221 set_exec_info_content.
3222 (tui_source_window_base::show_exec_info_content)
3223 (tui_source_window_base::update_exec_info): Remove.
3224
3225 2019-08-13 Tom Tromey <tom@tromey.com>
3226
3227 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3228 declare.
3229 * tui/tui-winsource.c (tui_update_source_window_as_is)
3230 (tui_update_source_windows_with_addr, tui_erase_source_content):
3231 Update.
3232 (tui_clear_exec_info_content): Remove.
3233
3234 2019-08-13 Tom Tromey <tom@tromey.com>
3235
3236 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3237 declare.
3238 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3239 call tui_erase_exec_info_content.
3240 (tui_clear_exec_info_content): Rename from
3241 tui_erase_exec_info_content.
3242 (tui_clear_exec_info_content): Delete.
3243
3244 2019-08-13 Tom Tromey <tom@tromey.com>
3245
3246 * tui/tui-winsource.h (struct tui_source_window_base)
3247 <show_exec_info_content>: Declare.
3248 (tui_show_exec_info_content): Don't declare.
3249 * tui/tui-winsource.c
3250 (tui_source_window_base::show_exec_info_content): Rename from
3251 tui_show_exec_info_content.
3252 (tui_source_window_base::update_exec_info): Update.
3253
3254 2019-08-13 Tom Tromey <tom@tromey.com>
3255
3256 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3257 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3258 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3259 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3260 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3261 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3262 ... here.
3263
3264 2019-08-13 Tom Tromey <tom@tromey.com>
3265
3266 * tui/tui-winsource.h (struct tui_source_window_base)
3267 <update_exec_info>: Declare.
3268 (tui_update_exec_info): Don't declare.
3269 * tui/tui-winsource.c (tui_update_source_window_as_is)
3270 (tui_source_window_base::refresh_all)
3271 (tui_update_all_breakpoint_info): Update.
3272 (tui_source_window_base::update_exec_info): Rename from
3273 tui_update_exec_info.
3274 * tui/tui-stack.c (tui_show_frame_info): Update.
3275
3276 2019-08-13 Tom Tromey <tom@tromey.com>
3277
3278 * tui/tui-winsource.h (struct tui_source_window_base)
3279 <set_exec_info_content>: Declare.
3280 (tui_set_exec_info_content): Don't declare.
3281 * tui/tui-winsource.c
3282 (tui_source_window_base::set_exec_info_content): Rename from
3283 tui_set_exec_info_content.
3284 (tui_update_exec_info): Update.
3285
3286 2019-08-13 Tom Tromey <tom@tromey.com>
3287
3288 * tui/tui-winsource.h (struct tui_source_window_base)
3289 <show_source_content>: Declare.
3290 (tui_show_source_content): Don't declare.
3291 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3292 (tui_source_window_base::show_source_content): Rename from
3293 tui_show_source_content.
3294 (tui_source_window_base::refresh_all): Update.
3295 * tui/tui-layout.c (show_source_disasm_command)
3296 (show_source_or_disasm_and_command): Update.
3297
3298 2019-08-13 Tom Tromey <tom@tromey.com>
3299
3300 * tui/tui-winsource.c (tui_erase_source_content)
3301 (tui_show_source_content, tui_source_window_base::refresh_all):
3302 Update.
3303 * tui/tui-wingeneral.h
3304 (tui_check_and_display_highlight_if_needed): Don't declare.
3305 * tui/tui-wingeneral.c
3306 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3307 check_and_display_highlight_if_needed.
3308 * tui/tui-win.c (tui_rehighlight_all)
3309 (tui_win_info::make_visible_with_new_height): Update.
3310 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3311 (tui_data_window::erase_data_content)
3312 (tui_data_window::display_all_data): Update.
3313 * tui/tui-data.h (struct tui_win_info)
3314 <check_and_display_highlight_if_needed>: Declare.
3315
3316 2019-08-13 Tom Tromey <tom@tromey.com>
3317
3318 * tui/tui-win.c (tui_resize_all): Call
3319 tui_delete_invisible_windows.
3320 * tui/tui-layout.c (show_layout): Call
3321 tui_delete_invisible_windows.
3322 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3323 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3324
3325 2019-08-13 Tom Tromey <tom@tromey.com>
3326
3327 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3328 tui_add_win_to_layout.
3329
3330 2019-08-13 Tom Tromey <tom@tromey.com>
3331
3332 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3333 * tui/tui-layout.c (tui_default_win_height): Now static.
3334
3335 2019-08-13 Tom Tromey <tom@tromey.com>
3336
3337 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3338 single switch.
3339 (show_source_disasm_command, show_source_or_disasm_and_command):
3340 Don't check current layout.
3341
3342 2019-08-13 Tom Tromey <tom@tromey.com>
3343
3344 * tui/tui-wingeneral.c (make_all_visible): Remove.
3345 (tui_make_all_invisible): Simplify.
3346 * tui/tui-layout.c (tui_make_all_invisible): Move from
3347 tui-wingeneral.c; simplify.
3348 (show_layout): Hoist call to tui_make_all_invisible.
3349 (show_data): Don't call tui_make_all_invisible.
3350
3351 2019-08-13 Tom Tromey <tom@tromey.com>
3352
3353 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3354 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3355
3356 2019-08-13 Tom Tromey <tom@tromey.com>
3357
3358 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3359 tui-data.c.
3360 (show_source_disasm_command, show_data)
3361 (show_source_or_disasm_and_command): Don't use
3362 tui_set_current_layout_to.
3363 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3364 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3365 tui-layout.c.
3366 (tui_set_current_layout_to): Remove.
3367
3368 2019-08-13 Tom Tromey <tom@tromey.com>
3369
3370 * tui/tui-layout.c (tui_set_layout): Update.
3371 * tui/tui-data.h (struct tui_layout_def): Remove.
3372 (tui_layout_def): Don't declare.
3373 * tui/tui-data.c (layout_def): Remove.
3374 (tui_layout_def): Remove.
3375
3376 2019-08-13 Tom Tromey <tom@tromey.com>
3377
3378 * tui/tui-winsource.h (struct tui_source_window_base)
3379 <clear_detail>: No longer "override".
3380 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3381 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3382 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3383 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3384 Remove.
3385 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3386
3387 2019-08-13 Tom Tromey <tromey@adacore.com>
3388
3389 * tracepoint.c: Don't include readline.h or history.h.
3390
3391 2019-08-12 Tom Tromey <tom@tromey.com>
3392
3393 * configure: Rebuild.
3394 * configure.ac: Check for readline 7.
3395 * NEWS: Mention readline 7 requirement.
3396 * README: Update.
3397
3398 2019-08-12 Tom Tromey <tom@tromey.com>
3399
3400 * mingw-hdep.c (gdb_select): Remove readline hack.
3401
3402 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3403
3404 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3405 when the function fails.
3406
3407 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3408
3409 * s390-tdep.c (s390_type_align): New function.
3410 (s390_gdbarch_init): Set it as type_align gdbarch method.
3411
3412 2019-08-09 Tom de Vries <tdevries@suse.de>
3413
3414 PR gdb/24591
3415 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3416 pc_low with relocation offset.
3417
3418 2019-08-07 Tom Tromey <tromey@adacore.com>
3419
3420 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3421 (print_frame_args): Update.
3422 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3423 Update.
3424 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3425 * frame.h (struct frame_arg): Add initializers.
3426 <error>: Now a unique_xmalloc_ptr.
3427
3428 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3429
3430 * NEWS: Expand the Pointer Authentication entry.
3431 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3432 (aarch64_frame_unmask_lr): ... to this.
3433 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3434 Call aarch64_frame_unmask_lr.
3435 * frame.c (struct frame_info): Add "masked" variable.
3436 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3437 (fprint_frame): Check for masked pc.
3438 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3439 declarations.
3440 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3441 * stack.c (print_frame): Check for masked pc.
3442
3443 2019-08-06 Tom Tromey <tom@tromey.com>
3444
3445 * stabsread.c (patch_block_stabs, read_one_struct_field)
3446 (read_enum_type): Use obstack_strndup.
3447 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3448 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3449 * dwarf2read.c (guess_full_die_structure_name)
3450 (anonymous_struct_prefix): Use obstack_strndup.
3451 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3452 * c-exp.y (yylex): Use obstack_strndup.
3453 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3454 (write_var_or_type): Use obstack_strndup.
3455
3456 2019-08-06 Tom Tromey <tom@tromey.com>
3457
3458 * symfile.c (reread_symbols): Use obstack_strdup.
3459 * stabsread.c (read_type): Use obstack_strdup.
3460 * gdb_obstack.h (obstack_strdup): New overload.
3461 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3462 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3463 (dwarf2_canonicalize_name): Use obstack_strdup.
3464 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3465 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3466 Use obstack_strdup.
3467
3468 2019-08-06 Tom Tromey <tom@tromey.com>
3469
3470 * gdb_obstack.h (obstack_strdup): Define.
3471 * gdb_obstack.c (obstack_strdup): Don't define.
3472
3473 2019-08-06 Tom Tromey <tom@tromey.com>
3474
3475 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3476 obstack_strdup.
3477 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3478 obstack_strdup.
3479 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3480 * stabsread.c (common_block_start): Use obstack_strdup.
3481 * objfiles.c (set_objfile_main_name, objfile): Use
3482 obstack_strdup.
3483 * namespace.c (add_using_directive): Use obstack_strdup.
3484 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3485 * jit.c (finalize_symtab): Use obstack_strdup.
3486 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3487 (guess_partial_die_structure_name, partial_die_info::fixup)
3488 (dwarf2_name): Use obstack_strdup.
3489 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3490 obstack_strdup.
3491 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3492 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3493 obstack_strdup.
3494 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3495
3496 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3497
3498 * unittests/help-doc-selftests.c: New file.
3499 * Makefile.in: Add the new file.
3500
3501 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3502
3503 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3504 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3505 the full first line, except when FOR_VALUE_PREFIX. In this case,
3506 the trailing '.' is not output, and the first character is uppercased.
3507 (print_help_for_command): Update call to print_doc_line.
3508 (print_doc_of_command): Likewise.
3509 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3510 * cli/cli-option.c (append_indented_doc): Do not append newline.
3511 (build_help_option): Append newline after first appended_indented_doc
3512 only if a second call is done.
3513 (build_help): Append 2 new lines before each option, except the first
3514 one.
3515 * compile/compile.c (_initialize_compile): Add new lines after
3516 %OPTIONS%, when not at the end of the help.
3517 Change help doc or code
3518 producing the help doc to respect the invariants.
3519 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3520 Also removed the new line after 'Options:', as all other commands
3521 do not put an empty line between 'Options:' and the first option.
3522 * printcmd.c (_initialize_printcmd): Likewise.
3523 * stack.c (_initialize_stack): Likewise.
3524 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3525 incorrectly telling COMMAND is optional.
3526 * ada-lang.c (_initialize_ada_language): Change help doc or code
3527 producing the help doc to respect the invariants.
3528 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3529 * breakpoint.c (_initialize_breakpoint): Likewise.
3530 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3531 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3532 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3533 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3534 _initialize_cli_style): Likewise.
3535 * corelow.c (core_target_info): Likewise.
3536 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3537 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3538 * filesystem.c (_initialize_filesystem): Likewise.
3539 * frame.c (_initialize_frame): Likewise.
3540 * gnu-nat.c (add_task_commands): Likewise.
3541 * infcall.c (_initialize_infcall): Likewise.
3542 * infcmd.c (_initialize_infcmd): Likewise.
3543 * interps.c (_initialize_interpreter): Likewise.
3544 * language.c (_initialize_language): Likewise.
3545 * linux-fork.c (_initialize_linux_fork): Likewise.
3546 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3547 * maint.c (_initialize_maint_cmds): Likewise.
3548 * memattr.c (_initialize_mem): Likewise.
3549 * printcmd.c (_initialize_printcmd): Likewise.
3550 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3551 _RegEx): Likewise.
3552 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3553 * record-btrace.c (_initialize_record_btrace): Likewise.
3554 * record-full.c (_initialize_record_full): Likewise.
3555 * record.c (_initialize_record): Likewise.
3556 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3557 * regcache.c (_initialize_regcache): Likewise.
3558 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3559 _initialize_remote): Likewise.
3560 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3561 * serial.c (_initialize_serial): Likewise.
3562 * skip.c (_initialize_step_skip): Likewise.
3563 * source.c (_initialize_source): Likewise.
3564 * stack.c (_initialize_stack): Likewise.
3565 * symfile.c (_initialize_symfile): Likewise.
3566 * symtab.c (_initialize_symtab): Likewise.
3567 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3568 * top.c (init_main): Likewise.
3569 * tracefile-tfile.c (tfile_target_info): Likewise.
3570 * tracepoint.c (_initialize_tracepoint): Likewise.
3571 * tui/tui-win.c (_initialize_tui_win): Likewise.
3572 * utils.c (add_internal_problem_command): Likewise.
3573 * valprint.c (value_print_option_defs): Likewise.
3574
3575 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3576
3577 PR build/24886
3578 * configure.ac: Drop enable-libmcheck support.
3579 * configure, config.in: Rebuild.
3580 * libmcheck.m4: Remove.
3581 * acinclude.m4: Don't include it.
3582 * Makefile.in: Don't distribute it.
3583 * top.c (print_gdb_configuration): Don't mention it.
3584
3585 2019-08-06 Tom Tromey <tom@tromey.com>
3586
3587 * utils.c (set_output_style): Sometimes pass stream to
3588 emit_style_escape.
3589 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3590 * record-btrace.c (btrace_insn_history): Update.
3591 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3592 method.
3593 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3594 Update initializers.
3595 <m_uiout>: New field.
3596 <m_di>: Move lower.
3597 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3598 Remove "uiout" parameter.
3599 (dump_insns): Update.
3600 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3601 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3602
3603 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3604
3605 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3606 (error_in_psymtab_expansion): Likewise.
3607 (lookup_symbol_via_quick_fns): Likewise.
3608 (basic_lookup_transparent_type_quick): Likewise.
3609 (basic_lookup_transparent_type_1): Likewise.
3610
3611 2019-08-06 Tom Tromey <tromey@adacore.com>
3612
3613 * source.c (last_source_error): Now bool.
3614 (print_source_lines_base): Make "noprint" bool. Only open
3615 source file when last_source_visited changes.
3616
3617 2019-08-06 Tom Tromey <tromey@adacore.com>
3618
3619 * annotate.c (annotate_source_line): Use g_source_cache.
3620 * source-cache.c (source_cache::get_plain_source_lines): Change
3621 parameters. Populate m_offset_cache.
3622 (source_cache::ensure): New method.
3623 (source_cache::get_line_charpos): New method.
3624 (extract_lines): Move lower. Change parameters.
3625 (source_cache::get_source_lines): Move lower.
3626 * source-cache.h (class source_cache): Update comment.
3627 <get_line_charpos>: New method.
3628 <get_source_lines>: Update comment.
3629 <clear>: Clear m_offset_cache.
3630 <get_plain_source_lines>: Change parameters.
3631 <ensure>: New method
3632 <m_offset_cache>: New member.
3633 * source.c (forget_cached_source_info_for_objfile): Update.
3634 (info_source_command): Use g_source_cache.
3635 (find_source_lines, open_source_file_with_line_charpos): Remove.
3636 (print_source_lines_base, search_command_helper): Use g_source_cache.
3637 * source.h (open_source_file_with_line_charpos): Don't declare.
3638 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3639 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3640 Use g_source_cache.
3641
3642 2019-08-06 Tom Tromey <tromey@adacore.com>
3643
3644 * source-cache.c (source_cache::get_plain_source_lines):
3645 Remove "first_line" and "last_line" parameters.
3646 (source_cache::get_source_lines): Cache plain text.
3647 * source-cache.h (class source_cache)
3648 <get_plain_source_lines>: Update.
3649
3650 2019-08-06 Tom Tromey <tromey@adacore.com>
3651
3652 * source-cache.c (extract_lines): No longer a method.
3653 Changed type of parameter. Include final newline.
3654 (selftests::extract_lines_test): New function.
3655 (_initialize_source_cache): Likewise.
3656 * source-cache.h (class source_cache)
3657 <extract_lines>: Don't declare.
3658
3659 2019-08-06 Tom Tromey <tromey@adacore.com>
3660
3661 * breakpoint.c (init_breakpoint_sal): Update.
3662 (breakpoint): Update.
3663 * breakpoint.h (struct breakpoint) <filter>: Now a
3664 unique_xmalloc_ptr.
3665
3666 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3667
3668 * NEWS: Mention dictionary access on blocks.
3669 * python/py-block.c (blpy_getitem): New function.
3670 (block_object_as_mapping): New struct.
3671 (block_object_type): Use new struct for tp_as_mapping field.
3672
3673 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3674
3675 * objfiles.h (objfile): Add a comment describing partial symbols.
3676
3677 2019-08-05 Tom Tromey <tromey@adacore.com>
3678
3679 * compile/compile.c (_initialize_compile): Use _(), not N_().
3680 * thread.c (_initialize_thread): Use _(), not N_().
3681 * stack.c (_initialize_stack): Use _(), not N_().
3682 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3683
3684 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3685
3686 * dwarf2read.c (struct dw2_symtab_iterator):
3687 <want_specific_block>: Remove.
3688 <block_index>: Change type to gdb::optional.
3689 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3690 change type of BLOCK_INDEX parameter to gdb::optional.
3691 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3692 (dw2_lookup_symbol): Don't pass argument for
3693 WANT_SPECIFIC_BLOCK.
3694 (dw2_expand_symtabs_for_function): Don't pass argument for
3695 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3696 (class dw2_debug_names_iterator)
3697 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3698 parameter, change BLOCK_INDEX type to gdb::optional.
3699 <m_want_specific_block>: Remove.
3700 <m_block_index>: Change type to gdb::optional.
3701 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3702 gdb::optional. Re-write in function of gdb::optional.
3703 (dw2_debug_names_lookup_symbol): Don't pass argument for
3704 WANT_SPECIFIC_BLOCK.
3705 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3706 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3707 BLOCK_INDEX.
3708
3709 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3710
3711 * NEWS: Mention changes to "info sources" command.
3712
3713 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3714
3715 * symtab.c (filename_partial_match_opts): New struct type.
3716 (struct output_source_filename_data): New members
3717 regexp, c_regexp, partial_match.
3718 (output_source_filename): Use new members to decide to print file.
3719 (info_sources_option_defs): New variable.
3720 (make_info_sources_options_def_group, print_info_sources_header,
3721 info_sources_command_completer):
3722 New functions.
3723 (info_sources_command): Read new optional arguments.
3724 (_initialize_symtab): Update info sources help.
3725
3726 2019-08-02 Alexandre Oliva <oliva@adacore.com>
3727
3728 * ada-lang.c (exception_support_info_v0): Renamed from...
3729 (default_exception_support_info): ... this. Create new
3730 definition for v1.
3731 (ada_has_this_exception_support): Look up catch_handlers_sym.
3732 (ada_exception_support_info_sniffer): Try v0 after default.
3733
3734 2019-08-01 Tom Tromey <tromey@adacore.com>
3735
3736 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3737 gdbarch.h.
3738
3739 2019-08-01 Christian Biesinger <cbiesinger@google.com>
3740
3741 * s12z-tdep.c: Fix include path for s12z-opc.h.
3742
3743 2019-08-01 Alan Hayward <alan.hayward@arm.com>
3744
3745 * NEWS: Require GNU make 3.82.
3746
3747 2019-07-16 Tom Tromey <tom@tromey.com>
3748
3749 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3750 declare.
3751
3752 2019-07-30 Tom Tromey <tromey@adacore.com>
3753
3754 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3755
3756 2019-07-30 Kevin Buettner <kevinb@redhat.com>
3757
3758 * printcmd.c (print_address_symbolic): Print negative offsets.
3759 (build_address_symbolic): Force signed arithmetic when computing
3760 offset.
3761
3762 2019-07-30 Christian Biesinger <cbiesinger@google.com>
3763
3764 PR/24474: Add a function to lookup static variables.
3765 * NEWS: Mention this new function.
3766 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3767 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3768 * python/python.c (python_GdbMethods): Add new function.
3769
3770 2019-07-29 Christian Biesinger <cbiesinger@google.com>
3771
3772 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3773 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3774 (objfpy_lookup_static_symbol): New function.
3775 (objfile_object_methods): Add new functions.
3776
3777 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3778
3779 * NEWS: Mention 'set|show print frame-info'. Mention new
3780 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3781 backtrace argument. Mention that python frame filtering code
3782 is now consistent with what 'backtrace' command prints.
3783
3784 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3785
3786 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3787 comments.
3788 (print_frame_info_auto, print_frame_info_source_line,
3789 print_frame_info_location, print_frame_info_source_and_location,
3790 print_frame_info_location_and_address, print_frame_info_short_location):
3791 New declarations.
3792 (struct frame_print_options): New member print_frame_info.
3793 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3794 * stack.h (get_user_print_what_frame_info): New declaration.
3795 (frame_show_address): New declaration.
3796 * stack.c (print_frame_arguments_choices): New value 'presence'.
3797 (print_frame_info_auto, print_frame_info_source_line,
3798 print_frame_info_location, print_frame_info_source_and_location,
3799 print_frame_info_location_and_address, print_frame_info_short_location,
3800 print_frame_info_choices, print_frame_info_print_what): New definitions.
3801 (print_frame_args): Only print dots for args if print frame-arguments
3802 is 'presence'.
3803 (frame_print_option_defs): New element for "frame-info".
3804 (get_user_print_what_frame_info): New function.
3805 (frame_show_address): Make non static. Move comment to stack.h.
3806 (print_frame_info_to_print_what): New function.
3807 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3808 to decide what to print.
3809 (backtrace_command_1): Handle the new print_frame_arguments_presence
3810 value.
3811 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3812 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3813 (py_print_frame): In non-mi mode, use LOCATION as default for
3814 print_what, similarly to frame information printed directly by
3815 backtrace command. Handle frame-info user option in non MI mode.
3816
3817 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3818
3819 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3820 Add case for debugging 32-bit target on 64-bit host. Revise
3821 comment.
3822
3823 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3824
3825 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3826 instead of find_function_entry_range_from_pc.
3827
3828 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3829
3830 * stack.c (find_frame_funname): Remove code which preferred
3831 minsym over symtab sym in "certain pathological cases".
3832
3833 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3834 parameter. Change type of "do_demangle" to bool.
3835 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3836 Pass suitable "prefer_sym_over_minsym" flag to
3837 build_address_symbolic(). Don't output "+" for negative offsets.
3838 * printcmd.c (print_address_symbolic): Update invocation of
3839 build_address_symbolic to include a "prefer_sym_over_minsym"
3840 flag.
3841 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3842 Restrict cases in which use of minimal symbol is preferred to that
3843 of a found symbol. Update comments.
3844
3845 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3846 for entry pc when entry pc is out of range for that FDE.
3847
3848 2019-07-26 Brian Callahan <bcallah@openbsd.org>
3849
3850 PR gdb/24839:
3851 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3852 type.
3853
3854 2019-07-25 Christian Biesinger <cbiesinger@google.com>
3855
3856 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3857 this function's Python signature.
3858
3859
3860 2019-07-24 Christian Biesinger <cbiesinger@google.com>
3861
3862 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3863 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3864 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3865 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3866 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3867
3868
3869 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3870
3871 * h8300-tdep.c (h8300_register_name_common): New.
3872 h8300_register_name): Use h8300_register_name_common.
3873 (h8300s_register_name): Likewise.
3874 (h8300sx_register_name): Likewise.
3875 (h8300h_register_nam): New.
3876 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3877
3878
3879 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3880
3881 * arm-tdep.c (arm_skip_cmse_entry): New function.
3882 (arm_is_sgstubs_section): New function.
3883 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3884
3885 2019-07-22 Tom Tromey <tom@tromey.com>
3886
3887 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3888 Don't self-assign.
3889
3890 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3891
3892 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3893 type_print.
3894
3895 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3896
3897 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3898 so that GDB doesn't match any msymbols when searching in the
3899 TYPES_DOMAIN.
3900 (print_symbol_info): Print using typedef_print or type_print based
3901 on the type of the symbol. Add updated FIXME comment moved from...
3902 (_initialize_symtab): ... move and update FIXME comment to above.
3903
3904 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3905
3906 * NEWS: Mention adding -q option to "info types".
3907 * symtab.c (struct info_types_options): New struct.
3908 (info_types_options_defs): New variable.
3909 (make_info_types_options_def_group): New function.
3910 (info_types_command): Use gdb::option framework to parse options.
3911 (info_types_command_completer): New function.
3912 (_initialize_symtab): Extend the help text on "info types" and
3913 register command completer.
3914
3915 2019-07-21 Christian Biesinger <cbiesinger@google.com>
3916
3917 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3918 (lookup_symbol_in_objfile): Change int to block_enum and add a
3919 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3920
3921 2019-07-20 Christian Biesinger <cbiesinger@google.com>
3922
3923 * MAINTAINERS (Write After Approval): Add self.
3924
3925 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3926
3927 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3928 instruction to the dummy code region.
3929
3930 2019-07-19 Tom Tromey <tromey@adacore.com>
3931
3932 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3933 (ARGSUSED, PARAMS, __func__): Remove rules.
3934
3935 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3936
3937 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3938 * features/arm/arm-with-iwmmxt.c: Remove.
3939 * features/arm/arm-with-iwmmxt.xml: Remove.
3940 * features/arm/arm-with-m-fpa-layout.c: Remove.
3941 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3942 * features/arm/arm-with-m-vfp-d16.c: Remove.
3943 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3944 * features/arm/arm-with-m.c: Remove.
3945 * features/arm/arm-with-m.xml: Remove.
3946 * features/arm/arm-with-neon.c: Remove.
3947 * features/arm/arm-with-neon.xml: Remove.
3948 * features/arm/arm-with-vfpv2.c: Remove.
3949 * features/arm/arm-with-vfpv2.xml: Remove.
3950 * features/arm/arm-with-vfpv3.c: Remove.
3951 * features/arm/arm-with-vfpv3.xml: Remove.
3952
3953 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3954
3955 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3956
3957 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3958
3959 * arch/aarch32.c (aarch32_create_target_description): Create
3960 target descriptions using features.
3961 * arch/arm.c (arm_create_target_description)
3962 (arm_create_mprofile_target_description): Likewise.
3963 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3964
3965 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3966
3967 * Makefile.in: Add new files.
3968 * aarch32-tdep.c: New file.
3969 * aarch32-tdep.h: New file.
3970 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3971 Call aarch32_read_description.
3972 * arch/aarch32.c: New file.
3973 * arch/aarch32.h: New file.
3974 * arch/arm.c (arm_create_target_description)
3975 (arm_create_mprofile_target_description): New function.
3976 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3977 (arm_create_target_description)
3978 (arm_create_mprofile_target_description): New declaration.
3979 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3980 read_description functions.
3981 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3982 Likewise.
3983 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3984 * arm-tdep.c (tdesc_arm_list): New variable.
3985 (arm_register_g_packet_guesses): Call create description functions.
3986 (arm_read_description) (arm_read_mprofile_description): New
3987 function.
3988 * arm-tdep.h (arm_read_description)
3989 (arm_read_mprofile_description): Add declaration.
3990 * configure.tgt: Add new files.
3991
3992 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3993
3994 * top.c (new_ui_command): Open specified terminal just once.
3995
3996 2019-07-18 Tom Tromey <tromey@adacore.com>
3997
3998 * symtab.c (main_name): Constify return type.
3999 * symfile.c (set_initial_language): Update.
4000 * symtab.h (main_name): Constify return type.
4001
4002 2019-07-17 Tom Tromey <tom@tromey.com>
4003
4004 * tui/tui-winsource.c (tui_update_source_window)
4005 (tui_update_source_window_as_is)
4006 (tui_update_source_windows_with_line): Remove return.
4007 * tui/tui-disasm.c (tui_show_disassem)
4008 (tui_show_disassem_and_update_source): Remove return.
4009 * tui/tui.c (tui_reset): Remove return.
4010 * tui/tui-wingeneral.c
4011 (tui_check_and_display_highlight_if_needed): Remove return.
4012
4013 2019-07-17 Tom Tromey <tom@tromey.com>
4014
4015 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4016
4017 2019-07-17 Tom Tromey <tom@tromey.com>
4018
4019 * tui/tui-winsource.h (struct tui_exec_info_window)
4020 (struct tui_source_window_base): Move from tui-data.h.
4021 * tui/tui-winsource.c: Move many method definitions from
4022 elsewhere. Remove "structuring" comments.
4023 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4024 (tui_source_window_base::refresh_window): Move to
4025 tui-winsource.c.
4026 * tui/tui-win.c (tui_source_window_base::refresh_all)
4027 (tui_source_window_base::update_tab_width)
4028 (tui_source_window_base::set_new_height)
4029 (tui_source_window_base::do_make_visible_with_new_height): Move to
4030 tui-winsource.c.
4031 * tui/tui-source.h: Update.
4032 * tui/tui-source.c (tui_source_window_base::reset): Move to
4033 tui-winsource.c.
4034 * tui/tui-disasm.h: Update.
4035 * tui/tui-data.h (struct tui_exec_info_window): Move to
4036 tui-winsource.h.
4037 (struct tui_source_window_base): Likewise.
4038 * tui/tui-data.c (tui_source_window_base::clear_detail)
4039 (tui_source_window_base, ~tui_source_window_base): Move to
4040 tui-winsource.c.
4041
4042 2019-07-17 Tom Tromey <tom@tromey.com>
4043
4044 * tui/tui-win.c (tui_resize_all)
4045 (tui_source_window_base::update_tab_width)
4046 (tui_adjust_win_heights): Update.
4047 (tui_win_info::make_invisible_and_set_new_height): Rename from
4048 make_invisible_and_set_new_height.
4049 * tui/tui-data.h (struct tui_win_info)
4050 <make_invisible_and_set_new_height>: New method.
4051
4052 2019-07-17 Tom Tromey <tom@tromey.com>
4053
4054 * tui/tui.c: Update.
4055 * tui/tui-source.h (struct tui_source_window): Move from
4056 tui-data.h.
4057 * tui/tui-layout.c: Update.
4058 * tui/tui-disasm.c: Update.
4059 * tui/tui-data.h (struct tui_source_window): Move to
4060 tui-source.h.
4061
4062 2019-07-17 Tom Tromey <tom@tromey.com>
4063
4064 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4065 tui-data.h.
4066 * tui/tui-data.h (struct tui_disasm_window): Move to
4067 tui-disasm.h.
4068
4069 2019-07-17 Tom Tromey <tom@tromey.com>
4070
4071 * tui/tui-regs.h (struct tui_data_item_window): Move from
4072 tui-data.h.
4073 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4074 * tui/tui-data.h (struct tui_data_item_window): Move to
4075 tui-regs.h.
4076 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4077
4078 2019-07-17 Tom Tromey <tom@tromey.com>
4079
4080 * tui/tui.c: Update.
4081 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4082 (tui_cmd_window::max_height): Move to tui-command.c.
4083 * tui/tui-layout.c: Update.
4084 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4085 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4086 tui-command.c.
4087 * tui/tui-command.h (struct tui_cmd_window): Move from
4088 tui-data.h.
4089 * tui/tui-command.c: Remove "structuring" comments.
4090 (tui_cmd_window::clear_detail)
4091 (tui_cmd_window::do_make_visible_with_new_height)
4092 (tui_cmd_window::max_height): Move from elsewhere.
4093
4094 2019-07-17 Tom Tromey <tom@tromey.com>
4095
4096 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4097 Now static.
4098 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4099 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4100
4101 2019-07-17 Tom Tromey <tom@tromey.com>
4102
4103 * tui/tui.c: Update.
4104 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4105 tui-regs.c.
4106 * tui/tui-windata.h: Remove file.
4107 * tui/tui-windata.c: Remove file.
4108 * tui/tui-win.c (tui_data_window::set_new_height)
4109 (tui_data_window::do_make_visible_with_new_height): Move to
4110 tui-regs.c.
4111 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4112 * tui/tui-regs.c: Remove "structuring" comments.
4113 (tui_data_window::first_data_item_displayed)
4114 (tui_data_window::delete_data_content_windows)
4115 (tui_data_window::erase_data_content)
4116 (tui_data_window::display_all_data)
4117 (tui_data_window::refresh_all)
4118 (tui_data_window::do_scroll_vertical)
4119 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4120 (tui_data_window::do_make_visible_with_new_height)
4121 (tui_data_window::refresh_window): Move from elsewhere.
4122 (_initialize_tui_regs): Move to end of file.
4123 * tui/tui-layout.c: Update.
4124 * tui/tui-hooks.c: Update.
4125 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4126 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4127 tui-regs.c.
4128 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4129
4130 2019-07-17 Tom Tromey <tom@tromey.com>
4131
4132 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4133 seen.
4134
4135 2019-07-17 Tom Tromey <tom@tromey.com>
4136
4137 * tui/tui-win.c (tui_source_window_base::set_new_height)
4138 (tui_source_window_base::do_make_visible_with_new_height): Use
4139 m_has_locator field directly.
4140 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4141 method.
4142 (struct tui_source_window_base) <has_locator>: Likewise.
4143
4144 2019-07-17 Tom Tromey <tom@tromey.com>
4145
4146 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4147 Don't declare.
4148 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4149 Remove.
4150 * tui/tui-win.c (tui_source_window_base::set_new_height)
4151 (tui_source_window_base::set_new_height)
4152 (make_invisible_and_set_new_height)
4153 (tui_source_window_base::do_make_visible_with_new_height)
4154 (tui_source_window_base::do_make_visible_with_new_height):
4155 Update.
4156 * tui/tui-layout.c (show_source_disasm_command, show_data)
4157 (show_source_or_disasm_and_command): Update.
4158 * tui/tui-layout.c (show_layout): Update.
4159
4160 2019-07-17 Tom Tromey <tom@tromey.com>
4161
4162 * tui/tui-layout.c (make_data_window): Remove.
4163 (show_data): Unify creation and re-initialization cases.
4164
4165 2019-07-17 Tom Tromey <tom@tromey.com>
4166
4167 * tui/tui-layout.c (make_source_window, make_disasm_window):
4168 Remove.
4169 (show_data): Unify creation and re-initialization cases.
4170
4171 2019-07-17 Tom Tromey <tom@tromey.com>
4172
4173 * tui/tui-layout.c (make_command_window): Remove.
4174 (show_source_disasm_command, show_source_or_disasm_and_command):
4175 Unify creation and re-initialization cases.
4176
4177 2019-07-17 Tom Tromey <tom@tromey.com>
4178
4179 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4180 creation and re-initialization cases.
4181
4182 2019-07-17 Tom Tromey <tom@tromey.com>
4183
4184 * tui/tui-regs.c (tui_get_register): Return void.
4185
4186 2019-07-17 Tom Tromey <tom@tromey.com>
4187
4188 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4189 Simplify.
4190
4191 2019-07-17 Tom Tromey <tom@tromey.com>
4192
4193 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4194 resetting.
4195
4196 2019-07-17 Tom Tromey <tom@tromey.com>
4197
4198 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4199 * tui/tui-regs.c (tui_reg_layout): New function.
4200 (tui_show_registers, tui_reg_command): Use it.
4201 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4202 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4203 parameters.
4204 (tui_layout_command): Remove.
4205
4206 2019-07-17 Tom Tromey <tom@tromey.com>
4207
4208 * tui/tui-layout.h (tui/tui-layout): Return void.
4209 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4210
4211 2019-07-17 Tom Tromey <tom@tromey.com>
4212
4213 * tui/tui-layout.c (show_source_disasm_command, show_data):
4214 Update.
4215 (reset_locator): Remove.
4216 (show_source_or_disasm_and_command): Update.
4217
4218 2019-07-17 Tom Tromey <tom@tromey.com>
4219
4220 * tui/tui-source.c (tui_source_window_base::reset): Remove
4221 win_type parameter.
4222 * tui/tui-layout.c (make_command_window, make_source_window)
4223 (make_disasm_window, make_data_window)
4224 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4225 (reset_locator, show_source_or_disasm_and_command): Update.
4226 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4227 win_type parameter.
4228 (struct tui_source_window_base) <reset>: Likewise.
4229
4230 2019-07-17 Tom Tromey <tom@tromey.com>
4231
4232 * tui/tui-layout.c (show_source_disasm_command): Use
4233 reset_locator.
4234 (reset_locator): New function.
4235 (init_and_make_win): Remove.
4236 (show_source_or_disasm_and_command): Use reset_locator.
4237
4238 2019-07-17 Tom Tromey <tom@tromey.com>
4239
4240 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4241 condition.
4242 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4243 Remove condition.
4244 * tui/tui-source.c (tui_source_window_base::reset): New method.
4245 * tui/tui-layout.c (make_command_window): Don't call
4246 init_and_make_win.
4247 (make_source_window, make_disasm_window): Don't call
4248 make_source_or_disasm_window.
4249 (make_data_window): Don't call init_and_make_win. Change calling
4250 convention.
4251 (show_source_disasm_command, show_data): Simplify.
4252 (make_source_or_disasm_window): Remove.
4253 (show_source_or_disasm_and_command): Simplify.
4254 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4255 (struct tui_source_window_base) <reset>: Likewise.
4256 <execution_info>: Remove initializer.
4257 * tui/tui-data.c (tui_source_window_base): Initialize
4258 execution_info.
4259
4260 2019-07-17 Tom Tromey <tom@tromey.com>
4261
4262 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4263 variable.
4264
4265 2019-07-17 Tom Tromey <tom@tromey.com>
4266
4267 * tui/tui.c (tui_rl_other_window): Update.
4268 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4269 superclass method first. Always iterate over regs_content.
4270 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4271 method.
4272 * tui/tui-win.c (tui_set_focus_command): Update.
4273
4274 2019-07-17 Tom Tromey <tom@tromey.com>
4275
4276 * tui/tui-win.c (tui_set_focus_command): Rename from
4277 tui_set_focus. Call tui_enable.
4278 (tui_set_focus_command): Remove.
4279
4280 2019-07-17 Tom Tromey <tom@tromey.com>
4281
4282 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4283 refresh_window.
4284 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4285 touchwin.
4286 (tui_data_window::refresh_window): Call refresh_window on data
4287 items. Always call superclass refresh_window.
4288 (tui_win_info::refresh): Remove.
4289 (tui_source_window_base::refresh_window): Update.
4290 (tui_refresh_all): Update.
4291 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4292 refresh_window.
4293 (show_source_or_disasm_and_command): Likewise.
4294 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4295 (struct tui_source_window_base) <refresh>: Likewise.
4296
4297 2019-07-17 Tom Tromey <tom@tromey.com>
4298
4299 * tui/tui-winsource.c (tui_clear_source_content)
4300 (tui_show_source_content): Update.
4301 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4302 whether content is empty.
4303 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4304 Remove.
4305
4306 2019-07-17 Tom Tromey <tom@tromey.com>
4307
4308 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4309 window's contents.
4310 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4311 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4312
4313 2019-07-17 Tom Tromey <tom@tromey.com>
4314
4315 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4316 (struct tui_data_item_window): Update.
4317
4318 2019-07-17 Tom Tromey <tom@tromey.com>
4319
4320 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4321 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4322 defines.
4323
4324 2019-07-17 Tom Tromey <tom@tromey.com>
4325
4326 * tui/tui-winsource.h (tui_erase_source_content)
4327 (tui_clear_source_content): Remove "display_prompt" parameter.
4328 * tui/tui-winsource.c (tui_update_source_window_as_is)
4329 (tui_update_source_windows_with_addr): Update.
4330 (tui_clear_source_content): Remove "display_prompt" parameter.
4331 (tui_erase_source_content): Likewise. Simplify.
4332 (tui_show_source_content): Update.
4333 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4334 * tui/tui-stack.c (tui_show_frame_info): Update.
4335 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4336 Remove defines.
4337
4338 2019-07-17 Tom Tromey <tom@tromey.com>
4339
4340 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4341 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4342 parameter.
4343 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4344 parameter.
4345
4346 2019-07-17 Tom Tromey <tom@tromey.com>
4347
4348 * tui/tui-winsource.c (tui_clear_source_content)
4349 (tui_show_source_content, tui_show_exec_info_content)
4350 (tui_clear_exec_info_content): Update.
4351 * tui/tui-stack.c (tui_show_locator_content): Update.
4352 (tui_show_frame_info): Update.
4353 * tui/tui-source.h (tui_source_window): Don't declare.
4354 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4355 from tui_source_is_displayed.
4356 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4357 Remove field.
4358 (struct tui_source_window_base) <content_in_use>: New field. Now
4359 bool.
4360 (struct tui_source_window) <showing_source_p>: New method.
4361 (TUI_SRC_WIN): Change cast.
4362 * tui/tui-data.c (tui_initialize_static_data): Update.
4363
4364 2019-07-17 Tom Tromey <tom@tromey.com>
4365
4366 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4367 location_matches_p.
4368 * tui/tui-source.c (tui_source_window::location_matches_p): New
4369 method.
4370 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4371 method.
4372 * tui/tui-data.h (struct tui_source_window_base)
4373 <location_matches_p>: New method.
4374 (struct tui_source_window, struct tui_disasm_window)
4375 <location_matches_p>: Likewise.
4376
4377 2019-07-17 Tom Tromey <tom@tromey.com>
4378
4379 * tui/tui-win.c (tui_set_win_height_command): Rename from
4380 tui_set_win_height.
4381 (tui_set_win_height_command): Remove.
4382
4383 2019-07-17 Tom Tromey <tom@tromey.com>
4384
4385 * tui/tui-source.c (tui_source_window): New constructor. Add
4386 observer.
4387 (~tui_source_window): New destructor.
4388 (tui_source_window::style_changed): New method.
4389 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4390 (tui_attach_detach_observers): Update.
4391 * tui/tui-data.h (struct tui_source_window): Make constructor not
4392 inline. Add destructor.
4393 (struct tui_source_window) <style_changed>: New method.
4394 <m_observable>: New member.
4395
4396 2019-07-17 Tom Tromey <tom@tromey.com>
4397
4398 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4399 * tui/tui-win.c (tui_resize_all): Fix typo.
4400
4401 2019-07-17 Tom Tromey <tom@tromey.com>
4402
4403 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4404 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4405 (tui_refresh_all): Remove "list" parameter. Use foreach.
4406 * tui/tui-win.c (window_name_completer): Use foreach.
4407 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4408 (update_tab_width): Likewise.
4409 * tui/tui-layout.c (show_layout): Update.
4410 * tui/tui-data.h (class tui_window_iterator): New.
4411 (struct all_tui_windows): New.
4412 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4413
4414 2019-07-17 Tom Tromey <tom@tromey.com>
4415
4416 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4417 parameter. Don't reference globals.
4418 (tui_reg_command): Update.
4419
4420 2019-07-17 Tom Tromey <tom@tromey.com>
4421
4422 * tui/tui-regs.c (tui_show_registers): Simplify.
4423
4424 2019-07-17 Tom Tromey <tom@tromey.com>
4425
4426 * tui/tui-regs.c (tui_show_registers): Update.
4427 (tui_show_register_group): Add win_info parameter.
4428
4429 2019-07-17 Tom Tromey <tom@tromey.com>
4430
4431 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4432 Rename from tui_display_reg_element_at_line.
4433 (tui_data_window::display_registers_from_line): Update.
4434 * tui/tui-data.h (struct tui_data_window)
4435 <display_reg_element_at_line>: New method.
4436
4437 2019-07-17 Tom Tromey <tom@tromey.com>
4438
4439 * tui/tui-regs.h (tui_display_registers_from)
4440 (tui_display_registers_from_line): Don't declare.
4441 * tui/tui-windata.c (tui_data_window::display_all_data)
4442 (tui_data_window::refresh_all)
4443 (tui_data_window::do_scroll_vertical): Update.
4444 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4445 from tui_display_registers_from.
4446 (tui_display_reg_element_at_line): Update.
4447 (tui_data_window::display_registers_from_line): Rename from
4448 tui_display_registers_from_line.
4449 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4450 display_registers_from_line>: New methods.
4451
4452 2019-07-17 Tom Tromey <tom@tromey.com>
4453
4454 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4455 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4456 from tui_erase_data_content.
4457 (tui_data_window::display_all_data)
4458 (tui_data_window::refresh_all)
4459 (tui_data_window::do_scroll_vertical): Update.
4460 * tui/tui-regs.c (tui_show_registers): Update.
4461 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4462 New method.
4463
4464 2019-07-17 Tom Tromey <tom@tromey.com>
4465
4466 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4467 declare.
4468 * tui/tui-windata.c
4469 (tui_data_window::delete_data_content_windows): Rename from
4470 tui_delete_data_content_windows.
4471 (tui_data_window::display_all_data)
4472 (tui_data_window::do_scroll_vertical): Update.
4473 * tui/tui-data.h (struct tui_data_window)
4474 <delete_data_content_windows>: New method.
4475
4476 2019-07-17 Tom Tromey <tom@tromey.com>
4477
4478 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4479 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4480
4481 2019-07-17 Tom Tromey <tom@tromey.com>
4482
4483 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4484 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4485 from tui_display_all_data.
4486 * tui/tui-win.c
4487 (tui_data_window::do_make_visible_with_new_height): Update.
4488 * tui/tui-regs.c (tui_show_registers): Update.
4489 * tui/tui-layout.c (tui_set_layout): Update.
4490 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4491 method.
4492
4493 2019-07-17 Tom Tromey <tom@tromey.com>
4494
4495 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4496 * tui/tui-windata.c (tui_display_data_from): Remove.
4497 (tui_data_window::refresh_all): Update.
4498
4499 2019-07-17 Tom Tromey <tom@tromey.com>
4500
4501 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4502 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4503 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4504 tui_display_registers_from_line.
4505 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4506 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4507 "force_display" parameter.
4508
4509 2019-07-17 Tom Tromey <tom@tromey.com>
4510
4511 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4512 declare.
4513 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4514 Rename from tui_first_reg_element_no_inline.
4515 (tui_display_reg_element_at_line)
4516 (tui_display_registers_from_line): Update.
4517 * tui/tui-data.h (struct tui_data_window)
4518 <first_reg_element_no_inline>: New method.
4519
4520 2019-07-17 Tom Tromey <tom@tromey.com>
4521
4522 * tui/tui-windata.c (tui_display_data_from)
4523 (tui_data_window::do_scroll_vertical): Update.
4524 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4525 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4526 Rename from tui_line_from_reg_element_no.
4527 (tui_display_registers_from_line): Update.
4528 * tui/tui-data.h (struct tui_data_window)
4529 <line_from_reg_element_no>: New method.
4530
4531 2019-07-17 Tom Tromey <tom@tromey.com>
4532
4533 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4534 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4535 tui_last_regs_line_no.
4536 (tui_display_reg_element_at_line)
4537 (tui_display_registers_from_line): Update.
4538 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4539 method.
4540
4541 2019-07-17 Tom Tromey <tom@tromey.com>
4542
4543 PR tui/24722:
4544 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4545 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4546 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4547 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4548 (tui_update_breakpoint_info): Likewise.
4549 * tui/tui-hooks.c (tui_event_create_breakpoint)
4550 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4551 Update.
4552
4553 2019-07-17 Tom Tromey <tom@tromey.com>
4554
4555 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4556
4557 2019-07-17 Tom Tromey <tom@tromey.com>
4558
4559 * tui/tui-winsource.c (tui_update_source_window_as_is)
4560 (tui_update_source_windows_with_addr): Update.
4561 * tui/tui-source.h (tui_set_source_content)
4562 (tui_show_symtab_source): Add "win_info" parameter.
4563 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4564 parameter.
4565 (tui_show_symtab_source): Likewise.
4566
4567 2019-07-17 Tom Tromey <tom@tromey.com>
4568
4569 * tui/tui-wingeneral.c
4570 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4571
4572 2019-07-17 Tom Tromey <tom@tromey.com>
4573
4574 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4575 (struct tui_cmd_window) <can_scroll>: New method.
4576 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4577 method.
4578
4579 2019-07-17 Tom Tromey <tromey@adacore.com>
4580
4581 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4582 do_field_signed>: Rename. Change type of "value".
4583 * ui-out.c (ui_out::field_signed): Rename from field_int.
4584 Change type of "value".
4585 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4586 type of "value".
4587 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4588 do_field_int. Change type of "value".
4589 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4590 do_field_int. Change type of "value".
4591 * tracepoint.c (trace_status_mi, tfind_1)
4592 (print_one_static_tracepoint_marker): Update.
4593 * thread.c (print_thread_info_1, print_selected_thread_frame):
4594 Update.
4595 * stack.c (print_frame, print_frame_info): Update.
4596 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4597 Update.
4598 * source.c (print_source_lines_base): Update.
4599 * skip.c (info_skip_command): Update.
4600 * record-btrace.c (btrace_ui_out_decode_error)
4601 (btrace_call_history_src_line): Update.
4602 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4603 Update.
4604 * progspace.c (print_program_space): Update.
4605 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4606 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4607 do_field_int. Change type of "value".
4608 * mi/mi-out.c (mi_ui_out::do_table_begin)
4609 (mi_ui_out::do_table_header): Update.
4610 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4611 type of "value".
4612 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4613 (mi_cmd_data_list_changed_registers, output_register)
4614 (mi_cmd_data_read_memory, mi_load_progress)
4615 (mi_cmd_trace_frame_collected): Update.
4616 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4617 Update.
4618 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4619 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4620 (mi_cmd_var_list_children, varobj_update_one): Update.
4621 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4622 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4623 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4624 * inferior.c (print_inferior): Update.
4625 * gdb_bfd.c (print_one_bfd): Update.
4626 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4627 Update.
4628 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4629 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4630 do_field_int. Change type of "value".
4631 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4632 do_field_int. Change type of "value".
4633 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4634 (print_one_breakpoint_location, print_it_catch_fork)
4635 (print_one_catch_fork, print_it_catch_vfork)
4636 (print_one_catch_vfork, print_it_catch_solib)
4637 (print_it_catch_exec, print_it_ranged_breakpoint)
4638 (print_mention_watchpoint, print_mention_masked_watchpoint)
4639 (bkpt_print_it, update_static_tracepoint): Update.
4640 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4641 * break-catch-syscall.c (print_it_catch_syscall): Update.
4642 * ada-tasks.c (print_ada_task_info): Update.
4643 * ada-lang.c (print_it_exception, print_mention_exception):
4644 Update.
4645
4646 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4647
4648 PR breakpoints/24541
4649 * gdbarch.c: Regenerate.
4650 * gdbarch.h: Regenerate.
4651 * gdbarch.sh: Adjust return type and parameter types for
4652 'stap_adjust_register'.
4653 (i386_stap_adjust_register): Adjust signature and return new
4654 register name.
4655 * stap-probe.c (stap_parse_register_operand): Adjust use of
4656 'gdbarch_stap_adjust_register'.
4657
4658 2019-07-17 Tom Tromey <tromey@adacore.com>
4659
4660 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4661 declare VEC.
4662 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4663 std::vector.
4664 (struct s390_process_info): Add initializers.
4665 (s390_add_process): Use new.
4666 (s390_linux_nat_target::low_forget_process): Use delete.
4667 (s390_linux_nat_target::low_new_fork)
4668 (s390_linux_nat_target::stopped_by_watchpoint)
4669 (s390_linux_nat_target::low_prepare_to_resume)
4670 (s390_linux_nat_target::insert_watchpoint)
4671 (s390_linux_nat_target::insert_hw_breakpoint)
4672 (s390_linux_nat_target::remove_watchpoint)
4673 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4674
4675 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4676
4677 * aarch64-fbsd-nat.c: Include regcache.h.
4678 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4679 argument.
4680 (aarch64_fbsd_nat_target::fetch_registers)
4681 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4682 variable.
4683 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4684
4685 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4686
4687 * fbsd-nat.c: Include gdbarch.h.
4688
4689 2019-07-15 Tom Tromey <tromey@adacore.com>
4690
4691 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4692
4693 2019-07-15 Tom Tromey <tromey@adacore.com>
4694
4695 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4696 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4697 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4698 * cli-out.c (cli_ui_out::do_field_int): New method.
4699 * ui-out.c (ui_out::field_unsigned): New method.
4700 * symfile.c (generic_load): Use field_unsigned.
4701 (print_transfer_performance): Likewise.
4702 * record-btrace.c (ui_out_field_uint): Remove.
4703 (btrace_call_history_insn_range, btrace_call_history): Use
4704 field_unsigned.
4705 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4706 field_unsigned.
4707 * ui-out.h (class ui_out) <field_unsigned>: New method.
4708 <do_field_unsigned>: Likewise.
4709
4710 2019-07-15 Tom Tromey <tromey@adacore.com>
4711
4712 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4713 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4714 * target.c (flash_erase_command): Use field_string.
4715 * infrun.c (print_signal_received_reason): Use field_string.
4716 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4717 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4718 field_string.
4719 * ada-tasks.c (print_ada_task_info): Use field_string.
4720
4721 2019-07-15 Tom Tromey <tromey@adacore.com>
4722
4723 * target.c (flash_erase_command): Use field_core_addr.
4724 * symfile.c (generic_load): Use field_core_addr.
4725 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4726 Use field_core_addr.
4727 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4728 field_core_addr.
4729
4730 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4731
4732 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4733 value if its desired type is smaller than a CORE_ADDR and signed.
4734
4735 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4736
4737 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4738 of changes to field names, and use new is_reference field to
4739 decide if a property is a reference or not.
4740 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4741 field.
4742 (struct dwarf2_property_baton): Update header comment, rename
4743 'referenced_type' to 'property_type' and update comments.
4744 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4745 default property type, store in property baton, update to take
4746 accound of renamed field.
4747 (read_func_scope): Update call to attr_to_dynamic_prop.
4748 (read_array_type): Likewise.
4749 (dwarf2_per_cu_addr_sized_int_type): New function.
4750 (read_subrange_index_type): Move type finding code to
4751 dwarf2_per_cu_addr_sized_int_type.
4752 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4753 (dwarf2_per_cu_addr_type): New function.
4754 (set_die_type): Update calls to attr_to_dynamic_prop.
4755
4756 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4757
4758 * dwarf2read.c (read_subrange_index_type): New function.
4759 (read_subrange_type): Move code into new function and call it.
4760 * gdbtypes.c (create_range_type): Add some asserts.
4761
4762 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4763
4764 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4765 update return statements.
4766 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4767 declaration, and update comment to match.
4768 * gdbtypes.c (resolve_dynamic_array): Update call to
4769 dwarf2_evaluate_property to match new return type.
4770
4771 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4772
4773 * valarith.c (value_subscripted_rvalue): Change lowerbound
4774 parameter type from int to LONGEST.
4775 * value.h (value_subscripted_rvalue): Likewise in declaration.
4776
4777 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4778
4779 * cli/cli-utils.c (info_print_command_completer): New function.
4780 * cli/cli-utils.h: Add 'completer.h' include, and forward
4781 declaration for 'struct cmd_list_element'.
4782 (info_print_command_completer): Declare.
4783 * stack.c (_initialize_stack): Add completer for 'info locals' and
4784 'info args'.
4785 * symtab.c (_initialize_symtab): Add completer for 'info
4786 variables' and 'info functions'.
4787 * NEWS: Mention completion for additional info commands.
4788
4789 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4790
4791 * cli/cli-utils.c (extract_info_print_args): Delete.
4792 (extract_arg_maybe_quoted): Delete.
4793 (info_print_options_defs): New variable.
4794 (make_info_print_options_def_group): New function.
4795 (extract_info_print_options): Define new function.
4796 * cli/cli-utils.h (extract_info_print_args): Delete.
4797 (struct info_print_options): New structure.
4798 (extract_info_print_options): Declare new function.
4799 * stack.c (info_locals_command): Update to use new
4800 extract_info_print_options, also add a header comment.
4801 (info_args_command): Likewise.
4802 * symtab.c (info_variables_command): Likewise.
4803 (info_functions_command): Likewise.
4804
4805 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4806
4807 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4808 to extract string arguments.
4809 * common/common-utils.c (extract_string_maybe_quoted): New function.
4810 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4811
4812 2019-07-11 Tom Tromey <tromey@adacore.com>
4813
4814 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4815 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4816 * top.h (gdbinit): Don't declare.
4817 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4818 into...
4819 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4820 * top.c (gdb_init): Don't call init_cli_cmds.
4821 (gdbinit): Remove.
4822 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4823
4824 2019-07-11 Tom Tromey <tromey@adacore.com>
4825
4826 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4827 after it has been moved.
4828
4829 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4830
4831 * valops.c (value_must_coerce_to_target): Change return type to
4832 bool.
4833 * value.h (value_must_coerce_to_target): Likewise.
4834
4835 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
4836
4837 * breakpoint.c (is_hardware_watchpoint): Remove
4838 forward-declaration.
4839 (is_masked_watchpoint): Change return type to bool.
4840 (is_tracepoint): Likewise.
4841 (is_breakpoint): Likewise.
4842 (is_hardware_watchpoint): Likewise.
4843 (is_watchpoint): Likewise.
4844 (is_no_memory_software_watchpoint): Likewise.
4845 (is_catchpoint): Likewise.
4846 (breakpoint_1): Make FILTER parameter's return type bool.
4847 is_masked_watchpoint): Change return type to bool.
4848 (save_breakpoints): Make FILTER parameter's return type bool.
4849 * breakpoint.h (is_breakpoint): Change return type to bool.
4850 (is_watchpoint): Likewise.
4851 (is_catchpoint): Likewise.
4852 (is_tracepoint): Likewise.
4853
4854 2019-07-10 Tom Tromey <tom@tromey.com>
4855
4856 * defs.h: Don't include gdbarch.h.
4857 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4858 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4859 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4860 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4861 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4862 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4863 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4864 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4865 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4866 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4867 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4868 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4869 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4870 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4871 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4872 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4873 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4874 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4875 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4876 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4877 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4878 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4879 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4880 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4881 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4882 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4883 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4884
4885 2019-07-10 Tom Tromey <tromey@adacore.com>
4886
4887 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4888 * breakpoint.c (init_ada_exception_breakpoint): Register as
4889 bp_catchpoint.
4890 (print_one_breakpoint_location, print_one_breakpoint): Use
4891 is_ada_exception_catchpoint.
4892 * ada-lang.c (class ada_catchpoint_location): Pass
4893 bp_loc_software_breakpoint to bp_location constructor.
4894 (is_ada_exception_catchpoint): New function.
4895
4896 2019-07-10 Tom Tromey <tromey@adacore.com>
4897
4898 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4899 VEC.
4900 (struct arm_exidx_entry): New method operator<.
4901 (struct arm_exidx_data) <section_maps>: Change type.
4902 (arm_exidx_data_free): Remove.
4903 (arm_exidx_data_key): Change type. Move lower.
4904 (arm_exidx_new_objfile): Update.
4905 (arm_compare_exidx_entries): Remove.
4906 (arm_find_exidx_entry, _initialize_arm_tdep)
4907
4908 2019-07-10 Tom Tromey <tromey@adacore.com>
4909
4910 * solib-spu.c (ocl_program_data_key): Change type.
4911 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4912 Update.
4913
4914 2019-07-10 Tom Tromey <tromey@adacore.com>
4915
4916 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4917 (struct solib_aix_inferior_data) <library_list>: Change type.
4918 (solib_aix_inferior_data_handle): Change type.
4919 (get_solib_aix_inferior_data): Update.
4920 (solib_aix_free_library_list): Remove.
4921 (library_list_start_library): Update.
4922 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4923 return type.
4924 (solib_aix_get_library_list)
4925 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4926 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4927
4928 2019-07-10 Tom Tromey <tromey@adacore.com>
4929
4930 * solib-dsbt.c (struct dsbt_info): Add initializers.
4931 (solib_dsbt_pspace_data): Change type.
4932 (dsbt_pspace_data_cleanup): Remove.
4933 (get_dsbt_info, _initialize_dsbt_solib): Update.
4934
4935 2019-07-10 Tom Tromey <tromey@adacore.com>
4936
4937 * spu-tdep.c (spu_overlay_data): Change type.
4938 (spu_get_overlay_table, spu_overlay_new_objfile)
4939 (_initialize_spu_tdep): Update.
4940
4941 2019-07-10 Tom Tromey <tromey@adacore.com>
4942
4943 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4944 destructor.
4945 (dbx_objfile_data_key): Change type and declare later.
4946 (DBX_SYMFILE_INFO): Rewrite.
4947 * dbxread.c (dbx_objfile_data_key): Change type.
4948 (dbx_symfile_init): Update.
4949 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4950 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4951 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4952
4953 2019-07-10 Tom Tromey <tromey@adacore.com>
4954
4955 * jit.c (jit_program_space_key): Change type. Move lower.
4956 (get_jit_program_space_data): Update.
4957 (jit_program_space_data_cleanup): Remove.
4958 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4959 Update.
4960 (struct jit_program_space_data): Add initializers.
4961
4962 2019-07-10 Tom Tromey <tromey@adacore.com>
4963
4964 * solib-darwin.c (struct darwin_info): Add initializers.
4965 (solib_darwin_pspace_data): Change type.
4966 (darwin_pspace_data_cleanup): Remove.
4967 (get_darwin_info, _initialize_darwin_solib): Update.
4968
4969 2019-07-10 Tom Tromey <tromey@adacore.com>
4970
4971 * remote-sim.c (struct sim_inferior_data): Add initializers,
4972 constructor, and destructor.
4973 (sim_inferior_data_key): Change type. Move lower.
4974 (check_for_duplicate_sim_descriptor): Update.
4975 (get_sim_inferior_data): Use new. Update.
4976 (~sim_inferior_data_cleanup): Rename from
4977 sim_inferior_data_cleanup. Simplify.
4978 (gdbsim_close_inferior, simulator_command)
4979 (sim_command_completer, _initialize_remote_sim): Update.
4980 (next_pid, INITIAL_PID): Move earlier.
4981
4982 2019-07-10 Tom Tromey <tromey@adacore.com>
4983
4984 * python/python-internal.h (create_thread_object): Return
4985 gdbpy_ref.
4986 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4987 * python/py-inferior.c (struct threadlist_entry): Add
4988 constructor.
4989 <thread_obj>: Now a gdbpy_ref.
4990 (thread_to_thread_object): Update.
4991 (add_thread_object): Use new.
4992 (delete_thread_object): Use delete.
4993 (infpy_threads): Update.
4994 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4995 GIL.
4996
4997 2019-07-10 Tom Tromey <tromey@adacore.com>
4998
4999 * valops.c (value_cast): Specialize error message for Ada.
5000
5001 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5002
5003 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5004
5005 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5006
5007 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5008 bpstat_should_step): Return bool, adjust comments.
5009 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5010 bpstat_should_step): Likewise.
5011
5012 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5013
5014 * features/Makefile: Use feature target descriptions for Arm.
5015 * features/arm/arm-core.c: Generate new file.
5016 * features/arm/arm-fpa.c: Likewise.
5017 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5018 * features/arm/arm-m-profile.c: Likewise.
5019 * features/arm/arm-vfpv2.c: Likewise.
5020 * features/arm/arm-vfpv3.c: Likewise.
5021 * features/arm/xscale-iwmmxt.c: Likewise.
5022 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5023
5024 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5025
5026 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5027 ptrace earlier.
5028
5029 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5030
5031 * features/aarch64-pauth.c: Regenerate.
5032
5033 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5034
5035 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5036 bool.
5037 (bpstat_what): Use false instead of 0.
5038
5039 2019-07-09 Pedro Alves <palves@redhat.com>
5040
5041 * break-catch-throw.c (is_exception_catchpoint): New.
5042 * breakpoint.c (print_one_breakpoint_location): New parameter
5043 'raw_loc'. Handle it. Use
5044 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5045 looking at the breakpoint's type.
5046 (print_one_breakpoint): If handling "maint info breakpoints", also
5047 print locations of exception catchpoints.
5048 * breakpoint.h (is_exception_catchpoint): Declare.
5049
5050 2019-07-09 Pedro Alves <palves@redhat.com>
5051
5052 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5053 "addr" field.
5054 (allocate_location_exception_catchpoint): New.
5055 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5056 (initialize_throw_catchpoint_ops): Install
5057 allocate_location_exception_catchpoint as allocate_location
5058 method.
5059 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5060 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5061 bp_loc_other.
5062 (breakpoint_address_is_meaningful): Delete.
5063 (bl_address_is_meaningful): New.
5064 (breakpoint_locations_match): Adjust comment.
5065 (bp_location_from_bp_type): New, factored out of...
5066 (bp_location::bp_location(breakpoint *)): ... this.
5067 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5068 factored out of...
5069 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5070 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5071 breakpoint_address_is_meaningful.
5072 (bp_locations_compare): Adjust comment.
5073 (update_global_location_list): Use bl_address_is_meaningful
5074 instead of breakpoint_address_is_meaningful.
5075 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5076 explicit.
5077 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5078 * python/py-breakpoint.c (bppy_get_location): No longer check
5079 whether location is null.
5080
5081 2019-07-09 Pedro Alves <palves@redhat.com>
5082
5083 PR c++/15468
5084 * breakpoint.c (print_one_breakpoint_location): Remove
5085 single-location assert.
5086
5087 2019-07-09 Tom Tromey <tom@tromey.com>
5088
5089 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5090 * configure: Rebuild.
5091 * configure.ac: Change common to gdbsupport.
5092 * gdbsupport: Rename from common.
5093 * acinclude.m4: Change common to gdbsupport.
5094 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5095 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5096 gdbsupport.
5097 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5098 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5099 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5100 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5101 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5102 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5103 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5104 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5105 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5106 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5107 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5108 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5109 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5110 coff-pe-read.c, command.h, compile/compile-c-support.c,
5111 compile/compile-c.h, compile/compile-cplus-symbols.c,
5112 compile/compile-cplus-types.c, compile/compile-cplus.h,
5113 compile/compile-loc2c.c, compile/compile.c, completer.c,
5114 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5115 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5116 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5117 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5118 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5119 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5120 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5121 features/aarch64-core.c, features/aarch64-fpu.c,
5122 features/aarch64-pauth.c, features/aarch64-sve.c,
5123 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5124 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5125 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5126 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5127 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5128 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5129 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5130 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5131 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5132 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5133 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5134 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5135 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5136 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5137 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5138 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5139 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5140 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5141 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5142 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5143 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5144 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5145 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5146 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5147 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5148 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5149 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5150 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5151 minsyms.c, mips-linux-tdep.c, namespace.h,
5152 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5153 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5154 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5155 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5156 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5157 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5158 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5159 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5160 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5161 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5162 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5163 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5164 procfs.c, producer.c, progspace.h, psymtab.h,
5165 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5166 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5167 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5168 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5169 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5170 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5171 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5172 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5173 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5174 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5175 target-memory.c, target.c, target.h, target/waitstatus.c,
5176 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5177 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5178 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5179 unittests/array-view-selftests.c,
5180 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5181 unittests/common-utils-selftests.c,
5182 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5183 unittests/format_pieces-selftests.c,
5184 unittests/function-view-selftests.c,
5185 unittests/lookup_name_info-selftests.c,
5186 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5187 unittests/mkdir-recursive-selftests.c,
5188 unittests/observable-selftests.c,
5189 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5190 unittests/parse-connection-spec-selftests.c,
5191 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5192 unittests/scoped_fd-selftests.c,
5193 unittests/scoped_mmap-selftests.c,
5194 unittests/scoped_restore-selftests.c,
5195 unittests/string_view-selftests.c, unittests/style-selftests.c,
5196 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5197 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5198 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5199 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5200 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5201 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5202
5203 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5204
5205 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5206 bool value.
5207 (decode_digits_ordinary): Set explicit_line field in sal.
5208 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5209 symtab_and_line that was set on an explicit line number in
5210 assembler code. Do always update the recorded symtab and line if
5211 we do skip the prologue.
5212
5213 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5214
5215 * breakpoint.c (set_breakpoint_location_function): Remove
5216 explicit_loc parameter.
5217 (momentary_breakpoint_from_master): Update call to
5218 set_breakpoint_location_function.
5219 (add_location_to_breakpoint): Likewise.
5220
5221 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5222
5223 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5224 required features based on default bfd type when no specific bfd
5225 is present.
5226
5227 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5228
5229 * NEWS: Mention that GDB printf and eval commands can now print
5230 C-style and Ada-style convenience var strings without
5231 calling the inferior.
5232 * printcmd.c (printf_c_string): Locally print GDB internal var
5233 instead of transiting via the inferior.
5234 (printf_wide_c_string): Likewise.
5235
5236 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5237
5238 PR breakpoints/25011
5239 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5240
5241 2019-07-04 Tom Tromey <tom@tromey.com>
5242
5243 PR tui/24724:
5244 * tui/tui-winsource.c (tui_clear_source_content): Update.
5245 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5246 (tui_update_breakpoint_info): Update.
5247 (tui_set_exec_info_content): Update.
5248 * tui/tui-source.c (tui_set_source_content_nil): Update.
5249 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5250 has_break.
5251 * tui/tui-data.h (enum tui_bp_flag): New.
5252 (tui_bp_flags): New enum flags type.
5253 (struct tui_source_element) <break_mode>: Change type. Rename
5254 from has_break.
5255 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5256 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5257 constants.
5258 * tui/tui-winsource.h: Fix comment.
5259
5260 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5261
5262 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5263 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5264 (store_fpregs_to_thread)
5265 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5266 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5267 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5268 (IWMMXT_REGS_SIZE): Add define.
5269 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5270 (fetch_vfp_regs, store_vfp_regs)
5271 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5272 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5273
5274 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5275
5276 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5277 defines.
5278 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5279 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5280 (ARM_INT_REGISTER_SIZE): ...to this.
5281 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5282 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5283 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5284 (arm_linux_collect_gregset, supply_nwfpe_register)
5285 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5286 defines.
5287 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5288 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5289 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5290 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5291 (arm_return_in_memory, arm_store_return_value)
5292 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5293 (arm_record_ld_st_multiple): Likewise.
5294 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5295 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5296
5297 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5298
5299 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5300 AARCH64_DISPLACED_MODIFIED_INSNS.
5301 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5302 (aarch64_displaced_step_copy_insn): Likewise.
5303 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5304 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5305 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5306 ARM_DISPLACED_MODIFIED_INSNS.
5307 * arm-tdep.c (arm_gdbarch_init): Likewise.
5308 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5309 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5310 (struct arm_displaced_step_closure): Use
5311 ARM_DISPLACED_MODIFIED_INSNS.
5312
5313 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5314
5315 * features/Makefile: Remove unused xml files.
5316 * features/aarch64.xml: Remove.
5317 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5318 * features/i386/amd64-avx-avx512.xml: Remove.
5319 * features/i386/amd64-avx-linux.xml: Remove.
5320 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5321 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5322 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5323 * features/i386/amd64-avx-mpx.xml: Remove.
5324 * features/i386/amd64-avx.xml: Remove.
5325 * features/i386/amd64-linux.xml: Remove.
5326 * features/i386/amd64-mpx-linux.xml: Remove.
5327 * features/i386/amd64-mpx.xml: Remove.
5328 * features/i386/amd64.xml: Remove.
5329 * features/i386/i386-avx-avx512-linux.xml: Remove.
5330 * features/i386/i386-avx-avx512.xml: Remove.
5331 * features/i386/i386-avx-linux.xml: Remove.
5332 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5333 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5334 * features/i386/i386-avx-mpx-linux.xml: Remove.
5335 * features/i386/i386-avx-mpx.xml: Remove.
5336 * features/i386/i386-avx.xml: Remove.
5337 * features/i386/i386-linux.xml: Remove.
5338 * features/i386/i386-mmx-linux.xml: Remove.
5339 * features/i386/i386-mmx.xml: Remove.
5340 * features/i386/i386-mpx-linux.xml: Remove.
5341 * features/i386/i386-mpx.xml: Remove.
5342 * features/i386/i386.xml: Remove.
5343 * features/i386/x32-avx-avx512-linux.xml: Remove.
5344 * features/i386/x32-avx-linux.xml: Remove.
5345 * features/i386/x32-linux.xml: Remove.
5346
5347 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5348
5349 * regformats/aarch64.dat: Remove.
5350 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5351 * regformats/i386/amd64-avx-linux.dat: Remove.
5352 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5353 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5354 * regformats/i386/amd64-linux.dat: Remove.
5355 * regformats/i386/amd64-mpx-linux.dat: Remove.
5356 * regformats/i386/amd64.dat: Remove.
5357 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5358 * regformats/i386/i386-avx-linux.dat: Remove.
5359 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5360 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5361 * regformats/i386/i386-linux.dat: Remove.
5362 * regformats/i386/i386-mmx-linux.dat: Remove.
5363 * regformats/i386/i386-mpx-linux.dat: Remove.
5364 * regformats/i386/i386.dat: Remove.
5365 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5366 * regformats/i386/x32-avx-linux.dat: Remove.
5367 * regformats/i386/x32-linux.dat: Remove.
5368
5369 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5370
5371 * aarch64-tdep.c: Remove xml self tests.
5372 * amd64-linux-tdep.c: Likewise.
5373 * amd64-tdep.c: Likewise.
5374 * i386-linux-tdep.c: Likewise.
5375 * i386-tdep.c: Likewise.
5376
5377 2019-07-03 Pedro Alves <palves@redhat.com>
5378
5379 PR cli/24732
5380 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5381 (pipe_cmd_option_defs): New.
5382 (make_pipe_cmd_options_def_group): New.
5383 (pipe_command): Use gdb::option::process_options.
5384 (pipe_command_completer): New function.
5385 (_initialize_cli_cmds): Install completer for "pipe" command.
5386
5387 2019-07-03 Pedro Alves <palves@redhat.com>
5388
5389 * cli/cli-option.c (union option_value) <string>: New field.
5390 (struct option_def_and_value): Add ctor, move ctor, dtor and
5391 use DISABLE_COPY_AND_ASSIGN.
5392 (option_def_and_value::clear_value): New.
5393 (parse_option, save_option_value_in_ctx, get_val_type_str)
5394 (add_setshow_cmds_for_options): Handle var_string.
5395 * cli-option.h (union option_def::var_address) <string>: New
5396 field.
5397 (struct string_option_def): New.
5398 * maint-test-options.c (struct test_options_opts): Add default
5399 ctor and use DISABLE_COPY_AND_ASSIGN.
5400 <string_opt>: New field.
5401 (test_options_opts::~test_options_opts): New.
5402 (test_options_opts::dump): Also dump "-string".
5403 (test_options_option_defs): Install "string.
5404
5405 2019-07-03 Pedro Alves <palves@redhat.com>
5406
5407 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5408 option_value with a null enumeration.
5409 (complete_options): Save the option values in the context.
5410 (save_option_value_in_ctx): New, factored out from ...
5411 (process_options): ... here.
5412 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5413 of the function.
5414 * maint-test-options.c (test_options_opts::dump): New, factored
5415 out from ...
5416 (maintenance_test_options_command_mode): ... here.
5417 (maintenance_test_options_command_completion_result): Delete.
5418 (maintenance_test_options_command_completion_text): Update
5419 comment.
5420 (maintenance_show_test_options_completion_result): Change
5421 prototype. Just print
5422 maintenance_test_options_command_completion_text.
5423 (save_completion_result): New.
5424 (maintenance_test_options_completer_mode): Pass options context to
5425 complete_options, and then save a dump.
5426 (_initialize_maint_test_options): Use add_cmd to install "maint
5427 show test-options-completion-result".
5428
5429 2019-07-03 Pedro Alves <palves@redhat.com>
5430
5431 * NEWS (New commands): Mention "with" and "maint with".
5432 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5433 (with_command, with_command_completer): New.
5434 (pipe_command): Adjust to new repeat_previous
5435 interface.
5436 (_initialize_cli_cmds): Install the "with" command and its "w"
5437 alias.
5438 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5439 declarations.
5440 * cli/cli-setshow.c (parse_cli_var_uinteger)
5441 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5442 argument strings for all var_types.
5443 (get_setshow_command_value_string): New, factored out from ...
5444 (do_show_command): ... this.
5445 * cli/cli-setshow.h: Include <string>.
5446 (get_setshow_command_value_string): Declare.
5447 * command.h (repeat_previous): Now returns const char *. Adjust
5448 comment.
5449 * maint.c: Include "cli/cli-cmds.h".
5450 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5451 (_initialize_maint_cmds): Register the "maintenance with" command.
5452 * top.c (repeat_previous): Move bits from pipe_command here:
5453 Return the saved command line, if any; error out if there's no
5454 command to relaunch.
5455
5456 2019-07-03 Pedro Alves <palves@redhat.com>
5457
5458 * NEWS (New commands): Mention "maint set/show test-settings"
5459 instead of "maint test-settings".
5460 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5461 (maintenance_test_settings_set_list): Rename to ...
5462 (maintenance_set_test_settings_list): ... this.
5463 (maintenance_test_settings_show_list): Rename to ...
5464 (maintenance_show_test_settings_list): ... this.
5465 (maintenance_test_settings_cmd): Delete.
5466 (maintenance_test_settings_set_cmd): ...
5467 (maintenance_set_test_settings_cmd): ... this.
5468 (maintenance_test_settings_show_cmd): ...
5469 (maintenance_show_test_settings_cmd): ... this.
5470 (maintenance_test_settings_show_value_cmd):
5471 (maintenance_show_test_settings_value_cmd): ... this.
5472 (_initialize_maint_test_settings): No longer install the "maint
5473 test-settings" prefix command. Rename "maint test-settings set"
5474 to "maint set test-settings", and "maint test-settings show" to
5475 "maint show test-settings". Adjust all subcommands.
5476
5477 2019-07-03 Pedro Alves <palves@redhat.com>
5478
5479 * maint-test-settings.c: Fix file's intro comment. Replace all
5480 references to "test-options" with references to "test-settings",
5481 in comments.
5482
5483 2019-07-03 Pedro Alves <palves@redhat.com>
5484
5485 * maint-test-settings.c (maintenance_test_settings_xxx)
5486 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5487 New.
5488 (maintenance_test_settings_enums): Use them.
5489 (maintenance_test_settings_enum): Default to
5490 maintenance_test_settings_xxx.
5491 (_initialize_maint_test_settings): Initialize
5492 MAINTENANCE_TEST_SETTINGS_FILENAME.
5493
5494 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5495
5496 * breakpoint.h (remove_breakpoints_inf): Change return type to
5497 void, move function documentation here.
5498 * breakpoint.c (remove_breakpoints_inf): Change return type to
5499 void, move function documentation to header.
5500
5501 2019-07-02 Pedro Alves <palves@redhat.com>
5502
5503 * NEWS (Completion improvements): Mention "info threads".
5504 * thread.c (struct info_threads_opts, info_threads_option_defs)
5505 (make_info_threads_options_def_group): New.
5506 (info_threads_command): Use gdb::option::process_options.
5507 (info_threads_command_completer): New.
5508 (_initialize_thread): Use gdb::option::build_help to build the
5509 help text for "info threads".
5510
5511 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5512
5513 * defs.h (generic_load): Move from here...
5514 * symfile.h (generic_load): ... to here. Rename name parameter
5515 to args.
5516 * symfile.c (generic_load): Add comment.
5517
5518 2019-07-01 Tom Tromey <tromey@adacore.com>
5519
5520 * dwarf2read.c
5521 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5522 declaration of without_params. Fix formatting.
5523
5524 2019-07-01 Tom Tromey <tromey@adacore.com>
5525
5526 * ada-exp.y (find_primitive_type): Update.
5527 * ada-lang.h (ada_lookup_symbol): Update.
5528 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5529 parameter.
5530 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5531
5532 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5533
5534 PR breakpoints/24541
5535 * gdbarch.c: Regenerate.
5536 * gdbarch.h: Regenerate.
5537 * gdbarch.sh: Add 'stap_adjust_register'.
5538 * i386-tdep.c: Include '<unordered_set>'.
5539 (i386_stap_adjust_register): New function.
5540 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5541 * stap-probe.c (stap_parse_register_operand): Call
5542 'gdbarch_stap_adjust_register'.
5543
5544 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5545
5546 PR python/24742
5547 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5548 * python/python.c (do_start_initialization): Use 'xmalloc'
5549 instead of 'PyMem_Malloc'.
5550
5551 2019-06-28 Tom Tromey <tromey@adacore.com>
5552
5553 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5554 for Ada.
5555
5556 2019-06-27 Tom Tromey <tromey@adacore.com>
5557
5558 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5559 objfile_key.
5560 (arm_find_mapping_symbol, arm_record_special_symbol)
5561 (_initialize_arm_tdep): Update.
5562 (arm_objfile_data_free): Remove.
5563
5564 2019-06-27 Tom Tromey <tromey@adacore.com>
5565
5566 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5567 to cp_print_static_field.
5568
5569 2019-06-26 Tom Tromey <tromey@adacore.com>
5570
5571 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5572 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5573 declare.
5574
5575 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5576
5577 * features/aarch64-core.c (create_feature_aarch64_core):
5578 Regenerate.
5579 * features/aarch64-core.xml: Add cpsr flags.
5580
5581 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5582
5583 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5584 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5585
5586 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5587
5588 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5589 field.
5590 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5591 use.
5592 (arm_record_special_symbol): Don't insert new symbol in sorted
5593 position, push it at the end.
5594
5595 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5596
5597 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5598 (arm_mapping_symbol_s): Remove.
5599 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5600 (arm_mapping_symbol_vec): New typedef.
5601 (struct arm_per_objfile): Add constructor.
5602 <section_maps>: Change type to
5603 std::unique_ptr<arm_mapping_symbol_vec[]>.
5604 (arm_compare_mapping_symbols): Remove.
5605 (arm_find_mapping_symbol): Adjust to section_maps type change.
5606 (arm_objfile_data_free): Call delete on arm_per_objfile.
5607 (arm_record_special_symbol): Adjust to section_maps type change.
5608 Allocate arm_per_objfile with new.
5609
5610 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5611
5612 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5613 with the command prefix.
5614
5615 2019-06-25 Tom Tromey <tom@tromey.com>
5616
5617 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5618 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5619
5620 2019-06-25 Tom Tromey <tom@tromey.com>
5621
5622 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5623 type.
5624 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5625 protected.
5626
5627 2019-06-25 Tom Tromey <tom@tromey.com>
5628
5629 * tui/tui-winsource.c
5630 (tui_source_window_base::set_is_exec_point_at): Add check against
5631 LOA_ADDRESS.
5632
5633 2019-06-25 Tom Tromey <tom@tromey.com>
5634
5635 * tui/tui-source.c (tui_set_source_content): Don't check before
5636 xfree.
5637 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5638
5639 2019-06-25 Tom Tromey <tom@tromey.com>
5640
5641 * tui/tui-winsource.h (tui_update_source_window_as_is)
5642 (tui_alloc_source_buffer, tui_line_is_displayed)
5643 (tui_addr_is_displayed): Change type of win_info.
5644 * tui/tui-winsource.c (tui_update_source_window_as_is)
5645 (tui_clear_source_content, tui_show_source_line)
5646 (tui_show_source_content, tui_source_window_base::refill)
5647 (tui_source_window_base::set_is_exec_point_at)
5648 (tui_source_window_base::set_is_exec_point_at)
5649 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5650 (tui_alloc_source_buffer, tui_line_is_displayed)
5651 (tui_addr_is_displayed): Change type of win_info. Update.
5652 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5653 (tui_source_window_base::do_make_visible_with_new_height):
5654 Update.
5655 * tui/tui-source.c (tui_set_source_content)
5656 (tui_set_source_content_nil)
5657 (tui_source_window::do_scroll_vertical): Update.
5658 * tui/tui-layout.c (show_layout): Update.
5659 * tui/tui-disasm.c (tui_set_disassem_content)
5660 (tui_disasm_window::do_scroll_vertical): Update.
5661 * tui/tui-data.h (tui_win_content): Remove.
5662 (struct tui_gen_win_info) <content, content_size>: Remove.
5663 (struct tui_source_element): Add initializers and destructor.
5664 (union tui_which_element, struct tui_win_element): Remove.
5665 (struct tui_source_window_base) <content>: New field.
5666 (struct tui_data_window): Remove destructor.
5667 (tui_alloc_content, tui_free_win_content)
5668 (tui_free_all_source_wins_content): Don't declare.
5669 * tui/tui-data.c (tui_initialize_static_data): Update.
5670 (init_content_element, tui_alloc_content): Remove.
5671 (~tui_gen_win_info): Update.
5672 (~tui_data_window, tui_free_all_source_wins_content)
5673 (tui_free_win_content, free_content, free_content_elements):
5674 Remove.
5675
5676 2019-06-25 Tom Tromey <tom@tromey.com>
5677
5678 * tui/tui-winsource.h (tui_clear_source_content)
5679 (tui_erase_source_content, tui_show_source_content): Change type
5680 of win_info.
5681 * tui/tui-winsource.c (tui_clear_source_content)
5682 (tui_erase_source_content, tui_show_source_content): Change type
5683 of win_info.
5684 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5685 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5686 win_info.
5687 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5688 win_info.
5689 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5690
5691 2019-06-25 Tom Tromey <tom@tromey.com>
5692
5693 * tui/tui-winsource.c (tui_clear_source_content)
5694 (tui_source_window_base::set_is_exec_point_at): Update.
5695 * tui/tui-source.c (tui_set_source_content_nil): Update.
5696 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5697 a bool.
5698 * tui/tui-data.c (init_content_element): Update.
5699
5700 2019-06-25 Tom Tromey <tom@tromey.com>
5701
5702 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5703 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5704 * tui/tui-layout.c (init_and_make_win): Update.
5705 * tui/tui.h (enum tui_win_type): Update.
5706 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5707 tui_win_is_auxillary.
5708 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5709 tui_win_is_auxillary.
5710
5711 2019-06-25 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5714 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5715 (tui_delete_data_content_windows, tui_display_all_data)
5716 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5717 Update.
5718 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5719 * tui/tui-regs.c (tui_last_regs_line_no)
5720 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5721 (tui_show_registers): Update.
5722 (tui_show_register_group): Return void. Update.
5723 (tui_display_registers_from, tui_display_reg_element_at_line)
5724 (tui_display_registers_from_line, tui_check_register_values):
5725 Update.
5726 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5727 member.
5728 (struct tui_data_window) <regs_content>: Now a std::vector.
5729 <regs_content_count>: Remove.
5730 (tui_add_content_elements, tui_free_data_content): Don't declare.
5731 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5732 (init_content_element): Remove DATA_WIN case. Add assert.
5733 (tui_add_content_elements): Remove.
5734 (tui_data_window): Update.
5735 (tui_free_data_content): Remove.
5736 (free_content_elements): Remove DATA_WIN case.
5737
5738 2019-06-25 Tom Tromey <tom@tromey.com>
5739
5740 * tui/tui-data.c (tui_data_item_window): Update.
5741 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5742 * tui/tui-windata.c (tui_display_all_data)
5743 (tui_display_data_from_line): Update.
5744 (tui_check_data_values): Remove.
5745 * tui/tui-regs.c (tui_show_register_group)
5746 (tui_display_reg_element_at_line): Update.
5747 * tui/tui-hooks.c (tui_register_changed)
5748 (tui_refresh_frame_and_register_information): Call
5749 tui_check_register_values.
5750 * tui/tui-data.h (struct tui_data_window) <data_content,
5751 data_content_count, data_type>: Remove.
5752 (enum tui_data_type): Remove.
5753
5754 * tui/tui-data.c (tui_data_window::clear_detail)
5755 (~tui_data_window): Update.
5756
5757 2019-06-25 Tom Tromey <tom@tromey.com>
5758
5759 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5760 declare.
5761 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5762 Rename from tui_first_data_item_displayed. Update.
5763 (tui_data_window::refresh_all)
5764 (tui_data_window::do_scroll_vertical): Update.
5765 * tui/tui-data.h (struct tui_data_window)
5766 <first_data_item_displayed>: Declare new method.
5767
5768 2019-06-25 Tom Tromey <tom@tromey.com>
5769
5770 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5771 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5772 contents...
5773 (tui_initialize_static_data): ...here.
5774
5775 2019-06-25 Tom Tromey <tom@tromey.com>
5776
5777 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5778 (tui_display_registers_from, tui_check_register_values): Update.
5779 (tui_display_register): Remove win_info parameter; update.
5780 (tui_get_register): Change type of parameters.
5781 * tui/tui-data.h (struct tui_data_element): Remove.
5782 (union tui_which_element) <data>: Remove.
5783 <data_window>: Change type.
5784 (struct tui_data_item_window): New.
5785 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5786 case. Add assert.
5787 (~tui_data_item_window): New destructor.
5788 (free_content_elements): Remove DATA_ITEM_WIN case.
5789
5790 2019-06-25 Tom Tromey <tom@tromey.com>
5791
5792 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5793 Remove.
5794
5795 2019-06-25 Tom Tromey <tom@tromey.com>
5796
5797 * tui/tui-data.h (struct tui_command_element): Remove.
5798 (union tui_which_element) <command>: Remove.
5799 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5800 assert.
5801 (free_content_elements): Remove CMD_WIN case.
5802
5803 2019-06-25 Tom Tromey <tom@tromey.com>
5804
5805 * tui/tui-layout.c (tui_set_layout): Update.
5806 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5807 * tui/tui-data.c (layout_def): Update.
5808
5809 2019-06-25 Tom Tromey <tom@tromey.com>
5810
5811 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5812 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5813 (tui_source_window_base::set_new_height): Update.
5814 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5815 Update.
5816 (tui_set_locator_fullname, tui_set_locator_info)
5817 (tui_show_frame_info): Update.
5818 * tui/tui-source.c (tui_set_source_content)
5819 (tui_source_is_displayed): Update.
5820 * tui/tui-layout.c (show_source_disasm_command, show_data)
5821 (show_source_or_disasm_and_command): Update.
5822 * tui/tui-disasm.c (tui_set_disassem_content)
5823 (tui_get_begin_asm_address): Update.
5824 * tui/tui-data.h (struct tui_locator_element): Remove.
5825 (union tui_which_element) <locator>: Remove.
5826 (struct tui_locator_window): New.
5827 (tui_locator_win_info_ptr): Change return type.
5828 * tui/tui-data.c (_locator): Change type.
5829 (tui_locator_win_info_ptr): Change return type.
5830 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5831 (tui_alloc_content): Add assert.
5832
5833 2019-06-25 Tom Tromey <tom@tromey.com>
5834
5835 * tui/tui-winsource.c
5836 (tui_exec_info_window::maybe_allocate_content): New method.
5837 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5838 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5839 (make_source_or_disasm_window): Add cast.
5840 * tui/tui-data.h (union tui_which_element) <simple_string>:
5841 Remove.
5842 (struct tui_source_info): New.
5843 (struct tui_source_window_base) <execution_info>: Change type.
5844 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5845 case, and add assert.
5846 (tui_alloc_content): Add assert.
5847
5848 2019-06-25 Tom Tromey <tom@tromey.com>
5849
5850 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5851 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5852 * tui/tui-data.c (tui_alloc_win_info): Remove.
5853
5854 2019-06-25 Tom Tromey <tom@tromey.com>
5855
5856 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5857 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5858 can_highlight.
5859
5860 2019-06-25 Tom Tromey <tom@tromey.com>
5861
5862 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5863 make_visible_with_new_height method.
5864 (tui_win_info::make_visible_with_new_height): New method.
5865 (tui_source_window_base::do_make_visible_with_new_height)
5866 (tui_data_window::do_make_visible_with_new_height)
5867 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5868 (make_visible_with_new_height): Remove.
5869 (tui_resize_all, tui_adjust_win_heights): Use
5870 make_visible_with_new_height method.
5871 * tui/tui-data.h (struct tui_win_info)
5872 <do_make_visible_with_new_height, make_visible_with_new_height>:
5873 New methods.
5874 (struct tui_source_window_base, struct tui_data_window)
5875 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5876 methods.
5877
5878 2019-06-25 Tom Tromey <tom@tromey.com>
5879
5880 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5881 method.
5882 (update_tab_width): Call update_tab_width method.
5883 * tui/tui-data.h (struct tui_win_info)
5884 (struct tui_source_window_base) <update_tab_width>: New methods.
5885
5886 2019-06-25 Tom Tromey <tom@tromey.com>
5887
5888 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5889 parameter.
5890 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5891 parameter.
5892 (tui_gen_win_info::make_visible): Update.
5893 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5894 parameter.
5895 * tui/tui-data.h (enum tui_box): New enum.
5896 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5897
5898 2019-06-25 Tom Tromey <tom@tromey.com>
5899
5900 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5901 init_and_make_win for EXEC_INFO_WIN.
5902 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5903 longer inline.
5904 (struct tui_win_info) <~tui_win_info>: Inline.
5905 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5906 Don't declare.
5907 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5908 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5909 Remove.
5910 (tui_initialize_static_data): Update.
5911 (~tui_gen_win_info): Handle more cleanup here.
5912 (~tui_source_window_base): Delete "execution_info".
5913 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5914
5915 2019-06-25 Tom Tromey <tom@tromey.com>
5916
5917 * tui/tui-layout.c (make_command_window): Don't set
5918 can_highlight.
5919 (show_source_disasm_command): Call the reset method.
5920 (show_data): Don't set can_highlight. Call the reset method.
5921 (tui_gen_win_info::reset): Rename from init_gen_win_info
5922 (init_and_make_win): Simplify. Return tui_gen_win_info.
5923 (show_source_or_disasm_and_command): Call the reset method.
5924 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5925 (struct tui_cmd_window): Set can_highlight.
5926
5927 2019-06-25 Tom Tromey <tom@tromey.com>
5928
5929 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5930 from make_visible.
5931 (tui_make_visible, tui_make_invisible): Rewrite.
5932 (tui_win_info::make_visible): Remove.
5933 (tui_source_window_base::make_visible): Update.
5934 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5935 method. Moved from...
5936 (struct tui_win_info) <make_visible>: ...here.
5937
5938 2019-06-25 Tom Tromey <tom@tromey.com>
5939
5940 * tui/tui-winsource.c
5941 (tui_source_window_base::do_scroll_horizontal): Remove direction
5942 parameter.
5943 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5944 direction parameter.
5945 * tui/tui-win.c (tui_win_info::forward_scroll)
5946 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5947 (tui_win_info::right_scroll): Update.
5948 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5949 direction parameter.
5950 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5951 direction parameter.
5952 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5953 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5954 Remove direction parameter.
5955 (struct tui_source_window_base, struct tui_source_window)
5956 (struct tui_disasm_window, struct tui_data_window)
5957 (struct tui_cmd_window): Update.
5958
5959 2019-06-25 Tom Tromey <tom@tromey.com>
5960
5961 * tui/tui-winsource.h (tui_set_exec_info_content)
5962 (tui_show_exec_info_content, tui_erase_exec_info_content)
5963 (tui_clear_exec_info_content, tui_update_exec_info): Change
5964 argument to tui_source_window_base.
5965 * tui/tui-winsource.c (tui_set_exec_info_content)
5966 (tui_show_exec_info_content, tui_erase_exec_info_content)
5967 (tui_clear_exec_info_content, tui_update_exec_info): Change
5968 argument to tui_source_window_base.
5969
5970 2019-06-25 Tom Tromey <tom@tromey.com>
5971
5972 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5973 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5974
5975 2019-06-25 Tom Tromey <tom@tromey.com>
5976
5977 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5978 check.
5979
5980 2019-06-25 Tom Tromey <tom@tromey.com>
5981
5982 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5983 type to void.
5984 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5985 type to void.
5986 * tui/tui-source.c (tui_set_source_content): Update.
5987 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5988
5989 2019-06-25 Tom Tromey <tom@tromey.com>
5990
5991 * tui/tui-win.c (window_name_completer, tui_set_focus)
5992 (tui_all_windows_info): Use name method.
5993 * tui/tui-data.h (struct tui_gen_win_info)
5994 (struct tui_source_window, struct tui_disasm_window)
5995 (struct tui_data_window, struct tui_cmd_window) <name>: New
5996 method.
5997 (tui_win_name): Don't declare.
5998 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5999 (tui_win_name): Remove.
6000
6001 2019-06-25 Tom Tromey <tom@tromey.com>
6002
6003 * tui/tui-winsource.h (tui_update_source_window)
6004 (tui_update_source_window_as_is): Change parameter type.
6005 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6006 to be a tui_source_window_base.
6007 (tui_update_source_window_as_is): Likewise.
6008 * tui/tui-win.c (make_visible_with_new_height): Update.
6009
6010 2019-06-25 Tom Tromey <tom@tromey.com>
6011
6012 * tui/tui-winsource.c (tui_erase_source_content)
6013 (tui_show_source_content, tui_show_exec_info_content)
6014 (tui_erase_exec_info_content): Use refresh_window method.
6015 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6016 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6017 from tui_refresh_win.
6018 (tui_data_window::refresh_window): New method.
6019 (tui_win_info::refresh, tui_source_window_base::refresh)
6020 (tui_refresh_all): Use refresh_window method.
6021 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6022 method.
6023 * tui/tui-regs.c (tui_display_register): Call refresh_window
6024 method.
6025 * tui/tui-layout.c (show_source_disasm_command)
6026 (show_source_or_disasm_and_command): Call refresh_window method.
6027 * tui/tui-data.h (struct tui_gen_win_info)
6028 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6029 New method.
6030
6031 2019-06-25 Tom Tromey <tom@tromey.com>
6032
6033 * tui/tui.c (tui_rl_other_window, tui_enable)
6034 (tui_is_window_visible, tui_get_command_dimension): Update.
6035 * tui/tui-winsource.c (tui_update_source_window_as_is)
6036 (tui_clear_source_content, tui_erase_source_content)
6037 (tui_show_source_line, tui_source_window_base::refill)
6038 (tui_source_window_base::do_scroll_horizontal)
6039 (tui_source_window_base::set_is_exec_point_at)
6040 (tui_update_breakpoint_info, tui_set_exec_info_content)
6041 (tui_alloc_source_buffer, tui_line_is_displayed)
6042 (tui_addr_is_displayed): Update.
6043 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6044 (tui_check_and_display_highlight_if_needed)
6045 (tui_win_info::make_visible, tui_win_info::refresh)
6046 (tui_refresh_all): Update.
6047 * tui/tui-windata.c (tui_first_data_item_displayed)
6048 (tui_delete_data_content_windows, tui_erase_data_content)
6049 (tui_display_all_data, tui_data_window::refresh_all)
6050 (tui_check_data_values): Update.
6051 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6052 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6053 (tui_win_info::backward_scroll, tui_refresh_all_win)
6054 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6055 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6056 (tui_source_window_base::set_new_height)
6057 (tui_data_window::set_new_height)
6058 (make_invisible_and_set_new_height)
6059 (make_visible_with_new_height, new_height_ok)
6060 (parse_scrolling_args): Update.
6061 * tui/tui-stack.c (tui_show_frame_info): Update.
6062 * tui/tui-source.c (tui_set_source_content)
6063 (tui_set_source_content_nil, tui_source_is_displayed)
6064 (tui_source_window::do_scroll_vertical): Update.
6065 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6066 (tui_display_registers_from, tui_display_reg_element_at_line)
6067 (tui_check_register_values, tui_reg_command): Update.
6068 * tui/tui-layout.c (tui_default_win_height)
6069 (show_source_disasm_command, show_data, init_and_make_win)
6070 (show_source_or_disasm_and_command): Update.
6071 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6072 (tui_redisplay_readline, tui_mld_flush)
6073 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6074 (tui_getc): Update.
6075 * tui/tui-disasm.c (tui_set_disassem_content)
6076 (tui_disasm_window::do_scroll_vertical): Update.
6077 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6078 Now virtual.
6079 (struct tui_win_info): Derive from tui_gen_win_info.
6080 <~tui_win_info>: Mark as override.
6081 <generic>: Remove member.
6082 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6083 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6084 (~tui_data_window, ~tui_win_info)
6085 (tui_free_all_source_wins_content): Update.
6086 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6087
6088 2019-06-25 Tom Tromey <tom@tromey.com>
6089
6090 * tui/tui-layout.c (init_and_make_win): Use new.
6091 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6092 destructor, initializers.
6093 (tui_alloc_generic_win_info): Don't declare.
6094 * tui/tui-data.c (_locator): Add argument to constructor.
6095 (source_win, disasm_win): New globals.
6096 (exec_info): Remove.
6097 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6098 Update.
6099 (tui_alloc_generic_win_info): Remove.
6100 (init_content_element): Use new.
6101 (tui_win_info::tui_win_info): Update.
6102 (free_content_elements) <case DATA_WIN>: Use delete.
6103
6104 2019-06-25 Tom Tromey <tom@tromey.com>
6105
6106 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6107 * tui/tui-windata.c (tui_first_data_item_displayed)
6108 (tui_delete_data_content_windows): Update.
6109 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6110 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6111 (tui_display_registers_from, tui_check_register_values): Update.
6112 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6113 pointer.
6114 * tui/tui-data.c (init_content_element): Update. Allocate the new
6115 window.
6116 (tui_free_data_content): Update.
6117 (free_content_elements) <case DATA_WIN>: Free the window.
6118
6119 2019-06-25 Tom Tromey <tom@tromey.com>
6120
6121 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6122 Update.
6123 * tui/tui-layout.c (make_command_window)
6124 (show_source_disasm_command, show_data, init_and_make_win)
6125 (show_source_or_disasm_and_command): Update.
6126 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6127 method.
6128 <can_highight, is_highlighted>: Now bool.
6129 (tui_set_win_highlight): Don't declare.
6130 * tui/tui-data.c (tui_set_win_highlight): Remove.
6131
6132 2019-06-25 Tom Tromey <tom@tromey.com>
6133
6134 * tui/tui-wingeneral.c (make_visible): Remove check of window
6135 type.
6136
6137 2019-06-25 Tom Tromey <tom@tromey.com>
6138
6139 * tui/tui-win.c (tui_win_info::max_height)
6140 (tui_cmd_window::max_height): New methods.
6141 (new_height_ok): Call max_height.
6142 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6143 <max_height>: New method.
6144
6145 2019-06-25 Tom Tromey <tom@tromey.com>
6146
6147 * tui/tui-win.c (tui_source_window_base::set_new_height)
6148 (tui_data_window::set_new_height): New methods.
6149 (make_invisible_and_set_new_height): Call set_new_height method.
6150 * tui/tui-data.h (struct tui_win_info)
6151 (struct tui_source_window_base, struct tui_data_window)
6152 <set_new_height>: New method.
6153
6154 2019-06-25 Tom Tromey <tom@tromey.com>
6155
6156 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6157 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6158 tui_refresh_data_win.
6159 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6160 method.
6161 (tui_refresh_all_win): Call the refresh_all method.
6162 (tui_set_focus): Likewise.
6163 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6164 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6165 Likewise.
6166
6167 2019-06-25 Tom Tromey <tom@tromey.com>
6168
6169 * tui/tui-winsource.h (tui_refill_source_window)
6170 (tui_set_is_exec_point_at): Don't declare.
6171 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6172 (tui_source_window_base::refill): Rename from
6173 tui_refill_source_window.
6174 (tui_source_window_base::do_scroll_horizontal): Update.
6175 (tui_source_window_base::set_is_exec_point_at): Rename from
6176 tui_set_is_exec_point_at.
6177 (tui_update_all_breakpoint_info): Update.
6178 * tui/tui-stack.c (tui_show_frame_info): Update.
6179 * tui/tui-layout.c (show_data): Add cast.
6180 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6181 * tui/tui-data.h (struct tui_source_window_base) <refill,
6182 set_is_exec_point_at>: New methods.
6183 (tui_source_windows, tui_add_to_source_windows): Update types.
6184 (tui_add_to_source_windows): Remove redundant declaration.
6185 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6186 (tui_source_windows): Change return type.
6187 (tui_clear_source_windows_detail): Update.
6188 (tui_add_to_source_windows): Change type of parameter.
6189 (tui_free_all_source_wins_content): Update.
6190
6191 2019-06-25 Tom Tromey <tom@tromey.com>
6192
6193 * tui/tui-wingeneral.c (tui_win_info::refresh)
6194 (tui_source_window_base::refresh): New methods.
6195 (tui_refresh_all): Call the refresh method.
6196 * tui/tui-data.h (struct tui_win_info)
6197 (struct tui_source_window_base) <refresh>: New method.
6198
6199 2019-06-25 Tom Tromey <tom@tromey.com>
6200
6201 * tui/tui.h (tui_is_window_visible): Return bool.
6202 * tui/tui.c (tui_is_window_visible): Return bool.
6203 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6204 (tui_make_visible, tui_make_invisible)
6205 (tui_win_info::make_visible)
6206 (tui_source_window_base::make_visible, make_all_visible)
6207 (tui_make_all_visible, tui_make_all_invisible): Update.
6208 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6209 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6210 bool.
6211 (struct tui_win_info, struct tui_source_window_base)
6212 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6213 * tui/tui-data.c (tui_init_generic_part): Update.
6214
6215 2019-06-25 Tom Tromey <tom@tromey.com>
6216
6217 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6218 (tui_source_window_base::make_visible): New methods.
6219 (make_all_visible): Make method call.
6220 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6221 (struct tui_source_window_base, struct tui_cmd_window): Override
6222 make_visible.
6223 (tui_win_is_source_type): Don't declare.
6224 * tui/tui-data.c (tui_win_is_source_type): Remove.
6225
6226 2019-06-25 Tom Tromey <tom@tromey.com>
6227
6228 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6229 NULL check.
6230
6231 2019-06-25 Tom Tromey <tom@tromey.com>
6232
6233 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6234 Inline constructor. Add initializers for members.
6235 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6236 constructors; now inline in class.
6237
6238 2019-06-25 Tom Tromey <tom@tromey.com>
6239
6240 * tui/tui-regs.c (tui_show_registers): Update.
6241 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6242 bool.
6243 * tui/tui-data.c (tui_data_window::clear_detail)
6244 (tui_data_window): Update.
6245
6246 2019-06-25 Tom Tromey <tom@tromey.com>
6247
6248 * tui/tui-windata.c (tui_display_all_data)
6249 (tui_display_data_from_line, tui_display_data_from)
6250 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6251 Update.
6252 * tui/tui-regs.c (tui_last_regs_line_no)
6253 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6254 (tui_show_registers, tui_show_register_group)
6255 (tui_display_registers_from, tui_display_reg_element_at_line)
6256 (tui_display_registers_from_line, tui_check_register_values)
6257 (tui_reg_next, tui_reg_prev): Update.
6258 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6259 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6260 tui_data_window.
6261 (struct tui_win_info) <detail>: Remove. Add new fields from
6262 tui_data_info.
6263 (TUI_DATA_WIN): Add cast.
6264 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6265 (~tui_data_window): Simplify.
6266
6267 2019-06-25 Tom Tromey <tom@tromey.com>
6268
6269 * tui/tui-layout.c (show_source_disasm_command)
6270 (show_source_or_disasm_and_command): Update.
6271 * tui/tui-io.c (update_cmdwin_start_line)
6272 (tui_redisplay_readline): Update.
6273 * tui/tui-data.h (struct tui_command_info): Remove.
6274 (struct tui_win_info) <detail>: Remove command_info member.
6275 (struct tui_data_window) <start_line>: New member, from
6276 tui_command_info.
6277 (TUI_CMD_WIN): Add casts.
6278
6279 2019-06-25 Tom Tromey <tom@tromey.com>
6280
6281 * tui/tui-winsource.c (tui_update_source_window)
6282 (tui_refill_source_window)
6283 (tui_source_window_base::do_scroll_horizontal)
6284 (tui_update_breakpoint_info, tui_set_exec_info_content)
6285 (tui_show_exec_info_content, tui_erase_exec_info_content)
6286 (tui_clear_exec_info_content): Update.
6287 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6288 Update.
6289 * tui/tui-win.c (make_invisible_and_set_new_height)
6290 (make_visible_with_new_height): Update.
6291 * tui/tui-source.c (tui_set_source_content)
6292 (tui_show_symtab_source): Update.
6293 * tui/tui-layout.c (extract_display_start_addr)
6294 (show_source_disasm_command, show_data)
6295 (make_source_or_disasm_window)
6296 (show_source_or_disasm_and_command): Update.
6297 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6298 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6299 "gdbarch".
6300 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6301 to tui_source_window_base.
6302 (struct tui_win_info) <detail>: Remove source_info member.
6303 (struct tui_source_window_base) <has_locator>: Inline.
6304 Move contents from tui_source_info; rename has_locator member to
6305 m_has_locator.
6306 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6307 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6308 header file.
6309 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6310 Simplify.
6311 (tui_free_all_source_wins_content): Cast to
6312 tui_source_window_base.
6313
6314 2019-06-25 Tom Tromey <tom@tromey.com>
6315
6316 * tui/tui-win.c (make_invisible_and_set_new_height)
6317 (make_visible_with_new_height): Call has_locator method.
6318 * tui/tui-layout.c (show_source_disasm_command, show_data)
6319 (show_source_or_disasm_and_command): Update for bool change.
6320 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6321 (tui_win_info) <has_locator>: New method.
6322 (struct tui_source_window_base) <has_locator>: New method.
6323 (tui_win_has_locator): Don't declare.
6324 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6325 from tui_win_has_locator.
6326 (tui_source_window_base): Use false, not FALSE.
6327
6328 2019-06-25 Tom Tromey <tom@tromey.com>
6329
6330 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6331 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6332 clear_detail method directly.
6333 (tui_clear_win_detail): Remove.
6334
6335 2019-06-25 Tom Tromey <tom@tromey.com>
6336
6337 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6338 "this", not TUI_DISASM_WIN.
6339
6340 2019-06-25 Tom Tromey <tom@tromey.com>
6341
6342 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6343 declare.
6344 * tui/tui-winsource.c
6345 (tui_source_window_base::do_scroll_horizontal): Rename from
6346 tui_horizontal_source_scroll.
6347 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6348 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6349 from tui_vertical_data_scroll.
6350 * tui/tui-win.h (tui_scroll): Don't declare.
6351 * tui/tui-win.c (tui_win_info::forward_scroll)
6352 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6353 (tui_win_info::right_scroll): Rename and update.
6354 (tui_scroll_forward_command, tui_scroll_backward_command)
6355 (tui_scroll_left_command, tui_scroll_right_command): Update.
6356 (tui_scroll): Remove.
6357 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6358 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6359 from tui_vertical_source_scroll.
6360 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6361 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6362 from tui_vertical_disassem_scroll.
6363 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6364 do_scroll_horizontal>: New methods.
6365 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6366 Likewise.
6367 (struct tui_source_window_base): Add do_scroll_horizontal.
6368 (struct tui_source_window, struct tui_disasm_window): Add
6369 do_scroll_vertical.
6370 (struct tui_data_window, struct tui_cmd_window): Add
6371 do_scroll_horizontal and do_scroll_vertical.
6372 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6373
6374 2019-06-25 Tom Tromey <tom@tromey.com>
6375
6376 * tui/tui-data.h (struct tui_source_window_base): New struct.
6377 (struct tui_source_window): Derive from tui_source_window_base.
6378 (struct tui_disasm_window): New struct.
6379 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6380 from tui_source_window::clear_detail.
6381 (tui_source_window_base): Rename from tui_source_window.
6382 (~tui_source_window_base): Rename from ~tui_source_window.
6383 (tui_alloc_win_info): Create a tui_disasm_window.
6384
6385 2019-06-25 Tom Tromey <tom@tromey.com>
6386
6387 * tui/tui-data.h (struct tui_source_window)
6388 (struct tui_data_window): Declare destructors.
6389 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6390 destructors.
6391 (tui_win_info): Simplify.
6392
6393 2019-06-25 Tom Tromey <tom@tromey.com>
6394
6395 * tui/tui-winsource.c (tui_display_main)
6396 (tui_update_source_windows_with_addr)
6397 (tui_update_all_breakpoint_info): Update.
6398 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6399 (new_height_ok, parse_scrolling_args): Update.
6400 * tui/tui-stack.c (tui_show_frame_info): Update.
6401 * tui/tui-data.h (struct tui_list): Remove.
6402 (tui_source_windows): Return a reference to a std::vector.
6403 * tui/tui-data.c (source_windows): Now a std::vector.
6404 (tui_source_windows): Change return type.
6405 (tui_clear_source_windows): Rewrite.
6406 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6407 (tui_free_all_source_wins_content): Rewrite.
6408
6409 2019-06-25 Tom Tromey <tom@tromey.com>
6410
6411 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6412 (struct tui_data_window, struct tui_cmd_window): Declare
6413 clear_detail method.
6414 * tui/tui-data.c (tui_source_window::clear_detail)
6415 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6416 methods.
6417 (tui_clear_win_detail): Simplify.
6418
6419 2019-06-25 Tom Tromey <tom@tromey.com>
6420
6421 * tui/tui-layout.c (make_source_window, make_disasm_window)
6422 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6423 Return the new window.
6424 (show_source_disasm_command, show_data)
6425 (show_source_or_disasm_and_command): Update.
6426
6427 2019-06-25 Tom Tromey <tom@tromey.com>
6428
6429 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6430 parameter. Return the new window.
6431 (show_source_disasm_command): Update and remove NULL check.
6432 (show_source_or_disasm_and_command): Update.
6433
6434 2019-06-25 Tom Tromey <tom@tromey.com>
6435
6436 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6437
6438 2019-06-25 Tom Tromey <tom@tromey.com>
6439
6440 * tui/tui-data.h (struct tui_win_info): Make constructor
6441 protected. Make destructor virtual. Add initializers.
6442 (tui_source_window, tui_data_window, tui_cmd_window): New
6443 classes.
6444 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6445 constructor. Add "type" parameter.
6446 (tui_source_window, tui_data_window, tui_cmd_window): New
6447 constructors.
6448 (tui_alloc_win_info): Instantiate the appropriate subclass.
6449
6450 2019-06-25 Tom Tromey <tom@tromey.com>
6451
6452 * tui/tui-win.c (tui_resize_all): Use delete.
6453 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6454 destructor.
6455 (tui_free_window): Don't declare.
6456 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6457 Update.
6458
6459 2019-06-25 Tom Tromey <tom@tromey.com>
6460
6461 * tui/tui-data.h (struct tui_win_info): Add constructor.
6462 * tui/tui-data.c (tui_alloc_win_info): Use new.
6463 (tui_free_window): Use delete.
6464
6465 2019-06-22 Tom Tromey <tom@tromey.com>
6466
6467 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6468 declare.
6469 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6470
6471 2019-06-22 Tom Tromey <tom@tromey.com>
6472
6473 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6474 declare.
6475 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6476
6477 2019-06-22 Tom de Vries <tdevries@suse.de>
6478
6479 * dwarf2read.c (create_addrmap_from_aranges)
6480 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6481 instead of '%zu'.
6482
6483 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6484
6485 * dwarf2read.h (dwarf2_section_info_def): Remove.
6486 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6487 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6488 std::vector<dwarf2_section_info>.
6489 (struct dwo_file) <~dwo_file>: Remove.
6490 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6491 types field.
6492 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6493 (dwarf2_read_debug_names): Likewise.
6494 (create_debug_types_hash_table): Change parameter type to
6495 array_view, adjust code accordingly.
6496 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6497 (partial_die_info::fixup): Likewise.
6498 (determine_prefix): Likewise.
6499 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6500
6501 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6502
6503 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6504 gdb_bfd_ref_ptr.
6505 <~dwo_file>: Remove call to gdb_bfd_unref.
6506 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6507 gdb_bfd_ref_ptr::get.
6508
6509 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6510
6511 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6512 type to htab_up.
6513 * dwarf2read.c (struct dwo_file): Initialize fields.
6514 <~dwo_file>: New.
6515 (free_dwo_file): Remove, move content to ~dwo_file.
6516 (struct dwo_file_deleter): Remove.
6517 (dwo_file_up>: Remove custom deleter.
6518 (free_dwo_files): Remove.
6519 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6520 dwo_files.
6521 (process_skeletonless_type_units): Call unique_ptr::get.
6522 (allocate_dwo_file_hash_table): Add deleter to created hash
6523 table. Change return type to htab_up.
6524 (lookup_dwo_file_slot): Don't memset dwo_file, call
6525 unique_ptr::get.
6526 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6527 (create_dwo_unit_in_dwp_v2): Likewise.
6528 (open_and_init_dwo_file): Likewise.
6529 (free_dwo_file_from_slot): Remove.
6530
6531 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6532
6533 * dwarf2read.h (struct dwarf2_section_info) <readin,
6534 is_virtual>: Change type to bool.
6535 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6536 true instead of 1.
6537
6538 2019-06-19 Tom Tromey <tom@tromey.com>
6539
6540 * tui/tui-data.h (tui_init_content_element): Don't declare.
6541
6542 2019-06-19 Tom Tromey <tom@tromey.com>
6543
6544 * tui/tui-data.h (tui_init_win_info): Don't declare.
6545
6546 2019-06-19 Tom de Vries <tdevries@suse.de>
6547
6548 * dwarf2read.h (abstract_to_concrete): Change type to
6549 std::unordered_map<sect_offset, std::vector<sect_offset>,
6550 gdb::hash_enum<sect_offset>>.
6551
6552 2019-06-19 Tom Tromey <tromey@adacore.com>
6553
6554 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6555 EVAL_AVOID_SIDE_EFFECTS specially.
6556
6557 2019-06-19 Tom Tromey <tromey@adacore.com>
6558
6559 * source-cache.c (highlighter): New global.
6560 (source_cache::get_source_lines): Create a highlighter on demand.
6561
6562 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6563
6564 * defs.h (deprecated_interactive_hook): Delete declaration.
6565 * interps.c (clear_interpreter_hooks): Remove use of
6566 deprecated_interactive_hook.
6567 * top.c (deprecated_interactive_hook): Delete definition.
6568 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6569
6570 2019-06-18 Tom de Vries <tdevries@suse.de>
6571
6572 PR gdb/24515
6573 * dwarf2read.h (abstract_to_concrete): Change type from
6574 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6575 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6576 * dwarf2read.c (read_variable): Update.
6577 (dwarf2_fetch_die_loc_sect_off): Update.
6578
6579 2019-06-17 Tom de Vries <tdevries@suse.de>
6580
6581 PR gdb/24617
6582 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6583 accessing parent[parent_len - 1].
6584
6585 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6586
6587 PR gdb/24364
6588 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6589 call dtrace_process_dof with NULL dof.
6590
6591 2019-06-16 Tom de Vries <tdevries@suse.de>
6592
6593 PR gdb/24445
6594 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6595
6596 2019-06-16 Tom Tromey <tom@tromey.com>
6597
6598 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6599 (make_all_visible): Use address of member.
6600
6601 2019-06-16 Tom Tromey <tom@tromey.com>
6602
6603 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6604 (tui_free_window, free_content, free_content_elements): Remove
6605 unnecessary cast.
6606 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6607 cast.
6608 * tui/tui-regs.c (tui_show_register_group)
6609 (tui_display_registers_from, tui_display_reg_element_at_line):
6610 Remove unnecessary cast.
6611
6612 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6613
6614 * linux-nat.c (normal_mask): Delete.
6615 (_initialize_linux_nat): Don't initialise normal_mask.
6616
6617 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6618
6619 PR gdb/24445
6620 * dwarf-index-write.h (write_psymtabs_to_index): Add
6621 dwz_basename parameter.
6622 * dwarf-index-write.c (write_gdbindex): Move file writing to
6623 write_gdbindex_1. Change return type void.
6624 (assert_file_size): Move up, remove filename parameter.
6625 (write_gdbindex_1): New function.
6626 (write_debug_names): Change return type to void, call
6627 assert_file_size.
6628 (struct index_wip_file): New struct.
6629 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6630 file logic to index_wip_file. Write index for dwz file if
6631 needed.
6632 (save_gdb_index_command): Pass basename of dwz file, if present.
6633 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6634 build-id of dwz file, if present.
6635 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6636 (dwarf2_get_dwz_file): Likewise.
6637 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6638 (dwarf2_get_dwz_file): Likewise.
6639
6640 2019-06-16 Tom Tromey <tom@tromey.com>
6641
6642 * coffread.c (process_coff_symbol): Use xstrdup.
6643 * value.c (create_internalvar): Use xstrdup.
6644
6645 2019-06-16 Tom Tromey <tom@tromey.com>
6646
6647 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6648 * breakpoint.c (stopin_command, stopat_command)
6649 (until_break_command, decode_location_default): Remove unnecessary
6650 cast.
6651 * utils.c (subset_compare): Remove unnecessary cast.
6652 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6653 cast.
6654 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6655 cast.
6656 * infcmd.c (path_command): Remove unnecessary cast.
6657 * coffread.c (decode_type): Remove unnecessary cast.
6658 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6659 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6660 * tui/tui-stack.c (tui_show_locator_content)
6661 (tui_show_frame_info): Remove unnecessary cast.
6662 * tui/tui-win.c (tui_scroll_forward_command)
6663 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6664 (parse_scrolling_args): Remove unnecessary cast.
6665 * tui/tui-data.c (init_win_info, tui_del_window)
6666 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6667 (free_content_elements): Remove unnecessary cast.
6668 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6669 unnecessary cast.
6670 * tui/tui-source.c (tui_set_source_content)
6671 (tui_vertical_source_scroll): Remove unnecessary cast.
6672 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6673 cast.
6674 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6675 * tui/tui-regs.c (tui_display_registers_from)
6676 (tui_display_register): Remove unnecessary cast.
6677 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6678 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6679 (make_visible): Remove unnecessary cast.
6680 * tui/tui-winsource.c (tui_erase_source_content)
6681 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6682 unnecessary cast.
6683 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6684 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6685 * stabsread.c (read_type, read_array_type, read_range_type):
6686 Remove unnecessary cast.
6687 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6688 (parse_symbol, parse_type, upgrade_type, parse_external)
6689 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6690 unnecessary cast.
6691 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6692
6693 2019-06-16 Tom Tromey <tom@tromey.com>
6694
6695 * tui/tui-data.c (tui_alloc_generic_win_info)
6696 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6697 checks.
6698
6699 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6700 Andrew Burgess <andrew.burgess@embecosm.com>
6701
6702 * f-typeprint.c (f_print_type): Don't return early for not
6703 associated or not allocated types.
6704 (f_type_print_varspec_suffix): Add print_rank parameter and print
6705 ranks of array types in case they dangling.
6706 (f_type_print_base): Add print_rank parameter.
6707
6708 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6709
6710 * NEWS: Mention new MI commands.
6711 * break-catch-throw.c (enum exception_event_kind): Move to
6712 breakpoint.h.
6713 (print_mention_exception_catchpoint): Output text as a single
6714 message.
6715 (catch_exception_command_1): Rename to...
6716 (catch_exception_event): ...this, make non-static, update header
6717 command, and change some parameter types.
6718 (catch_catch_command): Update for changes to
6719 catch_exception_command_1.
6720 (catch_throw_command): Likewise.
6721 (catch_rethrow_command): Likewise.
6722 * breakpoint.c (enum exception_event_kind): Delete.
6723 * breakpoint.h (enum exception_event_kind): Moved here from
6724 break-catch-throw.c.
6725 (catch_exception_event): Declare.
6726 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6727 (mi_cmd_catch_throw): New function.
6728 (mi_cmd_catch_rethrow): New function.
6729 (mi_cmd_catch_catch): New function.
6730 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6731 'catch-catch' entries.
6732 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6733 (mi_cmd_catch_rethrow): Declare.
6734 (mi_cmd_catch_catch): Declare.
6735
6736 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6737
6738 * annotate.c (annotate_source_line): Change return type to void,
6739 update implementation to match.
6740 * annotate.h (annotate_source_line): Change return type to void,
6741 update header comment.
6742 * stack.c (print_frame_info): Don't change what frame information
6743 is printed based on whether annotations are on or not.
6744
6745 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6746
6747 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6748 (annotate_source): Make static.
6749 (annotate_source_line): Moved from source.c and renamed from
6750 identify_source_line. Update the return type.
6751 * annotate.h (annotate_source): Delete declaration.
6752 (annotate_source_line): Declaration moved from source.h, and
6753 renamed from identify_source_line. Return type updated.
6754 * source.c (identify_source_line): Moved to annotate.c and renamed
6755 to annotate_source_line.
6756 (info_line_command): Remove check of annotation_level.
6757 * source.h (identify_source_line): Move declaration to annotate.h
6758 and rename to annotate_source_line.
6759 * stack.c: Add 'annotate.h' include.
6760 (print_frame_info): Remove check of annotation_level before
6761 calling annotate_source_line.
6762
6763 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6764
6765 * source-cache.c (source_cache::get_plain_source_lines): Use
6766 open_source_file_with_line_charpos instead of just
6767 open_source_file, remove call to find_source_lines.
6768 (source_cache::get_source_lines): Likewise.
6769 * source.c (find_source_lines): Make static.
6770 (get_filename_and_charpos): Renamed into...
6771 (open_source_file_with_line_charpos): ..this along with changes to
6772 return a scoped_fd, and some other minor clean ups.
6773 (identify_source_line): Use open_source_file_with_line_charpos.
6774 (search_command_helper): Use open_source_file_with_line_charpos
6775 instead of just open_source_file, remove call to
6776 find_source_lines.
6777 * source.h (open_source_file_with_line_charpos): Declare new
6778 function.
6779 (find_source_lines): Delete declaration.
6780
6781 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6782
6783 * source.c (get_filename_and_charpos): Remove fullname
6784 parameter.
6785 (identify_source_line): Update call to get_filename_and_charpos.
6786
6787 2019-06-14 Tom Tromey <tromey@adacore.com>
6788
6789 PR gdb/24502:
6790 * ui-style.h (skip_ansi_escape): Update comment.
6791 * ui-file.h (class no_terminal_escape_file): New class.
6792 * ui-file.c (no_terminal_escape_file::write)
6793 (no_terminal_escape_file::puts): New methods.
6794 * cli/cli-logging.c (handle_redirections): Use
6795 no_terminal_escape_file.
6796
6797 2019-06-14 Tom Tromey <tromey@adacore.com>
6798
6799 * NEWS: Move convenience variable news above Python news.
6800
6801 2019-06-14 Tom Tromey <tom@tromey.com>
6802
6803 * gnulib: Move directory to top-level.
6804 * configure.ac: Don't configure gnulib.
6805 * configure: Rebuild.
6806 * common/common-defs.h: Use new path to gnulib.
6807 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6808 (GNULIB_H): Remove.
6809 (INCGNU): Look in new gnulib location.
6810 (HFILES_NO_SRCDIR): Remove gnulib files.
6811 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6812 (generated_files): Remove GNULIB_H.
6813 ($(LIBGNU), all-lib): Remove targets.
6814 (distclean): Don't mention GNULIB_BUILDDIR.
6815 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6816
6817 2019-06-14 Tom Tromey <tromey@adacore.com>
6818
6819 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6820 Warn if symbol file does not provide any symbols.
6821
6822 2019-06-14 Tom Tromey <tromey@adacore.com>
6823
6824 * source.c (find_and_open_source): Respect basenames_may_differ.
6825
6826 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6827
6828 * annotate.c (annotate_breakpoints_invalid): Make use of
6829 scoped_restore_terminal_state.
6830 (annotate_frames_invalid): Likewise.
6831
6832 2019-06-14 Tom Tromey <tromey@adacore.com>
6833
6834 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6835 allow assignment to an internalvar.
6836
6837 2019-06-14 Tom Tromey <tromey@adacore.com>
6838
6839 * ada-lex.l: Allow "_" in attribute names.
6840
6841 2019-06-14 Tom Tromey <tromey@adacore.com>
6842
6843 PR gdb/24653:
6844 * regcache.c (registers_changed): Don't call alloca.
6845 * top.c (execute_command): Don't call alloca.
6846
6847 2019-06-13 Pedro Alves <palves@redhat.com>
6848
6849 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6850 'expression'. When parsing an expression, error out if there's
6851 junk after "unlimited".
6852 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6853 (do_set_command): Adjust calls to is_unlimited_literal.
6854
6855 2019-06-13 Pedro Alves <palves@redhat.com>
6856
6857 * compile/compile.c (make_compile_options_def_group): Add braces
6858 around array_view initializer.
6859 * thread.c (make_thread_apply_all_options_def_group)
6860 (make_thread_apply_all_options_def_group): Likewise.
6861
6862 2019-06-13 Pedro Alves <palves@redhat.com>
6863
6864 * NEWS (New commands): Mention "maint test-options
6865 require-delimiter", "maint test-options unknown-is-error", "maint
6866 test-options unknown-is-operand" and "maint show
6867 test-options-completion-result".
6868 (New command options, command completion): New section.
6869 (Completion improvements): New section.
6870 Mention that you can abbreviate "unlimited".
6871
6872 2019-06-13 Pedro Alves <palves@redhat.com>
6873
6874 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6875 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6876 * unittests/cli-utils-selftests.c (test_parse_flags)
6877 (test_parse_flags_qcs): Delete.
6878 (test_cli_utils): Don't call deleted functions.
6879
6880 2019-06-13 Pedro Alves <palves@redhat.com>
6881
6882 * thread.c: Include "cli/cli-option.h".
6883 (tp_array_compar_ascending): Global.
6884 (tp_array_compar): Delete function.
6885 (tp_array_compar_ascending, tp_array_compar_descending): New
6886 functions.
6887 (ascending_option_def, qcs_flag_option_def)
6888 (thr_qcs_flags_option_defs)
6889 (make_thread_apply_all_options_def_group)
6890 (make_thread_apply_options_def_group): New.
6891 (thread_apply_all_command): Use gdb::option::process_options.
6892 (thread_apply_command_completer)
6893 (thread_apply_all_command_completer): New.
6894 (thread_apply_command): Use gdb::option::process_options.
6895 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6896 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6897 to generate help text of "thread apply". Adjust "taas"'s help.
6898 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6899 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6900
6901 2019-06-13 Pedro Alves <palves@redhat.com>
6902
6903 * thread.c (thread_apply_command): Check for invalid TID with
6904 isdigit instead of !isalpha.
6905
6906 2019-06-13 Pedro Alves <palves@redhat.com>
6907
6908 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6909 (validate_flags_qcs): New.
6910 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6911 (validate_flags_qcs): Declare.
6912 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6913 (make_frame_apply_options_def_group): New.
6914 (frame_apply_command_count): Process options with
6915 gdb::option::process_options.
6916 (frame_apply_completer): New.
6917 (frame_apply_level_completer, frame_apply_all_completer)
6918 (frame_apply_completer): New.
6919 (_initialize_stack): Update help of "frame apply", "frame apply
6920 level", "frame apply all" and "faas" to mention supported options
6921 and install command completers.
6922 * stack.h (frame_apply_all_completer): Declare.
6923 * thread.c: Include "stack.h".
6924 (tfaas_command): Add "--".
6925 (_initialize_thread): Update help "tfaas" to mention supported
6926 options and install command completer.
6927
6928 2019-06-13 Pedro Alves <palves@redhat.com>
6929
6930 * completer.c (complete_nested_command_line): New.
6931 (gdb_completion_word_break_characters_throw): Add assertion.
6932 * completer.h (complete_nested_command_line): Declare.
6933
6934 2019-06-13 Pedro Alves <palves@redhat.com>
6935
6936 * stack.c (parse_backtrace_qualifiers): New.
6937 (backtrace_command): Use it.
6938 (backtrace_command_completer): Complete on qualifiers.
6939
6940 2019-06-13 Pedro Alves <palves@redhat.com>
6941
6942 * frame.c: Include "cli/cli-option.h.
6943 (user_set_backtrace_options): New.
6944 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6945 Delete.
6946 (get_prev_frame): Adjust.
6947 (boolean_option_def, uinteger_option_def)
6948 (set_backtrace_option_defs): New.
6949 (_initialize_frame): Adjust and use
6950 gdb::option::add_setshow_cmds_for_options to install "set
6951 backtrace past-main" and "set backtrace past-entry".
6952 * frame.h: Include "cli/cli-option.h".
6953 (struct frame_print_options): Forward declare.
6954 (print_frame_arguments_all, print_frame_arguments_scalars)
6955 (print_frame_arguments_none): Declare.
6956 (print_entry_values): Delete declaration.
6957 (struct frame_print_options, user_frame_print_options): New.
6958 (struct set_backtrace_options): New.
6959 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6960 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6961 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6962 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6963 (list_args_or_locals): Add frame_print_options parameter.
6964 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6965 * python/py-framefilter.c (enumerate_args): Pass down
6966 USER_FRAME_PRINT_OPTIONS.
6967 * stack.c: Include "cli/cli-option.h".
6968 (print_frame_arguments_all, print_frame_arguments_scalars)
6969 (print_frame_arguments_none): Declare.
6970 (print_raw_frame_arguments, print_entry_values): Delete.
6971 (user_frame_print_options): New.
6972 (boolean_option_def, enum_option_def, frame_print_option_defs):
6973 New.
6974 (struct backtrace_cmd_options): New.
6975 (bt_flag_option_def): New.
6976 (backtrace_command_option_defs): New.
6977 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6978 (print_frame_arg, read_frame_arg, print_frame_args)
6979 (print_frame_info, print_frame): Add frame_print_options parameter
6980 and use it.
6981 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6982 (backtrace_command_1): Add frame_print_options and
6983 backtrace_cmd_options parameters and use them.
6984 (make_backtrace_options_def_group): New.
6985 (backtrace_command): Process command options with
6986 gdb::option::process_options.
6987 (backtrace_command_completer): New.
6988 (_initialize_stack): Extend "backtrace"'s help to mention
6989 supported options. Install completer for "backtrace".
6990 Install some settings commands with add_setshow_cmds_for_options.
6991
6992 2019-06-13 Pedro Alves <palves@redhat.com>
6993
6994 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6995 and that "set/show print raw frame-arguments" are now deprecated.
6996
6997 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6998 command.
6999 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7000 * stack.c (_initialize_stack): Install "set/show print
7001 raw-frame-arguments", and deprecate "set/show print raw
7002 frame-arguments".
7003 * valprint.c (_initialize_valprint): Deprecate "set/show print
7004 raw".
7005
7006 2019-06-13 Pedro Alves <palves@redhat.com>
7007
7008 * compile/compile.c (struct compile_options): New.
7009 (compile_flag_option_def, compile_command_option_defs)
7010 (make_compile_options_def_group): New.
7011 (compile_file_command): Handle options with
7012 gdb::option::process_options.
7013 (compile_file_command_completer): New function.
7014 (compile_code_command): Handle options with
7015 gdb::option::process_options.
7016 (compile_code_command_completer): New function.
7017 (_initialize_compiler): Install completers for "compile code" and
7018 "compile file". Mention available options in "compile code" and
7019 "compile code"'s help.
7020 * completer.c (advance_to_completion_word): New, factored out from
7021 ...
7022 (advance_to_expression_complete_word_point): ... this.
7023 (advance_to_filename_complete_word_point): New.
7024 * completer.h (advance_to_filename_complete_word_point): New
7025 declaration.
7026
7027 2019-06-13 Pedro Alves <palves@redhat.com>
7028
7029 * compile/compile.c: Include "cli/cli-option.h".
7030 (compile_print_value): Scope data pointer is now a
7031 value_print_options pointer; adjust.
7032 (compile_print_command): Process options. Scope data pointer is
7033 now a value_print_options pointer; adjust.
7034 (_initialize_compile): Update "compile print"'s help to include
7035 supported options. Install a completer for "compile print".
7036 * cp-valprint.c (show_vtblprint, show_objectprint)
7037 (show_static_field_print): Delete.
7038 (_initialize_cp_valprint): Don't install "set print
7039 static-members", "set print vtbl", "set print object" here.
7040 * printcmd.c: Include "cli/cli-option.h" and
7041 "common/gdb_optional.h".
7042 (print_command_parse_format): Rework to fill in a
7043 value_print_options instead of a format_data.
7044 (print_value): Change parameter type from format_data pointer to
7045 value_print_options reference. Adjust.
7046 (print_command_1): Process options. Adjust to pass down a
7047 value_print_options.
7048 (print_command_completer): New.
7049 (_initialize_printcmd): Install print_command_completer as
7050 handle_brkchars completer for the "print" command. Update
7051 "print"'s help to include supported options.
7052 * valprint.c: Include "cli/cli-option.h".
7053 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7054 here from cp-valprint.c.
7055 (boolean_option_def, uinteger_option_def)
7056 (value_print_option_defs, make_value_print_options_def_group):
7057 New. Use gdb::option::add_setshow_cmds_for_options to install
7058 "set print elements", "set print null-stop", "set print repeats",
7059 "set print pretty", "set print union", "set print array", "set
7060 print address", "set print symbol", "set print array-indexes".
7061 * valprint.h: Include <string> and "cli/cli-option.h".
7062 (make_value_print_options_def_group): Declare.
7063 (print_value): Change parameter type from format_data pointer to
7064 value_print_options reference.
7065 (print_command_completer): Declare.
7066
7067 2019-06-13 Pedro Alves <palves@redhat.com>
7068
7069 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7070 (COMMON_SFILES): Add maint-test-settings.c.
7071 * cli/cli-decode.c (boolean_enums): New global, factored out from
7072 ...
7073 (add_setshow_boolean_cmd): ... here.
7074 * cli/cli-decode.h (boolean_enums): Declare.
7075 * cli/cli-option.c: New file.
7076 * cli/cli-option.h: New file.
7077 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7078 factored out from ...
7079 (parse_cli_boolean_value(const char *)): ... this.
7080 (is_unlimited_literal): Change parameter type to pointer to
7081 pointer. Adjust and advance ARG pointer.
7082 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7083 (parse_cli_var_enum): New, factored out from ...
7084 (do_set_command): ... this. Adjust.
7085 * cli/cli-setshow.h (parse_cli_boolean_value)
7086 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7087 (parse_cli_var_enum): Declare.
7088 * cli/cli-utils.c: Include "cli/cli-option.h".
7089 (get_ulongest): New.
7090 * cli/cli-utils.h (get_ulongest): Declare.
7091 (check_for_argument): New overloads.
7092 * maint-test-options.c: New file.
7093
7094 2019-06-13 Pedro Alves <palves@redhat.com>
7095
7096 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7097 parse a range if "-" is at the end of the string.
7098
7099 2019-06-13 Pedro Alves <palves@redhat.com>
7100
7101 * cli/cli-setshow.c (parse_auto_binary_operation)
7102 (parse_cli_boolean_value): Don't allow "o".
7103
7104 2019-06-13 Pedro Alves <palves@redhat.com>
7105
7106 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7107 * NEWS: Mention maint test-settings KIND.
7108 * maint-test-settings.c: New file.
7109
7110 2019-06-13 Pedro Alves <palves@redhat.com>
7111
7112 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7113 completer.
7114 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7115 "set" completers.
7116
7117 2019-06-13 Pedro Alves <palves@redhat.com>
7118
7119 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7120 after item.
7121
7122 2019-06-13 Pedro Alves <palves@redhat.com>
7123
7124 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7125
7126 2019-06-13 Pedro Alves <palves@redhat.com>
7127
7128 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7129 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7130 call.
7131 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7132 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7133 calls.
7134 (check_for_argument): Skip spaces after argument.
7135
7136 2019-06-13 Pedro Alves <palves@redhat.com>
7137
7138 * thread.c (thread_apply_command): Adjust TID parsing.
7139 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7140 detected before end of string.
7141 (tid_is_in_list): Error out if LIST is invalid.
7142
7143 2019-06-13 Pedro Alves <palves@redhat.com>
7144
7145 * completer.c (complete_line_internal_1): Rewind completion word
7146 point.
7147 (completion_tracker::advance_custom_word_point_by): Change
7148 parameter type to int.
7149 * completer.h (completion_tracker::advance_custom_word_point_by):
7150 Likewise.
7151
7152 2019-06-13 Pedro Alves <palves@redhat.com>
7153
7154 * completer.c (advance_to_completion_word): Handle delimiters.
7155
7156 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7157
7158 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7159
7160 2019-06-11 Tom Tromey <tom@tromey.com>
7161
7162 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7163 (xmalloc_failed): Move to alloc.c.
7164 * alloc.c: New file.
7165 * Makefile.in (COMMON_SFILES): Add alloc.c.
7166
7167 2019-06-11 Tom Tromey <tom@tromey.com>
7168
7169 * nat/linux-waitpid.c: Don't include server.h.
7170 (linux_debug): Remove.
7171 (my_waitpid): Update.
7172
7173 2019-06-11 Tom Tromey <tromey@adacore.com>
7174
7175 * infcall.c (_initialize_infcall): Remove trailing newline from
7176 help.
7177 * user-regs.c (_initialize_user_regs): Remove trailing newline
7178 from help.
7179 * typeprint.c (_initialize_typeprint): Remove trailing newline
7180 from help.
7181 * reverse.c (_initialize_reverse): Remove trailing newlines from
7182 help.
7183 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7184 from help.
7185 * language.c (add_set_language_command): Remove trailing newline
7186 from help.
7187 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7188 help.
7189 * disasm.c (_initialize_disasm): Remove trailing newline from
7190 help.
7191 * top.c (init_main): Remove trailing newline from help.
7192 * interps.c (_initialize_interpreter): Remove trailing newline
7193 from help.
7194 * btrace.c (_initialize_btrace): Remove trailing newlines from
7195 help.
7196 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7197 from help.
7198 * python/python.c (_initialize_python): Remove trailing newline
7199 from help.
7200 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7201 help.
7202 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7203 from help. Reformat some text.
7204 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7205 from help.
7206 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7207 newline from help.
7208
7209 2019-06-11 Tom Tromey <tromey@adacore.com>
7210
7211 * darwin-nat.c (darwin_decode_exception_message)
7212 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7213
7214 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7215
7216 * valops.c (value_slice): Check for not allocated or not
7217 associated values.
7218
7219 2019-06-10 Tom de Vries <tdevries@suse.de>
7220
7221 PR gdb/24618
7222 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7223 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7224 invalid.
7225
7226 2019-06-10 Tom de Vries <tdevries@suse.de>
7227
7228 PR gdb/24611
7229 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7230 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7231
7232 2019-06-10 Tom de Vries <tdevries@suse.de>
7233
7234 PR symtab/24545
7235 * symtab.c (struct demangled_name_entry): Add language field.
7236 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7237 static minimal symbol". Set and use language field.
7238
7239 2019-06-10 Tom Tromey <tromey@adacore.com>
7240
7241 * ada-lang.c (_initialize_ada_language): Update help text.
7242
7243 2019-06-10 Tom Tromey <tromey@adacore.com>
7244
7245 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7246 with a newline.
7247 * guile/guile.c (handle_boot_error): Don't end warning with a
7248 newline.
7249 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7250 warning with a newline.
7251 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7252 newline.
7253 (s12z_frame_cache): Likewise.
7254 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7255 a newline.
7256 * solib-svr4.c (disable_probes_interface): Don't end warning with
7257 a newline.
7258 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7259 newline.
7260 * python/python.c (do_finish_initialization): Don't end warning
7261 with a newline.
7262
7263 2019-06-10 Tom Tromey <tom@tromey.com>
7264
7265 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7266 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7267 gdbpy_enter.
7268
7269 2019-06-10 Tom Tromey <tromey@adacore.com>
7270
7271 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7272 data.
7273 (elf_new_init): Don't call stabsread_new_init.
7274 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7275 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7276 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7277
7278 2019-06-10 Tom de Vries <tdevries@suse.de>
7279
7280 PR symtab/16264
7281 PR symtab/24517
7282 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7283
7284 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7285
7286 * source.c (find_and_open_source): Also rewrite relative file
7287 names.
7288
7289 2019-04-26 Amos Bird <amosbird@gmail.com>
7290
7291 * annotate.c (annotate_thread_exited): Add "thread-exited"
7292 annotation.
7293
7294 2019-06-06 Tom Tromey <tromey@adacore.com>
7295
7296 * maint.h (class scoped_command_stats): Use
7297 DISABLE_COPY_AND_ASSIGN.
7298 <print_time>: New method.
7299 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7300 print_time.
7301 (scoped_command_stats::print_time): New method.
7302
7303 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7304
7305 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7306 instructions of lengths 6 or 8 bytes.
7307
7308 2019-06-04 Pedro Alves <palves@redhat.com>
7309
7310 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7311
7312 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7313 * breakpoint.c (condition_completer): Likewise.
7314 * cli/cli-dump.c (scan_expression): Likewise.
7315 * common/filestuff.c (mkdir_recursive): Likewise.
7316 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7317 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7318 (gdb_abspath): Likewise.
7319 * compile/compile-cplus-types.c
7320 (compile_cplus_instance::decl_name): Likewise.
7321 * completer.c (complete_explicit_location):
7322 (signal_completer, reg_or_group_completer_1): Likewise.
7323 * cp-support.c (cp_remove_params_if_any): Likewise.
7324 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7325 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7326 * infcmd.c (strip_bg_char): Likewise.
7327 * linespec.c (copy_token_string): Likewise.
7328 * mi/mi-main.c (output_cores): Likewise.
7329 * psymtab.c (psymtab_search_name):
7330 * symfile.c (test_set_ext_lang_command): Likewise.
7331 * target.c (target_fileio_read_stralloc): Likewise.
7332 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7333 * value.c (complete_internalvar): Likewise.
7334
7335 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7336
7337 Add objfile property to gdb.Type.
7338 * NEWS: Mention Python API addition.
7339 * python/py-type.c (typy_get_objfile): New method.
7340
7341 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7342
7343 * NEWS: Mention the new set|show style [title|highlight].
7344 Mention changes to "show style", "help" and "apropos".
7345
7346 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7347
7348 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7349 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7350 instead of print_help_for_command.
7351 (print_doc_of_command): New function.
7352 (help_list): Add 'apropos -v word' suggestion.
7353 (print_help_for_command): Style the command name using title style.
7354 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7355 (_initialize_cli_cmds): Describe -v in apropos_command help.
7356
7357 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7358
7359 * cli/cli-style.h (cli_style_option): Add name in constructor,
7360 add m_name class member, add constructor with intensity,
7361 add name class function.
7362 (cli_style_option::add_setshow_commands): Remove name argument.
7363 (highlight_style, title_style): New styles.
7364 * cli/cli-style.c (do_show): New function that shows a style
7365 characteristic styling the style name with itself.
7366 (set_style_name): New function.
7367 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7368 Update all callers according to the changes in cli/cli-style.h.
7369 * utils.h (fputs_highlighted): New function.
7370 * utils.c (fputs_highlighted): Likewise.
7371
7372 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7373
7374 * NEWS: Mention new pipe command and new convenience variables.
7375
7376 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7377
7378 * cli/cli-cmds.c (pipe_command): New function.
7379 (_initialize_cli_cmds): Call add_com for pipe_command.
7380 Define | as an alias for pipe.
7381 (exit_status_set_internal_vars): New function.
7382 (shell_escape): Call exit_status_set_internal_vars.
7383 cli/cli-decode.c (find_command_name_length): Recognize | as
7384 a single character command.
7385
7386 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7387
7388 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7389 top.c (execute_command_to_ui_file): New function, mostly a copy
7390 of execute_command_to_string.
7391 (execute_command_to_string): Implement by calling
7392 execute_command_to_ui_file.
7393
7394 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7395
7396 * top.h (saved_command_line): Remove declaration.
7397 * top.c (previous_saved_command_line, previous_repeat_arguments):
7398 New variables.
7399 (saved_command_line): Make static, define together with other
7400 'repeat variables'.
7401 (dont_repeat): Clear repeat_arguments.
7402 (repeat_previous, get_saved_command_line, save_command_line):
7403 New functions.
7404 (gdb_init): Initialize saved_command_line
7405 and previous_saved_command_line.
7406 * main.c (captured_main_1): Remove saved_command_line initialization.
7407 * event-top.c (handle_line_of_input): Update to use
7408 the new 'repeat' related functions instead of direct access to
7409 saved_command_line.
7410 * command.h (repeat_previous, get_saved_command_line,
7411 save_command_line): New declarations.
7412 (dont_repeat): Add comment.
7413
7414 2019-05-30 Tom Tromey <tromey@adacore.com>
7415
7416 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7417 Fix comment.
7418 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7419
7420 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7421
7422 PR cli/24587
7423 * completer.c (complete): Initialize variable word.
7424
7425 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7426
7427 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7428 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7429 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7430 'body' is NULL to the outter 'if', protecting the '!is_define'
7431 situation as well.
7432
7433 2019-05-29 Tom Tromey <tromey@adacore.com>
7434
7435 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7436 (dwarf_unknown): New function.
7437 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7438 (dwarf_type_encoding_name): Use dwarf_unknown.
7439
7440 2019-05-29 Tom Tromey <tromey@adacore.com>
7441
7442 PR c++/20020:
7443 * cp-valprint.c (cp_print_value_fields): Call
7444 cp_print_static_field inside "try".
7445
7446 2019-05-29 Tom Tromey <tromey@adacore.com>
7447
7448 * inflow.c (struct terminal_info): Add default operator=.
7449 * configure: Rebuild.
7450 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7451 -Wdeprecated-copy-dtor, -Wredundant-move.
7452
7453 2019-05-29 Tom Tromey <tromey@adacore.com>
7454
7455 * NEWS: Add entry.
7456 * infcmd.c (print_return_value_1): Handle finish_print
7457 option.
7458 (show_print_finish): New function.
7459 (_initialize_infcmd): Add "set/show print finish" commands.
7460 * valprint.c (user_print_options): Initialize new member.
7461 * valprint.h (struct value_print_options) <finish_print>: New
7462 member.
7463
7464 2019-05-28 Tom Tromey <tromey@adacore.com>
7465
7466 * ada-lang.c (ada_remove_Xbn_suffix)
7467 (find_old_style_renaming_symbol)
7468 (parse_old_style_renaming): Remove.
7469 (ada_find_renaming_symbol): Don't call
7470 find_old_style_renaming_symbol.
7471 (ada_is_renaming_symbol): Rename from
7472 ada_find_renaming_symbol. Remove "block" parameter. Return
7473 bool. Now static.
7474 (ada_read_var_value): Update and simplify.
7475 * ada-exp.y (write_var_or_type): Remove old code.
7476
7477 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7478
7479 PR gdb/25010
7480 * event-top.c: Remove include comment.
7481 * inflow.c (class scoped_ignore_sigttou): Move from here...
7482 * inflow.h (class scoped_ignore_sigttou): ...to here.
7483 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7484 * top.c: Remove include comment.
7485
7486 2019-05-27 Tom Tromey <tom@tromey.com>
7487
7488 * NEWS: Fix typo.
7489
7490 2019-05-22 Tom Tromey <tromey@adacore.com>
7491
7492 * target.c (target_follow_exec): Constify parameter.
7493 * target-delegates.c: Rebuild.
7494 * remote.c (remote_target::follow_exec): Constify parameter.
7495 * infrun.c (follow_exec): Constify parameter.
7496 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7497 (target_follow_exec): Likewise.
7498
7499 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7500
7501 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7502 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7503
7504 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7505
7506 * NEWS: Add debugredirect and testsuite sections.
7507
7508 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7509
7510 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7511 target descriptions using exclusively floating point register name
7512 aliases.
7513
7514 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7515
7516 PR gdb/18644:
7517 * f-lang.c (build_fortran_types): Handle the case where
7518 gdbarch_floatformat_for_type returns a nullptr.
7519
7520 2019-05-21 Tom de Vries <tdevries@suse.de>
7521
7522 PR cli/24587
7523 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7524
7525 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7526
7527 PR gdb/18644:
7528 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7529 16-byte floats.
7530 * i386-tdep.c (i386_floatformat_for_type): Use
7531 floatformats_ia64_quad for the 16-byte floating point component
7532 within a fortran 32-byte complex number.
7533
7534 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7535
7536 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7537 delete default constructor.
7538 (find_partial_die): Update to return const struct.
7539 (partial_die_parent_scope): Move variable declaration into scope
7540 of its use and change its type to auto.
7541 (guess_partial_die_structure_name): Likewise.
7542 (partial_die_info::fixup): Likewise.
7543
7544 2019-05-17 Tom Tromey <tromey@adacore.com>
7545
7546 * source.c (find_and_open_source): Remove cast.
7547
7548 2019-05-17 Tom Tromey <tromey@adacore.com>
7549
7550 * annotate.c (annotate_source): Make "filename" const.
7551 * annotate.h (annotate_source): Use const.
7552
7553 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7554
7555 * disasm.c (set_disassembler_options): Send errors to stderr.
7556
7557 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7558
7559 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7560 (cli_interp_base::set_logging): Check debug_redirect.
7561 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7562 * cli/cli-logging.c (debug_redirect): Add static variable.
7563 (pop_output_files): Add default param.
7564 (handle_redirections): Print debug setting.
7565 (show_logging_command): Likewise.
7566 (_initialize_cli_logging): Add debugredirect command.
7567 * interps.c (current_interp_set_logging): Add debug_redirect
7568 parameter.
7569 * interps.h (set_logging): Add debug_redirect parameter.
7570 (current_interp_set_logging): Likewise.
7571 * mi/mi-common.h: Likewise.
7572 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7573
7574 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7575 Tom Tromey <tromey@adacore.com>
7576
7577 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7578 directly.
7579 * cli/cli-interp.h (make_logging_output): Remove declaration.
7580 * cli/cli-logging.c (make_logging_output): Remove function.
7581 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7582 directly.
7583 * ui-file.c (tee_file::tee_file): Remove bools.
7584 (tee_file::~tee_file): Remove deletes.
7585 * ui-file.h (tee_file): Remove bools.
7586
7587 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7588
7589 * mi/mi-cmds.h (mi_cmd_complete): New function.
7590 * mi/mi-main.c (mi_cmd_complete): Likewise.
7591 * mi/mi-cmds.c: Define new MI command -complete.
7592 * NEWS: Mention new -complete command.
7593
7594 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7595
7596 * completer.h (complete): New function.
7597 * completer.c (complete): Likewise.
7598 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7599 function defined in completer.h.
7600
7601 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7602
7603 * MAINTAINERS (Write After Approval): Add myself.
7604
7605 2019-05-17 Tom de Vries <tdevries@suse.de>
7606
7607 PR gdb/24094
7608 * dwarf2read.c (struct cu_partial_die_info): New struct.
7609 (find_partial_die): Return cu_partial_die_info.
7610 (partial_die_parent_scope, guess_partial_die_structure_name)
7611 (partial_die_info::fixup): Handle new return type of find_partial_die.
7612
7613 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7614
7615 PR breakpoints/24541
7616 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7617 "std::string", simplifying the algorithm.
7618
7619 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7620
7621 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7622 (stap_static_probe_ops::get_probes): Likewise.
7623
7624 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7625
7626 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7627 '-')" and "else if".
7628 (stap_parse_single_operand): Join checks for
7629 "gdbarch_stap_parse_special_token_p" and
7630 "gdbarch_stap_parse_special_token" in the same "if" statement.
7631 Invert check when verifying for operation on register
7632 displacement.
7633
7634 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7635
7636 * stap-probe.c (stap_get_opcode): Update comment.
7637 (stap_get_expected_argument_type): Likewise.
7638 (handle_stap_probe): Likewise.
7639
7640 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7641
7642 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7643 return type to 'bool'. Adjust comment. Use 'bool' when
7644 appropriate.
7645 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7646 * stap-probe.c (stap_parse_argument_1): Likewise.
7647 (stap_is_operator): Likewise.
7648 (stap_is_generic_prefix): Likewise.
7649 (stap_is_register_prefix): Likewise.
7650 (stap_is_register_indirection_prefix): Likewise.
7651 (stap_is_integer_prefix): Likewise.
7652 (stap_generic_check_suffix): Likewise.
7653 (stap_check_integer_suffix): Likewise.
7654 (stap_check_register_suffix): Likewise.
7655 (stap_check_register_indirection_suffix): Likewise.
7656 (stap_parse_register_operand): Likewise.
7657 (stap_parse_single_operand): Likewise.
7658 (stap_parse_argument_1): Likewise.
7659 (stap_probe::get_argument_count): Likewise.
7660 (stap_is_operator): Likewise.
7661
7662 2019-05-16 Tom Tromey <tromey@adacore.com>
7663
7664 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7665 keyword to foreach.
7666
7667 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7668
7669 * linux-thread-db.c (try_thread_db_load_1): Change return type
7670 to bool.
7671 (try_thread_db_load): Likewise.
7672 (try_thread_db_load_from_pdir_1): Likewise.
7673 (try_thread_db_load_from_pdir): Likewise.
7674 (try_thread_db_load_from_sdir): Likewise.
7675 (try_thread_db_load_from_dir): Likewise.
7676 (thread_db_load_search): Likewise.
7677 (has_libpthread): Likewise.
7678 (thread_db_load): Likewise.
7679
7680 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7681
7682 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7683 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7684 NULL, and complain/return if that's the case.
7685
7686 2019-05-15 John Darrington <john@darrington.wattle.id.au>
7687
7688 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7689 (advance, posn, abstract_read_memory): New functions.
7690 [struct mem_read_abstraction]: New struct.
7691 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7692
7693 2019-05-14 Tom Tromey <tromey@adacore.com>
7694
7695 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7696 value is not lval_memory.
7697
7698 2019-05-14 Tom Tromey <tromey@adacore.com>
7699
7700 * solib.c (info_sharedlibrary_command): Style the file name.
7701
7702 2019-05-14 Alan Hayward <alan.hayward@arm.com>
7703
7704 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7705 (aarch64_vnv_type): Likewise.
7706 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7707 * common/tdesc.c: Likewise.
7708 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7709 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7710 * features/aarch64-fpu.xml: Add ieee half view.
7711 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7712 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7713 * gdbtypes.h (struct builtin_type): Likewise.
7714 (struct objfile_type): Likewise.
7715
7716 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
7717
7718 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7719 typo.
7720 * location.h (string_to_event_location): Likewise.
7721
7722 2019-05-11 Joel Brobecker <brobecker@adacore.com>
7723
7724 GDB 8.3 released.
7725
7726 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7727
7728 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7729 New variable declaration.
7730 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7731 New variable.
7732 (print_one_breakpoint): Use ui_out::test_flags and new global
7733 variable to compute use_fixed_output.
7734 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7735 Remove.
7736 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7737 (mi_multi_location_breakpoint_output_fixed): Remove.
7738 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7739 new variable.
7740 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7741 fix_multi_location_breakpoint_output flag if version >= 3.
7742 * ui-out.h (enum ui_out_flag)
7743 <fix_multi_location_breakpoint_output>: New enumerator.
7744
7745 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7746
7747 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7748
7749 2019-05-10 Tom Tromey <tromey@adacore.com>
7750
7751 * ada-lang.c (catch_ada_completer): New function.
7752 (_initialize_ada_language): Use it.
7753
7754 2019-05-10 Tom Tromey <tromey@adacore.com>
7755
7756 * thread.c (print_thread_info): Make "requested_threads" const.
7757 * gdbthread.h (print_thread_info): Make "requested_threads"
7758 const.
7759 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7760 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7761
7762 2019-05-08 Tom Tromey <tom@tromey.com>
7763
7764 * gdbtypes.c (objfile_type_data): Change type.
7765 (objfile_type, _initialize_gdbtypes): Update.
7766
7767 2019-05-08 Tom Tromey <tom@tromey.com>
7768
7769 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7770 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7771 (_initialize_dwarf2_frame): Update.
7772
7773 2019-05-08 Tom Tromey <tom@tromey.com>
7774
7775 * objc-lang.c (objc_objfile_data): Change type.
7776 (find_methods): Update.
7777 (_initialize_objc_lang): Remove.
7778
7779 2019-05-08 Tom Tromey <tom@tromey.com>
7780
7781 * stabsread.c (rs6000_builtin_type_data): Change type.
7782 (rs6000_builtin_type, _initialize_stabsread): Update.
7783
7784 2019-05-08 Tom Tromey <tom@tromey.com>
7785
7786 * mips-tdep.c (mips_pdr_data): Remove.
7787 (_initialize_mips_tdep): Update.
7788
7789 2019-05-08 Tom Tromey <tom@tromey.com>
7790
7791 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7792 (hppa_init_objfile_priv_data, read_unwind_info)
7793 (find_unwind_entry, _initialize_hppa_tdep): Update.
7794
7795 2019-05-08 Tom Tromey <tom@tromey.com>
7796
7797 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7798 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7799 on obstack.
7800 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7801
7802 2019-05-08 Tom Tromey <tom@tromey.com>
7803
7804 * mdebugread.c (basic_type_data): Change type.
7805 (basic_type, _initialize_mdebugread): Update.
7806
7807 2019-05-08 Tom Tromey <tom@tromey.com>
7808
7809 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7810
7811 2019-05-08 Tom Tromey <tom@tromey.com>
7812
7813 * nto-tdep.c (nto_inferior_data_reg): Change type.
7814 (nto_inferior_data): Update.
7815 (nto_inferior_data_cleanup, nto_new_inferior_data)
7816 (_initialize_nto_tdep): Remove.
7817 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7818
7819 2019-05-08 Tom Tromey <tom@tromey.com>
7820
7821 * ada-lang.c (struct ada_inferior_data): Add initializers.
7822 (ada_inferior_data): Change type.
7823 (ada_inferior_data_cleanup): Remove.
7824 (get_ada_inferior_data, ada_inferior_exit)
7825 (struct ada_pspace_data): Add initializers, destructor.
7826 (ada_pspace_data_handle): Change type.
7827 (get_ada_pspace_data): Update.
7828 (ada_pspace_data_cleanup): Remove.
7829
7830 2019-05-08 Tom Tromey <tom@tromey.com>
7831
7832 * coffread.c (struct coff_symfile_info): Add initializers.
7833 (coff_objfile_data_key): Move lower. Change type.
7834 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7835 Update.
7836 (coff_free_info): Remove.
7837
7838 2019-05-08 Tom Tromey <tom@tromey.com>
7839
7840 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7841 (fbsd_pspace_data_handle): Move lower. Change type.
7842 (get_fbsd_pspace_data): Update.
7843 (fbsd_pspace_data_cleanup): Remove.
7844 (_initialize_fbsd_tdep): Update.
7845
7846 2019-05-08 Tom Tromey <tom@tromey.com>
7847
7848 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7849 (get_ada_tasks_pspace_data): Update.
7850 (ada_tasks_pspace_data_cleanup): Remove.
7851 (_initialize_tasks): Update.
7852 (ada_tasks_inferior_data_handle): Change type.
7853 (get_ada_tasks_inferior_data): Update.
7854 (ada_tasks_inferior_data_cleanup): Remove.
7855 (struct ada_tasks_pspace_data): Add initializers.
7856
7857 2019-05-08 Tom Tromey <tom@tromey.com>
7858
7859 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7860 * symfile-debug.c (debug_sym_get_probes): Change type.
7861 * stap-probe.c (handle_stap_probe):
7862 (stap_static_probe_ops::get_probes): Change type.
7863 * probe.h (class static_probe_ops) <get_probes>: Change type.
7864 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7865 (parse_probes_in_pspace): Update.
7866 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7867 Update.
7868 (any_static_probe_ops::get_probes): Change type.
7869 * elfread.c (elfread_data): New typedef.
7870 (probe_key): Change type.
7871 (elf_get_probes): Likewise. Update.
7872 (probe_key_free): Remove.
7873 (_initialize_elfread): Update.
7874 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7875 Change type.
7876 (dtrace_process_dof_probe, dtrace_process_dof)
7877 (dtrace_static_probe_ops::get_probe): Change type.
7878
7879 2019-05-08 Tom Tromey <tom@tromey.com>
7880
7881 * xcoffread.c (struct xcoff_symfile_info): Rename from
7882 coff_symfile_info. Add initializers.
7883 (xcoff_objfile_data_key): Move lower. Change type.
7884 (XCOFF_DATA): Rewrite.
7885 (xcoff_free_info): Remove.
7886 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7887 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7888 (xcoff_initial_scan): Update.
7889
7890 2019-05-08 Tom Tromey <tom@tromey.com>
7891
7892 * solib-svr4.c (struct svr4_info): Add initializers and
7893 destructor.
7894 <probes_table>: Now an htab_up.
7895 (solib_svr4_pspace_data): Change type.
7896 (free_probes_table): Simplify.
7897 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7898 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7899 (probes_table_remove_objfile_probes, register_solib_event_probe)
7900 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7901 (_initialize_svr4_solib): Update.
7902
7903 2019-05-08 Tom Tromey <tom@tromey.com>
7904
7905 * remote.c (remote_pspace_data): Change type.
7906 (remote_pspace_data_cleanup): Remove.
7907 (get_remote_exec_file, set_pspace_remote_exec_file)
7908 (_initialize_remote): Update.
7909
7910 2019-05-08 Tom Tromey <tom@tromey.com>
7911
7912 * breakpoint.c (breakpoint_objfile_key): Change type.
7913 (get_breakpoint_objfile_data): Update.
7914 (free_breakpoint_objfile_data): Remove.
7915 (_initialize_breakpoint): Update.
7916
7917 2019-05-08 Tom Tromey <tom@tromey.com>
7918
7919 * linux-tdep.c (struct linux_info): Add initializers.
7920 (linux_inferior_data): Move. Change type.
7921 (invalidate_linux_cache_inf): Update.
7922 (linux_inferior_data_cleanup): Remove.
7923 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7924
7925 2019-05-08 Tom Tromey <tom@tromey.com>
7926
7927 * auxv.c (auxv_inferior_data): Move. Change type.
7928 (auxv_inferior_data_cleanup): Remove.
7929 (invalidate_auxv_cache_inf): Rewrite.
7930 (get_auxv_inferior_data, _initialize_auxv): Update.
7931
7932 2019-05-08 Tom Tromey <tom@tromey.com>
7933
7934 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7935 (symfile_debug_objfile_data_key): Change type.
7936 (symfile_debug_installed, debug_qf_has_symbols)
7937 (debug_qf_find_last_source_symtab)
7938 (debug_qf_forget_cached_source_info)
7939 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7940 (debug_qf_print_stats, debug_qf_dump)
7941 (debug_qf_expand_symtabs_for_function)
7942 (debug_qf_expand_all_symtabs)
7943 (debug_qf_expand_symtabs_with_fullname)
7944 (debug_qf_map_matching_symbols)
7945 (debug_qf_expand_symtabs_matching)
7946 (debug_qf_find_pc_sect_compunit_symtab)
7947 (debug_qf_map_symbol_filenames)
7948 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7949 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7950 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7951 (debug_sym_read_linetable, debug_sym_relocate): Update.
7952 (symfile_debug_free_objfile): Remove.
7953 (install_symfile_debug_logging, _initialize_symfile_debug):
7954 Update.
7955
7956 2019-05-08 Tom Tromey <tom@tromey.com>
7957
7958 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7959 allocate_on_obstack.
7960 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7961 (get_dwarf2_per_objfile): Update.
7962 (set_dwarf2_per_objfile): Remove.
7963 (dwarf2_has_info, dwarf2_get_section_info): Update.
7964 (dwarf2_free_objfile): Remove.
7965 (_initialize_dwarf2_read): Update.
7966
7967 2019-05-08 Tom Tromey <tom@tromey.com>
7968
7969 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7970 initializers.
7971 <unsupported_script_warning_printed,
7972 script_not_found_warning_printed>: Now bool.
7973 (auto_load_pspace_data): Change type.
7974 (~auto_load_pspace_info): Rename from
7975 auto_load_pspace_data_cleanup.
7976 (get_auto_load_pspace_data, init_loaded_scripts_info)
7977 (clear_section_scripts, maybe_print_unsupported_script_warning)
7978 (maybe_print_script_not_found_warning, _initialize_auto_load):
7979 Update.
7980
7981 2019-05-08 Tom Tromey <tom@tromey.com>
7982
7983 * objfiles.c (objfile_pspace_info): Add destructor and
7984 initializers.
7985 (objfiles_pspace_data): Change type.
7986 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7987 (get_objfile_pspace_data): Update.
7988 (objfiles_bfd_data): Change type.
7989 (get_objfile_bfd_data): Update.
7990 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7991
7992 2019-05-08 Tom Tromey <tom@tromey.com>
7993
7994 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7995 Change type.
7996 (get_catch_syscall_inferior_data): Update.
7997 (catch_syscall_inferior_data_cleanup): Remove.
7998 (_initialize_break_catch_syscall): Update.
7999
8000 2019-05-08 Tom Tromey <tom@tromey.com>
8001
8002 * inflow.c (struct terminal_info): Add destructor and
8003 initializers.
8004 (inflow_inferior_data): Change type.
8005 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8006 (get_inflow_inferior_data, inflow_inferior_exit)
8007 (swap_terminal_info, _initialize_inflow): Update.
8008
8009 2019-05-08 Tom Tromey <tom@tromey.com>
8010
8011 * target-dcache.c (target_dcache_cleanup): Remove.
8012 (target_dcache_aspace_key): Change type.
8013 (target_dcache_init_p, target_dcache_invalidate)
8014 (target_dcache_get, target_dcache_get_or_init)
8015 (_initialize_target_dcache): Update.
8016 * dcache.h (struct dcache_deleter): New.
8017
8018 2019-05-08 Tom Tromey <tom@tromey.com>
8019
8020 * symtab.c (struct symbol_cache): Add destructor and
8021 initializers.
8022 (symbol_cache_key): Move. Change type.
8023 (make_symbol_cache, free_symbol_cache): Remove.
8024 (get_symbol_cache): Update.
8025 (symbol_cache_cleanup): Remove.
8026 (ALL_PSPACES, symbol_cache_flush)
8027 (maintenance_print_symbol_cache)
8028 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8029 Update.
8030
8031 2019-05-08 Tom Tromey <tom@tromey.com>
8032
8033 * symtab.c (struct main_info): Add destructor and initializers.
8034 (main_progspace_key): Move. Change type.
8035 (get_main_info): Update.
8036 (main_info_cleanup): Remove.
8037 (_initialize_symtab): Update.
8038
8039 2019-05-08 Tom Tromey <tom@tromey.com>
8040
8041 * registry.h (DECLARE_REGISTRY): Define the _key class.
8042
8043 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8044
8045 * NEWS: Merge two 'New commands' sections.
8046
8047 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8048
8049 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8050 parameter and use Ada language definition instead.
8051 (ada_val_print_ptr): Remove unused language parameter.
8052 (ada_val_print_num): Remove language parameter and use Ada language
8053 definition instead.
8054 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8055 parameter.
8056 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8057 parameter and use Ada language definition instead.
8058 (ada_val_print_1): Update all ada_val_print_xxx calls.
8059 Remove language parameter.
8060 (ada_val_print): Update ada_val_print_1 call.
8061
8062 2019-05-08 Tom Tromey <tromey@adacore.com>
8063
8064 * remote.c (remote_hw_watchpoint_limit)
8065 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8066 Now static.
8067
8068 2019-05-08 Tom Tromey <tromey@adacore.com>
8069
8070 * maint.c (_initialize_maint_cmds): Move initialization code to
8071 remote.c.
8072 (watchdog, show_watchdog): Move to remote.c.
8073 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8074 "watchdog" static.
8075 (_initialize_remote): Move initialization code from maint.c.
8076 * defs.h (watchdog): Don't declare.
8077
8078 2019-05-08 Tom Tromey <tromey@adacore.com>
8079
8080 * tui/tui-interp.c: Include main.h.
8081 * interps.c: Include main.h.
8082 * main.h (interpreter_p): Declare.
8083 * defs.h (interpreter_p): Don't declare.
8084
8085 2019-05-08 Tom Tromey <tromey@adacore.com>
8086
8087 * dwarf2loc.c: Include dwarf2read.h.
8088 * defs.h (read_unsigned_leb128): Don't declare.
8089 * dwarf2read.h (read_unsigned_leb128): Declare.
8090
8091 2019-05-08 Tom Tromey <tromey@adacore.com>
8092
8093 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8094 method.
8095
8096 2019-05-08 Tom Tromey <tromey@adacore.com>
8097
8098 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8099 when no wrap column is set.
8100
8101 2019-05-08 Tom Tromey <tromey@adacore.com>
8102
8103 * c-lang.c (c_get_string): Handle non-C-style arrays.
8104
8105 2019-05-08 Tom Tromey <tromey@adacore.com>
8106
8107 * typeprint.c (print_offset_data::update): Print the bit offset,
8108 not the number of bits remaining.
8109
8110 2019-05-08 Tom Tromey <tromey@adacore.com>
8111
8112 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8113 padding at end of comment.
8114
8115 2019-05-08 Tom Tromey <tromey@adacore.com>
8116
8117 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8118 Compare main types.
8119
8120 2019-05-06 Tom Tromey <tom@tromey.com>
8121
8122 * common/scoped_mmap.c: Include common-defs.h.
8123 * common/scoped_mmap.h: Don't include config.h.
8124
8125 2019-05-04 Tom Tromey <tom@tromey.com>
8126
8127 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8128 (struct aarch64_call_info): Add initializers.
8129 <si>: Now a std::vector.
8130 (pass_on_stack, aarch64_push_dummy_call): Update.
8131
8132 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8133 Tom Tromey <tom@tromey.com>
8134
8135 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8136 (ppc_threads): Now a std::vector. Now static.
8137 (hwdebug_find_thread_points_by_tid)
8138 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8139 Update.
8140
8141 2019-05-04 Tom Tromey <tom@tromey.com>
8142
8143 * arc-tdep.c (arc_tdesc_init): Return bool.
8144
8145 2019-05-04 Tom Tromey <tom@tromey.com>
8146
8147 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8148 Use gdb_assert_not_reached.
8149
8150 2019-05-04 Tom Tromey <tom@tromey.com>
8151
8152 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8153 "false".
8154
8155 2019-05-04 Tom Tromey <tom@tromey.com>
8156
8157 * arc-tdep.c (arc_tdesc_init): Use bool.
8158
8159 2019-05-04 Tom Tromey <tom@tromey.com>
8160
8161 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8162
8163 2019-05-04 Tom Tromey <tom@tromey.com>
8164
8165 * cli/cli-cmds.c (valid_command_p): Return bool.
8166
8167 2019-05-04 Tom Tromey <tom@tromey.com>
8168
8169 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8170 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8171
8172 2019-05-04 Raul Tambre <raul@tambre.ee>
8173
8174 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8175 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8176 operator for comparison.
8177
8178 2019-05-04 Tom Tromey <tom@tromey.com>
8179
8180 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8181 (lookup_partial_symbol, print_partial_symbols)
8182 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8183 (psymbol_compare): Update.
8184 (add_psymbol_to_bcache): Clear the entire psymbol.
8185 (maintenance_check_psymtabs): Update.
8186 * psympriv.h (struct partial_symbol): Don't derive from
8187 general_symbol_info.
8188 <obj_section, unrelocated_address, address,
8189 set_unrelocated_address>: Update.
8190 <ginfo>: New member.
8191 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8192 (debug_names::write_psymbols): Update.
8193
8194 2019-05-04 Tom de Vries <tdevries@suse.de>
8195
8196 * contrib/cc-with-tweaks.sh: Support -n arg.
8197
8198 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8199
8200 * corelow.c (core_target::detach): Ensure frame cache and
8201 register caches are cleared.
8202 inferior.c (exit_inferior_1): Likewise.
8203
8204 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8205 Tom Tromey <tom@tromey.com>
8206
8207 * dictionary.c (collate_pending_symbols_by_language): Remove
8208 "struct" from foreach.
8209 * symtab.c (lookup_global_symbol_from_objfile)
8210 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8211 foreach.
8212 * ser-tcp.c (net_open): Remove "struct" from foreach.
8213 * objfiles.c (objfile_relocate, objfile_rebase)
8214 (objfile_has_symbols): Remove "struct" from foreach.
8215 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8216 from foreach.
8217 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8218 foreach.
8219 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8220 "struct" from foreach.
8221 * ada-lang.c (create_excep_cond_exprs)
8222 (ada_exception_catchpoint_cond_string): Remove "struct" from
8223 foreach.
8224
8225 2019-05-03 Tom Tromey <tromey@adacore.com>
8226
8227 * ada-exp.y (convert_char_literal): Check suffix of each
8228 enumerator.
8229
8230 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8231
8232 PR ada/21406:
8233 * ada-exp.y (yywrap): Don't define.
8234 * ada-lex.l (%option): Add noyywrap
8235 (yywrap): Remove.
8236
8237 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8238
8239 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8240 _WIN32_WINNT to the XP level, unless already defined to a higher
8241 level.
8242
8243 * unittests/parse-connection-spec-selftests.c:
8244 * ser-tcp.c:
8245 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8246 override.
8247
8248 * symfile.c (find_separate_debug_file): Remove colon from the
8249 drive spec of DOS/Windows file names of the target, so that the
8250 file name produced from DEBUGDIR and the target's directory will
8251 be valid on DOS/Windows systems.
8252
8253 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8254
8255 * rust-lang.c (val_print_struct): Handle printing structures
8256 containing strings.
8257
8258 2019-05-02 Tom Tromey <tromey@adacore.com>
8259
8260 * valarith.c (_initialize_valarith): Remove.
8261
8262 2019-05-01 Tom Tromey <tromey@adacore.com>
8263
8264 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8265 bitfields.
8266
8267 2019-05-01 Tom Tromey <tromey@adacore.com>
8268
8269 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8270 for big-endian copies.
8271
8272 2019-04-30 Ali Tamur <tamur@google.com>
8273 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8274 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8275 (read_3_bytes): New function.
8276
8277 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8278
8279 * windows-nat.c (main_thread_id): Delete.
8280 (handle_output_debug_string): Replace main_thread_id by
8281 current_event.dwThreadId.
8282 (fake_create_process): Likewise.
8283 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8284 Do not set main_thread_id.
8285 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8286 current_event.dwThreadId.
8287 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8288
8289 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8290
8291 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8292 Use current_event.dwThreadId instead of main_thread_id.
8293
8294 2019-04-30 Tom Tromey <tromey@adacore.com>
8295
8296 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8297 (create_excep_cond_exprs): Iterate over program spaces.
8298 (ada_exception_catchpoint_cond_string): Examine all minimal
8299 symbols for exception types.
8300
8301 2019-04-30 Tom Tromey <tromey@adacore.com>
8302
8303 PR c++/24470:
8304 * dwarf2read.c (process_structure_scope): Handle case where type
8305 has template parameters but no symbol was created.
8306
8307 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8308 Chris January <chris.january@arm.com>
8309
8310 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8311 qualifier.
8312 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8313
8314 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8315
8316 * f-typeprint.c (f_print_type): Update rules for printing
8317 whitespace.
8318 (f_type_print_varspec_suffix): Likewise.
8319
8320 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8321 Chris January <chris.january@arm.com>
8322
8323 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8324 function arguments.
8325
8326 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8327
8328 * f-lang.c (build_fortran_types): Change name of void type to
8329 lower case.
8330 * f-typeprint.c (f_type_print_base): Print the name of the void
8331 type, rather than a fixed string.
8332 * f-valprint.c (f_decorations): Use lower case void string.
8333
8334 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8335 Chris January <chris.january@arm.com>
8336
8337 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8338 types for Fortran.
8339
8340 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8341 Chris January <chris.january@arm.com>
8342 David Lecomber <david.lecomber@arm.com>
8343
8344 * f-exp.y (BINOP_INTRINSIC): New token.
8345 (exp): New parser rule handling BINOP_INTRINSIC.
8346 (f77_keywords): Add new builtin procedures.
8347 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8348 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8349 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8350 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8351 (print_unop_subexp_f): New function.
8352 (print_binop_subexp_f): New function.
8353 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8354 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8355 (dump_subexp_body_f): Likewise.
8356 (operator_check_f): Likewise.
8357 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8358 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8359
8360 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8361
8362 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8363 UNOP_KIND.
8364 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8365 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8366 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8367 (operator_length_f): New fuction.
8368 (print_subexp_f): New function.
8369 (op_name_f): New function.
8370 (dump_subexp_body_f): New function.
8371 (operator_check_f): New function.
8372 (exp_descriptor_f): Replace standard expression handling functions
8373 with new functions.
8374 * gdb/fortran-operator.def: New file.
8375 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8376 * gdb/std-operator.def: Remove UNOP_KIND.
8377
8378 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8379
8380 * std-operator.def: Remove unbalanced, stray double quote
8381 character.
8382
8383 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8384 Chris January <chris.january@arm.com>
8385 Daniel Everett <daniel.everett@arm.com>
8386 Nick Forrington <nick.forrington@arm.com>
8387 Richard Bunt <richard.bunt@arm.com>
8388
8389 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8390 of depth when printing anonymous structs or unions.
8391 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8392 Don't print either the top-level value, or the children if the
8393 max-depth is exceeded.
8394 (ppscm_print_children): When printing the key of a map, allow one
8395 extra level of depth.
8396 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8397 print either the top-level value, or the children if the max-depth
8398 is exceeded.
8399 (print_children): When printing the key of a map, allow one extra
8400 level of depth.
8401 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8402 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8403 (user_print_options): Initialise max_depth field.
8404 (val_print_scalar_or_string_type_p): New function.
8405 (val_print): Check to see if the max depth has been reached.
8406 (val_print_check_max_depth): Define new function.
8407 (show_print_max_depth): New function.
8408 (_initialize_valprint): Add 'print max-depth' option.
8409 * valprint.h (struct value_print_options) <max_depth>: New field.
8410 (val_print_check_max_depth): Declare new function.
8411 * NEWS: Document new feature.
8412
8413 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8414
8415 * ada-lang.c (ada_language_defn): Initialise new field.
8416 * c-lang.c (c_is_string_type_p): New function.
8417 (c_language_defn): Initialise new field.
8418 (cplus_language_defn): Initialise new field.
8419 (asm_language_defn): Initialise new field.
8420 (minimal_language_defn): Initialise new field.
8421 * c-lang.h (c_is_string_type_p): Declare new function.
8422 * d-lang.c (d_language_defn): Initialise new field.
8423 * f-lang.c (f_is_string_type_p): New function.
8424 (f_language_defn): Initialise new field.
8425 * go-lang.c (go_is_string_type_p): New function.
8426 (go_language_defn): Initialise new field.
8427 * language.c (default_is_string_type_p): New function.
8428 (unknown_language_defn): Initialise new field.
8429 (auto_language_defn): Initialise new field.
8430 * language.h (struct language_defn) <la_is_string_type_p>: New
8431 member variable.
8432 (default_is_string_type_p): Declare new function.
8433 * m2-lang.c (m2_language_defn): Initialise new field.
8434 * objc-lang.c (objc_language_defn): Initialise new field.
8435 * opencl-lang.c (opencl_language_defn): Initialise new field.
8436 * p-lang.c (pascal_is_string_type_p): New function.
8437 (pascal_language_defn): Initialise new field.
8438 * rust-lang.c (rust_is_string_type_p): New function.
8439 (rust_language_defn): Initialise new field.
8440
8441 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8442
8443 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8444 New field.
8445 * ada-lang.c (ada_language_defn): Initialise new field.
8446 * c-lang.c (c_language_defn): Likewise.
8447 (cplus_language_defn): Likewise.
8448 (asm_language_defn): Likewise.
8449 (minimal_language_defn): Likewise.
8450 * d-lang.c (d_language_defn): Likewise.
8451 * f-lang.c (f_language_defn): Likewise.
8452 * go-lang.c (go_language_defn): Likewise.
8453 * language.c (unknown_language_defn): Likewise.
8454 (auto_language_defn): Likewise.
8455 * m2-lang.c (m2_language_defn): Likewise.
8456 * objc-lang.c (objc_language_defn): Likewise.
8457 * opencl-lang.c (opencl_language_defn): Likewise.
8458 * p-lang.c (pascal_language_defn): Likewise.
8459 * rust-lang.c (rust_language_defn): Likewise.
8460
8461 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8462
8463 * ada-lang.c (ada_is_character_type): Change return type to bool.
8464 (ada_is_string_type): Likewise.
8465 * ada-lang.h (ada_is_character_type): Update declaration
8466 (ada_is_string_type): Likewise.
8467
8468 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8469
8470 Support style in 'frame|thread apply'
8471
8472 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8473 * record.c (record_start, record_stop): Update callers of
8474 execute_command_to_string with false.
8475 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8476 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8477 methods.
8478 (class string_file): New constructor with term_out parameter.
8479 Override methods term_out and can_emit_style_escape. New member
8480 term_out.
8481 (class stdio_file): Override can_emit_style_escape.
8482 (class tee_file): Override term_out and can_emit_style_escape.
8483 * utils.h (can_emit_style_escape): Remove.
8484 * utils.c (can_emit_style_escape): Likewise.
8485 Update all callers of can_emit_style_escape (SOMESTREAM) to
8486 SOMESTREAM->can_emit_style_escape.
8487 * source-cache.c (source_cache::get_source_lines): Likewise.
8488 * stack.c (frame_apply_command_count): Call execute_command_to_string
8489 passing the term_out characteristic of the current gdb_stdout.
8490 * thread.c (thr_try_catch_cmd): Likewise.
8491 * top.c (execute_command_to_string): pass term_out parameter
8492 to construct the string_file for the command output.
8493 * ui-file.c (term_cli_styling): New function (most code moved
8494 from utils.c can_emit_style_escape).
8495 (string_file::string_file, string_file::can_emit_style_escape,
8496 stdio_file::can_emit_style_escape, tee_file::term_out,
8497 tee_file::can_emit_style_escape): New functions.
8498
8499 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8500
8501 * NEWS: Mention the new set|show may-call-functions.
8502 * infcall.c (may_call_functions_p): New variable.
8503 (show_may_call_functions_p): New function.
8504 (call_function_by_hand_dummy): Throws an error if not
8505 may-call-functions.
8506 (_initialize_infcall): Call add_setshow_boolean_cmd for
8507 may-call-functions.
8508
8509 2019-04-25 Keith Seitz <keiths@redhat.com>
8510
8511 PR c++/24367
8512 * cp-support.c (inspect_type): Don't attempt substitutions
8513 of symbol with the same name.
8514
8515 2019-04-25 Tom Tromey <tromey@adacore.com>
8516
8517 PR gdb/24475:
8518 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8519 static.
8520
8521 2019-04-25 Tom Tromey <tromey@adacore.com>
8522
8523 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8524 rvalue reference.
8525 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8526 (gdb_xml_parser::parse): Use std::move.
8527 * python/python-internal.h (gdbpy_convert_exception): Take a const
8528 reference.
8529 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8530 std::move.
8531 * python/py-utils.c (gdbpy_convert_exception): Take a const
8532 reference.
8533 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8534 Use std::move.
8535 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8536 Use std::move.
8537 * mi/mi-main.c (mi_print_exception): Take a const reference.
8538 * main.c (handle_command_errors): Take a const reference.
8539 * linespec.c (parse_linespec): Use std::move.
8540 * infcall.c (run_inferior_call): Use std::move.
8541 (call_function_by_hand_dummy): Use std::move.
8542 * exec.c (try_open_exec_file): Use std::move.
8543 * exceptions.h (exception_print, exception_fprintf)
8544 (exception_print_same): Update.
8545 * exceptions.c (print_exception, exception_print)
8546 (exception_fprintf, exception_print_same): Change parameters to
8547 const reference.
8548 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8549 * common/new-op.c: Use std::move.
8550 * common/common-exceptions.h (struct gdb_exception): Add move
8551 constructor.
8552 (struct gdb_exception_error, struct gdb_exception_quit, struct
8553 gdb_quit_bad_alloc): Change constructor to move constructor.
8554 (throw_exception): Change parameter to rvalue reference.
8555 * common/common-exceptions.c (throw_exception): Take rvalue
8556 reference.
8557 * cli/cli-interp.c (safe_execute_command): Use std::move.
8558 * breakpoint.c (insert_bp_location, location_to_sals): Use
8559 std::move.
8560
8561 2019-04-25 Tom Tromey <tromey@adacore.com>
8562
8563 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8564 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8565 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8566 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8567 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8568 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8569 guile/scm-value.c: Use unpack.
8570 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8571 gdbscm_gdb_exception.
8572 (gdbscm_throw_gdb_exception): Likewise.
8573 (struct gdbscm_gdb_exception): New.
8574 (unpack): New function.
8575 (gdbscm_wrap): Use unpack.
8576
8577 2019-04-25 Tom Tromey <tromey@adacore.com>
8578
8579 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8580 (gdb_rl_callback_handler): Use std::move.
8581 * common/common-exceptions.h (struct gdb_exception): Add move
8582 assignment operator.
8583 (throw_exception_sjlj): Change "exception" to const reference.
8584 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8585 (throw_exception_sjlj): Change "exception" to const reference.
8586
8587 2019-04-25 Tom Tromey <tromey@adacore.com>
8588
8589 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8590 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8591 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8592 Update.
8593 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8594 Update.
8595 * mi/mi-interp.c (mi_interp::exec): Update.
8596 * linespec.c (parse_linespec): Update.
8597 * infcall.c (run_inferior_call): Update.
8598 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8599 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8600 (gdbscm_lookup_global_symbol): Update.
8601 * guile/scm-param.c (gdbscm_parameter_value): Update.
8602 * guile/scm-frame.c (gdbscm_frame_read_register)
8603 (gdbscm_frame_read_var): Update.
8604 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8605 * exec.c (try_open_exec_file): Update.
8606 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8607 (gdb_rl_callback_handler): Update.
8608 * common/common-exceptions.h (exception_none): Don't declare.
8609 * common/common-exceptions.c (exception_none): Don't define.
8610 (struct catcher) <exception>: Update.
8611 * cli/cli-interp.c (safe_execute_command): Update.
8612 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8613
8614 2019-04-25 Ali Tamur <tamur@google.com>
8615
8616 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8617 (read_attribute_value): Likewise.
8618 (dwarf2_read_addr_index): Update comment.
8619 (read_str_index): Add DW_FORM_strx.
8620 (dwarf2_string_attr): Likewise.
8621 (dwarf2_const_value_attr): Likewise.
8622 (dump_die_shallow): Likewise.
8623 (dwarf2_fetch_constant_bytes): Likewise.
8624 (skip_form_bytes): Likewise.
8625 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8626
8627 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8628
8629 PR corefiles/11608
8630 PR corefiles/18187
8631 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8632 OFFSET. Verify if current mapping contains an ELF header.
8633 (linux_find_memory_regions_full): Adjust call to
8634 dump_mapping_p.
8635
8636 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8637 Kang Li <kanglictf@gmail.com>
8638
8639 PR gdb/21600
8640
8641 * dwarf2-frame.c (read_initial_length): Be consistent about using
8642 unsigned representation of length.
8643 (decode_frame_entry_1): Likewise. Check for wraparound of
8644 end pointer as well as buffer overflow.
8645
8646 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8647
8648 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8649 "vq".
8650
8651 2019-04-24 Tom Tromey <tromey@adacore.com>
8652
8653 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8654
8655 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8656
8657 * s12z-tdep.c (s12z_unwind_pc): Delete.
8658 (s12z_unwind_sp): Delete.
8659 (s12z_gdbarch_init): Don't register deleted functions with
8660 gdbarch.
8661
8662 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8663
8664 * rl78-tdep.c (rl78_unwind_sp): Delete.
8665 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8666
8667 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8668
8669 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8670 (xstormy16_unwind_pc): Delete.
8671 (xstormy16_dummy_id): Delete.
8672 (xstormy16_gdbarch_init): Don't register deleted functions with
8673 gdbarch.
8674
8675 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8676
8677 * vax-tdep.c (vax_unwind_pc): Delete.
8678 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8679
8680 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8681
8682 * v850-tdep.c (v850_unwind_sp): Delete.
8683 (v850_unwind_pc): Delete.
8684 (v850_dummy_id): Delete.
8685 (v850_gdbarch_init): Don't register deleted functions with
8686 gdbarch.
8687
8688 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8689
8690 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8691 (tilegx_unwind_pc): Delete.
8692 (tilegx_unwind_dummy_id): Delete.
8693 (tilegx_gdbarch_init): Don't register deleted functions with
8694 gdbarch.
8695
8696 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8697
8698 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8699 (tic6x_dummy_id): Delete.
8700 (tic6x_gdbarch_init): Don't register deleted functions with
8701 gdbarch.
8702
8703 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8704
8705 * sparc-tdep.c (sparc_unwind_pc): Delete.
8706 (sparc32_gdbarch_init): Don't register deleted function with
8707 gdbarch.
8708
8709 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8710
8711 * sh-tdep.c (sh_unwind_sp): Delete.
8712 (sh_unwind_pc): Delete.
8713 (sh_dummy_id): Delete.
8714 (sh_gdbarch_init): Don't register deleted functions with
8715 gdbarch.
8716
8717 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8718
8719 * score-tdep.c (score_unwind_sp): Delete.
8720 (score_unwind_pc): Delete.
8721 (score_dummy_id): Delete.
8722 (score_gdbarch_init): Don't register deleted functions with
8723 gdbarch.
8724
8725 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8726
8727 * rx-tdep.c (rx_unwind_pc): Delete.
8728 (rx_unwind_sp): Delete.
8729 (rx_dummy_id): Delete.
8730 (rx_gdbarch_init): Don't register deleted functions with
8731 gdbarch. Update comment.
8732
8733 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8734
8735 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8736 (rs6000_dummy_id): Delete.
8737 (rs6000_gdbarch_init): Don't register deleted functions with
8738 gdbarch.
8739
8740 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8741
8742 * or1k-tdep.c (or1k_dummy_id): Delete.
8743 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8744
8745 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8746
8747 * nios2-tdep.c (nios2_dummy_id): Delete.
8748 (nios2_unwind_sp): Delete.
8749 (nios2_gdbarch_init): Don't register deleted functions with
8750 gdbarch.
8751
8752 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8753
8754 * nds32-tdep.c (nds32_dummy_id): Delete.
8755 (nds32_unwind_pc): Delete.
8756 (nds32_unwind_sp): Delete.
8757 (nds32_gdbarch_init): Don't register deleted functions with
8758 gdbarch.
8759
8760 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8761
8762 * msp430-tdep.c (msp430_unwind_pc): Delete.
8763 (msp430_unwind_sp): Delete.
8764 (msp430_dummy_id): Delete.
8765 (msp430_gdbarch_init): Don't register deleted functions with
8766 gdbarch.
8767
8768 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8769
8770 * moxie-tdep.c (moxie_unwind_sp): Delete.
8771 (moxie_unwind_pc): Delete.
8772 (moxie_dummy_id): Delete.
8773 (moxie_gdbarch_init): Don't register deleted functions with
8774 gdbarch.
8775
8776 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8777
8778 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8779 (mn10300_unwind_pc): Delete.
8780 (mn10300_unwind_sp): Delete.
8781 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8782 mn10300_unwind_sp.
8783 (mn10300_frame_unwind_init): Don't register deleted functions with
8784 gdbarch.
8785
8786 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8787
8788 * mep-tdep.c (mep_unwind_pc): Delete.
8789 (mep_unwind_sp): Delete.
8790 (mep_dummy_id): Delete.
8791 (mep_gdbarch_init): Don't register deleted functions with
8792 gdbarch.
8793
8794 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8795
8796 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8797 (m68hc11_unwind_sp): Delete.
8798 (m68hc11_gdbarch_init): Don't register deleted functions with
8799 gdbarch.
8800
8801 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8802
8803 * m32r-tdep.c (m32r_unwind_sp): Delete.
8804 (m32r_unwind_pc): Delete.
8805 (m32r_dummy_id): Delete.
8806 (m32r_gdbarch_init): Don't register deleted functions with
8807 gdbarch.
8808
8809 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8810
8811 * m32c-tdep.c (m32c_unwind_pc): Delete.
8812 (m32c_unwind_sp): Delete.
8813 (m32c_dummy_id): Delete.
8814 (m32c_gdbarch_init): Don't register deleted functions with
8815 gdbarch.
8816
8817 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8818
8819 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8820 (lm32_unwind_pc): Delete.
8821 (lm32_dummy_id): Delete.
8822 (lm32_gdbarch_init): Don't register deleted functions with
8823 gdbarch.
8824
8825 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8826
8827 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8828 (iq2000_unwind_pc): Delete.
8829 (iq2000_dummy_id): Delete.
8830 (iq2000_gdbarch_init): Don't register deleted functions with
8831 gdbarch.
8832
8833 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8834
8835 * nds32-tdep.c (nds32_type_align): Delete.
8836 (nds32_push_dummy_call): Use type_align instead.
8837
8838 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8839
8840 * arm-tdep.c (arm_type_align): Only handle vector override case.
8841 (arm_push_dummy_call): Use type_align.
8842 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8843
8844 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8845
8846 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8847 case.
8848 (pass_on_stack): Use type_align.
8849 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8850 function.
8851
8852 2019-04-23 Tom Tromey <tromey@adacore.com>
8853
8854 * dwarf2read.c (line_header::file_name_at): Remove unused
8855 overload.
8856
8857 2019-04-23 Tom de Vries <tdevries@suse.de>
8858
8859 PR gdb/24438
8860 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8861 invocation.
8862
8863
8864 2019-03-27 Ali Tamur <tamur@google.com>
8865
8866 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8867 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8868 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8869 (dwarf_expr_context::get_addr_index): Likewise
8870 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8871 (symbol_needs_eval_context::get_addr_index): Likewise
8872 (disassemble_dwarf_expression): Add DW_OP_addrx
8873 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8874 (read_cutu_die_from_dwo): Update comment
8875 (skip_one_die): Add DW_FORM_addrx
8876 (read_attribute_value): Likewise
8877 (var_decode_location): Add DW_OP_addrx
8878 (dwarf2_const_value_attr): Add DW_FORM_addrx
8879 (dump_die_shallow): Likewise
8880 (dwarf2_fetch_constant_bytes): Likewise
8881 (decode_locdesc): Add DW_OP_addrx
8882 (skip_form_bytes): Add DW_FORM_addrx
8883
8884 2019-04-22 Ali Tamur <tamur@google.com>
8885
8886 * MAINTAINERS (Write After Approval): Add self.
8887
8888 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
8889
8890 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8891 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8892 (open_symbol_file_object): Likewise.
8893 (svr4_default_sos): Add info parameter.
8894 (svr4_read_so_list): Likewise.
8895 (svr4_current_sos_direct): Adjust functions calls to pass down
8896 info.
8897 (svr4_current_sos_1): Add info parameter.
8898 (svr4_current_sos): Call get_svr4_info, pass info down to
8899 svr4_current_sos_1.
8900 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8901 get_svr4_info.
8902 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8903 get_svr4_info.
8904 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8905 to get_svr4_info.
8906 (probes_table_remove_objfile_probes): Likewise.
8907 (register_solib_event_probe): Add info parameter.
8908 (solist_update_incremental): Pass info parameter down to
8909 svr4_read_so_list.
8910 (disable_probes_interface): Add info parameter.
8911 (svr4_handle_solib_event): Pass current_program_space to
8912 get_svr4_info. Adjust disable_probes_interface cleanup.
8913 (svr4_create_probe_breakpoints): Add info parameter, pass it
8914 down to register_solib_event_probe.
8915 (svr4_create_solib_event_breakpoints): Add info parameter,
8916 pass it down to svr4_create_probe_breakpoints.
8917 (enable_break): Pass info down to
8918 svr4_create_solib_event_breakpoints.
8919 (svr4_solib_create_inferior_hook): Pass current_program_space to
8920 get_svr4_info.
8921 (svr4_clear_solib): Likewise.
8922
8923 2019-04-22 Pedro Alves <palves@redhat.com>
8924
8925 * solib-svr4.c (svr4_free_objfile_observer): New.
8926 (probe_and_action::objfile): New field.
8927 (probes_table_htab_remove_objfile_probes)
8928 (probes_table_remove_objfile_probes): New functions.
8929 (register_solib_event_probe): Add 'objfile' parameter. Store it
8930 in the new probe_and_action. Don't store the probe in 'lookup'.
8931 (svr4_create_probe_breakpoints): Pass objfile to
8932 register_solib_event_probe.
8933 (_initialize_svr4_solib): Register a free_objfile observer.
8934
8935 2019-04-19 Tom Tromey <tom@tromey.com>
8936
8937 * common/queue.h: Remove.
8938
8939 2019-04-19 Tom Tromey <tom@tromey.com>
8940
8941 * event-loop.c: Don't include "common/queue.h".
8942
8943 2019-04-19 Tom Tromey <tom@tromey.com>
8944
8945 * remote.c (remote_target): Use delete.
8946 * remote-notif.h: Include <list>, not "common/queue.h".
8947 (notif_client_p): Remove typedef.
8948 (remote_notif_state): Add constructor, destructor, initializer.
8949 <notif_queue>: Now a std::list.
8950 (remote_notif_state_xfree): Don't declare.
8951 * remote-notif.c (remote_notif_process, handle_notification)
8952 (remote_notif_state_allocate): Update.
8953 (~remote_notif_state): Rename from remote_notif_state_xfree.
8954
8955 2019-04-19 Tom Tromey <tom@tromey.com>
8956
8957 * symfile.c (reread_symbols): Update.
8958 * objfiles.c (objfile_register_static_link)
8959 (objfile_lookup_static_link): Update
8960 (~objfile) Don't delete static_links.
8961 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8962
8963 2019-04-19 Tom Tromey <tom@tromey.com>
8964
8965 * type-stack.h (struct type_stack) <insert>: Constify string.
8966 * type-stack.c (type_stack::insert): Constify string.
8967 * gdbtypes.h (lookup_template_type): Update.
8968 (address_space_name_to_int): Update.
8969 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8970 const.
8971 (lookup_template_type): Make name const.
8972 * c-exp.y: Update rules.
8973 (lex_one_token, classify_name, classify_inner_name)
8974 (c_print_token): Update.
8975 * p-exp.y: Update rules.
8976 (yylex): Update.
8977 * f-exp.y: Update rules.
8978 (yylex): Update.
8979 * d-exp.y: Update rules.
8980 (lex_one_token, classify_name, classify_inner_name): Update.
8981 * parse.c (write_dollar_variable, copy_name): Return std::string.
8982 * parser-defs.h (copy_name): Change return type.
8983 * m2-exp.y: Update rules.
8984 (yylex): Update.
8985 * go-exp.y (lex_one_token): Update.
8986 Update rules.
8987 (classify_unsafe_function, classify_packaged_name)
8988 (classify_name, yylex): Update.
8989
8990 2019-04-19 Sergei Trofimovich <siarheit@google.com>
8991
8992 * configure.ac: add --enable-source-highlight switch.
8993 * configure: Regenerate.
8994 * top.c (print_gdb_version): plumb --enable-source-highlight
8995 status to "show configuration".
8996
8997 2019-04-19 Tom Tromey <tromey@adacore.com>
8998
8999 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9000 Check ADA_TYPE_P.
9001 (empty_record, ada_template_to_fixed_record_type_1)
9002 (template_to_static_fixed_type)
9003 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9004 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9005 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9006 macros.
9007
9008 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9009
9010 PR symtab/24423:
9011 * source.c (print_source_lines_base): Advance "iter" when a
9012 control character is seen.
9013
9014 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9015
9016 * inferior.h (struct infcall_suspend_state_deleter):
9017 Catch exception in destructor to avoid crash.
9018
9019 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9020
9021 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9022 close to the add_com "shell".
9023
9024 2019-04-18 Tom Tromey <tromey@adacore.com>
9025
9026 * process-stratum-target.h (class process_stratum_target)
9027 <stratum>: Add "final".
9028
9029 2019-04-17 Tom Tromey <tromey@adacore.com>
9030
9031 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9032 against nullptr before use.
9033
9034 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9035
9036 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9037
9038 2019-04-17 Jim Wilson <jimw@sifive.com>
9039 Andrew Burgess <andrew.burgess@embecosm.com>
9040
9041 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9042 code read might fail, assume 4-byte breakpoint in that case.
9043
9044 2019-04-15 Leszek Swirski <leszeks@google.com>
9045
9046 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9047 rather than a hand-rolled POD check when checking for forced MEMORY
9048 classification.
9049
9050 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9051
9052 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9053 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9054 function.
9055 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9056 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9057 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9058 declaration.
9059
9060 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9061
9062 * aarch64-linux-nat.c
9063 (aarch64_linux_nat_target::thread_architecture): Add override.
9064 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9065 each VQ.
9066
9067 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9068
9069 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9070
9071 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9072
9073 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9074 target types of size 96-bits, add some additional comments, and
9075 check that the builtin type we found was the correct size.
9076
9077 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9078
9079 * utils.c (prompt_for_continue): Don't restore the styling at the
9080 end, as applied_style has the wrong value. This fixes styling in
9081 long lists of file names that are interrupted by the "Continue?"
9082 prompt.
9083
9084 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9085
9086 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9087 * c-lang.c (c_language_defn): Likewise.
9088 (cplus_language_defn): Likewise.
9089 (asm_language_defn): Likewise.
9090 (minimal_language_defn): Likewise.
9091 * d-lang.c (d_language_defn): Likewise.
9092 * f-lang.c (f_language_defn): Likewise.
9093 * go-lang.c (go_language_defn): Likewise.
9094 * language.c (unknown_language_defn): Likewise.
9095 (auto_language_defn): Likewise.
9096 * language.h (struct language_defn): Remove la_magic field.
9097 (LANG_MAGIC): Delete.
9098 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9099 * objc-lang.c (objc_language_defn): Likewise.
9100 * opencl-lang.c (opencl_language_defn): Likewise.
9101 * p-lang.c (pascal_language_defn): Likewise.
9102 * rust-lang.c (rust_language_defn): Likewise.
9103
9104 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9105
9106 * riscv-tdep.c (riscv_type_align): New function.
9107 (riscv_type_alignment): Delete.
9108 (riscv_arg_location): Use 'type_align'.
9109 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9110
9111 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9112
9113 * gdbtypes.c (type_align): A struct with no non-static fields also
9114 has alignment of 1.
9115
9116 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9117
9118 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9119 component to 0.
9120 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9121 member.
9122 (riscv_struct_info::analyse): New implementation using new
9123 analyse_inner member function.
9124 (riscv_struct_info::field_offset): New member function.
9125 (riscv_struct_info::m_offsets): New member variable.
9126 (riscv_struct_info::analyse_inner): New private member function,
9127 takes the old implementation of riscv_struct_info::analyse but
9128 extended to track field offsets.
9129 (riscv_call_arg_struct): Update the struct folding special cases
9130 to handle cases where empty C++ structs, which are non-zero
9131 length, are found.
9132 (riscv_arg_location): Initialise the length of each location, a
9133 non-zero length now indicates the location is in use.
9134 (riscv_push_dummy_call): Allow for the first location having a
9135 non-zero offset when setting up arguments.
9136 (riscv_return_value): Likewise, but for return values.
9137
9138 2019-04-11 Tom Tromey <tromey@adacore.com>
9139
9140 * utils.c (internal_vproblem): Make "msg" const.
9141
9142 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9143
9144 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9145 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9146 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9147 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9148
9149 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9150
9151 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9152 function.
9153 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9154 of amd64_collect_native_gregset.
9155 (amd64_linux_nat_target::store_registers): Likewise.
9156
9157 2019-04-10 Tom Tromey <tom@tromey.com>
9158
9159 * symtab.c (lookup_global_symbol_from_objfile)
9160 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9161 * objfiles.h (class separate_debug_iterator): New.
9162 (class separate_debug_range): New.
9163 (struct objfile) <separate_debug_objfiles>: New method.
9164 (objfile_separate_debug_iterate): Don't declare.
9165 * objfiles.c (separate_debug_iterator::operator++): Rename from
9166 objfile_separate_debug_iterate.
9167 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9168 iterator.
9169 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9170 iterator.
9171
9172 2019-04-10 Tom Tromey <tom@tromey.com>
9173
9174 * symfile.c (reread_symbols): Remove old comment.
9175 * objfiles.c (free_all_objfiles): Fix a typo.
9176
9177 2019-04-10 Tom Tromey <tom@tromey.com>
9178
9179 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9180 * minsyms.c (lookup_minimal_symbol): Use foreach.
9181 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9182 (lookup_minimal_symbol_solib_trampoline): Likewise.
9183 * symfile.c (reread_symbols): Use foreach.
9184
9185 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9186 Tom Tromey <tromey@adacore.com>
9187
9188 PR rust/24414:
9189 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9190 (rust_lex_int_test): Change "value" to be LONGEST.
9191 (rust_lex_tests): Add test for long integer literal.
9192
9193 2019-04-09 Tom Tromey <tromey@adacore.com>
9194
9195 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9196 to bool.
9197 (extended_remote_target::attach): Update.
9198 (remote_target::remote_notice_new_inferior): Update.
9199 (remote_target::add_current_inferior_and_thread): Update.
9200 * inferior.c (exit_inferior_1): Use "false".
9201 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9202
9203 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9204
9205 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9206 the "start" command.
9207
9208 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9209
9210 * python/py-inferior.c (infpy_thread_from_thread_handle):
9211 Adjust comments to reflect renaming of thread_from_thread_handle
9212 to thread_from_handle. Adjust keywords. Fix type error message.
9213 (inferior_object_methods): Add thread_from_handle. Retain
9214 thread_from_thread_handle, but mark it as deprecated.
9215
9216 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9217
9218 * gdbthread.h (find_thread_by_handle): Revise declaration.
9219 * thread.c (find_thread_by_handle): Likewise. Adjust
9220 implementation too.
9221 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9222 support for buffer objects as handles.
9223
9224 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9225
9226 * python/py-infthread.c (thpy_thread_handle): New function.
9227 (thread_object_methods): Register thpy_thread_handle.
9228
9229 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9230
9231 * gdbthread.h (thread_to_thread_handle): Declare.
9232 * thread.c (gdbtypes.h): Include.
9233 (thread_to_thread_handle): New function.
9234
9235 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9236 (target_thread_info_to_thread_handle): Declare.
9237 * target.c (target_thread_info_to_thread_handle): New function.
9238 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9239 * target-delegates.c: Regenerate.
9240
9241 * linux-thread-db.c (class thread_db_target): Add method
9242 thread_info_to_thread_handle.
9243 (thread_db_target::thread_info_to_thread_handle): Define.
9244 * remote.c (class remote_target): Add new method
9245 thread_info_to_thread_handle.
9246 (remote_target::thread_info_to_thread_handle): Define.
9247
9248 2019-04-08 Pedro Alves <palves@redhat.com>
9249
9250 * common/common-exceptions.c (throw_exception): Don't create
9251 named object to throw; throw directly.
9252 (throw_it): Likewise. Don't initialize gdb_exception::message
9253 here, with new; pass FMT and AP to the ctor instead.
9254 * common/common-exceptions.h: Include <string>.
9255 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9256 const char *, va_list)): New ctor. Use std::make_shared.
9257 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9258 errors)): Delete.
9259 (gdb_exception_error::gdb_exception_error(enum errors, const char
9260 *, va_list)): New.
9261 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9262 Add assertion.
9263 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9264 errors)): Delete.
9265 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9266 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9267 Add assertion.
9268
9269 2019-04-08 Tom Tromey <tom@tromey.com>
9270
9271 * valops.c (value_rtti_indirect_type): Replace throw_exception
9272 with throw.
9273 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9274 with throw.
9275 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9276 throw.
9277 * target.c (target_translate_tls_address): Replace throw_exception
9278 with throw.
9279 * stack.c (frame_apply_command_count): Replace throw_exception
9280 with throw.
9281 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9282 throw.
9283 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9284 with throw.
9285 * rs6000-tdep.c (rs6000_frame_cache)
9286 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9287 * remote.c: Replace throw_exception with throw.
9288 * record-full.c (record_full_message, record_full_wait_1)
9289 (record_full_restore): Replace throw_exception with throw.
9290 * record-btrace.c:
9291 (get_thread_current_frame_id, record_btrace_start_replaying)
9292 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9293 (cmd_record_btrace_start): Replace throw_exception with throw.
9294 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9295 throw.
9296 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9297 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9298 * linespec.c:
9299 (find_linespec_symbols): Replace throw_exception with throw.
9300 * infrun.c (displaced_step_prepare, resume): Replace
9301 throw_exception with throw.
9302 * infcmd.c (post_create_inferior): Replace throw_exception with
9303 throw.
9304 * inf-loop.c (inferior_event_handler): Replace throw_exception
9305 with throw.
9306 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9307 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9308 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9309 (get_prev_frame_always, get_frame_pc_if_available)
9310 (get_frame_address_in_block_if_available, get_frame_language):
9311 Replace throw_exception with throw.
9312 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9313 throw_exception with throw.
9314 * eval.c (fetch_subexp_value, evaluate_var_value)
9315 (evaluate_funcall, evaluate_subexp_standard): Replace
9316 throw_exception with throw.
9317 * dwarf2loc.c (call_site_find_chain)
9318 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9319 Replace throw_exception with throw.
9320 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9321 with throw.
9322 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9323 throw.
9324 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9325 * completer.c (complete_line_internal): Replace throw_exception
9326 with throw.
9327 * compile/compile-object-run.c (compile_object_run): Replace
9328 throw_exception with throw.
9329 * cli/cli-script.c (process_next_line): Replace throw_exception
9330 with throw.
9331 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9332 (btrace_enable, btrace_maint_update_pt_packets): Replace
9333 throw_exception with throw.
9334 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9335 throw_exception with throw.
9336 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9337 throw_exception with throw.
9338 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9339 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9340 * aarch64-tdep.c (aarch64_make_prologue_cache)
9341 (aarch64_make_stub_cache): Replace throw_exception with throw.
9342
9343 2019-04-08 Tom Tromey <tom@tromey.com>
9344
9345 * common/common-exceptions.c (throw_exception): Rename from
9346 throw_exception_cxx. Remove old copy. Make argument const.
9347 (throw_it): Create and throw exception objects directly.
9348 * common/common-exceptions.h (throw_exception): Make argument
9349 const.
9350 (struct gdb_exception_error): Add constructor.
9351 (struct gdb_exception_quit): Add constructor.
9352
9353 2019-04-08 Tom Tromey <tom@tromey.com>
9354
9355 * common/common-exceptions.h (exception_rethrow): Don't declare.
9356 (TRY_SJLJ): Update comment.
9357 (TRY, CATCH, END_CATCH): Remove.
9358 * common/common-exceptions.c (exception_rethrow): Remove.
9359
9360 2019-04-08 Tom Tromey <tom@tromey.com>
9361
9362 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9363 Remove.
9364 (gdb_exception_error): Rename from
9365 gdb_exception_RETURN_MASK_ERROR.
9366 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9367 (gdb_quit_bad_alloc): Update.
9368 * aarch64-tdep.c: Update.
9369 * ada-lang.c: Update.
9370 * ada-typeprint.c: Update.
9371 * ada-valprint.c: Update.
9372 * amd64-tdep.c: Update.
9373 * arch-utils.c: Update.
9374 * break-catch-throw.c: Update.
9375 * breakpoint.c: Update.
9376 * btrace.c: Update.
9377 * c-varobj.c: Update.
9378 * cli/cli-cmds.c: Update.
9379 * cli/cli-interp.c: Update.
9380 * cli/cli-script.c: Update.
9381 * common/common-exceptions.c: Update.
9382 * common/new-op.c: Update.
9383 * common/selftest.c: Update.
9384 * compile/compile-c-symbols.c: Update.
9385 * compile/compile-cplus-symbols.c: Update.
9386 * compile/compile-object-load.c: Update.
9387 * compile/compile-object-run.c: Update.
9388 * completer.c: Update.
9389 * corelow.c: Update.
9390 * cp-abi.c: Update.
9391 * cp-support.c: Update.
9392 * cp-valprint.c: Update.
9393 * darwin-nat.c: Update.
9394 * disasm-selftests.c: Update.
9395 * dtrace-probe.c: Update.
9396 * dwarf-index-cache.c: Update.
9397 * dwarf-index-write.c: Update.
9398 * dwarf2-frame-tailcall.c: Update.
9399 * dwarf2-frame.c: Update.
9400 * dwarf2loc.c: Update.
9401 * dwarf2read.c: Update.
9402 * eval.c: Update.
9403 * event-loop.c: Update.
9404 * event-top.c: Update.
9405 * exec.c: Update.
9406 * f-valprint.c: Update.
9407 * fbsd-tdep.c: Update.
9408 * frame-unwind.c: Update.
9409 * frame.c: Update.
9410 * gdbtypes.c: Update.
9411 * gnu-v3-abi.c: Update.
9412 * guile/guile-internal.h: Update.
9413 * guile/scm-block.c: Update.
9414 * guile/scm-breakpoint.c: Update.
9415 * guile/scm-cmd.c: Update.
9416 * guile/scm-disasm.c: Update.
9417 * guile/scm-frame.c: Update.
9418 * guile/scm-lazy-string.c: Update.
9419 * guile/scm-math.c: Update.
9420 * guile/scm-param.c: Update.
9421 * guile/scm-ports.c: Update.
9422 * guile/scm-pretty-print.c: Update.
9423 * guile/scm-symbol.c: Update.
9424 * guile/scm-symtab.c: Update.
9425 * guile/scm-type.c: Update.
9426 * guile/scm-value.c: Update.
9427 * i386-linux-tdep.c: Update.
9428 * i386-tdep.c: Update.
9429 * inf-loop.c: Update.
9430 * infcall.c: Update.
9431 * infcmd.c: Update.
9432 * infrun.c: Update.
9433 * jit.c: Update.
9434 * language.c: Update.
9435 * linespec.c: Update.
9436 * linux-fork.c: Update.
9437 * linux-nat.c: Update.
9438 * linux-tdep.c: Update.
9439 * linux-thread-db.c: Update.
9440 * main.c: Update.
9441 * mi/mi-cmd-break.c: Update.
9442 * mi/mi-cmd-stack.c: Update.
9443 * mi/mi-interp.c: Update.
9444 * mi/mi-main.c: Update.
9445 * objc-lang.c: Update.
9446 * p-valprint.c: Update.
9447 * parse.c: Update.
9448 * ppc-linux-tdep.c: Update.
9449 * printcmd.c: Update.
9450 * python/py-arch.c: Update.
9451 * python/py-breakpoint.c: Update.
9452 * python/py-cmd.c: Update.
9453 * python/py-finishbreakpoint.c: Update.
9454 * python/py-frame.c: Update.
9455 * python/py-framefilter.c: Update.
9456 * python/py-gdb-readline.c: Update.
9457 * python/py-inferior.c: Update.
9458 * python/py-infthread.c: Update.
9459 * python/py-lazy-string.c: Update.
9460 * python/py-linetable.c: Update.
9461 * python/py-objfile.c: Update.
9462 * python/py-param.c: Update.
9463 * python/py-prettyprint.c: Update.
9464 * python/py-progspace.c: Update.
9465 * python/py-record-btrace.c: Update.
9466 * python/py-record.c: Update.
9467 * python/py-symbol.c: Update.
9468 * python/py-type.c: Update.
9469 * python/py-unwind.c: Update.
9470 * python/py-utils.c: Update.
9471 * python/py-value.c: Update.
9472 * python/python.c: Update.
9473 * record-btrace.c: Update.
9474 * record-full.c: Update.
9475 * remote-fileio.c: Update.
9476 * remote.c: Update.
9477 * riscv-tdep.c: Update.
9478 * rs6000-aix-tdep.c: Update.
9479 * rs6000-tdep.c: Update.
9480 * rust-exp.y: Update.
9481 * rust-lang.c: Update.
9482 * s390-tdep.c: Update.
9483 * selftest-arch.c: Update.
9484 * solib-dsbt.c: Update.
9485 * solib-frv.c: Update.
9486 * solib-spu.c: Update.
9487 * solib-svr4.c: Update.
9488 * solib.c: Update.
9489 * sparc64-linux-tdep.c: Update.
9490 * stack.c: Update.
9491 * symfile-mem.c: Update.
9492 * symmisc.c: Update.
9493 * target.c: Update.
9494 * thread.c: Update.
9495 * top.c: Update.
9496 * tracefile-tfile.c: Update.
9497 * tui/tui.c: Update.
9498 * typeprint.c: Update.
9499 * unittests/cli-utils-selftests.c: Update.
9500 * unittests/parse-connection-spec-selftests.c: Update.
9501 * valops.c: Update.
9502 * valprint.c: Update.
9503 * value.c: Update.
9504 * varobj.c: Update.
9505 * windows-nat.c: Update.
9506 * x86-linux-nat.c: Update.
9507 * xml-support.c: Update.
9508
9509 2019-04-08 Tom Tromey <tom@tromey.com>
9510
9511 * xml-support.c: Use C++ exception handling.
9512 * x86-linux-nat.c: Use C++ exception handling.
9513 * windows-nat.c: Use C++ exception handling.
9514 * varobj.c: Use C++ exception handling.
9515 * value.c: Use C++ exception handling.
9516 * valprint.c: Use C++ exception handling.
9517 * valops.c: Use C++ exception handling.
9518 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9519 handling.
9520 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9521 * typeprint.c: Use C++ exception handling.
9522 * tui/tui.c: Use C++ exception handling.
9523 * tracefile-tfile.c: Use C++ exception handling.
9524 * top.c: Use C++ exception handling.
9525 * thread.c: Use C++ exception handling.
9526 * target.c: Use C++ exception handling.
9527 * symmisc.c: Use C++ exception handling.
9528 * symfile-mem.c: Use C++ exception handling.
9529 * stack.c: Use C++ exception handling.
9530 * sparc64-linux-tdep.c: Use C++ exception handling.
9531 * solib.c: Use C++ exception handling.
9532 * solib-svr4.c: Use C++ exception handling.
9533 * solib-spu.c: Use C++ exception handling.
9534 * solib-frv.c: Use C++ exception handling.
9535 * solib-dsbt.c: Use C++ exception handling.
9536 * selftest-arch.c: Use C++ exception handling.
9537 * s390-tdep.c: Use C++ exception handling.
9538 * rust-lang.c: Use C++ exception handling.
9539 * rust-exp.y: Use C++ exception handling.
9540 * rs6000-tdep.c: Use C++ exception handling.
9541 * rs6000-aix-tdep.c: Use C++ exception handling.
9542 * riscv-tdep.c: Use C++ exception handling.
9543 * remote.c: Use C++ exception handling.
9544 * remote-fileio.c: Use C++ exception handling.
9545 * record-full.c: Use C++ exception handling.
9546 * record-btrace.c: Use C++ exception handling.
9547 * python/python.c: Use C++ exception handling.
9548 * python/py-value.c: Use C++ exception handling.
9549 * python/py-utils.c: Use C++ exception handling.
9550 * python/py-unwind.c: Use C++ exception handling.
9551 * python/py-type.c: Use C++ exception handling.
9552 * python/py-symbol.c: Use C++ exception handling.
9553 * python/py-record.c: Use C++ exception handling.
9554 * python/py-record-btrace.c: Use C++ exception handling.
9555 * python/py-progspace.c: Use C++ exception handling.
9556 * python/py-prettyprint.c: Use C++ exception handling.
9557 * python/py-param.c: Use C++ exception handling.
9558 * python/py-objfile.c: Use C++ exception handling.
9559 * python/py-linetable.c: Use C++ exception handling.
9560 * python/py-lazy-string.c: Use C++ exception handling.
9561 * python/py-infthread.c: Use C++ exception handling.
9562 * python/py-inferior.c: Use C++ exception handling.
9563 * python/py-gdb-readline.c: Use C++ exception handling.
9564 * python/py-framefilter.c: Use C++ exception handling.
9565 * python/py-frame.c: Use C++ exception handling.
9566 * python/py-finishbreakpoint.c: Use C++ exception handling.
9567 * python/py-cmd.c: Use C++ exception handling.
9568 * python/py-breakpoint.c: Use C++ exception handling.
9569 * python/py-arch.c: Use C++ exception handling.
9570 * printcmd.c: Use C++ exception handling.
9571 * ppc-linux-tdep.c: Use C++ exception handling.
9572 * parse.c: Use C++ exception handling.
9573 * p-valprint.c: Use C++ exception handling.
9574 * objc-lang.c: Use C++ exception handling.
9575 * mi/mi-main.c: Use C++ exception handling.
9576 * mi/mi-interp.c: Use C++ exception handling.
9577 * mi/mi-cmd-stack.c: Use C++ exception handling.
9578 * mi/mi-cmd-break.c: Use C++ exception handling.
9579 * main.c: Use C++ exception handling.
9580 * linux-thread-db.c: Use C++ exception handling.
9581 * linux-tdep.c: Use C++ exception handling.
9582 * linux-nat.c: Use C++ exception handling.
9583 * linux-fork.c: Use C++ exception handling.
9584 * linespec.c: Use C++ exception handling.
9585 * language.c: Use C++ exception handling.
9586 * jit.c: Use C++ exception handling.
9587 * infrun.c: Use C++ exception handling.
9588 * infcmd.c: Use C++ exception handling.
9589 * infcall.c: Use C++ exception handling.
9590 * inf-loop.c: Use C++ exception handling.
9591 * i386-tdep.c: Use C++ exception handling.
9592 * i386-linux-tdep.c: Use C++ exception handling.
9593 * guile/scm-value.c: Use C++ exception handling.
9594 * guile/scm-type.c: Use C++ exception handling.
9595 * guile/scm-symtab.c: Use C++ exception handling.
9596 * guile/scm-symbol.c: Use C++ exception handling.
9597 * guile/scm-pretty-print.c: Use C++ exception handling.
9598 * guile/scm-ports.c: Use C++ exception handling.
9599 * guile/scm-param.c: Use C++ exception handling.
9600 * guile/scm-math.c: Use C++ exception handling.
9601 * guile/scm-lazy-string.c: Use C++ exception handling.
9602 * guile/scm-frame.c: Use C++ exception handling.
9603 * guile/scm-disasm.c: Use C++ exception handling.
9604 * guile/scm-cmd.c: Use C++ exception handling.
9605 * guile/scm-breakpoint.c: Use C++ exception handling.
9606 * guile/scm-block.c: Use C++ exception handling.
9607 * guile/guile-internal.h: Use C++ exception handling.
9608 * gnu-v3-abi.c: Use C++ exception handling.
9609 * gdbtypes.c: Use C++ exception handling.
9610 * frame.c: Use C++ exception handling.
9611 * frame-unwind.c: Use C++ exception handling.
9612 * fbsd-tdep.c: Use C++ exception handling.
9613 * f-valprint.c: Use C++ exception handling.
9614 * exec.c: Use C++ exception handling.
9615 * event-top.c: Use C++ exception handling.
9616 * event-loop.c: Use C++ exception handling.
9617 * eval.c: Use C++ exception handling.
9618 * dwarf2read.c: Use C++ exception handling.
9619 * dwarf2loc.c: Use C++ exception handling.
9620 * dwarf2-frame.c: Use C++ exception handling.
9621 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9622 * dwarf-index-write.c: Use C++ exception handling.
9623 * dwarf-index-cache.c: Use C++ exception handling.
9624 * dtrace-probe.c: Use C++ exception handling.
9625 * disasm-selftests.c: Use C++ exception handling.
9626 * darwin-nat.c: Use C++ exception handling.
9627 * cp-valprint.c: Use C++ exception handling.
9628 * cp-support.c: Use C++ exception handling.
9629 * cp-abi.c: Use C++ exception handling.
9630 * corelow.c: Use C++ exception handling.
9631 * completer.c: Use C++ exception handling.
9632 * compile/compile-object-run.c: Use C++ exception handling.
9633 * compile/compile-object-load.c: Use C++ exception handling.
9634 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9635 * compile/compile-c-symbols.c: Use C++ exception handling.
9636 * common/selftest.c: Use C++ exception handling.
9637 * common/new-op.c: Use C++ exception handling.
9638 * cli/cli-script.c: Use C++ exception handling.
9639 * cli/cli-interp.c: Use C++ exception handling.
9640 * cli/cli-cmds.c: Use C++ exception handling.
9641 * c-varobj.c: Use C++ exception handling.
9642 * btrace.c: Use C++ exception handling.
9643 * breakpoint.c: Use C++ exception handling.
9644 * break-catch-throw.c: Use C++ exception handling.
9645 * arch-utils.c: Use C++ exception handling.
9646 * amd64-tdep.c: Use C++ exception handling.
9647 * ada-valprint.c: Use C++ exception handling.
9648 * ada-typeprint.c: Use C++ exception handling.
9649 * ada-lang.c: Use C++ exception handling.
9650 * aarch64-tdep.c: Use C++ exception handling.
9651
9652 2019-04-08 Tom Tromey <tom@tromey.com>
9653
9654 * xml-support.c (gdb_xml_parser::parse): Update.
9655 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9656 * value.c (show_convenience): Update.
9657 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9658 (test_parse_flags_qcs): Update.
9659 * thread.c (thr_try_catch_cmd): Update.
9660 * target.c (target_translate_tls_address): Update.
9661 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9662 (info_frame_command_core, frame_apply_command_count): Update.
9663 * rust-exp.y (rust_lex_exception_test): Update.
9664 * riscv-tdep.c (riscv_print_one_register_info): Update.
9665 * remote.c (remote_target::enable_btrace): Update.
9666 * record-btrace.c (record_btrace_enable_warn): Update.
9667 * python/py-utils.c (gdbpy_convert_exception): Update.
9668 * printcmd.c (do_one_display, print_variable_and_value): Update.
9669 * mi/mi-main.c (mi_print_exception): Update.
9670 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9671 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9672 * linux-nat.c (linux_nat_target::attach): Update.
9673 * linux-fork.c (class scoped_switch_fork_info): Update.
9674 * infrun.c (displaced_step_prepare): Update.
9675 * infcall.c (call_function_by_hand_dummy): Update.
9676 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9677 * gnu-v3-abi.c (print_one_vtable): Update.
9678 * frame.c (get_prev_frame_always): Update.
9679 * f-valprint.c (info_common_command_for_block): Update.
9680 * exec.c (try_open_exec_file): Update.
9681 * exceptions.c (print_exception, exception_print)
9682 (exception_fprintf, exception_print_same): Update.
9683 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9684 * dwarf-index-cache.c (index_cache::store)
9685 (index_cache::lookup_gdb_index): Update.
9686 * darwin-nat.c (maybe_cache_shell): Update.
9687 * cp-valprint.c (cp_print_value_fields): Update.
9688 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9689 (gcc_cplus_symbol_address): Update.
9690 * compile/compile-c-symbols.c (gcc_convert_symbol)
9691 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9692 * common/selftest.c: Update.
9693 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9694 a std::string.
9695 (exception_try_scope_entry, exception_try_scope_exit): Don't
9696 declare.
9697 (struct exception_try_scope): Remove.
9698 (TRY): Don't use exception_try_scope.
9699 (struct gdb_exception): Add constructor, operator=.
9700 <what>: New method.
9701 (struct gdb_exception_RETURN_MASK_ALL)
9702 (struct gdb_exception_RETURN_MASK_ERROR)
9703 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9704 (struct gdb_quit_bad_alloc): Update.
9705 * common/common-exceptions.c (exception_none): Change
9706 initializer.
9707 (struct catcher) <state, exception>: Initialize inline.
9708 <prev>: Remove member.
9709 (current_catcher): Remove.
9710 (catchers): New global.
9711 (exceptions_state_mc_init): Simplify.
9712 (catcher_pop): Remove.
9713 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9714 (try_scope_depth, exception_try_scope_entry)
9715 (exception_try_scope_exit): Remove.
9716 (throw_exception_sjlj): Update.
9717 (exception_messages, exception_messages_size): Remove.
9718 (throw_it): Simplify.
9719 (gdb_exception_sliced_copy): Remove.
9720 (throw_exception_cxx): Update.
9721 * cli/cli-script.c (script_from_file): Update.
9722 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9723 Update.
9724 * ada-valprint.c (ada_val_print): Update.
9725 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9726 (create_excep_cond_exprs): Update.
9727
9728 2019-04-08 Tom Tromey <tom@tromey.com>
9729
9730 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9731 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9732 (TRY, CATCH, END_CATCH): Remove some definitions.
9733 * common/common-exceptions.c: Don't use GDB_XCPT.
9734 (catcher_list_size): Remove.
9735 (throw_exception, throw_it): Simplify.
9736
9737 2019-04-05 Tom Tromey <tom@tromey.com>
9738
9739 Revert the header-sorting patch.
9740 * ft32-tdep.c: Revert.
9741 * frv-tdep.c: Revert.
9742 * frv-linux-tdep.c: Revert.
9743 * frame.c: Revert.
9744 * frame-unwind.c: Revert.
9745 * frame-base.c: Revert.
9746 * fork-child.c: Revert.
9747 * findvar.c: Revert.
9748 * findcmd.c: Revert.
9749 * filesystem.c: Revert.
9750 * filename-seen-cache.h: Revert.
9751 * filename-seen-cache.c: Revert.
9752 * fbsd-tdep.c: Revert.
9753 * fbsd-nat.h: Revert.
9754 * fbsd-nat.c: Revert.
9755 * f-valprint.c: Revert.
9756 * f-typeprint.c: Revert.
9757 * f-lang.c: Revert.
9758 * extension.h: Revert.
9759 * extension.c: Revert.
9760 * extension-priv.h: Revert.
9761 * expprint.c: Revert.
9762 * exec.h: Revert.
9763 * exec.c: Revert.
9764 * exceptions.c: Revert.
9765 * event-top.c: Revert.
9766 * event-loop.c: Revert.
9767 * eval.c: Revert.
9768 * elfread.c: Revert.
9769 * dwarf2read.h: Revert.
9770 * dwarf2read.c: Revert.
9771 * dwarf2loc.c: Revert.
9772 * dwarf2expr.h: Revert.
9773 * dwarf2expr.c: Revert.
9774 * dwarf2-frame.c: Revert.
9775 * dwarf2-frame-tailcall.c: Revert.
9776 * dwarf-index-write.h: Revert.
9777 * dwarf-index-write.c: Revert.
9778 * dwarf-index-common.c: Revert.
9779 * dwarf-index-cache.h: Revert.
9780 * dwarf-index-cache.c: Revert.
9781 * dummy-frame.c: Revert.
9782 * dtrace-probe.c: Revert.
9783 * disasm.h: Revert.
9784 * disasm.c: Revert.
9785 * disasm-selftests.c: Revert.
9786 * dictionary.c: Revert.
9787 * dicos-tdep.c: Revert.
9788 * demangle.c: Revert.
9789 * dcache.h: Revert.
9790 * dcache.c: Revert.
9791 * darwin-nat.h: Revert.
9792 * darwin-nat.c: Revert.
9793 * darwin-nat-info.c: Revert.
9794 * d-valprint.c: Revert.
9795 * d-namespace.c: Revert.
9796 * d-lang.c: Revert.
9797 * ctf.c: Revert.
9798 * csky-tdep.c: Revert.
9799 * csky-linux-tdep.c: Revert.
9800 * cris-tdep.c: Revert.
9801 * cris-linux-tdep.c: Revert.
9802 * cp-valprint.c: Revert.
9803 * cp-support.c: Revert.
9804 * cp-namespace.c: Revert.
9805 * cp-abi.c: Revert.
9806 * corelow.c: Revert.
9807 * corefile.c: Revert.
9808 * continuations.c: Revert.
9809 * completer.h: Revert.
9810 * completer.c: Revert.
9811 * complaints.c: Revert.
9812 * coffread.c: Revert.
9813 * coff-pe-read.c: Revert.
9814 * cli-out.h: Revert.
9815 * cli-out.c: Revert.
9816 * charset.c: Revert.
9817 * c-varobj.c: Revert.
9818 * c-valprint.c: Revert.
9819 * c-typeprint.c: Revert.
9820 * c-lang.c: Revert.
9821 * buildsym.c: Revert.
9822 * buildsym-legacy.c: Revert.
9823 * build-id.h: Revert.
9824 * build-id.c: Revert.
9825 * btrace.c: Revert.
9826 * bsd-uthread.c: Revert.
9827 * breakpoint.h: Revert.
9828 * breakpoint.c: Revert.
9829 * break-catch-throw.c: Revert.
9830 * break-catch-syscall.c: Revert.
9831 * break-catch-sig.c: Revert.
9832 * blockframe.c: Revert.
9833 * block.c: Revert.
9834 * bfin-tdep.c: Revert.
9835 * bfin-linux-tdep.c: Revert.
9836 * bfd-target.c: Revert.
9837 * bcache.c: Revert.
9838 * ax-general.c: Revert.
9839 * ax-gdb.h: Revert.
9840 * ax-gdb.c: Revert.
9841 * avr-tdep.c: Revert.
9842 * auxv.c: Revert.
9843 * auto-load.c: Revert.
9844 * arm-wince-tdep.c: Revert.
9845 * arm-tdep.c: Revert.
9846 * arm-symbian-tdep.c: Revert.
9847 * arm-pikeos-tdep.c: Revert.
9848 * arm-obsd-tdep.c: Revert.
9849 * arm-nbsd-tdep.c: Revert.
9850 * arm-nbsd-nat.c: Revert.
9851 * arm-linux-tdep.c: Revert.
9852 * arm-linux-nat.c: Revert.
9853 * arm-fbsd-tdep.c: Revert.
9854 * arm-fbsd-nat.c: Revert.
9855 * arm-bsd-tdep.c: Revert.
9856 * arch-utils.c: Revert.
9857 * arc-tdep.c: Revert.
9858 * arc-newlib-tdep.c: Revert.
9859 * annotate.h: Revert.
9860 * annotate.c: Revert.
9861 * amd64-windows-tdep.c: Revert.
9862 * amd64-windows-nat.c: Revert.
9863 * amd64-tdep.c: Revert.
9864 * amd64-sol2-tdep.c: Revert.
9865 * amd64-obsd-tdep.c: Revert.
9866 * amd64-obsd-nat.c: Revert.
9867 * amd64-nbsd-tdep.c: Revert.
9868 * amd64-nbsd-nat.c: Revert.
9869 * amd64-nat.c: Revert.
9870 * amd64-linux-tdep.c: Revert.
9871 * amd64-linux-nat.c: Revert.
9872 * amd64-fbsd-tdep.c: Revert.
9873 * amd64-fbsd-nat.c: Revert.
9874 * amd64-dicos-tdep.c: Revert.
9875 * amd64-darwin-tdep.c: Revert.
9876 * amd64-bsd-nat.c: Revert.
9877 * alpha-tdep.c: Revert.
9878 * alpha-obsd-tdep.c: Revert.
9879 * alpha-nbsd-tdep.c: Revert.
9880 * alpha-mdebug-tdep.c: Revert.
9881 * alpha-linux-tdep.c: Revert.
9882 * alpha-linux-nat.c: Revert.
9883 * alpha-bsd-tdep.c: Revert.
9884 * alpha-bsd-nat.c: Revert.
9885 * aix-thread.c: Revert.
9886 * agent.c: Revert.
9887 * addrmap.c: Revert.
9888 * ada-varobj.c: Revert.
9889 * ada-valprint.c: Revert.
9890 * ada-typeprint.c: Revert.
9891 * ada-tasks.c: Revert.
9892 * ada-lang.c: Revert.
9893 * aarch64-tdep.c: Revert.
9894 * aarch64-ravenscar-thread.c: Revert.
9895 * aarch64-newlib-tdep.c: Revert.
9896 * aarch64-linux-tdep.c: Revert.
9897 * aarch64-linux-nat.c: Revert.
9898 * aarch64-fbsd-tdep.c: Revert.
9899 * aarch64-fbsd-nat.c: Revert.
9900 * aarch32-linux-nat.c: Revert.
9901
9902 2019-04-05 Tom Tromey <tom@tromey.com>
9903
9904 * ft32-tdep.c: Sort headers.
9905 * frv-tdep.c: Sort headers.
9906 * frv-linux-tdep.c: Sort headers.
9907 * frame.c: Sort headers.
9908 * frame-unwind.c: Sort headers.
9909 * frame-base.c: Sort headers.
9910 * fork-child.c: Sort headers.
9911 * findvar.c: Sort headers.
9912 * findcmd.c: Sort headers.
9913 * filesystem.c: Sort headers.
9914 * filename-seen-cache.h: Sort headers.
9915 * filename-seen-cache.c: Sort headers.
9916 * fbsd-tdep.c: Sort headers.
9917 * fbsd-nat.h: Sort headers.
9918 * fbsd-nat.c: Sort headers.
9919 * f-valprint.c: Sort headers.
9920 * f-typeprint.c: Sort headers.
9921 * f-lang.c: Sort headers.
9922 * extension.h: Sort headers.
9923 * extension.c: Sort headers.
9924 * extension-priv.h: Sort headers.
9925 * expprint.c: Sort headers.
9926 * exec.h: Sort headers.
9927 * exec.c: Sort headers.
9928 * exceptions.c: Sort headers.
9929 * event-top.c: Sort headers.
9930 * event-loop.c: Sort headers.
9931 * eval.c: Sort headers.
9932 * elfread.c: Sort headers.
9933 * dwarf2read.h: Sort headers.
9934 * dwarf2read.c: Sort headers.
9935 * dwarf2loc.c: Sort headers.
9936 * dwarf2expr.h: Sort headers.
9937 * dwarf2expr.c: Sort headers.
9938 * dwarf2-frame.c: Sort headers.
9939 * dwarf2-frame-tailcall.c: Sort headers.
9940 * dwarf-index-write.h: Sort headers.
9941 * dwarf-index-write.c: Sort headers.
9942 * dwarf-index-common.c: Sort headers.
9943 * dwarf-index-cache.h: Sort headers.
9944 * dwarf-index-cache.c: Sort headers.
9945 * dummy-frame.c: Sort headers.
9946 * dtrace-probe.c: Sort headers.
9947 * disasm.h: Sort headers.
9948 * disasm.c: Sort headers.
9949 * disasm-selftests.c: Sort headers.
9950 * dictionary.c: Sort headers.
9951 * dicos-tdep.c: Sort headers.
9952 * demangle.c: Sort headers.
9953 * dcache.h: Sort headers.
9954 * dcache.c: Sort headers.
9955 * darwin-nat.h: Sort headers.
9956 * darwin-nat.c: Sort headers.
9957 * darwin-nat-info.c: Sort headers.
9958 * d-valprint.c: Sort headers.
9959 * d-namespace.c: Sort headers.
9960 * d-lang.c: Sort headers.
9961 * ctf.c: Sort headers.
9962 * csky-tdep.c: Sort headers.
9963 * csky-linux-tdep.c: Sort headers.
9964 * cris-tdep.c: Sort headers.
9965 * cris-linux-tdep.c: Sort headers.
9966 * cp-valprint.c: Sort headers.
9967 * cp-support.c: Sort headers.
9968 * cp-namespace.c: Sort headers.
9969 * cp-abi.c: Sort headers.
9970 * corelow.c: Sort headers.
9971 * corefile.c: Sort headers.
9972 * continuations.c: Sort headers.
9973 * completer.h: Sort headers.
9974 * completer.c: Sort headers.
9975 * complaints.c: Sort headers.
9976 * coffread.c: Sort headers.
9977 * coff-pe-read.c: Sort headers.
9978 * cli-out.h: Sort headers.
9979 * cli-out.c: Sort headers.
9980 * charset.c: Sort headers.
9981 * c-varobj.c: Sort headers.
9982 * c-valprint.c: Sort headers.
9983 * c-typeprint.c: Sort headers.
9984 * c-lang.c: Sort headers.
9985 * buildsym.c: Sort headers.
9986 * buildsym-legacy.c: Sort headers.
9987 * build-id.h: Sort headers.
9988 * build-id.c: Sort headers.
9989 * btrace.c: Sort headers.
9990 * bsd-uthread.c: Sort headers.
9991 * breakpoint.h: Sort headers.
9992 * breakpoint.c: Sort headers.
9993 * break-catch-throw.c: Sort headers.
9994 * break-catch-syscall.c: Sort headers.
9995 * break-catch-sig.c: Sort headers.
9996 * blockframe.c: Sort headers.
9997 * block.c: Sort headers.
9998 * bfin-tdep.c: Sort headers.
9999 * bfin-linux-tdep.c: Sort headers.
10000 * bfd-target.c: Sort headers.
10001 * bcache.c: Sort headers.
10002 * ax-general.c: Sort headers.
10003 * ax-gdb.h: Sort headers.
10004 * ax-gdb.c: Sort headers.
10005 * avr-tdep.c: Sort headers.
10006 * auxv.c: Sort headers.
10007 * auto-load.c: Sort headers.
10008 * arm-wince-tdep.c: Sort headers.
10009 * arm-tdep.c: Sort headers.
10010 * arm-symbian-tdep.c: Sort headers.
10011 * arm-pikeos-tdep.c: Sort headers.
10012 * arm-obsd-tdep.c: Sort headers.
10013 * arm-nbsd-tdep.c: Sort headers.
10014 * arm-nbsd-nat.c: Sort headers.
10015 * arm-linux-tdep.c: Sort headers.
10016 * arm-linux-nat.c: Sort headers.
10017 * arm-fbsd-tdep.c: Sort headers.
10018 * arm-fbsd-nat.c: Sort headers.
10019 * arm-bsd-tdep.c: Sort headers.
10020 * arch-utils.c: Sort headers.
10021 * arc-tdep.c: Sort headers.
10022 * arc-newlib-tdep.c: Sort headers.
10023 * annotate.h: Sort headers.
10024 * annotate.c: Sort headers.
10025 * amd64-windows-tdep.c: Sort headers.
10026 * amd64-windows-nat.c: Sort headers.
10027 * amd64-tdep.c: Sort headers.
10028 * amd64-sol2-tdep.c: Sort headers.
10029 * amd64-obsd-tdep.c: Sort headers.
10030 * amd64-obsd-nat.c: Sort headers.
10031 * amd64-nbsd-tdep.c: Sort headers.
10032 * amd64-nbsd-nat.c: Sort headers.
10033 * amd64-nat.c: Sort headers.
10034 * amd64-linux-tdep.c: Sort headers.
10035 * amd64-linux-nat.c: Sort headers.
10036 * amd64-fbsd-tdep.c: Sort headers.
10037 * amd64-fbsd-nat.c: Sort headers.
10038 * amd64-dicos-tdep.c: Sort headers.
10039 * amd64-darwin-tdep.c: Sort headers.
10040 * amd64-bsd-nat.c: Sort headers.
10041 * alpha-tdep.c: Sort headers.
10042 * alpha-obsd-tdep.c: Sort headers.
10043 * alpha-nbsd-tdep.c: Sort headers.
10044 * alpha-mdebug-tdep.c: Sort headers.
10045 * alpha-linux-tdep.c: Sort headers.
10046 * alpha-linux-nat.c: Sort headers.
10047 * alpha-bsd-tdep.c: Sort headers.
10048 * alpha-bsd-nat.c: Sort headers.
10049 * aix-thread.c: Sort headers.
10050 * agent.c: Sort headers.
10051 * addrmap.c: Sort headers.
10052 * ada-varobj.c: Sort headers.
10053 * ada-valprint.c: Sort headers.
10054 * ada-typeprint.c: Sort headers.
10055 * ada-tasks.c: Sort headers.
10056 * ada-lang.c: Sort headers.
10057 * aarch64-tdep.c: Sort headers.
10058 * aarch64-ravenscar-thread.c: Sort headers.
10059 * aarch64-newlib-tdep.c: Sort headers.
10060 * aarch64-linux-tdep.c: Sort headers.
10061 * aarch64-linux-nat.c: Sort headers.
10062 * aarch64-fbsd-tdep.c: Sort headers.
10063 * aarch64-fbsd-nat.c: Sort headers.
10064 * aarch32-linux-nat.c: Sort headers.
10065
10066 2019-04-04 Tom Tromey <tom@tromey.com>
10067
10068 * varobj.c (varobj_create): Update.
10069 * rust-exp.y (struct rust_parser) <update_innermost_block,
10070 lookup_symbol>: New methods.
10071 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10072 Rename.
10073 (rust_parser::rust_lookup_type)
10074 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10075 * printcmd.c (display_command, do_one_display): Update.
10076 * parser-defs.h (struct parser_state) <parser_state>: Add
10077 "tracker" parameter.
10078 (block_tracker): New member.
10079 (class innermost_block_tracker) <innermost_block_tracker>: Add
10080 "types" parameter.
10081 <reset>: Remove method.
10082 (innermost_block): Don't declare.
10083 (null_post_parser): Update.
10084 * parse.c (innermost_block): Remove global.
10085 (write_dollar_variable): Update.
10086 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10087 Remove "tracker_types" parameter.
10088 (parse_expression): Add "tracker" parameter.
10089 (parse_expression_for_completion): Update.
10090 (null_post_parser): Add "tracker" parameter.
10091 * p-exp.y: Update rules.
10092 * m2-exp.y: Update rules.
10093 * language.h (struct language_defn) <la_post_parser>: Add
10094 "tracker" parameter.
10095 * go-exp.y: Update rules.
10096 * f-exp.y: Update rules.
10097 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10098 parameter.
10099 * d-exp.y: Update rules.
10100 * c-exp.y: Update rules.
10101 * breakpoint.c (set_breakpoint_condition): Create an
10102 innermost_block_tracker.
10103 (watch_command_1): Likewise.
10104 * ada-lang.c (resolve): Add "tracker" parameter.
10105 (resolve_subexp): Likewise.
10106 * ada-exp.y (write_var_from_sym): Update.
10107
10108 2019-04-04 Tom Tromey <tom@tromey.com>
10109
10110 * type-stack.h: New file.
10111 * type-stack.c: New file.
10112 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10113 type-stack.h.
10114 (insert_into_type_stack, insert_type, push_type, push_type_int)
10115 (insert_type_address_space, pop_type, pop_type_int)
10116 (pop_typelist, pop_type_stack, append_type_stack)
10117 (push_type_stack, get_type_stack, push_typelist)
10118 (follow_type_instance_flags, follow_types): Don't declare.
10119 * parse.c (type_stack): Remove global.
10120 (parse_exp_in_context): Update.
10121 (insert_into_type_stack, insert_type, push_type, push_type_int)
10122 (insert_type_address_space, pop_type, pop_type_int)
10123 (pop_typelist, pop_type_stack, append_type_stack)
10124 (push_type_stack, get_type_stack, push_typelist)
10125 (follow_type_instance_flags, follow_types): Remove (moved to
10126 type-stack.c).
10127 * f-exp.y (type_stack): New global.
10128 Update rules.
10129 (push_kind_type, f_parse): Update.
10130 * d-exp.y (type_stack): New global.
10131 Update rules.
10132 (d_parse): Update.
10133 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10134 Update rules.
10135 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10136 (HFILES_NO_SRCDIR): Add type-stack.h.
10137
10138 2019-04-04 Tom Tromey <tom@tromey.com>
10139
10140 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10141 (rust_parser::convert_ast_to_expression, rust_parse)
10142 (rust_lex_test_completion, rust_lex_tests): Update.
10143 * parser-defs.h (struct expr_completion_state): New.
10144 (struct parser_state) <parser_state>: Add completion parameter.
10145 <mark_struct_expression, mark_completion_tag>: New methods.
10146 <parse_completion, m_completion_state>: New members.
10147 (prefixify_expression, null_post_parser): Update.
10148 (mark_struct_expression, mark_completion_tag): Don't declare.
10149 * parse.c (parse_completion, expout_last_struct)
10150 (expout_tag_completion_type, expout_completion_name): Remove
10151 globals.
10152 (parser_state::mark_struct_expression)
10153 (parser_state::mark_completion_tag): Now methods.
10154 (prefixify_expression): Add last_struct parameter.
10155 (prefixify_subexp): Likewise.
10156 (parse_exp_1): Update.
10157 (parse_exp_in_context): Add cstate parameter. Update.
10158 (parse_expression_for_completion): Create an
10159 expr_completion_state.
10160 (null_post_parser): Add "completion" parameter.
10161 * p-exp.y: Update rules.
10162 (yylex): Update.
10163 * language.h (struct language_defn) <la_post_parser>: Add
10164 "completing" parameter.
10165 * go-exp.y: Update rules.
10166 (lex_one_token): Update.
10167 * expression.h (parse_completion): Don't declare.
10168 * d-exp.y: Update rules.
10169 (lex_one_token): Update rules.
10170 * c-exp.y: Update rules.
10171 (lex_one_token): Update.
10172 * ada-lang.c (resolve): Add "parse_completion" parameter.
10173 (resolve_subexp): Likewise.
10174 (ada_resolve_function): Likewise.
10175
10176 2019-04-04 Tom Tromey <tom@tromey.com>
10177
10178 * parser-defs.h (struct parser_state) <start_arglist,
10179 end_arglist>: New methods.
10180 <arglist_len, m_funcall_chain>: New members.
10181 (arglist_len, start_arglist, end_arglist): Don't declare.
10182 * parse.c (arglist_len, funcall_chain): Remove global.
10183 (start_arglist, end_arglist): Remove functions.
10184 (parse_exp_in_context): Update.
10185 * p-exp.y: Update rules.
10186 * m2-exp.y: Update rules.
10187 * go-exp.y: Update rules.
10188 * f-exp.y: Update rules.
10189 * d-exp.y: Update rules.
10190 * c-exp.y: Update rules.
10191
10192 2019-04-04 Tom Tromey <tom@tromey.com>
10193
10194 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10195 lex_operator, push_back>: New methods.
10196 Update all rules.
10197 (rust_parser::lex_hex, lex_escape): Rename and update.
10198 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10199 (rust_parser::lex_operator): Rename and update.
10200 (rust_parser::lex_number, rustyylex, rustyyerror)
10201 (rust_lex_test_init, rust_lex_test_sequence)
10202 (rust_lex_test_push_back, rust_lex_tests): Update.
10203 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10204 parameter.
10205 <lexptr, prev_lexptr>: New members.
10206 (lexptr, prev_lexptr): Don't declare.
10207 * parse.c (lexptr, prev_lexptr): Remove globals.
10208 (parse_exp_in_context): Update.
10209 * p-exp.y (yylex, yyerror): Update.
10210 * m2-exp.y (parse_number, yylex, yyerror): Update.
10211 * go-exp.y (lex_one_token, yyerror): Update.
10212 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10213 * d-exp.y (lex_one_token, yyerror): Update.
10214 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10215 (lex_one_token, yyerror): Update.
10216 * ada-lex.l (YY_INPUT): Update.
10217 (rewind_to_char): Update.
10218 * ada-exp.y (yyerror): Update.
10219
10220 2019-04-04 Tom Tromey <tom@tromey.com>
10221
10222 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10223 * parser-defs.h (struct parser_state) <parser_state>: Add new
10224 parameter.
10225 <comma_terminates>: New member.
10226 (comma_terminates): Don't declare global.
10227 * parse.c (comma_terminates): Remove global.
10228 (parse_exp_in_context): Update.
10229 * p-exp.y (yylex): Update.
10230 * m2-exp.y (yylex): Update.
10231 * go-exp.y (lex_one_token): Update.
10232 * f-exp.y (yylex): Update.
10233 * d-exp.y (lex_one_token): Update.
10234 * c-exp.y (lex_one_token): Update.
10235 * ada-lex.l: Update.
10236
10237 2019-04-04 Tom Tromey <tom@tromey.com>
10238
10239 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10240 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10241 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10242 * parser-defs.h (paren_depth): Don't declare.
10243 * parse.c (paren_depth): Remove global.
10244 (parse_exp_in_context): Update.
10245 * p-exp.y (paren_depth): New global.
10246 (pascal_parse): Initialize it.
10247 * m2-exp.y (paren_depth): New global.
10248 (m2_parse): Initialize it.
10249 * go-exp.y (paren_depth): New global.
10250 (go_parse): Initialize it.
10251 * f-exp.y (paren_depth): New global.
10252 (f_parse): Initialize it.
10253 * d-exp.y (paren_depth): New global.
10254 (d_parse): Initialize it.
10255 * c-exp.y (paren_depth): New global.
10256 (c_parse): Initialize it.
10257 * ada-lex.l (paren_depth): New global.
10258 (lexer_init): Initialize it.
10259
10260 2019-04-04 Tom Tromey <tom@tromey.com>
10261
10262 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10263 (rust_parser::convert_ast_to_type)
10264 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10265 * parser-defs.h (struct parser_state) <parser_state>: Add
10266 parameters. Initialize new members.
10267 <expression_context_block, expression_context_pc>: New members.
10268 * parse.c (expression_context_block, expression_context_pc):
10269 Remove globals.
10270 (parse_exp_in_context): Update.
10271 * p-exp.y: Update all rules.
10272 (yylex): Update.
10273 * m2-exp.y: Update all rules.
10274 (yylex): Update.
10275 * go-exp.y (yylex): Update.
10276 * f-exp.y (yylex): Update.
10277 * d-exp.y: Update all rules.
10278 (yylex): Update.
10279 * c-exp.y: Update all rules.
10280 (lex_one_token, classify_name, yylex, c_parse): Update.
10281 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10282
10283 2019-04-04 Tom Tromey <tom@tromey.com>
10284
10285 * gdbarch.h, gdbarch.c: Rebuild.
10286 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10287 * stap-probe.h:
10288 (struct stap_parse_info): Replace "parser_state" with
10289 "expr_builder".
10290 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10291 (parser_state): New class.
10292 * parse.c (expr_builder): Rename.
10293 (expr_builder::release): Rename.
10294 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10295 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10296 (write_exp_elt_longcst, write_exp_elt_floatcst)
10297 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10298 (write_exp_string_vector, write_exp_bitstring)
10299 (write_exp_msymbol, mark_struct_expression)
10300 (write_dollar_variable)
10301 (insert_type_address_space, increase_expout_size): Replace
10302 "parser_state" with "expr_builder".
10303 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10304 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10305 "parser_state" with "expr_builder".
10306
10307 2019-04-04 Tom Tromey <tom@tromey.com>
10308
10309 * rust-exp.y: Replace "parse_language" with method call.
10310 * p-exp.y:
10311 (yylex): Replace "parse_language" with method call.
10312 * m2-exp.y:
10313 (yylex): Replace "parse_language" with method call.
10314 * go-exp.y (classify_name): Replace "parse_language" with method
10315 call.
10316 * f-exp.y (yylex): Replace "parse_language" with method call.
10317 * d-exp.y (lex_one_token): Replace "parse_language" with method
10318 call.
10319 * c-exp.y:
10320 (lex_one_token, classify_name, yylex): Replace "parse_language"
10321 with method call.
10322 * ada-exp.y (find_primitive_type, type_char)
10323 (type_system_address): Replace "parse_language" with method call.
10324
10325 2019-04-04 Tom Tromey <tom@tromey.com>
10326
10327 * rust-exp.y: Replace "parse_gdbarch" with method call.
10328 * parse.c (write_dollar_variable, insert_type_address_space):
10329 Replace "parse_gdbarch" with method call.
10330 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10331 call.
10332 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10333 call.
10334 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10335 "parse_gdbarch" with method call.
10336 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10337 with method call.
10338 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10339 "parse_gdbarch" with method call.
10340 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10341 "parse_gdbarch" with method call.
10342 * c-exp.y (parse_type, parse_number, classify_name): Replace
10343 "parse_gdbarch" with method call.
10344 * ada-lex.l: Replace "parse_gdbarch" with method call.
10345 * ada-exp.y (parse_type, find_primitive_type, type_char)
10346 (type_system_address): Replace "parse_gdbarch" with method call.
10347
10348 2019-04-04 Tom Tromey <tom@tromey.com>
10349
10350 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10351 * stap-probe.c (stap_parse_argument): Update.
10352 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10353 initial_size parameter.
10354 * rust-exp.y (rust_lex_tests): Update.
10355 * parse.c (parser_state): Update.
10356 (parse_exp_in_context): Update.
10357 * parser-defs.h (struct parser_state) <parser_state>: Remove
10358 "initial_size" parameter.
10359
10360 2019-04-04 Tom Tromey <tom@tromey.com>
10361
10362 * parser-defs.h (increase_expout_size): Don't declare.
10363 * parse.c (increase_expout_size): Now static.
10364
10365 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10366
10367 * gnu-nat.c (gnu_nat_target::wait): Fix
10368 target_waitstatus_to_string call.
10369
10370 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10371
10372 * eval.c (evaluate_subexp_standard): Handle internal functions
10373 during Fortran function call handling.
10374
10375 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10376
10377 * NEWS: Mention new internal functions.
10378 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10379 (read_base_type): Use dwarf2_init_complex_target_type.
10380 * value.c (creal_internal_fn): New function.
10381 (cimag_internal_fn): New function.
10382 (_initialize_values): Register new internal functions.
10383
10384 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10385
10386 * infrun.c (stop_all_threads): If debug_infrun, always
10387 trace the wait status after wait_one, using
10388 target_waitstatus_to_string and target_pid_to_str.
10389 (handle_inferior_event): Replace various trace of
10390 wait status kind by a single trace.
10391 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10392 wait status kind image by target_waitstatus_to_string.
10393 * target/waitstatus.c (target_waitstatus_to_string): Fix
10394 obsolete comment.
10395
10396 2019-04-01 Tom Tromey <tromey@adacore.com>
10397
10398 PR symtab/23331:
10399 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10400
10401 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10402 Pedro Alves <palves@redhat.com>
10403
10404 * top.c (quit_force): Call 'finalize_values'.
10405 * value.c (finalize_values): New function.
10406 * value.h (finalize_values): Declare.
10407
10408 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10409
10410 * NEWS: Announce $_gdb_major and $_gdb_minor.
10411
10412 * top.c (init_gdb_version_vars): New function.
10413 (gdb_init): Call init_gdb_version_vars.
10414
10415 2019-03-29 Tom Tromey <tromey@adacore.com>
10416
10417 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10418 help text. Remove dead code.
10419
10420 2019-03-29 Keith Seitz <keiths@redhat.com>
10421
10422 From Siddhesh Poyarekar:
10423 * f-lang.h (f77_get_upperbound): Return LONGEST.
10424 (f77_get_lowerbound): Likewise.
10425 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10426 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10427 print them.
10428 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10429 plongest to format print it.
10430 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10431 (f77_get_upperbound): Likewise.
10432 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10433 LOWER_BOUND to LONGEST.
10434 (f77_create_arrayprint_offset_tbl): Likewise.
10435
10436 2019-03-29 Keith Seitz <keiths@redhat.com>
10437
10438 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10439 %s/pulongest for TYPE_LENGTH instead of %d in format
10440 strings.
10441 * ada-typerint.c (ada_print_type): Likewise.
10442 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10443 * compile/compile-c-support.c (generate_register_struct): Likewise.
10444 * gdbtypes.c (recursive_dump_type): Likewise.
10445 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10446 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10447 instead of %d in format strings.
10448 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10449 to std::min to ULONGEST.
10450 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10451 instead of %d in format strings.
10452 * tracepoint.c (info_scope_command): Likewise.
10453 * typeprint.c (print_offset_data::update)
10454 (print_offset_data::finish): Likewise.
10455 * xtensa-tdep.c (xtensa_store_return_value)
10456 (xtensa_push_dummy_call): Likewise.
10457
10458 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10459
10460 * windows-nat.c (display_selector): Fixed format specifications
10461 for 64-bit Cygwin.
10462
10463 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10464
10465 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10466
10467 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10468
10469 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10470 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10471 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10472 (nios2_linux_init_abi): Install it.
10473
10474 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10475
10476 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10477
10478 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10479
10480 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10481
10482 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10483 Tom Tromey <tromey@adacore.com>
10484
10485 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10486
10487 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10488
10489 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10490 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10491 method to compute the bounds of range types. Also print "[evaluated]"
10492 if the bounds' values come from a dynamic evaluation.
10493
10494 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10495
10496 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10497 whitespace when pretty printing is on.
10498
10499 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10500
10501 * ppc-linux-nat.c: Add include.
10502
10503 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10504
10505 * NEWS: Mention AArch64 Pointer Authentication.
10506
10507 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10508
10509 * arm-linux-nat.c: Add include.
10510
10511 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10512
10513 * source-cache.c (source_cache::get_source_lines): Re-read
10514 fullname after calling open_source_file.
10515
10516 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10517
10518 * NEWS: Mention TLS support for FreeBSD.
10519
10520 2019-03-25 Tom Tromey <tromey@adacore.com>
10521
10522 * minsyms.c (BUNCH_SIZE): Update comment.
10523 (~minimal_symbol_reader): Remove old comment.
10524 (compact_minimal_symbols): Update comment.
10525 (minimal_symbol_reader::install): Remove old comment. Update
10526 other comments.
10527
10528 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10529
10530 * s390-linux-nat.c: Add include.
10531
10532 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10533
10534 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10535 Call linux_get_hwcap.
10536 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10537 Likewise.
10538 (aarch64_linux_get_hwcap): Remove function.
10539 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10540 declaration.
10541 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10542 linux_get_hwcap.
10543 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10544 * linux-tdep.c (linux_get_hwcap): Add function.
10545 (linux_get_hwcap2): Likewise.
10546 * linux-tdep.h (linux_get_hwcap): Add declaration.
10547 (linux_get_hwcap2): Likewise.
10548 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10549 (ppc_linux_get_hwcap2): Likewise.
10550 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10551 linux_get_hwcap.
10552 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10553 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10554 (ppc_linux_nat_target::read_description): Likewise.
10555 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10556 * s390-linux-nat.c: Likewise.
10557 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10558
10559 2019-03-24 Tom Tromey <tom@tromey.com>
10560
10561 * ada-lang.c (standard_lookup): Simplify initialization.
10562 (ada_lookup_symbol_nonlocal): Simplify return.
10563 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10564 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10565 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10566 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10567 initialization.
10568 * solib.c (solib_global_lookup): Simplify.
10569 * symtab.c (null_block_symbol): Remove.
10570 (symbol_cache_lookup): Simplify returns.
10571 (lookup_language_this): Simplify returns.
10572 (lookup_symbol_aux): Simplify return.
10573 (lookup_local_symbol): Simplify returns.
10574 (lookup_global_symbol_from_objfile): Simplify return.
10575 (lookup_symbol_in_objfile_symtabs)
10576 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10577 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10578 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10579 * cp-namespace.c (cp_lookup_bare_symbol)
10580 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10581 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10582 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10583 (cp_lookup_symbol_via_imports): Simplify initialization.
10584 (find_symbol_in_baseclass): Likewise.
10585 * symtab.h (null_block_symbol): Remove.
10586 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10587 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10588 (d_lookup_symbol_module): Likewise.
10589 (find_symbol_in_baseclass): Simplify initialization.
10590
10591 2019-03-24 Tom Tromey <tom@tromey.com>
10592
10593 * expression.h: Don't include symtab.h.
10594 (struct block): Forward declare.
10595
10596 2019-03-24 Tom Tromey <tom@tromey.com>
10597
10598 * c-exp.y (typebase): Remove casts.
10599 * gdbtypes.c (lookup_unsigned_typename, )
10600 (lookup_signed_typename): Remove cast.
10601 * eval.c (parse_to_comma_and_eval): Remove cast.
10602 * parse.c (write_dollar_variable): Remove cast.
10603 * block.h (struct block) <superblock>: Now const.
10604 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10605 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10606 (map_block): Make "block" const.
10607 * symfile.h (struct quick_symbol_functions)
10608 <map_matching_symbols>: Constify block argument to "callback".
10609 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10610 const.
10611 (find_pc_sect_compunit_symtab): Make "b" const.
10612 (find_symbol_at_address): Likewise.
10613 (search_symbols): Likewise.
10614 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10615 (dw2_debug_names_lookup_symbol): Likewise.
10616 (dw2_map_matching_symbols): Update.
10617 * p-valprint.c (pascal_val_print): Remove "block".
10618 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10619 (aux_add_nonlocal_symbols): Make "block" const.
10620 (resolve_subexp): Remove cast.
10621 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10622 const.
10623 (iterate_over_file_blocks): Likewise.
10624 * f-exp.y (%union) <bval>: Remove.
10625 * coffread.c (patch_opaque_types): Make "b" const.
10626 * spu-tdep.c (spu_catch_start): Make "block" const.
10627 * c-valprint.c (print_unpacked_pointer): Remove "block".
10628 * symmisc.c (dump_symtab_1): Make "b" const.
10629 (block_depth): Make "block" const.
10630 * d-exp.y (%union) <bval>: Remove.
10631 * cp-support.h (cp_lookup_rtti_type): Update.
10632 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10633 * psymtab.c (psym_lookup_symbol): Make "block" const.
10634 (maintenance_check_psymtabs): Make "b" const.
10635 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10636 (enumerate_locals, enumerate_args): Update.
10637 * python/py-symtab.c (stpy_global_block): Make "block" const.
10638 (stpy_static_block): Likewise.
10639 * inline-frame.c (block_starting_point_at): Make "new_block"
10640 const.
10641 * block.c (find_block_in_blockvector): Make return type const.
10642 (blockvector_for_pc_sect): Make "b" const.
10643 (find_block_in_blockvector): Make "b" const.
10644
10645 2019-03-23 Tom Tromey <tom@tromey.com>
10646
10647 * varobj.c (varobj_create): Update.
10648 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10649 * printcmd.c (display_command, do_one_display): Don't reset
10650 innermost_block.
10651 * parser-defs.h (enum innermost_block_tracker_type): Move to
10652 expression.h.
10653 (innermost_block): Update comment.
10654 * parse.c (parse_exp_1): Add tracker_types parameter.
10655 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10656 tracker_types parameter. Reset innermost_block.
10657 (parse_exp_in_context): Remove.
10658 (parse_expression_for_completion): Update.
10659 * objfiles.c (~objfile): Don't reset expression_context_block or
10660 innermost_block.
10661 * expression.h (enum innermost_block_tracker_type): Move from
10662 parser-defs.h.
10663 (parse_exp_1): Add tracker_types parameter.
10664 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10665 reset innermost_block.
10666
10667 2019-03-23 Tom Tromey <tom@tromey.com>
10668
10669 * objfiles.h: Include bcache.h.
10670
10671 2019-03-23 Tom Tromey <tom@tromey.com>
10672
10673 * linespec.c (get_current_search_block): Use
10674 scoped_restore_current_language.
10675 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10676
10677 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10678 Jiong Wang <jiong.wang@arm.com>
10679
10680 * aarch64-linux-tdep.c
10681 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10682 section.
10683 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10684
10685 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10686 Jiong Wang <jiong.wang@arm.com>
10687
10688 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10689 instructions.
10690 (aarch64_analyze_prologue_test): Add PACIASP test.
10691 (aarch64_prologue_prev_register): Unmask PC value.
10692
10693 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10694 Jiong Wang <jiong.wang@arm.com>
10695
10696 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10697 (aarch64_dwarf2_prev_register): Unmask PC value.
10698 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10699 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10700 DW_CFA_AARCH64_negate_ra_state.
10701 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10702
10703 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10704 Jiong Wang <jiong.wang@arm.com>
10705
10706 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10707 registers.
10708 (aarch64_pseudo_register_name): Likewise.
10709 (aarch64_pseudo_register_type): Likewise.
10710 (aarch64_pseudo_register_reggroup_p): Likewise.
10711 (aarch64_gdbarch_init): Add pauth registers.
10712 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10713 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10714 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10715 (struct gdbarch_tdep): Add regnum for ra_state.
10716
10717 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10718 Jiong Wang <jiong.wang@arm.com>
10719
10720 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10721
10722 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10723 Jiong Wang <jiong.wang@arm.com>
10724
10725 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10726 function.
10727 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10728 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10729 (aarch64_gdbarch_init): Add puth registers.
10730 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10731 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10732 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10733
10734 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10735 Jiong Wang <jiong.wang@arm.com>
10736
10737 * aarch64-linux-nat.c
10738 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10739 * aarch64-linux-tdep.c
10740 (aarch64_linux_core_read_description): Likewise.
10741 (aarch64_linux_get_hwcap): New function.
10742 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10743 (aarch64_linux_get_hwcap): New declaration.
10744
10745 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10746 Jiong Wang <jiong.wang@arm.com>
10747
10748 * aarch64-linux-nat.c
10749 (aarch64_linux_nat_target::read_description): Add pauth param.
10750 * aarch64-linux-tdep.c
10751 (aarch64_linux_core_read_description): Likewise.
10752 * aarch64-tdep.c (struct target_desc): Add in pauth.
10753 (aarch64_read_description): Add pauth param.
10754 (aarch64_gdbarch_init): Likewise.
10755 * aarch64-tdep.h (aarch64_read_description): Likewise.
10756 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10757 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10758 * features/Makefile: Add new files.
10759 * features/aarch64-pauth.c: New file.
10760 * features/aarch64-pauth.xml: New file.
10761
10762 2019-03-20 Tom Tromey <tromey@adacore.com>
10763
10764 * infrun.c (handle_inferior_event): Rename from
10765 handle_inferior_event_1. Create a scoped_value_mark.
10766 (handle_inferior_event): Remove.
10767
10768 2019-03-19 Tom Tromey <tromey@adacore.com>
10769
10770 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10771 * infrun.h (print_stop_event): Add "displays" parameter.
10772 * infrun.c (print_stop_event): Add "displays" parameter.
10773
10774 2019-03-19 Pedro Alves <palves@redhat.com>
10775
10776 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10777 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10778 to -1. Fix TABs vs spaces.
10779 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10780 * tui/tui-out.h (tui_ui_out) Add intro comments.
10781 <m_line, m_start_of_line>: In-class initialize, and add describing
10782 comment.
10783
10784 2019-03-18 Alan Hayward <alan.hayward@arm.com>
10785
10786 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10787 variable names.
10788 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10789
10790 2019-03-18 Pedro Alves <palves@redhat.com>
10791 Eli Zaretskii <eliz@gnu.org>
10792
10793 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10794 m_line and m_start_of_line.
10795
10796 2019-03-18 Eli Zaretskii <eliz@gnu.org>
10797
10798 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10799 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10800 it returns a newline. This fixes a regression in TU mode, whereby
10801 the next line is output on the same screen line as the user input.
10802
10803 2019-03-18 Tom Tromey <tromey@adacore.com>
10804
10805 * minsyms.c (minimal_symbol_reader::install): Remove call to
10806 obstack_blank.
10807
10808 2019-03-18 Pedro Alves <palves@redhat.com>
10809
10810 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10811 New globals.
10812 (apply_style): New, factored out from ...
10813 (apply_ansi_escape): ... this. Handle reverse video mode.
10814 (tui_set_reverse_mode): New function.
10815 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10816 * tui/tui-winsource.c (tui_show_source_line): Use
10817 tui_set_reverse_mode instead of setting A_STANDOUT.
10818 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10819 New setter methods.
10820
10821 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
10822
10823 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10824 Handle tabs.
10825
10826 2019-03-18 Tom Tromey <tromey@adacore.com>
10827
10828 * ada-lang.c (empty_array): Add "high" parameter.
10829 (ada_evaluate_subexp): Update.
10830
10831 2019-03-17 Sergei Trofimovich <siarheit@google.com>
10832
10833 * unittests/string_view-selftests.c: Define
10834 _initialize_string_view_selftests unconditionally.
10835
10836 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10837
10838 PR gdb/24350
10839 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10840
10841 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10842
10843 PR gdb/24351
10844 * windows-nat.c (display_selector): Fix format specifiers.
10845
10846 2019-03-17 Eli Zaretskii <eliz@gnu.org>
10847
10848 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10849 tui_refill_source_window instead of tui_refresh_win, to update the
10850 current execution line. This fixes redisplay of the current line
10851 when stepping through the code with "next" or "step".
10852
10853 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10854
10855 * source-cache.c (source_cache::get_source_lines): Call
10856 find_source_lines to initialize s->nlines. This fixes vertical
10857 scrolling of TUI source window when the DOWN arrow is pressed.
10858
10859 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10860
10861 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10862 linux-thread-db.c (_initialize_thread_db): Likewise.
10863
10864 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10865
10866 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10867 wclrtoeol in tui_show_source_line". This reverts changes made in
10868 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10869
10870 2019-03-15 Tom Tromey <tom@tromey.com>
10871
10872 * symtab.h (struct minimal_symbol): Derive from
10873 general_symbol_info.
10874 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10875 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10876 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10877 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10878 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10879 (MSYMBOL_SEARCH_NAME): Update.
10880 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10881 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10882 * minsyms.c (minimal_symbol_reader::record_full): Update.
10883
10884 2019-03-15 Tom Tromey <tom@tromey.com>
10885
10886 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10887
10888 2019-03-15 Tom Tromey <tom@tromey.com>
10889
10890 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10891 unique_xmalloc_ptr.
10892 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10893 Update.
10894 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10895 (build_minimal_symbol_hash_tables)
10896 (minimal_symbol_reader::install): Update.
10897
10898 2019-03-15 Tom Tromey <tom@tromey.com>
10899
10900 * symtab.c (create_demangled_names_hash): Update.
10901 (symbol_set_names): Update.
10902 * objfiles.h (struct objfile_per_bfd_storage)
10903 <demangled_names_hash>: Now an htab_up.
10904 * objfiles.c (objfile_per_bfd_storage): Simplify.
10905
10906 2019-03-15 Tom Tromey <tom@tromey.com>
10907
10908 * objfiles.h (struct objfile_per_bfd_storage): Declare
10909 destructor.
10910 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10911 New.
10912 (get_objfile_bfd_data): Use new. Don't initialize
10913 language_of_main.
10914 (free_objfile_per_bfd_storage): Remove.
10915 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10916
10917 2019-03-15 Tom Tromey <tom@tromey.com>
10918
10919 * symfile.c (reread_symbols): Update.
10920 * objfiles.c (objfile::objfile): Update.
10921 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10922 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10923 comment.
10924 (minimal_symbol_reader::install): Update.
10925 (terminate_minimal_symbol_table): Remove.
10926 * jit.c (jit_object_close_impl): Update.
10927
10928 2019-03-15 Tom Tromey <tom@tromey.com>
10929
10930 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10931 initializations.
10932
10933 2019-03-15 Tom Tromey <tom@tromey.com>
10934
10935 * objfiles.h (struct objfile_per_bfd_storage)
10936 <demangled_hash_languages>: Now a bitset.
10937 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10938 (lookup_minimal_symbol): Update.
10939
10940 2019-03-15 Tom Tromey <tom@tromey.com>
10941
10942 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10943 Don't return the symbol.
10944 * coffread.c (record_minimal_symbol): Use record_full.
10945
10946 2019-03-14 Eli Zaretskii <eliz@gnu.org>
10947
10948 The MS-Windows port of ncurses fails to switch to a color pair if
10949 one or both of the colors are the implicit default colors. This
10950 change records the default colors when TUI is initialized, and
10951 then specifies them explicitly when a color pair uses the default
10952 colors. This allows color styling in TUI mode on MS-Windows.
10953
10954 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10955 ncurses_norm_attr.
10956 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10957 colors in ncurses_norm_attr.
10958 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10959 "none", replace it with the default color recorded in
10960 ncurses_norm_attr.
10961
10962 2019-03-14 Tom Tromey <tromey@adacore.com>
10963
10964 * source-cache.h (class source_cache) <get_source_lines>: Return
10965 std::string.
10966 * source-cache.c (source_cache::extract_lines): Handle case where
10967 first_pos==npos. Return std::string.
10968 (source_cache::get_source_lines): Update.
10969
10970 2019-03-14 Tom Tromey <tromey@adacore.com>
10971
10972 * NEWS: Add item for "style sources" commands.
10973 * source-cache.c (source_cache::get_source_lines): Check
10974 source_styling.
10975 * cli/cli-style.c (source_styling): New global.
10976 (_initialize_cli_style): Add "style sources" commands.
10977 (show_style_sources): New function.
10978 * cli/cli-style.h (source_styling): Declare.
10979
10980 2019-03-14 Pedro Alves <palves@redhat.com>
10981 Tom Tromey <tromey@adacore.com>
10982
10983 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10984 * tui/tui-winsource.c (tui_refill_source_window): New function,
10985 from...
10986 (tui_horizontal_source_scroll): ... here. Move some logic.
10987 * cli/cli-style.c (set_style_enabled): Notify new observable.
10988 * tui/tui-hooks.c (tui_redisplay_source): New function.
10989 (tui_attach_detach_observers): Attach or detach
10990 tui_redisplay_source.
10991 * observable.h (source_styling_changed): New observable.
10992 * observable.c: Define source_styling_changed observable.
10993
10994 2019-03-13 Tom Tromey <tromey@adacore.com>
10995
10996 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10997 (i386_gnu_nat_target::store_registers): Update.
10998 * target-debug.h (target_debug_print_std_string): New macro.
10999 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11000 * windows-tdep.c (display_one_tib): Update.
11001 * tui/tui-stack.c (tui_make_status_line): Update.
11002 * top.c (print_inferior_quit_action): Update.
11003 * thread.c (thr_try_catch_cmd): Update.
11004 (add_thread_with_info): Update.
11005 (thread_target_id_str): Update.
11006 (thr_try_catch_cmd): Update.
11007 (thread_command): Update.
11008 (thread_find_command): Update.
11009 * record-btrace.c (record_btrace_target::info_record)
11010 (record_btrace_resume_thread, record_btrace_target::resume)
11011 (record_btrace_cancel_resume, record_btrace_step_thread)
11012 (record_btrace_target::wait, record_btrace_target::wait)
11013 (record_btrace_target::wait, record_btrace_target::stop): Update.
11014 * progspace.c (print_program_space): Update.
11015 * process-stratum-target.c
11016 (process_stratum_target::thread_address_space): Update.
11017 * linux-fork.c (linux_fork_mourn_inferior)
11018 (detach_checkpoint_command, info_checkpoints_command)
11019 (linux_fork_context): Update.
11020 (linux_fork_detach): Update.
11021 (class scoped_switch_fork_info): Update.
11022 (delete_checkpoint_command): Update.
11023 * infrun.c (follow_fork_inferior): Update.
11024 (follow_fork_inferior): Update.
11025 (proceed_after_vfork_done): Update.
11026 (handle_vfork_child_exec_or_exit): Update.
11027 (follow_exec): Update.
11028 (displaced_step_prepare_throw): Update.
11029 (displaced_step_restore): Update.
11030 (start_step_over): Update.
11031 (resume_1): Update.
11032 (clear_proceed_status_thread): Update.
11033 (proceed): Update.
11034 (print_target_wait_results): Update.
11035 (do_target_wait): Update.
11036 (context_switch): Update.
11037 (stop_all_threads): Update.
11038 (restart_threads): Update.
11039 (finish_step_over): Update.
11040 (handle_signal_stop): Update.
11041 (switch_back_to_stepped_thread): Update.
11042 (keep_going_pass_signal): Update.
11043 (print_exited_reason): Update.
11044 (normal_stop): Update.
11045 * inferior.c (inferior_pid_to_str): Change return type.
11046 (print_selected_inferior): Update.
11047 (add_inferior): Update.
11048 (detach_inferior): Update.
11049 * dummy-frame.c (fprint_dummy_frames): Update.
11050 * dcache.c (dcache_info_1): Update.
11051 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11052 (btrace_fetch, btrace_clear): Update.
11053 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11054 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11055 type.
11056 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11057 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11058 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11059 * gdbarch.c, gdbarch.h: Rebuild.
11060 * gdbarch.sh (core_pid_to_str): Change return type.
11061 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11062 return type.
11063 (windows_nat_target::pid_to_str): Change return type.
11064 (windows_delete_thread): Update.
11065 (windows_nat_target::attach): Update.
11066 (windows_nat_target::files_info): Update.
11067 * target-delegates.c: Rebuild.
11068 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11069 return type.
11070 (sol_thread_target::pid_to_str): Change return type.
11071 * remote.c (class remote_target) <pid_to_str>: Change return
11072 type.
11073 (remote_target::pid_to_str): Change return type.
11074 (extended_remote_target::attach, remote_target::remote_stop_ns)
11075 (remote_target::remote_notif_remove_queued_reply)
11076 (remote_target::push_stop_reply, remote_target::disable_btrace):
11077 Update.
11078 (extended_remote_target::attach): Update.
11079 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11080 type.
11081 (gdbsim_target::pid_to_str): Change return type.
11082 * ravenscar-thread.c (struct ravenscar_thread_target)
11083 <pid_to_str>: Change return type.
11084 (ravenscar_thread_target::pid_to_str): Change return type.
11085 * procfs.c (class procfs_target) <pid_to_str>: Change return
11086 type.
11087 (procfs_target::pid_to_str): Change return type.
11088 (procfs_target::attach): Update.
11089 (procfs_target::detach): Update.
11090 (procfs_target::fetch_registers): Update.
11091 (procfs_target::store_registers): Update.
11092 (procfs_target::wait): Update.
11093 (procfs_target::files_info): Update.
11094 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11095 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11096 return type.
11097 (nto_procfs_target::pid_to_str): Change return type.
11098 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11099 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11100 return type.
11101 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11102 (exit_lwp): Update.
11103 (attach_proc_task_lwp_callback, get_detach_signal)
11104 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11105 (linux_nat_target::resume, wait_lwp, stop_callback)
11106 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11107 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11108 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11109 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11110 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11111 type.
11112 (inf_ptrace_target::attach): Update.
11113 (inf_ptrace_target::files_info): Update.
11114 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11115 type.
11116 (go32_nat_target::pid_to_str): Change return type.
11117 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11118 (gnu_nat_target::wait): Update.
11119 (gnu_nat_target::wait): Update.
11120 (gnu_nat_target::resume): Update.
11121 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11122 (fbsd_nat_target::wait): Update.
11123 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11124 type.
11125 (darwin_nat_target::attach): Update.
11126 * corelow.c (class core_target) <pid_to_str>: Change return type.
11127 (core_target::pid_to_str): Change return type.
11128 * target.c (normal_pid_to_str): Change return type.
11129 (default_pid_to_str): Likewise.
11130 (target_pid_to_str): Change return type.
11131 (target_translate_tls_address): Update.
11132 (target_announce_detach): Update.
11133 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11134 return type.
11135 (bsd_uthread_target::pid_to_str): Change return type.
11136 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11137 type.
11138 (bsd_kvm_target::pid_to_str): Change return type.
11139 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11140 return type.
11141 (aix_thread_target::pid_to_str): Change return type.
11142 * target.h (struct target_ops) <pid_to_str>: Change return type.
11143 (target_pid_to_str, normal_pid_to_str): Likewise.
11144 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11145 type.
11146 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11147 type.
11148 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11149 return type.
11150 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11151 type.
11152 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11153 type.
11154 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11155 return type.
11156
11157 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11158
11159 * NEWS: Mention that the new default MI version is 3. Mention
11160 changes to the output of commands and events that deal with
11161 multi-location breakpoints.
11162 * breakpoint.c: Include "mi/mi-out.h".
11163 (print_one_breakpoint): Change output syntax if using MI version
11164 >= 3.
11165 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11166 New.
11167 (mi_multi_location_breakpoint_output_fixed): New.
11168 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11169 (mi_cmd_fix_multi_location_breakpoint_output): New.
11170 (mi_multi_location_breakpoint_output_fixed): New.
11171 * mi/mi-cmds.c (mi_cmds): Register command
11172 -fix-multi-location-breakpoint-output.
11173 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11174 interpreter "mi".
11175
11176 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11177
11178 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11179 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11180 instantiate mi_ui_out based on interpreter name.
11181 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11182 * mi/mi-main.c (mi_load_progress): Likewise.
11183
11184 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11185
11186 * NEWS: Combine separate "New targets" sections for 8.3.
11187
11188 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11189
11190 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11191 (ppcfbsd_init_abi): Install gdbarch
11192 "fetch_tls_load_module_address" and "get_thread_local_address"
11193 methods.
11194
11195 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11196
11197 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11198 (riscv_fbsd_init_abi): Install gdbarch
11199 "fetch_tls_load_module_address" and "get_thread_local_address"
11200 methods.
11201
11202 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11203
11204 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11205 (i386fbsd_init_abi): Install gdbarch
11206 "fetch_tls_load_module_address" and "get_thread_local_address"
11207 methods.
11208
11209 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11210
11211 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11212 (amd64fbsd_init_abi): Install gdbarch
11213 "fetch_tls_load_module_address" and "get_thread_local_address"
11214 methods.
11215
11216 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11217
11218 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11219 (struct fbsd_pspace_data): New type.
11220 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11221 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11222 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11223 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11224 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11225
11226 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11227
11228 * gdbtypes.c (lookup_struct_elt): New function.
11229 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11230 * gdbtypes.h (struct struct_elt): New type.
11231 (lookup_struct_elt): New prototype.
11232
11233 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11234
11235 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11236 remove disabled code block.
11237
11238 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11239
11240 * gdbarch.sh (get_thread_local_address): New method.
11241 * gdbarch.h, gdbarch.c: Regenerate.
11242 * target.c (target_translate_tls_address): Use
11243 gdbarch_get_thread_local_address if present instead of
11244 target::get_thread_local_address.
11245
11246 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11247
11248 * target.h (target::get_thread_local_address): Update comment.
11249
11250 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11251
11252 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11253 objfile->separate_debug_objfile_backlink if not NULL.
11254
11255 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11256
11257 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11258 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11259 (amd64bsd_store_inferior_registers): Likewise.
11260 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11261 Enable segment base registers.
11262 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11263 PT_GETFSBASE and PT_GETGSBASE.
11264 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11265 PT_SETGSBASE.
11266 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11267 segment base registers.
11268 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11269
11270 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11271
11272 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11273 Update calls to i386_target_description to add 'segments'
11274 parameter.
11275 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11276 add segment base registers.
11277 * arch/i386.c (i386_create_target_description): Add 'segments'
11278 parameter to enable segment base registers.
11279 * arch/i386.h (i386_create_target_description): Likewise.
11280 * features/i386/32bit-segments.xml: New file.
11281 * features/i386/32bit-segments.c: Generate.
11282 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11283 call to i386_target_description to add 'segments' parameter.
11284 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11285 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11286 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11287 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11288 if feature is present.
11289 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11290 Add 'segments' parameter to call to i386_target_description.
11291 (i386_target_description): Add 'segments' parameter to enable
11292 segment base registers.
11293 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11294 to call to i386_target_description.
11295 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11296 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11297 Define I386_NUM_REGS.
11298 (i386_target_description): Add 'segments' parameter to enable
11299 segment base registers.
11300
11301 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11302
11303 PR/24325
11304 * source-cache.c: #undef open and close, to avoid unresolved
11305 externals during linking.
11306
11307 2019-03-12 Tom Tromey <tromey@adacore.com>
11308
11309 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11310 const. Add initializers.
11311 (_initialize_remote): Don't initialize ptid globals.
11312
11313 2019-03-12 Pedro Alves <palves@redhat.com>
11314
11315 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11316
11317 2019-03-12 Pedro Alves <palves@redhat.com>
11318
11319 * cp-name-parser.y (main): Remove unused 'len' variable.
11320
11321 2019-03-12 Tom Tromey <tromey@adacore.com>
11322
11323 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11324 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11325
11326 2019-03-12 Tom Tromey <tromey@adacore.com>
11327
11328 * linux-nat.c (iterate_over_lwps): Update.
11329 (stop_callback): Remove parameter.
11330 (stop_wait_callback, detach_callback, resume_set_callback)
11331 (select_singlestep_lwp_callback, set_ignore_sigint)
11332 (status_callback, resumed_callback, resume_clear_callback)
11333 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11334 data parameter.
11335 (linux_nat_target::detach, linux_nat_target::resume)
11336 (linux_stop_and_wait_all_lwps, select_event_lwp)
11337 (linux_nat_filter_event, linux_nat_wait_1)
11338 (linux_nat_target::kill, linux_nat_target::stop)
11339 (linux_nat_target::stop): Update.
11340 (linux_nat_resume_callback): Change type.
11341 (resume_stopped_resumed_lwps, count_events_callback)
11342 (select_event_lwp_callback): Likewise.
11343 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11344 * arm-linux-nat.c (struct update_registers_data): Remove.
11345 (update_registers_callback): Change type.
11346 (arm_linux_insert_hw_breakpoint1): Update.
11347 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11348 parameter.
11349 (x86_linux_dr_set_addr): Update.
11350 (x86_linux_dr_set_control): Update.
11351 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11352 (iterate_over_lwps): Use gdb::function_view.
11353 * nat/aarch64-linux-hw-point.c (struct
11354 aarch64_dr_update_callback_param): Remove.
11355 (debug_reg_change_callback): Change type.
11356 (aarch64_notify_debug_reg_change): Update.
11357 * s390-linux-nat.c (s390_refresh_per_info): Update.
11358
11359 2019-03-11 Tom Tromey <tromey@adacore.com>
11360
11361 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11362 redundant assignment to "this_cu".
11363
11364 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11365
11366 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11367
11368 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11369
11370 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11371 from...
11372 (rank_one_type): ... this.
11373
11374 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11375
11376 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11377 from...
11378 (rank_one_type): ... this.
11379
11380 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11381
11382 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11383 from...
11384 (rank_one_type): ... this.
11385
11386 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11387
11388 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11389 from...
11390 (rank_one_type): ... this.
11391
11392 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11393
11394 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11395 from...
11396 (rank_one_type): ... this.
11397
11398 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11399
11400 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11401 from...
11402 (rank_one_type): ... this.
11403
11404 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11405
11406 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11407 from...
11408 (rank_one_type): ... this.
11409
11410 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11411
11412 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11413 from...
11414 (rank_one_type): ... this.
11415
11416 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11417
11418 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11419 from...
11420 (rank_one_type): ... this.
11421
11422 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11423
11424 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11425 from...
11426 (rank_one_type): ... this.
11427
11428 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11429
11430 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11431 from...
11432 (rank_one_type): ... this.
11433
11434 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11435
11436 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11437 from...
11438 (rank_one_type): ... this.
11439
11440 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11441
11442 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11443 inferior-events' shows the example events.
11444
11445 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11446
11447 Support styling on native MS-Windows console
11448
11449 PR/24315
11450 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11451 on MS-Windows if $TERM is not defined.
11452
11453 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11454
11455 * posix-hdep.c (gdb_console_fputs):
11456 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11457 functions.
11458 * ui-file.h (gdb_console_fputs): Add prototype.
11459
11460 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11461 back to fputs only if the former returns zero.
11462
11463 2019-03-07 Tom Tromey <tom@tromey.com>
11464
11465 * symmisc.c (print_symbol_bcache_statistics): Update.
11466 (print_objfile_statistics): Update.
11467 * symfile.c (allocate_symtab): Update.
11468 * stabsread.c: Don't include bcache.h.
11469 * psymtab.h (struct psymbol_bcache): Don't declare.
11470 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11471 (psymbol_bcache_init, psymbol_bcache_free)
11472 (psymbol_bcache_get_bcache): Don't declare.
11473 * psymtab.c (struct psymbol_bcache): Remove.
11474 (psymtab_storage::psymtab_storage): Update.
11475 (psymtab_storage::~psymtab_storage): Update.
11476 (psymbol_bcache_init, psymbol_bcache_free)
11477 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11478 (add_psymbol_to_bcache): Update.
11479 (allocate_psymtab): Update.
11480 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11481 macro_cache>: No longer pointers.
11482 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11483 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11484 * macrotab.c (macro_bcache): Update.
11485 * macroexp.c: Don't include bcache.h.
11486 * gdbtypes.c (check_types_worklist): Update.
11487 (types_deeply_equal): Remove TRY/CATCH. Update.
11488 * elfread.c (elf_symtab_read): Update.
11489 * dwarf2read.c: Don't include bcache.h.
11490 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11491 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11492 (print_bcache_statistics, bcache_memory_used): Don't declare.
11493 (struct bcache): Move from bcache.c. Add constructor, destructor,
11494 methods. Rename all data members.
11495 * bcache.c (struct bcache): Move to bcache.h.
11496 (bcache::expand_hash_table): Rename from expand_hash_table.
11497 (bcache): Remove.
11498 (bcache::insert): Rename from bcache_full.
11499 (bcache::compare): Rename from bcache_compare.
11500 (bcache_xmalloc): Remove.
11501 (bcache::~bcache): Rename from bcache_xfree.
11502 (bcache::print_statistics): Rename from print_bcache_statistics.
11503 (bcache::memory_used): Rename from bcache_memory_used.
11504
11505 2019-03-07 Pedro Alves <palves@redhat.com>
11506
11507 * infrun.c (normal_stop): Also check for
11508 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11509
11510 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11511
11512 * f-lang.c (value_from_host_double): Moved to...
11513 * value.c (value_from_host_double): ...here.
11514 * value.h (value_from_host_double): Declare.
11515 * guile/scm-math.c (vlscm_convert_typed_number): Use
11516 value_from_host_double.
11517 (vlscm_convert_number): Likewise.
11518 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11519 * python/py-value.c (convert_value_from_python): Likewise.
11520
11521 2019-03-06 Tom Tromey <tom@tromey.com>
11522
11523 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11524
11525 2019-03-06 Tom Tromey <tom@tromey.com>
11526
11527 * utils.h (free_current_contents): Don't declare.
11528 * utils.c (free_current_contents): Remove.
11529
11530 2019-03-06 Tom Tromey <tom@tromey.com>
11531
11532 * top.c (quit_force): Update.
11533 * main.c (captured_command_loop): Update.
11534 * common/new-op.c (operator new): Update.
11535 * common/common-exceptions.c (struct catcher)
11536 <save_cleanup_chain>: Remove member.
11537 (exceptions_state_mc_init): Update.
11538 (exception_try_scope_entry): Return nullptr.
11539 (exception_try_scope_exit, exception_rethrow)
11540 (throw_exception_sjlj, throw_exception_cxx): Update.
11541 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11542 (all_cleanups, do_cleanups, discard_cleanups)
11543 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11544 (restore_cleanups, restore_final_cleanups): Don't declare.
11545 (do_final_cleanups): Remove parameter.
11546 * common/cleanups.c (cleanup_chain, make_cleanup)
11547 (make_cleanup_dtor, all_cleanups, do_cleanups)
11548 (discard_my_cleanups, discard_cleanups)
11549 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11550 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11551 (null_cleanup): Remove.
11552 (do_final_cleanups): Remove parameter.
11553
11554 2019-03-06 Tom Tromey <tom@tromey.com>
11555
11556 * remote.c (remote_target::remote_parse_stop_reply): Use
11557 unique_xmalloc_ptr.
11558
11559 2019-03-06 Tom Tromey <tom@tromey.com>
11560
11561 * stabsread.c (struct stabs_field_info): Rename from field_info.
11562 <list, fnlist>: Add initializers.
11563 <obstack>: New member.
11564 (read_member_functions, read_struct_fields, read_baseclasses):
11565 Allocate on obstack. Don't use cleanups.
11566 (read_one_struct_field, read_member_functions, read_struct_fields)
11567 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11568 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11569 (read_struct_type): Update.
11570
11571 2019-03-06 Tom Tromey <tom@tromey.com>
11572
11573 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11574 * common/filestuff.h (make_cleanup_close): Don't declare.
11575 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11576 Remove.
11577
11578 2019-03-06 Tom Tromey <tom@tromey.com>
11579
11580 * solib-aix.c: Use make_scope_exit.
11581
11582 2019-03-06 Tom Tromey <tom@tromey.com>
11583
11584 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11585 Use make_scope_exit.
11586
11587 2019-03-06 Tom Tromey <tom@tromey.com>
11588
11589 * solib-svr4.c (disable_probes_interface): Remove parameter.
11590 (svr4_handle_solib_event): Use make_scope_exit.
11591
11592 2019-03-06 Tom Tromey <tom@tromey.com>
11593
11594 * remote.c (struct stop_reply_deleter): Remove.
11595 (stop_reply_up): Update.
11596 (struct stop_reply): Derive from notif_event. Don't typedef.
11597 <regcache>: Now a std::vector.
11598 (stop_reply_xfree): Remove.
11599 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11600 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11601 (remote_target::discard_pending_stop_replies): Use delete.
11602 (remote_target::remote_parse_stop_reply): Update.
11603 (remote_target::process_stop_reply): Update.
11604 * remote-notif.h (struct notif_event): Add virtual destructor.
11605 Remove "dtr" member.
11606 (struct notif_client) <alloc_event>: Return a unique_ptr.
11607 (notif_event_xfree): Don't declare.
11608 (notif_event_up): New typedef.
11609 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11610 (notif_event_xfree, do_notif_event_xfree): Remove.
11611 (remote_notif_state_xfree): Update.
11612
11613 2019-03-06 Tom Tromey <tom@tromey.com>
11614
11615 * infrun.c (displaced_step_clear_cleanup): Now a
11616 forward_scope_exit type.
11617 (displaced_step_prepare_throw): Update.
11618 (displaced_step_fixup): Update.
11619
11620 2019-03-06 Tom Tromey <tom@tromey.com>
11621
11622 * inferior.h (class inferior): Update comment.
11623 * gdbthread.h (class thread_info): Update comment.
11624
11625 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11626 Tom Tromey <tom@tromey.com>
11627
11628 * stabsread.h (struct stab_section_list): Remove.
11629 (coffstab_build_psymtabs): Update.
11630 * dbxread.c (symbuf_sections): Now a std::vector.
11631 (sect_idx): New global.
11632 (fill_symbuf): Update.
11633 (coffstab_build_psymtabs): Change type of stabsects parameter.
11634 Update.
11635 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11636 std::vector.
11637 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11638 (coff_locate_sections): Update.
11639 (coff_symfile_read): Remove cleanups. Update.
11640 (init_stringtab): Add storage parameter.
11641 (free_stringtab, free_stringtab_cleanup): Remove.
11642 (init_lineno): Add storage parameter.
11643 (free_linetab, free_linetab_cleanup): Remove.
11644
11645 2019-03-06 Pedro Alves <palves@redhat.com>
11646
11647 * linux-fork.c (fork_info::clobber_regs): Delete.
11648 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11649 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11650 comment. Adjust.
11651 (scoped_switch_fork_info::scoped_switch_fork_info)
11652 (checkpoint_command, linux_fork_context): Adjust
11653 fork_save_infrun_state calls.
11654
11655 2019-03-06 Pedro Alves <palves@redhat.com>
11656
11657 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11658 (inf_has_multiple_threads): Return 'bool' and rewrite using
11659 inferior_info::threads().
11660
11661 2019-03-06 Pedro Alves <palves@redhat.com>
11662
11663 * linux-fork.c: Include <list>.
11664 (fork_list): Now a std::list instance.
11665 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11666 (forks_exist_p, find_last_fork): Adjust.
11667 (new_fork): Delete.
11668 (one_fork_p): New.
11669 (add_fork): Adjust.
11670 (free_fork): Delete, folded into fork_info::~fork_info().
11671 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11672 Adjust.
11673 (init_fork_list): Delete.
11674 (linux_fork_killall, linux_fork_mourn_inferior)
11675 (linux_fork_detach, info_checkpoints_command): Adjust.
11676 (_initialize_linux_fork): No longer call init_fork_list.
11677
11678 2019-03-06 Pedro Alves <palves@redhat.com>
11679
11680 * linux-fork.c (new_fork): New, split out of ...
11681 (add_fork): ... this. Return void. Move "first fork" special
11682 case from here, to ...
11683 (checkpoint_command): ... here.
11684 * linux-linux.h (add_fork): Return void.
11685
11686 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11687
11688 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11689
11690 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11691 Chris January <chris.january@arm.com>
11692 David Lecomber <david.lecomber@arm.com>
11693
11694 * f-exp.y: New token, UNOP_INTRINSIC.
11695 (exp): New pattern using UNOP_INTRINSIC token.
11696 (f77_keywords): Add 'abs' keyword.
11697 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11698 (value_from_host_double): New function.
11699 (evaluate_subexp_f): Support UNOP_ABS.
11700
11701 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11702
11703 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11704 types.
11705
11706 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11707
11708 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11709 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11710 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11711
11712 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11713
11714 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11715
11716 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11717 Chris January <chris.january@arm.com>
11718
11719 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11720 * f-exp.y: Define 'KIND' token.
11721 (exp): New pattern for KIND expressions.
11722 (ptype): Handle types with a kind extension.
11723 (direct_abs_decl): Extend to spot kind extensions.
11724 (f77_keywords): Add 'kind' to the list.
11725 (push_kind_type): New function.
11726 (convert_to_kind_type): New function.
11727 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11728 * parse.c (operator_length_standard): Likewise.
11729 * parser-defs.h (enum type_pieces): Add tp_kind.
11730 * std-operator.def: Add UNOP_KIND.
11731
11732 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11733
11734 * f-exp.y (f_parse): Set yydebug.
11735
11736 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11737
11738 * f-lang.c (evaluate_subexp_f): New function.
11739 (exp_descriptor_f): New global.
11740 (f_language_defn): Use exp_descriptor_f instead of
11741 exp_descriptor_standard.
11742
11743 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11744
11745 * f-exp.y (struct token): Add comments.
11746 (dot_ops): Remove uppercase versions and the end marker.
11747 (f77_keywords): Likewise.
11748 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11749 entries in the dot_ops array are case insensitive, and use
11750 strncasecmp to compare strings. Also some whitespace cleanup in
11751 this area. Similar for the f77_keywords array, except entries in
11752 this list might be case sensitive.
11753
11754 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11755
11756 * f-exp.y (struct f77_boolean_val): Add comments.
11757 (boolean_values): Remove uppercase versions, and end marker.
11758 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11759 and use strncasecmp to achieve case insensitivity. Additionally,
11760 perform whitespace cleanup around this code.
11761
11762 2019-03-06 Tom Tromey <tromey@adacore.com>
11763
11764 * remote-sim.c (gdbsim_target_open): Use result of
11765 gdb_argv::release.
11766
11767 2019-03-06 Richard Bunt <richard.bunt@arm.com>
11768 Dirk Schubert <dirk.schubert@arm.com>
11769 Chris January <chris.january@arm.com>
11770
11771 * eval.c (evaluate_subexp_standard): Call Fortran argument
11772 wrapping logic.
11773 * f-lang.c (struct value): A value which can be passed into a
11774 Fortran function call.
11775 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11776 where appropriate.
11777 (struct type): Value ready for a Fortran function call.
11778 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11779 is needed.
11780 * f-lang.h (fortran_argument_convert): Declaration.
11781 (fortran_preserve_arg_pointer): Declaration.
11782 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11783
11784 2019-03-05 Tom Tromey <tromey@adacore.com>
11785
11786 * python/py-prettyprint.c (print_string_repr): Remove #if.
11787 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11788
11789 2019-03-05 Tom Tromey <tromey@adacore.com>
11790
11791 * target.c (the_dummy_target): Move later. Change type to
11792 "dummy_target".
11793 (initialize_targets): Don't initialize the_dummy_target.
11794
11795 2019-03-05 Tom Tromey <tromey@adacore.com>
11796
11797 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11798 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11799
11800 2019-03-05 Tom Tromey <tromey@adacore.com>
11801
11802 * windows-nat.c (windows_nat_target::attach)
11803 (windows_nat_target::detach): Don't call gdb_flush.
11804 * valprint.c (generic_val_print, val_print, val_print_string):
11805 Don't call gdb_flush.
11806 * utils.c (defaulted_query): Don't call gdb_flush.
11807 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11808 * target.c (target_announce_detach): Don't call gdb_flush.
11809 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11810 * remote.c (extended_remote_target::attach): Don't call
11811 gdb_flush.
11812 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11813 * printcmd.c (do_examine): Don't call gdb_flush.
11814 (info_display_command): Don't call gdb_flush.
11815 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11816 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11817 * memattr.c (info_mem_command): Don't call gdb_flush.
11818 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11819 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11820 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11821 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11822 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11823 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11824 (gnu_nat_target::detach): Don't call gdb_flush.
11825 * f-valprint.c (f_val_print): Don't call gdb_flush.
11826 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11827 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11828 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11829 gdb_flush.
11830 * c-valprint.c (c_val_print): Don't call gdb_flush.
11831 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11832
11833 2019-03-05 Tom Tromey <tromey@adacore.com>
11834
11835 * varobj.c (update_dynamic_varobj_children): Update.
11836 (install_default_visualizer): Use reset, not release.
11837 * value.c (set_internalvar): Update.
11838 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11839 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11840 ATTRIBUTE_UNUSED_RESULT.
11841
11842 2019-03-05 Tom Tromey <tromey@adacore.com>
11843
11844 * remote.c (class scoped_remote_fd) <release>: Add
11845 ATTRIBUTE_UNUSED_RESULT.
11846
11847 2019-03-05 Tom Tromey <tromey@adacore.com>
11848
11849 * macroexp.c (struct macro_buffer) <release>: Add
11850 ATTRIBUTE_UNUSED_RESULT.
11851
11852 2019-03-05 Tom Tromey <tromey@adacore.com>
11853
11854 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11855 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11856 ATTRIBUTE_UNUSED_RESULT.
11857
11858 2019-03-05 Tom Tromey <tromey@adacore.com>
11859
11860 * common/scoped_fd.h (class scoped_fd) <release>: Add
11861 ATTRIBUTE_UNUSED_RESULT.
11862
11863 2019-03-05 Tom Tromey <tromey@adacore.com>
11864
11865 * parser-defs.h (struct parser_state) <release>: Add
11866 ATTRIBUTE_UNUSED_RESULT.
11867
11868 2019-03-05 Tom Tromey <tromey@adacore.com>
11869
11870 * utils.h (class gdb_argv) <release>: Add
11871 ATTRIBUTE_UNUSED_RESULT.
11872 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11873
11874 2019-03-02 Eli Zaretskii <eliz@gnu.org>
11875
11876 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11877 for-loop range, to avoid compiler warnings.
11878
11879 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11880 avoid compiler warnings about unused variables.
11881
11882 * NEWS: Mention end of support for native debugging on MS-Windows
11883 before XP.
11884
11885 PR gdb/24292
11886 * common/netstuff.c:
11887 * gdbserver/gdbreplay.c
11888 * gdbserver/remote-utils.c:
11889 * ser-tcp.c:
11890 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11891 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11892 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11893 'getaddrinfo' and 'freeaddrinfo' were not available before
11894 Windows XP, and mingw.org's MinGW headers by default define
11895 _WIN32_WINNT to 0x500.
11896
11897 2019-03-01 Gary Benson <gbenson@redhat.com>
11898
11899 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11900
11901 2019-02-28 Brian Vandenberg <phantall@gmail.com>
11902 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11903
11904 PR gdb/8527
11905 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11906 set_sigint_trap, clear_sigint_trap.
11907
11908 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11909
11910 * target.c (target_detach): Clear the regcache and the
11911 frame cache.
11912
11913 2019-02-27 Pedro Alves <palves@redhat.com>
11914
11915 * utils.c (set_screen_size): When we cap the height/width sizes,
11916 tweak the corresponding command variable to show "unlimited":
11917
11918 2019-02-27 Saagar Jha <saagar@saagarjha.com>
11919 Pedro Alves <palves@redhat.com>
11920
11921 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11922 before calling rl_set_screen_size.
11923
11924 2019-02-27 Tom Tromey <tromey@adacore.com>
11925
11926 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11927 define.
11928 * python/py-value.c: Remove Python 2.4 workaround.
11929 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11930 workaround.
11931 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11932 Python 2.4 workaround.
11933 * python/python-internal.h: Remove Python 2.4 comment.
11934 (Py_ssize_t): Don't define.
11935 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11936 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11937 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11938 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11939 * python/python.c (do_start_initialization): Remove Python 2.4
11940 workaround.
11941 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11942 (print_children): Remove Python 2.4 workaround.
11943 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11944 workaround.
11945 (CHARBUFFERPROC_NAME): Remove.
11946 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11947 Python 2.4 workaround.
11948
11949 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11950
11951 * NEWS: Note minimum Python version.
11952
11953 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11954
11955 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11956 code from these functions. Remove corresponding ifdefs. Use
11957 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11958 Remove gotos and target of gotos.
11959 (infpy_search_memory): Likewise.
11960
11961 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11962
11963 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11964 (hppa_gdbarch_init): Don't register deleted functions with
11965 gdbarch.
11966
11967 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11968
11969 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11970 (h8300_unwind_sp): Delete.
11971 (h8300_dummy_id): Delete.
11972 (h8300_gdbarch_init): Don't register deleted functions with
11973 gdbarch.
11974
11975 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11976
11977 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11978 (ft32_unwind_pc): Delete.
11979 (ft32_unwind_sp): Delete.
11980 (ft32_gdbarch_init): Don't register deleted functions with
11981 gdbarch.
11982
11983 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11984
11985 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11986 (frv_unwind_pc): Delete.
11987 (frv_unwind_sp): Delete.
11988 (frv_gdbarch_init): Don't register deleted functions with
11989 gdbarch.
11990
11991 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11992
11993 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11994 (riscv_unwind_pc): Delete.
11995 (riscv_unwind_sp): Delete.
11996 (riscv_gdbarch_init): Don't register deleted functions with
11997 gdbarch.
11998
11999 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12000
12001 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12002 (csky_unwind_pc): Delete.
12003 (csky_unwind_sp): Delete.
12004 (csky_gdbarch_init): Don't register deleted functions with
12005 gdbarch.
12006
12007 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12008
12009 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12010 (cris_unwind_pc): Delete.
12011 (cris_unwind_sp): Delete.
12012 (cris_gdbarch_init): Don't register deleted functions with
12013 gdbarch.
12014
12015 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12016
12017 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12018 (bfin_unwind_pc): Delete.
12019 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12020
12021 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12022
12023 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12024 (arm_unwind_pc): Delete.
12025 (arm_unwind_sp): Delete.
12026 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12027
12028 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12029
12030 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12031 (arc_unwind_pc): Delete.
12032 (arc_unwind_sp): Delete.
12033 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12034
12035 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12036
12037 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12038 (alpha_unwind_pc): Delete.
12039 (alpha_gdbarch_init): Don't register deleted functions with
12040 gdbarch.
12041
12042 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12043
12044 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12045 (aarch64_unwind_pc): Delete.
12046 (aarch64_unwind_sp): Delete.
12047 (aarch64_gdbarch_init): Don't register deleted functions with
12048 gdbarch.
12049
12050 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12051
12052 * gdbtypes.c (type_align): Don't consider static members when
12053 computing structure alignment.
12054
12055 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12056
12057 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12058 return 0 for other types.
12059 * arch-utils.c (default_type_align): Always return 0.
12060 * gdbarch.h: Regenerate.
12061 * gdbarch.sh (type_align): Extend comment.
12062 * gdbtypes.c (type_align): Add additional comments, always call
12063 gdbarch_type_align before applying the default rules.
12064 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12065 generic code will then apply a suitable default.
12066 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12067 types, return 0 for other types.
12068
12069 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12070
12071 * NEWS: Create a new section for the next release branch.
12072 Rename the section of the current branch, now that it has
12073 been cut.
12074
12075 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12076
12077 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12078 * version.in: Bump version to 8.3.50.DATE-git.
12079
12080 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12081
12082 * aix-thread.c (ptid_cmp): Remove unused variable.
12083 (get_signaled_thread): Likewise.
12084 (store_regs_user_thread): Likewise.
12085 (store_regs_kernel_thread): Likewise.
12086 (fetch_regs_kernel_thread): Remove shadowed variable.
12087
12088 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12089
12090 * features/riscv/32bit-cpu.xml: Add register numbers.
12091 * features/riscv/32bit-fpu.c: Regenerate.
12092 * features/riscv/32bit-fpu.xml: Add register numbers.
12093 * features/riscv/64bit-cpu.xml: Add register numbers.
12094 * features/riscv/64bit-fpu.c: Regenerate.
12095 * features/riscv/64bit-fpu.xml: Add register numbers.
12096
12097 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12098
12099 * NEWS: Mention two argument form of gdb.Value constructor.
12100 * python/py-value.c (convert_buffer_and_type_to_value): New
12101 function.
12102 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12103 Add support for handling an optional second argument. Call
12104 convert_buffer_and_type_to_value as appropriate.
12105 * python/python-internal.h (Py_buffer_deleter): New struct.
12106 (Py_buffer_up): New typedef.
12107
12108 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12109
12110 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12111 instead of releasing ownership.
12112
12113 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12114
12115 * dwarf2read.c (open_and_init_dwp_file): Call
12116 elf_numsections instead of bfd_count_sections to initialize
12117 dwp_file->num_sections.
12118
12119 2019-02-25 Tom Tromey <tromey@adacore.com>
12120
12121 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12122
12123 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12124
12125 * gcore.in: Add '--readnever' option when invoking GDB.
12126
12127 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12128
12129 * MAINTAINERS: Update my email address.
12130
12131 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12132
12133 * build-id.c (build_id_to_debug_bfd_1): New function.
12134 (build_id_to_debug_bfd): Look for separate debug file in
12135 sysroot.
12136
12137 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12138
12139 * gdbarch.sh: Update the copyright year range that is placed into
12140 generated files.
12141
12142 2019-02-22 Keith Seitz <keiths@redhat.com>
12143
12144 PR symtab/23853
12145 * linespec.c (create_sals_line_offset): Search for the default
12146 symtab's filename instead of its fullname.
12147
12148 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12149
12150 * NEWS: Update style defaults.
12151
12152 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12153
12154 * main.c (captured_main_1): Disable styling in batch mode.
12155
12156 2019-02-20 Tom Tromey <tom@tromey.com>
12157
12158 * symtab.c (symtab_symbol_info): Fix typos.
12159
12160 2019-02-20 Tom Tromey <tromey@adacore.com>
12161
12162 * findcmd.c (_initialize_mem_search): Use upper case for
12163 metasyntactic variables.
12164
12165 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12166
12167 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12168 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12169
12170 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12171
12172 * top.h (source_file_name): Change to std::string.
12173 * top.c (source_file_name): Likewise.
12174 (command_line_input): Adjust.
12175 * cli/cli-script.c (script_from_file): Adjust.
12176
12177 2019-02-19 Tom Tromey <tromey@adacore.com>
12178
12179 * ravenscar-thread.c
12180 (ravenscar_thread_target::update_thread_list): Don't call
12181 ada_build_task_list.
12182 * ada-lang.h (ada_build_task_list): Don't declare.
12183 * ada-tasks.c (struct ada_tasks_inferior_data)
12184 <task_list_valid_p>: Now bool.
12185 (read_known_tasks, ada_task_list_changed)
12186 (ada_tasks_invalidate_inferior_data): Update.
12187 (read_known_tasks_array): Return bool.
12188 (read_known_tasks_list): Likewise.
12189 (read_known_tasks): Return void.
12190 (ada_build_task_list): Now static.
12191
12192 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12193
12194 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12195 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12196
12197 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12198
12199 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12200 variant for ada_tasks_pspace_data_handle and
12201 ada_tasks_inferior_data_handle.
12202 (ada_tasks_pspace_data_cleanup): New function.
12203 (ada_tasks_inferior_data_cleanup): New function.
12204
12205 2019-02-17 Tom Tromey <tom@tromey.com>
12206
12207 * macrotab.h (macro_source_fullname): Return a std::string.
12208 * macrotab.c (macro_include, check_for_redefinition)
12209 (macro_undef, macro_lookup_definition, foreach_macro)
12210 (foreach_macro_in_scope): Update.
12211 (macro_source_fullname): Return a std::string.
12212 * macrocmd.c (show_pp_source_pos): Update.
12213
12214 2019-02-17 Tom Tromey <tom@tromey.com>
12215
12216 * macrocmd.c (show_pp_source_pos): Style the file names.
12217
12218 2019-02-17 Tom Tromey <tom@tromey.com>
12219
12220 PR tui/24197:
12221 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12222
12223 2019-02-17 Tom Tromey <tom@tromey.com>
12224
12225 * ada-lang.c (user_select_syms): Use filtered printing.
12226 * utils.c (wrap_style): New global.
12227 (desired_style): Remove.
12228 (emit_style_escape): Add stream parameter.
12229 (set_output_style, reset_terminal_style, prompt_for_continue):
12230 Update.
12231 (flush_wrap_buffer): Only flush gdb_stdout.
12232 (wrap_here): Set wrap_style.
12233 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12234 treat escape sequences as a character. Change when wrap buffer is
12235 flushed.
12236 (fputs_styled): Do not set the output style when the default is
12237 requested.
12238 * ui-style.h (struct ui_file_style) <is_default>: New method.
12239 * source.c (print_source_lines_base): Emit escape sequences in one
12240 piece.
12241
12242 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12243
12244 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12245 integers and enumeration types.
12246
12247 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12248
12249 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12250 instead of lookup_symbol_in_language
12251 (do_exact_match): New function.
12252 (ada_get_symbol_name_matcher): Return do_exact_match when
12253 doing a verbatim match.
12254
12255 2019-02-15 Tom Tromey <tromey@adacore.com>
12256
12257 * ravenscar-thread.c (ravenscar_thread_target::resume)
12258 (ravenscar_thread_target::wait): Special case wildcard requests.
12259
12260 2019-02-15 Tom Tromey <tromey@adacore.com>
12261
12262 * ravenscar-thread.c (base_ptid): Remove.
12263 (struct ravenscar_thread_target) <close>: New method.
12264 <m_base_ptid>: New member.
12265 <update_inferior_ptid, active_task, task_is_currently_active,
12266 runtime_initialized>: Declare methods.
12267 <ravenscar_thread_target>: Add constructor.
12268 (ravenscar_thread_target::task_is_currently_active)
12269 (ravenscar_thread_target::update_inferior_ptid)
12270 (ravenscar_runtime_initialized): Rename. Now methods.
12271 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12272 (ravenscar_thread_target::update_thread_list): Update.
12273 (ravenscar_thread_target::active_task): Now method.
12274 (ravenscar_thread_target::store_registers)
12275 (ravenscar_thread_target::prepare_to_store)
12276 (ravenscar_thread_target::prepare_to_store)
12277 (ravenscar_thread_target::mourn_inferior): Update.
12278 (ravenscar_inferior_created): Use "new" to create target.
12279 (ravenscar_thread_target::get_ada_task_ptid): Update.
12280 (_initialize_ravenscar): Don't initialize base_ptid.
12281 (ravenscar_ops): Remove global.
12282
12283 2019-02-15 Tom Tromey <tromey@adacore.com>
12284
12285 * target.h (push_target): Declare new overload.
12286 * target.c (push_target): New overload, taking an rvalue reference.
12287 * remote.c (remote_target::open_1): Use push_target overload.
12288 * corelow.c (core_target_open): Use push_target overload.
12289
12290 2019-02-15 Tom Tromey <tromey@adacore.com>
12291
12292 * ravenscar-thread.c (is_ravenscar_task)
12293 (ravenscar_task_is_currently_active): Return bool.
12294 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12295 (_initialize_ravenscar): Remove "(void)".
12296 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12297 Return bool.
12298
12299 2019-02-15 Tom Tromey <tromey@adacore.com>
12300
12301 * ravenscar-thread.c (ravenscar_runtime_initializer)
12302 (has_ravenscar_runtime, get_running_thread_id)
12303 (ravenscar_thread_target::resume): Fix indentation.
12304
12305 2019-02-15 Tom Tromey <tromey@adacore.com>
12306
12307 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12308 from ravenscar_arch_ops.
12309 (sparc_ravenscar_ops::fetch_registers)
12310 (sparc_ravenscar_ops::store_registers): Now methods.
12311 (sparc_ravenscar_prepare_to_store): Remove.
12312 (sparc_ravenscar_ops): Redefine.
12313 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12314 methods and destructor. Remove members.
12315 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12316 (ravenscar_thread_target::store_registers)
12317 (ravenscar_thread_target::prepare_to_store): Update.
12318 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12319 Remove.
12320 (struct ppc_ravenscar_powerpc_ops): Derive from
12321 ravenscar_arch_ops.
12322 (ppc_ravenscar_powerpc_ops::fetch_registers)
12323 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12324 (ppc_ravenscar_powerpc_ops): Redefine.
12325 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12326 (ppc_ravenscar_e500_ops::fetch_registers)
12327 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12328 (ppc_ravenscar_e500_ops): Redefine.
12329 * aarch64-ravenscar-thread.c
12330 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12331 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12332 (aarch64_ravenscar_fetch_registers)
12333 (aarch64_ravenscar_store_registers): Now methods.
12334 (aarch64_ravenscar_ops): Redefine.
12335
12336 2019-02-15 Tom Tromey <tromey@adacore.com>
12337
12338 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12339 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12340 (ravenscar_thread_target::stopped_by_watchpoint)
12341 (ravenscar_thread_target::stopped_data_address)
12342 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12343
12344 2019-02-15 Tom Tromey <tromey@adacore.com>
12345
12346 * ravenscar-thread.c: Fix some typos.
12347
12348 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12349 Tom Tromey <tromey@adacore.com>
12350
12351 * ada-lang.c (ada_exception_sal): Change addr_string to a
12352 std::string.
12353 (create_ada_exception_catchpoint): Update.
12354
12355 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12356 Tom Tromey <tromey@adacore.com>
12357
12358 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12359 (bp_location_ops): Remove.
12360 (base_breakpoint_allocate_location): Update.
12361 (free_bp_location): Update.
12362 * ada-lang.c (class ada_catchpoint_location)
12363 <ada_catchpoint_location>: Remove ops parameter.
12364 (ada_catchpoint_location_dtor): Remove.
12365 (ada_catchpoint_location_ops): Remove.
12366 (allocate_location_exception): Update.
12367 * breakpoint.h (struct bp_location_ops): Remove.
12368 (class bp_location) <bp_location>: Remove bp_location_ops
12369 parameter.
12370 <~bp_location>: Add destructor.
12371 <ops>: Remove.
12372
12373 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12374 Pedro Alves <palves@redhat.com>
12375
12376 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12377 'PATH_MAX'.
12378
12379 2019-02-14 David Michael <fedora.dm0@gmail.com>
12380 Samuel Thibault <samuel.thibault@gnu.org>
12381 Thomas Schwinge <thomas@codesourcery.com>
12382
12383 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12384 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12385
12386 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12387
12388 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12389 (check_empty): Use "const char *".
12390
12391 * gnu-nat.c (gnu_nat_target::detach): Instead of
12392 'detach_inferior (pid)' call
12393 'detach_inferior (find_inferior_pid (pid))'.
12394
12395 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12396 'nat/fork-inferior.o'.
12397 * gnu-nat.c: #include "nat/fork-inferior.h".
12398
12399 * gnu-nat.c (gnu_nat_target::detach): Instead of
12400 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12401 * gnu-nat.h: #include "inf-child.h".
12402 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12403 'i386_gnu_nat_target::fetch_registers'.
12404 (gnu_store_registers): Rename/move to
12405 'i386_gnu_nat_target::store_registers'.
12406
12407 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12408 * gnu-nat.h (mach_thread_info): New function.
12409 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12410
12411 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12412
12413 2019-02-14 Frederic Konrad <konrad@adacore.com>
12414
12415 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12416
12417 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12418
12419 * windows-nat.c (windows_add_thread): Add new parameter
12420 "main_thread_p" with default value set to false. Update
12421 function documentation as well as all callers.
12422 (windows_delete_thread): Likewise.
12423 (fake_create_process): Update call to windows_add_thread.
12424 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12425 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12426 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12427 call to windows_delete_thread.
12428
12429 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12430
12431 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12432
12433 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12434
12435 * symfile.c (find_separate_debug_file): Use canonical path of
12436 sysroot with child_path instead of gdb_sysroot if it is valid.
12437
12438 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12439
12440 * symfile.c (find_separate_debug_file): Use child_path to
12441 determine if an object file is under a sysroot.
12442
12443 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12444
12445 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12446 unittests/child-path-selftests.c.
12447 * common/pathstuff.c (child_path): New function.
12448 * common/pathstuff.h (child_path): New prototype.
12449 * unittests/child-path-selftests.c: New file.
12450
12451 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12452
12453 * symfile.c (find_separate_debug_file): Look for separate debug
12454 files in debug directories under the sysroot.
12455
12456 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12457
12458 * symtab.h (struct minimal_symbol data_p): New const method.
12459 (struct minimal_symbol text_p): Likewise.
12460 * symtab.c (output_source_filename): Use file name style
12461 to print file name.
12462 (print_symbol_info): Likewise.
12463 (print_msymbol_info): Use address style to print addresses.
12464 Use function name style to print executable text symbols.
12465 (expand_symtab_containing_pc): Use data_p.
12466 (find_pc_sect_compunit_symtab): Likewise.
12467
12468 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12469
12470 * breakpoint.c (describe_other_breakpoints): Use address style
12471 to print addresses.
12472 (say_where): Likewise.
12473
12474 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12475
12476 * ada-typeprint.c (print_func_type): Print function name
12477 style to print function name.
12478 * c-typeprint.c (c_print_type_1): Likewise.
12479
12480 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12481
12482 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12483 for execve.
12484
12485 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12486
12487 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12488 type_stack.
12489
12490 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12491
12492 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12493 TYPE_CODE_REF types.
12494
12495 2019-02-08 Jim Wilson <jimw@sifive.com>
12496
12497 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12498 (riscv_linux_fregset): New.
12499 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12500
12501 2019-02-07 Tom Tromey <tom@tromey.com>
12502
12503 * thread.c (thread_cancel_execution_command): Update.
12504 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12505 methods.
12506 (struct thread_fsm_ops): Remove.
12507 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12508 (thread_fsm_should_stop, thread_fsm_return_value)
12509 (thread_fsm_set_finished, thread_fsm_finished_p)
12510 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12511 Don't declare.
12512 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12513 * infrun.c (clear_proceed_status_thread)
12514 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12515 (print_stop_event): Update.
12516 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12517 Add constructor.
12518 (step_command_fsm_ops): Remove.
12519 (new_step_command_fsm): Remove.
12520 (step_1): Update.
12521 (step_command_fsm::should_stop): Rename from
12522 step_command_fsm_should_stop.
12523 (step_command_fsm::clean_up): Rename from
12524 step_command_fsm_clean_up.
12525 (step_command_fsm::do_async_reply_reason): Rename from
12526 step_command_fsm_async_reply_reason.
12527 (struct until_next_fsm): Inherit from thread_fsm. Add
12528 constructor.
12529 (until_next_fsm_ops): Remove.
12530 (new_until_next_fsm): Remove.
12531 (until_next_fsm::should_stop): Rename from
12532 until_next_fsm_should_stop.
12533 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12534 (until_next_fsm::do_async_reply_reason): Rename from
12535 until_next_fsm_async_reply_reason.
12536 (struct finish_command_fsm): Inherit from thread_fsm. Add
12537 constructor. Change type of breakpoint.
12538 (finish_command_fsm_ops): Remove.
12539 (new_finish_command_fsm): Remove.
12540 (finish_command_fsm::should_stop): Rename from
12541 finish_command_fsm_should_stop.
12542 (finish_command_fsm::clean_up): Rename from
12543 finish_command_fsm_clean_up.
12544 (finish_command_fsm::return_value): Rename from
12545 finish_command_fsm_return_value.
12546 (finish_command_fsm::do_async_reply_reason): Rename from
12547 finish_command_fsm_async_reply_reason.
12548 (finish_command): Update.
12549 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12550 Add constructor.
12551 (call_thread_fsm_ops): Remove.
12552 (call_thread_fsm::call_thread_fsm): Rename from
12553 new_call_thread_fsm.
12554 (call_thread_fsm::should_stop): Rename from
12555 call_thread_fsm_should_stop.
12556 (call_thread_fsm::should_notify_stop): Rename from
12557 call_thread_fsm_should_notify_stop.
12558 (run_inferior_call, call_function_by_hand_dummy): Update.
12559 * cli/cli-interp.c (should_print_stop_to_console): Update.
12560 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12561 Add constructor. Change type of location_breakpoint,
12562 caller_breakpoint.
12563 (until_break_fsm_ops): Remove.
12564 (new_until_break_fsm): Remove.
12565 (until_break_fsm::should_stop): Rename from
12566 until_break_fsm_should_stop.
12567 (until_break_fsm::clean_up): Rename from
12568 until_break_fsm_clean_up.
12569 (until_break_fsm::do_async_reply_reason): Rename from
12570 until_break_fsm_async_reply_reason.
12571 (until_break_command): Update.
12572 * thread-fsm.c: Remove.
12573 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12574
12575 2019-02-07 Tom Tromey <tom@tromey.com>
12576
12577 * yy-remap.h: Add include guard.
12578 * xtensa-tdep.h: Add include guard.
12579 * xcoffread.h: Rename include guard.
12580 * varobj-iter.h: Add include guard.
12581 * tui/tui.h: Rename include guard.
12582 * tui/tui-winsource.h: Rename include guard.
12583 * tui/tui-wingeneral.h: Rename include guard.
12584 * tui/tui-windata.h: Rename include guard.
12585 * tui/tui-win.h: Rename include guard.
12586 * tui/tui-stack.h: Rename include guard.
12587 * tui/tui-source.h: Rename include guard.
12588 * tui/tui-regs.h: Rename include guard.
12589 * tui/tui-out.h: Rename include guard.
12590 * tui/tui-layout.h: Rename include guard.
12591 * tui/tui-io.h: Rename include guard.
12592 * tui/tui-hooks.h: Rename include guard.
12593 * tui/tui-file.h: Rename include guard.
12594 * tui/tui-disasm.h: Rename include guard.
12595 * tui/tui-data.h: Rename include guard.
12596 * tui/tui-command.h: Rename include guard.
12597 * tic6x-tdep.h: Add include guard.
12598 * target/waitstatus.h: Rename include guard.
12599 * target/wait.h: Rename include guard.
12600 * target/target.h: Rename include guard.
12601 * target/resume.h: Rename include guard.
12602 * target-float.h: Rename include guard.
12603 * stabsread.h: Add include guard.
12604 * rs6000-tdep.h: Add include guard.
12605 * riscv-fbsd-tdep.h: Add include guard.
12606 * regformats/regdef.h: Rename include guard.
12607 * record.h: Rename include guard.
12608 * python/python.h: Rename include guard.
12609 * python/python-internal.h: Rename include guard.
12610 * python/py-stopevent.h: Rename include guard.
12611 * python/py-ref.h: Rename include guard.
12612 * python/py-record.h: Rename include guard.
12613 * python/py-record-full.h: Rename include guard.
12614 * python/py-record-btrace.h: Rename include guard.
12615 * python/py-instruction.h: Rename include guard.
12616 * python/py-events.h: Rename include guard.
12617 * python/py-event.h: Rename include guard.
12618 * procfs.h: Add include guard.
12619 * proc-utils.h: Add include guard.
12620 * p-lang.h: Add include guard.
12621 * or1k-tdep.h: Rename include guard.
12622 * observable.h: Rename include guard.
12623 * nto-tdep.h: Rename include guard.
12624 * nat/x86-linux.h: Rename include guard.
12625 * nat/x86-linux-dregs.h: Rename include guard.
12626 * nat/x86-gcc-cpuid.h: Add include guard.
12627 * nat/x86-dregs.h: Rename include guard.
12628 * nat/x86-cpuid.h: Rename include guard.
12629 * nat/ppc-linux.h: Rename include guard.
12630 * nat/mips-linux-watch.h: Rename include guard.
12631 * nat/linux-waitpid.h: Rename include guard.
12632 * nat/linux-ptrace.h: Rename include guard.
12633 * nat/linux-procfs.h: Rename include guard.
12634 * nat/linux-osdata.h: Rename include guard.
12635 * nat/linux-nat.h: Rename include guard.
12636 * nat/linux-namespaces.h: Rename include guard.
12637 * nat/linux-btrace.h: Rename include guard.
12638 * nat/glibc_thread_db.h: Rename include guard.
12639 * nat/gdb_thread_db.h: Rename include guard.
12640 * nat/gdb_ptrace.h: Rename include guard.
12641 * nat/fork-inferior.h: Rename include guard.
12642 * nat/amd64-linux-siginfo.h: Rename include guard.
12643 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12644 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12645 * nat/aarch64-linux.h: Rename include guard.
12646 * nat/aarch64-linux-hw-point.h: Rename include guard.
12647 * mn10300-tdep.h: Add include guard.
12648 * mips-linux-tdep.h: Add include guard.
12649 * mi/mi-parse.h: Rename include guard.
12650 * mi/mi-out.h: Rename include guard.
12651 * mi/mi-main.h: Rename include guard.
12652 * mi/mi-interp.h: Rename include guard.
12653 * mi/mi-getopt.h: Rename include guard.
12654 * mi/mi-console.h: Rename include guard.
12655 * mi/mi-common.h: Rename include guard.
12656 * mi/mi-cmds.h: Rename include guard.
12657 * mi/mi-cmd-break.h: Rename include guard.
12658 * m2-lang.h: Add include guard.
12659 * location.h: Rename include guard.
12660 * linux-record.h: Rename include guard.
12661 * linux-nat.h: Add include guard.
12662 * linux-fork.h: Add include guard.
12663 * i386-darwin-tdep.h: Rename include guard.
12664 * hppa-linux-offsets.h: Add include guard.
12665 * guile/guile.h: Rename include guard.
12666 * guile/guile-internal.h: Rename include guard.
12667 * gnu-nat.h: Rename include guard.
12668 * gdb-stabs.h: Rename include guard.
12669 * frv-tdep.h: Add include guard.
12670 * f-lang.h: Add include guard.
12671 * event-loop.h: Add include guard.
12672 * darwin-nat.h: Rename include guard.
12673 * cp-abi.h: Rename include guard.
12674 * config/sparc/nm-sol2.h: Rename include guard.
12675 * config/nm-nto.h: Rename include guard.
12676 * config/nm-linux.h: Add include guard.
12677 * config/i386/nm-i386gnu.h: Rename include guard.
12678 * config/djgpp/nl_types.h: Rename include guard.
12679 * config/djgpp/langinfo.h: Rename include guard.
12680 * compile/gcc-cp-plugin.h: Add include guard.
12681 * compile/gcc-c-plugin.h: Add include guard.
12682 * compile/compile.h: Rename include guard.
12683 * compile/compile-object-run.h: Rename include guard.
12684 * compile/compile-object-load.h: Rename include guard.
12685 * compile/compile-internal.h: Rename include guard.
12686 * compile/compile-cplus.h: Rename include guard.
12687 * compile/compile-c.h: Rename include guard.
12688 * common/xml-utils.h: Rename include guard.
12689 * common/x86-xstate.h: Rename include guard.
12690 * common/version.h: Rename include guard.
12691 * common/vec.h: Rename include guard.
12692 * common/tdesc.h: Rename include guard.
12693 * common/selftest.h: Rename include guard.
12694 * common/scoped_restore.h: Rename include guard.
12695 * common/scoped_mmap.h: Rename include guard.
12696 * common/scoped_fd.h: Rename include guard.
12697 * common/safe-iterator.h: Rename include guard.
12698 * common/run-time-clock.h: Rename include guard.
12699 * common/refcounted-object.h: Rename include guard.
12700 * common/queue.h: Rename include guard.
12701 * common/ptid.h: Rename include guard.
12702 * common/print-utils.h: Rename include guard.
12703 * common/preprocessor.h: Rename include guard.
12704 * common/pathstuff.h: Rename include guard.
12705 * common/observable.h: Rename include guard.
12706 * common/netstuff.h: Rename include guard.
12707 * common/job-control.h: Rename include guard.
12708 * common/host-defs.h: Rename include guard.
12709 * common/gdb_wait.h: Rename include guard.
12710 * common/gdb_vecs.h: Rename include guard.
12711 * common/gdb_unlinker.h: Rename include guard.
12712 * common/gdb_unique_ptr.h: Rename include guard.
12713 * common/gdb_tilde_expand.h: Rename include guard.
12714 * common/gdb_sys_time.h: Rename include guard.
12715 * common/gdb_string_view.h: Rename include guard.
12716 * common/gdb_splay_tree.h: Rename include guard.
12717 * common/gdb_setjmp.h: Rename include guard.
12718 * common/gdb_ref_ptr.h: Rename include guard.
12719 * common/gdb_optional.h: Rename include guard.
12720 * common/gdb_locale.h: Rename include guard.
12721 * common/gdb_assert.h: Rename include guard.
12722 * common/filtered-iterator.h: Rename include guard.
12723 * common/filestuff.h: Rename include guard.
12724 * common/fileio.h: Rename include guard.
12725 * common/environ.h: Rename include guard.
12726 * common/common-utils.h: Rename include guard.
12727 * common/common-types.h: Rename include guard.
12728 * common/common-regcache.h: Rename include guard.
12729 * common/common-inferior.h: Rename include guard.
12730 * common/common-gdbthread.h: Rename include guard.
12731 * common/common-exceptions.h: Rename include guard.
12732 * common/common-defs.h: Rename include guard.
12733 * common/common-debug.h: Rename include guard.
12734 * common/cleanups.h: Rename include guard.
12735 * common/buffer.h: Rename include guard.
12736 * common/btrace-common.h: Rename include guard.
12737 * common/break-common.h: Rename include guard.
12738 * cli/cli-utils.h: Rename include guard.
12739 * cli/cli-style.h: Rename include guard.
12740 * cli/cli-setshow.h: Rename include guard.
12741 * cli/cli-script.h: Rename include guard.
12742 * cli/cli-interp.h: Rename include guard.
12743 * cli/cli-decode.h: Rename include guard.
12744 * cli/cli-cmds.h: Rename include guard.
12745 * charset-list.h: Add include guard.
12746 * buildsym-legacy.h: Rename include guard.
12747 * bfin-tdep.h: Add include guard.
12748 * ax.h: Rename include guard.
12749 * arm-linux-tdep.h: Add include guard.
12750 * arm-fbsd-tdep.h: Add include guard.
12751 * arch/xtensa.h: Rename include guard.
12752 * arch/tic6x.h: Add include guard.
12753 * arch/i386.h: Add include guard.
12754 * arch/arm.h: Rename include guard.
12755 * arch/arm-linux.h: Rename include guard.
12756 * arch/arm-get-next-pcs.h: Rename include guard.
12757 * arch/amd64.h: Add include guard.
12758 * arch/aarch64-insn.h: Rename include guard.
12759 * arch-utils.h: Rename include guard.
12760 * annotate.h: Add include guard.
12761 * amd64-darwin-tdep.h: Rename include guard.
12762 * aarch64-linux-tdep.h: Add include guard.
12763 * aarch64-fbsd-tdep.h: Add include guard.
12764 * aarch32-linux-nat.h: Add include guard.
12765
12766 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12767
12768 * macrotab.c (macro_define_internal): New function that
12769 factorizes macro_define_object_internal and macro_define_function
12770 code.
12771 (macro_define_object_internal): Use macro_define_internal.
12772 (macro_define_function): Likewise.
12773
12774 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12775
12776 * macrocmd.c (extract_identifier): Return
12777 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12778 callers.
12779
12780 2019-02-06 John Baldwin <jhb@FreeBSD.org>
12781
12782 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12783
12784 2019-02-05 Tom Tromey <tom@tromey.com>
12785
12786 * target.c (target_stack::unpush): Move assertion earlier.
12787
12788 2019-01-30 Tom Tromey <tom@tromey.com>
12789
12790 PR python/23615:
12791 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12792 (gdbpy_parse_and_eval): Likewise.
12793 * python/python-internal.h (gdbpy_allow_threads): New class.
12794
12795 2019-01-28 John Baldwin <jhb@FreeBSD.org>
12796
12797 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12798 (aarch64_fbsd_fpregmap): Move earlier.
12799 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12800 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12801 instead of individual calls to trad_frame_set_reg_addr.
12802 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12803 earlier.
12804 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12805 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12806 instead of individual calls to trad_frame_set_reg_addr.
12807
12808 2019-01-28 Alan Hayward <alan.hayward@arm.com>
12809
12810 * CONTRIBUTE: Replace contribution list with wiki link.
12811
12812 2019-01-25 Tom Tromey <tom@tromey.com>
12813
12814 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12815
12816 2019-01-25 Tom Tromey <tom@tromey.com>
12817
12818 * xtensa-linux-nat.c: Fix common/ includes.
12819 * xml-support.h: Fix common/ includes.
12820 * xml-support.c: Fix common/ includes.
12821 * x86-linux-nat.c: Fix common/ includes.
12822 * windows-nat.c: Fix common/ includes.
12823 * varobj.h: Fix common/ includes.
12824 * varobj.c: Fix common/ includes.
12825 * value.c: Fix common/ includes.
12826 * valops.c: Fix common/ includes.
12827 * utils.c: Fix common/ includes.
12828 * unittests/xml-utils-selftests.c: Fix common/ includes.
12829 * unittests/utils-selftests.c: Fix common/ includes.
12830 * unittests/unpack-selftests.c: Fix common/ includes.
12831 * unittests/tracepoint-selftests.c: Fix common/ includes.
12832 * unittests/style-selftests.c: Fix common/ includes.
12833 * unittests/string_view-selftests.c: Fix common/ includes.
12834 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12835 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12836 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12837 * unittests/rsp-low-selftests.c: Fix common/ includes.
12838 * unittests/parse-connection-spec-selftests.c: Fix common/
12839 includes.
12840 * unittests/optional-selftests.c: Fix common/ includes.
12841 * unittests/offset-type-selftests.c: Fix common/ includes.
12842 * unittests/observable-selftests.c: Fix common/ includes.
12843 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12844 * unittests/memrange-selftests.c: Fix common/ includes.
12845 * unittests/memory-map-selftests.c: Fix common/ includes.
12846 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12847 * unittests/function-view-selftests.c: Fix common/ includes.
12848 * unittests/environ-selftests.c: Fix common/ includes.
12849 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12850 * unittests/common-utils-selftests.c: Fix common/ includes.
12851 * unittests/cli-utils-selftests.c: Fix common/ includes.
12852 * unittests/array-view-selftests.c: Fix common/ includes.
12853 * ui-file.c: Fix common/ includes.
12854 * tui/tui-io.c: Fix common/ includes.
12855 * tracepoint.h: Fix common/ includes.
12856 * tracepoint.c: Fix common/ includes.
12857 * tracefile-tfile.c: Fix common/ includes.
12858 * top.h: Fix common/ includes.
12859 * top.c: Fix common/ includes.
12860 * thread.c: Fix common/ includes.
12861 * target/waitstatus.h: Fix common/ includes.
12862 * target/waitstatus.c: Fix common/ includes.
12863 * target.h: Fix common/ includes.
12864 * target.c: Fix common/ includes.
12865 * target-memory.c: Fix common/ includes.
12866 * target-descriptions.c: Fix common/ includes.
12867 * symtab.h: Fix common/ includes.
12868 * symfile.c: Fix common/ includes.
12869 * stap-probe.c: Fix common/ includes.
12870 * spu-linux-nat.c: Fix common/ includes.
12871 * sparc-nat.c: Fix common/ includes.
12872 * source.c: Fix common/ includes.
12873 * solib.c: Fix common/ includes.
12874 * solib-target.c: Fix common/ includes.
12875 * ser-unix.c: Fix common/ includes.
12876 * ser-tcp.c: Fix common/ includes.
12877 * ser-pipe.c: Fix common/ includes.
12878 * ser-base.c: Fix common/ includes.
12879 * selftest-arch.c: Fix common/ includes.
12880 * s12z-tdep.c: Fix common/ includes.
12881 * rust-exp.y: Fix common/ includes.
12882 * rs6000-aix-tdep.c: Fix common/ includes.
12883 * riscv-tdep.c: Fix common/ includes.
12884 * remote.c: Fix common/ includes.
12885 * remote-notif.h: Fix common/ includes.
12886 * remote-fileio.h: Fix common/ includes.
12887 * remote-fileio.c: Fix common/ includes.
12888 * regcache.h: Fix common/ includes.
12889 * regcache.c: Fix common/ includes.
12890 * record-btrace.c: Fix common/ includes.
12891 * python/python.c: Fix common/ includes.
12892 * python/py-type.c: Fix common/ includes.
12893 * python/py-inferior.c: Fix common/ includes.
12894 * progspace.h: Fix common/ includes.
12895 * producer.c: Fix common/ includes.
12896 * procfs.c: Fix common/ includes.
12897 * proc-api.c: Fix common/ includes.
12898 * printcmd.c: Fix common/ includes.
12899 * ppc-linux-nat.c: Fix common/ includes.
12900 * parser-defs.h: Fix common/ includes.
12901 * osdata.c: Fix common/ includes.
12902 * obsd-nat.c: Fix common/ includes.
12903 * nat/x86-linux.c: Fix common/ includes.
12904 * nat/x86-linux-dregs.c: Fix common/ includes.
12905 * nat/x86-dregs.h: Fix common/ includes.
12906 * nat/x86-dregs.c: Fix common/ includes.
12907 * nat/ppc-linux.c: Fix common/ includes.
12908 * nat/mips-linux-watch.h: Fix common/ includes.
12909 * nat/mips-linux-watch.c: Fix common/ includes.
12910 * nat/linux-waitpid.c: Fix common/ includes.
12911 * nat/linux-ptrace.h: Fix common/ includes.
12912 * nat/linux-ptrace.c: Fix common/ includes.
12913 * nat/linux-procfs.c: Fix common/ includes.
12914 * nat/linux-personality.c: Fix common/ includes.
12915 * nat/linux-osdata.c: Fix common/ includes.
12916 * nat/linux-namespaces.c: Fix common/ includes.
12917 * nat/linux-btrace.h: Fix common/ includes.
12918 * nat/linux-btrace.c: Fix common/ includes.
12919 * nat/fork-inferior.c: Fix common/ includes.
12920 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12921 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12922 * nat/aarch64-linux.c: Fix common/ includes.
12923 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12924 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12925 * namespace.h: Fix common/ includes.
12926 * mips-linux-tdep.c: Fix common/ includes.
12927 * minsyms.c: Fix common/ includes.
12928 * mi/mi-parse.h: Fix common/ includes.
12929 * mi/mi-main.c: Fix common/ includes.
12930 * mi/mi-cmd-env.c: Fix common/ includes.
12931 * memrange.h: Fix common/ includes.
12932 * memattr.c: Fix common/ includes.
12933 * maint.h: Fix common/ includes.
12934 * maint.c: Fix common/ includes.
12935 * main.c: Fix common/ includes.
12936 * machoread.c: Fix common/ includes.
12937 * location.c: Fix common/ includes.
12938 * linux-thread-db.c: Fix common/ includes.
12939 * linux-nat.c: Fix common/ includes.
12940 * linux-fork.c: Fix common/ includes.
12941 * inline-frame.c: Fix common/ includes.
12942 * infrun.c: Fix common/ includes.
12943 * inflow.c: Fix common/ includes.
12944 * inferior.h: Fix common/ includes.
12945 * inferior.c: Fix common/ includes.
12946 * infcmd.c: Fix common/ includes.
12947 * inf-ptrace.c: Fix common/ includes.
12948 * inf-child.c: Fix common/ includes.
12949 * ia64-linux-nat.c: Fix common/ includes.
12950 * i387-tdep.c: Fix common/ includes.
12951 * i386-tdep.c: Fix common/ includes.
12952 * i386-linux-tdep.c: Fix common/ includes.
12953 * i386-linux-nat.c: Fix common/ includes.
12954 * i386-go32-tdep.c: Fix common/ includes.
12955 * i386-fbsd-tdep.c: Fix common/ includes.
12956 * i386-fbsd-nat.c: Fix common/ includes.
12957 * guile/scm-type.c: Fix common/ includes.
12958 * guile/guile.c: Fix common/ includes.
12959 * go32-nat.c: Fix common/ includes.
12960 * gnu-nat.c: Fix common/ includes.
12961 * gdbthread.h: Fix common/ includes.
12962 * gdbarch-selftests.c: Fix common/ includes.
12963 * gdb_usleep.c: Fix common/ includes.
12964 * gdb_select.h: Fix common/ includes.
12965 * gdb_bfd.c: Fix common/ includes.
12966 * gcore.c: Fix common/ includes.
12967 * fork-child.c: Fix common/ includes.
12968 * findvar.c: Fix common/ includes.
12969 * fbsd-nat.c: Fix common/ includes.
12970 * event-top.c: Fix common/ includes.
12971 * event-loop.c: Fix common/ includes.
12972 * dwarf2read.c: Fix common/ includes.
12973 * dwarf2loc.c: Fix common/ includes.
12974 * dwarf2-frame.c: Fix common/ includes.
12975 * dwarf-index-cache.c: Fix common/ includes.
12976 * dtrace-probe.c: Fix common/ includes.
12977 * disasm-selftests.c: Fix common/ includes.
12978 * defs.h: Fix common/ includes.
12979 * csky-tdep.c: Fix common/ includes.
12980 * cp-valprint.c: Fix common/ includes.
12981 * cp-support.h: Fix common/ includes.
12982 * cp-support.c: Fix common/ includes.
12983 * corelow.c: Fix common/ includes.
12984 * completer.h: Fix common/ includes.
12985 * completer.c: Fix common/ includes.
12986 * compile/compile.c: Fix common/ includes.
12987 * compile/compile-loc2c.c: Fix common/ includes.
12988 * compile/compile-cplus-types.c: Fix common/ includes.
12989 * compile/compile-cplus-symbols.c: Fix common/ includes.
12990 * command.h: Fix common/ includes.
12991 * cli/cli-dump.c: Fix common/ includes.
12992 * cli/cli-cmds.c: Fix common/ includes.
12993 * charset.c: Fix common/ includes.
12994 * build-id.c: Fix common/ includes.
12995 * btrace.h: Fix common/ includes.
12996 * btrace.c: Fix common/ includes.
12997 * breakpoint.h: Fix common/ includes.
12998 * breakpoint.c: Fix common/ includes.
12999 * ax.h:
13000 (enum agent_op): Fix common/ includes.
13001 * ax-general.c (struct aop_map): Fix common/ includes.
13002 * ax-gdb.c: Fix common/ includes.
13003 * auxv.c: Fix common/ includes.
13004 * auto-load.c: Fix common/ includes.
13005 * arm-tdep.c: Fix common/ includes.
13006 * arch/riscv.c: Fix common/ includes.
13007 * arch/ppc-linux-common.c: Fix common/ includes.
13008 * arch/i386.c: Fix common/ includes.
13009 * arch/arm.c: Fix common/ includes.
13010 * arch/arm-linux.c: Fix common/ includes.
13011 * arch/arm-get-next-pcs.c: Fix common/ includes.
13012 * arch/amd64.c: Fix common/ includes.
13013 * arch/aarch64.c: Fix common/ includes.
13014 * arch/aarch64-insn.c: Fix common/ includes.
13015 * arch-utils.c: Fix common/ includes.
13016 * amd64-windows-tdep.c: Fix common/ includes.
13017 * amd64-tdep.c: Fix common/ includes.
13018 * amd64-sol2-tdep.c: Fix common/ includes.
13019 * amd64-obsd-tdep.c: Fix common/ includes.
13020 * amd64-nbsd-tdep.c: Fix common/ includes.
13021 * amd64-linux-tdep.c: Fix common/ includes.
13022 * amd64-linux-nat.c: Fix common/ includes.
13023 * amd64-fbsd-tdep.c: Fix common/ includes.
13024 * amd64-fbsd-nat.c: Fix common/ includes.
13025 * amd64-dicos-tdep.c: Fix common/ includes.
13026 * amd64-darwin-tdep.c: Fix common/ includes.
13027 * agent.c: Fix common/ includes.
13028 * ada-lang.h: Fix common/ includes.
13029 * ada-lang.c: Fix common/ includes.
13030 * aarch64-tdep.c: Fix common/ includes.
13031
13032 2019-01-25 Tom Tromey <tom@tromey.com>
13033
13034 * common/create-version.sh: Use common/version.h.
13035
13036 2019-01-24 Pedro Alves <palves@redhat.com>
13037
13038 * infrun.c (signal_stop, signal_print, signal_program)
13039 (signal_catch, signal_pass): Now arrays instead of pointers.
13040 (update_signals_program_target, do_target_resume)
13041 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13042 * linux-nat.c (linux_nat_target::pass_signals)
13043 (linux_nat_target::create_inferior, linux_nat_target::attach):
13044 Adjust.
13045 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13046 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13047 * procfs.c (procfs_target::pass_signals): Adjust.
13048 * record-full.c (record_full_target::resume): Adjust.
13049 * remote.c (remote_target::pass_signals)
13050 (remote_target::program_signals): Adjust.
13051 * target-debug.h (target_debug_print_signals): Now takes a
13052 gdb::array_view as parameter. Adjust.
13053 * target.h (target_ops) <pass_signals, program_signals>: Replace
13054 pointer and length parameters with gdb::array_view.
13055 (target_pass_signals, target_program_signals): Likewise.
13056 * target-delegates.c: Regenerate.
13057
13058 2019-01-24 Pedro Alves <palves@redhat.com>
13059
13060 * common/forward-scope-exit.h
13061 (forward_scope_exit::forward_scope_exit): Pass arguments to
13062 m_bind_function directly, instead of creating a std::bind and
13063 copying that.
13064
13065 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13066
13067 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13068 for static members.
13069 (pass_in_v_vfp_candidate): Likewise.
13070
13071 2019-01-23 Tom Tromey <tom@tromey.com>
13072 Pedro Alves <palves@redhat.com>
13073
13074 * regcache.c (class regcache_invalidator): Remove.
13075 (regcache::raw_write): Use make_scope_exit.
13076
13077 2019-01-23 Tom Tromey <tom@tromey.com>
13078
13079 * ui-out.h (class ui_out_emit_type): Update comment.
13080
13081 2019-01-23 Tom Tromey <tom@tromey.com>
13082
13083 * infrun.c (fetch_inferior_event): Update comment.
13084
13085 2019-01-23 Tom Tromey <tom@tromey.com>
13086 Pedro Alves <palves@redhat.com>
13087
13088 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13089 parameter.
13090 (fetch_inferior_event): Use SCOPE_EXIT.
13091
13092
13093 2019-01-23 Tom Tromey <tom@tromey.com>
13094 Pedro Alves <palves@redhat.com>
13095
13096 * infrun.c (disable_thread_events): Delete.
13097 (stop_all_threads): Use SCOPE_EXIT.
13098
13099 2019-01-23 Tom Tromey <tom@tromey.com>
13100 Pedro Alves <palves@redhat.com>
13101
13102 * symfile.c: Include forward-scope-exit.h.
13103 (clear_symtab_users_cleanup): Replace forward declaration with
13104 a FORWARD_SCOPE_EXIT.
13105 (syms_from_objfile_1): Use the forward_scope_exit and
13106 gdb::optional instead of cleanup_function.
13107 (reread_symbols): Use the forward_scope_exit instead of
13108 cleanup_function.
13109 (clear_symtab_users_cleanup): Remove function.
13110
13111 2019-01-23 Tom Tromey <tom@tromey.com>
13112 Pedro Alves <palves@redhat.com>
13113
13114 * linux-nat.c: Include scope-exit.h.
13115 (cleanup_target_stop): Remove.
13116 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13117 SCOPE_EXIT.
13118
13119 2019-01-23 Tom Tromey <tom@tromey.com>
13120 Pedro Alves <palves@redhat.com>
13121
13122 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13123 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13124
13125 2019-01-23 Tom Tromey <tom@tromey.com>
13126 Andrew Burgess <andrew.burgess@embecosm.com>
13127 Pedro Alves <palves@redhat.com>
13128
13129 * infrun.c (fetch_inferior_event): Use scope_exit.
13130 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13131 * top.c (execute_command): Use scope_exit.
13132 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13133 * utils.c (do_bpstat_clear_actions_cleanup)
13134 (make_bpstat_clear_actions_cleanup): Remove.
13135
13136 2019-01-23 Tom Tromey <tom@tromey.com>
13137 Pedro Alves <palves@redhat.com>
13138
13139 * infrun.c: Include "common/scope-exit.h"
13140 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13141 (wait_for_inferior): Use SCOPE_EXIT.
13142 (fetch_inferior_event): Use scope_exit.
13143
13144 2019-01-23 Tom Tromey <tom@tromey.com>
13145 Pedro Alves <palves@redhat.com>
13146
13147 * breakpoint.c (create_breakpoint): Remove cleanup.
13148
13149 2019-01-23 Tom Tromey <tom@tromey.com>
13150 Andrew Burgess <andrew.burgess@embecosm.com>
13151 Pedro Alves <palves@redhat.com>
13152
13153 2019-01-23 Pedro Alves <palves@redhat.com>
13154
13155 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13156
13157 2019-01-23 Pedro Alves <palves@redhat.com>
13158 Andrew Burgess <andrew.burgess@embecosm.com>
13159
13160 * gdbthread.h: Include "common/forward-scope-exit.h".
13161 (scoped_finish_thread_state): Redefine custom class in terms of
13162 forward_scope_exit.
13163
13164 2019-01-23 Pedro Alves <palves@redhat.com>
13165 Andrew Burgess <andrew.burgess@embecosm.com>
13166
13167 * common/forward-scope-exit.h: New file.
13168
13169 2019-01-23 Pedro Alves <palves@redhat.com>
13170 Andrew Burgess <andrew.burgess@embecosm.com>
13171 Tom Tromey <tom@tromey.com>
13172
13173 * common/scope-exit.h: New file.
13174
13175 2019-01-23 Pedro Alves <palves@redhat.com>
13176
13177 * common/preprocessor.h (ESC): Rename to ...
13178 (ESC_PARENS): ... this.
13179 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13180 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13181
13182 2019-01-23 Tom Tromey <tom@tromey.com>
13183
13184 * language.h (class scoped_switch_to_sym_language_if_auto):
13185 Initialize m_lang in both cases.
13186
13187 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13188
13189 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13190 with XCNEW.
13191
13192 2019-01-22 Tom Tromey <tom@tromey.com>
13193
13194 * corelow.c: Do not include sys/file.h.
13195
13196 2019-01-22 Tom Tromey <tom@tromey.com>
13197
13198 * tui/tui-wingeneral.h: Include gdb_curses.h.
13199
13200 2019-01-22 Tom Tromey <tom@tromey.com>
13201
13202 * source-cache.h (class source_cache) <get_source_lines,
13203 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13204
13205 2019-01-22 Tom Tromey <tom@tromey.com>
13206
13207 * remote-fileio.h (struct remote_target): Declare.
13208
13209 2019-01-22 Tom Tromey <tom@tromey.com>
13210
13211 * python/py-arch.c: Do not include py-ref.h.
13212 * python/py-bpevent.c: Do not include py-ref.h.
13213 * python/py-cmd.c: Do not include py-ref.h.
13214 * python/py-continueevent.c: Do not include py-ref.h.
13215 * python/py-event.h: Do not include py-ref.h.
13216 * python/py-evtregistry.c: Do not include py-ref.h.
13217 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13218 * python/py-frame.c: Do not include py-ref.h.
13219 * python/py-framefilter.c: Do not include py-ref.h.
13220 * python/py-function.c: Do not include py-ref.h.
13221 * python/py-infevents.c: Do not include py-ref.h.
13222 * python/py-linetable.c: Do not include py-ref.h.
13223 * python/py-objfile.c: Do not include py-ref.h.
13224 * python/py-param.c: Do not include py-ref.h.
13225 * python/py-prettyprint.c: Do not include py-ref.h.
13226 * python/py-progspace.c: Do not include py-ref.h.
13227 * python/py-symbol.c: Do not include py-ref.h.
13228 * python/py-symtab.c: Do not include py-ref.h.
13229 * python/py-type.c: Do not include py-ref.h.
13230 * python/py-unwind.c: Do not include py-ref.h.
13231 * python/py-utils.c: Do not include py-ref.h.
13232 * python/py-value.c: Do not include py-ref.h.
13233 * python/py-varobj.c: Do not include py-ref.h.
13234 * python/py-xmethods.c: Do not include py-ref.h.
13235 * python/python.c: Do not include py-ref.h.
13236 * varobj.c: Do not include py-ref.h.
13237
13238 2019-01-22 Tom Tromey <tom@tromey.com>
13239
13240 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13241 keyword for bcache.
13242
13243 2019-01-22 Tom Tromey <tom@tromey.com>
13244
13245 * compile/compile-cplus-types.c: Remove a comment by #include.
13246
13247 2019-01-22 Tom Tromey <tom@tromey.com>
13248
13249 * compile/gcc-c-plugin.h: Include compile-internal.h.
13250
13251 2019-01-22 Tom Tromey <tom@tromey.com>
13252
13253 * stabsread.c (EXTERN): Do not define.
13254 (symnum, next_symbol_text_func, processing_gcc_compilation)
13255 (within_function, global_sym_chain, global_stabs)
13256 (previous_stab_code, this_object_header_files)
13257 (n_this_object_header_files)
13258 (n_allocated_this_object_header_files): Define.
13259 * stabsread.h (EXTERN): Never define. Use "extern".
13260
13261 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13262
13263 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13264 history_value.
13265
13266 2019-01-21 Tom Tromey <tom@tromey.com>
13267
13268 * ui-out.c: Fix includes.
13269 * tui/tui-source.c: Fix includes.
13270 * target.c: Fix includes.
13271 * remote.c: Fix includes.
13272 * regcache.c: Fix includes.
13273 * python/py-block.c: Fix includes.
13274 * printcmd.c: Fix includes.
13275 * or1k-tdep.c: Fix includes.
13276 * mi/mi-main.c: Fix includes.
13277 * m32r-tdep.c: Fix includes.
13278 * csky-tdep.c: Fix includes.
13279 * compile/compile-cplus-types.c: Fix includes.
13280 * cli/cli-interp.c: Fix includes.
13281
13282 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13283
13284 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13285 for padding.
13286
13287 2019-01-16 Tom Tromey <tom@tromey.com>
13288
13289 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13290 earlier.
13291 (struct objfile) <msymbols_range>: Move from top level.
13292 <msymbols>: New method.
13293 (class objfile_msymbols): Remove.
13294 * symtab.c (default_collect_symbol_completion_matches_break_on):
13295 Update.
13296 * symmisc.c (dump_msymbols): Update.
13297 * stabsread.c (scan_file_globals): Update.
13298 * objc-lang.c (info_selectors_command, info_classes_command)
13299 (find_methods): Update.
13300 * minsyms.c (find_solib_trampoline_target): Update.
13301 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13302 * coffread.c (coff_symfile_read): Update.
13303 * ada-lang.c (ada_lookup_simple_minsym)
13304 (ada_collect_symbol_completion_matches): Update.
13305
13306 2019-01-16 Tom Tromey <tom@tromey.com>
13307
13308 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13309 type. Remove no-argument constructor.
13310 <iterator::operator++>: Simplify.
13311 <begin>: Update.
13312 <end>: Use minimal_symbol_count.
13313
13314 2019-01-16 Tom Tromey <tom@tromey.com>
13315
13316 * objfiles.h (struct objfile) <psymtabs>: New method.
13317 (class objfile_psymtabs): Remove.
13318 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13319 typedef.
13320 <range>: New method.
13321 (require_partial_symbols): Change return type.
13322 * psymtab.c (require_partial_symbols)
13323 (psym_expand_symtabs_matching): Update.
13324 * mdebugread.c (parse_partial_symbols): Update.
13325 * dbxread.c (dbx_end_psymtab): Update.
13326
13327 2019-01-15 Tom Tromey <tom@tromey.com>
13328
13329 * symtab.c (lookup_objfile_from_block)
13330 (lookup_symbol_in_objfile_symtabs)
13331 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13332 (find_line_symtab, info_sources_command)
13333 (default_collect_symbol_completion_matches_break_on)
13334 (make_source_files_completion_list): Update.
13335 * symmisc.c (print_objfile_statistics, dump_objfile)
13336 (maintenance_print_symbols, maintenance_info_symtabs)
13337 (maintenance_check_symtabs, maintenance_info_line_tables):
13338 Update.
13339 * source.c (select_source_symtab)
13340 (forget_cached_source_info_for_objfile): Update.
13341 * objfiles.h (class objfile_compunits): Remove.
13342 (struct objfile) <compunits_range>: New typedef.
13343 (compunits): New method.
13344 * objfiles.c (objfile_relocate1): Update.
13345 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13346 * maint.c (count_symtabs_and_blocks): Update.
13347 * linespec.c (iterate_over_all_matching_symtabs): Update.
13348 * cp-support.c (add_symbol_overload_list_qualified): Update.
13349 * coffread.c (coff_symtab_read): Update.
13350 * ada-lang.c (add_nonlocal_symbols)
13351 (ada_collect_symbol_completion_matches)
13352 (ada_add_global_exceptions): Update.
13353
13354 2019-01-15 Tom Tromey <tom@tromey.com>
13355
13356 * progspace.h (program_space) <objfiles_safe_range>: New
13357 typedef.
13358 <objfiles_safe>: New method.
13359 * objfiles.h (class all_objfiles_safe): Remove.
13360 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13361 * jit.c (jit_inferior_exit_hook): Update.
13362
13363 2019-01-17 Tom Tromey <tom@tromey.com>
13364
13365 * progspace.h (program_space) <objfiles_range>: New typedef.
13366 <objfiles>: New method.
13367 <objfiles_head>: Rename from objfiles.
13368 (object_files): Update.
13369 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13370 * guile/scm-pretty-print.c
13371 (ppscm_find_pretty_printer_from_objfiles): Update.
13372 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13373 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13374 Update.
13375 * python/py-progspace.c (pspy_get_objfiles): Update.
13376 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13377 Update.
13378 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13379 (objfpy_lookup_objfile_by_build_id): Update.
13380 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13381 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13382 Update.
13383 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13384 (expand_symtab_containing_pc, lookup_objfile_from_block)
13385 (lookup_static_symbol, basic_lookup_transparent_type)
13386 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13387 (find_line_symtab, info_sources_command)
13388 (default_collect_symbol_completion_matches_break_on)
13389 (make_source_files_completion_list, find_main_name): Update.
13390 * symmisc.c (print_symbol_bcache_statistics)
13391 (print_objfile_statistics, maintenance_print_symbols)
13392 (maintenance_print_msymbols, maintenance_print_objfiles)
13393 (maintenance_info_symtabs, maintenance_check_symtabs)
13394 (maintenance_expand_symtabs, maintenance_info_line_tables):
13395 Update.
13396 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13397 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13398 (map_overlay_command, unmap_overlay_command)
13399 (simple_overlay_update, expand_symtabs_matching)
13400 (map_symbol_filenames): Update.
13401 * symfile-debug.c (set_debug_symfile): Update.
13402 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13403 Update.
13404 * source.c (select_source_symtab, forget_cached_source_info):
13405 Update.
13406 * solib.c (solib_read_symbols): Update.
13407 * solib-spu.c (append_ocl_sos): Update.
13408 * psymtab.c (maintenance_print_psymbols)
13409 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13410 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13411 * printcmd.c (info_symbol_command): Update.
13412 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13413 Update.
13414 * objfiles.h (class all_objfiles): Remove.
13415 * objfiles.c (have_partial_symbols, have_full_symbols)
13416 (have_minimal_symbols, qsort_cmp, update_section_map)
13417 (shared_objfile_contains_address_p)
13418 (default_iterate_over_objfiles_in_search_order): Update.
13419 * objc-lang.c (info_selectors_command, info_classes_command)
13420 (find_methods): Update.
13421 * minsyms.c (find_solib_trampoline_target): Update.
13422 * maint.c (maintenance_info_sections)
13423 (maintenance_translate_address, count_symtabs_and_blocks):
13424 Update.
13425 * main.c (captured_main_1): Update.
13426 * linux-thread-db.c (try_thread_db_load_from_pdir)
13427 (has_libpthread): Update.
13428 * linespec.c (iterate_over_all_matching_symtabs)
13429 (search_minsyms_for_name): Update.
13430 * jit.c (jit_find_objf_with_entry_addr): Update.
13431 * hppa-tdep.c (find_unwind_entry)
13432 (hppa_lookup_stub_minimal_symbol): Update.
13433 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13434 Update.
13435 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13436 (elf_gnu_ifunc_resolve_by_got): Update.
13437 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13438 * dwarf-index-write.c (save_gdb_index_command): Update.
13439 * cp-support.c (add_symbol_overload_list_qualified): Update.
13440 * breakpoint.c (create_overlay_event_breakpoint)
13441 (create_longjmp_master_breakpoint)
13442 (create_std_terminate_master_breakpoint)
13443 (create_exception_master_breakpoint): Update.
13444 * blockframe.c (find_pc_partial_function): Update.
13445 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13446 (ada_collect_symbol_completion_matches)
13447 (ada_add_global_exceptions): Update.
13448
13449 2019-01-17 Tom Tromey <tom@tromey.com>
13450
13451 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13452 declare VEC.
13453 (solib_target_parse_libraries): Change return type.
13454 (library_list_start_segment, library_list_start_section)
13455 (library_list_end_library, library_list_start_library); Update.
13456 (solib_target_free_library_list): Remove.
13457 (solib_target_parse_libraries): Remove cleanup. Change return
13458 type.
13459 (solib_target_current_sos): Update.
13460
13461 2019-01-17 Tom Tromey <tromey@bapiya>
13462
13463 * valprint.c: Replace "the the" with "the".
13464 * symtab.c: Replace "the the" with "the".
13465 * solib.c: Replace "the the" with "the".
13466 * solib-dsbt.c: Replace "the the" with "the".
13467 * linespec.c: Replace "the the" with "the".
13468 * dwarf2loc.h: Replace "the the" with "the".
13469 * amd64-windows-tdep.c: Replace "the the" with "the".
13470 * aarch64-tdep.c: Replace "the the" with "the".
13471
13472 2019-01-16 Keith Seitz <keiths@redhat.com>
13473
13474 PR gdb/23773
13475 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13476 <builder>: Rename to ..
13477 <m_builder>: ... this and make private.
13478 (dwarf2_cu::get_builder): New method. Change all users of
13479 `builder' to use this method.
13480 (dwarf2_start_symtab): Move to ...
13481 (dwarf2_cu::start_symtab): ... here. Update all callers
13482 (setup_type_unit_groups): Move to ...
13483 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13484 callers.
13485 (dwarf2_cu::reset_builder): New method.
13486 (process_full_compunit, process_full_type_unit): Use
13487 dwarf2_cu::reset_builder.
13488 (follow_die_offset): Record the ancestor CU if it is different
13489 from the followed DIE's CU.
13490 (follow_die_sig_1): Likewise.
13491
13492 2019-01-15 Tom Tromey <tom@tromey.com>
13493
13494 * remote.c (class remote_state) <buf>: Now a char_vector.
13495 <buf_size>: Remove.
13496 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13497 parameter.
13498 (remote_target::getpkt_or_notif_sane_1)
13499 (remote_target::getpkt_sane)
13500 (remote_target::getpkt_or_notif_sane): Likewise.
13501 (class remote_target) <putpkt>: New overload.
13502 (remote_target::read_frame): Change type of "buf_p". Remove
13503 sizeof_p parameter.
13504 (packet_ok): New overload.
13505 (packet_check_result): New overload.
13506 Update all uses.
13507
13508 2019-01-14 Tom Tromey <tom@tromey.com>
13509
13510 * remote-notif.c (handle_notification, remote_notif_ack)
13511 (remote_notif_parse): Make "buf" const.
13512 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13513 const.
13514 (remote_notif_parse, remote_notif_ack, handle_notification):
13515 Likewise.
13516 * remote.c (remote_notif_stop_parse): Make "buf" const.
13517 (remote_target::remote_parse_stop_reply): Make "buf" const.
13518 (remote_notif_stop_ack): Make "buf" const.
13519
13520 2019-01-14 Tom Tromey <tom@tromey.com>
13521
13522 * remote.c (remote_console_output): Make parameter const.
13523
13524 2019-01-14 Tom Tromey <tom@tromey.com>
13525
13526 * target-debug.h (target_debug_print_signals): Constify.
13527 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13528 * procfs.c (procfs_target::pass_signals): Update.
13529 * linux-nat.c (linux_nat_target::pass_signals): Update.
13530 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13531 * target-delegates.c: Rebuild.
13532 * remote.c (remote_target::program_signals): Update.
13533 (remote_target::pass_signals): Update.
13534 * target.c (target_pass_signals): Constify argument.
13535 (target_program_signals): Likewise.
13536 * target.h (struct target_ops) <pass_signals, program_signals>:
13537 Constify argument.
13538 (target_pass_signals, target_program_signals): Constify argument.
13539
13540 2019-01-14 Tom Tromey <tom@tromey.com>
13541
13542 PR tui/28819:
13543 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13544
13545 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13546
13547 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13548 field.
13549 * rs6000-tdep.c: Include reggroups.h.
13550 (IS_V_ALIAS_PSEUDOREG): Define.
13551 (rs6000_register_name): Return names for the "vX" aliases.
13552 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13553 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13554 aliases. Call default_register_reggroup_p for all other
13555 pseudo-registers.
13556 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13557 New functions.
13558 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13559 Handle "vX" aliases.
13560 (v_alias_pseudo_register_collect): New function.
13561 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13562 (rs6000_gdbarch_init): Initialize "vX" aliases as
13563 pseudo-registers. Restore registration of
13564 rs6000_pseudo_register_reggroup_p with
13565 set_tdesc_pseudo_register_reggroup_p.
13566
13567 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13568
13569 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13570 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13571 set_gdbarch_num_pseudo_regs.
13572
13573 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13574
13575 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13576 Remove arg prefixname, add do_set and do_show.
13577 Add member functions set_list and show_list.
13578 * cli/cli-style.c (class cli_style_option): Update accordingly.
13579 (style_set_list): Move to file scope.
13580 (style_show_list): Likewise.
13581 (set_style): Call help_list.
13582 (show_style): Call cmd_show_list.
13583 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13584 Update to use the new macro.
13585
13586 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13587
13588 * ada-lang.c (_initialize_ada_language): Expand the help text
13589 for the "catch exception" command.
13590
13591 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13592
13593 * symtab.c (matching_obj_sections): Initialize obj,
13594 declare it closer to its usage.
13595
13596 2019-01-10 Tom Tromey <tom@tromey.com>
13597
13598 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13599 (basic_inf_threads_range): Remove.
13600 (inf_threads_range, inf_non_exited_threads_range)
13601 (safe_inf_threads_range): Use next_adapter.
13602
13603 2019-01-10 Keith Seitz <keiths@redhat.com>
13604
13605 PR gdb/23712
13606 PR symtab/23010
13607 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13608 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13609
13610 2019-01-10 Keith Seitz <keiths@redhat.com>
13611
13612 PR gdb/23712
13613 PR symtab/23010
13614 * dictionary.c (pending_to_vector): Remove.
13615 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13616 Remove _1 suffix, replacing functions of the same name. Update
13617 all callers.
13618 (dict_create_hashed, dict_create_hashed_expandable)
13619 (dict_create_linear, dict_create_linear_expandable, dict_free)
13620 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13621 Make functions static.
13622
13623 2019-01-10 Keith Seitz <keiths@redhat.com>
13624
13625 PR gdb/23712
13626 PR symtab/23010
13627 * dictionary.h (struct dictionary): Replace declaration with
13628 multidictionary.
13629 (dict_create_hashed, dict_create_hashed_expandable)
13630 (dict_create_linear, dict_create_linear_expandable)
13631 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13632 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13633 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13634 taking multidictionary argument.
13635 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13636 * block.h (struct block) <dict>: Change to multidictionary
13637 and rename `multidict'.
13638 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13639 symmisc.c: Update all dictionary references to multidictionary.
13640
13641 2019-01-10 Keith Seitz <keiths@redhat.com>
13642
13643 PR gdb/23712
13644 PR symtab/23010
13645 * dictionary.c: Include unordered_map.
13646 (pending_to_vector): New function.
13647 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13648 Rewrite the non-"_1" functions to take vector instead
13649 of linked list.
13650 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13651 "new" _1 versions of the same name.
13652 (multidictionary): Define.
13653 (std::hash<enum language): New definition.
13654 (collate_pending_symbols_by_language, mdict_create_hashed)
13655 (mdict_create_hashed_expandable, mdict_create_linear)
13656 (mdict_create_linear_expandable, mdict_free)
13657 (find_language_dictionary, create_new_language_dictionary)
13658 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13659 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13660 (mdict_size, mdict_empty): New functions.
13661 * dictionary.h (mdict_iterator): Define.
13662
13663 2019-01-10 Pedro Alves <palves@redhat.com>
13664
13665 * breakpoint.c (read_uploaded_action)
13666 (create_tracepoint_from_upload): Adjust to use
13667 gdb::unique_xmalloc_ptr.
13668 * ctf.c (ctf_write_uploaded_tp):
13669 (SET_ARRAY_FIELD): Use emplace_back.
13670 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13671 * tracefile-tfile.c (tfile_write_uploaded_tp):
13672 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13673 gdb::unique_xmalloc_ptr.
13674 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13675 at_string, cond_string, cmd_strings>: Replace char pointers
13676 with gdb::unique_xmalloc_ptr.
13677
13678 2019-01-10 Pedro Alves <palves@redhat.com>
13679
13680 * solib-target.c (library_list_start_library): Don't xstrdup name.
13681
13682 2019-01-10 Pedro Alves <palves@redhat.com>
13683
13684 * mdebugread.c (parse_partial_symbols): Use
13685 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13686
13687 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13688
13689 * linux-fork.c (scoped_switch_fork_info)
13690 <~scoped_switch_fork_info>: Fix incorrect variable name.
13691
13692 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13693
13694 * linux-fork.c (scoped_switch_fork_info)
13695 <scoped_switch_fork_info>: Make explicit.
13696 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13697
13698 2019-01-10 Tom Tromey <tom@tromey.com>
13699
13700 * objfiles.h (objfile::reset_psymtabs): Update.
13701 * objfiles.c (objfile::objfile): Update.
13702 * psymtab.h (psymtab_storage::obstack): Update.
13703 (psymtab_storage::m_obstack): Use gdb::optional.
13704 (class psymtab_storage): Update comment. Remove objfile
13705 parameter.
13706 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13707
13708 2019-01-10 Tom Tromey <tom@tromey.com>
13709
13710 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13711 <free_psymtabs>: Now private.
13712 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13713 (allocate_psymtab): Use new method.
13714
13715 2019-01-10 Tom Tromey <tom@tromey.com>
13716
13717 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13718 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13719 * mdebugread.c (parse_partial_symbols): Use
13720 allocate_dependencies.
13721 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13722 allocate_dependencies.
13723 (process_psymtab_comp_unit_reader)
13724 (build_type_psymtab_dependencies): Likewise.
13725 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13726
13727 2019-01-10 Tom Tromey <tom@tromey.com>
13728
13729 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13730 PSYMBOL_SET_LANGUAGE.
13731 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13732
13733 2019-01-10 Tom Tromey <tom@tromey.com>
13734
13735 * psymtab.h (psymtab_storage::obstack): New method.
13736 <m_obstack>: Rename from obstack; now private.
13737 * psymtab.c (psymtab_storage): Update.
13738 * dwarf2read.c (create_addrmap_from_index)
13739 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13740 Update.
13741
13742 2019-01-10 Tom Tromey <tom@tromey.com>
13743
13744 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13745 * objfiles.h (objfile::reset_psymtabs): New method.
13746
13747 2019-01-10 Tom Tromey <tom@tromey.com>
13748
13749 * symmisc.c (print_symbol_bcache_statistics): Update.
13750 (print_objfile_statistics): Update.
13751 * symfile.c (reread_symbols): Update.
13752 * psymtab.h (class psymtab_storage): New.
13753 * psymtab.c (psymtab_storage): New constructor.
13754 (~psymtab_storage): New destructor.
13755 (require_partial_symbols): Update.
13756 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13757 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13758 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13759 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13760 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13761 (start_psymtab_common, end_psymtab_common)
13762 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13763 (allocate_psymtab): Update.
13764 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13765 Update.
13766 (dump_psymtab_addrmap, maintenance_print_psymbols)
13767 (maintenance_check_psymtabs): Update.
13768 (class objfile_psymtabs): Move to objfiles.h.
13769 * psympriv.h (discard_psymtab): Now inline.
13770 (psymtab_discarder::psymtab_discarder): Update.
13771 (psymtab_discarder::~psymtab_discarder): Update.
13772 (ALL_OBJFILE_PSYMTABS): Rewrite.
13773 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13774 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13775 Remove fields.
13776 <partial_symtabs>: New field.
13777 (class objfile_psymtabs): Move from psymtab.h. Update.
13778 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13779 psymbol_cache.
13780 (objfile::~objfile): Don't destroy psymbol_cache.
13781 * mdebugread.c (parse_partial_symbols): Update.
13782 * dwarf2read.c (create_addrmap_from_index)
13783 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13784 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13785 (add_partial_subprogram, dwarf2_ranges_read): Update.
13786 * dwarf-index-write.c (write_address_map)
13787 (write_one_signatured_type, recursively_write_psymbols)
13788 (class debug_names, class debug_names, write_psymtabs_to_index):
13789 Update.
13790
13791 2019-01-10 Tom Tromey <tom@tromey.com>
13792
13793 * symtab.h (SYMBOL_SET_NAMES): Update.
13794 (symbol_set_names): Update.
13795 (MSYMBOL_SET_NAMES): Update.
13796 * symtab.c (symbol_set_names): Change argument to be an
13797 objfile_per_bfd_storage.
13798 * psymtab.c (add_psymbol_to_bcache): Update.
13799 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13800
13801 2019-01-10 Tom Tromey <tom@tromey.com>
13802
13803 * symtab.c (create_demangled_names_hash): Change argument to be an
13804 objfile_per_bfd_storage.
13805 (symbol_set_names): Update.
13806
13807 2019-01-10 Tom Tromey <tom@tromey.com>
13808
13809 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13810 init_psymbol_list.
13811 * psymtab.c (init_psymbol_list): Do nothing if already called.
13812 * psympriv.h (init_psymbol_list): Add comment.
13813 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13814 init_psymbol_list.
13815 * dbxread.c (dbx_symfile_read): Unconditionally call
13816 init_psymbol_list.
13817
13818 2019-01-10 Tom Tromey <tom@tromey.com>
13819
13820 * xcoffread.c (scan_xcoff_symtab): Update.
13821 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13822 "where".
13823 * mdebugread.c (parse_partial_symbols)
13824 (handle_psymbol_enumerators): Update.
13825 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13826 * dbxread.c (read_dbx_symtab): Update.
13827 * psympriv.h (psymbol_placement): New enum.
13828 (add_psymbol_to_list): Update.
13829
13830 2019-01-10 Tom Tromey <tom@tromey.com>
13831
13832 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13833 static_psymbols parameters.
13834 (scan_xcoff_symtab): Update.
13835 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13836 static_psymbols parameters.
13837 * psympriv.h (start_psymtab_common): Update.
13838 * mdebugread.c (parse_partial_symbols): Update.
13839 * dwarf2read.c (create_partial_symtab): Update.
13840 * dbxread.c (read_dbx_symtab): Update.
13841 (start_psymtab): Remove global_psymbols and static_psymbols
13842 parameters.
13843
13844 2019-01-10 Tom Tromey <tom@tromey.com>
13845
13846 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13847 * psymtab.c (allocate_psymtab): Add comment.
13848 * psympriv.h (allocate_psymtab): Add comment.
13849 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13850 initializations.
13851 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13852
13853 2019-01-10 Tom Tromey <tom@tromey.com>
13854
13855 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13856 Don't declare.
13857 * mipsread.c: Include mdebugread.h.
13858 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13859 Declare.
13860 * elfread.c: Include mdebugread.h.
13861
13862 2019-01-09 Tom Tromey <tom@tromey.com>
13863
13864 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13865 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13866 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13867 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13868 (psym_lookup_symbol, psym_find_last_source_symtab)
13869 (psym_forget_cached_source_info, psym_print_stats)
13870 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13871 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13872 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13873 (psym_find_compunit_symtab_by_address)
13874 (maintenance_print_psymbols, maintenance_info_psymtabs)
13875 (maintenance_check_psymtabs): Use ranged for.
13876 * psymtab.h (class objfile_psymtabs): New.
13877 (require_partial_symbols): Return objfile_psymtabs.
13878 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13879
13880 2019-01-09 Tom Tromey <tom@tromey.com>
13881
13882 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13883 (find_pc_mapped_section, list_overlays_command)
13884 (map_overlay_command, unmap_overlay_command)
13885 (simple_overlay_update): Use all_objfiles.
13886 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13887 * printcmd.c (info_symbol_command): Use all_objfiles.
13888 * objfiles.h (ALL_OBJSECTIONS): Remove.
13889 * maint.c (maintenance_translate_address): Use all_objfiles.
13890 * gcore.c (gcore_create_callback): Use all_objfiles.
13891 (objfile_find_memory_regions): Likewise.
13892
13893 2019-01-09 Tom Tromey <tom@tromey.com>
13894
13895 * symtab.c (find_line_symtab, info_sources_command)
13896 (make_source_files_completion_list): Use objfile_compunits.
13897 * source.c (select_source_symtab): Use objfile_compunits.
13898 * objfiles.h (struct objfile): Update comment.
13899 (ALL_OBJFILES): Remove.
13900 (ALL_FILETABS): Remove.
13901 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13902 objfile_compunits.
13903
13904 2019-01-09 Tom Tromey <tom@tromey.com>
13905
13906 * symmisc.c (print_objfile_statistics, dump_objfile)
13907 (maintenance_print_symbols): Use compunit_filetabs.
13908 * source.c (forget_cached_source_info_for_objfile): Use
13909 compunit_filetabs.
13910 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13911 (ALL_FILETABS): Use compunit_filetabs.
13912 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13913 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13914
13915 2019-01-09 Tom Tromey <tom@tromey.com>
13916
13917 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13918 (compunit_filetabs): New.
13919 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13920 compunit_filetabs.
13921 (info_sources_command, make_source_files_completion_list): Remove
13922 declaration.
13923 * symmisc.c (print_objfile_statistics, dump_objfile)
13924 (maintenance_print_symbols): Remove declaration.
13925 (maintenance_info_symtabs): Use compunit_filetabs.
13926 (maintenance_info_line_tables): Likewise.
13927 * source.c (select_source_symtab): Change local variable name.
13928 (forget_cached_source_info_for_objfile): Remove declaration.
13929 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13930 * objfiles.c (objfile_relocate1): Remove declaration.
13931 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13932 declaration.
13933 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13934 * coffread.c (coff_symtab_read): Remove declaration.
13935 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13936 compunit_filetabs.
13937
13938 2019-01-09 Tom Tromey <tom@tromey.com>
13939
13940 * symtab.c (lookup_objfile_from_block)
13941 (find_pc_sect_compunit_symtab, search_symbols)
13942 (default_collect_symbol_completion_matches_break_on): Use
13943 objfile_compunits.
13944 * objfiles.h (ALL_COMPUNITS): Remove.
13945 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13946 * cp-support.c (add_symbol_overload_list_qualified): Use
13947 objfile_compunits.
13948 * ada-lang.c (ada_collect_symbol_completion_matches)
13949 (ada_add_global_exceptions): Use objfile_compunits.
13950
13951 2019-01-09 Tom Tromey <tom@tromey.com>
13952
13953 * source.c (select_source_symtab)
13954 (forget_cached_source_info_for_objfile): Remove declaration.
13955 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13956 declaration.
13957 * maint.c (count_symtabs_and_blocks): Remove declaration.
13958 * cp-support.c (add_symbol_overload_list_qualified): Remove
13959 declaration.
13960 * coffread.c (coff_symtab_read): Remove declaration.
13961 * symtab.c (lookup_symbol_in_objfile_symtabs)
13962 (basic_lookup_transparent_type_1): Use objfile_compunits.
13963 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13964 (info_sources_command, search_symbols)
13965 (default_collect_symbol_completion_matches_break_on)
13966 (make_source_files_completion_list): Remove declaration.
13967 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13968 (ada_collect_symbol_completion_matches)
13969 (ada_add_global_exceptions): Remove declaration.
13970 * linespec.c (iterate_over_all_matching_symtabs): Use
13971 objfile_compunits.
13972 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13973 (class objfile_compunits): New.
13974 (ALL_COMPUNITS): Use objfile_compunits.
13975 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13976 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13977 objfile_compunits.
13978 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13979
13980 2019-01-09 Tom Tromey <tom@tromey.com>
13981
13982 * symtab.c (search_symbols)
13983 (default_collect_symbol_completion_matches_break_on): Use
13984 objfile_msymbols.
13985 * ada-lang.c (ada_lookup_simple_minsym)
13986 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13987 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13988 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13989 objfile_msymbols.
13990 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13991 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13992 * objc-lang.c (find_methods): Use objfile_msymbols.
13993 (info_selectors_command, info_classes_command): Likewise.
13994 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13995 * objfiles.h (class objfile_msymbols): New.
13996 (ALL_OBJFILE_MSYMBOLS): Remove.
13997 (ALL_MSYMBOLS): Remove.
13998
13999 2019-01-09 Tom Tromey <tom@tromey.com>
14000
14001 * common/next-iterator.h (next_adapter): Add Iterator template
14002 parameter.
14003 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14004 (class all_objfiles_safe): New.
14005 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14006 * objfiles.c (put_objfile_before): Update comment.
14007 (add_separate_debug_objfile): Likewise.
14008 (free_all_objfiles): Use all_objfiles_safe.
14009 (objfile_purge_solibs): Likewise.
14010
14011 2019-01-09 Tom Tromey <tom@tromey.com>
14012
14013 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14014 (expand_symtab_containing_pc, lookup_static_symbol)
14015 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14016 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14017 all_objfiles.
14018 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14019 * breakpoint.c (create_overlay_event_breakpoint)
14020 (create_longjmp_master_breakpoint)
14021 (create_std_terminate_master_breakpoint)
14022 (create_exception_master_breakpoint): Use all_objfiles.
14023 * linux-thread-db.c (try_thread_db_load_from_pdir)
14024 (has_libpthread): Use all_objfiles.
14025 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14026 * linespec.c (iterate_over_all_matching_symtabs)
14027 (search_minsyms_for_name): Use all_objfiles.
14028 * maint.c (maintenance_info_sections): Use all_objfiles.
14029 * main.c (captured_main_1): Use all_objfiles.
14030 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14031 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14032 * guile/scm-pretty-print.c
14033 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14034 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14035 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14036 (maintenance_print_msymbols): Use all_objfiles.
14037 * source.c (select_source_symtab): Use all_objfiles.
14038 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14039 * symfile.c (remove_symbol_file_command)
14040 (expand_symtabs_matching, map_symbol_filenames): Use
14041 all_objfiles.
14042 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14043 all_objfiles.
14044 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14045 * objc-lang.c (find_methods): Use all_objfiles.
14046 * objfiles.c (have_partial_symbols, have_full_symbols)
14047 (have_minimal_symbols, qsort_cmp)
14048 (default_iterate_over_objfiles_in_search_order): Use
14049 all_objfiles.
14050 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14051 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14052 (maintenance_check_psymtabs): Use all_objfiles.
14053 (ALL_PSYMTABS): Remove.
14054 * compile/compile-object-run.c (do_module_cleanup): Use
14055 all_objfiles.
14056 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14057 * cp-support.c (add_symbol_overload_list_qualified): Use
14058 all_objfiles.
14059 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14060 Use all_objfiles.
14061 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14062 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14063 all_objfiles.
14064 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14065 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14066 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14067 Uses all_objfiles.
14068 * solib.c (solib_read_symbols): Use all_objfiles
14069
14070 2019-01-09 Tom Tromey <tom@tromey.com>
14071
14072 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14073 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14074 all_objfiles.
14075 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14076 * symmisc.c (print_symbol_bcache_statistics)
14077 (print_objfile_statistics, maintenance_print_objfiles)
14078 (maintenance_info_symtabs, maintenance_check_symtabs)
14079 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14080 all_objfiles.
14081 * source.c (forget_cached_source_info): Use all_objfiles.
14082 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14083 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14084 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14085 * objfiles.c (update_section_map): Use all_objfiles.
14086 (shared_objfile_contains_address_p): Likewise.
14087 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14088 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14089
14090 2019-01-09 Tom Tromey <tom@tromey.com>
14091
14092 * common/next-iterator.h: New file.
14093 * objfiles.h (class all_objfiles): New.
14094 (struct objfile_iterator): New.
14095
14096 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14097
14098 * NEWS: Move the description of the changed "frame", "select-frame",
14099 and "info frame" commands to the Changed commands section.
14100
14101 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14102
14103 * gdbtypes.c (check_stub_method_group): Remove handling of old
14104 mangling schemes.
14105 * linespec.c (find_methods): Likewise.
14106 * stabsread.c (read_member_functions): Likewise.
14107 * valops.c (search_struct_method): Likewise.
14108 (value_struct_elt_for_reference): Likewise.
14109 * NEWS: Mention this change.
14110
14111 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14112
14113 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14114 print_source_lines.
14115 * source.c (print_source_lines_base): Update line number check.
14116 (print_source_lines): New function.
14117 (source_lines_range::source_lines_range): New function.
14118 * source.h (class source_lines_range): New class.
14119 (print_source_lines): New declaration.
14120
14121 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14122
14123 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14124
14125 2019-01-08 Tom Tromey <tom@tromey.com>
14126 Simon Marchi <simon.marchi@ericsson.com>
14127
14128 PR gdb/24060
14129 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14130 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14131 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14132 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14133 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14134 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14135
14136 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14137
14138 * source.c (select_source_symtab): Move header comment to
14139 declaration in source.h.
14140 (forget_cached_source_info_for_objfile): Likewise.
14141 (forget_cached_source_info): Likewise.
14142 (identify_source_line): Likewise.
14143 * source.h (identify_source_line): Move declaration from symtab.h
14144 and add comment from source.c
14145 (print_source_lines): Likewise.
14146 (forget_cached_source_info_for_objfile): Likewise.
14147 (forget_cached_source_info): Likewise.
14148 (select_source_symtab): Likewise.
14149 (enum print_source_lines_flag): Move definition from symtab.h.
14150 * symtab.h (identify_source_line): Move declaration to source.h.
14151 (print_source_lines): Likewise.
14152 (forget_cached_source_info_for_objfile): Likewise.
14153 (forget_cached_source_info): Likewise.
14154 (select_source_symtab): Likewise.
14155 (enum print_source_lines_flag): Move definition to source.h.
14156 * tui/tui-hooks.c: Add 'source.h' include.
14157
14158 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14159
14160 * source.c (print_source_lines_base): Handle requests to print
14161 reverse line number sequences, and guard against empty lines
14162 string.
14163
14164 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14165
14166 * source.c (print_source_lines_base): Fix skip of '\r' if next
14167 character is '\n'.
14168
14169 2019-01-06 Tom Tromey <tom@tromey.com>
14170
14171 * c-exp.y (struct c_parse_state) <macro_original_text,
14172 expansion_obstack>: New member.
14173 (macro_original_text, expansion_obstack): Remove globals.
14174 (scan_macro_expansion, scanning_macro_expansion)
14175 (finished_macro_expansion): Update.
14176 (scan_macro_cleanup): Remove.
14177 (yylex, c_parse): Update.
14178
14179 2019-01-06 Tom Tromey <tom@tromey.com>
14180
14181 * c-exp.y (struct c_parse_state) <strings>: New member.
14182 (operator_stoken): Update.
14183
14184 2019-01-06 Tom Tromey <tom@tromey.com>
14185
14186 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14187 (union type_stack_elt) <typelist_val>: Now a pointer to
14188 std::vector.
14189 (type_stack_cleanup): Don't declare.
14190 (push_typelist): Update.
14191 * parse.c (pop_typelist): Return a std::vector.
14192 (push_typelist): Take a std::vector.
14193 (follow_types): Update. Do not free args.
14194 (type_stack_cleanup): Remove.
14195 * c-exp.y (struct c_parse_state): New.
14196 (cpstate): New global.
14197 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14198 (nonempty_typelist): Update.
14199 (func_mod): Create a new vector.
14200 (c_parse): Create a c_parse_state.
14201 (check_parameter_typelist): Do not delete params.
14202 (function_method): Update. Do not delete type_list.
14203
14204 2019-01-06 Tom Tromey <tom@tromey.com>
14205
14206 PR gdb/28155:
14207 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14208 check_typedef.
14209 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14210 (print_return_value): Likewise.
14211
14212 2019-01-05 Tom Tromey <tom@tromey.com>
14213
14214 * contrib/cleanup_check.py: Remove.
14215 * contrib/gcc-with-excheck: Remove.
14216 * contrib/exsummary.py: Remove.
14217 * contrib/excheck.py: Remove.
14218
14219 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14220
14221 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14222 NULL. Initialize tpprev to NULL instead of assigning it
14223 to NULL on the next statement.
14224 * windows-nat.c (windows_delete_thread): Remove check for
14225 main_thread_id before printing thread exit notifications.
14226 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14227 Remove thread ID check against main_thread_id.
14228 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14229 windows_delete_thread.
14230 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14231
14232 2019-01-04 Tom Tromey <tom@tromey.com>
14233
14234 * compile/compile.c (_initialize_compile): Use upper case for
14235 metasyntactic variables.
14236 * symmisc.c (_initialize_symmisc): Use upper case for
14237 metasyntactic variables.
14238 * psymtab.c (_initialize_psymtab): Use upper case for
14239 metasyntactic variables.
14240 * demangle.c (demangle_command): Use upper case for metasyntactic
14241 variables.
14242 (_initialize_demangler): Likewise.
14243 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14244 variables.
14245
14246 2019-01-03 Tom Tromey <tom@tromey.com>
14247
14248 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14249
14250 2019-01-03 Tom Tromey <tom@tromey.com>
14251
14252 * python/py-symtab.c (salpy_str): Update.
14253 (struct salpy_sal_object) <symtab>: Now a PyObject.
14254 (salpy_dealloc): Update.
14255 (del_objfile_sal): Use gdbpy_ref.
14256
14257 2019-01-03 Tom Tromey <tom@tromey.com>
14258
14259 * python/py-type.c (convert_field): Use new_reference. Return
14260 gdbpy_ref.
14261 (make_fielditem): Return gdbpy_ref.
14262 (typy_fields): Update.
14263 (typy_getitem): Update.
14264 (field_name): Return gdbpy_ref. Use new_reference.
14265 (typy_iterator_iternext): Update.
14266
14267 2019-01-03 Tom Tromey <tom@tromey.com>
14268
14269 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14270
14271 2019-01-03 Tom Tromey <tom@tromey.com>
14272
14273 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14274 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14275 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14276 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14277 (pspy_set_type_printers): Likewise.
14278 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14279 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14280 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14281 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14282 (objfpy_set_type_printers): Likewise.
14283
14284 2019-01-03 Tom Tromey <tom@tromey.com>
14285
14286 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14287 (gdbpy_print_stack): Use gdbpy_err_fetch.
14288 * python/python-internal.h (class gdbpy_err_fetch): New class.
14289 (class gdbpy_enter) <m_error_type, m_error_value,
14290 m_error_traceback>: Remove.
14291 <m_error>: New member.
14292 (gdbpy_exception_to_string): Don't declare.
14293 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14294 * python/py-value.c (convert_value_from_python): Use
14295 gdbpy_err_fetch.
14296 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14297 gdbpy_exception_to_string.
14298 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14299 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14300 gdbpy_err_fetch.
14301
14302 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14303
14304 * linux-nat.c (delete_lwp_cleanup): Delete.
14305 (struct lwp_deleter): New struct.
14306 (lwp_info_up): New typedef.
14307 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14308 lwp_info_up.
14309
14310 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14311
14312 * linux-fork.c (class scoped_switch_fork_info): New class.
14313 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14314
14315 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14316
14317 * valops.c (find_overload_match): Remove use of null_cleanup, and
14318 calls to do_cleanups.
14319
14320 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14321
14322 * compile/compile-cplus-types.c
14323 (compile_cplus_instance::decl_name): Handle changes to
14324 cp_func_name.
14325 * cp-support.c (cp_func_name): Update header comment, update
14326 return type.
14327 * cp-support.h (cp_func_name): Update return type in declaration.
14328 * valops.c (find_overload_match): Move temp_func local to top
14329 level of function and change its type. Use temp_func to hold and
14330 delete temporary string obtained from cp_func_name.
14331
14332 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14333
14334 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14335 gdb::char_vector, remove cleanup, and update uses of `msg`.
14336
14337 2019-01-03 Jim Wilson <jimw@sifive.com>
14338
14339 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14340
14341 2019-01-02 Tom Tromey <tom@tromey.com>
14342
14343 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14344 (tdesc_parse_xml): Remove cleanups.
14345 * target-descriptions.h (make_cleanup_free_target_description):
14346 Don't declare.
14347 (target_desc_deleter): New struct.
14348 (target_desc_up): New typedef.
14349 * target-descriptions.c (target_desc_deleter::operator()): Rename
14350 from free_target_description.
14351 (make_cleanup_free_target_description): Remove.
14352
14353 2019-01-02 Tom Tromey <tom@tromey.com>
14354
14355 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14356 constructor, destructor.
14357 (linespec_parser): Remove typedef.
14358 (~linespec_parser): Rename from linespec_parser_delete.
14359 (linespec_lex_to_end, linespec_complete_label)
14360 (linespec_complete): Update.
14361 (decode_line_full): Remove cleanups.
14362 (decode_line_1): Update.
14363
14364 2019-01-02 Tom Tromey <tom@tromey.com>
14365
14366 * python/python-internal.h (inferior_to_inferior_object): Change
14367 return type.
14368 * python/py-exitedevent.c (create_exited_event_object): Update.
14369 * python/py-inferior.c (inferior_to_inferior_object): Return
14370 gdbpy_ref.
14371 (python_new_inferior, python_inferior_deleted)
14372 (thread_to_thread_object, delete_thread_object)
14373 (build_inferior_list, gdbpy_selected_inferior): Update.
14374 * python/py-infthread.c (create_thread_object): Update. Also fail
14375 if inferior_to_inferior_object fails.
14376
14377 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14378
14379 * inferior.h (class inferior) <displaced_step_state>: New field.
14380 * infrun.h (struct displaced_step_state): Move here from
14381 infrun.c. Initialize fields, add constructor.
14382 <inf>: Remove field.
14383 <reset>: New method.
14384 * infrun.c (struct displaced_step_inferior_state): Move to
14385 infrun.h.
14386 (displaced_step_inferior_states): Remove.
14387 (get_displaced_stepping_state): Adust.
14388 (displaced_step_in_progress_any_inferior): Adjust.
14389 (displaced_step_in_progress_thread): Adjust.
14390 (displaced_step_in_progress): Adjust.
14391 (add_displaced_stepping_state): Remove.
14392 (get_displaced_step_closure_by_addr): Adjust.
14393 (remove_displaced_stepping_state): Remove.
14394 (infrun_inferior_exit): Call displaced_step_state.reset.
14395 (use_displaced_stepping): Don't check for NULL.
14396 (displaced_step_prepare_throw): Call
14397 get_displaced_stepping_state.
14398 (displaced_step_fixup): Don't check for NULL.
14399 (prepare_for_detach): Don't check for NULL.
14400
14401 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14402
14403 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14404 in case of call that did not complete.
14405
14406 2019-01-02 Andrey Utkin <autkin@undo.io>
14407
14408 * symfile.c (find_separate_debug_file): Fix search of debug files for
14409 remote debuggee.
14410
14411 2019-01-02 Tom Tromey <tom@tromey.com>
14412
14413 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14414 indentation.
14415 * python/py-frame.c (frapy_older): Remove cast.
14416 (frapy_newer): Likewise.
14417 * python/py-breakpoint.c (local_setattro): Remove cast.
14418 * python/py-arch.c (archpy_name): Remove local variable.
14419 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14420
14421 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14422
14423 * unittests/basic_string_view/element_access/char/empty.cc:
14424 Fix year range in copyright header.
14425
14426 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14427
14428 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14429 Delete.
14430 <operator==>: Update with for removed field.
14431 <hash>: Likewise.
14432 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14433 <isa_features>: ...this.
14434 <abi_features>: New field.
14435 (riscv_isa_flen): Update comment.
14436 (riscv_abi_xlen): New declaration.
14437 (riscv_abi_flen): New declaration.
14438 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14439 isa_features.
14440 (riscv_abi_xlen): New function.
14441 (riscv_isa_flen): Update to get answer from isa_features.
14442 (riscv_abi_flen): New function.
14443 (riscv_has_fp_abi): Update to get answer from abi_features.
14444 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14445 xlen and flen.
14446 (riscv_call_info) <xlen, flen>: Update comment.
14447 (riscv_call_arg_struct): Remove invalid assertions
14448 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14449 is removed.
14450 (riscv_gdbarch_init): Gather isa features and abi features
14451 separately, ensure both match on the gdbarch when reusing an old
14452 gdbarch. Relax an error check to allow 32-bit abi float to run on
14453 a target with 64-bit float hardware.
14454
14455 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14456
14457 * source.c (search_command_helper): Stop reverse search
14458 when line 1 has been searched.
14459
14460 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14461
14462 * record-full.c (record_full_base_target::close): Rewrite
14463 record_full_core_buf_list free logic.
14464
14465 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14466
14467 * break-catch-syscall.c (print_one_catch_syscall): xfree
14468 the last text.
14469
14470 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14471
14472 * top.c (print_gdb_version): Update Copyright year in version
14473 message.
14474
14475 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14476
14477 Update copyright year range in all GDB files.
14478
14479 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14480
14481 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14482
14483 For older changes see ChangeLog-2018.
14484 \f
14485 Local Variables:
14486 mode: change-log
14487 left-margin: 8
14488 fill-column: 74
14489 version-control: never
14490 coding: utf-8
14491 End:
14492
This page took 0.308857 seconds and 5 git commands to generate.