Remove python_has_threads check in configure.ac
[binutils-gdb.git] / gdb / ChangeLog
1 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2
3 * configure: Regenerate.
4 * configure.ac: Remove code that sets python_has_threads.
5
6 2019-10-24 Christian Biesinger <cbiesinger@google.com>
7
8 * config.in: Regenerate.
9 * configure: Regenerate.
10 * configure.ac: Remove the code that uses sed to get the python
11 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
12
13 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
14
15 * python/py-progspace.c (pspy_block_for_pc): Return None for all
16 error paths.
17
18 2019-10-23 Tom Tromey <tom@tromey.com>
19
20 * arc-tdep.c: Remove ".." from include.
21 * frv-tdep.c: Remove ".." from include.
22 * lm32-tdep.c: Remove ".." from include.
23 * microblaze-tdep.c: Remove ".." from include.
24 * or1k-tdep.h: Remove ".." from include.
25 * s12z-tdep.c: Remove ".." from include.
26 * Makefile.in (OPCODES_CFLAGS): Add comment.
27 (TOP_CFLAGS): New variable.
28 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
29
30 2019-10-23 Tom Tromey <tom@tromey.com>
31
32 * Makefile.in (READLINE_DIR): Update.
33
34 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
35
36 * infcall.c (call_function_by_hand_dummy): Fix the function
37 comment. And extract out a code section into...
38 (reserve_stack_space): ...this new function.
39
40 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
41
42 * infcall.c (value_arg_coerce): Remove an unused parameter.
43 (call_function_by_hand_dummy): Update the call to
44 'value_arg_coerce'.
45
46 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
47
48 * infcall.c (call_function_by_hand_dummy): Refactor.
49
50 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
51
52 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
53
54 2019-10-23 Tom Tromey <tom@tromey.com>
55
56 * configure: Rebuild.
57 * configure.ac: Don't check for sigprocmask.
58 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
59
60 2019-10-23 Tom Tromey <tom@tromey.com>
61
62 * configure: Rebuild.
63 * acinclude.m4: Use m4_include, not sinclude.
64
65 2019-10-23 Tom de Vries <tdevries@suse.de>
66
67 PR breakpoints/24687
68 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
69
70 2019-10-22 Christian Biesinger <cbiesinger@google.com>
71
72 * symtab.c (struct demangled_name_entry) <language>: Change from
73 bitfield to regular variable.
74
75 2019-10-22 Christian Biesinger <cbiesinger@google.com>
76
77 * symtab.c (struct demangled_name_entry): Add a constructor.
78 (free_demangled_name_entry): New function to call the destructor
79 for demangled_name_entry.
80 (create_demangled_names_hash): Pass free_demangled_name_entry to
81 htab_create_alloc.
82 (symbol_set_names): Call placement new for demangled_name_entry.
83 * utils.c: No longer include xxhash.h here, now that fast_hash
84 is inlined in the header.
85 * utils.h: Instead, include it here.
86
87 2019-10-22 Christian Biesinger <cbiesinger@google.com>
88
89 * Makefile.in: Link with libxxhash.
90 * config.in: Regenerate.
91 * configure: Regenerate.
92 * configure.ac: Search for libxxhash.
93 * utils.c (fast_hash): Use xxhash if present.
94
95 2019-10-22 Christian Biesinger <cbiesinger@google.com>
96
97 * utils.h (fast_hash): New function.
98 * symtab.c (hash_demangled_name_entry): Call new function
99 fast_hash.
100
101 2019-10-22 Christian Biesinger <cbiesinger@google.com>
102
103 * symtab.c (struct demangled_name_entry): Change type of mangled
104 to gdb::string_view. Also adds a constructor that takes the
105 mangled name.
106 (hash_demangled_name_entry): Update.
107 (eq_demangled_name_entry): Update.
108 (free_demangled_name_entry): New function to call the destructor
109 now that this is not a POD anymore.
110 (create_demangled_names_hash): Pass free_demangled_name_entry to
111 htab_create_alloc.
112 (symbol_set_names): Update.
113
114 2019-10-21 Ali Tamur <tamu@google.com>
115
116 * dwarf2read.c (dir_index): Change type.
117 (file_name_index): Likewise.
118 (line_header::include_dir_at): Change comment and implementation on
119 whether it is DWARF 5.
120 (line_header::is_valid_file_index): New function.
121 (line_header::file_name_at): Change comment and implementation on
122 whether it is DWARF 5.
123 (line_header::file_names): Change to private field renamed as
124 m_file_names and introduce a new accessor method.
125 (line_header::file_names_size): New method.
126 (line_header::include_dirs): Change to private field and rename as
127 m_include_dirs.
128 (dw2_get_file_names_reader): Define local var at a smaller scope and
129 reflect API change.
130 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
131 (process_structure_scope): Likewise.
132 (line_header::add_include_dir): Change message and reflect renaming.
133 (line_header::add_file_name): Likewise.
134 (read_formatted_entries): Handle DW_FORM_data16.
135 (dwarf_decode_line_header): Fix line header length calculation.
136 (psymtab_include_file_name): Change comment and API.
137 (lnp_state_machine::m_file): Update comment and reflect type change.
138 (lnp_state_machine::record_line): Reflect type change.
139 (dwarf_decode_lines): Reflect API change.
140 (file_file_name): Likewise.
141 (file_full_name): Likewise.
142
143 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
144
145 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
146
147 2019-10-21 Tom Tromey <tom@tromey.com>
148
149 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
150
151 2019-10-21 Tom Tromey <tom@tromey.com>
152
153 * configure.ac (nm.h): Conditionally create nm.h link. Subst
154 NM_H. Use AC_CONFIG_LINKS.
155 * configure: Rebuild.
156 * Makefile.in (NM_H): New variable.
157 (generated_files): Add NM_H. Remove gcore.
158 (nm.h, stamp-nmh): New targets.
159
160 2019-10-20 Tom Tromey <tom@tromey.com>
161
162 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
163 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
164 obsolete comment.
165 (put_objfile_before): Now static.
166
167 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
168
169 * gdbsupport/common-utils.h (startswith): Change return type to
170 bool.
171
172 2019-10-19 Christian Biesinger <cbiesinger@google.com>
173
174 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
175 * breakpoint.c (bp_locations_compare): Rename to...
176 (bp_location_is_less_than): ...this, and change to std::sort semantics.
177 (update_global_location_list): Use std::sort instead of qsort.
178 * buildsym.c (compare_line_numbers): Rename to...
179 (lte_is_less_than): ...this, and change to std::sort semantics.
180 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
181 instead of qsort.
182 * disasm.c (compare_lines): Rename to...
183 (line_is_less_than): ...this, and change to std::sort semantics.
184 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
185 of qsort.
186 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
187 (fde_is_less_than): ...this, and change to std::sort semantics.
188 (dwarf2_build_frame_info): Call std::sort instead of qsort.
189 * mdebugread.c (compare_blocks):
190 (block_is_less_than): ...this, and change to std::sort semantics.
191 (sort_blocks): Call std::sort instead of qsort.
192 * objfiles.c (qsort_cmp): Rename to...
193 (sort_cmp): ...this, and change to std::sort semantics.
194 (update_section_map): Call std::sort instead of qsort.
195 * remote.c (compare_pnums): Remove.
196 (map_regcache_remote_table): Call std::sort instead of qsort.
197 * utils.c (compare_positive_ints): Remove.
198 * utils.h (compare_positive_ints): Remove.
199 * xcoffread.c (compare_lte): Remove.
200 (arrange_linetable): Call std::sort instead of qsort.
201
202 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
203
204 * symfile.c (init_entry_point_info): Fix typo.
205 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
206
207 2019-10-18 Tom de Vries <tdevries@suse.de>
208
209 * aarch64-tdep.c: Fix typos in comments.
210 * ada-lang.c: Same.
211 * ada-tasks.c: Same.
212 * alpha-tdep.c: Same.
213 * alpha-tdep.h: Same.
214 * amd64-nat.c: Same.
215 * amd64-windows-tdep.c: Same.
216 * arc-tdep.c: Same.
217 * arc-tdep.h: Same.
218 * arch-utils.c: Same.
219 * arm-nbsd-tdep.c: Same.
220 * arm-tdep.c: Same.
221 * ax-gdb.c: Same.
222 * blockframe.c: Same.
223 * btrace.c: Same.
224 * c-varobj.c: Same.
225 * coff-pe-read.c: Same.
226 * coffread.c: Same.
227 * cris-tdep.c: Same.
228 * darwin-nat.c: Same.
229 * dbxread.c: Same.
230 * dcache.c: Same.
231 * disasm.c: Same.
232 * dtrace-probe.c: Same.
233 * dwarf-index-write.c: Same.
234 * dwarf2-frame-tailcall.c: Same.
235 * dwarf2-frame.c: Same.
236 * dwarf2read.c: Same.
237 * eval.c: Same.
238 * exceptions.c: Same.
239 * fbsd-tdep.c: Same.
240 * findvar.c: Same.
241 * frame.c: Same.
242 * frv-tdep.c: Same.
243 * gnu-v3-abi.c: Same.
244 * go32-nat.c: Same.
245 * h8300-tdep.c: Same.
246 * hppa-tdep.c: Same.
247 * i386-linux-tdep.c: Same.
248 * i386-tdep.c: Same.
249 * ia64-libunwind-tdep.c: Same.
250 * ia64-tdep.c: Same.
251 * infcmd.c: Same.
252 * infrun.c: Same.
253 * linespec.c: Same.
254 * linux-nat.c: Same.
255 * linux-thread-db.c: Same.
256 * machoread.c: Same.
257 * mdebugread.c: Same.
258 * mep-tdep.c: Same.
259 * mn10300-tdep.c: Same.
260 * namespace.c: Same.
261 * objfiles.c: Same.
262 * opencl-lang.c: Same.
263 * or1k-tdep.c: Same.
264 * osabi.c: Same.
265 * ppc-linux-nat.c: Same.
266 * ppc-linux-tdep.c: Same.
267 * ppc-sysv-tdep.c: Same.
268 * printcmd.c: Same.
269 * procfs.c: Same.
270 * record-btrace.c: Same.
271 * record-full.c: Same.
272 * remote-fileio.c: Same.
273 * remote.c: Same.
274 * rs6000-tdep.c: Same.
275 * s12z-tdep.c: Same.
276 * score-tdep.c: Same.
277 * ser-base.c: Same.
278 * ser-go32.c: Same.
279 * skip.c: Same.
280 * sol-thread.c: Same.
281 * solib-svr4.c: Same.
282 * solib.c: Same.
283 * source.c: Same.
284 * sparc-nat.c: Same.
285 * sparc-sol2-tdep.c: Same.
286 * sparc-tdep.c: Same.
287 * sparc64-tdep.c: Same.
288 * stabsread.c: Same.
289 * stack.c: Same.
290 * symfile.c: Same.
291 * symtab.c: Same.
292 * target-descriptions.c: Same.
293 * target-float.c: Same.
294 * thread.c: Same.
295 * utils.c: Same.
296 * valops.c: Same.
297 * valprint.c: Same.
298 * value.c: Same.
299 * varobj.c: Same.
300 * windows-nat.c: Same.
301 * xcoffread.c: Same.
302 * xstormy16-tdep.c: Same.
303 * xtensa-tdep.c: Same.
304
305 2019-10-17 Tom Tromey <tromey@adacore.com>
306
307 * configure: Rebuild.
308 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
309 in AC_CONFIG_FILES invocation.
310 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
311 new-style config.status invocation.
312
313 2019-10-17 Tom de Vries <tdevries@suse.de>
314
315 * arm-nbsd-nat.c: Fix typos in comments.
316 * arm-tdep.c: Same.
317 * darwin-nat-info.c: Same.
318 * dwarf2read.c: Same.
319 * elfread.c: Same.
320 * event-top.c: Same.
321 * findvar.c: Same.
322 * gdbtypes.c: Same.
323 * hppa-tdep.c: Same.
324 * i386-tdep.c: Same.
325 * jit.c: Same.
326 * main.c: Same.
327 * mdebugread.c: Same.
328 * moxie-tdep.c: Same.
329 * nto-procfs.c: Same.
330 * osabi.c: Same.
331 * ppc-linux-tdep.c: Same.
332 * remote.c: Same.
333 * riscv-tdep.c: Same.
334 * s390-tdep.c: Same.
335 * sh-tdep.c: Same.
336 * sparc-linux-tdep.c: Same.
337 * sparc-nat.c: Same.
338 * stack.c: Same.
339 * target-descriptions.c: Same.
340 * top.c: Same.
341 * varobj.c: Same.
342
343 2019-10-16 Tom Tromey <tom@tromey.com>
344
345 * objfiles.h (struct objfile) <original_name>: Now const.
346
347 2019-10-16 Christian Biesinger <cbiesinger@google.com>
348
349 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
350 pass on to sigsetjmp's second argument.
351 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
352
353 2019-10-16 Keith Seitz <keiths@redhat.com>
354
355 PR gdb/23567
356 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
357 sections whose size is greater than the file size.
358
359 2019-10-16 Jim Wilson <jimw@sifive.com>
360
361 * riscv-tdep.c (riscv_gcc_target_options): New.
362 (riscv_gnu_triplet_regexp): New.
363 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
364 set_gdbarch_gnu_triplet_regexp.
365
366 2019-10-16 Christian Biesinger <cbiesinger@google.com>
367
368 * Makefile.in: Add xml-builtin.h.
369 * features/feature_to_c.sh: Add an include for xml-builtin.h
370 to ensure that the compiler checks that the types match.
371 * xml-builtin.h: New file.
372 * xml-support.c (fetch_xml_builtin): Add missing const.
373 * xml-support.h: Remove declaration of xml_builtins.
374
375 2019-10-16 Tom de Vries <tdevries@suse.de>
376
377 PR tdep/25096
378 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
379 (amd64_classify_aggregate): ... here.
380 (amd64_classify_aggregate_field): Handled fiels of nested structs
381 recursively.
382
383 2019-10-16 Tom de Vries <tdevries@suse.de>
384
385 PR tdep/24104
386 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
387 that handles 'theclass'.
388
389 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
390
391 * linespec.c (decode_digits_ordinary): Update comment.
392 * make-target-delegates: No longer need to handle VEC case.
393 * memrange.c (normalize_mem_ranges): Update comment.
394 * namespace.c (add_using_directive): Update comment.
395 * objc-lang.c (uniquify_strings): Update comment.
396 * ppc-linux-nat.c (struct thread_points): Update comment.
397 * probe.h (find_probes_in_objfile): Update comment.
398 * target.h (enum flash_preserve_mode): Update comment.
399 * varobj.c (varobj_restrict_range): Update comment.
400 * varobj.h (varobj_list_children): Update comment.
401
402 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
403
404 * Makefile.in: Remove references to vec.h and vec.c.
405 * aarch64-tdep.c: No longer include vec.h.
406 * ada-lang.c: Likewise.
407 * ada-lang.h: Likewise.
408 * arm-tdep.c: Likewise.
409 * ax.h: Likewise.
410 * breakpoint.h: Likewise.
411 * charset.c: Likewise.
412 * cp-support.h: Likewise.
413 * dtrace-probe.c: Likewise.
414 * dwarf2read.c: Likewise.
415 * extension.h: Likewise.
416 * gdb_bfd.c: Likewise.
417 * gdbsupport/gdb_vecs.h: Likewise.
418 * gdbsupport/vec.c: Remove.
419 * gdbsupport/vec.h: Remove.
420 * gdbthread.h: Likewise.
421 * guile/scm-type.c: Likewise.
422 * inline-frame.c: Likewise.
423 * machoread.c: Likewise.
424 * memattr.c: Likewise.
425 * memrange.h: Likewise.
426 * namespace.h: Likewise.
427 * nat/linux-btrace.h: Likewise.
428 * osdata.c: Likewise.
429 * parser-defs.h: Likewise.
430 * progspace.h: Likewise.
431 * python/py-type.c: Likewise.
432 * record-btrace.c: Likewise.
433 * rust-exp.y: Likewise.
434 * solib-target.c: Likewise.
435 * stap-probe.c: Likewise.
436 * target-descriptions.c: Likewise.
437 * target-memory.c: Likewise.
438 * target.h: Likewise.
439 * varobj.c: Likewise.
440 * varobj.h: Likewise.
441 * xml-support.h: Likewise.
442
443 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
444
445 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
446 Update for new std::vector based implementation.
447 (process_psymtab_comp_unit_reader): Likewise.
448 (scan_partial_symbols): Likewise.
449 (recursively_compute_inclusions): Likewise.
450 (compute_compunit_symtab_includes): Likewise.
451 (process_imported_unit_die): Likewise.
452 (queue_and_load_dwo_tu): Likewise.
453 (follow_die_sig_1): Likewise.
454 * gdb/dwarf2read.h: Remove DEF_VEC_P.
455 (typedef dwarf2_per_cu_ptr): Remove.
456 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
457 function.
458 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
459 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
460 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
461 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
462 std::vector.
463
464 2019-10-15 Tom Tromey <tromey@adacore.com>
465
466 * windows-nat.c (windows_nat_target::resume): Use %x when logging
467 TID.
468
469 2019-10-15 Tom Tromey <tromey@adacore.com>
470
471 * windows-nat.c (windows_nat_target::fetch_registers)
472 (windows_nat_target::store_registers): Rename "pid" to "tid".
473
474 2019-10-15 Tom Tromey <tromey@adacore.com>
475
476 * gdbarch.h, gdbarch.c: Rebuild.
477 * gdbarch.sh (gcc_target_options): Change return type to
478 std::string.
479 * compile/compile.c (get_args): Update.
480 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
481 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
482 std::string.
483 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
484 std::string.
485 * arch-utils.c (default_gcc_target_options): Return std::string.
486 * arch-utils.h (default_gcc_target_options): Return std::string.
487 * s390-tdep.c (s390_gcc_target_options): Return std::string.
488
489 2019-10-15 Christian Biesinger <cbiesinger@google.com>
490
491 * breakpoint.c (breakpoint_chain): Make static.
492 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
493 of accessing breakpoint_chain.
494
495 2019-10-15 Christian Biesinger <cbiesinger@google.com>
496
497 * breakpoint.c (iterate_over_breakpoints): Change function pointer
498 to a gdb::function_view and return value to bool.
499 * breakpoint.h (iterate_over_breakpoints): Likewise.
500 * dummy-frame.c (pop_dummy_frame_bpt): Update.
501 (pop_dummy_frame): Update.
502 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
503 (gdbscm_breakpoints): Update.
504 * python/py-breakpoint.c (build_bp_list): Update.
505 (gdbpy_breakpoints): Update.
506 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
507 Update.
508 (bpfinishpy_handle_stop): Update.
509 (bpfinishpy_handle_exit): Update.
510 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
511 (svr4_update_solib_event_breakpoints): Update.
512
513 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
514
515 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
516 when unwrapping single-field structs.
517
518 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
519
520 * dwarf2read.c: Remove includes.
521
522 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
523
524 * ui-out.c (ui_out::call_do_message): Silence
525 -Wformat-nonliteral warning.
526
527 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
528
529 * breakpoint.c: Remove some includes: continuations.h, skip.h,
530 mi/mi-main.h, readline/readline.h, readline/history.h. Add
531 include: readline/tilde.h.
532
533 2019-10-12 Christian Biesinger <cbiesinger@google.com>
534
535 * remote.c (remote_target::get_trace_status): Remove declaration of
536 trace_regblock_size.
537
538 2019-10-12 Christian Biesinger <cbiesinger@google.com>
539
540 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
541 (show_user): Remove declaration of cmdlist.
542 * cli/cli-cmds.h (max_user_call_depth): Declare.
543 * cli/cli-script.c (execute_user_command): Remove declaration
544 of max_user_call_depth.
545
546 2019-10-11 Jim Wilson <jimw@sifive.com>
547
548 * gdbsupport/print-utils.h (pulongest): Fix comment.
549 (plongest): Likewise.
550 (phex): Add missing comment, mention leading zeros.
551 (phex_nz): Add mention of no leading zeros to comment.
552
553 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
554 plongest instead of unsigned long long cast.
555
556 2019-10-10 Christian Biesinger <cbiesinger@google.com>
557
558 * main.c (captured_main_1): Include gdbtk.h and remove declarations
559 for external_editor_command and gdbtk_test.
560
561 2019-10-10 Christian Biesinger <cbiesinger@google.com>
562
563 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
564 * varobj.c (varobjdebug): Move comment to...
565 * varobj.h (varobjdebug): ...here, and declare.
566
567 2019-10-09 Tom Tromey <tom@tromey.com>
568
569 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
570 erase_data_content.
571
572 2019-10-09 Tom Tromey <tom@tromey.com>
573
574 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
575 * tui/tui-stack.c (tui_locator_window::rerender): Update.
576 * tui/tui-command.c (tui_cmd_window::resize)
577 (tui_refresh_cmd_win): Update.
578 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
579 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
580 * tui/tui-data.c (~tui_gen_win_info): Remove.
581 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
582 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
583 (tui_redisplay_readline, tui_mld_flush)
584 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
585 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
586 (tui_data_window::erase_data_content)
587 (tui_data_item_window::rerender)
588 (tui_data_item_window::refresh_window): Update.
589 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
590 (box_win, tui_gen_win_info::make_window)
591 (tui_gen_win_info::make_visible): Update.
592 (tui_delete_win): Remove.
593 * tui/tui-winsource.c
594 (tui_source_window_base::do_erase_source_content): Update.
595 (tui_show_source_line, tui_source_window_base::update_tab_width)
596 (tui_source_window_base::update_exec_info): Update.
597 * tui/tui-data.h (struct curses_deleter): New.
598 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
599 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
600
601 2019-10-09 Tom Tromey <tom@tromey.com>
602
603 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
604
605 2019-10-09 Tom Tromey <tom@tromey.com>
606
607 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
608 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
609
610 2019-10-09 Tom Tromey <tom@tromey.com>
611
612 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
613 window height directly.
614 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
615 declare.
616 * tui/tui-layout.c (tui_default_win_height): Remove.
617 (tui_default_win_viewport_height): Remove.
618
619 2019-10-09 Tom Tromey <tom@tromey.com>
620
621 * tui/tui.h: Remove comments.
622
623 2019-10-09 Tom de Vries <tdevries@suse.de>
624
625 * python/lib/gdb/printer/bound_registers.py: Use
626 '^builtin_type_bound128' as regexp argument for
627 add_builtin_pretty_printer.
628
629 2019-10-09 Christian Biesinger <cbiesinger@google.com>
630
631 * guile/guile.c (guile_extension_script_ops): Remove forward
632 declaration and mark as static.
633 (guile_script_ops): Likewise.
634 (extension_language_guile): Move further down in the file so
635 it can reference the definitions for guile_{extension_,}script_ops.
636
637 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
638
639 * s390-tdep.c (390_process_record): Handle new arch13 instructions
640 except SORTL, DFLTCC, and KDSA.
641
642 2019-10-08 Tom Tromey <tromey@adacore.com>
643
644 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
645 (struct safe_symbol_file_add_args): Remove.
646
647 2019-10-08 Tom Tromey <tromey@adacore.com>
648
649 * windows-nat.c: Don't include buildsym-legacy.h.
650
651 2019-10-08 Tom Tromey <tromey@adacore.com>
652
653 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
654
655 2019-10-08 Christian Biesinger <cbiesinger@google.com>
656
657 * gdbtypes.c (overload_debug): Move comment to header.
658 * gdbtypes.h (overload_debug): Declare.
659 * valops.c: Remove declaration of overload_debug, instead
660 include gdbtypes.h.
661
662 2019-10-08 Christian Biesinger <cbiesinger@google.com>
663
664 * language.c (show_language_command): Pass lang_frame_mismatch_warn
665 through _().
666 (lang_frame_mismatch_warn): Make const, mark with N_(), and
667 move comment...
668 * language.h (lang_frame_mismatch_warn): ... here. Also add
669 declaration.
670 * top.c (lang_frame_mismatch_warn): Remove declaration.
671 (check_frame_language_change): Pass lang_frame_mismatch_warn
672 through _().
673
674 2019-10-07 Christian Biesinger <cbiesinger@google.com>
675
676 * c-lang.h (vtbl_ptr_name): Declare.
677 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
678 it from the header.
679 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
680
681 2019-10-07 Christian Biesinger <cbiesinger@google.com>
682
683 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
684 gdb_static_assert.
685
686 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
687
688 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
689 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
690 * ctfread.c: New file.
691 * ctfread.h: New file.
692 * elfread.c: Include ctfread.h.
693 (struct elfinfo text_p): New member ctfsect.
694 (elf_locate_sections): Mark CTF section.
695 (elf_symfile_read): Call elfctf_build_psymtabs.
696 * Makefile.in (LIBCTF): Add.
697 (CLIBS): Use it.
698 (CDEPS): Likewise.
699 (DIST): Add ctfread.c.
700
701 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
702
703 * ctfread.c (struct nextfield): Renamed to ...
704 (struct ctf_nextfield): ... this.
705 (struct field_info): Renamed to ...
706 (strut ctf_field_info): ... this.
707 (attach_fields_to_type): Update for renamed structures.
708 (ctf_add_member_cb): Likewise.
709 (ctf_add_enum_member_cb): Likewise.
710 (process_struct_members): Likewise.
711 (process_enum_type): Likewise.
712
713 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
714
715 * tracectf.h: Rename, was ctf.h.
716 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
717 * tracefile.c: Likewise.
718 * tracepoint.c: Remove unused include ctf.h.
719 * mi/mi-main.c: Likewise.
720 * Makefile.in Replace ctf.c with tracectf.c.
721
722 2019-10-06 Joel Brobecker <brobecker@adacore.com>
723
724 * version.in: Change version number to "9.0.50.DATE-git".
725
726 2019-10-03 Tom Tromey <tom@tromey.com>
727
728 PR rust/24976:
729 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
730
731 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
732
733 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
734 cp_search_name_hash.
735 * NEWS: Add entry about nested function support.
736
737 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
738 Andrew Burgess <andrew.burgess@embecosm.com>
739
740 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
741 for nested static variables when searchin VAR_DOMAIN.
742 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
743 global scope, update comment.
744 (add_partial_subprogram): Call add_partial_subprogram recursively
745 for nested subroutines when processinng Fortran.
746 (load_partial_dies): Process the child entities of a subprogram
747 when processing Fortran.
748 (partial_die_parent_scope): Handle building scope
749 for Fortran nested functions.
750 (process_die): Record that nested functions have a scope.
751 (new_symbol): Always record Fortran subprograms on the global
752 symbol list.
753 (determine_prefix): How to build the prefix for Fortran
754 subprograms.
755
756 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
757
758 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
759 have just sent the thread a SIGSTOP and are waiting for it to
760 arrive.
761
762 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
763
764 * btrace.c (btrace_add_pc): Remove whitespace before the template
765 parameter in 'std::vector <...>'.
766 (parse_xml_btrace_block): Likewise.
767 (btrace_maint_decode_pt): Likewise.
768 (btrace_maint_update_packets): Likewise.
769 (btrace_maint_print_packets): Likewise.
770 * btrace.h (struct btrace_maint_info): Likewise.
771 * dwarf2read.c (struct type_unit_group): Likewise.
772 (build_type_psymtabs_reader): Likewise.
773 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
774 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
775 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
776
777 2019-10-03 Tom de Vries <tdevries@suse.de>
778
779 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
780 the first line of the help text for set/show style metadata.
781
782 2019-10-02 Tom Tromey <tromey@adacore.com>
783
784 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
785 * gdbsupport/common-inferior.c: New file.
786 * infcmd.c (startup_with_shell): Don't define.
787 * nat/fork-inferior.h (startup_with_shell): Don't declare.
788 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
789 * inferior.h (startup_with_shell): Don't declare.
790
791 2019-10-02 Christian Biesinger <cbiesinger@google.com>
792
793 * gdbsupport/gdb_assert.h: Include errors.h.
794 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
795
796 2019-10-02 Tom Tromey <tromey@adacore.com>
797
798 * NEWS: Add $_ada_exception entry.
799 * ada-lang.c (struct ada_catchpoint): Add constructor.
800 <m_kind>: New member.
801 (allocate_location_exception, re_set_exception): Remove
802 "ex" parameter.
803 (should_stop_exception): Compute $_ada_exception.
804 (check_status_exception, print_it_exception)
805 (print_one_exception, print_mention_exception): Remove
806 "ex" parameter.
807 (allocate_location_catch_exception, re_set_catch_exception)
808 (check_status_exception, print_it_catch_exception)
809 (print_one_catch_exception, print_mention_catch_exception)
810 (print_recreate_catch_exception)
811 (allocate_location_catch_exception_unhandled)
812 (re_set_catch_exception_unhandled)
813 (check_status_exception, print_it_catch_exception_unhandled)
814 (print_one_catch_exception_unhandled)
815 (print_mention_catch_exception_unhandled)
816 (print_recreate_catch_exception_unhandled)
817 (allocate_location_catch_assert, re_set_catch_assert)
818 (check_status_assert, print_it_catch_assert)
819 (print_one_catch_assert, print_mention_catch_assert)
820 (print_recreate_catch_assert)
821 (allocate_location_catch_handlers, re_set_catch_handlers)
822 (check_status_handlers, print_it_catch_handlers)
823 (print_one_catch_handlers, print_mention_catch_handlers)
824 (print_recreate_catch_handlers): Remove.
825 (create_ada_exception_catchpoint): Update.
826 (initialize_ada_catchpoint_ops): Update.
827
828 2019-10-02 Tom Tromey <tromey@adacore.com>
829
830 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
831 (create_excep_cond_exprs): Simplify exception string computation.
832 (ada_exception_catchpoint_cond_string): Likewise.
833
834 2019-10-02 Tom Tromey <tromey@adacore.com>
835
836 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
837 * ada-lang.c (lesseq_defined_than): Handle
838 LOC_STATIC.
839 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
840 parameter.
841 (dwarf2_has_info): Likewise.
842 (new_symbol): Set maybe_copied on symbol when
843 appropriate.
844 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
845 parameter.
846 <can_copy>: New member.
847 * elfread.c (record_minimal_symbol): Set maybe_copied
848 on symbol when appropriate.
849 (elf_symfile_read): Update call to dwarf2_has_info.
850 * minsyms.c (lookup_minimal_symbol_linkage): New
851 function.
852 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
853 * symtab.c (get_symbol_address, get_msymbol_address):
854 New functions.
855 * symtab.h (get_symbol_address, get_msymbol_address):
856 Declare.
857 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
858 maybe_copied.
859 (struct symbol, struct minimal_symbol) <maybe_copied>:
860 New member.
861
862 2019-10-02 Tom Tromey <tromey@adacore.com>
863
864 * source.c (struct current_source_location): New.
865 (current_source_key): New global.
866 (current_source_symtab, current_source_line)
867 (current_source_pspace): Remove.
868 (get_source_location): New function.
869 (get_current_source_symtab_and_line)
870 (set_default_source_symtab_and_line)
871 (set_current_source_symtab_and_line)
872 (clear_current_source_symtab_and_line, select_source_symtab)
873 (info_source_command, print_source_lines_base)
874 (info_line_command, search_command_helper, _initialize_source):
875 Update.
876
877 2019-10-02 Tom Tromey <tromey@adacore.com>
878
879 * source.c (select_source_symtab): Don't call
880 decode_line_with_current_source.
881
882 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
883
884 * symtab.c (lookup_global_symbol): Search global block.
885
886 2019-10-02 Tom Tromey <tromey@adacore.com>
887
888 * coffread.c (process_coff_symbol): Update.
889 * dwarf2read.c (var_decode_location, new_symbol): Update.
890 * mdebugread.c (parse_symbol): Update.
891 * objfiles.c (relocate_one_symbol): Update.
892 * stabsread.c (define_symbol, fix_common_block)
893 (scan_file_globals): Update.
894 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
895 (SET_SYMBOL_VALUE_ADDRESS): New macro.
896 * xcoffread.c (process_xcoff_symbol): Update.
897
898 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
899
900 * MAINTAINERS: Update my email address.
901
902 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
903
904 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
905 std::vector.
906 (build_type_psymtabs_reader): Update for std::vector.
907 (build_type_psymtab_dependencies): Likewise.
908 * dwarf2read.h: Remove use of DEF_VEC_P.
909 (typedef sig_type_ptr): Delete.
910
911 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
912
913 * btrace.c (btrace_maint_clear): Update to handle change from VEC
914 to std::vector.
915 (btrace_maint_decode_pt): Likewise, and move allocation of the
916 vector outside of the loop.
917 (btrace_maint_update_packets): Update to handle change from VEC to
918 std::vector.
919 (btrace_maint_print_packets): Likewise.
920 (maint_info_btrace_cmd): Likewise.
921 * btrace.h: Remove use of DEF_VEC_O.
922 (typedef btrace_pt_packet_s): Delete.
923 (struct btrace_maint_info) <packets>: Change fromm VEC to
924 std::vector.
925 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
926
927 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
928
929 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
930 make accesses into the vector constant references.
931 (btrace_add_pc): Update for std::vector.
932 (btrace_stitch_bts): Likewise.
933 (parse_xml_btrace_block): Likewise.
934 (btrace_maint_update_packets): Likewise.
935 (btrace_maint_print_packets): Likewise.
936 (maint_info_btrace_cmd): Likewise.
937 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
938 std::vector.
939 (btrace_data::empty): Likewise.
940 (btrace_data_append): Likewise.
941 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
942 (typedef btrace_block_s): Delete.
943 (struct btrace_block): Add constructor.
944 (struct btrace_data_bts) <blocks>: Change to std::vector.
945 * nat/linux-btrace.c (perf_event_read_bts): Update for
946 std::vector.
947 (linux_read_bts): Likewise.
948
949 2019-10-01 Tom Tromey <tom@tromey.com>
950
951 * cli/cli-logging.c (show_logging_filename): Use styled_string.
952
953 2019-10-01 Tom Tromey <tom@tromey.com>
954
955 * stack.c (print_frame, info_frame_command_core): Use
956 styled_string.
957 * linux-thread-db.c (try_thread_db_load_1)
958 (try_thread_db_load_from_pdir_1): Use styled_string.
959 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
960 (auto_load_section_scripts, info_auto_load_local_gdbinit)
961 (maybe_print_unsupported_script_warning)
962 (maybe_print_script_not_found_warning): Use styled_string.
963 * ada-lang.c (user_select_syms): Use styled_string.
964
965 2019-10-01 Tom Tromey <tom@tromey.com>
966
967 * p-lang.c (pascal_printstr): Use metadata style.
968 * value.c (show_convenience): Use metadata style.
969 * valprint.c (valprint_check_validity, val_print_optimized_out)
970 (val_print_not_saved, val_print_unavailable)
971 (val_print_invalid_address, generic_val_print, val_print)
972 (value_check_printable, val_print_array_elements): Use metadata
973 style.
974 * ui-out.h (class ui_out) <field_fmt>: New overload.
975 <do_field_fmt>: Add style parameter.
976 * ui-out.c (ui_out::field_fmt): New overload.
977 * typeprint.c (type_print_unknown_return_type)
978 (val_print_not_allocated, val_print_not_associated): Use metadata
979 style.
980 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
981 parameter.
982 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
983 * tracepoint.c (tvariables_info_1): Use metadata style.
984 * stack.c (print_frame_arg, print_frame_info, print_frame)
985 (info_frame_command_core): Use metadata style.
986 * skip.c (info_skip_command): Use metadata style.
987 * rust-lang.c (rust_print_enum): Use metadata style.
988 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
989 metadata style.
990 * python/py-framefilter.c (py_print_single_arg): Use metadata
991 style.
992 * printcmd.c (do_one_display, print_variable_and_value): Use
993 metadata style.
994 * p-valprint.c (pascal_val_print)
995 (pascal_object_print_value_fields): Use metadata style.
996 * p-typeprint.c (pascal_type_print_base): Use metadata style.
997 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
998 parameter.
999 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1000 * m2-valprint.c (m2_print_long_set): Use metadata style.
1001 * m2-typeprint.c (m2_print_type): Use metadata style.
1002 * infcmd.c (print_return_value_1): Use metadata style.
1003 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1004 * f-valprint.c (info_common_command_for_block): Use metadata
1005 style.
1006 * f-typeprint.c (f_type_print_base): Use metadata style.
1007 * expprint.c (print_subexp_standard): Use metadata style.
1008 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1009 * cli/cli-style.h (class cli_style_option): Add constructor.
1010 (metadata_style): Declare.
1011 * cli/cli-style.c (metadata_style): New global.
1012 (_initialize_cli_style): Register metadata style.
1013 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1014 parameter.
1015 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1016 * c-typeprint.c (c_type_print_base_struct_union)
1017 (c_type_print_base_1): Use metadata style.
1018 * breakpoint.c (watchpoint_value_print)
1019 (print_one_breakpoint_location): Use metadata style.
1020 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1021 style.
1022 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1023 style.
1024 * ada-valprint.c (val_print_packed_array_elements, printstr)
1025 (print_field_values, ada_val_print_ref, ada_val_print): Use
1026 metadata style.
1027 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1028 style.
1029 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1030 style.
1031 * ada-lang.c (user_select_syms): Use metadata style.
1032
1033 2019-10-01 Tom Tromey <tom@tromey.com>
1034
1035 * cli/cli-cmds.c (pwd_command): Style output.
1036
1037 2019-10-01 Pedro Alves <palves@redhat.com>
1038 Tom Tromey <tom@tromey.com>
1039
1040 * symtab.c (print_symbol_info): Use %ps.
1041 (print_msymbol_info): Use %ps.
1042 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1043 * printcmd.c (print_variable_and_value): Use %ps.
1044 * macrocmd.c (show_pp_source_pos): Use %ps.
1045 * infrun.c (print_exited_reason): Use ui_out::message.
1046 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1047 (describe_other_breakpoints): Use ui_out::message and new
1048 formats.
1049 (say_where): Use new formats.
1050 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1051 and new formats.
1052
1053 2019-10-01 Pedro Alves <palves@redhat.com>
1054 Tom Tromey <tom@tromey.com>
1055
1056 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1057 (test_gdb_formats): New function.
1058 (run_tests): Call it.
1059 (test_format_specifier): Update.
1060 * utils.h (fputs_filtered): Update comment.
1061 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1062 (fputs_styled_unfiltered): Declare.
1063 * utils.c (fputs_styled_unfiltered): New function.
1064 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1065 (vfprintf_filtered): Update.
1066 (vfprintf_unfiltered, vprintf_filtered): Update.
1067 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1068 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1069 disallow_ui_out_field>: New constants.
1070 (enum class field_kind): New.
1071 (struct base_field_s, struct signed_field_s): New.
1072 (signed_field): New function.
1073 (struct string_field_s): New.
1074 (string_field): New function.
1075 (struct styled_string_s): New.
1076 (styled_string): New function.
1077 (class ui_out) <message>: Add comment.
1078 <vmessage, call_do_message>: New methods.
1079 <do_message>: Add style parameter.
1080 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1081 methods.
1082 (ui_out::message): Rewrite.
1083 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1084 parameter.
1085 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1086 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1087 gdb_extensions parameter.
1088 (class format_piece): Add parameter to constructor.
1089 (n_int_args): New field.
1090 * gdbsupport/format.c (format_pieces::format_pieces): Add
1091 gdb_extensions parameter. Handle '*'.
1092 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1093 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1094 vfprintf_styled_no_gdbfmt.
1095 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1096 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1097 unfiltered output.
1098 * ui-style.h (struct ui_file_style) <ptr>: New method.
1099
1100 2019-10-01 Tom Tromey <tom@tromey.com>
1101
1102 * unittests/format_pieces-selftests.c: Update. Add final format.
1103 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1104 empty literal pieces.
1105
1106 2019-10-01 Tom Tromey <tom@tromey.com>
1107
1108 * ui-out.h (enum class ui_out_style_kind): Remove.
1109 (class ui_out) <field_string, field_stsream, do_field_string>:
1110 Change type of "style".
1111 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1112 (ui_out::field_string): Update.
1113 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1114 of "style".
1115 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1116 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1117 * stack.c (print_frame_arg, print_frame_info, print_frame):
1118 Update.
1119 * source.c (print_source_lines_base): Update.
1120 * solib.c (info_sharedlibrary_command): Update.
1121 * skip.c (info_skip_command): Update.
1122 * record-btrace.c (btrace_call_history_src_line)
1123 (btrace_call_history): Update.
1124 * python/py-framefilter.c (py_print_frame): Update.
1125 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1126 "style".
1127 * mi/mi-out.c (mi_ui_out::do_table_header)
1128 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1129 (mi_ui_out::do_field_string): Update.
1130 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1131 Update.
1132 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1133 "style".
1134 * cli-out.c (cli_ui_out::do_table_header)
1135 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1136 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1137 (cli_ui_out::do_field_fmt): Update.
1138 * breakpoint.c (print_breakpoint_location): Update.
1139 (update_static_tracepoint): Update.
1140
1141 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1142
1143 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1144 conversion of gdb_datadir.
1145 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1146 remove not needed c_str ().
1147
1148 2019-09-30 Ali Tamur <tamur@google.com>
1149
1150 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1151 (dwarf2_string_attr): Likewise.
1152
1153 2019-09-30 Ali Tamur <tamur@google.com>
1154
1155 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1156 (process_full_type_unit): Likewise.
1157 (dump_die_shallow): Likewise.
1158 (cu_debug_loc_section): Likewise.
1159
1160 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1161
1162 * minsyms.c (compare_minimal_symbols): Rename to...
1163 (minimal_symbol_is_less_than): ...this, and adjust to STL
1164 conventions (return bool, take arguments as references)
1165 (minimal_symbol_reader::install): Call std::sort instead
1166 of qsort.
1167
1168 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1169
1170 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1171 hash and why.
1172 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1173 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1174
1175 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1176
1177 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1178 * psympriv.h (add_psymbol_to_list): Move comment here and update
1179 it.
1180
1181 2019-09-29 Tom de Vries <tdevries@suse.de>
1182
1183 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1184 Use $tmpdir/$(basename "$output_file").dwz instead of
1185 "${output_file}.dwz".
1186
1187 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1188
1189 PR gdb/25045
1190 * hppa-linux-nat.c: Include gdbarch.h.
1191
1192 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1193
1194 * blockframe.c (find_pc_partial_function): Change return type to bool.
1195 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1196 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1197 (stub_gnu_ifunc_resolve_name): Likewise.
1198 * symtab.c (compare_filenames_for_search): Likewise.
1199 (compare_glob_filenames_for_search): Likewise.
1200 (matching_obj_sections): Likewise.
1201 (symbol_matches_domain): Likewise.
1202 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1203 (find_line_pc): Change return type to bool.
1204 (find_line_pc_range): Likewise.
1205 (producer_is_realview): Likewise.
1206 * symtab.h (symbol_matches_domain): Likewise.
1207 (find_pc_partial_function): Likewise.
1208 (find_pc_line_pc_range): Likewise.
1209 (in_gnu_ifunc_stub): Likewise.
1210 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1211 (find_line_pc): Likewise.
1212 (find_line_pc_range): Likewise.
1213 (matching_obj_sections): Likewise.
1214 (find_line_symtab): Change out parameter to bool.
1215 (producer_is_realview): Change return type to bool.
1216 (compare_filenames_for_search): Likewise.
1217 (compare_glob_filenames_for_search): Likewise.
1218
1219 2019-09-26 Tom Tromey <tom@tromey.com>
1220
1221 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1222 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1223 * gdb_usleep.h: Remove.
1224 * gdb_usleep.c: Remove.
1225 * utils.c: Don't include gdb_usleep.h.
1226
1227 2019-09-26 Tom Tromey <tromey@adacore.com>
1228
1229 * python/py-type.c (type_to_type_object): Call check_typedef
1230 for stub types.
1231
1232 2019-09-26 Tom Tromey <tom@tromey.com>
1233
1234 * utils.h (initialize_utils): Don't declare.
1235 * top.c (gdb_init): Don't call initialize_utils.
1236 * utils.c (initialize_utils): Remove. Move contents...
1237 (_initialize_utils): ... here.
1238
1239 2019-09-25 Tom Tromey <tom@tromey.com>
1240
1241 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1242 * utils.h (make_hex_string): Don't declare.
1243 * utils.c (make_hex_string): Remove.
1244
1245 2019-09-24 Tom de Vries <tdevries@suse.de>
1246
1247 PR gdb/23815
1248 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1249 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1250
1251 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1252
1253 * NEWS: Mention new simulator port for PRU.
1254
1255 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1256
1257 * ada-exp.y (write_object_remaining): Update.
1258 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1259 and eliminate the static buffer.
1260 (ada_decode_symbol): Update.
1261 (ada_la_decode): Update.
1262 (ada_sniff_from_mangled_name): Update.
1263 (is_valid_name_for_wild_match): Update.
1264 (ada_lookup_name_info::matches): Update and simplify.
1265 (name_matches_regex): Update.
1266 (ada_add_global_exceptions): Update.
1267 * ada-lang.h (ada_decode): Update signature.
1268 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1269 * dwarf-index-write.c (debug_names::insert): Update.
1270
1271 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1272
1273 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1274 formatting.
1275
1276 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1277
1278 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1279 Change "nonzero" to "true" in documentation.
1280
1281 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1282
1283 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1284 (_initialize_darwin_solib): Don't set
1285 darwin_so_ops.lookup_lib_global_symbol.
1286 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1287 set_gdbarch_iterate_over_objfiles_in_search_order.
1288 (elf_lookup_lib_symbol): Rename to...
1289 (svr4_iterate_over_objfiles_in_search_order): this, and update
1290 to iterate semantics.
1291 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1292 * solib.c (solib_global_lookup): Remove.
1293 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1294 (solib_global_lookup): Remove.
1295 * symtab.c (lookup_global_or_static_symbol): Remove call to
1296 solib_global_lookup.
1297
1298 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1299
1300 * NEWS: Move entries about default MI version now being
1301 version 3, and about the GDB/MI fix for multi-location
1302 breakpoints to the "since GDB 8.3" section.
1303
1304 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1305
1306 GDB 8.3.1 released.
1307
1308 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1309
1310 * NEWS: Mention that Cell/B.E. debugging support was removed.
1311 * MAINTAINERS: Remove spu target.
1312
1313 * config/djgpp/fnchange.lst: Remove entries for removed files.
1314
1315 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1316 spu-multiarch.o, and spu-tdep.o.
1317 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1318 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1319 spu-multiarch.c, and spu-tdep.c.
1320 * spu-linux-nat.c: Remove file.
1321 * spu-multiarch.c: Remove file.
1322 * spu-tdep.c: Remove file.
1323 * spu-tdep.h: Remove file.
1324 * solib-spu.c: Remove file.
1325 * solib-spu.h: Remove file.
1326
1327 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1328 * configure.nat (spu-linux): Remove.
1329 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1330 solib-multiarch.o from gdb_target_obs.
1331 (spu*-*-*): Remove.
1332
1333 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1334 feature flag.
1335 (ppc_linux_no_features): Update.
1336 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1337 Cell/B.E. support.
1338 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1339 (tdesc_powerpc_cell64l): Likewise.
1340 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1341 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1342 Cell/B.E. support.
1343 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1344 Do not include "features/rs6000/powerpc-cell32l.c" or
1345 "features/rs6000/powerpc-cell64l.c".
1346 (ppc_linux_spu_section): Remove.
1347 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1348 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1349 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1350 (ppc_linux_spe_context_lookup): Remove.
1351 (ppc_linux_spe_context_inferior_created): Remove.
1352 (ppc_linux_spe_context_solib_loaded): Remove.
1353 (ppc_linux_spe_context_solib_unloaded): Remove.
1354 (ppc_linux_spe_context): Remove.
1355 (struct ppu2spu_cache): Remove.
1356 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1357 (struct ppu2spu_data): Remove.
1358 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1359 ppu2spu_unwind): Remove.
1360 (ppc_linux_init_abi): Remove Cell/B.E. support.
1361 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1362
1363 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1364 (rs6000/powerpc-cell64l-expedite): Likewise
1365 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1366 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1367 rs6000/powerpc-cell64l.xml.
1368 * features/rs6000/powerpc-cell32l.xml: Remove.
1369 * features/rs6000/powerpc-cell64l.xml: Likewise.
1370 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1371 * features/rs6000/powerpc-cell64l.c: Likewise.
1372 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1373 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1374 * regformats/reg-spu.dat: Remove.
1375
1376 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1377 * corelow.c (struct spuid_list): Remove.
1378 (add_to_spuid_list): Remove.
1379 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1380 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1381 (remote_protocol_features): Remove associated entries.
1382 (_initialize_remote): No longer initialize them.
1383 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1384 * linux-nat.c (SPUFS_MAGIC): Remove.
1385 (linux_proc_xfer_spu): Remove.
1386 (spu_enumerate_spu_ids): Remove.
1387 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1388 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1389 (linux_make_corefile_notes): No longer call it.
1390
1391 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1392 (cooked_write_test): Likewise.
1393
1394 2019-09-20 Tom Tromey <tom@tromey.com>
1395
1396 * NEWS: Mention case-sensitivity of TUI commands.
1397 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1398 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1399 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1400
1401 2019-09-20 Tom Tromey <tom@tromey.com>
1402
1403 * tui/tui-source.c (tui_source_window::set_contents): Use
1404 make_unique_xstrdup.
1405 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1406 make_unique_xstrdup.
1407
1408 2019-09-20 Tom Tromey <tom@tromey.com>
1409
1410 * tui/tui-data.c: Remove separator comments.
1411 * tui/tui-layout.c: Remove separator comments.
1412 * tui/tui-win.c: Remove separator comments.
1413 * tui/tui-wingeneral.c: Remove separator comments.
1414
1415 2019-09-20 Tom Tromey <tom@tromey.com>
1416
1417 * tui/tui.h (strcat_to_buf): Don't declare.
1418 * tui/tui.c (strcat_to_buf): Remove.
1419
1420 2019-09-20 Tom Tromey <tom@tromey.com>
1421
1422 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1423 from "fullname".
1424 * tui/tui-source.c (tui_source_window::set_contents)
1425 (tui_source_window::location_matches_p)
1426 (tui_source_window::maybe_update): Update.
1427
1428 2019-09-20 Tom Tromey <tom@tromey.com>
1429
1430 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1431 Update.
1432 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1433 prefix.
1434 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1435 (tui_data_window::line_from_reg_element_no)
1436 (tui_data_window::first_reg_element_no_inline)
1437 (tui_data_window::show_registers)
1438 (tui_data_window::show_register_group)
1439 (tui_data_window::display_registers_from)
1440 (tui_data_window::display_registers_from_line)
1441 (tui_data_window::first_data_item_displayed)
1442 (tui_data_window::delete_data_content_windows)
1443 (tui_data_window::erase_data_content)
1444 (tui_data_window::do_scroll_vertical)
1445 (tui_data_window::refresh_window)
1446 (tui_data_window::check_register_values): Update.
1447
1448 2019-09-20 Tom Tromey <tom@tromey.com>
1449
1450 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1451 (struct tui_locator_window) <full_name, proc_name>: Now
1452 std::string.
1453 * tui/tui-stack.c (tui_locator_window::make_status_line)
1454 (tui_locator_window::set_locator_fullname)
1455 (tui_locator_window::set_locator_info): Update.
1456 * tui/tui-source.c (tui_source_window::set_contents)
1457 (tui_source_window::showing_source_p): Update.
1458
1459 2019-09-20 Tom Tromey <tom@tromey.com>
1460
1461 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1462 Don't call tui_locator_win_info_ptr.
1463
1464 2019-09-20 Tom Tromey <tom@tromey.com>
1465
1466 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1467
1468 2019-09-20 Tom Tromey <tom@tromey.com>
1469
1470 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1471 height for locator.
1472 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1473 * tui/tui-layout.c (show_source_disasm_command, show_data)
1474 (show_source_or_disasm_and_command): Use 1 as height for locator.
1475
1476 2019-09-20 Tom Tromey <tom@tromey.com>
1477
1478 * tui/tui.c (tui_enable): Update.
1479 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1480 Update.
1481 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1482 Update.
1483 * tui/tui-data.c (win_resized): Now bool.
1484 (tui_win_resized): Return bool.
1485 (tui_set_win_resized_to): Accept a bool.
1486
1487 2019-09-20 Tom Tromey <tom@tromey.com>
1488
1489 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1490 Change type of "refresh_values_only".
1491 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1492 type of "refresh_values_only".
1493
1494 2019-09-20 Tom Tromey <tom@tromey.com>
1495
1496 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1497 std::string.
1498 (tui_disassemble): Add "pos" parameter.
1499 (tui_disasm_window::set_contents): Simplify.
1500
1501 2019-09-20 Tom Tromey <tom@tromey.com>
1502
1503 * tui/tui-winsource.h (struct tui_source_window_base)
1504 <show_source_content>: Now private.
1505 * tui/tui-winsource.c
1506 (tui_source_window_base::show_source_content): Don't handle empty
1507 content case.
1508
1509 2019-09-20 Tom Tromey <tom@tromey.com>
1510
1511 * tui/tui-layout.c (show_source_disasm_command)
1512 (show_source_or_disasm_and_command): Don't call
1513 show_source_content.
1514
1515 2019-09-20 Tom Tromey <tom@tromey.com>
1516
1517 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1518 Declare.
1519 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1520 from tui_make_status_line.
1521 (tui_locator_window::rerender): Update.
1522
1523 2019-09-20 Tom Tromey <tom@tromey.com>
1524
1525 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1526 (tui_locator_window::rerender): Update.
1527
1528 2019-09-20 Tom Tromey <tom@tromey.com>
1529
1530 * tui/tui-winsource.h (struct tui_source_window_base)
1531 <~tui_source_window_base>: Don't declare.
1532 <fullname>: Remove.
1533 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1534 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1535 member.
1536 * tui/tui-source.c (tui_source_window::set_contents): Update.
1537 (tui_source_window::location_matches_p)
1538 (tui_source_window::maybe_update): Update.
1539
1540 2019-09-20 Tom Tromey <tom@tromey.com>
1541
1542 * tui/tui-winsource.h (~tui_source_element): Remove.
1543 (tui_source_element): Update.
1544 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1545 * tui/tui-winsource.c (tui_show_source_line): Update.
1546 * tui/tui-source.c (tui_source_window::set_contents): Update.
1547 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1548
1549 2019-09-20 Tom Tromey <tom@tromey.com>
1550
1551 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1552 declare.
1553 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1554 tui_clear_source_windows_detail.
1555 * tui/tui-winsource.h (struct tui_source_window_base)
1556 <clear_detail>: Don't declare.
1557 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1558 Remove.
1559 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1560
1561 2019-09-20 Tom Tromey <tromey@adacore.com>
1562
1563 PR ada/24919:
1564 * block.c (contained_in): Fix final return value.
1565
1566 2019-09-20 Alan Modra <amodra@gmail.com>
1567
1568 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1569 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1570 (read_indirect_string_from_dwz): Use bfd accessor.
1571 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1572 * machoread.c (macho_symfile_read_all_oso): Likewise.
1573 * solib.c (solib_bfd_open): Likewise.
1574
1575 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1576
1577 * eval.c: Move declaration of overload_resolution to...
1578 * value.h: ...here.
1579
1580 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1581
1582 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1583 * arm-linux-tdep.c: Likewise.
1584 * arm-nbsd-nat.c: Likewise.
1585 * arm-tdep.h: Declare arm_apcs_32.
1586 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1587
1588 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1589
1590 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1591 * dwarf2read.h: Declare dwarf_always_disassemble.
1592
1593 2019-09-19 Tom de Vries <tdevries@suse.de>
1594
1595 PR gdb/25009
1596 * source-cache.c (source_cache::ensure): Catch exception thrown during
1597 construction of the highlighter.
1598
1599 2019-09-18 Alan Modra <amodra@gmail.com>
1600
1601 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1602 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1603 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1604 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1605 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1606 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1607 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1608 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1609 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1610 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1611 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1612 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1613 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1614 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1615 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1616 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1617 * mi/mi-interp.c: Update throughout for bfd section macro and
1618 function changes.
1619 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1620 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1621
1622 2019-09-18 Tom Tromey <tom@tromey.com>
1623
1624 * NEWS: Add entry.
1625 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1626 call rl_initialize.
1627 (tui_enable): Do not call rl_initialize.
1628
1629 2019-09-18 Christian Groessler <chris@groessler.org>
1630
1631 * alpha-linux-nat.c: Include gdbarch.h.
1632
1633 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1634
1635 * ui-file.c: Include cli/cli-style.h.
1636 (term_cli_styling): Remove cli_styling declaration.
1637
1638 2019-09-18 Alan Modra <amodra@gmail.com>
1639
1640 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1641 to bfd_asymbol_section.
1642
1643 2019-09-18 Alan Modra <amodra@gmail.com>
1644
1645 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1646 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1647 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1648
1649 2019-09-18 Alan Modra <amodra@gmail.com>
1650
1651 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1652 * spu-linux-nat.c (spu_bfd_open): Likewise.
1653
1654 2019-09-18 Christian Biesinger <cbiesinger@google.com>
1655
1656 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1657 to bool to match definition in dwarf2read.c.
1658
1659 2019-09-17 Christian Biesinger <cbiesinger@google.com>
1660
1661 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1662 (print_signatures): Likewise.
1663 (trust_pad_over_xvs): Likewise.
1664 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1665 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1666 * arm-linux-nat.c (arm_apcs_32): Likewise.
1667 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1668 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1669 * arm-tdep.c (arm_debug): Likewise.
1670 (arm_apcs_32): Likewise.
1671 * auto-load.c (debug_auto_load): Likewise.
1672 (auto_load_gdb_scripts): Likewise.
1673 (global_auto_load): Likewise.
1674 (auto_load_local_gdbinit): Likewise.
1675 (auto_load_local_gdbinit_loaded): Likewise.
1676 * auto-load.h (global_auto_load): Likewise.
1677 (auto_load_local_gdbinit): Likewise.
1678 (auto_load_local_gdbinit_loaded): Likewise.
1679 * breakpoint.c (disconnected_dprintf): Likewise.
1680 (breakpoint_proceeded): Likewise.
1681 (automatic_hardware_breakpoints): Likewise.
1682 (always_inserted_mode): Likewise.
1683 (target_exact_watchpoints): Likewise.
1684 (_initialize_breakpoint): Update.
1685 * breakpoint.h (target_exact_watchpoints): Change to bool.
1686 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1687 * cli/cli-cmds.c (trace_commands): Likewise.
1688 * cli/cli-cmds.h (trace_commands): Likewise.
1689 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1690 to bool*.
1691 * cli/cli-logging.c (logging_overwrite): Change to bool.
1692 (logging_redirect): Likewise.
1693 (debug_redirect): Likewise.
1694 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1695 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1696 to bool.
1697 <boolean_option_def>: Update.
1698 (struct flag_option_def): Change default type of Context to bool
1699 from int.
1700 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1701 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1702 (get_setshow_command_value_string): Likewise.
1703 * cli/cli-style.c (cli_styling): Change to bool.
1704 (source_styling): Likewise.
1705 * cli/cli-style.h (source_styling): Likewise.
1706 (cli_styling): Likewise.
1707 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1708 to bool.
1709 * command.h (var_types): Update comment.
1710 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1711 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1712 bool.
1713 (debug_compile_cplus_scopes): Likewise.
1714 * compile/compile-internal.h (compile_debug): Likewise.
1715 * compile/compile.c (compile_debug): Likewise.
1716 (struct compile_options) <raw>: Likewise.
1717 * cp-support.c (catch_demangler_crashes): Likewise.
1718 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1719 (usr_cmd_cris_dwarf2_cfi): Likewise.
1720 * csky-tdep.c (csky_debug): Likewise.
1721 * darwin-nat.c (enable_mach_exceptions): Likewise.
1722 * dcache.c (dcache_enabled_p): Likewise.
1723 * defs.h (info_verbose): Likewise.
1724 * demangle.c (demangle): Likewise.
1725 (asm_demangle): Likewise.
1726 * dwarf-index-cache.c (debug_index_cache): Likewise.
1727 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1728 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1729 * dwarf2read.c (check_physname): Likewise.
1730 (use_deprecated_index_sections): Likewise.
1731 (dwarf_always_disassemble): Likewise.
1732 * eval.c (overload_resolution): Likewise.
1733 * event-top.c (set_editing_cmd_var): Likewise.
1734 (exec_done_display_p): Likewise.
1735 * event-top.h (set_editing_cmd_var): Likewise.
1736 (exec_done_display_p): Likewise.
1737 * exec.c (write_files): Likewise.
1738 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1739 (debug_fbsd_nat): Likewise.
1740 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1741 Likewise.
1742 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1743 <backtrace_past_entry> Likewise.
1744 * gdb-demangle.h (demangle): Likewise.
1745 (asm_demangle): Likewise.
1746 * gdb_bfd.c (bfd_sharing): Likewise.
1747 * gdbcore.h (write_files): Likewise.
1748 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1749 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1750 * gdbthread.h (print_thread_events): Likewise.
1751 * gdbtypes.c (opaque_type_resolution): Likewise.
1752 (strict_type_checking): Likewise.
1753 * gnu-nat.c (gnu_debug_flag): Likewise.
1754 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1755 * guile/scm-param.c (pascm_variable): Add boolval.
1756 (add_setshow_generic): Update.
1757 (pascm_param_value): Update.
1758 (pascm_set_param_value_x): Update.
1759 * hppa-tdep.c (hppa_debug): Change to bool..
1760 * infcall.c (may_call_functions_p): Likewise.
1761 (coerce_float_to_double_p): Likewise.
1762 (unwind_on_signal_p): Likewise.
1763 (unwind_on_terminating_exception_p): Likewise.
1764 * infcmd.c (startup_with_shell): Likewise.
1765 * inferior.c (print_inferior_events): Likewise.
1766 * inferior.h (startup_with_shell): Likewise.
1767 (print_inferior_events): Likewise.
1768 * infrun.c (step_stop_if_no_debug): Likewise.
1769 (detach_fork): Likewise.
1770 (debug_displaced): Likewise.
1771 (disable_randomization): Likewise.
1772 (non_stop): Likewise.
1773 (non_stop_1): Likewise.
1774 (observer_mode): Likewise.
1775 (observer_mode_1): Likewise.
1776 (set_observer_mode): Update.
1777 (sched_multi): Change to bool.
1778 * infrun.h (debug_displaced): Likewise.
1779 (sched_multi): Likewise.
1780 (step_stop_if_no_debug): Likewise.
1781 (non_stop): Likewise.
1782 (disable_randomization): Likewise.
1783 * linux-tdep.c (use_coredump_filter): Likewise.
1784 (dump_excluded_mappings): Likewise.
1785 * linux-thread-db.c (auto_load_thread_db): Likewise.
1786 (check_thread_db_on_load): Likewise.
1787 * main.c (captured_main_1): Update.
1788 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1789 xx2_opt, boolean_opt>: Change to bool.
1790 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1791 * maint.c (maintenance_profile_p): Likewise.
1792 (per_command_time): Likewise.
1793 (per_command_space): Likewise.
1794 (per_command_symtab): Likewise.
1795 * memattr.c (inaccessible_by_default): Likewise.
1796 * mi/mi-main.c (mi_async): Likewise.
1797 (mi_async_1): Likewise.
1798 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1799 * nat/fork-inferior.h (startup_with_shell): Likewise.
1800 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1801 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1802 * nios2-tdep.c (nios2_debug): Likewise.
1803 * or1k-tdep.c (or1k_debug): Likewise.
1804 * parse.c (parser_debug): Likewise.
1805 * parser-defs.h (parser_debug): Likewise.
1806 * printcmd.c (print_symbol_filename): Likewise.
1807 * proc-api.c (procfs_trace): Likewise.
1808 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1809 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1810 (set_parameter_value): Update.
1811 (add_setshow_generic): Update.
1812 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1813 to bool*.
1814 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1815 int*.
1816 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1817 * record-btrace.c (record_btrace_target::store_registers): Update.
1818 * record-full.c (record_full_memory_query): Change to bool.
1819 (record_full_stop_at_limit): Likewise.
1820 * record-full.h (record_full_memory_query): Likewise.
1821 * remote-notif.c (notif_debug): Likewise.
1822 * remote-notif.h (notif_debug): Likewise.
1823 * remote.c (use_range_stepping): Likewise.
1824 (interrupt_on_connect): Likewise.
1825 (remote_break): Likewise.
1826 * ser-tcp.c (tcp_auto_retry): Likewise.
1827 * ser-unix.c (serial_hwflow): Likewise.
1828 * skip.c (debug_skip): Likewise.
1829 * solib-aix.c (solib_aix_debug): Likewise.
1830 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1831 (spu_auto_flush_cache_p): Likewise.
1832 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1833 Likewise.
1834 (struct info_print_options) <quiet>: Likewise.
1835 * symfile-debug.c (debug_symfile): Likewise.
1836 * symfile.c (auto_solib_add): Likewise.
1837 (separate_debug_file_debug): Likewise.
1838 * symfile.h (auto_solib_add): Likewise.
1839 (separate_debug_file_debug): Likewise.
1840 * symtab.c (basenames_may_differ): Likewise.
1841 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1842 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1843 (struct info_types_options) <quiet>: Likewise.
1844 * symtab.h (demangle): Likewise.
1845 (basenames_may_differ): Likewise.
1846 * target-dcache.c (stack_cache_enabled_1): Likewise.
1847 (code_cache_enabled_1): Likewise.
1848 * target.c (trust_readonly): Likewise.
1849 (may_write_registers): Likewise.
1850 (may_write_memory): Likewise.
1851 (may_insert_breakpoints): Likewise.
1852 (may_insert_tracepoints): Likewise.
1853 (may_insert_fast_tracepoints): Likewise.
1854 (may_stop): Likewise.
1855 (auto_connect_native_target): Likewise.
1856 (target_stop_and_wait): Update.
1857 (target_async_permitted): Change to bool.
1858 (target_async_permitted_1): Likewise.
1859 (may_write_registers_1): Likewise.
1860 (may_write_memory_1): Likewise.
1861 (may_insert_breakpoints_1): Likewise.
1862 (may_insert_tracepoints_1): Likewise.
1863 (may_insert_fast_tracepoints_1): Likewise.
1864 (may_stop_1): Likewise.
1865 * target.h (target_async_permitted): Likewise.
1866 (may_write_registers): Likewise.
1867 (may_write_memory): Likewise.
1868 (may_insert_breakpoints): Likewise.
1869 (may_insert_tracepoints): Likewise.
1870 (may_insert_fast_tracepoints): Likewise.
1871 (may_stop): Likewise.
1872 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1873 (make_thread_apply_all_options_def_group): Change argument from int*
1874 to bool*.
1875 (thread_apply_all_command): Update.
1876 (print_thread_events): Change to bool.
1877 * top.c (confirm): Likewise.
1878 (command_editing_p): Likewise.
1879 (history_expansion_p): Likewise.
1880 (write_history_p): Likewise.
1881 (info_verbose): Likewise.
1882 * top.h (confirm): Likewise.
1883 (history_expansion_p): Likewise.
1884 * tracepoint.c (disconnected_tracing): Likewise.
1885 (circular_trace_buffer): Likewise.
1886 * typeprint.c (print_methods): Likewise.
1887 (print_typedefs): Likewise.
1888 * utils.c (debug_timestamp): Likewise.
1889 (sevenbit_strings): Likewise.
1890 (pagination_enabled): Likewise.
1891 * utils.h (sevenbit_strings): Likewise.
1892 (pagination_enabled): Likewise.
1893 * valops.c (overload_resolution): Likewise.
1894 * valprint.h (struct value_print_options) <prettyformat_arrays,
1895 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1896 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1897 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1898 Likewise.
1899 * windows-nat.c (new_console): Likewise.
1900 (cygwin_exceptions): Likewise.
1901 (new_group): Likewise.
1902 (debug_exec): Likewise.
1903 (debug_events): Likewise.
1904 (debug_memory): Likewise.
1905 (debug_exceptions): Likewise.
1906 (useshell): Likewise.
1907 * windows-tdep.c (maint_display_all_tib): Likewise.
1908 * xml-support.c (debug_xml): Likewise.
1909
1910 2019-09-17 Mike Gulick <mgulick@mathworks.com>
1911
1912 * source.c (prepare_path_for_appending): New function.
1913 (openp): Make use of new function.
1914 (find_and_open_source): Search for the compilation directory and
1915 source file as a relative path beneath the directory search path.
1916
1917 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1918
1919 * source-cache.c (source_cache::get_line_charpos): Catch
1920 exceptions and return false, this matches the behaviour documented
1921 in the header file.
1922
1923 2019-09-17 Joel Brobecker <brobecker@adacore.com>
1924
1925 * ada-tasks.c (info_task): Remove quoting of the task's name.
1926
1927 2019-09-16 Christian Biesinger <cbiesinger@google.com>
1928
1929 * symfile.c (auto_solib_add): Replace comment with a reference
1930 to the header file.
1931
1932 2019-09-14 Christian Biesinger <cbiesinger@google.com>
1933
1934 * NEWS: Mention that gdb can now be compiled with Python 3
1935 on Windows.
1936
1937 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1938
1939 * maint.c (maint_print_section_data::maint_print_section_data):
1940 Force use of 'float log10 (float)' by casting the argument to
1941 float.
1942
1943 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1944
1945 * maint.c: Add 'cmath' include.
1946 (struct maint_print_section_data): New structure.
1947 (print_section_index): New function.
1948 (print_bfd_section_info): Add header comment, small whitespace
1949 cleanup, and update to call new print_section_index function.
1950 (print_objfile_section_info): Likewise.
1951 (maint_obj_section_from_bfd_section): New function.
1952 (print_bfd_section_info_maybe_relocated): New function.
1953 (maintenance_info_sections): Add header comment, always use
1954 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1955
1956 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1957
1958 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1959 inner scope, add check that the objfile has psymtabs before
1960 checking psymtabs_addrmap.
1961 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1962
1963 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1964
1965 * NEWS: Announce that Ada task names are now shown at more places,
1966 and between quotes (except in info task output).
1967 * gdb/ada-tasks.c (task_to_str): New function.
1968 (display_current_task_id): Call task_to_str.
1969 (task_command_1): Likewise.
1970 (print_ada_task_info): In non-mi mode, Properly align headers and data
1971 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1972
1973 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1974
1975 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1976 prstatus.pr_lwp.pr_info instead of making it up.
1977
1978 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1979
1980 * auto-load.c (auto_load_expand_dir_vars): Update.
1981 * defs.h (gdb_datadir): Change to std::string.
1982 (python_libdir): Likewise.
1983 (relocate_gdb_directory): Change return type to std::string.
1984 * guile/guile.c (gdbscm_data_directory): Update.
1985 (initialize_scheme_side): Update.
1986 * jit.c (jit_reader_dir): Change to std::string.
1987 (jit_reader_load_command): Update.
1988 * main.c (gdb_datadir): Change to std::string.
1989 (python_libdir): Likewise.
1990 (set_gdb_data_directory): Update.
1991 (relocate_path): Change to return std::string.
1992 (relocate_gdb_directory): Change to return std::string.
1993 (relocate_gdbinit_path_maybe_in_datadir): Update.
1994 (captured_main_1): Update.
1995 * python/python.c (do_start_initialization): Update.
1996 * top.c (show_gdb_datadir): Update.
1997 * xml-syscall.c (xml_init_syscalls_info): Update.
1998 (init_syscalls_info): Update.
1999
2000 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2001
2002 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2003 out of get_init_files.
2004 (get_init_files): Update.
2005
2006 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2007
2008 * main.c (get_init_files): Change to use std::string.
2009 (captured_main_1): Update.
2010 (print_gdb_help): Update.
2011
2012 2019-09-11 Ali Tamur <tamur@google.com>
2013
2014 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2015 implementation.
2016
2017 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2018
2019 * dbxread.c (read_dbx_symtab): Update.
2020 * dwarf2read.c (load_partial_dies): Update.
2021 * mdebugread.c (parse_partial_symbols): Update.
2022 (handle_psymbol_enumerators): Update.
2023 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2024 * psymtab.c (add_psymbol_to_bcache): Likewise.
2025 (add_psymbol_to_list): Likewise.
2026 * symtab.c (symbol_set_names): Likewise.
2027 * symtab.h (symbol_set_names): Likewise.
2028 * xcoffread.c (scan_xcoff_symtab): Update.
2029
2030 2019-09-11 Tom Tromey <tom@tromey.com>
2031
2032 * symfile-mem.c (symbol_file_add_from_memory): Use
2033 bfd_set_filename.
2034 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2035 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2036
2037 2019-09-10 Tom Tromey <tromey@adacore.com>
2038
2039 * dwarf-index-write.c (write_psymbols): Extend error message.
2040 (debug_names::insert): Add Ada code.
2041 (debug_names::write_psymbols): Remove Ada check.
2042 (debug_names) <m_string_obstack>: New member.
2043 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2044 (gdb_index_symbol_name_matcher::matches): Remove.
2045 (mapped_index_base::find_name_components_bounds): Add "lang"
2046 parameter.
2047 (mapped_index_base::build_name_components): Also split names
2048 according to Ada syntax.
2049 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2050 type of "match_callback".
2051 (check_match, check_find_bounds_finds)
2052 (dw2_expand_symtabs_matching): Update.
2053 (dw2_debug_names_iterator): Add new constructor.
2054 (dw2_debug_names_map_matching_symbols): New function.
2055 (dw2_debug_names_expand_symtabs_matching): Update.
2056 (dwarf2_debug_names_functions): Use
2057 dw2_debug_names_map_matching_symbols.
2058
2059 2019-09-10 Tom Tromey <tromey@adacore.com>
2060
2061 * dwarf2read.c (dw2_get_file_names_reader): Add the
2062 CU's file name to the results.
2063
2064 2019-09-10 Tom Tromey <tromey@adacore.com>
2065
2066 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2067 map_matching_symbols. Update.
2068 * dwarf2read.c (dw2_map_matching_symbols): Update.
2069 * psymtab.c (match_partial_symbol): Change type; update.
2070 (psym_map_matching_symbols): Likewise.
2071 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2072 type; update.
2073 * symfile.h (struct quick_symbol_functions)
2074 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2075 Remove "match".
2076
2077 2019-09-10 Tom Tromey <tromey@adacore.com>
2078
2079 * psymtab.c (map_block): Remove.
2080 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2081 * symtab.c (iterate_over_symbols_terminated): New function.
2082 * symtab.c (iterate_over_symbols_terminated): Declare.
2083
2084 2019-09-10 Tom Tromey <tromey@adacore.com>
2085
2086 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2087 * language.h (struct language_defn) <la_iterate_over_symbols>:
2088 Return bool.
2089 * symtab.c (iterate_over_symbols): Return bool.
2090 * symtab.h (iterate_over_symbols): Return bool.
2091
2092 2019-09-10 Tom Tromey <tromey@adacore.com>
2093
2094 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2095 (add_nonlocal_symbols): Update.
2096 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2097 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2098 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2099 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2100 Change type of "callback". Remove "data".
2101
2102
2103 2019-09-09 Ali Tamur <tamur@google.com>
2104
2105 * dwarf2read.c (comp_unit_head): Update comment.
2106 (dwarf2_dwo_name): New function declaration.
2107 (dwarf_unit_type_name): New function declaration.
2108 (read_comp_unit_head): Add support for new compilation units,
2109 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2110 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2111 (currently named as "signature") in their header. Also clarify error
2112 messages.
2113 (lookup_dwo_id): New function. Returns the dwo id of the given
2114 compile unit.
2115 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2116 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2117 functions.
2118 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2119 (dwarf2_dwo_name): Get the dwo name if present.
2120 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2121 purposes.
2122
2123 2019-09-09 Tom Tromey <tom@tromey.com>
2124
2125 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2126
2127 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2128
2129 * python/python.c (do_start_initialization): Make progname_copy static,
2130 to avoid a leak report.
2131
2132 2019-09-08 Tom Tromey <tom@tromey.com>
2133
2134 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2135
2136 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2137
2138 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2139 Change type to gdb::optional<block_enum>.
2140 (dw2_symtab_iter_init): Change block_index parameter type
2141 to gdb::optional<block_enum>.
2142 (dw2_lookup_symbol): Change block_index parameter
2143 type to block_enum.c
2144 (dw2_debug_names_lookup_symbol): Likewise.
2145 * psymtab.c (psym_lookup_symbol): Likewise.
2146 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2147 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2148 Likewise.
2149
2150 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2151
2152 * defs.h (relocate_gdb_directory): Change int to bool in
2153 signature and rename flag to relocatable.
2154 * main.c (relocate_path): Likewise.
2155 (relocate_gdb_directory): Likewise.
2156
2157 2019-09-06 Alan Modra <amodra@gmail.com>
2158
2159 * coffread.c (coff_symfile_read): Constify filename variable.
2160 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2161 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2162 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2163 * solib.c (reload_shared_libraries_1): Likewise.
2164 * symfile.c (reread_symbols): Likewise.
2165 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2166 * solib-darwin.c (darwin_bfd_open): Likewise.
2167 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2168
2169 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2170
2171 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2172 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2173
2174 2019-09-03 Tom Tromey <tromey@adacore.com>
2175
2176 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2177 types.
2178 (has_negatives): Unbias a range type bound.
2179 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2180 * gdbtypes.c (operator==): Handle new field.
2181 (create_range_type): Add "bias" parameter.
2182 (create_static_range_type, resolve_dynamic_range): Update.
2183 * gdbtypes.h (struct range_bounds) <bias>: New member.
2184 (create_range_type): Add bias parameter.
2185 * printcmd.c (print_scalar_formatted): Unbias range types.
2186 * value.c (unpack_long): Unbias range types.
2187 (pack_long): Bias range types.
2188
2189 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2190
2191 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2192 probe arguments.
2193
2194 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2195
2196 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2197 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2198 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2199 (compile_probe_arg): Likewise.
2200 * probe.h (get_argument_count): Likewise.
2201 * solib-svr4.c (solib_event_probe_action): Likewise.
2202 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2203
2204 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2205
2206 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2207 code to here...
2208 (svr4_create_solib_event_breakpoints): ...from here.
2209
2210 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2211
2212 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2213 suffix from warning message.
2214
2215 2019-08-30 Tom Tromey <tom@tromey.com>
2216
2217 * tui/tui-winsource.h (struct tui_source_window_base)
2218 <refresh_all>: Don't declare.
2219 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2220 Remove.
2221 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2222 tui_show_locator_content.
2223 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2224 declare.
2225 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2226 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2227 declare.
2228
2229 2019-08-30 Tom Tromey <tom@tromey.com>
2230
2231 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2232
2233 2019-08-30 Tom Tromey <tom@tromey.com>
2234
2235 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2236 Remove unnecessary forward declarations.
2237
2238 2019-08-30 Tom Tromey <tom@tromey.com>
2239
2240 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2241 rerender.
2242 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2243 tui_show_locator_content.
2244
2245 2019-08-30 Tom Tromey <tom@tromey.com>
2246
2247 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2248 (tui_locator_window::rerender): Rewrite using body of previous
2249 tui_show_locator_content.
2250
2251 2019-08-30 Tom Tromey <tom@tromey.com>
2252
2253 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2254 set_locator_fullname>: New methods.
2255 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2256 Rename from tui_set_locator_fullname.
2257 (tui_locator_window::set_locator_info): Rename from
2258 tui_set_locator_info. Return bool.
2259 (tui_update_locator_fullname, tui_show_frame_info): Update.
2260
2261 2019-08-30 Tom Tromey <tom@tromey.com>
2262
2263 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2264
2265 2019-08-30 Tom Tromey <tom@tromey.com>
2266
2267 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2268 call touchwin.
2269
2270 2019-08-30 Tom Tromey <tom@tromey.com>
2271
2272 * tui/tui-wingeneral.c (box_win): Assume win_info and
2273 win_info->handle cannot be NULL.
2274
2275 2019-08-30 Tom Tromey <tom@tromey.com>
2276
2277 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2278 refresh_window>: Declare.
2279 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2280 resize.
2281 (tui_data_item_window::rerender): Rename from
2282 tui_display_register.
2283 (tui_data_item_window::refresh_window): New method.
2284 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2285 no-op.
2286
2287 2019-08-30 Tom Tromey <tom@tromey.com>
2288
2289 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2290 regs_column_count, current_group>: Move later. Now private.
2291 <get_current_group>: New method.
2292 * tui/tui-regs.c (tui_reg_command): Update.
2293 * tui/tui-layout.c (tui_set_layout): Update.
2294
2295 2019-08-30 Tom Tromey <tom@tromey.com>
2296
2297 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2298 (tui_data_window::rerender): Don't call
2299 check_and_display_highlight_if_needed.
2300 (tui_data_window::refresh_all): Remove call to
2301 erase_data_content.
2302
2303 2019-08-30 Tom Tromey <tom@tromey.com>
2304
2305 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2306 (tui_data_window::display_registers_from)
2307 (tui_data_window::display_reg_element_at_line)
2308 (tui_data_window::display_registers_from_line): Remove checks of
2309 "empty".
2310
2311 2019-08-30 Tom Tromey <tom@tromey.com>
2312
2313 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2314 Don't declare.
2315 * tui/tui-regs.c (tui_data_window::show_registers): Call
2316 rerender.
2317 (tui_data_window::rerender): Rename from display_all_data.
2318 (tui_data_window::rerender): Remove old implementation.
2319
2320 2019-08-30 Tom Tromey <tom@tromey.com>
2321
2322 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2323 text.
2324 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2325
2326 2019-08-29 Bernhard Wodok <barto@gmx.net>
2327 Sergio Durigan Junior <sergiodj@redhat.com>
2328
2329 PR win32/24284
2330 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2331
2332 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2333
2334 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2335 when searching for types.
2336
2337 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2338
2339 * f-lang.c (f_language_defn): Use f_print_typedef.
2340 * f-lang.h (f_print_typedef): Declare.
2341 * f-typeprint.c (f_print_typedef): Define.
2342
2343 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2344
2345 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2346
2347 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2348
2349 * cli/cli-utils.c (info_print_options_defs): Delete.
2350 (make_info_print_options_def_group): Delete.
2351 (extract_info_print_options): Delete.
2352 (info_print_command_completer): Delete.
2353 (info_print_args_help): Add extra parameter, and optionally
2354 include text about -n flag.
2355 * cli/cli-utils.h (struct info_print_options): Delete.
2356 (extract_info_print_options): Delete declaration.
2357 (info_print_command_completer): Delete declaration.
2358 (info_print_args_help): Add extra parameter, extend header
2359 comment.
2360 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2361 search_symbols.
2362 * stack.c (struct info_print_options): New type.
2363 (info_print_options_defs): New file scoped variable.
2364 (make_info_print_options_def_group): New static function.
2365 (info_print_command_completer): New static function.
2366 (info_locals_command): Update to use new local functions.
2367 (info_args_command): Likewise.
2368 (_initialize_stack): Add extra parameter to calls to
2369 info_print_args_help.
2370 * symtab.c (search_symbols): Add extra parameter, use this to
2371 possibly excluse non-debug symbols.
2372 (symtab_symbol_info): Add extra parameter, which is passed on to
2373 search_symbols.
2374 (struct info_print_options): New type.
2375 (info_print_options_defs): New file scoped variable.
2376 (make_info_print_options_def_group): New static function.
2377 (info_print_command_completer): New static function.
2378 (info_variables_command): Update to use local functions, and pass
2379 extra parameter through to symtab_symbol_info.
2380 (info_functions_command): Likewise.
2381 (info_types_command): Pass additional argument through to
2382 symtab_symbol_info.
2383 (rbreak_command): Pass extra argument to search_symbols.
2384 (_initialize_symtab): Add extra arguments for calls to
2385 info_print_args_help, and update help text for 'info variables',
2386 'whereis', and 'info functions' commands.
2387 * symtab.h (search_symbols): Add extra argument to declaration.
2388 * NEWS: Mention new flags.
2389
2390 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2391
2392 * symtab.c (lookup_static_symbol): Call the new function (and move
2393 it down to be next to lookup_global_symbol).
2394 (struct global_sym_lookup_data): Add block_enum member and rename to...
2395 (struct global_or_static_sym_lookup_data): ...this.
2396 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2397 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2398 (lookup_symbol_global_or_static_iterator_cb): ...this.
2399 (lookup_global_or_static_symbol): New function.
2400 (lookup_global_symbol): Call new function.
2401
2402 2019-08-26 Tom de Vries <tdevries@suse.de>
2403
2404 PR c++/24852
2405 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2406 when pc_probe.prob == NULL.
2407
2408 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2409
2410 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2411 variable symbol_linkage to symbol_linkage_.
2412
2413 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2414
2415 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2416 represent whether the symbol is static, dynamic, or we don't
2417 know.
2418
2419 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2420
2421 * gdb/rx-tdep.c (rx_register_names): New.
2422 (rx_register_name): Delete.
2423 (rx_psw_type): Delete.
2424 (rx_fpsw_type): Delete.
2425 (rx_register_type): Delete.
2426 (rx_gdbarch_init): Convert target-descriptions.
2427 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2428 * gdb/features/Makefile: Add rx.xml.
2429 * gdb/features/rx.xml: New.
2430 * gdb/features/rx.c: Generated.
2431 * gdb/NEWS: Mention target description support.
2432
2433 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2434
2435 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2436 *slot_ptr.
2437
2438 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2439
2440 * configure.ac: Don't check for 'dlfcn.h' (moved to
2441 gdbsupport/common.m4).
2442 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2443 'gdbsupport/'.
2444 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2445 * compile/compile-c-support.c: Include
2446 'gdbsupport/gdb-dlfcn.h'.
2447 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2448 * gdb-dlfcn.c: Move to...
2449 * gdbsupport/gdb-dlfcn.c: ... here.
2450 * gdb-dlfcn.h: Move to...
2451 * gdbsupport/gdb-dlfcn.h: ... here.
2452
2453 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2454
2455 * nios2-tdep.c (struct reg_value): Improve comments. Make
2456 the offset field signed.
2457
2458 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2459
2460 * python/lib/gdb/__init__.py (_execute_file): New function.
2461 * python/python.c (python_run_simple_file): Call gdb._execute_file
2462 on Windows.
2463
2464 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2467 all uses as this was never set to anything but a zero value.
2468
2469 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2470
2471 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2472
2473 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2474
2475 * tui/tui-data.h (tui_gen_win_info): Add an =default
2476 move constructor, required by some GCC versions.
2477
2478 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2479
2480 * go32-nat.c (go32_sysinfo): Add hygon_p.
2481
2482 2019-08-20 Tom Tromey <tom@tromey.com>
2483
2484 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2485 line_from_reg_element_no, first_reg_element_no_inline,
2486 display_all_data, delete_data_content_windows,
2487 erase_data_content>: Now private.
2488
2489 2019-08-20 Tom Tromey <tom@tromey.com>
2490
2491 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2492 (tui_unhighlight_win, tui_highlight_win)
2493 (tui_win_info::make_window): Update.
2494 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2495
2496 2019-08-20 Tom Tromey <tom@tromey.com>
2497
2498 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2499 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2500 (MAX_PID_WIDTH): Move to tui-stack.c.
2501 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2502 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2503 (MAX_PID_WIDTH): Move from tui-data.h.
2504
2505 2019-08-20 Tom Tromey <tom@tromey.com>
2506
2507 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2508 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2509 (box_win): Update.
2510 (tui_gen_win_info::make_window): Rename from tui_make_window.
2511 (tui_win_info::make_window): New method.
2512 (tui_gen_win_info::make_visible): Update.
2513 * tui/tui-source.c (tui_source_window::set_contents): Update.
2514 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2515 (tui_data_window::display_registers_from): Update.
2516 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2517 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2518 Declare.
2519 <can_box>: Remove.
2520 <title>: Remove.
2521 (struct tui_win_info) <make_window>: Declare.
2522 <can_box>: Now virtual.
2523 <title>: New member.
2524 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2525 * tui/tui-command.c (tui_cmd_window::resize): Update.
2526
2527 2019-08-20 Tom Tromey <tom@tromey.com>
2528
2529 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2530 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2531 (tui_data_window::check_register_values): Update.
2532
2533 2019-08-20 Tom Tromey <tom@tromey.com>
2534
2535 * tui/tui-regs.h (struct tui_data_window): Use
2536 DISABLE_COPY_AND_ASSIGN.
2537 <regs_content>: Change type, removing unique_ptr.
2538 <tui_data_window>: Add move constructor.
2539 * tui/tui-regs.c (tui_data_window::show_registers)
2540 (tui_data_window::show_register_group)
2541 (tui_data_window::display_registers_from)
2542 (tui_data_window::display_registers_from)
2543 (tui_data_window::first_data_item_displayed)
2544 (tui_data_window::delete_data_content_windows)
2545 (tui_data_window::rerender, tui_data_window::refresh_window)
2546 (tui_data_window::check_register_values): Update.
2547
2548 2019-08-20 Tom Tromey <tom@tromey.com>
2549
2550 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2551 show_register_group>: Declare.
2552 (tui_show_register_group): Don't declare.
2553 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2554 tui_show_registers.
2555 (tui_data_window::show_register_group): Rename from
2556 tui_show_register_group.
2557 (tui_data_window::check_register_values, tui_reg_command):
2558 Update.
2559 * tui/tui-layout.c (tui_set_layout): Update.
2560
2561 2019-08-20 Tom Tromey <tom@tromey.com>
2562
2563 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2564 Declare.
2565 (tui_check_register_values): Don't declare.
2566 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2567 from tui_check_register_values.
2568 * tui/tui-hooks.c (tui_register_changed): Update.
2569
2570 2019-08-20 Tom Tromey <tom@tromey.com>
2571
2572 * tui/tui-regs.c (tui_reg_layout): Move later.
2573 (tui_show_registers): Don't enable TUI mode or change layout.
2574
2575 2019-08-20 Tom Tromey <tom@tromey.com>
2576
2577 * tui/tui-regs.h (struct tui_data_item_window)
2578 <~tui_data_item_window>: Remove.
2579 <content>: Now a unique_xmalloc_ptr.
2580 * tui/tui-regs.c (tui_register_format): Return a
2581 unique_xmalloc_ptr.
2582 (tui_get_register): Update.
2583 (~tui_data_item_window): Remove.
2584 (tui_data_window::display_registers_from, tui_display_register):
2585 Update.
2586 * tui/tui-io.h (tui_expand_tabs): Update.
2587 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2588 Remove "col" parameter.
2589
2590 2019-08-20 Tom Tromey <tom@tromey.com>
2591
2592 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2593 field.
2594 * tui/tui-regs.c (~tui_data_item_window): Update.
2595
2596 2019-08-20 Tom Tromey <tom@tromey.com>
2597
2598 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2599 earlier.
2600
2601 2019-08-20 Tom Tromey <tom@tromey.com>
2602
2603 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2604
2605 2019-08-20 Tom Tromey <tom@tromey.com>
2606
2607 * tui/tui-source.h (struct tui_source_window): Update.
2608 * tui/tui-regs.c (tui_show_registers): Update.
2609 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2610 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2611 (NO_REGS_STRING): Remove defines.
2612
2613 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
2614
2615 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2616 unnecessary thread walk if remote doesn't support the packet.
2617
2618 2019-08-19 Tom Tromey <tromey@adacore.com>
2619
2620 * python/py-value.c (value_has_field): Fix indentation.
2621
2622 2019-08-19 Tom Tromey <tromey@adacore.com>
2623
2624 * printcmd.c (do_one_display, info_display_command): Update.
2625 * block.h (contained_in): Return bool. Add allow_nested
2626 parameter.
2627 * block.c (contained_in): Return bool. Add allow_nested
2628 parameter.
2629
2630 2019-08-19 Tom Tromey <tom@tromey.com>
2631
2632 * configure: Rebuild.
2633 * configure.ac: Disallow the combination of -static-libstdc++ and
2634 source highlight.
2635 * source-cache.c (get_language_name): Handle rust.
2636 (source_cache::get_source_lines): Ignore highlighting exceptions.
2637
2638 2019-08-16 Tom Tromey <tom@tromey.com>
2639
2640 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2641 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2642 (struct tui_source_window_base) <make_visible, refresh_window,
2643 resize>: Remove methods.
2644 <execution_info>: Remove field.
2645 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2646 (tui_show_source_line, tui_source_window_base)
2647 (~tui_source_window_base): Update.
2648 (tui_source_window_base::resize)
2649 (tui_source_window_base::make_visible)
2650 (tui_source_window_base::refresh_window): Remove.
2651 (tui_source_window_base::update_exec_info): Update.
2652 * tui/tui-source.c (tui_source_window::set_contents): Update.
2653 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2654
2655 2019-08-16 Tom Tromey <tom@tromey.com>
2656
2657 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2658 deprecated_query_hook.
2659
2660 2019-08-16 Tom Tromey <tom@tromey.com>
2661
2662 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2663 (tui_update_source_windows_with_line): Update.
2664 * tui/tui-source.h (struct tui_source_window)
2665 <show_symtab_source>: Declare.
2666 (tui_show_symtab_source): Don't declare.
2667 * tui/tui-source.c (tui_show_symtab_source): Rename from
2668 tui_show_symtab_source.
2669
2670 2019-08-16 Tom Tromey <tom@tromey.com>
2671
2672 * tui/tui-winsource.h (struct tui_source_window_base)
2673 <set_contents>: Declare.
2674 * tui/tui-winsource.c
2675 (tui_source_window_base::update_source_window_as_is): Update.
2676 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2677 Declare.
2678 (tui_set_source_content): Don't declare.
2679 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2680 tui_set_source_content.
2681 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2682 Declare.
2683 (tui_set_disassem_content): Don't declare.
2684 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2685 tui_set_disassem_content.
2686
2687 2019-08-16 Tom Tromey <tom@tromey.com>
2688
2689 * tui/tui-winsource.h (struct tui_source_window_base)
2690 <update_breakpoint_info>: Declare.
2691 (tui_update_breakpoint_info): Don't declare.
2692 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2693 (tui_update_all_breakpoint_info): Update.
2694 (tui_source_window_base::update_breakpoint_info): Rename from
2695 tui_update_breakpoint_info.
2696 (tui_source_window_base::update_exec_info): Update.
2697
2698 2019-08-16 Tom Tromey <tom@tromey.com>
2699
2700 * tui/tui-winsource.h (struct tui_source_window_base)
2701 <update_source_window>: Declare.
2702 (tui_update_source_window): Don't declare.
2703 * tui/tui-winsource.c
2704 (tui_source_window_base::update_source_window): Rename from
2705 tui_update_source_window.
2706 (tui_source_window_base::rerender): Update.
2707 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2708 * tui/tui-disasm.c (tui_show_disassem)
2709 (tui_show_disassem_and_update_source)
2710 (tui_disasm_window::maybe_update): Update.
2711
2712 2019-08-16 Tom Tromey <tom@tromey.com>
2713
2714 * tui/tui-winsource.h (struct tui_source_window_base)
2715 <update_source_window_as_is>: Declare.
2716 (tui_update_source_window_as_is): Don't declare.
2717 * tui/tui-winsource.c (tui_update_source_window): Update
2718 (tui_source_window_base::update_source_window_as_is): Rename from
2719 tui_update_source_window_as_is.
2720 (tui_source_window_base::refill): Update.
2721 * tui/tui-source.c (tui_show_symtab_source): Update.
2722 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2723 Update.
2724
2725 2019-08-16 Tom Tromey <tom@tromey.com>
2726
2727 * tui/tui-winsource.h (tui_update_source_window)
2728 (tui_update_source_window_as_is): Remove "noerror" parameter.
2729 * tui/tui-winsource.c (tui_update_source_window)
2730 (tui_update_source_window_as_is): Remove "noerror" parameter.
2731 (tui_update_source_windows_with_addr)
2732 (tui_update_source_windows_with_line)
2733 (tui_source_window_base::rerender)
2734 (tui_source_window_base::refill): Update.
2735 * tui/tui-source.h (tui_set_source_content)
2736 (tui_show_symtab_source): Remove "noerror" parameter.
2737 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2738 parameter.
2739 (tui_show_symtab_source): Likewise.
2740 (tui_source_window::maybe_update): Update.
2741 * tui/tui-disasm.c (tui_show_disassem)
2742 (tui_show_disassem_and_update_source)
2743 (tui_disasm_window::do_scroll_vertical)
2744 (tui_disasm_window::maybe_update): Update.
2745
2746 2019-08-16 Tom Tromey <tom@tromey.com>
2747
2748 * tui/tui.c (tui_is_window_visible): Update.
2749 * tui/tui-wingeneral.c (tui_make_window)
2750 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2751 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2752 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2753 (tui_set_win_height_command, parse_scrolling_args): Update.
2754 * tui/tui-source.c (tui_source_window::style_changed): Update.
2755 * tui/tui-regs.c (tui_show_registers)
2756 (tui_data_window::first_data_item_displayed)
2757 (tui_data_window::delete_data_content_windows)
2758 (tui_check_register_values, tui_reg_command): Update.
2759 * tui/tui-disasm.c (tui_show_disassem): Update.
2760 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2761 method.
2762 <is_visible>: Remove field.
2763 * tui/tui-data.c (tui_next_win, tui_prev_win)
2764 (tui_delete_invisible_windows): Update.
2765
2766 2019-08-16 Tom Tromey <tom@tromey.com>
2767
2768 * tui/tui-winsource.h (struct tui_source_window_base)
2769 <m_has_locator>: Remove.
2770 * tui/tui-layout.c (show_source_disasm_command, show_data)
2771 (show_source_or_disasm_and_command): Update.
2772
2773 2019-08-16 Alan Hayward <alan.hayward@arm.com>
2774
2775 * NEWS (Other MI changes): New subsection.
2776 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2777 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2778 * arch-utils.c (default_get_pc_address_flags): New function.
2779 * arch-utils.h (default_get_pc_address_flags): New declaration.
2780 * gdbarch.sh: Add get_pc_address_flags.
2781 * gdbarch.c: Regenerate.
2782 * gdbarch.h: Likewise.
2783 * stack.c (print_pc): New function.
2784 (print_frame_info) (print_frame): Call print_pc.
2785
2786 2019-08-16 Tom de Vries <tdevries@suse.de>
2787
2788 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2789 print_objfile_section_info.
2790
2791 2019-08-15 Tom Tromey <tom@tromey.com>
2792
2793 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2794 calling update_cmdwin_start_line.
2795 * tui/tui-winsource.h (struct tui_source_window_base)
2796 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2797 <rerender>: Declare.
2798 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2799 Call rerender.
2800 (tui_source_window_base::set_new_height): Remove.
2801 (tui_source_window_base::rerender): Rename from
2802 do_make_visible_with_new_height.
2803 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2804 resize method.
2805 (tui_win_info::make_invisible_and_set_new_height)
2806 (tui_win_info::make_visible_with_new_height): Remove.
2807 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2808 Declare.
2809 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2810 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2811 do_make_visible_with_new_height>: Don't declare.
2812 <rerender>: Declare.
2813 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2814 set_new_height.
2815 (tui_data_window::do_make_visible_with_new_height): Remove.
2816 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2817 call tui_show_locator_content.
2818 (tui_gen_win_info::resize): Call rerender.
2819 (show_source_or_disasm_and_command): Don't call
2820 tui_show_locator_content.
2821 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2822 method.
2823 (struct tui_win_info) <rerender>: Declare.
2824 <set_new_height, make_invisible_and_set_new_height,
2825 make_visible_with_new_height>: Don't declare.
2826 * tui/tui-data.c (tui_win_list::rerender): New method.
2827 * tui/tui-command.h (struct tui_cmd_window)
2828 <do_make_visible_with_new_height>: Don't declare.
2829 * tui/tui-command.c
2830 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2831
2832 2019-08-15 Tom Tromey <tromey@adacore.com>
2833
2834 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2835 * ada-lang.c (ada_enum_name): Likewise.
2836
2837 2019-08-15 Christian Biesinger <cbiesinger@google.com>
2838
2839 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2840 leading underscore.
2841 (GdbOutputErrorFile): Likewise.
2842 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2843 accordingly.
2844 (execute_unwinders): Rename to have a leading underscore.
2845 (auto_load_packages): Likewise.
2846 (global scope): Adjust call to auto_load_packages accordingly.
2847 (GdbSetPythonDirectory): Likewise.
2848 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2849 instead of execute_unwinders.
2850
2851 2019-08-15 Tom Tromey <tom@tromey.com>
2852
2853 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2854 (show_data): Don't change window visibility.
2855 (tui_gen_win_info::resize): Remove special case for command
2856 window. Use wresize, when available.
2857 (show_source_or_disasm_and_command): Don't change window
2858 visibility.
2859 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2860 <make_visible>: New method.
2861 * tui/tui-command.c (tui_cmd_window::resize): New method.
2862
2863 2019-08-15 Tom Tromey <tom@tromey.com>
2864
2865 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2866 (struct tui_source_windows): New.
2867 * tui/tui-winsource.c (tui_display_main): Update.
2868 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2869 (new_height_ok, parse_scrolling_args): Update.
2870 * tui/tui-layout.c (show_layout, show_data): Update.
2871 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2872 (tui_add_to_source_windows): Don't declare.
2873 * tui/tui-data.c (source_windows, tui_source_windows)
2874 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2875
2876 2019-08-15 Tom Tromey <tom@tromey.com>
2877
2878 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2879 Rename from reset.
2880 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2881 * tui/tui-layout.c (show_source_disasm_command, show_data):
2882 Update.
2883 (tui_gen_win_info::resize): Rename.
2884 (show_source_or_disasm_and_command): Update.
2885 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2886 reset.
2887
2888 2019-08-15 Tom Tromey <tom@tromey.com>
2889
2890 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2891 * tui/tui-interp.c (tui_interp::init): Don't call
2892 tui_initialize_static_data.
2893 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2894
2895 2019-08-15 Tom Tromey <tom@tromey.com>
2896
2897 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2898 examine tui_win_list.
2899
2900 2019-08-15 Tom Tromey <tom@tromey.com>
2901
2902 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2903 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2904 tui_clear_source_content.
2905 (tui_clear_source_content): Remove.
2906 (tui_source_window_base::do_erase_source_content): Hoist call to
2907 content.clear().
2908 * tui/tui-stack.c (tui_show_frame_info): Don't call
2909 tui_clear_source_content.
2910
2911 2019-08-15 Tom Tromey <tom@tromey.com>
2912
2913 * tui/tui-winsource.h (struct tui_source_window_base)
2914 <do_erase_source_content>: New method.
2915 <erase_source_content>: New method.
2916 (tui_erase_source_content): Don't declare.
2917 * tui/tui-winsource.c (tui_clear_source_content): Update.
2918 (tui_source_window_base::do_erase_source_content): Rename from
2919 tui_erase_source_content.
2920 (tui_source_window_base::show_source_content): Update.
2921 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2922 * tui/tui-source.h (struct tui_source_window)
2923 <erase_source_content>: New method.
2924 * tui/tui-disasm.h (struct tui_disasm_window)
2925 <erase_source_content>: New method.
2926
2927 2019-08-15 Tom Tromey <tom@tromey.com>
2928
2929 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2930 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2931 constructor.
2932 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2933 * tui/tui-source.c (tui_set_source_content): Update.
2934 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2935
2936 2019-08-15 Tom Tromey <tom@tromey.com>
2937
2938 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2939 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2940 tui-source.c.
2941 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2942 Declare.
2943 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2944 method.
2945 (tui_source_window::maybe_update): Update.
2946
2947 2019-08-15 Tom Tromey <tom@tromey.com>
2948
2949 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2950 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2951 tui-disasm.c.
2952 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2953 Declare.
2954 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2955 method.
2956 (tui_disasm_window::maybe_update): Update.
2957
2958 2019-08-15 Tom Tromey <tom@tromey.com>
2959
2960 * tui/tui-winsource.h (struct tui_source_window_base)
2961 <maybe_update>: Declare.
2962 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2963 method.
2964 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2965 Declare.
2966 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2967 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2968 Declare.
2969 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2970
2971 2019-08-15 Tom Tromey <tom@tromey.com>
2972
2973 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2974
2975 2019-08-15 Tom Tromey <tom@tromey.com>
2976
2977 * tui/tui-wingeneral.c: Include tui-stack.h.
2978 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2979 (struct tui_locator_window): Move from tui-data.h.
2980 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2981 (tui_initialize_static_data): Move from tui-data.c.
2982 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2983 (struct tui_locator_window): Move to tui-stack.c.
2984 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2985 (tui_initialize_static_data): Move to tui-stack.c.
2986
2987 2019-08-15 Tom Tromey <tom@tromey.com>
2988
2989 * tui/tui-layout.c (show_source_disasm_command)
2990 (show_source_or_disasm_and_command): Use make_visible method, not
2991 tui_make_window.
2992 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2993 Remove.
2994
2995 2019-08-15 Tom Tromey <tom@tromey.com>
2996
2997 * tui/tui-wingeneral.h (tui_make_window): Update.
2998 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2999 parameter.
3000 (tui_gen_win_info::make_visible): Update.
3001 * tui/tui-regs.c (tui_data_window::display_registers_from):
3002 Update.
3003 * tui/tui-layout.c (show_source_disasm_command)
3004 (show_source_or_disasm_and_command): Update.
3005 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3006 (enum tui_box): Remove.
3007 (struct tui_win_info) <can_box>: New method.
3008 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3009 method.
3010
3011 2019-08-15 Tom de Vries <tdevries@suse.de>
3012
3013 * linux-nat-trad.c: Include gdbarch.h.
3014
3015 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3016
3017 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3018 register sizes.
3019
3020 2019-08-14 Tom Tromey <tromey@adacore.com>
3021
3022 * darwin-nat.c: Include gdbarch.h.
3023 * darwin-nat-info.c: Include gdbarch.h.
3024
3025 2019-08-13 Tom Tromey <tom@tromey.com>
3026
3027 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3028 Remove.
3029 * tui/tui-data.c (tui_initialize_static_data): Update.
3030
3031 2019-08-13 Tom Tromey <tom@tromey.com>
3032
3033 * tui/tui-winsource.h (struct tui_exec_info_window)
3034 <~tui_exec_info_window, maybe_allocate_content, get_content,
3035 m_content>: Remove.
3036 (struct tui_source_window_base) <set_exec_info_content,
3037 show_exec_info_content>: Don't declare.
3038 * tui/tui-winsource.c
3039 (tui_exec_info_window::maybe_allocate_content): Remove.
3040 (tui_source_window_base::update_exec_info): Rename from
3041 set_exec_info_content.
3042 (tui_source_window_base::show_exec_info_content)
3043 (tui_source_window_base::update_exec_info): Remove.
3044
3045 2019-08-13 Tom Tromey <tom@tromey.com>
3046
3047 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3048 declare.
3049 * tui/tui-winsource.c (tui_update_source_window_as_is)
3050 (tui_update_source_windows_with_addr, tui_erase_source_content):
3051 Update.
3052 (tui_clear_exec_info_content): Remove.
3053
3054 2019-08-13 Tom Tromey <tom@tromey.com>
3055
3056 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3057 declare.
3058 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3059 call tui_erase_exec_info_content.
3060 (tui_clear_exec_info_content): Rename from
3061 tui_erase_exec_info_content.
3062 (tui_clear_exec_info_content): Delete.
3063
3064 2019-08-13 Tom Tromey <tom@tromey.com>
3065
3066 * tui/tui-winsource.h (struct tui_source_window_base)
3067 <show_exec_info_content>: Declare.
3068 (tui_show_exec_info_content): Don't declare.
3069 * tui/tui-winsource.c
3070 (tui_source_window_base::show_exec_info_content): Rename from
3071 tui_show_exec_info_content.
3072 (tui_source_window_base::update_exec_info): Update.
3073
3074 2019-08-13 Tom Tromey <tom@tromey.com>
3075
3076 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3077 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3078 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3079 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3080 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3081 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3082 ... here.
3083
3084 2019-08-13 Tom Tromey <tom@tromey.com>
3085
3086 * tui/tui-winsource.h (struct tui_source_window_base)
3087 <update_exec_info>: Declare.
3088 (tui_update_exec_info): Don't declare.
3089 * tui/tui-winsource.c (tui_update_source_window_as_is)
3090 (tui_source_window_base::refresh_all)
3091 (tui_update_all_breakpoint_info): Update.
3092 (tui_source_window_base::update_exec_info): Rename from
3093 tui_update_exec_info.
3094 * tui/tui-stack.c (tui_show_frame_info): Update.
3095
3096 2019-08-13 Tom Tromey <tom@tromey.com>
3097
3098 * tui/tui-winsource.h (struct tui_source_window_base)
3099 <set_exec_info_content>: Declare.
3100 (tui_set_exec_info_content): Don't declare.
3101 * tui/tui-winsource.c
3102 (tui_source_window_base::set_exec_info_content): Rename from
3103 tui_set_exec_info_content.
3104 (tui_update_exec_info): Update.
3105
3106 2019-08-13 Tom Tromey <tom@tromey.com>
3107
3108 * tui/tui-winsource.h (struct tui_source_window_base)
3109 <show_source_content>: Declare.
3110 (tui_show_source_content): Don't declare.
3111 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3112 (tui_source_window_base::show_source_content): Rename from
3113 tui_show_source_content.
3114 (tui_source_window_base::refresh_all): Update.
3115 * tui/tui-layout.c (show_source_disasm_command)
3116 (show_source_or_disasm_and_command): Update.
3117
3118 2019-08-13 Tom Tromey <tom@tromey.com>
3119
3120 * tui/tui-winsource.c (tui_erase_source_content)
3121 (tui_show_source_content, tui_source_window_base::refresh_all):
3122 Update.
3123 * tui/tui-wingeneral.h
3124 (tui_check_and_display_highlight_if_needed): Don't declare.
3125 * tui/tui-wingeneral.c
3126 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3127 check_and_display_highlight_if_needed.
3128 * tui/tui-win.c (tui_rehighlight_all)
3129 (tui_win_info::make_visible_with_new_height): Update.
3130 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3131 (tui_data_window::erase_data_content)
3132 (tui_data_window::display_all_data): Update.
3133 * tui/tui-data.h (struct tui_win_info)
3134 <check_and_display_highlight_if_needed>: Declare.
3135
3136 2019-08-13 Tom Tromey <tom@tromey.com>
3137
3138 * tui/tui-win.c (tui_resize_all): Call
3139 tui_delete_invisible_windows.
3140 * tui/tui-layout.c (show_layout): Call
3141 tui_delete_invisible_windows.
3142 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3143 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3144
3145 2019-08-13 Tom Tromey <tom@tromey.com>
3146
3147 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3148 tui_add_win_to_layout.
3149
3150 2019-08-13 Tom Tromey <tom@tromey.com>
3151
3152 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3153 * tui/tui-layout.c (tui_default_win_height): Now static.
3154
3155 2019-08-13 Tom Tromey <tom@tromey.com>
3156
3157 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3158 single switch.
3159 (show_source_disasm_command, show_source_or_disasm_and_command):
3160 Don't check current layout.
3161
3162 2019-08-13 Tom Tromey <tom@tromey.com>
3163
3164 * tui/tui-wingeneral.c (make_all_visible): Remove.
3165 (tui_make_all_invisible): Simplify.
3166 * tui/tui-layout.c (tui_make_all_invisible): Move from
3167 tui-wingeneral.c; simplify.
3168 (show_layout): Hoist call to tui_make_all_invisible.
3169 (show_data): Don't call tui_make_all_invisible.
3170
3171 2019-08-13 Tom Tromey <tom@tromey.com>
3172
3173 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3174 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3175
3176 2019-08-13 Tom Tromey <tom@tromey.com>
3177
3178 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3179 tui-data.c.
3180 (show_source_disasm_command, show_data)
3181 (show_source_or_disasm_and_command): Don't use
3182 tui_set_current_layout_to.
3183 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3184 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3185 tui-layout.c.
3186 (tui_set_current_layout_to): Remove.
3187
3188 2019-08-13 Tom Tromey <tom@tromey.com>
3189
3190 * tui/tui-layout.c (tui_set_layout): Update.
3191 * tui/tui-data.h (struct tui_layout_def): Remove.
3192 (tui_layout_def): Don't declare.
3193 * tui/tui-data.c (layout_def): Remove.
3194 (tui_layout_def): Remove.
3195
3196 2019-08-13 Tom Tromey <tom@tromey.com>
3197
3198 * tui/tui-winsource.h (struct tui_source_window_base)
3199 <clear_detail>: No longer "override".
3200 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3201 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3202 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3203 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3204 Remove.
3205 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3206
3207 2019-08-13 Tom Tromey <tromey@adacore.com>
3208
3209 * tracepoint.c: Don't include readline.h or history.h.
3210
3211 2019-08-12 Tom Tromey <tom@tromey.com>
3212
3213 * configure: Rebuild.
3214 * configure.ac: Check for readline 7.
3215 * NEWS: Mention readline 7 requirement.
3216 * README: Update.
3217
3218 2019-08-12 Tom Tromey <tom@tromey.com>
3219
3220 * mingw-hdep.c (gdb_select): Remove readline hack.
3221
3222 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3223
3224 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3225 when the function fails.
3226
3227 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3228
3229 * s390-tdep.c (s390_type_align): New function.
3230 (s390_gdbarch_init): Set it as type_align gdbarch method.
3231
3232 2019-08-09 Tom de Vries <tdevries@suse.de>
3233
3234 PR gdb/24591
3235 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3236 pc_low with relocation offset.
3237
3238 2019-08-07 Tom Tromey <tromey@adacore.com>
3239
3240 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3241 (print_frame_args): Update.
3242 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3243 Update.
3244 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3245 * frame.h (struct frame_arg): Add initializers.
3246 <error>: Now a unique_xmalloc_ptr.
3247
3248 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3249
3250 * NEWS: Expand the Pointer Authentication entry.
3251 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3252 (aarch64_frame_unmask_lr): ... to this.
3253 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3254 Call aarch64_frame_unmask_lr.
3255 * frame.c (struct frame_info): Add "masked" variable.
3256 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3257 (fprint_frame): Check for masked pc.
3258 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3259 declarations.
3260 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3261 * stack.c (print_frame): Check for masked pc.
3262
3263 2019-08-06 Tom Tromey <tom@tromey.com>
3264
3265 * stabsread.c (patch_block_stabs, read_one_struct_field)
3266 (read_enum_type): Use obstack_strndup.
3267 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3268 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3269 * dwarf2read.c (guess_full_die_structure_name)
3270 (anonymous_struct_prefix): Use obstack_strndup.
3271 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3272 * c-exp.y (yylex): Use obstack_strndup.
3273 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3274 (write_var_or_type): Use obstack_strndup.
3275
3276 2019-08-06 Tom Tromey <tom@tromey.com>
3277
3278 * symfile.c (reread_symbols): Use obstack_strdup.
3279 * stabsread.c (read_type): Use obstack_strdup.
3280 * gdb_obstack.h (obstack_strdup): New overload.
3281 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3282 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3283 (dwarf2_canonicalize_name): Use obstack_strdup.
3284 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3285 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3286 Use obstack_strdup.
3287
3288 2019-08-06 Tom Tromey <tom@tromey.com>
3289
3290 * gdb_obstack.h (obstack_strdup): Define.
3291 * gdb_obstack.c (obstack_strdup): Don't define.
3292
3293 2019-08-06 Tom Tromey <tom@tromey.com>
3294
3295 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3296 obstack_strdup.
3297 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3298 obstack_strdup.
3299 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3300 * stabsread.c (common_block_start): Use obstack_strdup.
3301 * objfiles.c (set_objfile_main_name, objfile): Use
3302 obstack_strdup.
3303 * namespace.c (add_using_directive): Use obstack_strdup.
3304 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3305 * jit.c (finalize_symtab): Use obstack_strdup.
3306 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3307 (guess_partial_die_structure_name, partial_die_info::fixup)
3308 (dwarf2_name): Use obstack_strdup.
3309 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3310 obstack_strdup.
3311 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3312 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3313 obstack_strdup.
3314 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3315
3316 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3317
3318 * unittests/help-doc-selftests.c: New file.
3319 * Makefile.in: Add the new file.
3320
3321 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3322
3323 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3324 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3325 the full first line, except when FOR_VALUE_PREFIX. In this case,
3326 the trailing '.' is not output, and the first character is uppercased.
3327 (print_help_for_command): Update call to print_doc_line.
3328 (print_doc_of_command): Likewise.
3329 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3330 * cli/cli-option.c (append_indented_doc): Do not append newline.
3331 (build_help_option): Append newline after first appended_indented_doc
3332 only if a second call is done.
3333 (build_help): Append 2 new lines before each option, except the first
3334 one.
3335 * compile/compile.c (_initialize_compile): Add new lines after
3336 %OPTIONS%, when not at the end of the help.
3337 Change help doc or code
3338 producing the help doc to respect the invariants.
3339 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3340 Also removed the new line after 'Options:', as all other commands
3341 do not put an empty line between 'Options:' and the first option.
3342 * printcmd.c (_initialize_printcmd): Likewise.
3343 * stack.c (_initialize_stack): Likewise.
3344 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3345 incorrectly telling COMMAND is optional.
3346 * ada-lang.c (_initialize_ada_language): Change help doc or code
3347 producing the help doc to respect the invariants.
3348 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3349 * breakpoint.c (_initialize_breakpoint): Likewise.
3350 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3351 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3352 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3353 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3354 _initialize_cli_style): Likewise.
3355 * corelow.c (core_target_info): Likewise.
3356 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3357 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3358 * filesystem.c (_initialize_filesystem): Likewise.
3359 * frame.c (_initialize_frame): Likewise.
3360 * gnu-nat.c (add_task_commands): Likewise.
3361 * infcall.c (_initialize_infcall): Likewise.
3362 * infcmd.c (_initialize_infcmd): Likewise.
3363 * interps.c (_initialize_interpreter): Likewise.
3364 * language.c (_initialize_language): Likewise.
3365 * linux-fork.c (_initialize_linux_fork): Likewise.
3366 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3367 * maint.c (_initialize_maint_cmds): Likewise.
3368 * memattr.c (_initialize_mem): Likewise.
3369 * printcmd.c (_initialize_printcmd): Likewise.
3370 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3371 _RegEx): Likewise.
3372 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3373 * record-btrace.c (_initialize_record_btrace): Likewise.
3374 * record-full.c (_initialize_record_full): Likewise.
3375 * record.c (_initialize_record): Likewise.
3376 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3377 * regcache.c (_initialize_regcache): Likewise.
3378 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3379 _initialize_remote): Likewise.
3380 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3381 * serial.c (_initialize_serial): Likewise.
3382 * skip.c (_initialize_step_skip): Likewise.
3383 * source.c (_initialize_source): Likewise.
3384 * stack.c (_initialize_stack): Likewise.
3385 * symfile.c (_initialize_symfile): Likewise.
3386 * symtab.c (_initialize_symtab): Likewise.
3387 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3388 * top.c (init_main): Likewise.
3389 * tracefile-tfile.c (tfile_target_info): Likewise.
3390 * tracepoint.c (_initialize_tracepoint): Likewise.
3391 * tui/tui-win.c (_initialize_tui_win): Likewise.
3392 * utils.c (add_internal_problem_command): Likewise.
3393 * valprint.c (value_print_option_defs): Likewise.
3394
3395 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3396
3397 PR build/24886
3398 * configure.ac: Drop enable-libmcheck support.
3399 * configure, config.in: Rebuild.
3400 * libmcheck.m4: Remove.
3401 * acinclude.m4: Don't include it.
3402 * Makefile.in: Don't distribute it.
3403 * top.c (print_gdb_configuration): Don't mention it.
3404
3405 2019-08-06 Tom Tromey <tom@tromey.com>
3406
3407 * utils.c (set_output_style): Sometimes pass stream to
3408 emit_style_escape.
3409 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3410 * record-btrace.c (btrace_insn_history): Update.
3411 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3412 method.
3413 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3414 Update initializers.
3415 <m_uiout>: New field.
3416 <m_di>: Move lower.
3417 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3418 Remove "uiout" parameter.
3419 (dump_insns): Update.
3420 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3421 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3422
3423 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3424
3425 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3426 (error_in_psymtab_expansion): Likewise.
3427 (lookup_symbol_via_quick_fns): Likewise.
3428 (basic_lookup_transparent_type_quick): Likewise.
3429 (basic_lookup_transparent_type_1): Likewise.
3430
3431 2019-08-06 Tom Tromey <tromey@adacore.com>
3432
3433 * source.c (last_source_error): Now bool.
3434 (print_source_lines_base): Make "noprint" bool. Only open
3435 source file when last_source_visited changes.
3436
3437 2019-08-06 Tom Tromey <tromey@adacore.com>
3438
3439 * annotate.c (annotate_source_line): Use g_source_cache.
3440 * source-cache.c (source_cache::get_plain_source_lines): Change
3441 parameters. Populate m_offset_cache.
3442 (source_cache::ensure): New method.
3443 (source_cache::get_line_charpos): New method.
3444 (extract_lines): Move lower. Change parameters.
3445 (source_cache::get_source_lines): Move lower.
3446 * source-cache.h (class source_cache): Update comment.
3447 <get_line_charpos>: New method.
3448 <get_source_lines>: Update comment.
3449 <clear>: Clear m_offset_cache.
3450 <get_plain_source_lines>: Change parameters.
3451 <ensure>: New method
3452 <m_offset_cache>: New member.
3453 * source.c (forget_cached_source_info_for_objfile): Update.
3454 (info_source_command): Use g_source_cache.
3455 (find_source_lines, open_source_file_with_line_charpos): Remove.
3456 (print_source_lines_base, search_command_helper): Use g_source_cache.
3457 * source.h (open_source_file_with_line_charpos): Don't declare.
3458 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3459 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3460 Use g_source_cache.
3461
3462 2019-08-06 Tom Tromey <tromey@adacore.com>
3463
3464 * source-cache.c (source_cache::get_plain_source_lines):
3465 Remove "first_line" and "last_line" parameters.
3466 (source_cache::get_source_lines): Cache plain text.
3467 * source-cache.h (class source_cache)
3468 <get_plain_source_lines>: Update.
3469
3470 2019-08-06 Tom Tromey <tromey@adacore.com>
3471
3472 * source-cache.c (extract_lines): No longer a method.
3473 Changed type of parameter. Include final newline.
3474 (selftests::extract_lines_test): New function.
3475 (_initialize_source_cache): Likewise.
3476 * source-cache.h (class source_cache)
3477 <extract_lines>: Don't declare.
3478
3479 2019-08-06 Tom Tromey <tromey@adacore.com>
3480
3481 * breakpoint.c (init_breakpoint_sal): Update.
3482 (breakpoint): Update.
3483 * breakpoint.h (struct breakpoint) <filter>: Now a
3484 unique_xmalloc_ptr.
3485
3486 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3487
3488 * NEWS: Mention dictionary access on blocks.
3489 * python/py-block.c (blpy_getitem): New function.
3490 (block_object_as_mapping): New struct.
3491 (block_object_type): Use new struct for tp_as_mapping field.
3492
3493 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3494
3495 * objfiles.h (objfile): Add a comment describing partial symbols.
3496
3497 2019-08-05 Tom Tromey <tromey@adacore.com>
3498
3499 * compile/compile.c (_initialize_compile): Use _(), not N_().
3500 * thread.c (_initialize_thread): Use _(), not N_().
3501 * stack.c (_initialize_stack): Use _(), not N_().
3502 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3503
3504 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3505
3506 * dwarf2read.c (struct dw2_symtab_iterator):
3507 <want_specific_block>: Remove.
3508 <block_index>: Change type to gdb::optional.
3509 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3510 change type of BLOCK_INDEX parameter to gdb::optional.
3511 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3512 (dw2_lookup_symbol): Don't pass argument for
3513 WANT_SPECIFIC_BLOCK.
3514 (dw2_expand_symtabs_for_function): Don't pass argument for
3515 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3516 (class dw2_debug_names_iterator)
3517 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3518 parameter, change BLOCK_INDEX type to gdb::optional.
3519 <m_want_specific_block>: Remove.
3520 <m_block_index>: Change type to gdb::optional.
3521 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3522 gdb::optional. Re-write in function of gdb::optional.
3523 (dw2_debug_names_lookup_symbol): Don't pass argument for
3524 WANT_SPECIFIC_BLOCK.
3525 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3526 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3527 BLOCK_INDEX.
3528
3529 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3530
3531 * NEWS: Mention changes to "info sources" command.
3532
3533 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3534
3535 * symtab.c (filename_partial_match_opts): New struct type.
3536 (struct output_source_filename_data): New members
3537 regexp, c_regexp, partial_match.
3538 (output_source_filename): Use new members to decide to print file.
3539 (info_sources_option_defs): New variable.
3540 (make_info_sources_options_def_group, print_info_sources_header,
3541 info_sources_command_completer):
3542 New functions.
3543 (info_sources_command): Read new optional arguments.
3544 (_initialize_symtab): Update info sources help.
3545
3546 2019-08-02 Alexandre Oliva <oliva@adacore.com>
3547
3548 * ada-lang.c (exception_support_info_v0): Renamed from...
3549 (default_exception_support_info): ... this. Create new
3550 definition for v1.
3551 (ada_has_this_exception_support): Look up catch_handlers_sym.
3552 (ada_exception_support_info_sniffer): Try v0 after default.
3553
3554 2019-08-01 Tom Tromey <tromey@adacore.com>
3555
3556 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3557 gdbarch.h.
3558
3559 2019-08-01 Christian Biesinger <cbiesinger@google.com>
3560
3561 * s12z-tdep.c: Fix include path for s12z-opc.h.
3562
3563 2019-08-01 Alan Hayward <alan.hayward@arm.com>
3564
3565 * NEWS: Require GNU make 3.82.
3566
3567 2019-07-16 Tom Tromey <tom@tromey.com>
3568
3569 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3570 declare.
3571
3572 2019-07-30 Tom Tromey <tromey@adacore.com>
3573
3574 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3575
3576 2019-07-30 Kevin Buettner <kevinb@redhat.com>
3577
3578 * printcmd.c (print_address_symbolic): Print negative offsets.
3579 (build_address_symbolic): Force signed arithmetic when computing
3580 offset.
3581
3582 2019-07-30 Christian Biesinger <cbiesinger@google.com>
3583
3584 PR/24474: Add a function to lookup static variables.
3585 * NEWS: Mention this new function.
3586 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3587 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3588 * python/python.c (python_GdbMethods): Add new function.
3589
3590 2019-07-29 Christian Biesinger <cbiesinger@google.com>
3591
3592 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3593 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3594 (objfpy_lookup_static_symbol): New function.
3595 (objfile_object_methods): Add new functions.
3596
3597 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3598
3599 * NEWS: Mention 'set|show print frame-info'. Mention new
3600 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3601 backtrace argument. Mention that python frame filtering code
3602 is now consistent with what 'backtrace' command prints.
3603
3604 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3605
3606 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3607 comments.
3608 (print_frame_info_auto, print_frame_info_source_line,
3609 print_frame_info_location, print_frame_info_source_and_location,
3610 print_frame_info_location_and_address, print_frame_info_short_location):
3611 New declarations.
3612 (struct frame_print_options): New member print_frame_info.
3613 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3614 * stack.h (get_user_print_what_frame_info): New declaration.
3615 (frame_show_address): New declaration.
3616 * stack.c (print_frame_arguments_choices): New value 'presence'.
3617 (print_frame_info_auto, print_frame_info_source_line,
3618 print_frame_info_location, print_frame_info_source_and_location,
3619 print_frame_info_location_and_address, print_frame_info_short_location,
3620 print_frame_info_choices, print_frame_info_print_what): New definitions.
3621 (print_frame_args): Only print dots for args if print frame-arguments
3622 is 'presence'.
3623 (frame_print_option_defs): New element for "frame-info".
3624 (get_user_print_what_frame_info): New function.
3625 (frame_show_address): Make non static. Move comment to stack.h.
3626 (print_frame_info_to_print_what): New function.
3627 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3628 to decide what to print.
3629 (backtrace_command_1): Handle the new print_frame_arguments_presence
3630 value.
3631 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3632 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3633 (py_print_frame): In non-mi mode, use LOCATION as default for
3634 print_what, similarly to frame information printed directly by
3635 backtrace command. Handle frame-info user option in non MI mode.
3636
3637 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3638
3639 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3640 Add case for debugging 32-bit target on 64-bit host. Revise
3641 comment.
3642
3643 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3644
3645 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3646 instead of find_function_entry_range_from_pc.
3647
3648 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3649
3650 * stack.c (find_frame_funname): Remove code which preferred
3651 minsym over symtab sym in "certain pathological cases".
3652
3653 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3654 parameter. Change type of "do_demangle" to bool.
3655 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3656 Pass suitable "prefer_sym_over_minsym" flag to
3657 build_address_symbolic(). Don't output "+" for negative offsets.
3658 * printcmd.c (print_address_symbolic): Update invocation of
3659 build_address_symbolic to include a "prefer_sym_over_minsym"
3660 flag.
3661 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3662 Restrict cases in which use of minimal symbol is preferred to that
3663 of a found symbol. Update comments.
3664
3665 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3666 for entry pc when entry pc is out of range for that FDE.
3667
3668 2019-07-26 Brian Callahan <bcallah@openbsd.org>
3669
3670 PR gdb/24839:
3671 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3672 type.
3673
3674 2019-07-25 Christian Biesinger <cbiesinger@google.com>
3675
3676 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3677 this function's Python signature.
3678
3679
3680 2019-07-24 Christian Biesinger <cbiesinger@google.com>
3681
3682 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3683 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3684 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3685 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3686 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3687
3688
3689 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3690
3691 * h8300-tdep.c (h8300_register_name_common): New.
3692 h8300_register_name): Use h8300_register_name_common.
3693 (h8300s_register_name): Likewise.
3694 (h8300sx_register_name): Likewise.
3695 (h8300h_register_nam): New.
3696 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3697
3698
3699 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3700
3701 * arm-tdep.c (arm_skip_cmse_entry): New function.
3702 (arm_is_sgstubs_section): New function.
3703 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3704
3705 2019-07-22 Tom Tromey <tom@tromey.com>
3706
3707 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3708 Don't self-assign.
3709
3710 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3711
3712 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3713 type_print.
3714
3715 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3716
3717 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3718 so that GDB doesn't match any msymbols when searching in the
3719 TYPES_DOMAIN.
3720 (print_symbol_info): Print using typedef_print or type_print based
3721 on the type of the symbol. Add updated FIXME comment moved from...
3722 (_initialize_symtab): ... move and update FIXME comment to above.
3723
3724 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3725
3726 * NEWS: Mention adding -q option to "info types".
3727 * symtab.c (struct info_types_options): New struct.
3728 (info_types_options_defs): New variable.
3729 (make_info_types_options_def_group): New function.
3730 (info_types_command): Use gdb::option framework to parse options.
3731 (info_types_command_completer): New function.
3732 (_initialize_symtab): Extend the help text on "info types" and
3733 register command completer.
3734
3735 2019-07-21 Christian Biesinger <cbiesinger@google.com>
3736
3737 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3738 (lookup_symbol_in_objfile): Change int to block_enum and add a
3739 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3740
3741 2019-07-20 Christian Biesinger <cbiesinger@google.com>
3742
3743 * MAINTAINERS (Write After Approval): Add self.
3744
3745 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3746
3747 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3748 instruction to the dummy code region.
3749
3750 2019-07-19 Tom Tromey <tromey@adacore.com>
3751
3752 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3753 (ARGSUSED, PARAMS, __func__): Remove rules.
3754
3755 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3756
3757 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3758 * features/arm/arm-with-iwmmxt.c: Remove.
3759 * features/arm/arm-with-iwmmxt.xml: Remove.
3760 * features/arm/arm-with-m-fpa-layout.c: Remove.
3761 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3762 * features/arm/arm-with-m-vfp-d16.c: Remove.
3763 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3764 * features/arm/arm-with-m.c: Remove.
3765 * features/arm/arm-with-m.xml: Remove.
3766 * features/arm/arm-with-neon.c: Remove.
3767 * features/arm/arm-with-neon.xml: Remove.
3768 * features/arm/arm-with-vfpv2.c: Remove.
3769 * features/arm/arm-with-vfpv2.xml: Remove.
3770 * features/arm/arm-with-vfpv3.c: Remove.
3771 * features/arm/arm-with-vfpv3.xml: Remove.
3772
3773 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3774
3775 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3776
3777 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3778
3779 * arch/aarch32.c (aarch32_create_target_description): Create
3780 target descriptions using features.
3781 * arch/arm.c (arm_create_target_description)
3782 (arm_create_mprofile_target_description): Likewise.
3783 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3784
3785 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3786
3787 * Makefile.in: Add new files.
3788 * aarch32-tdep.c: New file.
3789 * aarch32-tdep.h: New file.
3790 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3791 Call aarch32_read_description.
3792 * arch/aarch32.c: New file.
3793 * arch/aarch32.h: New file.
3794 * arch/arm.c (arm_create_target_description)
3795 (arm_create_mprofile_target_description): New function.
3796 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3797 (arm_create_target_description)
3798 (arm_create_mprofile_target_description): New declaration.
3799 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3800 read_description functions.
3801 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3802 Likewise.
3803 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3804 * arm-tdep.c (tdesc_arm_list): New variable.
3805 (arm_register_g_packet_guesses): Call create description functions.
3806 (arm_read_description) (arm_read_mprofile_description): New
3807 function.
3808 * arm-tdep.h (arm_read_description)
3809 (arm_read_mprofile_description): Add declaration.
3810 * configure.tgt: Add new files.
3811
3812 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3813
3814 * top.c (new_ui_command): Open specified terminal just once.
3815
3816 2019-07-18 Tom Tromey <tromey@adacore.com>
3817
3818 * symtab.c (main_name): Constify return type.
3819 * symfile.c (set_initial_language): Update.
3820 * symtab.h (main_name): Constify return type.
3821
3822 2019-07-17 Tom Tromey <tom@tromey.com>
3823
3824 * tui/tui-winsource.c (tui_update_source_window)
3825 (tui_update_source_window_as_is)
3826 (tui_update_source_windows_with_line): Remove return.
3827 * tui/tui-disasm.c (tui_show_disassem)
3828 (tui_show_disassem_and_update_source): Remove return.
3829 * tui/tui.c (tui_reset): Remove return.
3830 * tui/tui-wingeneral.c
3831 (tui_check_and_display_highlight_if_needed): Remove return.
3832
3833 2019-07-17 Tom Tromey <tom@tromey.com>
3834
3835 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3836
3837 2019-07-17 Tom Tromey <tom@tromey.com>
3838
3839 * tui/tui-winsource.h (struct tui_exec_info_window)
3840 (struct tui_source_window_base): Move from tui-data.h.
3841 * tui/tui-winsource.c: Move many method definitions from
3842 elsewhere. Remove "structuring" comments.
3843 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3844 (tui_source_window_base::refresh_window): Move to
3845 tui-winsource.c.
3846 * tui/tui-win.c (tui_source_window_base::refresh_all)
3847 (tui_source_window_base::update_tab_width)
3848 (tui_source_window_base::set_new_height)
3849 (tui_source_window_base::do_make_visible_with_new_height): Move to
3850 tui-winsource.c.
3851 * tui/tui-source.h: Update.
3852 * tui/tui-source.c (tui_source_window_base::reset): Move to
3853 tui-winsource.c.
3854 * tui/tui-disasm.h: Update.
3855 * tui/tui-data.h (struct tui_exec_info_window): Move to
3856 tui-winsource.h.
3857 (struct tui_source_window_base): Likewise.
3858 * tui/tui-data.c (tui_source_window_base::clear_detail)
3859 (tui_source_window_base, ~tui_source_window_base): Move to
3860 tui-winsource.c.
3861
3862 2019-07-17 Tom Tromey <tom@tromey.com>
3863
3864 * tui/tui-win.c (tui_resize_all)
3865 (tui_source_window_base::update_tab_width)
3866 (tui_adjust_win_heights): Update.
3867 (tui_win_info::make_invisible_and_set_new_height): Rename from
3868 make_invisible_and_set_new_height.
3869 * tui/tui-data.h (struct tui_win_info)
3870 <make_invisible_and_set_new_height>: New method.
3871
3872 2019-07-17 Tom Tromey <tom@tromey.com>
3873
3874 * tui/tui.c: Update.
3875 * tui/tui-source.h (struct tui_source_window): Move from
3876 tui-data.h.
3877 * tui/tui-layout.c: Update.
3878 * tui/tui-disasm.c: Update.
3879 * tui/tui-data.h (struct tui_source_window): Move to
3880 tui-source.h.
3881
3882 2019-07-17 Tom Tromey <tom@tromey.com>
3883
3884 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3885 tui-data.h.
3886 * tui/tui-data.h (struct tui_disasm_window): Move to
3887 tui-disasm.h.
3888
3889 2019-07-17 Tom Tromey <tom@tromey.com>
3890
3891 * tui/tui-regs.h (struct tui_data_item_window): Move from
3892 tui-data.h.
3893 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3894 * tui/tui-data.h (struct tui_data_item_window): Move to
3895 tui-regs.h.
3896 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3897
3898 2019-07-17 Tom Tromey <tom@tromey.com>
3899
3900 * tui/tui.c: Update.
3901 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3902 (tui_cmd_window::max_height): Move to tui-command.c.
3903 * tui/tui-layout.c: Update.
3904 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3905 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3906 tui-command.c.
3907 * tui/tui-command.h (struct tui_cmd_window): Move from
3908 tui-data.h.
3909 * tui/tui-command.c: Remove "structuring" comments.
3910 (tui_cmd_window::clear_detail)
3911 (tui_cmd_window::do_make_visible_with_new_height)
3912 (tui_cmd_window::max_height): Move from elsewhere.
3913
3914 2019-07-17 Tom Tromey <tom@tromey.com>
3915
3916 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3917 Now static.
3918 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3919 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3920
3921 2019-07-17 Tom Tromey <tom@tromey.com>
3922
3923 * tui/tui.c: Update.
3924 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3925 tui-regs.c.
3926 * tui/tui-windata.h: Remove file.
3927 * tui/tui-windata.c: Remove file.
3928 * tui/tui-win.c (tui_data_window::set_new_height)
3929 (tui_data_window::do_make_visible_with_new_height): Move to
3930 tui-regs.c.
3931 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3932 * tui/tui-regs.c: Remove "structuring" comments.
3933 (tui_data_window::first_data_item_displayed)
3934 (tui_data_window::delete_data_content_windows)
3935 (tui_data_window::erase_data_content)
3936 (tui_data_window::display_all_data)
3937 (tui_data_window::refresh_all)
3938 (tui_data_window::do_scroll_vertical)
3939 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3940 (tui_data_window::do_make_visible_with_new_height)
3941 (tui_data_window::refresh_window): Move from elsewhere.
3942 (_initialize_tui_regs): Move to end of file.
3943 * tui/tui-layout.c: Update.
3944 * tui/tui-hooks.c: Update.
3945 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3946 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3947 tui-regs.c.
3948 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3949
3950 2019-07-17 Tom Tromey <tom@tromey.com>
3951
3952 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3953 seen.
3954
3955 2019-07-17 Tom Tromey <tom@tromey.com>
3956
3957 * tui/tui-win.c (tui_source_window_base::set_new_height)
3958 (tui_source_window_base::do_make_visible_with_new_height): Use
3959 m_has_locator field directly.
3960 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3961 method.
3962 (struct tui_source_window_base) <has_locator>: Likewise.
3963
3964 2019-07-17 Tom Tromey <tom@tromey.com>
3965
3966 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3967 Don't declare.
3968 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3969 Remove.
3970 * tui/tui-win.c (tui_source_window_base::set_new_height)
3971 (tui_source_window_base::set_new_height)
3972 (make_invisible_and_set_new_height)
3973 (tui_source_window_base::do_make_visible_with_new_height)
3974 (tui_source_window_base::do_make_visible_with_new_height):
3975 Update.
3976 * tui/tui-layout.c (show_source_disasm_command, show_data)
3977 (show_source_or_disasm_and_command): Update.
3978 * tui/tui-layout.c (show_layout): Update.
3979
3980 2019-07-17 Tom Tromey <tom@tromey.com>
3981
3982 * tui/tui-layout.c (make_data_window): Remove.
3983 (show_data): Unify creation and re-initialization cases.
3984
3985 2019-07-17 Tom Tromey <tom@tromey.com>
3986
3987 * tui/tui-layout.c (make_source_window, make_disasm_window):
3988 Remove.
3989 (show_data): Unify creation and re-initialization cases.
3990
3991 2019-07-17 Tom Tromey <tom@tromey.com>
3992
3993 * tui/tui-layout.c (make_command_window): Remove.
3994 (show_source_disasm_command, show_source_or_disasm_and_command):
3995 Unify creation and re-initialization cases.
3996
3997 2019-07-17 Tom Tromey <tom@tromey.com>
3998
3999 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4000 creation and re-initialization cases.
4001
4002 2019-07-17 Tom Tromey <tom@tromey.com>
4003
4004 * tui/tui-regs.c (tui_get_register): Return void.
4005
4006 2019-07-17 Tom Tromey <tom@tromey.com>
4007
4008 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4009 Simplify.
4010
4011 2019-07-17 Tom Tromey <tom@tromey.com>
4012
4013 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4014 resetting.
4015
4016 2019-07-17 Tom Tromey <tom@tromey.com>
4017
4018 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4019 * tui/tui-regs.c (tui_reg_layout): New function.
4020 (tui_show_registers, tui_reg_command): Use it.
4021 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4022 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4023 parameters.
4024 (tui_layout_command): Remove.
4025
4026 2019-07-17 Tom Tromey <tom@tromey.com>
4027
4028 * tui/tui-layout.h (tui/tui-layout): Return void.
4029 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4030
4031 2019-07-17 Tom Tromey <tom@tromey.com>
4032
4033 * tui/tui-layout.c (show_source_disasm_command, show_data):
4034 Update.
4035 (reset_locator): Remove.
4036 (show_source_or_disasm_and_command): Update.
4037
4038 2019-07-17 Tom Tromey <tom@tromey.com>
4039
4040 * tui/tui-source.c (tui_source_window_base::reset): Remove
4041 win_type parameter.
4042 * tui/tui-layout.c (make_command_window, make_source_window)
4043 (make_disasm_window, make_data_window)
4044 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4045 (reset_locator, show_source_or_disasm_and_command): Update.
4046 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4047 win_type parameter.
4048 (struct tui_source_window_base) <reset>: Likewise.
4049
4050 2019-07-17 Tom Tromey <tom@tromey.com>
4051
4052 * tui/tui-layout.c (show_source_disasm_command): Use
4053 reset_locator.
4054 (reset_locator): New function.
4055 (init_and_make_win): Remove.
4056 (show_source_or_disasm_and_command): Use reset_locator.
4057
4058 2019-07-17 Tom Tromey <tom@tromey.com>
4059
4060 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4061 condition.
4062 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4063 Remove condition.
4064 * tui/tui-source.c (tui_source_window_base::reset): New method.
4065 * tui/tui-layout.c (make_command_window): Don't call
4066 init_and_make_win.
4067 (make_source_window, make_disasm_window): Don't call
4068 make_source_or_disasm_window.
4069 (make_data_window): Don't call init_and_make_win. Change calling
4070 convention.
4071 (show_source_disasm_command, show_data): Simplify.
4072 (make_source_or_disasm_window): Remove.
4073 (show_source_or_disasm_and_command): Simplify.
4074 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4075 (struct tui_source_window_base) <reset>: Likewise.
4076 <execution_info>: Remove initializer.
4077 * tui/tui-data.c (tui_source_window_base): Initialize
4078 execution_info.
4079
4080 2019-07-17 Tom Tromey <tom@tromey.com>
4081
4082 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4083 variable.
4084
4085 2019-07-17 Tom Tromey <tom@tromey.com>
4086
4087 * tui/tui.c (tui_rl_other_window): Update.
4088 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4089 superclass method first. Always iterate over regs_content.
4090 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4091 method.
4092 * tui/tui-win.c (tui_set_focus_command): Update.
4093
4094 2019-07-17 Tom Tromey <tom@tromey.com>
4095
4096 * tui/tui-win.c (tui_set_focus_command): Rename from
4097 tui_set_focus. Call tui_enable.
4098 (tui_set_focus_command): Remove.
4099
4100 2019-07-17 Tom Tromey <tom@tromey.com>
4101
4102 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4103 refresh_window.
4104 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4105 touchwin.
4106 (tui_data_window::refresh_window): Call refresh_window on data
4107 items. Always call superclass refresh_window.
4108 (tui_win_info::refresh): Remove.
4109 (tui_source_window_base::refresh_window): Update.
4110 (tui_refresh_all): Update.
4111 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4112 refresh_window.
4113 (show_source_or_disasm_and_command): Likewise.
4114 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4115 (struct tui_source_window_base) <refresh>: Likewise.
4116
4117 2019-07-17 Tom Tromey <tom@tromey.com>
4118
4119 * tui/tui-winsource.c (tui_clear_source_content)
4120 (tui_show_source_content): Update.
4121 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4122 whether content is empty.
4123 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4124 Remove.
4125
4126 2019-07-17 Tom Tromey <tom@tromey.com>
4127
4128 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4129 window's contents.
4130 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4131 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4132
4133 2019-07-17 Tom Tromey <tom@tromey.com>
4134
4135 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4136 (struct tui_data_item_window): Update.
4137
4138 2019-07-17 Tom Tromey <tom@tromey.com>
4139
4140 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4141 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4142 defines.
4143
4144 2019-07-17 Tom Tromey <tom@tromey.com>
4145
4146 * tui/tui-winsource.h (tui_erase_source_content)
4147 (tui_clear_source_content): Remove "display_prompt" parameter.
4148 * tui/tui-winsource.c (tui_update_source_window_as_is)
4149 (tui_update_source_windows_with_addr): Update.
4150 (tui_clear_source_content): Remove "display_prompt" parameter.
4151 (tui_erase_source_content): Likewise. Simplify.
4152 (tui_show_source_content): Update.
4153 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4154 * tui/tui-stack.c (tui_show_frame_info): Update.
4155 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4156 Remove defines.
4157
4158 2019-07-17 Tom Tromey <tom@tromey.com>
4159
4160 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4161 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4162 parameter.
4163 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4164 parameter.
4165
4166 2019-07-17 Tom Tromey <tom@tromey.com>
4167
4168 * tui/tui-winsource.c (tui_clear_source_content)
4169 (tui_show_source_content, tui_show_exec_info_content)
4170 (tui_clear_exec_info_content): Update.
4171 * tui/tui-stack.c (tui_show_locator_content): Update.
4172 (tui_show_frame_info): Update.
4173 * tui/tui-source.h (tui_source_window): Don't declare.
4174 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4175 from tui_source_is_displayed.
4176 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4177 Remove field.
4178 (struct tui_source_window_base) <content_in_use>: New field. Now
4179 bool.
4180 (struct tui_source_window) <showing_source_p>: New method.
4181 (TUI_SRC_WIN): Change cast.
4182 * tui/tui-data.c (tui_initialize_static_data): Update.
4183
4184 2019-07-17 Tom Tromey <tom@tromey.com>
4185
4186 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4187 location_matches_p.
4188 * tui/tui-source.c (tui_source_window::location_matches_p): New
4189 method.
4190 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4191 method.
4192 * tui/tui-data.h (struct tui_source_window_base)
4193 <location_matches_p>: New method.
4194 (struct tui_source_window, struct tui_disasm_window)
4195 <location_matches_p>: Likewise.
4196
4197 2019-07-17 Tom Tromey <tom@tromey.com>
4198
4199 * tui/tui-win.c (tui_set_win_height_command): Rename from
4200 tui_set_win_height.
4201 (tui_set_win_height_command): Remove.
4202
4203 2019-07-17 Tom Tromey <tom@tromey.com>
4204
4205 * tui/tui-source.c (tui_source_window): New constructor. Add
4206 observer.
4207 (~tui_source_window): New destructor.
4208 (tui_source_window::style_changed): New method.
4209 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4210 (tui_attach_detach_observers): Update.
4211 * tui/tui-data.h (struct tui_source_window): Make constructor not
4212 inline. Add destructor.
4213 (struct tui_source_window) <style_changed>: New method.
4214 <m_observable>: New member.
4215
4216 2019-07-17 Tom Tromey <tom@tromey.com>
4217
4218 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4219 * tui/tui-win.c (tui_resize_all): Fix typo.
4220
4221 2019-07-17 Tom Tromey <tom@tromey.com>
4222
4223 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4224 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4225 (tui_refresh_all): Remove "list" parameter. Use foreach.
4226 * tui/tui-win.c (window_name_completer): Use foreach.
4227 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4228 (update_tab_width): Likewise.
4229 * tui/tui-layout.c (show_layout): Update.
4230 * tui/tui-data.h (class tui_window_iterator): New.
4231 (struct all_tui_windows): New.
4232 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4233
4234 2019-07-17 Tom Tromey <tom@tromey.com>
4235
4236 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4237 parameter. Don't reference globals.
4238 (tui_reg_command): Update.
4239
4240 2019-07-17 Tom Tromey <tom@tromey.com>
4241
4242 * tui/tui-regs.c (tui_show_registers): Simplify.
4243
4244 2019-07-17 Tom Tromey <tom@tromey.com>
4245
4246 * tui/tui-regs.c (tui_show_registers): Update.
4247 (tui_show_register_group): Add win_info parameter.
4248
4249 2019-07-17 Tom Tromey <tom@tromey.com>
4250
4251 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4252 Rename from tui_display_reg_element_at_line.
4253 (tui_data_window::display_registers_from_line): Update.
4254 * tui/tui-data.h (struct tui_data_window)
4255 <display_reg_element_at_line>: New method.
4256
4257 2019-07-17 Tom Tromey <tom@tromey.com>
4258
4259 * tui/tui-regs.h (tui_display_registers_from)
4260 (tui_display_registers_from_line): Don't declare.
4261 * tui/tui-windata.c (tui_data_window::display_all_data)
4262 (tui_data_window::refresh_all)
4263 (tui_data_window::do_scroll_vertical): Update.
4264 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4265 from tui_display_registers_from.
4266 (tui_display_reg_element_at_line): Update.
4267 (tui_data_window::display_registers_from_line): Rename from
4268 tui_display_registers_from_line.
4269 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4270 display_registers_from_line>: New methods.
4271
4272 2019-07-17 Tom Tromey <tom@tromey.com>
4273
4274 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4275 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4276 from tui_erase_data_content.
4277 (tui_data_window::display_all_data)
4278 (tui_data_window::refresh_all)
4279 (tui_data_window::do_scroll_vertical): Update.
4280 * tui/tui-regs.c (tui_show_registers): Update.
4281 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4282 New method.
4283
4284 2019-07-17 Tom Tromey <tom@tromey.com>
4285
4286 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4287 declare.
4288 * tui/tui-windata.c
4289 (tui_data_window::delete_data_content_windows): Rename from
4290 tui_delete_data_content_windows.
4291 (tui_data_window::display_all_data)
4292 (tui_data_window::do_scroll_vertical): Update.
4293 * tui/tui-data.h (struct tui_data_window)
4294 <delete_data_content_windows>: New method.
4295
4296 2019-07-17 Tom Tromey <tom@tromey.com>
4297
4298 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4299 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4300
4301 2019-07-17 Tom Tromey <tom@tromey.com>
4302
4303 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4304 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4305 from tui_display_all_data.
4306 * tui/tui-win.c
4307 (tui_data_window::do_make_visible_with_new_height): Update.
4308 * tui/tui-regs.c (tui_show_registers): Update.
4309 * tui/tui-layout.c (tui_set_layout): Update.
4310 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4311 method.
4312
4313 2019-07-17 Tom Tromey <tom@tromey.com>
4314
4315 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4316 * tui/tui-windata.c (tui_display_data_from): Remove.
4317 (tui_data_window::refresh_all): Update.
4318
4319 2019-07-17 Tom Tromey <tom@tromey.com>
4320
4321 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4322 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4323 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4324 tui_display_registers_from_line.
4325 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4326 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4327 "force_display" parameter.
4328
4329 2019-07-17 Tom Tromey <tom@tromey.com>
4330
4331 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4332 declare.
4333 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4334 Rename from tui_first_reg_element_no_inline.
4335 (tui_display_reg_element_at_line)
4336 (tui_display_registers_from_line): Update.
4337 * tui/tui-data.h (struct tui_data_window)
4338 <first_reg_element_no_inline>: New method.
4339
4340 2019-07-17 Tom Tromey <tom@tromey.com>
4341
4342 * tui/tui-windata.c (tui_display_data_from)
4343 (tui_data_window::do_scroll_vertical): Update.
4344 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4345 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4346 Rename from tui_line_from_reg_element_no.
4347 (tui_display_registers_from_line): Update.
4348 * tui/tui-data.h (struct tui_data_window)
4349 <line_from_reg_element_no>: New method.
4350
4351 2019-07-17 Tom Tromey <tom@tromey.com>
4352
4353 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4354 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4355 tui_last_regs_line_no.
4356 (tui_display_reg_element_at_line)
4357 (tui_display_registers_from_line): Update.
4358 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4359 method.
4360
4361 2019-07-17 Tom Tromey <tom@tromey.com>
4362
4363 PR tui/24722:
4364 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4365 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4366 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4367 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4368 (tui_update_breakpoint_info): Likewise.
4369 * tui/tui-hooks.c (tui_event_create_breakpoint)
4370 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4371 Update.
4372
4373 2019-07-17 Tom Tromey <tom@tromey.com>
4374
4375 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4376
4377 2019-07-17 Tom Tromey <tom@tromey.com>
4378
4379 * tui/tui-winsource.c (tui_update_source_window_as_is)
4380 (tui_update_source_windows_with_addr): Update.
4381 * tui/tui-source.h (tui_set_source_content)
4382 (tui_show_symtab_source): Add "win_info" parameter.
4383 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4384 parameter.
4385 (tui_show_symtab_source): Likewise.
4386
4387 2019-07-17 Tom Tromey <tom@tromey.com>
4388
4389 * tui/tui-wingeneral.c
4390 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4391
4392 2019-07-17 Tom Tromey <tom@tromey.com>
4393
4394 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4395 (struct tui_cmd_window) <can_scroll>: New method.
4396 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4397 method.
4398
4399 2019-07-17 Tom Tromey <tromey@adacore.com>
4400
4401 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4402 do_field_signed>: Rename. Change type of "value".
4403 * ui-out.c (ui_out::field_signed): Rename from field_int.
4404 Change type of "value".
4405 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4406 type of "value".
4407 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4408 do_field_int. Change type of "value".
4409 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4410 do_field_int. Change type of "value".
4411 * tracepoint.c (trace_status_mi, tfind_1)
4412 (print_one_static_tracepoint_marker): Update.
4413 * thread.c (print_thread_info_1, print_selected_thread_frame):
4414 Update.
4415 * stack.c (print_frame, print_frame_info): Update.
4416 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4417 Update.
4418 * source.c (print_source_lines_base): Update.
4419 * skip.c (info_skip_command): Update.
4420 * record-btrace.c (btrace_ui_out_decode_error)
4421 (btrace_call_history_src_line): Update.
4422 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4423 Update.
4424 * progspace.c (print_program_space): Update.
4425 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4426 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4427 do_field_int. Change type of "value".
4428 * mi/mi-out.c (mi_ui_out::do_table_begin)
4429 (mi_ui_out::do_table_header): Update.
4430 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4431 type of "value".
4432 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4433 (mi_cmd_data_list_changed_registers, output_register)
4434 (mi_cmd_data_read_memory, mi_load_progress)
4435 (mi_cmd_trace_frame_collected): Update.
4436 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4437 Update.
4438 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4439 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4440 (mi_cmd_var_list_children, varobj_update_one): Update.
4441 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4442 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4443 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4444 * inferior.c (print_inferior): Update.
4445 * gdb_bfd.c (print_one_bfd): Update.
4446 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4447 Update.
4448 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4449 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4450 do_field_int. Change type of "value".
4451 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4452 do_field_int. Change type of "value".
4453 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4454 (print_one_breakpoint_location, print_it_catch_fork)
4455 (print_one_catch_fork, print_it_catch_vfork)
4456 (print_one_catch_vfork, print_it_catch_solib)
4457 (print_it_catch_exec, print_it_ranged_breakpoint)
4458 (print_mention_watchpoint, print_mention_masked_watchpoint)
4459 (bkpt_print_it, update_static_tracepoint): Update.
4460 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4461 * break-catch-syscall.c (print_it_catch_syscall): Update.
4462 * ada-tasks.c (print_ada_task_info): Update.
4463 * ada-lang.c (print_it_exception, print_mention_exception):
4464 Update.
4465
4466 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4467
4468 PR breakpoints/24541
4469 * gdbarch.c: Regenerate.
4470 * gdbarch.h: Regenerate.
4471 * gdbarch.sh: Adjust return type and parameter types for
4472 'stap_adjust_register'.
4473 (i386_stap_adjust_register): Adjust signature and return new
4474 register name.
4475 * stap-probe.c (stap_parse_register_operand): Adjust use of
4476 'gdbarch_stap_adjust_register'.
4477
4478 2019-07-17 Tom Tromey <tromey@adacore.com>
4479
4480 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4481 declare VEC.
4482 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4483 std::vector.
4484 (struct s390_process_info): Add initializers.
4485 (s390_add_process): Use new.
4486 (s390_linux_nat_target::low_forget_process): Use delete.
4487 (s390_linux_nat_target::low_new_fork)
4488 (s390_linux_nat_target::stopped_by_watchpoint)
4489 (s390_linux_nat_target::low_prepare_to_resume)
4490 (s390_linux_nat_target::insert_watchpoint)
4491 (s390_linux_nat_target::insert_hw_breakpoint)
4492 (s390_linux_nat_target::remove_watchpoint)
4493 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4494
4495 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4496
4497 * aarch64-fbsd-nat.c: Include regcache.h.
4498 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4499 argument.
4500 (aarch64_fbsd_nat_target::fetch_registers)
4501 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4502 variable.
4503 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4504
4505 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4506
4507 * fbsd-nat.c: Include gdbarch.h.
4508
4509 2019-07-15 Tom Tromey <tromey@adacore.com>
4510
4511 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4512
4513 2019-07-15 Tom Tromey <tromey@adacore.com>
4514
4515 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4516 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4517 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4518 * cli-out.c (cli_ui_out::do_field_int): New method.
4519 * ui-out.c (ui_out::field_unsigned): New method.
4520 * symfile.c (generic_load): Use field_unsigned.
4521 (print_transfer_performance): Likewise.
4522 * record-btrace.c (ui_out_field_uint): Remove.
4523 (btrace_call_history_insn_range, btrace_call_history): Use
4524 field_unsigned.
4525 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4526 field_unsigned.
4527 * ui-out.h (class ui_out) <field_unsigned>: New method.
4528 <do_field_unsigned>: Likewise.
4529
4530 2019-07-15 Tom Tromey <tromey@adacore.com>
4531
4532 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4533 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4534 * target.c (flash_erase_command): Use field_string.
4535 * infrun.c (print_signal_received_reason): Use field_string.
4536 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4537 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4538 field_string.
4539 * ada-tasks.c (print_ada_task_info): Use field_string.
4540
4541 2019-07-15 Tom Tromey <tromey@adacore.com>
4542
4543 * target.c (flash_erase_command): Use field_core_addr.
4544 * symfile.c (generic_load): Use field_core_addr.
4545 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4546 Use field_core_addr.
4547 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4548 field_core_addr.
4549
4550 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4551
4552 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4553 value if its desired type is smaller than a CORE_ADDR and signed.
4554
4555 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4556
4557 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4558 of changes to field names, and use new is_reference field to
4559 decide if a property is a reference or not.
4560 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4561 field.
4562 (struct dwarf2_property_baton): Update header comment, rename
4563 'referenced_type' to 'property_type' and update comments.
4564 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4565 default property type, store in property baton, update to take
4566 accound of renamed field.
4567 (read_func_scope): Update call to attr_to_dynamic_prop.
4568 (read_array_type): Likewise.
4569 (dwarf2_per_cu_addr_sized_int_type): New function.
4570 (read_subrange_index_type): Move type finding code to
4571 dwarf2_per_cu_addr_sized_int_type.
4572 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4573 (dwarf2_per_cu_addr_type): New function.
4574 (set_die_type): Update calls to attr_to_dynamic_prop.
4575
4576 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4577
4578 * dwarf2read.c (read_subrange_index_type): New function.
4579 (read_subrange_type): Move code into new function and call it.
4580 * gdbtypes.c (create_range_type): Add some asserts.
4581
4582 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4583
4584 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4585 update return statements.
4586 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4587 declaration, and update comment to match.
4588 * gdbtypes.c (resolve_dynamic_array): Update call to
4589 dwarf2_evaluate_property to match new return type.
4590
4591 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4592
4593 * valarith.c (value_subscripted_rvalue): Change lowerbound
4594 parameter type from int to LONGEST.
4595 * value.h (value_subscripted_rvalue): Likewise in declaration.
4596
4597 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4598
4599 * cli/cli-utils.c (info_print_command_completer): New function.
4600 * cli/cli-utils.h: Add 'completer.h' include, and forward
4601 declaration for 'struct cmd_list_element'.
4602 (info_print_command_completer): Declare.
4603 * stack.c (_initialize_stack): Add completer for 'info locals' and
4604 'info args'.
4605 * symtab.c (_initialize_symtab): Add completer for 'info
4606 variables' and 'info functions'.
4607 * NEWS: Mention completion for additional info commands.
4608
4609 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4610
4611 * cli/cli-utils.c (extract_info_print_args): Delete.
4612 (extract_arg_maybe_quoted): Delete.
4613 (info_print_options_defs): New variable.
4614 (make_info_print_options_def_group): New function.
4615 (extract_info_print_options): Define new function.
4616 * cli/cli-utils.h (extract_info_print_args): Delete.
4617 (struct info_print_options): New structure.
4618 (extract_info_print_options): Declare new function.
4619 * stack.c (info_locals_command): Update to use new
4620 extract_info_print_options, also add a header comment.
4621 (info_args_command): Likewise.
4622 * symtab.c (info_variables_command): Likewise.
4623 (info_functions_command): Likewise.
4624
4625 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4626
4627 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4628 to extract string arguments.
4629 * common/common-utils.c (extract_string_maybe_quoted): New function.
4630 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4631
4632 2019-07-11 Tom Tromey <tromey@adacore.com>
4633
4634 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4635 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4636 * top.h (gdbinit): Don't declare.
4637 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4638 into...
4639 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4640 * top.c (gdb_init): Don't call init_cli_cmds.
4641 (gdbinit): Remove.
4642 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4643
4644 2019-07-11 Tom Tromey <tromey@adacore.com>
4645
4646 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4647 after it has been moved.
4648
4649 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4650
4651 * valops.c (value_must_coerce_to_target): Change return type to
4652 bool.
4653 * value.h (value_must_coerce_to_target): Likewise.
4654
4655 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
4656
4657 * breakpoint.c (is_hardware_watchpoint): Remove
4658 forward-declaration.
4659 (is_masked_watchpoint): Change return type to bool.
4660 (is_tracepoint): Likewise.
4661 (is_breakpoint): Likewise.
4662 (is_hardware_watchpoint): Likewise.
4663 (is_watchpoint): Likewise.
4664 (is_no_memory_software_watchpoint): Likewise.
4665 (is_catchpoint): Likewise.
4666 (breakpoint_1): Make FILTER parameter's return type bool.
4667 is_masked_watchpoint): Change return type to bool.
4668 (save_breakpoints): Make FILTER parameter's return type bool.
4669 * breakpoint.h (is_breakpoint): Change return type to bool.
4670 (is_watchpoint): Likewise.
4671 (is_catchpoint): Likewise.
4672 (is_tracepoint): Likewise.
4673
4674 2019-07-10 Tom Tromey <tom@tromey.com>
4675
4676 * defs.h: Don't include gdbarch.h.
4677 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4678 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4679 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4680 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4681 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4682 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4683 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4684 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4685 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4686 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4687 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4688 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4689 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4690 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4691 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4692 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4693 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4694 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4695 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4696 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4697 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4698 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4699 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4700 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4701 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4702 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4703 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4704
4705 2019-07-10 Tom Tromey <tromey@adacore.com>
4706
4707 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4708 * breakpoint.c (init_ada_exception_breakpoint): Register as
4709 bp_catchpoint.
4710 (print_one_breakpoint_location, print_one_breakpoint): Use
4711 is_ada_exception_catchpoint.
4712 * ada-lang.c (class ada_catchpoint_location): Pass
4713 bp_loc_software_breakpoint to bp_location constructor.
4714 (is_ada_exception_catchpoint): New function.
4715
4716 2019-07-10 Tom Tromey <tromey@adacore.com>
4717
4718 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4719 VEC.
4720 (struct arm_exidx_entry): New method operator<.
4721 (struct arm_exidx_data) <section_maps>: Change type.
4722 (arm_exidx_data_free): Remove.
4723 (arm_exidx_data_key): Change type. Move lower.
4724 (arm_exidx_new_objfile): Update.
4725 (arm_compare_exidx_entries): Remove.
4726 (arm_find_exidx_entry, _initialize_arm_tdep)
4727
4728 2019-07-10 Tom Tromey <tromey@adacore.com>
4729
4730 * solib-spu.c (ocl_program_data_key): Change type.
4731 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4732 Update.
4733
4734 2019-07-10 Tom Tromey <tromey@adacore.com>
4735
4736 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4737 (struct solib_aix_inferior_data) <library_list>: Change type.
4738 (solib_aix_inferior_data_handle): Change type.
4739 (get_solib_aix_inferior_data): Update.
4740 (solib_aix_free_library_list): Remove.
4741 (library_list_start_library): Update.
4742 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4743 return type.
4744 (solib_aix_get_library_list)
4745 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4746 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4747
4748 2019-07-10 Tom Tromey <tromey@adacore.com>
4749
4750 * solib-dsbt.c (struct dsbt_info): Add initializers.
4751 (solib_dsbt_pspace_data): Change type.
4752 (dsbt_pspace_data_cleanup): Remove.
4753 (get_dsbt_info, _initialize_dsbt_solib): Update.
4754
4755 2019-07-10 Tom Tromey <tromey@adacore.com>
4756
4757 * spu-tdep.c (spu_overlay_data): Change type.
4758 (spu_get_overlay_table, spu_overlay_new_objfile)
4759 (_initialize_spu_tdep): Update.
4760
4761 2019-07-10 Tom Tromey <tromey@adacore.com>
4762
4763 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4764 destructor.
4765 (dbx_objfile_data_key): Change type and declare later.
4766 (DBX_SYMFILE_INFO): Rewrite.
4767 * dbxread.c (dbx_objfile_data_key): Change type.
4768 (dbx_symfile_init): Update.
4769 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4770 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4771 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4772
4773 2019-07-10 Tom Tromey <tromey@adacore.com>
4774
4775 * jit.c (jit_program_space_key): Change type. Move lower.
4776 (get_jit_program_space_data): Update.
4777 (jit_program_space_data_cleanup): Remove.
4778 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4779 Update.
4780 (struct jit_program_space_data): Add initializers.
4781
4782 2019-07-10 Tom Tromey <tromey@adacore.com>
4783
4784 * solib-darwin.c (struct darwin_info): Add initializers.
4785 (solib_darwin_pspace_data): Change type.
4786 (darwin_pspace_data_cleanup): Remove.
4787 (get_darwin_info, _initialize_darwin_solib): Update.
4788
4789 2019-07-10 Tom Tromey <tromey@adacore.com>
4790
4791 * remote-sim.c (struct sim_inferior_data): Add initializers,
4792 constructor, and destructor.
4793 (sim_inferior_data_key): Change type. Move lower.
4794 (check_for_duplicate_sim_descriptor): Update.
4795 (get_sim_inferior_data): Use new. Update.
4796 (~sim_inferior_data_cleanup): Rename from
4797 sim_inferior_data_cleanup. Simplify.
4798 (gdbsim_close_inferior, simulator_command)
4799 (sim_command_completer, _initialize_remote_sim): Update.
4800 (next_pid, INITIAL_PID): Move earlier.
4801
4802 2019-07-10 Tom Tromey <tromey@adacore.com>
4803
4804 * python/python-internal.h (create_thread_object): Return
4805 gdbpy_ref.
4806 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4807 * python/py-inferior.c (struct threadlist_entry): Add
4808 constructor.
4809 <thread_obj>: Now a gdbpy_ref.
4810 (thread_to_thread_object): Update.
4811 (add_thread_object): Use new.
4812 (delete_thread_object): Use delete.
4813 (infpy_threads): Update.
4814 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4815 GIL.
4816
4817 2019-07-10 Tom Tromey <tromey@adacore.com>
4818
4819 * valops.c (value_cast): Specialize error message for Ada.
4820
4821 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4822
4823 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4824
4825 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4826
4827 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4828 bpstat_should_step): Return bool, adjust comments.
4829 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4830 bpstat_should_step): Likewise.
4831
4832 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4833
4834 * features/Makefile: Use feature target descriptions for Arm.
4835 * features/arm/arm-core.c: Generate new file.
4836 * features/arm/arm-fpa.c: Likewise.
4837 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4838 * features/arm/arm-m-profile.c: Likewise.
4839 * features/arm/arm-vfpv2.c: Likewise.
4840 * features/arm/arm-vfpv3.c: Likewise.
4841 * features/arm/xscale-iwmmxt.c: Likewise.
4842 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4843
4844 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4845
4846 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4847 ptrace earlier.
4848
4849 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4850
4851 * features/aarch64-pauth.c: Regenerate.
4852
4853 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4854
4855 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4856 bool.
4857 (bpstat_what): Use false instead of 0.
4858
4859 2019-07-09 Pedro Alves <palves@redhat.com>
4860
4861 * break-catch-throw.c (is_exception_catchpoint): New.
4862 * breakpoint.c (print_one_breakpoint_location): New parameter
4863 'raw_loc'. Handle it. Use
4864 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4865 looking at the breakpoint's type.
4866 (print_one_breakpoint): If handling "maint info breakpoints", also
4867 print locations of exception catchpoints.
4868 * breakpoint.h (is_exception_catchpoint): Declare.
4869
4870 2019-07-09 Pedro Alves <palves@redhat.com>
4871
4872 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4873 "addr" field.
4874 (allocate_location_exception_catchpoint): New.
4875 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4876 (initialize_throw_catchpoint_ops): Install
4877 allocate_location_exception_catchpoint as allocate_location
4878 method.
4879 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4880 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4881 bp_loc_other.
4882 (breakpoint_address_is_meaningful): Delete.
4883 (bl_address_is_meaningful): New.
4884 (breakpoint_locations_match): Adjust comment.
4885 (bp_location_from_bp_type): New, factored out of...
4886 (bp_location::bp_location(breakpoint *)): ... this.
4887 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4888 factored out of...
4889 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4890 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4891 breakpoint_address_is_meaningful.
4892 (bp_locations_compare): Adjust comment.
4893 (update_global_location_list): Use bl_address_is_meaningful
4894 instead of breakpoint_address_is_meaningful.
4895 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4896 explicit.
4897 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4898 * python/py-breakpoint.c (bppy_get_location): No longer check
4899 whether location is null.
4900
4901 2019-07-09 Pedro Alves <palves@redhat.com>
4902
4903 PR c++/15468
4904 * breakpoint.c (print_one_breakpoint_location): Remove
4905 single-location assert.
4906
4907 2019-07-09 Tom Tromey <tom@tromey.com>
4908
4909 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4910 * configure: Rebuild.
4911 * configure.ac: Change common to gdbsupport.
4912 * gdbsupport: Rename from common.
4913 * acinclude.m4: Change common to gdbsupport.
4914 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4915 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4916 gdbsupport.
4917 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4918 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4919 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4920 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4921 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4922 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4923 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4924 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4925 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4926 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4927 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4928 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4929 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4930 coff-pe-read.c, command.h, compile/compile-c-support.c,
4931 compile/compile-c.h, compile/compile-cplus-symbols.c,
4932 compile/compile-cplus-types.c, compile/compile-cplus.h,
4933 compile/compile-loc2c.c, compile/compile.c, completer.c,
4934 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4935 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4936 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4937 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4938 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4939 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4940 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4941 features/aarch64-core.c, features/aarch64-fpu.c,
4942 features/aarch64-pauth.c, features/aarch64-sve.c,
4943 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4944 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4945 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4946 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4947 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4948 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4949 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4950 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4951 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4952 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4953 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4954 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4955 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4956 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4957 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4958 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4959 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4960 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4961 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4962 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4963 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4964 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4965 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4966 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4967 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4968 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4969 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4970 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4971 minsyms.c, mips-linux-tdep.c, namespace.h,
4972 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4973 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4974 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4975 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4976 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4977 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4978 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4979 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4980 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4981 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4982 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4983 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4984 procfs.c, producer.c, progspace.h, psymtab.h,
4985 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4986 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4987 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4988 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4989 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4990 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4991 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4992 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4993 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4994 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4995 target-memory.c, target.c, target.h, target/waitstatus.c,
4996 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4997 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4998 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4999 unittests/array-view-selftests.c,
5000 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5001 unittests/common-utils-selftests.c,
5002 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5003 unittests/format_pieces-selftests.c,
5004 unittests/function-view-selftests.c,
5005 unittests/lookup_name_info-selftests.c,
5006 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5007 unittests/mkdir-recursive-selftests.c,
5008 unittests/observable-selftests.c,
5009 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5010 unittests/parse-connection-spec-selftests.c,
5011 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5012 unittests/scoped_fd-selftests.c,
5013 unittests/scoped_mmap-selftests.c,
5014 unittests/scoped_restore-selftests.c,
5015 unittests/string_view-selftests.c, unittests/style-selftests.c,
5016 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5017 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5018 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5019 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5020 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5021 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5022
5023 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5024
5025 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5026 bool value.
5027 (decode_digits_ordinary): Set explicit_line field in sal.
5028 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5029 symtab_and_line that was set on an explicit line number in
5030 assembler code. Do always update the recorded symtab and line if
5031 we do skip the prologue.
5032
5033 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5034
5035 * breakpoint.c (set_breakpoint_location_function): Remove
5036 explicit_loc parameter.
5037 (momentary_breakpoint_from_master): Update call to
5038 set_breakpoint_location_function.
5039 (add_location_to_breakpoint): Likewise.
5040
5041 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5042
5043 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5044 required features based on default bfd type when no specific bfd
5045 is present.
5046
5047 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5048
5049 * NEWS: Mention that GDB printf and eval commands can now print
5050 C-style and Ada-style convenience var strings without
5051 calling the inferior.
5052 * printcmd.c (printf_c_string): Locally print GDB internal var
5053 instead of transiting via the inferior.
5054 (printf_wide_c_string): Likewise.
5055
5056 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5057
5058 PR breakpoints/25011
5059 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5060
5061 2019-07-04 Tom Tromey <tom@tromey.com>
5062
5063 PR tui/24724:
5064 * tui/tui-winsource.c (tui_clear_source_content): Update.
5065 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5066 (tui_update_breakpoint_info): Update.
5067 (tui_set_exec_info_content): Update.
5068 * tui/tui-source.c (tui_set_source_content_nil): Update.
5069 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5070 has_break.
5071 * tui/tui-data.h (enum tui_bp_flag): New.
5072 (tui_bp_flags): New enum flags type.
5073 (struct tui_source_element) <break_mode>: Change type. Rename
5074 from has_break.
5075 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5076 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5077 constants.
5078 * tui/tui-winsource.h: Fix comment.
5079
5080 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5081
5082 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5083 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5084 (store_fpregs_to_thread)
5085 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5086 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5087 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5088 (IWMMXT_REGS_SIZE): Add define.
5089 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5090 (fetch_vfp_regs, store_vfp_regs)
5091 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5092 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5093
5094 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5095
5096 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5097 defines.
5098 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5099 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5100 (ARM_INT_REGISTER_SIZE): ...to this.
5101 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5102 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5103 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5104 (arm_linux_collect_gregset, supply_nwfpe_register)
5105 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5106 defines.
5107 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5108 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5109 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5110 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5111 (arm_return_in_memory, arm_store_return_value)
5112 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5113 (arm_record_ld_st_multiple): Likewise.
5114 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5115 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5116
5117 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5118
5119 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5120 AARCH64_DISPLACED_MODIFIED_INSNS.
5121 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5122 (aarch64_displaced_step_copy_insn): Likewise.
5123 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5124 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5125 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5126 ARM_DISPLACED_MODIFIED_INSNS.
5127 * arm-tdep.c (arm_gdbarch_init): Likewise.
5128 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5129 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5130 (struct arm_displaced_step_closure): Use
5131 ARM_DISPLACED_MODIFIED_INSNS.
5132
5133 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5134
5135 * features/Makefile: Remove unused xml files.
5136 * features/aarch64.xml: Remove.
5137 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5138 * features/i386/amd64-avx-avx512.xml: Remove.
5139 * features/i386/amd64-avx-linux.xml: Remove.
5140 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5141 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5142 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5143 * features/i386/amd64-avx-mpx.xml: Remove.
5144 * features/i386/amd64-avx.xml: Remove.
5145 * features/i386/amd64-linux.xml: Remove.
5146 * features/i386/amd64-mpx-linux.xml: Remove.
5147 * features/i386/amd64-mpx.xml: Remove.
5148 * features/i386/amd64.xml: Remove.
5149 * features/i386/i386-avx-avx512-linux.xml: Remove.
5150 * features/i386/i386-avx-avx512.xml: Remove.
5151 * features/i386/i386-avx-linux.xml: Remove.
5152 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5153 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5154 * features/i386/i386-avx-mpx-linux.xml: Remove.
5155 * features/i386/i386-avx-mpx.xml: Remove.
5156 * features/i386/i386-avx.xml: Remove.
5157 * features/i386/i386-linux.xml: Remove.
5158 * features/i386/i386-mmx-linux.xml: Remove.
5159 * features/i386/i386-mmx.xml: Remove.
5160 * features/i386/i386-mpx-linux.xml: Remove.
5161 * features/i386/i386-mpx.xml: Remove.
5162 * features/i386/i386.xml: Remove.
5163 * features/i386/x32-avx-avx512-linux.xml: Remove.
5164 * features/i386/x32-avx-linux.xml: Remove.
5165 * features/i386/x32-linux.xml: Remove.
5166
5167 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5168
5169 * regformats/aarch64.dat: Remove.
5170 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5171 * regformats/i386/amd64-avx-linux.dat: Remove.
5172 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5173 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5174 * regformats/i386/amd64-linux.dat: Remove.
5175 * regformats/i386/amd64-mpx-linux.dat: Remove.
5176 * regformats/i386/amd64.dat: Remove.
5177 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5178 * regformats/i386/i386-avx-linux.dat: Remove.
5179 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5180 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5181 * regformats/i386/i386-linux.dat: Remove.
5182 * regformats/i386/i386-mmx-linux.dat: Remove.
5183 * regformats/i386/i386-mpx-linux.dat: Remove.
5184 * regformats/i386/i386.dat: Remove.
5185 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5186 * regformats/i386/x32-avx-linux.dat: Remove.
5187 * regformats/i386/x32-linux.dat: Remove.
5188
5189 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5190
5191 * aarch64-tdep.c: Remove xml self tests.
5192 * amd64-linux-tdep.c: Likewise.
5193 * amd64-tdep.c: Likewise.
5194 * i386-linux-tdep.c: Likewise.
5195 * i386-tdep.c: Likewise.
5196
5197 2019-07-03 Pedro Alves <palves@redhat.com>
5198
5199 PR cli/24732
5200 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5201 (pipe_cmd_option_defs): New.
5202 (make_pipe_cmd_options_def_group): New.
5203 (pipe_command): Use gdb::option::process_options.
5204 (pipe_command_completer): New function.
5205 (_initialize_cli_cmds): Install completer for "pipe" command.
5206
5207 2019-07-03 Pedro Alves <palves@redhat.com>
5208
5209 * cli/cli-option.c (union option_value) <string>: New field.
5210 (struct option_def_and_value): Add ctor, move ctor, dtor and
5211 use DISABLE_COPY_AND_ASSIGN.
5212 (option_def_and_value::clear_value): New.
5213 (parse_option, save_option_value_in_ctx, get_val_type_str)
5214 (add_setshow_cmds_for_options): Handle var_string.
5215 * cli-option.h (union option_def::var_address) <string>: New
5216 field.
5217 (struct string_option_def): New.
5218 * maint-test-options.c (struct test_options_opts): Add default
5219 ctor and use DISABLE_COPY_AND_ASSIGN.
5220 <string_opt>: New field.
5221 (test_options_opts::~test_options_opts): New.
5222 (test_options_opts::dump): Also dump "-string".
5223 (test_options_option_defs): Install "string.
5224
5225 2019-07-03 Pedro Alves <palves@redhat.com>
5226
5227 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5228 option_value with a null enumeration.
5229 (complete_options): Save the option values in the context.
5230 (save_option_value_in_ctx): New, factored out from ...
5231 (process_options): ... here.
5232 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5233 of the function.
5234 * maint-test-options.c (test_options_opts::dump): New, factored
5235 out from ...
5236 (maintenance_test_options_command_mode): ... here.
5237 (maintenance_test_options_command_completion_result): Delete.
5238 (maintenance_test_options_command_completion_text): Update
5239 comment.
5240 (maintenance_show_test_options_completion_result): Change
5241 prototype. Just print
5242 maintenance_test_options_command_completion_text.
5243 (save_completion_result): New.
5244 (maintenance_test_options_completer_mode): Pass options context to
5245 complete_options, and then save a dump.
5246 (_initialize_maint_test_options): Use add_cmd to install "maint
5247 show test-options-completion-result".
5248
5249 2019-07-03 Pedro Alves <palves@redhat.com>
5250
5251 * NEWS (New commands): Mention "with" and "maint with".
5252 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5253 (with_command, with_command_completer): New.
5254 (pipe_command): Adjust to new repeat_previous
5255 interface.
5256 (_initialize_cli_cmds): Install the "with" command and its "w"
5257 alias.
5258 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5259 declarations.
5260 * cli/cli-setshow.c (parse_cli_var_uinteger)
5261 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5262 argument strings for all var_types.
5263 (get_setshow_command_value_string): New, factored out from ...
5264 (do_show_command): ... this.
5265 * cli/cli-setshow.h: Include <string>.
5266 (get_setshow_command_value_string): Declare.
5267 * command.h (repeat_previous): Now returns const char *. Adjust
5268 comment.
5269 * maint.c: Include "cli/cli-cmds.h".
5270 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5271 (_initialize_maint_cmds): Register the "maintenance with" command.
5272 * top.c (repeat_previous): Move bits from pipe_command here:
5273 Return the saved command line, if any; error out if there's no
5274 command to relaunch.
5275
5276 2019-07-03 Pedro Alves <palves@redhat.com>
5277
5278 * NEWS (New commands): Mention "maint set/show test-settings"
5279 instead of "maint test-settings".
5280 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5281 (maintenance_test_settings_set_list): Rename to ...
5282 (maintenance_set_test_settings_list): ... this.
5283 (maintenance_test_settings_show_list): Rename to ...
5284 (maintenance_show_test_settings_list): ... this.
5285 (maintenance_test_settings_cmd): Delete.
5286 (maintenance_test_settings_set_cmd): ...
5287 (maintenance_set_test_settings_cmd): ... this.
5288 (maintenance_test_settings_show_cmd): ...
5289 (maintenance_show_test_settings_cmd): ... this.
5290 (maintenance_test_settings_show_value_cmd):
5291 (maintenance_show_test_settings_value_cmd): ... this.
5292 (_initialize_maint_test_settings): No longer install the "maint
5293 test-settings" prefix command. Rename "maint test-settings set"
5294 to "maint set test-settings", and "maint test-settings show" to
5295 "maint show test-settings". Adjust all subcommands.
5296
5297 2019-07-03 Pedro Alves <palves@redhat.com>
5298
5299 * maint-test-settings.c: Fix file's intro comment. Replace all
5300 references to "test-options" with references to "test-settings",
5301 in comments.
5302
5303 2019-07-03 Pedro Alves <palves@redhat.com>
5304
5305 * maint-test-settings.c (maintenance_test_settings_xxx)
5306 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5307 New.
5308 (maintenance_test_settings_enums): Use them.
5309 (maintenance_test_settings_enum): Default to
5310 maintenance_test_settings_xxx.
5311 (_initialize_maint_test_settings): Initialize
5312 MAINTENANCE_TEST_SETTINGS_FILENAME.
5313
5314 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5315
5316 * breakpoint.h (remove_breakpoints_inf): Change return type to
5317 void, move function documentation here.
5318 * breakpoint.c (remove_breakpoints_inf): Change return type to
5319 void, move function documentation to header.
5320
5321 2019-07-02 Pedro Alves <palves@redhat.com>
5322
5323 * NEWS (Completion improvements): Mention "info threads".
5324 * thread.c (struct info_threads_opts, info_threads_option_defs)
5325 (make_info_threads_options_def_group): New.
5326 (info_threads_command): Use gdb::option::process_options.
5327 (info_threads_command_completer): New.
5328 (_initialize_thread): Use gdb::option::build_help to build the
5329 help text for "info threads".
5330
5331 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5332
5333 * defs.h (generic_load): Move from here...
5334 * symfile.h (generic_load): ... to here. Rename name parameter
5335 to args.
5336 * symfile.c (generic_load): Add comment.
5337
5338 2019-07-01 Tom Tromey <tromey@adacore.com>
5339
5340 * dwarf2read.c
5341 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5342 declaration of without_params. Fix formatting.
5343
5344 2019-07-01 Tom Tromey <tromey@adacore.com>
5345
5346 * ada-exp.y (find_primitive_type): Update.
5347 * ada-lang.h (ada_lookup_symbol): Update.
5348 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5349 parameter.
5350 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5351
5352 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5353
5354 PR breakpoints/24541
5355 * gdbarch.c: Regenerate.
5356 * gdbarch.h: Regenerate.
5357 * gdbarch.sh: Add 'stap_adjust_register'.
5358 * i386-tdep.c: Include '<unordered_set>'.
5359 (i386_stap_adjust_register): New function.
5360 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5361 * stap-probe.c (stap_parse_register_operand): Call
5362 'gdbarch_stap_adjust_register'.
5363
5364 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5365
5366 PR python/24742
5367 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5368 * python/python.c (do_start_initialization): Use 'xmalloc'
5369 instead of 'PyMem_Malloc'.
5370
5371 2019-06-28 Tom Tromey <tromey@adacore.com>
5372
5373 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5374 for Ada.
5375
5376 2019-06-27 Tom Tromey <tromey@adacore.com>
5377
5378 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5379 objfile_key.
5380 (arm_find_mapping_symbol, arm_record_special_symbol)
5381 (_initialize_arm_tdep): Update.
5382 (arm_objfile_data_free): Remove.
5383
5384 2019-06-27 Tom Tromey <tromey@adacore.com>
5385
5386 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5387 to cp_print_static_field.
5388
5389 2019-06-26 Tom Tromey <tromey@adacore.com>
5390
5391 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5392 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5393 declare.
5394
5395 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5396
5397 * features/aarch64-core.c (create_feature_aarch64_core):
5398 Regenerate.
5399 * features/aarch64-core.xml: Add cpsr flags.
5400
5401 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5402
5403 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5404 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5405
5406 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5407
5408 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5409 field.
5410 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5411 use.
5412 (arm_record_special_symbol): Don't insert new symbol in sorted
5413 position, push it at the end.
5414
5415 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5416
5417 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5418 (arm_mapping_symbol_s): Remove.
5419 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5420 (arm_mapping_symbol_vec): New typedef.
5421 (struct arm_per_objfile): Add constructor.
5422 <section_maps>: Change type to
5423 std::unique_ptr<arm_mapping_symbol_vec[]>.
5424 (arm_compare_mapping_symbols): Remove.
5425 (arm_find_mapping_symbol): Adjust to section_maps type change.
5426 (arm_objfile_data_free): Call delete on arm_per_objfile.
5427 (arm_record_special_symbol): Adjust to section_maps type change.
5428 Allocate arm_per_objfile with new.
5429
5430 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5431
5432 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5433 with the command prefix.
5434
5435 2019-06-25 Tom Tromey <tom@tromey.com>
5436
5437 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5438 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5439
5440 2019-06-25 Tom Tromey <tom@tromey.com>
5441
5442 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5443 type.
5444 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5445 protected.
5446
5447 2019-06-25 Tom Tromey <tom@tromey.com>
5448
5449 * tui/tui-winsource.c
5450 (tui_source_window_base::set_is_exec_point_at): Add check against
5451 LOA_ADDRESS.
5452
5453 2019-06-25 Tom Tromey <tom@tromey.com>
5454
5455 * tui/tui-source.c (tui_set_source_content): Don't check before
5456 xfree.
5457 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5458
5459 2019-06-25 Tom Tromey <tom@tromey.com>
5460
5461 * tui/tui-winsource.h (tui_update_source_window_as_is)
5462 (tui_alloc_source_buffer, tui_line_is_displayed)
5463 (tui_addr_is_displayed): Change type of win_info.
5464 * tui/tui-winsource.c (tui_update_source_window_as_is)
5465 (tui_clear_source_content, tui_show_source_line)
5466 (tui_show_source_content, tui_source_window_base::refill)
5467 (tui_source_window_base::set_is_exec_point_at)
5468 (tui_source_window_base::set_is_exec_point_at)
5469 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5470 (tui_alloc_source_buffer, tui_line_is_displayed)
5471 (tui_addr_is_displayed): Change type of win_info. Update.
5472 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5473 (tui_source_window_base::do_make_visible_with_new_height):
5474 Update.
5475 * tui/tui-source.c (tui_set_source_content)
5476 (tui_set_source_content_nil)
5477 (tui_source_window::do_scroll_vertical): Update.
5478 * tui/tui-layout.c (show_layout): Update.
5479 * tui/tui-disasm.c (tui_set_disassem_content)
5480 (tui_disasm_window::do_scroll_vertical): Update.
5481 * tui/tui-data.h (tui_win_content): Remove.
5482 (struct tui_gen_win_info) <content, content_size>: Remove.
5483 (struct tui_source_element): Add initializers and destructor.
5484 (union tui_which_element, struct tui_win_element): Remove.
5485 (struct tui_source_window_base) <content>: New field.
5486 (struct tui_data_window): Remove destructor.
5487 (tui_alloc_content, tui_free_win_content)
5488 (tui_free_all_source_wins_content): Don't declare.
5489 * tui/tui-data.c (tui_initialize_static_data): Update.
5490 (init_content_element, tui_alloc_content): Remove.
5491 (~tui_gen_win_info): Update.
5492 (~tui_data_window, tui_free_all_source_wins_content)
5493 (tui_free_win_content, free_content, free_content_elements):
5494 Remove.
5495
5496 2019-06-25 Tom Tromey <tom@tromey.com>
5497
5498 * tui/tui-winsource.h (tui_clear_source_content)
5499 (tui_erase_source_content, tui_show_source_content): Change type
5500 of win_info.
5501 * tui/tui-winsource.c (tui_clear_source_content)
5502 (tui_erase_source_content, tui_show_source_content): Change type
5503 of win_info.
5504 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5505 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5506 win_info.
5507 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5508 win_info.
5509 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5510
5511 2019-06-25 Tom Tromey <tom@tromey.com>
5512
5513 * tui/tui-winsource.c (tui_clear_source_content)
5514 (tui_source_window_base::set_is_exec_point_at): Update.
5515 * tui/tui-source.c (tui_set_source_content_nil): Update.
5516 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5517 a bool.
5518 * tui/tui-data.c (init_content_element): Update.
5519
5520 2019-06-25 Tom Tromey <tom@tromey.com>
5521
5522 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5523 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5524 * tui/tui-layout.c (init_and_make_win): Update.
5525 * tui/tui.h (enum tui_win_type): Update.
5526 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5527 tui_win_is_auxillary.
5528 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5529 tui_win_is_auxillary.
5530
5531 2019-06-25 Tom Tromey <tom@tromey.com>
5532
5533 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5534 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5535 (tui_delete_data_content_windows, tui_display_all_data)
5536 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5537 Update.
5538 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5539 * tui/tui-regs.c (tui_last_regs_line_no)
5540 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5541 (tui_show_registers): Update.
5542 (tui_show_register_group): Return void. Update.
5543 (tui_display_registers_from, tui_display_reg_element_at_line)
5544 (tui_display_registers_from_line, tui_check_register_values):
5545 Update.
5546 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5547 member.
5548 (struct tui_data_window) <regs_content>: Now a std::vector.
5549 <regs_content_count>: Remove.
5550 (tui_add_content_elements, tui_free_data_content): Don't declare.
5551 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5552 (init_content_element): Remove DATA_WIN case. Add assert.
5553 (tui_add_content_elements): Remove.
5554 (tui_data_window): Update.
5555 (tui_free_data_content): Remove.
5556 (free_content_elements): Remove DATA_WIN case.
5557
5558 2019-06-25 Tom Tromey <tom@tromey.com>
5559
5560 * tui/tui-data.c (tui_data_item_window): Update.
5561 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5562 * tui/tui-windata.c (tui_display_all_data)
5563 (tui_display_data_from_line): Update.
5564 (tui_check_data_values): Remove.
5565 * tui/tui-regs.c (tui_show_register_group)
5566 (tui_display_reg_element_at_line): Update.
5567 * tui/tui-hooks.c (tui_register_changed)
5568 (tui_refresh_frame_and_register_information): Call
5569 tui_check_register_values.
5570 * tui/tui-data.h (struct tui_data_window) <data_content,
5571 data_content_count, data_type>: Remove.
5572 (enum tui_data_type): Remove.
5573
5574 * tui/tui-data.c (tui_data_window::clear_detail)
5575 (~tui_data_window): Update.
5576
5577 2019-06-25 Tom Tromey <tom@tromey.com>
5578
5579 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5580 declare.
5581 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5582 Rename from tui_first_data_item_displayed. Update.
5583 (tui_data_window::refresh_all)
5584 (tui_data_window::do_scroll_vertical): Update.
5585 * tui/tui-data.h (struct tui_data_window)
5586 <first_data_item_displayed>: Declare new method.
5587
5588 2019-06-25 Tom Tromey <tom@tromey.com>
5589
5590 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5591 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5592 contents...
5593 (tui_initialize_static_data): ...here.
5594
5595 2019-06-25 Tom Tromey <tom@tromey.com>
5596
5597 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5598 (tui_display_registers_from, tui_check_register_values): Update.
5599 (tui_display_register): Remove win_info parameter; update.
5600 (tui_get_register): Change type of parameters.
5601 * tui/tui-data.h (struct tui_data_element): Remove.
5602 (union tui_which_element) <data>: Remove.
5603 <data_window>: Change type.
5604 (struct tui_data_item_window): New.
5605 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5606 case. Add assert.
5607 (~tui_data_item_window): New destructor.
5608 (free_content_elements): Remove DATA_ITEM_WIN case.
5609
5610 2019-06-25 Tom Tromey <tom@tromey.com>
5611
5612 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5613 Remove.
5614
5615 2019-06-25 Tom Tromey <tom@tromey.com>
5616
5617 * tui/tui-data.h (struct tui_command_element): Remove.
5618 (union tui_which_element) <command>: Remove.
5619 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5620 assert.
5621 (free_content_elements): Remove CMD_WIN case.
5622
5623 2019-06-25 Tom Tromey <tom@tromey.com>
5624
5625 * tui/tui-layout.c (tui_set_layout): Update.
5626 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5627 * tui/tui-data.c (layout_def): Update.
5628
5629 2019-06-25 Tom Tromey <tom@tromey.com>
5630
5631 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5632 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5633 (tui_source_window_base::set_new_height): Update.
5634 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5635 Update.
5636 (tui_set_locator_fullname, tui_set_locator_info)
5637 (tui_show_frame_info): Update.
5638 * tui/tui-source.c (tui_set_source_content)
5639 (tui_source_is_displayed): Update.
5640 * tui/tui-layout.c (show_source_disasm_command, show_data)
5641 (show_source_or_disasm_and_command): Update.
5642 * tui/tui-disasm.c (tui_set_disassem_content)
5643 (tui_get_begin_asm_address): Update.
5644 * tui/tui-data.h (struct tui_locator_element): Remove.
5645 (union tui_which_element) <locator>: Remove.
5646 (struct tui_locator_window): New.
5647 (tui_locator_win_info_ptr): Change return type.
5648 * tui/tui-data.c (_locator): Change type.
5649 (tui_locator_win_info_ptr): Change return type.
5650 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5651 (tui_alloc_content): Add assert.
5652
5653 2019-06-25 Tom Tromey <tom@tromey.com>
5654
5655 * tui/tui-winsource.c
5656 (tui_exec_info_window::maybe_allocate_content): New method.
5657 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5658 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5659 (make_source_or_disasm_window): Add cast.
5660 * tui/tui-data.h (union tui_which_element) <simple_string>:
5661 Remove.
5662 (struct tui_source_info): New.
5663 (struct tui_source_window_base) <execution_info>: Change type.
5664 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5665 case, and add assert.
5666 (tui_alloc_content): Add assert.
5667
5668 2019-06-25 Tom Tromey <tom@tromey.com>
5669
5670 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5671 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5672 * tui/tui-data.c (tui_alloc_win_info): Remove.
5673
5674 2019-06-25 Tom Tromey <tom@tromey.com>
5675
5676 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5677 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5678 can_highlight.
5679
5680 2019-06-25 Tom Tromey <tom@tromey.com>
5681
5682 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5683 make_visible_with_new_height method.
5684 (tui_win_info::make_visible_with_new_height): New method.
5685 (tui_source_window_base::do_make_visible_with_new_height)
5686 (tui_data_window::do_make_visible_with_new_height)
5687 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5688 (make_visible_with_new_height): Remove.
5689 (tui_resize_all, tui_adjust_win_heights): Use
5690 make_visible_with_new_height method.
5691 * tui/tui-data.h (struct tui_win_info)
5692 <do_make_visible_with_new_height, make_visible_with_new_height>:
5693 New methods.
5694 (struct tui_source_window_base, struct tui_data_window)
5695 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5696 methods.
5697
5698 2019-06-25 Tom Tromey <tom@tromey.com>
5699
5700 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5701 method.
5702 (update_tab_width): Call update_tab_width method.
5703 * tui/tui-data.h (struct tui_win_info)
5704 (struct tui_source_window_base) <update_tab_width>: New methods.
5705
5706 2019-06-25 Tom Tromey <tom@tromey.com>
5707
5708 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5709 parameter.
5710 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5711 parameter.
5712 (tui_gen_win_info::make_visible): Update.
5713 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5714 parameter.
5715 * tui/tui-data.h (enum tui_box): New enum.
5716 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5717
5718 2019-06-25 Tom Tromey <tom@tromey.com>
5719
5720 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5721 init_and_make_win for EXEC_INFO_WIN.
5722 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5723 longer inline.
5724 (struct tui_win_info) <~tui_win_info>: Inline.
5725 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5726 Don't declare.
5727 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5728 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5729 Remove.
5730 (tui_initialize_static_data): Update.
5731 (~tui_gen_win_info): Handle more cleanup here.
5732 (~tui_source_window_base): Delete "execution_info".
5733 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5734
5735 2019-06-25 Tom Tromey <tom@tromey.com>
5736
5737 * tui/tui-layout.c (make_command_window): Don't set
5738 can_highlight.
5739 (show_source_disasm_command): Call the reset method.
5740 (show_data): Don't set can_highlight. Call the reset method.
5741 (tui_gen_win_info::reset): Rename from init_gen_win_info
5742 (init_and_make_win): Simplify. Return tui_gen_win_info.
5743 (show_source_or_disasm_and_command): Call the reset method.
5744 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5745 (struct tui_cmd_window): Set can_highlight.
5746
5747 2019-06-25 Tom Tromey <tom@tromey.com>
5748
5749 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5750 from make_visible.
5751 (tui_make_visible, tui_make_invisible): Rewrite.
5752 (tui_win_info::make_visible): Remove.
5753 (tui_source_window_base::make_visible): Update.
5754 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5755 method. Moved from...
5756 (struct tui_win_info) <make_visible>: ...here.
5757
5758 2019-06-25 Tom Tromey <tom@tromey.com>
5759
5760 * tui/tui-winsource.c
5761 (tui_source_window_base::do_scroll_horizontal): Remove direction
5762 parameter.
5763 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5764 direction parameter.
5765 * tui/tui-win.c (tui_win_info::forward_scroll)
5766 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5767 (tui_win_info::right_scroll): Update.
5768 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5769 direction parameter.
5770 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5771 direction parameter.
5772 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5773 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5774 Remove direction parameter.
5775 (struct tui_source_window_base, struct tui_source_window)
5776 (struct tui_disasm_window, struct tui_data_window)
5777 (struct tui_cmd_window): Update.
5778
5779 2019-06-25 Tom Tromey <tom@tromey.com>
5780
5781 * tui/tui-winsource.h (tui_set_exec_info_content)
5782 (tui_show_exec_info_content, tui_erase_exec_info_content)
5783 (tui_clear_exec_info_content, tui_update_exec_info): Change
5784 argument to tui_source_window_base.
5785 * tui/tui-winsource.c (tui_set_exec_info_content)
5786 (tui_show_exec_info_content, tui_erase_exec_info_content)
5787 (tui_clear_exec_info_content, tui_update_exec_info): Change
5788 argument to tui_source_window_base.
5789
5790 2019-06-25 Tom Tromey <tom@tromey.com>
5791
5792 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5793 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5794
5795 2019-06-25 Tom Tromey <tom@tromey.com>
5796
5797 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5798 check.
5799
5800 2019-06-25 Tom Tromey <tom@tromey.com>
5801
5802 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5803 type to void.
5804 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5805 type to void.
5806 * tui/tui-source.c (tui_set_source_content): Update.
5807 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5808
5809 2019-06-25 Tom Tromey <tom@tromey.com>
5810
5811 * tui/tui-win.c (window_name_completer, tui_set_focus)
5812 (tui_all_windows_info): Use name method.
5813 * tui/tui-data.h (struct tui_gen_win_info)
5814 (struct tui_source_window, struct tui_disasm_window)
5815 (struct tui_data_window, struct tui_cmd_window) <name>: New
5816 method.
5817 (tui_win_name): Don't declare.
5818 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5819 (tui_win_name): Remove.
5820
5821 2019-06-25 Tom Tromey <tom@tromey.com>
5822
5823 * tui/tui-winsource.h (tui_update_source_window)
5824 (tui_update_source_window_as_is): Change parameter type.
5825 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5826 to be a tui_source_window_base.
5827 (tui_update_source_window_as_is): Likewise.
5828 * tui/tui-win.c (make_visible_with_new_height): Update.
5829
5830 2019-06-25 Tom Tromey <tom@tromey.com>
5831
5832 * tui/tui-winsource.c (tui_erase_source_content)
5833 (tui_show_source_content, tui_show_exec_info_content)
5834 (tui_erase_exec_info_content): Use refresh_window method.
5835 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5836 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5837 from tui_refresh_win.
5838 (tui_data_window::refresh_window): New method.
5839 (tui_win_info::refresh, tui_source_window_base::refresh)
5840 (tui_refresh_all): Use refresh_window method.
5841 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5842 method.
5843 * tui/tui-regs.c (tui_display_register): Call refresh_window
5844 method.
5845 * tui/tui-layout.c (show_source_disasm_command)
5846 (show_source_or_disasm_and_command): Call refresh_window method.
5847 * tui/tui-data.h (struct tui_gen_win_info)
5848 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5849 New method.
5850
5851 2019-06-25 Tom Tromey <tom@tromey.com>
5852
5853 * tui/tui.c (tui_rl_other_window, tui_enable)
5854 (tui_is_window_visible, tui_get_command_dimension): Update.
5855 * tui/tui-winsource.c (tui_update_source_window_as_is)
5856 (tui_clear_source_content, tui_erase_source_content)
5857 (tui_show_source_line, tui_source_window_base::refill)
5858 (tui_source_window_base::do_scroll_horizontal)
5859 (tui_source_window_base::set_is_exec_point_at)
5860 (tui_update_breakpoint_info, tui_set_exec_info_content)
5861 (tui_alloc_source_buffer, tui_line_is_displayed)
5862 (tui_addr_is_displayed): Update.
5863 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5864 (tui_check_and_display_highlight_if_needed)
5865 (tui_win_info::make_visible, tui_win_info::refresh)
5866 (tui_refresh_all): Update.
5867 * tui/tui-windata.c (tui_first_data_item_displayed)
5868 (tui_delete_data_content_windows, tui_erase_data_content)
5869 (tui_display_all_data, tui_data_window::refresh_all)
5870 (tui_check_data_values): Update.
5871 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5872 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5873 (tui_win_info::backward_scroll, tui_refresh_all_win)
5874 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5875 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5876 (tui_source_window_base::set_new_height)
5877 (tui_data_window::set_new_height)
5878 (make_invisible_and_set_new_height)
5879 (make_visible_with_new_height, new_height_ok)
5880 (parse_scrolling_args): Update.
5881 * tui/tui-stack.c (tui_show_frame_info): Update.
5882 * tui/tui-source.c (tui_set_source_content)
5883 (tui_set_source_content_nil, tui_source_is_displayed)
5884 (tui_source_window::do_scroll_vertical): Update.
5885 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5886 (tui_display_registers_from, tui_display_reg_element_at_line)
5887 (tui_check_register_values, tui_reg_command): Update.
5888 * tui/tui-layout.c (tui_default_win_height)
5889 (show_source_disasm_command, show_data, init_and_make_win)
5890 (show_source_or_disasm_and_command): Update.
5891 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5892 (tui_redisplay_readline, tui_mld_flush)
5893 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5894 (tui_getc): Update.
5895 * tui/tui-disasm.c (tui_set_disassem_content)
5896 (tui_disasm_window::do_scroll_vertical): Update.
5897 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5898 Now virtual.
5899 (struct tui_win_info): Derive from tui_gen_win_info.
5900 <~tui_win_info>: Mark as override.
5901 <generic>: Remove member.
5902 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5903 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5904 (~tui_data_window, ~tui_win_info)
5905 (tui_free_all_source_wins_content): Update.
5906 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5907
5908 2019-06-25 Tom Tromey <tom@tromey.com>
5909
5910 * tui/tui-layout.c (init_and_make_win): Use new.
5911 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5912 destructor, initializers.
5913 (tui_alloc_generic_win_info): Don't declare.
5914 * tui/tui-data.c (_locator): Add argument to constructor.
5915 (source_win, disasm_win): New globals.
5916 (exec_info): Remove.
5917 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5918 Update.
5919 (tui_alloc_generic_win_info): Remove.
5920 (init_content_element): Use new.
5921 (tui_win_info::tui_win_info): Update.
5922 (free_content_elements) <case DATA_WIN>: Use delete.
5923
5924 2019-06-25 Tom Tromey <tom@tromey.com>
5925
5926 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5927 * tui/tui-windata.c (tui_first_data_item_displayed)
5928 (tui_delete_data_content_windows): Update.
5929 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5930 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5931 (tui_display_registers_from, tui_check_register_values): Update.
5932 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5933 pointer.
5934 * tui/tui-data.c (init_content_element): Update. Allocate the new
5935 window.
5936 (tui_free_data_content): Update.
5937 (free_content_elements) <case DATA_WIN>: Free the window.
5938
5939 2019-06-25 Tom Tromey <tom@tromey.com>
5940
5941 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5942 Update.
5943 * tui/tui-layout.c (make_command_window)
5944 (show_source_disasm_command, show_data, init_and_make_win)
5945 (show_source_or_disasm_and_command): Update.
5946 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5947 method.
5948 <can_highight, is_highlighted>: Now bool.
5949 (tui_set_win_highlight): Don't declare.
5950 * tui/tui-data.c (tui_set_win_highlight): Remove.
5951
5952 2019-06-25 Tom Tromey <tom@tromey.com>
5953
5954 * tui/tui-wingeneral.c (make_visible): Remove check of window
5955 type.
5956
5957 2019-06-25 Tom Tromey <tom@tromey.com>
5958
5959 * tui/tui-win.c (tui_win_info::max_height)
5960 (tui_cmd_window::max_height): New methods.
5961 (new_height_ok): Call max_height.
5962 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5963 <max_height>: New method.
5964
5965 2019-06-25 Tom Tromey <tom@tromey.com>
5966
5967 * tui/tui-win.c (tui_source_window_base::set_new_height)
5968 (tui_data_window::set_new_height): New methods.
5969 (make_invisible_and_set_new_height): Call set_new_height method.
5970 * tui/tui-data.h (struct tui_win_info)
5971 (struct tui_source_window_base, struct tui_data_window)
5972 <set_new_height>: New method.
5973
5974 2019-06-25 Tom Tromey <tom@tromey.com>
5975
5976 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5977 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5978 tui_refresh_data_win.
5979 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5980 method.
5981 (tui_refresh_all_win): Call the refresh_all method.
5982 (tui_set_focus): Likewise.
5983 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5984 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5985 Likewise.
5986
5987 2019-06-25 Tom Tromey <tom@tromey.com>
5988
5989 * tui/tui-winsource.h (tui_refill_source_window)
5990 (tui_set_is_exec_point_at): Don't declare.
5991 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5992 (tui_source_window_base::refill): Rename from
5993 tui_refill_source_window.
5994 (tui_source_window_base::do_scroll_horizontal): Update.
5995 (tui_source_window_base::set_is_exec_point_at): Rename from
5996 tui_set_is_exec_point_at.
5997 (tui_update_all_breakpoint_info): Update.
5998 * tui/tui-stack.c (tui_show_frame_info): Update.
5999 * tui/tui-layout.c (show_data): Add cast.
6000 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6001 * tui/tui-data.h (struct tui_source_window_base) <refill,
6002 set_is_exec_point_at>: New methods.
6003 (tui_source_windows, tui_add_to_source_windows): Update types.
6004 (tui_add_to_source_windows): Remove redundant declaration.
6005 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6006 (tui_source_windows): Change return type.
6007 (tui_clear_source_windows_detail): Update.
6008 (tui_add_to_source_windows): Change type of parameter.
6009 (tui_free_all_source_wins_content): Update.
6010
6011 2019-06-25 Tom Tromey <tom@tromey.com>
6012
6013 * tui/tui-wingeneral.c (tui_win_info::refresh)
6014 (tui_source_window_base::refresh): New methods.
6015 (tui_refresh_all): Call the refresh method.
6016 * tui/tui-data.h (struct tui_win_info)
6017 (struct tui_source_window_base) <refresh>: New method.
6018
6019 2019-06-25 Tom Tromey <tom@tromey.com>
6020
6021 * tui/tui.h (tui_is_window_visible): Return bool.
6022 * tui/tui.c (tui_is_window_visible): Return bool.
6023 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6024 (tui_make_visible, tui_make_invisible)
6025 (tui_win_info::make_visible)
6026 (tui_source_window_base::make_visible, make_all_visible)
6027 (tui_make_all_visible, tui_make_all_invisible): Update.
6028 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6029 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6030 bool.
6031 (struct tui_win_info, struct tui_source_window_base)
6032 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6033 * tui/tui-data.c (tui_init_generic_part): Update.
6034
6035 2019-06-25 Tom Tromey <tom@tromey.com>
6036
6037 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6038 (tui_source_window_base::make_visible): New methods.
6039 (make_all_visible): Make method call.
6040 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6041 (struct tui_source_window_base, struct tui_cmd_window): Override
6042 make_visible.
6043 (tui_win_is_source_type): Don't declare.
6044 * tui/tui-data.c (tui_win_is_source_type): Remove.
6045
6046 2019-06-25 Tom Tromey <tom@tromey.com>
6047
6048 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6049 NULL check.
6050
6051 2019-06-25 Tom Tromey <tom@tromey.com>
6052
6053 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6054 Inline constructor. Add initializers for members.
6055 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6056 constructors; now inline in class.
6057
6058 2019-06-25 Tom Tromey <tom@tromey.com>
6059
6060 * tui/tui-regs.c (tui_show_registers): Update.
6061 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6062 bool.
6063 * tui/tui-data.c (tui_data_window::clear_detail)
6064 (tui_data_window): Update.
6065
6066 2019-06-25 Tom Tromey <tom@tromey.com>
6067
6068 * tui/tui-windata.c (tui_display_all_data)
6069 (tui_display_data_from_line, tui_display_data_from)
6070 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6071 Update.
6072 * tui/tui-regs.c (tui_last_regs_line_no)
6073 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6074 (tui_show_registers, tui_show_register_group)
6075 (tui_display_registers_from, tui_display_reg_element_at_line)
6076 (tui_display_registers_from_line, tui_check_register_values)
6077 (tui_reg_next, tui_reg_prev): Update.
6078 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6079 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6080 tui_data_window.
6081 (struct tui_win_info) <detail>: Remove. Add new fields from
6082 tui_data_info.
6083 (TUI_DATA_WIN): Add cast.
6084 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6085 (~tui_data_window): Simplify.
6086
6087 2019-06-25 Tom Tromey <tom@tromey.com>
6088
6089 * tui/tui-layout.c (show_source_disasm_command)
6090 (show_source_or_disasm_and_command): Update.
6091 * tui/tui-io.c (update_cmdwin_start_line)
6092 (tui_redisplay_readline): Update.
6093 * tui/tui-data.h (struct tui_command_info): Remove.
6094 (struct tui_win_info) <detail>: Remove command_info member.
6095 (struct tui_data_window) <start_line>: New member, from
6096 tui_command_info.
6097 (TUI_CMD_WIN): Add casts.
6098
6099 2019-06-25 Tom Tromey <tom@tromey.com>
6100
6101 * tui/tui-winsource.c (tui_update_source_window)
6102 (tui_refill_source_window)
6103 (tui_source_window_base::do_scroll_horizontal)
6104 (tui_update_breakpoint_info, tui_set_exec_info_content)
6105 (tui_show_exec_info_content, tui_erase_exec_info_content)
6106 (tui_clear_exec_info_content): Update.
6107 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6108 Update.
6109 * tui/tui-win.c (make_invisible_and_set_new_height)
6110 (make_visible_with_new_height): Update.
6111 * tui/tui-source.c (tui_set_source_content)
6112 (tui_show_symtab_source): Update.
6113 * tui/tui-layout.c (extract_display_start_addr)
6114 (show_source_disasm_command, show_data)
6115 (make_source_or_disasm_window)
6116 (show_source_or_disasm_and_command): Update.
6117 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6118 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6119 "gdbarch".
6120 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6121 to tui_source_window_base.
6122 (struct tui_win_info) <detail>: Remove source_info member.
6123 (struct tui_source_window_base) <has_locator>: Inline.
6124 Move contents from tui_source_info; rename has_locator member to
6125 m_has_locator.
6126 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6127 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6128 header file.
6129 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6130 Simplify.
6131 (tui_free_all_source_wins_content): Cast to
6132 tui_source_window_base.
6133
6134 2019-06-25 Tom Tromey <tom@tromey.com>
6135
6136 * tui/tui-win.c (make_invisible_and_set_new_height)
6137 (make_visible_with_new_height): Call has_locator method.
6138 * tui/tui-layout.c (show_source_disasm_command, show_data)
6139 (show_source_or_disasm_and_command): Update for bool change.
6140 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6141 (tui_win_info) <has_locator>: New method.
6142 (struct tui_source_window_base) <has_locator>: New method.
6143 (tui_win_has_locator): Don't declare.
6144 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6145 from tui_win_has_locator.
6146 (tui_source_window_base): Use false, not FALSE.
6147
6148 2019-06-25 Tom Tromey <tom@tromey.com>
6149
6150 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6151 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6152 clear_detail method directly.
6153 (tui_clear_win_detail): Remove.
6154
6155 2019-06-25 Tom Tromey <tom@tromey.com>
6156
6157 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6158 "this", not TUI_DISASM_WIN.
6159
6160 2019-06-25 Tom Tromey <tom@tromey.com>
6161
6162 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6163 declare.
6164 * tui/tui-winsource.c
6165 (tui_source_window_base::do_scroll_horizontal): Rename from
6166 tui_horizontal_source_scroll.
6167 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6168 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6169 from tui_vertical_data_scroll.
6170 * tui/tui-win.h (tui_scroll): Don't declare.
6171 * tui/tui-win.c (tui_win_info::forward_scroll)
6172 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6173 (tui_win_info::right_scroll): Rename and update.
6174 (tui_scroll_forward_command, tui_scroll_backward_command)
6175 (tui_scroll_left_command, tui_scroll_right_command): Update.
6176 (tui_scroll): Remove.
6177 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6178 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6179 from tui_vertical_source_scroll.
6180 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6181 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6182 from tui_vertical_disassem_scroll.
6183 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6184 do_scroll_horizontal>: New methods.
6185 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6186 Likewise.
6187 (struct tui_source_window_base): Add do_scroll_horizontal.
6188 (struct tui_source_window, struct tui_disasm_window): Add
6189 do_scroll_vertical.
6190 (struct tui_data_window, struct tui_cmd_window): Add
6191 do_scroll_horizontal and do_scroll_vertical.
6192 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6193
6194 2019-06-25 Tom Tromey <tom@tromey.com>
6195
6196 * tui/tui-data.h (struct tui_source_window_base): New struct.
6197 (struct tui_source_window): Derive from tui_source_window_base.
6198 (struct tui_disasm_window): New struct.
6199 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6200 from tui_source_window::clear_detail.
6201 (tui_source_window_base): Rename from tui_source_window.
6202 (~tui_source_window_base): Rename from ~tui_source_window.
6203 (tui_alloc_win_info): Create a tui_disasm_window.
6204
6205 2019-06-25 Tom Tromey <tom@tromey.com>
6206
6207 * tui/tui-data.h (struct tui_source_window)
6208 (struct tui_data_window): Declare destructors.
6209 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6210 destructors.
6211 (tui_win_info): Simplify.
6212
6213 2019-06-25 Tom Tromey <tom@tromey.com>
6214
6215 * tui/tui-winsource.c (tui_display_main)
6216 (tui_update_source_windows_with_addr)
6217 (tui_update_all_breakpoint_info): Update.
6218 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6219 (new_height_ok, parse_scrolling_args): Update.
6220 * tui/tui-stack.c (tui_show_frame_info): Update.
6221 * tui/tui-data.h (struct tui_list): Remove.
6222 (tui_source_windows): Return a reference to a std::vector.
6223 * tui/tui-data.c (source_windows): Now a std::vector.
6224 (tui_source_windows): Change return type.
6225 (tui_clear_source_windows): Rewrite.
6226 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6227 (tui_free_all_source_wins_content): Rewrite.
6228
6229 2019-06-25 Tom Tromey <tom@tromey.com>
6230
6231 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6232 (struct tui_data_window, struct tui_cmd_window): Declare
6233 clear_detail method.
6234 * tui/tui-data.c (tui_source_window::clear_detail)
6235 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6236 methods.
6237 (tui_clear_win_detail): Simplify.
6238
6239 2019-06-25 Tom Tromey <tom@tromey.com>
6240
6241 * tui/tui-layout.c (make_source_window, make_disasm_window)
6242 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6243 Return the new window.
6244 (show_source_disasm_command, show_data)
6245 (show_source_or_disasm_and_command): Update.
6246
6247 2019-06-25 Tom Tromey <tom@tromey.com>
6248
6249 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6250 parameter. Return the new window.
6251 (show_source_disasm_command): Update and remove NULL check.
6252 (show_source_or_disasm_and_command): Update.
6253
6254 2019-06-25 Tom Tromey <tom@tromey.com>
6255
6256 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6257
6258 2019-06-25 Tom Tromey <tom@tromey.com>
6259
6260 * tui/tui-data.h (struct tui_win_info): Make constructor
6261 protected. Make destructor virtual. Add initializers.
6262 (tui_source_window, tui_data_window, tui_cmd_window): New
6263 classes.
6264 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6265 constructor. Add "type" parameter.
6266 (tui_source_window, tui_data_window, tui_cmd_window): New
6267 constructors.
6268 (tui_alloc_win_info): Instantiate the appropriate subclass.
6269
6270 2019-06-25 Tom Tromey <tom@tromey.com>
6271
6272 * tui/tui-win.c (tui_resize_all): Use delete.
6273 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6274 destructor.
6275 (tui_free_window): Don't declare.
6276 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6277 Update.
6278
6279 2019-06-25 Tom Tromey <tom@tromey.com>
6280
6281 * tui/tui-data.h (struct tui_win_info): Add constructor.
6282 * tui/tui-data.c (tui_alloc_win_info): Use new.
6283 (tui_free_window): Use delete.
6284
6285 2019-06-22 Tom Tromey <tom@tromey.com>
6286
6287 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6288 declare.
6289 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6290
6291 2019-06-22 Tom Tromey <tom@tromey.com>
6292
6293 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6294 declare.
6295 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6296
6297 2019-06-22 Tom de Vries <tdevries@suse.de>
6298
6299 * dwarf2read.c (create_addrmap_from_aranges)
6300 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6301 instead of '%zu'.
6302
6303 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6304
6305 * dwarf2read.h (dwarf2_section_info_def): Remove.
6306 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6307 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6308 std::vector<dwarf2_section_info>.
6309 (struct dwo_file) <~dwo_file>: Remove.
6310 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6311 types field.
6312 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6313 (dwarf2_read_debug_names): Likewise.
6314 (create_debug_types_hash_table): Change parameter type to
6315 array_view, adjust code accordingly.
6316 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6317 (partial_die_info::fixup): Likewise.
6318 (determine_prefix): Likewise.
6319 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6320
6321 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6322
6323 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6324 gdb_bfd_ref_ptr.
6325 <~dwo_file>: Remove call to gdb_bfd_unref.
6326 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6327 gdb_bfd_ref_ptr::get.
6328
6329 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6330
6331 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6332 type to htab_up.
6333 * dwarf2read.c (struct dwo_file): Initialize fields.
6334 <~dwo_file>: New.
6335 (free_dwo_file): Remove, move content to ~dwo_file.
6336 (struct dwo_file_deleter): Remove.
6337 (dwo_file_up>: Remove custom deleter.
6338 (free_dwo_files): Remove.
6339 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6340 dwo_files.
6341 (process_skeletonless_type_units): Call unique_ptr::get.
6342 (allocate_dwo_file_hash_table): Add deleter to created hash
6343 table. Change return type to htab_up.
6344 (lookup_dwo_file_slot): Don't memset dwo_file, call
6345 unique_ptr::get.
6346 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6347 (create_dwo_unit_in_dwp_v2): Likewise.
6348 (open_and_init_dwo_file): Likewise.
6349 (free_dwo_file_from_slot): Remove.
6350
6351 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6352
6353 * dwarf2read.h (struct dwarf2_section_info) <readin,
6354 is_virtual>: Change type to bool.
6355 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6356 true instead of 1.
6357
6358 2019-06-19 Tom Tromey <tom@tromey.com>
6359
6360 * tui/tui-data.h (tui_init_content_element): Don't declare.
6361
6362 2019-06-19 Tom Tromey <tom@tromey.com>
6363
6364 * tui/tui-data.h (tui_init_win_info): Don't declare.
6365
6366 2019-06-19 Tom de Vries <tdevries@suse.de>
6367
6368 * dwarf2read.h (abstract_to_concrete): Change type to
6369 std::unordered_map<sect_offset, std::vector<sect_offset>,
6370 gdb::hash_enum<sect_offset>>.
6371
6372 2019-06-19 Tom Tromey <tromey@adacore.com>
6373
6374 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6375 EVAL_AVOID_SIDE_EFFECTS specially.
6376
6377 2019-06-19 Tom Tromey <tromey@adacore.com>
6378
6379 * source-cache.c (highlighter): New global.
6380 (source_cache::get_source_lines): Create a highlighter on demand.
6381
6382 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6383
6384 * defs.h (deprecated_interactive_hook): Delete declaration.
6385 * interps.c (clear_interpreter_hooks): Remove use of
6386 deprecated_interactive_hook.
6387 * top.c (deprecated_interactive_hook): Delete definition.
6388 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6389
6390 2019-06-18 Tom de Vries <tdevries@suse.de>
6391
6392 PR gdb/24515
6393 * dwarf2read.h (abstract_to_concrete): Change type from
6394 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6395 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6396 * dwarf2read.c (read_variable): Update.
6397 (dwarf2_fetch_die_loc_sect_off): Update.
6398
6399 2019-06-17 Tom de Vries <tdevries@suse.de>
6400
6401 PR gdb/24617
6402 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6403 accessing parent[parent_len - 1].
6404
6405 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6406
6407 PR gdb/24364
6408 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6409 call dtrace_process_dof with NULL dof.
6410
6411 2019-06-16 Tom de Vries <tdevries@suse.de>
6412
6413 PR gdb/24445
6414 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6415
6416 2019-06-16 Tom Tromey <tom@tromey.com>
6417
6418 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6419 (make_all_visible): Use address of member.
6420
6421 2019-06-16 Tom Tromey <tom@tromey.com>
6422
6423 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6424 (tui_free_window, free_content, free_content_elements): Remove
6425 unnecessary cast.
6426 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6427 cast.
6428 * tui/tui-regs.c (tui_show_register_group)
6429 (tui_display_registers_from, tui_display_reg_element_at_line):
6430 Remove unnecessary cast.
6431
6432 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6433
6434 * linux-nat.c (normal_mask): Delete.
6435 (_initialize_linux_nat): Don't initialise normal_mask.
6436
6437 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6438
6439 PR gdb/24445
6440 * dwarf-index-write.h (write_psymtabs_to_index): Add
6441 dwz_basename parameter.
6442 * dwarf-index-write.c (write_gdbindex): Move file writing to
6443 write_gdbindex_1. Change return type void.
6444 (assert_file_size): Move up, remove filename parameter.
6445 (write_gdbindex_1): New function.
6446 (write_debug_names): Change return type to void, call
6447 assert_file_size.
6448 (struct index_wip_file): New struct.
6449 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6450 file logic to index_wip_file. Write index for dwz file if
6451 needed.
6452 (save_gdb_index_command): Pass basename of dwz file, if present.
6453 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6454 build-id of dwz file, if present.
6455 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6456 (dwarf2_get_dwz_file): Likewise.
6457 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6458 (dwarf2_get_dwz_file): Likewise.
6459
6460 2019-06-16 Tom Tromey <tom@tromey.com>
6461
6462 * coffread.c (process_coff_symbol): Use xstrdup.
6463 * value.c (create_internalvar): Use xstrdup.
6464
6465 2019-06-16 Tom Tromey <tom@tromey.com>
6466
6467 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6468 * breakpoint.c (stopin_command, stopat_command)
6469 (until_break_command, decode_location_default): Remove unnecessary
6470 cast.
6471 * utils.c (subset_compare): Remove unnecessary cast.
6472 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6473 cast.
6474 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6475 cast.
6476 * infcmd.c (path_command): Remove unnecessary cast.
6477 * coffread.c (decode_type): Remove unnecessary cast.
6478 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6479 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6480 * tui/tui-stack.c (tui_show_locator_content)
6481 (tui_show_frame_info): Remove unnecessary cast.
6482 * tui/tui-win.c (tui_scroll_forward_command)
6483 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6484 (parse_scrolling_args): Remove unnecessary cast.
6485 * tui/tui-data.c (init_win_info, tui_del_window)
6486 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6487 (free_content_elements): Remove unnecessary cast.
6488 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6489 unnecessary cast.
6490 * tui/tui-source.c (tui_set_source_content)
6491 (tui_vertical_source_scroll): Remove unnecessary cast.
6492 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6493 cast.
6494 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6495 * tui/tui-regs.c (tui_display_registers_from)
6496 (tui_display_register): Remove unnecessary cast.
6497 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6498 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6499 (make_visible): Remove unnecessary cast.
6500 * tui/tui-winsource.c (tui_erase_source_content)
6501 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6502 unnecessary cast.
6503 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6504 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6505 * stabsread.c (read_type, read_array_type, read_range_type):
6506 Remove unnecessary cast.
6507 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6508 (parse_symbol, parse_type, upgrade_type, parse_external)
6509 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6510 unnecessary cast.
6511 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6512
6513 2019-06-16 Tom Tromey <tom@tromey.com>
6514
6515 * tui/tui-data.c (tui_alloc_generic_win_info)
6516 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6517 checks.
6518
6519 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6520 Andrew Burgess <andrew.burgess@embecosm.com>
6521
6522 * f-typeprint.c (f_print_type): Don't return early for not
6523 associated or not allocated types.
6524 (f_type_print_varspec_suffix): Add print_rank parameter and print
6525 ranks of array types in case they dangling.
6526 (f_type_print_base): Add print_rank parameter.
6527
6528 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6529
6530 * NEWS: Mention new MI commands.
6531 * break-catch-throw.c (enum exception_event_kind): Move to
6532 breakpoint.h.
6533 (print_mention_exception_catchpoint): Output text as a single
6534 message.
6535 (catch_exception_command_1): Rename to...
6536 (catch_exception_event): ...this, make non-static, update header
6537 command, and change some parameter types.
6538 (catch_catch_command): Update for changes to
6539 catch_exception_command_1.
6540 (catch_throw_command): Likewise.
6541 (catch_rethrow_command): Likewise.
6542 * breakpoint.c (enum exception_event_kind): Delete.
6543 * breakpoint.h (enum exception_event_kind): Moved here from
6544 break-catch-throw.c.
6545 (catch_exception_event): Declare.
6546 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6547 (mi_cmd_catch_throw): New function.
6548 (mi_cmd_catch_rethrow): New function.
6549 (mi_cmd_catch_catch): New function.
6550 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6551 'catch-catch' entries.
6552 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6553 (mi_cmd_catch_rethrow): Declare.
6554 (mi_cmd_catch_catch): Declare.
6555
6556 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6557
6558 * annotate.c (annotate_source_line): Change return type to void,
6559 update implementation to match.
6560 * annotate.h (annotate_source_line): Change return type to void,
6561 update header comment.
6562 * stack.c (print_frame_info): Don't change what frame information
6563 is printed based on whether annotations are on or not.
6564
6565 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6566
6567 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6568 (annotate_source): Make static.
6569 (annotate_source_line): Moved from source.c and renamed from
6570 identify_source_line. Update the return type.
6571 * annotate.h (annotate_source): Delete declaration.
6572 (annotate_source_line): Declaration moved from source.h, and
6573 renamed from identify_source_line. Return type updated.
6574 * source.c (identify_source_line): Moved to annotate.c and renamed
6575 to annotate_source_line.
6576 (info_line_command): Remove check of annotation_level.
6577 * source.h (identify_source_line): Move declaration to annotate.h
6578 and rename to annotate_source_line.
6579 * stack.c: Add 'annotate.h' include.
6580 (print_frame_info): Remove check of annotation_level before
6581 calling annotate_source_line.
6582
6583 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6584
6585 * source-cache.c (source_cache::get_plain_source_lines): Use
6586 open_source_file_with_line_charpos instead of just
6587 open_source_file, remove call to find_source_lines.
6588 (source_cache::get_source_lines): Likewise.
6589 * source.c (find_source_lines): Make static.
6590 (get_filename_and_charpos): Renamed into...
6591 (open_source_file_with_line_charpos): ..this along with changes to
6592 return a scoped_fd, and some other minor clean ups.
6593 (identify_source_line): Use open_source_file_with_line_charpos.
6594 (search_command_helper): Use open_source_file_with_line_charpos
6595 instead of just open_source_file, remove call to
6596 find_source_lines.
6597 * source.h (open_source_file_with_line_charpos): Declare new
6598 function.
6599 (find_source_lines): Delete declaration.
6600
6601 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6602
6603 * source.c (get_filename_and_charpos): Remove fullname
6604 parameter.
6605 (identify_source_line): Update call to get_filename_and_charpos.
6606
6607 2019-06-14 Tom Tromey <tromey@adacore.com>
6608
6609 PR gdb/24502:
6610 * ui-style.h (skip_ansi_escape): Update comment.
6611 * ui-file.h (class no_terminal_escape_file): New class.
6612 * ui-file.c (no_terminal_escape_file::write)
6613 (no_terminal_escape_file::puts): New methods.
6614 * cli/cli-logging.c (handle_redirections): Use
6615 no_terminal_escape_file.
6616
6617 2019-06-14 Tom Tromey <tromey@adacore.com>
6618
6619 * NEWS: Move convenience variable news above Python news.
6620
6621 2019-06-14 Tom Tromey <tom@tromey.com>
6622
6623 * gnulib: Move directory to top-level.
6624 * configure.ac: Don't configure gnulib.
6625 * configure: Rebuild.
6626 * common/common-defs.h: Use new path to gnulib.
6627 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6628 (GNULIB_H): Remove.
6629 (INCGNU): Look in new gnulib location.
6630 (HFILES_NO_SRCDIR): Remove gnulib files.
6631 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6632 (generated_files): Remove GNULIB_H.
6633 ($(LIBGNU), all-lib): Remove targets.
6634 (distclean): Don't mention GNULIB_BUILDDIR.
6635 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6636
6637 2019-06-14 Tom Tromey <tromey@adacore.com>
6638
6639 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6640 Warn if symbol file does not provide any symbols.
6641
6642 2019-06-14 Tom Tromey <tromey@adacore.com>
6643
6644 * source.c (find_and_open_source): Respect basenames_may_differ.
6645
6646 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6647
6648 * annotate.c (annotate_breakpoints_invalid): Make use of
6649 scoped_restore_terminal_state.
6650 (annotate_frames_invalid): Likewise.
6651
6652 2019-06-14 Tom Tromey <tromey@adacore.com>
6653
6654 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6655 allow assignment to an internalvar.
6656
6657 2019-06-14 Tom Tromey <tromey@adacore.com>
6658
6659 * ada-lex.l: Allow "_" in attribute names.
6660
6661 2019-06-14 Tom Tromey <tromey@adacore.com>
6662
6663 PR gdb/24653:
6664 * regcache.c (registers_changed): Don't call alloca.
6665 * top.c (execute_command): Don't call alloca.
6666
6667 2019-06-13 Pedro Alves <palves@redhat.com>
6668
6669 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6670 'expression'. When parsing an expression, error out if there's
6671 junk after "unlimited".
6672 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6673 (do_set_command): Adjust calls to is_unlimited_literal.
6674
6675 2019-06-13 Pedro Alves <palves@redhat.com>
6676
6677 * compile/compile.c (make_compile_options_def_group): Add braces
6678 around array_view initializer.
6679 * thread.c (make_thread_apply_all_options_def_group)
6680 (make_thread_apply_all_options_def_group): Likewise.
6681
6682 2019-06-13 Pedro Alves <palves@redhat.com>
6683
6684 * NEWS (New commands): Mention "maint test-options
6685 require-delimiter", "maint test-options unknown-is-error", "maint
6686 test-options unknown-is-operand" and "maint show
6687 test-options-completion-result".
6688 (New command options, command completion): New section.
6689 (Completion improvements): New section.
6690 Mention that you can abbreviate "unlimited".
6691
6692 2019-06-13 Pedro Alves <palves@redhat.com>
6693
6694 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6695 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6696 * unittests/cli-utils-selftests.c (test_parse_flags)
6697 (test_parse_flags_qcs): Delete.
6698 (test_cli_utils): Don't call deleted functions.
6699
6700 2019-06-13 Pedro Alves <palves@redhat.com>
6701
6702 * thread.c: Include "cli/cli-option.h".
6703 (tp_array_compar_ascending): Global.
6704 (tp_array_compar): Delete function.
6705 (tp_array_compar_ascending, tp_array_compar_descending): New
6706 functions.
6707 (ascending_option_def, qcs_flag_option_def)
6708 (thr_qcs_flags_option_defs)
6709 (make_thread_apply_all_options_def_group)
6710 (make_thread_apply_options_def_group): New.
6711 (thread_apply_all_command): Use gdb::option::process_options.
6712 (thread_apply_command_completer)
6713 (thread_apply_all_command_completer): New.
6714 (thread_apply_command): Use gdb::option::process_options.
6715 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6716 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6717 to generate help text of "thread apply". Adjust "taas"'s help.
6718 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6719 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6720
6721 2019-06-13 Pedro Alves <palves@redhat.com>
6722
6723 * thread.c (thread_apply_command): Check for invalid TID with
6724 isdigit instead of !isalpha.
6725
6726 2019-06-13 Pedro Alves <palves@redhat.com>
6727
6728 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6729 (validate_flags_qcs): New.
6730 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6731 (validate_flags_qcs): Declare.
6732 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6733 (make_frame_apply_options_def_group): New.
6734 (frame_apply_command_count): Process options with
6735 gdb::option::process_options.
6736 (frame_apply_completer): New.
6737 (frame_apply_level_completer, frame_apply_all_completer)
6738 (frame_apply_completer): New.
6739 (_initialize_stack): Update help of "frame apply", "frame apply
6740 level", "frame apply all" and "faas" to mention supported options
6741 and install command completers.
6742 * stack.h (frame_apply_all_completer): Declare.
6743 * thread.c: Include "stack.h".
6744 (tfaas_command): Add "--".
6745 (_initialize_thread): Update help "tfaas" to mention supported
6746 options and install command completer.
6747
6748 2019-06-13 Pedro Alves <palves@redhat.com>
6749
6750 * completer.c (complete_nested_command_line): New.
6751 (gdb_completion_word_break_characters_throw): Add assertion.
6752 * completer.h (complete_nested_command_line): Declare.
6753
6754 2019-06-13 Pedro Alves <palves@redhat.com>
6755
6756 * stack.c (parse_backtrace_qualifiers): New.
6757 (backtrace_command): Use it.
6758 (backtrace_command_completer): Complete on qualifiers.
6759
6760 2019-06-13 Pedro Alves <palves@redhat.com>
6761
6762 * frame.c: Include "cli/cli-option.h.
6763 (user_set_backtrace_options): New.
6764 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6765 Delete.
6766 (get_prev_frame): Adjust.
6767 (boolean_option_def, uinteger_option_def)
6768 (set_backtrace_option_defs): New.
6769 (_initialize_frame): Adjust and use
6770 gdb::option::add_setshow_cmds_for_options to install "set
6771 backtrace past-main" and "set backtrace past-entry".
6772 * frame.h: Include "cli/cli-option.h".
6773 (struct frame_print_options): Forward declare.
6774 (print_frame_arguments_all, print_frame_arguments_scalars)
6775 (print_frame_arguments_none): Declare.
6776 (print_entry_values): Delete declaration.
6777 (struct frame_print_options, user_frame_print_options): New.
6778 (struct set_backtrace_options): New.
6779 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6780 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6781 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6782 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6783 (list_args_or_locals): Add frame_print_options parameter.
6784 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6785 * python/py-framefilter.c (enumerate_args): Pass down
6786 USER_FRAME_PRINT_OPTIONS.
6787 * stack.c: Include "cli/cli-option.h".
6788 (print_frame_arguments_all, print_frame_arguments_scalars)
6789 (print_frame_arguments_none): Declare.
6790 (print_raw_frame_arguments, print_entry_values): Delete.
6791 (user_frame_print_options): New.
6792 (boolean_option_def, enum_option_def, frame_print_option_defs):
6793 New.
6794 (struct backtrace_cmd_options): New.
6795 (bt_flag_option_def): New.
6796 (backtrace_command_option_defs): New.
6797 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6798 (print_frame_arg, read_frame_arg, print_frame_args)
6799 (print_frame_info, print_frame): Add frame_print_options parameter
6800 and use it.
6801 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6802 (backtrace_command_1): Add frame_print_options and
6803 backtrace_cmd_options parameters and use them.
6804 (make_backtrace_options_def_group): New.
6805 (backtrace_command): Process command options with
6806 gdb::option::process_options.
6807 (backtrace_command_completer): New.
6808 (_initialize_stack): Extend "backtrace"'s help to mention
6809 supported options. Install completer for "backtrace".
6810 Install some settings commands with add_setshow_cmds_for_options.
6811
6812 2019-06-13 Pedro Alves <palves@redhat.com>
6813
6814 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6815 and that "set/show print raw frame-arguments" are now deprecated.
6816
6817 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6818 command.
6819 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6820 * stack.c (_initialize_stack): Install "set/show print
6821 raw-frame-arguments", and deprecate "set/show print raw
6822 frame-arguments".
6823 * valprint.c (_initialize_valprint): Deprecate "set/show print
6824 raw".
6825
6826 2019-06-13 Pedro Alves <palves@redhat.com>
6827
6828 * compile/compile.c (struct compile_options): New.
6829 (compile_flag_option_def, compile_command_option_defs)
6830 (make_compile_options_def_group): New.
6831 (compile_file_command): Handle options with
6832 gdb::option::process_options.
6833 (compile_file_command_completer): New function.
6834 (compile_code_command): Handle options with
6835 gdb::option::process_options.
6836 (compile_code_command_completer): New function.
6837 (_initialize_compiler): Install completers for "compile code" and
6838 "compile file". Mention available options in "compile code" and
6839 "compile code"'s help.
6840 * completer.c (advance_to_completion_word): New, factored out from
6841 ...
6842 (advance_to_expression_complete_word_point): ... this.
6843 (advance_to_filename_complete_word_point): New.
6844 * completer.h (advance_to_filename_complete_word_point): New
6845 declaration.
6846
6847 2019-06-13 Pedro Alves <palves@redhat.com>
6848
6849 * compile/compile.c: Include "cli/cli-option.h".
6850 (compile_print_value): Scope data pointer is now a
6851 value_print_options pointer; adjust.
6852 (compile_print_command): Process options. Scope data pointer is
6853 now a value_print_options pointer; adjust.
6854 (_initialize_compile): Update "compile print"'s help to include
6855 supported options. Install a completer for "compile print".
6856 * cp-valprint.c (show_vtblprint, show_objectprint)
6857 (show_static_field_print): Delete.
6858 (_initialize_cp_valprint): Don't install "set print
6859 static-members", "set print vtbl", "set print object" here.
6860 * printcmd.c: Include "cli/cli-option.h" and
6861 "common/gdb_optional.h".
6862 (print_command_parse_format): Rework to fill in a
6863 value_print_options instead of a format_data.
6864 (print_value): Change parameter type from format_data pointer to
6865 value_print_options reference. Adjust.
6866 (print_command_1): Process options. Adjust to pass down a
6867 value_print_options.
6868 (print_command_completer): New.
6869 (_initialize_printcmd): Install print_command_completer as
6870 handle_brkchars completer for the "print" command. Update
6871 "print"'s help to include supported options.
6872 * valprint.c: Include "cli/cli-option.h".
6873 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6874 here from cp-valprint.c.
6875 (boolean_option_def, uinteger_option_def)
6876 (value_print_option_defs, make_value_print_options_def_group):
6877 New. Use gdb::option::add_setshow_cmds_for_options to install
6878 "set print elements", "set print null-stop", "set print repeats",
6879 "set print pretty", "set print union", "set print array", "set
6880 print address", "set print symbol", "set print array-indexes".
6881 * valprint.h: Include <string> and "cli/cli-option.h".
6882 (make_value_print_options_def_group): Declare.
6883 (print_value): Change parameter type from format_data pointer to
6884 value_print_options reference.
6885 (print_command_completer): Declare.
6886
6887 2019-06-13 Pedro Alves <palves@redhat.com>
6888
6889 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6890 (COMMON_SFILES): Add maint-test-settings.c.
6891 * cli/cli-decode.c (boolean_enums): New global, factored out from
6892 ...
6893 (add_setshow_boolean_cmd): ... here.
6894 * cli/cli-decode.h (boolean_enums): Declare.
6895 * cli/cli-option.c: New file.
6896 * cli/cli-option.h: New file.
6897 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6898 factored out from ...
6899 (parse_cli_boolean_value(const char *)): ... this.
6900 (is_unlimited_literal): Change parameter type to pointer to
6901 pointer. Adjust and advance ARG pointer.
6902 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6903 (parse_cli_var_enum): New, factored out from ...
6904 (do_set_command): ... this. Adjust.
6905 * cli/cli-setshow.h (parse_cli_boolean_value)
6906 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6907 (parse_cli_var_enum): Declare.
6908 * cli/cli-utils.c: Include "cli/cli-option.h".
6909 (get_ulongest): New.
6910 * cli/cli-utils.h (get_ulongest): Declare.
6911 (check_for_argument): New overloads.
6912 * maint-test-options.c: New file.
6913
6914 2019-06-13 Pedro Alves <palves@redhat.com>
6915
6916 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6917 parse a range if "-" is at the end of the string.
6918
6919 2019-06-13 Pedro Alves <palves@redhat.com>
6920
6921 * cli/cli-setshow.c (parse_auto_binary_operation)
6922 (parse_cli_boolean_value): Don't allow "o".
6923
6924 2019-06-13 Pedro Alves <palves@redhat.com>
6925
6926 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6927 * NEWS: Mention maint test-settings KIND.
6928 * maint-test-settings.c: New file.
6929
6930 2019-06-13 Pedro Alves <palves@redhat.com>
6931
6932 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6933 completer.
6934 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6935 "set" completers.
6936
6937 2019-06-13 Pedro Alves <palves@redhat.com>
6938
6939 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6940 after item.
6941
6942 2019-06-13 Pedro Alves <palves@redhat.com>
6943
6944 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6945
6946 2019-06-13 Pedro Alves <palves@redhat.com>
6947
6948 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6949 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6950 call.
6951 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6952 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6953 calls.
6954 (check_for_argument): Skip spaces after argument.
6955
6956 2019-06-13 Pedro Alves <palves@redhat.com>
6957
6958 * thread.c (thread_apply_command): Adjust TID parsing.
6959 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6960 detected before end of string.
6961 (tid_is_in_list): Error out if LIST is invalid.
6962
6963 2019-06-13 Pedro Alves <palves@redhat.com>
6964
6965 * completer.c (complete_line_internal_1): Rewind completion word
6966 point.
6967 (completion_tracker::advance_custom_word_point_by): Change
6968 parameter type to int.
6969 * completer.h (completion_tracker::advance_custom_word_point_by):
6970 Likewise.
6971
6972 2019-06-13 Pedro Alves <palves@redhat.com>
6973
6974 * completer.c (advance_to_completion_word): Handle delimiters.
6975
6976 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6977
6978 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6979
6980 2019-06-11 Tom Tromey <tom@tromey.com>
6981
6982 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6983 (xmalloc_failed): Move to alloc.c.
6984 * alloc.c: New file.
6985 * Makefile.in (COMMON_SFILES): Add alloc.c.
6986
6987 2019-06-11 Tom Tromey <tom@tromey.com>
6988
6989 * nat/linux-waitpid.c: Don't include server.h.
6990 (linux_debug): Remove.
6991 (my_waitpid): Update.
6992
6993 2019-06-11 Tom Tromey <tromey@adacore.com>
6994
6995 * infcall.c (_initialize_infcall): Remove trailing newline from
6996 help.
6997 * user-regs.c (_initialize_user_regs): Remove trailing newline
6998 from help.
6999 * typeprint.c (_initialize_typeprint): Remove trailing newline
7000 from help.
7001 * reverse.c (_initialize_reverse): Remove trailing newlines from
7002 help.
7003 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7004 from help.
7005 * language.c (add_set_language_command): Remove trailing newline
7006 from help.
7007 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7008 help.
7009 * disasm.c (_initialize_disasm): Remove trailing newline from
7010 help.
7011 * top.c (init_main): Remove trailing newline from help.
7012 * interps.c (_initialize_interpreter): Remove trailing newline
7013 from help.
7014 * btrace.c (_initialize_btrace): Remove trailing newlines from
7015 help.
7016 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7017 from help.
7018 * python/python.c (_initialize_python): Remove trailing newline
7019 from help.
7020 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7021 help.
7022 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7023 from help. Reformat some text.
7024 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7025 from help.
7026 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7027 newline from help.
7028
7029 2019-06-11 Tom Tromey <tromey@adacore.com>
7030
7031 * darwin-nat.c (darwin_decode_exception_message)
7032 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7033
7034 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7035
7036 * valops.c (value_slice): Check for not allocated or not
7037 associated values.
7038
7039 2019-06-10 Tom de Vries <tdevries@suse.de>
7040
7041 PR gdb/24618
7042 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7043 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7044 invalid.
7045
7046 2019-06-10 Tom de Vries <tdevries@suse.de>
7047
7048 PR gdb/24611
7049 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7050 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7051
7052 2019-06-10 Tom de Vries <tdevries@suse.de>
7053
7054 PR symtab/24545
7055 * symtab.c (struct demangled_name_entry): Add language field.
7056 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7057 static minimal symbol". Set and use language field.
7058
7059 2019-06-10 Tom Tromey <tromey@adacore.com>
7060
7061 * ada-lang.c (_initialize_ada_language): Update help text.
7062
7063 2019-06-10 Tom Tromey <tromey@adacore.com>
7064
7065 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7066 with a newline.
7067 * guile/guile.c (handle_boot_error): Don't end warning with a
7068 newline.
7069 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7070 warning with a newline.
7071 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7072 newline.
7073 (s12z_frame_cache): Likewise.
7074 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7075 a newline.
7076 * solib-svr4.c (disable_probes_interface): Don't end warning with
7077 a newline.
7078 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7079 newline.
7080 * python/python.c (do_finish_initialization): Don't end warning
7081 with a newline.
7082
7083 2019-06-10 Tom Tromey <tom@tromey.com>
7084
7085 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7086 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7087 gdbpy_enter.
7088
7089 2019-06-10 Tom Tromey <tromey@adacore.com>
7090
7091 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7092 data.
7093 (elf_new_init): Don't call stabsread_new_init.
7094 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7095 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7096 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7097
7098 2019-06-10 Tom de Vries <tdevries@suse.de>
7099
7100 PR symtab/16264
7101 PR symtab/24517
7102 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7103
7104 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7105
7106 * source.c (find_and_open_source): Also rewrite relative file
7107 names.
7108
7109 2019-04-26 Amos Bird <amosbird@gmail.com>
7110
7111 * annotate.c (annotate_thread_exited): Add "thread-exited"
7112 annotation.
7113
7114 2019-06-06 Tom Tromey <tromey@adacore.com>
7115
7116 * maint.h (class scoped_command_stats): Use
7117 DISABLE_COPY_AND_ASSIGN.
7118 <print_time>: New method.
7119 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7120 print_time.
7121 (scoped_command_stats::print_time): New method.
7122
7123 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7124
7125 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7126 instructions of lengths 6 or 8 bytes.
7127
7128 2019-06-04 Pedro Alves <palves@redhat.com>
7129
7130 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7131
7132 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7133 * breakpoint.c (condition_completer): Likewise.
7134 * cli/cli-dump.c (scan_expression): Likewise.
7135 * common/filestuff.c (mkdir_recursive): Likewise.
7136 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7137 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7138 (gdb_abspath): Likewise.
7139 * compile/compile-cplus-types.c
7140 (compile_cplus_instance::decl_name): Likewise.
7141 * completer.c (complete_explicit_location):
7142 (signal_completer, reg_or_group_completer_1): Likewise.
7143 * cp-support.c (cp_remove_params_if_any): Likewise.
7144 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7145 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7146 * infcmd.c (strip_bg_char): Likewise.
7147 * linespec.c (copy_token_string): Likewise.
7148 * mi/mi-main.c (output_cores): Likewise.
7149 * psymtab.c (psymtab_search_name):
7150 * symfile.c (test_set_ext_lang_command): Likewise.
7151 * target.c (target_fileio_read_stralloc): Likewise.
7152 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7153 * value.c (complete_internalvar): Likewise.
7154
7155 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7156
7157 Add objfile property to gdb.Type.
7158 * NEWS: Mention Python API addition.
7159 * python/py-type.c (typy_get_objfile): New method.
7160
7161 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7162
7163 * NEWS: Mention the new set|show style [title|highlight].
7164 Mention changes to "show style", "help" and "apropos".
7165
7166 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7167
7168 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7169 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7170 instead of print_help_for_command.
7171 (print_doc_of_command): New function.
7172 (help_list): Add 'apropos -v word' suggestion.
7173 (print_help_for_command): Style the command name using title style.
7174 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7175 (_initialize_cli_cmds): Describe -v in apropos_command help.
7176
7177 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7178
7179 * cli/cli-style.h (cli_style_option): Add name in constructor,
7180 add m_name class member, add constructor with intensity,
7181 add name class function.
7182 (cli_style_option::add_setshow_commands): Remove name argument.
7183 (highlight_style, title_style): New styles.
7184 * cli/cli-style.c (do_show): New function that shows a style
7185 characteristic styling the style name with itself.
7186 (set_style_name): New function.
7187 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7188 Update all callers according to the changes in cli/cli-style.h.
7189 * utils.h (fputs_highlighted): New function.
7190 * utils.c (fputs_highlighted): Likewise.
7191
7192 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7193
7194 * NEWS: Mention new pipe command and new convenience variables.
7195
7196 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7197
7198 * cli/cli-cmds.c (pipe_command): New function.
7199 (_initialize_cli_cmds): Call add_com for pipe_command.
7200 Define | as an alias for pipe.
7201 (exit_status_set_internal_vars): New function.
7202 (shell_escape): Call exit_status_set_internal_vars.
7203 cli/cli-decode.c (find_command_name_length): Recognize | as
7204 a single character command.
7205
7206 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7207
7208 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7209 top.c (execute_command_to_ui_file): New function, mostly a copy
7210 of execute_command_to_string.
7211 (execute_command_to_string): Implement by calling
7212 execute_command_to_ui_file.
7213
7214 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7215
7216 * top.h (saved_command_line): Remove declaration.
7217 * top.c (previous_saved_command_line, previous_repeat_arguments):
7218 New variables.
7219 (saved_command_line): Make static, define together with other
7220 'repeat variables'.
7221 (dont_repeat): Clear repeat_arguments.
7222 (repeat_previous, get_saved_command_line, save_command_line):
7223 New functions.
7224 (gdb_init): Initialize saved_command_line
7225 and previous_saved_command_line.
7226 * main.c (captured_main_1): Remove saved_command_line initialization.
7227 * event-top.c (handle_line_of_input): Update to use
7228 the new 'repeat' related functions instead of direct access to
7229 saved_command_line.
7230 * command.h (repeat_previous, get_saved_command_line,
7231 save_command_line): New declarations.
7232 (dont_repeat): Add comment.
7233
7234 2019-05-30 Tom Tromey <tromey@adacore.com>
7235
7236 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7237 Fix comment.
7238 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7239
7240 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7241
7242 PR cli/24587
7243 * completer.c (complete): Initialize variable word.
7244
7245 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7246
7247 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7248 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7249 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7250 'body' is NULL to the outter 'if', protecting the '!is_define'
7251 situation as well.
7252
7253 2019-05-29 Tom Tromey <tromey@adacore.com>
7254
7255 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7256 (dwarf_unknown): New function.
7257 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7258 (dwarf_type_encoding_name): Use dwarf_unknown.
7259
7260 2019-05-29 Tom Tromey <tromey@adacore.com>
7261
7262 PR c++/20020:
7263 * cp-valprint.c (cp_print_value_fields): Call
7264 cp_print_static_field inside "try".
7265
7266 2019-05-29 Tom Tromey <tromey@adacore.com>
7267
7268 * inflow.c (struct terminal_info): Add default operator=.
7269 * configure: Rebuild.
7270 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7271 -Wdeprecated-copy-dtor, -Wredundant-move.
7272
7273 2019-05-29 Tom Tromey <tromey@adacore.com>
7274
7275 * NEWS: Add entry.
7276 * infcmd.c (print_return_value_1): Handle finish_print
7277 option.
7278 (show_print_finish): New function.
7279 (_initialize_infcmd): Add "set/show print finish" commands.
7280 * valprint.c (user_print_options): Initialize new member.
7281 * valprint.h (struct value_print_options) <finish_print>: New
7282 member.
7283
7284 2019-05-28 Tom Tromey <tromey@adacore.com>
7285
7286 * ada-lang.c (ada_remove_Xbn_suffix)
7287 (find_old_style_renaming_symbol)
7288 (parse_old_style_renaming): Remove.
7289 (ada_find_renaming_symbol): Don't call
7290 find_old_style_renaming_symbol.
7291 (ada_is_renaming_symbol): Rename from
7292 ada_find_renaming_symbol. Remove "block" parameter. Return
7293 bool. Now static.
7294 (ada_read_var_value): Update and simplify.
7295 * ada-exp.y (write_var_or_type): Remove old code.
7296
7297 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7298
7299 PR gdb/25010
7300 * event-top.c: Remove include comment.
7301 * inflow.c (class scoped_ignore_sigttou): Move from here...
7302 * inflow.h (class scoped_ignore_sigttou): ...to here.
7303 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7304 * top.c: Remove include comment.
7305
7306 2019-05-27 Tom Tromey <tom@tromey.com>
7307
7308 * NEWS: Fix typo.
7309
7310 2019-05-22 Tom Tromey <tromey@adacore.com>
7311
7312 * target.c (target_follow_exec): Constify parameter.
7313 * target-delegates.c: Rebuild.
7314 * remote.c (remote_target::follow_exec): Constify parameter.
7315 * infrun.c (follow_exec): Constify parameter.
7316 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7317 (target_follow_exec): Likewise.
7318
7319 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7320
7321 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7322 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7323
7324 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7325
7326 * NEWS: Add debugredirect and testsuite sections.
7327
7328 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7329
7330 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7331 target descriptions using exclusively floating point register name
7332 aliases.
7333
7334 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7335
7336 PR gdb/18644:
7337 * f-lang.c (build_fortran_types): Handle the case where
7338 gdbarch_floatformat_for_type returns a nullptr.
7339
7340 2019-05-21 Tom de Vries <tdevries@suse.de>
7341
7342 PR cli/24587
7343 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7344
7345 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7346
7347 PR gdb/18644:
7348 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7349 16-byte floats.
7350 * i386-tdep.c (i386_floatformat_for_type): Use
7351 floatformats_ia64_quad for the 16-byte floating point component
7352 within a fortran 32-byte complex number.
7353
7354 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7355
7356 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7357 delete default constructor.
7358 (find_partial_die): Update to return const struct.
7359 (partial_die_parent_scope): Move variable declaration into scope
7360 of its use and change its type to auto.
7361 (guess_partial_die_structure_name): Likewise.
7362 (partial_die_info::fixup): Likewise.
7363
7364 2019-05-17 Tom Tromey <tromey@adacore.com>
7365
7366 * source.c (find_and_open_source): Remove cast.
7367
7368 2019-05-17 Tom Tromey <tromey@adacore.com>
7369
7370 * annotate.c (annotate_source): Make "filename" const.
7371 * annotate.h (annotate_source): Use const.
7372
7373 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7374
7375 * disasm.c (set_disassembler_options): Send errors to stderr.
7376
7377 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7378
7379 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7380 (cli_interp_base::set_logging): Check debug_redirect.
7381 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7382 * cli/cli-logging.c (debug_redirect): Add static variable.
7383 (pop_output_files): Add default param.
7384 (handle_redirections): Print debug setting.
7385 (show_logging_command): Likewise.
7386 (_initialize_cli_logging): Add debugredirect command.
7387 * interps.c (current_interp_set_logging): Add debug_redirect
7388 parameter.
7389 * interps.h (set_logging): Add debug_redirect parameter.
7390 (current_interp_set_logging): Likewise.
7391 * mi/mi-common.h: Likewise.
7392 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7393
7394 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7395 Tom Tromey <tromey@adacore.com>
7396
7397 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7398 directly.
7399 * cli/cli-interp.h (make_logging_output): Remove declaration.
7400 * cli/cli-logging.c (make_logging_output): Remove function.
7401 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7402 directly.
7403 * ui-file.c (tee_file::tee_file): Remove bools.
7404 (tee_file::~tee_file): Remove deletes.
7405 * ui-file.h (tee_file): Remove bools.
7406
7407 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7408
7409 * mi/mi-cmds.h (mi_cmd_complete): New function.
7410 * mi/mi-main.c (mi_cmd_complete): Likewise.
7411 * mi/mi-cmds.c: Define new MI command -complete.
7412 * NEWS: Mention new -complete command.
7413
7414 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7415
7416 * completer.h (complete): New function.
7417 * completer.c (complete): Likewise.
7418 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7419 function defined in completer.h.
7420
7421 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7422
7423 * MAINTAINERS (Write After Approval): Add myself.
7424
7425 2019-05-17 Tom de Vries <tdevries@suse.de>
7426
7427 PR gdb/24094
7428 * dwarf2read.c (struct cu_partial_die_info): New struct.
7429 (find_partial_die): Return cu_partial_die_info.
7430 (partial_die_parent_scope, guess_partial_die_structure_name)
7431 (partial_die_info::fixup): Handle new return type of find_partial_die.
7432
7433 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7434
7435 PR breakpoints/24541
7436 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7437 "std::string", simplifying the algorithm.
7438
7439 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7440
7441 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7442 (stap_static_probe_ops::get_probes): Likewise.
7443
7444 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7445
7446 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7447 '-')" and "else if".
7448 (stap_parse_single_operand): Join checks for
7449 "gdbarch_stap_parse_special_token_p" and
7450 "gdbarch_stap_parse_special_token" in the same "if" statement.
7451 Invert check when verifying for operation on register
7452 displacement.
7453
7454 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7455
7456 * stap-probe.c (stap_get_opcode): Update comment.
7457 (stap_get_expected_argument_type): Likewise.
7458 (handle_stap_probe): Likewise.
7459
7460 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7461
7462 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7463 return type to 'bool'. Adjust comment. Use 'bool' when
7464 appropriate.
7465 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7466 * stap-probe.c (stap_parse_argument_1): Likewise.
7467 (stap_is_operator): Likewise.
7468 (stap_is_generic_prefix): Likewise.
7469 (stap_is_register_prefix): Likewise.
7470 (stap_is_register_indirection_prefix): Likewise.
7471 (stap_is_integer_prefix): Likewise.
7472 (stap_generic_check_suffix): Likewise.
7473 (stap_check_integer_suffix): Likewise.
7474 (stap_check_register_suffix): Likewise.
7475 (stap_check_register_indirection_suffix): Likewise.
7476 (stap_parse_register_operand): Likewise.
7477 (stap_parse_single_operand): Likewise.
7478 (stap_parse_argument_1): Likewise.
7479 (stap_probe::get_argument_count): Likewise.
7480 (stap_is_operator): Likewise.
7481
7482 2019-05-16 Tom Tromey <tromey@adacore.com>
7483
7484 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7485 keyword to foreach.
7486
7487 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7488
7489 * linux-thread-db.c (try_thread_db_load_1): Change return type
7490 to bool.
7491 (try_thread_db_load): Likewise.
7492 (try_thread_db_load_from_pdir_1): Likewise.
7493 (try_thread_db_load_from_pdir): Likewise.
7494 (try_thread_db_load_from_sdir): Likewise.
7495 (try_thread_db_load_from_dir): Likewise.
7496 (thread_db_load_search): Likewise.
7497 (has_libpthread): Likewise.
7498 (thread_db_load): Likewise.
7499
7500 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7501
7502 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7503 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7504 NULL, and complain/return if that's the case.
7505
7506 2019-05-15 John Darrington <john@darrington.wattle.id.au>
7507
7508 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7509 (advance, posn, abstract_read_memory): New functions.
7510 [struct mem_read_abstraction]: New struct.
7511 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7512
7513 2019-05-14 Tom Tromey <tromey@adacore.com>
7514
7515 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7516 value is not lval_memory.
7517
7518 2019-05-14 Tom Tromey <tromey@adacore.com>
7519
7520 * solib.c (info_sharedlibrary_command): Style the file name.
7521
7522 2019-05-14 Alan Hayward <alan.hayward@arm.com>
7523
7524 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7525 (aarch64_vnv_type): Likewise.
7526 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7527 * common/tdesc.c: Likewise.
7528 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7529 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7530 * features/aarch64-fpu.xml: Add ieee half view.
7531 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7532 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7533 * gdbtypes.h (struct builtin_type): Likewise.
7534 (struct objfile_type): Likewise.
7535
7536 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
7537
7538 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7539 typo.
7540 * location.h (string_to_event_location): Likewise.
7541
7542 2019-05-11 Joel Brobecker <brobecker@adacore.com>
7543
7544 GDB 8.3 released.
7545
7546 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7547
7548 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7549 New variable declaration.
7550 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7551 New variable.
7552 (print_one_breakpoint): Use ui_out::test_flags and new global
7553 variable to compute use_fixed_output.
7554 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7555 Remove.
7556 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7557 (mi_multi_location_breakpoint_output_fixed): Remove.
7558 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7559 new variable.
7560 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7561 fix_multi_location_breakpoint_output flag if version >= 3.
7562 * ui-out.h (enum ui_out_flag)
7563 <fix_multi_location_breakpoint_output>: New enumerator.
7564
7565 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7566
7567 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7568
7569 2019-05-10 Tom Tromey <tromey@adacore.com>
7570
7571 * ada-lang.c (catch_ada_completer): New function.
7572 (_initialize_ada_language): Use it.
7573
7574 2019-05-10 Tom Tromey <tromey@adacore.com>
7575
7576 * thread.c (print_thread_info): Make "requested_threads" const.
7577 * gdbthread.h (print_thread_info): Make "requested_threads"
7578 const.
7579 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7580 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7581
7582 2019-05-08 Tom Tromey <tom@tromey.com>
7583
7584 * gdbtypes.c (objfile_type_data): Change type.
7585 (objfile_type, _initialize_gdbtypes): Update.
7586
7587 2019-05-08 Tom Tromey <tom@tromey.com>
7588
7589 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7590 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7591 (_initialize_dwarf2_frame): Update.
7592
7593 2019-05-08 Tom Tromey <tom@tromey.com>
7594
7595 * objc-lang.c (objc_objfile_data): Change type.
7596 (find_methods): Update.
7597 (_initialize_objc_lang): Remove.
7598
7599 2019-05-08 Tom Tromey <tom@tromey.com>
7600
7601 * stabsread.c (rs6000_builtin_type_data): Change type.
7602 (rs6000_builtin_type, _initialize_stabsread): Update.
7603
7604 2019-05-08 Tom Tromey <tom@tromey.com>
7605
7606 * mips-tdep.c (mips_pdr_data): Remove.
7607 (_initialize_mips_tdep): Update.
7608
7609 2019-05-08 Tom Tromey <tom@tromey.com>
7610
7611 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7612 (hppa_init_objfile_priv_data, read_unwind_info)
7613 (find_unwind_entry, _initialize_hppa_tdep): Update.
7614
7615 2019-05-08 Tom Tromey <tom@tromey.com>
7616
7617 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7618 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7619 on obstack.
7620 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7621
7622 2019-05-08 Tom Tromey <tom@tromey.com>
7623
7624 * mdebugread.c (basic_type_data): Change type.
7625 (basic_type, _initialize_mdebugread): Update.
7626
7627 2019-05-08 Tom Tromey <tom@tromey.com>
7628
7629 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7630
7631 2019-05-08 Tom Tromey <tom@tromey.com>
7632
7633 * nto-tdep.c (nto_inferior_data_reg): Change type.
7634 (nto_inferior_data): Update.
7635 (nto_inferior_data_cleanup, nto_new_inferior_data)
7636 (_initialize_nto_tdep): Remove.
7637 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7638
7639 2019-05-08 Tom Tromey <tom@tromey.com>
7640
7641 * ada-lang.c (struct ada_inferior_data): Add initializers.
7642 (ada_inferior_data): Change type.
7643 (ada_inferior_data_cleanup): Remove.
7644 (get_ada_inferior_data, ada_inferior_exit)
7645 (struct ada_pspace_data): Add initializers, destructor.
7646 (ada_pspace_data_handle): Change type.
7647 (get_ada_pspace_data): Update.
7648 (ada_pspace_data_cleanup): Remove.
7649
7650 2019-05-08 Tom Tromey <tom@tromey.com>
7651
7652 * coffread.c (struct coff_symfile_info): Add initializers.
7653 (coff_objfile_data_key): Move lower. Change type.
7654 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7655 Update.
7656 (coff_free_info): Remove.
7657
7658 2019-05-08 Tom Tromey <tom@tromey.com>
7659
7660 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7661 (fbsd_pspace_data_handle): Move lower. Change type.
7662 (get_fbsd_pspace_data): Update.
7663 (fbsd_pspace_data_cleanup): Remove.
7664 (_initialize_fbsd_tdep): Update.
7665
7666 2019-05-08 Tom Tromey <tom@tromey.com>
7667
7668 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7669 (get_ada_tasks_pspace_data): Update.
7670 (ada_tasks_pspace_data_cleanup): Remove.
7671 (_initialize_tasks): Update.
7672 (ada_tasks_inferior_data_handle): Change type.
7673 (get_ada_tasks_inferior_data): Update.
7674 (ada_tasks_inferior_data_cleanup): Remove.
7675 (struct ada_tasks_pspace_data): Add initializers.
7676
7677 2019-05-08 Tom Tromey <tom@tromey.com>
7678
7679 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7680 * symfile-debug.c (debug_sym_get_probes): Change type.
7681 * stap-probe.c (handle_stap_probe):
7682 (stap_static_probe_ops::get_probes): Change type.
7683 * probe.h (class static_probe_ops) <get_probes>: Change type.
7684 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7685 (parse_probes_in_pspace): Update.
7686 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7687 Update.
7688 (any_static_probe_ops::get_probes): Change type.
7689 * elfread.c (elfread_data): New typedef.
7690 (probe_key): Change type.
7691 (elf_get_probes): Likewise. Update.
7692 (probe_key_free): Remove.
7693 (_initialize_elfread): Update.
7694 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7695 Change type.
7696 (dtrace_process_dof_probe, dtrace_process_dof)
7697 (dtrace_static_probe_ops::get_probe): Change type.
7698
7699 2019-05-08 Tom Tromey <tom@tromey.com>
7700
7701 * xcoffread.c (struct xcoff_symfile_info): Rename from
7702 coff_symfile_info. Add initializers.
7703 (xcoff_objfile_data_key): Move lower. Change type.
7704 (XCOFF_DATA): Rewrite.
7705 (xcoff_free_info): Remove.
7706 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7707 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7708 (xcoff_initial_scan): Update.
7709
7710 2019-05-08 Tom Tromey <tom@tromey.com>
7711
7712 * solib-svr4.c (struct svr4_info): Add initializers and
7713 destructor.
7714 <probes_table>: Now an htab_up.
7715 (solib_svr4_pspace_data): Change type.
7716 (free_probes_table): Simplify.
7717 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7718 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7719 (probes_table_remove_objfile_probes, register_solib_event_probe)
7720 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7721 (_initialize_svr4_solib): Update.
7722
7723 2019-05-08 Tom Tromey <tom@tromey.com>
7724
7725 * remote.c (remote_pspace_data): Change type.
7726 (remote_pspace_data_cleanup): Remove.
7727 (get_remote_exec_file, set_pspace_remote_exec_file)
7728 (_initialize_remote): Update.
7729
7730 2019-05-08 Tom Tromey <tom@tromey.com>
7731
7732 * breakpoint.c (breakpoint_objfile_key): Change type.
7733 (get_breakpoint_objfile_data): Update.
7734 (free_breakpoint_objfile_data): Remove.
7735 (_initialize_breakpoint): Update.
7736
7737 2019-05-08 Tom Tromey <tom@tromey.com>
7738
7739 * linux-tdep.c (struct linux_info): Add initializers.
7740 (linux_inferior_data): Move. Change type.
7741 (invalidate_linux_cache_inf): Update.
7742 (linux_inferior_data_cleanup): Remove.
7743 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7744
7745 2019-05-08 Tom Tromey <tom@tromey.com>
7746
7747 * auxv.c (auxv_inferior_data): Move. Change type.
7748 (auxv_inferior_data_cleanup): Remove.
7749 (invalidate_auxv_cache_inf): Rewrite.
7750 (get_auxv_inferior_data, _initialize_auxv): Update.
7751
7752 2019-05-08 Tom Tromey <tom@tromey.com>
7753
7754 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7755 (symfile_debug_objfile_data_key): Change type.
7756 (symfile_debug_installed, debug_qf_has_symbols)
7757 (debug_qf_find_last_source_symtab)
7758 (debug_qf_forget_cached_source_info)
7759 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7760 (debug_qf_print_stats, debug_qf_dump)
7761 (debug_qf_expand_symtabs_for_function)
7762 (debug_qf_expand_all_symtabs)
7763 (debug_qf_expand_symtabs_with_fullname)
7764 (debug_qf_map_matching_symbols)
7765 (debug_qf_expand_symtabs_matching)
7766 (debug_qf_find_pc_sect_compunit_symtab)
7767 (debug_qf_map_symbol_filenames)
7768 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7769 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7770 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7771 (debug_sym_read_linetable, debug_sym_relocate): Update.
7772 (symfile_debug_free_objfile): Remove.
7773 (install_symfile_debug_logging, _initialize_symfile_debug):
7774 Update.
7775
7776 2019-05-08 Tom Tromey <tom@tromey.com>
7777
7778 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7779 allocate_on_obstack.
7780 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7781 (get_dwarf2_per_objfile): Update.
7782 (set_dwarf2_per_objfile): Remove.
7783 (dwarf2_has_info, dwarf2_get_section_info): Update.
7784 (dwarf2_free_objfile): Remove.
7785 (_initialize_dwarf2_read): Update.
7786
7787 2019-05-08 Tom Tromey <tom@tromey.com>
7788
7789 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7790 initializers.
7791 <unsupported_script_warning_printed,
7792 script_not_found_warning_printed>: Now bool.
7793 (auto_load_pspace_data): Change type.
7794 (~auto_load_pspace_info): Rename from
7795 auto_load_pspace_data_cleanup.
7796 (get_auto_load_pspace_data, init_loaded_scripts_info)
7797 (clear_section_scripts, maybe_print_unsupported_script_warning)
7798 (maybe_print_script_not_found_warning, _initialize_auto_load):
7799 Update.
7800
7801 2019-05-08 Tom Tromey <tom@tromey.com>
7802
7803 * objfiles.c (objfile_pspace_info): Add destructor and
7804 initializers.
7805 (objfiles_pspace_data): Change type.
7806 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7807 (get_objfile_pspace_data): Update.
7808 (objfiles_bfd_data): Change type.
7809 (get_objfile_bfd_data): Update.
7810 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7811
7812 2019-05-08 Tom Tromey <tom@tromey.com>
7813
7814 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7815 Change type.
7816 (get_catch_syscall_inferior_data): Update.
7817 (catch_syscall_inferior_data_cleanup): Remove.
7818 (_initialize_break_catch_syscall): Update.
7819
7820 2019-05-08 Tom Tromey <tom@tromey.com>
7821
7822 * inflow.c (struct terminal_info): Add destructor and
7823 initializers.
7824 (inflow_inferior_data): Change type.
7825 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7826 (get_inflow_inferior_data, inflow_inferior_exit)
7827 (swap_terminal_info, _initialize_inflow): Update.
7828
7829 2019-05-08 Tom Tromey <tom@tromey.com>
7830
7831 * target-dcache.c (target_dcache_cleanup): Remove.
7832 (target_dcache_aspace_key): Change type.
7833 (target_dcache_init_p, target_dcache_invalidate)
7834 (target_dcache_get, target_dcache_get_or_init)
7835 (_initialize_target_dcache): Update.
7836 * dcache.h (struct dcache_deleter): New.
7837
7838 2019-05-08 Tom Tromey <tom@tromey.com>
7839
7840 * symtab.c (struct symbol_cache): Add destructor and
7841 initializers.
7842 (symbol_cache_key): Move. Change type.
7843 (make_symbol_cache, free_symbol_cache): Remove.
7844 (get_symbol_cache): Update.
7845 (symbol_cache_cleanup): Remove.
7846 (ALL_PSPACES, symbol_cache_flush)
7847 (maintenance_print_symbol_cache)
7848 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7849 Update.
7850
7851 2019-05-08 Tom Tromey <tom@tromey.com>
7852
7853 * symtab.c (struct main_info): Add destructor and initializers.
7854 (main_progspace_key): Move. Change type.
7855 (get_main_info): Update.
7856 (main_info_cleanup): Remove.
7857 (_initialize_symtab): Update.
7858
7859 2019-05-08 Tom Tromey <tom@tromey.com>
7860
7861 * registry.h (DECLARE_REGISTRY): Define the _key class.
7862
7863 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7864
7865 * NEWS: Merge two 'New commands' sections.
7866
7867 2019-05-08 Joel Brobecker <brobecker@adacore.com>
7868
7869 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7870 parameter and use Ada language definition instead.
7871 (ada_val_print_ptr): Remove unused language parameter.
7872 (ada_val_print_num): Remove language parameter and use Ada language
7873 definition instead.
7874 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7875 parameter.
7876 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7877 parameter and use Ada language definition instead.
7878 (ada_val_print_1): Update all ada_val_print_xxx calls.
7879 Remove language parameter.
7880 (ada_val_print): Update ada_val_print_1 call.
7881
7882 2019-05-08 Tom Tromey <tromey@adacore.com>
7883
7884 * remote.c (remote_hw_watchpoint_limit)
7885 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7886 Now static.
7887
7888 2019-05-08 Tom Tromey <tromey@adacore.com>
7889
7890 * maint.c (_initialize_maint_cmds): Move initialization code to
7891 remote.c.
7892 (watchdog, show_watchdog): Move to remote.c.
7893 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7894 "watchdog" static.
7895 (_initialize_remote): Move initialization code from maint.c.
7896 * defs.h (watchdog): Don't declare.
7897
7898 2019-05-08 Tom Tromey <tromey@adacore.com>
7899
7900 * tui/tui-interp.c: Include main.h.
7901 * interps.c: Include main.h.
7902 * main.h (interpreter_p): Declare.
7903 * defs.h (interpreter_p): Don't declare.
7904
7905 2019-05-08 Tom Tromey <tromey@adacore.com>
7906
7907 * dwarf2loc.c: Include dwarf2read.h.
7908 * defs.h (read_unsigned_leb128): Don't declare.
7909 * dwarf2read.h (read_unsigned_leb128): Declare.
7910
7911 2019-05-08 Tom Tromey <tromey@adacore.com>
7912
7913 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7914 method.
7915
7916 2019-05-08 Tom Tromey <tromey@adacore.com>
7917
7918 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7919 when no wrap column is set.
7920
7921 2019-05-08 Tom Tromey <tromey@adacore.com>
7922
7923 * c-lang.c (c_get_string): Handle non-C-style arrays.
7924
7925 2019-05-08 Tom Tromey <tromey@adacore.com>
7926
7927 * typeprint.c (print_offset_data::update): Print the bit offset,
7928 not the number of bits remaining.
7929
7930 2019-05-08 Tom Tromey <tromey@adacore.com>
7931
7932 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7933 padding at end of comment.
7934
7935 2019-05-08 Tom Tromey <tromey@adacore.com>
7936
7937 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7938 Compare main types.
7939
7940 2019-05-06 Tom Tromey <tom@tromey.com>
7941
7942 * common/scoped_mmap.c: Include common-defs.h.
7943 * common/scoped_mmap.h: Don't include config.h.
7944
7945 2019-05-04 Tom Tromey <tom@tromey.com>
7946
7947 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7948 (struct aarch64_call_info): Add initializers.
7949 <si>: Now a std::vector.
7950 (pass_on_stack, aarch64_push_dummy_call): Update.
7951
7952 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
7953 Tom Tromey <tom@tromey.com>
7954
7955 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7956 (ppc_threads): Now a std::vector. Now static.
7957 (hwdebug_find_thread_points_by_tid)
7958 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7959 Update.
7960
7961 2019-05-04 Tom Tromey <tom@tromey.com>
7962
7963 * arc-tdep.c (arc_tdesc_init): Return bool.
7964
7965 2019-05-04 Tom Tromey <tom@tromey.com>
7966
7967 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7968 Use gdb_assert_not_reached.
7969
7970 2019-05-04 Tom Tromey <tom@tromey.com>
7971
7972 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7973 "false".
7974
7975 2019-05-04 Tom Tromey <tom@tromey.com>
7976
7977 * arc-tdep.c (arc_tdesc_init): Use bool.
7978
7979 2019-05-04 Tom Tromey <tom@tromey.com>
7980
7981 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7982
7983 2019-05-04 Tom Tromey <tom@tromey.com>
7984
7985 * cli/cli-cmds.c (valid_command_p): Return bool.
7986
7987 2019-05-04 Tom Tromey <tom@tromey.com>
7988
7989 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7990 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7991
7992 2019-05-04 Raul Tambre <raul@tambre.ee>
7993
7994 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7995 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7996 operator for comparison.
7997
7998 2019-05-04 Tom Tromey <tom@tromey.com>
7999
8000 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8001 (lookup_partial_symbol, print_partial_symbols)
8002 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8003 (psymbol_compare): Update.
8004 (add_psymbol_to_bcache): Clear the entire psymbol.
8005 (maintenance_check_psymtabs): Update.
8006 * psympriv.h (struct partial_symbol): Don't derive from
8007 general_symbol_info.
8008 <obj_section, unrelocated_address, address,
8009 set_unrelocated_address>: Update.
8010 <ginfo>: New member.
8011 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8012 (debug_names::write_psymbols): Update.
8013
8014 2019-05-04 Tom de Vries <tdevries@suse.de>
8015
8016 * contrib/cc-with-tweaks.sh: Support -n arg.
8017
8018 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8019
8020 * corelow.c (core_target::detach): Ensure frame cache and
8021 register caches are cleared.
8022 inferior.c (exit_inferior_1): Likewise.
8023
8024 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8025 Tom Tromey <tom@tromey.com>
8026
8027 * dictionary.c (collate_pending_symbols_by_language): Remove
8028 "struct" from foreach.
8029 * symtab.c (lookup_global_symbol_from_objfile)
8030 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8031 foreach.
8032 * ser-tcp.c (net_open): Remove "struct" from foreach.
8033 * objfiles.c (objfile_relocate, objfile_rebase)
8034 (objfile_has_symbols): Remove "struct" from foreach.
8035 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8036 from foreach.
8037 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8038 foreach.
8039 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8040 "struct" from foreach.
8041 * ada-lang.c (create_excep_cond_exprs)
8042 (ada_exception_catchpoint_cond_string): Remove "struct" from
8043 foreach.
8044
8045 2019-05-03 Tom Tromey <tromey@adacore.com>
8046
8047 * ada-exp.y (convert_char_literal): Check suffix of each
8048 enumerator.
8049
8050 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8051
8052 PR ada/21406:
8053 * ada-exp.y (yywrap): Don't define.
8054 * ada-lex.l (%option): Add noyywrap
8055 (yywrap): Remove.
8056
8057 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8058
8059 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8060 _WIN32_WINNT to the XP level, unless already defined to a higher
8061 level.
8062
8063 * unittests/parse-connection-spec-selftests.c:
8064 * ser-tcp.c:
8065 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8066 override.
8067
8068 * symfile.c (find_separate_debug_file): Remove colon from the
8069 drive spec of DOS/Windows file names of the target, so that the
8070 file name produced from DEBUGDIR and the target's directory will
8071 be valid on DOS/Windows systems.
8072
8073 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8074
8075 * rust-lang.c (val_print_struct): Handle printing structures
8076 containing strings.
8077
8078 2019-05-02 Tom Tromey <tromey@adacore.com>
8079
8080 * valarith.c (_initialize_valarith): Remove.
8081
8082 2019-05-01 Tom Tromey <tromey@adacore.com>
8083
8084 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8085 bitfields.
8086
8087 2019-05-01 Tom Tromey <tromey@adacore.com>
8088
8089 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8090 for big-endian copies.
8091
8092 2019-04-30 Ali Tamur <tamur@google.com>
8093 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8094 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8095 (read_3_bytes): New function.
8096
8097 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8098
8099 * windows-nat.c (main_thread_id): Delete.
8100 (handle_output_debug_string): Replace main_thread_id by
8101 current_event.dwThreadId.
8102 (fake_create_process): Likewise.
8103 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8104 Do not set main_thread_id.
8105 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8106 current_event.dwThreadId.
8107 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8108
8109 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8110
8111 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8112 Use current_event.dwThreadId instead of main_thread_id.
8113
8114 2019-04-30 Tom Tromey <tromey@adacore.com>
8115
8116 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8117 (create_excep_cond_exprs): Iterate over program spaces.
8118 (ada_exception_catchpoint_cond_string): Examine all minimal
8119 symbols for exception types.
8120
8121 2019-04-30 Tom Tromey <tromey@adacore.com>
8122
8123 PR c++/24470:
8124 * dwarf2read.c (process_structure_scope): Handle case where type
8125 has template parameters but no symbol was created.
8126
8127 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8128 Chris January <chris.january@arm.com>
8129
8130 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8131 qualifier.
8132 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8133
8134 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8135
8136 * f-typeprint.c (f_print_type): Update rules for printing
8137 whitespace.
8138 (f_type_print_varspec_suffix): Likewise.
8139
8140 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8141 Chris January <chris.january@arm.com>
8142
8143 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8144 function arguments.
8145
8146 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8147
8148 * f-lang.c (build_fortran_types): Change name of void type to
8149 lower case.
8150 * f-typeprint.c (f_type_print_base): Print the name of the void
8151 type, rather than a fixed string.
8152 * f-valprint.c (f_decorations): Use lower case void string.
8153
8154 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8155 Chris January <chris.january@arm.com>
8156
8157 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8158 types for Fortran.
8159
8160 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8161 Chris January <chris.january@arm.com>
8162 David Lecomber <david.lecomber@arm.com>
8163
8164 * f-exp.y (BINOP_INTRINSIC): New token.
8165 (exp): New parser rule handling BINOP_INTRINSIC.
8166 (f77_keywords): Add new builtin procedures.
8167 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8168 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8169 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8170 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8171 (print_unop_subexp_f): New function.
8172 (print_binop_subexp_f): New function.
8173 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8174 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8175 (dump_subexp_body_f): Likewise.
8176 (operator_check_f): Likewise.
8177 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8178 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8179
8180 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8181
8182 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8183 UNOP_KIND.
8184 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8185 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8186 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8187 (operator_length_f): New fuction.
8188 (print_subexp_f): New function.
8189 (op_name_f): New function.
8190 (dump_subexp_body_f): New function.
8191 (operator_check_f): New function.
8192 (exp_descriptor_f): Replace standard expression handling functions
8193 with new functions.
8194 * gdb/fortran-operator.def: New file.
8195 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8196 * gdb/std-operator.def: Remove UNOP_KIND.
8197
8198 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8199
8200 * std-operator.def: Remove unbalanced, stray double quote
8201 character.
8202
8203 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8204 Chris January <chris.january@arm.com>
8205 Daniel Everett <daniel.everett@arm.com>
8206 Nick Forrington <nick.forrington@arm.com>
8207 Richard Bunt <richard.bunt@arm.com>
8208
8209 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8210 of depth when printing anonymous structs or unions.
8211 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8212 Don't print either the top-level value, or the children if the
8213 max-depth is exceeded.
8214 (ppscm_print_children): When printing the key of a map, allow one
8215 extra level of depth.
8216 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8217 print either the top-level value, or the children if the max-depth
8218 is exceeded.
8219 (print_children): When printing the key of a map, allow one extra
8220 level of depth.
8221 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8222 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8223 (user_print_options): Initialise max_depth field.
8224 (val_print_scalar_or_string_type_p): New function.
8225 (val_print): Check to see if the max depth has been reached.
8226 (val_print_check_max_depth): Define new function.
8227 (show_print_max_depth): New function.
8228 (_initialize_valprint): Add 'print max-depth' option.
8229 * valprint.h (struct value_print_options) <max_depth>: New field.
8230 (val_print_check_max_depth): Declare new function.
8231 * NEWS: Document new feature.
8232
8233 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8234
8235 * ada-lang.c (ada_language_defn): Initialise new field.
8236 * c-lang.c (c_is_string_type_p): New function.
8237 (c_language_defn): Initialise new field.
8238 (cplus_language_defn): Initialise new field.
8239 (asm_language_defn): Initialise new field.
8240 (minimal_language_defn): Initialise new field.
8241 * c-lang.h (c_is_string_type_p): Declare new function.
8242 * d-lang.c (d_language_defn): Initialise new field.
8243 * f-lang.c (f_is_string_type_p): New function.
8244 (f_language_defn): Initialise new field.
8245 * go-lang.c (go_is_string_type_p): New function.
8246 (go_language_defn): Initialise new field.
8247 * language.c (default_is_string_type_p): New function.
8248 (unknown_language_defn): Initialise new field.
8249 (auto_language_defn): Initialise new field.
8250 * language.h (struct language_defn) <la_is_string_type_p>: New
8251 member variable.
8252 (default_is_string_type_p): Declare new function.
8253 * m2-lang.c (m2_language_defn): Initialise new field.
8254 * objc-lang.c (objc_language_defn): Initialise new field.
8255 * opencl-lang.c (opencl_language_defn): Initialise new field.
8256 * p-lang.c (pascal_is_string_type_p): New function.
8257 (pascal_language_defn): Initialise new field.
8258 * rust-lang.c (rust_is_string_type_p): New function.
8259 (rust_language_defn): Initialise new field.
8260
8261 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8262
8263 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8264 New field.
8265 * ada-lang.c (ada_language_defn): Initialise new field.
8266 * c-lang.c (c_language_defn): Likewise.
8267 (cplus_language_defn): Likewise.
8268 (asm_language_defn): Likewise.
8269 (minimal_language_defn): Likewise.
8270 * d-lang.c (d_language_defn): Likewise.
8271 * f-lang.c (f_language_defn): Likewise.
8272 * go-lang.c (go_language_defn): Likewise.
8273 * language.c (unknown_language_defn): Likewise.
8274 (auto_language_defn): Likewise.
8275 * m2-lang.c (m2_language_defn): Likewise.
8276 * objc-lang.c (objc_language_defn): Likewise.
8277 * opencl-lang.c (opencl_language_defn): Likewise.
8278 * p-lang.c (pascal_language_defn): Likewise.
8279 * rust-lang.c (rust_language_defn): Likewise.
8280
8281 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8282
8283 * ada-lang.c (ada_is_character_type): Change return type to bool.
8284 (ada_is_string_type): Likewise.
8285 * ada-lang.h (ada_is_character_type): Update declaration
8286 (ada_is_string_type): Likewise.
8287
8288 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8289
8290 Support style in 'frame|thread apply'
8291
8292 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8293 * record.c (record_start, record_stop): Update callers of
8294 execute_command_to_string with false.
8295 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8296 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8297 methods.
8298 (class string_file): New constructor with term_out parameter.
8299 Override methods term_out and can_emit_style_escape. New member
8300 term_out.
8301 (class stdio_file): Override can_emit_style_escape.
8302 (class tee_file): Override term_out and can_emit_style_escape.
8303 * utils.h (can_emit_style_escape): Remove.
8304 * utils.c (can_emit_style_escape): Likewise.
8305 Update all callers of can_emit_style_escape (SOMESTREAM) to
8306 SOMESTREAM->can_emit_style_escape.
8307 * source-cache.c (source_cache::get_source_lines): Likewise.
8308 * stack.c (frame_apply_command_count): Call execute_command_to_string
8309 passing the term_out characteristic of the current gdb_stdout.
8310 * thread.c (thr_try_catch_cmd): Likewise.
8311 * top.c (execute_command_to_string): pass term_out parameter
8312 to construct the string_file for the command output.
8313 * ui-file.c (term_cli_styling): New function (most code moved
8314 from utils.c can_emit_style_escape).
8315 (string_file::string_file, string_file::can_emit_style_escape,
8316 stdio_file::can_emit_style_escape, tee_file::term_out,
8317 tee_file::can_emit_style_escape): New functions.
8318
8319 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8320
8321 * NEWS: Mention the new set|show may-call-functions.
8322 * infcall.c (may_call_functions_p): New variable.
8323 (show_may_call_functions_p): New function.
8324 (call_function_by_hand_dummy): Throws an error if not
8325 may-call-functions.
8326 (_initialize_infcall): Call add_setshow_boolean_cmd for
8327 may-call-functions.
8328
8329 2019-04-25 Keith Seitz <keiths@redhat.com>
8330
8331 PR c++/24367
8332 * cp-support.c (inspect_type): Don't attempt substitutions
8333 of symbol with the same name.
8334
8335 2019-04-25 Tom Tromey <tromey@adacore.com>
8336
8337 PR gdb/24475:
8338 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8339 static.
8340
8341 2019-04-25 Tom Tromey <tromey@adacore.com>
8342
8343 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8344 rvalue reference.
8345 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8346 (gdb_xml_parser::parse): Use std::move.
8347 * python/python-internal.h (gdbpy_convert_exception): Take a const
8348 reference.
8349 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8350 std::move.
8351 * python/py-utils.c (gdbpy_convert_exception): Take a const
8352 reference.
8353 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8354 Use std::move.
8355 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8356 Use std::move.
8357 * mi/mi-main.c (mi_print_exception): Take a const reference.
8358 * main.c (handle_command_errors): Take a const reference.
8359 * linespec.c (parse_linespec): Use std::move.
8360 * infcall.c (run_inferior_call): Use std::move.
8361 (call_function_by_hand_dummy): Use std::move.
8362 * exec.c (try_open_exec_file): Use std::move.
8363 * exceptions.h (exception_print, exception_fprintf)
8364 (exception_print_same): Update.
8365 * exceptions.c (print_exception, exception_print)
8366 (exception_fprintf, exception_print_same): Change parameters to
8367 const reference.
8368 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8369 * common/new-op.c: Use std::move.
8370 * common/common-exceptions.h (struct gdb_exception): Add move
8371 constructor.
8372 (struct gdb_exception_error, struct gdb_exception_quit, struct
8373 gdb_quit_bad_alloc): Change constructor to move constructor.
8374 (throw_exception): Change parameter to rvalue reference.
8375 * common/common-exceptions.c (throw_exception): Take rvalue
8376 reference.
8377 * cli/cli-interp.c (safe_execute_command): Use std::move.
8378 * breakpoint.c (insert_bp_location, location_to_sals): Use
8379 std::move.
8380
8381 2019-04-25 Tom Tromey <tromey@adacore.com>
8382
8383 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8384 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8385 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8386 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8387 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8388 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8389 guile/scm-value.c: Use unpack.
8390 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8391 gdbscm_gdb_exception.
8392 (gdbscm_throw_gdb_exception): Likewise.
8393 (struct gdbscm_gdb_exception): New.
8394 (unpack): New function.
8395 (gdbscm_wrap): Use unpack.
8396
8397 2019-04-25 Tom Tromey <tromey@adacore.com>
8398
8399 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8400 (gdb_rl_callback_handler): Use std::move.
8401 * common/common-exceptions.h (struct gdb_exception): Add move
8402 assignment operator.
8403 (throw_exception_sjlj): Change "exception" to const reference.
8404 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8405 (throw_exception_sjlj): Change "exception" to const reference.
8406
8407 2019-04-25 Tom Tromey <tromey@adacore.com>
8408
8409 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8410 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8411 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8412 Update.
8413 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8414 Update.
8415 * mi/mi-interp.c (mi_interp::exec): Update.
8416 * linespec.c (parse_linespec): Update.
8417 * infcall.c (run_inferior_call): Update.
8418 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8419 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8420 (gdbscm_lookup_global_symbol): Update.
8421 * guile/scm-param.c (gdbscm_parameter_value): Update.
8422 * guile/scm-frame.c (gdbscm_frame_read_register)
8423 (gdbscm_frame_read_var): Update.
8424 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8425 * exec.c (try_open_exec_file): Update.
8426 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8427 (gdb_rl_callback_handler): Update.
8428 * common/common-exceptions.h (exception_none): Don't declare.
8429 * common/common-exceptions.c (exception_none): Don't define.
8430 (struct catcher) <exception>: Update.
8431 * cli/cli-interp.c (safe_execute_command): Update.
8432 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8433
8434 2019-04-25 Ali Tamur <tamur@google.com>
8435
8436 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8437 (read_attribute_value): Likewise.
8438 (dwarf2_read_addr_index): Update comment.
8439 (read_str_index): Add DW_FORM_strx.
8440 (dwarf2_string_attr): Likewise.
8441 (dwarf2_const_value_attr): Likewise.
8442 (dump_die_shallow): Likewise.
8443 (dwarf2_fetch_constant_bytes): Likewise.
8444 (skip_form_bytes): Likewise.
8445 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8446
8447 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8448
8449 PR corefiles/11608
8450 PR corefiles/18187
8451 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8452 OFFSET. Verify if current mapping contains an ELF header.
8453 (linux_find_memory_regions_full): Adjust call to
8454 dump_mapping_p.
8455
8456 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8457 Kang Li <kanglictf@gmail.com>
8458
8459 PR gdb/21600
8460
8461 * dwarf2-frame.c (read_initial_length): Be consistent about using
8462 unsigned representation of length.
8463 (decode_frame_entry_1): Likewise. Check for wraparound of
8464 end pointer as well as buffer overflow.
8465
8466 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8467
8468 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8469 "vq".
8470
8471 2019-04-24 Tom Tromey <tromey@adacore.com>
8472
8473 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8474
8475 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8476
8477 * s12z-tdep.c (s12z_unwind_pc): Delete.
8478 (s12z_unwind_sp): Delete.
8479 (s12z_gdbarch_init): Don't register deleted functions with
8480 gdbarch.
8481
8482 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8483
8484 * rl78-tdep.c (rl78_unwind_sp): Delete.
8485 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8486
8487 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8488
8489 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8490 (xstormy16_unwind_pc): Delete.
8491 (xstormy16_dummy_id): Delete.
8492 (xstormy16_gdbarch_init): Don't register deleted functions with
8493 gdbarch.
8494
8495 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8496
8497 * vax-tdep.c (vax_unwind_pc): Delete.
8498 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8499
8500 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8501
8502 * v850-tdep.c (v850_unwind_sp): Delete.
8503 (v850_unwind_pc): Delete.
8504 (v850_dummy_id): Delete.
8505 (v850_gdbarch_init): Don't register deleted functions with
8506 gdbarch.
8507
8508 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8509
8510 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8511 (tilegx_unwind_pc): Delete.
8512 (tilegx_unwind_dummy_id): Delete.
8513 (tilegx_gdbarch_init): Don't register deleted functions with
8514 gdbarch.
8515
8516 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8517
8518 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8519 (tic6x_dummy_id): Delete.
8520 (tic6x_gdbarch_init): Don't register deleted functions with
8521 gdbarch.
8522
8523 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8524
8525 * sparc-tdep.c (sparc_unwind_pc): Delete.
8526 (sparc32_gdbarch_init): Don't register deleted function with
8527 gdbarch.
8528
8529 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8530
8531 * sh-tdep.c (sh_unwind_sp): Delete.
8532 (sh_unwind_pc): Delete.
8533 (sh_dummy_id): Delete.
8534 (sh_gdbarch_init): Don't register deleted functions with
8535 gdbarch.
8536
8537 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8538
8539 * score-tdep.c (score_unwind_sp): Delete.
8540 (score_unwind_pc): Delete.
8541 (score_dummy_id): Delete.
8542 (score_gdbarch_init): Don't register deleted functions with
8543 gdbarch.
8544
8545 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8546
8547 * rx-tdep.c (rx_unwind_pc): Delete.
8548 (rx_unwind_sp): Delete.
8549 (rx_dummy_id): Delete.
8550 (rx_gdbarch_init): Don't register deleted functions with
8551 gdbarch. Update comment.
8552
8553 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8554
8555 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8556 (rs6000_dummy_id): Delete.
8557 (rs6000_gdbarch_init): Don't register deleted functions with
8558 gdbarch.
8559
8560 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8561
8562 * or1k-tdep.c (or1k_dummy_id): Delete.
8563 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8564
8565 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8566
8567 * nios2-tdep.c (nios2_dummy_id): Delete.
8568 (nios2_unwind_sp): Delete.
8569 (nios2_gdbarch_init): Don't register deleted functions with
8570 gdbarch.
8571
8572 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8573
8574 * nds32-tdep.c (nds32_dummy_id): Delete.
8575 (nds32_unwind_pc): Delete.
8576 (nds32_unwind_sp): Delete.
8577 (nds32_gdbarch_init): Don't register deleted functions with
8578 gdbarch.
8579
8580 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8581
8582 * msp430-tdep.c (msp430_unwind_pc): Delete.
8583 (msp430_unwind_sp): Delete.
8584 (msp430_dummy_id): Delete.
8585 (msp430_gdbarch_init): Don't register deleted functions with
8586 gdbarch.
8587
8588 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8589
8590 * moxie-tdep.c (moxie_unwind_sp): Delete.
8591 (moxie_unwind_pc): Delete.
8592 (moxie_dummy_id): Delete.
8593 (moxie_gdbarch_init): Don't register deleted functions with
8594 gdbarch.
8595
8596 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8597
8598 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8599 (mn10300_unwind_pc): Delete.
8600 (mn10300_unwind_sp): Delete.
8601 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8602 mn10300_unwind_sp.
8603 (mn10300_frame_unwind_init): Don't register deleted functions with
8604 gdbarch.
8605
8606 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8607
8608 * mep-tdep.c (mep_unwind_pc): Delete.
8609 (mep_unwind_sp): Delete.
8610 (mep_dummy_id): Delete.
8611 (mep_gdbarch_init): Don't register deleted functions with
8612 gdbarch.
8613
8614 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8615
8616 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8617 (m68hc11_unwind_sp): Delete.
8618 (m68hc11_gdbarch_init): Don't register deleted functions with
8619 gdbarch.
8620
8621 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8622
8623 * m32r-tdep.c (m32r_unwind_sp): Delete.
8624 (m32r_unwind_pc): Delete.
8625 (m32r_dummy_id): Delete.
8626 (m32r_gdbarch_init): Don't register deleted functions with
8627 gdbarch.
8628
8629 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8630
8631 * m32c-tdep.c (m32c_unwind_pc): Delete.
8632 (m32c_unwind_sp): Delete.
8633 (m32c_dummy_id): Delete.
8634 (m32c_gdbarch_init): Don't register deleted functions with
8635 gdbarch.
8636
8637 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8638
8639 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8640 (lm32_unwind_pc): Delete.
8641 (lm32_dummy_id): Delete.
8642 (lm32_gdbarch_init): Don't register deleted functions with
8643 gdbarch.
8644
8645 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8646
8647 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8648 (iq2000_unwind_pc): Delete.
8649 (iq2000_dummy_id): Delete.
8650 (iq2000_gdbarch_init): Don't register deleted functions with
8651 gdbarch.
8652
8653 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8654
8655 * nds32-tdep.c (nds32_type_align): Delete.
8656 (nds32_push_dummy_call): Use type_align instead.
8657
8658 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8659
8660 * arm-tdep.c (arm_type_align): Only handle vector override case.
8661 (arm_push_dummy_call): Use type_align.
8662 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8663
8664 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8665
8666 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8667 case.
8668 (pass_on_stack): Use type_align.
8669 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8670 function.
8671
8672 2019-04-23 Tom Tromey <tromey@adacore.com>
8673
8674 * dwarf2read.c (line_header::file_name_at): Remove unused
8675 overload.
8676
8677 2019-04-23 Tom de Vries <tdevries@suse.de>
8678
8679 PR gdb/24438
8680 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8681 invocation.
8682
8683
8684 2019-03-27 Ali Tamur <tamur@google.com>
8685
8686 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8687 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8688 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8689 (dwarf_expr_context::get_addr_index): Likewise
8690 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8691 (symbol_needs_eval_context::get_addr_index): Likewise
8692 (disassemble_dwarf_expression): Add DW_OP_addrx
8693 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8694 (read_cutu_die_from_dwo): Update comment
8695 (skip_one_die): Add DW_FORM_addrx
8696 (read_attribute_value): Likewise
8697 (var_decode_location): Add DW_OP_addrx
8698 (dwarf2_const_value_attr): Add DW_FORM_addrx
8699 (dump_die_shallow): Likewise
8700 (dwarf2_fetch_constant_bytes): Likewise
8701 (decode_locdesc): Add DW_OP_addrx
8702 (skip_form_bytes): Add DW_FORM_addrx
8703
8704 2019-04-22 Ali Tamur <tamur@google.com>
8705
8706 * MAINTAINERS (Write After Approval): Add self.
8707
8708 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
8709
8710 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8711 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8712 (open_symbol_file_object): Likewise.
8713 (svr4_default_sos): Add info parameter.
8714 (svr4_read_so_list): Likewise.
8715 (svr4_current_sos_direct): Adjust functions calls to pass down
8716 info.
8717 (svr4_current_sos_1): Add info parameter.
8718 (svr4_current_sos): Call get_svr4_info, pass info down to
8719 svr4_current_sos_1.
8720 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8721 get_svr4_info.
8722 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8723 get_svr4_info.
8724 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8725 to get_svr4_info.
8726 (probes_table_remove_objfile_probes): Likewise.
8727 (register_solib_event_probe): Add info parameter.
8728 (solist_update_incremental): Pass info parameter down to
8729 svr4_read_so_list.
8730 (disable_probes_interface): Add info parameter.
8731 (svr4_handle_solib_event): Pass current_program_space to
8732 get_svr4_info. Adjust disable_probes_interface cleanup.
8733 (svr4_create_probe_breakpoints): Add info parameter, pass it
8734 down to register_solib_event_probe.
8735 (svr4_create_solib_event_breakpoints): Add info parameter,
8736 pass it down to svr4_create_probe_breakpoints.
8737 (enable_break): Pass info down to
8738 svr4_create_solib_event_breakpoints.
8739 (svr4_solib_create_inferior_hook): Pass current_program_space to
8740 get_svr4_info.
8741 (svr4_clear_solib): Likewise.
8742
8743 2019-04-22 Pedro Alves <palves@redhat.com>
8744
8745 * solib-svr4.c (svr4_free_objfile_observer): New.
8746 (probe_and_action::objfile): New field.
8747 (probes_table_htab_remove_objfile_probes)
8748 (probes_table_remove_objfile_probes): New functions.
8749 (register_solib_event_probe): Add 'objfile' parameter. Store it
8750 in the new probe_and_action. Don't store the probe in 'lookup'.
8751 (svr4_create_probe_breakpoints): Pass objfile to
8752 register_solib_event_probe.
8753 (_initialize_svr4_solib): Register a free_objfile observer.
8754
8755 2019-04-19 Tom Tromey <tom@tromey.com>
8756
8757 * common/queue.h: Remove.
8758
8759 2019-04-19 Tom Tromey <tom@tromey.com>
8760
8761 * event-loop.c: Don't include "common/queue.h".
8762
8763 2019-04-19 Tom Tromey <tom@tromey.com>
8764
8765 * remote.c (remote_target): Use delete.
8766 * remote-notif.h: Include <list>, not "common/queue.h".
8767 (notif_client_p): Remove typedef.
8768 (remote_notif_state): Add constructor, destructor, initializer.
8769 <notif_queue>: Now a std::list.
8770 (remote_notif_state_xfree): Don't declare.
8771 * remote-notif.c (remote_notif_process, handle_notification)
8772 (remote_notif_state_allocate): Update.
8773 (~remote_notif_state): Rename from remote_notif_state_xfree.
8774
8775 2019-04-19 Tom Tromey <tom@tromey.com>
8776
8777 * symfile.c (reread_symbols): Update.
8778 * objfiles.c (objfile_register_static_link)
8779 (objfile_lookup_static_link): Update
8780 (~objfile) Don't delete static_links.
8781 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8782
8783 2019-04-19 Tom Tromey <tom@tromey.com>
8784
8785 * type-stack.h (struct type_stack) <insert>: Constify string.
8786 * type-stack.c (type_stack::insert): Constify string.
8787 * gdbtypes.h (lookup_template_type): Update.
8788 (address_space_name_to_int): Update.
8789 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8790 const.
8791 (lookup_template_type): Make name const.
8792 * c-exp.y: Update rules.
8793 (lex_one_token, classify_name, classify_inner_name)
8794 (c_print_token): Update.
8795 * p-exp.y: Update rules.
8796 (yylex): Update.
8797 * f-exp.y: Update rules.
8798 (yylex): Update.
8799 * d-exp.y: Update rules.
8800 (lex_one_token, classify_name, classify_inner_name): Update.
8801 * parse.c (write_dollar_variable, copy_name): Return std::string.
8802 * parser-defs.h (copy_name): Change return type.
8803 * m2-exp.y: Update rules.
8804 (yylex): Update.
8805 * go-exp.y (lex_one_token): Update.
8806 Update rules.
8807 (classify_unsafe_function, classify_packaged_name)
8808 (classify_name, yylex): Update.
8809
8810 2019-04-19 Sergei Trofimovich <siarheit@google.com>
8811
8812 * configure.ac: add --enable-source-highlight switch.
8813 * configure: Regenerate.
8814 * top.c (print_gdb_version): plumb --enable-source-highlight
8815 status to "show configuration".
8816
8817 2019-04-19 Tom Tromey <tromey@adacore.com>
8818
8819 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8820 Check ADA_TYPE_P.
8821 (empty_record, ada_template_to_fixed_record_type_1)
8822 (template_to_static_fixed_type)
8823 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8824 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8825 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8826 macros.
8827
8828 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8829
8830 PR symtab/24423:
8831 * source.c (print_source_lines_base): Advance "iter" when a
8832 control character is seen.
8833
8834 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8835
8836 * inferior.h (struct infcall_suspend_state_deleter):
8837 Catch exception in destructor to avoid crash.
8838
8839 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8840
8841 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8842 close to the add_com "shell".
8843
8844 2019-04-18 Tom Tromey <tromey@adacore.com>
8845
8846 * process-stratum-target.h (class process_stratum_target)
8847 <stratum>: Add "final".
8848
8849 2019-04-17 Tom Tromey <tromey@adacore.com>
8850
8851 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8852 against nullptr before use.
8853
8854 2019-04-17 Alan Hayward <alan.hayward@arm.com>
8855
8856 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8857
8858 2019-04-17 Jim Wilson <jimw@sifive.com>
8859 Andrew Burgess <andrew.burgess@embecosm.com>
8860
8861 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8862 code read might fail, assume 4-byte breakpoint in that case.
8863
8864 2019-04-15 Leszek Swirski <leszeks@google.com>
8865
8866 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8867 rather than a hand-rolled POD check when checking for forced MEMORY
8868 classification.
8869
8870 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8871
8872 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8873 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8874 function.
8875 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8876 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8877 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8878 declaration.
8879
8880 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8881
8882 * aarch64-linux-nat.c
8883 (aarch64_linux_nat_target::thread_architecture): Add override.
8884 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8885 each VQ.
8886
8887 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8888
8889 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8890
8891 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8892
8893 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8894 target types of size 96-bits, add some additional comments, and
8895 check that the builtin type we found was the correct size.
8896
8897 2019-04-12 Eli Zaretskii <eliz@gnu.org>
8898
8899 * utils.c (prompt_for_continue): Don't restore the styling at the
8900 end, as applied_style has the wrong value. This fixes styling in
8901 long lists of file names that are interrupted by the "Continue?"
8902 prompt.
8903
8904 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8905
8906 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8907 * c-lang.c (c_language_defn): Likewise.
8908 (cplus_language_defn): Likewise.
8909 (asm_language_defn): Likewise.
8910 (minimal_language_defn): Likewise.
8911 * d-lang.c (d_language_defn): Likewise.
8912 * f-lang.c (f_language_defn): Likewise.
8913 * go-lang.c (go_language_defn): Likewise.
8914 * language.c (unknown_language_defn): Likewise.
8915 (auto_language_defn): Likewise.
8916 * language.h (struct language_defn): Remove la_magic field.
8917 (LANG_MAGIC): Delete.
8918 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8919 * objc-lang.c (objc_language_defn): Likewise.
8920 * opencl-lang.c (opencl_language_defn): Likewise.
8921 * p-lang.c (pascal_language_defn): Likewise.
8922 * rust-lang.c (rust_language_defn): Likewise.
8923
8924 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8925
8926 * riscv-tdep.c (riscv_type_align): New function.
8927 (riscv_type_alignment): Delete.
8928 (riscv_arg_location): Use 'type_align'.
8929 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8930
8931 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8932
8933 * gdbtypes.c (type_align): A struct with no non-static fields also
8934 has alignment of 1.
8935
8936 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8937
8938 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8939 component to 0.
8940 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8941 member.
8942 (riscv_struct_info::analyse): New implementation using new
8943 analyse_inner member function.
8944 (riscv_struct_info::field_offset): New member function.
8945 (riscv_struct_info::m_offsets): New member variable.
8946 (riscv_struct_info::analyse_inner): New private member function,
8947 takes the old implementation of riscv_struct_info::analyse but
8948 extended to track field offsets.
8949 (riscv_call_arg_struct): Update the struct folding special cases
8950 to handle cases where empty C++ structs, which are non-zero
8951 length, are found.
8952 (riscv_arg_location): Initialise the length of each location, a
8953 non-zero length now indicates the location is in use.
8954 (riscv_push_dummy_call): Allow for the first location having a
8955 non-zero offset when setting up arguments.
8956 (riscv_return_value): Likewise, but for return values.
8957
8958 2019-04-11 Tom Tromey <tromey@adacore.com>
8959
8960 * utils.c (internal_vproblem): Make "msg" const.
8961
8962 2019-04-11 Alan Hayward <alan.hayward@arm.com>
8963
8964 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8965 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8966 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8967 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8968
8969 2019-04-10 Kevin Buettner <kevinb@redhat.com>
8970
8971 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8972 function.
8973 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8974 of amd64_collect_native_gregset.
8975 (amd64_linux_nat_target::store_registers): Likewise.
8976
8977 2019-04-10 Tom Tromey <tom@tromey.com>
8978
8979 * symtab.c (lookup_global_symbol_from_objfile)
8980 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8981 * objfiles.h (class separate_debug_iterator): New.
8982 (class separate_debug_range): New.
8983 (struct objfile) <separate_debug_objfiles>: New method.
8984 (objfile_separate_debug_iterate): Don't declare.
8985 * objfiles.c (separate_debug_iterator::operator++): Rename from
8986 objfile_separate_debug_iterate.
8987 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8988 iterator.
8989 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8990 iterator.
8991
8992 2019-04-10 Tom Tromey <tom@tromey.com>
8993
8994 * symfile.c (reread_symbols): Remove old comment.
8995 * objfiles.c (free_all_objfiles): Fix a typo.
8996
8997 2019-04-10 Tom Tromey <tom@tromey.com>
8998
8999 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9000 * minsyms.c (lookup_minimal_symbol): Use foreach.
9001 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9002 (lookup_minimal_symbol_solib_trampoline): Likewise.
9003 * symfile.c (reread_symbols): Use foreach.
9004
9005 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9006 Tom Tromey <tromey@adacore.com>
9007
9008 PR rust/24414:
9009 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9010 (rust_lex_int_test): Change "value" to be LONGEST.
9011 (rust_lex_tests): Add test for long integer literal.
9012
9013 2019-04-09 Tom Tromey <tromey@adacore.com>
9014
9015 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9016 to bool.
9017 (extended_remote_target::attach): Update.
9018 (remote_target::remote_notice_new_inferior): Update.
9019 (remote_target::add_current_inferior_and_thread): Update.
9020 * inferior.c (exit_inferior_1): Use "false".
9021 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9022
9023 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9024
9025 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9026 the "start" command.
9027
9028 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9029
9030 * python/py-inferior.c (infpy_thread_from_thread_handle):
9031 Adjust comments to reflect renaming of thread_from_thread_handle
9032 to thread_from_handle. Adjust keywords. Fix type error message.
9033 (inferior_object_methods): Add thread_from_handle. Retain
9034 thread_from_thread_handle, but mark it as deprecated.
9035
9036 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9037
9038 * gdbthread.h (find_thread_by_handle): Revise declaration.
9039 * thread.c (find_thread_by_handle): Likewise. Adjust
9040 implementation too.
9041 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9042 support for buffer objects as handles.
9043
9044 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9045
9046 * python/py-infthread.c (thpy_thread_handle): New function.
9047 (thread_object_methods): Register thpy_thread_handle.
9048
9049 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9050
9051 * gdbthread.h (thread_to_thread_handle): Declare.
9052 * thread.c (gdbtypes.h): Include.
9053 (thread_to_thread_handle): New function.
9054
9055 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9056 (target_thread_info_to_thread_handle): Declare.
9057 * target.c (target_thread_info_to_thread_handle): New function.
9058 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9059 * target-delegates.c: Regenerate.
9060
9061 * linux-thread-db.c (class thread_db_target): Add method
9062 thread_info_to_thread_handle.
9063 (thread_db_target::thread_info_to_thread_handle): Define.
9064 * remote.c (class remote_target): Add new method
9065 thread_info_to_thread_handle.
9066 (remote_target::thread_info_to_thread_handle): Define.
9067
9068 2019-04-08 Pedro Alves <palves@redhat.com>
9069
9070 * common/common-exceptions.c (throw_exception): Don't create
9071 named object to throw; throw directly.
9072 (throw_it): Likewise. Don't initialize gdb_exception::message
9073 here, with new; pass FMT and AP to the ctor instead.
9074 * common/common-exceptions.h: Include <string>.
9075 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9076 const char *, va_list)): New ctor. Use std::make_shared.
9077 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9078 errors)): Delete.
9079 (gdb_exception_error::gdb_exception_error(enum errors, const char
9080 *, va_list)): New.
9081 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9082 Add assertion.
9083 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9084 errors)): Delete.
9085 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9086 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9087 Add assertion.
9088
9089 2019-04-08 Tom Tromey <tom@tromey.com>
9090
9091 * valops.c (value_rtti_indirect_type): Replace throw_exception
9092 with throw.
9093 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9094 with throw.
9095 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9096 throw.
9097 * target.c (target_translate_tls_address): Replace throw_exception
9098 with throw.
9099 * stack.c (frame_apply_command_count): Replace throw_exception
9100 with throw.
9101 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9102 throw.
9103 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9104 with throw.
9105 * rs6000-tdep.c (rs6000_frame_cache)
9106 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9107 * remote.c: Replace throw_exception with throw.
9108 * record-full.c (record_full_message, record_full_wait_1)
9109 (record_full_restore): Replace throw_exception with throw.
9110 * record-btrace.c:
9111 (get_thread_current_frame_id, record_btrace_start_replaying)
9112 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9113 (cmd_record_btrace_start): Replace throw_exception with throw.
9114 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9115 throw.
9116 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9117 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9118 * linespec.c:
9119 (find_linespec_symbols): Replace throw_exception with throw.
9120 * infrun.c (displaced_step_prepare, resume): Replace
9121 throw_exception with throw.
9122 * infcmd.c (post_create_inferior): Replace throw_exception with
9123 throw.
9124 * inf-loop.c (inferior_event_handler): Replace throw_exception
9125 with throw.
9126 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9127 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9128 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9129 (get_prev_frame_always, get_frame_pc_if_available)
9130 (get_frame_address_in_block_if_available, get_frame_language):
9131 Replace throw_exception with throw.
9132 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9133 throw_exception with throw.
9134 * eval.c (fetch_subexp_value, evaluate_var_value)
9135 (evaluate_funcall, evaluate_subexp_standard): Replace
9136 throw_exception with throw.
9137 * dwarf2loc.c (call_site_find_chain)
9138 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9139 Replace throw_exception with throw.
9140 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9141 with throw.
9142 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9143 throw.
9144 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9145 * completer.c (complete_line_internal): Replace throw_exception
9146 with throw.
9147 * compile/compile-object-run.c (compile_object_run): Replace
9148 throw_exception with throw.
9149 * cli/cli-script.c (process_next_line): Replace throw_exception
9150 with throw.
9151 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9152 (btrace_enable, btrace_maint_update_pt_packets): Replace
9153 throw_exception with throw.
9154 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9155 throw_exception with throw.
9156 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9157 throw_exception with throw.
9158 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9159 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9160 * aarch64-tdep.c (aarch64_make_prologue_cache)
9161 (aarch64_make_stub_cache): Replace throw_exception with throw.
9162
9163 2019-04-08 Tom Tromey <tom@tromey.com>
9164
9165 * common/common-exceptions.c (throw_exception): Rename from
9166 throw_exception_cxx. Remove old copy. Make argument const.
9167 (throw_it): Create and throw exception objects directly.
9168 * common/common-exceptions.h (throw_exception): Make argument
9169 const.
9170 (struct gdb_exception_error): Add constructor.
9171 (struct gdb_exception_quit): Add constructor.
9172
9173 2019-04-08 Tom Tromey <tom@tromey.com>
9174
9175 * common/common-exceptions.h (exception_rethrow): Don't declare.
9176 (TRY_SJLJ): Update comment.
9177 (TRY, CATCH, END_CATCH): Remove.
9178 * common/common-exceptions.c (exception_rethrow): Remove.
9179
9180 2019-04-08 Tom Tromey <tom@tromey.com>
9181
9182 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9183 Remove.
9184 (gdb_exception_error): Rename from
9185 gdb_exception_RETURN_MASK_ERROR.
9186 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9187 (gdb_quit_bad_alloc): Update.
9188 * aarch64-tdep.c: Update.
9189 * ada-lang.c: Update.
9190 * ada-typeprint.c: Update.
9191 * ada-valprint.c: Update.
9192 * amd64-tdep.c: Update.
9193 * arch-utils.c: Update.
9194 * break-catch-throw.c: Update.
9195 * breakpoint.c: Update.
9196 * btrace.c: Update.
9197 * c-varobj.c: Update.
9198 * cli/cli-cmds.c: Update.
9199 * cli/cli-interp.c: Update.
9200 * cli/cli-script.c: Update.
9201 * common/common-exceptions.c: Update.
9202 * common/new-op.c: Update.
9203 * common/selftest.c: Update.
9204 * compile/compile-c-symbols.c: Update.
9205 * compile/compile-cplus-symbols.c: Update.
9206 * compile/compile-object-load.c: Update.
9207 * compile/compile-object-run.c: Update.
9208 * completer.c: Update.
9209 * corelow.c: Update.
9210 * cp-abi.c: Update.
9211 * cp-support.c: Update.
9212 * cp-valprint.c: Update.
9213 * darwin-nat.c: Update.
9214 * disasm-selftests.c: Update.
9215 * dtrace-probe.c: Update.
9216 * dwarf-index-cache.c: Update.
9217 * dwarf-index-write.c: Update.
9218 * dwarf2-frame-tailcall.c: Update.
9219 * dwarf2-frame.c: Update.
9220 * dwarf2loc.c: Update.
9221 * dwarf2read.c: Update.
9222 * eval.c: Update.
9223 * event-loop.c: Update.
9224 * event-top.c: Update.
9225 * exec.c: Update.
9226 * f-valprint.c: Update.
9227 * fbsd-tdep.c: Update.
9228 * frame-unwind.c: Update.
9229 * frame.c: Update.
9230 * gdbtypes.c: Update.
9231 * gnu-v3-abi.c: Update.
9232 * guile/guile-internal.h: Update.
9233 * guile/scm-block.c: Update.
9234 * guile/scm-breakpoint.c: Update.
9235 * guile/scm-cmd.c: Update.
9236 * guile/scm-disasm.c: Update.
9237 * guile/scm-frame.c: Update.
9238 * guile/scm-lazy-string.c: Update.
9239 * guile/scm-math.c: Update.
9240 * guile/scm-param.c: Update.
9241 * guile/scm-ports.c: Update.
9242 * guile/scm-pretty-print.c: Update.
9243 * guile/scm-symbol.c: Update.
9244 * guile/scm-symtab.c: Update.
9245 * guile/scm-type.c: Update.
9246 * guile/scm-value.c: Update.
9247 * i386-linux-tdep.c: Update.
9248 * i386-tdep.c: Update.
9249 * inf-loop.c: Update.
9250 * infcall.c: Update.
9251 * infcmd.c: Update.
9252 * infrun.c: Update.
9253 * jit.c: Update.
9254 * language.c: Update.
9255 * linespec.c: Update.
9256 * linux-fork.c: Update.
9257 * linux-nat.c: Update.
9258 * linux-tdep.c: Update.
9259 * linux-thread-db.c: Update.
9260 * main.c: Update.
9261 * mi/mi-cmd-break.c: Update.
9262 * mi/mi-cmd-stack.c: Update.
9263 * mi/mi-interp.c: Update.
9264 * mi/mi-main.c: Update.
9265 * objc-lang.c: Update.
9266 * p-valprint.c: Update.
9267 * parse.c: Update.
9268 * ppc-linux-tdep.c: Update.
9269 * printcmd.c: Update.
9270 * python/py-arch.c: Update.
9271 * python/py-breakpoint.c: Update.
9272 * python/py-cmd.c: Update.
9273 * python/py-finishbreakpoint.c: Update.
9274 * python/py-frame.c: Update.
9275 * python/py-framefilter.c: Update.
9276 * python/py-gdb-readline.c: Update.
9277 * python/py-inferior.c: Update.
9278 * python/py-infthread.c: Update.
9279 * python/py-lazy-string.c: Update.
9280 * python/py-linetable.c: Update.
9281 * python/py-objfile.c: Update.
9282 * python/py-param.c: Update.
9283 * python/py-prettyprint.c: Update.
9284 * python/py-progspace.c: Update.
9285 * python/py-record-btrace.c: Update.
9286 * python/py-record.c: Update.
9287 * python/py-symbol.c: Update.
9288 * python/py-type.c: Update.
9289 * python/py-unwind.c: Update.
9290 * python/py-utils.c: Update.
9291 * python/py-value.c: Update.
9292 * python/python.c: Update.
9293 * record-btrace.c: Update.
9294 * record-full.c: Update.
9295 * remote-fileio.c: Update.
9296 * remote.c: Update.
9297 * riscv-tdep.c: Update.
9298 * rs6000-aix-tdep.c: Update.
9299 * rs6000-tdep.c: Update.
9300 * rust-exp.y: Update.
9301 * rust-lang.c: Update.
9302 * s390-tdep.c: Update.
9303 * selftest-arch.c: Update.
9304 * solib-dsbt.c: Update.
9305 * solib-frv.c: Update.
9306 * solib-spu.c: Update.
9307 * solib-svr4.c: Update.
9308 * solib.c: Update.
9309 * sparc64-linux-tdep.c: Update.
9310 * stack.c: Update.
9311 * symfile-mem.c: Update.
9312 * symmisc.c: Update.
9313 * target.c: Update.
9314 * thread.c: Update.
9315 * top.c: Update.
9316 * tracefile-tfile.c: Update.
9317 * tui/tui.c: Update.
9318 * typeprint.c: Update.
9319 * unittests/cli-utils-selftests.c: Update.
9320 * unittests/parse-connection-spec-selftests.c: Update.
9321 * valops.c: Update.
9322 * valprint.c: Update.
9323 * value.c: Update.
9324 * varobj.c: Update.
9325 * windows-nat.c: Update.
9326 * x86-linux-nat.c: Update.
9327 * xml-support.c: Update.
9328
9329 2019-04-08 Tom Tromey <tom@tromey.com>
9330
9331 * xml-support.c: Use C++ exception handling.
9332 * x86-linux-nat.c: Use C++ exception handling.
9333 * windows-nat.c: Use C++ exception handling.
9334 * varobj.c: Use C++ exception handling.
9335 * value.c: Use C++ exception handling.
9336 * valprint.c: Use C++ exception handling.
9337 * valops.c: Use C++ exception handling.
9338 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9339 handling.
9340 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9341 * typeprint.c: Use C++ exception handling.
9342 * tui/tui.c: Use C++ exception handling.
9343 * tracefile-tfile.c: Use C++ exception handling.
9344 * top.c: Use C++ exception handling.
9345 * thread.c: Use C++ exception handling.
9346 * target.c: Use C++ exception handling.
9347 * symmisc.c: Use C++ exception handling.
9348 * symfile-mem.c: Use C++ exception handling.
9349 * stack.c: Use C++ exception handling.
9350 * sparc64-linux-tdep.c: Use C++ exception handling.
9351 * solib.c: Use C++ exception handling.
9352 * solib-svr4.c: Use C++ exception handling.
9353 * solib-spu.c: Use C++ exception handling.
9354 * solib-frv.c: Use C++ exception handling.
9355 * solib-dsbt.c: Use C++ exception handling.
9356 * selftest-arch.c: Use C++ exception handling.
9357 * s390-tdep.c: Use C++ exception handling.
9358 * rust-lang.c: Use C++ exception handling.
9359 * rust-exp.y: Use C++ exception handling.
9360 * rs6000-tdep.c: Use C++ exception handling.
9361 * rs6000-aix-tdep.c: Use C++ exception handling.
9362 * riscv-tdep.c: Use C++ exception handling.
9363 * remote.c: Use C++ exception handling.
9364 * remote-fileio.c: Use C++ exception handling.
9365 * record-full.c: Use C++ exception handling.
9366 * record-btrace.c: Use C++ exception handling.
9367 * python/python.c: Use C++ exception handling.
9368 * python/py-value.c: Use C++ exception handling.
9369 * python/py-utils.c: Use C++ exception handling.
9370 * python/py-unwind.c: Use C++ exception handling.
9371 * python/py-type.c: Use C++ exception handling.
9372 * python/py-symbol.c: Use C++ exception handling.
9373 * python/py-record.c: Use C++ exception handling.
9374 * python/py-record-btrace.c: Use C++ exception handling.
9375 * python/py-progspace.c: Use C++ exception handling.
9376 * python/py-prettyprint.c: Use C++ exception handling.
9377 * python/py-param.c: Use C++ exception handling.
9378 * python/py-objfile.c: Use C++ exception handling.
9379 * python/py-linetable.c: Use C++ exception handling.
9380 * python/py-lazy-string.c: Use C++ exception handling.
9381 * python/py-infthread.c: Use C++ exception handling.
9382 * python/py-inferior.c: Use C++ exception handling.
9383 * python/py-gdb-readline.c: Use C++ exception handling.
9384 * python/py-framefilter.c: Use C++ exception handling.
9385 * python/py-frame.c: Use C++ exception handling.
9386 * python/py-finishbreakpoint.c: Use C++ exception handling.
9387 * python/py-cmd.c: Use C++ exception handling.
9388 * python/py-breakpoint.c: Use C++ exception handling.
9389 * python/py-arch.c: Use C++ exception handling.
9390 * printcmd.c: Use C++ exception handling.
9391 * ppc-linux-tdep.c: Use C++ exception handling.
9392 * parse.c: Use C++ exception handling.
9393 * p-valprint.c: Use C++ exception handling.
9394 * objc-lang.c: Use C++ exception handling.
9395 * mi/mi-main.c: Use C++ exception handling.
9396 * mi/mi-interp.c: Use C++ exception handling.
9397 * mi/mi-cmd-stack.c: Use C++ exception handling.
9398 * mi/mi-cmd-break.c: Use C++ exception handling.
9399 * main.c: Use C++ exception handling.
9400 * linux-thread-db.c: Use C++ exception handling.
9401 * linux-tdep.c: Use C++ exception handling.
9402 * linux-nat.c: Use C++ exception handling.
9403 * linux-fork.c: Use C++ exception handling.
9404 * linespec.c: Use C++ exception handling.
9405 * language.c: Use C++ exception handling.
9406 * jit.c: Use C++ exception handling.
9407 * infrun.c: Use C++ exception handling.
9408 * infcmd.c: Use C++ exception handling.
9409 * infcall.c: Use C++ exception handling.
9410 * inf-loop.c: Use C++ exception handling.
9411 * i386-tdep.c: Use C++ exception handling.
9412 * i386-linux-tdep.c: Use C++ exception handling.
9413 * guile/scm-value.c: Use C++ exception handling.
9414 * guile/scm-type.c: Use C++ exception handling.
9415 * guile/scm-symtab.c: Use C++ exception handling.
9416 * guile/scm-symbol.c: Use C++ exception handling.
9417 * guile/scm-pretty-print.c: Use C++ exception handling.
9418 * guile/scm-ports.c: Use C++ exception handling.
9419 * guile/scm-param.c: Use C++ exception handling.
9420 * guile/scm-math.c: Use C++ exception handling.
9421 * guile/scm-lazy-string.c: Use C++ exception handling.
9422 * guile/scm-frame.c: Use C++ exception handling.
9423 * guile/scm-disasm.c: Use C++ exception handling.
9424 * guile/scm-cmd.c: Use C++ exception handling.
9425 * guile/scm-breakpoint.c: Use C++ exception handling.
9426 * guile/scm-block.c: Use C++ exception handling.
9427 * guile/guile-internal.h: Use C++ exception handling.
9428 * gnu-v3-abi.c: Use C++ exception handling.
9429 * gdbtypes.c: Use C++ exception handling.
9430 * frame.c: Use C++ exception handling.
9431 * frame-unwind.c: Use C++ exception handling.
9432 * fbsd-tdep.c: Use C++ exception handling.
9433 * f-valprint.c: Use C++ exception handling.
9434 * exec.c: Use C++ exception handling.
9435 * event-top.c: Use C++ exception handling.
9436 * event-loop.c: Use C++ exception handling.
9437 * eval.c: Use C++ exception handling.
9438 * dwarf2read.c: Use C++ exception handling.
9439 * dwarf2loc.c: Use C++ exception handling.
9440 * dwarf2-frame.c: Use C++ exception handling.
9441 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9442 * dwarf-index-write.c: Use C++ exception handling.
9443 * dwarf-index-cache.c: Use C++ exception handling.
9444 * dtrace-probe.c: Use C++ exception handling.
9445 * disasm-selftests.c: Use C++ exception handling.
9446 * darwin-nat.c: Use C++ exception handling.
9447 * cp-valprint.c: Use C++ exception handling.
9448 * cp-support.c: Use C++ exception handling.
9449 * cp-abi.c: Use C++ exception handling.
9450 * corelow.c: Use C++ exception handling.
9451 * completer.c: Use C++ exception handling.
9452 * compile/compile-object-run.c: Use C++ exception handling.
9453 * compile/compile-object-load.c: Use C++ exception handling.
9454 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9455 * compile/compile-c-symbols.c: Use C++ exception handling.
9456 * common/selftest.c: Use C++ exception handling.
9457 * common/new-op.c: Use C++ exception handling.
9458 * cli/cli-script.c: Use C++ exception handling.
9459 * cli/cli-interp.c: Use C++ exception handling.
9460 * cli/cli-cmds.c: Use C++ exception handling.
9461 * c-varobj.c: Use C++ exception handling.
9462 * btrace.c: Use C++ exception handling.
9463 * breakpoint.c: Use C++ exception handling.
9464 * break-catch-throw.c: Use C++ exception handling.
9465 * arch-utils.c: Use C++ exception handling.
9466 * amd64-tdep.c: Use C++ exception handling.
9467 * ada-valprint.c: Use C++ exception handling.
9468 * ada-typeprint.c: Use C++ exception handling.
9469 * ada-lang.c: Use C++ exception handling.
9470 * aarch64-tdep.c: Use C++ exception handling.
9471
9472 2019-04-08 Tom Tromey <tom@tromey.com>
9473
9474 * xml-support.c (gdb_xml_parser::parse): Update.
9475 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9476 * value.c (show_convenience): Update.
9477 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9478 (test_parse_flags_qcs): Update.
9479 * thread.c (thr_try_catch_cmd): Update.
9480 * target.c (target_translate_tls_address): Update.
9481 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9482 (info_frame_command_core, frame_apply_command_count): Update.
9483 * rust-exp.y (rust_lex_exception_test): Update.
9484 * riscv-tdep.c (riscv_print_one_register_info): Update.
9485 * remote.c (remote_target::enable_btrace): Update.
9486 * record-btrace.c (record_btrace_enable_warn): Update.
9487 * python/py-utils.c (gdbpy_convert_exception): Update.
9488 * printcmd.c (do_one_display, print_variable_and_value): Update.
9489 * mi/mi-main.c (mi_print_exception): Update.
9490 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9491 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9492 * linux-nat.c (linux_nat_target::attach): Update.
9493 * linux-fork.c (class scoped_switch_fork_info): Update.
9494 * infrun.c (displaced_step_prepare): Update.
9495 * infcall.c (call_function_by_hand_dummy): Update.
9496 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9497 * gnu-v3-abi.c (print_one_vtable): Update.
9498 * frame.c (get_prev_frame_always): Update.
9499 * f-valprint.c (info_common_command_for_block): Update.
9500 * exec.c (try_open_exec_file): Update.
9501 * exceptions.c (print_exception, exception_print)
9502 (exception_fprintf, exception_print_same): Update.
9503 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9504 * dwarf-index-cache.c (index_cache::store)
9505 (index_cache::lookup_gdb_index): Update.
9506 * darwin-nat.c (maybe_cache_shell): Update.
9507 * cp-valprint.c (cp_print_value_fields): Update.
9508 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9509 (gcc_cplus_symbol_address): Update.
9510 * compile/compile-c-symbols.c (gcc_convert_symbol)
9511 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9512 * common/selftest.c: Update.
9513 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9514 a std::string.
9515 (exception_try_scope_entry, exception_try_scope_exit): Don't
9516 declare.
9517 (struct exception_try_scope): Remove.
9518 (TRY): Don't use exception_try_scope.
9519 (struct gdb_exception): Add constructor, operator=.
9520 <what>: New method.
9521 (struct gdb_exception_RETURN_MASK_ALL)
9522 (struct gdb_exception_RETURN_MASK_ERROR)
9523 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9524 (struct gdb_quit_bad_alloc): Update.
9525 * common/common-exceptions.c (exception_none): Change
9526 initializer.
9527 (struct catcher) <state, exception>: Initialize inline.
9528 <prev>: Remove member.
9529 (current_catcher): Remove.
9530 (catchers): New global.
9531 (exceptions_state_mc_init): Simplify.
9532 (catcher_pop): Remove.
9533 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9534 (try_scope_depth, exception_try_scope_entry)
9535 (exception_try_scope_exit): Remove.
9536 (throw_exception_sjlj): Update.
9537 (exception_messages, exception_messages_size): Remove.
9538 (throw_it): Simplify.
9539 (gdb_exception_sliced_copy): Remove.
9540 (throw_exception_cxx): Update.
9541 * cli/cli-script.c (script_from_file): Update.
9542 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9543 Update.
9544 * ada-valprint.c (ada_val_print): Update.
9545 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9546 (create_excep_cond_exprs): Update.
9547
9548 2019-04-08 Tom Tromey <tom@tromey.com>
9549
9550 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9551 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9552 (TRY, CATCH, END_CATCH): Remove some definitions.
9553 * common/common-exceptions.c: Don't use GDB_XCPT.
9554 (catcher_list_size): Remove.
9555 (throw_exception, throw_it): Simplify.
9556
9557 2019-04-05 Tom Tromey <tom@tromey.com>
9558
9559 Revert the header-sorting patch.
9560 * ft32-tdep.c: Revert.
9561 * frv-tdep.c: Revert.
9562 * frv-linux-tdep.c: Revert.
9563 * frame.c: Revert.
9564 * frame-unwind.c: Revert.
9565 * frame-base.c: Revert.
9566 * fork-child.c: Revert.
9567 * findvar.c: Revert.
9568 * findcmd.c: Revert.
9569 * filesystem.c: Revert.
9570 * filename-seen-cache.h: Revert.
9571 * filename-seen-cache.c: Revert.
9572 * fbsd-tdep.c: Revert.
9573 * fbsd-nat.h: Revert.
9574 * fbsd-nat.c: Revert.
9575 * f-valprint.c: Revert.
9576 * f-typeprint.c: Revert.
9577 * f-lang.c: Revert.
9578 * extension.h: Revert.
9579 * extension.c: Revert.
9580 * extension-priv.h: Revert.
9581 * expprint.c: Revert.
9582 * exec.h: Revert.
9583 * exec.c: Revert.
9584 * exceptions.c: Revert.
9585 * event-top.c: Revert.
9586 * event-loop.c: Revert.
9587 * eval.c: Revert.
9588 * elfread.c: Revert.
9589 * dwarf2read.h: Revert.
9590 * dwarf2read.c: Revert.
9591 * dwarf2loc.c: Revert.
9592 * dwarf2expr.h: Revert.
9593 * dwarf2expr.c: Revert.
9594 * dwarf2-frame.c: Revert.
9595 * dwarf2-frame-tailcall.c: Revert.
9596 * dwarf-index-write.h: Revert.
9597 * dwarf-index-write.c: Revert.
9598 * dwarf-index-common.c: Revert.
9599 * dwarf-index-cache.h: Revert.
9600 * dwarf-index-cache.c: Revert.
9601 * dummy-frame.c: Revert.
9602 * dtrace-probe.c: Revert.
9603 * disasm.h: Revert.
9604 * disasm.c: Revert.
9605 * disasm-selftests.c: Revert.
9606 * dictionary.c: Revert.
9607 * dicos-tdep.c: Revert.
9608 * demangle.c: Revert.
9609 * dcache.h: Revert.
9610 * dcache.c: Revert.
9611 * darwin-nat.h: Revert.
9612 * darwin-nat.c: Revert.
9613 * darwin-nat-info.c: Revert.
9614 * d-valprint.c: Revert.
9615 * d-namespace.c: Revert.
9616 * d-lang.c: Revert.
9617 * ctf.c: Revert.
9618 * csky-tdep.c: Revert.
9619 * csky-linux-tdep.c: Revert.
9620 * cris-tdep.c: Revert.
9621 * cris-linux-tdep.c: Revert.
9622 * cp-valprint.c: Revert.
9623 * cp-support.c: Revert.
9624 * cp-namespace.c: Revert.
9625 * cp-abi.c: Revert.
9626 * corelow.c: Revert.
9627 * corefile.c: Revert.
9628 * continuations.c: Revert.
9629 * completer.h: Revert.
9630 * completer.c: Revert.
9631 * complaints.c: Revert.
9632 * coffread.c: Revert.
9633 * coff-pe-read.c: Revert.
9634 * cli-out.h: Revert.
9635 * cli-out.c: Revert.
9636 * charset.c: Revert.
9637 * c-varobj.c: Revert.
9638 * c-valprint.c: Revert.
9639 * c-typeprint.c: Revert.
9640 * c-lang.c: Revert.
9641 * buildsym.c: Revert.
9642 * buildsym-legacy.c: Revert.
9643 * build-id.h: Revert.
9644 * build-id.c: Revert.
9645 * btrace.c: Revert.
9646 * bsd-uthread.c: Revert.
9647 * breakpoint.h: Revert.
9648 * breakpoint.c: Revert.
9649 * break-catch-throw.c: Revert.
9650 * break-catch-syscall.c: Revert.
9651 * break-catch-sig.c: Revert.
9652 * blockframe.c: Revert.
9653 * block.c: Revert.
9654 * bfin-tdep.c: Revert.
9655 * bfin-linux-tdep.c: Revert.
9656 * bfd-target.c: Revert.
9657 * bcache.c: Revert.
9658 * ax-general.c: Revert.
9659 * ax-gdb.h: Revert.
9660 * ax-gdb.c: Revert.
9661 * avr-tdep.c: Revert.
9662 * auxv.c: Revert.
9663 * auto-load.c: Revert.
9664 * arm-wince-tdep.c: Revert.
9665 * arm-tdep.c: Revert.
9666 * arm-symbian-tdep.c: Revert.
9667 * arm-pikeos-tdep.c: Revert.
9668 * arm-obsd-tdep.c: Revert.
9669 * arm-nbsd-tdep.c: Revert.
9670 * arm-nbsd-nat.c: Revert.
9671 * arm-linux-tdep.c: Revert.
9672 * arm-linux-nat.c: Revert.
9673 * arm-fbsd-tdep.c: Revert.
9674 * arm-fbsd-nat.c: Revert.
9675 * arm-bsd-tdep.c: Revert.
9676 * arch-utils.c: Revert.
9677 * arc-tdep.c: Revert.
9678 * arc-newlib-tdep.c: Revert.
9679 * annotate.h: Revert.
9680 * annotate.c: Revert.
9681 * amd64-windows-tdep.c: Revert.
9682 * amd64-windows-nat.c: Revert.
9683 * amd64-tdep.c: Revert.
9684 * amd64-sol2-tdep.c: Revert.
9685 * amd64-obsd-tdep.c: Revert.
9686 * amd64-obsd-nat.c: Revert.
9687 * amd64-nbsd-tdep.c: Revert.
9688 * amd64-nbsd-nat.c: Revert.
9689 * amd64-nat.c: Revert.
9690 * amd64-linux-tdep.c: Revert.
9691 * amd64-linux-nat.c: Revert.
9692 * amd64-fbsd-tdep.c: Revert.
9693 * amd64-fbsd-nat.c: Revert.
9694 * amd64-dicos-tdep.c: Revert.
9695 * amd64-darwin-tdep.c: Revert.
9696 * amd64-bsd-nat.c: Revert.
9697 * alpha-tdep.c: Revert.
9698 * alpha-obsd-tdep.c: Revert.
9699 * alpha-nbsd-tdep.c: Revert.
9700 * alpha-mdebug-tdep.c: Revert.
9701 * alpha-linux-tdep.c: Revert.
9702 * alpha-linux-nat.c: Revert.
9703 * alpha-bsd-tdep.c: Revert.
9704 * alpha-bsd-nat.c: Revert.
9705 * aix-thread.c: Revert.
9706 * agent.c: Revert.
9707 * addrmap.c: Revert.
9708 * ada-varobj.c: Revert.
9709 * ada-valprint.c: Revert.
9710 * ada-typeprint.c: Revert.
9711 * ada-tasks.c: Revert.
9712 * ada-lang.c: Revert.
9713 * aarch64-tdep.c: Revert.
9714 * aarch64-ravenscar-thread.c: Revert.
9715 * aarch64-newlib-tdep.c: Revert.
9716 * aarch64-linux-tdep.c: Revert.
9717 * aarch64-linux-nat.c: Revert.
9718 * aarch64-fbsd-tdep.c: Revert.
9719 * aarch64-fbsd-nat.c: Revert.
9720 * aarch32-linux-nat.c: Revert.
9721
9722 2019-04-05 Tom Tromey <tom@tromey.com>
9723
9724 * ft32-tdep.c: Sort headers.
9725 * frv-tdep.c: Sort headers.
9726 * frv-linux-tdep.c: Sort headers.
9727 * frame.c: Sort headers.
9728 * frame-unwind.c: Sort headers.
9729 * frame-base.c: Sort headers.
9730 * fork-child.c: Sort headers.
9731 * findvar.c: Sort headers.
9732 * findcmd.c: Sort headers.
9733 * filesystem.c: Sort headers.
9734 * filename-seen-cache.h: Sort headers.
9735 * filename-seen-cache.c: Sort headers.
9736 * fbsd-tdep.c: Sort headers.
9737 * fbsd-nat.h: Sort headers.
9738 * fbsd-nat.c: Sort headers.
9739 * f-valprint.c: Sort headers.
9740 * f-typeprint.c: Sort headers.
9741 * f-lang.c: Sort headers.
9742 * extension.h: Sort headers.
9743 * extension.c: Sort headers.
9744 * extension-priv.h: Sort headers.
9745 * expprint.c: Sort headers.
9746 * exec.h: Sort headers.
9747 * exec.c: Sort headers.
9748 * exceptions.c: Sort headers.
9749 * event-top.c: Sort headers.
9750 * event-loop.c: Sort headers.
9751 * eval.c: Sort headers.
9752 * elfread.c: Sort headers.
9753 * dwarf2read.h: Sort headers.
9754 * dwarf2read.c: Sort headers.
9755 * dwarf2loc.c: Sort headers.
9756 * dwarf2expr.h: Sort headers.
9757 * dwarf2expr.c: Sort headers.
9758 * dwarf2-frame.c: Sort headers.
9759 * dwarf2-frame-tailcall.c: Sort headers.
9760 * dwarf-index-write.h: Sort headers.
9761 * dwarf-index-write.c: Sort headers.
9762 * dwarf-index-common.c: Sort headers.
9763 * dwarf-index-cache.h: Sort headers.
9764 * dwarf-index-cache.c: Sort headers.
9765 * dummy-frame.c: Sort headers.
9766 * dtrace-probe.c: Sort headers.
9767 * disasm.h: Sort headers.
9768 * disasm.c: Sort headers.
9769 * disasm-selftests.c: Sort headers.
9770 * dictionary.c: Sort headers.
9771 * dicos-tdep.c: Sort headers.
9772 * demangle.c: Sort headers.
9773 * dcache.h: Sort headers.
9774 * dcache.c: Sort headers.
9775 * darwin-nat.h: Sort headers.
9776 * darwin-nat.c: Sort headers.
9777 * darwin-nat-info.c: Sort headers.
9778 * d-valprint.c: Sort headers.
9779 * d-namespace.c: Sort headers.
9780 * d-lang.c: Sort headers.
9781 * ctf.c: Sort headers.
9782 * csky-tdep.c: Sort headers.
9783 * csky-linux-tdep.c: Sort headers.
9784 * cris-tdep.c: Sort headers.
9785 * cris-linux-tdep.c: Sort headers.
9786 * cp-valprint.c: Sort headers.
9787 * cp-support.c: Sort headers.
9788 * cp-namespace.c: Sort headers.
9789 * cp-abi.c: Sort headers.
9790 * corelow.c: Sort headers.
9791 * corefile.c: Sort headers.
9792 * continuations.c: Sort headers.
9793 * completer.h: Sort headers.
9794 * completer.c: Sort headers.
9795 * complaints.c: Sort headers.
9796 * coffread.c: Sort headers.
9797 * coff-pe-read.c: Sort headers.
9798 * cli-out.h: Sort headers.
9799 * cli-out.c: Sort headers.
9800 * charset.c: Sort headers.
9801 * c-varobj.c: Sort headers.
9802 * c-valprint.c: Sort headers.
9803 * c-typeprint.c: Sort headers.
9804 * c-lang.c: Sort headers.
9805 * buildsym.c: Sort headers.
9806 * buildsym-legacy.c: Sort headers.
9807 * build-id.h: Sort headers.
9808 * build-id.c: Sort headers.
9809 * btrace.c: Sort headers.
9810 * bsd-uthread.c: Sort headers.
9811 * breakpoint.h: Sort headers.
9812 * breakpoint.c: Sort headers.
9813 * break-catch-throw.c: Sort headers.
9814 * break-catch-syscall.c: Sort headers.
9815 * break-catch-sig.c: Sort headers.
9816 * blockframe.c: Sort headers.
9817 * block.c: Sort headers.
9818 * bfin-tdep.c: Sort headers.
9819 * bfin-linux-tdep.c: Sort headers.
9820 * bfd-target.c: Sort headers.
9821 * bcache.c: Sort headers.
9822 * ax-general.c: Sort headers.
9823 * ax-gdb.h: Sort headers.
9824 * ax-gdb.c: Sort headers.
9825 * avr-tdep.c: Sort headers.
9826 * auxv.c: Sort headers.
9827 * auto-load.c: Sort headers.
9828 * arm-wince-tdep.c: Sort headers.
9829 * arm-tdep.c: Sort headers.
9830 * arm-symbian-tdep.c: Sort headers.
9831 * arm-pikeos-tdep.c: Sort headers.
9832 * arm-obsd-tdep.c: Sort headers.
9833 * arm-nbsd-tdep.c: Sort headers.
9834 * arm-nbsd-nat.c: Sort headers.
9835 * arm-linux-tdep.c: Sort headers.
9836 * arm-linux-nat.c: Sort headers.
9837 * arm-fbsd-tdep.c: Sort headers.
9838 * arm-fbsd-nat.c: Sort headers.
9839 * arm-bsd-tdep.c: Sort headers.
9840 * arch-utils.c: Sort headers.
9841 * arc-tdep.c: Sort headers.
9842 * arc-newlib-tdep.c: Sort headers.
9843 * annotate.h: Sort headers.
9844 * annotate.c: Sort headers.
9845 * amd64-windows-tdep.c: Sort headers.
9846 * amd64-windows-nat.c: Sort headers.
9847 * amd64-tdep.c: Sort headers.
9848 * amd64-sol2-tdep.c: Sort headers.
9849 * amd64-obsd-tdep.c: Sort headers.
9850 * amd64-obsd-nat.c: Sort headers.
9851 * amd64-nbsd-tdep.c: Sort headers.
9852 * amd64-nbsd-nat.c: Sort headers.
9853 * amd64-nat.c: Sort headers.
9854 * amd64-linux-tdep.c: Sort headers.
9855 * amd64-linux-nat.c: Sort headers.
9856 * amd64-fbsd-tdep.c: Sort headers.
9857 * amd64-fbsd-nat.c: Sort headers.
9858 * amd64-dicos-tdep.c: Sort headers.
9859 * amd64-darwin-tdep.c: Sort headers.
9860 * amd64-bsd-nat.c: Sort headers.
9861 * alpha-tdep.c: Sort headers.
9862 * alpha-obsd-tdep.c: Sort headers.
9863 * alpha-nbsd-tdep.c: Sort headers.
9864 * alpha-mdebug-tdep.c: Sort headers.
9865 * alpha-linux-tdep.c: Sort headers.
9866 * alpha-linux-nat.c: Sort headers.
9867 * alpha-bsd-tdep.c: Sort headers.
9868 * alpha-bsd-nat.c: Sort headers.
9869 * aix-thread.c: Sort headers.
9870 * agent.c: Sort headers.
9871 * addrmap.c: Sort headers.
9872 * ada-varobj.c: Sort headers.
9873 * ada-valprint.c: Sort headers.
9874 * ada-typeprint.c: Sort headers.
9875 * ada-tasks.c: Sort headers.
9876 * ada-lang.c: Sort headers.
9877 * aarch64-tdep.c: Sort headers.
9878 * aarch64-ravenscar-thread.c: Sort headers.
9879 * aarch64-newlib-tdep.c: Sort headers.
9880 * aarch64-linux-tdep.c: Sort headers.
9881 * aarch64-linux-nat.c: Sort headers.
9882 * aarch64-fbsd-tdep.c: Sort headers.
9883 * aarch64-fbsd-nat.c: Sort headers.
9884 * aarch32-linux-nat.c: Sort headers.
9885
9886 2019-04-04 Tom Tromey <tom@tromey.com>
9887
9888 * varobj.c (varobj_create): Update.
9889 * rust-exp.y (struct rust_parser) <update_innermost_block,
9890 lookup_symbol>: New methods.
9891 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9892 Rename.
9893 (rust_parser::rust_lookup_type)
9894 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9895 * printcmd.c (display_command, do_one_display): Update.
9896 * parser-defs.h (struct parser_state) <parser_state>: Add
9897 "tracker" parameter.
9898 (block_tracker): New member.
9899 (class innermost_block_tracker) <innermost_block_tracker>: Add
9900 "types" parameter.
9901 <reset>: Remove method.
9902 (innermost_block): Don't declare.
9903 (null_post_parser): Update.
9904 * parse.c (innermost_block): Remove global.
9905 (write_dollar_variable): Update.
9906 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9907 Remove "tracker_types" parameter.
9908 (parse_expression): Add "tracker" parameter.
9909 (parse_expression_for_completion): Update.
9910 (null_post_parser): Add "tracker" parameter.
9911 * p-exp.y: Update rules.
9912 * m2-exp.y: Update rules.
9913 * language.h (struct language_defn) <la_post_parser>: Add
9914 "tracker" parameter.
9915 * go-exp.y: Update rules.
9916 * f-exp.y: Update rules.
9917 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9918 parameter.
9919 * d-exp.y: Update rules.
9920 * c-exp.y: Update rules.
9921 * breakpoint.c (set_breakpoint_condition): Create an
9922 innermost_block_tracker.
9923 (watch_command_1): Likewise.
9924 * ada-lang.c (resolve): Add "tracker" parameter.
9925 (resolve_subexp): Likewise.
9926 * ada-exp.y (write_var_from_sym): Update.
9927
9928 2019-04-04 Tom Tromey <tom@tromey.com>
9929
9930 * type-stack.h: New file.
9931 * type-stack.c: New file.
9932 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9933 type-stack.h.
9934 (insert_into_type_stack, insert_type, push_type, push_type_int)
9935 (insert_type_address_space, pop_type, pop_type_int)
9936 (pop_typelist, pop_type_stack, append_type_stack)
9937 (push_type_stack, get_type_stack, push_typelist)
9938 (follow_type_instance_flags, follow_types): Don't declare.
9939 * parse.c (type_stack): Remove global.
9940 (parse_exp_in_context): Update.
9941 (insert_into_type_stack, insert_type, push_type, push_type_int)
9942 (insert_type_address_space, pop_type, pop_type_int)
9943 (pop_typelist, pop_type_stack, append_type_stack)
9944 (push_type_stack, get_type_stack, push_typelist)
9945 (follow_type_instance_flags, follow_types): Remove (moved to
9946 type-stack.c).
9947 * f-exp.y (type_stack): New global.
9948 Update rules.
9949 (push_kind_type, f_parse): Update.
9950 * d-exp.y (type_stack): New global.
9951 Update rules.
9952 (d_parse): Update.
9953 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9954 Update rules.
9955 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9956 (HFILES_NO_SRCDIR): Add type-stack.h.
9957
9958 2019-04-04 Tom Tromey <tom@tromey.com>
9959
9960 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9961 (rust_parser::convert_ast_to_expression, rust_parse)
9962 (rust_lex_test_completion, rust_lex_tests): Update.
9963 * parser-defs.h (struct expr_completion_state): New.
9964 (struct parser_state) <parser_state>: Add completion parameter.
9965 <mark_struct_expression, mark_completion_tag>: New methods.
9966 <parse_completion, m_completion_state>: New members.
9967 (prefixify_expression, null_post_parser): Update.
9968 (mark_struct_expression, mark_completion_tag): Don't declare.
9969 * parse.c (parse_completion, expout_last_struct)
9970 (expout_tag_completion_type, expout_completion_name): Remove
9971 globals.
9972 (parser_state::mark_struct_expression)
9973 (parser_state::mark_completion_tag): Now methods.
9974 (prefixify_expression): Add last_struct parameter.
9975 (prefixify_subexp): Likewise.
9976 (parse_exp_1): Update.
9977 (parse_exp_in_context): Add cstate parameter. Update.
9978 (parse_expression_for_completion): Create an
9979 expr_completion_state.
9980 (null_post_parser): Add "completion" parameter.
9981 * p-exp.y: Update rules.
9982 (yylex): Update.
9983 * language.h (struct language_defn) <la_post_parser>: Add
9984 "completing" parameter.
9985 * go-exp.y: Update rules.
9986 (lex_one_token): Update.
9987 * expression.h (parse_completion): Don't declare.
9988 * d-exp.y: Update rules.
9989 (lex_one_token): Update rules.
9990 * c-exp.y: Update rules.
9991 (lex_one_token): Update.
9992 * ada-lang.c (resolve): Add "parse_completion" parameter.
9993 (resolve_subexp): Likewise.
9994 (ada_resolve_function): Likewise.
9995
9996 2019-04-04 Tom Tromey <tom@tromey.com>
9997
9998 * parser-defs.h (struct parser_state) <start_arglist,
9999 end_arglist>: New methods.
10000 <arglist_len, m_funcall_chain>: New members.
10001 (arglist_len, start_arglist, end_arglist): Don't declare.
10002 * parse.c (arglist_len, funcall_chain): Remove global.
10003 (start_arglist, end_arglist): Remove functions.
10004 (parse_exp_in_context): Update.
10005 * p-exp.y: Update rules.
10006 * m2-exp.y: Update rules.
10007 * go-exp.y: Update rules.
10008 * f-exp.y: Update rules.
10009 * d-exp.y: Update rules.
10010 * c-exp.y: Update rules.
10011
10012 2019-04-04 Tom Tromey <tom@tromey.com>
10013
10014 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10015 lex_operator, push_back>: New methods.
10016 Update all rules.
10017 (rust_parser::lex_hex, lex_escape): Rename and update.
10018 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10019 (rust_parser::lex_operator): Rename and update.
10020 (rust_parser::lex_number, rustyylex, rustyyerror)
10021 (rust_lex_test_init, rust_lex_test_sequence)
10022 (rust_lex_test_push_back, rust_lex_tests): Update.
10023 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10024 parameter.
10025 <lexptr, prev_lexptr>: New members.
10026 (lexptr, prev_lexptr): Don't declare.
10027 * parse.c (lexptr, prev_lexptr): Remove globals.
10028 (parse_exp_in_context): Update.
10029 * p-exp.y (yylex, yyerror): Update.
10030 * m2-exp.y (parse_number, yylex, yyerror): Update.
10031 * go-exp.y (lex_one_token, yyerror): Update.
10032 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10033 * d-exp.y (lex_one_token, yyerror): Update.
10034 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10035 (lex_one_token, yyerror): Update.
10036 * ada-lex.l (YY_INPUT): Update.
10037 (rewind_to_char): Update.
10038 * ada-exp.y (yyerror): Update.
10039
10040 2019-04-04 Tom Tromey <tom@tromey.com>
10041
10042 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10043 * parser-defs.h (struct parser_state) <parser_state>: Add new
10044 parameter.
10045 <comma_terminates>: New member.
10046 (comma_terminates): Don't declare global.
10047 * parse.c (comma_terminates): Remove global.
10048 (parse_exp_in_context): Update.
10049 * p-exp.y (yylex): Update.
10050 * m2-exp.y (yylex): Update.
10051 * go-exp.y (lex_one_token): Update.
10052 * f-exp.y (yylex): Update.
10053 * d-exp.y (lex_one_token): Update.
10054 * c-exp.y (lex_one_token): Update.
10055 * ada-lex.l: Update.
10056
10057 2019-04-04 Tom Tromey <tom@tromey.com>
10058
10059 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10060 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10061 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10062 * parser-defs.h (paren_depth): Don't declare.
10063 * parse.c (paren_depth): Remove global.
10064 (parse_exp_in_context): Update.
10065 * p-exp.y (paren_depth): New global.
10066 (pascal_parse): Initialize it.
10067 * m2-exp.y (paren_depth): New global.
10068 (m2_parse): Initialize it.
10069 * go-exp.y (paren_depth): New global.
10070 (go_parse): Initialize it.
10071 * f-exp.y (paren_depth): New global.
10072 (f_parse): Initialize it.
10073 * d-exp.y (paren_depth): New global.
10074 (d_parse): Initialize it.
10075 * c-exp.y (paren_depth): New global.
10076 (c_parse): Initialize it.
10077 * ada-lex.l (paren_depth): New global.
10078 (lexer_init): Initialize it.
10079
10080 2019-04-04 Tom Tromey <tom@tromey.com>
10081
10082 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10083 (rust_parser::convert_ast_to_type)
10084 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10085 * parser-defs.h (struct parser_state) <parser_state>: Add
10086 parameters. Initialize new members.
10087 <expression_context_block, expression_context_pc>: New members.
10088 * parse.c (expression_context_block, expression_context_pc):
10089 Remove globals.
10090 (parse_exp_in_context): Update.
10091 * p-exp.y: Update all rules.
10092 (yylex): Update.
10093 * m2-exp.y: Update all rules.
10094 (yylex): Update.
10095 * go-exp.y (yylex): Update.
10096 * f-exp.y (yylex): Update.
10097 * d-exp.y: Update all rules.
10098 (yylex): Update.
10099 * c-exp.y: Update all rules.
10100 (lex_one_token, classify_name, yylex, c_parse): Update.
10101 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10102
10103 2019-04-04 Tom Tromey <tom@tromey.com>
10104
10105 * gdbarch.h, gdbarch.c: Rebuild.
10106 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10107 * stap-probe.h:
10108 (struct stap_parse_info): Replace "parser_state" with
10109 "expr_builder".
10110 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10111 (parser_state): New class.
10112 * parse.c (expr_builder): Rename.
10113 (expr_builder::release): Rename.
10114 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10115 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10116 (write_exp_elt_longcst, write_exp_elt_floatcst)
10117 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10118 (write_exp_string_vector, write_exp_bitstring)
10119 (write_exp_msymbol, mark_struct_expression)
10120 (write_dollar_variable)
10121 (insert_type_address_space, increase_expout_size): Replace
10122 "parser_state" with "expr_builder".
10123 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10124 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10125 "parser_state" with "expr_builder".
10126
10127 2019-04-04 Tom Tromey <tom@tromey.com>
10128
10129 * rust-exp.y: Replace "parse_language" with method call.
10130 * p-exp.y:
10131 (yylex): Replace "parse_language" with method call.
10132 * m2-exp.y:
10133 (yylex): Replace "parse_language" with method call.
10134 * go-exp.y (classify_name): Replace "parse_language" with method
10135 call.
10136 * f-exp.y (yylex): Replace "parse_language" with method call.
10137 * d-exp.y (lex_one_token): Replace "parse_language" with method
10138 call.
10139 * c-exp.y:
10140 (lex_one_token, classify_name, yylex): Replace "parse_language"
10141 with method call.
10142 * ada-exp.y (find_primitive_type, type_char)
10143 (type_system_address): Replace "parse_language" with method call.
10144
10145 2019-04-04 Tom Tromey <tom@tromey.com>
10146
10147 * rust-exp.y: Replace "parse_gdbarch" with method call.
10148 * parse.c (write_dollar_variable, insert_type_address_space):
10149 Replace "parse_gdbarch" with method call.
10150 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10151 call.
10152 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10153 call.
10154 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10155 "parse_gdbarch" with method call.
10156 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10157 with method call.
10158 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10159 "parse_gdbarch" with method call.
10160 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10161 "parse_gdbarch" with method call.
10162 * c-exp.y (parse_type, parse_number, classify_name): Replace
10163 "parse_gdbarch" with method call.
10164 * ada-lex.l: Replace "parse_gdbarch" with method call.
10165 * ada-exp.y (parse_type, find_primitive_type, type_char)
10166 (type_system_address): Replace "parse_gdbarch" with method call.
10167
10168 2019-04-04 Tom Tromey <tom@tromey.com>
10169
10170 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10171 * stap-probe.c (stap_parse_argument): Update.
10172 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10173 initial_size parameter.
10174 * rust-exp.y (rust_lex_tests): Update.
10175 * parse.c (parser_state): Update.
10176 (parse_exp_in_context): Update.
10177 * parser-defs.h (struct parser_state) <parser_state>: Remove
10178 "initial_size" parameter.
10179
10180 2019-04-04 Tom Tromey <tom@tromey.com>
10181
10182 * parser-defs.h (increase_expout_size): Don't declare.
10183 * parse.c (increase_expout_size): Now static.
10184
10185 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10186
10187 * gnu-nat.c (gnu_nat_target::wait): Fix
10188 target_waitstatus_to_string call.
10189
10190 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10191
10192 * eval.c (evaluate_subexp_standard): Handle internal functions
10193 during Fortran function call handling.
10194
10195 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10196
10197 * NEWS: Mention new internal functions.
10198 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10199 (read_base_type): Use dwarf2_init_complex_target_type.
10200 * value.c (creal_internal_fn): New function.
10201 (cimag_internal_fn): New function.
10202 (_initialize_values): Register new internal functions.
10203
10204 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10205
10206 * infrun.c (stop_all_threads): If debug_infrun, always
10207 trace the wait status after wait_one, using
10208 target_waitstatus_to_string and target_pid_to_str.
10209 (handle_inferior_event): Replace various trace of
10210 wait status kind by a single trace.
10211 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10212 wait status kind image by target_waitstatus_to_string.
10213 * target/waitstatus.c (target_waitstatus_to_string): Fix
10214 obsolete comment.
10215
10216 2019-04-01 Tom Tromey <tromey@adacore.com>
10217
10218 PR symtab/23331:
10219 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10220
10221 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10222 Pedro Alves <palves@redhat.com>
10223
10224 * top.c (quit_force): Call 'finalize_values'.
10225 * value.c (finalize_values): New function.
10226 * value.h (finalize_values): Declare.
10227
10228 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10229
10230 * NEWS: Announce $_gdb_major and $_gdb_minor.
10231
10232 * top.c (init_gdb_version_vars): New function.
10233 (gdb_init): Call init_gdb_version_vars.
10234
10235 2019-03-29 Tom Tromey <tromey@adacore.com>
10236
10237 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10238 help text. Remove dead code.
10239
10240 2019-03-29 Keith Seitz <keiths@redhat.com>
10241
10242 From Siddhesh Poyarekar:
10243 * f-lang.h (f77_get_upperbound): Return LONGEST.
10244 (f77_get_lowerbound): Likewise.
10245 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10246 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10247 print them.
10248 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10249 plongest to format print it.
10250 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10251 (f77_get_upperbound): Likewise.
10252 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10253 LOWER_BOUND to LONGEST.
10254 (f77_create_arrayprint_offset_tbl): Likewise.
10255
10256 2019-03-29 Keith Seitz <keiths@redhat.com>
10257
10258 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10259 %s/pulongest for TYPE_LENGTH instead of %d in format
10260 strings.
10261 * ada-typerint.c (ada_print_type): Likewise.
10262 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10263 * compile/compile-c-support.c (generate_register_struct): Likewise.
10264 * gdbtypes.c (recursive_dump_type): Likewise.
10265 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10266 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10267 instead of %d in format strings.
10268 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10269 to std::min to ULONGEST.
10270 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10271 instead of %d in format strings.
10272 * tracepoint.c (info_scope_command): Likewise.
10273 * typeprint.c (print_offset_data::update)
10274 (print_offset_data::finish): Likewise.
10275 * xtensa-tdep.c (xtensa_store_return_value)
10276 (xtensa_push_dummy_call): Likewise.
10277
10278 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10279
10280 * windows-nat.c (display_selector): Fixed format specifications
10281 for 64-bit Cygwin.
10282
10283 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10284
10285 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10286
10287 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10288
10289 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10290 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10291 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10292 (nios2_linux_init_abi): Install it.
10293
10294 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10295
10296 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10297
10298 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10299
10300 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10301
10302 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10303 Tom Tromey <tromey@adacore.com>
10304
10305 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10306
10307 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10308
10309 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10310 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10311 method to compute the bounds of range types. Also print "[evaluated]"
10312 if the bounds' values come from a dynamic evaluation.
10313
10314 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10315
10316 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10317 whitespace when pretty printing is on.
10318
10319 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10320
10321 * ppc-linux-nat.c: Add include.
10322
10323 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10324
10325 * NEWS: Mention AArch64 Pointer Authentication.
10326
10327 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10328
10329 * arm-linux-nat.c: Add include.
10330
10331 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10332
10333 * source-cache.c (source_cache::get_source_lines): Re-read
10334 fullname after calling open_source_file.
10335
10336 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10337
10338 * NEWS: Mention TLS support for FreeBSD.
10339
10340 2019-03-25 Tom Tromey <tromey@adacore.com>
10341
10342 * minsyms.c (BUNCH_SIZE): Update comment.
10343 (~minimal_symbol_reader): Remove old comment.
10344 (compact_minimal_symbols): Update comment.
10345 (minimal_symbol_reader::install): Remove old comment. Update
10346 other comments.
10347
10348 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10349
10350 * s390-linux-nat.c: Add include.
10351
10352 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10353
10354 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10355 Call linux_get_hwcap.
10356 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10357 Likewise.
10358 (aarch64_linux_get_hwcap): Remove function.
10359 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10360 declaration.
10361 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10362 linux_get_hwcap.
10363 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10364 * linux-tdep.c (linux_get_hwcap): Add function.
10365 (linux_get_hwcap2): Likewise.
10366 * linux-tdep.h (linux_get_hwcap): Add declaration.
10367 (linux_get_hwcap2): Likewise.
10368 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10369 (ppc_linux_get_hwcap2): Likewise.
10370 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10371 linux_get_hwcap.
10372 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10373 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10374 (ppc_linux_nat_target::read_description): Likewise.
10375 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10376 * s390-linux-nat.c: Likewise.
10377 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10378
10379 2019-03-24 Tom Tromey <tom@tromey.com>
10380
10381 * ada-lang.c (standard_lookup): Simplify initialization.
10382 (ada_lookup_symbol_nonlocal): Simplify return.
10383 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10384 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10385 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10386 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10387 initialization.
10388 * solib.c (solib_global_lookup): Simplify.
10389 * symtab.c (null_block_symbol): Remove.
10390 (symbol_cache_lookup): Simplify returns.
10391 (lookup_language_this): Simplify returns.
10392 (lookup_symbol_aux): Simplify return.
10393 (lookup_local_symbol): Simplify returns.
10394 (lookup_global_symbol_from_objfile): Simplify return.
10395 (lookup_symbol_in_objfile_symtabs)
10396 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10397 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10398 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10399 * cp-namespace.c (cp_lookup_bare_symbol)
10400 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10401 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10402 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10403 (cp_lookup_symbol_via_imports): Simplify initialization.
10404 (find_symbol_in_baseclass): Likewise.
10405 * symtab.h (null_block_symbol): Remove.
10406 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10407 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10408 (d_lookup_symbol_module): Likewise.
10409 (find_symbol_in_baseclass): Simplify initialization.
10410
10411 2019-03-24 Tom Tromey <tom@tromey.com>
10412
10413 * expression.h: Don't include symtab.h.
10414 (struct block): Forward declare.
10415
10416 2019-03-24 Tom Tromey <tom@tromey.com>
10417
10418 * c-exp.y (typebase): Remove casts.
10419 * gdbtypes.c (lookup_unsigned_typename, )
10420 (lookup_signed_typename): Remove cast.
10421 * eval.c (parse_to_comma_and_eval): Remove cast.
10422 * parse.c (write_dollar_variable): Remove cast.
10423 * block.h (struct block) <superblock>: Now const.
10424 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10425 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10426 (map_block): Make "block" const.
10427 * symfile.h (struct quick_symbol_functions)
10428 <map_matching_symbols>: Constify block argument to "callback".
10429 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10430 const.
10431 (find_pc_sect_compunit_symtab): Make "b" const.
10432 (find_symbol_at_address): Likewise.
10433 (search_symbols): Likewise.
10434 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10435 (dw2_debug_names_lookup_symbol): Likewise.
10436 (dw2_map_matching_symbols): Update.
10437 * p-valprint.c (pascal_val_print): Remove "block".
10438 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10439 (aux_add_nonlocal_symbols): Make "block" const.
10440 (resolve_subexp): Remove cast.
10441 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10442 const.
10443 (iterate_over_file_blocks): Likewise.
10444 * f-exp.y (%union) <bval>: Remove.
10445 * coffread.c (patch_opaque_types): Make "b" const.
10446 * spu-tdep.c (spu_catch_start): Make "block" const.
10447 * c-valprint.c (print_unpacked_pointer): Remove "block".
10448 * symmisc.c (dump_symtab_1): Make "b" const.
10449 (block_depth): Make "block" const.
10450 * d-exp.y (%union) <bval>: Remove.
10451 * cp-support.h (cp_lookup_rtti_type): Update.
10452 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10453 * psymtab.c (psym_lookup_symbol): Make "block" const.
10454 (maintenance_check_psymtabs): Make "b" const.
10455 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10456 (enumerate_locals, enumerate_args): Update.
10457 * python/py-symtab.c (stpy_global_block): Make "block" const.
10458 (stpy_static_block): Likewise.
10459 * inline-frame.c (block_starting_point_at): Make "new_block"
10460 const.
10461 * block.c (find_block_in_blockvector): Make return type const.
10462 (blockvector_for_pc_sect): Make "b" const.
10463 (find_block_in_blockvector): Make "b" const.
10464
10465 2019-03-23 Tom Tromey <tom@tromey.com>
10466
10467 * varobj.c (varobj_create): Update.
10468 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10469 * printcmd.c (display_command, do_one_display): Don't reset
10470 innermost_block.
10471 * parser-defs.h (enum innermost_block_tracker_type): Move to
10472 expression.h.
10473 (innermost_block): Update comment.
10474 * parse.c (parse_exp_1): Add tracker_types parameter.
10475 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10476 tracker_types parameter. Reset innermost_block.
10477 (parse_exp_in_context): Remove.
10478 (parse_expression_for_completion): Update.
10479 * objfiles.c (~objfile): Don't reset expression_context_block or
10480 innermost_block.
10481 * expression.h (enum innermost_block_tracker_type): Move from
10482 parser-defs.h.
10483 (parse_exp_1): Add tracker_types parameter.
10484 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10485 reset innermost_block.
10486
10487 2019-03-23 Tom Tromey <tom@tromey.com>
10488
10489 * objfiles.h: Include bcache.h.
10490
10491 2019-03-23 Tom Tromey <tom@tromey.com>
10492
10493 * linespec.c (get_current_search_block): Use
10494 scoped_restore_current_language.
10495 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10496
10497 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10498 Jiong Wang <jiong.wang@arm.com>
10499
10500 * aarch64-linux-tdep.c
10501 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10502 section.
10503 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10504
10505 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10506 Jiong Wang <jiong.wang@arm.com>
10507
10508 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10509 instructions.
10510 (aarch64_analyze_prologue_test): Add PACIASP test.
10511 (aarch64_prologue_prev_register): Unmask PC value.
10512
10513 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10514 Jiong Wang <jiong.wang@arm.com>
10515
10516 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10517 (aarch64_dwarf2_prev_register): Unmask PC value.
10518 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10519 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10520 DW_CFA_AARCH64_negate_ra_state.
10521 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10522
10523 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10524 Jiong Wang <jiong.wang@arm.com>
10525
10526 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10527 registers.
10528 (aarch64_pseudo_register_name): Likewise.
10529 (aarch64_pseudo_register_type): Likewise.
10530 (aarch64_pseudo_register_reggroup_p): Likewise.
10531 (aarch64_gdbarch_init): Add pauth registers.
10532 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10533 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10534 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10535 (struct gdbarch_tdep): Add regnum for ra_state.
10536
10537 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10538 Jiong Wang <jiong.wang@arm.com>
10539
10540 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10541
10542 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10543 Jiong Wang <jiong.wang@arm.com>
10544
10545 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10546 function.
10547 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10548 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10549 (aarch64_gdbarch_init): Add puth registers.
10550 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10551 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10552 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10553
10554 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10555 Jiong Wang <jiong.wang@arm.com>
10556
10557 * aarch64-linux-nat.c
10558 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10559 * aarch64-linux-tdep.c
10560 (aarch64_linux_core_read_description): Likewise.
10561 (aarch64_linux_get_hwcap): New function.
10562 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10563 (aarch64_linux_get_hwcap): New declaration.
10564
10565 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10566 Jiong Wang <jiong.wang@arm.com>
10567
10568 * aarch64-linux-nat.c
10569 (aarch64_linux_nat_target::read_description): Add pauth param.
10570 * aarch64-linux-tdep.c
10571 (aarch64_linux_core_read_description): Likewise.
10572 * aarch64-tdep.c (struct target_desc): Add in pauth.
10573 (aarch64_read_description): Add pauth param.
10574 (aarch64_gdbarch_init): Likewise.
10575 * aarch64-tdep.h (aarch64_read_description): Likewise.
10576 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10577 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10578 * features/Makefile: Add new files.
10579 * features/aarch64-pauth.c: New file.
10580 * features/aarch64-pauth.xml: New file.
10581
10582 2019-03-20 Tom Tromey <tromey@adacore.com>
10583
10584 * infrun.c (handle_inferior_event): Rename from
10585 handle_inferior_event_1. Create a scoped_value_mark.
10586 (handle_inferior_event): Remove.
10587
10588 2019-03-19 Tom Tromey <tromey@adacore.com>
10589
10590 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10591 * infrun.h (print_stop_event): Add "displays" parameter.
10592 * infrun.c (print_stop_event): Add "displays" parameter.
10593
10594 2019-03-19 Pedro Alves <palves@redhat.com>
10595
10596 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10597 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10598 to -1. Fix TABs vs spaces.
10599 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10600 * tui/tui-out.h (tui_ui_out) Add intro comments.
10601 <m_line, m_start_of_line>: In-class initialize, and add describing
10602 comment.
10603
10604 2019-03-18 Alan Hayward <alan.hayward@arm.com>
10605
10606 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10607 variable names.
10608 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10609
10610 2019-03-18 Pedro Alves <palves@redhat.com>
10611 Eli Zaretskii <eliz@gnu.org>
10612
10613 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10614 m_line and m_start_of_line.
10615
10616 2019-03-18 Eli Zaretskii <eliz@gnu.org>
10617
10618 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10619 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10620 it returns a newline. This fixes a regression in TU mode, whereby
10621 the next line is output on the same screen line as the user input.
10622
10623 2019-03-18 Tom Tromey <tromey@adacore.com>
10624
10625 * minsyms.c (minimal_symbol_reader::install): Remove call to
10626 obstack_blank.
10627
10628 2019-03-18 Pedro Alves <palves@redhat.com>
10629
10630 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10631 New globals.
10632 (apply_style): New, factored out from ...
10633 (apply_ansi_escape): ... this. Handle reverse video mode.
10634 (tui_set_reverse_mode): New function.
10635 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10636 * tui/tui-winsource.c (tui_show_source_line): Use
10637 tui_set_reverse_mode instead of setting A_STANDOUT.
10638 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10639 New setter methods.
10640
10641 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
10642
10643 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10644 Handle tabs.
10645
10646 2019-03-18 Tom Tromey <tromey@adacore.com>
10647
10648 * ada-lang.c (empty_array): Add "high" parameter.
10649 (ada_evaluate_subexp): Update.
10650
10651 2019-03-17 Sergei Trofimovich <siarheit@google.com>
10652
10653 * unittests/string_view-selftests.c: Define
10654 _initialize_string_view_selftests unconditionally.
10655
10656 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10657
10658 PR gdb/24350
10659 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10660
10661 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10662
10663 PR gdb/24351
10664 * windows-nat.c (display_selector): Fix format specifiers.
10665
10666 2019-03-17 Eli Zaretskii <eliz@gnu.org>
10667
10668 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10669 tui_refill_source_window instead of tui_refresh_win, to update the
10670 current execution line. This fixes redisplay of the current line
10671 when stepping through the code with "next" or "step".
10672
10673 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10674
10675 * source-cache.c (source_cache::get_source_lines): Call
10676 find_source_lines to initialize s->nlines. This fixes vertical
10677 scrolling of TUI source window when the DOWN arrow is pressed.
10678
10679 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10680
10681 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10682 linux-thread-db.c (_initialize_thread_db): Likewise.
10683
10684 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10685
10686 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10687 wclrtoeol in tui_show_source_line". This reverts changes made in
10688 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10689
10690 2019-03-15 Tom Tromey <tom@tromey.com>
10691
10692 * symtab.h (struct minimal_symbol): Derive from
10693 general_symbol_info.
10694 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10695 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10696 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10697 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10698 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10699 (MSYMBOL_SEARCH_NAME): Update.
10700 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10701 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10702 * minsyms.c (minimal_symbol_reader::record_full): Update.
10703
10704 2019-03-15 Tom Tromey <tom@tromey.com>
10705
10706 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10707
10708 2019-03-15 Tom Tromey <tom@tromey.com>
10709
10710 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10711 unique_xmalloc_ptr.
10712 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10713 Update.
10714 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10715 (build_minimal_symbol_hash_tables)
10716 (minimal_symbol_reader::install): Update.
10717
10718 2019-03-15 Tom Tromey <tom@tromey.com>
10719
10720 * symtab.c (create_demangled_names_hash): Update.
10721 (symbol_set_names): Update.
10722 * objfiles.h (struct objfile_per_bfd_storage)
10723 <demangled_names_hash>: Now an htab_up.
10724 * objfiles.c (objfile_per_bfd_storage): Simplify.
10725
10726 2019-03-15 Tom Tromey <tom@tromey.com>
10727
10728 * objfiles.h (struct objfile_per_bfd_storage): Declare
10729 destructor.
10730 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10731 New.
10732 (get_objfile_bfd_data): Use new. Don't initialize
10733 language_of_main.
10734 (free_objfile_per_bfd_storage): Remove.
10735 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10736
10737 2019-03-15 Tom Tromey <tom@tromey.com>
10738
10739 * symfile.c (reread_symbols): Update.
10740 * objfiles.c (objfile::objfile): Update.
10741 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10742 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10743 comment.
10744 (minimal_symbol_reader::install): Update.
10745 (terminate_minimal_symbol_table): Remove.
10746 * jit.c (jit_object_close_impl): Update.
10747
10748 2019-03-15 Tom Tromey <tom@tromey.com>
10749
10750 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10751 initializations.
10752
10753 2019-03-15 Tom Tromey <tom@tromey.com>
10754
10755 * objfiles.h (struct objfile_per_bfd_storage)
10756 <demangled_hash_languages>: Now a bitset.
10757 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10758 (lookup_minimal_symbol): Update.
10759
10760 2019-03-15 Tom Tromey <tom@tromey.com>
10761
10762 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10763 Don't return the symbol.
10764 * coffread.c (record_minimal_symbol): Use record_full.
10765
10766 2019-03-14 Eli Zaretskii <eliz@gnu.org>
10767
10768 The MS-Windows port of ncurses fails to switch to a color pair if
10769 one or both of the colors are the implicit default colors. This
10770 change records the default colors when TUI is initialized, and
10771 then specifies them explicitly when a color pair uses the default
10772 colors. This allows color styling in TUI mode on MS-Windows.
10773
10774 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10775 ncurses_norm_attr.
10776 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10777 colors in ncurses_norm_attr.
10778 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10779 "none", replace it with the default color recorded in
10780 ncurses_norm_attr.
10781
10782 2019-03-14 Tom Tromey <tromey@adacore.com>
10783
10784 * source-cache.h (class source_cache) <get_source_lines>: Return
10785 std::string.
10786 * source-cache.c (source_cache::extract_lines): Handle case where
10787 first_pos==npos. Return std::string.
10788 (source_cache::get_source_lines): Update.
10789
10790 2019-03-14 Tom Tromey <tromey@adacore.com>
10791
10792 * NEWS: Add item for "style sources" commands.
10793 * source-cache.c (source_cache::get_source_lines): Check
10794 source_styling.
10795 * cli/cli-style.c (source_styling): New global.
10796 (_initialize_cli_style): Add "style sources" commands.
10797 (show_style_sources): New function.
10798 * cli/cli-style.h (source_styling): Declare.
10799
10800 2019-03-14 Pedro Alves <palves@redhat.com>
10801 Tom Tromey <tromey@adacore.com>
10802
10803 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10804 * tui/tui-winsource.c (tui_refill_source_window): New function,
10805 from...
10806 (tui_horizontal_source_scroll): ... here. Move some logic.
10807 * cli/cli-style.c (set_style_enabled): Notify new observable.
10808 * tui/tui-hooks.c (tui_redisplay_source): New function.
10809 (tui_attach_detach_observers): Attach or detach
10810 tui_redisplay_source.
10811 * observable.h (source_styling_changed): New observable.
10812 * observable.c: Define source_styling_changed observable.
10813
10814 2019-03-13 Tom Tromey <tromey@adacore.com>
10815
10816 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10817 (i386_gnu_nat_target::store_registers): Update.
10818 * target-debug.h (target_debug_print_std_string): New macro.
10819 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10820 * windows-tdep.c (display_one_tib): Update.
10821 * tui/tui-stack.c (tui_make_status_line): Update.
10822 * top.c (print_inferior_quit_action): Update.
10823 * thread.c (thr_try_catch_cmd): Update.
10824 (add_thread_with_info): Update.
10825 (thread_target_id_str): Update.
10826 (thr_try_catch_cmd): Update.
10827 (thread_command): Update.
10828 (thread_find_command): Update.
10829 * record-btrace.c (record_btrace_target::info_record)
10830 (record_btrace_resume_thread, record_btrace_target::resume)
10831 (record_btrace_cancel_resume, record_btrace_step_thread)
10832 (record_btrace_target::wait, record_btrace_target::wait)
10833 (record_btrace_target::wait, record_btrace_target::stop): Update.
10834 * progspace.c (print_program_space): Update.
10835 * process-stratum-target.c
10836 (process_stratum_target::thread_address_space): Update.
10837 * linux-fork.c (linux_fork_mourn_inferior)
10838 (detach_checkpoint_command, info_checkpoints_command)
10839 (linux_fork_context): Update.
10840 (linux_fork_detach): Update.
10841 (class scoped_switch_fork_info): Update.
10842 (delete_checkpoint_command): Update.
10843 * infrun.c (follow_fork_inferior): Update.
10844 (follow_fork_inferior): Update.
10845 (proceed_after_vfork_done): Update.
10846 (handle_vfork_child_exec_or_exit): Update.
10847 (follow_exec): Update.
10848 (displaced_step_prepare_throw): Update.
10849 (displaced_step_restore): Update.
10850 (start_step_over): Update.
10851 (resume_1): Update.
10852 (clear_proceed_status_thread): Update.
10853 (proceed): Update.
10854 (print_target_wait_results): Update.
10855 (do_target_wait): Update.
10856 (context_switch): Update.
10857 (stop_all_threads): Update.
10858 (restart_threads): Update.
10859 (finish_step_over): Update.
10860 (handle_signal_stop): Update.
10861 (switch_back_to_stepped_thread): Update.
10862 (keep_going_pass_signal): Update.
10863 (print_exited_reason): Update.
10864 (normal_stop): Update.
10865 * inferior.c (inferior_pid_to_str): Change return type.
10866 (print_selected_inferior): Update.
10867 (add_inferior): Update.
10868 (detach_inferior): Update.
10869 * dummy-frame.c (fprint_dummy_frames): Update.
10870 * dcache.c (dcache_info_1): Update.
10871 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10872 (btrace_fetch, btrace_clear): Update.
10873 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10874 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10875 type.
10876 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10877 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10878 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10879 * gdbarch.c, gdbarch.h: Rebuild.
10880 * gdbarch.sh (core_pid_to_str): Change return type.
10881 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10882 return type.
10883 (windows_nat_target::pid_to_str): Change return type.
10884 (windows_delete_thread): Update.
10885 (windows_nat_target::attach): Update.
10886 (windows_nat_target::files_info): Update.
10887 * target-delegates.c: Rebuild.
10888 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10889 return type.
10890 (sol_thread_target::pid_to_str): Change return type.
10891 * remote.c (class remote_target) <pid_to_str>: Change return
10892 type.
10893 (remote_target::pid_to_str): Change return type.
10894 (extended_remote_target::attach, remote_target::remote_stop_ns)
10895 (remote_target::remote_notif_remove_queued_reply)
10896 (remote_target::push_stop_reply, remote_target::disable_btrace):
10897 Update.
10898 (extended_remote_target::attach): Update.
10899 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10900 type.
10901 (gdbsim_target::pid_to_str): Change return type.
10902 * ravenscar-thread.c (struct ravenscar_thread_target)
10903 <pid_to_str>: Change return type.
10904 (ravenscar_thread_target::pid_to_str): Change return type.
10905 * procfs.c (class procfs_target) <pid_to_str>: Change return
10906 type.
10907 (procfs_target::pid_to_str): Change return type.
10908 (procfs_target::attach): Update.
10909 (procfs_target::detach): Update.
10910 (procfs_target::fetch_registers): Update.
10911 (procfs_target::store_registers): Update.
10912 (procfs_target::wait): Update.
10913 (procfs_target::files_info): Update.
10914 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10915 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10916 return type.
10917 (nto_procfs_target::pid_to_str): Change return type.
10918 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10919 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10920 return type.
10921 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10922 (exit_lwp): Update.
10923 (attach_proc_task_lwp_callback, get_detach_signal)
10924 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10925 (linux_nat_target::resume, wait_lwp, stop_callback)
10926 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10927 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10928 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10929 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10930 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10931 type.
10932 (inf_ptrace_target::attach): Update.
10933 (inf_ptrace_target::files_info): Update.
10934 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10935 type.
10936 (go32_nat_target::pid_to_str): Change return type.
10937 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10938 (gnu_nat_target::wait): Update.
10939 (gnu_nat_target::wait): Update.
10940 (gnu_nat_target::resume): Update.
10941 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10942 (fbsd_nat_target::wait): Update.
10943 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10944 type.
10945 (darwin_nat_target::attach): Update.
10946 * corelow.c (class core_target) <pid_to_str>: Change return type.
10947 (core_target::pid_to_str): Change return type.
10948 * target.c (normal_pid_to_str): Change return type.
10949 (default_pid_to_str): Likewise.
10950 (target_pid_to_str): Change return type.
10951 (target_translate_tls_address): Update.
10952 (target_announce_detach): Update.
10953 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10954 return type.
10955 (bsd_uthread_target::pid_to_str): Change return type.
10956 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10957 type.
10958 (bsd_kvm_target::pid_to_str): Change return type.
10959 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10960 return type.
10961 (aix_thread_target::pid_to_str): Change return type.
10962 * target.h (struct target_ops) <pid_to_str>: Change return type.
10963 (target_pid_to_str, normal_pid_to_str): Likewise.
10964 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10965 type.
10966 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10967 type.
10968 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10969 return type.
10970 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10971 type.
10972 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10973 type.
10974 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10975 return type.
10976
10977 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10978
10979 * NEWS: Mention that the new default MI version is 3. Mention
10980 changes to the output of commands and events that deal with
10981 multi-location breakpoints.
10982 * breakpoint.c: Include "mi/mi-out.h".
10983 (print_one_breakpoint): Change output syntax if using MI version
10984 >= 3.
10985 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10986 New.
10987 (mi_multi_location_breakpoint_output_fixed): New.
10988 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10989 (mi_cmd_fix_multi_location_breakpoint_output): New.
10990 (mi_multi_location_breakpoint_output_fixed): New.
10991 * mi/mi-cmds.c (mi_cmds): Register command
10992 -fix-multi-location-breakpoint-output.
10993 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10994 interpreter "mi".
10995
10996 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10997
10998 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10999 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11000 instantiate mi_ui_out based on interpreter name.
11001 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11002 * mi/mi-main.c (mi_load_progress): Likewise.
11003
11004 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11005
11006 * NEWS: Combine separate "New targets" sections for 8.3.
11007
11008 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11009
11010 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11011 (ppcfbsd_init_abi): Install gdbarch
11012 "fetch_tls_load_module_address" and "get_thread_local_address"
11013 methods.
11014
11015 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11016
11017 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11018 (riscv_fbsd_init_abi): Install gdbarch
11019 "fetch_tls_load_module_address" and "get_thread_local_address"
11020 methods.
11021
11022 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11023
11024 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11025 (i386fbsd_init_abi): Install gdbarch
11026 "fetch_tls_load_module_address" and "get_thread_local_address"
11027 methods.
11028
11029 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11030
11031 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11032 (amd64fbsd_init_abi): Install gdbarch
11033 "fetch_tls_load_module_address" and "get_thread_local_address"
11034 methods.
11035
11036 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11037
11038 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11039 (struct fbsd_pspace_data): New type.
11040 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11041 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11042 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11043 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11044 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11045
11046 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11047
11048 * gdbtypes.c (lookup_struct_elt): New function.
11049 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11050 * gdbtypes.h (struct struct_elt): New type.
11051 (lookup_struct_elt): New prototype.
11052
11053 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11054
11055 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11056 remove disabled code block.
11057
11058 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11059
11060 * gdbarch.sh (get_thread_local_address): New method.
11061 * gdbarch.h, gdbarch.c: Regenerate.
11062 * target.c (target_translate_tls_address): Use
11063 gdbarch_get_thread_local_address if present instead of
11064 target::get_thread_local_address.
11065
11066 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11067
11068 * target.h (target::get_thread_local_address): Update comment.
11069
11070 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11071
11072 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11073 objfile->separate_debug_objfile_backlink if not NULL.
11074
11075 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11076
11077 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11078 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11079 (amd64bsd_store_inferior_registers): Likewise.
11080 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11081 Enable segment base registers.
11082 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11083 PT_GETFSBASE and PT_GETGSBASE.
11084 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11085 PT_SETGSBASE.
11086 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11087 segment base registers.
11088 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11089
11090 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11091
11092 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11093 Update calls to i386_target_description to add 'segments'
11094 parameter.
11095 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11096 add segment base registers.
11097 * arch/i386.c (i386_create_target_description): Add 'segments'
11098 parameter to enable segment base registers.
11099 * arch/i386.h (i386_create_target_description): Likewise.
11100 * features/i386/32bit-segments.xml: New file.
11101 * features/i386/32bit-segments.c: Generate.
11102 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11103 call to i386_target_description to add 'segments' parameter.
11104 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11105 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11106 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11107 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11108 if feature is present.
11109 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11110 Add 'segments' parameter to call to i386_target_description.
11111 (i386_target_description): Add 'segments' parameter to enable
11112 segment base registers.
11113 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11114 to call to i386_target_description.
11115 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11116 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11117 Define I386_NUM_REGS.
11118 (i386_target_description): Add 'segments' parameter to enable
11119 segment base registers.
11120
11121 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11122
11123 PR/24325
11124 * source-cache.c: #undef open and close, to avoid unresolved
11125 externals during linking.
11126
11127 2019-03-12 Tom Tromey <tromey@adacore.com>
11128
11129 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11130 const. Add initializers.
11131 (_initialize_remote): Don't initialize ptid globals.
11132
11133 2019-03-12 Pedro Alves <palves@redhat.com>
11134
11135 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11136
11137 2019-03-12 Pedro Alves <palves@redhat.com>
11138
11139 * cp-name-parser.y (main): Remove unused 'len' variable.
11140
11141 2019-03-12 Tom Tromey <tromey@adacore.com>
11142
11143 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11144 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11145
11146 2019-03-12 Tom Tromey <tromey@adacore.com>
11147
11148 * linux-nat.c (iterate_over_lwps): Update.
11149 (stop_callback): Remove parameter.
11150 (stop_wait_callback, detach_callback, resume_set_callback)
11151 (select_singlestep_lwp_callback, set_ignore_sigint)
11152 (status_callback, resumed_callback, resume_clear_callback)
11153 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11154 data parameter.
11155 (linux_nat_target::detach, linux_nat_target::resume)
11156 (linux_stop_and_wait_all_lwps, select_event_lwp)
11157 (linux_nat_filter_event, linux_nat_wait_1)
11158 (linux_nat_target::kill, linux_nat_target::stop)
11159 (linux_nat_target::stop): Update.
11160 (linux_nat_resume_callback): Change type.
11161 (resume_stopped_resumed_lwps, count_events_callback)
11162 (select_event_lwp_callback): Likewise.
11163 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11164 * arm-linux-nat.c (struct update_registers_data): Remove.
11165 (update_registers_callback): Change type.
11166 (arm_linux_insert_hw_breakpoint1): Update.
11167 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11168 parameter.
11169 (x86_linux_dr_set_addr): Update.
11170 (x86_linux_dr_set_control): Update.
11171 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11172 (iterate_over_lwps): Use gdb::function_view.
11173 * nat/aarch64-linux-hw-point.c (struct
11174 aarch64_dr_update_callback_param): Remove.
11175 (debug_reg_change_callback): Change type.
11176 (aarch64_notify_debug_reg_change): Update.
11177 * s390-linux-nat.c (s390_refresh_per_info): Update.
11178
11179 2019-03-11 Tom Tromey <tromey@adacore.com>
11180
11181 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11182 redundant assignment to "this_cu".
11183
11184 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11185
11186 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11187
11188 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11189
11190 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11191 from...
11192 (rank_one_type): ... this.
11193
11194 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11195
11196 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11197 from...
11198 (rank_one_type): ... this.
11199
11200 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11201
11202 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11203 from...
11204 (rank_one_type): ... this.
11205
11206 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11207
11208 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11209 from...
11210 (rank_one_type): ... this.
11211
11212 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11213
11214 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11215 from...
11216 (rank_one_type): ... this.
11217
11218 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11219
11220 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11221 from...
11222 (rank_one_type): ... this.
11223
11224 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11225
11226 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11227 from...
11228 (rank_one_type): ... this.
11229
11230 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11231
11232 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11233 from...
11234 (rank_one_type): ... this.
11235
11236 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11237
11238 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11239 from...
11240 (rank_one_type): ... this.
11241
11242 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11243
11244 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11245 from...
11246 (rank_one_type): ... this.
11247
11248 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11249
11250 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11251 from...
11252 (rank_one_type): ... this.
11253
11254 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11255
11256 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11257 from...
11258 (rank_one_type): ... this.
11259
11260 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11261
11262 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11263 inferior-events' shows the example events.
11264
11265 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11266
11267 Support styling on native MS-Windows console
11268
11269 PR/24315
11270 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11271 on MS-Windows if $TERM is not defined.
11272
11273 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11274
11275 * posix-hdep.c (gdb_console_fputs):
11276 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11277 functions.
11278 * ui-file.h (gdb_console_fputs): Add prototype.
11279
11280 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11281 back to fputs only if the former returns zero.
11282
11283 2019-03-07 Tom Tromey <tom@tromey.com>
11284
11285 * symmisc.c (print_symbol_bcache_statistics): Update.
11286 (print_objfile_statistics): Update.
11287 * symfile.c (allocate_symtab): Update.
11288 * stabsread.c: Don't include bcache.h.
11289 * psymtab.h (struct psymbol_bcache): Don't declare.
11290 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11291 (psymbol_bcache_init, psymbol_bcache_free)
11292 (psymbol_bcache_get_bcache): Don't declare.
11293 * psymtab.c (struct psymbol_bcache): Remove.
11294 (psymtab_storage::psymtab_storage): Update.
11295 (psymtab_storage::~psymtab_storage): Update.
11296 (psymbol_bcache_init, psymbol_bcache_free)
11297 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11298 (add_psymbol_to_bcache): Update.
11299 (allocate_psymtab): Update.
11300 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11301 macro_cache>: No longer pointers.
11302 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11303 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11304 * macrotab.c (macro_bcache): Update.
11305 * macroexp.c: Don't include bcache.h.
11306 * gdbtypes.c (check_types_worklist): Update.
11307 (types_deeply_equal): Remove TRY/CATCH. Update.
11308 * elfread.c (elf_symtab_read): Update.
11309 * dwarf2read.c: Don't include bcache.h.
11310 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11311 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11312 (print_bcache_statistics, bcache_memory_used): Don't declare.
11313 (struct bcache): Move from bcache.c. Add constructor, destructor,
11314 methods. Rename all data members.
11315 * bcache.c (struct bcache): Move to bcache.h.
11316 (bcache::expand_hash_table): Rename from expand_hash_table.
11317 (bcache): Remove.
11318 (bcache::insert): Rename from bcache_full.
11319 (bcache::compare): Rename from bcache_compare.
11320 (bcache_xmalloc): Remove.
11321 (bcache::~bcache): Rename from bcache_xfree.
11322 (bcache::print_statistics): Rename from print_bcache_statistics.
11323 (bcache::memory_used): Rename from bcache_memory_used.
11324
11325 2019-03-07 Pedro Alves <palves@redhat.com>
11326
11327 * infrun.c (normal_stop): Also check for
11328 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11329
11330 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11331
11332 * f-lang.c (value_from_host_double): Moved to...
11333 * value.c (value_from_host_double): ...here.
11334 * value.h (value_from_host_double): Declare.
11335 * guile/scm-math.c (vlscm_convert_typed_number): Use
11336 value_from_host_double.
11337 (vlscm_convert_number): Likewise.
11338 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11339 * python/py-value.c (convert_value_from_python): Likewise.
11340
11341 2019-03-06 Tom Tromey <tom@tromey.com>
11342
11343 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11344
11345 2019-03-06 Tom Tromey <tom@tromey.com>
11346
11347 * utils.h (free_current_contents): Don't declare.
11348 * utils.c (free_current_contents): Remove.
11349
11350 2019-03-06 Tom Tromey <tom@tromey.com>
11351
11352 * top.c (quit_force): Update.
11353 * main.c (captured_command_loop): Update.
11354 * common/new-op.c (operator new): Update.
11355 * common/common-exceptions.c (struct catcher)
11356 <save_cleanup_chain>: Remove member.
11357 (exceptions_state_mc_init): Update.
11358 (exception_try_scope_entry): Return nullptr.
11359 (exception_try_scope_exit, exception_rethrow)
11360 (throw_exception_sjlj, throw_exception_cxx): Update.
11361 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11362 (all_cleanups, do_cleanups, discard_cleanups)
11363 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11364 (restore_cleanups, restore_final_cleanups): Don't declare.
11365 (do_final_cleanups): Remove parameter.
11366 * common/cleanups.c (cleanup_chain, make_cleanup)
11367 (make_cleanup_dtor, all_cleanups, do_cleanups)
11368 (discard_my_cleanups, discard_cleanups)
11369 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11370 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11371 (null_cleanup): Remove.
11372 (do_final_cleanups): Remove parameter.
11373
11374 2019-03-06 Tom Tromey <tom@tromey.com>
11375
11376 * remote.c (remote_target::remote_parse_stop_reply): Use
11377 unique_xmalloc_ptr.
11378
11379 2019-03-06 Tom Tromey <tom@tromey.com>
11380
11381 * stabsread.c (struct stabs_field_info): Rename from field_info.
11382 <list, fnlist>: Add initializers.
11383 <obstack>: New member.
11384 (read_member_functions, read_struct_fields, read_baseclasses):
11385 Allocate on obstack. Don't use cleanups.
11386 (read_one_struct_field, read_member_functions, read_struct_fields)
11387 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11388 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11389 (read_struct_type): Update.
11390
11391 2019-03-06 Tom Tromey <tom@tromey.com>
11392
11393 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11394 * common/filestuff.h (make_cleanup_close): Don't declare.
11395 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11396 Remove.
11397
11398 2019-03-06 Tom Tromey <tom@tromey.com>
11399
11400 * solib-aix.c: Use make_scope_exit.
11401
11402 2019-03-06 Tom Tromey <tom@tromey.com>
11403
11404 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11405 Use make_scope_exit.
11406
11407 2019-03-06 Tom Tromey <tom@tromey.com>
11408
11409 * solib-svr4.c (disable_probes_interface): Remove parameter.
11410 (svr4_handle_solib_event): Use make_scope_exit.
11411
11412 2019-03-06 Tom Tromey <tom@tromey.com>
11413
11414 * remote.c (struct stop_reply_deleter): Remove.
11415 (stop_reply_up): Update.
11416 (struct stop_reply): Derive from notif_event. Don't typedef.
11417 <regcache>: Now a std::vector.
11418 (stop_reply_xfree): Remove.
11419 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11420 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11421 (remote_target::discard_pending_stop_replies): Use delete.
11422 (remote_target::remote_parse_stop_reply): Update.
11423 (remote_target::process_stop_reply): Update.
11424 * remote-notif.h (struct notif_event): Add virtual destructor.
11425 Remove "dtr" member.
11426 (struct notif_client) <alloc_event>: Return a unique_ptr.
11427 (notif_event_xfree): Don't declare.
11428 (notif_event_up): New typedef.
11429 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11430 (notif_event_xfree, do_notif_event_xfree): Remove.
11431 (remote_notif_state_xfree): Update.
11432
11433 2019-03-06 Tom Tromey <tom@tromey.com>
11434
11435 * infrun.c (displaced_step_clear_cleanup): Now a
11436 forward_scope_exit type.
11437 (displaced_step_prepare_throw): Update.
11438 (displaced_step_fixup): Update.
11439
11440 2019-03-06 Tom Tromey <tom@tromey.com>
11441
11442 * inferior.h (class inferior): Update comment.
11443 * gdbthread.h (class thread_info): Update comment.
11444
11445 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11446 Tom Tromey <tom@tromey.com>
11447
11448 * stabsread.h (struct stab_section_list): Remove.
11449 (coffstab_build_psymtabs): Update.
11450 * dbxread.c (symbuf_sections): Now a std::vector.
11451 (sect_idx): New global.
11452 (fill_symbuf): Update.
11453 (coffstab_build_psymtabs): Change type of stabsects parameter.
11454 Update.
11455 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11456 std::vector.
11457 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11458 (coff_locate_sections): Update.
11459 (coff_symfile_read): Remove cleanups. Update.
11460 (init_stringtab): Add storage parameter.
11461 (free_stringtab, free_stringtab_cleanup): Remove.
11462 (init_lineno): Add storage parameter.
11463 (free_linetab, free_linetab_cleanup): Remove.
11464
11465 2019-03-06 Pedro Alves <palves@redhat.com>
11466
11467 * linux-fork.c (fork_info::clobber_regs): Delete.
11468 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11469 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11470 comment. Adjust.
11471 (scoped_switch_fork_info::scoped_switch_fork_info)
11472 (checkpoint_command, linux_fork_context): Adjust
11473 fork_save_infrun_state calls.
11474
11475 2019-03-06 Pedro Alves <palves@redhat.com>
11476
11477 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11478 (inf_has_multiple_threads): Return 'bool' and rewrite using
11479 inferior_info::threads().
11480
11481 2019-03-06 Pedro Alves <palves@redhat.com>
11482
11483 * linux-fork.c: Include <list>.
11484 (fork_list): Now a std::list instance.
11485 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11486 (forks_exist_p, find_last_fork): Adjust.
11487 (new_fork): Delete.
11488 (one_fork_p): New.
11489 (add_fork): Adjust.
11490 (free_fork): Delete, folded into fork_info::~fork_info().
11491 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11492 Adjust.
11493 (init_fork_list): Delete.
11494 (linux_fork_killall, linux_fork_mourn_inferior)
11495 (linux_fork_detach, info_checkpoints_command): Adjust.
11496 (_initialize_linux_fork): No longer call init_fork_list.
11497
11498 2019-03-06 Pedro Alves <palves@redhat.com>
11499
11500 * linux-fork.c (new_fork): New, split out of ...
11501 (add_fork): ... this. Return void. Move "first fork" special
11502 case from here, to ...
11503 (checkpoint_command): ... here.
11504 * linux-linux.h (add_fork): Return void.
11505
11506 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11507
11508 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11509
11510 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11511 Chris January <chris.january@arm.com>
11512 David Lecomber <david.lecomber@arm.com>
11513
11514 * f-exp.y: New token, UNOP_INTRINSIC.
11515 (exp): New pattern using UNOP_INTRINSIC token.
11516 (f77_keywords): Add 'abs' keyword.
11517 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11518 (value_from_host_double): New function.
11519 (evaluate_subexp_f): Support UNOP_ABS.
11520
11521 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11522
11523 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11524 types.
11525
11526 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11527
11528 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11529 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11530 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11531
11532 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11533
11534 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11535
11536 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11537 Chris January <chris.january@arm.com>
11538
11539 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11540 * f-exp.y: Define 'KIND' token.
11541 (exp): New pattern for KIND expressions.
11542 (ptype): Handle types with a kind extension.
11543 (direct_abs_decl): Extend to spot kind extensions.
11544 (f77_keywords): Add 'kind' to the list.
11545 (push_kind_type): New function.
11546 (convert_to_kind_type): New function.
11547 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11548 * parse.c (operator_length_standard): Likewise.
11549 * parser-defs.h (enum type_pieces): Add tp_kind.
11550 * std-operator.def: Add UNOP_KIND.
11551
11552 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11553
11554 * f-exp.y (f_parse): Set yydebug.
11555
11556 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11557
11558 * f-lang.c (evaluate_subexp_f): New function.
11559 (exp_descriptor_f): New global.
11560 (f_language_defn): Use exp_descriptor_f instead of
11561 exp_descriptor_standard.
11562
11563 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11564
11565 * f-exp.y (struct token): Add comments.
11566 (dot_ops): Remove uppercase versions and the end marker.
11567 (f77_keywords): Likewise.
11568 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11569 entries in the dot_ops array are case insensitive, and use
11570 strncasecmp to compare strings. Also some whitespace cleanup in
11571 this area. Similar for the f77_keywords array, except entries in
11572 this list might be case sensitive.
11573
11574 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11575
11576 * f-exp.y (struct f77_boolean_val): Add comments.
11577 (boolean_values): Remove uppercase versions, and end marker.
11578 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11579 and use strncasecmp to achieve case insensitivity. Additionally,
11580 perform whitespace cleanup around this code.
11581
11582 2019-03-06 Tom Tromey <tromey@adacore.com>
11583
11584 * remote-sim.c (gdbsim_target_open): Use result of
11585 gdb_argv::release.
11586
11587 2019-03-06 Richard Bunt <richard.bunt@arm.com>
11588 Dirk Schubert <dirk.schubert@arm.com>
11589 Chris January <chris.january@arm.com>
11590
11591 * eval.c (evaluate_subexp_standard): Call Fortran argument
11592 wrapping logic.
11593 * f-lang.c (struct value): A value which can be passed into a
11594 Fortran function call.
11595 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11596 where appropriate.
11597 (struct type): Value ready for a Fortran function call.
11598 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11599 is needed.
11600 * f-lang.h (fortran_argument_convert): Declaration.
11601 (fortran_preserve_arg_pointer): Declaration.
11602 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11603
11604 2019-03-05 Tom Tromey <tromey@adacore.com>
11605
11606 * python/py-prettyprint.c (print_string_repr): Remove #if.
11607 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11608
11609 2019-03-05 Tom Tromey <tromey@adacore.com>
11610
11611 * target.c (the_dummy_target): Move later. Change type to
11612 "dummy_target".
11613 (initialize_targets): Don't initialize the_dummy_target.
11614
11615 2019-03-05 Tom Tromey <tromey@adacore.com>
11616
11617 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11618 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11619
11620 2019-03-05 Tom Tromey <tromey@adacore.com>
11621
11622 * windows-nat.c (windows_nat_target::attach)
11623 (windows_nat_target::detach): Don't call gdb_flush.
11624 * valprint.c (generic_val_print, val_print, val_print_string):
11625 Don't call gdb_flush.
11626 * utils.c (defaulted_query): Don't call gdb_flush.
11627 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11628 * target.c (target_announce_detach): Don't call gdb_flush.
11629 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11630 * remote.c (extended_remote_target::attach): Don't call
11631 gdb_flush.
11632 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11633 * printcmd.c (do_examine): Don't call gdb_flush.
11634 (info_display_command): Don't call gdb_flush.
11635 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11636 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11637 * memattr.c (info_mem_command): Don't call gdb_flush.
11638 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11639 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11640 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11641 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11642 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11643 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11644 (gnu_nat_target::detach): Don't call gdb_flush.
11645 * f-valprint.c (f_val_print): Don't call gdb_flush.
11646 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11647 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11648 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11649 gdb_flush.
11650 * c-valprint.c (c_val_print): Don't call gdb_flush.
11651 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11652
11653 2019-03-05 Tom Tromey <tromey@adacore.com>
11654
11655 * varobj.c (update_dynamic_varobj_children): Update.
11656 (install_default_visualizer): Use reset, not release.
11657 * value.c (set_internalvar): Update.
11658 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11659 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11660 ATTRIBUTE_UNUSED_RESULT.
11661
11662 2019-03-05 Tom Tromey <tromey@adacore.com>
11663
11664 * remote.c (class scoped_remote_fd) <release>: Add
11665 ATTRIBUTE_UNUSED_RESULT.
11666
11667 2019-03-05 Tom Tromey <tromey@adacore.com>
11668
11669 * macroexp.c (struct macro_buffer) <release>: Add
11670 ATTRIBUTE_UNUSED_RESULT.
11671
11672 2019-03-05 Tom Tromey <tromey@adacore.com>
11673
11674 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11675 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11676 ATTRIBUTE_UNUSED_RESULT.
11677
11678 2019-03-05 Tom Tromey <tromey@adacore.com>
11679
11680 * common/scoped_fd.h (class scoped_fd) <release>: Add
11681 ATTRIBUTE_UNUSED_RESULT.
11682
11683 2019-03-05 Tom Tromey <tromey@adacore.com>
11684
11685 * parser-defs.h (struct parser_state) <release>: Add
11686 ATTRIBUTE_UNUSED_RESULT.
11687
11688 2019-03-05 Tom Tromey <tromey@adacore.com>
11689
11690 * utils.h (class gdb_argv) <release>: Add
11691 ATTRIBUTE_UNUSED_RESULT.
11692 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11693
11694 2019-03-02 Eli Zaretskii <eliz@gnu.org>
11695
11696 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11697 for-loop range, to avoid compiler warnings.
11698
11699 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11700 avoid compiler warnings about unused variables.
11701
11702 * NEWS: Mention end of support for native debugging on MS-Windows
11703 before XP.
11704
11705 PR gdb/24292
11706 * common/netstuff.c:
11707 * gdbserver/gdbreplay.c
11708 * gdbserver/remote-utils.c:
11709 * ser-tcp.c:
11710 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11711 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11712 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11713 'getaddrinfo' and 'freeaddrinfo' were not available before
11714 Windows XP, and mingw.org's MinGW headers by default define
11715 _WIN32_WINNT to 0x500.
11716
11717 2019-03-01 Gary Benson <gbenson@redhat.com>
11718
11719 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11720
11721 2019-02-28 Brian Vandenberg <phantall@gmail.com>
11722 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11723
11724 PR gdb/8527
11725 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11726 set_sigint_trap, clear_sigint_trap.
11727
11728 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11729
11730 * target.c (target_detach): Clear the regcache and the
11731 frame cache.
11732
11733 2019-02-27 Pedro Alves <palves@redhat.com>
11734
11735 * utils.c (set_screen_size): When we cap the height/width sizes,
11736 tweak the corresponding command variable to show "unlimited":
11737
11738 2019-02-27 Saagar Jha <saagar@saagarjha.com>
11739 Pedro Alves <palves@redhat.com>
11740
11741 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11742 before calling rl_set_screen_size.
11743
11744 2019-02-27 Tom Tromey <tromey@adacore.com>
11745
11746 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11747 define.
11748 * python/py-value.c: Remove Python 2.4 workaround.
11749 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11750 workaround.
11751 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11752 Python 2.4 workaround.
11753 * python/python-internal.h: Remove Python 2.4 comment.
11754 (Py_ssize_t): Don't define.
11755 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11756 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11757 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11758 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11759 * python/python.c (do_start_initialization): Remove Python 2.4
11760 workaround.
11761 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11762 (print_children): Remove Python 2.4 workaround.
11763 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11764 workaround.
11765 (CHARBUFFERPROC_NAME): Remove.
11766 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11767 Python 2.4 workaround.
11768
11769 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11770
11771 * NEWS: Note minimum Python version.
11772
11773 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11774
11775 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11776 code from these functions. Remove corresponding ifdefs. Use
11777 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11778 Remove gotos and target of gotos.
11779 (infpy_search_memory): Likewise.
11780
11781 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11782
11783 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11784 (hppa_gdbarch_init): Don't register deleted functions with
11785 gdbarch.
11786
11787 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11788
11789 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11790 (h8300_unwind_sp): Delete.
11791 (h8300_dummy_id): Delete.
11792 (h8300_gdbarch_init): Don't register deleted functions with
11793 gdbarch.
11794
11795 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11796
11797 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11798 (ft32_unwind_pc): Delete.
11799 (ft32_unwind_sp): Delete.
11800 (ft32_gdbarch_init): Don't register deleted functions with
11801 gdbarch.
11802
11803 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11804
11805 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11806 (frv_unwind_pc): Delete.
11807 (frv_unwind_sp): Delete.
11808 (frv_gdbarch_init): Don't register deleted functions with
11809 gdbarch.
11810
11811 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11812
11813 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11814 (riscv_unwind_pc): Delete.
11815 (riscv_unwind_sp): Delete.
11816 (riscv_gdbarch_init): Don't register deleted functions with
11817 gdbarch.
11818
11819 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11820
11821 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11822 (csky_unwind_pc): Delete.
11823 (csky_unwind_sp): Delete.
11824 (csky_gdbarch_init): Don't register deleted functions with
11825 gdbarch.
11826
11827 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11828
11829 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11830 (cris_unwind_pc): Delete.
11831 (cris_unwind_sp): Delete.
11832 (cris_gdbarch_init): Don't register deleted functions with
11833 gdbarch.
11834
11835 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11836
11837 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11838 (bfin_unwind_pc): Delete.
11839 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11840
11841 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11842
11843 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11844 (arm_unwind_pc): Delete.
11845 (arm_unwind_sp): Delete.
11846 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11847
11848 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11849
11850 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11851 (arc_unwind_pc): Delete.
11852 (arc_unwind_sp): Delete.
11853 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11854
11855 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11856
11857 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11858 (alpha_unwind_pc): Delete.
11859 (alpha_gdbarch_init): Don't register deleted functions with
11860 gdbarch.
11861
11862 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11863
11864 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11865 (aarch64_unwind_pc): Delete.
11866 (aarch64_unwind_sp): Delete.
11867 (aarch64_gdbarch_init): Don't register deleted functions with
11868 gdbarch.
11869
11870 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11871
11872 * gdbtypes.c (type_align): Don't consider static members when
11873 computing structure alignment.
11874
11875 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11876
11877 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11878 return 0 for other types.
11879 * arch-utils.c (default_type_align): Always return 0.
11880 * gdbarch.h: Regenerate.
11881 * gdbarch.sh (type_align): Extend comment.
11882 * gdbtypes.c (type_align): Add additional comments, always call
11883 gdbarch_type_align before applying the default rules.
11884 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11885 generic code will then apply a suitable default.
11886 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11887 types, return 0 for other types.
11888
11889 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11890
11891 * NEWS: Create a new section for the next release branch.
11892 Rename the section of the current branch, now that it has
11893 been cut.
11894
11895 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11896
11897 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11898 * version.in: Bump version to 8.3.50.DATE-git.
11899
11900 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
11901
11902 * aix-thread.c (ptid_cmp): Remove unused variable.
11903 (get_signaled_thread): Likewise.
11904 (store_regs_user_thread): Likewise.
11905 (store_regs_kernel_thread): Likewise.
11906 (fetch_regs_kernel_thread): Remove shadowed variable.
11907
11908 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11909
11910 * features/riscv/32bit-cpu.xml: Add register numbers.
11911 * features/riscv/32bit-fpu.c: Regenerate.
11912 * features/riscv/32bit-fpu.xml: Add register numbers.
11913 * features/riscv/64bit-cpu.xml: Add register numbers.
11914 * features/riscv/64bit-fpu.c: Regenerate.
11915 * features/riscv/64bit-fpu.xml: Add register numbers.
11916
11917 2019-02-26 Kevin Buettner <kevinb@redhat.com>
11918
11919 * NEWS: Mention two argument form of gdb.Value constructor.
11920 * python/py-value.c (convert_buffer_and_type_to_value): New
11921 function.
11922 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11923 Add support for handling an optional second argument. Call
11924 convert_buffer_and_type_to_value as appropriate.
11925 * python/python-internal.h (Py_buffer_deleter): New struct.
11926 (Py_buffer_up): New typedef.
11927
11928 2019-02-25 John Baldwin <jhb@FreeBSD.org>
11929
11930 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11931 instead of releasing ownership.
11932
11933 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
11934
11935 * dwarf2read.c (open_and_init_dwp_file): Call
11936 elf_numsections instead of bfd_count_sections to initialize
11937 dwp_file->num_sections.
11938
11939 2019-02-25 Tom Tromey <tromey@adacore.com>
11940
11941 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11942
11943 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11944
11945 * gcore.in: Add '--readnever' option when invoking GDB.
11946
11947 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11948
11949 * MAINTAINERS: Update my email address.
11950
11951 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11952
11953 * build-id.c (build_id_to_debug_bfd_1): New function.
11954 (build_id_to_debug_bfd): Look for separate debug file in
11955 sysroot.
11956
11957 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11958
11959 * gdbarch.sh: Update the copyright year range that is placed into
11960 generated files.
11961
11962 2019-02-22 Keith Seitz <keiths@redhat.com>
11963
11964 PR symtab/23853
11965 * linespec.c (create_sals_line_offset): Search for the default
11966 symtab's filename instead of its fullname.
11967
11968 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11969
11970 * NEWS: Update style defaults.
11971
11972 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11973
11974 * main.c (captured_main_1): Disable styling in batch mode.
11975
11976 2019-02-20 Tom Tromey <tom@tromey.com>
11977
11978 * symtab.c (symtab_symbol_info): Fix typos.
11979
11980 2019-02-20 Tom Tromey <tromey@adacore.com>
11981
11982 * findcmd.c (_initialize_mem_search): Use upper case for
11983 metasyntactic variables.
11984
11985 2019-02-20 Alan Hayward <alan.hayward@arm.com>
11986
11987 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11988 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11989
11990 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11991
11992 * top.h (source_file_name): Change to std::string.
11993 * top.c (source_file_name): Likewise.
11994 (command_line_input): Adjust.
11995 * cli/cli-script.c (script_from_file): Adjust.
11996
11997 2019-02-19 Tom Tromey <tromey@adacore.com>
11998
11999 * ravenscar-thread.c
12000 (ravenscar_thread_target::update_thread_list): Don't call
12001 ada_build_task_list.
12002 * ada-lang.h (ada_build_task_list): Don't declare.
12003 * ada-tasks.c (struct ada_tasks_inferior_data)
12004 <task_list_valid_p>: Now bool.
12005 (read_known_tasks, ada_task_list_changed)
12006 (ada_tasks_invalidate_inferior_data): Update.
12007 (read_known_tasks_array): Return bool.
12008 (read_known_tasks_list): Likewise.
12009 (read_known_tasks): Return void.
12010 (ada_build_task_list): Now static.
12011
12012 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12013
12014 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12015 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12016
12017 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12018
12019 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12020 variant for ada_tasks_pspace_data_handle and
12021 ada_tasks_inferior_data_handle.
12022 (ada_tasks_pspace_data_cleanup): New function.
12023 (ada_tasks_inferior_data_cleanup): New function.
12024
12025 2019-02-17 Tom Tromey <tom@tromey.com>
12026
12027 * macrotab.h (macro_source_fullname): Return a std::string.
12028 * macrotab.c (macro_include, check_for_redefinition)
12029 (macro_undef, macro_lookup_definition, foreach_macro)
12030 (foreach_macro_in_scope): Update.
12031 (macro_source_fullname): Return a std::string.
12032 * macrocmd.c (show_pp_source_pos): Update.
12033
12034 2019-02-17 Tom Tromey <tom@tromey.com>
12035
12036 * macrocmd.c (show_pp_source_pos): Style the file names.
12037
12038 2019-02-17 Tom Tromey <tom@tromey.com>
12039
12040 PR tui/24197:
12041 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12042
12043 2019-02-17 Tom Tromey <tom@tromey.com>
12044
12045 * ada-lang.c (user_select_syms): Use filtered printing.
12046 * utils.c (wrap_style): New global.
12047 (desired_style): Remove.
12048 (emit_style_escape): Add stream parameter.
12049 (set_output_style, reset_terminal_style, prompt_for_continue):
12050 Update.
12051 (flush_wrap_buffer): Only flush gdb_stdout.
12052 (wrap_here): Set wrap_style.
12053 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12054 treat escape sequences as a character. Change when wrap buffer is
12055 flushed.
12056 (fputs_styled): Do not set the output style when the default is
12057 requested.
12058 * ui-style.h (struct ui_file_style) <is_default>: New method.
12059 * source.c (print_source_lines_base): Emit escape sequences in one
12060 piece.
12061
12062 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12063
12064 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12065 integers and enumeration types.
12066
12067 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12068
12069 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12070 instead of lookup_symbol_in_language
12071 (do_exact_match): New function.
12072 (ada_get_symbol_name_matcher): Return do_exact_match when
12073 doing a verbatim match.
12074
12075 2019-02-15 Tom Tromey <tromey@adacore.com>
12076
12077 * ravenscar-thread.c (ravenscar_thread_target::resume)
12078 (ravenscar_thread_target::wait): Special case wildcard requests.
12079
12080 2019-02-15 Tom Tromey <tromey@adacore.com>
12081
12082 * ravenscar-thread.c (base_ptid): Remove.
12083 (struct ravenscar_thread_target) <close>: New method.
12084 <m_base_ptid>: New member.
12085 <update_inferior_ptid, active_task, task_is_currently_active,
12086 runtime_initialized>: Declare methods.
12087 <ravenscar_thread_target>: Add constructor.
12088 (ravenscar_thread_target::task_is_currently_active)
12089 (ravenscar_thread_target::update_inferior_ptid)
12090 (ravenscar_runtime_initialized): Rename. Now methods.
12091 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12092 (ravenscar_thread_target::update_thread_list): Update.
12093 (ravenscar_thread_target::active_task): Now method.
12094 (ravenscar_thread_target::store_registers)
12095 (ravenscar_thread_target::prepare_to_store)
12096 (ravenscar_thread_target::prepare_to_store)
12097 (ravenscar_thread_target::mourn_inferior): Update.
12098 (ravenscar_inferior_created): Use "new" to create target.
12099 (ravenscar_thread_target::get_ada_task_ptid): Update.
12100 (_initialize_ravenscar): Don't initialize base_ptid.
12101 (ravenscar_ops): Remove global.
12102
12103 2019-02-15 Tom Tromey <tromey@adacore.com>
12104
12105 * target.h (push_target): Declare new overload.
12106 * target.c (push_target): New overload, taking an rvalue reference.
12107 * remote.c (remote_target::open_1): Use push_target overload.
12108 * corelow.c (core_target_open): Use push_target overload.
12109
12110 2019-02-15 Tom Tromey <tromey@adacore.com>
12111
12112 * ravenscar-thread.c (is_ravenscar_task)
12113 (ravenscar_task_is_currently_active): Return bool.
12114 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12115 (_initialize_ravenscar): Remove "(void)".
12116 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12117 Return bool.
12118
12119 2019-02-15 Tom Tromey <tromey@adacore.com>
12120
12121 * ravenscar-thread.c (ravenscar_runtime_initializer)
12122 (has_ravenscar_runtime, get_running_thread_id)
12123 (ravenscar_thread_target::resume): Fix indentation.
12124
12125 2019-02-15 Tom Tromey <tromey@adacore.com>
12126
12127 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12128 from ravenscar_arch_ops.
12129 (sparc_ravenscar_ops::fetch_registers)
12130 (sparc_ravenscar_ops::store_registers): Now methods.
12131 (sparc_ravenscar_prepare_to_store): Remove.
12132 (sparc_ravenscar_ops): Redefine.
12133 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12134 methods and destructor. Remove members.
12135 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12136 (ravenscar_thread_target::store_registers)
12137 (ravenscar_thread_target::prepare_to_store): Update.
12138 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12139 Remove.
12140 (struct ppc_ravenscar_powerpc_ops): Derive from
12141 ravenscar_arch_ops.
12142 (ppc_ravenscar_powerpc_ops::fetch_registers)
12143 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12144 (ppc_ravenscar_powerpc_ops): Redefine.
12145 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12146 (ppc_ravenscar_e500_ops::fetch_registers)
12147 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12148 (ppc_ravenscar_e500_ops): Redefine.
12149 * aarch64-ravenscar-thread.c
12150 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12151 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12152 (aarch64_ravenscar_fetch_registers)
12153 (aarch64_ravenscar_store_registers): Now methods.
12154 (aarch64_ravenscar_ops): Redefine.
12155
12156 2019-02-15 Tom Tromey <tromey@adacore.com>
12157
12158 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12159 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12160 (ravenscar_thread_target::stopped_by_watchpoint)
12161 (ravenscar_thread_target::stopped_data_address)
12162 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12163
12164 2019-02-15 Tom Tromey <tromey@adacore.com>
12165
12166 * ravenscar-thread.c: Fix some typos.
12167
12168 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12169 Tom Tromey <tromey@adacore.com>
12170
12171 * ada-lang.c (ada_exception_sal): Change addr_string to a
12172 std::string.
12173 (create_ada_exception_catchpoint): Update.
12174
12175 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12176 Tom Tromey <tromey@adacore.com>
12177
12178 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12179 (bp_location_ops): Remove.
12180 (base_breakpoint_allocate_location): Update.
12181 (free_bp_location): Update.
12182 * ada-lang.c (class ada_catchpoint_location)
12183 <ada_catchpoint_location>: Remove ops parameter.
12184 (ada_catchpoint_location_dtor): Remove.
12185 (ada_catchpoint_location_ops): Remove.
12186 (allocate_location_exception): Update.
12187 * breakpoint.h (struct bp_location_ops): Remove.
12188 (class bp_location) <bp_location>: Remove bp_location_ops
12189 parameter.
12190 <~bp_location>: Add destructor.
12191 <ops>: Remove.
12192
12193 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12194 Pedro Alves <palves@redhat.com>
12195
12196 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12197 'PATH_MAX'.
12198
12199 2019-02-14 David Michael <fedora.dm0@gmail.com>
12200 Samuel Thibault <samuel.thibault@gnu.org>
12201 Thomas Schwinge <thomas@codesourcery.com>
12202
12203 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12204 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12205
12206 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12207
12208 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12209 (check_empty): Use "const char *".
12210
12211 * gnu-nat.c (gnu_nat_target::detach): Instead of
12212 'detach_inferior (pid)' call
12213 'detach_inferior (find_inferior_pid (pid))'.
12214
12215 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12216 'nat/fork-inferior.o'.
12217 * gnu-nat.c: #include "nat/fork-inferior.h".
12218
12219 * gnu-nat.c (gnu_nat_target::detach): Instead of
12220 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12221 * gnu-nat.h: #include "inf-child.h".
12222 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12223 'i386_gnu_nat_target::fetch_registers'.
12224 (gnu_store_registers): Rename/move to
12225 'i386_gnu_nat_target::store_registers'.
12226
12227 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12228 * gnu-nat.h (mach_thread_info): New function.
12229 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12230
12231 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12232
12233 2019-02-14 Frederic Konrad <konrad@adacore.com>
12234
12235 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12236
12237 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12238
12239 * windows-nat.c (windows_add_thread): Add new parameter
12240 "main_thread_p" with default value set to false. Update
12241 function documentation as well as all callers.
12242 (windows_delete_thread): Likewise.
12243 (fake_create_process): Update call to windows_add_thread.
12244 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12245 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12246 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12247 call to windows_delete_thread.
12248
12249 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12250
12251 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12252
12253 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12254
12255 * symfile.c (find_separate_debug_file): Use canonical path of
12256 sysroot with child_path instead of gdb_sysroot if it is valid.
12257
12258 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12259
12260 * symfile.c (find_separate_debug_file): Use child_path to
12261 determine if an object file is under a sysroot.
12262
12263 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12264
12265 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12266 unittests/child-path-selftests.c.
12267 * common/pathstuff.c (child_path): New function.
12268 * common/pathstuff.h (child_path): New prototype.
12269 * unittests/child-path-selftests.c: New file.
12270
12271 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12272
12273 * symfile.c (find_separate_debug_file): Look for separate debug
12274 files in debug directories under the sysroot.
12275
12276 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12277
12278 * symtab.h (struct minimal_symbol data_p): New const method.
12279 (struct minimal_symbol text_p): Likewise.
12280 * symtab.c (output_source_filename): Use file name style
12281 to print file name.
12282 (print_symbol_info): Likewise.
12283 (print_msymbol_info): Use address style to print addresses.
12284 Use function name style to print executable text symbols.
12285 (expand_symtab_containing_pc): Use data_p.
12286 (find_pc_sect_compunit_symtab): Likewise.
12287
12288 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12289
12290 * breakpoint.c (describe_other_breakpoints): Use address style
12291 to print addresses.
12292 (say_where): Likewise.
12293
12294 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12295
12296 * ada-typeprint.c (print_func_type): Print function name
12297 style to print function name.
12298 * c-typeprint.c (c_print_type_1): Likewise.
12299
12300 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12301
12302 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12303 for execve.
12304
12305 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12306
12307 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12308 type_stack.
12309
12310 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12311
12312 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12313 TYPE_CODE_REF types.
12314
12315 2019-02-08 Jim Wilson <jimw@sifive.com>
12316
12317 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12318 (riscv_linux_fregset): New.
12319 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12320
12321 2019-02-07 Tom Tromey <tom@tromey.com>
12322
12323 * thread.c (thread_cancel_execution_command): Update.
12324 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12325 methods.
12326 (struct thread_fsm_ops): Remove.
12327 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12328 (thread_fsm_should_stop, thread_fsm_return_value)
12329 (thread_fsm_set_finished, thread_fsm_finished_p)
12330 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12331 Don't declare.
12332 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12333 * infrun.c (clear_proceed_status_thread)
12334 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12335 (print_stop_event): Update.
12336 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12337 Add constructor.
12338 (step_command_fsm_ops): Remove.
12339 (new_step_command_fsm): Remove.
12340 (step_1): Update.
12341 (step_command_fsm::should_stop): Rename from
12342 step_command_fsm_should_stop.
12343 (step_command_fsm::clean_up): Rename from
12344 step_command_fsm_clean_up.
12345 (step_command_fsm::do_async_reply_reason): Rename from
12346 step_command_fsm_async_reply_reason.
12347 (struct until_next_fsm): Inherit from thread_fsm. Add
12348 constructor.
12349 (until_next_fsm_ops): Remove.
12350 (new_until_next_fsm): Remove.
12351 (until_next_fsm::should_stop): Rename from
12352 until_next_fsm_should_stop.
12353 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12354 (until_next_fsm::do_async_reply_reason): Rename from
12355 until_next_fsm_async_reply_reason.
12356 (struct finish_command_fsm): Inherit from thread_fsm. Add
12357 constructor. Change type of breakpoint.
12358 (finish_command_fsm_ops): Remove.
12359 (new_finish_command_fsm): Remove.
12360 (finish_command_fsm::should_stop): Rename from
12361 finish_command_fsm_should_stop.
12362 (finish_command_fsm::clean_up): Rename from
12363 finish_command_fsm_clean_up.
12364 (finish_command_fsm::return_value): Rename from
12365 finish_command_fsm_return_value.
12366 (finish_command_fsm::do_async_reply_reason): Rename from
12367 finish_command_fsm_async_reply_reason.
12368 (finish_command): Update.
12369 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12370 Add constructor.
12371 (call_thread_fsm_ops): Remove.
12372 (call_thread_fsm::call_thread_fsm): Rename from
12373 new_call_thread_fsm.
12374 (call_thread_fsm::should_stop): Rename from
12375 call_thread_fsm_should_stop.
12376 (call_thread_fsm::should_notify_stop): Rename from
12377 call_thread_fsm_should_notify_stop.
12378 (run_inferior_call, call_function_by_hand_dummy): Update.
12379 * cli/cli-interp.c (should_print_stop_to_console): Update.
12380 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12381 Add constructor. Change type of location_breakpoint,
12382 caller_breakpoint.
12383 (until_break_fsm_ops): Remove.
12384 (new_until_break_fsm): Remove.
12385 (until_break_fsm::should_stop): Rename from
12386 until_break_fsm_should_stop.
12387 (until_break_fsm::clean_up): Rename from
12388 until_break_fsm_clean_up.
12389 (until_break_fsm::do_async_reply_reason): Rename from
12390 until_break_fsm_async_reply_reason.
12391 (until_break_command): Update.
12392 * thread-fsm.c: Remove.
12393 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12394
12395 2019-02-07 Tom Tromey <tom@tromey.com>
12396
12397 * yy-remap.h: Add include guard.
12398 * xtensa-tdep.h: Add include guard.
12399 * xcoffread.h: Rename include guard.
12400 * varobj-iter.h: Add include guard.
12401 * tui/tui.h: Rename include guard.
12402 * tui/tui-winsource.h: Rename include guard.
12403 * tui/tui-wingeneral.h: Rename include guard.
12404 * tui/tui-windata.h: Rename include guard.
12405 * tui/tui-win.h: Rename include guard.
12406 * tui/tui-stack.h: Rename include guard.
12407 * tui/tui-source.h: Rename include guard.
12408 * tui/tui-regs.h: Rename include guard.
12409 * tui/tui-out.h: Rename include guard.
12410 * tui/tui-layout.h: Rename include guard.
12411 * tui/tui-io.h: Rename include guard.
12412 * tui/tui-hooks.h: Rename include guard.
12413 * tui/tui-file.h: Rename include guard.
12414 * tui/tui-disasm.h: Rename include guard.
12415 * tui/tui-data.h: Rename include guard.
12416 * tui/tui-command.h: Rename include guard.
12417 * tic6x-tdep.h: Add include guard.
12418 * target/waitstatus.h: Rename include guard.
12419 * target/wait.h: Rename include guard.
12420 * target/target.h: Rename include guard.
12421 * target/resume.h: Rename include guard.
12422 * target-float.h: Rename include guard.
12423 * stabsread.h: Add include guard.
12424 * rs6000-tdep.h: Add include guard.
12425 * riscv-fbsd-tdep.h: Add include guard.
12426 * regformats/regdef.h: Rename include guard.
12427 * record.h: Rename include guard.
12428 * python/python.h: Rename include guard.
12429 * python/python-internal.h: Rename include guard.
12430 * python/py-stopevent.h: Rename include guard.
12431 * python/py-ref.h: Rename include guard.
12432 * python/py-record.h: Rename include guard.
12433 * python/py-record-full.h: Rename include guard.
12434 * python/py-record-btrace.h: Rename include guard.
12435 * python/py-instruction.h: Rename include guard.
12436 * python/py-events.h: Rename include guard.
12437 * python/py-event.h: Rename include guard.
12438 * procfs.h: Add include guard.
12439 * proc-utils.h: Add include guard.
12440 * p-lang.h: Add include guard.
12441 * or1k-tdep.h: Rename include guard.
12442 * observable.h: Rename include guard.
12443 * nto-tdep.h: Rename include guard.
12444 * nat/x86-linux.h: Rename include guard.
12445 * nat/x86-linux-dregs.h: Rename include guard.
12446 * nat/x86-gcc-cpuid.h: Add include guard.
12447 * nat/x86-dregs.h: Rename include guard.
12448 * nat/x86-cpuid.h: Rename include guard.
12449 * nat/ppc-linux.h: Rename include guard.
12450 * nat/mips-linux-watch.h: Rename include guard.
12451 * nat/linux-waitpid.h: Rename include guard.
12452 * nat/linux-ptrace.h: Rename include guard.
12453 * nat/linux-procfs.h: Rename include guard.
12454 * nat/linux-osdata.h: Rename include guard.
12455 * nat/linux-nat.h: Rename include guard.
12456 * nat/linux-namespaces.h: Rename include guard.
12457 * nat/linux-btrace.h: Rename include guard.
12458 * nat/glibc_thread_db.h: Rename include guard.
12459 * nat/gdb_thread_db.h: Rename include guard.
12460 * nat/gdb_ptrace.h: Rename include guard.
12461 * nat/fork-inferior.h: Rename include guard.
12462 * nat/amd64-linux-siginfo.h: Rename include guard.
12463 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12464 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12465 * nat/aarch64-linux.h: Rename include guard.
12466 * nat/aarch64-linux-hw-point.h: Rename include guard.
12467 * mn10300-tdep.h: Add include guard.
12468 * mips-linux-tdep.h: Add include guard.
12469 * mi/mi-parse.h: Rename include guard.
12470 * mi/mi-out.h: Rename include guard.
12471 * mi/mi-main.h: Rename include guard.
12472 * mi/mi-interp.h: Rename include guard.
12473 * mi/mi-getopt.h: Rename include guard.
12474 * mi/mi-console.h: Rename include guard.
12475 * mi/mi-common.h: Rename include guard.
12476 * mi/mi-cmds.h: Rename include guard.
12477 * mi/mi-cmd-break.h: Rename include guard.
12478 * m2-lang.h: Add include guard.
12479 * location.h: Rename include guard.
12480 * linux-record.h: Rename include guard.
12481 * linux-nat.h: Add include guard.
12482 * linux-fork.h: Add include guard.
12483 * i386-darwin-tdep.h: Rename include guard.
12484 * hppa-linux-offsets.h: Add include guard.
12485 * guile/guile.h: Rename include guard.
12486 * guile/guile-internal.h: Rename include guard.
12487 * gnu-nat.h: Rename include guard.
12488 * gdb-stabs.h: Rename include guard.
12489 * frv-tdep.h: Add include guard.
12490 * f-lang.h: Add include guard.
12491 * event-loop.h: Add include guard.
12492 * darwin-nat.h: Rename include guard.
12493 * cp-abi.h: Rename include guard.
12494 * config/sparc/nm-sol2.h: Rename include guard.
12495 * config/nm-nto.h: Rename include guard.
12496 * config/nm-linux.h: Add include guard.
12497 * config/i386/nm-i386gnu.h: Rename include guard.
12498 * config/djgpp/nl_types.h: Rename include guard.
12499 * config/djgpp/langinfo.h: Rename include guard.
12500 * compile/gcc-cp-plugin.h: Add include guard.
12501 * compile/gcc-c-plugin.h: Add include guard.
12502 * compile/compile.h: Rename include guard.
12503 * compile/compile-object-run.h: Rename include guard.
12504 * compile/compile-object-load.h: Rename include guard.
12505 * compile/compile-internal.h: Rename include guard.
12506 * compile/compile-cplus.h: Rename include guard.
12507 * compile/compile-c.h: Rename include guard.
12508 * common/xml-utils.h: Rename include guard.
12509 * common/x86-xstate.h: Rename include guard.
12510 * common/version.h: Rename include guard.
12511 * common/vec.h: Rename include guard.
12512 * common/tdesc.h: Rename include guard.
12513 * common/selftest.h: Rename include guard.
12514 * common/scoped_restore.h: Rename include guard.
12515 * common/scoped_mmap.h: Rename include guard.
12516 * common/scoped_fd.h: Rename include guard.
12517 * common/safe-iterator.h: Rename include guard.
12518 * common/run-time-clock.h: Rename include guard.
12519 * common/refcounted-object.h: Rename include guard.
12520 * common/queue.h: Rename include guard.
12521 * common/ptid.h: Rename include guard.
12522 * common/print-utils.h: Rename include guard.
12523 * common/preprocessor.h: Rename include guard.
12524 * common/pathstuff.h: Rename include guard.
12525 * common/observable.h: Rename include guard.
12526 * common/netstuff.h: Rename include guard.
12527 * common/job-control.h: Rename include guard.
12528 * common/host-defs.h: Rename include guard.
12529 * common/gdb_wait.h: Rename include guard.
12530 * common/gdb_vecs.h: Rename include guard.
12531 * common/gdb_unlinker.h: Rename include guard.
12532 * common/gdb_unique_ptr.h: Rename include guard.
12533 * common/gdb_tilde_expand.h: Rename include guard.
12534 * common/gdb_sys_time.h: Rename include guard.
12535 * common/gdb_string_view.h: Rename include guard.
12536 * common/gdb_splay_tree.h: Rename include guard.
12537 * common/gdb_setjmp.h: Rename include guard.
12538 * common/gdb_ref_ptr.h: Rename include guard.
12539 * common/gdb_optional.h: Rename include guard.
12540 * common/gdb_locale.h: Rename include guard.
12541 * common/gdb_assert.h: Rename include guard.
12542 * common/filtered-iterator.h: Rename include guard.
12543 * common/filestuff.h: Rename include guard.
12544 * common/fileio.h: Rename include guard.
12545 * common/environ.h: Rename include guard.
12546 * common/common-utils.h: Rename include guard.
12547 * common/common-types.h: Rename include guard.
12548 * common/common-regcache.h: Rename include guard.
12549 * common/common-inferior.h: Rename include guard.
12550 * common/common-gdbthread.h: Rename include guard.
12551 * common/common-exceptions.h: Rename include guard.
12552 * common/common-defs.h: Rename include guard.
12553 * common/common-debug.h: Rename include guard.
12554 * common/cleanups.h: Rename include guard.
12555 * common/buffer.h: Rename include guard.
12556 * common/btrace-common.h: Rename include guard.
12557 * common/break-common.h: Rename include guard.
12558 * cli/cli-utils.h: Rename include guard.
12559 * cli/cli-style.h: Rename include guard.
12560 * cli/cli-setshow.h: Rename include guard.
12561 * cli/cli-script.h: Rename include guard.
12562 * cli/cli-interp.h: Rename include guard.
12563 * cli/cli-decode.h: Rename include guard.
12564 * cli/cli-cmds.h: Rename include guard.
12565 * charset-list.h: Add include guard.
12566 * buildsym-legacy.h: Rename include guard.
12567 * bfin-tdep.h: Add include guard.
12568 * ax.h: Rename include guard.
12569 * arm-linux-tdep.h: Add include guard.
12570 * arm-fbsd-tdep.h: Add include guard.
12571 * arch/xtensa.h: Rename include guard.
12572 * arch/tic6x.h: Add include guard.
12573 * arch/i386.h: Add include guard.
12574 * arch/arm.h: Rename include guard.
12575 * arch/arm-linux.h: Rename include guard.
12576 * arch/arm-get-next-pcs.h: Rename include guard.
12577 * arch/amd64.h: Add include guard.
12578 * arch/aarch64-insn.h: Rename include guard.
12579 * arch-utils.h: Rename include guard.
12580 * annotate.h: Add include guard.
12581 * amd64-darwin-tdep.h: Rename include guard.
12582 * aarch64-linux-tdep.h: Add include guard.
12583 * aarch64-fbsd-tdep.h: Add include guard.
12584 * aarch32-linux-nat.h: Add include guard.
12585
12586 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12587
12588 * macrotab.c (macro_define_internal): New function that
12589 factorizes macro_define_object_internal and macro_define_function
12590 code.
12591 (macro_define_object_internal): Use macro_define_internal.
12592 (macro_define_function): Likewise.
12593
12594 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12595
12596 * macrocmd.c (extract_identifier): Return
12597 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12598 callers.
12599
12600 2019-02-06 John Baldwin <jhb@FreeBSD.org>
12601
12602 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12603
12604 2019-02-05 Tom Tromey <tom@tromey.com>
12605
12606 * target.c (target_stack::unpush): Move assertion earlier.
12607
12608 2019-01-30 Tom Tromey <tom@tromey.com>
12609
12610 PR python/23615:
12611 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12612 (gdbpy_parse_and_eval): Likewise.
12613 * python/python-internal.h (gdbpy_allow_threads): New class.
12614
12615 2019-01-28 John Baldwin <jhb@FreeBSD.org>
12616
12617 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12618 (aarch64_fbsd_fpregmap): Move earlier.
12619 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12620 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12621 instead of individual calls to trad_frame_set_reg_addr.
12622 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12623 earlier.
12624 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12625 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12626 instead of individual calls to trad_frame_set_reg_addr.
12627
12628 2019-01-28 Alan Hayward <alan.hayward@arm.com>
12629
12630 * CONTRIBUTE: Replace contribution list with wiki link.
12631
12632 2019-01-25 Tom Tromey <tom@tromey.com>
12633
12634 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12635
12636 2019-01-25 Tom Tromey <tom@tromey.com>
12637
12638 * xtensa-linux-nat.c: Fix common/ includes.
12639 * xml-support.h: Fix common/ includes.
12640 * xml-support.c: Fix common/ includes.
12641 * x86-linux-nat.c: Fix common/ includes.
12642 * windows-nat.c: Fix common/ includes.
12643 * varobj.h: Fix common/ includes.
12644 * varobj.c: Fix common/ includes.
12645 * value.c: Fix common/ includes.
12646 * valops.c: Fix common/ includes.
12647 * utils.c: Fix common/ includes.
12648 * unittests/xml-utils-selftests.c: Fix common/ includes.
12649 * unittests/utils-selftests.c: Fix common/ includes.
12650 * unittests/unpack-selftests.c: Fix common/ includes.
12651 * unittests/tracepoint-selftests.c: Fix common/ includes.
12652 * unittests/style-selftests.c: Fix common/ includes.
12653 * unittests/string_view-selftests.c: Fix common/ includes.
12654 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12655 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12656 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12657 * unittests/rsp-low-selftests.c: Fix common/ includes.
12658 * unittests/parse-connection-spec-selftests.c: Fix common/
12659 includes.
12660 * unittests/optional-selftests.c: Fix common/ includes.
12661 * unittests/offset-type-selftests.c: Fix common/ includes.
12662 * unittests/observable-selftests.c: Fix common/ includes.
12663 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12664 * unittests/memrange-selftests.c: Fix common/ includes.
12665 * unittests/memory-map-selftests.c: Fix common/ includes.
12666 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12667 * unittests/function-view-selftests.c: Fix common/ includes.
12668 * unittests/environ-selftests.c: Fix common/ includes.
12669 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12670 * unittests/common-utils-selftests.c: Fix common/ includes.
12671 * unittests/cli-utils-selftests.c: Fix common/ includes.
12672 * unittests/array-view-selftests.c: Fix common/ includes.
12673 * ui-file.c: Fix common/ includes.
12674 * tui/tui-io.c: Fix common/ includes.
12675 * tracepoint.h: Fix common/ includes.
12676 * tracepoint.c: Fix common/ includes.
12677 * tracefile-tfile.c: Fix common/ includes.
12678 * top.h: Fix common/ includes.
12679 * top.c: Fix common/ includes.
12680 * thread.c: Fix common/ includes.
12681 * target/waitstatus.h: Fix common/ includes.
12682 * target/waitstatus.c: Fix common/ includes.
12683 * target.h: Fix common/ includes.
12684 * target.c: Fix common/ includes.
12685 * target-memory.c: Fix common/ includes.
12686 * target-descriptions.c: Fix common/ includes.
12687 * symtab.h: Fix common/ includes.
12688 * symfile.c: Fix common/ includes.
12689 * stap-probe.c: Fix common/ includes.
12690 * spu-linux-nat.c: Fix common/ includes.
12691 * sparc-nat.c: Fix common/ includes.
12692 * source.c: Fix common/ includes.
12693 * solib.c: Fix common/ includes.
12694 * solib-target.c: Fix common/ includes.
12695 * ser-unix.c: Fix common/ includes.
12696 * ser-tcp.c: Fix common/ includes.
12697 * ser-pipe.c: Fix common/ includes.
12698 * ser-base.c: Fix common/ includes.
12699 * selftest-arch.c: Fix common/ includes.
12700 * s12z-tdep.c: Fix common/ includes.
12701 * rust-exp.y: Fix common/ includes.
12702 * rs6000-aix-tdep.c: Fix common/ includes.
12703 * riscv-tdep.c: Fix common/ includes.
12704 * remote.c: Fix common/ includes.
12705 * remote-notif.h: Fix common/ includes.
12706 * remote-fileio.h: Fix common/ includes.
12707 * remote-fileio.c: Fix common/ includes.
12708 * regcache.h: Fix common/ includes.
12709 * regcache.c: Fix common/ includes.
12710 * record-btrace.c: Fix common/ includes.
12711 * python/python.c: Fix common/ includes.
12712 * python/py-type.c: Fix common/ includes.
12713 * python/py-inferior.c: Fix common/ includes.
12714 * progspace.h: Fix common/ includes.
12715 * producer.c: Fix common/ includes.
12716 * procfs.c: Fix common/ includes.
12717 * proc-api.c: Fix common/ includes.
12718 * printcmd.c: Fix common/ includes.
12719 * ppc-linux-nat.c: Fix common/ includes.
12720 * parser-defs.h: Fix common/ includes.
12721 * osdata.c: Fix common/ includes.
12722 * obsd-nat.c: Fix common/ includes.
12723 * nat/x86-linux.c: Fix common/ includes.
12724 * nat/x86-linux-dregs.c: Fix common/ includes.
12725 * nat/x86-dregs.h: Fix common/ includes.
12726 * nat/x86-dregs.c: Fix common/ includes.
12727 * nat/ppc-linux.c: Fix common/ includes.
12728 * nat/mips-linux-watch.h: Fix common/ includes.
12729 * nat/mips-linux-watch.c: Fix common/ includes.
12730 * nat/linux-waitpid.c: Fix common/ includes.
12731 * nat/linux-ptrace.h: Fix common/ includes.
12732 * nat/linux-ptrace.c: Fix common/ includes.
12733 * nat/linux-procfs.c: Fix common/ includes.
12734 * nat/linux-personality.c: Fix common/ includes.
12735 * nat/linux-osdata.c: Fix common/ includes.
12736 * nat/linux-namespaces.c: Fix common/ includes.
12737 * nat/linux-btrace.h: Fix common/ includes.
12738 * nat/linux-btrace.c: Fix common/ includes.
12739 * nat/fork-inferior.c: Fix common/ includes.
12740 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12741 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12742 * nat/aarch64-linux.c: Fix common/ includes.
12743 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12744 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12745 * namespace.h: Fix common/ includes.
12746 * mips-linux-tdep.c: Fix common/ includes.
12747 * minsyms.c: Fix common/ includes.
12748 * mi/mi-parse.h: Fix common/ includes.
12749 * mi/mi-main.c: Fix common/ includes.
12750 * mi/mi-cmd-env.c: Fix common/ includes.
12751 * memrange.h: Fix common/ includes.
12752 * memattr.c: Fix common/ includes.
12753 * maint.h: Fix common/ includes.
12754 * maint.c: Fix common/ includes.
12755 * main.c: Fix common/ includes.
12756 * machoread.c: Fix common/ includes.
12757 * location.c: Fix common/ includes.
12758 * linux-thread-db.c: Fix common/ includes.
12759 * linux-nat.c: Fix common/ includes.
12760 * linux-fork.c: Fix common/ includes.
12761 * inline-frame.c: Fix common/ includes.
12762 * infrun.c: Fix common/ includes.
12763 * inflow.c: Fix common/ includes.
12764 * inferior.h: Fix common/ includes.
12765 * inferior.c: Fix common/ includes.
12766 * infcmd.c: Fix common/ includes.
12767 * inf-ptrace.c: Fix common/ includes.
12768 * inf-child.c: Fix common/ includes.
12769 * ia64-linux-nat.c: Fix common/ includes.
12770 * i387-tdep.c: Fix common/ includes.
12771 * i386-tdep.c: Fix common/ includes.
12772 * i386-linux-tdep.c: Fix common/ includes.
12773 * i386-linux-nat.c: Fix common/ includes.
12774 * i386-go32-tdep.c: Fix common/ includes.
12775 * i386-fbsd-tdep.c: Fix common/ includes.
12776 * i386-fbsd-nat.c: Fix common/ includes.
12777 * guile/scm-type.c: Fix common/ includes.
12778 * guile/guile.c: Fix common/ includes.
12779 * go32-nat.c: Fix common/ includes.
12780 * gnu-nat.c: Fix common/ includes.
12781 * gdbthread.h: Fix common/ includes.
12782 * gdbarch-selftests.c: Fix common/ includes.
12783 * gdb_usleep.c: Fix common/ includes.
12784 * gdb_select.h: Fix common/ includes.
12785 * gdb_bfd.c: Fix common/ includes.
12786 * gcore.c: Fix common/ includes.
12787 * fork-child.c: Fix common/ includes.
12788 * findvar.c: Fix common/ includes.
12789 * fbsd-nat.c: Fix common/ includes.
12790 * event-top.c: Fix common/ includes.
12791 * event-loop.c: Fix common/ includes.
12792 * dwarf2read.c: Fix common/ includes.
12793 * dwarf2loc.c: Fix common/ includes.
12794 * dwarf2-frame.c: Fix common/ includes.
12795 * dwarf-index-cache.c: Fix common/ includes.
12796 * dtrace-probe.c: Fix common/ includes.
12797 * disasm-selftests.c: Fix common/ includes.
12798 * defs.h: Fix common/ includes.
12799 * csky-tdep.c: Fix common/ includes.
12800 * cp-valprint.c: Fix common/ includes.
12801 * cp-support.h: Fix common/ includes.
12802 * cp-support.c: Fix common/ includes.
12803 * corelow.c: Fix common/ includes.
12804 * completer.h: Fix common/ includes.
12805 * completer.c: Fix common/ includes.
12806 * compile/compile.c: Fix common/ includes.
12807 * compile/compile-loc2c.c: Fix common/ includes.
12808 * compile/compile-cplus-types.c: Fix common/ includes.
12809 * compile/compile-cplus-symbols.c: Fix common/ includes.
12810 * command.h: Fix common/ includes.
12811 * cli/cli-dump.c: Fix common/ includes.
12812 * cli/cli-cmds.c: Fix common/ includes.
12813 * charset.c: Fix common/ includes.
12814 * build-id.c: Fix common/ includes.
12815 * btrace.h: Fix common/ includes.
12816 * btrace.c: Fix common/ includes.
12817 * breakpoint.h: Fix common/ includes.
12818 * breakpoint.c: Fix common/ includes.
12819 * ax.h:
12820 (enum agent_op): Fix common/ includes.
12821 * ax-general.c (struct aop_map): Fix common/ includes.
12822 * ax-gdb.c: Fix common/ includes.
12823 * auxv.c: Fix common/ includes.
12824 * auto-load.c: Fix common/ includes.
12825 * arm-tdep.c: Fix common/ includes.
12826 * arch/riscv.c: Fix common/ includes.
12827 * arch/ppc-linux-common.c: Fix common/ includes.
12828 * arch/i386.c: Fix common/ includes.
12829 * arch/arm.c: Fix common/ includes.
12830 * arch/arm-linux.c: Fix common/ includes.
12831 * arch/arm-get-next-pcs.c: Fix common/ includes.
12832 * arch/amd64.c: Fix common/ includes.
12833 * arch/aarch64.c: Fix common/ includes.
12834 * arch/aarch64-insn.c: Fix common/ includes.
12835 * arch-utils.c: Fix common/ includes.
12836 * amd64-windows-tdep.c: Fix common/ includes.
12837 * amd64-tdep.c: Fix common/ includes.
12838 * amd64-sol2-tdep.c: Fix common/ includes.
12839 * amd64-obsd-tdep.c: Fix common/ includes.
12840 * amd64-nbsd-tdep.c: Fix common/ includes.
12841 * amd64-linux-tdep.c: Fix common/ includes.
12842 * amd64-linux-nat.c: Fix common/ includes.
12843 * amd64-fbsd-tdep.c: Fix common/ includes.
12844 * amd64-fbsd-nat.c: Fix common/ includes.
12845 * amd64-dicos-tdep.c: Fix common/ includes.
12846 * amd64-darwin-tdep.c: Fix common/ includes.
12847 * agent.c: Fix common/ includes.
12848 * ada-lang.h: Fix common/ includes.
12849 * ada-lang.c: Fix common/ includes.
12850 * aarch64-tdep.c: Fix common/ includes.
12851
12852 2019-01-25 Tom Tromey <tom@tromey.com>
12853
12854 * common/create-version.sh: Use common/version.h.
12855
12856 2019-01-24 Pedro Alves <palves@redhat.com>
12857
12858 * infrun.c (signal_stop, signal_print, signal_program)
12859 (signal_catch, signal_pass): Now arrays instead of pointers.
12860 (update_signals_program_target, do_target_resume)
12861 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12862 * linux-nat.c (linux_nat_target::pass_signals)
12863 (linux_nat_target::create_inferior, linux_nat_target::attach):
12864 Adjust.
12865 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12866 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12867 * procfs.c (procfs_target::pass_signals): Adjust.
12868 * record-full.c (record_full_target::resume): Adjust.
12869 * remote.c (remote_target::pass_signals)
12870 (remote_target::program_signals): Adjust.
12871 * target-debug.h (target_debug_print_signals): Now takes a
12872 gdb::array_view as parameter. Adjust.
12873 * target.h (target_ops) <pass_signals, program_signals>: Replace
12874 pointer and length parameters with gdb::array_view.
12875 (target_pass_signals, target_program_signals): Likewise.
12876 * target-delegates.c: Regenerate.
12877
12878 2019-01-24 Pedro Alves <palves@redhat.com>
12879
12880 * common/forward-scope-exit.h
12881 (forward_scope_exit::forward_scope_exit): Pass arguments to
12882 m_bind_function directly, instead of creating a std::bind and
12883 copying that.
12884
12885 2019-01-24 Alan Hayward <alan.hayward@arm.com>
12886
12887 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12888 for static members.
12889 (pass_in_v_vfp_candidate): Likewise.
12890
12891 2019-01-23 Tom Tromey <tom@tromey.com>
12892 Pedro Alves <palves@redhat.com>
12893
12894 * regcache.c (class regcache_invalidator): Remove.
12895 (regcache::raw_write): Use make_scope_exit.
12896
12897 2019-01-23 Tom Tromey <tom@tromey.com>
12898
12899 * ui-out.h (class ui_out_emit_type): Update comment.
12900
12901 2019-01-23 Tom Tromey <tom@tromey.com>
12902
12903 * infrun.c (fetch_inferior_event): Update comment.
12904
12905 2019-01-23 Tom Tromey <tom@tromey.com>
12906 Pedro Alves <palves@redhat.com>
12907
12908 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12909 parameter.
12910 (fetch_inferior_event): Use SCOPE_EXIT.
12911
12912
12913 2019-01-23 Tom Tromey <tom@tromey.com>
12914 Pedro Alves <palves@redhat.com>
12915
12916 * infrun.c (disable_thread_events): Delete.
12917 (stop_all_threads): Use SCOPE_EXIT.
12918
12919 2019-01-23 Tom Tromey <tom@tromey.com>
12920 Pedro Alves <palves@redhat.com>
12921
12922 * symfile.c: Include forward-scope-exit.h.
12923 (clear_symtab_users_cleanup): Replace forward declaration with
12924 a FORWARD_SCOPE_EXIT.
12925 (syms_from_objfile_1): Use the forward_scope_exit and
12926 gdb::optional instead of cleanup_function.
12927 (reread_symbols): Use the forward_scope_exit instead of
12928 cleanup_function.
12929 (clear_symtab_users_cleanup): Remove function.
12930
12931 2019-01-23 Tom Tromey <tom@tromey.com>
12932 Pedro Alves <palves@redhat.com>
12933
12934 * linux-nat.c: Include scope-exit.h.
12935 (cleanup_target_stop): Remove.
12936 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12937 SCOPE_EXIT.
12938
12939 2019-01-23 Tom Tromey <tom@tromey.com>
12940 Pedro Alves <palves@redhat.com>
12941
12942 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12943 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12944
12945 2019-01-23 Tom Tromey <tom@tromey.com>
12946 Andrew Burgess <andrew.burgess@embecosm.com>
12947 Pedro Alves <palves@redhat.com>
12948
12949 * infrun.c (fetch_inferior_event): Use scope_exit.
12950 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12951 * top.c (execute_command): Use scope_exit.
12952 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12953 * utils.c (do_bpstat_clear_actions_cleanup)
12954 (make_bpstat_clear_actions_cleanup): Remove.
12955
12956 2019-01-23 Tom Tromey <tom@tromey.com>
12957 Pedro Alves <palves@redhat.com>
12958
12959 * infrun.c: Include "common/scope-exit.h"
12960 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12961 (wait_for_inferior): Use SCOPE_EXIT.
12962 (fetch_inferior_event): Use scope_exit.
12963
12964 2019-01-23 Tom Tromey <tom@tromey.com>
12965 Pedro Alves <palves@redhat.com>
12966
12967 * breakpoint.c (create_breakpoint): Remove cleanup.
12968
12969 2019-01-23 Tom Tromey <tom@tromey.com>
12970 Andrew Burgess <andrew.burgess@embecosm.com>
12971 Pedro Alves <palves@redhat.com>
12972
12973 2019-01-23 Pedro Alves <palves@redhat.com>
12974
12975 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12976
12977 2019-01-23 Pedro Alves <palves@redhat.com>
12978 Andrew Burgess <andrew.burgess@embecosm.com>
12979
12980 * gdbthread.h: Include "common/forward-scope-exit.h".
12981 (scoped_finish_thread_state): Redefine custom class in terms of
12982 forward_scope_exit.
12983
12984 2019-01-23 Pedro Alves <palves@redhat.com>
12985 Andrew Burgess <andrew.burgess@embecosm.com>
12986
12987 * common/forward-scope-exit.h: New file.
12988
12989 2019-01-23 Pedro Alves <palves@redhat.com>
12990 Andrew Burgess <andrew.burgess@embecosm.com>
12991 Tom Tromey <tom@tromey.com>
12992
12993 * common/scope-exit.h: New file.
12994
12995 2019-01-23 Pedro Alves <palves@redhat.com>
12996
12997 * common/preprocessor.h (ESC): Rename to ...
12998 (ESC_PARENS): ... this.
12999 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13000 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13001
13002 2019-01-23 Tom Tromey <tom@tromey.com>
13003
13004 * language.h (class scoped_switch_to_sym_language_if_auto):
13005 Initialize m_lang in both cases.
13006
13007 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13008
13009 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13010 with XCNEW.
13011
13012 2019-01-22 Tom Tromey <tom@tromey.com>
13013
13014 * corelow.c: Do not include sys/file.h.
13015
13016 2019-01-22 Tom Tromey <tom@tromey.com>
13017
13018 * tui/tui-wingeneral.h: Include gdb_curses.h.
13019
13020 2019-01-22 Tom Tromey <tom@tromey.com>
13021
13022 * source-cache.h (class source_cache) <get_source_lines,
13023 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13024
13025 2019-01-22 Tom Tromey <tom@tromey.com>
13026
13027 * remote-fileio.h (struct remote_target): Declare.
13028
13029 2019-01-22 Tom Tromey <tom@tromey.com>
13030
13031 * python/py-arch.c: Do not include py-ref.h.
13032 * python/py-bpevent.c: Do not include py-ref.h.
13033 * python/py-cmd.c: Do not include py-ref.h.
13034 * python/py-continueevent.c: Do not include py-ref.h.
13035 * python/py-event.h: Do not include py-ref.h.
13036 * python/py-evtregistry.c: Do not include py-ref.h.
13037 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13038 * python/py-frame.c: Do not include py-ref.h.
13039 * python/py-framefilter.c: Do not include py-ref.h.
13040 * python/py-function.c: Do not include py-ref.h.
13041 * python/py-infevents.c: Do not include py-ref.h.
13042 * python/py-linetable.c: Do not include py-ref.h.
13043 * python/py-objfile.c: Do not include py-ref.h.
13044 * python/py-param.c: Do not include py-ref.h.
13045 * python/py-prettyprint.c: Do not include py-ref.h.
13046 * python/py-progspace.c: Do not include py-ref.h.
13047 * python/py-symbol.c: Do not include py-ref.h.
13048 * python/py-symtab.c: Do not include py-ref.h.
13049 * python/py-type.c: Do not include py-ref.h.
13050 * python/py-unwind.c: Do not include py-ref.h.
13051 * python/py-utils.c: Do not include py-ref.h.
13052 * python/py-value.c: Do not include py-ref.h.
13053 * python/py-varobj.c: Do not include py-ref.h.
13054 * python/py-xmethods.c: Do not include py-ref.h.
13055 * python/python.c: Do not include py-ref.h.
13056 * varobj.c: Do not include py-ref.h.
13057
13058 2019-01-22 Tom Tromey <tom@tromey.com>
13059
13060 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13061 keyword for bcache.
13062
13063 2019-01-22 Tom Tromey <tom@tromey.com>
13064
13065 * compile/compile-cplus-types.c: Remove a comment by #include.
13066
13067 2019-01-22 Tom Tromey <tom@tromey.com>
13068
13069 * compile/gcc-c-plugin.h: Include compile-internal.h.
13070
13071 2019-01-22 Tom Tromey <tom@tromey.com>
13072
13073 * stabsread.c (EXTERN): Do not define.
13074 (symnum, next_symbol_text_func, processing_gcc_compilation)
13075 (within_function, global_sym_chain, global_stabs)
13076 (previous_stab_code, this_object_header_files)
13077 (n_this_object_header_files)
13078 (n_allocated_this_object_header_files): Define.
13079 * stabsread.h (EXTERN): Never define. Use "extern".
13080
13081 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13082
13083 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13084 history_value.
13085
13086 2019-01-21 Tom Tromey <tom@tromey.com>
13087
13088 * ui-out.c: Fix includes.
13089 * tui/tui-source.c: Fix includes.
13090 * target.c: Fix includes.
13091 * remote.c: Fix includes.
13092 * regcache.c: Fix includes.
13093 * python/py-block.c: Fix includes.
13094 * printcmd.c: Fix includes.
13095 * or1k-tdep.c: Fix includes.
13096 * mi/mi-main.c: Fix includes.
13097 * m32r-tdep.c: Fix includes.
13098 * csky-tdep.c: Fix includes.
13099 * compile/compile-cplus-types.c: Fix includes.
13100 * cli/cli-interp.c: Fix includes.
13101
13102 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13103
13104 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13105 for padding.
13106
13107 2019-01-16 Tom Tromey <tom@tromey.com>
13108
13109 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13110 earlier.
13111 (struct objfile) <msymbols_range>: Move from top level.
13112 <msymbols>: New method.
13113 (class objfile_msymbols): Remove.
13114 * symtab.c (default_collect_symbol_completion_matches_break_on):
13115 Update.
13116 * symmisc.c (dump_msymbols): Update.
13117 * stabsread.c (scan_file_globals): Update.
13118 * objc-lang.c (info_selectors_command, info_classes_command)
13119 (find_methods): Update.
13120 * minsyms.c (find_solib_trampoline_target): Update.
13121 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13122 * coffread.c (coff_symfile_read): Update.
13123 * ada-lang.c (ada_lookup_simple_minsym)
13124 (ada_collect_symbol_completion_matches): Update.
13125
13126 2019-01-16 Tom Tromey <tom@tromey.com>
13127
13128 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13129 type. Remove no-argument constructor.
13130 <iterator::operator++>: Simplify.
13131 <begin>: Update.
13132 <end>: Use minimal_symbol_count.
13133
13134 2019-01-16 Tom Tromey <tom@tromey.com>
13135
13136 * objfiles.h (struct objfile) <psymtabs>: New method.
13137 (class objfile_psymtabs): Remove.
13138 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13139 typedef.
13140 <range>: New method.
13141 (require_partial_symbols): Change return type.
13142 * psymtab.c (require_partial_symbols)
13143 (psym_expand_symtabs_matching): Update.
13144 * mdebugread.c (parse_partial_symbols): Update.
13145 * dbxread.c (dbx_end_psymtab): Update.
13146
13147 2019-01-15 Tom Tromey <tom@tromey.com>
13148
13149 * symtab.c (lookup_objfile_from_block)
13150 (lookup_symbol_in_objfile_symtabs)
13151 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13152 (find_line_symtab, info_sources_command)
13153 (default_collect_symbol_completion_matches_break_on)
13154 (make_source_files_completion_list): Update.
13155 * symmisc.c (print_objfile_statistics, dump_objfile)
13156 (maintenance_print_symbols, maintenance_info_symtabs)
13157 (maintenance_check_symtabs, maintenance_info_line_tables):
13158 Update.
13159 * source.c (select_source_symtab)
13160 (forget_cached_source_info_for_objfile): Update.
13161 * objfiles.h (class objfile_compunits): Remove.
13162 (struct objfile) <compunits_range>: New typedef.
13163 (compunits): New method.
13164 * objfiles.c (objfile_relocate1): Update.
13165 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13166 * maint.c (count_symtabs_and_blocks): Update.
13167 * linespec.c (iterate_over_all_matching_symtabs): Update.
13168 * cp-support.c (add_symbol_overload_list_qualified): Update.
13169 * coffread.c (coff_symtab_read): Update.
13170 * ada-lang.c (add_nonlocal_symbols)
13171 (ada_collect_symbol_completion_matches)
13172 (ada_add_global_exceptions): Update.
13173
13174 2019-01-15 Tom Tromey <tom@tromey.com>
13175
13176 * progspace.h (program_space) <objfiles_safe_range>: New
13177 typedef.
13178 <objfiles_safe>: New method.
13179 * objfiles.h (class all_objfiles_safe): Remove.
13180 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13181 * jit.c (jit_inferior_exit_hook): Update.
13182
13183 2019-01-17 Tom Tromey <tom@tromey.com>
13184
13185 * progspace.h (program_space) <objfiles_range>: New typedef.
13186 <objfiles>: New method.
13187 <objfiles_head>: Rename from objfiles.
13188 (object_files): Update.
13189 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13190 * guile/scm-pretty-print.c
13191 (ppscm_find_pretty_printer_from_objfiles): Update.
13192 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13193 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13194 Update.
13195 * python/py-progspace.c (pspy_get_objfiles): Update.
13196 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13197 Update.
13198 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13199 (objfpy_lookup_objfile_by_build_id): Update.
13200 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13201 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13202 Update.
13203 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13204 (expand_symtab_containing_pc, lookup_objfile_from_block)
13205 (lookup_static_symbol, basic_lookup_transparent_type)
13206 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13207 (find_line_symtab, info_sources_command)
13208 (default_collect_symbol_completion_matches_break_on)
13209 (make_source_files_completion_list, find_main_name): Update.
13210 * symmisc.c (print_symbol_bcache_statistics)
13211 (print_objfile_statistics, maintenance_print_symbols)
13212 (maintenance_print_msymbols, maintenance_print_objfiles)
13213 (maintenance_info_symtabs, maintenance_check_symtabs)
13214 (maintenance_expand_symtabs, maintenance_info_line_tables):
13215 Update.
13216 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13217 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13218 (map_overlay_command, unmap_overlay_command)
13219 (simple_overlay_update, expand_symtabs_matching)
13220 (map_symbol_filenames): Update.
13221 * symfile-debug.c (set_debug_symfile): Update.
13222 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13223 Update.
13224 * source.c (select_source_symtab, forget_cached_source_info):
13225 Update.
13226 * solib.c (solib_read_symbols): Update.
13227 * solib-spu.c (append_ocl_sos): Update.
13228 * psymtab.c (maintenance_print_psymbols)
13229 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13230 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13231 * printcmd.c (info_symbol_command): Update.
13232 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13233 Update.
13234 * objfiles.h (class all_objfiles): Remove.
13235 * objfiles.c (have_partial_symbols, have_full_symbols)
13236 (have_minimal_symbols, qsort_cmp, update_section_map)
13237 (shared_objfile_contains_address_p)
13238 (default_iterate_over_objfiles_in_search_order): Update.
13239 * objc-lang.c (info_selectors_command, info_classes_command)
13240 (find_methods): Update.
13241 * minsyms.c (find_solib_trampoline_target): Update.
13242 * maint.c (maintenance_info_sections)
13243 (maintenance_translate_address, count_symtabs_and_blocks):
13244 Update.
13245 * main.c (captured_main_1): Update.
13246 * linux-thread-db.c (try_thread_db_load_from_pdir)
13247 (has_libpthread): Update.
13248 * linespec.c (iterate_over_all_matching_symtabs)
13249 (search_minsyms_for_name): Update.
13250 * jit.c (jit_find_objf_with_entry_addr): Update.
13251 * hppa-tdep.c (find_unwind_entry)
13252 (hppa_lookup_stub_minimal_symbol): Update.
13253 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13254 Update.
13255 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13256 (elf_gnu_ifunc_resolve_by_got): Update.
13257 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13258 * dwarf-index-write.c (save_gdb_index_command): Update.
13259 * cp-support.c (add_symbol_overload_list_qualified): Update.
13260 * breakpoint.c (create_overlay_event_breakpoint)
13261 (create_longjmp_master_breakpoint)
13262 (create_std_terminate_master_breakpoint)
13263 (create_exception_master_breakpoint): Update.
13264 * blockframe.c (find_pc_partial_function): Update.
13265 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13266 (ada_collect_symbol_completion_matches)
13267 (ada_add_global_exceptions): Update.
13268
13269 2019-01-17 Tom Tromey <tom@tromey.com>
13270
13271 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13272 declare VEC.
13273 (solib_target_parse_libraries): Change return type.
13274 (library_list_start_segment, library_list_start_section)
13275 (library_list_end_library, library_list_start_library); Update.
13276 (solib_target_free_library_list): Remove.
13277 (solib_target_parse_libraries): Remove cleanup. Change return
13278 type.
13279 (solib_target_current_sos): Update.
13280
13281 2019-01-17 Tom Tromey <tromey@bapiya>
13282
13283 * valprint.c: Replace "the the" with "the".
13284 * symtab.c: Replace "the the" with "the".
13285 * solib.c: Replace "the the" with "the".
13286 * solib-dsbt.c: Replace "the the" with "the".
13287 * linespec.c: Replace "the the" with "the".
13288 * dwarf2loc.h: Replace "the the" with "the".
13289 * amd64-windows-tdep.c: Replace "the the" with "the".
13290 * aarch64-tdep.c: Replace "the the" with "the".
13291
13292 2019-01-16 Keith Seitz <keiths@redhat.com>
13293
13294 PR gdb/23773
13295 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13296 <builder>: Rename to ..
13297 <m_builder>: ... this and make private.
13298 (dwarf2_cu::get_builder): New method. Change all users of
13299 `builder' to use this method.
13300 (dwarf2_start_symtab): Move to ...
13301 (dwarf2_cu::start_symtab): ... here. Update all callers
13302 (setup_type_unit_groups): Move to ...
13303 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13304 callers.
13305 (dwarf2_cu::reset_builder): New method.
13306 (process_full_compunit, process_full_type_unit): Use
13307 dwarf2_cu::reset_builder.
13308 (follow_die_offset): Record the ancestor CU if it is different
13309 from the followed DIE's CU.
13310 (follow_die_sig_1): Likewise.
13311
13312 2019-01-15 Tom Tromey <tom@tromey.com>
13313
13314 * remote.c (class remote_state) <buf>: Now a char_vector.
13315 <buf_size>: Remove.
13316 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13317 parameter.
13318 (remote_target::getpkt_or_notif_sane_1)
13319 (remote_target::getpkt_sane)
13320 (remote_target::getpkt_or_notif_sane): Likewise.
13321 (class remote_target) <putpkt>: New overload.
13322 (remote_target::read_frame): Change type of "buf_p". Remove
13323 sizeof_p parameter.
13324 (packet_ok): New overload.
13325 (packet_check_result): New overload.
13326 Update all uses.
13327
13328 2019-01-14 Tom Tromey <tom@tromey.com>
13329
13330 * remote-notif.c (handle_notification, remote_notif_ack)
13331 (remote_notif_parse): Make "buf" const.
13332 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13333 const.
13334 (remote_notif_parse, remote_notif_ack, handle_notification):
13335 Likewise.
13336 * remote.c (remote_notif_stop_parse): Make "buf" const.
13337 (remote_target::remote_parse_stop_reply): Make "buf" const.
13338 (remote_notif_stop_ack): Make "buf" const.
13339
13340 2019-01-14 Tom Tromey <tom@tromey.com>
13341
13342 * remote.c (remote_console_output): Make parameter const.
13343
13344 2019-01-14 Tom Tromey <tom@tromey.com>
13345
13346 * target-debug.h (target_debug_print_signals): Constify.
13347 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13348 * procfs.c (procfs_target::pass_signals): Update.
13349 * linux-nat.c (linux_nat_target::pass_signals): Update.
13350 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13351 * target-delegates.c: Rebuild.
13352 * remote.c (remote_target::program_signals): Update.
13353 (remote_target::pass_signals): Update.
13354 * target.c (target_pass_signals): Constify argument.
13355 (target_program_signals): Likewise.
13356 * target.h (struct target_ops) <pass_signals, program_signals>:
13357 Constify argument.
13358 (target_pass_signals, target_program_signals): Constify argument.
13359
13360 2019-01-14 Tom Tromey <tom@tromey.com>
13361
13362 PR tui/28819:
13363 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13364
13365 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13366
13367 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13368 field.
13369 * rs6000-tdep.c: Include reggroups.h.
13370 (IS_V_ALIAS_PSEUDOREG): Define.
13371 (rs6000_register_name): Return names for the "vX" aliases.
13372 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13373 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13374 aliases. Call default_register_reggroup_p for all other
13375 pseudo-registers.
13376 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13377 New functions.
13378 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13379 Handle "vX" aliases.
13380 (v_alias_pseudo_register_collect): New function.
13381 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13382 (rs6000_gdbarch_init): Initialize "vX" aliases as
13383 pseudo-registers. Restore registration of
13384 rs6000_pseudo_register_reggroup_p with
13385 set_tdesc_pseudo_register_reggroup_p.
13386
13387 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13388
13389 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13390 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13391 set_gdbarch_num_pseudo_regs.
13392
13393 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13394
13395 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13396 Remove arg prefixname, add do_set and do_show.
13397 Add member functions set_list and show_list.
13398 * cli/cli-style.c (class cli_style_option): Update accordingly.
13399 (style_set_list): Move to file scope.
13400 (style_show_list): Likewise.
13401 (set_style): Call help_list.
13402 (show_style): Call cmd_show_list.
13403 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13404 Update to use the new macro.
13405
13406 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13407
13408 * ada-lang.c (_initialize_ada_language): Expand the help text
13409 for the "catch exception" command.
13410
13411 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13412
13413 * symtab.c (matching_obj_sections): Initialize obj,
13414 declare it closer to its usage.
13415
13416 2019-01-10 Tom Tromey <tom@tromey.com>
13417
13418 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13419 (basic_inf_threads_range): Remove.
13420 (inf_threads_range, inf_non_exited_threads_range)
13421 (safe_inf_threads_range): Use next_adapter.
13422
13423 2019-01-10 Keith Seitz <keiths@redhat.com>
13424
13425 PR gdb/23712
13426 PR symtab/23010
13427 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13428 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13429
13430 2019-01-10 Keith Seitz <keiths@redhat.com>
13431
13432 PR gdb/23712
13433 PR symtab/23010
13434 * dictionary.c (pending_to_vector): Remove.
13435 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13436 Remove _1 suffix, replacing functions of the same name. Update
13437 all callers.
13438 (dict_create_hashed, dict_create_hashed_expandable)
13439 (dict_create_linear, dict_create_linear_expandable, dict_free)
13440 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13441 Make functions static.
13442
13443 2019-01-10 Keith Seitz <keiths@redhat.com>
13444
13445 PR gdb/23712
13446 PR symtab/23010
13447 * dictionary.h (struct dictionary): Replace declaration with
13448 multidictionary.
13449 (dict_create_hashed, dict_create_hashed_expandable)
13450 (dict_create_linear, dict_create_linear_expandable)
13451 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13452 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13453 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13454 taking multidictionary argument.
13455 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13456 * block.h (struct block) <dict>: Change to multidictionary
13457 and rename `multidict'.
13458 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13459 symmisc.c: Update all dictionary references to multidictionary.
13460
13461 2019-01-10 Keith Seitz <keiths@redhat.com>
13462
13463 PR gdb/23712
13464 PR symtab/23010
13465 * dictionary.c: Include unordered_map.
13466 (pending_to_vector): New function.
13467 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13468 Rewrite the non-"_1" functions to take vector instead
13469 of linked list.
13470 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13471 "new" _1 versions of the same name.
13472 (multidictionary): Define.
13473 (std::hash<enum language): New definition.
13474 (collate_pending_symbols_by_language, mdict_create_hashed)
13475 (mdict_create_hashed_expandable, mdict_create_linear)
13476 (mdict_create_linear_expandable, mdict_free)
13477 (find_language_dictionary, create_new_language_dictionary)
13478 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13479 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13480 (mdict_size, mdict_empty): New functions.
13481 * dictionary.h (mdict_iterator): Define.
13482
13483 2019-01-10 Pedro Alves <palves@redhat.com>
13484
13485 * breakpoint.c (read_uploaded_action)
13486 (create_tracepoint_from_upload): Adjust to use
13487 gdb::unique_xmalloc_ptr.
13488 * ctf.c (ctf_write_uploaded_tp):
13489 (SET_ARRAY_FIELD): Use emplace_back.
13490 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13491 * tracefile-tfile.c (tfile_write_uploaded_tp):
13492 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13493 gdb::unique_xmalloc_ptr.
13494 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13495 at_string, cond_string, cmd_strings>: Replace char pointers
13496 with gdb::unique_xmalloc_ptr.
13497
13498 2019-01-10 Pedro Alves <palves@redhat.com>
13499
13500 * solib-target.c (library_list_start_library): Don't xstrdup name.
13501
13502 2019-01-10 Pedro Alves <palves@redhat.com>
13503
13504 * mdebugread.c (parse_partial_symbols): Use
13505 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13506
13507 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13508
13509 * linux-fork.c (scoped_switch_fork_info)
13510 <~scoped_switch_fork_info>: Fix incorrect variable name.
13511
13512 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13513
13514 * linux-fork.c (scoped_switch_fork_info)
13515 <scoped_switch_fork_info>: Make explicit.
13516 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13517
13518 2019-01-10 Tom Tromey <tom@tromey.com>
13519
13520 * objfiles.h (objfile::reset_psymtabs): Update.
13521 * objfiles.c (objfile::objfile): Update.
13522 * psymtab.h (psymtab_storage::obstack): Update.
13523 (psymtab_storage::m_obstack): Use gdb::optional.
13524 (class psymtab_storage): Update comment. Remove objfile
13525 parameter.
13526 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13527
13528 2019-01-10 Tom Tromey <tom@tromey.com>
13529
13530 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13531 <free_psymtabs>: Now private.
13532 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13533 (allocate_psymtab): Use new method.
13534
13535 2019-01-10 Tom Tromey <tom@tromey.com>
13536
13537 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13538 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13539 * mdebugread.c (parse_partial_symbols): Use
13540 allocate_dependencies.
13541 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13542 allocate_dependencies.
13543 (process_psymtab_comp_unit_reader)
13544 (build_type_psymtab_dependencies): Likewise.
13545 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13546
13547 2019-01-10 Tom Tromey <tom@tromey.com>
13548
13549 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13550 PSYMBOL_SET_LANGUAGE.
13551 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13552
13553 2019-01-10 Tom Tromey <tom@tromey.com>
13554
13555 * psymtab.h (psymtab_storage::obstack): New method.
13556 <m_obstack>: Rename from obstack; now private.
13557 * psymtab.c (psymtab_storage): Update.
13558 * dwarf2read.c (create_addrmap_from_index)
13559 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13560 Update.
13561
13562 2019-01-10 Tom Tromey <tom@tromey.com>
13563
13564 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13565 * objfiles.h (objfile::reset_psymtabs): New method.
13566
13567 2019-01-10 Tom Tromey <tom@tromey.com>
13568
13569 * symmisc.c (print_symbol_bcache_statistics): Update.
13570 (print_objfile_statistics): Update.
13571 * symfile.c (reread_symbols): Update.
13572 * psymtab.h (class psymtab_storage): New.
13573 * psymtab.c (psymtab_storage): New constructor.
13574 (~psymtab_storage): New destructor.
13575 (require_partial_symbols): Update.
13576 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13577 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13578 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13579 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13580 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13581 (start_psymtab_common, end_psymtab_common)
13582 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13583 (allocate_psymtab): Update.
13584 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13585 Update.
13586 (dump_psymtab_addrmap, maintenance_print_psymbols)
13587 (maintenance_check_psymtabs): Update.
13588 (class objfile_psymtabs): Move to objfiles.h.
13589 * psympriv.h (discard_psymtab): Now inline.
13590 (psymtab_discarder::psymtab_discarder): Update.
13591 (psymtab_discarder::~psymtab_discarder): Update.
13592 (ALL_OBJFILE_PSYMTABS): Rewrite.
13593 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13594 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13595 Remove fields.
13596 <partial_symtabs>: New field.
13597 (class objfile_psymtabs): Move from psymtab.h. Update.
13598 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13599 psymbol_cache.
13600 (objfile::~objfile): Don't destroy psymbol_cache.
13601 * mdebugread.c (parse_partial_symbols): Update.
13602 * dwarf2read.c (create_addrmap_from_index)
13603 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13604 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13605 (add_partial_subprogram, dwarf2_ranges_read): Update.
13606 * dwarf-index-write.c (write_address_map)
13607 (write_one_signatured_type, recursively_write_psymbols)
13608 (class debug_names, class debug_names, write_psymtabs_to_index):
13609 Update.
13610
13611 2019-01-10 Tom Tromey <tom@tromey.com>
13612
13613 * symtab.h (SYMBOL_SET_NAMES): Update.
13614 (symbol_set_names): Update.
13615 (MSYMBOL_SET_NAMES): Update.
13616 * symtab.c (symbol_set_names): Change argument to be an
13617 objfile_per_bfd_storage.
13618 * psymtab.c (add_psymbol_to_bcache): Update.
13619 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13620
13621 2019-01-10 Tom Tromey <tom@tromey.com>
13622
13623 * symtab.c (create_demangled_names_hash): Change argument to be an
13624 objfile_per_bfd_storage.
13625 (symbol_set_names): Update.
13626
13627 2019-01-10 Tom Tromey <tom@tromey.com>
13628
13629 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13630 init_psymbol_list.
13631 * psymtab.c (init_psymbol_list): Do nothing if already called.
13632 * psympriv.h (init_psymbol_list): Add comment.
13633 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13634 init_psymbol_list.
13635 * dbxread.c (dbx_symfile_read): Unconditionally call
13636 init_psymbol_list.
13637
13638 2019-01-10 Tom Tromey <tom@tromey.com>
13639
13640 * xcoffread.c (scan_xcoff_symtab): Update.
13641 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13642 "where".
13643 * mdebugread.c (parse_partial_symbols)
13644 (handle_psymbol_enumerators): Update.
13645 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13646 * dbxread.c (read_dbx_symtab): Update.
13647 * psympriv.h (psymbol_placement): New enum.
13648 (add_psymbol_to_list): Update.
13649
13650 2019-01-10 Tom Tromey <tom@tromey.com>
13651
13652 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13653 static_psymbols parameters.
13654 (scan_xcoff_symtab): Update.
13655 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13656 static_psymbols parameters.
13657 * psympriv.h (start_psymtab_common): Update.
13658 * mdebugread.c (parse_partial_symbols): Update.
13659 * dwarf2read.c (create_partial_symtab): Update.
13660 * dbxread.c (read_dbx_symtab): Update.
13661 (start_psymtab): Remove global_psymbols and static_psymbols
13662 parameters.
13663
13664 2019-01-10 Tom Tromey <tom@tromey.com>
13665
13666 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13667 * psymtab.c (allocate_psymtab): Add comment.
13668 * psympriv.h (allocate_psymtab): Add comment.
13669 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13670 initializations.
13671 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13672
13673 2019-01-10 Tom Tromey <tom@tromey.com>
13674
13675 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13676 Don't declare.
13677 * mipsread.c: Include mdebugread.h.
13678 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13679 Declare.
13680 * elfread.c: Include mdebugread.h.
13681
13682 2019-01-09 Tom Tromey <tom@tromey.com>
13683
13684 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13685 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13686 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13687 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13688 (psym_lookup_symbol, psym_find_last_source_symtab)
13689 (psym_forget_cached_source_info, psym_print_stats)
13690 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13691 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13692 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13693 (psym_find_compunit_symtab_by_address)
13694 (maintenance_print_psymbols, maintenance_info_psymtabs)
13695 (maintenance_check_psymtabs): Use ranged for.
13696 * psymtab.h (class objfile_psymtabs): New.
13697 (require_partial_symbols): Return objfile_psymtabs.
13698 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13699
13700 2019-01-09 Tom Tromey <tom@tromey.com>
13701
13702 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13703 (find_pc_mapped_section, list_overlays_command)
13704 (map_overlay_command, unmap_overlay_command)
13705 (simple_overlay_update): Use all_objfiles.
13706 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13707 * printcmd.c (info_symbol_command): Use all_objfiles.
13708 * objfiles.h (ALL_OBJSECTIONS): Remove.
13709 * maint.c (maintenance_translate_address): Use all_objfiles.
13710 * gcore.c (gcore_create_callback): Use all_objfiles.
13711 (objfile_find_memory_regions): Likewise.
13712
13713 2019-01-09 Tom Tromey <tom@tromey.com>
13714
13715 * symtab.c (find_line_symtab, info_sources_command)
13716 (make_source_files_completion_list): Use objfile_compunits.
13717 * source.c (select_source_symtab): Use objfile_compunits.
13718 * objfiles.h (struct objfile): Update comment.
13719 (ALL_OBJFILES): Remove.
13720 (ALL_FILETABS): Remove.
13721 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13722 objfile_compunits.
13723
13724 2019-01-09 Tom Tromey <tom@tromey.com>
13725
13726 * symmisc.c (print_objfile_statistics, dump_objfile)
13727 (maintenance_print_symbols): Use compunit_filetabs.
13728 * source.c (forget_cached_source_info_for_objfile): Use
13729 compunit_filetabs.
13730 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13731 (ALL_FILETABS): Use compunit_filetabs.
13732 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13733 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13734
13735 2019-01-09 Tom Tromey <tom@tromey.com>
13736
13737 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13738 (compunit_filetabs): New.
13739 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13740 compunit_filetabs.
13741 (info_sources_command, make_source_files_completion_list): Remove
13742 declaration.
13743 * symmisc.c (print_objfile_statistics, dump_objfile)
13744 (maintenance_print_symbols): Remove declaration.
13745 (maintenance_info_symtabs): Use compunit_filetabs.
13746 (maintenance_info_line_tables): Likewise.
13747 * source.c (select_source_symtab): Change local variable name.
13748 (forget_cached_source_info_for_objfile): Remove declaration.
13749 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13750 * objfiles.c (objfile_relocate1): Remove declaration.
13751 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13752 declaration.
13753 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13754 * coffread.c (coff_symtab_read): Remove declaration.
13755 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13756 compunit_filetabs.
13757
13758 2019-01-09 Tom Tromey <tom@tromey.com>
13759
13760 * symtab.c (lookup_objfile_from_block)
13761 (find_pc_sect_compunit_symtab, search_symbols)
13762 (default_collect_symbol_completion_matches_break_on): Use
13763 objfile_compunits.
13764 * objfiles.h (ALL_COMPUNITS): Remove.
13765 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13766 * cp-support.c (add_symbol_overload_list_qualified): Use
13767 objfile_compunits.
13768 * ada-lang.c (ada_collect_symbol_completion_matches)
13769 (ada_add_global_exceptions): Use objfile_compunits.
13770
13771 2019-01-09 Tom Tromey <tom@tromey.com>
13772
13773 * source.c (select_source_symtab)
13774 (forget_cached_source_info_for_objfile): Remove declaration.
13775 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13776 declaration.
13777 * maint.c (count_symtabs_and_blocks): Remove declaration.
13778 * cp-support.c (add_symbol_overload_list_qualified): Remove
13779 declaration.
13780 * coffread.c (coff_symtab_read): Remove declaration.
13781 * symtab.c (lookup_symbol_in_objfile_symtabs)
13782 (basic_lookup_transparent_type_1): Use objfile_compunits.
13783 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13784 (info_sources_command, search_symbols)
13785 (default_collect_symbol_completion_matches_break_on)
13786 (make_source_files_completion_list): Remove declaration.
13787 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13788 (ada_collect_symbol_completion_matches)
13789 (ada_add_global_exceptions): Remove declaration.
13790 * linespec.c (iterate_over_all_matching_symtabs): Use
13791 objfile_compunits.
13792 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13793 (class objfile_compunits): New.
13794 (ALL_COMPUNITS): Use objfile_compunits.
13795 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13796 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13797 objfile_compunits.
13798 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13799
13800 2019-01-09 Tom Tromey <tom@tromey.com>
13801
13802 * symtab.c (search_symbols)
13803 (default_collect_symbol_completion_matches_break_on): Use
13804 objfile_msymbols.
13805 * ada-lang.c (ada_lookup_simple_minsym)
13806 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13807 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13808 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13809 objfile_msymbols.
13810 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13811 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13812 * objc-lang.c (find_methods): Use objfile_msymbols.
13813 (info_selectors_command, info_classes_command): Likewise.
13814 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13815 * objfiles.h (class objfile_msymbols): New.
13816 (ALL_OBJFILE_MSYMBOLS): Remove.
13817 (ALL_MSYMBOLS): Remove.
13818
13819 2019-01-09 Tom Tromey <tom@tromey.com>
13820
13821 * common/next-iterator.h (next_adapter): Add Iterator template
13822 parameter.
13823 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13824 (class all_objfiles_safe): New.
13825 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13826 * objfiles.c (put_objfile_before): Update comment.
13827 (add_separate_debug_objfile): Likewise.
13828 (free_all_objfiles): Use all_objfiles_safe.
13829 (objfile_purge_solibs): Likewise.
13830
13831 2019-01-09 Tom Tromey <tom@tromey.com>
13832
13833 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13834 (expand_symtab_containing_pc, lookup_static_symbol)
13835 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13836 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13837 all_objfiles.
13838 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13839 * breakpoint.c (create_overlay_event_breakpoint)
13840 (create_longjmp_master_breakpoint)
13841 (create_std_terminate_master_breakpoint)
13842 (create_exception_master_breakpoint): Use all_objfiles.
13843 * linux-thread-db.c (try_thread_db_load_from_pdir)
13844 (has_libpthread): Use all_objfiles.
13845 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13846 * linespec.c (iterate_over_all_matching_symtabs)
13847 (search_minsyms_for_name): Use all_objfiles.
13848 * maint.c (maintenance_info_sections): Use all_objfiles.
13849 * main.c (captured_main_1): Use all_objfiles.
13850 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13851 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13852 * guile/scm-pretty-print.c
13853 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13854 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13855 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13856 (maintenance_print_msymbols): Use all_objfiles.
13857 * source.c (select_source_symtab): Use all_objfiles.
13858 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13859 * symfile.c (remove_symbol_file_command)
13860 (expand_symtabs_matching, map_symbol_filenames): Use
13861 all_objfiles.
13862 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13863 all_objfiles.
13864 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13865 * objc-lang.c (find_methods): Use all_objfiles.
13866 * objfiles.c (have_partial_symbols, have_full_symbols)
13867 (have_minimal_symbols, qsort_cmp)
13868 (default_iterate_over_objfiles_in_search_order): Use
13869 all_objfiles.
13870 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13871 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13872 (maintenance_check_psymtabs): Use all_objfiles.
13873 (ALL_PSYMTABS): Remove.
13874 * compile/compile-object-run.c (do_module_cleanup): Use
13875 all_objfiles.
13876 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13877 * cp-support.c (add_symbol_overload_list_qualified): Use
13878 all_objfiles.
13879 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13880 Use all_objfiles.
13881 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13882 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13883 all_objfiles.
13884 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13885 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13886 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13887 Uses all_objfiles.
13888 * solib.c (solib_read_symbols): Use all_objfiles
13889
13890 2019-01-09 Tom Tromey <tom@tromey.com>
13891
13892 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13893 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13894 all_objfiles.
13895 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13896 * symmisc.c (print_symbol_bcache_statistics)
13897 (print_objfile_statistics, maintenance_print_objfiles)
13898 (maintenance_info_symtabs, maintenance_check_symtabs)
13899 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13900 all_objfiles.
13901 * source.c (forget_cached_source_info): Use all_objfiles.
13902 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13903 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13904 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13905 * objfiles.c (update_section_map): Use all_objfiles.
13906 (shared_objfile_contains_address_p): Likewise.
13907 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13908 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13909
13910 2019-01-09 Tom Tromey <tom@tromey.com>
13911
13912 * common/next-iterator.h: New file.
13913 * objfiles.h (class all_objfiles): New.
13914 (struct objfile_iterator): New.
13915
13916 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13917
13918 * NEWS: Move the description of the changed "frame", "select-frame",
13919 and "info frame" commands to the Changed commands section.
13920
13921 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13922
13923 * gdbtypes.c (check_stub_method_group): Remove handling of old
13924 mangling schemes.
13925 * linespec.c (find_methods): Likewise.
13926 * stabsread.c (read_member_functions): Likewise.
13927 * valops.c (search_struct_method): Likewise.
13928 (value_struct_elt_for_reference): Likewise.
13929 * NEWS: Mention this change.
13930
13931 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13932
13933 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13934 print_source_lines.
13935 * source.c (print_source_lines_base): Update line number check.
13936 (print_source_lines): New function.
13937 (source_lines_range::source_lines_range): New function.
13938 * source.h (class source_lines_range): New class.
13939 (print_source_lines): New declaration.
13940
13941 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13942
13943 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13944
13945 2019-01-08 Tom Tromey <tom@tromey.com>
13946 Simon Marchi <simon.marchi@ericsson.com>
13947
13948 PR gdb/24060
13949 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13950 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13951 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13952 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13953 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13954 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13955
13956 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13957
13958 * source.c (select_source_symtab): Move header comment to
13959 declaration in source.h.
13960 (forget_cached_source_info_for_objfile): Likewise.
13961 (forget_cached_source_info): Likewise.
13962 (identify_source_line): Likewise.
13963 * source.h (identify_source_line): Move declaration from symtab.h
13964 and add comment from source.c
13965 (print_source_lines): Likewise.
13966 (forget_cached_source_info_for_objfile): Likewise.
13967 (forget_cached_source_info): Likewise.
13968 (select_source_symtab): Likewise.
13969 (enum print_source_lines_flag): Move definition from symtab.h.
13970 * symtab.h (identify_source_line): Move declaration to source.h.
13971 (print_source_lines): Likewise.
13972 (forget_cached_source_info_for_objfile): Likewise.
13973 (forget_cached_source_info): Likewise.
13974 (select_source_symtab): Likewise.
13975 (enum print_source_lines_flag): Move definition to source.h.
13976 * tui/tui-hooks.c: Add 'source.h' include.
13977
13978 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13979
13980 * source.c (print_source_lines_base): Handle requests to print
13981 reverse line number sequences, and guard against empty lines
13982 string.
13983
13984 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13985
13986 * source.c (print_source_lines_base): Fix skip of '\r' if next
13987 character is '\n'.
13988
13989 2019-01-06 Tom Tromey <tom@tromey.com>
13990
13991 * c-exp.y (struct c_parse_state) <macro_original_text,
13992 expansion_obstack>: New member.
13993 (macro_original_text, expansion_obstack): Remove globals.
13994 (scan_macro_expansion, scanning_macro_expansion)
13995 (finished_macro_expansion): Update.
13996 (scan_macro_cleanup): Remove.
13997 (yylex, c_parse): Update.
13998
13999 2019-01-06 Tom Tromey <tom@tromey.com>
14000
14001 * c-exp.y (struct c_parse_state) <strings>: New member.
14002 (operator_stoken): Update.
14003
14004 2019-01-06 Tom Tromey <tom@tromey.com>
14005
14006 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14007 (union type_stack_elt) <typelist_val>: Now a pointer to
14008 std::vector.
14009 (type_stack_cleanup): Don't declare.
14010 (push_typelist): Update.
14011 * parse.c (pop_typelist): Return a std::vector.
14012 (push_typelist): Take a std::vector.
14013 (follow_types): Update. Do not free args.
14014 (type_stack_cleanup): Remove.
14015 * c-exp.y (struct c_parse_state): New.
14016 (cpstate): New global.
14017 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14018 (nonempty_typelist): Update.
14019 (func_mod): Create a new vector.
14020 (c_parse): Create a c_parse_state.
14021 (check_parameter_typelist): Do not delete params.
14022 (function_method): Update. Do not delete type_list.
14023
14024 2019-01-06 Tom Tromey <tom@tromey.com>
14025
14026 PR gdb/28155:
14027 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14028 check_typedef.
14029 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14030 (print_return_value): Likewise.
14031
14032 2019-01-05 Tom Tromey <tom@tromey.com>
14033
14034 * contrib/cleanup_check.py: Remove.
14035 * contrib/gcc-with-excheck: Remove.
14036 * contrib/exsummary.py: Remove.
14037 * contrib/excheck.py: Remove.
14038
14039 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14040
14041 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14042 NULL. Initialize tpprev to NULL instead of assigning it
14043 to NULL on the next statement.
14044 * windows-nat.c (windows_delete_thread): Remove check for
14045 main_thread_id before printing thread exit notifications.
14046 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14047 Remove thread ID check against main_thread_id.
14048 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14049 windows_delete_thread.
14050 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14051
14052 2019-01-04 Tom Tromey <tom@tromey.com>
14053
14054 * compile/compile.c (_initialize_compile): Use upper case for
14055 metasyntactic variables.
14056 * symmisc.c (_initialize_symmisc): Use upper case for
14057 metasyntactic variables.
14058 * psymtab.c (_initialize_psymtab): Use upper case for
14059 metasyntactic variables.
14060 * demangle.c (demangle_command): Use upper case for metasyntactic
14061 variables.
14062 (_initialize_demangler): Likewise.
14063 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14064 variables.
14065
14066 2019-01-03 Tom Tromey <tom@tromey.com>
14067
14068 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14069
14070 2019-01-03 Tom Tromey <tom@tromey.com>
14071
14072 * python/py-symtab.c (salpy_str): Update.
14073 (struct salpy_sal_object) <symtab>: Now a PyObject.
14074 (salpy_dealloc): Update.
14075 (del_objfile_sal): Use gdbpy_ref.
14076
14077 2019-01-03 Tom Tromey <tom@tromey.com>
14078
14079 * python/py-type.c (convert_field): Use new_reference. Return
14080 gdbpy_ref.
14081 (make_fielditem): Return gdbpy_ref.
14082 (typy_fields): Update.
14083 (typy_getitem): Update.
14084 (field_name): Return gdbpy_ref. Use new_reference.
14085 (typy_iterator_iternext): Update.
14086
14087 2019-01-03 Tom Tromey <tom@tromey.com>
14088
14089 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14090
14091 2019-01-03 Tom Tromey <tom@tromey.com>
14092
14093 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14094 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14095 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14096 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14097 (pspy_set_type_printers): Likewise.
14098 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14099 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14100 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14101 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14102 (objfpy_set_type_printers): Likewise.
14103
14104 2019-01-03 Tom Tromey <tom@tromey.com>
14105
14106 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14107 (gdbpy_print_stack): Use gdbpy_err_fetch.
14108 * python/python-internal.h (class gdbpy_err_fetch): New class.
14109 (class gdbpy_enter) <m_error_type, m_error_value,
14110 m_error_traceback>: Remove.
14111 <m_error>: New member.
14112 (gdbpy_exception_to_string): Don't declare.
14113 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14114 * python/py-value.c (convert_value_from_python): Use
14115 gdbpy_err_fetch.
14116 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14117 gdbpy_exception_to_string.
14118 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14119 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14120 gdbpy_err_fetch.
14121
14122 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14123
14124 * linux-nat.c (delete_lwp_cleanup): Delete.
14125 (struct lwp_deleter): New struct.
14126 (lwp_info_up): New typedef.
14127 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14128 lwp_info_up.
14129
14130 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14131
14132 * linux-fork.c (class scoped_switch_fork_info): New class.
14133 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14134
14135 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14136
14137 * valops.c (find_overload_match): Remove use of null_cleanup, and
14138 calls to do_cleanups.
14139
14140 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14141
14142 * compile/compile-cplus-types.c
14143 (compile_cplus_instance::decl_name): Handle changes to
14144 cp_func_name.
14145 * cp-support.c (cp_func_name): Update header comment, update
14146 return type.
14147 * cp-support.h (cp_func_name): Update return type in declaration.
14148 * valops.c (find_overload_match): Move temp_func local to top
14149 level of function and change its type. Use temp_func to hold and
14150 delete temporary string obtained from cp_func_name.
14151
14152 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14153
14154 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14155 gdb::char_vector, remove cleanup, and update uses of `msg`.
14156
14157 2019-01-03 Jim Wilson <jimw@sifive.com>
14158
14159 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14160
14161 2019-01-02 Tom Tromey <tom@tromey.com>
14162
14163 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14164 (tdesc_parse_xml): Remove cleanups.
14165 * target-descriptions.h (make_cleanup_free_target_description):
14166 Don't declare.
14167 (target_desc_deleter): New struct.
14168 (target_desc_up): New typedef.
14169 * target-descriptions.c (target_desc_deleter::operator()): Rename
14170 from free_target_description.
14171 (make_cleanup_free_target_description): Remove.
14172
14173 2019-01-02 Tom Tromey <tom@tromey.com>
14174
14175 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14176 constructor, destructor.
14177 (linespec_parser): Remove typedef.
14178 (~linespec_parser): Rename from linespec_parser_delete.
14179 (linespec_lex_to_end, linespec_complete_label)
14180 (linespec_complete): Update.
14181 (decode_line_full): Remove cleanups.
14182 (decode_line_1): Update.
14183
14184 2019-01-02 Tom Tromey <tom@tromey.com>
14185
14186 * python/python-internal.h (inferior_to_inferior_object): Change
14187 return type.
14188 * python/py-exitedevent.c (create_exited_event_object): Update.
14189 * python/py-inferior.c (inferior_to_inferior_object): Return
14190 gdbpy_ref.
14191 (python_new_inferior, python_inferior_deleted)
14192 (thread_to_thread_object, delete_thread_object)
14193 (build_inferior_list, gdbpy_selected_inferior): Update.
14194 * python/py-infthread.c (create_thread_object): Update. Also fail
14195 if inferior_to_inferior_object fails.
14196
14197 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14198
14199 * inferior.h (class inferior) <displaced_step_state>: New field.
14200 * infrun.h (struct displaced_step_state): Move here from
14201 infrun.c. Initialize fields, add constructor.
14202 <inf>: Remove field.
14203 <reset>: New method.
14204 * infrun.c (struct displaced_step_inferior_state): Move to
14205 infrun.h.
14206 (displaced_step_inferior_states): Remove.
14207 (get_displaced_stepping_state): Adust.
14208 (displaced_step_in_progress_any_inferior): Adjust.
14209 (displaced_step_in_progress_thread): Adjust.
14210 (displaced_step_in_progress): Adjust.
14211 (add_displaced_stepping_state): Remove.
14212 (get_displaced_step_closure_by_addr): Adjust.
14213 (remove_displaced_stepping_state): Remove.
14214 (infrun_inferior_exit): Call displaced_step_state.reset.
14215 (use_displaced_stepping): Don't check for NULL.
14216 (displaced_step_prepare_throw): Call
14217 get_displaced_stepping_state.
14218 (displaced_step_fixup): Don't check for NULL.
14219 (prepare_for_detach): Don't check for NULL.
14220
14221 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14222
14223 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14224 in case of call that did not complete.
14225
14226 2019-01-02 Andrey Utkin <autkin@undo.io>
14227
14228 * symfile.c (find_separate_debug_file): Fix search of debug files for
14229 remote debuggee.
14230
14231 2019-01-02 Tom Tromey <tom@tromey.com>
14232
14233 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14234 indentation.
14235 * python/py-frame.c (frapy_older): Remove cast.
14236 (frapy_newer): Likewise.
14237 * python/py-breakpoint.c (local_setattro): Remove cast.
14238 * python/py-arch.c (archpy_name): Remove local variable.
14239 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14240
14241 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14242
14243 * unittests/basic_string_view/element_access/char/empty.cc:
14244 Fix year range in copyright header.
14245
14246 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14247
14248 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14249 Delete.
14250 <operator==>: Update with for removed field.
14251 <hash>: Likewise.
14252 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14253 <isa_features>: ...this.
14254 <abi_features>: New field.
14255 (riscv_isa_flen): Update comment.
14256 (riscv_abi_xlen): New declaration.
14257 (riscv_abi_flen): New declaration.
14258 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14259 isa_features.
14260 (riscv_abi_xlen): New function.
14261 (riscv_isa_flen): Update to get answer from isa_features.
14262 (riscv_abi_flen): New function.
14263 (riscv_has_fp_abi): Update to get answer from abi_features.
14264 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14265 xlen and flen.
14266 (riscv_call_info) <xlen, flen>: Update comment.
14267 (riscv_call_arg_struct): Remove invalid assertions
14268 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14269 is removed.
14270 (riscv_gdbarch_init): Gather isa features and abi features
14271 separately, ensure both match on the gdbarch when reusing an old
14272 gdbarch. Relax an error check to allow 32-bit abi float to run on
14273 a target with 64-bit float hardware.
14274
14275 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14276
14277 * source.c (search_command_helper): Stop reverse search
14278 when line 1 has been searched.
14279
14280 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14281
14282 * record-full.c (record_full_base_target::close): Rewrite
14283 record_full_core_buf_list free logic.
14284
14285 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14286
14287 * break-catch-syscall.c (print_one_catch_syscall): xfree
14288 the last text.
14289
14290 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14291
14292 * top.c (print_gdb_version): Update Copyright year in version
14293 message.
14294
14295 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14296
14297 Update copyright year range in all GDB files.
14298
14299 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14300
14301 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14302
14303 For older changes see ChangeLog-2018.
14304 \f
14305 Local Variables:
14306 mode: change-log
14307 left-margin: 8
14308 fill-column: 74
14309 version-control: never
14310 coding: utf-8
14311 End:
14312