Call forget_cached_source_info to clear the stale source cache
[binutils-gdb.git] / gdb / ChangeLog
1 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR gdb/25126
4 * symfile.c (reread_symbols): Call forget_cached_source_info to
5 clear the stale source cache.
6
7 2019-10-24 Christian Biesinger <cbiesinger@google.com>
8
9 * configure: Regenerate.
10 * configure.ac: Remove code that sets python_has_threads.
11
12 2019-10-24 Christian Biesinger <cbiesinger@google.com>
13
14 * config.in: Regenerate.
15 * configure: Regenerate.
16 * configure.ac: Remove the code that uses sed to get the python
17 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
18
19 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
20
21 * python/py-progspace.c (pspy_block_for_pc): Return None for all
22 error paths.
23
24 2019-10-23 Tom Tromey <tom@tromey.com>
25
26 * arc-tdep.c: Remove ".." from include.
27 * frv-tdep.c: Remove ".." from include.
28 * lm32-tdep.c: Remove ".." from include.
29 * microblaze-tdep.c: Remove ".." from include.
30 * or1k-tdep.h: Remove ".." from include.
31 * s12z-tdep.c: Remove ".." from include.
32 * Makefile.in (OPCODES_CFLAGS): Add comment.
33 (TOP_CFLAGS): New variable.
34 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
35
36 2019-10-23 Tom Tromey <tom@tromey.com>
37
38 * Makefile.in (READLINE_DIR): Update.
39
40 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
41
42 * infcall.c (call_function_by_hand_dummy): Fix the function
43 comment. And extract out a code section into...
44 (reserve_stack_space): ...this new function.
45
46 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
47
48 * infcall.c (value_arg_coerce): Remove an unused parameter.
49 (call_function_by_hand_dummy): Update the call to
50 'value_arg_coerce'.
51
52 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
53
54 * infcall.c (call_function_by_hand_dummy): Refactor.
55
56 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
57
58 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
59
60 2019-10-23 Tom Tromey <tom@tromey.com>
61
62 * configure: Rebuild.
63 * configure.ac: Don't check for sigprocmask.
64 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
65
66 2019-10-23 Tom Tromey <tom@tromey.com>
67
68 * configure: Rebuild.
69 * acinclude.m4: Use m4_include, not sinclude.
70
71 2019-10-23 Tom de Vries <tdevries@suse.de>
72
73 PR breakpoints/24687
74 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
75
76 2019-10-22 Christian Biesinger <cbiesinger@google.com>
77
78 * symtab.c (struct demangled_name_entry) <language>: Change from
79 bitfield to regular variable.
80
81 2019-10-22 Christian Biesinger <cbiesinger@google.com>
82
83 * symtab.c (struct demangled_name_entry): Add a constructor.
84 (free_demangled_name_entry): New function to call the destructor
85 for demangled_name_entry.
86 (create_demangled_names_hash): Pass free_demangled_name_entry to
87 htab_create_alloc.
88 (symbol_set_names): Call placement new for demangled_name_entry.
89 * utils.c: No longer include xxhash.h here, now that fast_hash
90 is inlined in the header.
91 * utils.h: Instead, include it here.
92
93 2019-10-22 Christian Biesinger <cbiesinger@google.com>
94
95 * Makefile.in: Link with libxxhash.
96 * config.in: Regenerate.
97 * configure: Regenerate.
98 * configure.ac: Search for libxxhash.
99 * utils.c (fast_hash): Use xxhash if present.
100
101 2019-10-22 Christian Biesinger <cbiesinger@google.com>
102
103 * utils.h (fast_hash): New function.
104 * symtab.c (hash_demangled_name_entry): Call new function
105 fast_hash.
106
107 2019-10-22 Christian Biesinger <cbiesinger@google.com>
108
109 * symtab.c (struct demangled_name_entry): Change type of mangled
110 to gdb::string_view. Also adds a constructor that takes the
111 mangled name.
112 (hash_demangled_name_entry): Update.
113 (eq_demangled_name_entry): Update.
114 (free_demangled_name_entry): New function to call the destructor
115 now that this is not a POD anymore.
116 (create_demangled_names_hash): Pass free_demangled_name_entry to
117 htab_create_alloc.
118 (symbol_set_names): Update.
119
120 2019-10-21 Ali Tamur <tamu@google.com>
121
122 * dwarf2read.c (dir_index): Change type.
123 (file_name_index): Likewise.
124 (line_header::include_dir_at): Change comment and implementation on
125 whether it is DWARF 5.
126 (line_header::is_valid_file_index): New function.
127 (line_header::file_name_at): Change comment and implementation on
128 whether it is DWARF 5.
129 (line_header::file_names): Change to private field renamed as
130 m_file_names and introduce a new accessor method.
131 (line_header::file_names_size): New method.
132 (line_header::include_dirs): Change to private field and rename as
133 m_include_dirs.
134 (dw2_get_file_names_reader): Define local var at a smaller scope and
135 reflect API change.
136 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
137 (process_structure_scope): Likewise.
138 (line_header::add_include_dir): Change message and reflect renaming.
139 (line_header::add_file_name): Likewise.
140 (read_formatted_entries): Handle DW_FORM_data16.
141 (dwarf_decode_line_header): Fix line header length calculation.
142 (psymtab_include_file_name): Change comment and API.
143 (lnp_state_machine::m_file): Update comment and reflect type change.
144 (lnp_state_machine::record_line): Reflect type change.
145 (dwarf_decode_lines): Reflect API change.
146 (file_file_name): Likewise.
147 (file_full_name): Likewise.
148
149 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
150
151 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
152
153 2019-10-21 Tom Tromey <tom@tromey.com>
154
155 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
156
157 2019-10-21 Tom Tromey <tom@tromey.com>
158
159 * configure.ac (nm.h): Conditionally create nm.h link. Subst
160 NM_H. Use AC_CONFIG_LINKS.
161 * configure: Rebuild.
162 * Makefile.in (NM_H): New variable.
163 (generated_files): Add NM_H. Remove gcore.
164 (nm.h, stamp-nmh): New targets.
165
166 2019-10-20 Tom Tromey <tom@tromey.com>
167
168 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
169 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
170 obsolete comment.
171 (put_objfile_before): Now static.
172
173 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
174
175 * gdbsupport/common-utils.h (startswith): Change return type to
176 bool.
177
178 2019-10-19 Christian Biesinger <cbiesinger@google.com>
179
180 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
181 * breakpoint.c (bp_locations_compare): Rename to...
182 (bp_location_is_less_than): ...this, and change to std::sort semantics.
183 (update_global_location_list): Use std::sort instead of qsort.
184 * buildsym.c (compare_line_numbers): Rename to...
185 (lte_is_less_than): ...this, and change to std::sort semantics.
186 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
187 instead of qsort.
188 * disasm.c (compare_lines): Rename to...
189 (line_is_less_than): ...this, and change to std::sort semantics.
190 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
191 of qsort.
192 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
193 (fde_is_less_than): ...this, and change to std::sort semantics.
194 (dwarf2_build_frame_info): Call std::sort instead of qsort.
195 * mdebugread.c (compare_blocks):
196 (block_is_less_than): ...this, and change to std::sort semantics.
197 (sort_blocks): Call std::sort instead of qsort.
198 * objfiles.c (qsort_cmp): Rename to...
199 (sort_cmp): ...this, and change to std::sort semantics.
200 (update_section_map): Call std::sort instead of qsort.
201 * remote.c (compare_pnums): Remove.
202 (map_regcache_remote_table): Call std::sort instead of qsort.
203 * utils.c (compare_positive_ints): Remove.
204 * utils.h (compare_positive_ints): Remove.
205 * xcoffread.c (compare_lte): Remove.
206 (arrange_linetable): Call std::sort instead of qsort.
207
208 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
209
210 * symfile.c (init_entry_point_info): Fix typo.
211 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
212
213 2019-10-18 Tom de Vries <tdevries@suse.de>
214
215 * aarch64-tdep.c: Fix typos in comments.
216 * ada-lang.c: Same.
217 * ada-tasks.c: Same.
218 * alpha-tdep.c: Same.
219 * alpha-tdep.h: Same.
220 * amd64-nat.c: Same.
221 * amd64-windows-tdep.c: Same.
222 * arc-tdep.c: Same.
223 * arc-tdep.h: Same.
224 * arch-utils.c: Same.
225 * arm-nbsd-tdep.c: Same.
226 * arm-tdep.c: Same.
227 * ax-gdb.c: Same.
228 * blockframe.c: Same.
229 * btrace.c: Same.
230 * c-varobj.c: Same.
231 * coff-pe-read.c: Same.
232 * coffread.c: Same.
233 * cris-tdep.c: Same.
234 * darwin-nat.c: Same.
235 * dbxread.c: Same.
236 * dcache.c: Same.
237 * disasm.c: Same.
238 * dtrace-probe.c: Same.
239 * dwarf-index-write.c: Same.
240 * dwarf2-frame-tailcall.c: Same.
241 * dwarf2-frame.c: Same.
242 * dwarf2read.c: Same.
243 * eval.c: Same.
244 * exceptions.c: Same.
245 * fbsd-tdep.c: Same.
246 * findvar.c: Same.
247 * frame.c: Same.
248 * frv-tdep.c: Same.
249 * gnu-v3-abi.c: Same.
250 * go32-nat.c: Same.
251 * h8300-tdep.c: Same.
252 * hppa-tdep.c: Same.
253 * i386-linux-tdep.c: Same.
254 * i386-tdep.c: Same.
255 * ia64-libunwind-tdep.c: Same.
256 * ia64-tdep.c: Same.
257 * infcmd.c: Same.
258 * infrun.c: Same.
259 * linespec.c: Same.
260 * linux-nat.c: Same.
261 * linux-thread-db.c: Same.
262 * machoread.c: Same.
263 * mdebugread.c: Same.
264 * mep-tdep.c: Same.
265 * mn10300-tdep.c: Same.
266 * namespace.c: Same.
267 * objfiles.c: Same.
268 * opencl-lang.c: Same.
269 * or1k-tdep.c: Same.
270 * osabi.c: Same.
271 * ppc-linux-nat.c: Same.
272 * ppc-linux-tdep.c: Same.
273 * ppc-sysv-tdep.c: Same.
274 * printcmd.c: Same.
275 * procfs.c: Same.
276 * record-btrace.c: Same.
277 * record-full.c: Same.
278 * remote-fileio.c: Same.
279 * remote.c: Same.
280 * rs6000-tdep.c: Same.
281 * s12z-tdep.c: Same.
282 * score-tdep.c: Same.
283 * ser-base.c: Same.
284 * ser-go32.c: Same.
285 * skip.c: Same.
286 * sol-thread.c: Same.
287 * solib-svr4.c: Same.
288 * solib.c: Same.
289 * source.c: Same.
290 * sparc-nat.c: Same.
291 * sparc-sol2-tdep.c: Same.
292 * sparc-tdep.c: Same.
293 * sparc64-tdep.c: Same.
294 * stabsread.c: Same.
295 * stack.c: Same.
296 * symfile.c: Same.
297 * symtab.c: Same.
298 * target-descriptions.c: Same.
299 * target-float.c: Same.
300 * thread.c: Same.
301 * utils.c: Same.
302 * valops.c: Same.
303 * valprint.c: Same.
304 * value.c: Same.
305 * varobj.c: Same.
306 * windows-nat.c: Same.
307 * xcoffread.c: Same.
308 * xstormy16-tdep.c: Same.
309 * xtensa-tdep.c: Same.
310
311 2019-10-17 Tom Tromey <tromey@adacore.com>
312
313 * configure: Rebuild.
314 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
315 in AC_CONFIG_FILES invocation.
316 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
317 new-style config.status invocation.
318
319 2019-10-17 Tom de Vries <tdevries@suse.de>
320
321 * arm-nbsd-nat.c: Fix typos in comments.
322 * arm-tdep.c: Same.
323 * darwin-nat-info.c: Same.
324 * dwarf2read.c: Same.
325 * elfread.c: Same.
326 * event-top.c: Same.
327 * findvar.c: Same.
328 * gdbtypes.c: Same.
329 * hppa-tdep.c: Same.
330 * i386-tdep.c: Same.
331 * jit.c: Same.
332 * main.c: Same.
333 * mdebugread.c: Same.
334 * moxie-tdep.c: Same.
335 * nto-procfs.c: Same.
336 * osabi.c: Same.
337 * ppc-linux-tdep.c: Same.
338 * remote.c: Same.
339 * riscv-tdep.c: Same.
340 * s390-tdep.c: Same.
341 * sh-tdep.c: Same.
342 * sparc-linux-tdep.c: Same.
343 * sparc-nat.c: Same.
344 * stack.c: Same.
345 * target-descriptions.c: Same.
346 * top.c: Same.
347 * varobj.c: Same.
348
349 2019-10-16 Tom Tromey <tom@tromey.com>
350
351 * objfiles.h (struct objfile) <original_name>: Now const.
352
353 2019-10-16 Christian Biesinger <cbiesinger@google.com>
354
355 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
356 pass on to sigsetjmp's second argument.
357 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
358
359 2019-10-16 Keith Seitz <keiths@redhat.com>
360
361 PR gdb/23567
362 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
363 sections whose size is greater than the file size.
364
365 2019-10-16 Jim Wilson <jimw@sifive.com>
366
367 * riscv-tdep.c (riscv_gcc_target_options): New.
368 (riscv_gnu_triplet_regexp): New.
369 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
370 set_gdbarch_gnu_triplet_regexp.
371
372 2019-10-16 Christian Biesinger <cbiesinger@google.com>
373
374 * Makefile.in: Add xml-builtin.h.
375 * features/feature_to_c.sh: Add an include for xml-builtin.h
376 to ensure that the compiler checks that the types match.
377 * xml-builtin.h: New file.
378 * xml-support.c (fetch_xml_builtin): Add missing const.
379 * xml-support.h: Remove declaration of xml_builtins.
380
381 2019-10-16 Tom de Vries <tdevries@suse.de>
382
383 PR tdep/25096
384 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
385 (amd64_classify_aggregate): ... here.
386 (amd64_classify_aggregate_field): Handled fiels of nested structs
387 recursively.
388
389 2019-10-16 Tom de Vries <tdevries@suse.de>
390
391 PR tdep/24104
392 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
393 that handles 'theclass'.
394
395 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * linespec.c (decode_digits_ordinary): Update comment.
398 * make-target-delegates: No longer need to handle VEC case.
399 * memrange.c (normalize_mem_ranges): Update comment.
400 * namespace.c (add_using_directive): Update comment.
401 * objc-lang.c (uniquify_strings): Update comment.
402 * ppc-linux-nat.c (struct thread_points): Update comment.
403 * probe.h (find_probes_in_objfile): Update comment.
404 * target.h (enum flash_preserve_mode): Update comment.
405 * varobj.c (varobj_restrict_range): Update comment.
406 * varobj.h (varobj_list_children): Update comment.
407
408 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
409
410 * Makefile.in: Remove references to vec.h and vec.c.
411 * aarch64-tdep.c: No longer include vec.h.
412 * ada-lang.c: Likewise.
413 * ada-lang.h: Likewise.
414 * arm-tdep.c: Likewise.
415 * ax.h: Likewise.
416 * breakpoint.h: Likewise.
417 * charset.c: Likewise.
418 * cp-support.h: Likewise.
419 * dtrace-probe.c: Likewise.
420 * dwarf2read.c: Likewise.
421 * extension.h: Likewise.
422 * gdb_bfd.c: Likewise.
423 * gdbsupport/gdb_vecs.h: Likewise.
424 * gdbsupport/vec.c: Remove.
425 * gdbsupport/vec.h: Remove.
426 * gdbthread.h: Likewise.
427 * guile/scm-type.c: Likewise.
428 * inline-frame.c: Likewise.
429 * machoread.c: Likewise.
430 * memattr.c: Likewise.
431 * memrange.h: Likewise.
432 * namespace.h: Likewise.
433 * nat/linux-btrace.h: Likewise.
434 * osdata.c: Likewise.
435 * parser-defs.h: Likewise.
436 * progspace.h: Likewise.
437 * python/py-type.c: Likewise.
438 * record-btrace.c: Likewise.
439 * rust-exp.y: Likewise.
440 * solib-target.c: Likewise.
441 * stap-probe.c: Likewise.
442 * target-descriptions.c: Likewise.
443 * target-memory.c: Likewise.
444 * target.h: Likewise.
445 * varobj.c: Likewise.
446 * varobj.h: Likewise.
447 * xml-support.h: Likewise.
448
449 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
450
451 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
452 Update for new std::vector based implementation.
453 (process_psymtab_comp_unit_reader): Likewise.
454 (scan_partial_symbols): Likewise.
455 (recursively_compute_inclusions): Likewise.
456 (compute_compunit_symtab_includes): Likewise.
457 (process_imported_unit_die): Likewise.
458 (queue_and_load_dwo_tu): Likewise.
459 (follow_die_sig_1): Likewise.
460 * gdb/dwarf2read.h: Remove DEF_VEC_P.
461 (typedef dwarf2_per_cu_ptr): Remove.
462 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
463 function.
464 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
465 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
466 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
467 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
468 std::vector.
469
470 2019-10-15 Tom Tromey <tromey@adacore.com>
471
472 * windows-nat.c (windows_nat_target::resume): Use %x when logging
473 TID.
474
475 2019-10-15 Tom Tromey <tromey@adacore.com>
476
477 * windows-nat.c (windows_nat_target::fetch_registers)
478 (windows_nat_target::store_registers): Rename "pid" to "tid".
479
480 2019-10-15 Tom Tromey <tromey@adacore.com>
481
482 * gdbarch.h, gdbarch.c: Rebuild.
483 * gdbarch.sh (gcc_target_options): Change return type to
484 std::string.
485 * compile/compile.c (get_args): Update.
486 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
487 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
488 std::string.
489 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
490 std::string.
491 * arch-utils.c (default_gcc_target_options): Return std::string.
492 * arch-utils.h (default_gcc_target_options): Return std::string.
493 * s390-tdep.c (s390_gcc_target_options): Return std::string.
494
495 2019-10-15 Christian Biesinger <cbiesinger@google.com>
496
497 * breakpoint.c (breakpoint_chain): Make static.
498 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
499 of accessing breakpoint_chain.
500
501 2019-10-15 Christian Biesinger <cbiesinger@google.com>
502
503 * breakpoint.c (iterate_over_breakpoints): Change function pointer
504 to a gdb::function_view and return value to bool.
505 * breakpoint.h (iterate_over_breakpoints): Likewise.
506 * dummy-frame.c (pop_dummy_frame_bpt): Update.
507 (pop_dummy_frame): Update.
508 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
509 (gdbscm_breakpoints): Update.
510 * python/py-breakpoint.c (build_bp_list): Update.
511 (gdbpy_breakpoints): Update.
512 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
513 Update.
514 (bpfinishpy_handle_stop): Update.
515 (bpfinishpy_handle_exit): Update.
516 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
517 (svr4_update_solib_event_breakpoints): Update.
518
519 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
520
521 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
522 when unwrapping single-field structs.
523
524 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
525
526 * dwarf2read.c: Remove includes.
527
528 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
529
530 * ui-out.c (ui_out::call_do_message): Silence
531 -Wformat-nonliteral warning.
532
533 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
534
535 * breakpoint.c: Remove some includes: continuations.h, skip.h,
536 mi/mi-main.h, readline/readline.h, readline/history.h. Add
537 include: readline/tilde.h.
538
539 2019-10-12 Christian Biesinger <cbiesinger@google.com>
540
541 * remote.c (remote_target::get_trace_status): Remove declaration of
542 trace_regblock_size.
543
544 2019-10-12 Christian Biesinger <cbiesinger@google.com>
545
546 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
547 (show_user): Remove declaration of cmdlist.
548 * cli/cli-cmds.h (max_user_call_depth): Declare.
549 * cli/cli-script.c (execute_user_command): Remove declaration
550 of max_user_call_depth.
551
552 2019-10-11 Jim Wilson <jimw@sifive.com>
553
554 * gdbsupport/print-utils.h (pulongest): Fix comment.
555 (plongest): Likewise.
556 (phex): Add missing comment, mention leading zeros.
557 (phex_nz): Add mention of no leading zeros to comment.
558
559 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
560 plongest instead of unsigned long long cast.
561
562 2019-10-10 Christian Biesinger <cbiesinger@google.com>
563
564 * main.c (captured_main_1): Include gdbtk.h and remove declarations
565 for external_editor_command and gdbtk_test.
566
567 2019-10-10 Christian Biesinger <cbiesinger@google.com>
568
569 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
570 * varobj.c (varobjdebug): Move comment to...
571 * varobj.h (varobjdebug): ...here, and declare.
572
573 2019-10-09 Tom Tromey <tom@tromey.com>
574
575 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
576 erase_data_content.
577
578 2019-10-09 Tom Tromey <tom@tromey.com>
579
580 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
581 * tui/tui-stack.c (tui_locator_window::rerender): Update.
582 * tui/tui-command.c (tui_cmd_window::resize)
583 (tui_refresh_cmd_win): Update.
584 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
585 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
586 * tui/tui-data.c (~tui_gen_win_info): Remove.
587 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
588 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
589 (tui_redisplay_readline, tui_mld_flush)
590 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
591 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
592 (tui_data_window::erase_data_content)
593 (tui_data_item_window::rerender)
594 (tui_data_item_window::refresh_window): Update.
595 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
596 (box_win, tui_gen_win_info::make_window)
597 (tui_gen_win_info::make_visible): Update.
598 (tui_delete_win): Remove.
599 * tui/tui-winsource.c
600 (tui_source_window_base::do_erase_source_content): Update.
601 (tui_show_source_line, tui_source_window_base::update_tab_width)
602 (tui_source_window_base::update_exec_info): Update.
603 * tui/tui-data.h (struct curses_deleter): New.
604 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
605 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
606
607 2019-10-09 Tom Tromey <tom@tromey.com>
608
609 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
610
611 2019-10-09 Tom Tromey <tom@tromey.com>
612
613 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
614 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
615
616 2019-10-09 Tom Tromey <tom@tromey.com>
617
618 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
619 window height directly.
620 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
621 declare.
622 * tui/tui-layout.c (tui_default_win_height): Remove.
623 (tui_default_win_viewport_height): Remove.
624
625 2019-10-09 Tom Tromey <tom@tromey.com>
626
627 * tui/tui.h: Remove comments.
628
629 2019-10-09 Tom de Vries <tdevries@suse.de>
630
631 * python/lib/gdb/printer/bound_registers.py: Use
632 '^builtin_type_bound128' as regexp argument for
633 add_builtin_pretty_printer.
634
635 2019-10-09 Christian Biesinger <cbiesinger@google.com>
636
637 * guile/guile.c (guile_extension_script_ops): Remove forward
638 declaration and mark as static.
639 (guile_script_ops): Likewise.
640 (extension_language_guile): Move further down in the file so
641 it can reference the definitions for guile_{extension_,}script_ops.
642
643 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
644
645 * s390-tdep.c (390_process_record): Handle new arch13 instructions
646 except SORTL, DFLTCC, and KDSA.
647
648 2019-10-08 Tom Tromey <tromey@adacore.com>
649
650 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
651 (struct safe_symbol_file_add_args): Remove.
652
653 2019-10-08 Tom Tromey <tromey@adacore.com>
654
655 * windows-nat.c: Don't include buildsym-legacy.h.
656
657 2019-10-08 Tom Tromey <tromey@adacore.com>
658
659 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
660
661 2019-10-08 Christian Biesinger <cbiesinger@google.com>
662
663 * gdbtypes.c (overload_debug): Move comment to header.
664 * gdbtypes.h (overload_debug): Declare.
665 * valops.c: Remove declaration of overload_debug, instead
666 include gdbtypes.h.
667
668 2019-10-08 Christian Biesinger <cbiesinger@google.com>
669
670 * language.c (show_language_command): Pass lang_frame_mismatch_warn
671 through _().
672 (lang_frame_mismatch_warn): Make const, mark with N_(), and
673 move comment...
674 * language.h (lang_frame_mismatch_warn): ... here. Also add
675 declaration.
676 * top.c (lang_frame_mismatch_warn): Remove declaration.
677 (check_frame_language_change): Pass lang_frame_mismatch_warn
678 through _().
679
680 2019-10-07 Christian Biesinger <cbiesinger@google.com>
681
682 * c-lang.h (vtbl_ptr_name): Declare.
683 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
684 it from the header.
685 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
686
687 2019-10-07 Christian Biesinger <cbiesinger@google.com>
688
689 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
690 gdb_static_assert.
691
692 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
693
694 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
695 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
696 * ctfread.c: New file.
697 * ctfread.h: New file.
698 * elfread.c: Include ctfread.h.
699 (struct elfinfo text_p): New member ctfsect.
700 (elf_locate_sections): Mark CTF section.
701 (elf_symfile_read): Call elfctf_build_psymtabs.
702 * Makefile.in (LIBCTF): Add.
703 (CLIBS): Use it.
704 (CDEPS): Likewise.
705 (DIST): Add ctfread.c.
706
707 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
708
709 * ctfread.c (struct nextfield): Renamed to ...
710 (struct ctf_nextfield): ... this.
711 (struct field_info): Renamed to ...
712 (strut ctf_field_info): ... this.
713 (attach_fields_to_type): Update for renamed structures.
714 (ctf_add_member_cb): Likewise.
715 (ctf_add_enum_member_cb): Likewise.
716 (process_struct_members): Likewise.
717 (process_enum_type): Likewise.
718
719 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
720
721 * tracectf.h: Rename, was ctf.h.
722 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
723 * tracefile.c: Likewise.
724 * tracepoint.c: Remove unused include ctf.h.
725 * mi/mi-main.c: Likewise.
726 * Makefile.in Replace ctf.c with tracectf.c.
727
728 2019-10-06 Joel Brobecker <brobecker@adacore.com>
729
730 * version.in: Change version number to "9.0.50.DATE-git".
731
732 2019-10-03 Tom Tromey <tom@tromey.com>
733
734 PR rust/24976:
735 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
736
737 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
738
739 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
740 cp_search_name_hash.
741 * NEWS: Add entry about nested function support.
742
743 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
744 Andrew Burgess <andrew.burgess@embecosm.com>
745
746 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
747 for nested static variables when searchin VAR_DOMAIN.
748 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
749 global scope, update comment.
750 (add_partial_subprogram): Call add_partial_subprogram recursively
751 for nested subroutines when processinng Fortran.
752 (load_partial_dies): Process the child entities of a subprogram
753 when processing Fortran.
754 (partial_die_parent_scope): Handle building scope
755 for Fortran nested functions.
756 (process_die): Record that nested functions have a scope.
757 (new_symbol): Always record Fortran subprograms on the global
758 symbol list.
759 (determine_prefix): How to build the prefix for Fortran
760 subprograms.
761
762 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
763
764 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
765 have just sent the thread a SIGSTOP and are waiting for it to
766 arrive.
767
768 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
769
770 * btrace.c (btrace_add_pc): Remove whitespace before the template
771 parameter in 'std::vector <...>'.
772 (parse_xml_btrace_block): Likewise.
773 (btrace_maint_decode_pt): Likewise.
774 (btrace_maint_update_packets): Likewise.
775 (btrace_maint_print_packets): Likewise.
776 * btrace.h (struct btrace_maint_info): Likewise.
777 * dwarf2read.c (struct type_unit_group): Likewise.
778 (build_type_psymtabs_reader): Likewise.
779 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
780 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
781 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
782
783 2019-10-03 Tom de Vries <tdevries@suse.de>
784
785 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
786 the first line of the help text for set/show style metadata.
787
788 2019-10-02 Tom Tromey <tromey@adacore.com>
789
790 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
791 * gdbsupport/common-inferior.c: New file.
792 * infcmd.c (startup_with_shell): Don't define.
793 * nat/fork-inferior.h (startup_with_shell): Don't declare.
794 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
795 * inferior.h (startup_with_shell): Don't declare.
796
797 2019-10-02 Christian Biesinger <cbiesinger@google.com>
798
799 * gdbsupport/gdb_assert.h: Include errors.h.
800 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
801
802 2019-10-02 Tom Tromey <tromey@adacore.com>
803
804 * NEWS: Add $_ada_exception entry.
805 * ada-lang.c (struct ada_catchpoint): Add constructor.
806 <m_kind>: New member.
807 (allocate_location_exception, re_set_exception): Remove
808 "ex" parameter.
809 (should_stop_exception): Compute $_ada_exception.
810 (check_status_exception, print_it_exception)
811 (print_one_exception, print_mention_exception): Remove
812 "ex" parameter.
813 (allocate_location_catch_exception, re_set_catch_exception)
814 (check_status_exception, print_it_catch_exception)
815 (print_one_catch_exception, print_mention_catch_exception)
816 (print_recreate_catch_exception)
817 (allocate_location_catch_exception_unhandled)
818 (re_set_catch_exception_unhandled)
819 (check_status_exception, print_it_catch_exception_unhandled)
820 (print_one_catch_exception_unhandled)
821 (print_mention_catch_exception_unhandled)
822 (print_recreate_catch_exception_unhandled)
823 (allocate_location_catch_assert, re_set_catch_assert)
824 (check_status_assert, print_it_catch_assert)
825 (print_one_catch_assert, print_mention_catch_assert)
826 (print_recreate_catch_assert)
827 (allocate_location_catch_handlers, re_set_catch_handlers)
828 (check_status_handlers, print_it_catch_handlers)
829 (print_one_catch_handlers, print_mention_catch_handlers)
830 (print_recreate_catch_handlers): Remove.
831 (create_ada_exception_catchpoint): Update.
832 (initialize_ada_catchpoint_ops): Update.
833
834 2019-10-02 Tom Tromey <tromey@adacore.com>
835
836 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
837 (create_excep_cond_exprs): Simplify exception string computation.
838 (ada_exception_catchpoint_cond_string): Likewise.
839
840 2019-10-02 Tom Tromey <tromey@adacore.com>
841
842 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
843 * ada-lang.c (lesseq_defined_than): Handle
844 LOC_STATIC.
845 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
846 parameter.
847 (dwarf2_has_info): Likewise.
848 (new_symbol): Set maybe_copied on symbol when
849 appropriate.
850 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
851 parameter.
852 <can_copy>: New member.
853 * elfread.c (record_minimal_symbol): Set maybe_copied
854 on symbol when appropriate.
855 (elf_symfile_read): Update call to dwarf2_has_info.
856 * minsyms.c (lookup_minimal_symbol_linkage): New
857 function.
858 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
859 * symtab.c (get_symbol_address, get_msymbol_address):
860 New functions.
861 * symtab.h (get_symbol_address, get_msymbol_address):
862 Declare.
863 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
864 maybe_copied.
865 (struct symbol, struct minimal_symbol) <maybe_copied>:
866 New member.
867
868 2019-10-02 Tom Tromey <tromey@adacore.com>
869
870 * source.c (struct current_source_location): New.
871 (current_source_key): New global.
872 (current_source_symtab, current_source_line)
873 (current_source_pspace): Remove.
874 (get_source_location): New function.
875 (get_current_source_symtab_and_line)
876 (set_default_source_symtab_and_line)
877 (set_current_source_symtab_and_line)
878 (clear_current_source_symtab_and_line, select_source_symtab)
879 (info_source_command, print_source_lines_base)
880 (info_line_command, search_command_helper, _initialize_source):
881 Update.
882
883 2019-10-02 Tom Tromey <tromey@adacore.com>
884
885 * source.c (select_source_symtab): Don't call
886 decode_line_with_current_source.
887
888 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
889
890 * symtab.c (lookup_global_symbol): Search global block.
891
892 2019-10-02 Tom Tromey <tromey@adacore.com>
893
894 * coffread.c (process_coff_symbol): Update.
895 * dwarf2read.c (var_decode_location, new_symbol): Update.
896 * mdebugread.c (parse_symbol): Update.
897 * objfiles.c (relocate_one_symbol): Update.
898 * stabsread.c (define_symbol, fix_common_block)
899 (scan_file_globals): Update.
900 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
901 (SET_SYMBOL_VALUE_ADDRESS): New macro.
902 * xcoffread.c (process_xcoff_symbol): Update.
903
904 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
905
906 * MAINTAINERS: Update my email address.
907
908 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
909
910 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
911 std::vector.
912 (build_type_psymtabs_reader): Update for std::vector.
913 (build_type_psymtab_dependencies): Likewise.
914 * dwarf2read.h: Remove use of DEF_VEC_P.
915 (typedef sig_type_ptr): Delete.
916
917 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
918
919 * btrace.c (btrace_maint_clear): Update to handle change from VEC
920 to std::vector.
921 (btrace_maint_decode_pt): Likewise, and move allocation of the
922 vector outside of the loop.
923 (btrace_maint_update_packets): Update to handle change from VEC to
924 std::vector.
925 (btrace_maint_print_packets): Likewise.
926 (maint_info_btrace_cmd): Likewise.
927 * btrace.h: Remove use of DEF_VEC_O.
928 (typedef btrace_pt_packet_s): Delete.
929 (struct btrace_maint_info) <packets>: Change fromm VEC to
930 std::vector.
931 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
932
933 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
934
935 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
936 make accesses into the vector constant references.
937 (btrace_add_pc): Update for std::vector.
938 (btrace_stitch_bts): Likewise.
939 (parse_xml_btrace_block): Likewise.
940 (btrace_maint_update_packets): Likewise.
941 (btrace_maint_print_packets): Likewise.
942 (maint_info_btrace_cmd): Likewise.
943 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
944 std::vector.
945 (btrace_data::empty): Likewise.
946 (btrace_data_append): Likewise.
947 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
948 (typedef btrace_block_s): Delete.
949 (struct btrace_block): Add constructor.
950 (struct btrace_data_bts) <blocks>: Change to std::vector.
951 * nat/linux-btrace.c (perf_event_read_bts): Update for
952 std::vector.
953 (linux_read_bts): Likewise.
954
955 2019-10-01 Tom Tromey <tom@tromey.com>
956
957 * cli/cli-logging.c (show_logging_filename): Use styled_string.
958
959 2019-10-01 Tom Tromey <tom@tromey.com>
960
961 * stack.c (print_frame, info_frame_command_core): Use
962 styled_string.
963 * linux-thread-db.c (try_thread_db_load_1)
964 (try_thread_db_load_from_pdir_1): Use styled_string.
965 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
966 (auto_load_section_scripts, info_auto_load_local_gdbinit)
967 (maybe_print_unsupported_script_warning)
968 (maybe_print_script_not_found_warning): Use styled_string.
969 * ada-lang.c (user_select_syms): Use styled_string.
970
971 2019-10-01 Tom Tromey <tom@tromey.com>
972
973 * p-lang.c (pascal_printstr): Use metadata style.
974 * value.c (show_convenience): Use metadata style.
975 * valprint.c (valprint_check_validity, val_print_optimized_out)
976 (val_print_not_saved, val_print_unavailable)
977 (val_print_invalid_address, generic_val_print, val_print)
978 (value_check_printable, val_print_array_elements): Use metadata
979 style.
980 * ui-out.h (class ui_out) <field_fmt>: New overload.
981 <do_field_fmt>: Add style parameter.
982 * ui-out.c (ui_out::field_fmt): New overload.
983 * typeprint.c (type_print_unknown_return_type)
984 (val_print_not_allocated, val_print_not_associated): Use metadata
985 style.
986 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
987 parameter.
988 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
989 * tracepoint.c (tvariables_info_1): Use metadata style.
990 * stack.c (print_frame_arg, print_frame_info, print_frame)
991 (info_frame_command_core): Use metadata style.
992 * skip.c (info_skip_command): Use metadata style.
993 * rust-lang.c (rust_print_enum): Use metadata style.
994 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
995 metadata style.
996 * python/py-framefilter.c (py_print_single_arg): Use metadata
997 style.
998 * printcmd.c (do_one_display, print_variable_and_value): Use
999 metadata style.
1000 * p-valprint.c (pascal_val_print)
1001 (pascal_object_print_value_fields): Use metadata style.
1002 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1003 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1004 parameter.
1005 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1006 * m2-valprint.c (m2_print_long_set): Use metadata style.
1007 * m2-typeprint.c (m2_print_type): Use metadata style.
1008 * infcmd.c (print_return_value_1): Use metadata style.
1009 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1010 * f-valprint.c (info_common_command_for_block): Use metadata
1011 style.
1012 * f-typeprint.c (f_type_print_base): Use metadata style.
1013 * expprint.c (print_subexp_standard): Use metadata style.
1014 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1015 * cli/cli-style.h (class cli_style_option): Add constructor.
1016 (metadata_style): Declare.
1017 * cli/cli-style.c (metadata_style): New global.
1018 (_initialize_cli_style): Register metadata style.
1019 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1020 parameter.
1021 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1022 * c-typeprint.c (c_type_print_base_struct_union)
1023 (c_type_print_base_1): Use metadata style.
1024 * breakpoint.c (watchpoint_value_print)
1025 (print_one_breakpoint_location): Use metadata style.
1026 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1027 style.
1028 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1029 style.
1030 * ada-valprint.c (val_print_packed_array_elements, printstr)
1031 (print_field_values, ada_val_print_ref, ada_val_print): Use
1032 metadata style.
1033 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1034 style.
1035 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1036 style.
1037 * ada-lang.c (user_select_syms): Use metadata style.
1038
1039 2019-10-01 Tom Tromey <tom@tromey.com>
1040
1041 * cli/cli-cmds.c (pwd_command): Style output.
1042
1043 2019-10-01 Pedro Alves <palves@redhat.com>
1044 Tom Tromey <tom@tromey.com>
1045
1046 * symtab.c (print_symbol_info): Use %ps.
1047 (print_msymbol_info): Use %ps.
1048 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1049 * printcmd.c (print_variable_and_value): Use %ps.
1050 * macrocmd.c (show_pp_source_pos): Use %ps.
1051 * infrun.c (print_exited_reason): Use ui_out::message.
1052 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1053 (describe_other_breakpoints): Use ui_out::message and new
1054 formats.
1055 (say_where): Use new formats.
1056 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1057 and new formats.
1058
1059 2019-10-01 Pedro Alves <palves@redhat.com>
1060 Tom Tromey <tom@tromey.com>
1061
1062 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1063 (test_gdb_formats): New function.
1064 (run_tests): Call it.
1065 (test_format_specifier): Update.
1066 * utils.h (fputs_filtered): Update comment.
1067 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1068 (fputs_styled_unfiltered): Declare.
1069 * utils.c (fputs_styled_unfiltered): New function.
1070 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1071 (vfprintf_filtered): Update.
1072 (vfprintf_unfiltered, vprintf_filtered): Update.
1073 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1074 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1075 disallow_ui_out_field>: New constants.
1076 (enum class field_kind): New.
1077 (struct base_field_s, struct signed_field_s): New.
1078 (signed_field): New function.
1079 (struct string_field_s): New.
1080 (string_field): New function.
1081 (struct styled_string_s): New.
1082 (styled_string): New function.
1083 (class ui_out) <message>: Add comment.
1084 <vmessage, call_do_message>: New methods.
1085 <do_message>: Add style parameter.
1086 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1087 methods.
1088 (ui_out::message): Rewrite.
1089 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1090 parameter.
1091 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1092 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1093 gdb_extensions parameter.
1094 (class format_piece): Add parameter to constructor.
1095 (n_int_args): New field.
1096 * gdbsupport/format.c (format_pieces::format_pieces): Add
1097 gdb_extensions parameter. Handle '*'.
1098 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1099 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1100 vfprintf_styled_no_gdbfmt.
1101 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1102 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1103 unfiltered output.
1104 * ui-style.h (struct ui_file_style) <ptr>: New method.
1105
1106 2019-10-01 Tom Tromey <tom@tromey.com>
1107
1108 * unittests/format_pieces-selftests.c: Update. Add final format.
1109 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1110 empty literal pieces.
1111
1112 2019-10-01 Tom Tromey <tom@tromey.com>
1113
1114 * ui-out.h (enum class ui_out_style_kind): Remove.
1115 (class ui_out) <field_string, field_stsream, do_field_string>:
1116 Change type of "style".
1117 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1118 (ui_out::field_string): Update.
1119 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1120 of "style".
1121 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1122 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1123 * stack.c (print_frame_arg, print_frame_info, print_frame):
1124 Update.
1125 * source.c (print_source_lines_base): Update.
1126 * solib.c (info_sharedlibrary_command): Update.
1127 * skip.c (info_skip_command): Update.
1128 * record-btrace.c (btrace_call_history_src_line)
1129 (btrace_call_history): Update.
1130 * python/py-framefilter.c (py_print_frame): Update.
1131 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1132 "style".
1133 * mi/mi-out.c (mi_ui_out::do_table_header)
1134 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1135 (mi_ui_out::do_field_string): Update.
1136 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1137 Update.
1138 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1139 "style".
1140 * cli-out.c (cli_ui_out::do_table_header)
1141 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1142 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1143 (cli_ui_out::do_field_fmt): Update.
1144 * breakpoint.c (print_breakpoint_location): Update.
1145 (update_static_tracepoint): Update.
1146
1147 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1148
1149 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1150 conversion of gdb_datadir.
1151 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1152 remove not needed c_str ().
1153
1154 2019-09-30 Ali Tamur <tamur@google.com>
1155
1156 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1157 (dwarf2_string_attr): Likewise.
1158
1159 2019-09-30 Ali Tamur <tamur@google.com>
1160
1161 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1162 (process_full_type_unit): Likewise.
1163 (dump_die_shallow): Likewise.
1164 (cu_debug_loc_section): Likewise.
1165
1166 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1167
1168 * minsyms.c (compare_minimal_symbols): Rename to...
1169 (minimal_symbol_is_less_than): ...this, and adjust to STL
1170 conventions (return bool, take arguments as references)
1171 (minimal_symbol_reader::install): Call std::sort instead
1172 of qsort.
1173
1174 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1175
1176 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1177 hash and why.
1178 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1179 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1180
1181 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1182
1183 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1184 * psympriv.h (add_psymbol_to_list): Move comment here and update
1185 it.
1186
1187 2019-09-29 Tom de Vries <tdevries@suse.de>
1188
1189 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1190 Use $tmpdir/$(basename "$output_file").dwz instead of
1191 "${output_file}.dwz".
1192
1193 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1194
1195 PR gdb/25045
1196 * hppa-linux-nat.c: Include gdbarch.h.
1197
1198 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1199
1200 * blockframe.c (find_pc_partial_function): Change return type to bool.
1201 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1202 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1203 (stub_gnu_ifunc_resolve_name): Likewise.
1204 * symtab.c (compare_filenames_for_search): Likewise.
1205 (compare_glob_filenames_for_search): Likewise.
1206 (matching_obj_sections): Likewise.
1207 (symbol_matches_domain): Likewise.
1208 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1209 (find_line_pc): Change return type to bool.
1210 (find_line_pc_range): Likewise.
1211 (producer_is_realview): Likewise.
1212 * symtab.h (symbol_matches_domain): Likewise.
1213 (find_pc_partial_function): Likewise.
1214 (find_pc_line_pc_range): Likewise.
1215 (in_gnu_ifunc_stub): Likewise.
1216 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1217 (find_line_pc): Likewise.
1218 (find_line_pc_range): Likewise.
1219 (matching_obj_sections): Likewise.
1220 (find_line_symtab): Change out parameter to bool.
1221 (producer_is_realview): Change return type to bool.
1222 (compare_filenames_for_search): Likewise.
1223 (compare_glob_filenames_for_search): Likewise.
1224
1225 2019-09-26 Tom Tromey <tom@tromey.com>
1226
1227 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1228 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1229 * gdb_usleep.h: Remove.
1230 * gdb_usleep.c: Remove.
1231 * utils.c: Don't include gdb_usleep.h.
1232
1233 2019-09-26 Tom Tromey <tromey@adacore.com>
1234
1235 * python/py-type.c (type_to_type_object): Call check_typedef
1236 for stub types.
1237
1238 2019-09-26 Tom Tromey <tom@tromey.com>
1239
1240 * utils.h (initialize_utils): Don't declare.
1241 * top.c (gdb_init): Don't call initialize_utils.
1242 * utils.c (initialize_utils): Remove. Move contents...
1243 (_initialize_utils): ... here.
1244
1245 2019-09-25 Tom Tromey <tom@tromey.com>
1246
1247 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1248 * utils.h (make_hex_string): Don't declare.
1249 * utils.c (make_hex_string): Remove.
1250
1251 2019-09-24 Tom de Vries <tdevries@suse.de>
1252
1253 PR gdb/23815
1254 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1255 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1256
1257 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1258
1259 * NEWS: Mention new simulator port for PRU.
1260
1261 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1262
1263 * ada-exp.y (write_object_remaining): Update.
1264 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1265 and eliminate the static buffer.
1266 (ada_decode_symbol): Update.
1267 (ada_la_decode): Update.
1268 (ada_sniff_from_mangled_name): Update.
1269 (is_valid_name_for_wild_match): Update.
1270 (ada_lookup_name_info::matches): Update and simplify.
1271 (name_matches_regex): Update.
1272 (ada_add_global_exceptions): Update.
1273 * ada-lang.h (ada_decode): Update signature.
1274 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1275 * dwarf-index-write.c (debug_names::insert): Update.
1276
1277 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1278
1279 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1280 formatting.
1281
1282 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1283
1284 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1285 Change "nonzero" to "true" in documentation.
1286
1287 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1288
1289 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1290 (_initialize_darwin_solib): Don't set
1291 darwin_so_ops.lookup_lib_global_symbol.
1292 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1293 set_gdbarch_iterate_over_objfiles_in_search_order.
1294 (elf_lookup_lib_symbol): Rename to...
1295 (svr4_iterate_over_objfiles_in_search_order): this, and update
1296 to iterate semantics.
1297 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1298 * solib.c (solib_global_lookup): Remove.
1299 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1300 (solib_global_lookup): Remove.
1301 * symtab.c (lookup_global_or_static_symbol): Remove call to
1302 solib_global_lookup.
1303
1304 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1305
1306 * NEWS: Move entries about default MI version now being
1307 version 3, and about the GDB/MI fix for multi-location
1308 breakpoints to the "since GDB 8.3" section.
1309
1310 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1311
1312 GDB 8.3.1 released.
1313
1314 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1315
1316 * NEWS: Mention that Cell/B.E. debugging support was removed.
1317 * MAINTAINERS: Remove spu target.
1318
1319 * config/djgpp/fnchange.lst: Remove entries for removed files.
1320
1321 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1322 spu-multiarch.o, and spu-tdep.o.
1323 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1324 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1325 spu-multiarch.c, and spu-tdep.c.
1326 * spu-linux-nat.c: Remove file.
1327 * spu-multiarch.c: Remove file.
1328 * spu-tdep.c: Remove file.
1329 * spu-tdep.h: Remove file.
1330 * solib-spu.c: Remove file.
1331 * solib-spu.h: Remove file.
1332
1333 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1334 * configure.nat (spu-linux): Remove.
1335 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1336 solib-multiarch.o from gdb_target_obs.
1337 (spu*-*-*): Remove.
1338
1339 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1340 feature flag.
1341 (ppc_linux_no_features): Update.
1342 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1343 Cell/B.E. support.
1344 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1345 (tdesc_powerpc_cell64l): Likewise.
1346 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1347 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1348 Cell/B.E. support.
1349 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1350 Do not include "features/rs6000/powerpc-cell32l.c" or
1351 "features/rs6000/powerpc-cell64l.c".
1352 (ppc_linux_spu_section): Remove.
1353 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1354 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1355 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1356 (ppc_linux_spe_context_lookup): Remove.
1357 (ppc_linux_spe_context_inferior_created): Remove.
1358 (ppc_linux_spe_context_solib_loaded): Remove.
1359 (ppc_linux_spe_context_solib_unloaded): Remove.
1360 (ppc_linux_spe_context): Remove.
1361 (struct ppu2spu_cache): Remove.
1362 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1363 (struct ppu2spu_data): Remove.
1364 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1365 ppu2spu_unwind): Remove.
1366 (ppc_linux_init_abi): Remove Cell/B.E. support.
1367 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1368
1369 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1370 (rs6000/powerpc-cell64l-expedite): Likewise
1371 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1372 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1373 rs6000/powerpc-cell64l.xml.
1374 * features/rs6000/powerpc-cell32l.xml: Remove.
1375 * features/rs6000/powerpc-cell64l.xml: Likewise.
1376 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1377 * features/rs6000/powerpc-cell64l.c: Likewise.
1378 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1379 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1380 * regformats/reg-spu.dat: Remove.
1381
1382 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1383 * corelow.c (struct spuid_list): Remove.
1384 (add_to_spuid_list): Remove.
1385 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1386 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1387 (remote_protocol_features): Remove associated entries.
1388 (_initialize_remote): No longer initialize them.
1389 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1390 * linux-nat.c (SPUFS_MAGIC): Remove.
1391 (linux_proc_xfer_spu): Remove.
1392 (spu_enumerate_spu_ids): Remove.
1393 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1394 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1395 (linux_make_corefile_notes): No longer call it.
1396
1397 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1398 (cooked_write_test): Likewise.
1399
1400 2019-09-20 Tom Tromey <tom@tromey.com>
1401
1402 * NEWS: Mention case-sensitivity of TUI commands.
1403 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1404 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1405 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1406
1407 2019-09-20 Tom Tromey <tom@tromey.com>
1408
1409 * tui/tui-source.c (tui_source_window::set_contents): Use
1410 make_unique_xstrdup.
1411 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1412 make_unique_xstrdup.
1413
1414 2019-09-20 Tom Tromey <tom@tromey.com>
1415
1416 * tui/tui-data.c: Remove separator comments.
1417 * tui/tui-layout.c: Remove separator comments.
1418 * tui/tui-win.c: Remove separator comments.
1419 * tui/tui-wingeneral.c: Remove separator comments.
1420
1421 2019-09-20 Tom Tromey <tom@tromey.com>
1422
1423 * tui/tui.h (strcat_to_buf): Don't declare.
1424 * tui/tui.c (strcat_to_buf): Remove.
1425
1426 2019-09-20 Tom Tromey <tom@tromey.com>
1427
1428 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1429 from "fullname".
1430 * tui/tui-source.c (tui_source_window::set_contents)
1431 (tui_source_window::location_matches_p)
1432 (tui_source_window::maybe_update): Update.
1433
1434 2019-09-20 Tom Tromey <tom@tromey.com>
1435
1436 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1437 Update.
1438 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1439 prefix.
1440 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1441 (tui_data_window::line_from_reg_element_no)
1442 (tui_data_window::first_reg_element_no_inline)
1443 (tui_data_window::show_registers)
1444 (tui_data_window::show_register_group)
1445 (tui_data_window::display_registers_from)
1446 (tui_data_window::display_registers_from_line)
1447 (tui_data_window::first_data_item_displayed)
1448 (tui_data_window::delete_data_content_windows)
1449 (tui_data_window::erase_data_content)
1450 (tui_data_window::do_scroll_vertical)
1451 (tui_data_window::refresh_window)
1452 (tui_data_window::check_register_values): Update.
1453
1454 2019-09-20 Tom Tromey <tom@tromey.com>
1455
1456 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1457 (struct tui_locator_window) <full_name, proc_name>: Now
1458 std::string.
1459 * tui/tui-stack.c (tui_locator_window::make_status_line)
1460 (tui_locator_window::set_locator_fullname)
1461 (tui_locator_window::set_locator_info): Update.
1462 * tui/tui-source.c (tui_source_window::set_contents)
1463 (tui_source_window::showing_source_p): Update.
1464
1465 2019-09-20 Tom Tromey <tom@tromey.com>
1466
1467 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1468 Don't call tui_locator_win_info_ptr.
1469
1470 2019-09-20 Tom Tromey <tom@tromey.com>
1471
1472 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1473
1474 2019-09-20 Tom Tromey <tom@tromey.com>
1475
1476 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1477 height for locator.
1478 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1479 * tui/tui-layout.c (show_source_disasm_command, show_data)
1480 (show_source_or_disasm_and_command): Use 1 as height for locator.
1481
1482 2019-09-20 Tom Tromey <tom@tromey.com>
1483
1484 * tui/tui.c (tui_enable): Update.
1485 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1486 Update.
1487 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1488 Update.
1489 * tui/tui-data.c (win_resized): Now bool.
1490 (tui_win_resized): Return bool.
1491 (tui_set_win_resized_to): Accept a bool.
1492
1493 2019-09-20 Tom Tromey <tom@tromey.com>
1494
1495 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1496 Change type of "refresh_values_only".
1497 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1498 type of "refresh_values_only".
1499
1500 2019-09-20 Tom Tromey <tom@tromey.com>
1501
1502 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1503 std::string.
1504 (tui_disassemble): Add "pos" parameter.
1505 (tui_disasm_window::set_contents): Simplify.
1506
1507 2019-09-20 Tom Tromey <tom@tromey.com>
1508
1509 * tui/tui-winsource.h (struct tui_source_window_base)
1510 <show_source_content>: Now private.
1511 * tui/tui-winsource.c
1512 (tui_source_window_base::show_source_content): Don't handle empty
1513 content case.
1514
1515 2019-09-20 Tom Tromey <tom@tromey.com>
1516
1517 * tui/tui-layout.c (show_source_disasm_command)
1518 (show_source_or_disasm_and_command): Don't call
1519 show_source_content.
1520
1521 2019-09-20 Tom Tromey <tom@tromey.com>
1522
1523 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1524 Declare.
1525 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1526 from tui_make_status_line.
1527 (tui_locator_window::rerender): Update.
1528
1529 2019-09-20 Tom Tromey <tom@tromey.com>
1530
1531 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1532 (tui_locator_window::rerender): Update.
1533
1534 2019-09-20 Tom Tromey <tom@tromey.com>
1535
1536 * tui/tui-winsource.h (struct tui_source_window_base)
1537 <~tui_source_window_base>: Don't declare.
1538 <fullname>: Remove.
1539 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1540 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1541 member.
1542 * tui/tui-source.c (tui_source_window::set_contents): Update.
1543 (tui_source_window::location_matches_p)
1544 (tui_source_window::maybe_update): Update.
1545
1546 2019-09-20 Tom Tromey <tom@tromey.com>
1547
1548 * tui/tui-winsource.h (~tui_source_element): Remove.
1549 (tui_source_element): Update.
1550 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1551 * tui/tui-winsource.c (tui_show_source_line): Update.
1552 * tui/tui-source.c (tui_source_window::set_contents): Update.
1553 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1554
1555 2019-09-20 Tom Tromey <tom@tromey.com>
1556
1557 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1558 declare.
1559 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1560 tui_clear_source_windows_detail.
1561 * tui/tui-winsource.h (struct tui_source_window_base)
1562 <clear_detail>: Don't declare.
1563 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1564 Remove.
1565 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1566
1567 2019-09-20 Tom Tromey <tromey@adacore.com>
1568
1569 PR ada/24919:
1570 * block.c (contained_in): Fix final return value.
1571
1572 2019-09-20 Alan Modra <amodra@gmail.com>
1573
1574 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1575 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1576 (read_indirect_string_from_dwz): Use bfd accessor.
1577 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1578 * machoread.c (macho_symfile_read_all_oso): Likewise.
1579 * solib.c (solib_bfd_open): Likewise.
1580
1581 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1582
1583 * eval.c: Move declaration of overload_resolution to...
1584 * value.h: ...here.
1585
1586 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1587
1588 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1589 * arm-linux-tdep.c: Likewise.
1590 * arm-nbsd-nat.c: Likewise.
1591 * arm-tdep.h: Declare arm_apcs_32.
1592 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1593
1594 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1595
1596 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1597 * dwarf2read.h: Declare dwarf_always_disassemble.
1598
1599 2019-09-19 Tom de Vries <tdevries@suse.de>
1600
1601 PR gdb/25009
1602 * source-cache.c (source_cache::ensure): Catch exception thrown during
1603 construction of the highlighter.
1604
1605 2019-09-18 Alan Modra <amodra@gmail.com>
1606
1607 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1608 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1609 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1610 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1611 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1612 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1613 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1614 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1615 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1616 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1617 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1618 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1619 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1620 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1621 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1622 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1623 * mi/mi-interp.c: Update throughout for bfd section macro and
1624 function changes.
1625 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1626 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1627
1628 2019-09-18 Tom Tromey <tom@tromey.com>
1629
1630 * NEWS: Add entry.
1631 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1632 call rl_initialize.
1633 (tui_enable): Do not call rl_initialize.
1634
1635 2019-09-18 Christian Groessler <chris@groessler.org>
1636
1637 * alpha-linux-nat.c: Include gdbarch.h.
1638
1639 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1640
1641 * ui-file.c: Include cli/cli-style.h.
1642 (term_cli_styling): Remove cli_styling declaration.
1643
1644 2019-09-18 Alan Modra <amodra@gmail.com>
1645
1646 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1647 to bfd_asymbol_section.
1648
1649 2019-09-18 Alan Modra <amodra@gmail.com>
1650
1651 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1652 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1653 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1654
1655 2019-09-18 Alan Modra <amodra@gmail.com>
1656
1657 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1658 * spu-linux-nat.c (spu_bfd_open): Likewise.
1659
1660 2019-09-18 Christian Biesinger <cbiesinger@google.com>
1661
1662 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1663 to bool to match definition in dwarf2read.c.
1664
1665 2019-09-17 Christian Biesinger <cbiesinger@google.com>
1666
1667 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1668 (print_signatures): Likewise.
1669 (trust_pad_over_xvs): Likewise.
1670 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1671 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1672 * arm-linux-nat.c (arm_apcs_32): Likewise.
1673 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1674 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1675 * arm-tdep.c (arm_debug): Likewise.
1676 (arm_apcs_32): Likewise.
1677 * auto-load.c (debug_auto_load): Likewise.
1678 (auto_load_gdb_scripts): Likewise.
1679 (global_auto_load): Likewise.
1680 (auto_load_local_gdbinit): Likewise.
1681 (auto_load_local_gdbinit_loaded): Likewise.
1682 * auto-load.h (global_auto_load): Likewise.
1683 (auto_load_local_gdbinit): Likewise.
1684 (auto_load_local_gdbinit_loaded): Likewise.
1685 * breakpoint.c (disconnected_dprintf): Likewise.
1686 (breakpoint_proceeded): Likewise.
1687 (automatic_hardware_breakpoints): Likewise.
1688 (always_inserted_mode): Likewise.
1689 (target_exact_watchpoints): Likewise.
1690 (_initialize_breakpoint): Update.
1691 * breakpoint.h (target_exact_watchpoints): Change to bool.
1692 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1693 * cli/cli-cmds.c (trace_commands): Likewise.
1694 * cli/cli-cmds.h (trace_commands): Likewise.
1695 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1696 to bool*.
1697 * cli/cli-logging.c (logging_overwrite): Change to bool.
1698 (logging_redirect): Likewise.
1699 (debug_redirect): Likewise.
1700 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1701 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1702 to bool.
1703 <boolean_option_def>: Update.
1704 (struct flag_option_def): Change default type of Context to bool
1705 from int.
1706 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1707 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1708 (get_setshow_command_value_string): Likewise.
1709 * cli/cli-style.c (cli_styling): Change to bool.
1710 (source_styling): Likewise.
1711 * cli/cli-style.h (source_styling): Likewise.
1712 (cli_styling): Likewise.
1713 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1714 to bool.
1715 * command.h (var_types): Update comment.
1716 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1717 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1718 bool.
1719 (debug_compile_cplus_scopes): Likewise.
1720 * compile/compile-internal.h (compile_debug): Likewise.
1721 * compile/compile.c (compile_debug): Likewise.
1722 (struct compile_options) <raw>: Likewise.
1723 * cp-support.c (catch_demangler_crashes): Likewise.
1724 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1725 (usr_cmd_cris_dwarf2_cfi): Likewise.
1726 * csky-tdep.c (csky_debug): Likewise.
1727 * darwin-nat.c (enable_mach_exceptions): Likewise.
1728 * dcache.c (dcache_enabled_p): Likewise.
1729 * defs.h (info_verbose): Likewise.
1730 * demangle.c (demangle): Likewise.
1731 (asm_demangle): Likewise.
1732 * dwarf-index-cache.c (debug_index_cache): Likewise.
1733 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1734 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1735 * dwarf2read.c (check_physname): Likewise.
1736 (use_deprecated_index_sections): Likewise.
1737 (dwarf_always_disassemble): Likewise.
1738 * eval.c (overload_resolution): Likewise.
1739 * event-top.c (set_editing_cmd_var): Likewise.
1740 (exec_done_display_p): Likewise.
1741 * event-top.h (set_editing_cmd_var): Likewise.
1742 (exec_done_display_p): Likewise.
1743 * exec.c (write_files): Likewise.
1744 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1745 (debug_fbsd_nat): Likewise.
1746 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1747 Likewise.
1748 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1749 <backtrace_past_entry> Likewise.
1750 * gdb-demangle.h (demangle): Likewise.
1751 (asm_demangle): Likewise.
1752 * gdb_bfd.c (bfd_sharing): Likewise.
1753 * gdbcore.h (write_files): Likewise.
1754 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1755 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1756 * gdbthread.h (print_thread_events): Likewise.
1757 * gdbtypes.c (opaque_type_resolution): Likewise.
1758 (strict_type_checking): Likewise.
1759 * gnu-nat.c (gnu_debug_flag): Likewise.
1760 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1761 * guile/scm-param.c (pascm_variable): Add boolval.
1762 (add_setshow_generic): Update.
1763 (pascm_param_value): Update.
1764 (pascm_set_param_value_x): Update.
1765 * hppa-tdep.c (hppa_debug): Change to bool..
1766 * infcall.c (may_call_functions_p): Likewise.
1767 (coerce_float_to_double_p): Likewise.
1768 (unwind_on_signal_p): Likewise.
1769 (unwind_on_terminating_exception_p): Likewise.
1770 * infcmd.c (startup_with_shell): Likewise.
1771 * inferior.c (print_inferior_events): Likewise.
1772 * inferior.h (startup_with_shell): Likewise.
1773 (print_inferior_events): Likewise.
1774 * infrun.c (step_stop_if_no_debug): Likewise.
1775 (detach_fork): Likewise.
1776 (debug_displaced): Likewise.
1777 (disable_randomization): Likewise.
1778 (non_stop): Likewise.
1779 (non_stop_1): Likewise.
1780 (observer_mode): Likewise.
1781 (observer_mode_1): Likewise.
1782 (set_observer_mode): Update.
1783 (sched_multi): Change to bool.
1784 * infrun.h (debug_displaced): Likewise.
1785 (sched_multi): Likewise.
1786 (step_stop_if_no_debug): Likewise.
1787 (non_stop): Likewise.
1788 (disable_randomization): Likewise.
1789 * linux-tdep.c (use_coredump_filter): Likewise.
1790 (dump_excluded_mappings): Likewise.
1791 * linux-thread-db.c (auto_load_thread_db): Likewise.
1792 (check_thread_db_on_load): Likewise.
1793 * main.c (captured_main_1): Update.
1794 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1795 xx2_opt, boolean_opt>: Change to bool.
1796 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1797 * maint.c (maintenance_profile_p): Likewise.
1798 (per_command_time): Likewise.
1799 (per_command_space): Likewise.
1800 (per_command_symtab): Likewise.
1801 * memattr.c (inaccessible_by_default): Likewise.
1802 * mi/mi-main.c (mi_async): Likewise.
1803 (mi_async_1): Likewise.
1804 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1805 * nat/fork-inferior.h (startup_with_shell): Likewise.
1806 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1807 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1808 * nios2-tdep.c (nios2_debug): Likewise.
1809 * or1k-tdep.c (or1k_debug): Likewise.
1810 * parse.c (parser_debug): Likewise.
1811 * parser-defs.h (parser_debug): Likewise.
1812 * printcmd.c (print_symbol_filename): Likewise.
1813 * proc-api.c (procfs_trace): Likewise.
1814 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1815 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1816 (set_parameter_value): Update.
1817 (add_setshow_generic): Update.
1818 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1819 to bool*.
1820 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1821 int*.
1822 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1823 * record-btrace.c (record_btrace_target::store_registers): Update.
1824 * record-full.c (record_full_memory_query): Change to bool.
1825 (record_full_stop_at_limit): Likewise.
1826 * record-full.h (record_full_memory_query): Likewise.
1827 * remote-notif.c (notif_debug): Likewise.
1828 * remote-notif.h (notif_debug): Likewise.
1829 * remote.c (use_range_stepping): Likewise.
1830 (interrupt_on_connect): Likewise.
1831 (remote_break): Likewise.
1832 * ser-tcp.c (tcp_auto_retry): Likewise.
1833 * ser-unix.c (serial_hwflow): Likewise.
1834 * skip.c (debug_skip): Likewise.
1835 * solib-aix.c (solib_aix_debug): Likewise.
1836 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1837 (spu_auto_flush_cache_p): Likewise.
1838 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1839 Likewise.
1840 (struct info_print_options) <quiet>: Likewise.
1841 * symfile-debug.c (debug_symfile): Likewise.
1842 * symfile.c (auto_solib_add): Likewise.
1843 (separate_debug_file_debug): Likewise.
1844 * symfile.h (auto_solib_add): Likewise.
1845 (separate_debug_file_debug): Likewise.
1846 * symtab.c (basenames_may_differ): Likewise.
1847 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1848 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1849 (struct info_types_options) <quiet>: Likewise.
1850 * symtab.h (demangle): Likewise.
1851 (basenames_may_differ): Likewise.
1852 * target-dcache.c (stack_cache_enabled_1): Likewise.
1853 (code_cache_enabled_1): Likewise.
1854 * target.c (trust_readonly): Likewise.
1855 (may_write_registers): Likewise.
1856 (may_write_memory): Likewise.
1857 (may_insert_breakpoints): Likewise.
1858 (may_insert_tracepoints): Likewise.
1859 (may_insert_fast_tracepoints): Likewise.
1860 (may_stop): Likewise.
1861 (auto_connect_native_target): Likewise.
1862 (target_stop_and_wait): Update.
1863 (target_async_permitted): Change to bool.
1864 (target_async_permitted_1): Likewise.
1865 (may_write_registers_1): Likewise.
1866 (may_write_memory_1): Likewise.
1867 (may_insert_breakpoints_1): Likewise.
1868 (may_insert_tracepoints_1): Likewise.
1869 (may_insert_fast_tracepoints_1): Likewise.
1870 (may_stop_1): Likewise.
1871 * target.h (target_async_permitted): Likewise.
1872 (may_write_registers): Likewise.
1873 (may_write_memory): Likewise.
1874 (may_insert_breakpoints): Likewise.
1875 (may_insert_tracepoints): Likewise.
1876 (may_insert_fast_tracepoints): Likewise.
1877 (may_stop): Likewise.
1878 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1879 (make_thread_apply_all_options_def_group): Change argument from int*
1880 to bool*.
1881 (thread_apply_all_command): Update.
1882 (print_thread_events): Change to bool.
1883 * top.c (confirm): Likewise.
1884 (command_editing_p): Likewise.
1885 (history_expansion_p): Likewise.
1886 (write_history_p): Likewise.
1887 (info_verbose): Likewise.
1888 * top.h (confirm): Likewise.
1889 (history_expansion_p): Likewise.
1890 * tracepoint.c (disconnected_tracing): Likewise.
1891 (circular_trace_buffer): Likewise.
1892 * typeprint.c (print_methods): Likewise.
1893 (print_typedefs): Likewise.
1894 * utils.c (debug_timestamp): Likewise.
1895 (sevenbit_strings): Likewise.
1896 (pagination_enabled): Likewise.
1897 * utils.h (sevenbit_strings): Likewise.
1898 (pagination_enabled): Likewise.
1899 * valops.c (overload_resolution): Likewise.
1900 * valprint.h (struct value_print_options) <prettyformat_arrays,
1901 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1902 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1903 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1904 Likewise.
1905 * windows-nat.c (new_console): Likewise.
1906 (cygwin_exceptions): Likewise.
1907 (new_group): Likewise.
1908 (debug_exec): Likewise.
1909 (debug_events): Likewise.
1910 (debug_memory): Likewise.
1911 (debug_exceptions): Likewise.
1912 (useshell): Likewise.
1913 * windows-tdep.c (maint_display_all_tib): Likewise.
1914 * xml-support.c (debug_xml): Likewise.
1915
1916 2019-09-17 Mike Gulick <mgulick@mathworks.com>
1917
1918 * source.c (prepare_path_for_appending): New function.
1919 (openp): Make use of new function.
1920 (find_and_open_source): Search for the compilation directory and
1921 source file as a relative path beneath the directory search path.
1922
1923 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1924
1925 * source-cache.c (source_cache::get_line_charpos): Catch
1926 exceptions and return false, this matches the behaviour documented
1927 in the header file.
1928
1929 2019-09-17 Joel Brobecker <brobecker@adacore.com>
1930
1931 * ada-tasks.c (info_task): Remove quoting of the task's name.
1932
1933 2019-09-16 Christian Biesinger <cbiesinger@google.com>
1934
1935 * symfile.c (auto_solib_add): Replace comment with a reference
1936 to the header file.
1937
1938 2019-09-14 Christian Biesinger <cbiesinger@google.com>
1939
1940 * NEWS: Mention that gdb can now be compiled with Python 3
1941 on Windows.
1942
1943 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1944
1945 * maint.c (maint_print_section_data::maint_print_section_data):
1946 Force use of 'float log10 (float)' by casting the argument to
1947 float.
1948
1949 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1950
1951 * maint.c: Add 'cmath' include.
1952 (struct maint_print_section_data): New structure.
1953 (print_section_index): New function.
1954 (print_bfd_section_info): Add header comment, small whitespace
1955 cleanup, and update to call new print_section_index function.
1956 (print_objfile_section_info): Likewise.
1957 (maint_obj_section_from_bfd_section): New function.
1958 (print_bfd_section_info_maybe_relocated): New function.
1959 (maintenance_info_sections): Add header comment, always use
1960 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1961
1962 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1963
1964 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1965 inner scope, add check that the objfile has psymtabs before
1966 checking psymtabs_addrmap.
1967 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1968
1969 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1970
1971 * NEWS: Announce that Ada task names are now shown at more places,
1972 and between quotes (except in info task output).
1973 * gdb/ada-tasks.c (task_to_str): New function.
1974 (display_current_task_id): Call task_to_str.
1975 (task_command_1): Likewise.
1976 (print_ada_task_info): In non-mi mode, Properly align headers and data
1977 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1978
1979 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1980
1981 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1982 prstatus.pr_lwp.pr_info instead of making it up.
1983
1984 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1985
1986 * auto-load.c (auto_load_expand_dir_vars): Update.
1987 * defs.h (gdb_datadir): Change to std::string.
1988 (python_libdir): Likewise.
1989 (relocate_gdb_directory): Change return type to std::string.
1990 * guile/guile.c (gdbscm_data_directory): Update.
1991 (initialize_scheme_side): Update.
1992 * jit.c (jit_reader_dir): Change to std::string.
1993 (jit_reader_load_command): Update.
1994 * main.c (gdb_datadir): Change to std::string.
1995 (python_libdir): Likewise.
1996 (set_gdb_data_directory): Update.
1997 (relocate_path): Change to return std::string.
1998 (relocate_gdb_directory): Change to return std::string.
1999 (relocate_gdbinit_path_maybe_in_datadir): Update.
2000 (captured_main_1): Update.
2001 * python/python.c (do_start_initialization): Update.
2002 * top.c (show_gdb_datadir): Update.
2003 * xml-syscall.c (xml_init_syscalls_info): Update.
2004 (init_syscalls_info): Update.
2005
2006 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2007
2008 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2009 out of get_init_files.
2010 (get_init_files): Update.
2011
2012 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2013
2014 * main.c (get_init_files): Change to use std::string.
2015 (captured_main_1): Update.
2016 (print_gdb_help): Update.
2017
2018 2019-09-11 Ali Tamur <tamur@google.com>
2019
2020 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2021 implementation.
2022
2023 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2024
2025 * dbxread.c (read_dbx_symtab): Update.
2026 * dwarf2read.c (load_partial_dies): Update.
2027 * mdebugread.c (parse_partial_symbols): Update.
2028 (handle_psymbol_enumerators): Update.
2029 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2030 * psymtab.c (add_psymbol_to_bcache): Likewise.
2031 (add_psymbol_to_list): Likewise.
2032 * symtab.c (symbol_set_names): Likewise.
2033 * symtab.h (symbol_set_names): Likewise.
2034 * xcoffread.c (scan_xcoff_symtab): Update.
2035
2036 2019-09-11 Tom Tromey <tom@tromey.com>
2037
2038 * symfile-mem.c (symbol_file_add_from_memory): Use
2039 bfd_set_filename.
2040 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2041 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2042
2043 2019-09-10 Tom Tromey <tromey@adacore.com>
2044
2045 * dwarf-index-write.c (write_psymbols): Extend error message.
2046 (debug_names::insert): Add Ada code.
2047 (debug_names::write_psymbols): Remove Ada check.
2048 (debug_names) <m_string_obstack>: New member.
2049 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2050 (gdb_index_symbol_name_matcher::matches): Remove.
2051 (mapped_index_base::find_name_components_bounds): Add "lang"
2052 parameter.
2053 (mapped_index_base::build_name_components): Also split names
2054 according to Ada syntax.
2055 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2056 type of "match_callback".
2057 (check_match, check_find_bounds_finds)
2058 (dw2_expand_symtabs_matching): Update.
2059 (dw2_debug_names_iterator): Add new constructor.
2060 (dw2_debug_names_map_matching_symbols): New function.
2061 (dw2_debug_names_expand_symtabs_matching): Update.
2062 (dwarf2_debug_names_functions): Use
2063 dw2_debug_names_map_matching_symbols.
2064
2065 2019-09-10 Tom Tromey <tromey@adacore.com>
2066
2067 * dwarf2read.c (dw2_get_file_names_reader): Add the
2068 CU's file name to the results.
2069
2070 2019-09-10 Tom Tromey <tromey@adacore.com>
2071
2072 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2073 map_matching_symbols. Update.
2074 * dwarf2read.c (dw2_map_matching_symbols): Update.
2075 * psymtab.c (match_partial_symbol): Change type; update.
2076 (psym_map_matching_symbols): Likewise.
2077 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2078 type; update.
2079 * symfile.h (struct quick_symbol_functions)
2080 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2081 Remove "match".
2082
2083 2019-09-10 Tom Tromey <tromey@adacore.com>
2084
2085 * psymtab.c (map_block): Remove.
2086 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2087 * symtab.c (iterate_over_symbols_terminated): New function.
2088 * symtab.c (iterate_over_symbols_terminated): Declare.
2089
2090 2019-09-10 Tom Tromey <tromey@adacore.com>
2091
2092 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2093 * language.h (struct language_defn) <la_iterate_over_symbols>:
2094 Return bool.
2095 * symtab.c (iterate_over_symbols): Return bool.
2096 * symtab.h (iterate_over_symbols): Return bool.
2097
2098 2019-09-10 Tom Tromey <tromey@adacore.com>
2099
2100 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2101 (add_nonlocal_symbols): Update.
2102 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2103 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2104 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2105 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2106 Change type of "callback". Remove "data".
2107
2108
2109 2019-09-09 Ali Tamur <tamur@google.com>
2110
2111 * dwarf2read.c (comp_unit_head): Update comment.
2112 (dwarf2_dwo_name): New function declaration.
2113 (dwarf_unit_type_name): New function declaration.
2114 (read_comp_unit_head): Add support for new compilation units,
2115 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2116 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2117 (currently named as "signature") in their header. Also clarify error
2118 messages.
2119 (lookup_dwo_id): New function. Returns the dwo id of the given
2120 compile unit.
2121 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2122 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2123 functions.
2124 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2125 (dwarf2_dwo_name): Get the dwo name if present.
2126 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2127 purposes.
2128
2129 2019-09-09 Tom Tromey <tom@tromey.com>
2130
2131 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2132
2133 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2134
2135 * python/python.c (do_start_initialization): Make progname_copy static,
2136 to avoid a leak report.
2137
2138 2019-09-08 Tom Tromey <tom@tromey.com>
2139
2140 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2141
2142 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2143
2144 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2145 Change type to gdb::optional<block_enum>.
2146 (dw2_symtab_iter_init): Change block_index parameter type
2147 to gdb::optional<block_enum>.
2148 (dw2_lookup_symbol): Change block_index parameter
2149 type to block_enum.c
2150 (dw2_debug_names_lookup_symbol): Likewise.
2151 * psymtab.c (psym_lookup_symbol): Likewise.
2152 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2153 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2154 Likewise.
2155
2156 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2157
2158 * defs.h (relocate_gdb_directory): Change int to bool in
2159 signature and rename flag to relocatable.
2160 * main.c (relocate_path): Likewise.
2161 (relocate_gdb_directory): Likewise.
2162
2163 2019-09-06 Alan Modra <amodra@gmail.com>
2164
2165 * coffread.c (coff_symfile_read): Constify filename variable.
2166 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2167 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2168 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2169 * solib.c (reload_shared_libraries_1): Likewise.
2170 * symfile.c (reread_symbols): Likewise.
2171 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2172 * solib-darwin.c (darwin_bfd_open): Likewise.
2173 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2174
2175 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2176
2177 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2178 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2179
2180 2019-09-03 Tom Tromey <tromey@adacore.com>
2181
2182 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2183 types.
2184 (has_negatives): Unbias a range type bound.
2185 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2186 * gdbtypes.c (operator==): Handle new field.
2187 (create_range_type): Add "bias" parameter.
2188 (create_static_range_type, resolve_dynamic_range): Update.
2189 * gdbtypes.h (struct range_bounds) <bias>: New member.
2190 (create_range_type): Add bias parameter.
2191 * printcmd.c (print_scalar_formatted): Unbias range types.
2192 * value.c (unpack_long): Unbias range types.
2193 (pack_long): Bias range types.
2194
2195 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2196
2197 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2198 probe arguments.
2199
2200 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2201
2202 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2203 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2204 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2205 (compile_probe_arg): Likewise.
2206 * probe.h (get_argument_count): Likewise.
2207 * solib-svr4.c (solib_event_probe_action): Likewise.
2208 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2209
2210 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2211
2212 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2213 code to here...
2214 (svr4_create_solib_event_breakpoints): ...from here.
2215
2216 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2217
2218 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2219 suffix from warning message.
2220
2221 2019-08-30 Tom Tromey <tom@tromey.com>
2222
2223 * tui/tui-winsource.h (struct tui_source_window_base)
2224 <refresh_all>: Don't declare.
2225 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2226 Remove.
2227 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2228 tui_show_locator_content.
2229 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2230 declare.
2231 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2232 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2233 declare.
2234
2235 2019-08-30 Tom Tromey <tom@tromey.com>
2236
2237 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2238
2239 2019-08-30 Tom Tromey <tom@tromey.com>
2240
2241 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2242 Remove unnecessary forward declarations.
2243
2244 2019-08-30 Tom Tromey <tom@tromey.com>
2245
2246 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2247 rerender.
2248 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2249 tui_show_locator_content.
2250
2251 2019-08-30 Tom Tromey <tom@tromey.com>
2252
2253 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2254 (tui_locator_window::rerender): Rewrite using body of previous
2255 tui_show_locator_content.
2256
2257 2019-08-30 Tom Tromey <tom@tromey.com>
2258
2259 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2260 set_locator_fullname>: New methods.
2261 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2262 Rename from tui_set_locator_fullname.
2263 (tui_locator_window::set_locator_info): Rename from
2264 tui_set_locator_info. Return bool.
2265 (tui_update_locator_fullname, tui_show_frame_info): Update.
2266
2267 2019-08-30 Tom Tromey <tom@tromey.com>
2268
2269 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2270
2271 2019-08-30 Tom Tromey <tom@tromey.com>
2272
2273 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2274 call touchwin.
2275
2276 2019-08-30 Tom Tromey <tom@tromey.com>
2277
2278 * tui/tui-wingeneral.c (box_win): Assume win_info and
2279 win_info->handle cannot be NULL.
2280
2281 2019-08-30 Tom Tromey <tom@tromey.com>
2282
2283 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2284 refresh_window>: Declare.
2285 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2286 resize.
2287 (tui_data_item_window::rerender): Rename from
2288 tui_display_register.
2289 (tui_data_item_window::refresh_window): New method.
2290 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2291 no-op.
2292
2293 2019-08-30 Tom Tromey <tom@tromey.com>
2294
2295 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2296 regs_column_count, current_group>: Move later. Now private.
2297 <get_current_group>: New method.
2298 * tui/tui-regs.c (tui_reg_command): Update.
2299 * tui/tui-layout.c (tui_set_layout): Update.
2300
2301 2019-08-30 Tom Tromey <tom@tromey.com>
2302
2303 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2304 (tui_data_window::rerender): Don't call
2305 check_and_display_highlight_if_needed.
2306 (tui_data_window::refresh_all): Remove call to
2307 erase_data_content.
2308
2309 2019-08-30 Tom Tromey <tom@tromey.com>
2310
2311 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2312 (tui_data_window::display_registers_from)
2313 (tui_data_window::display_reg_element_at_line)
2314 (tui_data_window::display_registers_from_line): Remove checks of
2315 "empty".
2316
2317 2019-08-30 Tom Tromey <tom@tromey.com>
2318
2319 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2320 Don't declare.
2321 * tui/tui-regs.c (tui_data_window::show_registers): Call
2322 rerender.
2323 (tui_data_window::rerender): Rename from display_all_data.
2324 (tui_data_window::rerender): Remove old implementation.
2325
2326 2019-08-30 Tom Tromey <tom@tromey.com>
2327
2328 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2329 text.
2330 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2331
2332 2019-08-29 Bernhard Wodok <barto@gmx.net>
2333 Sergio Durigan Junior <sergiodj@redhat.com>
2334
2335 PR win32/24284
2336 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2337
2338 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2339
2340 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2341 when searching for types.
2342
2343 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2344
2345 * f-lang.c (f_language_defn): Use f_print_typedef.
2346 * f-lang.h (f_print_typedef): Declare.
2347 * f-typeprint.c (f_print_typedef): Define.
2348
2349 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2350
2351 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2352
2353 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2354
2355 * cli/cli-utils.c (info_print_options_defs): Delete.
2356 (make_info_print_options_def_group): Delete.
2357 (extract_info_print_options): Delete.
2358 (info_print_command_completer): Delete.
2359 (info_print_args_help): Add extra parameter, and optionally
2360 include text about -n flag.
2361 * cli/cli-utils.h (struct info_print_options): Delete.
2362 (extract_info_print_options): Delete declaration.
2363 (info_print_command_completer): Delete declaration.
2364 (info_print_args_help): Add extra parameter, extend header
2365 comment.
2366 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2367 search_symbols.
2368 * stack.c (struct info_print_options): New type.
2369 (info_print_options_defs): New file scoped variable.
2370 (make_info_print_options_def_group): New static function.
2371 (info_print_command_completer): New static function.
2372 (info_locals_command): Update to use new local functions.
2373 (info_args_command): Likewise.
2374 (_initialize_stack): Add extra parameter to calls to
2375 info_print_args_help.
2376 * symtab.c (search_symbols): Add extra parameter, use this to
2377 possibly excluse non-debug symbols.
2378 (symtab_symbol_info): Add extra parameter, which is passed on to
2379 search_symbols.
2380 (struct info_print_options): New type.
2381 (info_print_options_defs): New file scoped variable.
2382 (make_info_print_options_def_group): New static function.
2383 (info_print_command_completer): New static function.
2384 (info_variables_command): Update to use local functions, and pass
2385 extra parameter through to symtab_symbol_info.
2386 (info_functions_command): Likewise.
2387 (info_types_command): Pass additional argument through to
2388 symtab_symbol_info.
2389 (rbreak_command): Pass extra argument to search_symbols.
2390 (_initialize_symtab): Add extra arguments for calls to
2391 info_print_args_help, and update help text for 'info variables',
2392 'whereis', and 'info functions' commands.
2393 * symtab.h (search_symbols): Add extra argument to declaration.
2394 * NEWS: Mention new flags.
2395
2396 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2397
2398 * symtab.c (lookup_static_symbol): Call the new function (and move
2399 it down to be next to lookup_global_symbol).
2400 (struct global_sym_lookup_data): Add block_enum member and rename to...
2401 (struct global_or_static_sym_lookup_data): ...this.
2402 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2403 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2404 (lookup_symbol_global_or_static_iterator_cb): ...this.
2405 (lookup_global_or_static_symbol): New function.
2406 (lookup_global_symbol): Call new function.
2407
2408 2019-08-26 Tom de Vries <tdevries@suse.de>
2409
2410 PR c++/24852
2411 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2412 when pc_probe.prob == NULL.
2413
2414 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2415
2416 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2417 variable symbol_linkage to symbol_linkage_.
2418
2419 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2420
2421 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2422 represent whether the symbol is static, dynamic, or we don't
2423 know.
2424
2425 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2426
2427 * gdb/rx-tdep.c (rx_register_names): New.
2428 (rx_register_name): Delete.
2429 (rx_psw_type): Delete.
2430 (rx_fpsw_type): Delete.
2431 (rx_register_type): Delete.
2432 (rx_gdbarch_init): Convert target-descriptions.
2433 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2434 * gdb/features/Makefile: Add rx.xml.
2435 * gdb/features/rx.xml: New.
2436 * gdb/features/rx.c: Generated.
2437 * gdb/NEWS: Mention target description support.
2438
2439 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2440
2441 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2442 *slot_ptr.
2443
2444 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2445
2446 * configure.ac: Don't check for 'dlfcn.h' (moved to
2447 gdbsupport/common.m4).
2448 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2449 'gdbsupport/'.
2450 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2451 * compile/compile-c-support.c: Include
2452 'gdbsupport/gdb-dlfcn.h'.
2453 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2454 * gdb-dlfcn.c: Move to...
2455 * gdbsupport/gdb-dlfcn.c: ... here.
2456 * gdb-dlfcn.h: Move to...
2457 * gdbsupport/gdb-dlfcn.h: ... here.
2458
2459 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2460
2461 * nios2-tdep.c (struct reg_value): Improve comments. Make
2462 the offset field signed.
2463
2464 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2465
2466 * python/lib/gdb/__init__.py (_execute_file): New function.
2467 * python/python.c (python_run_simple_file): Call gdb._execute_file
2468 on Windows.
2469
2470 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2471
2472 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2473 all uses as this was never set to anything but a zero value.
2474
2475 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2476
2477 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2478
2479 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2480
2481 * tui/tui-data.h (tui_gen_win_info): Add an =default
2482 move constructor, required by some GCC versions.
2483
2484 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2485
2486 * go32-nat.c (go32_sysinfo): Add hygon_p.
2487
2488 2019-08-20 Tom Tromey <tom@tromey.com>
2489
2490 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2491 line_from_reg_element_no, first_reg_element_no_inline,
2492 display_all_data, delete_data_content_windows,
2493 erase_data_content>: Now private.
2494
2495 2019-08-20 Tom Tromey <tom@tromey.com>
2496
2497 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2498 (tui_unhighlight_win, tui_highlight_win)
2499 (tui_win_info::make_window): Update.
2500 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2501
2502 2019-08-20 Tom Tromey <tom@tromey.com>
2503
2504 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2505 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2506 (MAX_PID_WIDTH): Move to tui-stack.c.
2507 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2508 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2509 (MAX_PID_WIDTH): Move from tui-data.h.
2510
2511 2019-08-20 Tom Tromey <tom@tromey.com>
2512
2513 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2514 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2515 (box_win): Update.
2516 (tui_gen_win_info::make_window): Rename from tui_make_window.
2517 (tui_win_info::make_window): New method.
2518 (tui_gen_win_info::make_visible): Update.
2519 * tui/tui-source.c (tui_source_window::set_contents): Update.
2520 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2521 (tui_data_window::display_registers_from): Update.
2522 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2523 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2524 Declare.
2525 <can_box>: Remove.
2526 <title>: Remove.
2527 (struct tui_win_info) <make_window>: Declare.
2528 <can_box>: Now virtual.
2529 <title>: New member.
2530 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2531 * tui/tui-command.c (tui_cmd_window::resize): Update.
2532
2533 2019-08-20 Tom Tromey <tom@tromey.com>
2534
2535 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2536 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2537 (tui_data_window::check_register_values): Update.
2538
2539 2019-08-20 Tom Tromey <tom@tromey.com>
2540
2541 * tui/tui-regs.h (struct tui_data_window): Use
2542 DISABLE_COPY_AND_ASSIGN.
2543 <regs_content>: Change type, removing unique_ptr.
2544 <tui_data_window>: Add move constructor.
2545 * tui/tui-regs.c (tui_data_window::show_registers)
2546 (tui_data_window::show_register_group)
2547 (tui_data_window::display_registers_from)
2548 (tui_data_window::display_registers_from)
2549 (tui_data_window::first_data_item_displayed)
2550 (tui_data_window::delete_data_content_windows)
2551 (tui_data_window::rerender, tui_data_window::refresh_window)
2552 (tui_data_window::check_register_values): Update.
2553
2554 2019-08-20 Tom Tromey <tom@tromey.com>
2555
2556 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2557 show_register_group>: Declare.
2558 (tui_show_register_group): Don't declare.
2559 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2560 tui_show_registers.
2561 (tui_data_window::show_register_group): Rename from
2562 tui_show_register_group.
2563 (tui_data_window::check_register_values, tui_reg_command):
2564 Update.
2565 * tui/tui-layout.c (tui_set_layout): Update.
2566
2567 2019-08-20 Tom Tromey <tom@tromey.com>
2568
2569 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2570 Declare.
2571 (tui_check_register_values): Don't declare.
2572 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2573 from tui_check_register_values.
2574 * tui/tui-hooks.c (tui_register_changed): Update.
2575
2576 2019-08-20 Tom Tromey <tom@tromey.com>
2577
2578 * tui/tui-regs.c (tui_reg_layout): Move later.
2579 (tui_show_registers): Don't enable TUI mode or change layout.
2580
2581 2019-08-20 Tom Tromey <tom@tromey.com>
2582
2583 * tui/tui-regs.h (struct tui_data_item_window)
2584 <~tui_data_item_window>: Remove.
2585 <content>: Now a unique_xmalloc_ptr.
2586 * tui/tui-regs.c (tui_register_format): Return a
2587 unique_xmalloc_ptr.
2588 (tui_get_register): Update.
2589 (~tui_data_item_window): Remove.
2590 (tui_data_window::display_registers_from, tui_display_register):
2591 Update.
2592 * tui/tui-io.h (tui_expand_tabs): Update.
2593 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2594 Remove "col" parameter.
2595
2596 2019-08-20 Tom Tromey <tom@tromey.com>
2597
2598 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2599 field.
2600 * tui/tui-regs.c (~tui_data_item_window): Update.
2601
2602 2019-08-20 Tom Tromey <tom@tromey.com>
2603
2604 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2605 earlier.
2606
2607 2019-08-20 Tom Tromey <tom@tromey.com>
2608
2609 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2610
2611 2019-08-20 Tom Tromey <tom@tromey.com>
2612
2613 * tui/tui-source.h (struct tui_source_window): Update.
2614 * tui/tui-regs.c (tui_show_registers): Update.
2615 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2616 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2617 (NO_REGS_STRING): Remove defines.
2618
2619 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
2620
2621 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2622 unnecessary thread walk if remote doesn't support the packet.
2623
2624 2019-08-19 Tom Tromey <tromey@adacore.com>
2625
2626 * python/py-value.c (value_has_field): Fix indentation.
2627
2628 2019-08-19 Tom Tromey <tromey@adacore.com>
2629
2630 * printcmd.c (do_one_display, info_display_command): Update.
2631 * block.h (contained_in): Return bool. Add allow_nested
2632 parameter.
2633 * block.c (contained_in): Return bool. Add allow_nested
2634 parameter.
2635
2636 2019-08-19 Tom Tromey <tom@tromey.com>
2637
2638 * configure: Rebuild.
2639 * configure.ac: Disallow the combination of -static-libstdc++ and
2640 source highlight.
2641 * source-cache.c (get_language_name): Handle rust.
2642 (source_cache::get_source_lines): Ignore highlighting exceptions.
2643
2644 2019-08-16 Tom Tromey <tom@tromey.com>
2645
2646 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2647 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2648 (struct tui_source_window_base) <make_visible, refresh_window,
2649 resize>: Remove methods.
2650 <execution_info>: Remove field.
2651 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2652 (tui_show_source_line, tui_source_window_base)
2653 (~tui_source_window_base): Update.
2654 (tui_source_window_base::resize)
2655 (tui_source_window_base::make_visible)
2656 (tui_source_window_base::refresh_window): Remove.
2657 (tui_source_window_base::update_exec_info): Update.
2658 * tui/tui-source.c (tui_source_window::set_contents): Update.
2659 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2660
2661 2019-08-16 Tom Tromey <tom@tromey.com>
2662
2663 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2664 deprecated_query_hook.
2665
2666 2019-08-16 Tom Tromey <tom@tromey.com>
2667
2668 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2669 (tui_update_source_windows_with_line): Update.
2670 * tui/tui-source.h (struct tui_source_window)
2671 <show_symtab_source>: Declare.
2672 (tui_show_symtab_source): Don't declare.
2673 * tui/tui-source.c (tui_show_symtab_source): Rename from
2674 tui_show_symtab_source.
2675
2676 2019-08-16 Tom Tromey <tom@tromey.com>
2677
2678 * tui/tui-winsource.h (struct tui_source_window_base)
2679 <set_contents>: Declare.
2680 * tui/tui-winsource.c
2681 (tui_source_window_base::update_source_window_as_is): Update.
2682 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2683 Declare.
2684 (tui_set_source_content): Don't declare.
2685 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2686 tui_set_source_content.
2687 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2688 Declare.
2689 (tui_set_disassem_content): Don't declare.
2690 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2691 tui_set_disassem_content.
2692
2693 2019-08-16 Tom Tromey <tom@tromey.com>
2694
2695 * tui/tui-winsource.h (struct tui_source_window_base)
2696 <update_breakpoint_info>: Declare.
2697 (tui_update_breakpoint_info): Don't declare.
2698 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2699 (tui_update_all_breakpoint_info): Update.
2700 (tui_source_window_base::update_breakpoint_info): Rename from
2701 tui_update_breakpoint_info.
2702 (tui_source_window_base::update_exec_info): Update.
2703
2704 2019-08-16 Tom Tromey <tom@tromey.com>
2705
2706 * tui/tui-winsource.h (struct tui_source_window_base)
2707 <update_source_window>: Declare.
2708 (tui_update_source_window): Don't declare.
2709 * tui/tui-winsource.c
2710 (tui_source_window_base::update_source_window): Rename from
2711 tui_update_source_window.
2712 (tui_source_window_base::rerender): Update.
2713 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2714 * tui/tui-disasm.c (tui_show_disassem)
2715 (tui_show_disassem_and_update_source)
2716 (tui_disasm_window::maybe_update): Update.
2717
2718 2019-08-16 Tom Tromey <tom@tromey.com>
2719
2720 * tui/tui-winsource.h (struct tui_source_window_base)
2721 <update_source_window_as_is>: Declare.
2722 (tui_update_source_window_as_is): Don't declare.
2723 * tui/tui-winsource.c (tui_update_source_window): Update
2724 (tui_source_window_base::update_source_window_as_is): Rename from
2725 tui_update_source_window_as_is.
2726 (tui_source_window_base::refill): Update.
2727 * tui/tui-source.c (tui_show_symtab_source): Update.
2728 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2729 Update.
2730
2731 2019-08-16 Tom Tromey <tom@tromey.com>
2732
2733 * tui/tui-winsource.h (tui_update_source_window)
2734 (tui_update_source_window_as_is): Remove "noerror" parameter.
2735 * tui/tui-winsource.c (tui_update_source_window)
2736 (tui_update_source_window_as_is): Remove "noerror" parameter.
2737 (tui_update_source_windows_with_addr)
2738 (tui_update_source_windows_with_line)
2739 (tui_source_window_base::rerender)
2740 (tui_source_window_base::refill): Update.
2741 * tui/tui-source.h (tui_set_source_content)
2742 (tui_show_symtab_source): Remove "noerror" parameter.
2743 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2744 parameter.
2745 (tui_show_symtab_source): Likewise.
2746 (tui_source_window::maybe_update): Update.
2747 * tui/tui-disasm.c (tui_show_disassem)
2748 (tui_show_disassem_and_update_source)
2749 (tui_disasm_window::do_scroll_vertical)
2750 (tui_disasm_window::maybe_update): Update.
2751
2752 2019-08-16 Tom Tromey <tom@tromey.com>
2753
2754 * tui/tui.c (tui_is_window_visible): Update.
2755 * tui/tui-wingeneral.c (tui_make_window)
2756 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2757 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2758 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2759 (tui_set_win_height_command, parse_scrolling_args): Update.
2760 * tui/tui-source.c (tui_source_window::style_changed): Update.
2761 * tui/tui-regs.c (tui_show_registers)
2762 (tui_data_window::first_data_item_displayed)
2763 (tui_data_window::delete_data_content_windows)
2764 (tui_check_register_values, tui_reg_command): Update.
2765 * tui/tui-disasm.c (tui_show_disassem): Update.
2766 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2767 method.
2768 <is_visible>: Remove field.
2769 * tui/tui-data.c (tui_next_win, tui_prev_win)
2770 (tui_delete_invisible_windows): Update.
2771
2772 2019-08-16 Tom Tromey <tom@tromey.com>
2773
2774 * tui/tui-winsource.h (struct tui_source_window_base)
2775 <m_has_locator>: Remove.
2776 * tui/tui-layout.c (show_source_disasm_command, show_data)
2777 (show_source_or_disasm_and_command): Update.
2778
2779 2019-08-16 Alan Hayward <alan.hayward@arm.com>
2780
2781 * NEWS (Other MI changes): New subsection.
2782 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2783 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2784 * arch-utils.c (default_get_pc_address_flags): New function.
2785 * arch-utils.h (default_get_pc_address_flags): New declaration.
2786 * gdbarch.sh: Add get_pc_address_flags.
2787 * gdbarch.c: Regenerate.
2788 * gdbarch.h: Likewise.
2789 * stack.c (print_pc): New function.
2790 (print_frame_info) (print_frame): Call print_pc.
2791
2792 2019-08-16 Tom de Vries <tdevries@suse.de>
2793
2794 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2795 print_objfile_section_info.
2796
2797 2019-08-15 Tom Tromey <tom@tromey.com>
2798
2799 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2800 calling update_cmdwin_start_line.
2801 * tui/tui-winsource.h (struct tui_source_window_base)
2802 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2803 <rerender>: Declare.
2804 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2805 Call rerender.
2806 (tui_source_window_base::set_new_height): Remove.
2807 (tui_source_window_base::rerender): Rename from
2808 do_make_visible_with_new_height.
2809 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2810 resize method.
2811 (tui_win_info::make_invisible_and_set_new_height)
2812 (tui_win_info::make_visible_with_new_height): Remove.
2813 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2814 Declare.
2815 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2816 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2817 do_make_visible_with_new_height>: Don't declare.
2818 <rerender>: Declare.
2819 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2820 set_new_height.
2821 (tui_data_window::do_make_visible_with_new_height): Remove.
2822 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2823 call tui_show_locator_content.
2824 (tui_gen_win_info::resize): Call rerender.
2825 (show_source_or_disasm_and_command): Don't call
2826 tui_show_locator_content.
2827 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2828 method.
2829 (struct tui_win_info) <rerender>: Declare.
2830 <set_new_height, make_invisible_and_set_new_height,
2831 make_visible_with_new_height>: Don't declare.
2832 * tui/tui-data.c (tui_win_list::rerender): New method.
2833 * tui/tui-command.h (struct tui_cmd_window)
2834 <do_make_visible_with_new_height>: Don't declare.
2835 * tui/tui-command.c
2836 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2837
2838 2019-08-15 Tom Tromey <tromey@adacore.com>
2839
2840 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2841 * ada-lang.c (ada_enum_name): Likewise.
2842
2843 2019-08-15 Christian Biesinger <cbiesinger@google.com>
2844
2845 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2846 leading underscore.
2847 (GdbOutputErrorFile): Likewise.
2848 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2849 accordingly.
2850 (execute_unwinders): Rename to have a leading underscore.
2851 (auto_load_packages): Likewise.
2852 (global scope): Adjust call to auto_load_packages accordingly.
2853 (GdbSetPythonDirectory): Likewise.
2854 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2855 instead of execute_unwinders.
2856
2857 2019-08-15 Tom Tromey <tom@tromey.com>
2858
2859 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2860 (show_data): Don't change window visibility.
2861 (tui_gen_win_info::resize): Remove special case for command
2862 window. Use wresize, when available.
2863 (show_source_or_disasm_and_command): Don't change window
2864 visibility.
2865 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2866 <make_visible>: New method.
2867 * tui/tui-command.c (tui_cmd_window::resize): New method.
2868
2869 2019-08-15 Tom Tromey <tom@tromey.com>
2870
2871 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2872 (struct tui_source_windows): New.
2873 * tui/tui-winsource.c (tui_display_main): Update.
2874 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2875 (new_height_ok, parse_scrolling_args): Update.
2876 * tui/tui-layout.c (show_layout, show_data): Update.
2877 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2878 (tui_add_to_source_windows): Don't declare.
2879 * tui/tui-data.c (source_windows, tui_source_windows)
2880 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2881
2882 2019-08-15 Tom Tromey <tom@tromey.com>
2883
2884 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2885 Rename from reset.
2886 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2887 * tui/tui-layout.c (show_source_disasm_command, show_data):
2888 Update.
2889 (tui_gen_win_info::resize): Rename.
2890 (show_source_or_disasm_and_command): Update.
2891 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2892 reset.
2893
2894 2019-08-15 Tom Tromey <tom@tromey.com>
2895
2896 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2897 * tui/tui-interp.c (tui_interp::init): Don't call
2898 tui_initialize_static_data.
2899 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2900
2901 2019-08-15 Tom Tromey <tom@tromey.com>
2902
2903 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2904 examine tui_win_list.
2905
2906 2019-08-15 Tom Tromey <tom@tromey.com>
2907
2908 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2909 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2910 tui_clear_source_content.
2911 (tui_clear_source_content): Remove.
2912 (tui_source_window_base::do_erase_source_content): Hoist call to
2913 content.clear().
2914 * tui/tui-stack.c (tui_show_frame_info): Don't call
2915 tui_clear_source_content.
2916
2917 2019-08-15 Tom Tromey <tom@tromey.com>
2918
2919 * tui/tui-winsource.h (struct tui_source_window_base)
2920 <do_erase_source_content>: New method.
2921 <erase_source_content>: New method.
2922 (tui_erase_source_content): Don't declare.
2923 * tui/tui-winsource.c (tui_clear_source_content): Update.
2924 (tui_source_window_base::do_erase_source_content): Rename from
2925 tui_erase_source_content.
2926 (tui_source_window_base::show_source_content): Update.
2927 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2928 * tui/tui-source.h (struct tui_source_window)
2929 <erase_source_content>: New method.
2930 * tui/tui-disasm.h (struct tui_disasm_window)
2931 <erase_source_content>: New method.
2932
2933 2019-08-15 Tom Tromey <tom@tromey.com>
2934
2935 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2936 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2937 constructor.
2938 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2939 * tui/tui-source.c (tui_set_source_content): Update.
2940 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2941
2942 2019-08-15 Tom Tromey <tom@tromey.com>
2943
2944 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2945 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2946 tui-source.c.
2947 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2948 Declare.
2949 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2950 method.
2951 (tui_source_window::maybe_update): Update.
2952
2953 2019-08-15 Tom Tromey <tom@tromey.com>
2954
2955 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2956 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2957 tui-disasm.c.
2958 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2959 Declare.
2960 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2961 method.
2962 (tui_disasm_window::maybe_update): Update.
2963
2964 2019-08-15 Tom Tromey <tom@tromey.com>
2965
2966 * tui/tui-winsource.h (struct tui_source_window_base)
2967 <maybe_update>: Declare.
2968 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2969 method.
2970 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2971 Declare.
2972 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2973 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2974 Declare.
2975 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2976
2977 2019-08-15 Tom Tromey <tom@tromey.com>
2978
2979 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2980
2981 2019-08-15 Tom Tromey <tom@tromey.com>
2982
2983 * tui/tui-wingeneral.c: Include tui-stack.h.
2984 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2985 (struct tui_locator_window): Move from tui-data.h.
2986 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2987 (tui_initialize_static_data): Move from tui-data.c.
2988 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2989 (struct tui_locator_window): Move to tui-stack.c.
2990 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2991 (tui_initialize_static_data): Move to tui-stack.c.
2992
2993 2019-08-15 Tom Tromey <tom@tromey.com>
2994
2995 * tui/tui-layout.c (show_source_disasm_command)
2996 (show_source_or_disasm_and_command): Use make_visible method, not
2997 tui_make_window.
2998 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2999 Remove.
3000
3001 2019-08-15 Tom Tromey <tom@tromey.com>
3002
3003 * tui/tui-wingeneral.h (tui_make_window): Update.
3004 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3005 parameter.
3006 (tui_gen_win_info::make_visible): Update.
3007 * tui/tui-regs.c (tui_data_window::display_registers_from):
3008 Update.
3009 * tui/tui-layout.c (show_source_disasm_command)
3010 (show_source_or_disasm_and_command): Update.
3011 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3012 (enum tui_box): Remove.
3013 (struct tui_win_info) <can_box>: New method.
3014 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3015 method.
3016
3017 2019-08-15 Tom de Vries <tdevries@suse.de>
3018
3019 * linux-nat-trad.c: Include gdbarch.h.
3020
3021 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3022
3023 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3024 register sizes.
3025
3026 2019-08-14 Tom Tromey <tromey@adacore.com>
3027
3028 * darwin-nat.c: Include gdbarch.h.
3029 * darwin-nat-info.c: Include gdbarch.h.
3030
3031 2019-08-13 Tom Tromey <tom@tromey.com>
3032
3033 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3034 Remove.
3035 * tui/tui-data.c (tui_initialize_static_data): Update.
3036
3037 2019-08-13 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui-winsource.h (struct tui_exec_info_window)
3040 <~tui_exec_info_window, maybe_allocate_content, get_content,
3041 m_content>: Remove.
3042 (struct tui_source_window_base) <set_exec_info_content,
3043 show_exec_info_content>: Don't declare.
3044 * tui/tui-winsource.c
3045 (tui_exec_info_window::maybe_allocate_content): Remove.
3046 (tui_source_window_base::update_exec_info): Rename from
3047 set_exec_info_content.
3048 (tui_source_window_base::show_exec_info_content)
3049 (tui_source_window_base::update_exec_info): Remove.
3050
3051 2019-08-13 Tom Tromey <tom@tromey.com>
3052
3053 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3054 declare.
3055 * tui/tui-winsource.c (tui_update_source_window_as_is)
3056 (tui_update_source_windows_with_addr, tui_erase_source_content):
3057 Update.
3058 (tui_clear_exec_info_content): Remove.
3059
3060 2019-08-13 Tom Tromey <tom@tromey.com>
3061
3062 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3063 declare.
3064 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3065 call tui_erase_exec_info_content.
3066 (tui_clear_exec_info_content): Rename from
3067 tui_erase_exec_info_content.
3068 (tui_clear_exec_info_content): Delete.
3069
3070 2019-08-13 Tom Tromey <tom@tromey.com>
3071
3072 * tui/tui-winsource.h (struct tui_source_window_base)
3073 <show_exec_info_content>: Declare.
3074 (tui_show_exec_info_content): Don't declare.
3075 * tui/tui-winsource.c
3076 (tui_source_window_base::show_exec_info_content): Rename from
3077 tui_show_exec_info_content.
3078 (tui_source_window_base::update_exec_info): Update.
3079
3080 2019-08-13 Tom Tromey <tom@tromey.com>
3081
3082 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3083 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3084 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3085 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3086 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3087 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3088 ... here.
3089
3090 2019-08-13 Tom Tromey <tom@tromey.com>
3091
3092 * tui/tui-winsource.h (struct tui_source_window_base)
3093 <update_exec_info>: Declare.
3094 (tui_update_exec_info): Don't declare.
3095 * tui/tui-winsource.c (tui_update_source_window_as_is)
3096 (tui_source_window_base::refresh_all)
3097 (tui_update_all_breakpoint_info): Update.
3098 (tui_source_window_base::update_exec_info): Rename from
3099 tui_update_exec_info.
3100 * tui/tui-stack.c (tui_show_frame_info): Update.
3101
3102 2019-08-13 Tom Tromey <tom@tromey.com>
3103
3104 * tui/tui-winsource.h (struct tui_source_window_base)
3105 <set_exec_info_content>: Declare.
3106 (tui_set_exec_info_content): Don't declare.
3107 * tui/tui-winsource.c
3108 (tui_source_window_base::set_exec_info_content): Rename from
3109 tui_set_exec_info_content.
3110 (tui_update_exec_info): Update.
3111
3112 2019-08-13 Tom Tromey <tom@tromey.com>
3113
3114 * tui/tui-winsource.h (struct tui_source_window_base)
3115 <show_source_content>: Declare.
3116 (tui_show_source_content): Don't declare.
3117 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3118 (tui_source_window_base::show_source_content): Rename from
3119 tui_show_source_content.
3120 (tui_source_window_base::refresh_all): Update.
3121 * tui/tui-layout.c (show_source_disasm_command)
3122 (show_source_or_disasm_and_command): Update.
3123
3124 2019-08-13 Tom Tromey <tom@tromey.com>
3125
3126 * tui/tui-winsource.c (tui_erase_source_content)
3127 (tui_show_source_content, tui_source_window_base::refresh_all):
3128 Update.
3129 * tui/tui-wingeneral.h
3130 (tui_check_and_display_highlight_if_needed): Don't declare.
3131 * tui/tui-wingeneral.c
3132 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3133 check_and_display_highlight_if_needed.
3134 * tui/tui-win.c (tui_rehighlight_all)
3135 (tui_win_info::make_visible_with_new_height): Update.
3136 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3137 (tui_data_window::erase_data_content)
3138 (tui_data_window::display_all_data): Update.
3139 * tui/tui-data.h (struct tui_win_info)
3140 <check_and_display_highlight_if_needed>: Declare.
3141
3142 2019-08-13 Tom Tromey <tom@tromey.com>
3143
3144 * tui/tui-win.c (tui_resize_all): Call
3145 tui_delete_invisible_windows.
3146 * tui/tui-layout.c (show_layout): Call
3147 tui_delete_invisible_windows.
3148 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3149 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3150
3151 2019-08-13 Tom Tromey <tom@tromey.com>
3152
3153 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3154 tui_add_win_to_layout.
3155
3156 2019-08-13 Tom Tromey <tom@tromey.com>
3157
3158 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3159 * tui/tui-layout.c (tui_default_win_height): Now static.
3160
3161 2019-08-13 Tom Tromey <tom@tromey.com>
3162
3163 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3164 single switch.
3165 (show_source_disasm_command, show_source_or_disasm_and_command):
3166 Don't check current layout.
3167
3168 2019-08-13 Tom Tromey <tom@tromey.com>
3169
3170 * tui/tui-wingeneral.c (make_all_visible): Remove.
3171 (tui_make_all_invisible): Simplify.
3172 * tui/tui-layout.c (tui_make_all_invisible): Move from
3173 tui-wingeneral.c; simplify.
3174 (show_layout): Hoist call to tui_make_all_invisible.
3175 (show_data): Don't call tui_make_all_invisible.
3176
3177 2019-08-13 Tom Tromey <tom@tromey.com>
3178
3179 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3180 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3181
3182 2019-08-13 Tom Tromey <tom@tromey.com>
3183
3184 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3185 tui-data.c.
3186 (show_source_disasm_command, show_data)
3187 (show_source_or_disasm_and_command): Don't use
3188 tui_set_current_layout_to.
3189 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3190 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3191 tui-layout.c.
3192 (tui_set_current_layout_to): Remove.
3193
3194 2019-08-13 Tom Tromey <tom@tromey.com>
3195
3196 * tui/tui-layout.c (tui_set_layout): Update.
3197 * tui/tui-data.h (struct tui_layout_def): Remove.
3198 (tui_layout_def): Don't declare.
3199 * tui/tui-data.c (layout_def): Remove.
3200 (tui_layout_def): Remove.
3201
3202 2019-08-13 Tom Tromey <tom@tromey.com>
3203
3204 * tui/tui-winsource.h (struct tui_source_window_base)
3205 <clear_detail>: No longer "override".
3206 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3207 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3208 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3209 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3210 Remove.
3211 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3212
3213 2019-08-13 Tom Tromey <tromey@adacore.com>
3214
3215 * tracepoint.c: Don't include readline.h or history.h.
3216
3217 2019-08-12 Tom Tromey <tom@tromey.com>
3218
3219 * configure: Rebuild.
3220 * configure.ac: Check for readline 7.
3221 * NEWS: Mention readline 7 requirement.
3222 * README: Update.
3223
3224 2019-08-12 Tom Tromey <tom@tromey.com>
3225
3226 * mingw-hdep.c (gdb_select): Remove readline hack.
3227
3228 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3229
3230 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3231 when the function fails.
3232
3233 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3234
3235 * s390-tdep.c (s390_type_align): New function.
3236 (s390_gdbarch_init): Set it as type_align gdbarch method.
3237
3238 2019-08-09 Tom de Vries <tdevries@suse.de>
3239
3240 PR gdb/24591
3241 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3242 pc_low with relocation offset.
3243
3244 2019-08-07 Tom Tromey <tromey@adacore.com>
3245
3246 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3247 (print_frame_args): Update.
3248 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3249 Update.
3250 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3251 * frame.h (struct frame_arg): Add initializers.
3252 <error>: Now a unique_xmalloc_ptr.
3253
3254 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3255
3256 * NEWS: Expand the Pointer Authentication entry.
3257 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3258 (aarch64_frame_unmask_lr): ... to this.
3259 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3260 Call aarch64_frame_unmask_lr.
3261 * frame.c (struct frame_info): Add "masked" variable.
3262 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3263 (fprint_frame): Check for masked pc.
3264 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3265 declarations.
3266 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3267 * stack.c (print_frame): Check for masked pc.
3268
3269 2019-08-06 Tom Tromey <tom@tromey.com>
3270
3271 * stabsread.c (patch_block_stabs, read_one_struct_field)
3272 (read_enum_type): Use obstack_strndup.
3273 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3274 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3275 * dwarf2read.c (guess_full_die_structure_name)
3276 (anonymous_struct_prefix): Use obstack_strndup.
3277 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3278 * c-exp.y (yylex): Use obstack_strndup.
3279 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3280 (write_var_or_type): Use obstack_strndup.
3281
3282 2019-08-06 Tom Tromey <tom@tromey.com>
3283
3284 * symfile.c (reread_symbols): Use obstack_strdup.
3285 * stabsread.c (read_type): Use obstack_strdup.
3286 * gdb_obstack.h (obstack_strdup): New overload.
3287 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3288 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3289 (dwarf2_canonicalize_name): Use obstack_strdup.
3290 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3291 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3292 Use obstack_strdup.
3293
3294 2019-08-06 Tom Tromey <tom@tromey.com>
3295
3296 * gdb_obstack.h (obstack_strdup): Define.
3297 * gdb_obstack.c (obstack_strdup): Don't define.
3298
3299 2019-08-06 Tom Tromey <tom@tromey.com>
3300
3301 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3302 obstack_strdup.
3303 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3304 obstack_strdup.
3305 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3306 * stabsread.c (common_block_start): Use obstack_strdup.
3307 * objfiles.c (set_objfile_main_name, objfile): Use
3308 obstack_strdup.
3309 * namespace.c (add_using_directive): Use obstack_strdup.
3310 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3311 * jit.c (finalize_symtab): Use obstack_strdup.
3312 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3313 (guess_partial_die_structure_name, partial_die_info::fixup)
3314 (dwarf2_name): Use obstack_strdup.
3315 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3316 obstack_strdup.
3317 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3318 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3319 obstack_strdup.
3320 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3321
3322 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3323
3324 * unittests/help-doc-selftests.c: New file.
3325 * Makefile.in: Add the new file.
3326
3327 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3328
3329 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3330 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3331 the full first line, except when FOR_VALUE_PREFIX. In this case,
3332 the trailing '.' is not output, and the first character is uppercased.
3333 (print_help_for_command): Update call to print_doc_line.
3334 (print_doc_of_command): Likewise.
3335 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3336 * cli/cli-option.c (append_indented_doc): Do not append newline.
3337 (build_help_option): Append newline after first appended_indented_doc
3338 only if a second call is done.
3339 (build_help): Append 2 new lines before each option, except the first
3340 one.
3341 * compile/compile.c (_initialize_compile): Add new lines after
3342 %OPTIONS%, when not at the end of the help.
3343 Change help doc or code
3344 producing the help doc to respect the invariants.
3345 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3346 Also removed the new line after 'Options:', as all other commands
3347 do not put an empty line between 'Options:' and the first option.
3348 * printcmd.c (_initialize_printcmd): Likewise.
3349 * stack.c (_initialize_stack): Likewise.
3350 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3351 incorrectly telling COMMAND is optional.
3352 * ada-lang.c (_initialize_ada_language): Change help doc or code
3353 producing the help doc to respect the invariants.
3354 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3355 * breakpoint.c (_initialize_breakpoint): Likewise.
3356 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3357 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3358 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3359 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3360 _initialize_cli_style): Likewise.
3361 * corelow.c (core_target_info): Likewise.
3362 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3363 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3364 * filesystem.c (_initialize_filesystem): Likewise.
3365 * frame.c (_initialize_frame): Likewise.
3366 * gnu-nat.c (add_task_commands): Likewise.
3367 * infcall.c (_initialize_infcall): Likewise.
3368 * infcmd.c (_initialize_infcmd): Likewise.
3369 * interps.c (_initialize_interpreter): Likewise.
3370 * language.c (_initialize_language): Likewise.
3371 * linux-fork.c (_initialize_linux_fork): Likewise.
3372 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3373 * maint.c (_initialize_maint_cmds): Likewise.
3374 * memattr.c (_initialize_mem): Likewise.
3375 * printcmd.c (_initialize_printcmd): Likewise.
3376 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3377 _RegEx): Likewise.
3378 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3379 * record-btrace.c (_initialize_record_btrace): Likewise.
3380 * record-full.c (_initialize_record_full): Likewise.
3381 * record.c (_initialize_record): Likewise.
3382 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3383 * regcache.c (_initialize_regcache): Likewise.
3384 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3385 _initialize_remote): Likewise.
3386 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3387 * serial.c (_initialize_serial): Likewise.
3388 * skip.c (_initialize_step_skip): Likewise.
3389 * source.c (_initialize_source): Likewise.
3390 * stack.c (_initialize_stack): Likewise.
3391 * symfile.c (_initialize_symfile): Likewise.
3392 * symtab.c (_initialize_symtab): Likewise.
3393 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3394 * top.c (init_main): Likewise.
3395 * tracefile-tfile.c (tfile_target_info): Likewise.
3396 * tracepoint.c (_initialize_tracepoint): Likewise.
3397 * tui/tui-win.c (_initialize_tui_win): Likewise.
3398 * utils.c (add_internal_problem_command): Likewise.
3399 * valprint.c (value_print_option_defs): Likewise.
3400
3401 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3402
3403 PR build/24886
3404 * configure.ac: Drop enable-libmcheck support.
3405 * configure, config.in: Rebuild.
3406 * libmcheck.m4: Remove.
3407 * acinclude.m4: Don't include it.
3408 * Makefile.in: Don't distribute it.
3409 * top.c (print_gdb_configuration): Don't mention it.
3410
3411 2019-08-06 Tom Tromey <tom@tromey.com>
3412
3413 * utils.c (set_output_style): Sometimes pass stream to
3414 emit_style_escape.
3415 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3416 * record-btrace.c (btrace_insn_history): Update.
3417 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3418 method.
3419 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3420 Update initializers.
3421 <m_uiout>: New field.
3422 <m_di>: Move lower.
3423 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3424 Remove "uiout" parameter.
3425 (dump_insns): Update.
3426 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3427 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3428
3429 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3430
3431 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3432 (error_in_psymtab_expansion): Likewise.
3433 (lookup_symbol_via_quick_fns): Likewise.
3434 (basic_lookup_transparent_type_quick): Likewise.
3435 (basic_lookup_transparent_type_1): Likewise.
3436
3437 2019-08-06 Tom Tromey <tromey@adacore.com>
3438
3439 * source.c (last_source_error): Now bool.
3440 (print_source_lines_base): Make "noprint" bool. Only open
3441 source file when last_source_visited changes.
3442
3443 2019-08-06 Tom Tromey <tromey@adacore.com>
3444
3445 * annotate.c (annotate_source_line): Use g_source_cache.
3446 * source-cache.c (source_cache::get_plain_source_lines): Change
3447 parameters. Populate m_offset_cache.
3448 (source_cache::ensure): New method.
3449 (source_cache::get_line_charpos): New method.
3450 (extract_lines): Move lower. Change parameters.
3451 (source_cache::get_source_lines): Move lower.
3452 * source-cache.h (class source_cache): Update comment.
3453 <get_line_charpos>: New method.
3454 <get_source_lines>: Update comment.
3455 <clear>: Clear m_offset_cache.
3456 <get_plain_source_lines>: Change parameters.
3457 <ensure>: New method
3458 <m_offset_cache>: New member.
3459 * source.c (forget_cached_source_info_for_objfile): Update.
3460 (info_source_command): Use g_source_cache.
3461 (find_source_lines, open_source_file_with_line_charpos): Remove.
3462 (print_source_lines_base, search_command_helper): Use g_source_cache.
3463 * source.h (open_source_file_with_line_charpos): Don't declare.
3464 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3465 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3466 Use g_source_cache.
3467
3468 2019-08-06 Tom Tromey <tromey@adacore.com>
3469
3470 * source-cache.c (source_cache::get_plain_source_lines):
3471 Remove "first_line" and "last_line" parameters.
3472 (source_cache::get_source_lines): Cache plain text.
3473 * source-cache.h (class source_cache)
3474 <get_plain_source_lines>: Update.
3475
3476 2019-08-06 Tom Tromey <tromey@adacore.com>
3477
3478 * source-cache.c (extract_lines): No longer a method.
3479 Changed type of parameter. Include final newline.
3480 (selftests::extract_lines_test): New function.
3481 (_initialize_source_cache): Likewise.
3482 * source-cache.h (class source_cache)
3483 <extract_lines>: Don't declare.
3484
3485 2019-08-06 Tom Tromey <tromey@adacore.com>
3486
3487 * breakpoint.c (init_breakpoint_sal): Update.
3488 (breakpoint): Update.
3489 * breakpoint.h (struct breakpoint) <filter>: Now a
3490 unique_xmalloc_ptr.
3491
3492 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3493
3494 * NEWS: Mention dictionary access on blocks.
3495 * python/py-block.c (blpy_getitem): New function.
3496 (block_object_as_mapping): New struct.
3497 (block_object_type): Use new struct for tp_as_mapping field.
3498
3499 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3500
3501 * objfiles.h (objfile): Add a comment describing partial symbols.
3502
3503 2019-08-05 Tom Tromey <tromey@adacore.com>
3504
3505 * compile/compile.c (_initialize_compile): Use _(), not N_().
3506 * thread.c (_initialize_thread): Use _(), not N_().
3507 * stack.c (_initialize_stack): Use _(), not N_().
3508 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3509
3510 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3511
3512 * dwarf2read.c (struct dw2_symtab_iterator):
3513 <want_specific_block>: Remove.
3514 <block_index>: Change type to gdb::optional.
3515 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3516 change type of BLOCK_INDEX parameter to gdb::optional.
3517 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3518 (dw2_lookup_symbol): Don't pass argument for
3519 WANT_SPECIFIC_BLOCK.
3520 (dw2_expand_symtabs_for_function): Don't pass argument for
3521 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3522 (class dw2_debug_names_iterator)
3523 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3524 parameter, change BLOCK_INDEX type to gdb::optional.
3525 <m_want_specific_block>: Remove.
3526 <m_block_index>: Change type to gdb::optional.
3527 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3528 gdb::optional. Re-write in function of gdb::optional.
3529 (dw2_debug_names_lookup_symbol): Don't pass argument for
3530 WANT_SPECIFIC_BLOCK.
3531 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3532 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3533 BLOCK_INDEX.
3534
3535 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3536
3537 * NEWS: Mention changes to "info sources" command.
3538
3539 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3540
3541 * symtab.c (filename_partial_match_opts): New struct type.
3542 (struct output_source_filename_data): New members
3543 regexp, c_regexp, partial_match.
3544 (output_source_filename): Use new members to decide to print file.
3545 (info_sources_option_defs): New variable.
3546 (make_info_sources_options_def_group, print_info_sources_header,
3547 info_sources_command_completer):
3548 New functions.
3549 (info_sources_command): Read new optional arguments.
3550 (_initialize_symtab): Update info sources help.
3551
3552 2019-08-02 Alexandre Oliva <oliva@adacore.com>
3553
3554 * ada-lang.c (exception_support_info_v0): Renamed from...
3555 (default_exception_support_info): ... this. Create new
3556 definition for v1.
3557 (ada_has_this_exception_support): Look up catch_handlers_sym.
3558 (ada_exception_support_info_sniffer): Try v0 after default.
3559
3560 2019-08-01 Tom Tromey <tromey@adacore.com>
3561
3562 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3563 gdbarch.h.
3564
3565 2019-08-01 Christian Biesinger <cbiesinger@google.com>
3566
3567 * s12z-tdep.c: Fix include path for s12z-opc.h.
3568
3569 2019-08-01 Alan Hayward <alan.hayward@arm.com>
3570
3571 * NEWS: Require GNU make 3.82.
3572
3573 2019-07-16 Tom Tromey <tom@tromey.com>
3574
3575 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3576 declare.
3577
3578 2019-07-30 Tom Tromey <tromey@adacore.com>
3579
3580 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3581
3582 2019-07-30 Kevin Buettner <kevinb@redhat.com>
3583
3584 * printcmd.c (print_address_symbolic): Print negative offsets.
3585 (build_address_symbolic): Force signed arithmetic when computing
3586 offset.
3587
3588 2019-07-30 Christian Biesinger <cbiesinger@google.com>
3589
3590 PR/24474: Add a function to lookup static variables.
3591 * NEWS: Mention this new function.
3592 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3593 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3594 * python/python.c (python_GdbMethods): Add new function.
3595
3596 2019-07-29 Christian Biesinger <cbiesinger@google.com>
3597
3598 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3599 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3600 (objfpy_lookup_static_symbol): New function.
3601 (objfile_object_methods): Add new functions.
3602
3603 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3604
3605 * NEWS: Mention 'set|show print frame-info'. Mention new
3606 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3607 backtrace argument. Mention that python frame filtering code
3608 is now consistent with what 'backtrace' command prints.
3609
3610 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3611
3612 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3613 comments.
3614 (print_frame_info_auto, print_frame_info_source_line,
3615 print_frame_info_location, print_frame_info_source_and_location,
3616 print_frame_info_location_and_address, print_frame_info_short_location):
3617 New declarations.
3618 (struct frame_print_options): New member print_frame_info.
3619 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3620 * stack.h (get_user_print_what_frame_info): New declaration.
3621 (frame_show_address): New declaration.
3622 * stack.c (print_frame_arguments_choices): New value 'presence'.
3623 (print_frame_info_auto, print_frame_info_source_line,
3624 print_frame_info_location, print_frame_info_source_and_location,
3625 print_frame_info_location_and_address, print_frame_info_short_location,
3626 print_frame_info_choices, print_frame_info_print_what): New definitions.
3627 (print_frame_args): Only print dots for args if print frame-arguments
3628 is 'presence'.
3629 (frame_print_option_defs): New element for "frame-info".
3630 (get_user_print_what_frame_info): New function.
3631 (frame_show_address): Make non static. Move comment to stack.h.
3632 (print_frame_info_to_print_what): New function.
3633 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3634 to decide what to print.
3635 (backtrace_command_1): Handle the new print_frame_arguments_presence
3636 value.
3637 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3638 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3639 (py_print_frame): In non-mi mode, use LOCATION as default for
3640 print_what, similarly to frame information printed directly by
3641 backtrace command. Handle frame-info user option in non MI mode.
3642
3643 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3644
3645 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3646 Add case for debugging 32-bit target on 64-bit host. Revise
3647 comment.
3648
3649 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3650
3651 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3652 instead of find_function_entry_range_from_pc.
3653
3654 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3655
3656 * stack.c (find_frame_funname): Remove code which preferred
3657 minsym over symtab sym in "certain pathological cases".
3658
3659 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3660 parameter. Change type of "do_demangle" to bool.
3661 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3662 Pass suitable "prefer_sym_over_minsym" flag to
3663 build_address_symbolic(). Don't output "+" for negative offsets.
3664 * printcmd.c (print_address_symbolic): Update invocation of
3665 build_address_symbolic to include a "prefer_sym_over_minsym"
3666 flag.
3667 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3668 Restrict cases in which use of minimal symbol is preferred to that
3669 of a found symbol. Update comments.
3670
3671 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3672 for entry pc when entry pc is out of range for that FDE.
3673
3674 2019-07-26 Brian Callahan <bcallah@openbsd.org>
3675
3676 PR gdb/24839:
3677 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3678 type.
3679
3680 2019-07-25 Christian Biesinger <cbiesinger@google.com>
3681
3682 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3683 this function's Python signature.
3684
3685
3686 2019-07-24 Christian Biesinger <cbiesinger@google.com>
3687
3688 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3689 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3690 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3691 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3692 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3693
3694
3695 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3696
3697 * h8300-tdep.c (h8300_register_name_common): New.
3698 h8300_register_name): Use h8300_register_name_common.
3699 (h8300s_register_name): Likewise.
3700 (h8300sx_register_name): Likewise.
3701 (h8300h_register_nam): New.
3702 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3703
3704
3705 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3706
3707 * arm-tdep.c (arm_skip_cmse_entry): New function.
3708 (arm_is_sgstubs_section): New function.
3709 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3710
3711 2019-07-22 Tom Tromey <tom@tromey.com>
3712
3713 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3714 Don't self-assign.
3715
3716 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3717
3718 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3719 type_print.
3720
3721 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3722
3723 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3724 so that GDB doesn't match any msymbols when searching in the
3725 TYPES_DOMAIN.
3726 (print_symbol_info): Print using typedef_print or type_print based
3727 on the type of the symbol. Add updated FIXME comment moved from...
3728 (_initialize_symtab): ... move and update FIXME comment to above.
3729
3730 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3731
3732 * NEWS: Mention adding -q option to "info types".
3733 * symtab.c (struct info_types_options): New struct.
3734 (info_types_options_defs): New variable.
3735 (make_info_types_options_def_group): New function.
3736 (info_types_command): Use gdb::option framework to parse options.
3737 (info_types_command_completer): New function.
3738 (_initialize_symtab): Extend the help text on "info types" and
3739 register command completer.
3740
3741 2019-07-21 Christian Biesinger <cbiesinger@google.com>
3742
3743 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3744 (lookup_symbol_in_objfile): Change int to block_enum and add a
3745 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3746
3747 2019-07-20 Christian Biesinger <cbiesinger@google.com>
3748
3749 * MAINTAINERS (Write After Approval): Add self.
3750
3751 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3752
3753 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3754 instruction to the dummy code region.
3755
3756 2019-07-19 Tom Tromey <tromey@adacore.com>
3757
3758 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3759 (ARGSUSED, PARAMS, __func__): Remove rules.
3760
3761 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3762
3763 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3764 * features/arm/arm-with-iwmmxt.c: Remove.
3765 * features/arm/arm-with-iwmmxt.xml: Remove.
3766 * features/arm/arm-with-m-fpa-layout.c: Remove.
3767 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3768 * features/arm/arm-with-m-vfp-d16.c: Remove.
3769 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3770 * features/arm/arm-with-m.c: Remove.
3771 * features/arm/arm-with-m.xml: Remove.
3772 * features/arm/arm-with-neon.c: Remove.
3773 * features/arm/arm-with-neon.xml: Remove.
3774 * features/arm/arm-with-vfpv2.c: Remove.
3775 * features/arm/arm-with-vfpv2.xml: Remove.
3776 * features/arm/arm-with-vfpv3.c: Remove.
3777 * features/arm/arm-with-vfpv3.xml: Remove.
3778
3779 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3780
3781 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3782
3783 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3784
3785 * arch/aarch32.c (aarch32_create_target_description): Create
3786 target descriptions using features.
3787 * arch/arm.c (arm_create_target_description)
3788 (arm_create_mprofile_target_description): Likewise.
3789 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3790
3791 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3792
3793 * Makefile.in: Add new files.
3794 * aarch32-tdep.c: New file.
3795 * aarch32-tdep.h: New file.
3796 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3797 Call aarch32_read_description.
3798 * arch/aarch32.c: New file.
3799 * arch/aarch32.h: New file.
3800 * arch/arm.c (arm_create_target_description)
3801 (arm_create_mprofile_target_description): New function.
3802 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3803 (arm_create_target_description)
3804 (arm_create_mprofile_target_description): New declaration.
3805 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3806 read_description functions.
3807 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3808 Likewise.
3809 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3810 * arm-tdep.c (tdesc_arm_list): New variable.
3811 (arm_register_g_packet_guesses): Call create description functions.
3812 (arm_read_description) (arm_read_mprofile_description): New
3813 function.
3814 * arm-tdep.h (arm_read_description)
3815 (arm_read_mprofile_description): Add declaration.
3816 * configure.tgt: Add new files.
3817
3818 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3819
3820 * top.c (new_ui_command): Open specified terminal just once.
3821
3822 2019-07-18 Tom Tromey <tromey@adacore.com>
3823
3824 * symtab.c (main_name): Constify return type.
3825 * symfile.c (set_initial_language): Update.
3826 * symtab.h (main_name): Constify return type.
3827
3828 2019-07-17 Tom Tromey <tom@tromey.com>
3829
3830 * tui/tui-winsource.c (tui_update_source_window)
3831 (tui_update_source_window_as_is)
3832 (tui_update_source_windows_with_line): Remove return.
3833 * tui/tui-disasm.c (tui_show_disassem)
3834 (tui_show_disassem_and_update_source): Remove return.
3835 * tui/tui.c (tui_reset): Remove return.
3836 * tui/tui-wingeneral.c
3837 (tui_check_and_display_highlight_if_needed): Remove return.
3838
3839 2019-07-17 Tom Tromey <tom@tromey.com>
3840
3841 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3842
3843 2019-07-17 Tom Tromey <tom@tromey.com>
3844
3845 * tui/tui-winsource.h (struct tui_exec_info_window)
3846 (struct tui_source_window_base): Move from tui-data.h.
3847 * tui/tui-winsource.c: Move many method definitions from
3848 elsewhere. Remove "structuring" comments.
3849 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3850 (tui_source_window_base::refresh_window): Move to
3851 tui-winsource.c.
3852 * tui/tui-win.c (tui_source_window_base::refresh_all)
3853 (tui_source_window_base::update_tab_width)
3854 (tui_source_window_base::set_new_height)
3855 (tui_source_window_base::do_make_visible_with_new_height): Move to
3856 tui-winsource.c.
3857 * tui/tui-source.h: Update.
3858 * tui/tui-source.c (tui_source_window_base::reset): Move to
3859 tui-winsource.c.
3860 * tui/tui-disasm.h: Update.
3861 * tui/tui-data.h (struct tui_exec_info_window): Move to
3862 tui-winsource.h.
3863 (struct tui_source_window_base): Likewise.
3864 * tui/tui-data.c (tui_source_window_base::clear_detail)
3865 (tui_source_window_base, ~tui_source_window_base): Move to
3866 tui-winsource.c.
3867
3868 2019-07-17 Tom Tromey <tom@tromey.com>
3869
3870 * tui/tui-win.c (tui_resize_all)
3871 (tui_source_window_base::update_tab_width)
3872 (tui_adjust_win_heights): Update.
3873 (tui_win_info::make_invisible_and_set_new_height): Rename from
3874 make_invisible_and_set_new_height.
3875 * tui/tui-data.h (struct tui_win_info)
3876 <make_invisible_and_set_new_height>: New method.
3877
3878 2019-07-17 Tom Tromey <tom@tromey.com>
3879
3880 * tui/tui.c: Update.
3881 * tui/tui-source.h (struct tui_source_window): Move from
3882 tui-data.h.
3883 * tui/tui-layout.c: Update.
3884 * tui/tui-disasm.c: Update.
3885 * tui/tui-data.h (struct tui_source_window): Move to
3886 tui-source.h.
3887
3888 2019-07-17 Tom Tromey <tom@tromey.com>
3889
3890 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3891 tui-data.h.
3892 * tui/tui-data.h (struct tui_disasm_window): Move to
3893 tui-disasm.h.
3894
3895 2019-07-17 Tom Tromey <tom@tromey.com>
3896
3897 * tui/tui-regs.h (struct tui_data_item_window): Move from
3898 tui-data.h.
3899 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3900 * tui/tui-data.h (struct tui_data_item_window): Move to
3901 tui-regs.h.
3902 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3903
3904 2019-07-17 Tom Tromey <tom@tromey.com>
3905
3906 * tui/tui.c: Update.
3907 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3908 (tui_cmd_window::max_height): Move to tui-command.c.
3909 * tui/tui-layout.c: Update.
3910 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3911 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3912 tui-command.c.
3913 * tui/tui-command.h (struct tui_cmd_window): Move from
3914 tui-data.h.
3915 * tui/tui-command.c: Remove "structuring" comments.
3916 (tui_cmd_window::clear_detail)
3917 (tui_cmd_window::do_make_visible_with_new_height)
3918 (tui_cmd_window::max_height): Move from elsewhere.
3919
3920 2019-07-17 Tom Tromey <tom@tromey.com>
3921
3922 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3923 Now static.
3924 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3925 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3926
3927 2019-07-17 Tom Tromey <tom@tromey.com>
3928
3929 * tui/tui.c: Update.
3930 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3931 tui-regs.c.
3932 * tui/tui-windata.h: Remove file.
3933 * tui/tui-windata.c: Remove file.
3934 * tui/tui-win.c (tui_data_window::set_new_height)
3935 (tui_data_window::do_make_visible_with_new_height): Move to
3936 tui-regs.c.
3937 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3938 * tui/tui-regs.c: Remove "structuring" comments.
3939 (tui_data_window::first_data_item_displayed)
3940 (tui_data_window::delete_data_content_windows)
3941 (tui_data_window::erase_data_content)
3942 (tui_data_window::display_all_data)
3943 (tui_data_window::refresh_all)
3944 (tui_data_window::do_scroll_vertical)
3945 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3946 (tui_data_window::do_make_visible_with_new_height)
3947 (tui_data_window::refresh_window): Move from elsewhere.
3948 (_initialize_tui_regs): Move to end of file.
3949 * tui/tui-layout.c: Update.
3950 * tui/tui-hooks.c: Update.
3951 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3952 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3953 tui-regs.c.
3954 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3955
3956 2019-07-17 Tom Tromey <tom@tromey.com>
3957
3958 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3959 seen.
3960
3961 2019-07-17 Tom Tromey <tom@tromey.com>
3962
3963 * tui/tui-win.c (tui_source_window_base::set_new_height)
3964 (tui_source_window_base::do_make_visible_with_new_height): Use
3965 m_has_locator field directly.
3966 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3967 method.
3968 (struct tui_source_window_base) <has_locator>: Likewise.
3969
3970 2019-07-17 Tom Tromey <tom@tromey.com>
3971
3972 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3973 Don't declare.
3974 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3975 Remove.
3976 * tui/tui-win.c (tui_source_window_base::set_new_height)
3977 (tui_source_window_base::set_new_height)
3978 (make_invisible_and_set_new_height)
3979 (tui_source_window_base::do_make_visible_with_new_height)
3980 (tui_source_window_base::do_make_visible_with_new_height):
3981 Update.
3982 * tui/tui-layout.c (show_source_disasm_command, show_data)
3983 (show_source_or_disasm_and_command): Update.
3984 * tui/tui-layout.c (show_layout): Update.
3985
3986 2019-07-17 Tom Tromey <tom@tromey.com>
3987
3988 * tui/tui-layout.c (make_data_window): 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_source_window, make_disasm_window):
3994 Remove.
3995 (show_data): Unify creation and re-initialization cases.
3996
3997 2019-07-17 Tom Tromey <tom@tromey.com>
3998
3999 * tui/tui-layout.c (make_command_window): Remove.
4000 (show_source_disasm_command, show_source_or_disasm_and_command):
4001 Unify creation and re-initialization cases.
4002
4003 2019-07-17 Tom Tromey <tom@tromey.com>
4004
4005 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4006 creation and re-initialization cases.
4007
4008 2019-07-17 Tom Tromey <tom@tromey.com>
4009
4010 * tui/tui-regs.c (tui_get_register): Return void.
4011
4012 2019-07-17 Tom Tromey <tom@tromey.com>
4013
4014 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4015 Simplify.
4016
4017 2019-07-17 Tom Tromey <tom@tromey.com>
4018
4019 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4020 resetting.
4021
4022 2019-07-17 Tom Tromey <tom@tromey.com>
4023
4024 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4025 * tui/tui-regs.c (tui_reg_layout): New function.
4026 (tui_show_registers, tui_reg_command): Use it.
4027 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4028 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4029 parameters.
4030 (tui_layout_command): Remove.
4031
4032 2019-07-17 Tom Tromey <tom@tromey.com>
4033
4034 * tui/tui-layout.h (tui/tui-layout): Return void.
4035 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4036
4037 2019-07-17 Tom Tromey <tom@tromey.com>
4038
4039 * tui/tui-layout.c (show_source_disasm_command, show_data):
4040 Update.
4041 (reset_locator): Remove.
4042 (show_source_or_disasm_and_command): Update.
4043
4044 2019-07-17 Tom Tromey <tom@tromey.com>
4045
4046 * tui/tui-source.c (tui_source_window_base::reset): Remove
4047 win_type parameter.
4048 * tui/tui-layout.c (make_command_window, make_source_window)
4049 (make_disasm_window, make_data_window)
4050 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4051 (reset_locator, show_source_or_disasm_and_command): Update.
4052 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4053 win_type parameter.
4054 (struct tui_source_window_base) <reset>: Likewise.
4055
4056 2019-07-17 Tom Tromey <tom@tromey.com>
4057
4058 * tui/tui-layout.c (show_source_disasm_command): Use
4059 reset_locator.
4060 (reset_locator): New function.
4061 (init_and_make_win): Remove.
4062 (show_source_or_disasm_and_command): Use reset_locator.
4063
4064 2019-07-17 Tom Tromey <tom@tromey.com>
4065
4066 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4067 condition.
4068 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4069 Remove condition.
4070 * tui/tui-source.c (tui_source_window_base::reset): New method.
4071 * tui/tui-layout.c (make_command_window): Don't call
4072 init_and_make_win.
4073 (make_source_window, make_disasm_window): Don't call
4074 make_source_or_disasm_window.
4075 (make_data_window): Don't call init_and_make_win. Change calling
4076 convention.
4077 (show_source_disasm_command, show_data): Simplify.
4078 (make_source_or_disasm_window): Remove.
4079 (show_source_or_disasm_and_command): Simplify.
4080 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4081 (struct tui_source_window_base) <reset>: Likewise.
4082 <execution_info>: Remove initializer.
4083 * tui/tui-data.c (tui_source_window_base): Initialize
4084 execution_info.
4085
4086 2019-07-17 Tom Tromey <tom@tromey.com>
4087
4088 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4089 variable.
4090
4091 2019-07-17 Tom Tromey <tom@tromey.com>
4092
4093 * tui/tui.c (tui_rl_other_window): Update.
4094 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4095 superclass method first. Always iterate over regs_content.
4096 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4097 method.
4098 * tui/tui-win.c (tui_set_focus_command): Update.
4099
4100 2019-07-17 Tom Tromey <tom@tromey.com>
4101
4102 * tui/tui-win.c (tui_set_focus_command): Rename from
4103 tui_set_focus. Call tui_enable.
4104 (tui_set_focus_command): Remove.
4105
4106 2019-07-17 Tom Tromey <tom@tromey.com>
4107
4108 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4109 refresh_window.
4110 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4111 touchwin.
4112 (tui_data_window::refresh_window): Call refresh_window on data
4113 items. Always call superclass refresh_window.
4114 (tui_win_info::refresh): Remove.
4115 (tui_source_window_base::refresh_window): Update.
4116 (tui_refresh_all): Update.
4117 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4118 refresh_window.
4119 (show_source_or_disasm_and_command): Likewise.
4120 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4121 (struct tui_source_window_base) <refresh>: Likewise.
4122
4123 2019-07-17 Tom Tromey <tom@tromey.com>
4124
4125 * tui/tui-winsource.c (tui_clear_source_content)
4126 (tui_show_source_content): Update.
4127 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4128 whether content is empty.
4129 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4130 Remove.
4131
4132 2019-07-17 Tom Tromey <tom@tromey.com>
4133
4134 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4135 window's contents.
4136 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4137 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4138
4139 2019-07-17 Tom Tromey <tom@tromey.com>
4140
4141 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4142 (struct tui_data_item_window): Update.
4143
4144 2019-07-17 Tom Tromey <tom@tromey.com>
4145
4146 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4147 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4148 defines.
4149
4150 2019-07-17 Tom Tromey <tom@tromey.com>
4151
4152 * tui/tui-winsource.h (tui_erase_source_content)
4153 (tui_clear_source_content): Remove "display_prompt" parameter.
4154 * tui/tui-winsource.c (tui_update_source_window_as_is)
4155 (tui_update_source_windows_with_addr): Update.
4156 (tui_clear_source_content): Remove "display_prompt" parameter.
4157 (tui_erase_source_content): Likewise. Simplify.
4158 (tui_show_source_content): Update.
4159 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4160 * tui/tui-stack.c (tui_show_frame_info): Update.
4161 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4162 Remove defines.
4163
4164 2019-07-17 Tom Tromey <tom@tromey.com>
4165
4166 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4167 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4168 parameter.
4169 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4170 parameter.
4171
4172 2019-07-17 Tom Tromey <tom@tromey.com>
4173
4174 * tui/tui-winsource.c (tui_clear_source_content)
4175 (tui_show_source_content, tui_show_exec_info_content)
4176 (tui_clear_exec_info_content): Update.
4177 * tui/tui-stack.c (tui_show_locator_content): Update.
4178 (tui_show_frame_info): Update.
4179 * tui/tui-source.h (tui_source_window): Don't declare.
4180 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4181 from tui_source_is_displayed.
4182 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4183 Remove field.
4184 (struct tui_source_window_base) <content_in_use>: New field. Now
4185 bool.
4186 (struct tui_source_window) <showing_source_p>: New method.
4187 (TUI_SRC_WIN): Change cast.
4188 * tui/tui-data.c (tui_initialize_static_data): Update.
4189
4190 2019-07-17 Tom Tromey <tom@tromey.com>
4191
4192 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4193 location_matches_p.
4194 * tui/tui-source.c (tui_source_window::location_matches_p): New
4195 method.
4196 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4197 method.
4198 * tui/tui-data.h (struct tui_source_window_base)
4199 <location_matches_p>: New method.
4200 (struct tui_source_window, struct tui_disasm_window)
4201 <location_matches_p>: Likewise.
4202
4203 2019-07-17 Tom Tromey <tom@tromey.com>
4204
4205 * tui/tui-win.c (tui_set_win_height_command): Rename from
4206 tui_set_win_height.
4207 (tui_set_win_height_command): Remove.
4208
4209 2019-07-17 Tom Tromey <tom@tromey.com>
4210
4211 * tui/tui-source.c (tui_source_window): New constructor. Add
4212 observer.
4213 (~tui_source_window): New destructor.
4214 (tui_source_window::style_changed): New method.
4215 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4216 (tui_attach_detach_observers): Update.
4217 * tui/tui-data.h (struct tui_source_window): Make constructor not
4218 inline. Add destructor.
4219 (struct tui_source_window) <style_changed>: New method.
4220 <m_observable>: New member.
4221
4222 2019-07-17 Tom Tromey <tom@tromey.com>
4223
4224 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4225 * tui/tui-win.c (tui_resize_all): Fix typo.
4226
4227 2019-07-17 Tom Tromey <tom@tromey.com>
4228
4229 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4230 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4231 (tui_refresh_all): Remove "list" parameter. Use foreach.
4232 * tui/tui-win.c (window_name_completer): Use foreach.
4233 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4234 (update_tab_width): Likewise.
4235 * tui/tui-layout.c (show_layout): Update.
4236 * tui/tui-data.h (class tui_window_iterator): New.
4237 (struct all_tui_windows): New.
4238 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4239
4240 2019-07-17 Tom Tromey <tom@tromey.com>
4241
4242 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4243 parameter. Don't reference globals.
4244 (tui_reg_command): Update.
4245
4246 2019-07-17 Tom Tromey <tom@tromey.com>
4247
4248 * tui/tui-regs.c (tui_show_registers): Simplify.
4249
4250 2019-07-17 Tom Tromey <tom@tromey.com>
4251
4252 * tui/tui-regs.c (tui_show_registers): Update.
4253 (tui_show_register_group): Add win_info parameter.
4254
4255 2019-07-17 Tom Tromey <tom@tromey.com>
4256
4257 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4258 Rename from tui_display_reg_element_at_line.
4259 (tui_data_window::display_registers_from_line): Update.
4260 * tui/tui-data.h (struct tui_data_window)
4261 <display_reg_element_at_line>: New method.
4262
4263 2019-07-17 Tom Tromey <tom@tromey.com>
4264
4265 * tui/tui-regs.h (tui_display_registers_from)
4266 (tui_display_registers_from_line): Don't declare.
4267 * tui/tui-windata.c (tui_data_window::display_all_data)
4268 (tui_data_window::refresh_all)
4269 (tui_data_window::do_scroll_vertical): Update.
4270 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4271 from tui_display_registers_from.
4272 (tui_display_reg_element_at_line): Update.
4273 (tui_data_window::display_registers_from_line): Rename from
4274 tui_display_registers_from_line.
4275 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4276 display_registers_from_line>: New methods.
4277
4278 2019-07-17 Tom Tromey <tom@tromey.com>
4279
4280 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4281 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4282 from tui_erase_data_content.
4283 (tui_data_window::display_all_data)
4284 (tui_data_window::refresh_all)
4285 (tui_data_window::do_scroll_vertical): Update.
4286 * tui/tui-regs.c (tui_show_registers): Update.
4287 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4288 New method.
4289
4290 2019-07-17 Tom Tromey <tom@tromey.com>
4291
4292 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4293 declare.
4294 * tui/tui-windata.c
4295 (tui_data_window::delete_data_content_windows): Rename from
4296 tui_delete_data_content_windows.
4297 (tui_data_window::display_all_data)
4298 (tui_data_window::do_scroll_vertical): Update.
4299 * tui/tui-data.h (struct tui_data_window)
4300 <delete_data_content_windows>: New method.
4301
4302 2019-07-17 Tom Tromey <tom@tromey.com>
4303
4304 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4305 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4306
4307 2019-07-17 Tom Tromey <tom@tromey.com>
4308
4309 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4310 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4311 from tui_display_all_data.
4312 * tui/tui-win.c
4313 (tui_data_window::do_make_visible_with_new_height): Update.
4314 * tui/tui-regs.c (tui_show_registers): Update.
4315 * tui/tui-layout.c (tui_set_layout): Update.
4316 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4317 method.
4318
4319 2019-07-17 Tom Tromey <tom@tromey.com>
4320
4321 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4322 * tui/tui-windata.c (tui_display_data_from): Remove.
4323 (tui_data_window::refresh_all): Update.
4324
4325 2019-07-17 Tom Tromey <tom@tromey.com>
4326
4327 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4328 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4329 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4330 tui_display_registers_from_line.
4331 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4332 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4333 "force_display" parameter.
4334
4335 2019-07-17 Tom Tromey <tom@tromey.com>
4336
4337 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4338 declare.
4339 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4340 Rename from tui_first_reg_element_no_inline.
4341 (tui_display_reg_element_at_line)
4342 (tui_display_registers_from_line): Update.
4343 * tui/tui-data.h (struct tui_data_window)
4344 <first_reg_element_no_inline>: New method.
4345
4346 2019-07-17 Tom Tromey <tom@tromey.com>
4347
4348 * tui/tui-windata.c (tui_display_data_from)
4349 (tui_data_window::do_scroll_vertical): Update.
4350 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4351 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4352 Rename from tui_line_from_reg_element_no.
4353 (tui_display_registers_from_line): Update.
4354 * tui/tui-data.h (struct tui_data_window)
4355 <line_from_reg_element_no>: New method.
4356
4357 2019-07-17 Tom Tromey <tom@tromey.com>
4358
4359 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4360 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4361 tui_last_regs_line_no.
4362 (tui_display_reg_element_at_line)
4363 (tui_display_registers_from_line): Update.
4364 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4365 method.
4366
4367 2019-07-17 Tom Tromey <tom@tromey.com>
4368
4369 PR tui/24722:
4370 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4371 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4372 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4373 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4374 (tui_update_breakpoint_info): Likewise.
4375 * tui/tui-hooks.c (tui_event_create_breakpoint)
4376 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4377 Update.
4378
4379 2019-07-17 Tom Tromey <tom@tromey.com>
4380
4381 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4382
4383 2019-07-17 Tom Tromey <tom@tromey.com>
4384
4385 * tui/tui-winsource.c (tui_update_source_window_as_is)
4386 (tui_update_source_windows_with_addr): Update.
4387 * tui/tui-source.h (tui_set_source_content)
4388 (tui_show_symtab_source): Add "win_info" parameter.
4389 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4390 parameter.
4391 (tui_show_symtab_source): Likewise.
4392
4393 2019-07-17 Tom Tromey <tom@tromey.com>
4394
4395 * tui/tui-wingeneral.c
4396 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4397
4398 2019-07-17 Tom Tromey <tom@tromey.com>
4399
4400 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4401 (struct tui_cmd_window) <can_scroll>: New method.
4402 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4403 method.
4404
4405 2019-07-17 Tom Tromey <tromey@adacore.com>
4406
4407 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4408 do_field_signed>: Rename. Change type of "value".
4409 * ui-out.c (ui_out::field_signed): Rename from field_int.
4410 Change type of "value".
4411 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4412 type of "value".
4413 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4414 do_field_int. Change type of "value".
4415 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4416 do_field_int. Change type of "value".
4417 * tracepoint.c (trace_status_mi, tfind_1)
4418 (print_one_static_tracepoint_marker): Update.
4419 * thread.c (print_thread_info_1, print_selected_thread_frame):
4420 Update.
4421 * stack.c (print_frame, print_frame_info): Update.
4422 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4423 Update.
4424 * source.c (print_source_lines_base): Update.
4425 * skip.c (info_skip_command): Update.
4426 * record-btrace.c (btrace_ui_out_decode_error)
4427 (btrace_call_history_src_line): Update.
4428 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4429 Update.
4430 * progspace.c (print_program_space): Update.
4431 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4432 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4433 do_field_int. Change type of "value".
4434 * mi/mi-out.c (mi_ui_out::do_table_begin)
4435 (mi_ui_out::do_table_header): Update.
4436 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4437 type of "value".
4438 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4439 (mi_cmd_data_list_changed_registers, output_register)
4440 (mi_cmd_data_read_memory, mi_load_progress)
4441 (mi_cmd_trace_frame_collected): Update.
4442 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4443 Update.
4444 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4445 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4446 (mi_cmd_var_list_children, varobj_update_one): Update.
4447 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4448 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4449 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4450 * inferior.c (print_inferior): Update.
4451 * gdb_bfd.c (print_one_bfd): Update.
4452 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4453 Update.
4454 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4455 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4456 do_field_int. Change type of "value".
4457 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4458 do_field_int. Change type of "value".
4459 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4460 (print_one_breakpoint_location, print_it_catch_fork)
4461 (print_one_catch_fork, print_it_catch_vfork)
4462 (print_one_catch_vfork, print_it_catch_solib)
4463 (print_it_catch_exec, print_it_ranged_breakpoint)
4464 (print_mention_watchpoint, print_mention_masked_watchpoint)
4465 (bkpt_print_it, update_static_tracepoint): Update.
4466 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4467 * break-catch-syscall.c (print_it_catch_syscall): Update.
4468 * ada-tasks.c (print_ada_task_info): Update.
4469 * ada-lang.c (print_it_exception, print_mention_exception):
4470 Update.
4471
4472 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4473
4474 PR breakpoints/24541
4475 * gdbarch.c: Regenerate.
4476 * gdbarch.h: Regenerate.
4477 * gdbarch.sh: Adjust return type and parameter types for
4478 'stap_adjust_register'.
4479 (i386_stap_adjust_register): Adjust signature and return new
4480 register name.
4481 * stap-probe.c (stap_parse_register_operand): Adjust use of
4482 'gdbarch_stap_adjust_register'.
4483
4484 2019-07-17 Tom Tromey <tromey@adacore.com>
4485
4486 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4487 declare VEC.
4488 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4489 std::vector.
4490 (struct s390_process_info): Add initializers.
4491 (s390_add_process): Use new.
4492 (s390_linux_nat_target::low_forget_process): Use delete.
4493 (s390_linux_nat_target::low_new_fork)
4494 (s390_linux_nat_target::stopped_by_watchpoint)
4495 (s390_linux_nat_target::low_prepare_to_resume)
4496 (s390_linux_nat_target::insert_watchpoint)
4497 (s390_linux_nat_target::insert_hw_breakpoint)
4498 (s390_linux_nat_target::remove_watchpoint)
4499 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4500
4501 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4502
4503 * aarch64-fbsd-nat.c: Include regcache.h.
4504 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4505 argument.
4506 (aarch64_fbsd_nat_target::fetch_registers)
4507 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4508 variable.
4509 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4510
4511 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4512
4513 * fbsd-nat.c: Include gdbarch.h.
4514
4515 2019-07-15 Tom Tromey <tromey@adacore.com>
4516
4517 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4518
4519 2019-07-15 Tom Tromey <tromey@adacore.com>
4520
4521 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4522 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4523 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4524 * cli-out.c (cli_ui_out::do_field_int): New method.
4525 * ui-out.c (ui_out::field_unsigned): New method.
4526 * symfile.c (generic_load): Use field_unsigned.
4527 (print_transfer_performance): Likewise.
4528 * record-btrace.c (ui_out_field_uint): Remove.
4529 (btrace_call_history_insn_range, btrace_call_history): Use
4530 field_unsigned.
4531 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4532 field_unsigned.
4533 * ui-out.h (class ui_out) <field_unsigned>: New method.
4534 <do_field_unsigned>: Likewise.
4535
4536 2019-07-15 Tom Tromey <tromey@adacore.com>
4537
4538 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4539 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4540 * target.c (flash_erase_command): Use field_string.
4541 * infrun.c (print_signal_received_reason): Use field_string.
4542 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4543 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4544 field_string.
4545 * ada-tasks.c (print_ada_task_info): Use field_string.
4546
4547 2019-07-15 Tom Tromey <tromey@adacore.com>
4548
4549 * target.c (flash_erase_command): Use field_core_addr.
4550 * symfile.c (generic_load): Use field_core_addr.
4551 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4552 Use field_core_addr.
4553 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4554 field_core_addr.
4555
4556 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4557
4558 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4559 value if its desired type is smaller than a CORE_ADDR and signed.
4560
4561 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4562
4563 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4564 of changes to field names, and use new is_reference field to
4565 decide if a property is a reference or not.
4566 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4567 field.
4568 (struct dwarf2_property_baton): Update header comment, rename
4569 'referenced_type' to 'property_type' and update comments.
4570 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4571 default property type, store in property baton, update to take
4572 accound of renamed field.
4573 (read_func_scope): Update call to attr_to_dynamic_prop.
4574 (read_array_type): Likewise.
4575 (dwarf2_per_cu_addr_sized_int_type): New function.
4576 (read_subrange_index_type): Move type finding code to
4577 dwarf2_per_cu_addr_sized_int_type.
4578 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4579 (dwarf2_per_cu_addr_type): New function.
4580 (set_die_type): Update calls to attr_to_dynamic_prop.
4581
4582 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4583
4584 * dwarf2read.c (read_subrange_index_type): New function.
4585 (read_subrange_type): Move code into new function and call it.
4586 * gdbtypes.c (create_range_type): Add some asserts.
4587
4588 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4589
4590 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4591 update return statements.
4592 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4593 declaration, and update comment to match.
4594 * gdbtypes.c (resolve_dynamic_array): Update call to
4595 dwarf2_evaluate_property to match new return type.
4596
4597 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4598
4599 * valarith.c (value_subscripted_rvalue): Change lowerbound
4600 parameter type from int to LONGEST.
4601 * value.h (value_subscripted_rvalue): Likewise in declaration.
4602
4603 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4604
4605 * cli/cli-utils.c (info_print_command_completer): New function.
4606 * cli/cli-utils.h: Add 'completer.h' include, and forward
4607 declaration for 'struct cmd_list_element'.
4608 (info_print_command_completer): Declare.
4609 * stack.c (_initialize_stack): Add completer for 'info locals' and
4610 'info args'.
4611 * symtab.c (_initialize_symtab): Add completer for 'info
4612 variables' and 'info functions'.
4613 * NEWS: Mention completion for additional info commands.
4614
4615 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4616
4617 * cli/cli-utils.c (extract_info_print_args): Delete.
4618 (extract_arg_maybe_quoted): Delete.
4619 (info_print_options_defs): New variable.
4620 (make_info_print_options_def_group): New function.
4621 (extract_info_print_options): Define new function.
4622 * cli/cli-utils.h (extract_info_print_args): Delete.
4623 (struct info_print_options): New structure.
4624 (extract_info_print_options): Declare new function.
4625 * stack.c (info_locals_command): Update to use new
4626 extract_info_print_options, also add a header comment.
4627 (info_args_command): Likewise.
4628 * symtab.c (info_variables_command): Likewise.
4629 (info_functions_command): Likewise.
4630
4631 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4632
4633 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4634 to extract string arguments.
4635 * common/common-utils.c (extract_string_maybe_quoted): New function.
4636 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4637
4638 2019-07-11 Tom Tromey <tromey@adacore.com>
4639
4640 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4641 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4642 * top.h (gdbinit): Don't declare.
4643 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4644 into...
4645 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4646 * top.c (gdb_init): Don't call init_cli_cmds.
4647 (gdbinit): Remove.
4648 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4649
4650 2019-07-11 Tom Tromey <tromey@adacore.com>
4651
4652 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4653 after it has been moved.
4654
4655 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4656
4657 * valops.c (value_must_coerce_to_target): Change return type to
4658 bool.
4659 * value.h (value_must_coerce_to_target): Likewise.
4660
4661 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
4662
4663 * breakpoint.c (is_hardware_watchpoint): Remove
4664 forward-declaration.
4665 (is_masked_watchpoint): Change return type to bool.
4666 (is_tracepoint): Likewise.
4667 (is_breakpoint): Likewise.
4668 (is_hardware_watchpoint): Likewise.
4669 (is_watchpoint): Likewise.
4670 (is_no_memory_software_watchpoint): Likewise.
4671 (is_catchpoint): Likewise.
4672 (breakpoint_1): Make FILTER parameter's return type bool.
4673 is_masked_watchpoint): Change return type to bool.
4674 (save_breakpoints): Make FILTER parameter's return type bool.
4675 * breakpoint.h (is_breakpoint): Change return type to bool.
4676 (is_watchpoint): Likewise.
4677 (is_catchpoint): Likewise.
4678 (is_tracepoint): Likewise.
4679
4680 2019-07-10 Tom Tromey <tom@tromey.com>
4681
4682 * defs.h: Don't include gdbarch.h.
4683 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4684 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4685 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4686 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4687 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4688 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4689 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4690 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4691 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4692 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4693 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4694 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4695 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4696 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4697 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4698 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4699 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4700 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4701 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4702 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4703 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4704 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4705 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4706 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4707 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4708 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4709 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4710
4711 2019-07-10 Tom Tromey <tromey@adacore.com>
4712
4713 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4714 * breakpoint.c (init_ada_exception_breakpoint): Register as
4715 bp_catchpoint.
4716 (print_one_breakpoint_location, print_one_breakpoint): Use
4717 is_ada_exception_catchpoint.
4718 * ada-lang.c (class ada_catchpoint_location): Pass
4719 bp_loc_software_breakpoint to bp_location constructor.
4720 (is_ada_exception_catchpoint): New function.
4721
4722 2019-07-10 Tom Tromey <tromey@adacore.com>
4723
4724 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4725 VEC.
4726 (struct arm_exidx_entry): New method operator<.
4727 (struct arm_exidx_data) <section_maps>: Change type.
4728 (arm_exidx_data_free): Remove.
4729 (arm_exidx_data_key): Change type. Move lower.
4730 (arm_exidx_new_objfile): Update.
4731 (arm_compare_exidx_entries): Remove.
4732 (arm_find_exidx_entry, _initialize_arm_tdep)
4733
4734 2019-07-10 Tom Tromey <tromey@adacore.com>
4735
4736 * solib-spu.c (ocl_program_data_key): Change type.
4737 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4738 Update.
4739
4740 2019-07-10 Tom Tromey <tromey@adacore.com>
4741
4742 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4743 (struct solib_aix_inferior_data) <library_list>: Change type.
4744 (solib_aix_inferior_data_handle): Change type.
4745 (get_solib_aix_inferior_data): Update.
4746 (solib_aix_free_library_list): Remove.
4747 (library_list_start_library): Update.
4748 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4749 return type.
4750 (solib_aix_get_library_list)
4751 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4752 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4753
4754 2019-07-10 Tom Tromey <tromey@adacore.com>
4755
4756 * solib-dsbt.c (struct dsbt_info): Add initializers.
4757 (solib_dsbt_pspace_data): Change type.
4758 (dsbt_pspace_data_cleanup): Remove.
4759 (get_dsbt_info, _initialize_dsbt_solib): Update.
4760
4761 2019-07-10 Tom Tromey <tromey@adacore.com>
4762
4763 * spu-tdep.c (spu_overlay_data): Change type.
4764 (spu_get_overlay_table, spu_overlay_new_objfile)
4765 (_initialize_spu_tdep): Update.
4766
4767 2019-07-10 Tom Tromey <tromey@adacore.com>
4768
4769 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4770 destructor.
4771 (dbx_objfile_data_key): Change type and declare later.
4772 (DBX_SYMFILE_INFO): Rewrite.
4773 * dbxread.c (dbx_objfile_data_key): Change type.
4774 (dbx_symfile_init): Update.
4775 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4776 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4777 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4778
4779 2019-07-10 Tom Tromey <tromey@adacore.com>
4780
4781 * jit.c (jit_program_space_key): Change type. Move lower.
4782 (get_jit_program_space_data): Update.
4783 (jit_program_space_data_cleanup): Remove.
4784 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4785 Update.
4786 (struct jit_program_space_data): Add initializers.
4787
4788 2019-07-10 Tom Tromey <tromey@adacore.com>
4789
4790 * solib-darwin.c (struct darwin_info): Add initializers.
4791 (solib_darwin_pspace_data): Change type.
4792 (darwin_pspace_data_cleanup): Remove.
4793 (get_darwin_info, _initialize_darwin_solib): Update.
4794
4795 2019-07-10 Tom Tromey <tromey@adacore.com>
4796
4797 * remote-sim.c (struct sim_inferior_data): Add initializers,
4798 constructor, and destructor.
4799 (sim_inferior_data_key): Change type. Move lower.
4800 (check_for_duplicate_sim_descriptor): Update.
4801 (get_sim_inferior_data): Use new. Update.
4802 (~sim_inferior_data_cleanup): Rename from
4803 sim_inferior_data_cleanup. Simplify.
4804 (gdbsim_close_inferior, simulator_command)
4805 (sim_command_completer, _initialize_remote_sim): Update.
4806 (next_pid, INITIAL_PID): Move earlier.
4807
4808 2019-07-10 Tom Tromey <tromey@adacore.com>
4809
4810 * python/python-internal.h (create_thread_object): Return
4811 gdbpy_ref.
4812 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4813 * python/py-inferior.c (struct threadlist_entry): Add
4814 constructor.
4815 <thread_obj>: Now a gdbpy_ref.
4816 (thread_to_thread_object): Update.
4817 (add_thread_object): Use new.
4818 (delete_thread_object): Use delete.
4819 (infpy_threads): Update.
4820 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4821 GIL.
4822
4823 2019-07-10 Tom Tromey <tromey@adacore.com>
4824
4825 * valops.c (value_cast): Specialize error message for Ada.
4826
4827 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4828
4829 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4830
4831 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4832
4833 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4834 bpstat_should_step): Return bool, adjust comments.
4835 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4836 bpstat_should_step): Likewise.
4837
4838 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4839
4840 * features/Makefile: Use feature target descriptions for Arm.
4841 * features/arm/arm-core.c: Generate new file.
4842 * features/arm/arm-fpa.c: Likewise.
4843 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4844 * features/arm/arm-m-profile.c: Likewise.
4845 * features/arm/arm-vfpv2.c: Likewise.
4846 * features/arm/arm-vfpv3.c: Likewise.
4847 * features/arm/xscale-iwmmxt.c: Likewise.
4848 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4849
4850 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4851
4852 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4853 ptrace earlier.
4854
4855 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4856
4857 * features/aarch64-pauth.c: Regenerate.
4858
4859 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4860
4861 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4862 bool.
4863 (bpstat_what): Use false instead of 0.
4864
4865 2019-07-09 Pedro Alves <palves@redhat.com>
4866
4867 * break-catch-throw.c (is_exception_catchpoint): New.
4868 * breakpoint.c (print_one_breakpoint_location): New parameter
4869 'raw_loc'. Handle it. Use
4870 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4871 looking at the breakpoint's type.
4872 (print_one_breakpoint): If handling "maint info breakpoints", also
4873 print locations of exception catchpoints.
4874 * breakpoint.h (is_exception_catchpoint): Declare.
4875
4876 2019-07-09 Pedro Alves <palves@redhat.com>
4877
4878 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4879 "addr" field.
4880 (allocate_location_exception_catchpoint): New.
4881 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4882 (initialize_throw_catchpoint_ops): Install
4883 allocate_location_exception_catchpoint as allocate_location
4884 method.
4885 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4886 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4887 bp_loc_other.
4888 (breakpoint_address_is_meaningful): Delete.
4889 (bl_address_is_meaningful): New.
4890 (breakpoint_locations_match): Adjust comment.
4891 (bp_location_from_bp_type): New, factored out of...
4892 (bp_location::bp_location(breakpoint *)): ... this.
4893 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4894 factored out of...
4895 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4896 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4897 breakpoint_address_is_meaningful.
4898 (bp_locations_compare): Adjust comment.
4899 (update_global_location_list): Use bl_address_is_meaningful
4900 instead of breakpoint_address_is_meaningful.
4901 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4902 explicit.
4903 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4904 * python/py-breakpoint.c (bppy_get_location): No longer check
4905 whether location is null.
4906
4907 2019-07-09 Pedro Alves <palves@redhat.com>
4908
4909 PR c++/15468
4910 * breakpoint.c (print_one_breakpoint_location): Remove
4911 single-location assert.
4912
4913 2019-07-09 Tom Tromey <tom@tromey.com>
4914
4915 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4916 * configure: Rebuild.
4917 * configure.ac: Change common to gdbsupport.
4918 * gdbsupport: Rename from common.
4919 * acinclude.m4: Change common to gdbsupport.
4920 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4921 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4922 gdbsupport.
4923 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4924 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4925 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4926 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4927 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4928 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4929 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4930 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4931 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4932 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4933 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4934 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4935 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4936 coff-pe-read.c, command.h, compile/compile-c-support.c,
4937 compile/compile-c.h, compile/compile-cplus-symbols.c,
4938 compile/compile-cplus-types.c, compile/compile-cplus.h,
4939 compile/compile-loc2c.c, compile/compile.c, completer.c,
4940 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4941 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4942 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4943 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4944 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4945 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4946 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4947 features/aarch64-core.c, features/aarch64-fpu.c,
4948 features/aarch64-pauth.c, features/aarch64-sve.c,
4949 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4950 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4951 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4952 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4953 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4954 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4955 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4956 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4957 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4958 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4959 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4960 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4961 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4962 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4963 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4964 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4965 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4966 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4967 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4968 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4969 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4970 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4971 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4972 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4973 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4974 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4975 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4976 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4977 minsyms.c, mips-linux-tdep.c, namespace.h,
4978 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4979 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4980 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4981 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4982 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4983 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4984 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4985 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4986 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4987 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4988 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4989 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4990 procfs.c, producer.c, progspace.h, psymtab.h,
4991 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4992 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4993 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4994 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4995 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4996 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4997 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4998 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4999 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5000 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5001 target-memory.c, target.c, target.h, target/waitstatus.c,
5002 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5003 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5004 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5005 unittests/array-view-selftests.c,
5006 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5007 unittests/common-utils-selftests.c,
5008 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5009 unittests/format_pieces-selftests.c,
5010 unittests/function-view-selftests.c,
5011 unittests/lookup_name_info-selftests.c,
5012 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5013 unittests/mkdir-recursive-selftests.c,
5014 unittests/observable-selftests.c,
5015 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5016 unittests/parse-connection-spec-selftests.c,
5017 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5018 unittests/scoped_fd-selftests.c,
5019 unittests/scoped_mmap-selftests.c,
5020 unittests/scoped_restore-selftests.c,
5021 unittests/string_view-selftests.c, unittests/style-selftests.c,
5022 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5023 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5024 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5025 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5026 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5027 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5028
5029 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5030
5031 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5032 bool value.
5033 (decode_digits_ordinary): Set explicit_line field in sal.
5034 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5035 symtab_and_line that was set on an explicit line number in
5036 assembler code. Do always update the recorded symtab and line if
5037 we do skip the prologue.
5038
5039 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5040
5041 * breakpoint.c (set_breakpoint_location_function): Remove
5042 explicit_loc parameter.
5043 (momentary_breakpoint_from_master): Update call to
5044 set_breakpoint_location_function.
5045 (add_location_to_breakpoint): Likewise.
5046
5047 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5048
5049 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5050 required features based on default bfd type when no specific bfd
5051 is present.
5052
5053 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5054
5055 * NEWS: Mention that GDB printf and eval commands can now print
5056 C-style and Ada-style convenience var strings without
5057 calling the inferior.
5058 * printcmd.c (printf_c_string): Locally print GDB internal var
5059 instead of transiting via the inferior.
5060 (printf_wide_c_string): Likewise.
5061
5062 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5063
5064 PR breakpoints/25011
5065 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5066
5067 2019-07-04 Tom Tromey <tom@tromey.com>
5068
5069 PR tui/24724:
5070 * tui/tui-winsource.c (tui_clear_source_content): Update.
5071 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5072 (tui_update_breakpoint_info): Update.
5073 (tui_set_exec_info_content): Update.
5074 * tui/tui-source.c (tui_set_source_content_nil): Update.
5075 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5076 has_break.
5077 * tui/tui-data.h (enum tui_bp_flag): New.
5078 (tui_bp_flags): New enum flags type.
5079 (struct tui_source_element) <break_mode>: Change type. Rename
5080 from has_break.
5081 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5082 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5083 constants.
5084 * tui/tui-winsource.h: Fix comment.
5085
5086 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5087
5088 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5089 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5090 (store_fpregs_to_thread)
5091 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5092 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5093 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5094 (IWMMXT_REGS_SIZE): Add define.
5095 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5096 (fetch_vfp_regs, store_vfp_regs)
5097 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5098 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5099
5100 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5101
5102 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5103 defines.
5104 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5105 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5106 (ARM_INT_REGISTER_SIZE): ...to this.
5107 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5108 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5109 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5110 (arm_linux_collect_gregset, supply_nwfpe_register)
5111 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5112 defines.
5113 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5114 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5115 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5116 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5117 (arm_return_in_memory, arm_store_return_value)
5118 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5119 (arm_record_ld_st_multiple): Likewise.
5120 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5121 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5122
5123 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5124
5125 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5126 AARCH64_DISPLACED_MODIFIED_INSNS.
5127 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5128 (aarch64_displaced_step_copy_insn): Likewise.
5129 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5130 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5131 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5132 ARM_DISPLACED_MODIFIED_INSNS.
5133 * arm-tdep.c (arm_gdbarch_init): Likewise.
5134 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5135 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5136 (struct arm_displaced_step_closure): Use
5137 ARM_DISPLACED_MODIFIED_INSNS.
5138
5139 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5140
5141 * features/Makefile: Remove unused xml files.
5142 * features/aarch64.xml: Remove.
5143 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5144 * features/i386/amd64-avx-avx512.xml: Remove.
5145 * features/i386/amd64-avx-linux.xml: Remove.
5146 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5147 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5148 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5149 * features/i386/amd64-avx-mpx.xml: Remove.
5150 * features/i386/amd64-avx.xml: Remove.
5151 * features/i386/amd64-linux.xml: Remove.
5152 * features/i386/amd64-mpx-linux.xml: Remove.
5153 * features/i386/amd64-mpx.xml: Remove.
5154 * features/i386/amd64.xml: Remove.
5155 * features/i386/i386-avx-avx512-linux.xml: Remove.
5156 * features/i386/i386-avx-avx512.xml: Remove.
5157 * features/i386/i386-avx-linux.xml: Remove.
5158 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5159 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5160 * features/i386/i386-avx-mpx-linux.xml: Remove.
5161 * features/i386/i386-avx-mpx.xml: Remove.
5162 * features/i386/i386-avx.xml: Remove.
5163 * features/i386/i386-linux.xml: Remove.
5164 * features/i386/i386-mmx-linux.xml: Remove.
5165 * features/i386/i386-mmx.xml: Remove.
5166 * features/i386/i386-mpx-linux.xml: Remove.
5167 * features/i386/i386-mpx.xml: Remove.
5168 * features/i386/i386.xml: Remove.
5169 * features/i386/x32-avx-avx512-linux.xml: Remove.
5170 * features/i386/x32-avx-linux.xml: Remove.
5171 * features/i386/x32-linux.xml: Remove.
5172
5173 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5174
5175 * regformats/aarch64.dat: Remove.
5176 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5177 * regformats/i386/amd64-avx-linux.dat: Remove.
5178 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5179 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5180 * regformats/i386/amd64-linux.dat: Remove.
5181 * regformats/i386/amd64-mpx-linux.dat: Remove.
5182 * regformats/i386/amd64.dat: Remove.
5183 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5184 * regformats/i386/i386-avx-linux.dat: Remove.
5185 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5186 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5187 * regformats/i386/i386-linux.dat: Remove.
5188 * regformats/i386/i386-mmx-linux.dat: Remove.
5189 * regformats/i386/i386-mpx-linux.dat: Remove.
5190 * regformats/i386/i386.dat: Remove.
5191 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5192 * regformats/i386/x32-avx-linux.dat: Remove.
5193 * regformats/i386/x32-linux.dat: Remove.
5194
5195 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5196
5197 * aarch64-tdep.c: Remove xml self tests.
5198 * amd64-linux-tdep.c: Likewise.
5199 * amd64-tdep.c: Likewise.
5200 * i386-linux-tdep.c: Likewise.
5201 * i386-tdep.c: Likewise.
5202
5203 2019-07-03 Pedro Alves <palves@redhat.com>
5204
5205 PR cli/24732
5206 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5207 (pipe_cmd_option_defs): New.
5208 (make_pipe_cmd_options_def_group): New.
5209 (pipe_command): Use gdb::option::process_options.
5210 (pipe_command_completer): New function.
5211 (_initialize_cli_cmds): Install completer for "pipe" command.
5212
5213 2019-07-03 Pedro Alves <palves@redhat.com>
5214
5215 * cli/cli-option.c (union option_value) <string>: New field.
5216 (struct option_def_and_value): Add ctor, move ctor, dtor and
5217 use DISABLE_COPY_AND_ASSIGN.
5218 (option_def_and_value::clear_value): New.
5219 (parse_option, save_option_value_in_ctx, get_val_type_str)
5220 (add_setshow_cmds_for_options): Handle var_string.
5221 * cli-option.h (union option_def::var_address) <string>: New
5222 field.
5223 (struct string_option_def): New.
5224 * maint-test-options.c (struct test_options_opts): Add default
5225 ctor and use DISABLE_COPY_AND_ASSIGN.
5226 <string_opt>: New field.
5227 (test_options_opts::~test_options_opts): New.
5228 (test_options_opts::dump): Also dump "-string".
5229 (test_options_option_defs): Install "string.
5230
5231 2019-07-03 Pedro Alves <palves@redhat.com>
5232
5233 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5234 option_value with a null enumeration.
5235 (complete_options): Save the option values in the context.
5236 (save_option_value_in_ctx): New, factored out from ...
5237 (process_options): ... here.
5238 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5239 of the function.
5240 * maint-test-options.c (test_options_opts::dump): New, factored
5241 out from ...
5242 (maintenance_test_options_command_mode): ... here.
5243 (maintenance_test_options_command_completion_result): Delete.
5244 (maintenance_test_options_command_completion_text): Update
5245 comment.
5246 (maintenance_show_test_options_completion_result): Change
5247 prototype. Just print
5248 maintenance_test_options_command_completion_text.
5249 (save_completion_result): New.
5250 (maintenance_test_options_completer_mode): Pass options context to
5251 complete_options, and then save a dump.
5252 (_initialize_maint_test_options): Use add_cmd to install "maint
5253 show test-options-completion-result".
5254
5255 2019-07-03 Pedro Alves <palves@redhat.com>
5256
5257 * NEWS (New commands): Mention "with" and "maint with".
5258 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5259 (with_command, with_command_completer): New.
5260 (pipe_command): Adjust to new repeat_previous
5261 interface.
5262 (_initialize_cli_cmds): Install the "with" command and its "w"
5263 alias.
5264 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5265 declarations.
5266 * cli/cli-setshow.c (parse_cli_var_uinteger)
5267 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5268 argument strings for all var_types.
5269 (get_setshow_command_value_string): New, factored out from ...
5270 (do_show_command): ... this.
5271 * cli/cli-setshow.h: Include <string>.
5272 (get_setshow_command_value_string): Declare.
5273 * command.h (repeat_previous): Now returns const char *. Adjust
5274 comment.
5275 * maint.c: Include "cli/cli-cmds.h".
5276 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5277 (_initialize_maint_cmds): Register the "maintenance with" command.
5278 * top.c (repeat_previous): Move bits from pipe_command here:
5279 Return the saved command line, if any; error out if there's no
5280 command to relaunch.
5281
5282 2019-07-03 Pedro Alves <palves@redhat.com>
5283
5284 * NEWS (New commands): Mention "maint set/show test-settings"
5285 instead of "maint test-settings".
5286 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5287 (maintenance_test_settings_set_list): Rename to ...
5288 (maintenance_set_test_settings_list): ... this.
5289 (maintenance_test_settings_show_list): Rename to ...
5290 (maintenance_show_test_settings_list): ... this.
5291 (maintenance_test_settings_cmd): Delete.
5292 (maintenance_test_settings_set_cmd): ...
5293 (maintenance_set_test_settings_cmd): ... this.
5294 (maintenance_test_settings_show_cmd): ...
5295 (maintenance_show_test_settings_cmd): ... this.
5296 (maintenance_test_settings_show_value_cmd):
5297 (maintenance_show_test_settings_value_cmd): ... this.
5298 (_initialize_maint_test_settings): No longer install the "maint
5299 test-settings" prefix command. Rename "maint test-settings set"
5300 to "maint set test-settings", and "maint test-settings show" to
5301 "maint show test-settings". Adjust all subcommands.
5302
5303 2019-07-03 Pedro Alves <palves@redhat.com>
5304
5305 * maint-test-settings.c: Fix file's intro comment. Replace all
5306 references to "test-options" with references to "test-settings",
5307 in comments.
5308
5309 2019-07-03 Pedro Alves <palves@redhat.com>
5310
5311 * maint-test-settings.c (maintenance_test_settings_xxx)
5312 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5313 New.
5314 (maintenance_test_settings_enums): Use them.
5315 (maintenance_test_settings_enum): Default to
5316 maintenance_test_settings_xxx.
5317 (_initialize_maint_test_settings): Initialize
5318 MAINTENANCE_TEST_SETTINGS_FILENAME.
5319
5320 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5321
5322 * breakpoint.h (remove_breakpoints_inf): Change return type to
5323 void, move function documentation here.
5324 * breakpoint.c (remove_breakpoints_inf): Change return type to
5325 void, move function documentation to header.
5326
5327 2019-07-02 Pedro Alves <palves@redhat.com>
5328
5329 * NEWS (Completion improvements): Mention "info threads".
5330 * thread.c (struct info_threads_opts, info_threads_option_defs)
5331 (make_info_threads_options_def_group): New.
5332 (info_threads_command): Use gdb::option::process_options.
5333 (info_threads_command_completer): New.
5334 (_initialize_thread): Use gdb::option::build_help to build the
5335 help text for "info threads".
5336
5337 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5338
5339 * defs.h (generic_load): Move from here...
5340 * symfile.h (generic_load): ... to here. Rename name parameter
5341 to args.
5342 * symfile.c (generic_load): Add comment.
5343
5344 2019-07-01 Tom Tromey <tromey@adacore.com>
5345
5346 * dwarf2read.c
5347 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5348 declaration of without_params. Fix formatting.
5349
5350 2019-07-01 Tom Tromey <tromey@adacore.com>
5351
5352 * ada-exp.y (find_primitive_type): Update.
5353 * ada-lang.h (ada_lookup_symbol): Update.
5354 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5355 parameter.
5356 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5357
5358 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5359
5360 PR breakpoints/24541
5361 * gdbarch.c: Regenerate.
5362 * gdbarch.h: Regenerate.
5363 * gdbarch.sh: Add 'stap_adjust_register'.
5364 * i386-tdep.c: Include '<unordered_set>'.
5365 (i386_stap_adjust_register): New function.
5366 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5367 * stap-probe.c (stap_parse_register_operand): Call
5368 'gdbarch_stap_adjust_register'.
5369
5370 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5371
5372 PR python/24742
5373 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5374 * python/python.c (do_start_initialization): Use 'xmalloc'
5375 instead of 'PyMem_Malloc'.
5376
5377 2019-06-28 Tom Tromey <tromey@adacore.com>
5378
5379 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5380 for Ada.
5381
5382 2019-06-27 Tom Tromey <tromey@adacore.com>
5383
5384 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5385 objfile_key.
5386 (arm_find_mapping_symbol, arm_record_special_symbol)
5387 (_initialize_arm_tdep): Update.
5388 (arm_objfile_data_free): Remove.
5389
5390 2019-06-27 Tom Tromey <tromey@adacore.com>
5391
5392 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5393 to cp_print_static_field.
5394
5395 2019-06-26 Tom Tromey <tromey@adacore.com>
5396
5397 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5398 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5399 declare.
5400
5401 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5402
5403 * features/aarch64-core.c (create_feature_aarch64_core):
5404 Regenerate.
5405 * features/aarch64-core.xml: Add cpsr flags.
5406
5407 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5408
5409 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5410 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5411
5412 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5413
5414 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5415 field.
5416 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5417 use.
5418 (arm_record_special_symbol): Don't insert new symbol in sorted
5419 position, push it at the end.
5420
5421 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5422
5423 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5424 (arm_mapping_symbol_s): Remove.
5425 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5426 (arm_mapping_symbol_vec): New typedef.
5427 (struct arm_per_objfile): Add constructor.
5428 <section_maps>: Change type to
5429 std::unique_ptr<arm_mapping_symbol_vec[]>.
5430 (arm_compare_mapping_symbols): Remove.
5431 (arm_find_mapping_symbol): Adjust to section_maps type change.
5432 (arm_objfile_data_free): Call delete on arm_per_objfile.
5433 (arm_record_special_symbol): Adjust to section_maps type change.
5434 Allocate arm_per_objfile with new.
5435
5436 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5437
5438 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5439 with the command prefix.
5440
5441 2019-06-25 Tom Tromey <tom@tromey.com>
5442
5443 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5444 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5445
5446 2019-06-25 Tom Tromey <tom@tromey.com>
5447
5448 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5449 type.
5450 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5451 protected.
5452
5453 2019-06-25 Tom Tromey <tom@tromey.com>
5454
5455 * tui/tui-winsource.c
5456 (tui_source_window_base::set_is_exec_point_at): Add check against
5457 LOA_ADDRESS.
5458
5459 2019-06-25 Tom Tromey <tom@tromey.com>
5460
5461 * tui/tui-source.c (tui_set_source_content): Don't check before
5462 xfree.
5463 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5464
5465 2019-06-25 Tom Tromey <tom@tromey.com>
5466
5467 * tui/tui-winsource.h (tui_update_source_window_as_is)
5468 (tui_alloc_source_buffer, tui_line_is_displayed)
5469 (tui_addr_is_displayed): Change type of win_info.
5470 * tui/tui-winsource.c (tui_update_source_window_as_is)
5471 (tui_clear_source_content, tui_show_source_line)
5472 (tui_show_source_content, tui_source_window_base::refill)
5473 (tui_source_window_base::set_is_exec_point_at)
5474 (tui_source_window_base::set_is_exec_point_at)
5475 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5476 (tui_alloc_source_buffer, tui_line_is_displayed)
5477 (tui_addr_is_displayed): Change type of win_info. Update.
5478 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5479 (tui_source_window_base::do_make_visible_with_new_height):
5480 Update.
5481 * tui/tui-source.c (tui_set_source_content)
5482 (tui_set_source_content_nil)
5483 (tui_source_window::do_scroll_vertical): Update.
5484 * tui/tui-layout.c (show_layout): Update.
5485 * tui/tui-disasm.c (tui_set_disassem_content)
5486 (tui_disasm_window::do_scroll_vertical): Update.
5487 * tui/tui-data.h (tui_win_content): Remove.
5488 (struct tui_gen_win_info) <content, content_size>: Remove.
5489 (struct tui_source_element): Add initializers and destructor.
5490 (union tui_which_element, struct tui_win_element): Remove.
5491 (struct tui_source_window_base) <content>: New field.
5492 (struct tui_data_window): Remove destructor.
5493 (tui_alloc_content, tui_free_win_content)
5494 (tui_free_all_source_wins_content): Don't declare.
5495 * tui/tui-data.c (tui_initialize_static_data): Update.
5496 (init_content_element, tui_alloc_content): Remove.
5497 (~tui_gen_win_info): Update.
5498 (~tui_data_window, tui_free_all_source_wins_content)
5499 (tui_free_win_content, free_content, free_content_elements):
5500 Remove.
5501
5502 2019-06-25 Tom Tromey <tom@tromey.com>
5503
5504 * tui/tui-winsource.h (tui_clear_source_content)
5505 (tui_erase_source_content, tui_show_source_content): Change type
5506 of win_info.
5507 * tui/tui-winsource.c (tui_clear_source_content)
5508 (tui_erase_source_content, tui_show_source_content): Change type
5509 of win_info.
5510 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5511 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5512 win_info.
5513 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5514 win_info.
5515 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5516
5517 2019-06-25 Tom Tromey <tom@tromey.com>
5518
5519 * tui/tui-winsource.c (tui_clear_source_content)
5520 (tui_source_window_base::set_is_exec_point_at): Update.
5521 * tui/tui-source.c (tui_set_source_content_nil): Update.
5522 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5523 a bool.
5524 * tui/tui-data.c (init_content_element): Update.
5525
5526 2019-06-25 Tom Tromey <tom@tromey.com>
5527
5528 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5529 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5530 * tui/tui-layout.c (init_and_make_win): Update.
5531 * tui/tui.h (enum tui_win_type): Update.
5532 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5533 tui_win_is_auxillary.
5534 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5535 tui_win_is_auxillary.
5536
5537 2019-06-25 Tom Tromey <tom@tromey.com>
5538
5539 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5540 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5541 (tui_delete_data_content_windows, tui_display_all_data)
5542 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5543 Update.
5544 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5545 * tui/tui-regs.c (tui_last_regs_line_no)
5546 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5547 (tui_show_registers): Update.
5548 (tui_show_register_group): Return void. Update.
5549 (tui_display_registers_from, tui_display_reg_element_at_line)
5550 (tui_display_registers_from_line, tui_check_register_values):
5551 Update.
5552 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5553 member.
5554 (struct tui_data_window) <regs_content>: Now a std::vector.
5555 <regs_content_count>: Remove.
5556 (tui_add_content_elements, tui_free_data_content): Don't declare.
5557 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5558 (init_content_element): Remove DATA_WIN case. Add assert.
5559 (tui_add_content_elements): Remove.
5560 (tui_data_window): Update.
5561 (tui_free_data_content): Remove.
5562 (free_content_elements): Remove DATA_WIN case.
5563
5564 2019-06-25 Tom Tromey <tom@tromey.com>
5565
5566 * tui/tui-data.c (tui_data_item_window): Update.
5567 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5568 * tui/tui-windata.c (tui_display_all_data)
5569 (tui_display_data_from_line): Update.
5570 (tui_check_data_values): Remove.
5571 * tui/tui-regs.c (tui_show_register_group)
5572 (tui_display_reg_element_at_line): Update.
5573 * tui/tui-hooks.c (tui_register_changed)
5574 (tui_refresh_frame_and_register_information): Call
5575 tui_check_register_values.
5576 * tui/tui-data.h (struct tui_data_window) <data_content,
5577 data_content_count, data_type>: Remove.
5578 (enum tui_data_type): Remove.
5579
5580 * tui/tui-data.c (tui_data_window::clear_detail)
5581 (~tui_data_window): Update.
5582
5583 2019-06-25 Tom Tromey <tom@tromey.com>
5584
5585 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5586 declare.
5587 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5588 Rename from tui_first_data_item_displayed. Update.
5589 (tui_data_window::refresh_all)
5590 (tui_data_window::do_scroll_vertical): Update.
5591 * tui/tui-data.h (struct tui_data_window)
5592 <first_data_item_displayed>: Declare new method.
5593
5594 2019-06-25 Tom Tromey <tom@tromey.com>
5595
5596 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5597 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5598 contents...
5599 (tui_initialize_static_data): ...here.
5600
5601 2019-06-25 Tom Tromey <tom@tromey.com>
5602
5603 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5604 (tui_display_registers_from, tui_check_register_values): Update.
5605 (tui_display_register): Remove win_info parameter; update.
5606 (tui_get_register): Change type of parameters.
5607 * tui/tui-data.h (struct tui_data_element): Remove.
5608 (union tui_which_element) <data>: Remove.
5609 <data_window>: Change type.
5610 (struct tui_data_item_window): New.
5611 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5612 case. Add assert.
5613 (~tui_data_item_window): New destructor.
5614 (free_content_elements): Remove DATA_ITEM_WIN case.
5615
5616 2019-06-25 Tom Tromey <tom@tromey.com>
5617
5618 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5619 Remove.
5620
5621 2019-06-25 Tom Tromey <tom@tromey.com>
5622
5623 * tui/tui-data.h (struct tui_command_element): Remove.
5624 (union tui_which_element) <command>: Remove.
5625 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5626 assert.
5627 (free_content_elements): Remove CMD_WIN case.
5628
5629 2019-06-25 Tom Tromey <tom@tromey.com>
5630
5631 * tui/tui-layout.c (tui_set_layout): Update.
5632 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5633 * tui/tui-data.c (layout_def): Update.
5634
5635 2019-06-25 Tom Tromey <tom@tromey.com>
5636
5637 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5638 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5639 (tui_source_window_base::set_new_height): Update.
5640 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5641 Update.
5642 (tui_set_locator_fullname, tui_set_locator_info)
5643 (tui_show_frame_info): Update.
5644 * tui/tui-source.c (tui_set_source_content)
5645 (tui_source_is_displayed): Update.
5646 * tui/tui-layout.c (show_source_disasm_command, show_data)
5647 (show_source_or_disasm_and_command): Update.
5648 * tui/tui-disasm.c (tui_set_disassem_content)
5649 (tui_get_begin_asm_address): Update.
5650 * tui/tui-data.h (struct tui_locator_element): Remove.
5651 (union tui_which_element) <locator>: Remove.
5652 (struct tui_locator_window): New.
5653 (tui_locator_win_info_ptr): Change return type.
5654 * tui/tui-data.c (_locator): Change type.
5655 (tui_locator_win_info_ptr): Change return type.
5656 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5657 (tui_alloc_content): Add assert.
5658
5659 2019-06-25 Tom Tromey <tom@tromey.com>
5660
5661 * tui/tui-winsource.c
5662 (tui_exec_info_window::maybe_allocate_content): New method.
5663 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5664 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5665 (make_source_or_disasm_window): Add cast.
5666 * tui/tui-data.h (union tui_which_element) <simple_string>:
5667 Remove.
5668 (struct tui_source_info): New.
5669 (struct tui_source_window_base) <execution_info>: Change type.
5670 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5671 case, and add assert.
5672 (tui_alloc_content): Add assert.
5673
5674 2019-06-25 Tom Tromey <tom@tromey.com>
5675
5676 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5677 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5678 * tui/tui-data.c (tui_alloc_win_info): Remove.
5679
5680 2019-06-25 Tom Tromey <tom@tromey.com>
5681
5682 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5683 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5684 can_highlight.
5685
5686 2019-06-25 Tom Tromey <tom@tromey.com>
5687
5688 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5689 make_visible_with_new_height method.
5690 (tui_win_info::make_visible_with_new_height): New method.
5691 (tui_source_window_base::do_make_visible_with_new_height)
5692 (tui_data_window::do_make_visible_with_new_height)
5693 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5694 (make_visible_with_new_height): Remove.
5695 (tui_resize_all, tui_adjust_win_heights): Use
5696 make_visible_with_new_height method.
5697 * tui/tui-data.h (struct tui_win_info)
5698 <do_make_visible_with_new_height, make_visible_with_new_height>:
5699 New methods.
5700 (struct tui_source_window_base, struct tui_data_window)
5701 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5702 methods.
5703
5704 2019-06-25 Tom Tromey <tom@tromey.com>
5705
5706 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5707 method.
5708 (update_tab_width): Call update_tab_width method.
5709 * tui/tui-data.h (struct tui_win_info)
5710 (struct tui_source_window_base) <update_tab_width>: New methods.
5711
5712 2019-06-25 Tom Tromey <tom@tromey.com>
5713
5714 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5715 parameter.
5716 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5717 parameter.
5718 (tui_gen_win_info::make_visible): Update.
5719 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5720 parameter.
5721 * tui/tui-data.h (enum tui_box): New enum.
5722 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5723
5724 2019-06-25 Tom Tromey <tom@tromey.com>
5725
5726 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5727 init_and_make_win for EXEC_INFO_WIN.
5728 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5729 longer inline.
5730 (struct tui_win_info) <~tui_win_info>: Inline.
5731 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5732 Don't declare.
5733 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5734 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5735 Remove.
5736 (tui_initialize_static_data): Update.
5737 (~tui_gen_win_info): Handle more cleanup here.
5738 (~tui_source_window_base): Delete "execution_info".
5739 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5740
5741 2019-06-25 Tom Tromey <tom@tromey.com>
5742
5743 * tui/tui-layout.c (make_command_window): Don't set
5744 can_highlight.
5745 (show_source_disasm_command): Call the reset method.
5746 (show_data): Don't set can_highlight. Call the reset method.
5747 (tui_gen_win_info::reset): Rename from init_gen_win_info
5748 (init_and_make_win): Simplify. Return tui_gen_win_info.
5749 (show_source_or_disasm_and_command): Call the reset method.
5750 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5751 (struct tui_cmd_window): Set can_highlight.
5752
5753 2019-06-25 Tom Tromey <tom@tromey.com>
5754
5755 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5756 from make_visible.
5757 (tui_make_visible, tui_make_invisible): Rewrite.
5758 (tui_win_info::make_visible): Remove.
5759 (tui_source_window_base::make_visible): Update.
5760 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5761 method. Moved from...
5762 (struct tui_win_info) <make_visible>: ...here.
5763
5764 2019-06-25 Tom Tromey <tom@tromey.com>
5765
5766 * tui/tui-winsource.c
5767 (tui_source_window_base::do_scroll_horizontal): Remove direction
5768 parameter.
5769 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5770 direction parameter.
5771 * tui/tui-win.c (tui_win_info::forward_scroll)
5772 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5773 (tui_win_info::right_scroll): Update.
5774 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5775 direction parameter.
5776 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5777 direction parameter.
5778 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5779 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5780 Remove direction parameter.
5781 (struct tui_source_window_base, struct tui_source_window)
5782 (struct tui_disasm_window, struct tui_data_window)
5783 (struct tui_cmd_window): Update.
5784
5785 2019-06-25 Tom Tromey <tom@tromey.com>
5786
5787 * tui/tui-winsource.h (tui_set_exec_info_content)
5788 (tui_show_exec_info_content, tui_erase_exec_info_content)
5789 (tui_clear_exec_info_content, tui_update_exec_info): Change
5790 argument to tui_source_window_base.
5791 * tui/tui-winsource.c (tui_set_exec_info_content)
5792 (tui_show_exec_info_content, tui_erase_exec_info_content)
5793 (tui_clear_exec_info_content, tui_update_exec_info): Change
5794 argument to tui_source_window_base.
5795
5796 2019-06-25 Tom Tromey <tom@tromey.com>
5797
5798 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5799 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5800
5801 2019-06-25 Tom Tromey <tom@tromey.com>
5802
5803 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5804 check.
5805
5806 2019-06-25 Tom Tromey <tom@tromey.com>
5807
5808 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5809 type to void.
5810 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5811 type to void.
5812 * tui/tui-source.c (tui_set_source_content): Update.
5813 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5814
5815 2019-06-25 Tom Tromey <tom@tromey.com>
5816
5817 * tui/tui-win.c (window_name_completer, tui_set_focus)
5818 (tui_all_windows_info): Use name method.
5819 * tui/tui-data.h (struct tui_gen_win_info)
5820 (struct tui_source_window, struct tui_disasm_window)
5821 (struct tui_data_window, struct tui_cmd_window) <name>: New
5822 method.
5823 (tui_win_name): Don't declare.
5824 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5825 (tui_win_name): Remove.
5826
5827 2019-06-25 Tom Tromey <tom@tromey.com>
5828
5829 * tui/tui-winsource.h (tui_update_source_window)
5830 (tui_update_source_window_as_is): Change parameter type.
5831 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5832 to be a tui_source_window_base.
5833 (tui_update_source_window_as_is): Likewise.
5834 * tui/tui-win.c (make_visible_with_new_height): Update.
5835
5836 2019-06-25 Tom Tromey <tom@tromey.com>
5837
5838 * tui/tui-winsource.c (tui_erase_source_content)
5839 (tui_show_source_content, tui_show_exec_info_content)
5840 (tui_erase_exec_info_content): Use refresh_window method.
5841 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5842 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5843 from tui_refresh_win.
5844 (tui_data_window::refresh_window): New method.
5845 (tui_win_info::refresh, tui_source_window_base::refresh)
5846 (tui_refresh_all): Use refresh_window method.
5847 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5848 method.
5849 * tui/tui-regs.c (tui_display_register): Call refresh_window
5850 method.
5851 * tui/tui-layout.c (show_source_disasm_command)
5852 (show_source_or_disasm_and_command): Call refresh_window method.
5853 * tui/tui-data.h (struct tui_gen_win_info)
5854 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5855 New method.
5856
5857 2019-06-25 Tom Tromey <tom@tromey.com>
5858
5859 * tui/tui.c (tui_rl_other_window, tui_enable)
5860 (tui_is_window_visible, tui_get_command_dimension): Update.
5861 * tui/tui-winsource.c (tui_update_source_window_as_is)
5862 (tui_clear_source_content, tui_erase_source_content)
5863 (tui_show_source_line, tui_source_window_base::refill)
5864 (tui_source_window_base::do_scroll_horizontal)
5865 (tui_source_window_base::set_is_exec_point_at)
5866 (tui_update_breakpoint_info, tui_set_exec_info_content)
5867 (tui_alloc_source_buffer, tui_line_is_displayed)
5868 (tui_addr_is_displayed): Update.
5869 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5870 (tui_check_and_display_highlight_if_needed)
5871 (tui_win_info::make_visible, tui_win_info::refresh)
5872 (tui_refresh_all): Update.
5873 * tui/tui-windata.c (tui_first_data_item_displayed)
5874 (tui_delete_data_content_windows, tui_erase_data_content)
5875 (tui_display_all_data, tui_data_window::refresh_all)
5876 (tui_check_data_values): Update.
5877 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5878 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5879 (tui_win_info::backward_scroll, tui_refresh_all_win)
5880 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5881 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5882 (tui_source_window_base::set_new_height)
5883 (tui_data_window::set_new_height)
5884 (make_invisible_and_set_new_height)
5885 (make_visible_with_new_height, new_height_ok)
5886 (parse_scrolling_args): Update.
5887 * tui/tui-stack.c (tui_show_frame_info): Update.
5888 * tui/tui-source.c (tui_set_source_content)
5889 (tui_set_source_content_nil, tui_source_is_displayed)
5890 (tui_source_window::do_scroll_vertical): Update.
5891 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5892 (tui_display_registers_from, tui_display_reg_element_at_line)
5893 (tui_check_register_values, tui_reg_command): Update.
5894 * tui/tui-layout.c (tui_default_win_height)
5895 (show_source_disasm_command, show_data, init_and_make_win)
5896 (show_source_or_disasm_and_command): Update.
5897 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5898 (tui_redisplay_readline, tui_mld_flush)
5899 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5900 (tui_getc): Update.
5901 * tui/tui-disasm.c (tui_set_disassem_content)
5902 (tui_disasm_window::do_scroll_vertical): Update.
5903 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5904 Now virtual.
5905 (struct tui_win_info): Derive from tui_gen_win_info.
5906 <~tui_win_info>: Mark as override.
5907 <generic>: Remove member.
5908 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5909 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5910 (~tui_data_window, ~tui_win_info)
5911 (tui_free_all_source_wins_content): Update.
5912 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5913
5914 2019-06-25 Tom Tromey <tom@tromey.com>
5915
5916 * tui/tui-layout.c (init_and_make_win): Use new.
5917 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5918 destructor, initializers.
5919 (tui_alloc_generic_win_info): Don't declare.
5920 * tui/tui-data.c (_locator): Add argument to constructor.
5921 (source_win, disasm_win): New globals.
5922 (exec_info): Remove.
5923 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5924 Update.
5925 (tui_alloc_generic_win_info): Remove.
5926 (init_content_element): Use new.
5927 (tui_win_info::tui_win_info): Update.
5928 (free_content_elements) <case DATA_WIN>: Use delete.
5929
5930 2019-06-25 Tom Tromey <tom@tromey.com>
5931
5932 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5933 * tui/tui-windata.c (tui_first_data_item_displayed)
5934 (tui_delete_data_content_windows): Update.
5935 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5936 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5937 (tui_display_registers_from, tui_check_register_values): Update.
5938 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5939 pointer.
5940 * tui/tui-data.c (init_content_element): Update. Allocate the new
5941 window.
5942 (tui_free_data_content): Update.
5943 (free_content_elements) <case DATA_WIN>: Free the window.
5944
5945 2019-06-25 Tom Tromey <tom@tromey.com>
5946
5947 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5948 Update.
5949 * tui/tui-layout.c (make_command_window)
5950 (show_source_disasm_command, show_data, init_and_make_win)
5951 (show_source_or_disasm_and_command): Update.
5952 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5953 method.
5954 <can_highight, is_highlighted>: Now bool.
5955 (tui_set_win_highlight): Don't declare.
5956 * tui/tui-data.c (tui_set_win_highlight): Remove.
5957
5958 2019-06-25 Tom Tromey <tom@tromey.com>
5959
5960 * tui/tui-wingeneral.c (make_visible): Remove check of window
5961 type.
5962
5963 2019-06-25 Tom Tromey <tom@tromey.com>
5964
5965 * tui/tui-win.c (tui_win_info::max_height)
5966 (tui_cmd_window::max_height): New methods.
5967 (new_height_ok): Call max_height.
5968 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5969 <max_height>: New method.
5970
5971 2019-06-25 Tom Tromey <tom@tromey.com>
5972
5973 * tui/tui-win.c (tui_source_window_base::set_new_height)
5974 (tui_data_window::set_new_height): New methods.
5975 (make_invisible_and_set_new_height): Call set_new_height method.
5976 * tui/tui-data.h (struct tui_win_info)
5977 (struct tui_source_window_base, struct tui_data_window)
5978 <set_new_height>: New method.
5979
5980 2019-06-25 Tom Tromey <tom@tromey.com>
5981
5982 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5983 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5984 tui_refresh_data_win.
5985 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5986 method.
5987 (tui_refresh_all_win): Call the refresh_all method.
5988 (tui_set_focus): Likewise.
5989 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5990 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5991 Likewise.
5992
5993 2019-06-25 Tom Tromey <tom@tromey.com>
5994
5995 * tui/tui-winsource.h (tui_refill_source_window)
5996 (tui_set_is_exec_point_at): Don't declare.
5997 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5998 (tui_source_window_base::refill): Rename from
5999 tui_refill_source_window.
6000 (tui_source_window_base::do_scroll_horizontal): Update.
6001 (tui_source_window_base::set_is_exec_point_at): Rename from
6002 tui_set_is_exec_point_at.
6003 (tui_update_all_breakpoint_info): Update.
6004 * tui/tui-stack.c (tui_show_frame_info): Update.
6005 * tui/tui-layout.c (show_data): Add cast.
6006 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6007 * tui/tui-data.h (struct tui_source_window_base) <refill,
6008 set_is_exec_point_at>: New methods.
6009 (tui_source_windows, tui_add_to_source_windows): Update types.
6010 (tui_add_to_source_windows): Remove redundant declaration.
6011 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6012 (tui_source_windows): Change return type.
6013 (tui_clear_source_windows_detail): Update.
6014 (tui_add_to_source_windows): Change type of parameter.
6015 (tui_free_all_source_wins_content): Update.
6016
6017 2019-06-25 Tom Tromey <tom@tromey.com>
6018
6019 * tui/tui-wingeneral.c (tui_win_info::refresh)
6020 (tui_source_window_base::refresh): New methods.
6021 (tui_refresh_all): Call the refresh method.
6022 * tui/tui-data.h (struct tui_win_info)
6023 (struct tui_source_window_base) <refresh>: New method.
6024
6025 2019-06-25 Tom Tromey <tom@tromey.com>
6026
6027 * tui/tui.h (tui_is_window_visible): Return bool.
6028 * tui/tui.c (tui_is_window_visible): Return bool.
6029 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6030 (tui_make_visible, tui_make_invisible)
6031 (tui_win_info::make_visible)
6032 (tui_source_window_base::make_visible, make_all_visible)
6033 (tui_make_all_visible, tui_make_all_invisible): Update.
6034 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6035 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6036 bool.
6037 (struct tui_win_info, struct tui_source_window_base)
6038 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6039 * tui/tui-data.c (tui_init_generic_part): Update.
6040
6041 2019-06-25 Tom Tromey <tom@tromey.com>
6042
6043 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6044 (tui_source_window_base::make_visible): New methods.
6045 (make_all_visible): Make method call.
6046 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6047 (struct tui_source_window_base, struct tui_cmd_window): Override
6048 make_visible.
6049 (tui_win_is_source_type): Don't declare.
6050 * tui/tui-data.c (tui_win_is_source_type): Remove.
6051
6052 2019-06-25 Tom Tromey <tom@tromey.com>
6053
6054 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6055 NULL check.
6056
6057 2019-06-25 Tom Tromey <tom@tromey.com>
6058
6059 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6060 Inline constructor. Add initializers for members.
6061 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6062 constructors; now inline in class.
6063
6064 2019-06-25 Tom Tromey <tom@tromey.com>
6065
6066 * tui/tui-regs.c (tui_show_registers): Update.
6067 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6068 bool.
6069 * tui/tui-data.c (tui_data_window::clear_detail)
6070 (tui_data_window): Update.
6071
6072 2019-06-25 Tom Tromey <tom@tromey.com>
6073
6074 * tui/tui-windata.c (tui_display_all_data)
6075 (tui_display_data_from_line, tui_display_data_from)
6076 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6077 Update.
6078 * tui/tui-regs.c (tui_last_regs_line_no)
6079 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6080 (tui_show_registers, tui_show_register_group)
6081 (tui_display_registers_from, tui_display_reg_element_at_line)
6082 (tui_display_registers_from_line, tui_check_register_values)
6083 (tui_reg_next, tui_reg_prev): Update.
6084 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6085 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6086 tui_data_window.
6087 (struct tui_win_info) <detail>: Remove. Add new fields from
6088 tui_data_info.
6089 (TUI_DATA_WIN): Add cast.
6090 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6091 (~tui_data_window): Simplify.
6092
6093 2019-06-25 Tom Tromey <tom@tromey.com>
6094
6095 * tui/tui-layout.c (show_source_disasm_command)
6096 (show_source_or_disasm_and_command): Update.
6097 * tui/tui-io.c (update_cmdwin_start_line)
6098 (tui_redisplay_readline): Update.
6099 * tui/tui-data.h (struct tui_command_info): Remove.
6100 (struct tui_win_info) <detail>: Remove command_info member.
6101 (struct tui_data_window) <start_line>: New member, from
6102 tui_command_info.
6103 (TUI_CMD_WIN): Add casts.
6104
6105 2019-06-25 Tom Tromey <tom@tromey.com>
6106
6107 * tui/tui-winsource.c (tui_update_source_window)
6108 (tui_refill_source_window)
6109 (tui_source_window_base::do_scroll_horizontal)
6110 (tui_update_breakpoint_info, tui_set_exec_info_content)
6111 (tui_show_exec_info_content, tui_erase_exec_info_content)
6112 (tui_clear_exec_info_content): Update.
6113 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6114 Update.
6115 * tui/tui-win.c (make_invisible_and_set_new_height)
6116 (make_visible_with_new_height): Update.
6117 * tui/tui-source.c (tui_set_source_content)
6118 (tui_show_symtab_source): Update.
6119 * tui/tui-layout.c (extract_display_start_addr)
6120 (show_source_disasm_command, show_data)
6121 (make_source_or_disasm_window)
6122 (show_source_or_disasm_and_command): Update.
6123 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6124 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6125 "gdbarch".
6126 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6127 to tui_source_window_base.
6128 (struct tui_win_info) <detail>: Remove source_info member.
6129 (struct tui_source_window_base) <has_locator>: Inline.
6130 Move contents from tui_source_info; rename has_locator member to
6131 m_has_locator.
6132 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6133 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6134 header file.
6135 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6136 Simplify.
6137 (tui_free_all_source_wins_content): Cast to
6138 tui_source_window_base.
6139
6140 2019-06-25 Tom Tromey <tom@tromey.com>
6141
6142 * tui/tui-win.c (make_invisible_and_set_new_height)
6143 (make_visible_with_new_height): Call has_locator method.
6144 * tui/tui-layout.c (show_source_disasm_command, show_data)
6145 (show_source_or_disasm_and_command): Update for bool change.
6146 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6147 (tui_win_info) <has_locator>: New method.
6148 (struct tui_source_window_base) <has_locator>: New method.
6149 (tui_win_has_locator): Don't declare.
6150 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6151 from tui_win_has_locator.
6152 (tui_source_window_base): Use false, not FALSE.
6153
6154 2019-06-25 Tom Tromey <tom@tromey.com>
6155
6156 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6157 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6158 clear_detail method directly.
6159 (tui_clear_win_detail): Remove.
6160
6161 2019-06-25 Tom Tromey <tom@tromey.com>
6162
6163 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6164 "this", not TUI_DISASM_WIN.
6165
6166 2019-06-25 Tom Tromey <tom@tromey.com>
6167
6168 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6169 declare.
6170 * tui/tui-winsource.c
6171 (tui_source_window_base::do_scroll_horizontal): Rename from
6172 tui_horizontal_source_scroll.
6173 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6174 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6175 from tui_vertical_data_scroll.
6176 * tui/tui-win.h (tui_scroll): Don't declare.
6177 * tui/tui-win.c (tui_win_info::forward_scroll)
6178 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6179 (tui_win_info::right_scroll): Rename and update.
6180 (tui_scroll_forward_command, tui_scroll_backward_command)
6181 (tui_scroll_left_command, tui_scroll_right_command): Update.
6182 (tui_scroll): Remove.
6183 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6184 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6185 from tui_vertical_source_scroll.
6186 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6187 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6188 from tui_vertical_disassem_scroll.
6189 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6190 do_scroll_horizontal>: New methods.
6191 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6192 Likewise.
6193 (struct tui_source_window_base): Add do_scroll_horizontal.
6194 (struct tui_source_window, struct tui_disasm_window): Add
6195 do_scroll_vertical.
6196 (struct tui_data_window, struct tui_cmd_window): Add
6197 do_scroll_horizontal and do_scroll_vertical.
6198 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6199
6200 2019-06-25 Tom Tromey <tom@tromey.com>
6201
6202 * tui/tui-data.h (struct tui_source_window_base): New struct.
6203 (struct tui_source_window): Derive from tui_source_window_base.
6204 (struct tui_disasm_window): New struct.
6205 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6206 from tui_source_window::clear_detail.
6207 (tui_source_window_base): Rename from tui_source_window.
6208 (~tui_source_window_base): Rename from ~tui_source_window.
6209 (tui_alloc_win_info): Create a tui_disasm_window.
6210
6211 2019-06-25 Tom Tromey <tom@tromey.com>
6212
6213 * tui/tui-data.h (struct tui_source_window)
6214 (struct tui_data_window): Declare destructors.
6215 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6216 destructors.
6217 (tui_win_info): Simplify.
6218
6219 2019-06-25 Tom Tromey <tom@tromey.com>
6220
6221 * tui/tui-winsource.c (tui_display_main)
6222 (tui_update_source_windows_with_addr)
6223 (tui_update_all_breakpoint_info): Update.
6224 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6225 (new_height_ok, parse_scrolling_args): Update.
6226 * tui/tui-stack.c (tui_show_frame_info): Update.
6227 * tui/tui-data.h (struct tui_list): Remove.
6228 (tui_source_windows): Return a reference to a std::vector.
6229 * tui/tui-data.c (source_windows): Now a std::vector.
6230 (tui_source_windows): Change return type.
6231 (tui_clear_source_windows): Rewrite.
6232 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6233 (tui_free_all_source_wins_content): Rewrite.
6234
6235 2019-06-25 Tom Tromey <tom@tromey.com>
6236
6237 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6238 (struct tui_data_window, struct tui_cmd_window): Declare
6239 clear_detail method.
6240 * tui/tui-data.c (tui_source_window::clear_detail)
6241 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6242 methods.
6243 (tui_clear_win_detail): Simplify.
6244
6245 2019-06-25 Tom Tromey <tom@tromey.com>
6246
6247 * tui/tui-layout.c (make_source_window, make_disasm_window)
6248 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6249 Return the new window.
6250 (show_source_disasm_command, show_data)
6251 (show_source_or_disasm_and_command): Update.
6252
6253 2019-06-25 Tom Tromey <tom@tromey.com>
6254
6255 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6256 parameter. Return the new window.
6257 (show_source_disasm_command): Update and remove NULL check.
6258 (show_source_or_disasm_and_command): Update.
6259
6260 2019-06-25 Tom Tromey <tom@tromey.com>
6261
6262 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6263
6264 2019-06-25 Tom Tromey <tom@tromey.com>
6265
6266 * tui/tui-data.h (struct tui_win_info): Make constructor
6267 protected. Make destructor virtual. Add initializers.
6268 (tui_source_window, tui_data_window, tui_cmd_window): New
6269 classes.
6270 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6271 constructor. Add "type" parameter.
6272 (tui_source_window, tui_data_window, tui_cmd_window): New
6273 constructors.
6274 (tui_alloc_win_info): Instantiate the appropriate subclass.
6275
6276 2019-06-25 Tom Tromey <tom@tromey.com>
6277
6278 * tui/tui-win.c (tui_resize_all): Use delete.
6279 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6280 destructor.
6281 (tui_free_window): Don't declare.
6282 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6283 Update.
6284
6285 2019-06-25 Tom Tromey <tom@tromey.com>
6286
6287 * tui/tui-data.h (struct tui_win_info): Add constructor.
6288 * tui/tui-data.c (tui_alloc_win_info): Use new.
6289 (tui_free_window): Use delete.
6290
6291 2019-06-22 Tom Tromey <tom@tromey.com>
6292
6293 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6294 declare.
6295 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6296
6297 2019-06-22 Tom Tromey <tom@tromey.com>
6298
6299 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6300 declare.
6301 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6302
6303 2019-06-22 Tom de Vries <tdevries@suse.de>
6304
6305 * dwarf2read.c (create_addrmap_from_aranges)
6306 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6307 instead of '%zu'.
6308
6309 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6310
6311 * dwarf2read.h (dwarf2_section_info_def): Remove.
6312 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6313 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6314 std::vector<dwarf2_section_info>.
6315 (struct dwo_file) <~dwo_file>: Remove.
6316 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6317 types field.
6318 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6319 (dwarf2_read_debug_names): Likewise.
6320 (create_debug_types_hash_table): Change parameter type to
6321 array_view, adjust code accordingly.
6322 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6323 (partial_die_info::fixup): Likewise.
6324 (determine_prefix): Likewise.
6325 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6326
6327 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6328
6329 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6330 gdb_bfd_ref_ptr.
6331 <~dwo_file>: Remove call to gdb_bfd_unref.
6332 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6333 gdb_bfd_ref_ptr::get.
6334
6335 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6336
6337 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6338 type to htab_up.
6339 * dwarf2read.c (struct dwo_file): Initialize fields.
6340 <~dwo_file>: New.
6341 (free_dwo_file): Remove, move content to ~dwo_file.
6342 (struct dwo_file_deleter): Remove.
6343 (dwo_file_up>: Remove custom deleter.
6344 (free_dwo_files): Remove.
6345 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6346 dwo_files.
6347 (process_skeletonless_type_units): Call unique_ptr::get.
6348 (allocate_dwo_file_hash_table): Add deleter to created hash
6349 table. Change return type to htab_up.
6350 (lookup_dwo_file_slot): Don't memset dwo_file, call
6351 unique_ptr::get.
6352 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6353 (create_dwo_unit_in_dwp_v2): Likewise.
6354 (open_and_init_dwo_file): Likewise.
6355 (free_dwo_file_from_slot): Remove.
6356
6357 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6358
6359 * dwarf2read.h (struct dwarf2_section_info) <readin,
6360 is_virtual>: Change type to bool.
6361 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6362 true instead of 1.
6363
6364 2019-06-19 Tom Tromey <tom@tromey.com>
6365
6366 * tui/tui-data.h (tui_init_content_element): Don't declare.
6367
6368 2019-06-19 Tom Tromey <tom@tromey.com>
6369
6370 * tui/tui-data.h (tui_init_win_info): Don't declare.
6371
6372 2019-06-19 Tom de Vries <tdevries@suse.de>
6373
6374 * dwarf2read.h (abstract_to_concrete): Change type to
6375 std::unordered_map<sect_offset, std::vector<sect_offset>,
6376 gdb::hash_enum<sect_offset>>.
6377
6378 2019-06-19 Tom Tromey <tromey@adacore.com>
6379
6380 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6381 EVAL_AVOID_SIDE_EFFECTS specially.
6382
6383 2019-06-19 Tom Tromey <tromey@adacore.com>
6384
6385 * source-cache.c (highlighter): New global.
6386 (source_cache::get_source_lines): Create a highlighter on demand.
6387
6388 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6389
6390 * defs.h (deprecated_interactive_hook): Delete declaration.
6391 * interps.c (clear_interpreter_hooks): Remove use of
6392 deprecated_interactive_hook.
6393 * top.c (deprecated_interactive_hook): Delete definition.
6394 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6395
6396 2019-06-18 Tom de Vries <tdevries@suse.de>
6397
6398 PR gdb/24515
6399 * dwarf2read.h (abstract_to_concrete): Change type from
6400 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6401 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6402 * dwarf2read.c (read_variable): Update.
6403 (dwarf2_fetch_die_loc_sect_off): Update.
6404
6405 2019-06-17 Tom de Vries <tdevries@suse.de>
6406
6407 PR gdb/24617
6408 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6409 accessing parent[parent_len - 1].
6410
6411 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6412
6413 PR gdb/24364
6414 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6415 call dtrace_process_dof with NULL dof.
6416
6417 2019-06-16 Tom de Vries <tdevries@suse.de>
6418
6419 PR gdb/24445
6420 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6421
6422 2019-06-16 Tom Tromey <tom@tromey.com>
6423
6424 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6425 (make_all_visible): Use address of member.
6426
6427 2019-06-16 Tom Tromey <tom@tromey.com>
6428
6429 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6430 (tui_free_window, free_content, free_content_elements): Remove
6431 unnecessary cast.
6432 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6433 cast.
6434 * tui/tui-regs.c (tui_show_register_group)
6435 (tui_display_registers_from, tui_display_reg_element_at_line):
6436 Remove unnecessary cast.
6437
6438 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6439
6440 * linux-nat.c (normal_mask): Delete.
6441 (_initialize_linux_nat): Don't initialise normal_mask.
6442
6443 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6444
6445 PR gdb/24445
6446 * dwarf-index-write.h (write_psymtabs_to_index): Add
6447 dwz_basename parameter.
6448 * dwarf-index-write.c (write_gdbindex): Move file writing to
6449 write_gdbindex_1. Change return type void.
6450 (assert_file_size): Move up, remove filename parameter.
6451 (write_gdbindex_1): New function.
6452 (write_debug_names): Change return type to void, call
6453 assert_file_size.
6454 (struct index_wip_file): New struct.
6455 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6456 file logic to index_wip_file. Write index for dwz file if
6457 needed.
6458 (save_gdb_index_command): Pass basename of dwz file, if present.
6459 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6460 build-id of dwz file, if present.
6461 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6462 (dwarf2_get_dwz_file): Likewise.
6463 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6464 (dwarf2_get_dwz_file): Likewise.
6465
6466 2019-06-16 Tom Tromey <tom@tromey.com>
6467
6468 * coffread.c (process_coff_symbol): Use xstrdup.
6469 * value.c (create_internalvar): Use xstrdup.
6470
6471 2019-06-16 Tom Tromey <tom@tromey.com>
6472
6473 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6474 * breakpoint.c (stopin_command, stopat_command)
6475 (until_break_command, decode_location_default): Remove unnecessary
6476 cast.
6477 * utils.c (subset_compare): Remove unnecessary cast.
6478 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6479 cast.
6480 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6481 cast.
6482 * infcmd.c (path_command): Remove unnecessary cast.
6483 * coffread.c (decode_type): Remove unnecessary cast.
6484 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6485 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6486 * tui/tui-stack.c (tui_show_locator_content)
6487 (tui_show_frame_info): Remove unnecessary cast.
6488 * tui/tui-win.c (tui_scroll_forward_command)
6489 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6490 (parse_scrolling_args): Remove unnecessary cast.
6491 * tui/tui-data.c (init_win_info, tui_del_window)
6492 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6493 (free_content_elements): Remove unnecessary cast.
6494 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6495 unnecessary cast.
6496 * tui/tui-source.c (tui_set_source_content)
6497 (tui_vertical_source_scroll): Remove unnecessary cast.
6498 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6499 cast.
6500 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6501 * tui/tui-regs.c (tui_display_registers_from)
6502 (tui_display_register): Remove unnecessary cast.
6503 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6504 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6505 (make_visible): Remove unnecessary cast.
6506 * tui/tui-winsource.c (tui_erase_source_content)
6507 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6508 unnecessary cast.
6509 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6510 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6511 * stabsread.c (read_type, read_array_type, read_range_type):
6512 Remove unnecessary cast.
6513 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6514 (parse_symbol, parse_type, upgrade_type, parse_external)
6515 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6516 unnecessary cast.
6517 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6518
6519 2019-06-16 Tom Tromey <tom@tromey.com>
6520
6521 * tui/tui-data.c (tui_alloc_generic_win_info)
6522 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6523 checks.
6524
6525 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6526 Andrew Burgess <andrew.burgess@embecosm.com>
6527
6528 * f-typeprint.c (f_print_type): Don't return early for not
6529 associated or not allocated types.
6530 (f_type_print_varspec_suffix): Add print_rank parameter and print
6531 ranks of array types in case they dangling.
6532 (f_type_print_base): Add print_rank parameter.
6533
6534 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6535
6536 * NEWS: Mention new MI commands.
6537 * break-catch-throw.c (enum exception_event_kind): Move to
6538 breakpoint.h.
6539 (print_mention_exception_catchpoint): Output text as a single
6540 message.
6541 (catch_exception_command_1): Rename to...
6542 (catch_exception_event): ...this, make non-static, update header
6543 command, and change some parameter types.
6544 (catch_catch_command): Update for changes to
6545 catch_exception_command_1.
6546 (catch_throw_command): Likewise.
6547 (catch_rethrow_command): Likewise.
6548 * breakpoint.c (enum exception_event_kind): Delete.
6549 * breakpoint.h (enum exception_event_kind): Moved here from
6550 break-catch-throw.c.
6551 (catch_exception_event): Declare.
6552 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6553 (mi_cmd_catch_throw): New function.
6554 (mi_cmd_catch_rethrow): New function.
6555 (mi_cmd_catch_catch): New function.
6556 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6557 'catch-catch' entries.
6558 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6559 (mi_cmd_catch_rethrow): Declare.
6560 (mi_cmd_catch_catch): Declare.
6561
6562 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6563
6564 * annotate.c (annotate_source_line): Change return type to void,
6565 update implementation to match.
6566 * annotate.h (annotate_source_line): Change return type to void,
6567 update header comment.
6568 * stack.c (print_frame_info): Don't change what frame information
6569 is printed based on whether annotations are on or not.
6570
6571 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6572
6573 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6574 (annotate_source): Make static.
6575 (annotate_source_line): Moved from source.c and renamed from
6576 identify_source_line. Update the return type.
6577 * annotate.h (annotate_source): Delete declaration.
6578 (annotate_source_line): Declaration moved from source.h, and
6579 renamed from identify_source_line. Return type updated.
6580 * source.c (identify_source_line): Moved to annotate.c and renamed
6581 to annotate_source_line.
6582 (info_line_command): Remove check of annotation_level.
6583 * source.h (identify_source_line): Move declaration to annotate.h
6584 and rename to annotate_source_line.
6585 * stack.c: Add 'annotate.h' include.
6586 (print_frame_info): Remove check of annotation_level before
6587 calling annotate_source_line.
6588
6589 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6590
6591 * source-cache.c (source_cache::get_plain_source_lines): Use
6592 open_source_file_with_line_charpos instead of just
6593 open_source_file, remove call to find_source_lines.
6594 (source_cache::get_source_lines): Likewise.
6595 * source.c (find_source_lines): Make static.
6596 (get_filename_and_charpos): Renamed into...
6597 (open_source_file_with_line_charpos): ..this along with changes to
6598 return a scoped_fd, and some other minor clean ups.
6599 (identify_source_line): Use open_source_file_with_line_charpos.
6600 (search_command_helper): Use open_source_file_with_line_charpos
6601 instead of just open_source_file, remove call to
6602 find_source_lines.
6603 * source.h (open_source_file_with_line_charpos): Declare new
6604 function.
6605 (find_source_lines): Delete declaration.
6606
6607 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6608
6609 * source.c (get_filename_and_charpos): Remove fullname
6610 parameter.
6611 (identify_source_line): Update call to get_filename_and_charpos.
6612
6613 2019-06-14 Tom Tromey <tromey@adacore.com>
6614
6615 PR gdb/24502:
6616 * ui-style.h (skip_ansi_escape): Update comment.
6617 * ui-file.h (class no_terminal_escape_file): New class.
6618 * ui-file.c (no_terminal_escape_file::write)
6619 (no_terminal_escape_file::puts): New methods.
6620 * cli/cli-logging.c (handle_redirections): Use
6621 no_terminal_escape_file.
6622
6623 2019-06-14 Tom Tromey <tromey@adacore.com>
6624
6625 * NEWS: Move convenience variable news above Python news.
6626
6627 2019-06-14 Tom Tromey <tom@tromey.com>
6628
6629 * gnulib: Move directory to top-level.
6630 * configure.ac: Don't configure gnulib.
6631 * configure: Rebuild.
6632 * common/common-defs.h: Use new path to gnulib.
6633 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6634 (GNULIB_H): Remove.
6635 (INCGNU): Look in new gnulib location.
6636 (HFILES_NO_SRCDIR): Remove gnulib files.
6637 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6638 (generated_files): Remove GNULIB_H.
6639 ($(LIBGNU), all-lib): Remove targets.
6640 (distclean): Don't mention GNULIB_BUILDDIR.
6641 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6642
6643 2019-06-14 Tom Tromey <tromey@adacore.com>
6644
6645 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6646 Warn if symbol file does not provide any symbols.
6647
6648 2019-06-14 Tom Tromey <tromey@adacore.com>
6649
6650 * source.c (find_and_open_source): Respect basenames_may_differ.
6651
6652 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6653
6654 * annotate.c (annotate_breakpoints_invalid): Make use of
6655 scoped_restore_terminal_state.
6656 (annotate_frames_invalid): Likewise.
6657
6658 2019-06-14 Tom Tromey <tromey@adacore.com>
6659
6660 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6661 allow assignment to an internalvar.
6662
6663 2019-06-14 Tom Tromey <tromey@adacore.com>
6664
6665 * ada-lex.l: Allow "_" in attribute names.
6666
6667 2019-06-14 Tom Tromey <tromey@adacore.com>
6668
6669 PR gdb/24653:
6670 * regcache.c (registers_changed): Don't call alloca.
6671 * top.c (execute_command): Don't call alloca.
6672
6673 2019-06-13 Pedro Alves <palves@redhat.com>
6674
6675 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6676 'expression'. When parsing an expression, error out if there's
6677 junk after "unlimited".
6678 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6679 (do_set_command): Adjust calls to is_unlimited_literal.
6680
6681 2019-06-13 Pedro Alves <palves@redhat.com>
6682
6683 * compile/compile.c (make_compile_options_def_group): Add braces
6684 around array_view initializer.
6685 * thread.c (make_thread_apply_all_options_def_group)
6686 (make_thread_apply_all_options_def_group): Likewise.
6687
6688 2019-06-13 Pedro Alves <palves@redhat.com>
6689
6690 * NEWS (New commands): Mention "maint test-options
6691 require-delimiter", "maint test-options unknown-is-error", "maint
6692 test-options unknown-is-operand" and "maint show
6693 test-options-completion-result".
6694 (New command options, command completion): New section.
6695 (Completion improvements): New section.
6696 Mention that you can abbreviate "unlimited".
6697
6698 2019-06-13 Pedro Alves <palves@redhat.com>
6699
6700 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6701 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6702 * unittests/cli-utils-selftests.c (test_parse_flags)
6703 (test_parse_flags_qcs): Delete.
6704 (test_cli_utils): Don't call deleted functions.
6705
6706 2019-06-13 Pedro Alves <palves@redhat.com>
6707
6708 * thread.c: Include "cli/cli-option.h".
6709 (tp_array_compar_ascending): Global.
6710 (tp_array_compar): Delete function.
6711 (tp_array_compar_ascending, tp_array_compar_descending): New
6712 functions.
6713 (ascending_option_def, qcs_flag_option_def)
6714 (thr_qcs_flags_option_defs)
6715 (make_thread_apply_all_options_def_group)
6716 (make_thread_apply_options_def_group): New.
6717 (thread_apply_all_command): Use gdb::option::process_options.
6718 (thread_apply_command_completer)
6719 (thread_apply_all_command_completer): New.
6720 (thread_apply_command): Use gdb::option::process_options.
6721 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6722 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6723 to generate help text of "thread apply". Adjust "taas"'s help.
6724 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6725 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6726
6727 2019-06-13 Pedro Alves <palves@redhat.com>
6728
6729 * thread.c (thread_apply_command): Check for invalid TID with
6730 isdigit instead of !isalpha.
6731
6732 2019-06-13 Pedro Alves <palves@redhat.com>
6733
6734 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6735 (validate_flags_qcs): New.
6736 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6737 (validate_flags_qcs): Declare.
6738 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6739 (make_frame_apply_options_def_group): New.
6740 (frame_apply_command_count): Process options with
6741 gdb::option::process_options.
6742 (frame_apply_completer): New.
6743 (frame_apply_level_completer, frame_apply_all_completer)
6744 (frame_apply_completer): New.
6745 (_initialize_stack): Update help of "frame apply", "frame apply
6746 level", "frame apply all" and "faas" to mention supported options
6747 and install command completers.
6748 * stack.h (frame_apply_all_completer): Declare.
6749 * thread.c: Include "stack.h".
6750 (tfaas_command): Add "--".
6751 (_initialize_thread): Update help "tfaas" to mention supported
6752 options and install command completer.
6753
6754 2019-06-13 Pedro Alves <palves@redhat.com>
6755
6756 * completer.c (complete_nested_command_line): New.
6757 (gdb_completion_word_break_characters_throw): Add assertion.
6758 * completer.h (complete_nested_command_line): Declare.
6759
6760 2019-06-13 Pedro Alves <palves@redhat.com>
6761
6762 * stack.c (parse_backtrace_qualifiers): New.
6763 (backtrace_command): Use it.
6764 (backtrace_command_completer): Complete on qualifiers.
6765
6766 2019-06-13 Pedro Alves <palves@redhat.com>
6767
6768 * frame.c: Include "cli/cli-option.h.
6769 (user_set_backtrace_options): New.
6770 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6771 Delete.
6772 (get_prev_frame): Adjust.
6773 (boolean_option_def, uinteger_option_def)
6774 (set_backtrace_option_defs): New.
6775 (_initialize_frame): Adjust and use
6776 gdb::option::add_setshow_cmds_for_options to install "set
6777 backtrace past-main" and "set backtrace past-entry".
6778 * frame.h: Include "cli/cli-option.h".
6779 (struct frame_print_options): Forward declare.
6780 (print_frame_arguments_all, print_frame_arguments_scalars)
6781 (print_frame_arguments_none): Declare.
6782 (print_entry_values): Delete declaration.
6783 (struct frame_print_options, user_frame_print_options): New.
6784 (struct set_backtrace_options): New.
6785 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6786 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6787 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6788 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6789 (list_args_or_locals): Add frame_print_options parameter.
6790 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6791 * python/py-framefilter.c (enumerate_args): Pass down
6792 USER_FRAME_PRINT_OPTIONS.
6793 * stack.c: Include "cli/cli-option.h".
6794 (print_frame_arguments_all, print_frame_arguments_scalars)
6795 (print_frame_arguments_none): Declare.
6796 (print_raw_frame_arguments, print_entry_values): Delete.
6797 (user_frame_print_options): New.
6798 (boolean_option_def, enum_option_def, frame_print_option_defs):
6799 New.
6800 (struct backtrace_cmd_options): New.
6801 (bt_flag_option_def): New.
6802 (backtrace_command_option_defs): New.
6803 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6804 (print_frame_arg, read_frame_arg, print_frame_args)
6805 (print_frame_info, print_frame): Add frame_print_options parameter
6806 and use it.
6807 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6808 (backtrace_command_1): Add frame_print_options and
6809 backtrace_cmd_options parameters and use them.
6810 (make_backtrace_options_def_group): New.
6811 (backtrace_command): Process command options with
6812 gdb::option::process_options.
6813 (backtrace_command_completer): New.
6814 (_initialize_stack): Extend "backtrace"'s help to mention
6815 supported options. Install completer for "backtrace".
6816 Install some settings commands with add_setshow_cmds_for_options.
6817
6818 2019-06-13 Pedro Alves <palves@redhat.com>
6819
6820 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6821 and that "set/show print raw frame-arguments" are now deprecated.
6822
6823 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6824 command.
6825 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6826 * stack.c (_initialize_stack): Install "set/show print
6827 raw-frame-arguments", and deprecate "set/show print raw
6828 frame-arguments".
6829 * valprint.c (_initialize_valprint): Deprecate "set/show print
6830 raw".
6831
6832 2019-06-13 Pedro Alves <palves@redhat.com>
6833
6834 * compile/compile.c (struct compile_options): New.
6835 (compile_flag_option_def, compile_command_option_defs)
6836 (make_compile_options_def_group): New.
6837 (compile_file_command): Handle options with
6838 gdb::option::process_options.
6839 (compile_file_command_completer): New function.
6840 (compile_code_command): Handle options with
6841 gdb::option::process_options.
6842 (compile_code_command_completer): New function.
6843 (_initialize_compiler): Install completers for "compile code" and
6844 "compile file". Mention available options in "compile code" and
6845 "compile code"'s help.
6846 * completer.c (advance_to_completion_word): New, factored out from
6847 ...
6848 (advance_to_expression_complete_word_point): ... this.
6849 (advance_to_filename_complete_word_point): New.
6850 * completer.h (advance_to_filename_complete_word_point): New
6851 declaration.
6852
6853 2019-06-13 Pedro Alves <palves@redhat.com>
6854
6855 * compile/compile.c: Include "cli/cli-option.h".
6856 (compile_print_value): Scope data pointer is now a
6857 value_print_options pointer; adjust.
6858 (compile_print_command): Process options. Scope data pointer is
6859 now a value_print_options pointer; adjust.
6860 (_initialize_compile): Update "compile print"'s help to include
6861 supported options. Install a completer for "compile print".
6862 * cp-valprint.c (show_vtblprint, show_objectprint)
6863 (show_static_field_print): Delete.
6864 (_initialize_cp_valprint): Don't install "set print
6865 static-members", "set print vtbl", "set print object" here.
6866 * printcmd.c: Include "cli/cli-option.h" and
6867 "common/gdb_optional.h".
6868 (print_command_parse_format): Rework to fill in a
6869 value_print_options instead of a format_data.
6870 (print_value): Change parameter type from format_data pointer to
6871 value_print_options reference. Adjust.
6872 (print_command_1): Process options. Adjust to pass down a
6873 value_print_options.
6874 (print_command_completer): New.
6875 (_initialize_printcmd): Install print_command_completer as
6876 handle_brkchars completer for the "print" command. Update
6877 "print"'s help to include supported options.
6878 * valprint.c: Include "cli/cli-option.h".
6879 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6880 here from cp-valprint.c.
6881 (boolean_option_def, uinteger_option_def)
6882 (value_print_option_defs, make_value_print_options_def_group):
6883 New. Use gdb::option::add_setshow_cmds_for_options to install
6884 "set print elements", "set print null-stop", "set print repeats",
6885 "set print pretty", "set print union", "set print array", "set
6886 print address", "set print symbol", "set print array-indexes".
6887 * valprint.h: Include <string> and "cli/cli-option.h".
6888 (make_value_print_options_def_group): Declare.
6889 (print_value): Change parameter type from format_data pointer to
6890 value_print_options reference.
6891 (print_command_completer): Declare.
6892
6893 2019-06-13 Pedro Alves <palves@redhat.com>
6894
6895 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6896 (COMMON_SFILES): Add maint-test-settings.c.
6897 * cli/cli-decode.c (boolean_enums): New global, factored out from
6898 ...
6899 (add_setshow_boolean_cmd): ... here.
6900 * cli/cli-decode.h (boolean_enums): Declare.
6901 * cli/cli-option.c: New file.
6902 * cli/cli-option.h: New file.
6903 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6904 factored out from ...
6905 (parse_cli_boolean_value(const char *)): ... this.
6906 (is_unlimited_literal): Change parameter type to pointer to
6907 pointer. Adjust and advance ARG pointer.
6908 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6909 (parse_cli_var_enum): New, factored out from ...
6910 (do_set_command): ... this. Adjust.
6911 * cli/cli-setshow.h (parse_cli_boolean_value)
6912 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6913 (parse_cli_var_enum): Declare.
6914 * cli/cli-utils.c: Include "cli/cli-option.h".
6915 (get_ulongest): New.
6916 * cli/cli-utils.h (get_ulongest): Declare.
6917 (check_for_argument): New overloads.
6918 * maint-test-options.c: New file.
6919
6920 2019-06-13 Pedro Alves <palves@redhat.com>
6921
6922 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6923 parse a range if "-" is at the end of the string.
6924
6925 2019-06-13 Pedro Alves <palves@redhat.com>
6926
6927 * cli/cli-setshow.c (parse_auto_binary_operation)
6928 (parse_cli_boolean_value): Don't allow "o".
6929
6930 2019-06-13 Pedro Alves <palves@redhat.com>
6931
6932 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6933 * NEWS: Mention maint test-settings KIND.
6934 * maint-test-settings.c: New file.
6935
6936 2019-06-13 Pedro Alves <palves@redhat.com>
6937
6938 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6939 completer.
6940 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6941 "set" completers.
6942
6943 2019-06-13 Pedro Alves <palves@redhat.com>
6944
6945 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6946 after item.
6947
6948 2019-06-13 Pedro Alves <palves@redhat.com>
6949
6950 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6951
6952 2019-06-13 Pedro Alves <palves@redhat.com>
6953
6954 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6955 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6956 call.
6957 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6958 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6959 calls.
6960 (check_for_argument): Skip spaces after argument.
6961
6962 2019-06-13 Pedro Alves <palves@redhat.com>
6963
6964 * thread.c (thread_apply_command): Adjust TID parsing.
6965 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6966 detected before end of string.
6967 (tid_is_in_list): Error out if LIST is invalid.
6968
6969 2019-06-13 Pedro Alves <palves@redhat.com>
6970
6971 * completer.c (complete_line_internal_1): Rewind completion word
6972 point.
6973 (completion_tracker::advance_custom_word_point_by): Change
6974 parameter type to int.
6975 * completer.h (completion_tracker::advance_custom_word_point_by):
6976 Likewise.
6977
6978 2019-06-13 Pedro Alves <palves@redhat.com>
6979
6980 * completer.c (advance_to_completion_word): Handle delimiters.
6981
6982 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6983
6984 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6985
6986 2019-06-11 Tom Tromey <tom@tromey.com>
6987
6988 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6989 (xmalloc_failed): Move to alloc.c.
6990 * alloc.c: New file.
6991 * Makefile.in (COMMON_SFILES): Add alloc.c.
6992
6993 2019-06-11 Tom Tromey <tom@tromey.com>
6994
6995 * nat/linux-waitpid.c: Don't include server.h.
6996 (linux_debug): Remove.
6997 (my_waitpid): Update.
6998
6999 2019-06-11 Tom Tromey <tromey@adacore.com>
7000
7001 * infcall.c (_initialize_infcall): Remove trailing newline from
7002 help.
7003 * user-regs.c (_initialize_user_regs): Remove trailing newline
7004 from help.
7005 * typeprint.c (_initialize_typeprint): Remove trailing newline
7006 from help.
7007 * reverse.c (_initialize_reverse): Remove trailing newlines from
7008 help.
7009 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7010 from help.
7011 * language.c (add_set_language_command): Remove trailing newline
7012 from help.
7013 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7014 help.
7015 * disasm.c (_initialize_disasm): Remove trailing newline from
7016 help.
7017 * top.c (init_main): Remove trailing newline from help.
7018 * interps.c (_initialize_interpreter): Remove trailing newline
7019 from help.
7020 * btrace.c (_initialize_btrace): Remove trailing newlines from
7021 help.
7022 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7023 from help.
7024 * python/python.c (_initialize_python): Remove trailing newline
7025 from help.
7026 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7027 help.
7028 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7029 from help. Reformat some text.
7030 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7031 from help.
7032 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7033 newline from help.
7034
7035 2019-06-11 Tom Tromey <tromey@adacore.com>
7036
7037 * darwin-nat.c (darwin_decode_exception_message)
7038 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7039
7040 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7041
7042 * valops.c (value_slice): Check for not allocated or not
7043 associated values.
7044
7045 2019-06-10 Tom de Vries <tdevries@suse.de>
7046
7047 PR gdb/24618
7048 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7049 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7050 invalid.
7051
7052 2019-06-10 Tom de Vries <tdevries@suse.de>
7053
7054 PR gdb/24611
7055 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7056 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7057
7058 2019-06-10 Tom de Vries <tdevries@suse.de>
7059
7060 PR symtab/24545
7061 * symtab.c (struct demangled_name_entry): Add language field.
7062 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7063 static minimal symbol". Set and use language field.
7064
7065 2019-06-10 Tom Tromey <tromey@adacore.com>
7066
7067 * ada-lang.c (_initialize_ada_language): Update help text.
7068
7069 2019-06-10 Tom Tromey <tromey@adacore.com>
7070
7071 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7072 with a newline.
7073 * guile/guile.c (handle_boot_error): Don't end warning with a
7074 newline.
7075 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7076 warning with a newline.
7077 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7078 newline.
7079 (s12z_frame_cache): Likewise.
7080 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7081 a newline.
7082 * solib-svr4.c (disable_probes_interface): Don't end warning with
7083 a newline.
7084 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7085 newline.
7086 * python/python.c (do_finish_initialization): Don't end warning
7087 with a newline.
7088
7089 2019-06-10 Tom Tromey <tom@tromey.com>
7090
7091 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7092 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7093 gdbpy_enter.
7094
7095 2019-06-10 Tom Tromey <tromey@adacore.com>
7096
7097 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7098 data.
7099 (elf_new_init): Don't call stabsread_new_init.
7100 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7101 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7102 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7103
7104 2019-06-10 Tom de Vries <tdevries@suse.de>
7105
7106 PR symtab/16264
7107 PR symtab/24517
7108 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7109
7110 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7111
7112 * source.c (find_and_open_source): Also rewrite relative file
7113 names.
7114
7115 2019-04-26 Amos Bird <amosbird@gmail.com>
7116
7117 * annotate.c (annotate_thread_exited): Add "thread-exited"
7118 annotation.
7119
7120 2019-06-06 Tom Tromey <tromey@adacore.com>
7121
7122 * maint.h (class scoped_command_stats): Use
7123 DISABLE_COPY_AND_ASSIGN.
7124 <print_time>: New method.
7125 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7126 print_time.
7127 (scoped_command_stats::print_time): New method.
7128
7129 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7130
7131 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7132 instructions of lengths 6 or 8 bytes.
7133
7134 2019-06-04 Pedro Alves <palves@redhat.com>
7135
7136 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7137
7138 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7139 * breakpoint.c (condition_completer): Likewise.
7140 * cli/cli-dump.c (scan_expression): Likewise.
7141 * common/filestuff.c (mkdir_recursive): Likewise.
7142 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7143 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7144 (gdb_abspath): Likewise.
7145 * compile/compile-cplus-types.c
7146 (compile_cplus_instance::decl_name): Likewise.
7147 * completer.c (complete_explicit_location):
7148 (signal_completer, reg_or_group_completer_1): Likewise.
7149 * cp-support.c (cp_remove_params_if_any): Likewise.
7150 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7151 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7152 * infcmd.c (strip_bg_char): Likewise.
7153 * linespec.c (copy_token_string): Likewise.
7154 * mi/mi-main.c (output_cores): Likewise.
7155 * psymtab.c (psymtab_search_name):
7156 * symfile.c (test_set_ext_lang_command): Likewise.
7157 * target.c (target_fileio_read_stralloc): Likewise.
7158 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7159 * value.c (complete_internalvar): Likewise.
7160
7161 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7162
7163 Add objfile property to gdb.Type.
7164 * NEWS: Mention Python API addition.
7165 * python/py-type.c (typy_get_objfile): New method.
7166
7167 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7168
7169 * NEWS: Mention the new set|show style [title|highlight].
7170 Mention changes to "show style", "help" and "apropos".
7171
7172 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7173
7174 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7175 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7176 instead of print_help_for_command.
7177 (print_doc_of_command): New function.
7178 (help_list): Add 'apropos -v word' suggestion.
7179 (print_help_for_command): Style the command name using title style.
7180 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7181 (_initialize_cli_cmds): Describe -v in apropos_command help.
7182
7183 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7184
7185 * cli/cli-style.h (cli_style_option): Add name in constructor,
7186 add m_name class member, add constructor with intensity,
7187 add name class function.
7188 (cli_style_option::add_setshow_commands): Remove name argument.
7189 (highlight_style, title_style): New styles.
7190 * cli/cli-style.c (do_show): New function that shows a style
7191 characteristic styling the style name with itself.
7192 (set_style_name): New function.
7193 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7194 Update all callers according to the changes in cli/cli-style.h.
7195 * utils.h (fputs_highlighted): New function.
7196 * utils.c (fputs_highlighted): Likewise.
7197
7198 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7199
7200 * NEWS: Mention new pipe command and new convenience variables.
7201
7202 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7203
7204 * cli/cli-cmds.c (pipe_command): New function.
7205 (_initialize_cli_cmds): Call add_com for pipe_command.
7206 Define | as an alias for pipe.
7207 (exit_status_set_internal_vars): New function.
7208 (shell_escape): Call exit_status_set_internal_vars.
7209 cli/cli-decode.c (find_command_name_length): Recognize | as
7210 a single character command.
7211
7212 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7213
7214 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7215 top.c (execute_command_to_ui_file): New function, mostly a copy
7216 of execute_command_to_string.
7217 (execute_command_to_string): Implement by calling
7218 execute_command_to_ui_file.
7219
7220 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7221
7222 * top.h (saved_command_line): Remove declaration.
7223 * top.c (previous_saved_command_line, previous_repeat_arguments):
7224 New variables.
7225 (saved_command_line): Make static, define together with other
7226 'repeat variables'.
7227 (dont_repeat): Clear repeat_arguments.
7228 (repeat_previous, get_saved_command_line, save_command_line):
7229 New functions.
7230 (gdb_init): Initialize saved_command_line
7231 and previous_saved_command_line.
7232 * main.c (captured_main_1): Remove saved_command_line initialization.
7233 * event-top.c (handle_line_of_input): Update to use
7234 the new 'repeat' related functions instead of direct access to
7235 saved_command_line.
7236 * command.h (repeat_previous, get_saved_command_line,
7237 save_command_line): New declarations.
7238 (dont_repeat): Add comment.
7239
7240 2019-05-30 Tom Tromey <tromey@adacore.com>
7241
7242 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7243 Fix comment.
7244 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7245
7246 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7247
7248 PR cli/24587
7249 * completer.c (complete): Initialize variable word.
7250
7251 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7252
7253 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7254 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7255 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7256 'body' is NULL to the outter 'if', protecting the '!is_define'
7257 situation as well.
7258
7259 2019-05-29 Tom Tromey <tromey@adacore.com>
7260
7261 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7262 (dwarf_unknown): New function.
7263 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7264 (dwarf_type_encoding_name): Use dwarf_unknown.
7265
7266 2019-05-29 Tom Tromey <tromey@adacore.com>
7267
7268 PR c++/20020:
7269 * cp-valprint.c (cp_print_value_fields): Call
7270 cp_print_static_field inside "try".
7271
7272 2019-05-29 Tom Tromey <tromey@adacore.com>
7273
7274 * inflow.c (struct terminal_info): Add default operator=.
7275 * configure: Rebuild.
7276 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7277 -Wdeprecated-copy-dtor, -Wredundant-move.
7278
7279 2019-05-29 Tom Tromey <tromey@adacore.com>
7280
7281 * NEWS: Add entry.
7282 * infcmd.c (print_return_value_1): Handle finish_print
7283 option.
7284 (show_print_finish): New function.
7285 (_initialize_infcmd): Add "set/show print finish" commands.
7286 * valprint.c (user_print_options): Initialize new member.
7287 * valprint.h (struct value_print_options) <finish_print>: New
7288 member.
7289
7290 2019-05-28 Tom Tromey <tromey@adacore.com>
7291
7292 * ada-lang.c (ada_remove_Xbn_suffix)
7293 (find_old_style_renaming_symbol)
7294 (parse_old_style_renaming): Remove.
7295 (ada_find_renaming_symbol): Don't call
7296 find_old_style_renaming_symbol.
7297 (ada_is_renaming_symbol): Rename from
7298 ada_find_renaming_symbol. Remove "block" parameter. Return
7299 bool. Now static.
7300 (ada_read_var_value): Update and simplify.
7301 * ada-exp.y (write_var_or_type): Remove old code.
7302
7303 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7304
7305 PR gdb/25010
7306 * event-top.c: Remove include comment.
7307 * inflow.c (class scoped_ignore_sigttou): Move from here...
7308 * inflow.h (class scoped_ignore_sigttou): ...to here.
7309 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7310 * top.c: Remove include comment.
7311
7312 2019-05-27 Tom Tromey <tom@tromey.com>
7313
7314 * NEWS: Fix typo.
7315
7316 2019-05-22 Tom Tromey <tromey@adacore.com>
7317
7318 * target.c (target_follow_exec): Constify parameter.
7319 * target-delegates.c: Rebuild.
7320 * remote.c (remote_target::follow_exec): Constify parameter.
7321 * infrun.c (follow_exec): Constify parameter.
7322 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7323 (target_follow_exec): Likewise.
7324
7325 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7326
7327 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7328 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7329
7330 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7331
7332 * NEWS: Add debugredirect and testsuite sections.
7333
7334 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7335
7336 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7337 target descriptions using exclusively floating point register name
7338 aliases.
7339
7340 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7341
7342 PR gdb/18644:
7343 * f-lang.c (build_fortran_types): Handle the case where
7344 gdbarch_floatformat_for_type returns a nullptr.
7345
7346 2019-05-21 Tom de Vries <tdevries@suse.de>
7347
7348 PR cli/24587
7349 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7350
7351 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7352
7353 PR gdb/18644:
7354 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7355 16-byte floats.
7356 * i386-tdep.c (i386_floatformat_for_type): Use
7357 floatformats_ia64_quad for the 16-byte floating point component
7358 within a fortran 32-byte complex number.
7359
7360 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7361
7362 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7363 delete default constructor.
7364 (find_partial_die): Update to return const struct.
7365 (partial_die_parent_scope): Move variable declaration into scope
7366 of its use and change its type to auto.
7367 (guess_partial_die_structure_name): Likewise.
7368 (partial_die_info::fixup): Likewise.
7369
7370 2019-05-17 Tom Tromey <tromey@adacore.com>
7371
7372 * source.c (find_and_open_source): Remove cast.
7373
7374 2019-05-17 Tom Tromey <tromey@adacore.com>
7375
7376 * annotate.c (annotate_source): Make "filename" const.
7377 * annotate.h (annotate_source): Use const.
7378
7379 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7380
7381 * disasm.c (set_disassembler_options): Send errors to stderr.
7382
7383 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7384
7385 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7386 (cli_interp_base::set_logging): Check debug_redirect.
7387 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7388 * cli/cli-logging.c (debug_redirect): Add static variable.
7389 (pop_output_files): Add default param.
7390 (handle_redirections): Print debug setting.
7391 (show_logging_command): Likewise.
7392 (_initialize_cli_logging): Add debugredirect command.
7393 * interps.c (current_interp_set_logging): Add debug_redirect
7394 parameter.
7395 * interps.h (set_logging): Add debug_redirect parameter.
7396 (current_interp_set_logging): Likewise.
7397 * mi/mi-common.h: Likewise.
7398 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7399
7400 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7401 Tom Tromey <tromey@adacore.com>
7402
7403 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7404 directly.
7405 * cli/cli-interp.h (make_logging_output): Remove declaration.
7406 * cli/cli-logging.c (make_logging_output): Remove function.
7407 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7408 directly.
7409 * ui-file.c (tee_file::tee_file): Remove bools.
7410 (tee_file::~tee_file): Remove deletes.
7411 * ui-file.h (tee_file): Remove bools.
7412
7413 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7414
7415 * mi/mi-cmds.h (mi_cmd_complete): New function.
7416 * mi/mi-main.c (mi_cmd_complete): Likewise.
7417 * mi/mi-cmds.c: Define new MI command -complete.
7418 * NEWS: Mention new -complete command.
7419
7420 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7421
7422 * completer.h (complete): New function.
7423 * completer.c (complete): Likewise.
7424 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7425 function defined in completer.h.
7426
7427 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7428
7429 * MAINTAINERS (Write After Approval): Add myself.
7430
7431 2019-05-17 Tom de Vries <tdevries@suse.de>
7432
7433 PR gdb/24094
7434 * dwarf2read.c (struct cu_partial_die_info): New struct.
7435 (find_partial_die): Return cu_partial_die_info.
7436 (partial_die_parent_scope, guess_partial_die_structure_name)
7437 (partial_die_info::fixup): Handle new return type of find_partial_die.
7438
7439 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7440
7441 PR breakpoints/24541
7442 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7443 "std::string", simplifying the algorithm.
7444
7445 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7446
7447 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7448 (stap_static_probe_ops::get_probes): Likewise.
7449
7450 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7451
7452 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7453 '-')" and "else if".
7454 (stap_parse_single_operand): Join checks for
7455 "gdbarch_stap_parse_special_token_p" and
7456 "gdbarch_stap_parse_special_token" in the same "if" statement.
7457 Invert check when verifying for operation on register
7458 displacement.
7459
7460 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7461
7462 * stap-probe.c (stap_get_opcode): Update comment.
7463 (stap_get_expected_argument_type): Likewise.
7464 (handle_stap_probe): Likewise.
7465
7466 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7467
7468 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7469 return type to 'bool'. Adjust comment. Use 'bool' when
7470 appropriate.
7471 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7472 * stap-probe.c (stap_parse_argument_1): Likewise.
7473 (stap_is_operator): Likewise.
7474 (stap_is_generic_prefix): Likewise.
7475 (stap_is_register_prefix): Likewise.
7476 (stap_is_register_indirection_prefix): Likewise.
7477 (stap_is_integer_prefix): Likewise.
7478 (stap_generic_check_suffix): Likewise.
7479 (stap_check_integer_suffix): Likewise.
7480 (stap_check_register_suffix): Likewise.
7481 (stap_check_register_indirection_suffix): Likewise.
7482 (stap_parse_register_operand): Likewise.
7483 (stap_parse_single_operand): Likewise.
7484 (stap_parse_argument_1): Likewise.
7485 (stap_probe::get_argument_count): Likewise.
7486 (stap_is_operator): Likewise.
7487
7488 2019-05-16 Tom Tromey <tromey@adacore.com>
7489
7490 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7491 keyword to foreach.
7492
7493 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7494
7495 * linux-thread-db.c (try_thread_db_load_1): Change return type
7496 to bool.
7497 (try_thread_db_load): Likewise.
7498 (try_thread_db_load_from_pdir_1): Likewise.
7499 (try_thread_db_load_from_pdir): Likewise.
7500 (try_thread_db_load_from_sdir): Likewise.
7501 (try_thread_db_load_from_dir): Likewise.
7502 (thread_db_load_search): Likewise.
7503 (has_libpthread): Likewise.
7504 (thread_db_load): Likewise.
7505
7506 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7507
7508 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7509 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7510 NULL, and complain/return if that's the case.
7511
7512 2019-05-15 John Darrington <john@darrington.wattle.id.au>
7513
7514 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7515 (advance, posn, abstract_read_memory): New functions.
7516 [struct mem_read_abstraction]: New struct.
7517 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7518
7519 2019-05-14 Tom Tromey <tromey@adacore.com>
7520
7521 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7522 value is not lval_memory.
7523
7524 2019-05-14 Tom Tromey <tromey@adacore.com>
7525
7526 * solib.c (info_sharedlibrary_command): Style the file name.
7527
7528 2019-05-14 Alan Hayward <alan.hayward@arm.com>
7529
7530 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7531 (aarch64_vnv_type): Likewise.
7532 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7533 * common/tdesc.c: Likewise.
7534 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7535 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7536 * features/aarch64-fpu.xml: Add ieee half view.
7537 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7538 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7539 * gdbtypes.h (struct builtin_type): Likewise.
7540 (struct objfile_type): Likewise.
7541
7542 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
7543
7544 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7545 typo.
7546 * location.h (string_to_event_location): Likewise.
7547
7548 2019-05-11 Joel Brobecker <brobecker@adacore.com>
7549
7550 GDB 8.3 released.
7551
7552 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7553
7554 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7555 New variable declaration.
7556 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7557 New variable.
7558 (print_one_breakpoint): Use ui_out::test_flags and new global
7559 variable to compute use_fixed_output.
7560 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7561 Remove.
7562 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7563 (mi_multi_location_breakpoint_output_fixed): Remove.
7564 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7565 new variable.
7566 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7567 fix_multi_location_breakpoint_output flag if version >= 3.
7568 * ui-out.h (enum ui_out_flag)
7569 <fix_multi_location_breakpoint_output>: New enumerator.
7570
7571 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7572
7573 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7574
7575 2019-05-10 Tom Tromey <tromey@adacore.com>
7576
7577 * ada-lang.c (catch_ada_completer): New function.
7578 (_initialize_ada_language): Use it.
7579
7580 2019-05-10 Tom Tromey <tromey@adacore.com>
7581
7582 * thread.c (print_thread_info): Make "requested_threads" const.
7583 * gdbthread.h (print_thread_info): Make "requested_threads"
7584 const.
7585 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7586 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7587
7588 2019-05-08 Tom Tromey <tom@tromey.com>
7589
7590 * gdbtypes.c (objfile_type_data): Change type.
7591 (objfile_type, _initialize_gdbtypes): Update.
7592
7593 2019-05-08 Tom Tromey <tom@tromey.com>
7594
7595 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7596 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7597 (_initialize_dwarf2_frame): Update.
7598
7599 2019-05-08 Tom Tromey <tom@tromey.com>
7600
7601 * objc-lang.c (objc_objfile_data): Change type.
7602 (find_methods): Update.
7603 (_initialize_objc_lang): Remove.
7604
7605 2019-05-08 Tom Tromey <tom@tromey.com>
7606
7607 * stabsread.c (rs6000_builtin_type_data): Change type.
7608 (rs6000_builtin_type, _initialize_stabsread): Update.
7609
7610 2019-05-08 Tom Tromey <tom@tromey.com>
7611
7612 * mips-tdep.c (mips_pdr_data): Remove.
7613 (_initialize_mips_tdep): Update.
7614
7615 2019-05-08 Tom Tromey <tom@tromey.com>
7616
7617 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7618 (hppa_init_objfile_priv_data, read_unwind_info)
7619 (find_unwind_entry, _initialize_hppa_tdep): Update.
7620
7621 2019-05-08 Tom Tromey <tom@tromey.com>
7622
7623 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7624 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7625 on obstack.
7626 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7627
7628 2019-05-08 Tom Tromey <tom@tromey.com>
7629
7630 * mdebugread.c (basic_type_data): Change type.
7631 (basic_type, _initialize_mdebugread): Update.
7632
7633 2019-05-08 Tom Tromey <tom@tromey.com>
7634
7635 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7636
7637 2019-05-08 Tom Tromey <tom@tromey.com>
7638
7639 * nto-tdep.c (nto_inferior_data_reg): Change type.
7640 (nto_inferior_data): Update.
7641 (nto_inferior_data_cleanup, nto_new_inferior_data)
7642 (_initialize_nto_tdep): Remove.
7643 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7644
7645 2019-05-08 Tom Tromey <tom@tromey.com>
7646
7647 * ada-lang.c (struct ada_inferior_data): Add initializers.
7648 (ada_inferior_data): Change type.
7649 (ada_inferior_data_cleanup): Remove.
7650 (get_ada_inferior_data, ada_inferior_exit)
7651 (struct ada_pspace_data): Add initializers, destructor.
7652 (ada_pspace_data_handle): Change type.
7653 (get_ada_pspace_data): Update.
7654 (ada_pspace_data_cleanup): Remove.
7655
7656 2019-05-08 Tom Tromey <tom@tromey.com>
7657
7658 * coffread.c (struct coff_symfile_info): Add initializers.
7659 (coff_objfile_data_key): Move lower. Change type.
7660 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7661 Update.
7662 (coff_free_info): Remove.
7663
7664 2019-05-08 Tom Tromey <tom@tromey.com>
7665
7666 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7667 (fbsd_pspace_data_handle): Move lower. Change type.
7668 (get_fbsd_pspace_data): Update.
7669 (fbsd_pspace_data_cleanup): Remove.
7670 (_initialize_fbsd_tdep): Update.
7671
7672 2019-05-08 Tom Tromey <tom@tromey.com>
7673
7674 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7675 (get_ada_tasks_pspace_data): Update.
7676 (ada_tasks_pspace_data_cleanup): Remove.
7677 (_initialize_tasks): Update.
7678 (ada_tasks_inferior_data_handle): Change type.
7679 (get_ada_tasks_inferior_data): Update.
7680 (ada_tasks_inferior_data_cleanup): Remove.
7681 (struct ada_tasks_pspace_data): Add initializers.
7682
7683 2019-05-08 Tom Tromey <tom@tromey.com>
7684
7685 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7686 * symfile-debug.c (debug_sym_get_probes): Change type.
7687 * stap-probe.c (handle_stap_probe):
7688 (stap_static_probe_ops::get_probes): Change type.
7689 * probe.h (class static_probe_ops) <get_probes>: Change type.
7690 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7691 (parse_probes_in_pspace): Update.
7692 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7693 Update.
7694 (any_static_probe_ops::get_probes): Change type.
7695 * elfread.c (elfread_data): New typedef.
7696 (probe_key): Change type.
7697 (elf_get_probes): Likewise. Update.
7698 (probe_key_free): Remove.
7699 (_initialize_elfread): Update.
7700 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7701 Change type.
7702 (dtrace_process_dof_probe, dtrace_process_dof)
7703 (dtrace_static_probe_ops::get_probe): Change type.
7704
7705 2019-05-08 Tom Tromey <tom@tromey.com>
7706
7707 * xcoffread.c (struct xcoff_symfile_info): Rename from
7708 coff_symfile_info. Add initializers.
7709 (xcoff_objfile_data_key): Move lower. Change type.
7710 (XCOFF_DATA): Rewrite.
7711 (xcoff_free_info): Remove.
7712 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7713 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7714 (xcoff_initial_scan): Update.
7715
7716 2019-05-08 Tom Tromey <tom@tromey.com>
7717
7718 * solib-svr4.c (struct svr4_info): Add initializers and
7719 destructor.
7720 <probes_table>: Now an htab_up.
7721 (solib_svr4_pspace_data): Change type.
7722 (free_probes_table): Simplify.
7723 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7724 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7725 (probes_table_remove_objfile_probes, register_solib_event_probe)
7726 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7727 (_initialize_svr4_solib): Update.
7728
7729 2019-05-08 Tom Tromey <tom@tromey.com>
7730
7731 * remote.c (remote_pspace_data): Change type.
7732 (remote_pspace_data_cleanup): Remove.
7733 (get_remote_exec_file, set_pspace_remote_exec_file)
7734 (_initialize_remote): Update.
7735
7736 2019-05-08 Tom Tromey <tom@tromey.com>
7737
7738 * breakpoint.c (breakpoint_objfile_key): Change type.
7739 (get_breakpoint_objfile_data): Update.
7740 (free_breakpoint_objfile_data): Remove.
7741 (_initialize_breakpoint): Update.
7742
7743 2019-05-08 Tom Tromey <tom@tromey.com>
7744
7745 * linux-tdep.c (struct linux_info): Add initializers.
7746 (linux_inferior_data): Move. Change type.
7747 (invalidate_linux_cache_inf): Update.
7748 (linux_inferior_data_cleanup): Remove.
7749 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7750
7751 2019-05-08 Tom Tromey <tom@tromey.com>
7752
7753 * auxv.c (auxv_inferior_data): Move. Change type.
7754 (auxv_inferior_data_cleanup): Remove.
7755 (invalidate_auxv_cache_inf): Rewrite.
7756 (get_auxv_inferior_data, _initialize_auxv): Update.
7757
7758 2019-05-08 Tom Tromey <tom@tromey.com>
7759
7760 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7761 (symfile_debug_objfile_data_key): Change type.
7762 (symfile_debug_installed, debug_qf_has_symbols)
7763 (debug_qf_find_last_source_symtab)
7764 (debug_qf_forget_cached_source_info)
7765 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7766 (debug_qf_print_stats, debug_qf_dump)
7767 (debug_qf_expand_symtabs_for_function)
7768 (debug_qf_expand_all_symtabs)
7769 (debug_qf_expand_symtabs_with_fullname)
7770 (debug_qf_map_matching_symbols)
7771 (debug_qf_expand_symtabs_matching)
7772 (debug_qf_find_pc_sect_compunit_symtab)
7773 (debug_qf_map_symbol_filenames)
7774 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7775 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7776 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7777 (debug_sym_read_linetable, debug_sym_relocate): Update.
7778 (symfile_debug_free_objfile): Remove.
7779 (install_symfile_debug_logging, _initialize_symfile_debug):
7780 Update.
7781
7782 2019-05-08 Tom Tromey <tom@tromey.com>
7783
7784 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7785 allocate_on_obstack.
7786 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7787 (get_dwarf2_per_objfile): Update.
7788 (set_dwarf2_per_objfile): Remove.
7789 (dwarf2_has_info, dwarf2_get_section_info): Update.
7790 (dwarf2_free_objfile): Remove.
7791 (_initialize_dwarf2_read): Update.
7792
7793 2019-05-08 Tom Tromey <tom@tromey.com>
7794
7795 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7796 initializers.
7797 <unsupported_script_warning_printed,
7798 script_not_found_warning_printed>: Now bool.
7799 (auto_load_pspace_data): Change type.
7800 (~auto_load_pspace_info): Rename from
7801 auto_load_pspace_data_cleanup.
7802 (get_auto_load_pspace_data, init_loaded_scripts_info)
7803 (clear_section_scripts, maybe_print_unsupported_script_warning)
7804 (maybe_print_script_not_found_warning, _initialize_auto_load):
7805 Update.
7806
7807 2019-05-08 Tom Tromey <tom@tromey.com>
7808
7809 * objfiles.c (objfile_pspace_info): Add destructor and
7810 initializers.
7811 (objfiles_pspace_data): Change type.
7812 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7813 (get_objfile_pspace_data): Update.
7814 (objfiles_bfd_data): Change type.
7815 (get_objfile_bfd_data): Update.
7816 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7817
7818 2019-05-08 Tom Tromey <tom@tromey.com>
7819
7820 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7821 Change type.
7822 (get_catch_syscall_inferior_data): Update.
7823 (catch_syscall_inferior_data_cleanup): Remove.
7824 (_initialize_break_catch_syscall): Update.
7825
7826 2019-05-08 Tom Tromey <tom@tromey.com>
7827
7828 * inflow.c (struct terminal_info): Add destructor and
7829 initializers.
7830 (inflow_inferior_data): Change type.
7831 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7832 (get_inflow_inferior_data, inflow_inferior_exit)
7833 (swap_terminal_info, _initialize_inflow): Update.
7834
7835 2019-05-08 Tom Tromey <tom@tromey.com>
7836
7837 * target-dcache.c (target_dcache_cleanup): Remove.
7838 (target_dcache_aspace_key): Change type.
7839 (target_dcache_init_p, target_dcache_invalidate)
7840 (target_dcache_get, target_dcache_get_or_init)
7841 (_initialize_target_dcache): Update.
7842 * dcache.h (struct dcache_deleter): New.
7843
7844 2019-05-08 Tom Tromey <tom@tromey.com>
7845
7846 * symtab.c (struct symbol_cache): Add destructor and
7847 initializers.
7848 (symbol_cache_key): Move. Change type.
7849 (make_symbol_cache, free_symbol_cache): Remove.
7850 (get_symbol_cache): Update.
7851 (symbol_cache_cleanup): Remove.
7852 (ALL_PSPACES, symbol_cache_flush)
7853 (maintenance_print_symbol_cache)
7854 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7855 Update.
7856
7857 2019-05-08 Tom Tromey <tom@tromey.com>
7858
7859 * symtab.c (struct main_info): Add destructor and initializers.
7860 (main_progspace_key): Move. Change type.
7861 (get_main_info): Update.
7862 (main_info_cleanup): Remove.
7863 (_initialize_symtab): Update.
7864
7865 2019-05-08 Tom Tromey <tom@tromey.com>
7866
7867 * registry.h (DECLARE_REGISTRY): Define the _key class.
7868
7869 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7870
7871 * NEWS: Merge two 'New commands' sections.
7872
7873 2019-05-08 Joel Brobecker <brobecker@adacore.com>
7874
7875 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7876 parameter and use Ada language definition instead.
7877 (ada_val_print_ptr): Remove unused language parameter.
7878 (ada_val_print_num): Remove language parameter and use Ada language
7879 definition instead.
7880 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7881 parameter.
7882 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7883 parameter and use Ada language definition instead.
7884 (ada_val_print_1): Update all ada_val_print_xxx calls.
7885 Remove language parameter.
7886 (ada_val_print): Update ada_val_print_1 call.
7887
7888 2019-05-08 Tom Tromey <tromey@adacore.com>
7889
7890 * remote.c (remote_hw_watchpoint_limit)
7891 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7892 Now static.
7893
7894 2019-05-08 Tom Tromey <tromey@adacore.com>
7895
7896 * maint.c (_initialize_maint_cmds): Move initialization code to
7897 remote.c.
7898 (watchdog, show_watchdog): Move to remote.c.
7899 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7900 "watchdog" static.
7901 (_initialize_remote): Move initialization code from maint.c.
7902 * defs.h (watchdog): Don't declare.
7903
7904 2019-05-08 Tom Tromey <tromey@adacore.com>
7905
7906 * tui/tui-interp.c: Include main.h.
7907 * interps.c: Include main.h.
7908 * main.h (interpreter_p): Declare.
7909 * defs.h (interpreter_p): Don't declare.
7910
7911 2019-05-08 Tom Tromey <tromey@adacore.com>
7912
7913 * dwarf2loc.c: Include dwarf2read.h.
7914 * defs.h (read_unsigned_leb128): Don't declare.
7915 * dwarf2read.h (read_unsigned_leb128): Declare.
7916
7917 2019-05-08 Tom Tromey <tromey@adacore.com>
7918
7919 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7920 method.
7921
7922 2019-05-08 Tom Tromey <tromey@adacore.com>
7923
7924 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7925 when no wrap column is set.
7926
7927 2019-05-08 Tom Tromey <tromey@adacore.com>
7928
7929 * c-lang.c (c_get_string): Handle non-C-style arrays.
7930
7931 2019-05-08 Tom Tromey <tromey@adacore.com>
7932
7933 * typeprint.c (print_offset_data::update): Print the bit offset,
7934 not the number of bits remaining.
7935
7936 2019-05-08 Tom Tromey <tromey@adacore.com>
7937
7938 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7939 padding at end of comment.
7940
7941 2019-05-08 Tom Tromey <tromey@adacore.com>
7942
7943 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7944 Compare main types.
7945
7946 2019-05-06 Tom Tromey <tom@tromey.com>
7947
7948 * common/scoped_mmap.c: Include common-defs.h.
7949 * common/scoped_mmap.h: Don't include config.h.
7950
7951 2019-05-04 Tom Tromey <tom@tromey.com>
7952
7953 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7954 (struct aarch64_call_info): Add initializers.
7955 <si>: Now a std::vector.
7956 (pass_on_stack, aarch64_push_dummy_call): Update.
7957
7958 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
7959 Tom Tromey <tom@tromey.com>
7960
7961 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7962 (ppc_threads): Now a std::vector. Now static.
7963 (hwdebug_find_thread_points_by_tid)
7964 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7965 Update.
7966
7967 2019-05-04 Tom Tromey <tom@tromey.com>
7968
7969 * arc-tdep.c (arc_tdesc_init): Return bool.
7970
7971 2019-05-04 Tom Tromey <tom@tromey.com>
7972
7973 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7974 Use gdb_assert_not_reached.
7975
7976 2019-05-04 Tom Tromey <tom@tromey.com>
7977
7978 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7979 "false".
7980
7981 2019-05-04 Tom Tromey <tom@tromey.com>
7982
7983 * arc-tdep.c (arc_tdesc_init): Use bool.
7984
7985 2019-05-04 Tom Tromey <tom@tromey.com>
7986
7987 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7988
7989 2019-05-04 Tom Tromey <tom@tromey.com>
7990
7991 * cli/cli-cmds.c (valid_command_p): Return bool.
7992
7993 2019-05-04 Tom Tromey <tom@tromey.com>
7994
7995 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7996 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7997
7998 2019-05-04 Raul Tambre <raul@tambre.ee>
7999
8000 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8001 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8002 operator for comparison.
8003
8004 2019-05-04 Tom Tromey <tom@tromey.com>
8005
8006 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8007 (lookup_partial_symbol, print_partial_symbols)
8008 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8009 (psymbol_compare): Update.
8010 (add_psymbol_to_bcache): Clear the entire psymbol.
8011 (maintenance_check_psymtabs): Update.
8012 * psympriv.h (struct partial_symbol): Don't derive from
8013 general_symbol_info.
8014 <obj_section, unrelocated_address, address,
8015 set_unrelocated_address>: Update.
8016 <ginfo>: New member.
8017 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8018 (debug_names::write_psymbols): Update.
8019
8020 2019-05-04 Tom de Vries <tdevries@suse.de>
8021
8022 * contrib/cc-with-tweaks.sh: Support -n arg.
8023
8024 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8025
8026 * corelow.c (core_target::detach): Ensure frame cache and
8027 register caches are cleared.
8028 inferior.c (exit_inferior_1): Likewise.
8029
8030 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8031 Tom Tromey <tom@tromey.com>
8032
8033 * dictionary.c (collate_pending_symbols_by_language): Remove
8034 "struct" from foreach.
8035 * symtab.c (lookup_global_symbol_from_objfile)
8036 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8037 foreach.
8038 * ser-tcp.c (net_open): Remove "struct" from foreach.
8039 * objfiles.c (objfile_relocate, objfile_rebase)
8040 (objfile_has_symbols): Remove "struct" from foreach.
8041 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8042 from foreach.
8043 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8044 foreach.
8045 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8046 "struct" from foreach.
8047 * ada-lang.c (create_excep_cond_exprs)
8048 (ada_exception_catchpoint_cond_string): Remove "struct" from
8049 foreach.
8050
8051 2019-05-03 Tom Tromey <tromey@adacore.com>
8052
8053 * ada-exp.y (convert_char_literal): Check suffix of each
8054 enumerator.
8055
8056 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8057
8058 PR ada/21406:
8059 * ada-exp.y (yywrap): Don't define.
8060 * ada-lex.l (%option): Add noyywrap
8061 (yywrap): Remove.
8062
8063 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8064
8065 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8066 _WIN32_WINNT to the XP level, unless already defined to a higher
8067 level.
8068
8069 * unittests/parse-connection-spec-selftests.c:
8070 * ser-tcp.c:
8071 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8072 override.
8073
8074 * symfile.c (find_separate_debug_file): Remove colon from the
8075 drive spec of DOS/Windows file names of the target, so that the
8076 file name produced from DEBUGDIR and the target's directory will
8077 be valid on DOS/Windows systems.
8078
8079 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8080
8081 * rust-lang.c (val_print_struct): Handle printing structures
8082 containing strings.
8083
8084 2019-05-02 Tom Tromey <tromey@adacore.com>
8085
8086 * valarith.c (_initialize_valarith): Remove.
8087
8088 2019-05-01 Tom Tromey <tromey@adacore.com>
8089
8090 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8091 bitfields.
8092
8093 2019-05-01 Tom Tromey <tromey@adacore.com>
8094
8095 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8096 for big-endian copies.
8097
8098 2019-04-30 Ali Tamur <tamur@google.com>
8099 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8100 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8101 (read_3_bytes): New function.
8102
8103 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8104
8105 * windows-nat.c (main_thread_id): Delete.
8106 (handle_output_debug_string): Replace main_thread_id by
8107 current_event.dwThreadId.
8108 (fake_create_process): Likewise.
8109 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8110 Do not set main_thread_id.
8111 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8112 current_event.dwThreadId.
8113 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8114
8115 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8116
8117 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8118 Use current_event.dwThreadId instead of main_thread_id.
8119
8120 2019-04-30 Tom Tromey <tromey@adacore.com>
8121
8122 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8123 (create_excep_cond_exprs): Iterate over program spaces.
8124 (ada_exception_catchpoint_cond_string): Examine all minimal
8125 symbols for exception types.
8126
8127 2019-04-30 Tom Tromey <tromey@adacore.com>
8128
8129 PR c++/24470:
8130 * dwarf2read.c (process_structure_scope): Handle case where type
8131 has template parameters but no symbol was created.
8132
8133 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8134 Chris January <chris.january@arm.com>
8135
8136 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8137 qualifier.
8138 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8139
8140 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8141
8142 * f-typeprint.c (f_print_type): Update rules for printing
8143 whitespace.
8144 (f_type_print_varspec_suffix): Likewise.
8145
8146 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8147 Chris January <chris.january@arm.com>
8148
8149 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8150 function arguments.
8151
8152 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8153
8154 * f-lang.c (build_fortran_types): Change name of void type to
8155 lower case.
8156 * f-typeprint.c (f_type_print_base): Print the name of the void
8157 type, rather than a fixed string.
8158 * f-valprint.c (f_decorations): Use lower case void string.
8159
8160 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8161 Chris January <chris.january@arm.com>
8162
8163 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8164 types for Fortran.
8165
8166 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8167 Chris January <chris.january@arm.com>
8168 David Lecomber <david.lecomber@arm.com>
8169
8170 * f-exp.y (BINOP_INTRINSIC): New token.
8171 (exp): New parser rule handling BINOP_INTRINSIC.
8172 (f77_keywords): Add new builtin procedures.
8173 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8174 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8175 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8176 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8177 (print_unop_subexp_f): New function.
8178 (print_binop_subexp_f): New function.
8179 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8180 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8181 (dump_subexp_body_f): Likewise.
8182 (operator_check_f): Likewise.
8183 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8184 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8185
8186 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8187
8188 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8189 UNOP_KIND.
8190 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8191 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8192 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8193 (operator_length_f): New fuction.
8194 (print_subexp_f): New function.
8195 (op_name_f): New function.
8196 (dump_subexp_body_f): New function.
8197 (operator_check_f): New function.
8198 (exp_descriptor_f): Replace standard expression handling functions
8199 with new functions.
8200 * gdb/fortran-operator.def: New file.
8201 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8202 * gdb/std-operator.def: Remove UNOP_KIND.
8203
8204 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8205
8206 * std-operator.def: Remove unbalanced, stray double quote
8207 character.
8208
8209 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8210 Chris January <chris.january@arm.com>
8211 Daniel Everett <daniel.everett@arm.com>
8212 Nick Forrington <nick.forrington@arm.com>
8213 Richard Bunt <richard.bunt@arm.com>
8214
8215 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8216 of depth when printing anonymous structs or unions.
8217 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8218 Don't print either the top-level value, or the children if the
8219 max-depth is exceeded.
8220 (ppscm_print_children): When printing the key of a map, allow one
8221 extra level of depth.
8222 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8223 print either the top-level value, or the children if the max-depth
8224 is exceeded.
8225 (print_children): When printing the key of a map, allow one extra
8226 level of depth.
8227 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8228 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8229 (user_print_options): Initialise max_depth field.
8230 (val_print_scalar_or_string_type_p): New function.
8231 (val_print): Check to see if the max depth has been reached.
8232 (val_print_check_max_depth): Define new function.
8233 (show_print_max_depth): New function.
8234 (_initialize_valprint): Add 'print max-depth' option.
8235 * valprint.h (struct value_print_options) <max_depth>: New field.
8236 (val_print_check_max_depth): Declare new function.
8237 * NEWS: Document new feature.
8238
8239 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8240
8241 * ada-lang.c (ada_language_defn): Initialise new field.
8242 * c-lang.c (c_is_string_type_p): New function.
8243 (c_language_defn): Initialise new field.
8244 (cplus_language_defn): Initialise new field.
8245 (asm_language_defn): Initialise new field.
8246 (minimal_language_defn): Initialise new field.
8247 * c-lang.h (c_is_string_type_p): Declare new function.
8248 * d-lang.c (d_language_defn): Initialise new field.
8249 * f-lang.c (f_is_string_type_p): New function.
8250 (f_language_defn): Initialise new field.
8251 * go-lang.c (go_is_string_type_p): New function.
8252 (go_language_defn): Initialise new field.
8253 * language.c (default_is_string_type_p): New function.
8254 (unknown_language_defn): Initialise new field.
8255 (auto_language_defn): Initialise new field.
8256 * language.h (struct language_defn) <la_is_string_type_p>: New
8257 member variable.
8258 (default_is_string_type_p): Declare new function.
8259 * m2-lang.c (m2_language_defn): Initialise new field.
8260 * objc-lang.c (objc_language_defn): Initialise new field.
8261 * opencl-lang.c (opencl_language_defn): Initialise new field.
8262 * p-lang.c (pascal_is_string_type_p): New function.
8263 (pascal_language_defn): Initialise new field.
8264 * rust-lang.c (rust_is_string_type_p): New function.
8265 (rust_language_defn): Initialise new field.
8266
8267 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8268
8269 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8270 New field.
8271 * ada-lang.c (ada_language_defn): Initialise new field.
8272 * c-lang.c (c_language_defn): Likewise.
8273 (cplus_language_defn): Likewise.
8274 (asm_language_defn): Likewise.
8275 (minimal_language_defn): Likewise.
8276 * d-lang.c (d_language_defn): Likewise.
8277 * f-lang.c (f_language_defn): Likewise.
8278 * go-lang.c (go_language_defn): Likewise.
8279 * language.c (unknown_language_defn): Likewise.
8280 (auto_language_defn): Likewise.
8281 * m2-lang.c (m2_language_defn): Likewise.
8282 * objc-lang.c (objc_language_defn): Likewise.
8283 * opencl-lang.c (opencl_language_defn): Likewise.
8284 * p-lang.c (pascal_language_defn): Likewise.
8285 * rust-lang.c (rust_language_defn): Likewise.
8286
8287 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8288
8289 * ada-lang.c (ada_is_character_type): Change return type to bool.
8290 (ada_is_string_type): Likewise.
8291 * ada-lang.h (ada_is_character_type): Update declaration
8292 (ada_is_string_type): Likewise.
8293
8294 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8295
8296 Support style in 'frame|thread apply'
8297
8298 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8299 * record.c (record_start, record_stop): Update callers of
8300 execute_command_to_string with false.
8301 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8302 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8303 methods.
8304 (class string_file): New constructor with term_out parameter.
8305 Override methods term_out and can_emit_style_escape. New member
8306 term_out.
8307 (class stdio_file): Override can_emit_style_escape.
8308 (class tee_file): Override term_out and can_emit_style_escape.
8309 * utils.h (can_emit_style_escape): Remove.
8310 * utils.c (can_emit_style_escape): Likewise.
8311 Update all callers of can_emit_style_escape (SOMESTREAM) to
8312 SOMESTREAM->can_emit_style_escape.
8313 * source-cache.c (source_cache::get_source_lines): Likewise.
8314 * stack.c (frame_apply_command_count): Call execute_command_to_string
8315 passing the term_out characteristic of the current gdb_stdout.
8316 * thread.c (thr_try_catch_cmd): Likewise.
8317 * top.c (execute_command_to_string): pass term_out parameter
8318 to construct the string_file for the command output.
8319 * ui-file.c (term_cli_styling): New function (most code moved
8320 from utils.c can_emit_style_escape).
8321 (string_file::string_file, string_file::can_emit_style_escape,
8322 stdio_file::can_emit_style_escape, tee_file::term_out,
8323 tee_file::can_emit_style_escape): New functions.
8324
8325 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8326
8327 * NEWS: Mention the new set|show may-call-functions.
8328 * infcall.c (may_call_functions_p): New variable.
8329 (show_may_call_functions_p): New function.
8330 (call_function_by_hand_dummy): Throws an error if not
8331 may-call-functions.
8332 (_initialize_infcall): Call add_setshow_boolean_cmd for
8333 may-call-functions.
8334
8335 2019-04-25 Keith Seitz <keiths@redhat.com>
8336
8337 PR c++/24367
8338 * cp-support.c (inspect_type): Don't attempt substitutions
8339 of symbol with the same name.
8340
8341 2019-04-25 Tom Tromey <tromey@adacore.com>
8342
8343 PR gdb/24475:
8344 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8345 static.
8346
8347 2019-04-25 Tom Tromey <tromey@adacore.com>
8348
8349 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8350 rvalue reference.
8351 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8352 (gdb_xml_parser::parse): Use std::move.
8353 * python/python-internal.h (gdbpy_convert_exception): Take a const
8354 reference.
8355 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8356 std::move.
8357 * python/py-utils.c (gdbpy_convert_exception): Take a const
8358 reference.
8359 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8360 Use std::move.
8361 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8362 Use std::move.
8363 * mi/mi-main.c (mi_print_exception): Take a const reference.
8364 * main.c (handle_command_errors): Take a const reference.
8365 * linespec.c (parse_linespec): Use std::move.
8366 * infcall.c (run_inferior_call): Use std::move.
8367 (call_function_by_hand_dummy): Use std::move.
8368 * exec.c (try_open_exec_file): Use std::move.
8369 * exceptions.h (exception_print, exception_fprintf)
8370 (exception_print_same): Update.
8371 * exceptions.c (print_exception, exception_print)
8372 (exception_fprintf, exception_print_same): Change parameters to
8373 const reference.
8374 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8375 * common/new-op.c: Use std::move.
8376 * common/common-exceptions.h (struct gdb_exception): Add move
8377 constructor.
8378 (struct gdb_exception_error, struct gdb_exception_quit, struct
8379 gdb_quit_bad_alloc): Change constructor to move constructor.
8380 (throw_exception): Change parameter to rvalue reference.
8381 * common/common-exceptions.c (throw_exception): Take rvalue
8382 reference.
8383 * cli/cli-interp.c (safe_execute_command): Use std::move.
8384 * breakpoint.c (insert_bp_location, location_to_sals): Use
8385 std::move.
8386
8387 2019-04-25 Tom Tromey <tromey@adacore.com>
8388
8389 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8390 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8391 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8392 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8393 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8394 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8395 guile/scm-value.c: Use unpack.
8396 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8397 gdbscm_gdb_exception.
8398 (gdbscm_throw_gdb_exception): Likewise.
8399 (struct gdbscm_gdb_exception): New.
8400 (unpack): New function.
8401 (gdbscm_wrap): Use unpack.
8402
8403 2019-04-25 Tom Tromey <tromey@adacore.com>
8404
8405 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8406 (gdb_rl_callback_handler): Use std::move.
8407 * common/common-exceptions.h (struct gdb_exception): Add move
8408 assignment operator.
8409 (throw_exception_sjlj): Change "exception" to const reference.
8410 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8411 (throw_exception_sjlj): Change "exception" to const reference.
8412
8413 2019-04-25 Tom Tromey <tromey@adacore.com>
8414
8415 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8416 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8417 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8418 Update.
8419 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8420 Update.
8421 * mi/mi-interp.c (mi_interp::exec): Update.
8422 * linespec.c (parse_linespec): Update.
8423 * infcall.c (run_inferior_call): Update.
8424 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8425 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8426 (gdbscm_lookup_global_symbol): Update.
8427 * guile/scm-param.c (gdbscm_parameter_value): Update.
8428 * guile/scm-frame.c (gdbscm_frame_read_register)
8429 (gdbscm_frame_read_var): Update.
8430 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8431 * exec.c (try_open_exec_file): Update.
8432 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8433 (gdb_rl_callback_handler): Update.
8434 * common/common-exceptions.h (exception_none): Don't declare.
8435 * common/common-exceptions.c (exception_none): Don't define.
8436 (struct catcher) <exception>: Update.
8437 * cli/cli-interp.c (safe_execute_command): Update.
8438 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8439
8440 2019-04-25 Ali Tamur <tamur@google.com>
8441
8442 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8443 (read_attribute_value): Likewise.
8444 (dwarf2_read_addr_index): Update comment.
8445 (read_str_index): Add DW_FORM_strx.
8446 (dwarf2_string_attr): Likewise.
8447 (dwarf2_const_value_attr): Likewise.
8448 (dump_die_shallow): Likewise.
8449 (dwarf2_fetch_constant_bytes): Likewise.
8450 (skip_form_bytes): Likewise.
8451 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8452
8453 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8454
8455 PR corefiles/11608
8456 PR corefiles/18187
8457 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8458 OFFSET. Verify if current mapping contains an ELF header.
8459 (linux_find_memory_regions_full): Adjust call to
8460 dump_mapping_p.
8461
8462 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8463 Kang Li <kanglictf@gmail.com>
8464
8465 PR gdb/21600
8466
8467 * dwarf2-frame.c (read_initial_length): Be consistent about using
8468 unsigned representation of length.
8469 (decode_frame_entry_1): Likewise. Check for wraparound of
8470 end pointer as well as buffer overflow.
8471
8472 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8473
8474 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8475 "vq".
8476
8477 2019-04-24 Tom Tromey <tromey@adacore.com>
8478
8479 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8480
8481 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8482
8483 * s12z-tdep.c (s12z_unwind_pc): Delete.
8484 (s12z_unwind_sp): Delete.
8485 (s12z_gdbarch_init): Don't register deleted functions with
8486 gdbarch.
8487
8488 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8489
8490 * rl78-tdep.c (rl78_unwind_sp): Delete.
8491 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8492
8493 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8494
8495 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8496 (xstormy16_unwind_pc): Delete.
8497 (xstormy16_dummy_id): Delete.
8498 (xstormy16_gdbarch_init): Don't register deleted functions with
8499 gdbarch.
8500
8501 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8502
8503 * vax-tdep.c (vax_unwind_pc): Delete.
8504 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8505
8506 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8507
8508 * v850-tdep.c (v850_unwind_sp): Delete.
8509 (v850_unwind_pc): Delete.
8510 (v850_dummy_id): Delete.
8511 (v850_gdbarch_init): Don't register deleted functions with
8512 gdbarch.
8513
8514 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8515
8516 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8517 (tilegx_unwind_pc): Delete.
8518 (tilegx_unwind_dummy_id): Delete.
8519 (tilegx_gdbarch_init): Don't register deleted functions with
8520 gdbarch.
8521
8522 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8523
8524 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8525 (tic6x_dummy_id): Delete.
8526 (tic6x_gdbarch_init): Don't register deleted functions with
8527 gdbarch.
8528
8529 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8530
8531 * sparc-tdep.c (sparc_unwind_pc): Delete.
8532 (sparc32_gdbarch_init): Don't register deleted function with
8533 gdbarch.
8534
8535 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8536
8537 * sh-tdep.c (sh_unwind_sp): Delete.
8538 (sh_unwind_pc): Delete.
8539 (sh_dummy_id): Delete.
8540 (sh_gdbarch_init): Don't register deleted functions with
8541 gdbarch.
8542
8543 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8544
8545 * score-tdep.c (score_unwind_sp): Delete.
8546 (score_unwind_pc): Delete.
8547 (score_dummy_id): Delete.
8548 (score_gdbarch_init): Don't register deleted functions with
8549 gdbarch.
8550
8551 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8552
8553 * rx-tdep.c (rx_unwind_pc): Delete.
8554 (rx_unwind_sp): Delete.
8555 (rx_dummy_id): Delete.
8556 (rx_gdbarch_init): Don't register deleted functions with
8557 gdbarch. Update comment.
8558
8559 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8560
8561 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8562 (rs6000_dummy_id): Delete.
8563 (rs6000_gdbarch_init): Don't register deleted functions with
8564 gdbarch.
8565
8566 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8567
8568 * or1k-tdep.c (or1k_dummy_id): Delete.
8569 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8570
8571 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8572
8573 * nios2-tdep.c (nios2_dummy_id): Delete.
8574 (nios2_unwind_sp): Delete.
8575 (nios2_gdbarch_init): Don't register deleted functions with
8576 gdbarch.
8577
8578 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8579
8580 * nds32-tdep.c (nds32_dummy_id): Delete.
8581 (nds32_unwind_pc): Delete.
8582 (nds32_unwind_sp): Delete.
8583 (nds32_gdbarch_init): Don't register deleted functions with
8584 gdbarch.
8585
8586 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8587
8588 * msp430-tdep.c (msp430_unwind_pc): Delete.
8589 (msp430_unwind_sp): Delete.
8590 (msp430_dummy_id): Delete.
8591 (msp430_gdbarch_init): Don't register deleted functions with
8592 gdbarch.
8593
8594 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8595
8596 * moxie-tdep.c (moxie_unwind_sp): Delete.
8597 (moxie_unwind_pc): Delete.
8598 (moxie_dummy_id): Delete.
8599 (moxie_gdbarch_init): Don't register deleted functions with
8600 gdbarch.
8601
8602 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8603
8604 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8605 (mn10300_unwind_pc): Delete.
8606 (mn10300_unwind_sp): Delete.
8607 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8608 mn10300_unwind_sp.
8609 (mn10300_frame_unwind_init): Don't register deleted functions with
8610 gdbarch.
8611
8612 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8613
8614 * mep-tdep.c (mep_unwind_pc): Delete.
8615 (mep_unwind_sp): Delete.
8616 (mep_dummy_id): Delete.
8617 (mep_gdbarch_init): Don't register deleted functions with
8618 gdbarch.
8619
8620 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8621
8622 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8623 (m68hc11_unwind_sp): Delete.
8624 (m68hc11_gdbarch_init): Don't register deleted functions with
8625 gdbarch.
8626
8627 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8628
8629 * m32r-tdep.c (m32r_unwind_sp): Delete.
8630 (m32r_unwind_pc): Delete.
8631 (m32r_dummy_id): Delete.
8632 (m32r_gdbarch_init): Don't register deleted functions with
8633 gdbarch.
8634
8635 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8636
8637 * m32c-tdep.c (m32c_unwind_pc): Delete.
8638 (m32c_unwind_sp): Delete.
8639 (m32c_dummy_id): Delete.
8640 (m32c_gdbarch_init): Don't register deleted functions with
8641 gdbarch.
8642
8643 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8644
8645 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8646 (lm32_unwind_pc): Delete.
8647 (lm32_dummy_id): Delete.
8648 (lm32_gdbarch_init): Don't register deleted functions with
8649 gdbarch.
8650
8651 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8652
8653 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8654 (iq2000_unwind_pc): Delete.
8655 (iq2000_dummy_id): Delete.
8656 (iq2000_gdbarch_init): Don't register deleted functions with
8657 gdbarch.
8658
8659 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8660
8661 * nds32-tdep.c (nds32_type_align): Delete.
8662 (nds32_push_dummy_call): Use type_align instead.
8663
8664 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8665
8666 * arm-tdep.c (arm_type_align): Only handle vector override case.
8667 (arm_push_dummy_call): Use type_align.
8668 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8669
8670 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8671
8672 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8673 case.
8674 (pass_on_stack): Use type_align.
8675 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8676 function.
8677
8678 2019-04-23 Tom Tromey <tromey@adacore.com>
8679
8680 * dwarf2read.c (line_header::file_name_at): Remove unused
8681 overload.
8682
8683 2019-04-23 Tom de Vries <tdevries@suse.de>
8684
8685 PR gdb/24438
8686 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8687 invocation.
8688
8689
8690 2019-03-27 Ali Tamur <tamur@google.com>
8691
8692 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8693 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8694 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8695 (dwarf_expr_context::get_addr_index): Likewise
8696 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8697 (symbol_needs_eval_context::get_addr_index): Likewise
8698 (disassemble_dwarf_expression): Add DW_OP_addrx
8699 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8700 (read_cutu_die_from_dwo): Update comment
8701 (skip_one_die): Add DW_FORM_addrx
8702 (read_attribute_value): Likewise
8703 (var_decode_location): Add DW_OP_addrx
8704 (dwarf2_const_value_attr): Add DW_FORM_addrx
8705 (dump_die_shallow): Likewise
8706 (dwarf2_fetch_constant_bytes): Likewise
8707 (decode_locdesc): Add DW_OP_addrx
8708 (skip_form_bytes): Add DW_FORM_addrx
8709
8710 2019-04-22 Ali Tamur <tamur@google.com>
8711
8712 * MAINTAINERS (Write After Approval): Add self.
8713
8714 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
8715
8716 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8717 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8718 (open_symbol_file_object): Likewise.
8719 (svr4_default_sos): Add info parameter.
8720 (svr4_read_so_list): Likewise.
8721 (svr4_current_sos_direct): Adjust functions calls to pass down
8722 info.
8723 (svr4_current_sos_1): Add info parameter.
8724 (svr4_current_sos): Call get_svr4_info, pass info down to
8725 svr4_current_sos_1.
8726 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8727 get_svr4_info.
8728 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8729 get_svr4_info.
8730 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8731 to get_svr4_info.
8732 (probes_table_remove_objfile_probes): Likewise.
8733 (register_solib_event_probe): Add info parameter.
8734 (solist_update_incremental): Pass info parameter down to
8735 svr4_read_so_list.
8736 (disable_probes_interface): Add info parameter.
8737 (svr4_handle_solib_event): Pass current_program_space to
8738 get_svr4_info. Adjust disable_probes_interface cleanup.
8739 (svr4_create_probe_breakpoints): Add info parameter, pass it
8740 down to register_solib_event_probe.
8741 (svr4_create_solib_event_breakpoints): Add info parameter,
8742 pass it down to svr4_create_probe_breakpoints.
8743 (enable_break): Pass info down to
8744 svr4_create_solib_event_breakpoints.
8745 (svr4_solib_create_inferior_hook): Pass current_program_space to
8746 get_svr4_info.
8747 (svr4_clear_solib): Likewise.
8748
8749 2019-04-22 Pedro Alves <palves@redhat.com>
8750
8751 * solib-svr4.c (svr4_free_objfile_observer): New.
8752 (probe_and_action::objfile): New field.
8753 (probes_table_htab_remove_objfile_probes)
8754 (probes_table_remove_objfile_probes): New functions.
8755 (register_solib_event_probe): Add 'objfile' parameter. Store it
8756 in the new probe_and_action. Don't store the probe in 'lookup'.
8757 (svr4_create_probe_breakpoints): Pass objfile to
8758 register_solib_event_probe.
8759 (_initialize_svr4_solib): Register a free_objfile observer.
8760
8761 2019-04-19 Tom Tromey <tom@tromey.com>
8762
8763 * common/queue.h: Remove.
8764
8765 2019-04-19 Tom Tromey <tom@tromey.com>
8766
8767 * event-loop.c: Don't include "common/queue.h".
8768
8769 2019-04-19 Tom Tromey <tom@tromey.com>
8770
8771 * remote.c (remote_target): Use delete.
8772 * remote-notif.h: Include <list>, not "common/queue.h".
8773 (notif_client_p): Remove typedef.
8774 (remote_notif_state): Add constructor, destructor, initializer.
8775 <notif_queue>: Now a std::list.
8776 (remote_notif_state_xfree): Don't declare.
8777 * remote-notif.c (remote_notif_process, handle_notification)
8778 (remote_notif_state_allocate): Update.
8779 (~remote_notif_state): Rename from remote_notif_state_xfree.
8780
8781 2019-04-19 Tom Tromey <tom@tromey.com>
8782
8783 * symfile.c (reread_symbols): Update.
8784 * objfiles.c (objfile_register_static_link)
8785 (objfile_lookup_static_link): Update
8786 (~objfile) Don't delete static_links.
8787 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8788
8789 2019-04-19 Tom Tromey <tom@tromey.com>
8790
8791 * type-stack.h (struct type_stack) <insert>: Constify string.
8792 * type-stack.c (type_stack::insert): Constify string.
8793 * gdbtypes.h (lookup_template_type): Update.
8794 (address_space_name_to_int): Update.
8795 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8796 const.
8797 (lookup_template_type): Make name const.
8798 * c-exp.y: Update rules.
8799 (lex_one_token, classify_name, classify_inner_name)
8800 (c_print_token): Update.
8801 * p-exp.y: Update rules.
8802 (yylex): Update.
8803 * f-exp.y: Update rules.
8804 (yylex): Update.
8805 * d-exp.y: Update rules.
8806 (lex_one_token, classify_name, classify_inner_name): Update.
8807 * parse.c (write_dollar_variable, copy_name): Return std::string.
8808 * parser-defs.h (copy_name): Change return type.
8809 * m2-exp.y: Update rules.
8810 (yylex): Update.
8811 * go-exp.y (lex_one_token): Update.
8812 Update rules.
8813 (classify_unsafe_function, classify_packaged_name)
8814 (classify_name, yylex): Update.
8815
8816 2019-04-19 Sergei Trofimovich <siarheit@google.com>
8817
8818 * configure.ac: add --enable-source-highlight switch.
8819 * configure: Regenerate.
8820 * top.c (print_gdb_version): plumb --enable-source-highlight
8821 status to "show configuration".
8822
8823 2019-04-19 Tom Tromey <tromey@adacore.com>
8824
8825 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8826 Check ADA_TYPE_P.
8827 (empty_record, ada_template_to_fixed_record_type_1)
8828 (template_to_static_fixed_type)
8829 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8830 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8831 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8832 macros.
8833
8834 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8835
8836 PR symtab/24423:
8837 * source.c (print_source_lines_base): Advance "iter" when a
8838 control character is seen.
8839
8840 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8841
8842 * inferior.h (struct infcall_suspend_state_deleter):
8843 Catch exception in destructor to avoid crash.
8844
8845 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8846
8847 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8848 close to the add_com "shell".
8849
8850 2019-04-18 Tom Tromey <tromey@adacore.com>
8851
8852 * process-stratum-target.h (class process_stratum_target)
8853 <stratum>: Add "final".
8854
8855 2019-04-17 Tom Tromey <tromey@adacore.com>
8856
8857 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8858 against nullptr before use.
8859
8860 2019-04-17 Alan Hayward <alan.hayward@arm.com>
8861
8862 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8863
8864 2019-04-17 Jim Wilson <jimw@sifive.com>
8865 Andrew Burgess <andrew.burgess@embecosm.com>
8866
8867 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8868 code read might fail, assume 4-byte breakpoint in that case.
8869
8870 2019-04-15 Leszek Swirski <leszeks@google.com>
8871
8872 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8873 rather than a hand-rolled POD check when checking for forced MEMORY
8874 classification.
8875
8876 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8877
8878 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8879 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8880 function.
8881 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8882 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8883 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8884 declaration.
8885
8886 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8887
8888 * aarch64-linux-nat.c
8889 (aarch64_linux_nat_target::thread_architecture): Add override.
8890 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8891 each VQ.
8892
8893 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8894
8895 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8896
8897 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8898
8899 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8900 target types of size 96-bits, add some additional comments, and
8901 check that the builtin type we found was the correct size.
8902
8903 2019-04-12 Eli Zaretskii <eliz@gnu.org>
8904
8905 * utils.c (prompt_for_continue): Don't restore the styling at the
8906 end, as applied_style has the wrong value. This fixes styling in
8907 long lists of file names that are interrupted by the "Continue?"
8908 prompt.
8909
8910 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8911
8912 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8913 * c-lang.c (c_language_defn): Likewise.
8914 (cplus_language_defn): Likewise.
8915 (asm_language_defn): Likewise.
8916 (minimal_language_defn): Likewise.
8917 * d-lang.c (d_language_defn): Likewise.
8918 * f-lang.c (f_language_defn): Likewise.
8919 * go-lang.c (go_language_defn): Likewise.
8920 * language.c (unknown_language_defn): Likewise.
8921 (auto_language_defn): Likewise.
8922 * language.h (struct language_defn): Remove la_magic field.
8923 (LANG_MAGIC): Delete.
8924 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8925 * objc-lang.c (objc_language_defn): Likewise.
8926 * opencl-lang.c (opencl_language_defn): Likewise.
8927 * p-lang.c (pascal_language_defn): Likewise.
8928 * rust-lang.c (rust_language_defn): Likewise.
8929
8930 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8931
8932 * riscv-tdep.c (riscv_type_align): New function.
8933 (riscv_type_alignment): Delete.
8934 (riscv_arg_location): Use 'type_align'.
8935 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8936
8937 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8938
8939 * gdbtypes.c (type_align): A struct with no non-static fields also
8940 has alignment of 1.
8941
8942 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8943
8944 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8945 component to 0.
8946 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8947 member.
8948 (riscv_struct_info::analyse): New implementation using new
8949 analyse_inner member function.
8950 (riscv_struct_info::field_offset): New member function.
8951 (riscv_struct_info::m_offsets): New member variable.
8952 (riscv_struct_info::analyse_inner): New private member function,
8953 takes the old implementation of riscv_struct_info::analyse but
8954 extended to track field offsets.
8955 (riscv_call_arg_struct): Update the struct folding special cases
8956 to handle cases where empty C++ structs, which are non-zero
8957 length, are found.
8958 (riscv_arg_location): Initialise the length of each location, a
8959 non-zero length now indicates the location is in use.
8960 (riscv_push_dummy_call): Allow for the first location having a
8961 non-zero offset when setting up arguments.
8962 (riscv_return_value): Likewise, but for return values.
8963
8964 2019-04-11 Tom Tromey <tromey@adacore.com>
8965
8966 * utils.c (internal_vproblem): Make "msg" const.
8967
8968 2019-04-11 Alan Hayward <alan.hayward@arm.com>
8969
8970 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8971 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8972 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8973 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8974
8975 2019-04-10 Kevin Buettner <kevinb@redhat.com>
8976
8977 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8978 function.
8979 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8980 of amd64_collect_native_gregset.
8981 (amd64_linux_nat_target::store_registers): Likewise.
8982
8983 2019-04-10 Tom Tromey <tom@tromey.com>
8984
8985 * symtab.c (lookup_global_symbol_from_objfile)
8986 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8987 * objfiles.h (class separate_debug_iterator): New.
8988 (class separate_debug_range): New.
8989 (struct objfile) <separate_debug_objfiles>: New method.
8990 (objfile_separate_debug_iterate): Don't declare.
8991 * objfiles.c (separate_debug_iterator::operator++): Rename from
8992 objfile_separate_debug_iterate.
8993 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8994 iterator.
8995 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8996 iterator.
8997
8998 2019-04-10 Tom Tromey <tom@tromey.com>
8999
9000 * symfile.c (reread_symbols): Remove old comment.
9001 * objfiles.c (free_all_objfiles): Fix a typo.
9002
9003 2019-04-10 Tom Tromey <tom@tromey.com>
9004
9005 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9006 * minsyms.c (lookup_minimal_symbol): Use foreach.
9007 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9008 (lookup_minimal_symbol_solib_trampoline): Likewise.
9009 * symfile.c (reread_symbols): Use foreach.
9010
9011 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9012 Tom Tromey <tromey@adacore.com>
9013
9014 PR rust/24414:
9015 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9016 (rust_lex_int_test): Change "value" to be LONGEST.
9017 (rust_lex_tests): Add test for long integer literal.
9018
9019 2019-04-09 Tom Tromey <tromey@adacore.com>
9020
9021 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9022 to bool.
9023 (extended_remote_target::attach): Update.
9024 (remote_target::remote_notice_new_inferior): Update.
9025 (remote_target::add_current_inferior_and_thread): Update.
9026 * inferior.c (exit_inferior_1): Use "false".
9027 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9028
9029 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9030
9031 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9032 the "start" command.
9033
9034 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9035
9036 * python/py-inferior.c (infpy_thread_from_thread_handle):
9037 Adjust comments to reflect renaming of thread_from_thread_handle
9038 to thread_from_handle. Adjust keywords. Fix type error message.
9039 (inferior_object_methods): Add thread_from_handle. Retain
9040 thread_from_thread_handle, but mark it as deprecated.
9041
9042 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9043
9044 * gdbthread.h (find_thread_by_handle): Revise declaration.
9045 * thread.c (find_thread_by_handle): Likewise. Adjust
9046 implementation too.
9047 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9048 support for buffer objects as handles.
9049
9050 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9051
9052 * python/py-infthread.c (thpy_thread_handle): New function.
9053 (thread_object_methods): Register thpy_thread_handle.
9054
9055 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9056
9057 * gdbthread.h (thread_to_thread_handle): Declare.
9058 * thread.c (gdbtypes.h): Include.
9059 (thread_to_thread_handle): New function.
9060
9061 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9062 (target_thread_info_to_thread_handle): Declare.
9063 * target.c (target_thread_info_to_thread_handle): New function.
9064 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9065 * target-delegates.c: Regenerate.
9066
9067 * linux-thread-db.c (class thread_db_target): Add method
9068 thread_info_to_thread_handle.
9069 (thread_db_target::thread_info_to_thread_handle): Define.
9070 * remote.c (class remote_target): Add new method
9071 thread_info_to_thread_handle.
9072 (remote_target::thread_info_to_thread_handle): Define.
9073
9074 2019-04-08 Pedro Alves <palves@redhat.com>
9075
9076 * common/common-exceptions.c (throw_exception): Don't create
9077 named object to throw; throw directly.
9078 (throw_it): Likewise. Don't initialize gdb_exception::message
9079 here, with new; pass FMT and AP to the ctor instead.
9080 * common/common-exceptions.h: Include <string>.
9081 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9082 const char *, va_list)): New ctor. Use std::make_shared.
9083 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9084 errors)): Delete.
9085 (gdb_exception_error::gdb_exception_error(enum errors, const char
9086 *, va_list)): New.
9087 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9088 Add assertion.
9089 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9090 errors)): Delete.
9091 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9092 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9093 Add assertion.
9094
9095 2019-04-08 Tom Tromey <tom@tromey.com>
9096
9097 * valops.c (value_rtti_indirect_type): Replace throw_exception
9098 with throw.
9099 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9100 with throw.
9101 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9102 throw.
9103 * target.c (target_translate_tls_address): Replace throw_exception
9104 with throw.
9105 * stack.c (frame_apply_command_count): Replace throw_exception
9106 with throw.
9107 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9108 throw.
9109 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9110 with throw.
9111 * rs6000-tdep.c (rs6000_frame_cache)
9112 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9113 * remote.c: Replace throw_exception with throw.
9114 * record-full.c (record_full_message, record_full_wait_1)
9115 (record_full_restore): Replace throw_exception with throw.
9116 * record-btrace.c:
9117 (get_thread_current_frame_id, record_btrace_start_replaying)
9118 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9119 (cmd_record_btrace_start): Replace throw_exception with throw.
9120 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9121 throw.
9122 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9123 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9124 * linespec.c:
9125 (find_linespec_symbols): Replace throw_exception with throw.
9126 * infrun.c (displaced_step_prepare, resume): Replace
9127 throw_exception with throw.
9128 * infcmd.c (post_create_inferior): Replace throw_exception with
9129 throw.
9130 * inf-loop.c (inferior_event_handler): Replace throw_exception
9131 with throw.
9132 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9133 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9134 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9135 (get_prev_frame_always, get_frame_pc_if_available)
9136 (get_frame_address_in_block_if_available, get_frame_language):
9137 Replace throw_exception with throw.
9138 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9139 throw_exception with throw.
9140 * eval.c (fetch_subexp_value, evaluate_var_value)
9141 (evaluate_funcall, evaluate_subexp_standard): Replace
9142 throw_exception with throw.
9143 * dwarf2loc.c (call_site_find_chain)
9144 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9145 Replace throw_exception with throw.
9146 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9147 with throw.
9148 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9149 throw.
9150 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9151 * completer.c (complete_line_internal): Replace throw_exception
9152 with throw.
9153 * compile/compile-object-run.c (compile_object_run): Replace
9154 throw_exception with throw.
9155 * cli/cli-script.c (process_next_line): Replace throw_exception
9156 with throw.
9157 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9158 (btrace_enable, btrace_maint_update_pt_packets): Replace
9159 throw_exception with throw.
9160 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9161 throw_exception with throw.
9162 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9163 throw_exception with throw.
9164 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9165 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9166 * aarch64-tdep.c (aarch64_make_prologue_cache)
9167 (aarch64_make_stub_cache): Replace throw_exception with throw.
9168
9169 2019-04-08 Tom Tromey <tom@tromey.com>
9170
9171 * common/common-exceptions.c (throw_exception): Rename from
9172 throw_exception_cxx. Remove old copy. Make argument const.
9173 (throw_it): Create and throw exception objects directly.
9174 * common/common-exceptions.h (throw_exception): Make argument
9175 const.
9176 (struct gdb_exception_error): Add constructor.
9177 (struct gdb_exception_quit): Add constructor.
9178
9179 2019-04-08 Tom Tromey <tom@tromey.com>
9180
9181 * common/common-exceptions.h (exception_rethrow): Don't declare.
9182 (TRY_SJLJ): Update comment.
9183 (TRY, CATCH, END_CATCH): Remove.
9184 * common/common-exceptions.c (exception_rethrow): Remove.
9185
9186 2019-04-08 Tom Tromey <tom@tromey.com>
9187
9188 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9189 Remove.
9190 (gdb_exception_error): Rename from
9191 gdb_exception_RETURN_MASK_ERROR.
9192 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9193 (gdb_quit_bad_alloc): Update.
9194 * aarch64-tdep.c: Update.
9195 * ada-lang.c: Update.
9196 * ada-typeprint.c: Update.
9197 * ada-valprint.c: Update.
9198 * amd64-tdep.c: Update.
9199 * arch-utils.c: Update.
9200 * break-catch-throw.c: Update.
9201 * breakpoint.c: Update.
9202 * btrace.c: Update.
9203 * c-varobj.c: Update.
9204 * cli/cli-cmds.c: Update.
9205 * cli/cli-interp.c: Update.
9206 * cli/cli-script.c: Update.
9207 * common/common-exceptions.c: Update.
9208 * common/new-op.c: Update.
9209 * common/selftest.c: Update.
9210 * compile/compile-c-symbols.c: Update.
9211 * compile/compile-cplus-symbols.c: Update.
9212 * compile/compile-object-load.c: Update.
9213 * compile/compile-object-run.c: Update.
9214 * completer.c: Update.
9215 * corelow.c: Update.
9216 * cp-abi.c: Update.
9217 * cp-support.c: Update.
9218 * cp-valprint.c: Update.
9219 * darwin-nat.c: Update.
9220 * disasm-selftests.c: Update.
9221 * dtrace-probe.c: Update.
9222 * dwarf-index-cache.c: Update.
9223 * dwarf-index-write.c: Update.
9224 * dwarf2-frame-tailcall.c: Update.
9225 * dwarf2-frame.c: Update.
9226 * dwarf2loc.c: Update.
9227 * dwarf2read.c: Update.
9228 * eval.c: Update.
9229 * event-loop.c: Update.
9230 * event-top.c: Update.
9231 * exec.c: Update.
9232 * f-valprint.c: Update.
9233 * fbsd-tdep.c: Update.
9234 * frame-unwind.c: Update.
9235 * frame.c: Update.
9236 * gdbtypes.c: Update.
9237 * gnu-v3-abi.c: Update.
9238 * guile/guile-internal.h: Update.
9239 * guile/scm-block.c: Update.
9240 * guile/scm-breakpoint.c: Update.
9241 * guile/scm-cmd.c: Update.
9242 * guile/scm-disasm.c: Update.
9243 * guile/scm-frame.c: Update.
9244 * guile/scm-lazy-string.c: Update.
9245 * guile/scm-math.c: Update.
9246 * guile/scm-param.c: Update.
9247 * guile/scm-ports.c: Update.
9248 * guile/scm-pretty-print.c: Update.
9249 * guile/scm-symbol.c: Update.
9250 * guile/scm-symtab.c: Update.
9251 * guile/scm-type.c: Update.
9252 * guile/scm-value.c: Update.
9253 * i386-linux-tdep.c: Update.
9254 * i386-tdep.c: Update.
9255 * inf-loop.c: Update.
9256 * infcall.c: Update.
9257 * infcmd.c: Update.
9258 * infrun.c: Update.
9259 * jit.c: Update.
9260 * language.c: Update.
9261 * linespec.c: Update.
9262 * linux-fork.c: Update.
9263 * linux-nat.c: Update.
9264 * linux-tdep.c: Update.
9265 * linux-thread-db.c: Update.
9266 * main.c: Update.
9267 * mi/mi-cmd-break.c: Update.
9268 * mi/mi-cmd-stack.c: Update.
9269 * mi/mi-interp.c: Update.
9270 * mi/mi-main.c: Update.
9271 * objc-lang.c: Update.
9272 * p-valprint.c: Update.
9273 * parse.c: Update.
9274 * ppc-linux-tdep.c: Update.
9275 * printcmd.c: Update.
9276 * python/py-arch.c: Update.
9277 * python/py-breakpoint.c: Update.
9278 * python/py-cmd.c: Update.
9279 * python/py-finishbreakpoint.c: Update.
9280 * python/py-frame.c: Update.
9281 * python/py-framefilter.c: Update.
9282 * python/py-gdb-readline.c: Update.
9283 * python/py-inferior.c: Update.
9284 * python/py-infthread.c: Update.
9285 * python/py-lazy-string.c: Update.
9286 * python/py-linetable.c: Update.
9287 * python/py-objfile.c: Update.
9288 * python/py-param.c: Update.
9289 * python/py-prettyprint.c: Update.
9290 * python/py-progspace.c: Update.
9291 * python/py-record-btrace.c: Update.
9292 * python/py-record.c: Update.
9293 * python/py-symbol.c: Update.
9294 * python/py-type.c: Update.
9295 * python/py-unwind.c: Update.
9296 * python/py-utils.c: Update.
9297 * python/py-value.c: Update.
9298 * python/python.c: Update.
9299 * record-btrace.c: Update.
9300 * record-full.c: Update.
9301 * remote-fileio.c: Update.
9302 * remote.c: Update.
9303 * riscv-tdep.c: Update.
9304 * rs6000-aix-tdep.c: Update.
9305 * rs6000-tdep.c: Update.
9306 * rust-exp.y: Update.
9307 * rust-lang.c: Update.
9308 * s390-tdep.c: Update.
9309 * selftest-arch.c: Update.
9310 * solib-dsbt.c: Update.
9311 * solib-frv.c: Update.
9312 * solib-spu.c: Update.
9313 * solib-svr4.c: Update.
9314 * solib.c: Update.
9315 * sparc64-linux-tdep.c: Update.
9316 * stack.c: Update.
9317 * symfile-mem.c: Update.
9318 * symmisc.c: Update.
9319 * target.c: Update.
9320 * thread.c: Update.
9321 * top.c: Update.
9322 * tracefile-tfile.c: Update.
9323 * tui/tui.c: Update.
9324 * typeprint.c: Update.
9325 * unittests/cli-utils-selftests.c: Update.
9326 * unittests/parse-connection-spec-selftests.c: Update.
9327 * valops.c: Update.
9328 * valprint.c: Update.
9329 * value.c: Update.
9330 * varobj.c: Update.
9331 * windows-nat.c: Update.
9332 * x86-linux-nat.c: Update.
9333 * xml-support.c: Update.
9334
9335 2019-04-08 Tom Tromey <tom@tromey.com>
9336
9337 * xml-support.c: Use C++ exception handling.
9338 * x86-linux-nat.c: Use C++ exception handling.
9339 * windows-nat.c: Use C++ exception handling.
9340 * varobj.c: Use C++ exception handling.
9341 * value.c: Use C++ exception handling.
9342 * valprint.c: Use C++ exception handling.
9343 * valops.c: Use C++ exception handling.
9344 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9345 handling.
9346 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9347 * typeprint.c: Use C++ exception handling.
9348 * tui/tui.c: Use C++ exception handling.
9349 * tracefile-tfile.c: Use C++ exception handling.
9350 * top.c: Use C++ exception handling.
9351 * thread.c: Use C++ exception handling.
9352 * target.c: Use C++ exception handling.
9353 * symmisc.c: Use C++ exception handling.
9354 * symfile-mem.c: Use C++ exception handling.
9355 * stack.c: Use C++ exception handling.
9356 * sparc64-linux-tdep.c: Use C++ exception handling.
9357 * solib.c: Use C++ exception handling.
9358 * solib-svr4.c: Use C++ exception handling.
9359 * solib-spu.c: Use C++ exception handling.
9360 * solib-frv.c: Use C++ exception handling.
9361 * solib-dsbt.c: Use C++ exception handling.
9362 * selftest-arch.c: Use C++ exception handling.
9363 * s390-tdep.c: Use C++ exception handling.
9364 * rust-lang.c: Use C++ exception handling.
9365 * rust-exp.y: Use C++ exception handling.
9366 * rs6000-tdep.c: Use C++ exception handling.
9367 * rs6000-aix-tdep.c: Use C++ exception handling.
9368 * riscv-tdep.c: Use C++ exception handling.
9369 * remote.c: Use C++ exception handling.
9370 * remote-fileio.c: Use C++ exception handling.
9371 * record-full.c: Use C++ exception handling.
9372 * record-btrace.c: Use C++ exception handling.
9373 * python/python.c: Use C++ exception handling.
9374 * python/py-value.c: Use C++ exception handling.
9375 * python/py-utils.c: Use C++ exception handling.
9376 * python/py-unwind.c: Use C++ exception handling.
9377 * python/py-type.c: Use C++ exception handling.
9378 * python/py-symbol.c: Use C++ exception handling.
9379 * python/py-record.c: Use C++ exception handling.
9380 * python/py-record-btrace.c: Use C++ exception handling.
9381 * python/py-progspace.c: Use C++ exception handling.
9382 * python/py-prettyprint.c: Use C++ exception handling.
9383 * python/py-param.c: Use C++ exception handling.
9384 * python/py-objfile.c: Use C++ exception handling.
9385 * python/py-linetable.c: Use C++ exception handling.
9386 * python/py-lazy-string.c: Use C++ exception handling.
9387 * python/py-infthread.c: Use C++ exception handling.
9388 * python/py-inferior.c: Use C++ exception handling.
9389 * python/py-gdb-readline.c: Use C++ exception handling.
9390 * python/py-framefilter.c: Use C++ exception handling.
9391 * python/py-frame.c: Use C++ exception handling.
9392 * python/py-finishbreakpoint.c: Use C++ exception handling.
9393 * python/py-cmd.c: Use C++ exception handling.
9394 * python/py-breakpoint.c: Use C++ exception handling.
9395 * python/py-arch.c: Use C++ exception handling.
9396 * printcmd.c: Use C++ exception handling.
9397 * ppc-linux-tdep.c: Use C++ exception handling.
9398 * parse.c: Use C++ exception handling.
9399 * p-valprint.c: Use C++ exception handling.
9400 * objc-lang.c: Use C++ exception handling.
9401 * mi/mi-main.c: Use C++ exception handling.
9402 * mi/mi-interp.c: Use C++ exception handling.
9403 * mi/mi-cmd-stack.c: Use C++ exception handling.
9404 * mi/mi-cmd-break.c: Use C++ exception handling.
9405 * main.c: Use C++ exception handling.
9406 * linux-thread-db.c: Use C++ exception handling.
9407 * linux-tdep.c: Use C++ exception handling.
9408 * linux-nat.c: Use C++ exception handling.
9409 * linux-fork.c: Use C++ exception handling.
9410 * linespec.c: Use C++ exception handling.
9411 * language.c: Use C++ exception handling.
9412 * jit.c: Use C++ exception handling.
9413 * infrun.c: Use C++ exception handling.
9414 * infcmd.c: Use C++ exception handling.
9415 * infcall.c: Use C++ exception handling.
9416 * inf-loop.c: Use C++ exception handling.
9417 * i386-tdep.c: Use C++ exception handling.
9418 * i386-linux-tdep.c: Use C++ exception handling.
9419 * guile/scm-value.c: Use C++ exception handling.
9420 * guile/scm-type.c: Use C++ exception handling.
9421 * guile/scm-symtab.c: Use C++ exception handling.
9422 * guile/scm-symbol.c: Use C++ exception handling.
9423 * guile/scm-pretty-print.c: Use C++ exception handling.
9424 * guile/scm-ports.c: Use C++ exception handling.
9425 * guile/scm-param.c: Use C++ exception handling.
9426 * guile/scm-math.c: Use C++ exception handling.
9427 * guile/scm-lazy-string.c: Use C++ exception handling.
9428 * guile/scm-frame.c: Use C++ exception handling.
9429 * guile/scm-disasm.c: Use C++ exception handling.
9430 * guile/scm-cmd.c: Use C++ exception handling.
9431 * guile/scm-breakpoint.c: Use C++ exception handling.
9432 * guile/scm-block.c: Use C++ exception handling.
9433 * guile/guile-internal.h: Use C++ exception handling.
9434 * gnu-v3-abi.c: Use C++ exception handling.
9435 * gdbtypes.c: Use C++ exception handling.
9436 * frame.c: Use C++ exception handling.
9437 * frame-unwind.c: Use C++ exception handling.
9438 * fbsd-tdep.c: Use C++ exception handling.
9439 * f-valprint.c: Use C++ exception handling.
9440 * exec.c: Use C++ exception handling.
9441 * event-top.c: Use C++ exception handling.
9442 * event-loop.c: Use C++ exception handling.
9443 * eval.c: Use C++ exception handling.
9444 * dwarf2read.c: Use C++ exception handling.
9445 * dwarf2loc.c: Use C++ exception handling.
9446 * dwarf2-frame.c: Use C++ exception handling.
9447 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9448 * dwarf-index-write.c: Use C++ exception handling.
9449 * dwarf-index-cache.c: Use C++ exception handling.
9450 * dtrace-probe.c: Use C++ exception handling.
9451 * disasm-selftests.c: Use C++ exception handling.
9452 * darwin-nat.c: Use C++ exception handling.
9453 * cp-valprint.c: Use C++ exception handling.
9454 * cp-support.c: Use C++ exception handling.
9455 * cp-abi.c: Use C++ exception handling.
9456 * corelow.c: Use C++ exception handling.
9457 * completer.c: Use C++ exception handling.
9458 * compile/compile-object-run.c: Use C++ exception handling.
9459 * compile/compile-object-load.c: Use C++ exception handling.
9460 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9461 * compile/compile-c-symbols.c: Use C++ exception handling.
9462 * common/selftest.c: Use C++ exception handling.
9463 * common/new-op.c: Use C++ exception handling.
9464 * cli/cli-script.c: Use C++ exception handling.
9465 * cli/cli-interp.c: Use C++ exception handling.
9466 * cli/cli-cmds.c: Use C++ exception handling.
9467 * c-varobj.c: Use C++ exception handling.
9468 * btrace.c: Use C++ exception handling.
9469 * breakpoint.c: Use C++ exception handling.
9470 * break-catch-throw.c: Use C++ exception handling.
9471 * arch-utils.c: Use C++ exception handling.
9472 * amd64-tdep.c: Use C++ exception handling.
9473 * ada-valprint.c: Use C++ exception handling.
9474 * ada-typeprint.c: Use C++ exception handling.
9475 * ada-lang.c: Use C++ exception handling.
9476 * aarch64-tdep.c: Use C++ exception handling.
9477
9478 2019-04-08 Tom Tromey <tom@tromey.com>
9479
9480 * xml-support.c (gdb_xml_parser::parse): Update.
9481 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9482 * value.c (show_convenience): Update.
9483 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9484 (test_parse_flags_qcs): Update.
9485 * thread.c (thr_try_catch_cmd): Update.
9486 * target.c (target_translate_tls_address): Update.
9487 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9488 (info_frame_command_core, frame_apply_command_count): Update.
9489 * rust-exp.y (rust_lex_exception_test): Update.
9490 * riscv-tdep.c (riscv_print_one_register_info): Update.
9491 * remote.c (remote_target::enable_btrace): Update.
9492 * record-btrace.c (record_btrace_enable_warn): Update.
9493 * python/py-utils.c (gdbpy_convert_exception): Update.
9494 * printcmd.c (do_one_display, print_variable_and_value): Update.
9495 * mi/mi-main.c (mi_print_exception): Update.
9496 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9497 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9498 * linux-nat.c (linux_nat_target::attach): Update.
9499 * linux-fork.c (class scoped_switch_fork_info): Update.
9500 * infrun.c (displaced_step_prepare): Update.
9501 * infcall.c (call_function_by_hand_dummy): Update.
9502 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9503 * gnu-v3-abi.c (print_one_vtable): Update.
9504 * frame.c (get_prev_frame_always): Update.
9505 * f-valprint.c (info_common_command_for_block): Update.
9506 * exec.c (try_open_exec_file): Update.
9507 * exceptions.c (print_exception, exception_print)
9508 (exception_fprintf, exception_print_same): Update.
9509 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9510 * dwarf-index-cache.c (index_cache::store)
9511 (index_cache::lookup_gdb_index): Update.
9512 * darwin-nat.c (maybe_cache_shell): Update.
9513 * cp-valprint.c (cp_print_value_fields): Update.
9514 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9515 (gcc_cplus_symbol_address): Update.
9516 * compile/compile-c-symbols.c (gcc_convert_symbol)
9517 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9518 * common/selftest.c: Update.
9519 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9520 a std::string.
9521 (exception_try_scope_entry, exception_try_scope_exit): Don't
9522 declare.
9523 (struct exception_try_scope): Remove.
9524 (TRY): Don't use exception_try_scope.
9525 (struct gdb_exception): Add constructor, operator=.
9526 <what>: New method.
9527 (struct gdb_exception_RETURN_MASK_ALL)
9528 (struct gdb_exception_RETURN_MASK_ERROR)
9529 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9530 (struct gdb_quit_bad_alloc): Update.
9531 * common/common-exceptions.c (exception_none): Change
9532 initializer.
9533 (struct catcher) <state, exception>: Initialize inline.
9534 <prev>: Remove member.
9535 (current_catcher): Remove.
9536 (catchers): New global.
9537 (exceptions_state_mc_init): Simplify.
9538 (catcher_pop): Remove.
9539 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9540 (try_scope_depth, exception_try_scope_entry)
9541 (exception_try_scope_exit): Remove.
9542 (throw_exception_sjlj): Update.
9543 (exception_messages, exception_messages_size): Remove.
9544 (throw_it): Simplify.
9545 (gdb_exception_sliced_copy): Remove.
9546 (throw_exception_cxx): Update.
9547 * cli/cli-script.c (script_from_file): Update.
9548 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9549 Update.
9550 * ada-valprint.c (ada_val_print): Update.
9551 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9552 (create_excep_cond_exprs): Update.
9553
9554 2019-04-08 Tom Tromey <tom@tromey.com>
9555
9556 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9557 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9558 (TRY, CATCH, END_CATCH): Remove some definitions.
9559 * common/common-exceptions.c: Don't use GDB_XCPT.
9560 (catcher_list_size): Remove.
9561 (throw_exception, throw_it): Simplify.
9562
9563 2019-04-05 Tom Tromey <tom@tromey.com>
9564
9565 Revert the header-sorting patch.
9566 * ft32-tdep.c: Revert.
9567 * frv-tdep.c: Revert.
9568 * frv-linux-tdep.c: Revert.
9569 * frame.c: Revert.
9570 * frame-unwind.c: Revert.
9571 * frame-base.c: Revert.
9572 * fork-child.c: Revert.
9573 * findvar.c: Revert.
9574 * findcmd.c: Revert.
9575 * filesystem.c: Revert.
9576 * filename-seen-cache.h: Revert.
9577 * filename-seen-cache.c: Revert.
9578 * fbsd-tdep.c: Revert.
9579 * fbsd-nat.h: Revert.
9580 * fbsd-nat.c: Revert.
9581 * f-valprint.c: Revert.
9582 * f-typeprint.c: Revert.
9583 * f-lang.c: Revert.
9584 * extension.h: Revert.
9585 * extension.c: Revert.
9586 * extension-priv.h: Revert.
9587 * expprint.c: Revert.
9588 * exec.h: Revert.
9589 * exec.c: Revert.
9590 * exceptions.c: Revert.
9591 * event-top.c: Revert.
9592 * event-loop.c: Revert.
9593 * eval.c: Revert.
9594 * elfread.c: Revert.
9595 * dwarf2read.h: Revert.
9596 * dwarf2read.c: Revert.
9597 * dwarf2loc.c: Revert.
9598 * dwarf2expr.h: Revert.
9599 * dwarf2expr.c: Revert.
9600 * dwarf2-frame.c: Revert.
9601 * dwarf2-frame-tailcall.c: Revert.
9602 * dwarf-index-write.h: Revert.
9603 * dwarf-index-write.c: Revert.
9604 * dwarf-index-common.c: Revert.
9605 * dwarf-index-cache.h: Revert.
9606 * dwarf-index-cache.c: Revert.
9607 * dummy-frame.c: Revert.
9608 * dtrace-probe.c: Revert.
9609 * disasm.h: Revert.
9610 * disasm.c: Revert.
9611 * disasm-selftests.c: Revert.
9612 * dictionary.c: Revert.
9613 * dicos-tdep.c: Revert.
9614 * demangle.c: Revert.
9615 * dcache.h: Revert.
9616 * dcache.c: Revert.
9617 * darwin-nat.h: Revert.
9618 * darwin-nat.c: Revert.
9619 * darwin-nat-info.c: Revert.
9620 * d-valprint.c: Revert.
9621 * d-namespace.c: Revert.
9622 * d-lang.c: Revert.
9623 * ctf.c: Revert.
9624 * csky-tdep.c: Revert.
9625 * csky-linux-tdep.c: Revert.
9626 * cris-tdep.c: Revert.
9627 * cris-linux-tdep.c: Revert.
9628 * cp-valprint.c: Revert.
9629 * cp-support.c: Revert.
9630 * cp-namespace.c: Revert.
9631 * cp-abi.c: Revert.
9632 * corelow.c: Revert.
9633 * corefile.c: Revert.
9634 * continuations.c: Revert.
9635 * completer.h: Revert.
9636 * completer.c: Revert.
9637 * complaints.c: Revert.
9638 * coffread.c: Revert.
9639 * coff-pe-read.c: Revert.
9640 * cli-out.h: Revert.
9641 * cli-out.c: Revert.
9642 * charset.c: Revert.
9643 * c-varobj.c: Revert.
9644 * c-valprint.c: Revert.
9645 * c-typeprint.c: Revert.
9646 * c-lang.c: Revert.
9647 * buildsym.c: Revert.
9648 * buildsym-legacy.c: Revert.
9649 * build-id.h: Revert.
9650 * build-id.c: Revert.
9651 * btrace.c: Revert.
9652 * bsd-uthread.c: Revert.
9653 * breakpoint.h: Revert.
9654 * breakpoint.c: Revert.
9655 * break-catch-throw.c: Revert.
9656 * break-catch-syscall.c: Revert.
9657 * break-catch-sig.c: Revert.
9658 * blockframe.c: Revert.
9659 * block.c: Revert.
9660 * bfin-tdep.c: Revert.
9661 * bfin-linux-tdep.c: Revert.
9662 * bfd-target.c: Revert.
9663 * bcache.c: Revert.
9664 * ax-general.c: Revert.
9665 * ax-gdb.h: Revert.
9666 * ax-gdb.c: Revert.
9667 * avr-tdep.c: Revert.
9668 * auxv.c: Revert.
9669 * auto-load.c: Revert.
9670 * arm-wince-tdep.c: Revert.
9671 * arm-tdep.c: Revert.
9672 * arm-symbian-tdep.c: Revert.
9673 * arm-pikeos-tdep.c: Revert.
9674 * arm-obsd-tdep.c: Revert.
9675 * arm-nbsd-tdep.c: Revert.
9676 * arm-nbsd-nat.c: Revert.
9677 * arm-linux-tdep.c: Revert.
9678 * arm-linux-nat.c: Revert.
9679 * arm-fbsd-tdep.c: Revert.
9680 * arm-fbsd-nat.c: Revert.
9681 * arm-bsd-tdep.c: Revert.
9682 * arch-utils.c: Revert.
9683 * arc-tdep.c: Revert.
9684 * arc-newlib-tdep.c: Revert.
9685 * annotate.h: Revert.
9686 * annotate.c: Revert.
9687 * amd64-windows-tdep.c: Revert.
9688 * amd64-windows-nat.c: Revert.
9689 * amd64-tdep.c: Revert.
9690 * amd64-sol2-tdep.c: Revert.
9691 * amd64-obsd-tdep.c: Revert.
9692 * amd64-obsd-nat.c: Revert.
9693 * amd64-nbsd-tdep.c: Revert.
9694 * amd64-nbsd-nat.c: Revert.
9695 * amd64-nat.c: Revert.
9696 * amd64-linux-tdep.c: Revert.
9697 * amd64-linux-nat.c: Revert.
9698 * amd64-fbsd-tdep.c: Revert.
9699 * amd64-fbsd-nat.c: Revert.
9700 * amd64-dicos-tdep.c: Revert.
9701 * amd64-darwin-tdep.c: Revert.
9702 * amd64-bsd-nat.c: Revert.
9703 * alpha-tdep.c: Revert.
9704 * alpha-obsd-tdep.c: Revert.
9705 * alpha-nbsd-tdep.c: Revert.
9706 * alpha-mdebug-tdep.c: Revert.
9707 * alpha-linux-tdep.c: Revert.
9708 * alpha-linux-nat.c: Revert.
9709 * alpha-bsd-tdep.c: Revert.
9710 * alpha-bsd-nat.c: Revert.
9711 * aix-thread.c: Revert.
9712 * agent.c: Revert.
9713 * addrmap.c: Revert.
9714 * ada-varobj.c: Revert.
9715 * ada-valprint.c: Revert.
9716 * ada-typeprint.c: Revert.
9717 * ada-tasks.c: Revert.
9718 * ada-lang.c: Revert.
9719 * aarch64-tdep.c: Revert.
9720 * aarch64-ravenscar-thread.c: Revert.
9721 * aarch64-newlib-tdep.c: Revert.
9722 * aarch64-linux-tdep.c: Revert.
9723 * aarch64-linux-nat.c: Revert.
9724 * aarch64-fbsd-tdep.c: Revert.
9725 * aarch64-fbsd-nat.c: Revert.
9726 * aarch32-linux-nat.c: Revert.
9727
9728 2019-04-05 Tom Tromey <tom@tromey.com>
9729
9730 * ft32-tdep.c: Sort headers.
9731 * frv-tdep.c: Sort headers.
9732 * frv-linux-tdep.c: Sort headers.
9733 * frame.c: Sort headers.
9734 * frame-unwind.c: Sort headers.
9735 * frame-base.c: Sort headers.
9736 * fork-child.c: Sort headers.
9737 * findvar.c: Sort headers.
9738 * findcmd.c: Sort headers.
9739 * filesystem.c: Sort headers.
9740 * filename-seen-cache.h: Sort headers.
9741 * filename-seen-cache.c: Sort headers.
9742 * fbsd-tdep.c: Sort headers.
9743 * fbsd-nat.h: Sort headers.
9744 * fbsd-nat.c: Sort headers.
9745 * f-valprint.c: Sort headers.
9746 * f-typeprint.c: Sort headers.
9747 * f-lang.c: Sort headers.
9748 * extension.h: Sort headers.
9749 * extension.c: Sort headers.
9750 * extension-priv.h: Sort headers.
9751 * expprint.c: Sort headers.
9752 * exec.h: Sort headers.
9753 * exec.c: Sort headers.
9754 * exceptions.c: Sort headers.
9755 * event-top.c: Sort headers.
9756 * event-loop.c: Sort headers.
9757 * eval.c: Sort headers.
9758 * elfread.c: Sort headers.
9759 * dwarf2read.h: Sort headers.
9760 * dwarf2read.c: Sort headers.
9761 * dwarf2loc.c: Sort headers.
9762 * dwarf2expr.h: Sort headers.
9763 * dwarf2expr.c: Sort headers.
9764 * dwarf2-frame.c: Sort headers.
9765 * dwarf2-frame-tailcall.c: Sort headers.
9766 * dwarf-index-write.h: Sort headers.
9767 * dwarf-index-write.c: Sort headers.
9768 * dwarf-index-common.c: Sort headers.
9769 * dwarf-index-cache.h: Sort headers.
9770 * dwarf-index-cache.c: Sort headers.
9771 * dummy-frame.c: Sort headers.
9772 * dtrace-probe.c: Sort headers.
9773 * disasm.h: Sort headers.
9774 * disasm.c: Sort headers.
9775 * disasm-selftests.c: Sort headers.
9776 * dictionary.c: Sort headers.
9777 * dicos-tdep.c: Sort headers.
9778 * demangle.c: Sort headers.
9779 * dcache.h: Sort headers.
9780 * dcache.c: Sort headers.
9781 * darwin-nat.h: Sort headers.
9782 * darwin-nat.c: Sort headers.
9783 * darwin-nat-info.c: Sort headers.
9784 * d-valprint.c: Sort headers.
9785 * d-namespace.c: Sort headers.
9786 * d-lang.c: Sort headers.
9787 * ctf.c: Sort headers.
9788 * csky-tdep.c: Sort headers.
9789 * csky-linux-tdep.c: Sort headers.
9790 * cris-tdep.c: Sort headers.
9791 * cris-linux-tdep.c: Sort headers.
9792 * cp-valprint.c: Sort headers.
9793 * cp-support.c: Sort headers.
9794 * cp-namespace.c: Sort headers.
9795 * cp-abi.c: Sort headers.
9796 * corelow.c: Sort headers.
9797 * corefile.c: Sort headers.
9798 * continuations.c: Sort headers.
9799 * completer.h: Sort headers.
9800 * completer.c: Sort headers.
9801 * complaints.c: Sort headers.
9802 * coffread.c: Sort headers.
9803 * coff-pe-read.c: Sort headers.
9804 * cli-out.h: Sort headers.
9805 * cli-out.c: Sort headers.
9806 * charset.c: Sort headers.
9807 * c-varobj.c: Sort headers.
9808 * c-valprint.c: Sort headers.
9809 * c-typeprint.c: Sort headers.
9810 * c-lang.c: Sort headers.
9811 * buildsym.c: Sort headers.
9812 * buildsym-legacy.c: Sort headers.
9813 * build-id.h: Sort headers.
9814 * build-id.c: Sort headers.
9815 * btrace.c: Sort headers.
9816 * bsd-uthread.c: Sort headers.
9817 * breakpoint.h: Sort headers.
9818 * breakpoint.c: Sort headers.
9819 * break-catch-throw.c: Sort headers.
9820 * break-catch-syscall.c: Sort headers.
9821 * break-catch-sig.c: Sort headers.
9822 * blockframe.c: Sort headers.
9823 * block.c: Sort headers.
9824 * bfin-tdep.c: Sort headers.
9825 * bfin-linux-tdep.c: Sort headers.
9826 * bfd-target.c: Sort headers.
9827 * bcache.c: Sort headers.
9828 * ax-general.c: Sort headers.
9829 * ax-gdb.h: Sort headers.
9830 * ax-gdb.c: Sort headers.
9831 * avr-tdep.c: Sort headers.
9832 * auxv.c: Sort headers.
9833 * auto-load.c: Sort headers.
9834 * arm-wince-tdep.c: Sort headers.
9835 * arm-tdep.c: Sort headers.
9836 * arm-symbian-tdep.c: Sort headers.
9837 * arm-pikeos-tdep.c: Sort headers.
9838 * arm-obsd-tdep.c: Sort headers.
9839 * arm-nbsd-tdep.c: Sort headers.
9840 * arm-nbsd-nat.c: Sort headers.
9841 * arm-linux-tdep.c: Sort headers.
9842 * arm-linux-nat.c: Sort headers.
9843 * arm-fbsd-tdep.c: Sort headers.
9844 * arm-fbsd-nat.c: Sort headers.
9845 * arm-bsd-tdep.c: Sort headers.
9846 * arch-utils.c: Sort headers.
9847 * arc-tdep.c: Sort headers.
9848 * arc-newlib-tdep.c: Sort headers.
9849 * annotate.h: Sort headers.
9850 * annotate.c: Sort headers.
9851 * amd64-windows-tdep.c: Sort headers.
9852 * amd64-windows-nat.c: Sort headers.
9853 * amd64-tdep.c: Sort headers.
9854 * amd64-sol2-tdep.c: Sort headers.
9855 * amd64-obsd-tdep.c: Sort headers.
9856 * amd64-obsd-nat.c: Sort headers.
9857 * amd64-nbsd-tdep.c: Sort headers.
9858 * amd64-nbsd-nat.c: Sort headers.
9859 * amd64-nat.c: Sort headers.
9860 * amd64-linux-tdep.c: Sort headers.
9861 * amd64-linux-nat.c: Sort headers.
9862 * amd64-fbsd-tdep.c: Sort headers.
9863 * amd64-fbsd-nat.c: Sort headers.
9864 * amd64-dicos-tdep.c: Sort headers.
9865 * amd64-darwin-tdep.c: Sort headers.
9866 * amd64-bsd-nat.c: Sort headers.
9867 * alpha-tdep.c: Sort headers.
9868 * alpha-obsd-tdep.c: Sort headers.
9869 * alpha-nbsd-tdep.c: Sort headers.
9870 * alpha-mdebug-tdep.c: Sort headers.
9871 * alpha-linux-tdep.c: Sort headers.
9872 * alpha-linux-nat.c: Sort headers.
9873 * alpha-bsd-tdep.c: Sort headers.
9874 * alpha-bsd-nat.c: Sort headers.
9875 * aix-thread.c: Sort headers.
9876 * agent.c: Sort headers.
9877 * addrmap.c: Sort headers.
9878 * ada-varobj.c: Sort headers.
9879 * ada-valprint.c: Sort headers.
9880 * ada-typeprint.c: Sort headers.
9881 * ada-tasks.c: Sort headers.
9882 * ada-lang.c: Sort headers.
9883 * aarch64-tdep.c: Sort headers.
9884 * aarch64-ravenscar-thread.c: Sort headers.
9885 * aarch64-newlib-tdep.c: Sort headers.
9886 * aarch64-linux-tdep.c: Sort headers.
9887 * aarch64-linux-nat.c: Sort headers.
9888 * aarch64-fbsd-tdep.c: Sort headers.
9889 * aarch64-fbsd-nat.c: Sort headers.
9890 * aarch32-linux-nat.c: Sort headers.
9891
9892 2019-04-04 Tom Tromey <tom@tromey.com>
9893
9894 * varobj.c (varobj_create): Update.
9895 * rust-exp.y (struct rust_parser) <update_innermost_block,
9896 lookup_symbol>: New methods.
9897 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9898 Rename.
9899 (rust_parser::rust_lookup_type)
9900 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9901 * printcmd.c (display_command, do_one_display): Update.
9902 * parser-defs.h (struct parser_state) <parser_state>: Add
9903 "tracker" parameter.
9904 (block_tracker): New member.
9905 (class innermost_block_tracker) <innermost_block_tracker>: Add
9906 "types" parameter.
9907 <reset>: Remove method.
9908 (innermost_block): Don't declare.
9909 (null_post_parser): Update.
9910 * parse.c (innermost_block): Remove global.
9911 (write_dollar_variable): Update.
9912 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9913 Remove "tracker_types" parameter.
9914 (parse_expression): Add "tracker" parameter.
9915 (parse_expression_for_completion): Update.
9916 (null_post_parser): Add "tracker" parameter.
9917 * p-exp.y: Update rules.
9918 * m2-exp.y: Update rules.
9919 * language.h (struct language_defn) <la_post_parser>: Add
9920 "tracker" parameter.
9921 * go-exp.y: Update rules.
9922 * f-exp.y: Update rules.
9923 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9924 parameter.
9925 * d-exp.y: Update rules.
9926 * c-exp.y: Update rules.
9927 * breakpoint.c (set_breakpoint_condition): Create an
9928 innermost_block_tracker.
9929 (watch_command_1): Likewise.
9930 * ada-lang.c (resolve): Add "tracker" parameter.
9931 (resolve_subexp): Likewise.
9932 * ada-exp.y (write_var_from_sym): Update.
9933
9934 2019-04-04 Tom Tromey <tom@tromey.com>
9935
9936 * type-stack.h: New file.
9937 * type-stack.c: New file.
9938 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9939 type-stack.h.
9940 (insert_into_type_stack, insert_type, push_type, push_type_int)
9941 (insert_type_address_space, pop_type, pop_type_int)
9942 (pop_typelist, pop_type_stack, append_type_stack)
9943 (push_type_stack, get_type_stack, push_typelist)
9944 (follow_type_instance_flags, follow_types): Don't declare.
9945 * parse.c (type_stack): Remove global.
9946 (parse_exp_in_context): Update.
9947 (insert_into_type_stack, insert_type, push_type, push_type_int)
9948 (insert_type_address_space, pop_type, pop_type_int)
9949 (pop_typelist, pop_type_stack, append_type_stack)
9950 (push_type_stack, get_type_stack, push_typelist)
9951 (follow_type_instance_flags, follow_types): Remove (moved to
9952 type-stack.c).
9953 * f-exp.y (type_stack): New global.
9954 Update rules.
9955 (push_kind_type, f_parse): Update.
9956 * d-exp.y (type_stack): New global.
9957 Update rules.
9958 (d_parse): Update.
9959 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9960 Update rules.
9961 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9962 (HFILES_NO_SRCDIR): Add type-stack.h.
9963
9964 2019-04-04 Tom Tromey <tom@tromey.com>
9965
9966 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9967 (rust_parser::convert_ast_to_expression, rust_parse)
9968 (rust_lex_test_completion, rust_lex_tests): Update.
9969 * parser-defs.h (struct expr_completion_state): New.
9970 (struct parser_state) <parser_state>: Add completion parameter.
9971 <mark_struct_expression, mark_completion_tag>: New methods.
9972 <parse_completion, m_completion_state>: New members.
9973 (prefixify_expression, null_post_parser): Update.
9974 (mark_struct_expression, mark_completion_tag): Don't declare.
9975 * parse.c (parse_completion, expout_last_struct)
9976 (expout_tag_completion_type, expout_completion_name): Remove
9977 globals.
9978 (parser_state::mark_struct_expression)
9979 (parser_state::mark_completion_tag): Now methods.
9980 (prefixify_expression): Add last_struct parameter.
9981 (prefixify_subexp): Likewise.
9982 (parse_exp_1): Update.
9983 (parse_exp_in_context): Add cstate parameter. Update.
9984 (parse_expression_for_completion): Create an
9985 expr_completion_state.
9986 (null_post_parser): Add "completion" parameter.
9987 * p-exp.y: Update rules.
9988 (yylex): Update.
9989 * language.h (struct language_defn) <la_post_parser>: Add
9990 "completing" parameter.
9991 * go-exp.y: Update rules.
9992 (lex_one_token): Update.
9993 * expression.h (parse_completion): Don't declare.
9994 * d-exp.y: Update rules.
9995 (lex_one_token): Update rules.
9996 * c-exp.y: Update rules.
9997 (lex_one_token): Update.
9998 * ada-lang.c (resolve): Add "parse_completion" parameter.
9999 (resolve_subexp): Likewise.
10000 (ada_resolve_function): Likewise.
10001
10002 2019-04-04 Tom Tromey <tom@tromey.com>
10003
10004 * parser-defs.h (struct parser_state) <start_arglist,
10005 end_arglist>: New methods.
10006 <arglist_len, m_funcall_chain>: New members.
10007 (arglist_len, start_arglist, end_arglist): Don't declare.
10008 * parse.c (arglist_len, funcall_chain): Remove global.
10009 (start_arglist, end_arglist): Remove functions.
10010 (parse_exp_in_context): Update.
10011 * p-exp.y: Update rules.
10012 * m2-exp.y: Update rules.
10013 * go-exp.y: Update rules.
10014 * f-exp.y: Update rules.
10015 * d-exp.y: Update rules.
10016 * c-exp.y: Update rules.
10017
10018 2019-04-04 Tom Tromey <tom@tromey.com>
10019
10020 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10021 lex_operator, push_back>: New methods.
10022 Update all rules.
10023 (rust_parser::lex_hex, lex_escape): Rename and update.
10024 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10025 (rust_parser::lex_operator): Rename and update.
10026 (rust_parser::lex_number, rustyylex, rustyyerror)
10027 (rust_lex_test_init, rust_lex_test_sequence)
10028 (rust_lex_test_push_back, rust_lex_tests): Update.
10029 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10030 parameter.
10031 <lexptr, prev_lexptr>: New members.
10032 (lexptr, prev_lexptr): Don't declare.
10033 * parse.c (lexptr, prev_lexptr): Remove globals.
10034 (parse_exp_in_context): Update.
10035 * p-exp.y (yylex, yyerror): Update.
10036 * m2-exp.y (parse_number, yylex, yyerror): Update.
10037 * go-exp.y (lex_one_token, yyerror): Update.
10038 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10039 * d-exp.y (lex_one_token, yyerror): Update.
10040 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10041 (lex_one_token, yyerror): Update.
10042 * ada-lex.l (YY_INPUT): Update.
10043 (rewind_to_char): Update.
10044 * ada-exp.y (yyerror): Update.
10045
10046 2019-04-04 Tom Tromey <tom@tromey.com>
10047
10048 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10049 * parser-defs.h (struct parser_state) <parser_state>: Add new
10050 parameter.
10051 <comma_terminates>: New member.
10052 (comma_terminates): Don't declare global.
10053 * parse.c (comma_terminates): Remove global.
10054 (parse_exp_in_context): Update.
10055 * p-exp.y (yylex): Update.
10056 * m2-exp.y (yylex): Update.
10057 * go-exp.y (lex_one_token): Update.
10058 * f-exp.y (yylex): Update.
10059 * d-exp.y (lex_one_token): Update.
10060 * c-exp.y (lex_one_token): Update.
10061 * ada-lex.l: Update.
10062
10063 2019-04-04 Tom Tromey <tom@tromey.com>
10064
10065 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10066 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10067 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10068 * parser-defs.h (paren_depth): Don't declare.
10069 * parse.c (paren_depth): Remove global.
10070 (parse_exp_in_context): Update.
10071 * p-exp.y (paren_depth): New global.
10072 (pascal_parse): Initialize it.
10073 * m2-exp.y (paren_depth): New global.
10074 (m2_parse): Initialize it.
10075 * go-exp.y (paren_depth): New global.
10076 (go_parse): Initialize it.
10077 * f-exp.y (paren_depth): New global.
10078 (f_parse): Initialize it.
10079 * d-exp.y (paren_depth): New global.
10080 (d_parse): Initialize it.
10081 * c-exp.y (paren_depth): New global.
10082 (c_parse): Initialize it.
10083 * ada-lex.l (paren_depth): New global.
10084 (lexer_init): Initialize it.
10085
10086 2019-04-04 Tom Tromey <tom@tromey.com>
10087
10088 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10089 (rust_parser::convert_ast_to_type)
10090 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10091 * parser-defs.h (struct parser_state) <parser_state>: Add
10092 parameters. Initialize new members.
10093 <expression_context_block, expression_context_pc>: New members.
10094 * parse.c (expression_context_block, expression_context_pc):
10095 Remove globals.
10096 (parse_exp_in_context): Update.
10097 * p-exp.y: Update all rules.
10098 (yylex): Update.
10099 * m2-exp.y: Update all rules.
10100 (yylex): Update.
10101 * go-exp.y (yylex): Update.
10102 * f-exp.y (yylex): Update.
10103 * d-exp.y: Update all rules.
10104 (yylex): Update.
10105 * c-exp.y: Update all rules.
10106 (lex_one_token, classify_name, yylex, c_parse): Update.
10107 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10108
10109 2019-04-04 Tom Tromey <tom@tromey.com>
10110
10111 * gdbarch.h, gdbarch.c: Rebuild.
10112 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10113 * stap-probe.h:
10114 (struct stap_parse_info): Replace "parser_state" with
10115 "expr_builder".
10116 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10117 (parser_state): New class.
10118 * parse.c (expr_builder): Rename.
10119 (expr_builder::release): Rename.
10120 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10121 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10122 (write_exp_elt_longcst, write_exp_elt_floatcst)
10123 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10124 (write_exp_string_vector, write_exp_bitstring)
10125 (write_exp_msymbol, mark_struct_expression)
10126 (write_dollar_variable)
10127 (insert_type_address_space, increase_expout_size): Replace
10128 "parser_state" with "expr_builder".
10129 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10130 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10131 "parser_state" with "expr_builder".
10132
10133 2019-04-04 Tom Tromey <tom@tromey.com>
10134
10135 * rust-exp.y: Replace "parse_language" with method call.
10136 * p-exp.y:
10137 (yylex): Replace "parse_language" with method call.
10138 * m2-exp.y:
10139 (yylex): Replace "parse_language" with method call.
10140 * go-exp.y (classify_name): Replace "parse_language" with method
10141 call.
10142 * f-exp.y (yylex): Replace "parse_language" with method call.
10143 * d-exp.y (lex_one_token): Replace "parse_language" with method
10144 call.
10145 * c-exp.y:
10146 (lex_one_token, classify_name, yylex): Replace "parse_language"
10147 with method call.
10148 * ada-exp.y (find_primitive_type, type_char)
10149 (type_system_address): Replace "parse_language" with method call.
10150
10151 2019-04-04 Tom Tromey <tom@tromey.com>
10152
10153 * rust-exp.y: Replace "parse_gdbarch" with method call.
10154 * parse.c (write_dollar_variable, insert_type_address_space):
10155 Replace "parse_gdbarch" with method call.
10156 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10157 call.
10158 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10159 call.
10160 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10161 "parse_gdbarch" with method call.
10162 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10163 with method call.
10164 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10165 "parse_gdbarch" with method call.
10166 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10167 "parse_gdbarch" with method call.
10168 * c-exp.y (parse_type, parse_number, classify_name): Replace
10169 "parse_gdbarch" with method call.
10170 * ada-lex.l: Replace "parse_gdbarch" with method call.
10171 * ada-exp.y (parse_type, find_primitive_type, type_char)
10172 (type_system_address): Replace "parse_gdbarch" with method call.
10173
10174 2019-04-04 Tom Tromey <tom@tromey.com>
10175
10176 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10177 * stap-probe.c (stap_parse_argument): Update.
10178 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10179 initial_size parameter.
10180 * rust-exp.y (rust_lex_tests): Update.
10181 * parse.c (parser_state): Update.
10182 (parse_exp_in_context): Update.
10183 * parser-defs.h (struct parser_state) <parser_state>: Remove
10184 "initial_size" parameter.
10185
10186 2019-04-04 Tom Tromey <tom@tromey.com>
10187
10188 * parser-defs.h (increase_expout_size): Don't declare.
10189 * parse.c (increase_expout_size): Now static.
10190
10191 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10192
10193 * gnu-nat.c (gnu_nat_target::wait): Fix
10194 target_waitstatus_to_string call.
10195
10196 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10197
10198 * eval.c (evaluate_subexp_standard): Handle internal functions
10199 during Fortran function call handling.
10200
10201 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10202
10203 * NEWS: Mention new internal functions.
10204 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10205 (read_base_type): Use dwarf2_init_complex_target_type.
10206 * value.c (creal_internal_fn): New function.
10207 (cimag_internal_fn): New function.
10208 (_initialize_values): Register new internal functions.
10209
10210 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10211
10212 * infrun.c (stop_all_threads): If debug_infrun, always
10213 trace the wait status after wait_one, using
10214 target_waitstatus_to_string and target_pid_to_str.
10215 (handle_inferior_event): Replace various trace of
10216 wait status kind by a single trace.
10217 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10218 wait status kind image by target_waitstatus_to_string.
10219 * target/waitstatus.c (target_waitstatus_to_string): Fix
10220 obsolete comment.
10221
10222 2019-04-01 Tom Tromey <tromey@adacore.com>
10223
10224 PR symtab/23331:
10225 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10226
10227 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10228 Pedro Alves <palves@redhat.com>
10229
10230 * top.c (quit_force): Call 'finalize_values'.
10231 * value.c (finalize_values): New function.
10232 * value.h (finalize_values): Declare.
10233
10234 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10235
10236 * NEWS: Announce $_gdb_major and $_gdb_minor.
10237
10238 * top.c (init_gdb_version_vars): New function.
10239 (gdb_init): Call init_gdb_version_vars.
10240
10241 2019-03-29 Tom Tromey <tromey@adacore.com>
10242
10243 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10244 help text. Remove dead code.
10245
10246 2019-03-29 Keith Seitz <keiths@redhat.com>
10247
10248 From Siddhesh Poyarekar:
10249 * f-lang.h (f77_get_upperbound): Return LONGEST.
10250 (f77_get_lowerbound): Likewise.
10251 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10252 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10253 print them.
10254 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10255 plongest to format print it.
10256 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10257 (f77_get_upperbound): Likewise.
10258 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10259 LOWER_BOUND to LONGEST.
10260 (f77_create_arrayprint_offset_tbl): Likewise.
10261
10262 2019-03-29 Keith Seitz <keiths@redhat.com>
10263
10264 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10265 %s/pulongest for TYPE_LENGTH instead of %d in format
10266 strings.
10267 * ada-typerint.c (ada_print_type): Likewise.
10268 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10269 * compile/compile-c-support.c (generate_register_struct): Likewise.
10270 * gdbtypes.c (recursive_dump_type): Likewise.
10271 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10272 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10273 instead of %d in format strings.
10274 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10275 to std::min to ULONGEST.
10276 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10277 instead of %d in format strings.
10278 * tracepoint.c (info_scope_command): Likewise.
10279 * typeprint.c (print_offset_data::update)
10280 (print_offset_data::finish): Likewise.
10281 * xtensa-tdep.c (xtensa_store_return_value)
10282 (xtensa_push_dummy_call): Likewise.
10283
10284 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10285
10286 * windows-nat.c (display_selector): Fixed format specifications
10287 for 64-bit Cygwin.
10288
10289 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10290
10291 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10292
10293 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10294
10295 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10296 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10297 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10298 (nios2_linux_init_abi): Install it.
10299
10300 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10301
10302 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10303
10304 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10305
10306 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10307
10308 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10309 Tom Tromey <tromey@adacore.com>
10310
10311 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10312
10313 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10314
10315 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10316 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10317 method to compute the bounds of range types. Also print "[evaluated]"
10318 if the bounds' values come from a dynamic evaluation.
10319
10320 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10321
10322 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10323 whitespace when pretty printing is on.
10324
10325 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10326
10327 * ppc-linux-nat.c: Add include.
10328
10329 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10330
10331 * NEWS: Mention AArch64 Pointer Authentication.
10332
10333 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10334
10335 * arm-linux-nat.c: Add include.
10336
10337 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10338
10339 * source-cache.c (source_cache::get_source_lines): Re-read
10340 fullname after calling open_source_file.
10341
10342 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10343
10344 * NEWS: Mention TLS support for FreeBSD.
10345
10346 2019-03-25 Tom Tromey <tromey@adacore.com>
10347
10348 * minsyms.c (BUNCH_SIZE): Update comment.
10349 (~minimal_symbol_reader): Remove old comment.
10350 (compact_minimal_symbols): Update comment.
10351 (minimal_symbol_reader::install): Remove old comment. Update
10352 other comments.
10353
10354 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10355
10356 * s390-linux-nat.c: Add include.
10357
10358 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10359
10360 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10361 Call linux_get_hwcap.
10362 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10363 Likewise.
10364 (aarch64_linux_get_hwcap): Remove function.
10365 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10366 declaration.
10367 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10368 linux_get_hwcap.
10369 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10370 * linux-tdep.c (linux_get_hwcap): Add function.
10371 (linux_get_hwcap2): Likewise.
10372 * linux-tdep.h (linux_get_hwcap): Add declaration.
10373 (linux_get_hwcap2): Likewise.
10374 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10375 (ppc_linux_get_hwcap2): Likewise.
10376 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10377 linux_get_hwcap.
10378 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10379 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10380 (ppc_linux_nat_target::read_description): Likewise.
10381 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10382 * s390-linux-nat.c: Likewise.
10383 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10384
10385 2019-03-24 Tom Tromey <tom@tromey.com>
10386
10387 * ada-lang.c (standard_lookup): Simplify initialization.
10388 (ada_lookup_symbol_nonlocal): Simplify return.
10389 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10390 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10391 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10392 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10393 initialization.
10394 * solib.c (solib_global_lookup): Simplify.
10395 * symtab.c (null_block_symbol): Remove.
10396 (symbol_cache_lookup): Simplify returns.
10397 (lookup_language_this): Simplify returns.
10398 (lookup_symbol_aux): Simplify return.
10399 (lookup_local_symbol): Simplify returns.
10400 (lookup_global_symbol_from_objfile): Simplify return.
10401 (lookup_symbol_in_objfile_symtabs)
10402 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10403 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10404 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10405 * cp-namespace.c (cp_lookup_bare_symbol)
10406 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10407 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10408 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10409 (cp_lookup_symbol_via_imports): Simplify initialization.
10410 (find_symbol_in_baseclass): Likewise.
10411 * symtab.h (null_block_symbol): Remove.
10412 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10413 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10414 (d_lookup_symbol_module): Likewise.
10415 (find_symbol_in_baseclass): Simplify initialization.
10416
10417 2019-03-24 Tom Tromey <tom@tromey.com>
10418
10419 * expression.h: Don't include symtab.h.
10420 (struct block): Forward declare.
10421
10422 2019-03-24 Tom Tromey <tom@tromey.com>
10423
10424 * c-exp.y (typebase): Remove casts.
10425 * gdbtypes.c (lookup_unsigned_typename, )
10426 (lookup_signed_typename): Remove cast.
10427 * eval.c (parse_to_comma_and_eval): Remove cast.
10428 * parse.c (write_dollar_variable): Remove cast.
10429 * block.h (struct block) <superblock>: Now const.
10430 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10431 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10432 (map_block): Make "block" const.
10433 * symfile.h (struct quick_symbol_functions)
10434 <map_matching_symbols>: Constify block argument to "callback".
10435 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10436 const.
10437 (find_pc_sect_compunit_symtab): Make "b" const.
10438 (find_symbol_at_address): Likewise.
10439 (search_symbols): Likewise.
10440 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10441 (dw2_debug_names_lookup_symbol): Likewise.
10442 (dw2_map_matching_symbols): Update.
10443 * p-valprint.c (pascal_val_print): Remove "block".
10444 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10445 (aux_add_nonlocal_symbols): Make "block" const.
10446 (resolve_subexp): Remove cast.
10447 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10448 const.
10449 (iterate_over_file_blocks): Likewise.
10450 * f-exp.y (%union) <bval>: Remove.
10451 * coffread.c (patch_opaque_types): Make "b" const.
10452 * spu-tdep.c (spu_catch_start): Make "block" const.
10453 * c-valprint.c (print_unpacked_pointer): Remove "block".
10454 * symmisc.c (dump_symtab_1): Make "b" const.
10455 (block_depth): Make "block" const.
10456 * d-exp.y (%union) <bval>: Remove.
10457 * cp-support.h (cp_lookup_rtti_type): Update.
10458 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10459 * psymtab.c (psym_lookup_symbol): Make "block" const.
10460 (maintenance_check_psymtabs): Make "b" const.
10461 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10462 (enumerate_locals, enumerate_args): Update.
10463 * python/py-symtab.c (stpy_global_block): Make "block" const.
10464 (stpy_static_block): Likewise.
10465 * inline-frame.c (block_starting_point_at): Make "new_block"
10466 const.
10467 * block.c (find_block_in_blockvector): Make return type const.
10468 (blockvector_for_pc_sect): Make "b" const.
10469 (find_block_in_blockvector): Make "b" const.
10470
10471 2019-03-23 Tom Tromey <tom@tromey.com>
10472
10473 * varobj.c (varobj_create): Update.
10474 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10475 * printcmd.c (display_command, do_one_display): Don't reset
10476 innermost_block.
10477 * parser-defs.h (enum innermost_block_tracker_type): Move to
10478 expression.h.
10479 (innermost_block): Update comment.
10480 * parse.c (parse_exp_1): Add tracker_types parameter.
10481 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10482 tracker_types parameter. Reset innermost_block.
10483 (parse_exp_in_context): Remove.
10484 (parse_expression_for_completion): Update.
10485 * objfiles.c (~objfile): Don't reset expression_context_block or
10486 innermost_block.
10487 * expression.h (enum innermost_block_tracker_type): Move from
10488 parser-defs.h.
10489 (parse_exp_1): Add tracker_types parameter.
10490 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10491 reset innermost_block.
10492
10493 2019-03-23 Tom Tromey <tom@tromey.com>
10494
10495 * objfiles.h: Include bcache.h.
10496
10497 2019-03-23 Tom Tromey <tom@tromey.com>
10498
10499 * linespec.c (get_current_search_block): Use
10500 scoped_restore_current_language.
10501 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10502
10503 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10504 Jiong Wang <jiong.wang@arm.com>
10505
10506 * aarch64-linux-tdep.c
10507 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10508 section.
10509 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10510
10511 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10512 Jiong Wang <jiong.wang@arm.com>
10513
10514 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10515 instructions.
10516 (aarch64_analyze_prologue_test): Add PACIASP test.
10517 (aarch64_prologue_prev_register): Unmask PC value.
10518
10519 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10520 Jiong Wang <jiong.wang@arm.com>
10521
10522 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10523 (aarch64_dwarf2_prev_register): Unmask PC value.
10524 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10525 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10526 DW_CFA_AARCH64_negate_ra_state.
10527 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10528
10529 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10530 Jiong Wang <jiong.wang@arm.com>
10531
10532 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10533 registers.
10534 (aarch64_pseudo_register_name): Likewise.
10535 (aarch64_pseudo_register_type): Likewise.
10536 (aarch64_pseudo_register_reggroup_p): Likewise.
10537 (aarch64_gdbarch_init): Add pauth registers.
10538 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10539 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10540 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10541 (struct gdbarch_tdep): Add regnum for ra_state.
10542
10543 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10544 Jiong Wang <jiong.wang@arm.com>
10545
10546 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10547
10548 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10549 Jiong Wang <jiong.wang@arm.com>
10550
10551 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10552 function.
10553 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10554 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10555 (aarch64_gdbarch_init): Add puth registers.
10556 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10557 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10558 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10559
10560 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10561 Jiong Wang <jiong.wang@arm.com>
10562
10563 * aarch64-linux-nat.c
10564 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10565 * aarch64-linux-tdep.c
10566 (aarch64_linux_core_read_description): Likewise.
10567 (aarch64_linux_get_hwcap): New function.
10568 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10569 (aarch64_linux_get_hwcap): New declaration.
10570
10571 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10572 Jiong Wang <jiong.wang@arm.com>
10573
10574 * aarch64-linux-nat.c
10575 (aarch64_linux_nat_target::read_description): Add pauth param.
10576 * aarch64-linux-tdep.c
10577 (aarch64_linux_core_read_description): Likewise.
10578 * aarch64-tdep.c (struct target_desc): Add in pauth.
10579 (aarch64_read_description): Add pauth param.
10580 (aarch64_gdbarch_init): Likewise.
10581 * aarch64-tdep.h (aarch64_read_description): Likewise.
10582 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10583 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10584 * features/Makefile: Add new files.
10585 * features/aarch64-pauth.c: New file.
10586 * features/aarch64-pauth.xml: New file.
10587
10588 2019-03-20 Tom Tromey <tromey@adacore.com>
10589
10590 * infrun.c (handle_inferior_event): Rename from
10591 handle_inferior_event_1. Create a scoped_value_mark.
10592 (handle_inferior_event): Remove.
10593
10594 2019-03-19 Tom Tromey <tromey@adacore.com>
10595
10596 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10597 * infrun.h (print_stop_event): Add "displays" parameter.
10598 * infrun.c (print_stop_event): Add "displays" parameter.
10599
10600 2019-03-19 Pedro Alves <palves@redhat.com>
10601
10602 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10603 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10604 to -1. Fix TABs vs spaces.
10605 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10606 * tui/tui-out.h (tui_ui_out) Add intro comments.
10607 <m_line, m_start_of_line>: In-class initialize, and add describing
10608 comment.
10609
10610 2019-03-18 Alan Hayward <alan.hayward@arm.com>
10611
10612 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10613 variable names.
10614 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10615
10616 2019-03-18 Pedro Alves <palves@redhat.com>
10617 Eli Zaretskii <eliz@gnu.org>
10618
10619 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10620 m_line and m_start_of_line.
10621
10622 2019-03-18 Eli Zaretskii <eliz@gnu.org>
10623
10624 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10625 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10626 it returns a newline. This fixes a regression in TU mode, whereby
10627 the next line is output on the same screen line as the user input.
10628
10629 2019-03-18 Tom Tromey <tromey@adacore.com>
10630
10631 * minsyms.c (minimal_symbol_reader::install): Remove call to
10632 obstack_blank.
10633
10634 2019-03-18 Pedro Alves <palves@redhat.com>
10635
10636 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10637 New globals.
10638 (apply_style): New, factored out from ...
10639 (apply_ansi_escape): ... this. Handle reverse video mode.
10640 (tui_set_reverse_mode): New function.
10641 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10642 * tui/tui-winsource.c (tui_show_source_line): Use
10643 tui_set_reverse_mode instead of setting A_STANDOUT.
10644 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10645 New setter methods.
10646
10647 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
10648
10649 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10650 Handle tabs.
10651
10652 2019-03-18 Tom Tromey <tromey@adacore.com>
10653
10654 * ada-lang.c (empty_array): Add "high" parameter.
10655 (ada_evaluate_subexp): Update.
10656
10657 2019-03-17 Sergei Trofimovich <siarheit@google.com>
10658
10659 * unittests/string_view-selftests.c: Define
10660 _initialize_string_view_selftests unconditionally.
10661
10662 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10663
10664 PR gdb/24350
10665 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10666
10667 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10668
10669 PR gdb/24351
10670 * windows-nat.c (display_selector): Fix format specifiers.
10671
10672 2019-03-17 Eli Zaretskii <eliz@gnu.org>
10673
10674 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10675 tui_refill_source_window instead of tui_refresh_win, to update the
10676 current execution line. This fixes redisplay of the current line
10677 when stepping through the code with "next" or "step".
10678
10679 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10680
10681 * source-cache.c (source_cache::get_source_lines): Call
10682 find_source_lines to initialize s->nlines. This fixes vertical
10683 scrolling of TUI source window when the DOWN arrow is pressed.
10684
10685 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10686
10687 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10688 linux-thread-db.c (_initialize_thread_db): Likewise.
10689
10690 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10691
10692 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10693 wclrtoeol in tui_show_source_line". This reverts changes made in
10694 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10695
10696 2019-03-15 Tom Tromey <tom@tromey.com>
10697
10698 * symtab.h (struct minimal_symbol): Derive from
10699 general_symbol_info.
10700 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10701 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10702 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10703 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10704 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10705 (MSYMBOL_SEARCH_NAME): Update.
10706 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10707 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10708 * minsyms.c (minimal_symbol_reader::record_full): Update.
10709
10710 2019-03-15 Tom Tromey <tom@tromey.com>
10711
10712 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10713
10714 2019-03-15 Tom Tromey <tom@tromey.com>
10715
10716 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10717 unique_xmalloc_ptr.
10718 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10719 Update.
10720 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10721 (build_minimal_symbol_hash_tables)
10722 (minimal_symbol_reader::install): Update.
10723
10724 2019-03-15 Tom Tromey <tom@tromey.com>
10725
10726 * symtab.c (create_demangled_names_hash): Update.
10727 (symbol_set_names): Update.
10728 * objfiles.h (struct objfile_per_bfd_storage)
10729 <demangled_names_hash>: Now an htab_up.
10730 * objfiles.c (objfile_per_bfd_storage): Simplify.
10731
10732 2019-03-15 Tom Tromey <tom@tromey.com>
10733
10734 * objfiles.h (struct objfile_per_bfd_storage): Declare
10735 destructor.
10736 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10737 New.
10738 (get_objfile_bfd_data): Use new. Don't initialize
10739 language_of_main.
10740 (free_objfile_per_bfd_storage): Remove.
10741 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10742
10743 2019-03-15 Tom Tromey <tom@tromey.com>
10744
10745 * symfile.c (reread_symbols): Update.
10746 * objfiles.c (objfile::objfile): Update.
10747 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10748 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10749 comment.
10750 (minimal_symbol_reader::install): Update.
10751 (terminate_minimal_symbol_table): Remove.
10752 * jit.c (jit_object_close_impl): Update.
10753
10754 2019-03-15 Tom Tromey <tom@tromey.com>
10755
10756 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10757 initializations.
10758
10759 2019-03-15 Tom Tromey <tom@tromey.com>
10760
10761 * objfiles.h (struct objfile_per_bfd_storage)
10762 <demangled_hash_languages>: Now a bitset.
10763 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10764 (lookup_minimal_symbol): Update.
10765
10766 2019-03-15 Tom Tromey <tom@tromey.com>
10767
10768 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10769 Don't return the symbol.
10770 * coffread.c (record_minimal_symbol): Use record_full.
10771
10772 2019-03-14 Eli Zaretskii <eliz@gnu.org>
10773
10774 The MS-Windows port of ncurses fails to switch to a color pair if
10775 one or both of the colors are the implicit default colors. This
10776 change records the default colors when TUI is initialized, and
10777 then specifies them explicitly when a color pair uses the default
10778 colors. This allows color styling in TUI mode on MS-Windows.
10779
10780 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10781 ncurses_norm_attr.
10782 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10783 colors in ncurses_norm_attr.
10784 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10785 "none", replace it with the default color recorded in
10786 ncurses_norm_attr.
10787
10788 2019-03-14 Tom Tromey <tromey@adacore.com>
10789
10790 * source-cache.h (class source_cache) <get_source_lines>: Return
10791 std::string.
10792 * source-cache.c (source_cache::extract_lines): Handle case where
10793 first_pos==npos. Return std::string.
10794 (source_cache::get_source_lines): Update.
10795
10796 2019-03-14 Tom Tromey <tromey@adacore.com>
10797
10798 * NEWS: Add item for "style sources" commands.
10799 * source-cache.c (source_cache::get_source_lines): Check
10800 source_styling.
10801 * cli/cli-style.c (source_styling): New global.
10802 (_initialize_cli_style): Add "style sources" commands.
10803 (show_style_sources): New function.
10804 * cli/cli-style.h (source_styling): Declare.
10805
10806 2019-03-14 Pedro Alves <palves@redhat.com>
10807 Tom Tromey <tromey@adacore.com>
10808
10809 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10810 * tui/tui-winsource.c (tui_refill_source_window): New function,
10811 from...
10812 (tui_horizontal_source_scroll): ... here. Move some logic.
10813 * cli/cli-style.c (set_style_enabled): Notify new observable.
10814 * tui/tui-hooks.c (tui_redisplay_source): New function.
10815 (tui_attach_detach_observers): Attach or detach
10816 tui_redisplay_source.
10817 * observable.h (source_styling_changed): New observable.
10818 * observable.c: Define source_styling_changed observable.
10819
10820 2019-03-13 Tom Tromey <tromey@adacore.com>
10821
10822 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10823 (i386_gnu_nat_target::store_registers): Update.
10824 * target-debug.h (target_debug_print_std_string): New macro.
10825 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10826 * windows-tdep.c (display_one_tib): Update.
10827 * tui/tui-stack.c (tui_make_status_line): Update.
10828 * top.c (print_inferior_quit_action): Update.
10829 * thread.c (thr_try_catch_cmd): Update.
10830 (add_thread_with_info): Update.
10831 (thread_target_id_str): Update.
10832 (thr_try_catch_cmd): Update.
10833 (thread_command): Update.
10834 (thread_find_command): Update.
10835 * record-btrace.c (record_btrace_target::info_record)
10836 (record_btrace_resume_thread, record_btrace_target::resume)
10837 (record_btrace_cancel_resume, record_btrace_step_thread)
10838 (record_btrace_target::wait, record_btrace_target::wait)
10839 (record_btrace_target::wait, record_btrace_target::stop): Update.
10840 * progspace.c (print_program_space): Update.
10841 * process-stratum-target.c
10842 (process_stratum_target::thread_address_space): Update.
10843 * linux-fork.c (linux_fork_mourn_inferior)
10844 (detach_checkpoint_command, info_checkpoints_command)
10845 (linux_fork_context): Update.
10846 (linux_fork_detach): Update.
10847 (class scoped_switch_fork_info): Update.
10848 (delete_checkpoint_command): Update.
10849 * infrun.c (follow_fork_inferior): Update.
10850 (follow_fork_inferior): Update.
10851 (proceed_after_vfork_done): Update.
10852 (handle_vfork_child_exec_or_exit): Update.
10853 (follow_exec): Update.
10854 (displaced_step_prepare_throw): Update.
10855 (displaced_step_restore): Update.
10856 (start_step_over): Update.
10857 (resume_1): Update.
10858 (clear_proceed_status_thread): Update.
10859 (proceed): Update.
10860 (print_target_wait_results): Update.
10861 (do_target_wait): Update.
10862 (context_switch): Update.
10863 (stop_all_threads): Update.
10864 (restart_threads): Update.
10865 (finish_step_over): Update.
10866 (handle_signal_stop): Update.
10867 (switch_back_to_stepped_thread): Update.
10868 (keep_going_pass_signal): Update.
10869 (print_exited_reason): Update.
10870 (normal_stop): Update.
10871 * inferior.c (inferior_pid_to_str): Change return type.
10872 (print_selected_inferior): Update.
10873 (add_inferior): Update.
10874 (detach_inferior): Update.
10875 * dummy-frame.c (fprint_dummy_frames): Update.
10876 * dcache.c (dcache_info_1): Update.
10877 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10878 (btrace_fetch, btrace_clear): Update.
10879 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10880 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10881 type.
10882 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10883 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10884 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10885 * gdbarch.c, gdbarch.h: Rebuild.
10886 * gdbarch.sh (core_pid_to_str): Change return type.
10887 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10888 return type.
10889 (windows_nat_target::pid_to_str): Change return type.
10890 (windows_delete_thread): Update.
10891 (windows_nat_target::attach): Update.
10892 (windows_nat_target::files_info): Update.
10893 * target-delegates.c: Rebuild.
10894 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10895 return type.
10896 (sol_thread_target::pid_to_str): Change return type.
10897 * remote.c (class remote_target) <pid_to_str>: Change return
10898 type.
10899 (remote_target::pid_to_str): Change return type.
10900 (extended_remote_target::attach, remote_target::remote_stop_ns)
10901 (remote_target::remote_notif_remove_queued_reply)
10902 (remote_target::push_stop_reply, remote_target::disable_btrace):
10903 Update.
10904 (extended_remote_target::attach): Update.
10905 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10906 type.
10907 (gdbsim_target::pid_to_str): Change return type.
10908 * ravenscar-thread.c (struct ravenscar_thread_target)
10909 <pid_to_str>: Change return type.
10910 (ravenscar_thread_target::pid_to_str): Change return type.
10911 * procfs.c (class procfs_target) <pid_to_str>: Change return
10912 type.
10913 (procfs_target::pid_to_str): Change return type.
10914 (procfs_target::attach): Update.
10915 (procfs_target::detach): Update.
10916 (procfs_target::fetch_registers): Update.
10917 (procfs_target::store_registers): Update.
10918 (procfs_target::wait): Update.
10919 (procfs_target::files_info): Update.
10920 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10921 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10922 return type.
10923 (nto_procfs_target::pid_to_str): Change return type.
10924 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10925 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10926 return type.
10927 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10928 (exit_lwp): Update.
10929 (attach_proc_task_lwp_callback, get_detach_signal)
10930 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10931 (linux_nat_target::resume, wait_lwp, stop_callback)
10932 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10933 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10934 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10935 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10936 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10937 type.
10938 (inf_ptrace_target::attach): Update.
10939 (inf_ptrace_target::files_info): Update.
10940 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10941 type.
10942 (go32_nat_target::pid_to_str): Change return type.
10943 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10944 (gnu_nat_target::wait): Update.
10945 (gnu_nat_target::wait): Update.
10946 (gnu_nat_target::resume): Update.
10947 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10948 (fbsd_nat_target::wait): Update.
10949 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10950 type.
10951 (darwin_nat_target::attach): Update.
10952 * corelow.c (class core_target) <pid_to_str>: Change return type.
10953 (core_target::pid_to_str): Change return type.
10954 * target.c (normal_pid_to_str): Change return type.
10955 (default_pid_to_str): Likewise.
10956 (target_pid_to_str): Change return type.
10957 (target_translate_tls_address): Update.
10958 (target_announce_detach): Update.
10959 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10960 return type.
10961 (bsd_uthread_target::pid_to_str): Change return type.
10962 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10963 type.
10964 (bsd_kvm_target::pid_to_str): Change return type.
10965 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10966 return type.
10967 (aix_thread_target::pid_to_str): Change return type.
10968 * target.h (struct target_ops) <pid_to_str>: Change return type.
10969 (target_pid_to_str, normal_pid_to_str): Likewise.
10970 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10971 type.
10972 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10973 type.
10974 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10975 return type.
10976 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10977 type.
10978 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10979 type.
10980 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10981 return type.
10982
10983 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10984
10985 * NEWS: Mention that the new default MI version is 3. Mention
10986 changes to the output of commands and events that deal with
10987 multi-location breakpoints.
10988 * breakpoint.c: Include "mi/mi-out.h".
10989 (print_one_breakpoint): Change output syntax if using MI version
10990 >= 3.
10991 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10992 New.
10993 (mi_multi_location_breakpoint_output_fixed): New.
10994 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10995 (mi_cmd_fix_multi_location_breakpoint_output): New.
10996 (mi_multi_location_breakpoint_output_fixed): New.
10997 * mi/mi-cmds.c (mi_cmds): Register command
10998 -fix-multi-location-breakpoint-output.
10999 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11000 interpreter "mi".
11001
11002 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11003
11004 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11005 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11006 instantiate mi_ui_out based on interpreter name.
11007 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11008 * mi/mi-main.c (mi_load_progress): Likewise.
11009
11010 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11011
11012 * NEWS: Combine separate "New targets" sections for 8.3.
11013
11014 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11015
11016 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11017 (ppcfbsd_init_abi): Install gdbarch
11018 "fetch_tls_load_module_address" and "get_thread_local_address"
11019 methods.
11020
11021 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11022
11023 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11024 (riscv_fbsd_init_abi): Install gdbarch
11025 "fetch_tls_load_module_address" and "get_thread_local_address"
11026 methods.
11027
11028 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11029
11030 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11031 (i386fbsd_init_abi): Install gdbarch
11032 "fetch_tls_load_module_address" and "get_thread_local_address"
11033 methods.
11034
11035 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11036
11037 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11038 (amd64fbsd_init_abi): Install gdbarch
11039 "fetch_tls_load_module_address" and "get_thread_local_address"
11040 methods.
11041
11042 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11043
11044 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11045 (struct fbsd_pspace_data): New type.
11046 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11047 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11048 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11049 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11050 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11051
11052 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11053
11054 * gdbtypes.c (lookup_struct_elt): New function.
11055 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11056 * gdbtypes.h (struct struct_elt): New type.
11057 (lookup_struct_elt): New prototype.
11058
11059 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11060
11061 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11062 remove disabled code block.
11063
11064 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11065
11066 * gdbarch.sh (get_thread_local_address): New method.
11067 * gdbarch.h, gdbarch.c: Regenerate.
11068 * target.c (target_translate_tls_address): Use
11069 gdbarch_get_thread_local_address if present instead of
11070 target::get_thread_local_address.
11071
11072 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11073
11074 * target.h (target::get_thread_local_address): Update comment.
11075
11076 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11077
11078 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11079 objfile->separate_debug_objfile_backlink if not NULL.
11080
11081 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11082
11083 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11084 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11085 (amd64bsd_store_inferior_registers): Likewise.
11086 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11087 Enable segment base registers.
11088 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11089 PT_GETFSBASE and PT_GETGSBASE.
11090 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11091 PT_SETGSBASE.
11092 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11093 segment base registers.
11094 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11095
11096 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11097
11098 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11099 Update calls to i386_target_description to add 'segments'
11100 parameter.
11101 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11102 add segment base registers.
11103 * arch/i386.c (i386_create_target_description): Add 'segments'
11104 parameter to enable segment base registers.
11105 * arch/i386.h (i386_create_target_description): Likewise.
11106 * features/i386/32bit-segments.xml: New file.
11107 * features/i386/32bit-segments.c: Generate.
11108 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11109 call to i386_target_description to add 'segments' parameter.
11110 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11111 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11112 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11113 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11114 if feature is present.
11115 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11116 Add 'segments' parameter to call to i386_target_description.
11117 (i386_target_description): Add 'segments' parameter to enable
11118 segment base registers.
11119 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11120 to call to i386_target_description.
11121 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11122 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11123 Define I386_NUM_REGS.
11124 (i386_target_description): Add 'segments' parameter to enable
11125 segment base registers.
11126
11127 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11128
11129 PR/24325
11130 * source-cache.c: #undef open and close, to avoid unresolved
11131 externals during linking.
11132
11133 2019-03-12 Tom Tromey <tromey@adacore.com>
11134
11135 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11136 const. Add initializers.
11137 (_initialize_remote): Don't initialize ptid globals.
11138
11139 2019-03-12 Pedro Alves <palves@redhat.com>
11140
11141 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11142
11143 2019-03-12 Pedro Alves <palves@redhat.com>
11144
11145 * cp-name-parser.y (main): Remove unused 'len' variable.
11146
11147 2019-03-12 Tom Tromey <tromey@adacore.com>
11148
11149 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11150 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11151
11152 2019-03-12 Tom Tromey <tromey@adacore.com>
11153
11154 * linux-nat.c (iterate_over_lwps): Update.
11155 (stop_callback): Remove parameter.
11156 (stop_wait_callback, detach_callback, resume_set_callback)
11157 (select_singlestep_lwp_callback, set_ignore_sigint)
11158 (status_callback, resumed_callback, resume_clear_callback)
11159 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11160 data parameter.
11161 (linux_nat_target::detach, linux_nat_target::resume)
11162 (linux_stop_and_wait_all_lwps, select_event_lwp)
11163 (linux_nat_filter_event, linux_nat_wait_1)
11164 (linux_nat_target::kill, linux_nat_target::stop)
11165 (linux_nat_target::stop): Update.
11166 (linux_nat_resume_callback): Change type.
11167 (resume_stopped_resumed_lwps, count_events_callback)
11168 (select_event_lwp_callback): Likewise.
11169 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11170 * arm-linux-nat.c (struct update_registers_data): Remove.
11171 (update_registers_callback): Change type.
11172 (arm_linux_insert_hw_breakpoint1): Update.
11173 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11174 parameter.
11175 (x86_linux_dr_set_addr): Update.
11176 (x86_linux_dr_set_control): Update.
11177 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11178 (iterate_over_lwps): Use gdb::function_view.
11179 * nat/aarch64-linux-hw-point.c (struct
11180 aarch64_dr_update_callback_param): Remove.
11181 (debug_reg_change_callback): Change type.
11182 (aarch64_notify_debug_reg_change): Update.
11183 * s390-linux-nat.c (s390_refresh_per_info): Update.
11184
11185 2019-03-11 Tom Tromey <tromey@adacore.com>
11186
11187 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11188 redundant assignment to "this_cu".
11189
11190 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11191
11192 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11193
11194 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11195
11196 * gdbtypes.c (rank_one_type_parm_set): 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_struct): 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_complex): 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_float): 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_bool): 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_range): 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_char): 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_enum): 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_int): 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_func): 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_array): New function extracted
11257 from...
11258 (rank_one_type): ... this.
11259
11260 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11261
11262 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11263 from...
11264 (rank_one_type): ... this.
11265
11266 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11267
11268 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11269 inferior-events' shows the example events.
11270
11271 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11272
11273 Support styling on native MS-Windows console
11274
11275 PR/24315
11276 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11277 on MS-Windows if $TERM is not defined.
11278
11279 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11280
11281 * posix-hdep.c (gdb_console_fputs):
11282 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11283 functions.
11284 * ui-file.h (gdb_console_fputs): Add prototype.
11285
11286 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11287 back to fputs only if the former returns zero.
11288
11289 2019-03-07 Tom Tromey <tom@tromey.com>
11290
11291 * symmisc.c (print_symbol_bcache_statistics): Update.
11292 (print_objfile_statistics): Update.
11293 * symfile.c (allocate_symtab): Update.
11294 * stabsread.c: Don't include bcache.h.
11295 * psymtab.h (struct psymbol_bcache): Don't declare.
11296 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11297 (psymbol_bcache_init, psymbol_bcache_free)
11298 (psymbol_bcache_get_bcache): Don't declare.
11299 * psymtab.c (struct psymbol_bcache): Remove.
11300 (psymtab_storage::psymtab_storage): Update.
11301 (psymtab_storage::~psymtab_storage): Update.
11302 (psymbol_bcache_init, psymbol_bcache_free)
11303 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11304 (add_psymbol_to_bcache): Update.
11305 (allocate_psymtab): Update.
11306 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11307 macro_cache>: No longer pointers.
11308 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11309 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11310 * macrotab.c (macro_bcache): Update.
11311 * macroexp.c: Don't include bcache.h.
11312 * gdbtypes.c (check_types_worklist): Update.
11313 (types_deeply_equal): Remove TRY/CATCH. Update.
11314 * elfread.c (elf_symtab_read): Update.
11315 * dwarf2read.c: Don't include bcache.h.
11316 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11317 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11318 (print_bcache_statistics, bcache_memory_used): Don't declare.
11319 (struct bcache): Move from bcache.c. Add constructor, destructor,
11320 methods. Rename all data members.
11321 * bcache.c (struct bcache): Move to bcache.h.
11322 (bcache::expand_hash_table): Rename from expand_hash_table.
11323 (bcache): Remove.
11324 (bcache::insert): Rename from bcache_full.
11325 (bcache::compare): Rename from bcache_compare.
11326 (bcache_xmalloc): Remove.
11327 (bcache::~bcache): Rename from bcache_xfree.
11328 (bcache::print_statistics): Rename from print_bcache_statistics.
11329 (bcache::memory_used): Rename from bcache_memory_used.
11330
11331 2019-03-07 Pedro Alves <palves@redhat.com>
11332
11333 * infrun.c (normal_stop): Also check for
11334 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11335
11336 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11337
11338 * f-lang.c (value_from_host_double): Moved to...
11339 * value.c (value_from_host_double): ...here.
11340 * value.h (value_from_host_double): Declare.
11341 * guile/scm-math.c (vlscm_convert_typed_number): Use
11342 value_from_host_double.
11343 (vlscm_convert_number): Likewise.
11344 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11345 * python/py-value.c (convert_value_from_python): Likewise.
11346
11347 2019-03-06 Tom Tromey <tom@tromey.com>
11348
11349 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11350
11351 2019-03-06 Tom Tromey <tom@tromey.com>
11352
11353 * utils.h (free_current_contents): Don't declare.
11354 * utils.c (free_current_contents): Remove.
11355
11356 2019-03-06 Tom Tromey <tom@tromey.com>
11357
11358 * top.c (quit_force): Update.
11359 * main.c (captured_command_loop): Update.
11360 * common/new-op.c (operator new): Update.
11361 * common/common-exceptions.c (struct catcher)
11362 <save_cleanup_chain>: Remove member.
11363 (exceptions_state_mc_init): Update.
11364 (exception_try_scope_entry): Return nullptr.
11365 (exception_try_scope_exit, exception_rethrow)
11366 (throw_exception_sjlj, throw_exception_cxx): Update.
11367 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11368 (all_cleanups, do_cleanups, discard_cleanups)
11369 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11370 (restore_cleanups, restore_final_cleanups): Don't declare.
11371 (do_final_cleanups): Remove parameter.
11372 * common/cleanups.c (cleanup_chain, make_cleanup)
11373 (make_cleanup_dtor, all_cleanups, do_cleanups)
11374 (discard_my_cleanups, discard_cleanups)
11375 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11376 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11377 (null_cleanup): Remove.
11378 (do_final_cleanups): Remove parameter.
11379
11380 2019-03-06 Tom Tromey <tom@tromey.com>
11381
11382 * remote.c (remote_target::remote_parse_stop_reply): Use
11383 unique_xmalloc_ptr.
11384
11385 2019-03-06 Tom Tromey <tom@tromey.com>
11386
11387 * stabsread.c (struct stabs_field_info): Rename from field_info.
11388 <list, fnlist>: Add initializers.
11389 <obstack>: New member.
11390 (read_member_functions, read_struct_fields, read_baseclasses):
11391 Allocate on obstack. Don't use cleanups.
11392 (read_one_struct_field, read_member_functions, read_struct_fields)
11393 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11394 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11395 (read_struct_type): Update.
11396
11397 2019-03-06 Tom Tromey <tom@tromey.com>
11398
11399 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11400 * common/filestuff.h (make_cleanup_close): Don't declare.
11401 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11402 Remove.
11403
11404 2019-03-06 Tom Tromey <tom@tromey.com>
11405
11406 * solib-aix.c: Use make_scope_exit.
11407
11408 2019-03-06 Tom Tromey <tom@tromey.com>
11409
11410 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11411 Use make_scope_exit.
11412
11413 2019-03-06 Tom Tromey <tom@tromey.com>
11414
11415 * solib-svr4.c (disable_probes_interface): Remove parameter.
11416 (svr4_handle_solib_event): Use make_scope_exit.
11417
11418 2019-03-06 Tom Tromey <tom@tromey.com>
11419
11420 * remote.c (struct stop_reply_deleter): Remove.
11421 (stop_reply_up): Update.
11422 (struct stop_reply): Derive from notif_event. Don't typedef.
11423 <regcache>: Now a std::vector.
11424 (stop_reply_xfree): Remove.
11425 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11426 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11427 (remote_target::discard_pending_stop_replies): Use delete.
11428 (remote_target::remote_parse_stop_reply): Update.
11429 (remote_target::process_stop_reply): Update.
11430 * remote-notif.h (struct notif_event): Add virtual destructor.
11431 Remove "dtr" member.
11432 (struct notif_client) <alloc_event>: Return a unique_ptr.
11433 (notif_event_xfree): Don't declare.
11434 (notif_event_up): New typedef.
11435 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11436 (notif_event_xfree, do_notif_event_xfree): Remove.
11437 (remote_notif_state_xfree): Update.
11438
11439 2019-03-06 Tom Tromey <tom@tromey.com>
11440
11441 * infrun.c (displaced_step_clear_cleanup): Now a
11442 forward_scope_exit type.
11443 (displaced_step_prepare_throw): Update.
11444 (displaced_step_fixup): Update.
11445
11446 2019-03-06 Tom Tromey <tom@tromey.com>
11447
11448 * inferior.h (class inferior): Update comment.
11449 * gdbthread.h (class thread_info): Update comment.
11450
11451 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11452 Tom Tromey <tom@tromey.com>
11453
11454 * stabsread.h (struct stab_section_list): Remove.
11455 (coffstab_build_psymtabs): Update.
11456 * dbxread.c (symbuf_sections): Now a std::vector.
11457 (sect_idx): New global.
11458 (fill_symbuf): Update.
11459 (coffstab_build_psymtabs): Change type of stabsects parameter.
11460 Update.
11461 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11462 std::vector.
11463 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11464 (coff_locate_sections): Update.
11465 (coff_symfile_read): Remove cleanups. Update.
11466 (init_stringtab): Add storage parameter.
11467 (free_stringtab, free_stringtab_cleanup): Remove.
11468 (init_lineno): Add storage parameter.
11469 (free_linetab, free_linetab_cleanup): Remove.
11470
11471 2019-03-06 Pedro Alves <palves@redhat.com>
11472
11473 * linux-fork.c (fork_info::clobber_regs): Delete.
11474 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11475 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11476 comment. Adjust.
11477 (scoped_switch_fork_info::scoped_switch_fork_info)
11478 (checkpoint_command, linux_fork_context): Adjust
11479 fork_save_infrun_state calls.
11480
11481 2019-03-06 Pedro Alves <palves@redhat.com>
11482
11483 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11484 (inf_has_multiple_threads): Return 'bool' and rewrite using
11485 inferior_info::threads().
11486
11487 2019-03-06 Pedro Alves <palves@redhat.com>
11488
11489 * linux-fork.c: Include <list>.
11490 (fork_list): Now a std::list instance.
11491 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11492 (forks_exist_p, find_last_fork): Adjust.
11493 (new_fork): Delete.
11494 (one_fork_p): New.
11495 (add_fork): Adjust.
11496 (free_fork): Delete, folded into fork_info::~fork_info().
11497 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11498 Adjust.
11499 (init_fork_list): Delete.
11500 (linux_fork_killall, linux_fork_mourn_inferior)
11501 (linux_fork_detach, info_checkpoints_command): Adjust.
11502 (_initialize_linux_fork): No longer call init_fork_list.
11503
11504 2019-03-06 Pedro Alves <palves@redhat.com>
11505
11506 * linux-fork.c (new_fork): New, split out of ...
11507 (add_fork): ... this. Return void. Move "first fork" special
11508 case from here, to ...
11509 (checkpoint_command): ... here.
11510 * linux-linux.h (add_fork): Return void.
11511
11512 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11513
11514 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11515
11516 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11517 Chris January <chris.january@arm.com>
11518 David Lecomber <david.lecomber@arm.com>
11519
11520 * f-exp.y: New token, UNOP_INTRINSIC.
11521 (exp): New pattern using UNOP_INTRINSIC token.
11522 (f77_keywords): Add 'abs' keyword.
11523 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11524 (value_from_host_double): New function.
11525 (evaluate_subexp_f): Support UNOP_ABS.
11526
11527 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11528
11529 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11530 types.
11531
11532 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11533
11534 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11535 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11536 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11537
11538 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11539
11540 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11541
11542 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11543 Chris January <chris.january@arm.com>
11544
11545 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11546 * f-exp.y: Define 'KIND' token.
11547 (exp): New pattern for KIND expressions.
11548 (ptype): Handle types with a kind extension.
11549 (direct_abs_decl): Extend to spot kind extensions.
11550 (f77_keywords): Add 'kind' to the list.
11551 (push_kind_type): New function.
11552 (convert_to_kind_type): New function.
11553 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11554 * parse.c (operator_length_standard): Likewise.
11555 * parser-defs.h (enum type_pieces): Add tp_kind.
11556 * std-operator.def: Add UNOP_KIND.
11557
11558 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11559
11560 * f-exp.y (f_parse): Set yydebug.
11561
11562 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11563
11564 * f-lang.c (evaluate_subexp_f): New function.
11565 (exp_descriptor_f): New global.
11566 (f_language_defn): Use exp_descriptor_f instead of
11567 exp_descriptor_standard.
11568
11569 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11570
11571 * f-exp.y (struct token): Add comments.
11572 (dot_ops): Remove uppercase versions and the end marker.
11573 (f77_keywords): Likewise.
11574 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11575 entries in the dot_ops array are case insensitive, and use
11576 strncasecmp to compare strings. Also some whitespace cleanup in
11577 this area. Similar for the f77_keywords array, except entries in
11578 this list might be case sensitive.
11579
11580 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11581
11582 * f-exp.y (struct f77_boolean_val): Add comments.
11583 (boolean_values): Remove uppercase versions, and end marker.
11584 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11585 and use strncasecmp to achieve case insensitivity. Additionally,
11586 perform whitespace cleanup around this code.
11587
11588 2019-03-06 Tom Tromey <tromey@adacore.com>
11589
11590 * remote-sim.c (gdbsim_target_open): Use result of
11591 gdb_argv::release.
11592
11593 2019-03-06 Richard Bunt <richard.bunt@arm.com>
11594 Dirk Schubert <dirk.schubert@arm.com>
11595 Chris January <chris.january@arm.com>
11596
11597 * eval.c (evaluate_subexp_standard): Call Fortran argument
11598 wrapping logic.
11599 * f-lang.c (struct value): A value which can be passed into a
11600 Fortran function call.
11601 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11602 where appropriate.
11603 (struct type): Value ready for a Fortran function call.
11604 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11605 is needed.
11606 * f-lang.h (fortran_argument_convert): Declaration.
11607 (fortran_preserve_arg_pointer): Declaration.
11608 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11609
11610 2019-03-05 Tom Tromey <tromey@adacore.com>
11611
11612 * python/py-prettyprint.c (print_string_repr): Remove #if.
11613 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11614
11615 2019-03-05 Tom Tromey <tromey@adacore.com>
11616
11617 * target.c (the_dummy_target): Move later. Change type to
11618 "dummy_target".
11619 (initialize_targets): Don't initialize the_dummy_target.
11620
11621 2019-03-05 Tom Tromey <tromey@adacore.com>
11622
11623 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11624 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11625
11626 2019-03-05 Tom Tromey <tromey@adacore.com>
11627
11628 * windows-nat.c (windows_nat_target::attach)
11629 (windows_nat_target::detach): Don't call gdb_flush.
11630 * valprint.c (generic_val_print, val_print, val_print_string):
11631 Don't call gdb_flush.
11632 * utils.c (defaulted_query): Don't call gdb_flush.
11633 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11634 * target.c (target_announce_detach): Don't call gdb_flush.
11635 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11636 * remote.c (extended_remote_target::attach): Don't call
11637 gdb_flush.
11638 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11639 * printcmd.c (do_examine): Don't call gdb_flush.
11640 (info_display_command): Don't call gdb_flush.
11641 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11642 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11643 * memattr.c (info_mem_command): Don't call gdb_flush.
11644 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11645 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11646 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11647 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11648 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11649 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11650 (gnu_nat_target::detach): Don't call gdb_flush.
11651 * f-valprint.c (f_val_print): Don't call gdb_flush.
11652 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11653 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11654 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11655 gdb_flush.
11656 * c-valprint.c (c_val_print): Don't call gdb_flush.
11657 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11658
11659 2019-03-05 Tom Tromey <tromey@adacore.com>
11660
11661 * varobj.c (update_dynamic_varobj_children): Update.
11662 (install_default_visualizer): Use reset, not release.
11663 * value.c (set_internalvar): Update.
11664 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11665 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11666 ATTRIBUTE_UNUSED_RESULT.
11667
11668 2019-03-05 Tom Tromey <tromey@adacore.com>
11669
11670 * remote.c (class scoped_remote_fd) <release>: Add
11671 ATTRIBUTE_UNUSED_RESULT.
11672
11673 2019-03-05 Tom Tromey <tromey@adacore.com>
11674
11675 * macroexp.c (struct macro_buffer) <release>: Add
11676 ATTRIBUTE_UNUSED_RESULT.
11677
11678 2019-03-05 Tom Tromey <tromey@adacore.com>
11679
11680 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11681 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11682 ATTRIBUTE_UNUSED_RESULT.
11683
11684 2019-03-05 Tom Tromey <tromey@adacore.com>
11685
11686 * common/scoped_fd.h (class scoped_fd) <release>: Add
11687 ATTRIBUTE_UNUSED_RESULT.
11688
11689 2019-03-05 Tom Tromey <tromey@adacore.com>
11690
11691 * parser-defs.h (struct parser_state) <release>: Add
11692 ATTRIBUTE_UNUSED_RESULT.
11693
11694 2019-03-05 Tom Tromey <tromey@adacore.com>
11695
11696 * utils.h (class gdb_argv) <release>: Add
11697 ATTRIBUTE_UNUSED_RESULT.
11698 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11699
11700 2019-03-02 Eli Zaretskii <eliz@gnu.org>
11701
11702 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11703 for-loop range, to avoid compiler warnings.
11704
11705 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11706 avoid compiler warnings about unused variables.
11707
11708 * NEWS: Mention end of support for native debugging on MS-Windows
11709 before XP.
11710
11711 PR gdb/24292
11712 * common/netstuff.c:
11713 * gdbserver/gdbreplay.c
11714 * gdbserver/remote-utils.c:
11715 * ser-tcp.c:
11716 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11717 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11718 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11719 'getaddrinfo' and 'freeaddrinfo' were not available before
11720 Windows XP, and mingw.org's MinGW headers by default define
11721 _WIN32_WINNT to 0x500.
11722
11723 2019-03-01 Gary Benson <gbenson@redhat.com>
11724
11725 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11726
11727 2019-02-28 Brian Vandenberg <phantall@gmail.com>
11728 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11729
11730 PR gdb/8527
11731 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11732 set_sigint_trap, clear_sigint_trap.
11733
11734 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11735
11736 * target.c (target_detach): Clear the regcache and the
11737 frame cache.
11738
11739 2019-02-27 Pedro Alves <palves@redhat.com>
11740
11741 * utils.c (set_screen_size): When we cap the height/width sizes,
11742 tweak the corresponding command variable to show "unlimited":
11743
11744 2019-02-27 Saagar Jha <saagar@saagarjha.com>
11745 Pedro Alves <palves@redhat.com>
11746
11747 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11748 before calling rl_set_screen_size.
11749
11750 2019-02-27 Tom Tromey <tromey@adacore.com>
11751
11752 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11753 define.
11754 * python/py-value.c: Remove Python 2.4 workaround.
11755 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11756 workaround.
11757 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11758 Python 2.4 workaround.
11759 * python/python-internal.h: Remove Python 2.4 comment.
11760 (Py_ssize_t): Don't define.
11761 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11762 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11763 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11764 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11765 * python/python.c (do_start_initialization): Remove Python 2.4
11766 workaround.
11767 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11768 (print_children): Remove Python 2.4 workaround.
11769 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11770 workaround.
11771 (CHARBUFFERPROC_NAME): Remove.
11772 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11773 Python 2.4 workaround.
11774
11775 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11776
11777 * NEWS: Note minimum Python version.
11778
11779 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11780
11781 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11782 code from these functions. Remove corresponding ifdefs. Use
11783 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11784 Remove gotos and target of gotos.
11785 (infpy_search_memory): Likewise.
11786
11787 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11788
11789 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11790 (hppa_gdbarch_init): Don't register deleted functions with
11791 gdbarch.
11792
11793 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11794
11795 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11796 (h8300_unwind_sp): Delete.
11797 (h8300_dummy_id): Delete.
11798 (h8300_gdbarch_init): Don't register deleted functions with
11799 gdbarch.
11800
11801 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11802
11803 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11804 (ft32_unwind_pc): Delete.
11805 (ft32_unwind_sp): Delete.
11806 (ft32_gdbarch_init): Don't register deleted functions with
11807 gdbarch.
11808
11809 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11810
11811 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11812 (frv_unwind_pc): Delete.
11813 (frv_unwind_sp): Delete.
11814 (frv_gdbarch_init): Don't register deleted functions with
11815 gdbarch.
11816
11817 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11818
11819 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11820 (riscv_unwind_pc): Delete.
11821 (riscv_unwind_sp): Delete.
11822 (riscv_gdbarch_init): Don't register deleted functions with
11823 gdbarch.
11824
11825 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11826
11827 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11828 (csky_unwind_pc): Delete.
11829 (csky_unwind_sp): Delete.
11830 (csky_gdbarch_init): Don't register deleted functions with
11831 gdbarch.
11832
11833 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11834
11835 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11836 (cris_unwind_pc): Delete.
11837 (cris_unwind_sp): Delete.
11838 (cris_gdbarch_init): Don't register deleted functions with
11839 gdbarch.
11840
11841 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11842
11843 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11844 (bfin_unwind_pc): Delete.
11845 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11846
11847 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11848
11849 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11850 (arm_unwind_pc): Delete.
11851 (arm_unwind_sp): Delete.
11852 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11853
11854 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11855
11856 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11857 (arc_unwind_pc): Delete.
11858 (arc_unwind_sp): Delete.
11859 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11860
11861 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11862
11863 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11864 (alpha_unwind_pc): Delete.
11865 (alpha_gdbarch_init): Don't register deleted functions with
11866 gdbarch.
11867
11868 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11869
11870 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11871 (aarch64_unwind_pc): Delete.
11872 (aarch64_unwind_sp): Delete.
11873 (aarch64_gdbarch_init): Don't register deleted functions with
11874 gdbarch.
11875
11876 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11877
11878 * gdbtypes.c (type_align): Don't consider static members when
11879 computing structure alignment.
11880
11881 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11882
11883 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11884 return 0 for other types.
11885 * arch-utils.c (default_type_align): Always return 0.
11886 * gdbarch.h: Regenerate.
11887 * gdbarch.sh (type_align): Extend comment.
11888 * gdbtypes.c (type_align): Add additional comments, always call
11889 gdbarch_type_align before applying the default rules.
11890 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11891 generic code will then apply a suitable default.
11892 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11893 types, return 0 for other types.
11894
11895 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11896
11897 * NEWS: Create a new section for the next release branch.
11898 Rename the section of the current branch, now that it has
11899 been cut.
11900
11901 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11902
11903 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11904 * version.in: Bump version to 8.3.50.DATE-git.
11905
11906 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
11907
11908 * aix-thread.c (ptid_cmp): Remove unused variable.
11909 (get_signaled_thread): Likewise.
11910 (store_regs_user_thread): Likewise.
11911 (store_regs_kernel_thread): Likewise.
11912 (fetch_regs_kernel_thread): Remove shadowed variable.
11913
11914 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11915
11916 * features/riscv/32bit-cpu.xml: Add register numbers.
11917 * features/riscv/32bit-fpu.c: Regenerate.
11918 * features/riscv/32bit-fpu.xml: Add register numbers.
11919 * features/riscv/64bit-cpu.xml: Add register numbers.
11920 * features/riscv/64bit-fpu.c: Regenerate.
11921 * features/riscv/64bit-fpu.xml: Add register numbers.
11922
11923 2019-02-26 Kevin Buettner <kevinb@redhat.com>
11924
11925 * NEWS: Mention two argument form of gdb.Value constructor.
11926 * python/py-value.c (convert_buffer_and_type_to_value): New
11927 function.
11928 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11929 Add support for handling an optional second argument. Call
11930 convert_buffer_and_type_to_value as appropriate.
11931 * python/python-internal.h (Py_buffer_deleter): New struct.
11932 (Py_buffer_up): New typedef.
11933
11934 2019-02-25 John Baldwin <jhb@FreeBSD.org>
11935
11936 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11937 instead of releasing ownership.
11938
11939 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
11940
11941 * dwarf2read.c (open_and_init_dwp_file): Call
11942 elf_numsections instead of bfd_count_sections to initialize
11943 dwp_file->num_sections.
11944
11945 2019-02-25 Tom Tromey <tromey@adacore.com>
11946
11947 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11948
11949 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11950
11951 * gcore.in: Add '--readnever' option when invoking GDB.
11952
11953 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11954
11955 * MAINTAINERS: Update my email address.
11956
11957 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11958
11959 * build-id.c (build_id_to_debug_bfd_1): New function.
11960 (build_id_to_debug_bfd): Look for separate debug file in
11961 sysroot.
11962
11963 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11964
11965 * gdbarch.sh: Update the copyright year range that is placed into
11966 generated files.
11967
11968 2019-02-22 Keith Seitz <keiths@redhat.com>
11969
11970 PR symtab/23853
11971 * linespec.c (create_sals_line_offset): Search for the default
11972 symtab's filename instead of its fullname.
11973
11974 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11975
11976 * NEWS: Update style defaults.
11977
11978 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11979
11980 * main.c (captured_main_1): Disable styling in batch mode.
11981
11982 2019-02-20 Tom Tromey <tom@tromey.com>
11983
11984 * symtab.c (symtab_symbol_info): Fix typos.
11985
11986 2019-02-20 Tom Tromey <tromey@adacore.com>
11987
11988 * findcmd.c (_initialize_mem_search): Use upper case for
11989 metasyntactic variables.
11990
11991 2019-02-20 Alan Hayward <alan.hayward@arm.com>
11992
11993 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11994 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11995
11996 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11997
11998 * top.h (source_file_name): Change to std::string.
11999 * top.c (source_file_name): Likewise.
12000 (command_line_input): Adjust.
12001 * cli/cli-script.c (script_from_file): Adjust.
12002
12003 2019-02-19 Tom Tromey <tromey@adacore.com>
12004
12005 * ravenscar-thread.c
12006 (ravenscar_thread_target::update_thread_list): Don't call
12007 ada_build_task_list.
12008 * ada-lang.h (ada_build_task_list): Don't declare.
12009 * ada-tasks.c (struct ada_tasks_inferior_data)
12010 <task_list_valid_p>: Now bool.
12011 (read_known_tasks, ada_task_list_changed)
12012 (ada_tasks_invalidate_inferior_data): Update.
12013 (read_known_tasks_array): Return bool.
12014 (read_known_tasks_list): Likewise.
12015 (read_known_tasks): Return void.
12016 (ada_build_task_list): Now static.
12017
12018 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12019
12020 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12021 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12022
12023 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12024
12025 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12026 variant for ada_tasks_pspace_data_handle and
12027 ada_tasks_inferior_data_handle.
12028 (ada_tasks_pspace_data_cleanup): New function.
12029 (ada_tasks_inferior_data_cleanup): New function.
12030
12031 2019-02-17 Tom Tromey <tom@tromey.com>
12032
12033 * macrotab.h (macro_source_fullname): Return a std::string.
12034 * macrotab.c (macro_include, check_for_redefinition)
12035 (macro_undef, macro_lookup_definition, foreach_macro)
12036 (foreach_macro_in_scope): Update.
12037 (macro_source_fullname): Return a std::string.
12038 * macrocmd.c (show_pp_source_pos): Update.
12039
12040 2019-02-17 Tom Tromey <tom@tromey.com>
12041
12042 * macrocmd.c (show_pp_source_pos): Style the file names.
12043
12044 2019-02-17 Tom Tromey <tom@tromey.com>
12045
12046 PR tui/24197:
12047 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12048
12049 2019-02-17 Tom Tromey <tom@tromey.com>
12050
12051 * ada-lang.c (user_select_syms): Use filtered printing.
12052 * utils.c (wrap_style): New global.
12053 (desired_style): Remove.
12054 (emit_style_escape): Add stream parameter.
12055 (set_output_style, reset_terminal_style, prompt_for_continue):
12056 Update.
12057 (flush_wrap_buffer): Only flush gdb_stdout.
12058 (wrap_here): Set wrap_style.
12059 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12060 treat escape sequences as a character. Change when wrap buffer is
12061 flushed.
12062 (fputs_styled): Do not set the output style when the default is
12063 requested.
12064 * ui-style.h (struct ui_file_style) <is_default>: New method.
12065 * source.c (print_source_lines_base): Emit escape sequences in one
12066 piece.
12067
12068 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12069
12070 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12071 integers and enumeration types.
12072
12073 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12074
12075 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12076 instead of lookup_symbol_in_language
12077 (do_exact_match): New function.
12078 (ada_get_symbol_name_matcher): Return do_exact_match when
12079 doing a verbatim match.
12080
12081 2019-02-15 Tom Tromey <tromey@adacore.com>
12082
12083 * ravenscar-thread.c (ravenscar_thread_target::resume)
12084 (ravenscar_thread_target::wait): Special case wildcard requests.
12085
12086 2019-02-15 Tom Tromey <tromey@adacore.com>
12087
12088 * ravenscar-thread.c (base_ptid): Remove.
12089 (struct ravenscar_thread_target) <close>: New method.
12090 <m_base_ptid>: New member.
12091 <update_inferior_ptid, active_task, task_is_currently_active,
12092 runtime_initialized>: Declare methods.
12093 <ravenscar_thread_target>: Add constructor.
12094 (ravenscar_thread_target::task_is_currently_active)
12095 (ravenscar_thread_target::update_inferior_ptid)
12096 (ravenscar_runtime_initialized): Rename. Now methods.
12097 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12098 (ravenscar_thread_target::update_thread_list): Update.
12099 (ravenscar_thread_target::active_task): Now method.
12100 (ravenscar_thread_target::store_registers)
12101 (ravenscar_thread_target::prepare_to_store)
12102 (ravenscar_thread_target::prepare_to_store)
12103 (ravenscar_thread_target::mourn_inferior): Update.
12104 (ravenscar_inferior_created): Use "new" to create target.
12105 (ravenscar_thread_target::get_ada_task_ptid): Update.
12106 (_initialize_ravenscar): Don't initialize base_ptid.
12107 (ravenscar_ops): Remove global.
12108
12109 2019-02-15 Tom Tromey <tromey@adacore.com>
12110
12111 * target.h (push_target): Declare new overload.
12112 * target.c (push_target): New overload, taking an rvalue reference.
12113 * remote.c (remote_target::open_1): Use push_target overload.
12114 * corelow.c (core_target_open): Use push_target overload.
12115
12116 2019-02-15 Tom Tromey <tromey@adacore.com>
12117
12118 * ravenscar-thread.c (is_ravenscar_task)
12119 (ravenscar_task_is_currently_active): Return bool.
12120 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12121 (_initialize_ravenscar): Remove "(void)".
12122 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12123 Return bool.
12124
12125 2019-02-15 Tom Tromey <tromey@adacore.com>
12126
12127 * ravenscar-thread.c (ravenscar_runtime_initializer)
12128 (has_ravenscar_runtime, get_running_thread_id)
12129 (ravenscar_thread_target::resume): Fix indentation.
12130
12131 2019-02-15 Tom Tromey <tromey@adacore.com>
12132
12133 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12134 from ravenscar_arch_ops.
12135 (sparc_ravenscar_ops::fetch_registers)
12136 (sparc_ravenscar_ops::store_registers): Now methods.
12137 (sparc_ravenscar_prepare_to_store): Remove.
12138 (sparc_ravenscar_ops): Redefine.
12139 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12140 methods and destructor. Remove members.
12141 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12142 (ravenscar_thread_target::store_registers)
12143 (ravenscar_thread_target::prepare_to_store): Update.
12144 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12145 Remove.
12146 (struct ppc_ravenscar_powerpc_ops): Derive from
12147 ravenscar_arch_ops.
12148 (ppc_ravenscar_powerpc_ops::fetch_registers)
12149 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12150 (ppc_ravenscar_powerpc_ops): Redefine.
12151 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12152 (ppc_ravenscar_e500_ops::fetch_registers)
12153 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12154 (ppc_ravenscar_e500_ops): Redefine.
12155 * aarch64-ravenscar-thread.c
12156 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12157 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12158 (aarch64_ravenscar_fetch_registers)
12159 (aarch64_ravenscar_store_registers): Now methods.
12160 (aarch64_ravenscar_ops): Redefine.
12161
12162 2019-02-15 Tom Tromey <tromey@adacore.com>
12163
12164 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12165 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12166 (ravenscar_thread_target::stopped_by_watchpoint)
12167 (ravenscar_thread_target::stopped_data_address)
12168 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12169
12170 2019-02-15 Tom Tromey <tromey@adacore.com>
12171
12172 * ravenscar-thread.c: Fix some typos.
12173
12174 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12175 Tom Tromey <tromey@adacore.com>
12176
12177 * ada-lang.c (ada_exception_sal): Change addr_string to a
12178 std::string.
12179 (create_ada_exception_catchpoint): Update.
12180
12181 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12182 Tom Tromey <tromey@adacore.com>
12183
12184 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12185 (bp_location_ops): Remove.
12186 (base_breakpoint_allocate_location): Update.
12187 (free_bp_location): Update.
12188 * ada-lang.c (class ada_catchpoint_location)
12189 <ada_catchpoint_location>: Remove ops parameter.
12190 (ada_catchpoint_location_dtor): Remove.
12191 (ada_catchpoint_location_ops): Remove.
12192 (allocate_location_exception): Update.
12193 * breakpoint.h (struct bp_location_ops): Remove.
12194 (class bp_location) <bp_location>: Remove bp_location_ops
12195 parameter.
12196 <~bp_location>: Add destructor.
12197 <ops>: Remove.
12198
12199 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12200 Pedro Alves <palves@redhat.com>
12201
12202 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12203 'PATH_MAX'.
12204
12205 2019-02-14 David Michael <fedora.dm0@gmail.com>
12206 Samuel Thibault <samuel.thibault@gnu.org>
12207 Thomas Schwinge <thomas@codesourcery.com>
12208
12209 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12210 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12211
12212 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12213
12214 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12215 (check_empty): Use "const char *".
12216
12217 * gnu-nat.c (gnu_nat_target::detach): Instead of
12218 'detach_inferior (pid)' call
12219 'detach_inferior (find_inferior_pid (pid))'.
12220
12221 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12222 'nat/fork-inferior.o'.
12223 * gnu-nat.c: #include "nat/fork-inferior.h".
12224
12225 * gnu-nat.c (gnu_nat_target::detach): Instead of
12226 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12227 * gnu-nat.h: #include "inf-child.h".
12228 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12229 'i386_gnu_nat_target::fetch_registers'.
12230 (gnu_store_registers): Rename/move to
12231 'i386_gnu_nat_target::store_registers'.
12232
12233 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12234 * gnu-nat.h (mach_thread_info): New function.
12235 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12236
12237 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12238
12239 2019-02-14 Frederic Konrad <konrad@adacore.com>
12240
12241 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12242
12243 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12244
12245 * windows-nat.c (windows_add_thread): Add new parameter
12246 "main_thread_p" with default value set to false. Update
12247 function documentation as well as all callers.
12248 (windows_delete_thread): Likewise.
12249 (fake_create_process): Update call to windows_add_thread.
12250 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12251 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12252 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12253 call to windows_delete_thread.
12254
12255 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12256
12257 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12258
12259 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12260
12261 * symfile.c (find_separate_debug_file): Use canonical path of
12262 sysroot with child_path instead of gdb_sysroot if it is valid.
12263
12264 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12265
12266 * symfile.c (find_separate_debug_file): Use child_path to
12267 determine if an object file is under a sysroot.
12268
12269 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12270
12271 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12272 unittests/child-path-selftests.c.
12273 * common/pathstuff.c (child_path): New function.
12274 * common/pathstuff.h (child_path): New prototype.
12275 * unittests/child-path-selftests.c: New file.
12276
12277 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12278
12279 * symfile.c (find_separate_debug_file): Look for separate debug
12280 files in debug directories under the sysroot.
12281
12282 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12283
12284 * symtab.h (struct minimal_symbol data_p): New const method.
12285 (struct minimal_symbol text_p): Likewise.
12286 * symtab.c (output_source_filename): Use file name style
12287 to print file name.
12288 (print_symbol_info): Likewise.
12289 (print_msymbol_info): Use address style to print addresses.
12290 Use function name style to print executable text symbols.
12291 (expand_symtab_containing_pc): Use data_p.
12292 (find_pc_sect_compunit_symtab): Likewise.
12293
12294 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12295
12296 * breakpoint.c (describe_other_breakpoints): Use address style
12297 to print addresses.
12298 (say_where): Likewise.
12299
12300 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12301
12302 * ada-typeprint.c (print_func_type): Print function name
12303 style to print function name.
12304 * c-typeprint.c (c_print_type_1): Likewise.
12305
12306 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12307
12308 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12309 for execve.
12310
12311 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12312
12313 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12314 type_stack.
12315
12316 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12317
12318 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12319 TYPE_CODE_REF types.
12320
12321 2019-02-08 Jim Wilson <jimw@sifive.com>
12322
12323 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12324 (riscv_linux_fregset): New.
12325 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12326
12327 2019-02-07 Tom Tromey <tom@tromey.com>
12328
12329 * thread.c (thread_cancel_execution_command): Update.
12330 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12331 methods.
12332 (struct thread_fsm_ops): Remove.
12333 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12334 (thread_fsm_should_stop, thread_fsm_return_value)
12335 (thread_fsm_set_finished, thread_fsm_finished_p)
12336 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12337 Don't declare.
12338 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12339 * infrun.c (clear_proceed_status_thread)
12340 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12341 (print_stop_event): Update.
12342 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12343 Add constructor.
12344 (step_command_fsm_ops): Remove.
12345 (new_step_command_fsm): Remove.
12346 (step_1): Update.
12347 (step_command_fsm::should_stop): Rename from
12348 step_command_fsm_should_stop.
12349 (step_command_fsm::clean_up): Rename from
12350 step_command_fsm_clean_up.
12351 (step_command_fsm::do_async_reply_reason): Rename from
12352 step_command_fsm_async_reply_reason.
12353 (struct until_next_fsm): Inherit from thread_fsm. Add
12354 constructor.
12355 (until_next_fsm_ops): Remove.
12356 (new_until_next_fsm): Remove.
12357 (until_next_fsm::should_stop): Rename from
12358 until_next_fsm_should_stop.
12359 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12360 (until_next_fsm::do_async_reply_reason): Rename from
12361 until_next_fsm_async_reply_reason.
12362 (struct finish_command_fsm): Inherit from thread_fsm. Add
12363 constructor. Change type of breakpoint.
12364 (finish_command_fsm_ops): Remove.
12365 (new_finish_command_fsm): Remove.
12366 (finish_command_fsm::should_stop): Rename from
12367 finish_command_fsm_should_stop.
12368 (finish_command_fsm::clean_up): Rename from
12369 finish_command_fsm_clean_up.
12370 (finish_command_fsm::return_value): Rename from
12371 finish_command_fsm_return_value.
12372 (finish_command_fsm::do_async_reply_reason): Rename from
12373 finish_command_fsm_async_reply_reason.
12374 (finish_command): Update.
12375 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12376 Add constructor.
12377 (call_thread_fsm_ops): Remove.
12378 (call_thread_fsm::call_thread_fsm): Rename from
12379 new_call_thread_fsm.
12380 (call_thread_fsm::should_stop): Rename from
12381 call_thread_fsm_should_stop.
12382 (call_thread_fsm::should_notify_stop): Rename from
12383 call_thread_fsm_should_notify_stop.
12384 (run_inferior_call, call_function_by_hand_dummy): Update.
12385 * cli/cli-interp.c (should_print_stop_to_console): Update.
12386 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12387 Add constructor. Change type of location_breakpoint,
12388 caller_breakpoint.
12389 (until_break_fsm_ops): Remove.
12390 (new_until_break_fsm): Remove.
12391 (until_break_fsm::should_stop): Rename from
12392 until_break_fsm_should_stop.
12393 (until_break_fsm::clean_up): Rename from
12394 until_break_fsm_clean_up.
12395 (until_break_fsm::do_async_reply_reason): Rename from
12396 until_break_fsm_async_reply_reason.
12397 (until_break_command): Update.
12398 * thread-fsm.c: Remove.
12399 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12400
12401 2019-02-07 Tom Tromey <tom@tromey.com>
12402
12403 * yy-remap.h: Add include guard.
12404 * xtensa-tdep.h: Add include guard.
12405 * xcoffread.h: Rename include guard.
12406 * varobj-iter.h: Add include guard.
12407 * tui/tui.h: Rename include guard.
12408 * tui/tui-winsource.h: Rename include guard.
12409 * tui/tui-wingeneral.h: Rename include guard.
12410 * tui/tui-windata.h: Rename include guard.
12411 * tui/tui-win.h: Rename include guard.
12412 * tui/tui-stack.h: Rename include guard.
12413 * tui/tui-source.h: Rename include guard.
12414 * tui/tui-regs.h: Rename include guard.
12415 * tui/tui-out.h: Rename include guard.
12416 * tui/tui-layout.h: Rename include guard.
12417 * tui/tui-io.h: Rename include guard.
12418 * tui/tui-hooks.h: Rename include guard.
12419 * tui/tui-file.h: Rename include guard.
12420 * tui/tui-disasm.h: Rename include guard.
12421 * tui/tui-data.h: Rename include guard.
12422 * tui/tui-command.h: Rename include guard.
12423 * tic6x-tdep.h: Add include guard.
12424 * target/waitstatus.h: Rename include guard.
12425 * target/wait.h: Rename include guard.
12426 * target/target.h: Rename include guard.
12427 * target/resume.h: Rename include guard.
12428 * target-float.h: Rename include guard.
12429 * stabsread.h: Add include guard.
12430 * rs6000-tdep.h: Add include guard.
12431 * riscv-fbsd-tdep.h: Add include guard.
12432 * regformats/regdef.h: Rename include guard.
12433 * record.h: Rename include guard.
12434 * python/python.h: Rename include guard.
12435 * python/python-internal.h: Rename include guard.
12436 * python/py-stopevent.h: Rename include guard.
12437 * python/py-ref.h: Rename include guard.
12438 * python/py-record.h: Rename include guard.
12439 * python/py-record-full.h: Rename include guard.
12440 * python/py-record-btrace.h: Rename include guard.
12441 * python/py-instruction.h: Rename include guard.
12442 * python/py-events.h: Rename include guard.
12443 * python/py-event.h: Rename include guard.
12444 * procfs.h: Add include guard.
12445 * proc-utils.h: Add include guard.
12446 * p-lang.h: Add include guard.
12447 * or1k-tdep.h: Rename include guard.
12448 * observable.h: Rename include guard.
12449 * nto-tdep.h: Rename include guard.
12450 * nat/x86-linux.h: Rename include guard.
12451 * nat/x86-linux-dregs.h: Rename include guard.
12452 * nat/x86-gcc-cpuid.h: Add include guard.
12453 * nat/x86-dregs.h: Rename include guard.
12454 * nat/x86-cpuid.h: Rename include guard.
12455 * nat/ppc-linux.h: Rename include guard.
12456 * nat/mips-linux-watch.h: Rename include guard.
12457 * nat/linux-waitpid.h: Rename include guard.
12458 * nat/linux-ptrace.h: Rename include guard.
12459 * nat/linux-procfs.h: Rename include guard.
12460 * nat/linux-osdata.h: Rename include guard.
12461 * nat/linux-nat.h: Rename include guard.
12462 * nat/linux-namespaces.h: Rename include guard.
12463 * nat/linux-btrace.h: Rename include guard.
12464 * nat/glibc_thread_db.h: Rename include guard.
12465 * nat/gdb_thread_db.h: Rename include guard.
12466 * nat/gdb_ptrace.h: Rename include guard.
12467 * nat/fork-inferior.h: Rename include guard.
12468 * nat/amd64-linux-siginfo.h: Rename include guard.
12469 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12470 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12471 * nat/aarch64-linux.h: Rename include guard.
12472 * nat/aarch64-linux-hw-point.h: Rename include guard.
12473 * mn10300-tdep.h: Add include guard.
12474 * mips-linux-tdep.h: Add include guard.
12475 * mi/mi-parse.h: Rename include guard.
12476 * mi/mi-out.h: Rename include guard.
12477 * mi/mi-main.h: Rename include guard.
12478 * mi/mi-interp.h: Rename include guard.
12479 * mi/mi-getopt.h: Rename include guard.
12480 * mi/mi-console.h: Rename include guard.
12481 * mi/mi-common.h: Rename include guard.
12482 * mi/mi-cmds.h: Rename include guard.
12483 * mi/mi-cmd-break.h: Rename include guard.
12484 * m2-lang.h: Add include guard.
12485 * location.h: Rename include guard.
12486 * linux-record.h: Rename include guard.
12487 * linux-nat.h: Add include guard.
12488 * linux-fork.h: Add include guard.
12489 * i386-darwin-tdep.h: Rename include guard.
12490 * hppa-linux-offsets.h: Add include guard.
12491 * guile/guile.h: Rename include guard.
12492 * guile/guile-internal.h: Rename include guard.
12493 * gnu-nat.h: Rename include guard.
12494 * gdb-stabs.h: Rename include guard.
12495 * frv-tdep.h: Add include guard.
12496 * f-lang.h: Add include guard.
12497 * event-loop.h: Add include guard.
12498 * darwin-nat.h: Rename include guard.
12499 * cp-abi.h: Rename include guard.
12500 * config/sparc/nm-sol2.h: Rename include guard.
12501 * config/nm-nto.h: Rename include guard.
12502 * config/nm-linux.h: Add include guard.
12503 * config/i386/nm-i386gnu.h: Rename include guard.
12504 * config/djgpp/nl_types.h: Rename include guard.
12505 * config/djgpp/langinfo.h: Rename include guard.
12506 * compile/gcc-cp-plugin.h: Add include guard.
12507 * compile/gcc-c-plugin.h: Add include guard.
12508 * compile/compile.h: Rename include guard.
12509 * compile/compile-object-run.h: Rename include guard.
12510 * compile/compile-object-load.h: Rename include guard.
12511 * compile/compile-internal.h: Rename include guard.
12512 * compile/compile-cplus.h: Rename include guard.
12513 * compile/compile-c.h: Rename include guard.
12514 * common/xml-utils.h: Rename include guard.
12515 * common/x86-xstate.h: Rename include guard.
12516 * common/version.h: Rename include guard.
12517 * common/vec.h: Rename include guard.
12518 * common/tdesc.h: Rename include guard.
12519 * common/selftest.h: Rename include guard.
12520 * common/scoped_restore.h: Rename include guard.
12521 * common/scoped_mmap.h: Rename include guard.
12522 * common/scoped_fd.h: Rename include guard.
12523 * common/safe-iterator.h: Rename include guard.
12524 * common/run-time-clock.h: Rename include guard.
12525 * common/refcounted-object.h: Rename include guard.
12526 * common/queue.h: Rename include guard.
12527 * common/ptid.h: Rename include guard.
12528 * common/print-utils.h: Rename include guard.
12529 * common/preprocessor.h: Rename include guard.
12530 * common/pathstuff.h: Rename include guard.
12531 * common/observable.h: Rename include guard.
12532 * common/netstuff.h: Rename include guard.
12533 * common/job-control.h: Rename include guard.
12534 * common/host-defs.h: Rename include guard.
12535 * common/gdb_wait.h: Rename include guard.
12536 * common/gdb_vecs.h: Rename include guard.
12537 * common/gdb_unlinker.h: Rename include guard.
12538 * common/gdb_unique_ptr.h: Rename include guard.
12539 * common/gdb_tilde_expand.h: Rename include guard.
12540 * common/gdb_sys_time.h: Rename include guard.
12541 * common/gdb_string_view.h: Rename include guard.
12542 * common/gdb_splay_tree.h: Rename include guard.
12543 * common/gdb_setjmp.h: Rename include guard.
12544 * common/gdb_ref_ptr.h: Rename include guard.
12545 * common/gdb_optional.h: Rename include guard.
12546 * common/gdb_locale.h: Rename include guard.
12547 * common/gdb_assert.h: Rename include guard.
12548 * common/filtered-iterator.h: Rename include guard.
12549 * common/filestuff.h: Rename include guard.
12550 * common/fileio.h: Rename include guard.
12551 * common/environ.h: Rename include guard.
12552 * common/common-utils.h: Rename include guard.
12553 * common/common-types.h: Rename include guard.
12554 * common/common-regcache.h: Rename include guard.
12555 * common/common-inferior.h: Rename include guard.
12556 * common/common-gdbthread.h: Rename include guard.
12557 * common/common-exceptions.h: Rename include guard.
12558 * common/common-defs.h: Rename include guard.
12559 * common/common-debug.h: Rename include guard.
12560 * common/cleanups.h: Rename include guard.
12561 * common/buffer.h: Rename include guard.
12562 * common/btrace-common.h: Rename include guard.
12563 * common/break-common.h: Rename include guard.
12564 * cli/cli-utils.h: Rename include guard.
12565 * cli/cli-style.h: Rename include guard.
12566 * cli/cli-setshow.h: Rename include guard.
12567 * cli/cli-script.h: Rename include guard.
12568 * cli/cli-interp.h: Rename include guard.
12569 * cli/cli-decode.h: Rename include guard.
12570 * cli/cli-cmds.h: Rename include guard.
12571 * charset-list.h: Add include guard.
12572 * buildsym-legacy.h: Rename include guard.
12573 * bfin-tdep.h: Add include guard.
12574 * ax.h: Rename include guard.
12575 * arm-linux-tdep.h: Add include guard.
12576 * arm-fbsd-tdep.h: Add include guard.
12577 * arch/xtensa.h: Rename include guard.
12578 * arch/tic6x.h: Add include guard.
12579 * arch/i386.h: Add include guard.
12580 * arch/arm.h: Rename include guard.
12581 * arch/arm-linux.h: Rename include guard.
12582 * arch/arm-get-next-pcs.h: Rename include guard.
12583 * arch/amd64.h: Add include guard.
12584 * arch/aarch64-insn.h: Rename include guard.
12585 * arch-utils.h: Rename include guard.
12586 * annotate.h: Add include guard.
12587 * amd64-darwin-tdep.h: Rename include guard.
12588 * aarch64-linux-tdep.h: Add include guard.
12589 * aarch64-fbsd-tdep.h: Add include guard.
12590 * aarch32-linux-nat.h: Add include guard.
12591
12592 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12593
12594 * macrotab.c (macro_define_internal): New function that
12595 factorizes macro_define_object_internal and macro_define_function
12596 code.
12597 (macro_define_object_internal): Use macro_define_internal.
12598 (macro_define_function): Likewise.
12599
12600 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12601
12602 * macrocmd.c (extract_identifier): Return
12603 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12604 callers.
12605
12606 2019-02-06 John Baldwin <jhb@FreeBSD.org>
12607
12608 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12609
12610 2019-02-05 Tom Tromey <tom@tromey.com>
12611
12612 * target.c (target_stack::unpush): Move assertion earlier.
12613
12614 2019-01-30 Tom Tromey <tom@tromey.com>
12615
12616 PR python/23615:
12617 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12618 (gdbpy_parse_and_eval): Likewise.
12619 * python/python-internal.h (gdbpy_allow_threads): New class.
12620
12621 2019-01-28 John Baldwin <jhb@FreeBSD.org>
12622
12623 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12624 (aarch64_fbsd_fpregmap): Move earlier.
12625 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12626 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12627 instead of individual calls to trad_frame_set_reg_addr.
12628 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12629 earlier.
12630 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12631 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12632 instead of individual calls to trad_frame_set_reg_addr.
12633
12634 2019-01-28 Alan Hayward <alan.hayward@arm.com>
12635
12636 * CONTRIBUTE: Replace contribution list with wiki link.
12637
12638 2019-01-25 Tom Tromey <tom@tromey.com>
12639
12640 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12641
12642 2019-01-25 Tom Tromey <tom@tromey.com>
12643
12644 * xtensa-linux-nat.c: Fix common/ includes.
12645 * xml-support.h: Fix common/ includes.
12646 * xml-support.c: Fix common/ includes.
12647 * x86-linux-nat.c: Fix common/ includes.
12648 * windows-nat.c: Fix common/ includes.
12649 * varobj.h: Fix common/ includes.
12650 * varobj.c: Fix common/ includes.
12651 * value.c: Fix common/ includes.
12652 * valops.c: Fix common/ includes.
12653 * utils.c: Fix common/ includes.
12654 * unittests/xml-utils-selftests.c: Fix common/ includes.
12655 * unittests/utils-selftests.c: Fix common/ includes.
12656 * unittests/unpack-selftests.c: Fix common/ includes.
12657 * unittests/tracepoint-selftests.c: Fix common/ includes.
12658 * unittests/style-selftests.c: Fix common/ includes.
12659 * unittests/string_view-selftests.c: Fix common/ includes.
12660 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12661 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12662 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12663 * unittests/rsp-low-selftests.c: Fix common/ includes.
12664 * unittests/parse-connection-spec-selftests.c: Fix common/
12665 includes.
12666 * unittests/optional-selftests.c: Fix common/ includes.
12667 * unittests/offset-type-selftests.c: Fix common/ includes.
12668 * unittests/observable-selftests.c: Fix common/ includes.
12669 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12670 * unittests/memrange-selftests.c: Fix common/ includes.
12671 * unittests/memory-map-selftests.c: Fix common/ includes.
12672 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12673 * unittests/function-view-selftests.c: Fix common/ includes.
12674 * unittests/environ-selftests.c: Fix common/ includes.
12675 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12676 * unittests/common-utils-selftests.c: Fix common/ includes.
12677 * unittests/cli-utils-selftests.c: Fix common/ includes.
12678 * unittests/array-view-selftests.c: Fix common/ includes.
12679 * ui-file.c: Fix common/ includes.
12680 * tui/tui-io.c: Fix common/ includes.
12681 * tracepoint.h: Fix common/ includes.
12682 * tracepoint.c: Fix common/ includes.
12683 * tracefile-tfile.c: Fix common/ includes.
12684 * top.h: Fix common/ includes.
12685 * top.c: Fix common/ includes.
12686 * thread.c: Fix common/ includes.
12687 * target/waitstatus.h: Fix common/ includes.
12688 * target/waitstatus.c: Fix common/ includes.
12689 * target.h: Fix common/ includes.
12690 * target.c: Fix common/ includes.
12691 * target-memory.c: Fix common/ includes.
12692 * target-descriptions.c: Fix common/ includes.
12693 * symtab.h: Fix common/ includes.
12694 * symfile.c: Fix common/ includes.
12695 * stap-probe.c: Fix common/ includes.
12696 * spu-linux-nat.c: Fix common/ includes.
12697 * sparc-nat.c: Fix common/ includes.
12698 * source.c: Fix common/ includes.
12699 * solib.c: Fix common/ includes.
12700 * solib-target.c: Fix common/ includes.
12701 * ser-unix.c: Fix common/ includes.
12702 * ser-tcp.c: Fix common/ includes.
12703 * ser-pipe.c: Fix common/ includes.
12704 * ser-base.c: Fix common/ includes.
12705 * selftest-arch.c: Fix common/ includes.
12706 * s12z-tdep.c: Fix common/ includes.
12707 * rust-exp.y: Fix common/ includes.
12708 * rs6000-aix-tdep.c: Fix common/ includes.
12709 * riscv-tdep.c: Fix common/ includes.
12710 * remote.c: Fix common/ includes.
12711 * remote-notif.h: Fix common/ includes.
12712 * remote-fileio.h: Fix common/ includes.
12713 * remote-fileio.c: Fix common/ includes.
12714 * regcache.h: Fix common/ includes.
12715 * regcache.c: Fix common/ includes.
12716 * record-btrace.c: Fix common/ includes.
12717 * python/python.c: Fix common/ includes.
12718 * python/py-type.c: Fix common/ includes.
12719 * python/py-inferior.c: Fix common/ includes.
12720 * progspace.h: Fix common/ includes.
12721 * producer.c: Fix common/ includes.
12722 * procfs.c: Fix common/ includes.
12723 * proc-api.c: Fix common/ includes.
12724 * printcmd.c: Fix common/ includes.
12725 * ppc-linux-nat.c: Fix common/ includes.
12726 * parser-defs.h: Fix common/ includes.
12727 * osdata.c: Fix common/ includes.
12728 * obsd-nat.c: Fix common/ includes.
12729 * nat/x86-linux.c: Fix common/ includes.
12730 * nat/x86-linux-dregs.c: Fix common/ includes.
12731 * nat/x86-dregs.h: Fix common/ includes.
12732 * nat/x86-dregs.c: Fix common/ includes.
12733 * nat/ppc-linux.c: Fix common/ includes.
12734 * nat/mips-linux-watch.h: Fix common/ includes.
12735 * nat/mips-linux-watch.c: Fix common/ includes.
12736 * nat/linux-waitpid.c: Fix common/ includes.
12737 * nat/linux-ptrace.h: Fix common/ includes.
12738 * nat/linux-ptrace.c: Fix common/ includes.
12739 * nat/linux-procfs.c: Fix common/ includes.
12740 * nat/linux-personality.c: Fix common/ includes.
12741 * nat/linux-osdata.c: Fix common/ includes.
12742 * nat/linux-namespaces.c: Fix common/ includes.
12743 * nat/linux-btrace.h: Fix common/ includes.
12744 * nat/linux-btrace.c: Fix common/ includes.
12745 * nat/fork-inferior.c: Fix common/ includes.
12746 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12747 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12748 * nat/aarch64-linux.c: Fix common/ includes.
12749 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12750 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12751 * namespace.h: Fix common/ includes.
12752 * mips-linux-tdep.c: Fix common/ includes.
12753 * minsyms.c: Fix common/ includes.
12754 * mi/mi-parse.h: Fix common/ includes.
12755 * mi/mi-main.c: Fix common/ includes.
12756 * mi/mi-cmd-env.c: Fix common/ includes.
12757 * memrange.h: Fix common/ includes.
12758 * memattr.c: Fix common/ includes.
12759 * maint.h: Fix common/ includes.
12760 * maint.c: Fix common/ includes.
12761 * main.c: Fix common/ includes.
12762 * machoread.c: Fix common/ includes.
12763 * location.c: Fix common/ includes.
12764 * linux-thread-db.c: Fix common/ includes.
12765 * linux-nat.c: Fix common/ includes.
12766 * linux-fork.c: Fix common/ includes.
12767 * inline-frame.c: Fix common/ includes.
12768 * infrun.c: Fix common/ includes.
12769 * inflow.c: Fix common/ includes.
12770 * inferior.h: Fix common/ includes.
12771 * inferior.c: Fix common/ includes.
12772 * infcmd.c: Fix common/ includes.
12773 * inf-ptrace.c: Fix common/ includes.
12774 * inf-child.c: Fix common/ includes.
12775 * ia64-linux-nat.c: Fix common/ includes.
12776 * i387-tdep.c: Fix common/ includes.
12777 * i386-tdep.c: Fix common/ includes.
12778 * i386-linux-tdep.c: Fix common/ includes.
12779 * i386-linux-nat.c: Fix common/ includes.
12780 * i386-go32-tdep.c: Fix common/ includes.
12781 * i386-fbsd-tdep.c: Fix common/ includes.
12782 * i386-fbsd-nat.c: Fix common/ includes.
12783 * guile/scm-type.c: Fix common/ includes.
12784 * guile/guile.c: Fix common/ includes.
12785 * go32-nat.c: Fix common/ includes.
12786 * gnu-nat.c: Fix common/ includes.
12787 * gdbthread.h: Fix common/ includes.
12788 * gdbarch-selftests.c: Fix common/ includes.
12789 * gdb_usleep.c: Fix common/ includes.
12790 * gdb_select.h: Fix common/ includes.
12791 * gdb_bfd.c: Fix common/ includes.
12792 * gcore.c: Fix common/ includes.
12793 * fork-child.c: Fix common/ includes.
12794 * findvar.c: Fix common/ includes.
12795 * fbsd-nat.c: Fix common/ includes.
12796 * event-top.c: Fix common/ includes.
12797 * event-loop.c: Fix common/ includes.
12798 * dwarf2read.c: Fix common/ includes.
12799 * dwarf2loc.c: Fix common/ includes.
12800 * dwarf2-frame.c: Fix common/ includes.
12801 * dwarf-index-cache.c: Fix common/ includes.
12802 * dtrace-probe.c: Fix common/ includes.
12803 * disasm-selftests.c: Fix common/ includes.
12804 * defs.h: Fix common/ includes.
12805 * csky-tdep.c: Fix common/ includes.
12806 * cp-valprint.c: Fix common/ includes.
12807 * cp-support.h: Fix common/ includes.
12808 * cp-support.c: Fix common/ includes.
12809 * corelow.c: Fix common/ includes.
12810 * completer.h: Fix common/ includes.
12811 * completer.c: Fix common/ includes.
12812 * compile/compile.c: Fix common/ includes.
12813 * compile/compile-loc2c.c: Fix common/ includes.
12814 * compile/compile-cplus-types.c: Fix common/ includes.
12815 * compile/compile-cplus-symbols.c: Fix common/ includes.
12816 * command.h: Fix common/ includes.
12817 * cli/cli-dump.c: Fix common/ includes.
12818 * cli/cli-cmds.c: Fix common/ includes.
12819 * charset.c: Fix common/ includes.
12820 * build-id.c: Fix common/ includes.
12821 * btrace.h: Fix common/ includes.
12822 * btrace.c: Fix common/ includes.
12823 * breakpoint.h: Fix common/ includes.
12824 * breakpoint.c: Fix common/ includes.
12825 * ax.h:
12826 (enum agent_op): Fix common/ includes.
12827 * ax-general.c (struct aop_map): Fix common/ includes.
12828 * ax-gdb.c: Fix common/ includes.
12829 * auxv.c: Fix common/ includes.
12830 * auto-load.c: Fix common/ includes.
12831 * arm-tdep.c: Fix common/ includes.
12832 * arch/riscv.c: Fix common/ includes.
12833 * arch/ppc-linux-common.c: Fix common/ includes.
12834 * arch/i386.c: Fix common/ includes.
12835 * arch/arm.c: Fix common/ includes.
12836 * arch/arm-linux.c: Fix common/ includes.
12837 * arch/arm-get-next-pcs.c: Fix common/ includes.
12838 * arch/amd64.c: Fix common/ includes.
12839 * arch/aarch64.c: Fix common/ includes.
12840 * arch/aarch64-insn.c: Fix common/ includes.
12841 * arch-utils.c: Fix common/ includes.
12842 * amd64-windows-tdep.c: Fix common/ includes.
12843 * amd64-tdep.c: Fix common/ includes.
12844 * amd64-sol2-tdep.c: Fix common/ includes.
12845 * amd64-obsd-tdep.c: Fix common/ includes.
12846 * amd64-nbsd-tdep.c: Fix common/ includes.
12847 * amd64-linux-tdep.c: Fix common/ includes.
12848 * amd64-linux-nat.c: Fix common/ includes.
12849 * amd64-fbsd-tdep.c: Fix common/ includes.
12850 * amd64-fbsd-nat.c: Fix common/ includes.
12851 * amd64-dicos-tdep.c: Fix common/ includes.
12852 * amd64-darwin-tdep.c: Fix common/ includes.
12853 * agent.c: Fix common/ includes.
12854 * ada-lang.h: Fix common/ includes.
12855 * ada-lang.c: Fix common/ includes.
12856 * aarch64-tdep.c: Fix common/ includes.
12857
12858 2019-01-25 Tom Tromey <tom@tromey.com>
12859
12860 * common/create-version.sh: Use common/version.h.
12861
12862 2019-01-24 Pedro Alves <palves@redhat.com>
12863
12864 * infrun.c (signal_stop, signal_print, signal_program)
12865 (signal_catch, signal_pass): Now arrays instead of pointers.
12866 (update_signals_program_target, do_target_resume)
12867 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12868 * linux-nat.c (linux_nat_target::pass_signals)
12869 (linux_nat_target::create_inferior, linux_nat_target::attach):
12870 Adjust.
12871 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12872 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12873 * procfs.c (procfs_target::pass_signals): Adjust.
12874 * record-full.c (record_full_target::resume): Adjust.
12875 * remote.c (remote_target::pass_signals)
12876 (remote_target::program_signals): Adjust.
12877 * target-debug.h (target_debug_print_signals): Now takes a
12878 gdb::array_view as parameter. Adjust.
12879 * target.h (target_ops) <pass_signals, program_signals>: Replace
12880 pointer and length parameters with gdb::array_view.
12881 (target_pass_signals, target_program_signals): Likewise.
12882 * target-delegates.c: Regenerate.
12883
12884 2019-01-24 Pedro Alves <palves@redhat.com>
12885
12886 * common/forward-scope-exit.h
12887 (forward_scope_exit::forward_scope_exit): Pass arguments to
12888 m_bind_function directly, instead of creating a std::bind and
12889 copying that.
12890
12891 2019-01-24 Alan Hayward <alan.hayward@arm.com>
12892
12893 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12894 for static members.
12895 (pass_in_v_vfp_candidate): Likewise.
12896
12897 2019-01-23 Tom Tromey <tom@tromey.com>
12898 Pedro Alves <palves@redhat.com>
12899
12900 * regcache.c (class regcache_invalidator): Remove.
12901 (regcache::raw_write): Use make_scope_exit.
12902
12903 2019-01-23 Tom Tromey <tom@tromey.com>
12904
12905 * ui-out.h (class ui_out_emit_type): Update comment.
12906
12907 2019-01-23 Tom Tromey <tom@tromey.com>
12908
12909 * infrun.c (fetch_inferior_event): Update comment.
12910
12911 2019-01-23 Tom Tromey <tom@tromey.com>
12912 Pedro Alves <palves@redhat.com>
12913
12914 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12915 parameter.
12916 (fetch_inferior_event): Use SCOPE_EXIT.
12917
12918
12919 2019-01-23 Tom Tromey <tom@tromey.com>
12920 Pedro Alves <palves@redhat.com>
12921
12922 * infrun.c (disable_thread_events): Delete.
12923 (stop_all_threads): Use SCOPE_EXIT.
12924
12925 2019-01-23 Tom Tromey <tom@tromey.com>
12926 Pedro Alves <palves@redhat.com>
12927
12928 * symfile.c: Include forward-scope-exit.h.
12929 (clear_symtab_users_cleanup): Replace forward declaration with
12930 a FORWARD_SCOPE_EXIT.
12931 (syms_from_objfile_1): Use the forward_scope_exit and
12932 gdb::optional instead of cleanup_function.
12933 (reread_symbols): Use the forward_scope_exit instead of
12934 cleanup_function.
12935 (clear_symtab_users_cleanup): Remove function.
12936
12937 2019-01-23 Tom Tromey <tom@tromey.com>
12938 Pedro Alves <palves@redhat.com>
12939
12940 * linux-nat.c: Include scope-exit.h.
12941 (cleanup_target_stop): Remove.
12942 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12943 SCOPE_EXIT.
12944
12945 2019-01-23 Tom Tromey <tom@tromey.com>
12946 Pedro Alves <palves@redhat.com>
12947
12948 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12949 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12950
12951 2019-01-23 Tom Tromey <tom@tromey.com>
12952 Andrew Burgess <andrew.burgess@embecosm.com>
12953 Pedro Alves <palves@redhat.com>
12954
12955 * infrun.c (fetch_inferior_event): Use scope_exit.
12956 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12957 * top.c (execute_command): Use scope_exit.
12958 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12959 * utils.c (do_bpstat_clear_actions_cleanup)
12960 (make_bpstat_clear_actions_cleanup): Remove.
12961
12962 2019-01-23 Tom Tromey <tom@tromey.com>
12963 Pedro Alves <palves@redhat.com>
12964
12965 * infrun.c: Include "common/scope-exit.h"
12966 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12967 (wait_for_inferior): Use SCOPE_EXIT.
12968 (fetch_inferior_event): Use scope_exit.
12969
12970 2019-01-23 Tom Tromey <tom@tromey.com>
12971 Pedro Alves <palves@redhat.com>
12972
12973 * breakpoint.c (create_breakpoint): Remove cleanup.
12974
12975 2019-01-23 Tom Tromey <tom@tromey.com>
12976 Andrew Burgess <andrew.burgess@embecosm.com>
12977 Pedro Alves <palves@redhat.com>
12978
12979 2019-01-23 Pedro Alves <palves@redhat.com>
12980
12981 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12982
12983 2019-01-23 Pedro Alves <palves@redhat.com>
12984 Andrew Burgess <andrew.burgess@embecosm.com>
12985
12986 * gdbthread.h: Include "common/forward-scope-exit.h".
12987 (scoped_finish_thread_state): Redefine custom class in terms of
12988 forward_scope_exit.
12989
12990 2019-01-23 Pedro Alves <palves@redhat.com>
12991 Andrew Burgess <andrew.burgess@embecosm.com>
12992
12993 * common/forward-scope-exit.h: New file.
12994
12995 2019-01-23 Pedro Alves <palves@redhat.com>
12996 Andrew Burgess <andrew.burgess@embecosm.com>
12997 Tom Tromey <tom@tromey.com>
12998
12999 * common/scope-exit.h: New file.
13000
13001 2019-01-23 Pedro Alves <palves@redhat.com>
13002
13003 * common/preprocessor.h (ESC): Rename to ...
13004 (ESC_PARENS): ... this.
13005 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13006 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13007
13008 2019-01-23 Tom Tromey <tom@tromey.com>
13009
13010 * language.h (class scoped_switch_to_sym_language_if_auto):
13011 Initialize m_lang in both cases.
13012
13013 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13014
13015 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13016 with XCNEW.
13017
13018 2019-01-22 Tom Tromey <tom@tromey.com>
13019
13020 * corelow.c: Do not include sys/file.h.
13021
13022 2019-01-22 Tom Tromey <tom@tromey.com>
13023
13024 * tui/tui-wingeneral.h: Include gdb_curses.h.
13025
13026 2019-01-22 Tom Tromey <tom@tromey.com>
13027
13028 * source-cache.h (class source_cache) <get_source_lines,
13029 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13030
13031 2019-01-22 Tom Tromey <tom@tromey.com>
13032
13033 * remote-fileio.h (struct remote_target): Declare.
13034
13035 2019-01-22 Tom Tromey <tom@tromey.com>
13036
13037 * python/py-arch.c: Do not include py-ref.h.
13038 * python/py-bpevent.c: Do not include py-ref.h.
13039 * python/py-cmd.c: Do not include py-ref.h.
13040 * python/py-continueevent.c: Do not include py-ref.h.
13041 * python/py-event.h: Do not include py-ref.h.
13042 * python/py-evtregistry.c: Do not include py-ref.h.
13043 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13044 * python/py-frame.c: Do not include py-ref.h.
13045 * python/py-framefilter.c: Do not include py-ref.h.
13046 * python/py-function.c: Do not include py-ref.h.
13047 * python/py-infevents.c: Do not include py-ref.h.
13048 * python/py-linetable.c: Do not include py-ref.h.
13049 * python/py-objfile.c: Do not include py-ref.h.
13050 * python/py-param.c: Do not include py-ref.h.
13051 * python/py-prettyprint.c: Do not include py-ref.h.
13052 * python/py-progspace.c: Do not include py-ref.h.
13053 * python/py-symbol.c: Do not include py-ref.h.
13054 * python/py-symtab.c: Do not include py-ref.h.
13055 * python/py-type.c: Do not include py-ref.h.
13056 * python/py-unwind.c: Do not include py-ref.h.
13057 * python/py-utils.c: Do not include py-ref.h.
13058 * python/py-value.c: Do not include py-ref.h.
13059 * python/py-varobj.c: Do not include py-ref.h.
13060 * python/py-xmethods.c: Do not include py-ref.h.
13061 * python/python.c: Do not include py-ref.h.
13062 * varobj.c: Do not include py-ref.h.
13063
13064 2019-01-22 Tom Tromey <tom@tromey.com>
13065
13066 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13067 keyword for bcache.
13068
13069 2019-01-22 Tom Tromey <tom@tromey.com>
13070
13071 * compile/compile-cplus-types.c: Remove a comment by #include.
13072
13073 2019-01-22 Tom Tromey <tom@tromey.com>
13074
13075 * compile/gcc-c-plugin.h: Include compile-internal.h.
13076
13077 2019-01-22 Tom Tromey <tom@tromey.com>
13078
13079 * stabsread.c (EXTERN): Do not define.
13080 (symnum, next_symbol_text_func, processing_gcc_compilation)
13081 (within_function, global_sym_chain, global_stabs)
13082 (previous_stab_code, this_object_header_files)
13083 (n_this_object_header_files)
13084 (n_allocated_this_object_header_files): Define.
13085 * stabsread.h (EXTERN): Never define. Use "extern".
13086
13087 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13088
13089 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13090 history_value.
13091
13092 2019-01-21 Tom Tromey <tom@tromey.com>
13093
13094 * ui-out.c: Fix includes.
13095 * tui/tui-source.c: Fix includes.
13096 * target.c: Fix includes.
13097 * remote.c: Fix includes.
13098 * regcache.c: Fix includes.
13099 * python/py-block.c: Fix includes.
13100 * printcmd.c: Fix includes.
13101 * or1k-tdep.c: Fix includes.
13102 * mi/mi-main.c: Fix includes.
13103 * m32r-tdep.c: Fix includes.
13104 * csky-tdep.c: Fix includes.
13105 * compile/compile-cplus-types.c: Fix includes.
13106 * cli/cli-interp.c: Fix includes.
13107
13108 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13109
13110 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13111 for padding.
13112
13113 2019-01-16 Tom Tromey <tom@tromey.com>
13114
13115 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13116 earlier.
13117 (struct objfile) <msymbols_range>: Move from top level.
13118 <msymbols>: New method.
13119 (class objfile_msymbols): Remove.
13120 * symtab.c (default_collect_symbol_completion_matches_break_on):
13121 Update.
13122 * symmisc.c (dump_msymbols): Update.
13123 * stabsread.c (scan_file_globals): Update.
13124 * objc-lang.c (info_selectors_command, info_classes_command)
13125 (find_methods): Update.
13126 * minsyms.c (find_solib_trampoline_target): Update.
13127 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13128 * coffread.c (coff_symfile_read): Update.
13129 * ada-lang.c (ada_lookup_simple_minsym)
13130 (ada_collect_symbol_completion_matches): Update.
13131
13132 2019-01-16 Tom Tromey <tom@tromey.com>
13133
13134 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13135 type. Remove no-argument constructor.
13136 <iterator::operator++>: Simplify.
13137 <begin>: Update.
13138 <end>: Use minimal_symbol_count.
13139
13140 2019-01-16 Tom Tromey <tom@tromey.com>
13141
13142 * objfiles.h (struct objfile) <psymtabs>: New method.
13143 (class objfile_psymtabs): Remove.
13144 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13145 typedef.
13146 <range>: New method.
13147 (require_partial_symbols): Change return type.
13148 * psymtab.c (require_partial_symbols)
13149 (psym_expand_symtabs_matching): Update.
13150 * mdebugread.c (parse_partial_symbols): Update.
13151 * dbxread.c (dbx_end_psymtab): Update.
13152
13153 2019-01-15 Tom Tromey <tom@tromey.com>
13154
13155 * symtab.c (lookup_objfile_from_block)
13156 (lookup_symbol_in_objfile_symtabs)
13157 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13158 (find_line_symtab, info_sources_command)
13159 (default_collect_symbol_completion_matches_break_on)
13160 (make_source_files_completion_list): Update.
13161 * symmisc.c (print_objfile_statistics, dump_objfile)
13162 (maintenance_print_symbols, maintenance_info_symtabs)
13163 (maintenance_check_symtabs, maintenance_info_line_tables):
13164 Update.
13165 * source.c (select_source_symtab)
13166 (forget_cached_source_info_for_objfile): Update.
13167 * objfiles.h (class objfile_compunits): Remove.
13168 (struct objfile) <compunits_range>: New typedef.
13169 (compunits): New method.
13170 * objfiles.c (objfile_relocate1): Update.
13171 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13172 * maint.c (count_symtabs_and_blocks): Update.
13173 * linespec.c (iterate_over_all_matching_symtabs): Update.
13174 * cp-support.c (add_symbol_overload_list_qualified): Update.
13175 * coffread.c (coff_symtab_read): Update.
13176 * ada-lang.c (add_nonlocal_symbols)
13177 (ada_collect_symbol_completion_matches)
13178 (ada_add_global_exceptions): Update.
13179
13180 2019-01-15 Tom Tromey <tom@tromey.com>
13181
13182 * progspace.h (program_space) <objfiles_safe_range>: New
13183 typedef.
13184 <objfiles_safe>: New method.
13185 * objfiles.h (class all_objfiles_safe): Remove.
13186 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13187 * jit.c (jit_inferior_exit_hook): Update.
13188
13189 2019-01-17 Tom Tromey <tom@tromey.com>
13190
13191 * progspace.h (program_space) <objfiles_range>: New typedef.
13192 <objfiles>: New method.
13193 <objfiles_head>: Rename from objfiles.
13194 (object_files): Update.
13195 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13196 * guile/scm-pretty-print.c
13197 (ppscm_find_pretty_printer_from_objfiles): Update.
13198 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13199 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13200 Update.
13201 * python/py-progspace.c (pspy_get_objfiles): Update.
13202 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13203 Update.
13204 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13205 (objfpy_lookup_objfile_by_build_id): Update.
13206 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13207 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13208 Update.
13209 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13210 (expand_symtab_containing_pc, lookup_objfile_from_block)
13211 (lookup_static_symbol, basic_lookup_transparent_type)
13212 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13213 (find_line_symtab, info_sources_command)
13214 (default_collect_symbol_completion_matches_break_on)
13215 (make_source_files_completion_list, find_main_name): Update.
13216 * symmisc.c (print_symbol_bcache_statistics)
13217 (print_objfile_statistics, maintenance_print_symbols)
13218 (maintenance_print_msymbols, maintenance_print_objfiles)
13219 (maintenance_info_symtabs, maintenance_check_symtabs)
13220 (maintenance_expand_symtabs, maintenance_info_line_tables):
13221 Update.
13222 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13223 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13224 (map_overlay_command, unmap_overlay_command)
13225 (simple_overlay_update, expand_symtabs_matching)
13226 (map_symbol_filenames): Update.
13227 * symfile-debug.c (set_debug_symfile): Update.
13228 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13229 Update.
13230 * source.c (select_source_symtab, forget_cached_source_info):
13231 Update.
13232 * solib.c (solib_read_symbols): Update.
13233 * solib-spu.c (append_ocl_sos): Update.
13234 * psymtab.c (maintenance_print_psymbols)
13235 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13236 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13237 * printcmd.c (info_symbol_command): Update.
13238 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13239 Update.
13240 * objfiles.h (class all_objfiles): Remove.
13241 * objfiles.c (have_partial_symbols, have_full_symbols)
13242 (have_minimal_symbols, qsort_cmp, update_section_map)
13243 (shared_objfile_contains_address_p)
13244 (default_iterate_over_objfiles_in_search_order): Update.
13245 * objc-lang.c (info_selectors_command, info_classes_command)
13246 (find_methods): Update.
13247 * minsyms.c (find_solib_trampoline_target): Update.
13248 * maint.c (maintenance_info_sections)
13249 (maintenance_translate_address, count_symtabs_and_blocks):
13250 Update.
13251 * main.c (captured_main_1): Update.
13252 * linux-thread-db.c (try_thread_db_load_from_pdir)
13253 (has_libpthread): Update.
13254 * linespec.c (iterate_over_all_matching_symtabs)
13255 (search_minsyms_for_name): Update.
13256 * jit.c (jit_find_objf_with_entry_addr): Update.
13257 * hppa-tdep.c (find_unwind_entry)
13258 (hppa_lookup_stub_minimal_symbol): Update.
13259 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13260 Update.
13261 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13262 (elf_gnu_ifunc_resolve_by_got): Update.
13263 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13264 * dwarf-index-write.c (save_gdb_index_command): Update.
13265 * cp-support.c (add_symbol_overload_list_qualified): Update.
13266 * breakpoint.c (create_overlay_event_breakpoint)
13267 (create_longjmp_master_breakpoint)
13268 (create_std_terminate_master_breakpoint)
13269 (create_exception_master_breakpoint): Update.
13270 * blockframe.c (find_pc_partial_function): Update.
13271 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13272 (ada_collect_symbol_completion_matches)
13273 (ada_add_global_exceptions): Update.
13274
13275 2019-01-17 Tom Tromey <tom@tromey.com>
13276
13277 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13278 declare VEC.
13279 (solib_target_parse_libraries): Change return type.
13280 (library_list_start_segment, library_list_start_section)
13281 (library_list_end_library, library_list_start_library); Update.
13282 (solib_target_free_library_list): Remove.
13283 (solib_target_parse_libraries): Remove cleanup. Change return
13284 type.
13285 (solib_target_current_sos): Update.
13286
13287 2019-01-17 Tom Tromey <tromey@bapiya>
13288
13289 * valprint.c: Replace "the the" with "the".
13290 * symtab.c: Replace "the the" with "the".
13291 * solib.c: Replace "the the" with "the".
13292 * solib-dsbt.c: Replace "the the" with "the".
13293 * linespec.c: Replace "the the" with "the".
13294 * dwarf2loc.h: Replace "the the" with "the".
13295 * amd64-windows-tdep.c: Replace "the the" with "the".
13296 * aarch64-tdep.c: Replace "the the" with "the".
13297
13298 2019-01-16 Keith Seitz <keiths@redhat.com>
13299
13300 PR gdb/23773
13301 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13302 <builder>: Rename to ..
13303 <m_builder>: ... this and make private.
13304 (dwarf2_cu::get_builder): New method. Change all users of
13305 `builder' to use this method.
13306 (dwarf2_start_symtab): Move to ...
13307 (dwarf2_cu::start_symtab): ... here. Update all callers
13308 (setup_type_unit_groups): Move to ...
13309 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13310 callers.
13311 (dwarf2_cu::reset_builder): New method.
13312 (process_full_compunit, process_full_type_unit): Use
13313 dwarf2_cu::reset_builder.
13314 (follow_die_offset): Record the ancestor CU if it is different
13315 from the followed DIE's CU.
13316 (follow_die_sig_1): Likewise.
13317
13318 2019-01-15 Tom Tromey <tom@tromey.com>
13319
13320 * remote.c (class remote_state) <buf>: Now a char_vector.
13321 <buf_size>: Remove.
13322 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13323 parameter.
13324 (remote_target::getpkt_or_notif_sane_1)
13325 (remote_target::getpkt_sane)
13326 (remote_target::getpkt_or_notif_sane): Likewise.
13327 (class remote_target) <putpkt>: New overload.
13328 (remote_target::read_frame): Change type of "buf_p". Remove
13329 sizeof_p parameter.
13330 (packet_ok): New overload.
13331 (packet_check_result): New overload.
13332 Update all uses.
13333
13334 2019-01-14 Tom Tromey <tom@tromey.com>
13335
13336 * remote-notif.c (handle_notification, remote_notif_ack)
13337 (remote_notif_parse): Make "buf" const.
13338 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13339 const.
13340 (remote_notif_parse, remote_notif_ack, handle_notification):
13341 Likewise.
13342 * remote.c (remote_notif_stop_parse): Make "buf" const.
13343 (remote_target::remote_parse_stop_reply): Make "buf" const.
13344 (remote_notif_stop_ack): Make "buf" const.
13345
13346 2019-01-14 Tom Tromey <tom@tromey.com>
13347
13348 * remote.c (remote_console_output): Make parameter const.
13349
13350 2019-01-14 Tom Tromey <tom@tromey.com>
13351
13352 * target-debug.h (target_debug_print_signals): Constify.
13353 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13354 * procfs.c (procfs_target::pass_signals): Update.
13355 * linux-nat.c (linux_nat_target::pass_signals): Update.
13356 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13357 * target-delegates.c: Rebuild.
13358 * remote.c (remote_target::program_signals): Update.
13359 (remote_target::pass_signals): Update.
13360 * target.c (target_pass_signals): Constify argument.
13361 (target_program_signals): Likewise.
13362 * target.h (struct target_ops) <pass_signals, program_signals>:
13363 Constify argument.
13364 (target_pass_signals, target_program_signals): Constify argument.
13365
13366 2019-01-14 Tom Tromey <tom@tromey.com>
13367
13368 PR tui/28819:
13369 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13370
13371 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13372
13373 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13374 field.
13375 * rs6000-tdep.c: Include reggroups.h.
13376 (IS_V_ALIAS_PSEUDOREG): Define.
13377 (rs6000_register_name): Return names for the "vX" aliases.
13378 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13379 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13380 aliases. Call default_register_reggroup_p for all other
13381 pseudo-registers.
13382 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13383 New functions.
13384 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13385 Handle "vX" aliases.
13386 (v_alias_pseudo_register_collect): New function.
13387 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13388 (rs6000_gdbarch_init): Initialize "vX" aliases as
13389 pseudo-registers. Restore registration of
13390 rs6000_pseudo_register_reggroup_p with
13391 set_tdesc_pseudo_register_reggroup_p.
13392
13393 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13394
13395 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13396 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13397 set_gdbarch_num_pseudo_regs.
13398
13399 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13400
13401 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13402 Remove arg prefixname, add do_set and do_show.
13403 Add member functions set_list and show_list.
13404 * cli/cli-style.c (class cli_style_option): Update accordingly.
13405 (style_set_list): Move to file scope.
13406 (style_show_list): Likewise.
13407 (set_style): Call help_list.
13408 (show_style): Call cmd_show_list.
13409 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13410 Update to use the new macro.
13411
13412 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13413
13414 * ada-lang.c (_initialize_ada_language): Expand the help text
13415 for the "catch exception" command.
13416
13417 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13418
13419 * symtab.c (matching_obj_sections): Initialize obj,
13420 declare it closer to its usage.
13421
13422 2019-01-10 Tom Tromey <tom@tromey.com>
13423
13424 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13425 (basic_inf_threads_range): Remove.
13426 (inf_threads_range, inf_non_exited_threads_range)
13427 (safe_inf_threads_range): Use next_adapter.
13428
13429 2019-01-10 Keith Seitz <keiths@redhat.com>
13430
13431 PR gdb/23712
13432 PR symtab/23010
13433 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13434 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13435
13436 2019-01-10 Keith Seitz <keiths@redhat.com>
13437
13438 PR gdb/23712
13439 PR symtab/23010
13440 * dictionary.c (pending_to_vector): Remove.
13441 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13442 Remove _1 suffix, replacing functions of the same name. Update
13443 all callers.
13444 (dict_create_hashed, dict_create_hashed_expandable)
13445 (dict_create_linear, dict_create_linear_expandable, dict_free)
13446 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13447 Make functions static.
13448
13449 2019-01-10 Keith Seitz <keiths@redhat.com>
13450
13451 PR gdb/23712
13452 PR symtab/23010
13453 * dictionary.h (struct dictionary): Replace declaration with
13454 multidictionary.
13455 (dict_create_hashed, dict_create_hashed_expandable)
13456 (dict_create_linear, dict_create_linear_expandable)
13457 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13458 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13459 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13460 taking multidictionary argument.
13461 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13462 * block.h (struct block) <dict>: Change to multidictionary
13463 and rename `multidict'.
13464 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13465 symmisc.c: Update all dictionary references to multidictionary.
13466
13467 2019-01-10 Keith Seitz <keiths@redhat.com>
13468
13469 PR gdb/23712
13470 PR symtab/23010
13471 * dictionary.c: Include unordered_map.
13472 (pending_to_vector): New function.
13473 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13474 Rewrite the non-"_1" functions to take vector instead
13475 of linked list.
13476 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13477 "new" _1 versions of the same name.
13478 (multidictionary): Define.
13479 (std::hash<enum language): New definition.
13480 (collate_pending_symbols_by_language, mdict_create_hashed)
13481 (mdict_create_hashed_expandable, mdict_create_linear)
13482 (mdict_create_linear_expandable, mdict_free)
13483 (find_language_dictionary, create_new_language_dictionary)
13484 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13485 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13486 (mdict_size, mdict_empty): New functions.
13487 * dictionary.h (mdict_iterator): Define.
13488
13489 2019-01-10 Pedro Alves <palves@redhat.com>
13490
13491 * breakpoint.c (read_uploaded_action)
13492 (create_tracepoint_from_upload): Adjust to use
13493 gdb::unique_xmalloc_ptr.
13494 * ctf.c (ctf_write_uploaded_tp):
13495 (SET_ARRAY_FIELD): Use emplace_back.
13496 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13497 * tracefile-tfile.c (tfile_write_uploaded_tp):
13498 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13499 gdb::unique_xmalloc_ptr.
13500 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13501 at_string, cond_string, cmd_strings>: Replace char pointers
13502 with gdb::unique_xmalloc_ptr.
13503
13504 2019-01-10 Pedro Alves <palves@redhat.com>
13505
13506 * solib-target.c (library_list_start_library): Don't xstrdup name.
13507
13508 2019-01-10 Pedro Alves <palves@redhat.com>
13509
13510 * mdebugread.c (parse_partial_symbols): Use
13511 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13512
13513 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13514
13515 * linux-fork.c (scoped_switch_fork_info)
13516 <~scoped_switch_fork_info>: Fix incorrect variable name.
13517
13518 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13519
13520 * linux-fork.c (scoped_switch_fork_info)
13521 <scoped_switch_fork_info>: Make explicit.
13522 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13523
13524 2019-01-10 Tom Tromey <tom@tromey.com>
13525
13526 * objfiles.h (objfile::reset_psymtabs): Update.
13527 * objfiles.c (objfile::objfile): Update.
13528 * psymtab.h (psymtab_storage::obstack): Update.
13529 (psymtab_storage::m_obstack): Use gdb::optional.
13530 (class psymtab_storage): Update comment. Remove objfile
13531 parameter.
13532 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13533
13534 2019-01-10 Tom Tromey <tom@tromey.com>
13535
13536 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13537 <free_psymtabs>: Now private.
13538 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13539 (allocate_psymtab): Use new method.
13540
13541 2019-01-10 Tom Tromey <tom@tromey.com>
13542
13543 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13544 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13545 * mdebugread.c (parse_partial_symbols): Use
13546 allocate_dependencies.
13547 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13548 allocate_dependencies.
13549 (process_psymtab_comp_unit_reader)
13550 (build_type_psymtab_dependencies): Likewise.
13551 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13552
13553 2019-01-10 Tom Tromey <tom@tromey.com>
13554
13555 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13556 PSYMBOL_SET_LANGUAGE.
13557 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13558
13559 2019-01-10 Tom Tromey <tom@tromey.com>
13560
13561 * psymtab.h (psymtab_storage::obstack): New method.
13562 <m_obstack>: Rename from obstack; now private.
13563 * psymtab.c (psymtab_storage): Update.
13564 * dwarf2read.c (create_addrmap_from_index)
13565 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13566 Update.
13567
13568 2019-01-10 Tom Tromey <tom@tromey.com>
13569
13570 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13571 * objfiles.h (objfile::reset_psymtabs): New method.
13572
13573 2019-01-10 Tom Tromey <tom@tromey.com>
13574
13575 * symmisc.c (print_symbol_bcache_statistics): Update.
13576 (print_objfile_statistics): Update.
13577 * symfile.c (reread_symbols): Update.
13578 * psymtab.h (class psymtab_storage): New.
13579 * psymtab.c (psymtab_storage): New constructor.
13580 (~psymtab_storage): New destructor.
13581 (require_partial_symbols): Update.
13582 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13583 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13584 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13585 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13586 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13587 (start_psymtab_common, end_psymtab_common)
13588 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13589 (allocate_psymtab): Update.
13590 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13591 Update.
13592 (dump_psymtab_addrmap, maintenance_print_psymbols)
13593 (maintenance_check_psymtabs): Update.
13594 (class objfile_psymtabs): Move to objfiles.h.
13595 * psympriv.h (discard_psymtab): Now inline.
13596 (psymtab_discarder::psymtab_discarder): Update.
13597 (psymtab_discarder::~psymtab_discarder): Update.
13598 (ALL_OBJFILE_PSYMTABS): Rewrite.
13599 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13600 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13601 Remove fields.
13602 <partial_symtabs>: New field.
13603 (class objfile_psymtabs): Move from psymtab.h. Update.
13604 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13605 psymbol_cache.
13606 (objfile::~objfile): Don't destroy psymbol_cache.
13607 * mdebugread.c (parse_partial_symbols): Update.
13608 * dwarf2read.c (create_addrmap_from_index)
13609 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13610 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13611 (add_partial_subprogram, dwarf2_ranges_read): Update.
13612 * dwarf-index-write.c (write_address_map)
13613 (write_one_signatured_type, recursively_write_psymbols)
13614 (class debug_names, class debug_names, write_psymtabs_to_index):
13615 Update.
13616
13617 2019-01-10 Tom Tromey <tom@tromey.com>
13618
13619 * symtab.h (SYMBOL_SET_NAMES): Update.
13620 (symbol_set_names): Update.
13621 (MSYMBOL_SET_NAMES): Update.
13622 * symtab.c (symbol_set_names): Change argument to be an
13623 objfile_per_bfd_storage.
13624 * psymtab.c (add_psymbol_to_bcache): Update.
13625 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13626
13627 2019-01-10 Tom Tromey <tom@tromey.com>
13628
13629 * symtab.c (create_demangled_names_hash): Change argument to be an
13630 objfile_per_bfd_storage.
13631 (symbol_set_names): Update.
13632
13633 2019-01-10 Tom Tromey <tom@tromey.com>
13634
13635 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13636 init_psymbol_list.
13637 * psymtab.c (init_psymbol_list): Do nothing if already called.
13638 * psympriv.h (init_psymbol_list): Add comment.
13639 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13640 init_psymbol_list.
13641 * dbxread.c (dbx_symfile_read): Unconditionally call
13642 init_psymbol_list.
13643
13644 2019-01-10 Tom Tromey <tom@tromey.com>
13645
13646 * xcoffread.c (scan_xcoff_symtab): Update.
13647 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13648 "where".
13649 * mdebugread.c (parse_partial_symbols)
13650 (handle_psymbol_enumerators): Update.
13651 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13652 * dbxread.c (read_dbx_symtab): Update.
13653 * psympriv.h (psymbol_placement): New enum.
13654 (add_psymbol_to_list): Update.
13655
13656 2019-01-10 Tom Tromey <tom@tromey.com>
13657
13658 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13659 static_psymbols parameters.
13660 (scan_xcoff_symtab): Update.
13661 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13662 static_psymbols parameters.
13663 * psympriv.h (start_psymtab_common): Update.
13664 * mdebugread.c (parse_partial_symbols): Update.
13665 * dwarf2read.c (create_partial_symtab): Update.
13666 * dbxread.c (read_dbx_symtab): Update.
13667 (start_psymtab): Remove global_psymbols and static_psymbols
13668 parameters.
13669
13670 2019-01-10 Tom Tromey <tom@tromey.com>
13671
13672 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13673 * psymtab.c (allocate_psymtab): Add comment.
13674 * psympriv.h (allocate_psymtab): Add comment.
13675 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13676 initializations.
13677 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13678
13679 2019-01-10 Tom Tromey <tom@tromey.com>
13680
13681 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13682 Don't declare.
13683 * mipsread.c: Include mdebugread.h.
13684 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13685 Declare.
13686 * elfread.c: Include mdebugread.h.
13687
13688 2019-01-09 Tom Tromey <tom@tromey.com>
13689
13690 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13691 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13692 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13693 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13694 (psym_lookup_symbol, psym_find_last_source_symtab)
13695 (psym_forget_cached_source_info, psym_print_stats)
13696 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13697 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13698 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13699 (psym_find_compunit_symtab_by_address)
13700 (maintenance_print_psymbols, maintenance_info_psymtabs)
13701 (maintenance_check_psymtabs): Use ranged for.
13702 * psymtab.h (class objfile_psymtabs): New.
13703 (require_partial_symbols): Return objfile_psymtabs.
13704 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13705
13706 2019-01-09 Tom Tromey <tom@tromey.com>
13707
13708 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13709 (find_pc_mapped_section, list_overlays_command)
13710 (map_overlay_command, unmap_overlay_command)
13711 (simple_overlay_update): Use all_objfiles.
13712 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13713 * printcmd.c (info_symbol_command): Use all_objfiles.
13714 * objfiles.h (ALL_OBJSECTIONS): Remove.
13715 * maint.c (maintenance_translate_address): Use all_objfiles.
13716 * gcore.c (gcore_create_callback): Use all_objfiles.
13717 (objfile_find_memory_regions): Likewise.
13718
13719 2019-01-09 Tom Tromey <tom@tromey.com>
13720
13721 * symtab.c (find_line_symtab, info_sources_command)
13722 (make_source_files_completion_list): Use objfile_compunits.
13723 * source.c (select_source_symtab): Use objfile_compunits.
13724 * objfiles.h (struct objfile): Update comment.
13725 (ALL_OBJFILES): Remove.
13726 (ALL_FILETABS): Remove.
13727 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13728 objfile_compunits.
13729
13730 2019-01-09 Tom Tromey <tom@tromey.com>
13731
13732 * symmisc.c (print_objfile_statistics, dump_objfile)
13733 (maintenance_print_symbols): Use compunit_filetabs.
13734 * source.c (forget_cached_source_info_for_objfile): Use
13735 compunit_filetabs.
13736 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13737 (ALL_FILETABS): Use compunit_filetabs.
13738 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13739 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13740
13741 2019-01-09 Tom Tromey <tom@tromey.com>
13742
13743 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13744 (compunit_filetabs): New.
13745 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13746 compunit_filetabs.
13747 (info_sources_command, make_source_files_completion_list): Remove
13748 declaration.
13749 * symmisc.c (print_objfile_statistics, dump_objfile)
13750 (maintenance_print_symbols): Remove declaration.
13751 (maintenance_info_symtabs): Use compunit_filetabs.
13752 (maintenance_info_line_tables): Likewise.
13753 * source.c (select_source_symtab): Change local variable name.
13754 (forget_cached_source_info_for_objfile): Remove declaration.
13755 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13756 * objfiles.c (objfile_relocate1): Remove declaration.
13757 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13758 declaration.
13759 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13760 * coffread.c (coff_symtab_read): Remove declaration.
13761 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13762 compunit_filetabs.
13763
13764 2019-01-09 Tom Tromey <tom@tromey.com>
13765
13766 * symtab.c (lookup_objfile_from_block)
13767 (find_pc_sect_compunit_symtab, search_symbols)
13768 (default_collect_symbol_completion_matches_break_on): Use
13769 objfile_compunits.
13770 * objfiles.h (ALL_COMPUNITS): Remove.
13771 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13772 * cp-support.c (add_symbol_overload_list_qualified): Use
13773 objfile_compunits.
13774 * ada-lang.c (ada_collect_symbol_completion_matches)
13775 (ada_add_global_exceptions): Use objfile_compunits.
13776
13777 2019-01-09 Tom Tromey <tom@tromey.com>
13778
13779 * source.c (select_source_symtab)
13780 (forget_cached_source_info_for_objfile): Remove declaration.
13781 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13782 declaration.
13783 * maint.c (count_symtabs_and_blocks): Remove declaration.
13784 * cp-support.c (add_symbol_overload_list_qualified): Remove
13785 declaration.
13786 * coffread.c (coff_symtab_read): Remove declaration.
13787 * symtab.c (lookup_symbol_in_objfile_symtabs)
13788 (basic_lookup_transparent_type_1): Use objfile_compunits.
13789 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13790 (info_sources_command, search_symbols)
13791 (default_collect_symbol_completion_matches_break_on)
13792 (make_source_files_completion_list): Remove declaration.
13793 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13794 (ada_collect_symbol_completion_matches)
13795 (ada_add_global_exceptions): Remove declaration.
13796 * linespec.c (iterate_over_all_matching_symtabs): Use
13797 objfile_compunits.
13798 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13799 (class objfile_compunits): New.
13800 (ALL_COMPUNITS): Use objfile_compunits.
13801 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13802 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13803 objfile_compunits.
13804 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13805
13806 2019-01-09 Tom Tromey <tom@tromey.com>
13807
13808 * symtab.c (search_symbols)
13809 (default_collect_symbol_completion_matches_break_on): Use
13810 objfile_msymbols.
13811 * ada-lang.c (ada_lookup_simple_minsym)
13812 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13813 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13814 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13815 objfile_msymbols.
13816 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13817 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13818 * objc-lang.c (find_methods): Use objfile_msymbols.
13819 (info_selectors_command, info_classes_command): Likewise.
13820 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13821 * objfiles.h (class objfile_msymbols): New.
13822 (ALL_OBJFILE_MSYMBOLS): Remove.
13823 (ALL_MSYMBOLS): Remove.
13824
13825 2019-01-09 Tom Tromey <tom@tromey.com>
13826
13827 * common/next-iterator.h (next_adapter): Add Iterator template
13828 parameter.
13829 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13830 (class all_objfiles_safe): New.
13831 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13832 * objfiles.c (put_objfile_before): Update comment.
13833 (add_separate_debug_objfile): Likewise.
13834 (free_all_objfiles): Use all_objfiles_safe.
13835 (objfile_purge_solibs): Likewise.
13836
13837 2019-01-09 Tom Tromey <tom@tromey.com>
13838
13839 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13840 (expand_symtab_containing_pc, lookup_static_symbol)
13841 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13842 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13843 all_objfiles.
13844 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13845 * breakpoint.c (create_overlay_event_breakpoint)
13846 (create_longjmp_master_breakpoint)
13847 (create_std_terminate_master_breakpoint)
13848 (create_exception_master_breakpoint): Use all_objfiles.
13849 * linux-thread-db.c (try_thread_db_load_from_pdir)
13850 (has_libpthread): Use all_objfiles.
13851 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13852 * linespec.c (iterate_over_all_matching_symtabs)
13853 (search_minsyms_for_name): Use all_objfiles.
13854 * maint.c (maintenance_info_sections): Use all_objfiles.
13855 * main.c (captured_main_1): Use all_objfiles.
13856 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13857 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13858 * guile/scm-pretty-print.c
13859 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13860 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13861 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13862 (maintenance_print_msymbols): Use all_objfiles.
13863 * source.c (select_source_symtab): Use all_objfiles.
13864 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13865 * symfile.c (remove_symbol_file_command)
13866 (expand_symtabs_matching, map_symbol_filenames): Use
13867 all_objfiles.
13868 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13869 all_objfiles.
13870 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13871 * objc-lang.c (find_methods): Use all_objfiles.
13872 * objfiles.c (have_partial_symbols, have_full_symbols)
13873 (have_minimal_symbols, qsort_cmp)
13874 (default_iterate_over_objfiles_in_search_order): Use
13875 all_objfiles.
13876 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13877 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13878 (maintenance_check_psymtabs): Use all_objfiles.
13879 (ALL_PSYMTABS): Remove.
13880 * compile/compile-object-run.c (do_module_cleanup): Use
13881 all_objfiles.
13882 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13883 * cp-support.c (add_symbol_overload_list_qualified): Use
13884 all_objfiles.
13885 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13886 Use all_objfiles.
13887 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13888 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13889 all_objfiles.
13890 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13891 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13892 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13893 Uses all_objfiles.
13894 * solib.c (solib_read_symbols): Use all_objfiles
13895
13896 2019-01-09 Tom Tromey <tom@tromey.com>
13897
13898 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13899 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13900 all_objfiles.
13901 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13902 * symmisc.c (print_symbol_bcache_statistics)
13903 (print_objfile_statistics, maintenance_print_objfiles)
13904 (maintenance_info_symtabs, maintenance_check_symtabs)
13905 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13906 all_objfiles.
13907 * source.c (forget_cached_source_info): Use all_objfiles.
13908 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13909 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13910 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13911 * objfiles.c (update_section_map): Use all_objfiles.
13912 (shared_objfile_contains_address_p): Likewise.
13913 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13914 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13915
13916 2019-01-09 Tom Tromey <tom@tromey.com>
13917
13918 * common/next-iterator.h: New file.
13919 * objfiles.h (class all_objfiles): New.
13920 (struct objfile_iterator): New.
13921
13922 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13923
13924 * NEWS: Move the description of the changed "frame", "select-frame",
13925 and "info frame" commands to the Changed commands section.
13926
13927 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13928
13929 * gdbtypes.c (check_stub_method_group): Remove handling of old
13930 mangling schemes.
13931 * linespec.c (find_methods): Likewise.
13932 * stabsread.c (read_member_functions): Likewise.
13933 * valops.c (search_struct_method): Likewise.
13934 (value_struct_elt_for_reference): Likewise.
13935 * NEWS: Mention this change.
13936
13937 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13938
13939 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13940 print_source_lines.
13941 * source.c (print_source_lines_base): Update line number check.
13942 (print_source_lines): New function.
13943 (source_lines_range::source_lines_range): New function.
13944 * source.h (class source_lines_range): New class.
13945 (print_source_lines): New declaration.
13946
13947 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13948
13949 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13950
13951 2019-01-08 Tom Tromey <tom@tromey.com>
13952 Simon Marchi <simon.marchi@ericsson.com>
13953
13954 PR gdb/24060
13955 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13956 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13957 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13958 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13959 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13960 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13961
13962 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13963
13964 * source.c (select_source_symtab): Move header comment to
13965 declaration in source.h.
13966 (forget_cached_source_info_for_objfile): Likewise.
13967 (forget_cached_source_info): Likewise.
13968 (identify_source_line): Likewise.
13969 * source.h (identify_source_line): Move declaration from symtab.h
13970 and add comment from source.c
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 from symtab.h.
13976 * symtab.h (identify_source_line): Move declaration to source.h.
13977 (print_source_lines): Likewise.
13978 (forget_cached_source_info_for_objfile): Likewise.
13979 (forget_cached_source_info): Likewise.
13980 (select_source_symtab): Likewise.
13981 (enum print_source_lines_flag): Move definition to source.h.
13982 * tui/tui-hooks.c: Add 'source.h' include.
13983
13984 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13985
13986 * source.c (print_source_lines_base): Handle requests to print
13987 reverse line number sequences, and guard against empty lines
13988 string.
13989
13990 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13991
13992 * source.c (print_source_lines_base): Fix skip of '\r' if next
13993 character is '\n'.
13994
13995 2019-01-06 Tom Tromey <tom@tromey.com>
13996
13997 * c-exp.y (struct c_parse_state) <macro_original_text,
13998 expansion_obstack>: New member.
13999 (macro_original_text, expansion_obstack): Remove globals.
14000 (scan_macro_expansion, scanning_macro_expansion)
14001 (finished_macro_expansion): Update.
14002 (scan_macro_cleanup): Remove.
14003 (yylex, c_parse): Update.
14004
14005 2019-01-06 Tom Tromey <tom@tromey.com>
14006
14007 * c-exp.y (struct c_parse_state) <strings>: New member.
14008 (operator_stoken): Update.
14009
14010 2019-01-06 Tom Tromey <tom@tromey.com>
14011
14012 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14013 (union type_stack_elt) <typelist_val>: Now a pointer to
14014 std::vector.
14015 (type_stack_cleanup): Don't declare.
14016 (push_typelist): Update.
14017 * parse.c (pop_typelist): Return a std::vector.
14018 (push_typelist): Take a std::vector.
14019 (follow_types): Update. Do not free args.
14020 (type_stack_cleanup): Remove.
14021 * c-exp.y (struct c_parse_state): New.
14022 (cpstate): New global.
14023 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14024 (nonempty_typelist): Update.
14025 (func_mod): Create a new vector.
14026 (c_parse): Create a c_parse_state.
14027 (check_parameter_typelist): Do not delete params.
14028 (function_method): Update. Do not delete type_list.
14029
14030 2019-01-06 Tom Tromey <tom@tromey.com>
14031
14032 PR gdb/28155:
14033 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14034 check_typedef.
14035 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14036 (print_return_value): Likewise.
14037
14038 2019-01-05 Tom Tromey <tom@tromey.com>
14039
14040 * contrib/cleanup_check.py: Remove.
14041 * contrib/gcc-with-excheck: Remove.
14042 * contrib/exsummary.py: Remove.
14043 * contrib/excheck.py: Remove.
14044
14045 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14046
14047 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14048 NULL. Initialize tpprev to NULL instead of assigning it
14049 to NULL on the next statement.
14050 * windows-nat.c (windows_delete_thread): Remove check for
14051 main_thread_id before printing thread exit notifications.
14052 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14053 Remove thread ID check against main_thread_id.
14054 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14055 windows_delete_thread.
14056 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14057
14058 2019-01-04 Tom Tromey <tom@tromey.com>
14059
14060 * compile/compile.c (_initialize_compile): Use upper case for
14061 metasyntactic variables.
14062 * symmisc.c (_initialize_symmisc): Use upper case for
14063 metasyntactic variables.
14064 * psymtab.c (_initialize_psymtab): Use upper case for
14065 metasyntactic variables.
14066 * demangle.c (demangle_command): Use upper case for metasyntactic
14067 variables.
14068 (_initialize_demangler): Likewise.
14069 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14070 variables.
14071
14072 2019-01-03 Tom Tromey <tom@tromey.com>
14073
14074 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14075
14076 2019-01-03 Tom Tromey <tom@tromey.com>
14077
14078 * python/py-symtab.c (salpy_str): Update.
14079 (struct salpy_sal_object) <symtab>: Now a PyObject.
14080 (salpy_dealloc): Update.
14081 (del_objfile_sal): Use gdbpy_ref.
14082
14083 2019-01-03 Tom Tromey <tom@tromey.com>
14084
14085 * python/py-type.c (convert_field): Use new_reference. Return
14086 gdbpy_ref.
14087 (make_fielditem): Return gdbpy_ref.
14088 (typy_fields): Update.
14089 (typy_getitem): Update.
14090 (field_name): Return gdbpy_ref. Use new_reference.
14091 (typy_iterator_iternext): Update.
14092
14093 2019-01-03 Tom Tromey <tom@tromey.com>
14094
14095 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14096
14097 2019-01-03 Tom Tromey <tom@tromey.com>
14098
14099 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14100 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14101 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14102 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14103 (pspy_set_type_printers): Likewise.
14104 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14105 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14106 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14107 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14108 (objfpy_set_type_printers): Likewise.
14109
14110 2019-01-03 Tom Tromey <tom@tromey.com>
14111
14112 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14113 (gdbpy_print_stack): Use gdbpy_err_fetch.
14114 * python/python-internal.h (class gdbpy_err_fetch): New class.
14115 (class gdbpy_enter) <m_error_type, m_error_value,
14116 m_error_traceback>: Remove.
14117 <m_error>: New member.
14118 (gdbpy_exception_to_string): Don't declare.
14119 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14120 * python/py-value.c (convert_value_from_python): Use
14121 gdbpy_err_fetch.
14122 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14123 gdbpy_exception_to_string.
14124 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14125 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14126 gdbpy_err_fetch.
14127
14128 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14129
14130 * linux-nat.c (delete_lwp_cleanup): Delete.
14131 (struct lwp_deleter): New struct.
14132 (lwp_info_up): New typedef.
14133 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14134 lwp_info_up.
14135
14136 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14137
14138 * linux-fork.c (class scoped_switch_fork_info): New class.
14139 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14140
14141 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14142
14143 * valops.c (find_overload_match): Remove use of null_cleanup, and
14144 calls to do_cleanups.
14145
14146 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14147
14148 * compile/compile-cplus-types.c
14149 (compile_cplus_instance::decl_name): Handle changes to
14150 cp_func_name.
14151 * cp-support.c (cp_func_name): Update header comment, update
14152 return type.
14153 * cp-support.h (cp_func_name): Update return type in declaration.
14154 * valops.c (find_overload_match): Move temp_func local to top
14155 level of function and change its type. Use temp_func to hold and
14156 delete temporary string obtained from cp_func_name.
14157
14158 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14159
14160 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14161 gdb::char_vector, remove cleanup, and update uses of `msg`.
14162
14163 2019-01-03 Jim Wilson <jimw@sifive.com>
14164
14165 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14166
14167 2019-01-02 Tom Tromey <tom@tromey.com>
14168
14169 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14170 (tdesc_parse_xml): Remove cleanups.
14171 * target-descriptions.h (make_cleanup_free_target_description):
14172 Don't declare.
14173 (target_desc_deleter): New struct.
14174 (target_desc_up): New typedef.
14175 * target-descriptions.c (target_desc_deleter::operator()): Rename
14176 from free_target_description.
14177 (make_cleanup_free_target_description): Remove.
14178
14179 2019-01-02 Tom Tromey <tom@tromey.com>
14180
14181 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14182 constructor, destructor.
14183 (linespec_parser): Remove typedef.
14184 (~linespec_parser): Rename from linespec_parser_delete.
14185 (linespec_lex_to_end, linespec_complete_label)
14186 (linespec_complete): Update.
14187 (decode_line_full): Remove cleanups.
14188 (decode_line_1): Update.
14189
14190 2019-01-02 Tom Tromey <tom@tromey.com>
14191
14192 * python/python-internal.h (inferior_to_inferior_object): Change
14193 return type.
14194 * python/py-exitedevent.c (create_exited_event_object): Update.
14195 * python/py-inferior.c (inferior_to_inferior_object): Return
14196 gdbpy_ref.
14197 (python_new_inferior, python_inferior_deleted)
14198 (thread_to_thread_object, delete_thread_object)
14199 (build_inferior_list, gdbpy_selected_inferior): Update.
14200 * python/py-infthread.c (create_thread_object): Update. Also fail
14201 if inferior_to_inferior_object fails.
14202
14203 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14204
14205 * inferior.h (class inferior) <displaced_step_state>: New field.
14206 * infrun.h (struct displaced_step_state): Move here from
14207 infrun.c. Initialize fields, add constructor.
14208 <inf>: Remove field.
14209 <reset>: New method.
14210 * infrun.c (struct displaced_step_inferior_state): Move to
14211 infrun.h.
14212 (displaced_step_inferior_states): Remove.
14213 (get_displaced_stepping_state): Adust.
14214 (displaced_step_in_progress_any_inferior): Adjust.
14215 (displaced_step_in_progress_thread): Adjust.
14216 (displaced_step_in_progress): Adjust.
14217 (add_displaced_stepping_state): Remove.
14218 (get_displaced_step_closure_by_addr): Adjust.
14219 (remove_displaced_stepping_state): Remove.
14220 (infrun_inferior_exit): Call displaced_step_state.reset.
14221 (use_displaced_stepping): Don't check for NULL.
14222 (displaced_step_prepare_throw): Call
14223 get_displaced_stepping_state.
14224 (displaced_step_fixup): Don't check for NULL.
14225 (prepare_for_detach): Don't check for NULL.
14226
14227 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14228
14229 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14230 in case of call that did not complete.
14231
14232 2019-01-02 Andrey Utkin <autkin@undo.io>
14233
14234 * symfile.c (find_separate_debug_file): Fix search of debug files for
14235 remote debuggee.
14236
14237 2019-01-02 Tom Tromey <tom@tromey.com>
14238
14239 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14240 indentation.
14241 * python/py-frame.c (frapy_older): Remove cast.
14242 (frapy_newer): Likewise.
14243 * python/py-breakpoint.c (local_setattro): Remove cast.
14244 * python/py-arch.c (archpy_name): Remove local variable.
14245 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14246
14247 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14248
14249 * unittests/basic_string_view/element_access/char/empty.cc:
14250 Fix year range in copyright header.
14251
14252 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14253
14254 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14255 Delete.
14256 <operator==>: Update with for removed field.
14257 <hash>: Likewise.
14258 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14259 <isa_features>: ...this.
14260 <abi_features>: New field.
14261 (riscv_isa_flen): Update comment.
14262 (riscv_abi_xlen): New declaration.
14263 (riscv_abi_flen): New declaration.
14264 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14265 isa_features.
14266 (riscv_abi_xlen): New function.
14267 (riscv_isa_flen): Update to get answer from isa_features.
14268 (riscv_abi_flen): New function.
14269 (riscv_has_fp_abi): Update to get answer from abi_features.
14270 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14271 xlen and flen.
14272 (riscv_call_info) <xlen, flen>: Update comment.
14273 (riscv_call_arg_struct): Remove invalid assertions
14274 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14275 is removed.
14276 (riscv_gdbarch_init): Gather isa features and abi features
14277 separately, ensure both match on the gdbarch when reusing an old
14278 gdbarch. Relax an error check to allow 32-bit abi float to run on
14279 a target with 64-bit float hardware.
14280
14281 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14282
14283 * source.c (search_command_helper): Stop reverse search
14284 when line 1 has been searched.
14285
14286 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14287
14288 * record-full.c (record_full_base_target::close): Rewrite
14289 record_full_core_buf_list free logic.
14290
14291 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14292
14293 * break-catch-syscall.c (print_one_catch_syscall): xfree
14294 the last text.
14295
14296 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14297
14298 * top.c (print_gdb_version): Update Copyright year in version
14299 message.
14300
14301 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14302
14303 Update copyright year range in all GDB files.
14304
14305 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14306
14307 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14308
14309 For older changes see ChangeLog-2018.
14310 \f
14311 Local Variables:
14312 mode: change-log
14313 left-margin: 8
14314 fill-column: 74
14315 version-control: never
14316 coding: utf-8
14317 End:
14318