Fix opcodes includes
[binutils-gdb.git] / gdb / ChangeLog
1 2019-10-23 Tom Tromey <tom@tromey.com>
2
3 * arc-tdep.c: Remove ".." from include.
4 * frv-tdep.c: Remove ".." from include.
5 * lm32-tdep.c: Remove ".." from include.
6 * microblaze-tdep.c: Remove ".." from include.
7 * or1k-tdep.h: Remove ".." from include.
8 * s12z-tdep.c: Remove ".." from include.
9 * Makefile.in (OPCODES_CFLAGS): Add comment.
10 (TOP_CFLAGS): New variable.
11 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
12
13 2019-10-23 Tom Tromey <tom@tromey.com>
14
15 * Makefile.in (READLINE_DIR): Update.
16
17 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18
19 * infcall.c (call_function_by_hand_dummy): Fix the function
20 comment. And extract out a code section into...
21 (reserve_stack_space): ...this new function.
22
23 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
24
25 * infcall.c (value_arg_coerce): Remove an unused parameter.
26 (call_function_by_hand_dummy): Update the call to
27 'value_arg_coerce'.
28
29 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
30
31 * infcall.c (call_function_by_hand_dummy): Refactor.
32
33 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
34
35 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
36
37 2019-10-23 Tom Tromey <tom@tromey.com>
38
39 * configure: Rebuild.
40 * configure.ac: Don't check for sigprocmask.
41 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
42
43 2019-10-23 Tom Tromey <tom@tromey.com>
44
45 * configure: Rebuild.
46 * acinclude.m4: Use m4_include, not sinclude.
47
48 2019-10-23 Tom de Vries <tdevries@suse.de>
49
50 PR breakpoints/24687
51 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
52
53 2019-10-22 Christian Biesinger <cbiesinger@google.com>
54
55 * symtab.c (struct demangled_name_entry) <language>: Change from
56 bitfield to regular variable.
57
58 2019-10-22 Christian Biesinger <cbiesinger@google.com>
59
60 * symtab.c (struct demangled_name_entry): Add a constructor.
61 (free_demangled_name_entry): New function to call the destructor
62 for demangled_name_entry.
63 (create_demangled_names_hash): Pass free_demangled_name_entry to
64 htab_create_alloc.
65 (symbol_set_names): Call placement new for demangled_name_entry.
66 * utils.c: No longer include xxhash.h here, now that fast_hash
67 is inlined in the header.
68 * utils.h: Instead, include it here.
69
70 2019-10-22 Christian Biesinger <cbiesinger@google.com>
71
72 * Makefile.in: Link with libxxhash.
73 * config.in: Regenerate.
74 * configure: Regenerate.
75 * configure.ac: Search for libxxhash.
76 * utils.c (fast_hash): Use xxhash if present.
77
78 2019-10-22 Christian Biesinger <cbiesinger@google.com>
79
80 * utils.h (fast_hash): New function.
81 * symtab.c (hash_demangled_name_entry): Call new function
82 fast_hash.
83
84 2019-10-22 Christian Biesinger <cbiesinger@google.com>
85
86 * symtab.c (struct demangled_name_entry): Change type of mangled
87 to gdb::string_view. Also adds a constructor that takes the
88 mangled name.
89 (hash_demangled_name_entry): Update.
90 (eq_demangled_name_entry): Update.
91 (free_demangled_name_entry): New function to call the destructor
92 now that this is not a POD anymore.
93 (create_demangled_names_hash): Pass free_demangled_name_entry to
94 htab_create_alloc.
95 (symbol_set_names): Update.
96
97 2019-10-21 Ali Tamur <tamu@google.com>
98
99 * dwarf2read.c (dir_index): Change type.
100 (file_name_index): Likewise.
101 (line_header::include_dir_at): Change comment and implementation on
102 whether it is DWARF 5.
103 (line_header::is_valid_file_index): New function.
104 (line_header::file_name_at): Change comment and implementation on
105 whether it is DWARF 5.
106 (line_header::file_names): Change to private field renamed as
107 m_file_names and introduce a new accessor method.
108 (line_header::file_names_size): New method.
109 (line_header::include_dirs): Change to private field and rename as
110 m_include_dirs.
111 (dw2_get_file_names_reader): Define local var at a smaller scope and
112 reflect API change.
113 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
114 (process_structure_scope): Likewise.
115 (line_header::add_include_dir): Change message and reflect renaming.
116 (line_header::add_file_name): Likewise.
117 (read_formatted_entries): Handle DW_FORM_data16.
118 (dwarf_decode_line_header): Fix line header length calculation.
119 (psymtab_include_file_name): Change comment and API.
120 (lnp_state_machine::m_file): Update comment and reflect type change.
121 (lnp_state_machine::record_line): Reflect type change.
122 (dwarf_decode_lines): Reflect API change.
123 (file_file_name): Likewise.
124 (file_full_name): Likewise.
125
126 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
127
128 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
129
130 2019-10-21 Tom Tromey <tom@tromey.com>
131
132 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
133
134 2019-10-21 Tom Tromey <tom@tromey.com>
135
136 * configure.ac (nm.h): Conditionally create nm.h link. Subst
137 NM_H. Use AC_CONFIG_LINKS.
138 * configure: Rebuild.
139 * Makefile.in (NM_H): New variable.
140 (generated_files): Add NM_H. Remove gcore.
141 (nm.h, stamp-nmh): New targets.
142
143 2019-10-20 Tom Tromey <tom@tromey.com>
144
145 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
146 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
147 obsolete comment.
148 (put_objfile_before): Now static.
149
150 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
151
152 * gdbsupport/common-utils.h (startswith): Change return type to
153 bool.
154
155 2019-10-19 Christian Biesinger <cbiesinger@google.com>
156
157 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
158 * breakpoint.c (bp_locations_compare): Rename to...
159 (bp_location_is_less_than): ...this, and change to std::sort semantics.
160 (update_global_location_list): Use std::sort instead of qsort.
161 * buildsym.c (compare_line_numbers): Rename to...
162 (lte_is_less_than): ...this, and change to std::sort semantics.
163 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
164 instead of qsort.
165 * disasm.c (compare_lines): Rename to...
166 (line_is_less_than): ...this, and change to std::sort semantics.
167 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
168 of qsort.
169 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
170 (fde_is_less_than): ...this, and change to std::sort semantics.
171 (dwarf2_build_frame_info): Call std::sort instead of qsort.
172 * mdebugread.c (compare_blocks):
173 (block_is_less_than): ...this, and change to std::sort semantics.
174 (sort_blocks): Call std::sort instead of qsort.
175 * objfiles.c (qsort_cmp): Rename to...
176 (sort_cmp): ...this, and change to std::sort semantics.
177 (update_section_map): Call std::sort instead of qsort.
178 * remote.c (compare_pnums): Remove.
179 (map_regcache_remote_table): Call std::sort instead of qsort.
180 * utils.c (compare_positive_ints): Remove.
181 * utils.h (compare_positive_ints): Remove.
182 * xcoffread.c (compare_lte): Remove.
183 (arrange_linetable): Call std::sort instead of qsort.
184
185 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
186
187 * symfile.c (init_entry_point_info): Fix typo.
188 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
189
190 2019-10-18 Tom de Vries <tdevries@suse.de>
191
192 * aarch64-tdep.c: Fix typos in comments.
193 * ada-lang.c: Same.
194 * ada-tasks.c: Same.
195 * alpha-tdep.c: Same.
196 * alpha-tdep.h: Same.
197 * amd64-nat.c: Same.
198 * amd64-windows-tdep.c: Same.
199 * arc-tdep.c: Same.
200 * arc-tdep.h: Same.
201 * arch-utils.c: Same.
202 * arm-nbsd-tdep.c: Same.
203 * arm-tdep.c: Same.
204 * ax-gdb.c: Same.
205 * blockframe.c: Same.
206 * btrace.c: Same.
207 * c-varobj.c: Same.
208 * coff-pe-read.c: Same.
209 * coffread.c: Same.
210 * cris-tdep.c: Same.
211 * darwin-nat.c: Same.
212 * dbxread.c: Same.
213 * dcache.c: Same.
214 * disasm.c: Same.
215 * dtrace-probe.c: Same.
216 * dwarf-index-write.c: Same.
217 * dwarf2-frame-tailcall.c: Same.
218 * dwarf2-frame.c: Same.
219 * dwarf2read.c: Same.
220 * eval.c: Same.
221 * exceptions.c: Same.
222 * fbsd-tdep.c: Same.
223 * findvar.c: Same.
224 * frame.c: Same.
225 * frv-tdep.c: Same.
226 * gnu-v3-abi.c: Same.
227 * go32-nat.c: Same.
228 * h8300-tdep.c: Same.
229 * hppa-tdep.c: Same.
230 * i386-linux-tdep.c: Same.
231 * i386-tdep.c: Same.
232 * ia64-libunwind-tdep.c: Same.
233 * ia64-tdep.c: Same.
234 * infcmd.c: Same.
235 * infrun.c: Same.
236 * linespec.c: Same.
237 * linux-nat.c: Same.
238 * linux-thread-db.c: Same.
239 * machoread.c: Same.
240 * mdebugread.c: Same.
241 * mep-tdep.c: Same.
242 * mn10300-tdep.c: Same.
243 * namespace.c: Same.
244 * objfiles.c: Same.
245 * opencl-lang.c: Same.
246 * or1k-tdep.c: Same.
247 * osabi.c: Same.
248 * ppc-linux-nat.c: Same.
249 * ppc-linux-tdep.c: Same.
250 * ppc-sysv-tdep.c: Same.
251 * printcmd.c: Same.
252 * procfs.c: Same.
253 * record-btrace.c: Same.
254 * record-full.c: Same.
255 * remote-fileio.c: Same.
256 * remote.c: Same.
257 * rs6000-tdep.c: Same.
258 * s12z-tdep.c: Same.
259 * score-tdep.c: Same.
260 * ser-base.c: Same.
261 * ser-go32.c: Same.
262 * skip.c: Same.
263 * sol-thread.c: Same.
264 * solib-svr4.c: Same.
265 * solib.c: Same.
266 * source.c: Same.
267 * sparc-nat.c: Same.
268 * sparc-sol2-tdep.c: Same.
269 * sparc-tdep.c: Same.
270 * sparc64-tdep.c: Same.
271 * stabsread.c: Same.
272 * stack.c: Same.
273 * symfile.c: Same.
274 * symtab.c: Same.
275 * target-descriptions.c: Same.
276 * target-float.c: Same.
277 * thread.c: Same.
278 * utils.c: Same.
279 * valops.c: Same.
280 * valprint.c: Same.
281 * value.c: Same.
282 * varobj.c: Same.
283 * windows-nat.c: Same.
284 * xcoffread.c: Same.
285 * xstormy16-tdep.c: Same.
286 * xtensa-tdep.c: Same.
287
288 2019-10-17 Tom Tromey <tromey@adacore.com>
289
290 * configure: Rebuild.
291 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
292 in AC_CONFIG_FILES invocation.
293 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
294 new-style config.status invocation.
295
296 2019-10-17 Tom de Vries <tdevries@suse.de>
297
298 * arm-nbsd-nat.c: Fix typos in comments.
299 * arm-tdep.c: Same.
300 * darwin-nat-info.c: Same.
301 * dwarf2read.c: Same.
302 * elfread.c: Same.
303 * event-top.c: Same.
304 * findvar.c: Same.
305 * gdbtypes.c: Same.
306 * hppa-tdep.c: Same.
307 * i386-tdep.c: Same.
308 * jit.c: Same.
309 * main.c: Same.
310 * mdebugread.c: Same.
311 * moxie-tdep.c: Same.
312 * nto-procfs.c: Same.
313 * osabi.c: Same.
314 * ppc-linux-tdep.c: Same.
315 * remote.c: Same.
316 * riscv-tdep.c: Same.
317 * s390-tdep.c: Same.
318 * sh-tdep.c: Same.
319 * sparc-linux-tdep.c: Same.
320 * sparc-nat.c: Same.
321 * stack.c: Same.
322 * target-descriptions.c: Same.
323 * top.c: Same.
324 * varobj.c: Same.
325
326 2019-10-16 Tom Tromey <tom@tromey.com>
327
328 * objfiles.h (struct objfile) <original_name>: Now const.
329
330 2019-10-16 Christian Biesinger <cbiesinger@google.com>
331
332 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
333 pass on to sigsetjmp's second argument.
334 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
335
336 2019-10-16 Keith Seitz <keiths@redhat.com>
337
338 PR gdb/23567
339 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
340 sections whose size is greater than the file size.
341
342 2019-10-16 Jim Wilson <jimw@sifive.com>
343
344 * riscv-tdep.c (riscv_gcc_target_options): New.
345 (riscv_gnu_triplet_regexp): New.
346 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
347 set_gdbarch_gnu_triplet_regexp.
348
349 2019-10-16 Christian Biesinger <cbiesinger@google.com>
350
351 * Makefile.in: Add xml-builtin.h.
352 * features/feature_to_c.sh: Add an include for xml-builtin.h
353 to ensure that the compiler checks that the types match.
354 * xml-builtin.h: New file.
355 * xml-support.c (fetch_xml_builtin): Add missing const.
356 * xml-support.h: Remove declaration of xml_builtins.
357
358 2019-10-16 Tom de Vries <tdevries@suse.de>
359
360 PR tdep/25096
361 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
362 (amd64_classify_aggregate): ... here.
363 (amd64_classify_aggregate_field): Handled fiels of nested structs
364 recursively.
365
366 2019-10-16 Tom de Vries <tdevries@suse.de>
367
368 PR tdep/24104
369 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
370 that handles 'theclass'.
371
372 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
373
374 * linespec.c (decode_digits_ordinary): Update comment.
375 * make-target-delegates: No longer need to handle VEC case.
376 * memrange.c (normalize_mem_ranges): Update comment.
377 * namespace.c (add_using_directive): Update comment.
378 * objc-lang.c (uniquify_strings): Update comment.
379 * ppc-linux-nat.c (struct thread_points): Update comment.
380 * probe.h (find_probes_in_objfile): Update comment.
381 * target.h (enum flash_preserve_mode): Update comment.
382 * varobj.c (varobj_restrict_range): Update comment.
383 * varobj.h (varobj_list_children): Update comment.
384
385 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
386
387 * Makefile.in: Remove references to vec.h and vec.c.
388 * aarch64-tdep.c: No longer include vec.h.
389 * ada-lang.c: Likewise.
390 * ada-lang.h: Likewise.
391 * arm-tdep.c: Likewise.
392 * ax.h: Likewise.
393 * breakpoint.h: Likewise.
394 * charset.c: Likewise.
395 * cp-support.h: Likewise.
396 * dtrace-probe.c: Likewise.
397 * dwarf2read.c: Likewise.
398 * extension.h: Likewise.
399 * gdb_bfd.c: Likewise.
400 * gdbsupport/gdb_vecs.h: Likewise.
401 * gdbsupport/vec.c: Remove.
402 * gdbsupport/vec.h: Remove.
403 * gdbthread.h: Likewise.
404 * guile/scm-type.c: Likewise.
405 * inline-frame.c: Likewise.
406 * machoread.c: Likewise.
407 * memattr.c: Likewise.
408 * memrange.h: Likewise.
409 * namespace.h: Likewise.
410 * nat/linux-btrace.h: Likewise.
411 * osdata.c: Likewise.
412 * parser-defs.h: Likewise.
413 * progspace.h: Likewise.
414 * python/py-type.c: Likewise.
415 * record-btrace.c: Likewise.
416 * rust-exp.y: Likewise.
417 * solib-target.c: Likewise.
418 * stap-probe.c: Likewise.
419 * target-descriptions.c: Likewise.
420 * target-memory.c: Likewise.
421 * target.h: Likewise.
422 * varobj.c: Likewise.
423 * varobj.h: Likewise.
424 * xml-support.h: Likewise.
425
426 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
427
428 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
429 Update for new std::vector based implementation.
430 (process_psymtab_comp_unit_reader): Likewise.
431 (scan_partial_symbols): Likewise.
432 (recursively_compute_inclusions): Likewise.
433 (compute_compunit_symtab_includes): Likewise.
434 (process_imported_unit_die): Likewise.
435 (queue_and_load_dwo_tu): Likewise.
436 (follow_die_sig_1): Likewise.
437 * gdb/dwarf2read.h: Remove DEF_VEC_P.
438 (typedef dwarf2_per_cu_ptr): Remove.
439 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
440 function.
441 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
442 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
443 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
444 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
445 std::vector.
446
447 2019-10-15 Tom Tromey <tromey@adacore.com>
448
449 * windows-nat.c (windows_nat_target::resume): Use %x when logging
450 TID.
451
452 2019-10-15 Tom Tromey <tromey@adacore.com>
453
454 * windows-nat.c (windows_nat_target::fetch_registers)
455 (windows_nat_target::store_registers): Rename "pid" to "tid".
456
457 2019-10-15 Tom Tromey <tromey@adacore.com>
458
459 * gdbarch.h, gdbarch.c: Rebuild.
460 * gdbarch.sh (gcc_target_options): Change return type to
461 std::string.
462 * compile/compile.c (get_args): Update.
463 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
464 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
465 std::string.
466 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
467 std::string.
468 * arch-utils.c (default_gcc_target_options): Return std::string.
469 * arch-utils.h (default_gcc_target_options): Return std::string.
470 * s390-tdep.c (s390_gcc_target_options): Return std::string.
471
472 2019-10-15 Christian Biesinger <cbiesinger@google.com>
473
474 * breakpoint.c (breakpoint_chain): Make static.
475 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
476 of accessing breakpoint_chain.
477
478 2019-10-15 Christian Biesinger <cbiesinger@google.com>
479
480 * breakpoint.c (iterate_over_breakpoints): Change function pointer
481 to a gdb::function_view and return value to bool.
482 * breakpoint.h (iterate_over_breakpoints): Likewise.
483 * dummy-frame.c (pop_dummy_frame_bpt): Update.
484 (pop_dummy_frame): Update.
485 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
486 (gdbscm_breakpoints): Update.
487 * python/py-breakpoint.c (build_bp_list): Update.
488 (gdbpy_breakpoints): Update.
489 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
490 Update.
491 (bpfinishpy_handle_stop): Update.
492 (bpfinishpy_handle_exit): Update.
493 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
494 (svr4_update_solib_event_breakpoints): Update.
495
496 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
497
498 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
499 when unwrapping single-field structs.
500
501 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
502
503 * dwarf2read.c: Remove includes.
504
505 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
506
507 * ui-out.c (ui_out::call_do_message): Silence
508 -Wformat-nonliteral warning.
509
510 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
511
512 * breakpoint.c: Remove some includes: continuations.h, skip.h,
513 mi/mi-main.h, readline/readline.h, readline/history.h. Add
514 include: readline/tilde.h.
515
516 2019-10-12 Christian Biesinger <cbiesinger@google.com>
517
518 * remote.c (remote_target::get_trace_status): Remove declaration of
519 trace_regblock_size.
520
521 2019-10-12 Christian Biesinger <cbiesinger@google.com>
522
523 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
524 (show_user): Remove declaration of cmdlist.
525 * cli/cli-cmds.h (max_user_call_depth): Declare.
526 * cli/cli-script.c (execute_user_command): Remove declaration
527 of max_user_call_depth.
528
529 2019-10-11 Jim Wilson <jimw@sifive.com>
530
531 * gdbsupport/print-utils.h (pulongest): Fix comment.
532 (plongest): Likewise.
533 (phex): Add missing comment, mention leading zeros.
534 (phex_nz): Add mention of no leading zeros to comment.
535
536 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
537 plongest instead of unsigned long long cast.
538
539 2019-10-10 Christian Biesinger <cbiesinger@google.com>
540
541 * main.c (captured_main_1): Include gdbtk.h and remove declarations
542 for external_editor_command and gdbtk_test.
543
544 2019-10-10 Christian Biesinger <cbiesinger@google.com>
545
546 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
547 * varobj.c (varobjdebug): Move comment to...
548 * varobj.h (varobjdebug): ...here, and declare.
549
550 2019-10-09 Tom Tromey <tom@tromey.com>
551
552 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
553 erase_data_content.
554
555 2019-10-09 Tom Tromey <tom@tromey.com>
556
557 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
558 * tui/tui-stack.c (tui_locator_window::rerender): Update.
559 * tui/tui-command.c (tui_cmd_window::resize)
560 (tui_refresh_cmd_win): Update.
561 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
562 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
563 * tui/tui-data.c (~tui_gen_win_info): Remove.
564 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
565 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
566 (tui_redisplay_readline, tui_mld_flush)
567 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
568 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
569 (tui_data_window::erase_data_content)
570 (tui_data_item_window::rerender)
571 (tui_data_item_window::refresh_window): Update.
572 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
573 (box_win, tui_gen_win_info::make_window)
574 (tui_gen_win_info::make_visible): Update.
575 (tui_delete_win): Remove.
576 * tui/tui-winsource.c
577 (tui_source_window_base::do_erase_source_content): Update.
578 (tui_show_source_line, tui_source_window_base::update_tab_width)
579 (tui_source_window_base::update_exec_info): Update.
580 * tui/tui-data.h (struct curses_deleter): New.
581 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
582 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
583
584 2019-10-09 Tom Tromey <tom@tromey.com>
585
586 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
587
588 2019-10-09 Tom Tromey <tom@tromey.com>
589
590 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
591 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
592
593 2019-10-09 Tom Tromey <tom@tromey.com>
594
595 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
596 window height directly.
597 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
598 declare.
599 * tui/tui-layout.c (tui_default_win_height): Remove.
600 (tui_default_win_viewport_height): Remove.
601
602 2019-10-09 Tom Tromey <tom@tromey.com>
603
604 * tui/tui.h: Remove comments.
605
606 2019-10-09 Tom de Vries <tdevries@suse.de>
607
608 * python/lib/gdb/printer/bound_registers.py: Use
609 '^builtin_type_bound128' as regexp argument for
610 add_builtin_pretty_printer.
611
612 2019-10-09 Christian Biesinger <cbiesinger@google.com>
613
614 * guile/guile.c (guile_extension_script_ops): Remove forward
615 declaration and mark as static.
616 (guile_script_ops): Likewise.
617 (extension_language_guile): Move further down in the file so
618 it can reference the definitions for guile_{extension_,}script_ops.
619
620 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
621
622 * s390-tdep.c (390_process_record): Handle new arch13 instructions
623 except SORTL, DFLTCC, and KDSA.
624
625 2019-10-08 Tom Tromey <tromey@adacore.com>
626
627 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
628 (struct safe_symbol_file_add_args): Remove.
629
630 2019-10-08 Tom Tromey <tromey@adacore.com>
631
632 * windows-nat.c: Don't include buildsym-legacy.h.
633
634 2019-10-08 Tom Tromey <tromey@adacore.com>
635
636 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
637
638 2019-10-08 Christian Biesinger <cbiesinger@google.com>
639
640 * gdbtypes.c (overload_debug): Move comment to header.
641 * gdbtypes.h (overload_debug): Declare.
642 * valops.c: Remove declaration of overload_debug, instead
643 include gdbtypes.h.
644
645 2019-10-08 Christian Biesinger <cbiesinger@google.com>
646
647 * language.c (show_language_command): Pass lang_frame_mismatch_warn
648 through _().
649 (lang_frame_mismatch_warn): Make const, mark with N_(), and
650 move comment...
651 * language.h (lang_frame_mismatch_warn): ... here. Also add
652 declaration.
653 * top.c (lang_frame_mismatch_warn): Remove declaration.
654 (check_frame_language_change): Pass lang_frame_mismatch_warn
655 through _().
656
657 2019-10-07 Christian Biesinger <cbiesinger@google.com>
658
659 * c-lang.h (vtbl_ptr_name): Declare.
660 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
661 it from the header.
662 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
663
664 2019-10-07 Christian Biesinger <cbiesinger@google.com>
665
666 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
667 gdb_static_assert.
668
669 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
670
671 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
672 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
673 * ctfread.c: New file.
674 * ctfread.h: New file.
675 * elfread.c: Include ctfread.h.
676 (struct elfinfo text_p): New member ctfsect.
677 (elf_locate_sections): Mark CTF section.
678 (elf_symfile_read): Call elfctf_build_psymtabs.
679 * Makefile.in (LIBCTF): Add.
680 (CLIBS): Use it.
681 (CDEPS): Likewise.
682 (DIST): Add ctfread.c.
683
684 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 * ctfread.c (struct nextfield): Renamed to ...
687 (struct ctf_nextfield): ... this.
688 (struct field_info): Renamed to ...
689 (strut ctf_field_info): ... this.
690 (attach_fields_to_type): Update for renamed structures.
691 (ctf_add_member_cb): Likewise.
692 (ctf_add_enum_member_cb): Likewise.
693 (process_struct_members): Likewise.
694 (process_enum_type): Likewise.
695
696 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
697
698 * tracectf.h: Rename, was ctf.h.
699 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
700 * tracefile.c: Likewise.
701 * tracepoint.c: Remove unused include ctf.h.
702 * mi/mi-main.c: Likewise.
703 * Makefile.in Replace ctf.c with tracectf.c.
704
705 2019-10-06 Joel Brobecker <brobecker@adacore.com>
706
707 * version.in: Change version number to "9.0.50.DATE-git".
708
709 2019-10-03 Tom Tromey <tom@tromey.com>
710
711 PR rust/24976:
712 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
713
714 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
715
716 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
717 cp_search_name_hash.
718 * NEWS: Add entry about nested function support.
719
720 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
721 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
724 for nested static variables when searchin VAR_DOMAIN.
725 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
726 global scope, update comment.
727 (add_partial_subprogram): Call add_partial_subprogram recursively
728 for nested subroutines when processinng Fortran.
729 (load_partial_dies): Process the child entities of a subprogram
730 when processing Fortran.
731 (partial_die_parent_scope): Handle building scope
732 for Fortran nested functions.
733 (process_die): Record that nested functions have a scope.
734 (new_symbol): Always record Fortran subprograms on the global
735 symbol list.
736 (determine_prefix): How to build the prefix for Fortran
737 subprograms.
738
739 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
740
741 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
742 have just sent the thread a SIGSTOP and are waiting for it to
743 arrive.
744
745 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
746
747 * btrace.c (btrace_add_pc): Remove whitespace before the template
748 parameter in 'std::vector <...>'.
749 (parse_xml_btrace_block): Likewise.
750 (btrace_maint_decode_pt): Likewise.
751 (btrace_maint_update_packets): Likewise.
752 (btrace_maint_print_packets): Likewise.
753 * btrace.h (struct btrace_maint_info): Likewise.
754 * dwarf2read.c (struct type_unit_group): Likewise.
755 (build_type_psymtabs_reader): Likewise.
756 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
757 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
758 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
759
760 2019-10-03 Tom de Vries <tdevries@suse.de>
761
762 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
763 the first line of the help text for set/show style metadata.
764
765 2019-10-02 Tom Tromey <tromey@adacore.com>
766
767 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
768 * gdbsupport/common-inferior.c: New file.
769 * infcmd.c (startup_with_shell): Don't define.
770 * nat/fork-inferior.h (startup_with_shell): Don't declare.
771 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
772 * inferior.h (startup_with_shell): Don't declare.
773
774 2019-10-02 Christian Biesinger <cbiesinger@google.com>
775
776 * gdbsupport/gdb_assert.h: Include errors.h.
777 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
778
779 2019-10-02 Tom Tromey <tromey@adacore.com>
780
781 * NEWS: Add $_ada_exception entry.
782 * ada-lang.c (struct ada_catchpoint): Add constructor.
783 <m_kind>: New member.
784 (allocate_location_exception, re_set_exception): Remove
785 "ex" parameter.
786 (should_stop_exception): Compute $_ada_exception.
787 (check_status_exception, print_it_exception)
788 (print_one_exception, print_mention_exception): Remove
789 "ex" parameter.
790 (allocate_location_catch_exception, re_set_catch_exception)
791 (check_status_exception, print_it_catch_exception)
792 (print_one_catch_exception, print_mention_catch_exception)
793 (print_recreate_catch_exception)
794 (allocate_location_catch_exception_unhandled)
795 (re_set_catch_exception_unhandled)
796 (check_status_exception, print_it_catch_exception_unhandled)
797 (print_one_catch_exception_unhandled)
798 (print_mention_catch_exception_unhandled)
799 (print_recreate_catch_exception_unhandled)
800 (allocate_location_catch_assert, re_set_catch_assert)
801 (check_status_assert, print_it_catch_assert)
802 (print_one_catch_assert, print_mention_catch_assert)
803 (print_recreate_catch_assert)
804 (allocate_location_catch_handlers, re_set_catch_handlers)
805 (check_status_handlers, print_it_catch_handlers)
806 (print_one_catch_handlers, print_mention_catch_handlers)
807 (print_recreate_catch_handlers): Remove.
808 (create_ada_exception_catchpoint): Update.
809 (initialize_ada_catchpoint_ops): Update.
810
811 2019-10-02 Tom Tromey <tromey@adacore.com>
812
813 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
814 (create_excep_cond_exprs): Simplify exception string computation.
815 (ada_exception_catchpoint_cond_string): Likewise.
816
817 2019-10-02 Tom Tromey <tromey@adacore.com>
818
819 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
820 * ada-lang.c (lesseq_defined_than): Handle
821 LOC_STATIC.
822 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
823 parameter.
824 (dwarf2_has_info): Likewise.
825 (new_symbol): Set maybe_copied on symbol when
826 appropriate.
827 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
828 parameter.
829 <can_copy>: New member.
830 * elfread.c (record_minimal_symbol): Set maybe_copied
831 on symbol when appropriate.
832 (elf_symfile_read): Update call to dwarf2_has_info.
833 * minsyms.c (lookup_minimal_symbol_linkage): New
834 function.
835 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
836 * symtab.c (get_symbol_address, get_msymbol_address):
837 New functions.
838 * symtab.h (get_symbol_address, get_msymbol_address):
839 Declare.
840 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
841 maybe_copied.
842 (struct symbol, struct minimal_symbol) <maybe_copied>:
843 New member.
844
845 2019-10-02 Tom Tromey <tromey@adacore.com>
846
847 * source.c (struct current_source_location): New.
848 (current_source_key): New global.
849 (current_source_symtab, current_source_line)
850 (current_source_pspace): Remove.
851 (get_source_location): New function.
852 (get_current_source_symtab_and_line)
853 (set_default_source_symtab_and_line)
854 (set_current_source_symtab_and_line)
855 (clear_current_source_symtab_and_line, select_source_symtab)
856 (info_source_command, print_source_lines_base)
857 (info_line_command, search_command_helper, _initialize_source):
858 Update.
859
860 2019-10-02 Tom Tromey <tromey@adacore.com>
861
862 * source.c (select_source_symtab): Don't call
863 decode_line_with_current_source.
864
865 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
866
867 * symtab.c (lookup_global_symbol): Search global block.
868
869 2019-10-02 Tom Tromey <tromey@adacore.com>
870
871 * coffread.c (process_coff_symbol): Update.
872 * dwarf2read.c (var_decode_location, new_symbol): Update.
873 * mdebugread.c (parse_symbol): Update.
874 * objfiles.c (relocate_one_symbol): Update.
875 * stabsread.c (define_symbol, fix_common_block)
876 (scan_file_globals): Update.
877 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
878 (SET_SYMBOL_VALUE_ADDRESS): New macro.
879 * xcoffread.c (process_xcoff_symbol): Update.
880
881 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
882
883 * MAINTAINERS: Update my email address.
884
885 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
886
887 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
888 std::vector.
889 (build_type_psymtabs_reader): Update for std::vector.
890 (build_type_psymtab_dependencies): Likewise.
891 * dwarf2read.h: Remove use of DEF_VEC_P.
892 (typedef sig_type_ptr): Delete.
893
894 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
895
896 * btrace.c (btrace_maint_clear): Update to handle change from VEC
897 to std::vector.
898 (btrace_maint_decode_pt): Likewise, and move allocation of the
899 vector outside of the loop.
900 (btrace_maint_update_packets): Update to handle change from VEC to
901 std::vector.
902 (btrace_maint_print_packets): Likewise.
903 (maint_info_btrace_cmd): Likewise.
904 * btrace.h: Remove use of DEF_VEC_O.
905 (typedef btrace_pt_packet_s): Delete.
906 (struct btrace_maint_info) <packets>: Change fromm VEC to
907 std::vector.
908 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
909
910 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
911
912 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
913 make accesses into the vector constant references.
914 (btrace_add_pc): Update for std::vector.
915 (btrace_stitch_bts): Likewise.
916 (parse_xml_btrace_block): Likewise.
917 (btrace_maint_update_packets): Likewise.
918 (btrace_maint_print_packets): Likewise.
919 (maint_info_btrace_cmd): Likewise.
920 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
921 std::vector.
922 (btrace_data::empty): Likewise.
923 (btrace_data_append): Likewise.
924 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
925 (typedef btrace_block_s): Delete.
926 (struct btrace_block): Add constructor.
927 (struct btrace_data_bts) <blocks>: Change to std::vector.
928 * nat/linux-btrace.c (perf_event_read_bts): Update for
929 std::vector.
930 (linux_read_bts): Likewise.
931
932 2019-10-01 Tom Tromey <tom@tromey.com>
933
934 * cli/cli-logging.c (show_logging_filename): Use styled_string.
935
936 2019-10-01 Tom Tromey <tom@tromey.com>
937
938 * stack.c (print_frame, info_frame_command_core): Use
939 styled_string.
940 * linux-thread-db.c (try_thread_db_load_1)
941 (try_thread_db_load_from_pdir_1): Use styled_string.
942 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
943 (auto_load_section_scripts, info_auto_load_local_gdbinit)
944 (maybe_print_unsupported_script_warning)
945 (maybe_print_script_not_found_warning): Use styled_string.
946 * ada-lang.c (user_select_syms): Use styled_string.
947
948 2019-10-01 Tom Tromey <tom@tromey.com>
949
950 * p-lang.c (pascal_printstr): Use metadata style.
951 * value.c (show_convenience): Use metadata style.
952 * valprint.c (valprint_check_validity, val_print_optimized_out)
953 (val_print_not_saved, val_print_unavailable)
954 (val_print_invalid_address, generic_val_print, val_print)
955 (value_check_printable, val_print_array_elements): Use metadata
956 style.
957 * ui-out.h (class ui_out) <field_fmt>: New overload.
958 <do_field_fmt>: Add style parameter.
959 * ui-out.c (ui_out::field_fmt): New overload.
960 * typeprint.c (type_print_unknown_return_type)
961 (val_print_not_allocated, val_print_not_associated): Use metadata
962 style.
963 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
964 parameter.
965 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
966 * tracepoint.c (tvariables_info_1): Use metadata style.
967 * stack.c (print_frame_arg, print_frame_info, print_frame)
968 (info_frame_command_core): Use metadata style.
969 * skip.c (info_skip_command): Use metadata style.
970 * rust-lang.c (rust_print_enum): Use metadata style.
971 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
972 metadata style.
973 * python/py-framefilter.c (py_print_single_arg): Use metadata
974 style.
975 * printcmd.c (do_one_display, print_variable_and_value): Use
976 metadata style.
977 * p-valprint.c (pascal_val_print)
978 (pascal_object_print_value_fields): Use metadata style.
979 * p-typeprint.c (pascal_type_print_base): Use metadata style.
980 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
981 parameter.
982 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
983 * m2-valprint.c (m2_print_long_set): Use metadata style.
984 * m2-typeprint.c (m2_print_type): Use metadata style.
985 * infcmd.c (print_return_value_1): Use metadata style.
986 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
987 * f-valprint.c (info_common_command_for_block): Use metadata
988 style.
989 * f-typeprint.c (f_type_print_base): Use metadata style.
990 * expprint.c (print_subexp_standard): Use metadata style.
991 * cp-valprint.c (cp_print_value_fields): Use metadata style.
992 * cli/cli-style.h (class cli_style_option): Add constructor.
993 (metadata_style): Declare.
994 * cli/cli-style.c (metadata_style): New global.
995 (_initialize_cli_style): Register metadata style.
996 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
997 parameter.
998 * cli-out.c (cli_ui_out::do_field_fmt): Update.
999 * c-typeprint.c (c_type_print_base_struct_union)
1000 (c_type_print_base_1): Use metadata style.
1001 * breakpoint.c (watchpoint_value_print)
1002 (print_one_breakpoint_location): Use metadata style.
1003 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1004 style.
1005 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1006 style.
1007 * ada-valprint.c (val_print_packed_array_elements, printstr)
1008 (print_field_values, ada_val_print_ref, ada_val_print): Use
1009 metadata style.
1010 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1011 style.
1012 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1013 style.
1014 * ada-lang.c (user_select_syms): Use metadata style.
1015
1016 2019-10-01 Tom Tromey <tom@tromey.com>
1017
1018 * cli/cli-cmds.c (pwd_command): Style output.
1019
1020 2019-10-01 Pedro Alves <palves@redhat.com>
1021 Tom Tromey <tom@tromey.com>
1022
1023 * symtab.c (print_symbol_info): Use %ps.
1024 (print_msymbol_info): Use %ps.
1025 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1026 * printcmd.c (print_variable_and_value): Use %ps.
1027 * macrocmd.c (show_pp_source_pos): Use %ps.
1028 * infrun.c (print_exited_reason): Use ui_out::message.
1029 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1030 (describe_other_breakpoints): Use ui_out::message and new
1031 formats.
1032 (say_where): Use new formats.
1033 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1034 and new formats.
1035
1036 2019-10-01 Pedro Alves <palves@redhat.com>
1037 Tom Tromey <tom@tromey.com>
1038
1039 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1040 (test_gdb_formats): New function.
1041 (run_tests): Call it.
1042 (test_format_specifier): Update.
1043 * utils.h (fputs_filtered): Update comment.
1044 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1045 (fputs_styled_unfiltered): Declare.
1046 * utils.c (fputs_styled_unfiltered): New function.
1047 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1048 (vfprintf_filtered): Update.
1049 (vfprintf_unfiltered, vprintf_filtered): Update.
1050 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1051 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1052 disallow_ui_out_field>: New constants.
1053 (enum class field_kind): New.
1054 (struct base_field_s, struct signed_field_s): New.
1055 (signed_field): New function.
1056 (struct string_field_s): New.
1057 (string_field): New function.
1058 (struct styled_string_s): New.
1059 (styled_string): New function.
1060 (class ui_out) <message>: Add comment.
1061 <vmessage, call_do_message>: New methods.
1062 <do_message>: Add style parameter.
1063 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1064 methods.
1065 (ui_out::message): Rewrite.
1066 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1067 parameter.
1068 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1069 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1070 gdb_extensions parameter.
1071 (class format_piece): Add parameter to constructor.
1072 (n_int_args): New field.
1073 * gdbsupport/format.c (format_pieces::format_pieces): Add
1074 gdb_extensions parameter. Handle '*'.
1075 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1076 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1077 vfprintf_styled_no_gdbfmt.
1078 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1079 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1080 unfiltered output.
1081 * ui-style.h (struct ui_file_style) <ptr>: New method.
1082
1083 2019-10-01 Tom Tromey <tom@tromey.com>
1084
1085 * unittests/format_pieces-selftests.c: Update. Add final format.
1086 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1087 empty literal pieces.
1088
1089 2019-10-01 Tom Tromey <tom@tromey.com>
1090
1091 * ui-out.h (enum class ui_out_style_kind): Remove.
1092 (class ui_out) <field_string, field_stsream, do_field_string>:
1093 Change type of "style".
1094 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1095 (ui_out::field_string): Update.
1096 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1097 of "style".
1098 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1099 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1100 * stack.c (print_frame_arg, print_frame_info, print_frame):
1101 Update.
1102 * source.c (print_source_lines_base): Update.
1103 * solib.c (info_sharedlibrary_command): Update.
1104 * skip.c (info_skip_command): Update.
1105 * record-btrace.c (btrace_call_history_src_line)
1106 (btrace_call_history): Update.
1107 * python/py-framefilter.c (py_print_frame): Update.
1108 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1109 "style".
1110 * mi/mi-out.c (mi_ui_out::do_table_header)
1111 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1112 (mi_ui_out::do_field_string): Update.
1113 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1114 Update.
1115 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1116 "style".
1117 * cli-out.c (cli_ui_out::do_table_header)
1118 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1119 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1120 (cli_ui_out::do_field_fmt): Update.
1121 * breakpoint.c (print_breakpoint_location): Update.
1122 (update_static_tracepoint): Update.
1123
1124 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1125
1126 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1127 conversion of gdb_datadir.
1128 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1129 remove not needed c_str ().
1130
1131 2019-09-30 Ali Tamur <tamur@google.com>
1132
1133 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1134 (dwarf2_string_attr): Likewise.
1135
1136 2019-09-30 Ali Tamur <tamur@google.com>
1137
1138 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1139 (process_full_type_unit): Likewise.
1140 (dump_die_shallow): Likewise.
1141 (cu_debug_loc_section): Likewise.
1142
1143 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1144
1145 * minsyms.c (compare_minimal_symbols): Rename to...
1146 (minimal_symbol_is_less_than): ...this, and adjust to STL
1147 conventions (return bool, take arguments as references)
1148 (minimal_symbol_reader::install): Call std::sort instead
1149 of qsort.
1150
1151 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1152
1153 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1154 hash and why.
1155 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1156 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1157
1158 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1159
1160 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1161 * psympriv.h (add_psymbol_to_list): Move comment here and update
1162 it.
1163
1164 2019-09-29 Tom de Vries <tdevries@suse.de>
1165
1166 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1167 Use $tmpdir/$(basename "$output_file").dwz instead of
1168 "${output_file}.dwz".
1169
1170 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1171
1172 PR gdb/25045
1173 * hppa-linux-nat.c: Include gdbarch.h.
1174
1175 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1176
1177 * blockframe.c (find_pc_partial_function): Change return type to bool.
1178 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1179 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1180 (stub_gnu_ifunc_resolve_name): Likewise.
1181 * symtab.c (compare_filenames_for_search): Likewise.
1182 (compare_glob_filenames_for_search): Likewise.
1183 (matching_obj_sections): Likewise.
1184 (symbol_matches_domain): Likewise.
1185 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1186 (find_line_pc): Change return type to bool.
1187 (find_line_pc_range): Likewise.
1188 (producer_is_realview): Likewise.
1189 * symtab.h (symbol_matches_domain): Likewise.
1190 (find_pc_partial_function): Likewise.
1191 (find_pc_line_pc_range): Likewise.
1192 (in_gnu_ifunc_stub): Likewise.
1193 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1194 (find_line_pc): Likewise.
1195 (find_line_pc_range): Likewise.
1196 (matching_obj_sections): Likewise.
1197 (find_line_symtab): Change out parameter to bool.
1198 (producer_is_realview): Change return type to bool.
1199 (compare_filenames_for_search): Likewise.
1200 (compare_glob_filenames_for_search): Likewise.
1201
1202 2019-09-26 Tom Tromey <tom@tromey.com>
1203
1204 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1205 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1206 * gdb_usleep.h: Remove.
1207 * gdb_usleep.c: Remove.
1208 * utils.c: Don't include gdb_usleep.h.
1209
1210 2019-09-26 Tom Tromey <tromey@adacore.com>
1211
1212 * python/py-type.c (type_to_type_object): Call check_typedef
1213 for stub types.
1214
1215 2019-09-26 Tom Tromey <tom@tromey.com>
1216
1217 * utils.h (initialize_utils): Don't declare.
1218 * top.c (gdb_init): Don't call initialize_utils.
1219 * utils.c (initialize_utils): Remove. Move contents...
1220 (_initialize_utils): ... here.
1221
1222 2019-09-25 Tom Tromey <tom@tromey.com>
1223
1224 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1225 * utils.h (make_hex_string): Don't declare.
1226 * utils.c (make_hex_string): Remove.
1227
1228 2019-09-24 Tom de Vries <tdevries@suse.de>
1229
1230 PR gdb/23815
1231 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1232 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1233
1234 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1235
1236 * NEWS: Mention new simulator port for PRU.
1237
1238 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1239
1240 * ada-exp.y (write_object_remaining): Update.
1241 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1242 and eliminate the static buffer.
1243 (ada_decode_symbol): Update.
1244 (ada_la_decode): Update.
1245 (ada_sniff_from_mangled_name): Update.
1246 (is_valid_name_for_wild_match): Update.
1247 (ada_lookup_name_info::matches): Update and simplify.
1248 (name_matches_regex): Update.
1249 (ada_add_global_exceptions): Update.
1250 * ada-lang.h (ada_decode): Update signature.
1251 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1252 * dwarf-index-write.c (debug_names::insert): Update.
1253
1254 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1255
1256 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1257 formatting.
1258
1259 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1260
1261 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1262 Change "nonzero" to "true" in documentation.
1263
1264 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1265
1266 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1267 (_initialize_darwin_solib): Don't set
1268 darwin_so_ops.lookup_lib_global_symbol.
1269 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1270 set_gdbarch_iterate_over_objfiles_in_search_order.
1271 (elf_lookup_lib_symbol): Rename to...
1272 (svr4_iterate_over_objfiles_in_search_order): this, and update
1273 to iterate semantics.
1274 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1275 * solib.c (solib_global_lookup): Remove.
1276 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1277 (solib_global_lookup): Remove.
1278 * symtab.c (lookup_global_or_static_symbol): Remove call to
1279 solib_global_lookup.
1280
1281 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1282
1283 * NEWS: Move entries about default MI version now being
1284 version 3, and about the GDB/MI fix for multi-location
1285 breakpoints to the "since GDB 8.3" section.
1286
1287 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1288
1289 GDB 8.3.1 released.
1290
1291 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1292
1293 * NEWS: Mention that Cell/B.E. debugging support was removed.
1294 * MAINTAINERS: Remove spu target.
1295
1296 * config/djgpp/fnchange.lst: Remove entries for removed files.
1297
1298 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1299 spu-multiarch.o, and spu-tdep.o.
1300 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1301 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1302 spu-multiarch.c, and spu-tdep.c.
1303 * spu-linux-nat.c: Remove file.
1304 * spu-multiarch.c: Remove file.
1305 * spu-tdep.c: Remove file.
1306 * spu-tdep.h: Remove file.
1307 * solib-spu.c: Remove file.
1308 * solib-spu.h: Remove file.
1309
1310 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1311 * configure.nat (spu-linux): Remove.
1312 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1313 solib-multiarch.o from gdb_target_obs.
1314 (spu*-*-*): Remove.
1315
1316 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1317 feature flag.
1318 (ppc_linux_no_features): Update.
1319 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1320 Cell/B.E. support.
1321 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1322 (tdesc_powerpc_cell64l): Likewise.
1323 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1324 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1325 Cell/B.E. support.
1326 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1327 Do not include "features/rs6000/powerpc-cell32l.c" or
1328 "features/rs6000/powerpc-cell64l.c".
1329 (ppc_linux_spu_section): Remove.
1330 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1331 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1332 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1333 (ppc_linux_spe_context_lookup): Remove.
1334 (ppc_linux_spe_context_inferior_created): Remove.
1335 (ppc_linux_spe_context_solib_loaded): Remove.
1336 (ppc_linux_spe_context_solib_unloaded): Remove.
1337 (ppc_linux_spe_context): Remove.
1338 (struct ppu2spu_cache): Remove.
1339 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1340 (struct ppu2spu_data): Remove.
1341 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1342 ppu2spu_unwind): Remove.
1343 (ppc_linux_init_abi): Remove Cell/B.E. support.
1344 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1345
1346 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1347 (rs6000/powerpc-cell64l-expedite): Likewise
1348 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1349 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1350 rs6000/powerpc-cell64l.xml.
1351 * features/rs6000/powerpc-cell32l.xml: Remove.
1352 * features/rs6000/powerpc-cell64l.xml: Likewise.
1353 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1354 * features/rs6000/powerpc-cell64l.c: Likewise.
1355 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1356 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1357 * regformats/reg-spu.dat: Remove.
1358
1359 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1360 * corelow.c (struct spuid_list): Remove.
1361 (add_to_spuid_list): Remove.
1362 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1363 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1364 (remote_protocol_features): Remove associated entries.
1365 (_initialize_remote): No longer initialize them.
1366 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1367 * linux-nat.c (SPUFS_MAGIC): Remove.
1368 (linux_proc_xfer_spu): Remove.
1369 (spu_enumerate_spu_ids): Remove.
1370 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1371 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1372 (linux_make_corefile_notes): No longer call it.
1373
1374 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1375 (cooked_write_test): Likewise.
1376
1377 2019-09-20 Tom Tromey <tom@tromey.com>
1378
1379 * NEWS: Mention case-sensitivity of TUI commands.
1380 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1381 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1382 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1383
1384 2019-09-20 Tom Tromey <tom@tromey.com>
1385
1386 * tui/tui-source.c (tui_source_window::set_contents): Use
1387 make_unique_xstrdup.
1388 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1389 make_unique_xstrdup.
1390
1391 2019-09-20 Tom Tromey <tom@tromey.com>
1392
1393 * tui/tui-data.c: Remove separator comments.
1394 * tui/tui-layout.c: Remove separator comments.
1395 * tui/tui-win.c: Remove separator comments.
1396 * tui/tui-wingeneral.c: Remove separator comments.
1397
1398 2019-09-20 Tom Tromey <tom@tromey.com>
1399
1400 * tui/tui.h (strcat_to_buf): Don't declare.
1401 * tui/tui.c (strcat_to_buf): Remove.
1402
1403 2019-09-20 Tom Tromey <tom@tromey.com>
1404
1405 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1406 from "fullname".
1407 * tui/tui-source.c (tui_source_window::set_contents)
1408 (tui_source_window::location_matches_p)
1409 (tui_source_window::maybe_update): Update.
1410
1411 2019-09-20 Tom Tromey <tom@tromey.com>
1412
1413 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1414 Update.
1415 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1416 prefix.
1417 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1418 (tui_data_window::line_from_reg_element_no)
1419 (tui_data_window::first_reg_element_no_inline)
1420 (tui_data_window::show_registers)
1421 (tui_data_window::show_register_group)
1422 (tui_data_window::display_registers_from)
1423 (tui_data_window::display_registers_from_line)
1424 (tui_data_window::first_data_item_displayed)
1425 (tui_data_window::delete_data_content_windows)
1426 (tui_data_window::erase_data_content)
1427 (tui_data_window::do_scroll_vertical)
1428 (tui_data_window::refresh_window)
1429 (tui_data_window::check_register_values): Update.
1430
1431 2019-09-20 Tom Tromey <tom@tromey.com>
1432
1433 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1434 (struct tui_locator_window) <full_name, proc_name>: Now
1435 std::string.
1436 * tui/tui-stack.c (tui_locator_window::make_status_line)
1437 (tui_locator_window::set_locator_fullname)
1438 (tui_locator_window::set_locator_info): Update.
1439 * tui/tui-source.c (tui_source_window::set_contents)
1440 (tui_source_window::showing_source_p): Update.
1441
1442 2019-09-20 Tom Tromey <tom@tromey.com>
1443
1444 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1445 Don't call tui_locator_win_info_ptr.
1446
1447 2019-09-20 Tom Tromey <tom@tromey.com>
1448
1449 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1450
1451 2019-09-20 Tom Tromey <tom@tromey.com>
1452
1453 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1454 height for locator.
1455 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1456 * tui/tui-layout.c (show_source_disasm_command, show_data)
1457 (show_source_or_disasm_and_command): Use 1 as height for locator.
1458
1459 2019-09-20 Tom Tromey <tom@tromey.com>
1460
1461 * tui/tui.c (tui_enable): Update.
1462 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1463 Update.
1464 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1465 Update.
1466 * tui/tui-data.c (win_resized): Now bool.
1467 (tui_win_resized): Return bool.
1468 (tui_set_win_resized_to): Accept a bool.
1469
1470 2019-09-20 Tom Tromey <tom@tromey.com>
1471
1472 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1473 Change type of "refresh_values_only".
1474 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1475 type of "refresh_values_only".
1476
1477 2019-09-20 Tom Tromey <tom@tromey.com>
1478
1479 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1480 std::string.
1481 (tui_disassemble): Add "pos" parameter.
1482 (tui_disasm_window::set_contents): Simplify.
1483
1484 2019-09-20 Tom Tromey <tom@tromey.com>
1485
1486 * tui/tui-winsource.h (struct tui_source_window_base)
1487 <show_source_content>: Now private.
1488 * tui/tui-winsource.c
1489 (tui_source_window_base::show_source_content): Don't handle empty
1490 content case.
1491
1492 2019-09-20 Tom Tromey <tom@tromey.com>
1493
1494 * tui/tui-layout.c (show_source_disasm_command)
1495 (show_source_or_disasm_and_command): Don't call
1496 show_source_content.
1497
1498 2019-09-20 Tom Tromey <tom@tromey.com>
1499
1500 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1501 Declare.
1502 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1503 from tui_make_status_line.
1504 (tui_locator_window::rerender): Update.
1505
1506 2019-09-20 Tom Tromey <tom@tromey.com>
1507
1508 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1509 (tui_locator_window::rerender): Update.
1510
1511 2019-09-20 Tom Tromey <tom@tromey.com>
1512
1513 * tui/tui-winsource.h (struct tui_source_window_base)
1514 <~tui_source_window_base>: Don't declare.
1515 <fullname>: Remove.
1516 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1517 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1518 member.
1519 * tui/tui-source.c (tui_source_window::set_contents): Update.
1520 (tui_source_window::location_matches_p)
1521 (tui_source_window::maybe_update): Update.
1522
1523 2019-09-20 Tom Tromey <tom@tromey.com>
1524
1525 * tui/tui-winsource.h (~tui_source_element): Remove.
1526 (tui_source_element): Update.
1527 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1528 * tui/tui-winsource.c (tui_show_source_line): Update.
1529 * tui/tui-source.c (tui_source_window::set_contents): Update.
1530 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1531
1532 2019-09-20 Tom Tromey <tom@tromey.com>
1533
1534 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1535 declare.
1536 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1537 tui_clear_source_windows_detail.
1538 * tui/tui-winsource.h (struct tui_source_window_base)
1539 <clear_detail>: Don't declare.
1540 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1541 Remove.
1542 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1543
1544 2019-09-20 Tom Tromey <tromey@adacore.com>
1545
1546 PR ada/24919:
1547 * block.c (contained_in): Fix final return value.
1548
1549 2019-09-20 Alan Modra <amodra@gmail.com>
1550
1551 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1552 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1553 (read_indirect_string_from_dwz): Use bfd accessor.
1554 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1555 * machoread.c (macho_symfile_read_all_oso): Likewise.
1556 * solib.c (solib_bfd_open): Likewise.
1557
1558 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1559
1560 * eval.c: Move declaration of overload_resolution to...
1561 * value.h: ...here.
1562
1563 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1564
1565 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1566 * arm-linux-tdep.c: Likewise.
1567 * arm-nbsd-nat.c: Likewise.
1568 * arm-tdep.h: Declare arm_apcs_32.
1569 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1570
1571 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1572
1573 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1574 * dwarf2read.h: Declare dwarf_always_disassemble.
1575
1576 2019-09-19 Tom de Vries <tdevries@suse.de>
1577
1578 PR gdb/25009
1579 * source-cache.c (source_cache::ensure): Catch exception thrown during
1580 construction of the highlighter.
1581
1582 2019-09-18 Alan Modra <amodra@gmail.com>
1583
1584 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1585 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1586 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1587 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1588 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1589 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1590 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1591 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1592 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1593 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1594 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1595 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1596 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1597 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1598 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1599 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1600 * mi/mi-interp.c: Update throughout for bfd section macro and
1601 function changes.
1602 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1603 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1604
1605 2019-09-18 Tom Tromey <tom@tromey.com>
1606
1607 * NEWS: Add entry.
1608 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1609 call rl_initialize.
1610 (tui_enable): Do not call rl_initialize.
1611
1612 2019-09-18 Christian Groessler <chris@groessler.org>
1613
1614 * alpha-linux-nat.c: Include gdbarch.h.
1615
1616 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1617
1618 * ui-file.c: Include cli/cli-style.h.
1619 (term_cli_styling): Remove cli_styling declaration.
1620
1621 2019-09-18 Alan Modra <amodra@gmail.com>
1622
1623 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1624 to bfd_asymbol_section.
1625
1626 2019-09-18 Alan Modra <amodra@gmail.com>
1627
1628 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1629 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1630 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1631
1632 2019-09-18 Alan Modra <amodra@gmail.com>
1633
1634 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1635 * spu-linux-nat.c (spu_bfd_open): Likewise.
1636
1637 2019-09-18 Christian Biesinger <cbiesinger@google.com>
1638
1639 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1640 to bool to match definition in dwarf2read.c.
1641
1642 2019-09-17 Christian Biesinger <cbiesinger@google.com>
1643
1644 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1645 (print_signatures): Likewise.
1646 (trust_pad_over_xvs): Likewise.
1647 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1648 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1649 * arm-linux-nat.c (arm_apcs_32): Likewise.
1650 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1651 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1652 * arm-tdep.c (arm_debug): Likewise.
1653 (arm_apcs_32): Likewise.
1654 * auto-load.c (debug_auto_load): Likewise.
1655 (auto_load_gdb_scripts): Likewise.
1656 (global_auto_load): Likewise.
1657 (auto_load_local_gdbinit): Likewise.
1658 (auto_load_local_gdbinit_loaded): Likewise.
1659 * auto-load.h (global_auto_load): Likewise.
1660 (auto_load_local_gdbinit): Likewise.
1661 (auto_load_local_gdbinit_loaded): Likewise.
1662 * breakpoint.c (disconnected_dprintf): Likewise.
1663 (breakpoint_proceeded): Likewise.
1664 (automatic_hardware_breakpoints): Likewise.
1665 (always_inserted_mode): Likewise.
1666 (target_exact_watchpoints): Likewise.
1667 (_initialize_breakpoint): Update.
1668 * breakpoint.h (target_exact_watchpoints): Change to bool.
1669 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1670 * cli/cli-cmds.c (trace_commands): Likewise.
1671 * cli/cli-cmds.h (trace_commands): Likewise.
1672 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1673 to bool*.
1674 * cli/cli-logging.c (logging_overwrite): Change to bool.
1675 (logging_redirect): Likewise.
1676 (debug_redirect): Likewise.
1677 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1678 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1679 to bool.
1680 <boolean_option_def>: Update.
1681 (struct flag_option_def): Change default type of Context to bool
1682 from int.
1683 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1684 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1685 (get_setshow_command_value_string): Likewise.
1686 * cli/cli-style.c (cli_styling): Change to bool.
1687 (source_styling): Likewise.
1688 * cli/cli-style.h (source_styling): Likewise.
1689 (cli_styling): Likewise.
1690 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1691 to bool.
1692 * command.h (var_types): Update comment.
1693 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1694 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1695 bool.
1696 (debug_compile_cplus_scopes): Likewise.
1697 * compile/compile-internal.h (compile_debug): Likewise.
1698 * compile/compile.c (compile_debug): Likewise.
1699 (struct compile_options) <raw>: Likewise.
1700 * cp-support.c (catch_demangler_crashes): Likewise.
1701 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1702 (usr_cmd_cris_dwarf2_cfi): Likewise.
1703 * csky-tdep.c (csky_debug): Likewise.
1704 * darwin-nat.c (enable_mach_exceptions): Likewise.
1705 * dcache.c (dcache_enabled_p): Likewise.
1706 * defs.h (info_verbose): Likewise.
1707 * demangle.c (demangle): Likewise.
1708 (asm_demangle): Likewise.
1709 * dwarf-index-cache.c (debug_index_cache): Likewise.
1710 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1711 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1712 * dwarf2read.c (check_physname): Likewise.
1713 (use_deprecated_index_sections): Likewise.
1714 (dwarf_always_disassemble): Likewise.
1715 * eval.c (overload_resolution): Likewise.
1716 * event-top.c (set_editing_cmd_var): Likewise.
1717 (exec_done_display_p): Likewise.
1718 * event-top.h (set_editing_cmd_var): Likewise.
1719 (exec_done_display_p): Likewise.
1720 * exec.c (write_files): Likewise.
1721 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1722 (debug_fbsd_nat): Likewise.
1723 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1724 Likewise.
1725 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1726 <backtrace_past_entry> Likewise.
1727 * gdb-demangle.h (demangle): Likewise.
1728 (asm_demangle): Likewise.
1729 * gdb_bfd.c (bfd_sharing): Likewise.
1730 * gdbcore.h (write_files): Likewise.
1731 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1732 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1733 * gdbthread.h (print_thread_events): Likewise.
1734 * gdbtypes.c (opaque_type_resolution): Likewise.
1735 (strict_type_checking): Likewise.
1736 * gnu-nat.c (gnu_debug_flag): Likewise.
1737 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1738 * guile/scm-param.c (pascm_variable): Add boolval.
1739 (add_setshow_generic): Update.
1740 (pascm_param_value): Update.
1741 (pascm_set_param_value_x): Update.
1742 * hppa-tdep.c (hppa_debug): Change to bool..
1743 * infcall.c (may_call_functions_p): Likewise.
1744 (coerce_float_to_double_p): Likewise.
1745 (unwind_on_signal_p): Likewise.
1746 (unwind_on_terminating_exception_p): Likewise.
1747 * infcmd.c (startup_with_shell): Likewise.
1748 * inferior.c (print_inferior_events): Likewise.
1749 * inferior.h (startup_with_shell): Likewise.
1750 (print_inferior_events): Likewise.
1751 * infrun.c (step_stop_if_no_debug): Likewise.
1752 (detach_fork): Likewise.
1753 (debug_displaced): Likewise.
1754 (disable_randomization): Likewise.
1755 (non_stop): Likewise.
1756 (non_stop_1): Likewise.
1757 (observer_mode): Likewise.
1758 (observer_mode_1): Likewise.
1759 (set_observer_mode): Update.
1760 (sched_multi): Change to bool.
1761 * infrun.h (debug_displaced): Likewise.
1762 (sched_multi): Likewise.
1763 (step_stop_if_no_debug): Likewise.
1764 (non_stop): Likewise.
1765 (disable_randomization): Likewise.
1766 * linux-tdep.c (use_coredump_filter): Likewise.
1767 (dump_excluded_mappings): Likewise.
1768 * linux-thread-db.c (auto_load_thread_db): Likewise.
1769 (check_thread_db_on_load): Likewise.
1770 * main.c (captured_main_1): Update.
1771 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1772 xx2_opt, boolean_opt>: Change to bool.
1773 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1774 * maint.c (maintenance_profile_p): Likewise.
1775 (per_command_time): Likewise.
1776 (per_command_space): Likewise.
1777 (per_command_symtab): Likewise.
1778 * memattr.c (inaccessible_by_default): Likewise.
1779 * mi/mi-main.c (mi_async): Likewise.
1780 (mi_async_1): Likewise.
1781 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1782 * nat/fork-inferior.h (startup_with_shell): Likewise.
1783 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1784 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1785 * nios2-tdep.c (nios2_debug): Likewise.
1786 * or1k-tdep.c (or1k_debug): Likewise.
1787 * parse.c (parser_debug): Likewise.
1788 * parser-defs.h (parser_debug): Likewise.
1789 * printcmd.c (print_symbol_filename): Likewise.
1790 * proc-api.c (procfs_trace): Likewise.
1791 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1792 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1793 (set_parameter_value): Update.
1794 (add_setshow_generic): Update.
1795 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1796 to bool*.
1797 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1798 int*.
1799 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1800 * record-btrace.c (record_btrace_target::store_registers): Update.
1801 * record-full.c (record_full_memory_query): Change to bool.
1802 (record_full_stop_at_limit): Likewise.
1803 * record-full.h (record_full_memory_query): Likewise.
1804 * remote-notif.c (notif_debug): Likewise.
1805 * remote-notif.h (notif_debug): Likewise.
1806 * remote.c (use_range_stepping): Likewise.
1807 (interrupt_on_connect): Likewise.
1808 (remote_break): Likewise.
1809 * ser-tcp.c (tcp_auto_retry): Likewise.
1810 * ser-unix.c (serial_hwflow): Likewise.
1811 * skip.c (debug_skip): Likewise.
1812 * solib-aix.c (solib_aix_debug): Likewise.
1813 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1814 (spu_auto_flush_cache_p): Likewise.
1815 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1816 Likewise.
1817 (struct info_print_options) <quiet>: Likewise.
1818 * symfile-debug.c (debug_symfile): Likewise.
1819 * symfile.c (auto_solib_add): Likewise.
1820 (separate_debug_file_debug): Likewise.
1821 * symfile.h (auto_solib_add): Likewise.
1822 (separate_debug_file_debug): Likewise.
1823 * symtab.c (basenames_may_differ): Likewise.
1824 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1825 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1826 (struct info_types_options) <quiet>: Likewise.
1827 * symtab.h (demangle): Likewise.
1828 (basenames_may_differ): Likewise.
1829 * target-dcache.c (stack_cache_enabled_1): Likewise.
1830 (code_cache_enabled_1): Likewise.
1831 * target.c (trust_readonly): Likewise.
1832 (may_write_registers): Likewise.
1833 (may_write_memory): Likewise.
1834 (may_insert_breakpoints): Likewise.
1835 (may_insert_tracepoints): Likewise.
1836 (may_insert_fast_tracepoints): Likewise.
1837 (may_stop): Likewise.
1838 (auto_connect_native_target): Likewise.
1839 (target_stop_and_wait): Update.
1840 (target_async_permitted): Change to bool.
1841 (target_async_permitted_1): Likewise.
1842 (may_write_registers_1): Likewise.
1843 (may_write_memory_1): Likewise.
1844 (may_insert_breakpoints_1): Likewise.
1845 (may_insert_tracepoints_1): Likewise.
1846 (may_insert_fast_tracepoints_1): Likewise.
1847 (may_stop_1): Likewise.
1848 * target.h (target_async_permitted): Likewise.
1849 (may_write_registers): Likewise.
1850 (may_write_memory): Likewise.
1851 (may_insert_breakpoints): Likewise.
1852 (may_insert_tracepoints): Likewise.
1853 (may_insert_fast_tracepoints): Likewise.
1854 (may_stop): Likewise.
1855 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1856 (make_thread_apply_all_options_def_group): Change argument from int*
1857 to bool*.
1858 (thread_apply_all_command): Update.
1859 (print_thread_events): Change to bool.
1860 * top.c (confirm): Likewise.
1861 (command_editing_p): Likewise.
1862 (history_expansion_p): Likewise.
1863 (write_history_p): Likewise.
1864 (info_verbose): Likewise.
1865 * top.h (confirm): Likewise.
1866 (history_expansion_p): Likewise.
1867 * tracepoint.c (disconnected_tracing): Likewise.
1868 (circular_trace_buffer): Likewise.
1869 * typeprint.c (print_methods): Likewise.
1870 (print_typedefs): Likewise.
1871 * utils.c (debug_timestamp): Likewise.
1872 (sevenbit_strings): Likewise.
1873 (pagination_enabled): Likewise.
1874 * utils.h (sevenbit_strings): Likewise.
1875 (pagination_enabled): Likewise.
1876 * valops.c (overload_resolution): Likewise.
1877 * valprint.h (struct value_print_options) <prettyformat_arrays,
1878 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1879 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1880 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1881 Likewise.
1882 * windows-nat.c (new_console): Likewise.
1883 (cygwin_exceptions): Likewise.
1884 (new_group): Likewise.
1885 (debug_exec): Likewise.
1886 (debug_events): Likewise.
1887 (debug_memory): Likewise.
1888 (debug_exceptions): Likewise.
1889 (useshell): Likewise.
1890 * windows-tdep.c (maint_display_all_tib): Likewise.
1891 * xml-support.c (debug_xml): Likewise.
1892
1893 2019-09-17 Mike Gulick <mgulick@mathworks.com>
1894
1895 * source.c (prepare_path_for_appending): New function.
1896 (openp): Make use of new function.
1897 (find_and_open_source): Search for the compilation directory and
1898 source file as a relative path beneath the directory search path.
1899
1900 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1901
1902 * source-cache.c (source_cache::get_line_charpos): Catch
1903 exceptions and return false, this matches the behaviour documented
1904 in the header file.
1905
1906 2019-09-17 Joel Brobecker <brobecker@adacore.com>
1907
1908 * ada-tasks.c (info_task): Remove quoting of the task's name.
1909
1910 2019-09-16 Christian Biesinger <cbiesinger@google.com>
1911
1912 * symfile.c (auto_solib_add): Replace comment with a reference
1913 to the header file.
1914
1915 2019-09-14 Christian Biesinger <cbiesinger@google.com>
1916
1917 * NEWS: Mention that gdb can now be compiled with Python 3
1918 on Windows.
1919
1920 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1921
1922 * maint.c (maint_print_section_data::maint_print_section_data):
1923 Force use of 'float log10 (float)' by casting the argument to
1924 float.
1925
1926 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1927
1928 * maint.c: Add 'cmath' include.
1929 (struct maint_print_section_data): New structure.
1930 (print_section_index): New function.
1931 (print_bfd_section_info): Add header comment, small whitespace
1932 cleanup, and update to call new print_section_index function.
1933 (print_objfile_section_info): Likewise.
1934 (maint_obj_section_from_bfd_section): New function.
1935 (print_bfd_section_info_maybe_relocated): New function.
1936 (maintenance_info_sections): Add header comment, always use
1937 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1938
1939 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1940
1941 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1942 inner scope, add check that the objfile has psymtabs before
1943 checking psymtabs_addrmap.
1944 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1945
1946 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1947
1948 * NEWS: Announce that Ada task names are now shown at more places,
1949 and between quotes (except in info task output).
1950 * gdb/ada-tasks.c (task_to_str): New function.
1951 (display_current_task_id): Call task_to_str.
1952 (task_command_1): Likewise.
1953 (print_ada_task_info): In non-mi mode, Properly align headers and data
1954 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1955
1956 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1957
1958 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1959 prstatus.pr_lwp.pr_info instead of making it up.
1960
1961 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1962
1963 * auto-load.c (auto_load_expand_dir_vars): Update.
1964 * defs.h (gdb_datadir): Change to std::string.
1965 (python_libdir): Likewise.
1966 (relocate_gdb_directory): Change return type to std::string.
1967 * guile/guile.c (gdbscm_data_directory): Update.
1968 (initialize_scheme_side): Update.
1969 * jit.c (jit_reader_dir): Change to std::string.
1970 (jit_reader_load_command): Update.
1971 * main.c (gdb_datadir): Change to std::string.
1972 (python_libdir): Likewise.
1973 (set_gdb_data_directory): Update.
1974 (relocate_path): Change to return std::string.
1975 (relocate_gdb_directory): Change to return std::string.
1976 (relocate_gdbinit_path_maybe_in_datadir): Update.
1977 (captured_main_1): Update.
1978 * python/python.c (do_start_initialization): Update.
1979 * top.c (show_gdb_datadir): Update.
1980 * xml-syscall.c (xml_init_syscalls_info): Update.
1981 (init_syscalls_info): Update.
1982
1983 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1984
1985 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1986 out of get_init_files.
1987 (get_init_files): Update.
1988
1989 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1990
1991 * main.c (get_init_files): Change to use std::string.
1992 (captured_main_1): Update.
1993 (print_gdb_help): Update.
1994
1995 2019-09-11 Ali Tamur <tamur@google.com>
1996
1997 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1998 implementation.
1999
2000 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2001
2002 * dbxread.c (read_dbx_symtab): Update.
2003 * dwarf2read.c (load_partial_dies): Update.
2004 * mdebugread.c (parse_partial_symbols): Update.
2005 (handle_psymbol_enumerators): Update.
2006 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2007 * psymtab.c (add_psymbol_to_bcache): Likewise.
2008 (add_psymbol_to_list): Likewise.
2009 * symtab.c (symbol_set_names): Likewise.
2010 * symtab.h (symbol_set_names): Likewise.
2011 * xcoffread.c (scan_xcoff_symtab): Update.
2012
2013 2019-09-11 Tom Tromey <tom@tromey.com>
2014
2015 * symfile-mem.c (symbol_file_add_from_memory): Use
2016 bfd_set_filename.
2017 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2018 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2019
2020 2019-09-10 Tom Tromey <tromey@adacore.com>
2021
2022 * dwarf-index-write.c (write_psymbols): Extend error message.
2023 (debug_names::insert): Add Ada code.
2024 (debug_names::write_psymbols): Remove Ada check.
2025 (debug_names) <m_string_obstack>: New member.
2026 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2027 (gdb_index_symbol_name_matcher::matches): Remove.
2028 (mapped_index_base::find_name_components_bounds): Add "lang"
2029 parameter.
2030 (mapped_index_base::build_name_components): Also split names
2031 according to Ada syntax.
2032 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2033 type of "match_callback".
2034 (check_match, check_find_bounds_finds)
2035 (dw2_expand_symtabs_matching): Update.
2036 (dw2_debug_names_iterator): Add new constructor.
2037 (dw2_debug_names_map_matching_symbols): New function.
2038 (dw2_debug_names_expand_symtabs_matching): Update.
2039 (dwarf2_debug_names_functions): Use
2040 dw2_debug_names_map_matching_symbols.
2041
2042 2019-09-10 Tom Tromey <tromey@adacore.com>
2043
2044 * dwarf2read.c (dw2_get_file_names_reader): Add the
2045 CU's file name to the results.
2046
2047 2019-09-10 Tom Tromey <tromey@adacore.com>
2048
2049 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2050 map_matching_symbols. Update.
2051 * dwarf2read.c (dw2_map_matching_symbols): Update.
2052 * psymtab.c (match_partial_symbol): Change type; update.
2053 (psym_map_matching_symbols): Likewise.
2054 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2055 type; update.
2056 * symfile.h (struct quick_symbol_functions)
2057 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2058 Remove "match".
2059
2060 2019-09-10 Tom Tromey <tromey@adacore.com>
2061
2062 * psymtab.c (map_block): Remove.
2063 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2064 * symtab.c (iterate_over_symbols_terminated): New function.
2065 * symtab.c (iterate_over_symbols_terminated): Declare.
2066
2067 2019-09-10 Tom Tromey <tromey@adacore.com>
2068
2069 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2070 * language.h (struct language_defn) <la_iterate_over_symbols>:
2071 Return bool.
2072 * symtab.c (iterate_over_symbols): Return bool.
2073 * symtab.h (iterate_over_symbols): Return bool.
2074
2075 2019-09-10 Tom Tromey <tromey@adacore.com>
2076
2077 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2078 (add_nonlocal_symbols): Update.
2079 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2080 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2081 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2082 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2083 Change type of "callback". Remove "data".
2084
2085
2086 2019-09-09 Ali Tamur <tamur@google.com>
2087
2088 * dwarf2read.c (comp_unit_head): Update comment.
2089 (dwarf2_dwo_name): New function declaration.
2090 (dwarf_unit_type_name): New function declaration.
2091 (read_comp_unit_head): Add support for new compilation units,
2092 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2093 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2094 (currently named as "signature") in their header. Also clarify error
2095 messages.
2096 (lookup_dwo_id): New function. Returns the dwo id of the given
2097 compile unit.
2098 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2099 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2100 functions.
2101 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2102 (dwarf2_dwo_name): Get the dwo name if present.
2103 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2104 purposes.
2105
2106 2019-09-09 Tom Tromey <tom@tromey.com>
2107
2108 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2109
2110 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2111
2112 * python/python.c (do_start_initialization): Make progname_copy static,
2113 to avoid a leak report.
2114
2115 2019-09-08 Tom Tromey <tom@tromey.com>
2116
2117 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2118
2119 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2120
2121 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2122 Change type to gdb::optional<block_enum>.
2123 (dw2_symtab_iter_init): Change block_index parameter type
2124 to gdb::optional<block_enum>.
2125 (dw2_lookup_symbol): Change block_index parameter
2126 type to block_enum.c
2127 (dw2_debug_names_lookup_symbol): Likewise.
2128 * psymtab.c (psym_lookup_symbol): Likewise.
2129 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2130 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2131 Likewise.
2132
2133 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2134
2135 * defs.h (relocate_gdb_directory): Change int to bool in
2136 signature and rename flag to relocatable.
2137 * main.c (relocate_path): Likewise.
2138 (relocate_gdb_directory): Likewise.
2139
2140 2019-09-06 Alan Modra <amodra@gmail.com>
2141
2142 * coffread.c (coff_symfile_read): Constify filename variable.
2143 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2144 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2145 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2146 * solib.c (reload_shared_libraries_1): Likewise.
2147 * symfile.c (reread_symbols): Likewise.
2148 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2149 * solib-darwin.c (darwin_bfd_open): Likewise.
2150 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2151
2152 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2153
2154 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2155 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2156
2157 2019-09-03 Tom Tromey <tromey@adacore.com>
2158
2159 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2160 types.
2161 (has_negatives): Unbias a range type bound.
2162 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2163 * gdbtypes.c (operator==): Handle new field.
2164 (create_range_type): Add "bias" parameter.
2165 (create_static_range_type, resolve_dynamic_range): Update.
2166 * gdbtypes.h (struct range_bounds) <bias>: New member.
2167 (create_range_type): Add bias parameter.
2168 * printcmd.c (print_scalar_formatted): Unbias range types.
2169 * value.c (unpack_long): Unbias range types.
2170 (pack_long): Bias range types.
2171
2172 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2173
2174 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2175 probe arguments.
2176
2177 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2178
2179 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2180 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2181 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2182 (compile_probe_arg): Likewise.
2183 * probe.h (get_argument_count): Likewise.
2184 * solib-svr4.c (solib_event_probe_action): Likewise.
2185 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2186
2187 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2188
2189 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2190 code to here...
2191 (svr4_create_solib_event_breakpoints): ...from here.
2192
2193 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2194
2195 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2196 suffix from warning message.
2197
2198 2019-08-30 Tom Tromey <tom@tromey.com>
2199
2200 * tui/tui-winsource.h (struct tui_source_window_base)
2201 <refresh_all>: Don't declare.
2202 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2203 Remove.
2204 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2205 tui_show_locator_content.
2206 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2207 declare.
2208 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2209 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2210 declare.
2211
2212 2019-08-30 Tom Tromey <tom@tromey.com>
2213
2214 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2215
2216 2019-08-30 Tom Tromey <tom@tromey.com>
2217
2218 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2219 Remove unnecessary forward declarations.
2220
2221 2019-08-30 Tom Tromey <tom@tromey.com>
2222
2223 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2224 rerender.
2225 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2226 tui_show_locator_content.
2227
2228 2019-08-30 Tom Tromey <tom@tromey.com>
2229
2230 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2231 (tui_locator_window::rerender): Rewrite using body of previous
2232 tui_show_locator_content.
2233
2234 2019-08-30 Tom Tromey <tom@tromey.com>
2235
2236 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2237 set_locator_fullname>: New methods.
2238 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2239 Rename from tui_set_locator_fullname.
2240 (tui_locator_window::set_locator_info): Rename from
2241 tui_set_locator_info. Return bool.
2242 (tui_update_locator_fullname, tui_show_frame_info): Update.
2243
2244 2019-08-30 Tom Tromey <tom@tromey.com>
2245
2246 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2247
2248 2019-08-30 Tom Tromey <tom@tromey.com>
2249
2250 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2251 call touchwin.
2252
2253 2019-08-30 Tom Tromey <tom@tromey.com>
2254
2255 * tui/tui-wingeneral.c (box_win): Assume win_info and
2256 win_info->handle cannot be NULL.
2257
2258 2019-08-30 Tom Tromey <tom@tromey.com>
2259
2260 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2261 refresh_window>: Declare.
2262 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2263 resize.
2264 (tui_data_item_window::rerender): Rename from
2265 tui_display_register.
2266 (tui_data_item_window::refresh_window): New method.
2267 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2268 no-op.
2269
2270 2019-08-30 Tom Tromey <tom@tromey.com>
2271
2272 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2273 regs_column_count, current_group>: Move later. Now private.
2274 <get_current_group>: New method.
2275 * tui/tui-regs.c (tui_reg_command): Update.
2276 * tui/tui-layout.c (tui_set_layout): Update.
2277
2278 2019-08-30 Tom Tromey <tom@tromey.com>
2279
2280 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2281 (tui_data_window::rerender): Don't call
2282 check_and_display_highlight_if_needed.
2283 (tui_data_window::refresh_all): Remove call to
2284 erase_data_content.
2285
2286 2019-08-30 Tom Tromey <tom@tromey.com>
2287
2288 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2289 (tui_data_window::display_registers_from)
2290 (tui_data_window::display_reg_element_at_line)
2291 (tui_data_window::display_registers_from_line): Remove checks of
2292 "empty".
2293
2294 2019-08-30 Tom Tromey <tom@tromey.com>
2295
2296 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2297 Don't declare.
2298 * tui/tui-regs.c (tui_data_window::show_registers): Call
2299 rerender.
2300 (tui_data_window::rerender): Rename from display_all_data.
2301 (tui_data_window::rerender): Remove old implementation.
2302
2303 2019-08-30 Tom Tromey <tom@tromey.com>
2304
2305 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2306 text.
2307 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2308
2309 2019-08-29 Bernhard Wodok <barto@gmx.net>
2310 Sergio Durigan Junior <sergiodj@redhat.com>
2311
2312 PR win32/24284
2313 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2314
2315 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2316
2317 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2318 when searching for types.
2319
2320 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2321
2322 * f-lang.c (f_language_defn): Use f_print_typedef.
2323 * f-lang.h (f_print_typedef): Declare.
2324 * f-typeprint.c (f_print_typedef): Define.
2325
2326 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2327
2328 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2329
2330 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2331
2332 * cli/cli-utils.c (info_print_options_defs): Delete.
2333 (make_info_print_options_def_group): Delete.
2334 (extract_info_print_options): Delete.
2335 (info_print_command_completer): Delete.
2336 (info_print_args_help): Add extra parameter, and optionally
2337 include text about -n flag.
2338 * cli/cli-utils.h (struct info_print_options): Delete.
2339 (extract_info_print_options): Delete declaration.
2340 (info_print_command_completer): Delete declaration.
2341 (info_print_args_help): Add extra parameter, extend header
2342 comment.
2343 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2344 search_symbols.
2345 * stack.c (struct info_print_options): New type.
2346 (info_print_options_defs): New file scoped variable.
2347 (make_info_print_options_def_group): New static function.
2348 (info_print_command_completer): New static function.
2349 (info_locals_command): Update to use new local functions.
2350 (info_args_command): Likewise.
2351 (_initialize_stack): Add extra parameter to calls to
2352 info_print_args_help.
2353 * symtab.c (search_symbols): Add extra parameter, use this to
2354 possibly excluse non-debug symbols.
2355 (symtab_symbol_info): Add extra parameter, which is passed on to
2356 search_symbols.
2357 (struct info_print_options): New type.
2358 (info_print_options_defs): New file scoped variable.
2359 (make_info_print_options_def_group): New static function.
2360 (info_print_command_completer): New static function.
2361 (info_variables_command): Update to use local functions, and pass
2362 extra parameter through to symtab_symbol_info.
2363 (info_functions_command): Likewise.
2364 (info_types_command): Pass additional argument through to
2365 symtab_symbol_info.
2366 (rbreak_command): Pass extra argument to search_symbols.
2367 (_initialize_symtab): Add extra arguments for calls to
2368 info_print_args_help, and update help text for 'info variables',
2369 'whereis', and 'info functions' commands.
2370 * symtab.h (search_symbols): Add extra argument to declaration.
2371 * NEWS: Mention new flags.
2372
2373 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2374
2375 * symtab.c (lookup_static_symbol): Call the new function (and move
2376 it down to be next to lookup_global_symbol).
2377 (struct global_sym_lookup_data): Add block_enum member and rename to...
2378 (struct global_or_static_sym_lookup_data): ...this.
2379 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2380 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2381 (lookup_symbol_global_or_static_iterator_cb): ...this.
2382 (lookup_global_or_static_symbol): New function.
2383 (lookup_global_symbol): Call new function.
2384
2385 2019-08-26 Tom de Vries <tdevries@suse.de>
2386
2387 PR c++/24852
2388 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2389 when pc_probe.prob == NULL.
2390
2391 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2392
2393 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2394 variable symbol_linkage to symbol_linkage_.
2395
2396 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2397
2398 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2399 represent whether the symbol is static, dynamic, or we don't
2400 know.
2401
2402 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2403
2404 * gdb/rx-tdep.c (rx_register_names): New.
2405 (rx_register_name): Delete.
2406 (rx_psw_type): Delete.
2407 (rx_fpsw_type): Delete.
2408 (rx_register_type): Delete.
2409 (rx_gdbarch_init): Convert target-descriptions.
2410 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2411 * gdb/features/Makefile: Add rx.xml.
2412 * gdb/features/rx.xml: New.
2413 * gdb/features/rx.c: Generated.
2414 * gdb/NEWS: Mention target description support.
2415
2416 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2417
2418 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2419 *slot_ptr.
2420
2421 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2422
2423 * configure.ac: Don't check for 'dlfcn.h' (moved to
2424 gdbsupport/common.m4).
2425 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2426 'gdbsupport/'.
2427 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2428 * compile/compile-c-support.c: Include
2429 'gdbsupport/gdb-dlfcn.h'.
2430 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2431 * gdb-dlfcn.c: Move to...
2432 * gdbsupport/gdb-dlfcn.c: ... here.
2433 * gdb-dlfcn.h: Move to...
2434 * gdbsupport/gdb-dlfcn.h: ... here.
2435
2436 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2437
2438 * nios2-tdep.c (struct reg_value): Improve comments. Make
2439 the offset field signed.
2440
2441 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2442
2443 * python/lib/gdb/__init__.py (_execute_file): New function.
2444 * python/python.c (python_run_simple_file): Call gdb._execute_file
2445 on Windows.
2446
2447 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2448
2449 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2450 all uses as this was never set to anything but a zero value.
2451
2452 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2453
2454 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2455
2456 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2457
2458 * tui/tui-data.h (tui_gen_win_info): Add an =default
2459 move constructor, required by some GCC versions.
2460
2461 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2462
2463 * go32-nat.c (go32_sysinfo): Add hygon_p.
2464
2465 2019-08-20 Tom Tromey <tom@tromey.com>
2466
2467 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2468 line_from_reg_element_no, first_reg_element_no_inline,
2469 display_all_data, delete_data_content_windows,
2470 erase_data_content>: Now private.
2471
2472 2019-08-20 Tom Tromey <tom@tromey.com>
2473
2474 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2475 (tui_unhighlight_win, tui_highlight_win)
2476 (tui_win_info::make_window): Update.
2477 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2478
2479 2019-08-20 Tom Tromey <tom@tromey.com>
2480
2481 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2482 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2483 (MAX_PID_WIDTH): Move to tui-stack.c.
2484 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2485 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2486 (MAX_PID_WIDTH): Move from tui-data.h.
2487
2488 2019-08-20 Tom Tromey <tom@tromey.com>
2489
2490 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2491 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2492 (box_win): Update.
2493 (tui_gen_win_info::make_window): Rename from tui_make_window.
2494 (tui_win_info::make_window): New method.
2495 (tui_gen_win_info::make_visible): Update.
2496 * tui/tui-source.c (tui_source_window::set_contents): Update.
2497 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2498 (tui_data_window::display_registers_from): Update.
2499 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2500 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2501 Declare.
2502 <can_box>: Remove.
2503 <title>: Remove.
2504 (struct tui_win_info) <make_window>: Declare.
2505 <can_box>: Now virtual.
2506 <title>: New member.
2507 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2508 * tui/tui-command.c (tui_cmd_window::resize): Update.
2509
2510 2019-08-20 Tom Tromey <tom@tromey.com>
2511
2512 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2513 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2514 (tui_data_window::check_register_values): Update.
2515
2516 2019-08-20 Tom Tromey <tom@tromey.com>
2517
2518 * tui/tui-regs.h (struct tui_data_window): Use
2519 DISABLE_COPY_AND_ASSIGN.
2520 <regs_content>: Change type, removing unique_ptr.
2521 <tui_data_window>: Add move constructor.
2522 * tui/tui-regs.c (tui_data_window::show_registers)
2523 (tui_data_window::show_register_group)
2524 (tui_data_window::display_registers_from)
2525 (tui_data_window::display_registers_from)
2526 (tui_data_window::first_data_item_displayed)
2527 (tui_data_window::delete_data_content_windows)
2528 (tui_data_window::rerender, tui_data_window::refresh_window)
2529 (tui_data_window::check_register_values): Update.
2530
2531 2019-08-20 Tom Tromey <tom@tromey.com>
2532
2533 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2534 show_register_group>: Declare.
2535 (tui_show_register_group): Don't declare.
2536 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2537 tui_show_registers.
2538 (tui_data_window::show_register_group): Rename from
2539 tui_show_register_group.
2540 (tui_data_window::check_register_values, tui_reg_command):
2541 Update.
2542 * tui/tui-layout.c (tui_set_layout): Update.
2543
2544 2019-08-20 Tom Tromey <tom@tromey.com>
2545
2546 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2547 Declare.
2548 (tui_check_register_values): Don't declare.
2549 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2550 from tui_check_register_values.
2551 * tui/tui-hooks.c (tui_register_changed): Update.
2552
2553 2019-08-20 Tom Tromey <tom@tromey.com>
2554
2555 * tui/tui-regs.c (tui_reg_layout): Move later.
2556 (tui_show_registers): Don't enable TUI mode or change layout.
2557
2558 2019-08-20 Tom Tromey <tom@tromey.com>
2559
2560 * tui/tui-regs.h (struct tui_data_item_window)
2561 <~tui_data_item_window>: Remove.
2562 <content>: Now a unique_xmalloc_ptr.
2563 * tui/tui-regs.c (tui_register_format): Return a
2564 unique_xmalloc_ptr.
2565 (tui_get_register): Update.
2566 (~tui_data_item_window): Remove.
2567 (tui_data_window::display_registers_from, tui_display_register):
2568 Update.
2569 * tui/tui-io.h (tui_expand_tabs): Update.
2570 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2571 Remove "col" parameter.
2572
2573 2019-08-20 Tom Tromey <tom@tromey.com>
2574
2575 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2576 field.
2577 * tui/tui-regs.c (~tui_data_item_window): Update.
2578
2579 2019-08-20 Tom Tromey <tom@tromey.com>
2580
2581 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2582 earlier.
2583
2584 2019-08-20 Tom Tromey <tom@tromey.com>
2585
2586 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2587
2588 2019-08-20 Tom Tromey <tom@tromey.com>
2589
2590 * tui/tui-source.h (struct tui_source_window): Update.
2591 * tui/tui-regs.c (tui_show_registers): Update.
2592 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2593 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2594 (NO_REGS_STRING): Remove defines.
2595
2596 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
2597
2598 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2599 unnecessary thread walk if remote doesn't support the packet.
2600
2601 2019-08-19 Tom Tromey <tromey@adacore.com>
2602
2603 * python/py-value.c (value_has_field): Fix indentation.
2604
2605 2019-08-19 Tom Tromey <tromey@adacore.com>
2606
2607 * printcmd.c (do_one_display, info_display_command): Update.
2608 * block.h (contained_in): Return bool. Add allow_nested
2609 parameter.
2610 * block.c (contained_in): Return bool. Add allow_nested
2611 parameter.
2612
2613 2019-08-19 Tom Tromey <tom@tromey.com>
2614
2615 * configure: Rebuild.
2616 * configure.ac: Disallow the combination of -static-libstdc++ and
2617 source highlight.
2618 * source-cache.c (get_language_name): Handle rust.
2619 (source_cache::get_source_lines): Ignore highlighting exceptions.
2620
2621 2019-08-16 Tom Tromey <tom@tromey.com>
2622
2623 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2624 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2625 (struct tui_source_window_base) <make_visible, refresh_window,
2626 resize>: Remove methods.
2627 <execution_info>: Remove field.
2628 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2629 (tui_show_source_line, tui_source_window_base)
2630 (~tui_source_window_base): Update.
2631 (tui_source_window_base::resize)
2632 (tui_source_window_base::make_visible)
2633 (tui_source_window_base::refresh_window): Remove.
2634 (tui_source_window_base::update_exec_info): Update.
2635 * tui/tui-source.c (tui_source_window::set_contents): Update.
2636 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2637
2638 2019-08-16 Tom Tromey <tom@tromey.com>
2639
2640 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2641 deprecated_query_hook.
2642
2643 2019-08-16 Tom Tromey <tom@tromey.com>
2644
2645 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2646 (tui_update_source_windows_with_line): Update.
2647 * tui/tui-source.h (struct tui_source_window)
2648 <show_symtab_source>: Declare.
2649 (tui_show_symtab_source): Don't declare.
2650 * tui/tui-source.c (tui_show_symtab_source): Rename from
2651 tui_show_symtab_source.
2652
2653 2019-08-16 Tom Tromey <tom@tromey.com>
2654
2655 * tui/tui-winsource.h (struct tui_source_window_base)
2656 <set_contents>: Declare.
2657 * tui/tui-winsource.c
2658 (tui_source_window_base::update_source_window_as_is): Update.
2659 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2660 Declare.
2661 (tui_set_source_content): Don't declare.
2662 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2663 tui_set_source_content.
2664 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2665 Declare.
2666 (tui_set_disassem_content): Don't declare.
2667 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2668 tui_set_disassem_content.
2669
2670 2019-08-16 Tom Tromey <tom@tromey.com>
2671
2672 * tui/tui-winsource.h (struct tui_source_window_base)
2673 <update_breakpoint_info>: Declare.
2674 (tui_update_breakpoint_info): Don't declare.
2675 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2676 (tui_update_all_breakpoint_info): Update.
2677 (tui_source_window_base::update_breakpoint_info): Rename from
2678 tui_update_breakpoint_info.
2679 (tui_source_window_base::update_exec_info): Update.
2680
2681 2019-08-16 Tom Tromey <tom@tromey.com>
2682
2683 * tui/tui-winsource.h (struct tui_source_window_base)
2684 <update_source_window>: Declare.
2685 (tui_update_source_window): Don't declare.
2686 * tui/tui-winsource.c
2687 (tui_source_window_base::update_source_window): Rename from
2688 tui_update_source_window.
2689 (tui_source_window_base::rerender): Update.
2690 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2691 * tui/tui-disasm.c (tui_show_disassem)
2692 (tui_show_disassem_and_update_source)
2693 (tui_disasm_window::maybe_update): Update.
2694
2695 2019-08-16 Tom Tromey <tom@tromey.com>
2696
2697 * tui/tui-winsource.h (struct tui_source_window_base)
2698 <update_source_window_as_is>: Declare.
2699 (tui_update_source_window_as_is): Don't declare.
2700 * tui/tui-winsource.c (tui_update_source_window): Update
2701 (tui_source_window_base::update_source_window_as_is): Rename from
2702 tui_update_source_window_as_is.
2703 (tui_source_window_base::refill): Update.
2704 * tui/tui-source.c (tui_show_symtab_source): Update.
2705 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2706 Update.
2707
2708 2019-08-16 Tom Tromey <tom@tromey.com>
2709
2710 * tui/tui-winsource.h (tui_update_source_window)
2711 (tui_update_source_window_as_is): Remove "noerror" parameter.
2712 * tui/tui-winsource.c (tui_update_source_window)
2713 (tui_update_source_window_as_is): Remove "noerror" parameter.
2714 (tui_update_source_windows_with_addr)
2715 (tui_update_source_windows_with_line)
2716 (tui_source_window_base::rerender)
2717 (tui_source_window_base::refill): Update.
2718 * tui/tui-source.h (tui_set_source_content)
2719 (tui_show_symtab_source): Remove "noerror" parameter.
2720 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2721 parameter.
2722 (tui_show_symtab_source): Likewise.
2723 (tui_source_window::maybe_update): Update.
2724 * tui/tui-disasm.c (tui_show_disassem)
2725 (tui_show_disassem_and_update_source)
2726 (tui_disasm_window::do_scroll_vertical)
2727 (tui_disasm_window::maybe_update): Update.
2728
2729 2019-08-16 Tom Tromey <tom@tromey.com>
2730
2731 * tui/tui.c (tui_is_window_visible): Update.
2732 * tui/tui-wingeneral.c (tui_make_window)
2733 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2734 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2735 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2736 (tui_set_win_height_command, parse_scrolling_args): Update.
2737 * tui/tui-source.c (tui_source_window::style_changed): Update.
2738 * tui/tui-regs.c (tui_show_registers)
2739 (tui_data_window::first_data_item_displayed)
2740 (tui_data_window::delete_data_content_windows)
2741 (tui_check_register_values, tui_reg_command): Update.
2742 * tui/tui-disasm.c (tui_show_disassem): Update.
2743 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2744 method.
2745 <is_visible>: Remove field.
2746 * tui/tui-data.c (tui_next_win, tui_prev_win)
2747 (tui_delete_invisible_windows): Update.
2748
2749 2019-08-16 Tom Tromey <tom@tromey.com>
2750
2751 * tui/tui-winsource.h (struct tui_source_window_base)
2752 <m_has_locator>: Remove.
2753 * tui/tui-layout.c (show_source_disasm_command, show_data)
2754 (show_source_or_disasm_and_command): Update.
2755
2756 2019-08-16 Alan Hayward <alan.hayward@arm.com>
2757
2758 * NEWS (Other MI changes): New subsection.
2759 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2760 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2761 * arch-utils.c (default_get_pc_address_flags): New function.
2762 * arch-utils.h (default_get_pc_address_flags): New declaration.
2763 * gdbarch.sh: Add get_pc_address_flags.
2764 * gdbarch.c: Regenerate.
2765 * gdbarch.h: Likewise.
2766 * stack.c (print_pc): New function.
2767 (print_frame_info) (print_frame): Call print_pc.
2768
2769 2019-08-16 Tom de Vries <tdevries@suse.de>
2770
2771 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2772 print_objfile_section_info.
2773
2774 2019-08-15 Tom Tromey <tom@tromey.com>
2775
2776 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2777 calling update_cmdwin_start_line.
2778 * tui/tui-winsource.h (struct tui_source_window_base)
2779 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2780 <rerender>: Declare.
2781 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2782 Call rerender.
2783 (tui_source_window_base::set_new_height): Remove.
2784 (tui_source_window_base::rerender): Rename from
2785 do_make_visible_with_new_height.
2786 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2787 resize method.
2788 (tui_win_info::make_invisible_and_set_new_height)
2789 (tui_win_info::make_visible_with_new_height): Remove.
2790 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2791 Declare.
2792 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2793 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2794 do_make_visible_with_new_height>: Don't declare.
2795 <rerender>: Declare.
2796 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2797 set_new_height.
2798 (tui_data_window::do_make_visible_with_new_height): Remove.
2799 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2800 call tui_show_locator_content.
2801 (tui_gen_win_info::resize): Call rerender.
2802 (show_source_or_disasm_and_command): Don't call
2803 tui_show_locator_content.
2804 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2805 method.
2806 (struct tui_win_info) <rerender>: Declare.
2807 <set_new_height, make_invisible_and_set_new_height,
2808 make_visible_with_new_height>: Don't declare.
2809 * tui/tui-data.c (tui_win_list::rerender): New method.
2810 * tui/tui-command.h (struct tui_cmd_window)
2811 <do_make_visible_with_new_height>: Don't declare.
2812 * tui/tui-command.c
2813 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2814
2815 2019-08-15 Tom Tromey <tromey@adacore.com>
2816
2817 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2818 * ada-lang.c (ada_enum_name): Likewise.
2819
2820 2019-08-15 Christian Biesinger <cbiesinger@google.com>
2821
2822 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2823 leading underscore.
2824 (GdbOutputErrorFile): Likewise.
2825 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2826 accordingly.
2827 (execute_unwinders): Rename to have a leading underscore.
2828 (auto_load_packages): Likewise.
2829 (global scope): Adjust call to auto_load_packages accordingly.
2830 (GdbSetPythonDirectory): Likewise.
2831 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2832 instead of execute_unwinders.
2833
2834 2019-08-15 Tom Tromey <tom@tromey.com>
2835
2836 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2837 (show_data): Don't change window visibility.
2838 (tui_gen_win_info::resize): Remove special case for command
2839 window. Use wresize, when available.
2840 (show_source_or_disasm_and_command): Don't change window
2841 visibility.
2842 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2843 <make_visible>: New method.
2844 * tui/tui-command.c (tui_cmd_window::resize): New method.
2845
2846 2019-08-15 Tom Tromey <tom@tromey.com>
2847
2848 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2849 (struct tui_source_windows): New.
2850 * tui/tui-winsource.c (tui_display_main): Update.
2851 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2852 (new_height_ok, parse_scrolling_args): Update.
2853 * tui/tui-layout.c (show_layout, show_data): Update.
2854 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2855 (tui_add_to_source_windows): Don't declare.
2856 * tui/tui-data.c (source_windows, tui_source_windows)
2857 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2858
2859 2019-08-15 Tom Tromey <tom@tromey.com>
2860
2861 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2862 Rename from reset.
2863 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2864 * tui/tui-layout.c (show_source_disasm_command, show_data):
2865 Update.
2866 (tui_gen_win_info::resize): Rename.
2867 (show_source_or_disasm_and_command): Update.
2868 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2869 reset.
2870
2871 2019-08-15 Tom Tromey <tom@tromey.com>
2872
2873 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2874 * tui/tui-interp.c (tui_interp::init): Don't call
2875 tui_initialize_static_data.
2876 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2877
2878 2019-08-15 Tom Tromey <tom@tromey.com>
2879
2880 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2881 examine tui_win_list.
2882
2883 2019-08-15 Tom Tromey <tom@tromey.com>
2884
2885 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2886 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2887 tui_clear_source_content.
2888 (tui_clear_source_content): Remove.
2889 (tui_source_window_base::do_erase_source_content): Hoist call to
2890 content.clear().
2891 * tui/tui-stack.c (tui_show_frame_info): Don't call
2892 tui_clear_source_content.
2893
2894 2019-08-15 Tom Tromey <tom@tromey.com>
2895
2896 * tui/tui-winsource.h (struct tui_source_window_base)
2897 <do_erase_source_content>: New method.
2898 <erase_source_content>: New method.
2899 (tui_erase_source_content): Don't declare.
2900 * tui/tui-winsource.c (tui_clear_source_content): Update.
2901 (tui_source_window_base::do_erase_source_content): Rename from
2902 tui_erase_source_content.
2903 (tui_source_window_base::show_source_content): Update.
2904 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2905 * tui/tui-source.h (struct tui_source_window)
2906 <erase_source_content>: New method.
2907 * tui/tui-disasm.h (struct tui_disasm_window)
2908 <erase_source_content>: New method.
2909
2910 2019-08-15 Tom Tromey <tom@tromey.com>
2911
2912 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2913 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2914 constructor.
2915 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2916 * tui/tui-source.c (tui_set_source_content): Update.
2917 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2918
2919 2019-08-15 Tom Tromey <tom@tromey.com>
2920
2921 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2922 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2923 tui-source.c.
2924 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2925 Declare.
2926 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2927 method.
2928 (tui_source_window::maybe_update): Update.
2929
2930 2019-08-15 Tom Tromey <tom@tromey.com>
2931
2932 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2933 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2934 tui-disasm.c.
2935 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2936 Declare.
2937 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2938 method.
2939 (tui_disasm_window::maybe_update): Update.
2940
2941 2019-08-15 Tom Tromey <tom@tromey.com>
2942
2943 * tui/tui-winsource.h (struct tui_source_window_base)
2944 <maybe_update>: Declare.
2945 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2946 method.
2947 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2948 Declare.
2949 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2950 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2951 Declare.
2952 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2953
2954 2019-08-15 Tom Tromey <tom@tromey.com>
2955
2956 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2957
2958 2019-08-15 Tom Tromey <tom@tromey.com>
2959
2960 * tui/tui-wingeneral.c: Include tui-stack.h.
2961 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2962 (struct tui_locator_window): Move from tui-data.h.
2963 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2964 (tui_initialize_static_data): Move from tui-data.c.
2965 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2966 (struct tui_locator_window): Move to tui-stack.c.
2967 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2968 (tui_initialize_static_data): Move to tui-stack.c.
2969
2970 2019-08-15 Tom Tromey <tom@tromey.com>
2971
2972 * tui/tui-layout.c (show_source_disasm_command)
2973 (show_source_or_disasm_and_command): Use make_visible method, not
2974 tui_make_window.
2975 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2976 Remove.
2977
2978 2019-08-15 Tom Tromey <tom@tromey.com>
2979
2980 * tui/tui-wingeneral.h (tui_make_window): Update.
2981 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2982 parameter.
2983 (tui_gen_win_info::make_visible): Update.
2984 * tui/tui-regs.c (tui_data_window::display_registers_from):
2985 Update.
2986 * tui/tui-layout.c (show_source_disasm_command)
2987 (show_source_or_disasm_and_command): Update.
2988 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2989 (enum tui_box): Remove.
2990 (struct tui_win_info) <can_box>: New method.
2991 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2992 method.
2993
2994 2019-08-15 Tom de Vries <tdevries@suse.de>
2995
2996 * linux-nat-trad.c: Include gdbarch.h.
2997
2998 2019-08-14 Alan Hayward <alan.hayward@arm.com>
2999
3000 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3001 register sizes.
3002
3003 2019-08-14 Tom Tromey <tromey@adacore.com>
3004
3005 * darwin-nat.c: Include gdbarch.h.
3006 * darwin-nat-info.c: Include gdbarch.h.
3007
3008 2019-08-13 Tom Tromey <tom@tromey.com>
3009
3010 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3011 Remove.
3012 * tui/tui-data.c (tui_initialize_static_data): Update.
3013
3014 2019-08-13 Tom Tromey <tom@tromey.com>
3015
3016 * tui/tui-winsource.h (struct tui_exec_info_window)
3017 <~tui_exec_info_window, maybe_allocate_content, get_content,
3018 m_content>: Remove.
3019 (struct tui_source_window_base) <set_exec_info_content,
3020 show_exec_info_content>: Don't declare.
3021 * tui/tui-winsource.c
3022 (tui_exec_info_window::maybe_allocate_content): Remove.
3023 (tui_source_window_base::update_exec_info): Rename from
3024 set_exec_info_content.
3025 (tui_source_window_base::show_exec_info_content)
3026 (tui_source_window_base::update_exec_info): Remove.
3027
3028 2019-08-13 Tom Tromey <tom@tromey.com>
3029
3030 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3031 declare.
3032 * tui/tui-winsource.c (tui_update_source_window_as_is)
3033 (tui_update_source_windows_with_addr, tui_erase_source_content):
3034 Update.
3035 (tui_clear_exec_info_content): Remove.
3036
3037 2019-08-13 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3040 declare.
3041 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3042 call tui_erase_exec_info_content.
3043 (tui_clear_exec_info_content): Rename from
3044 tui_erase_exec_info_content.
3045 (tui_clear_exec_info_content): Delete.
3046
3047 2019-08-13 Tom Tromey <tom@tromey.com>
3048
3049 * tui/tui-winsource.h (struct tui_source_window_base)
3050 <show_exec_info_content>: Declare.
3051 (tui_show_exec_info_content): Don't declare.
3052 * tui/tui-winsource.c
3053 (tui_source_window_base::show_exec_info_content): Rename from
3054 tui_show_exec_info_content.
3055 (tui_source_window_base::update_exec_info): Update.
3056
3057 2019-08-13 Tom Tromey <tom@tromey.com>
3058
3059 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3060 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3061 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3062 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3063 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3064 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3065 ... here.
3066
3067 2019-08-13 Tom Tromey <tom@tromey.com>
3068
3069 * tui/tui-winsource.h (struct tui_source_window_base)
3070 <update_exec_info>: Declare.
3071 (tui_update_exec_info): Don't declare.
3072 * tui/tui-winsource.c (tui_update_source_window_as_is)
3073 (tui_source_window_base::refresh_all)
3074 (tui_update_all_breakpoint_info): Update.
3075 (tui_source_window_base::update_exec_info): Rename from
3076 tui_update_exec_info.
3077 * tui/tui-stack.c (tui_show_frame_info): Update.
3078
3079 2019-08-13 Tom Tromey <tom@tromey.com>
3080
3081 * tui/tui-winsource.h (struct tui_source_window_base)
3082 <set_exec_info_content>: Declare.
3083 (tui_set_exec_info_content): Don't declare.
3084 * tui/tui-winsource.c
3085 (tui_source_window_base::set_exec_info_content): Rename from
3086 tui_set_exec_info_content.
3087 (tui_update_exec_info): Update.
3088
3089 2019-08-13 Tom Tromey <tom@tromey.com>
3090
3091 * tui/tui-winsource.h (struct tui_source_window_base)
3092 <show_source_content>: Declare.
3093 (tui_show_source_content): Don't declare.
3094 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3095 (tui_source_window_base::show_source_content): Rename from
3096 tui_show_source_content.
3097 (tui_source_window_base::refresh_all): Update.
3098 * tui/tui-layout.c (show_source_disasm_command)
3099 (show_source_or_disasm_and_command): Update.
3100
3101 2019-08-13 Tom Tromey <tom@tromey.com>
3102
3103 * tui/tui-winsource.c (tui_erase_source_content)
3104 (tui_show_source_content, tui_source_window_base::refresh_all):
3105 Update.
3106 * tui/tui-wingeneral.h
3107 (tui_check_and_display_highlight_if_needed): Don't declare.
3108 * tui/tui-wingeneral.c
3109 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3110 check_and_display_highlight_if_needed.
3111 * tui/tui-win.c (tui_rehighlight_all)
3112 (tui_win_info::make_visible_with_new_height): Update.
3113 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3114 (tui_data_window::erase_data_content)
3115 (tui_data_window::display_all_data): Update.
3116 * tui/tui-data.h (struct tui_win_info)
3117 <check_and_display_highlight_if_needed>: Declare.
3118
3119 2019-08-13 Tom Tromey <tom@tromey.com>
3120
3121 * tui/tui-win.c (tui_resize_all): Call
3122 tui_delete_invisible_windows.
3123 * tui/tui-layout.c (show_layout): Call
3124 tui_delete_invisible_windows.
3125 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3126 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3127
3128 2019-08-13 Tom Tromey <tom@tromey.com>
3129
3130 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3131 tui_add_win_to_layout.
3132
3133 2019-08-13 Tom Tromey <tom@tromey.com>
3134
3135 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3136 * tui/tui-layout.c (tui_default_win_height): Now static.
3137
3138 2019-08-13 Tom Tromey <tom@tromey.com>
3139
3140 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3141 single switch.
3142 (show_source_disasm_command, show_source_or_disasm_and_command):
3143 Don't check current layout.
3144
3145 2019-08-13 Tom Tromey <tom@tromey.com>
3146
3147 * tui/tui-wingeneral.c (make_all_visible): Remove.
3148 (tui_make_all_invisible): Simplify.
3149 * tui/tui-layout.c (tui_make_all_invisible): Move from
3150 tui-wingeneral.c; simplify.
3151 (show_layout): Hoist call to tui_make_all_invisible.
3152 (show_data): Don't call tui_make_all_invisible.
3153
3154 2019-08-13 Tom Tromey <tom@tromey.com>
3155
3156 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3157 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3158
3159 2019-08-13 Tom Tromey <tom@tromey.com>
3160
3161 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3162 tui-data.c.
3163 (show_source_disasm_command, show_data)
3164 (show_source_or_disasm_and_command): Don't use
3165 tui_set_current_layout_to.
3166 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3167 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3168 tui-layout.c.
3169 (tui_set_current_layout_to): Remove.
3170
3171 2019-08-13 Tom Tromey <tom@tromey.com>
3172
3173 * tui/tui-layout.c (tui_set_layout): Update.
3174 * tui/tui-data.h (struct tui_layout_def): Remove.
3175 (tui_layout_def): Don't declare.
3176 * tui/tui-data.c (layout_def): Remove.
3177 (tui_layout_def): Remove.
3178
3179 2019-08-13 Tom Tromey <tom@tromey.com>
3180
3181 * tui/tui-winsource.h (struct tui_source_window_base)
3182 <clear_detail>: No longer "override".
3183 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3184 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3185 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3186 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3187 Remove.
3188 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3189
3190 2019-08-13 Tom Tromey <tromey@adacore.com>
3191
3192 * tracepoint.c: Don't include readline.h or history.h.
3193
3194 2019-08-12 Tom Tromey <tom@tromey.com>
3195
3196 * configure: Rebuild.
3197 * configure.ac: Check for readline 7.
3198 * NEWS: Mention readline 7 requirement.
3199 * README: Update.
3200
3201 2019-08-12 Tom Tromey <tom@tromey.com>
3202
3203 * mingw-hdep.c (gdb_select): Remove readline hack.
3204
3205 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3206
3207 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3208 when the function fails.
3209
3210 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3211
3212 * s390-tdep.c (s390_type_align): New function.
3213 (s390_gdbarch_init): Set it as type_align gdbarch method.
3214
3215 2019-08-09 Tom de Vries <tdevries@suse.de>
3216
3217 PR gdb/24591
3218 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3219 pc_low with relocation offset.
3220
3221 2019-08-07 Tom Tromey <tromey@adacore.com>
3222
3223 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3224 (print_frame_args): Update.
3225 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3226 Update.
3227 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3228 * frame.h (struct frame_arg): Add initializers.
3229 <error>: Now a unique_xmalloc_ptr.
3230
3231 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3232
3233 * NEWS: Expand the Pointer Authentication entry.
3234 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3235 (aarch64_frame_unmask_lr): ... to this.
3236 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3237 Call aarch64_frame_unmask_lr.
3238 * frame.c (struct frame_info): Add "masked" variable.
3239 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3240 (fprint_frame): Check for masked pc.
3241 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3242 declarations.
3243 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3244 * stack.c (print_frame): Check for masked pc.
3245
3246 2019-08-06 Tom Tromey <tom@tromey.com>
3247
3248 * stabsread.c (patch_block_stabs, read_one_struct_field)
3249 (read_enum_type): Use obstack_strndup.
3250 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3251 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3252 * dwarf2read.c (guess_full_die_structure_name)
3253 (anonymous_struct_prefix): Use obstack_strndup.
3254 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3255 * c-exp.y (yylex): Use obstack_strndup.
3256 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3257 (write_var_or_type): Use obstack_strndup.
3258
3259 2019-08-06 Tom Tromey <tom@tromey.com>
3260
3261 * symfile.c (reread_symbols): Use obstack_strdup.
3262 * stabsread.c (read_type): Use obstack_strdup.
3263 * gdb_obstack.h (obstack_strdup): New overload.
3264 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3265 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3266 (dwarf2_canonicalize_name): Use obstack_strdup.
3267 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3268 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3269 Use obstack_strdup.
3270
3271 2019-08-06 Tom Tromey <tom@tromey.com>
3272
3273 * gdb_obstack.h (obstack_strdup): Define.
3274 * gdb_obstack.c (obstack_strdup): Don't define.
3275
3276 2019-08-06 Tom Tromey <tom@tromey.com>
3277
3278 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3279 obstack_strdup.
3280 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3281 obstack_strdup.
3282 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3283 * stabsread.c (common_block_start): Use obstack_strdup.
3284 * objfiles.c (set_objfile_main_name, objfile): Use
3285 obstack_strdup.
3286 * namespace.c (add_using_directive): Use obstack_strdup.
3287 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3288 * jit.c (finalize_symtab): Use obstack_strdup.
3289 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3290 (guess_partial_die_structure_name, partial_die_info::fixup)
3291 (dwarf2_name): Use obstack_strdup.
3292 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3293 obstack_strdup.
3294 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3295 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3296 obstack_strdup.
3297 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3298
3299 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3300
3301 * unittests/help-doc-selftests.c: New file.
3302 * Makefile.in: Add the new file.
3303
3304 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3305
3306 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3307 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3308 the full first line, except when FOR_VALUE_PREFIX. In this case,
3309 the trailing '.' is not output, and the first character is uppercased.
3310 (print_help_for_command): Update call to print_doc_line.
3311 (print_doc_of_command): Likewise.
3312 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3313 * cli/cli-option.c (append_indented_doc): Do not append newline.
3314 (build_help_option): Append newline after first appended_indented_doc
3315 only if a second call is done.
3316 (build_help): Append 2 new lines before each option, except the first
3317 one.
3318 * compile/compile.c (_initialize_compile): Add new lines after
3319 %OPTIONS%, when not at the end of the help.
3320 Change help doc or code
3321 producing the help doc to respect the invariants.
3322 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3323 Also removed the new line after 'Options:', as all other commands
3324 do not put an empty line between 'Options:' and the first option.
3325 * printcmd.c (_initialize_printcmd): Likewise.
3326 * stack.c (_initialize_stack): Likewise.
3327 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3328 incorrectly telling COMMAND is optional.
3329 * ada-lang.c (_initialize_ada_language): Change help doc or code
3330 producing the help doc to respect the invariants.
3331 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3332 * breakpoint.c (_initialize_breakpoint): Likewise.
3333 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3334 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3335 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3336 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3337 _initialize_cli_style): Likewise.
3338 * corelow.c (core_target_info): Likewise.
3339 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3340 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3341 * filesystem.c (_initialize_filesystem): Likewise.
3342 * frame.c (_initialize_frame): Likewise.
3343 * gnu-nat.c (add_task_commands): Likewise.
3344 * infcall.c (_initialize_infcall): Likewise.
3345 * infcmd.c (_initialize_infcmd): Likewise.
3346 * interps.c (_initialize_interpreter): Likewise.
3347 * language.c (_initialize_language): Likewise.
3348 * linux-fork.c (_initialize_linux_fork): Likewise.
3349 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3350 * maint.c (_initialize_maint_cmds): Likewise.
3351 * memattr.c (_initialize_mem): Likewise.
3352 * printcmd.c (_initialize_printcmd): Likewise.
3353 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3354 _RegEx): Likewise.
3355 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3356 * record-btrace.c (_initialize_record_btrace): Likewise.
3357 * record-full.c (_initialize_record_full): Likewise.
3358 * record.c (_initialize_record): Likewise.
3359 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3360 * regcache.c (_initialize_regcache): Likewise.
3361 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3362 _initialize_remote): Likewise.
3363 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3364 * serial.c (_initialize_serial): Likewise.
3365 * skip.c (_initialize_step_skip): Likewise.
3366 * source.c (_initialize_source): Likewise.
3367 * stack.c (_initialize_stack): Likewise.
3368 * symfile.c (_initialize_symfile): Likewise.
3369 * symtab.c (_initialize_symtab): Likewise.
3370 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3371 * top.c (init_main): Likewise.
3372 * tracefile-tfile.c (tfile_target_info): Likewise.
3373 * tracepoint.c (_initialize_tracepoint): Likewise.
3374 * tui/tui-win.c (_initialize_tui_win): Likewise.
3375 * utils.c (add_internal_problem_command): Likewise.
3376 * valprint.c (value_print_option_defs): Likewise.
3377
3378 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3379
3380 PR build/24886
3381 * configure.ac: Drop enable-libmcheck support.
3382 * configure, config.in: Rebuild.
3383 * libmcheck.m4: Remove.
3384 * acinclude.m4: Don't include it.
3385 * Makefile.in: Don't distribute it.
3386 * top.c (print_gdb_configuration): Don't mention it.
3387
3388 2019-08-06 Tom Tromey <tom@tromey.com>
3389
3390 * utils.c (set_output_style): Sometimes pass stream to
3391 emit_style_escape.
3392 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3393 * record-btrace.c (btrace_insn_history): Update.
3394 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3395 method.
3396 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3397 Update initializers.
3398 <m_uiout>: New field.
3399 <m_di>: Move lower.
3400 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3401 Remove "uiout" parameter.
3402 (dump_insns): Update.
3403 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3404 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3405
3406 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3407
3408 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3409 (error_in_psymtab_expansion): Likewise.
3410 (lookup_symbol_via_quick_fns): Likewise.
3411 (basic_lookup_transparent_type_quick): Likewise.
3412 (basic_lookup_transparent_type_1): Likewise.
3413
3414 2019-08-06 Tom Tromey <tromey@adacore.com>
3415
3416 * source.c (last_source_error): Now bool.
3417 (print_source_lines_base): Make "noprint" bool. Only open
3418 source file when last_source_visited changes.
3419
3420 2019-08-06 Tom Tromey <tromey@adacore.com>
3421
3422 * annotate.c (annotate_source_line): Use g_source_cache.
3423 * source-cache.c (source_cache::get_plain_source_lines): Change
3424 parameters. Populate m_offset_cache.
3425 (source_cache::ensure): New method.
3426 (source_cache::get_line_charpos): New method.
3427 (extract_lines): Move lower. Change parameters.
3428 (source_cache::get_source_lines): Move lower.
3429 * source-cache.h (class source_cache): Update comment.
3430 <get_line_charpos>: New method.
3431 <get_source_lines>: Update comment.
3432 <clear>: Clear m_offset_cache.
3433 <get_plain_source_lines>: Change parameters.
3434 <ensure>: New method
3435 <m_offset_cache>: New member.
3436 * source.c (forget_cached_source_info_for_objfile): Update.
3437 (info_source_command): Use g_source_cache.
3438 (find_source_lines, open_source_file_with_line_charpos): Remove.
3439 (print_source_lines_base, search_command_helper): Use g_source_cache.
3440 * source.h (open_source_file_with_line_charpos): Don't declare.
3441 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3442 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3443 Use g_source_cache.
3444
3445 2019-08-06 Tom Tromey <tromey@adacore.com>
3446
3447 * source-cache.c (source_cache::get_plain_source_lines):
3448 Remove "first_line" and "last_line" parameters.
3449 (source_cache::get_source_lines): Cache plain text.
3450 * source-cache.h (class source_cache)
3451 <get_plain_source_lines>: Update.
3452
3453 2019-08-06 Tom Tromey <tromey@adacore.com>
3454
3455 * source-cache.c (extract_lines): No longer a method.
3456 Changed type of parameter. Include final newline.
3457 (selftests::extract_lines_test): New function.
3458 (_initialize_source_cache): Likewise.
3459 * source-cache.h (class source_cache)
3460 <extract_lines>: Don't declare.
3461
3462 2019-08-06 Tom Tromey <tromey@adacore.com>
3463
3464 * breakpoint.c (init_breakpoint_sal): Update.
3465 (breakpoint): Update.
3466 * breakpoint.h (struct breakpoint) <filter>: Now a
3467 unique_xmalloc_ptr.
3468
3469 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3470
3471 * NEWS: Mention dictionary access on blocks.
3472 * python/py-block.c (blpy_getitem): New function.
3473 (block_object_as_mapping): New struct.
3474 (block_object_type): Use new struct for tp_as_mapping field.
3475
3476 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3477
3478 * objfiles.h (objfile): Add a comment describing partial symbols.
3479
3480 2019-08-05 Tom Tromey <tromey@adacore.com>
3481
3482 * compile/compile.c (_initialize_compile): Use _(), not N_().
3483 * thread.c (_initialize_thread): Use _(), not N_().
3484 * stack.c (_initialize_stack): Use _(), not N_().
3485 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3486
3487 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3488
3489 * dwarf2read.c (struct dw2_symtab_iterator):
3490 <want_specific_block>: Remove.
3491 <block_index>: Change type to gdb::optional.
3492 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3493 change type of BLOCK_INDEX parameter to gdb::optional.
3494 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3495 (dw2_lookup_symbol): Don't pass argument for
3496 WANT_SPECIFIC_BLOCK.
3497 (dw2_expand_symtabs_for_function): Don't pass argument for
3498 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3499 (class dw2_debug_names_iterator)
3500 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3501 parameter, change BLOCK_INDEX type to gdb::optional.
3502 <m_want_specific_block>: Remove.
3503 <m_block_index>: Change type to gdb::optional.
3504 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3505 gdb::optional. Re-write in function of gdb::optional.
3506 (dw2_debug_names_lookup_symbol): Don't pass argument for
3507 WANT_SPECIFIC_BLOCK.
3508 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3509 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3510 BLOCK_INDEX.
3511
3512 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3513
3514 * NEWS: Mention changes to "info sources" command.
3515
3516 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3517
3518 * symtab.c (filename_partial_match_opts): New struct type.
3519 (struct output_source_filename_data): New members
3520 regexp, c_regexp, partial_match.
3521 (output_source_filename): Use new members to decide to print file.
3522 (info_sources_option_defs): New variable.
3523 (make_info_sources_options_def_group, print_info_sources_header,
3524 info_sources_command_completer):
3525 New functions.
3526 (info_sources_command): Read new optional arguments.
3527 (_initialize_symtab): Update info sources help.
3528
3529 2019-08-02 Alexandre Oliva <oliva@adacore.com>
3530
3531 * ada-lang.c (exception_support_info_v0): Renamed from...
3532 (default_exception_support_info): ... this. Create new
3533 definition for v1.
3534 (ada_has_this_exception_support): Look up catch_handlers_sym.
3535 (ada_exception_support_info_sniffer): Try v0 after default.
3536
3537 2019-08-01 Tom Tromey <tromey@adacore.com>
3538
3539 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3540 gdbarch.h.
3541
3542 2019-08-01 Christian Biesinger <cbiesinger@google.com>
3543
3544 * s12z-tdep.c: Fix include path for s12z-opc.h.
3545
3546 2019-08-01 Alan Hayward <alan.hayward@arm.com>
3547
3548 * NEWS: Require GNU make 3.82.
3549
3550 2019-07-16 Tom Tromey <tom@tromey.com>
3551
3552 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3553 declare.
3554
3555 2019-07-30 Tom Tromey <tromey@adacore.com>
3556
3557 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3558
3559 2019-07-30 Kevin Buettner <kevinb@redhat.com>
3560
3561 * printcmd.c (print_address_symbolic): Print negative offsets.
3562 (build_address_symbolic): Force signed arithmetic when computing
3563 offset.
3564
3565 2019-07-30 Christian Biesinger <cbiesinger@google.com>
3566
3567 PR/24474: Add a function to lookup static variables.
3568 * NEWS: Mention this new function.
3569 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3570 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3571 * python/python.c (python_GdbMethods): Add new function.
3572
3573 2019-07-29 Christian Biesinger <cbiesinger@google.com>
3574
3575 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3576 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3577 (objfpy_lookup_static_symbol): New function.
3578 (objfile_object_methods): Add new functions.
3579
3580 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3581
3582 * NEWS: Mention 'set|show print frame-info'. Mention new
3583 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3584 backtrace argument. Mention that python frame filtering code
3585 is now consistent with what 'backtrace' command prints.
3586
3587 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3588
3589 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3590 comments.
3591 (print_frame_info_auto, print_frame_info_source_line,
3592 print_frame_info_location, print_frame_info_source_and_location,
3593 print_frame_info_location_and_address, print_frame_info_short_location):
3594 New declarations.
3595 (struct frame_print_options): New member print_frame_info.
3596 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3597 * stack.h (get_user_print_what_frame_info): New declaration.
3598 (frame_show_address): New declaration.
3599 * stack.c (print_frame_arguments_choices): New value 'presence'.
3600 (print_frame_info_auto, print_frame_info_source_line,
3601 print_frame_info_location, print_frame_info_source_and_location,
3602 print_frame_info_location_and_address, print_frame_info_short_location,
3603 print_frame_info_choices, print_frame_info_print_what): New definitions.
3604 (print_frame_args): Only print dots for args if print frame-arguments
3605 is 'presence'.
3606 (frame_print_option_defs): New element for "frame-info".
3607 (get_user_print_what_frame_info): New function.
3608 (frame_show_address): Make non static. Move comment to stack.h.
3609 (print_frame_info_to_print_what): New function.
3610 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3611 to decide what to print.
3612 (backtrace_command_1): Handle the new print_frame_arguments_presence
3613 value.
3614 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3615 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3616 (py_print_frame): In non-mi mode, use LOCATION as default for
3617 print_what, similarly to frame information printed directly by
3618 backtrace command. Handle frame-info user option in non MI mode.
3619
3620 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3621
3622 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3623 Add case for debugging 32-bit target on 64-bit host. Revise
3624 comment.
3625
3626 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3627
3628 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3629 instead of find_function_entry_range_from_pc.
3630
3631 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3632
3633 * stack.c (find_frame_funname): Remove code which preferred
3634 minsym over symtab sym in "certain pathological cases".
3635
3636 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3637 parameter. Change type of "do_demangle" to bool.
3638 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3639 Pass suitable "prefer_sym_over_minsym" flag to
3640 build_address_symbolic(). Don't output "+" for negative offsets.
3641 * printcmd.c (print_address_symbolic): Update invocation of
3642 build_address_symbolic to include a "prefer_sym_over_minsym"
3643 flag.
3644 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3645 Restrict cases in which use of minimal symbol is preferred to that
3646 of a found symbol. Update comments.
3647
3648 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3649 for entry pc when entry pc is out of range for that FDE.
3650
3651 2019-07-26 Brian Callahan <bcallah@openbsd.org>
3652
3653 PR gdb/24839:
3654 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3655 type.
3656
3657 2019-07-25 Christian Biesinger <cbiesinger@google.com>
3658
3659 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3660 this function's Python signature.
3661
3662
3663 2019-07-24 Christian Biesinger <cbiesinger@google.com>
3664
3665 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3666 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3667 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3668 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3669 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3670
3671
3672 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3673
3674 * h8300-tdep.c (h8300_register_name_common): New.
3675 h8300_register_name): Use h8300_register_name_common.
3676 (h8300s_register_name): Likewise.
3677 (h8300sx_register_name): Likewise.
3678 (h8300h_register_nam): New.
3679 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3680
3681
3682 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3683
3684 * arm-tdep.c (arm_skip_cmse_entry): New function.
3685 (arm_is_sgstubs_section): New function.
3686 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3687
3688 2019-07-22 Tom Tromey <tom@tromey.com>
3689
3690 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3691 Don't self-assign.
3692
3693 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3694
3695 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3696 type_print.
3697
3698 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3699
3700 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3701 so that GDB doesn't match any msymbols when searching in the
3702 TYPES_DOMAIN.
3703 (print_symbol_info): Print using typedef_print or type_print based
3704 on the type of the symbol. Add updated FIXME comment moved from...
3705 (_initialize_symtab): ... move and update FIXME comment to above.
3706
3707 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3708
3709 * NEWS: Mention adding -q option to "info types".
3710 * symtab.c (struct info_types_options): New struct.
3711 (info_types_options_defs): New variable.
3712 (make_info_types_options_def_group): New function.
3713 (info_types_command): Use gdb::option framework to parse options.
3714 (info_types_command_completer): New function.
3715 (_initialize_symtab): Extend the help text on "info types" and
3716 register command completer.
3717
3718 2019-07-21 Christian Biesinger <cbiesinger@google.com>
3719
3720 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3721 (lookup_symbol_in_objfile): Change int to block_enum and add a
3722 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3723
3724 2019-07-20 Christian Biesinger <cbiesinger@google.com>
3725
3726 * MAINTAINERS (Write After Approval): Add self.
3727
3728 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3729
3730 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3731 instruction to the dummy code region.
3732
3733 2019-07-19 Tom Tromey <tromey@adacore.com>
3734
3735 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3736 (ARGSUSED, PARAMS, __func__): Remove rules.
3737
3738 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3739
3740 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3741 * features/arm/arm-with-iwmmxt.c: Remove.
3742 * features/arm/arm-with-iwmmxt.xml: Remove.
3743 * features/arm/arm-with-m-fpa-layout.c: Remove.
3744 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3745 * features/arm/arm-with-m-vfp-d16.c: Remove.
3746 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3747 * features/arm/arm-with-m.c: Remove.
3748 * features/arm/arm-with-m.xml: Remove.
3749 * features/arm/arm-with-neon.c: Remove.
3750 * features/arm/arm-with-neon.xml: Remove.
3751 * features/arm/arm-with-vfpv2.c: Remove.
3752 * features/arm/arm-with-vfpv2.xml: Remove.
3753 * features/arm/arm-with-vfpv3.c: Remove.
3754 * features/arm/arm-with-vfpv3.xml: Remove.
3755
3756 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3757
3758 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3759
3760 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3761
3762 * arch/aarch32.c (aarch32_create_target_description): Create
3763 target descriptions using features.
3764 * arch/arm.c (arm_create_target_description)
3765 (arm_create_mprofile_target_description): Likewise.
3766 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3767
3768 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3769
3770 * Makefile.in: Add new files.
3771 * aarch32-tdep.c: New file.
3772 * aarch32-tdep.h: New file.
3773 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3774 Call aarch32_read_description.
3775 * arch/aarch32.c: New file.
3776 * arch/aarch32.h: New file.
3777 * arch/arm.c (arm_create_target_description)
3778 (arm_create_mprofile_target_description): New function.
3779 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3780 (arm_create_target_description)
3781 (arm_create_mprofile_target_description): New declaration.
3782 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3783 read_description functions.
3784 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3785 Likewise.
3786 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3787 * arm-tdep.c (tdesc_arm_list): New variable.
3788 (arm_register_g_packet_guesses): Call create description functions.
3789 (arm_read_description) (arm_read_mprofile_description): New
3790 function.
3791 * arm-tdep.h (arm_read_description)
3792 (arm_read_mprofile_description): Add declaration.
3793 * configure.tgt: Add new files.
3794
3795 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3796
3797 * top.c (new_ui_command): Open specified terminal just once.
3798
3799 2019-07-18 Tom Tromey <tromey@adacore.com>
3800
3801 * symtab.c (main_name): Constify return type.
3802 * symfile.c (set_initial_language): Update.
3803 * symtab.h (main_name): Constify return type.
3804
3805 2019-07-17 Tom Tromey <tom@tromey.com>
3806
3807 * tui/tui-winsource.c (tui_update_source_window)
3808 (tui_update_source_window_as_is)
3809 (tui_update_source_windows_with_line): Remove return.
3810 * tui/tui-disasm.c (tui_show_disassem)
3811 (tui_show_disassem_and_update_source): Remove return.
3812 * tui/tui.c (tui_reset): Remove return.
3813 * tui/tui-wingeneral.c
3814 (tui_check_and_display_highlight_if_needed): Remove return.
3815
3816 2019-07-17 Tom Tromey <tom@tromey.com>
3817
3818 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3819
3820 2019-07-17 Tom Tromey <tom@tromey.com>
3821
3822 * tui/tui-winsource.h (struct tui_exec_info_window)
3823 (struct tui_source_window_base): Move from tui-data.h.
3824 * tui/tui-winsource.c: Move many method definitions from
3825 elsewhere. Remove "structuring" comments.
3826 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3827 (tui_source_window_base::refresh_window): Move to
3828 tui-winsource.c.
3829 * tui/tui-win.c (tui_source_window_base::refresh_all)
3830 (tui_source_window_base::update_tab_width)
3831 (tui_source_window_base::set_new_height)
3832 (tui_source_window_base::do_make_visible_with_new_height): Move to
3833 tui-winsource.c.
3834 * tui/tui-source.h: Update.
3835 * tui/tui-source.c (tui_source_window_base::reset): Move to
3836 tui-winsource.c.
3837 * tui/tui-disasm.h: Update.
3838 * tui/tui-data.h (struct tui_exec_info_window): Move to
3839 tui-winsource.h.
3840 (struct tui_source_window_base): Likewise.
3841 * tui/tui-data.c (tui_source_window_base::clear_detail)
3842 (tui_source_window_base, ~tui_source_window_base): Move to
3843 tui-winsource.c.
3844
3845 2019-07-17 Tom Tromey <tom@tromey.com>
3846
3847 * tui/tui-win.c (tui_resize_all)
3848 (tui_source_window_base::update_tab_width)
3849 (tui_adjust_win_heights): Update.
3850 (tui_win_info::make_invisible_and_set_new_height): Rename from
3851 make_invisible_and_set_new_height.
3852 * tui/tui-data.h (struct tui_win_info)
3853 <make_invisible_and_set_new_height>: New method.
3854
3855 2019-07-17 Tom Tromey <tom@tromey.com>
3856
3857 * tui/tui.c: Update.
3858 * tui/tui-source.h (struct tui_source_window): Move from
3859 tui-data.h.
3860 * tui/tui-layout.c: Update.
3861 * tui/tui-disasm.c: Update.
3862 * tui/tui-data.h (struct tui_source_window): Move to
3863 tui-source.h.
3864
3865 2019-07-17 Tom Tromey <tom@tromey.com>
3866
3867 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3868 tui-data.h.
3869 * tui/tui-data.h (struct tui_disasm_window): Move to
3870 tui-disasm.h.
3871
3872 2019-07-17 Tom Tromey <tom@tromey.com>
3873
3874 * tui/tui-regs.h (struct tui_data_item_window): Move from
3875 tui-data.h.
3876 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3877 * tui/tui-data.h (struct tui_data_item_window): Move to
3878 tui-regs.h.
3879 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3880
3881 2019-07-17 Tom Tromey <tom@tromey.com>
3882
3883 * tui/tui.c: Update.
3884 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3885 (tui_cmd_window::max_height): Move to tui-command.c.
3886 * tui/tui-layout.c: Update.
3887 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3888 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3889 tui-command.c.
3890 * tui/tui-command.h (struct tui_cmd_window): Move from
3891 tui-data.h.
3892 * tui/tui-command.c: Remove "structuring" comments.
3893 (tui_cmd_window::clear_detail)
3894 (tui_cmd_window::do_make_visible_with_new_height)
3895 (tui_cmd_window::max_height): Move from elsewhere.
3896
3897 2019-07-17 Tom Tromey <tom@tromey.com>
3898
3899 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3900 Now static.
3901 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3902 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3903
3904 2019-07-17 Tom Tromey <tom@tromey.com>
3905
3906 * tui/tui.c: Update.
3907 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3908 tui-regs.c.
3909 * tui/tui-windata.h: Remove file.
3910 * tui/tui-windata.c: Remove file.
3911 * tui/tui-win.c (tui_data_window::set_new_height)
3912 (tui_data_window::do_make_visible_with_new_height): Move to
3913 tui-regs.c.
3914 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3915 * tui/tui-regs.c: Remove "structuring" comments.
3916 (tui_data_window::first_data_item_displayed)
3917 (tui_data_window::delete_data_content_windows)
3918 (tui_data_window::erase_data_content)
3919 (tui_data_window::display_all_data)
3920 (tui_data_window::refresh_all)
3921 (tui_data_window::do_scroll_vertical)
3922 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3923 (tui_data_window::do_make_visible_with_new_height)
3924 (tui_data_window::refresh_window): Move from elsewhere.
3925 (_initialize_tui_regs): Move to end of file.
3926 * tui/tui-layout.c: Update.
3927 * tui/tui-hooks.c: Update.
3928 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3929 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3930 tui-regs.c.
3931 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3932
3933 2019-07-17 Tom Tromey <tom@tromey.com>
3934
3935 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3936 seen.
3937
3938 2019-07-17 Tom Tromey <tom@tromey.com>
3939
3940 * tui/tui-win.c (tui_source_window_base::set_new_height)
3941 (tui_source_window_base::do_make_visible_with_new_height): Use
3942 m_has_locator field directly.
3943 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3944 method.
3945 (struct tui_source_window_base) <has_locator>: Likewise.
3946
3947 2019-07-17 Tom Tromey <tom@tromey.com>
3948
3949 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3950 Don't declare.
3951 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3952 Remove.
3953 * tui/tui-win.c (tui_source_window_base::set_new_height)
3954 (tui_source_window_base::set_new_height)
3955 (make_invisible_and_set_new_height)
3956 (tui_source_window_base::do_make_visible_with_new_height)
3957 (tui_source_window_base::do_make_visible_with_new_height):
3958 Update.
3959 * tui/tui-layout.c (show_source_disasm_command, show_data)
3960 (show_source_or_disasm_and_command): Update.
3961 * tui/tui-layout.c (show_layout): Update.
3962
3963 2019-07-17 Tom Tromey <tom@tromey.com>
3964
3965 * tui/tui-layout.c (make_data_window): Remove.
3966 (show_data): Unify creation and re-initialization cases.
3967
3968 2019-07-17 Tom Tromey <tom@tromey.com>
3969
3970 * tui/tui-layout.c (make_source_window, make_disasm_window):
3971 Remove.
3972 (show_data): Unify creation and re-initialization cases.
3973
3974 2019-07-17 Tom Tromey <tom@tromey.com>
3975
3976 * tui/tui-layout.c (make_command_window): Remove.
3977 (show_source_disasm_command, show_source_or_disasm_and_command):
3978 Unify creation and re-initialization cases.
3979
3980 2019-07-17 Tom Tromey <tom@tromey.com>
3981
3982 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3983 creation and re-initialization cases.
3984
3985 2019-07-17 Tom Tromey <tom@tromey.com>
3986
3987 * tui/tui-regs.c (tui_get_register): Return void.
3988
3989 2019-07-17 Tom Tromey <tom@tromey.com>
3990
3991 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3992 Simplify.
3993
3994 2019-07-17 Tom Tromey <tom@tromey.com>
3995
3996 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3997 resetting.
3998
3999 2019-07-17 Tom Tromey <tom@tromey.com>
4000
4001 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4002 * tui/tui-regs.c (tui_reg_layout): New function.
4003 (tui_show_registers, tui_reg_command): Use it.
4004 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4005 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4006 parameters.
4007 (tui_layout_command): Remove.
4008
4009 2019-07-17 Tom Tromey <tom@tromey.com>
4010
4011 * tui/tui-layout.h (tui/tui-layout): Return void.
4012 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4013
4014 2019-07-17 Tom Tromey <tom@tromey.com>
4015
4016 * tui/tui-layout.c (show_source_disasm_command, show_data):
4017 Update.
4018 (reset_locator): Remove.
4019 (show_source_or_disasm_and_command): Update.
4020
4021 2019-07-17 Tom Tromey <tom@tromey.com>
4022
4023 * tui/tui-source.c (tui_source_window_base::reset): Remove
4024 win_type parameter.
4025 * tui/tui-layout.c (make_command_window, make_source_window)
4026 (make_disasm_window, make_data_window)
4027 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4028 (reset_locator, show_source_or_disasm_and_command): Update.
4029 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4030 win_type parameter.
4031 (struct tui_source_window_base) <reset>: Likewise.
4032
4033 2019-07-17 Tom Tromey <tom@tromey.com>
4034
4035 * tui/tui-layout.c (show_source_disasm_command): Use
4036 reset_locator.
4037 (reset_locator): New function.
4038 (init_and_make_win): Remove.
4039 (show_source_or_disasm_and_command): Use reset_locator.
4040
4041 2019-07-17 Tom Tromey <tom@tromey.com>
4042
4043 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4044 condition.
4045 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4046 Remove condition.
4047 * tui/tui-source.c (tui_source_window_base::reset): New method.
4048 * tui/tui-layout.c (make_command_window): Don't call
4049 init_and_make_win.
4050 (make_source_window, make_disasm_window): Don't call
4051 make_source_or_disasm_window.
4052 (make_data_window): Don't call init_and_make_win. Change calling
4053 convention.
4054 (show_source_disasm_command, show_data): Simplify.
4055 (make_source_or_disasm_window): Remove.
4056 (show_source_or_disasm_and_command): Simplify.
4057 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4058 (struct tui_source_window_base) <reset>: Likewise.
4059 <execution_info>: Remove initializer.
4060 * tui/tui-data.c (tui_source_window_base): Initialize
4061 execution_info.
4062
4063 2019-07-17 Tom Tromey <tom@tromey.com>
4064
4065 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4066 variable.
4067
4068 2019-07-17 Tom Tromey <tom@tromey.com>
4069
4070 * tui/tui.c (tui_rl_other_window): Update.
4071 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4072 superclass method first. Always iterate over regs_content.
4073 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4074 method.
4075 * tui/tui-win.c (tui_set_focus_command): Update.
4076
4077 2019-07-17 Tom Tromey <tom@tromey.com>
4078
4079 * tui/tui-win.c (tui_set_focus_command): Rename from
4080 tui_set_focus. Call tui_enable.
4081 (tui_set_focus_command): Remove.
4082
4083 2019-07-17 Tom Tromey <tom@tromey.com>
4084
4085 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4086 refresh_window.
4087 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4088 touchwin.
4089 (tui_data_window::refresh_window): Call refresh_window on data
4090 items. Always call superclass refresh_window.
4091 (tui_win_info::refresh): Remove.
4092 (tui_source_window_base::refresh_window): Update.
4093 (tui_refresh_all): Update.
4094 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4095 refresh_window.
4096 (show_source_or_disasm_and_command): Likewise.
4097 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4098 (struct tui_source_window_base) <refresh>: Likewise.
4099
4100 2019-07-17 Tom Tromey <tom@tromey.com>
4101
4102 * tui/tui-winsource.c (tui_clear_source_content)
4103 (tui_show_source_content): Update.
4104 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4105 whether content is empty.
4106 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4107 Remove.
4108
4109 2019-07-17 Tom Tromey <tom@tromey.com>
4110
4111 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4112 window's contents.
4113 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4114 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4115
4116 2019-07-17 Tom Tromey <tom@tromey.com>
4117
4118 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4119 (struct tui_data_item_window): Update.
4120
4121 2019-07-17 Tom Tromey <tom@tromey.com>
4122
4123 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4124 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4125 defines.
4126
4127 2019-07-17 Tom Tromey <tom@tromey.com>
4128
4129 * tui/tui-winsource.h (tui_erase_source_content)
4130 (tui_clear_source_content): Remove "display_prompt" parameter.
4131 * tui/tui-winsource.c (tui_update_source_window_as_is)
4132 (tui_update_source_windows_with_addr): Update.
4133 (tui_clear_source_content): Remove "display_prompt" parameter.
4134 (tui_erase_source_content): Likewise. Simplify.
4135 (tui_show_source_content): Update.
4136 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4137 * tui/tui-stack.c (tui_show_frame_info): Update.
4138 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4139 Remove defines.
4140
4141 2019-07-17 Tom Tromey <tom@tromey.com>
4142
4143 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4144 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4145 parameter.
4146 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4147 parameter.
4148
4149 2019-07-17 Tom Tromey <tom@tromey.com>
4150
4151 * tui/tui-winsource.c (tui_clear_source_content)
4152 (tui_show_source_content, tui_show_exec_info_content)
4153 (tui_clear_exec_info_content): Update.
4154 * tui/tui-stack.c (tui_show_locator_content): Update.
4155 (tui_show_frame_info): Update.
4156 * tui/tui-source.h (tui_source_window): Don't declare.
4157 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4158 from tui_source_is_displayed.
4159 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4160 Remove field.
4161 (struct tui_source_window_base) <content_in_use>: New field. Now
4162 bool.
4163 (struct tui_source_window) <showing_source_p>: New method.
4164 (TUI_SRC_WIN): Change cast.
4165 * tui/tui-data.c (tui_initialize_static_data): Update.
4166
4167 2019-07-17 Tom Tromey <tom@tromey.com>
4168
4169 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4170 location_matches_p.
4171 * tui/tui-source.c (tui_source_window::location_matches_p): New
4172 method.
4173 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4174 method.
4175 * tui/tui-data.h (struct tui_source_window_base)
4176 <location_matches_p>: New method.
4177 (struct tui_source_window, struct tui_disasm_window)
4178 <location_matches_p>: Likewise.
4179
4180 2019-07-17 Tom Tromey <tom@tromey.com>
4181
4182 * tui/tui-win.c (tui_set_win_height_command): Rename from
4183 tui_set_win_height.
4184 (tui_set_win_height_command): Remove.
4185
4186 2019-07-17 Tom Tromey <tom@tromey.com>
4187
4188 * tui/tui-source.c (tui_source_window): New constructor. Add
4189 observer.
4190 (~tui_source_window): New destructor.
4191 (tui_source_window::style_changed): New method.
4192 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4193 (tui_attach_detach_observers): Update.
4194 * tui/tui-data.h (struct tui_source_window): Make constructor not
4195 inline. Add destructor.
4196 (struct tui_source_window) <style_changed>: New method.
4197 <m_observable>: New member.
4198
4199 2019-07-17 Tom Tromey <tom@tromey.com>
4200
4201 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4202 * tui/tui-win.c (tui_resize_all): Fix typo.
4203
4204 2019-07-17 Tom Tromey <tom@tromey.com>
4205
4206 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4207 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4208 (tui_refresh_all): Remove "list" parameter. Use foreach.
4209 * tui/tui-win.c (window_name_completer): Use foreach.
4210 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4211 (update_tab_width): Likewise.
4212 * tui/tui-layout.c (show_layout): Update.
4213 * tui/tui-data.h (class tui_window_iterator): New.
4214 (struct all_tui_windows): New.
4215 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4216
4217 2019-07-17 Tom Tromey <tom@tromey.com>
4218
4219 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4220 parameter. Don't reference globals.
4221 (tui_reg_command): Update.
4222
4223 2019-07-17 Tom Tromey <tom@tromey.com>
4224
4225 * tui/tui-regs.c (tui_show_registers): Simplify.
4226
4227 2019-07-17 Tom Tromey <tom@tromey.com>
4228
4229 * tui/tui-regs.c (tui_show_registers): Update.
4230 (tui_show_register_group): Add win_info parameter.
4231
4232 2019-07-17 Tom Tromey <tom@tromey.com>
4233
4234 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4235 Rename from tui_display_reg_element_at_line.
4236 (tui_data_window::display_registers_from_line): Update.
4237 * tui/tui-data.h (struct tui_data_window)
4238 <display_reg_element_at_line>: New method.
4239
4240 2019-07-17 Tom Tromey <tom@tromey.com>
4241
4242 * tui/tui-regs.h (tui_display_registers_from)
4243 (tui_display_registers_from_line): Don't declare.
4244 * tui/tui-windata.c (tui_data_window::display_all_data)
4245 (tui_data_window::refresh_all)
4246 (tui_data_window::do_scroll_vertical): Update.
4247 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4248 from tui_display_registers_from.
4249 (tui_display_reg_element_at_line): Update.
4250 (tui_data_window::display_registers_from_line): Rename from
4251 tui_display_registers_from_line.
4252 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4253 display_registers_from_line>: New methods.
4254
4255 2019-07-17 Tom Tromey <tom@tromey.com>
4256
4257 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4258 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4259 from tui_erase_data_content.
4260 (tui_data_window::display_all_data)
4261 (tui_data_window::refresh_all)
4262 (tui_data_window::do_scroll_vertical): Update.
4263 * tui/tui-regs.c (tui_show_registers): Update.
4264 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4265 New method.
4266
4267 2019-07-17 Tom Tromey <tom@tromey.com>
4268
4269 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4270 declare.
4271 * tui/tui-windata.c
4272 (tui_data_window::delete_data_content_windows): Rename from
4273 tui_delete_data_content_windows.
4274 (tui_data_window::display_all_data)
4275 (tui_data_window::do_scroll_vertical): Update.
4276 * tui/tui-data.h (struct tui_data_window)
4277 <delete_data_content_windows>: New method.
4278
4279 2019-07-17 Tom Tromey <tom@tromey.com>
4280
4281 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4282 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4283
4284 2019-07-17 Tom Tromey <tom@tromey.com>
4285
4286 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4287 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4288 from tui_display_all_data.
4289 * tui/tui-win.c
4290 (tui_data_window::do_make_visible_with_new_height): Update.
4291 * tui/tui-regs.c (tui_show_registers): Update.
4292 * tui/tui-layout.c (tui_set_layout): Update.
4293 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4294 method.
4295
4296 2019-07-17 Tom Tromey <tom@tromey.com>
4297
4298 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4299 * tui/tui-windata.c (tui_display_data_from): Remove.
4300 (tui_data_window::refresh_all): Update.
4301
4302 2019-07-17 Tom Tromey <tom@tromey.com>
4303
4304 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4305 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4306 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4307 tui_display_registers_from_line.
4308 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4309 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4310 "force_display" parameter.
4311
4312 2019-07-17 Tom Tromey <tom@tromey.com>
4313
4314 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4315 declare.
4316 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4317 Rename from tui_first_reg_element_no_inline.
4318 (tui_display_reg_element_at_line)
4319 (tui_display_registers_from_line): Update.
4320 * tui/tui-data.h (struct tui_data_window)
4321 <first_reg_element_no_inline>: New method.
4322
4323 2019-07-17 Tom Tromey <tom@tromey.com>
4324
4325 * tui/tui-windata.c (tui_display_data_from)
4326 (tui_data_window::do_scroll_vertical): Update.
4327 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4328 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4329 Rename from tui_line_from_reg_element_no.
4330 (tui_display_registers_from_line): Update.
4331 * tui/tui-data.h (struct tui_data_window)
4332 <line_from_reg_element_no>: New method.
4333
4334 2019-07-17 Tom Tromey <tom@tromey.com>
4335
4336 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4337 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4338 tui_last_regs_line_no.
4339 (tui_display_reg_element_at_line)
4340 (tui_display_registers_from_line): Update.
4341 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4342 method.
4343
4344 2019-07-17 Tom Tromey <tom@tromey.com>
4345
4346 PR tui/24722:
4347 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4348 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4349 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4350 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4351 (tui_update_breakpoint_info): Likewise.
4352 * tui/tui-hooks.c (tui_event_create_breakpoint)
4353 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4354 Update.
4355
4356 2019-07-17 Tom Tromey <tom@tromey.com>
4357
4358 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4359
4360 2019-07-17 Tom Tromey <tom@tromey.com>
4361
4362 * tui/tui-winsource.c (tui_update_source_window_as_is)
4363 (tui_update_source_windows_with_addr): Update.
4364 * tui/tui-source.h (tui_set_source_content)
4365 (tui_show_symtab_source): Add "win_info" parameter.
4366 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4367 parameter.
4368 (tui_show_symtab_source): Likewise.
4369
4370 2019-07-17 Tom Tromey <tom@tromey.com>
4371
4372 * tui/tui-wingeneral.c
4373 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4374
4375 2019-07-17 Tom Tromey <tom@tromey.com>
4376
4377 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4378 (struct tui_cmd_window) <can_scroll>: New method.
4379 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4380 method.
4381
4382 2019-07-17 Tom Tromey <tromey@adacore.com>
4383
4384 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4385 do_field_signed>: Rename. Change type of "value".
4386 * ui-out.c (ui_out::field_signed): Rename from field_int.
4387 Change type of "value".
4388 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4389 type of "value".
4390 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4391 do_field_int. Change type of "value".
4392 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4393 do_field_int. Change type of "value".
4394 * tracepoint.c (trace_status_mi, tfind_1)
4395 (print_one_static_tracepoint_marker): Update.
4396 * thread.c (print_thread_info_1, print_selected_thread_frame):
4397 Update.
4398 * stack.c (print_frame, print_frame_info): Update.
4399 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4400 Update.
4401 * source.c (print_source_lines_base): Update.
4402 * skip.c (info_skip_command): Update.
4403 * record-btrace.c (btrace_ui_out_decode_error)
4404 (btrace_call_history_src_line): Update.
4405 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4406 Update.
4407 * progspace.c (print_program_space): Update.
4408 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4409 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4410 do_field_int. Change type of "value".
4411 * mi/mi-out.c (mi_ui_out::do_table_begin)
4412 (mi_ui_out::do_table_header): Update.
4413 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4414 type of "value".
4415 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4416 (mi_cmd_data_list_changed_registers, output_register)
4417 (mi_cmd_data_read_memory, mi_load_progress)
4418 (mi_cmd_trace_frame_collected): Update.
4419 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4420 Update.
4421 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4422 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4423 (mi_cmd_var_list_children, varobj_update_one): Update.
4424 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4425 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4426 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4427 * inferior.c (print_inferior): Update.
4428 * gdb_bfd.c (print_one_bfd): Update.
4429 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4430 Update.
4431 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4432 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4433 do_field_int. Change type of "value".
4434 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4435 do_field_int. Change type of "value".
4436 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4437 (print_one_breakpoint_location, print_it_catch_fork)
4438 (print_one_catch_fork, print_it_catch_vfork)
4439 (print_one_catch_vfork, print_it_catch_solib)
4440 (print_it_catch_exec, print_it_ranged_breakpoint)
4441 (print_mention_watchpoint, print_mention_masked_watchpoint)
4442 (bkpt_print_it, update_static_tracepoint): Update.
4443 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4444 * break-catch-syscall.c (print_it_catch_syscall): Update.
4445 * ada-tasks.c (print_ada_task_info): Update.
4446 * ada-lang.c (print_it_exception, print_mention_exception):
4447 Update.
4448
4449 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4450
4451 PR breakpoints/24541
4452 * gdbarch.c: Regenerate.
4453 * gdbarch.h: Regenerate.
4454 * gdbarch.sh: Adjust return type and parameter types for
4455 'stap_adjust_register'.
4456 (i386_stap_adjust_register): Adjust signature and return new
4457 register name.
4458 * stap-probe.c (stap_parse_register_operand): Adjust use of
4459 'gdbarch_stap_adjust_register'.
4460
4461 2019-07-17 Tom Tromey <tromey@adacore.com>
4462
4463 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4464 declare VEC.
4465 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4466 std::vector.
4467 (struct s390_process_info): Add initializers.
4468 (s390_add_process): Use new.
4469 (s390_linux_nat_target::low_forget_process): Use delete.
4470 (s390_linux_nat_target::low_new_fork)
4471 (s390_linux_nat_target::stopped_by_watchpoint)
4472 (s390_linux_nat_target::low_prepare_to_resume)
4473 (s390_linux_nat_target::insert_watchpoint)
4474 (s390_linux_nat_target::insert_hw_breakpoint)
4475 (s390_linux_nat_target::remove_watchpoint)
4476 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4477
4478 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4479
4480 * aarch64-fbsd-nat.c: Include regcache.h.
4481 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4482 argument.
4483 (aarch64_fbsd_nat_target::fetch_registers)
4484 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4485 variable.
4486 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4487
4488 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4489
4490 * fbsd-nat.c: Include gdbarch.h.
4491
4492 2019-07-15 Tom Tromey <tromey@adacore.com>
4493
4494 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4495
4496 2019-07-15 Tom Tromey <tromey@adacore.com>
4497
4498 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4499 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4500 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4501 * cli-out.c (cli_ui_out::do_field_int): New method.
4502 * ui-out.c (ui_out::field_unsigned): New method.
4503 * symfile.c (generic_load): Use field_unsigned.
4504 (print_transfer_performance): Likewise.
4505 * record-btrace.c (ui_out_field_uint): Remove.
4506 (btrace_call_history_insn_range, btrace_call_history): Use
4507 field_unsigned.
4508 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4509 field_unsigned.
4510 * ui-out.h (class ui_out) <field_unsigned>: New method.
4511 <do_field_unsigned>: Likewise.
4512
4513 2019-07-15 Tom Tromey <tromey@adacore.com>
4514
4515 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4516 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4517 * target.c (flash_erase_command): Use field_string.
4518 * infrun.c (print_signal_received_reason): Use field_string.
4519 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4520 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4521 field_string.
4522 * ada-tasks.c (print_ada_task_info): Use field_string.
4523
4524 2019-07-15 Tom Tromey <tromey@adacore.com>
4525
4526 * target.c (flash_erase_command): Use field_core_addr.
4527 * symfile.c (generic_load): Use field_core_addr.
4528 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4529 Use field_core_addr.
4530 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4531 field_core_addr.
4532
4533 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4534
4535 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4536 value if its desired type is smaller than a CORE_ADDR and signed.
4537
4538 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4539
4540 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4541 of changes to field names, and use new is_reference field to
4542 decide if a property is a reference or not.
4543 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4544 field.
4545 (struct dwarf2_property_baton): Update header comment, rename
4546 'referenced_type' to 'property_type' and update comments.
4547 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4548 default property type, store in property baton, update to take
4549 accound of renamed field.
4550 (read_func_scope): Update call to attr_to_dynamic_prop.
4551 (read_array_type): Likewise.
4552 (dwarf2_per_cu_addr_sized_int_type): New function.
4553 (read_subrange_index_type): Move type finding code to
4554 dwarf2_per_cu_addr_sized_int_type.
4555 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4556 (dwarf2_per_cu_addr_type): New function.
4557 (set_die_type): Update calls to attr_to_dynamic_prop.
4558
4559 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4560
4561 * dwarf2read.c (read_subrange_index_type): New function.
4562 (read_subrange_type): Move code into new function and call it.
4563 * gdbtypes.c (create_range_type): Add some asserts.
4564
4565 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4566
4567 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4568 update return statements.
4569 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4570 declaration, and update comment to match.
4571 * gdbtypes.c (resolve_dynamic_array): Update call to
4572 dwarf2_evaluate_property to match new return type.
4573
4574 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4575
4576 * valarith.c (value_subscripted_rvalue): Change lowerbound
4577 parameter type from int to LONGEST.
4578 * value.h (value_subscripted_rvalue): Likewise in declaration.
4579
4580 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4581
4582 * cli/cli-utils.c (info_print_command_completer): New function.
4583 * cli/cli-utils.h: Add 'completer.h' include, and forward
4584 declaration for 'struct cmd_list_element'.
4585 (info_print_command_completer): Declare.
4586 * stack.c (_initialize_stack): Add completer for 'info locals' and
4587 'info args'.
4588 * symtab.c (_initialize_symtab): Add completer for 'info
4589 variables' and 'info functions'.
4590 * NEWS: Mention completion for additional info commands.
4591
4592 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4593
4594 * cli/cli-utils.c (extract_info_print_args): Delete.
4595 (extract_arg_maybe_quoted): Delete.
4596 (info_print_options_defs): New variable.
4597 (make_info_print_options_def_group): New function.
4598 (extract_info_print_options): Define new function.
4599 * cli/cli-utils.h (extract_info_print_args): Delete.
4600 (struct info_print_options): New structure.
4601 (extract_info_print_options): Declare new function.
4602 * stack.c (info_locals_command): Update to use new
4603 extract_info_print_options, also add a header comment.
4604 (info_args_command): Likewise.
4605 * symtab.c (info_variables_command): Likewise.
4606 (info_functions_command): Likewise.
4607
4608 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4609
4610 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4611 to extract string arguments.
4612 * common/common-utils.c (extract_string_maybe_quoted): New function.
4613 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4614
4615 2019-07-11 Tom Tromey <tromey@adacore.com>
4616
4617 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4618 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4619 * top.h (gdbinit): Don't declare.
4620 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4621 into...
4622 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4623 * top.c (gdb_init): Don't call init_cli_cmds.
4624 (gdbinit): Remove.
4625 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4626
4627 2019-07-11 Tom Tromey <tromey@adacore.com>
4628
4629 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4630 after it has been moved.
4631
4632 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4633
4634 * valops.c (value_must_coerce_to_target): Change return type to
4635 bool.
4636 * value.h (value_must_coerce_to_target): Likewise.
4637
4638 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
4639
4640 * breakpoint.c (is_hardware_watchpoint): Remove
4641 forward-declaration.
4642 (is_masked_watchpoint): Change return type to bool.
4643 (is_tracepoint): Likewise.
4644 (is_breakpoint): Likewise.
4645 (is_hardware_watchpoint): Likewise.
4646 (is_watchpoint): Likewise.
4647 (is_no_memory_software_watchpoint): Likewise.
4648 (is_catchpoint): Likewise.
4649 (breakpoint_1): Make FILTER parameter's return type bool.
4650 is_masked_watchpoint): Change return type to bool.
4651 (save_breakpoints): Make FILTER parameter's return type bool.
4652 * breakpoint.h (is_breakpoint): Change return type to bool.
4653 (is_watchpoint): Likewise.
4654 (is_catchpoint): Likewise.
4655 (is_tracepoint): Likewise.
4656
4657 2019-07-10 Tom Tromey <tom@tromey.com>
4658
4659 * defs.h: Don't include gdbarch.h.
4660 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4661 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4662 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4663 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4664 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4665 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4666 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4667 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4668 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4669 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4670 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4671 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4672 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4673 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4674 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4675 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4676 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4677 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4678 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4679 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4680 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4681 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4682 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4683 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4684 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4685 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4686 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4687
4688 2019-07-10 Tom Tromey <tromey@adacore.com>
4689
4690 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4691 * breakpoint.c (init_ada_exception_breakpoint): Register as
4692 bp_catchpoint.
4693 (print_one_breakpoint_location, print_one_breakpoint): Use
4694 is_ada_exception_catchpoint.
4695 * ada-lang.c (class ada_catchpoint_location): Pass
4696 bp_loc_software_breakpoint to bp_location constructor.
4697 (is_ada_exception_catchpoint): New function.
4698
4699 2019-07-10 Tom Tromey <tromey@adacore.com>
4700
4701 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4702 VEC.
4703 (struct arm_exidx_entry): New method operator<.
4704 (struct arm_exidx_data) <section_maps>: Change type.
4705 (arm_exidx_data_free): Remove.
4706 (arm_exidx_data_key): Change type. Move lower.
4707 (arm_exidx_new_objfile): Update.
4708 (arm_compare_exidx_entries): Remove.
4709 (arm_find_exidx_entry, _initialize_arm_tdep)
4710
4711 2019-07-10 Tom Tromey <tromey@adacore.com>
4712
4713 * solib-spu.c (ocl_program_data_key): Change type.
4714 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4715 Update.
4716
4717 2019-07-10 Tom Tromey <tromey@adacore.com>
4718
4719 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4720 (struct solib_aix_inferior_data) <library_list>: Change type.
4721 (solib_aix_inferior_data_handle): Change type.
4722 (get_solib_aix_inferior_data): Update.
4723 (solib_aix_free_library_list): Remove.
4724 (library_list_start_library): Update.
4725 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4726 return type.
4727 (solib_aix_get_library_list)
4728 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4729 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4730
4731 2019-07-10 Tom Tromey <tromey@adacore.com>
4732
4733 * solib-dsbt.c (struct dsbt_info): Add initializers.
4734 (solib_dsbt_pspace_data): Change type.
4735 (dsbt_pspace_data_cleanup): Remove.
4736 (get_dsbt_info, _initialize_dsbt_solib): Update.
4737
4738 2019-07-10 Tom Tromey <tromey@adacore.com>
4739
4740 * spu-tdep.c (spu_overlay_data): Change type.
4741 (spu_get_overlay_table, spu_overlay_new_objfile)
4742 (_initialize_spu_tdep): Update.
4743
4744 2019-07-10 Tom Tromey <tromey@adacore.com>
4745
4746 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4747 destructor.
4748 (dbx_objfile_data_key): Change type and declare later.
4749 (DBX_SYMFILE_INFO): Rewrite.
4750 * dbxread.c (dbx_objfile_data_key): Change type.
4751 (dbx_symfile_init): Update.
4752 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4753 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4754 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4755
4756 2019-07-10 Tom Tromey <tromey@adacore.com>
4757
4758 * jit.c (jit_program_space_key): Change type. Move lower.
4759 (get_jit_program_space_data): Update.
4760 (jit_program_space_data_cleanup): Remove.
4761 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4762 Update.
4763 (struct jit_program_space_data): Add initializers.
4764
4765 2019-07-10 Tom Tromey <tromey@adacore.com>
4766
4767 * solib-darwin.c (struct darwin_info): Add initializers.
4768 (solib_darwin_pspace_data): Change type.
4769 (darwin_pspace_data_cleanup): Remove.
4770 (get_darwin_info, _initialize_darwin_solib): Update.
4771
4772 2019-07-10 Tom Tromey <tromey@adacore.com>
4773
4774 * remote-sim.c (struct sim_inferior_data): Add initializers,
4775 constructor, and destructor.
4776 (sim_inferior_data_key): Change type. Move lower.
4777 (check_for_duplicate_sim_descriptor): Update.
4778 (get_sim_inferior_data): Use new. Update.
4779 (~sim_inferior_data_cleanup): Rename from
4780 sim_inferior_data_cleanup. Simplify.
4781 (gdbsim_close_inferior, simulator_command)
4782 (sim_command_completer, _initialize_remote_sim): Update.
4783 (next_pid, INITIAL_PID): Move earlier.
4784
4785 2019-07-10 Tom Tromey <tromey@adacore.com>
4786
4787 * python/python-internal.h (create_thread_object): Return
4788 gdbpy_ref.
4789 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4790 * python/py-inferior.c (struct threadlist_entry): Add
4791 constructor.
4792 <thread_obj>: Now a gdbpy_ref.
4793 (thread_to_thread_object): Update.
4794 (add_thread_object): Use new.
4795 (delete_thread_object): Use delete.
4796 (infpy_threads): Update.
4797 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4798 GIL.
4799
4800 2019-07-10 Tom Tromey <tromey@adacore.com>
4801
4802 * valops.c (value_cast): Specialize error message for Ada.
4803
4804 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4805
4806 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4807
4808 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4809
4810 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4811 bpstat_should_step): Return bool, adjust comments.
4812 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4813 bpstat_should_step): Likewise.
4814
4815 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4816
4817 * features/Makefile: Use feature target descriptions for Arm.
4818 * features/arm/arm-core.c: Generate new file.
4819 * features/arm/arm-fpa.c: Likewise.
4820 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4821 * features/arm/arm-m-profile.c: Likewise.
4822 * features/arm/arm-vfpv2.c: Likewise.
4823 * features/arm/arm-vfpv3.c: Likewise.
4824 * features/arm/xscale-iwmmxt.c: Likewise.
4825 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4826
4827 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4828
4829 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4830 ptrace earlier.
4831
4832 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4833
4834 * features/aarch64-pauth.c: Regenerate.
4835
4836 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4837
4838 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4839 bool.
4840 (bpstat_what): Use false instead of 0.
4841
4842 2019-07-09 Pedro Alves <palves@redhat.com>
4843
4844 * break-catch-throw.c (is_exception_catchpoint): New.
4845 * breakpoint.c (print_one_breakpoint_location): New parameter
4846 'raw_loc'. Handle it. Use
4847 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4848 looking at the breakpoint's type.
4849 (print_one_breakpoint): If handling "maint info breakpoints", also
4850 print locations of exception catchpoints.
4851 * breakpoint.h (is_exception_catchpoint): Declare.
4852
4853 2019-07-09 Pedro Alves <palves@redhat.com>
4854
4855 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4856 "addr" field.
4857 (allocate_location_exception_catchpoint): New.
4858 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4859 (initialize_throw_catchpoint_ops): Install
4860 allocate_location_exception_catchpoint as allocate_location
4861 method.
4862 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4863 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4864 bp_loc_other.
4865 (breakpoint_address_is_meaningful): Delete.
4866 (bl_address_is_meaningful): New.
4867 (breakpoint_locations_match): Adjust comment.
4868 (bp_location_from_bp_type): New, factored out of...
4869 (bp_location::bp_location(breakpoint *)): ... this.
4870 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4871 factored out of...
4872 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4873 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4874 breakpoint_address_is_meaningful.
4875 (bp_locations_compare): Adjust comment.
4876 (update_global_location_list): Use bl_address_is_meaningful
4877 instead of breakpoint_address_is_meaningful.
4878 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4879 explicit.
4880 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4881 * python/py-breakpoint.c (bppy_get_location): No longer check
4882 whether location is null.
4883
4884 2019-07-09 Pedro Alves <palves@redhat.com>
4885
4886 PR c++/15468
4887 * breakpoint.c (print_one_breakpoint_location): Remove
4888 single-location assert.
4889
4890 2019-07-09 Tom Tromey <tom@tromey.com>
4891
4892 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4893 * configure: Rebuild.
4894 * configure.ac: Change common to gdbsupport.
4895 * gdbsupport: Rename from common.
4896 * acinclude.m4: Change common to gdbsupport.
4897 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4898 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4899 gdbsupport.
4900 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4901 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4902 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4903 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4904 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4905 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4906 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4907 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4908 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4909 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4910 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4911 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4912 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4913 coff-pe-read.c, command.h, compile/compile-c-support.c,
4914 compile/compile-c.h, compile/compile-cplus-symbols.c,
4915 compile/compile-cplus-types.c, compile/compile-cplus.h,
4916 compile/compile-loc2c.c, compile/compile.c, completer.c,
4917 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4918 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4919 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4920 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4921 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4922 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4923 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4924 features/aarch64-core.c, features/aarch64-fpu.c,
4925 features/aarch64-pauth.c, features/aarch64-sve.c,
4926 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4927 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4928 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4929 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4930 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4931 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4932 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4933 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4934 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4935 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4936 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4937 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4938 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4939 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4940 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4941 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4942 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4943 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4944 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4945 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4946 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4947 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4948 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4949 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4950 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4951 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4952 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4953 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4954 minsyms.c, mips-linux-tdep.c, namespace.h,
4955 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4956 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4957 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4958 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4959 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4960 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4961 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4962 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4963 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4964 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4965 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4966 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4967 procfs.c, producer.c, progspace.h, psymtab.h,
4968 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4969 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4970 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4971 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4972 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4973 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4974 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4975 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4976 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4977 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4978 target-memory.c, target.c, target.h, target/waitstatus.c,
4979 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4980 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4981 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4982 unittests/array-view-selftests.c,
4983 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4984 unittests/common-utils-selftests.c,
4985 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4986 unittests/format_pieces-selftests.c,
4987 unittests/function-view-selftests.c,
4988 unittests/lookup_name_info-selftests.c,
4989 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4990 unittests/mkdir-recursive-selftests.c,
4991 unittests/observable-selftests.c,
4992 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4993 unittests/parse-connection-spec-selftests.c,
4994 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4995 unittests/scoped_fd-selftests.c,
4996 unittests/scoped_mmap-selftests.c,
4997 unittests/scoped_restore-selftests.c,
4998 unittests/string_view-selftests.c, unittests/style-selftests.c,
4999 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5000 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5001 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5002 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5003 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5004 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5005
5006 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5007
5008 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5009 bool value.
5010 (decode_digits_ordinary): Set explicit_line field in sal.
5011 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5012 symtab_and_line that was set on an explicit line number in
5013 assembler code. Do always update the recorded symtab and line if
5014 we do skip the prologue.
5015
5016 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5017
5018 * breakpoint.c (set_breakpoint_location_function): Remove
5019 explicit_loc parameter.
5020 (momentary_breakpoint_from_master): Update call to
5021 set_breakpoint_location_function.
5022 (add_location_to_breakpoint): Likewise.
5023
5024 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5025
5026 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5027 required features based on default bfd type when no specific bfd
5028 is present.
5029
5030 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5031
5032 * NEWS: Mention that GDB printf and eval commands can now print
5033 C-style and Ada-style convenience var strings without
5034 calling the inferior.
5035 * printcmd.c (printf_c_string): Locally print GDB internal var
5036 instead of transiting via the inferior.
5037 (printf_wide_c_string): Likewise.
5038
5039 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5040
5041 PR breakpoints/25011
5042 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5043
5044 2019-07-04 Tom Tromey <tom@tromey.com>
5045
5046 PR tui/24724:
5047 * tui/tui-winsource.c (tui_clear_source_content): Update.
5048 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5049 (tui_update_breakpoint_info): Update.
5050 (tui_set_exec_info_content): Update.
5051 * tui/tui-source.c (tui_set_source_content_nil): Update.
5052 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5053 has_break.
5054 * tui/tui-data.h (enum tui_bp_flag): New.
5055 (tui_bp_flags): New enum flags type.
5056 (struct tui_source_element) <break_mode>: Change type. Rename
5057 from has_break.
5058 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5059 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5060 constants.
5061 * tui/tui-winsource.h: Fix comment.
5062
5063 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5064
5065 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5066 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5067 (store_fpregs_to_thread)
5068 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5069 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5070 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5071 (IWMMXT_REGS_SIZE): Add define.
5072 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5073 (fetch_vfp_regs, store_vfp_regs)
5074 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5075 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5076
5077 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5078
5079 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5080 defines.
5081 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5082 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5083 (ARM_INT_REGISTER_SIZE): ...to this.
5084 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5085 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5086 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5087 (arm_linux_collect_gregset, supply_nwfpe_register)
5088 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5089 defines.
5090 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5091 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5092 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5093 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5094 (arm_return_in_memory, arm_store_return_value)
5095 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5096 (arm_record_ld_st_multiple): Likewise.
5097 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5098 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5099
5100 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5101
5102 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5103 AARCH64_DISPLACED_MODIFIED_INSNS.
5104 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5105 (aarch64_displaced_step_copy_insn): Likewise.
5106 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5107 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5108 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5109 ARM_DISPLACED_MODIFIED_INSNS.
5110 * arm-tdep.c (arm_gdbarch_init): Likewise.
5111 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5112 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5113 (struct arm_displaced_step_closure): Use
5114 ARM_DISPLACED_MODIFIED_INSNS.
5115
5116 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5117
5118 * features/Makefile: Remove unused xml files.
5119 * features/aarch64.xml: Remove.
5120 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5121 * features/i386/amd64-avx-avx512.xml: Remove.
5122 * features/i386/amd64-avx-linux.xml: Remove.
5123 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5124 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5125 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5126 * features/i386/amd64-avx-mpx.xml: Remove.
5127 * features/i386/amd64-avx.xml: Remove.
5128 * features/i386/amd64-linux.xml: Remove.
5129 * features/i386/amd64-mpx-linux.xml: Remove.
5130 * features/i386/amd64-mpx.xml: Remove.
5131 * features/i386/amd64.xml: Remove.
5132 * features/i386/i386-avx-avx512-linux.xml: Remove.
5133 * features/i386/i386-avx-avx512.xml: Remove.
5134 * features/i386/i386-avx-linux.xml: Remove.
5135 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5136 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5137 * features/i386/i386-avx-mpx-linux.xml: Remove.
5138 * features/i386/i386-avx-mpx.xml: Remove.
5139 * features/i386/i386-avx.xml: Remove.
5140 * features/i386/i386-linux.xml: Remove.
5141 * features/i386/i386-mmx-linux.xml: Remove.
5142 * features/i386/i386-mmx.xml: Remove.
5143 * features/i386/i386-mpx-linux.xml: Remove.
5144 * features/i386/i386-mpx.xml: Remove.
5145 * features/i386/i386.xml: Remove.
5146 * features/i386/x32-avx-avx512-linux.xml: Remove.
5147 * features/i386/x32-avx-linux.xml: Remove.
5148 * features/i386/x32-linux.xml: Remove.
5149
5150 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5151
5152 * regformats/aarch64.dat: Remove.
5153 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5154 * regformats/i386/amd64-avx-linux.dat: Remove.
5155 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5156 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5157 * regformats/i386/amd64-linux.dat: Remove.
5158 * regformats/i386/amd64-mpx-linux.dat: Remove.
5159 * regformats/i386/amd64.dat: Remove.
5160 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5161 * regformats/i386/i386-avx-linux.dat: Remove.
5162 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5163 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5164 * regformats/i386/i386-linux.dat: Remove.
5165 * regformats/i386/i386-mmx-linux.dat: Remove.
5166 * regformats/i386/i386-mpx-linux.dat: Remove.
5167 * regformats/i386/i386.dat: Remove.
5168 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5169 * regformats/i386/x32-avx-linux.dat: Remove.
5170 * regformats/i386/x32-linux.dat: Remove.
5171
5172 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5173
5174 * aarch64-tdep.c: Remove xml self tests.
5175 * amd64-linux-tdep.c: Likewise.
5176 * amd64-tdep.c: Likewise.
5177 * i386-linux-tdep.c: Likewise.
5178 * i386-tdep.c: Likewise.
5179
5180 2019-07-03 Pedro Alves <palves@redhat.com>
5181
5182 PR cli/24732
5183 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5184 (pipe_cmd_option_defs): New.
5185 (make_pipe_cmd_options_def_group): New.
5186 (pipe_command): Use gdb::option::process_options.
5187 (pipe_command_completer): New function.
5188 (_initialize_cli_cmds): Install completer for "pipe" command.
5189
5190 2019-07-03 Pedro Alves <palves@redhat.com>
5191
5192 * cli/cli-option.c (union option_value) <string>: New field.
5193 (struct option_def_and_value): Add ctor, move ctor, dtor and
5194 use DISABLE_COPY_AND_ASSIGN.
5195 (option_def_and_value::clear_value): New.
5196 (parse_option, save_option_value_in_ctx, get_val_type_str)
5197 (add_setshow_cmds_for_options): Handle var_string.
5198 * cli-option.h (union option_def::var_address) <string>: New
5199 field.
5200 (struct string_option_def): New.
5201 * maint-test-options.c (struct test_options_opts): Add default
5202 ctor and use DISABLE_COPY_AND_ASSIGN.
5203 <string_opt>: New field.
5204 (test_options_opts::~test_options_opts): New.
5205 (test_options_opts::dump): Also dump "-string".
5206 (test_options_option_defs): Install "string.
5207
5208 2019-07-03 Pedro Alves <palves@redhat.com>
5209
5210 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5211 option_value with a null enumeration.
5212 (complete_options): Save the option values in the context.
5213 (save_option_value_in_ctx): New, factored out from ...
5214 (process_options): ... here.
5215 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5216 of the function.
5217 * maint-test-options.c (test_options_opts::dump): New, factored
5218 out from ...
5219 (maintenance_test_options_command_mode): ... here.
5220 (maintenance_test_options_command_completion_result): Delete.
5221 (maintenance_test_options_command_completion_text): Update
5222 comment.
5223 (maintenance_show_test_options_completion_result): Change
5224 prototype. Just print
5225 maintenance_test_options_command_completion_text.
5226 (save_completion_result): New.
5227 (maintenance_test_options_completer_mode): Pass options context to
5228 complete_options, and then save a dump.
5229 (_initialize_maint_test_options): Use add_cmd to install "maint
5230 show test-options-completion-result".
5231
5232 2019-07-03 Pedro Alves <palves@redhat.com>
5233
5234 * NEWS (New commands): Mention "with" and "maint with".
5235 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5236 (with_command, with_command_completer): New.
5237 (pipe_command): Adjust to new repeat_previous
5238 interface.
5239 (_initialize_cli_cmds): Install the "with" command and its "w"
5240 alias.
5241 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5242 declarations.
5243 * cli/cli-setshow.c (parse_cli_var_uinteger)
5244 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5245 argument strings for all var_types.
5246 (get_setshow_command_value_string): New, factored out from ...
5247 (do_show_command): ... this.
5248 * cli/cli-setshow.h: Include <string>.
5249 (get_setshow_command_value_string): Declare.
5250 * command.h (repeat_previous): Now returns const char *. Adjust
5251 comment.
5252 * maint.c: Include "cli/cli-cmds.h".
5253 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5254 (_initialize_maint_cmds): Register the "maintenance with" command.
5255 * top.c (repeat_previous): Move bits from pipe_command here:
5256 Return the saved command line, if any; error out if there's no
5257 command to relaunch.
5258
5259 2019-07-03 Pedro Alves <palves@redhat.com>
5260
5261 * NEWS (New commands): Mention "maint set/show test-settings"
5262 instead of "maint test-settings".
5263 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5264 (maintenance_test_settings_set_list): Rename to ...
5265 (maintenance_set_test_settings_list): ... this.
5266 (maintenance_test_settings_show_list): Rename to ...
5267 (maintenance_show_test_settings_list): ... this.
5268 (maintenance_test_settings_cmd): Delete.
5269 (maintenance_test_settings_set_cmd): ...
5270 (maintenance_set_test_settings_cmd): ... this.
5271 (maintenance_test_settings_show_cmd): ...
5272 (maintenance_show_test_settings_cmd): ... this.
5273 (maintenance_test_settings_show_value_cmd):
5274 (maintenance_show_test_settings_value_cmd): ... this.
5275 (_initialize_maint_test_settings): No longer install the "maint
5276 test-settings" prefix command. Rename "maint test-settings set"
5277 to "maint set test-settings", and "maint test-settings show" to
5278 "maint show test-settings". Adjust all subcommands.
5279
5280 2019-07-03 Pedro Alves <palves@redhat.com>
5281
5282 * maint-test-settings.c: Fix file's intro comment. Replace all
5283 references to "test-options" with references to "test-settings",
5284 in comments.
5285
5286 2019-07-03 Pedro Alves <palves@redhat.com>
5287
5288 * maint-test-settings.c (maintenance_test_settings_xxx)
5289 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5290 New.
5291 (maintenance_test_settings_enums): Use them.
5292 (maintenance_test_settings_enum): Default to
5293 maintenance_test_settings_xxx.
5294 (_initialize_maint_test_settings): Initialize
5295 MAINTENANCE_TEST_SETTINGS_FILENAME.
5296
5297 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5298
5299 * breakpoint.h (remove_breakpoints_inf): Change return type to
5300 void, move function documentation here.
5301 * breakpoint.c (remove_breakpoints_inf): Change return type to
5302 void, move function documentation to header.
5303
5304 2019-07-02 Pedro Alves <palves@redhat.com>
5305
5306 * NEWS (Completion improvements): Mention "info threads".
5307 * thread.c (struct info_threads_opts, info_threads_option_defs)
5308 (make_info_threads_options_def_group): New.
5309 (info_threads_command): Use gdb::option::process_options.
5310 (info_threads_command_completer): New.
5311 (_initialize_thread): Use gdb::option::build_help to build the
5312 help text for "info threads".
5313
5314 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5315
5316 * defs.h (generic_load): Move from here...
5317 * symfile.h (generic_load): ... to here. Rename name parameter
5318 to args.
5319 * symfile.c (generic_load): Add comment.
5320
5321 2019-07-01 Tom Tromey <tromey@adacore.com>
5322
5323 * dwarf2read.c
5324 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5325 declaration of without_params. Fix formatting.
5326
5327 2019-07-01 Tom Tromey <tromey@adacore.com>
5328
5329 * ada-exp.y (find_primitive_type): Update.
5330 * ada-lang.h (ada_lookup_symbol): Update.
5331 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5332 parameter.
5333 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5334
5335 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5336
5337 PR breakpoints/24541
5338 * gdbarch.c: Regenerate.
5339 * gdbarch.h: Regenerate.
5340 * gdbarch.sh: Add 'stap_adjust_register'.
5341 * i386-tdep.c: Include '<unordered_set>'.
5342 (i386_stap_adjust_register): New function.
5343 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5344 * stap-probe.c (stap_parse_register_operand): Call
5345 'gdbarch_stap_adjust_register'.
5346
5347 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5348
5349 PR python/24742
5350 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5351 * python/python.c (do_start_initialization): Use 'xmalloc'
5352 instead of 'PyMem_Malloc'.
5353
5354 2019-06-28 Tom Tromey <tromey@adacore.com>
5355
5356 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5357 for Ada.
5358
5359 2019-06-27 Tom Tromey <tromey@adacore.com>
5360
5361 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5362 objfile_key.
5363 (arm_find_mapping_symbol, arm_record_special_symbol)
5364 (_initialize_arm_tdep): Update.
5365 (arm_objfile_data_free): Remove.
5366
5367 2019-06-27 Tom Tromey <tromey@adacore.com>
5368
5369 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5370 to cp_print_static_field.
5371
5372 2019-06-26 Tom Tromey <tromey@adacore.com>
5373
5374 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5375 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5376 declare.
5377
5378 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5379
5380 * features/aarch64-core.c (create_feature_aarch64_core):
5381 Regenerate.
5382 * features/aarch64-core.xml: Add cpsr flags.
5383
5384 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5385
5386 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5387 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5388
5389 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5390
5391 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5392 field.
5393 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5394 use.
5395 (arm_record_special_symbol): Don't insert new symbol in sorted
5396 position, push it at the end.
5397
5398 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5399
5400 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5401 (arm_mapping_symbol_s): Remove.
5402 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5403 (arm_mapping_symbol_vec): New typedef.
5404 (struct arm_per_objfile): Add constructor.
5405 <section_maps>: Change type to
5406 std::unique_ptr<arm_mapping_symbol_vec[]>.
5407 (arm_compare_mapping_symbols): Remove.
5408 (arm_find_mapping_symbol): Adjust to section_maps type change.
5409 (arm_objfile_data_free): Call delete on arm_per_objfile.
5410 (arm_record_special_symbol): Adjust to section_maps type change.
5411 Allocate arm_per_objfile with new.
5412
5413 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5414
5415 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5416 with the command prefix.
5417
5418 2019-06-25 Tom Tromey <tom@tromey.com>
5419
5420 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5421 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5422
5423 2019-06-25 Tom Tromey <tom@tromey.com>
5424
5425 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5426 type.
5427 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5428 protected.
5429
5430 2019-06-25 Tom Tromey <tom@tromey.com>
5431
5432 * tui/tui-winsource.c
5433 (tui_source_window_base::set_is_exec_point_at): Add check against
5434 LOA_ADDRESS.
5435
5436 2019-06-25 Tom Tromey <tom@tromey.com>
5437
5438 * tui/tui-source.c (tui_set_source_content): Don't check before
5439 xfree.
5440 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5441
5442 2019-06-25 Tom Tromey <tom@tromey.com>
5443
5444 * tui/tui-winsource.h (tui_update_source_window_as_is)
5445 (tui_alloc_source_buffer, tui_line_is_displayed)
5446 (tui_addr_is_displayed): Change type of win_info.
5447 * tui/tui-winsource.c (tui_update_source_window_as_is)
5448 (tui_clear_source_content, tui_show_source_line)
5449 (tui_show_source_content, tui_source_window_base::refill)
5450 (tui_source_window_base::set_is_exec_point_at)
5451 (tui_source_window_base::set_is_exec_point_at)
5452 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5453 (tui_alloc_source_buffer, tui_line_is_displayed)
5454 (tui_addr_is_displayed): Change type of win_info. Update.
5455 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5456 (tui_source_window_base::do_make_visible_with_new_height):
5457 Update.
5458 * tui/tui-source.c (tui_set_source_content)
5459 (tui_set_source_content_nil)
5460 (tui_source_window::do_scroll_vertical): Update.
5461 * tui/tui-layout.c (show_layout): Update.
5462 * tui/tui-disasm.c (tui_set_disassem_content)
5463 (tui_disasm_window::do_scroll_vertical): Update.
5464 * tui/tui-data.h (tui_win_content): Remove.
5465 (struct tui_gen_win_info) <content, content_size>: Remove.
5466 (struct tui_source_element): Add initializers and destructor.
5467 (union tui_which_element, struct tui_win_element): Remove.
5468 (struct tui_source_window_base) <content>: New field.
5469 (struct tui_data_window): Remove destructor.
5470 (tui_alloc_content, tui_free_win_content)
5471 (tui_free_all_source_wins_content): Don't declare.
5472 * tui/tui-data.c (tui_initialize_static_data): Update.
5473 (init_content_element, tui_alloc_content): Remove.
5474 (~tui_gen_win_info): Update.
5475 (~tui_data_window, tui_free_all_source_wins_content)
5476 (tui_free_win_content, free_content, free_content_elements):
5477 Remove.
5478
5479 2019-06-25 Tom Tromey <tom@tromey.com>
5480
5481 * tui/tui-winsource.h (tui_clear_source_content)
5482 (tui_erase_source_content, tui_show_source_content): Change type
5483 of win_info.
5484 * tui/tui-winsource.c (tui_clear_source_content)
5485 (tui_erase_source_content, tui_show_source_content): Change type
5486 of win_info.
5487 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5488 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5489 win_info.
5490 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5491 win_info.
5492 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5493
5494 2019-06-25 Tom Tromey <tom@tromey.com>
5495
5496 * tui/tui-winsource.c (tui_clear_source_content)
5497 (tui_source_window_base::set_is_exec_point_at): Update.
5498 * tui/tui-source.c (tui_set_source_content_nil): Update.
5499 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5500 a bool.
5501 * tui/tui-data.c (init_content_element): Update.
5502
5503 2019-06-25 Tom Tromey <tom@tromey.com>
5504
5505 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5506 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5507 * tui/tui-layout.c (init_and_make_win): Update.
5508 * tui/tui.h (enum tui_win_type): Update.
5509 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5510 tui_win_is_auxillary.
5511 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5512 tui_win_is_auxillary.
5513
5514 2019-06-25 Tom Tromey <tom@tromey.com>
5515
5516 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5517 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5518 (tui_delete_data_content_windows, tui_display_all_data)
5519 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5520 Update.
5521 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5522 * tui/tui-regs.c (tui_last_regs_line_no)
5523 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5524 (tui_show_registers): Update.
5525 (tui_show_register_group): Return void. Update.
5526 (tui_display_registers_from, tui_display_reg_element_at_line)
5527 (tui_display_registers_from_line, tui_check_register_values):
5528 Update.
5529 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5530 member.
5531 (struct tui_data_window) <regs_content>: Now a std::vector.
5532 <regs_content_count>: Remove.
5533 (tui_add_content_elements, tui_free_data_content): Don't declare.
5534 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5535 (init_content_element): Remove DATA_WIN case. Add assert.
5536 (tui_add_content_elements): Remove.
5537 (tui_data_window): Update.
5538 (tui_free_data_content): Remove.
5539 (free_content_elements): Remove DATA_WIN case.
5540
5541 2019-06-25 Tom Tromey <tom@tromey.com>
5542
5543 * tui/tui-data.c (tui_data_item_window): Update.
5544 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5545 * tui/tui-windata.c (tui_display_all_data)
5546 (tui_display_data_from_line): Update.
5547 (tui_check_data_values): Remove.
5548 * tui/tui-regs.c (tui_show_register_group)
5549 (tui_display_reg_element_at_line): Update.
5550 * tui/tui-hooks.c (tui_register_changed)
5551 (tui_refresh_frame_and_register_information): Call
5552 tui_check_register_values.
5553 * tui/tui-data.h (struct tui_data_window) <data_content,
5554 data_content_count, data_type>: Remove.
5555 (enum tui_data_type): Remove.
5556
5557 * tui/tui-data.c (tui_data_window::clear_detail)
5558 (~tui_data_window): Update.
5559
5560 2019-06-25 Tom Tromey <tom@tromey.com>
5561
5562 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5563 declare.
5564 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5565 Rename from tui_first_data_item_displayed. Update.
5566 (tui_data_window::refresh_all)
5567 (tui_data_window::do_scroll_vertical): Update.
5568 * tui/tui-data.h (struct tui_data_window)
5569 <first_data_item_displayed>: Declare new method.
5570
5571 2019-06-25 Tom Tromey <tom@tromey.com>
5572
5573 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5574 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5575 contents...
5576 (tui_initialize_static_data): ...here.
5577
5578 2019-06-25 Tom Tromey <tom@tromey.com>
5579
5580 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5581 (tui_display_registers_from, tui_check_register_values): Update.
5582 (tui_display_register): Remove win_info parameter; update.
5583 (tui_get_register): Change type of parameters.
5584 * tui/tui-data.h (struct tui_data_element): Remove.
5585 (union tui_which_element) <data>: Remove.
5586 <data_window>: Change type.
5587 (struct tui_data_item_window): New.
5588 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5589 case. Add assert.
5590 (~tui_data_item_window): New destructor.
5591 (free_content_elements): Remove DATA_ITEM_WIN case.
5592
5593 2019-06-25 Tom Tromey <tom@tromey.com>
5594
5595 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5596 Remove.
5597
5598 2019-06-25 Tom Tromey <tom@tromey.com>
5599
5600 * tui/tui-data.h (struct tui_command_element): Remove.
5601 (union tui_which_element) <command>: Remove.
5602 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5603 assert.
5604 (free_content_elements): Remove CMD_WIN case.
5605
5606 2019-06-25 Tom Tromey <tom@tromey.com>
5607
5608 * tui/tui-layout.c (tui_set_layout): Update.
5609 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5610 * tui/tui-data.c (layout_def): Update.
5611
5612 2019-06-25 Tom Tromey <tom@tromey.com>
5613
5614 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5615 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5616 (tui_source_window_base::set_new_height): Update.
5617 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5618 Update.
5619 (tui_set_locator_fullname, tui_set_locator_info)
5620 (tui_show_frame_info): Update.
5621 * tui/tui-source.c (tui_set_source_content)
5622 (tui_source_is_displayed): Update.
5623 * tui/tui-layout.c (show_source_disasm_command, show_data)
5624 (show_source_or_disasm_and_command): Update.
5625 * tui/tui-disasm.c (tui_set_disassem_content)
5626 (tui_get_begin_asm_address): Update.
5627 * tui/tui-data.h (struct tui_locator_element): Remove.
5628 (union tui_which_element) <locator>: Remove.
5629 (struct tui_locator_window): New.
5630 (tui_locator_win_info_ptr): Change return type.
5631 * tui/tui-data.c (_locator): Change type.
5632 (tui_locator_win_info_ptr): Change return type.
5633 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5634 (tui_alloc_content): Add assert.
5635
5636 2019-06-25 Tom Tromey <tom@tromey.com>
5637
5638 * tui/tui-winsource.c
5639 (tui_exec_info_window::maybe_allocate_content): New method.
5640 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5641 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5642 (make_source_or_disasm_window): Add cast.
5643 * tui/tui-data.h (union tui_which_element) <simple_string>:
5644 Remove.
5645 (struct tui_source_info): New.
5646 (struct tui_source_window_base) <execution_info>: Change type.
5647 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5648 case, and add assert.
5649 (tui_alloc_content): Add assert.
5650
5651 2019-06-25 Tom Tromey <tom@tromey.com>
5652
5653 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5654 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5655 * tui/tui-data.c (tui_alloc_win_info): Remove.
5656
5657 2019-06-25 Tom Tromey <tom@tromey.com>
5658
5659 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5660 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5661 can_highlight.
5662
5663 2019-06-25 Tom Tromey <tom@tromey.com>
5664
5665 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5666 make_visible_with_new_height method.
5667 (tui_win_info::make_visible_with_new_height): New method.
5668 (tui_source_window_base::do_make_visible_with_new_height)
5669 (tui_data_window::do_make_visible_with_new_height)
5670 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5671 (make_visible_with_new_height): Remove.
5672 (tui_resize_all, tui_adjust_win_heights): Use
5673 make_visible_with_new_height method.
5674 * tui/tui-data.h (struct tui_win_info)
5675 <do_make_visible_with_new_height, make_visible_with_new_height>:
5676 New methods.
5677 (struct tui_source_window_base, struct tui_data_window)
5678 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5679 methods.
5680
5681 2019-06-25 Tom Tromey <tom@tromey.com>
5682
5683 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5684 method.
5685 (update_tab_width): Call update_tab_width method.
5686 * tui/tui-data.h (struct tui_win_info)
5687 (struct tui_source_window_base) <update_tab_width>: New methods.
5688
5689 2019-06-25 Tom Tromey <tom@tromey.com>
5690
5691 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5692 parameter.
5693 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5694 parameter.
5695 (tui_gen_win_info::make_visible): Update.
5696 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5697 parameter.
5698 * tui/tui-data.h (enum tui_box): New enum.
5699 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5700
5701 2019-06-25 Tom Tromey <tom@tromey.com>
5702
5703 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5704 init_and_make_win for EXEC_INFO_WIN.
5705 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5706 longer inline.
5707 (struct tui_win_info) <~tui_win_info>: Inline.
5708 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5709 Don't declare.
5710 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5711 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5712 Remove.
5713 (tui_initialize_static_data): Update.
5714 (~tui_gen_win_info): Handle more cleanup here.
5715 (~tui_source_window_base): Delete "execution_info".
5716 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5717
5718 2019-06-25 Tom Tromey <tom@tromey.com>
5719
5720 * tui/tui-layout.c (make_command_window): Don't set
5721 can_highlight.
5722 (show_source_disasm_command): Call the reset method.
5723 (show_data): Don't set can_highlight. Call the reset method.
5724 (tui_gen_win_info::reset): Rename from init_gen_win_info
5725 (init_and_make_win): Simplify. Return tui_gen_win_info.
5726 (show_source_or_disasm_and_command): Call the reset method.
5727 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5728 (struct tui_cmd_window): Set can_highlight.
5729
5730 2019-06-25 Tom Tromey <tom@tromey.com>
5731
5732 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5733 from make_visible.
5734 (tui_make_visible, tui_make_invisible): Rewrite.
5735 (tui_win_info::make_visible): Remove.
5736 (tui_source_window_base::make_visible): Update.
5737 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5738 method. Moved from...
5739 (struct tui_win_info) <make_visible>: ...here.
5740
5741 2019-06-25 Tom Tromey <tom@tromey.com>
5742
5743 * tui/tui-winsource.c
5744 (tui_source_window_base::do_scroll_horizontal): Remove direction
5745 parameter.
5746 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5747 direction parameter.
5748 * tui/tui-win.c (tui_win_info::forward_scroll)
5749 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5750 (tui_win_info::right_scroll): Update.
5751 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5752 direction parameter.
5753 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5754 direction parameter.
5755 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5756 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5757 Remove direction parameter.
5758 (struct tui_source_window_base, struct tui_source_window)
5759 (struct tui_disasm_window, struct tui_data_window)
5760 (struct tui_cmd_window): Update.
5761
5762 2019-06-25 Tom Tromey <tom@tromey.com>
5763
5764 * tui/tui-winsource.h (tui_set_exec_info_content)
5765 (tui_show_exec_info_content, tui_erase_exec_info_content)
5766 (tui_clear_exec_info_content, tui_update_exec_info): Change
5767 argument to tui_source_window_base.
5768 * tui/tui-winsource.c (tui_set_exec_info_content)
5769 (tui_show_exec_info_content, tui_erase_exec_info_content)
5770 (tui_clear_exec_info_content, tui_update_exec_info): Change
5771 argument to tui_source_window_base.
5772
5773 2019-06-25 Tom Tromey <tom@tromey.com>
5774
5775 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5776 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5777
5778 2019-06-25 Tom Tromey <tom@tromey.com>
5779
5780 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5781 check.
5782
5783 2019-06-25 Tom Tromey <tom@tromey.com>
5784
5785 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5786 type to void.
5787 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5788 type to void.
5789 * tui/tui-source.c (tui_set_source_content): Update.
5790 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5791
5792 2019-06-25 Tom Tromey <tom@tromey.com>
5793
5794 * tui/tui-win.c (window_name_completer, tui_set_focus)
5795 (tui_all_windows_info): Use name method.
5796 * tui/tui-data.h (struct tui_gen_win_info)
5797 (struct tui_source_window, struct tui_disasm_window)
5798 (struct tui_data_window, struct tui_cmd_window) <name>: New
5799 method.
5800 (tui_win_name): Don't declare.
5801 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5802 (tui_win_name): Remove.
5803
5804 2019-06-25 Tom Tromey <tom@tromey.com>
5805
5806 * tui/tui-winsource.h (tui_update_source_window)
5807 (tui_update_source_window_as_is): Change parameter type.
5808 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5809 to be a tui_source_window_base.
5810 (tui_update_source_window_as_is): Likewise.
5811 * tui/tui-win.c (make_visible_with_new_height): Update.
5812
5813 2019-06-25 Tom Tromey <tom@tromey.com>
5814
5815 * tui/tui-winsource.c (tui_erase_source_content)
5816 (tui_show_source_content, tui_show_exec_info_content)
5817 (tui_erase_exec_info_content): Use refresh_window method.
5818 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5819 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5820 from tui_refresh_win.
5821 (tui_data_window::refresh_window): New method.
5822 (tui_win_info::refresh, tui_source_window_base::refresh)
5823 (tui_refresh_all): Use refresh_window method.
5824 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5825 method.
5826 * tui/tui-regs.c (tui_display_register): Call refresh_window
5827 method.
5828 * tui/tui-layout.c (show_source_disasm_command)
5829 (show_source_or_disasm_and_command): Call refresh_window method.
5830 * tui/tui-data.h (struct tui_gen_win_info)
5831 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5832 New method.
5833
5834 2019-06-25 Tom Tromey <tom@tromey.com>
5835
5836 * tui/tui.c (tui_rl_other_window, tui_enable)
5837 (tui_is_window_visible, tui_get_command_dimension): Update.
5838 * tui/tui-winsource.c (tui_update_source_window_as_is)
5839 (tui_clear_source_content, tui_erase_source_content)
5840 (tui_show_source_line, tui_source_window_base::refill)
5841 (tui_source_window_base::do_scroll_horizontal)
5842 (tui_source_window_base::set_is_exec_point_at)
5843 (tui_update_breakpoint_info, tui_set_exec_info_content)
5844 (tui_alloc_source_buffer, tui_line_is_displayed)
5845 (tui_addr_is_displayed): Update.
5846 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5847 (tui_check_and_display_highlight_if_needed)
5848 (tui_win_info::make_visible, tui_win_info::refresh)
5849 (tui_refresh_all): Update.
5850 * tui/tui-windata.c (tui_first_data_item_displayed)
5851 (tui_delete_data_content_windows, tui_erase_data_content)
5852 (tui_display_all_data, tui_data_window::refresh_all)
5853 (tui_check_data_values): Update.
5854 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5855 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5856 (tui_win_info::backward_scroll, tui_refresh_all_win)
5857 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5858 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5859 (tui_source_window_base::set_new_height)
5860 (tui_data_window::set_new_height)
5861 (make_invisible_and_set_new_height)
5862 (make_visible_with_new_height, new_height_ok)
5863 (parse_scrolling_args): Update.
5864 * tui/tui-stack.c (tui_show_frame_info): Update.
5865 * tui/tui-source.c (tui_set_source_content)
5866 (tui_set_source_content_nil, tui_source_is_displayed)
5867 (tui_source_window::do_scroll_vertical): Update.
5868 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5869 (tui_display_registers_from, tui_display_reg_element_at_line)
5870 (tui_check_register_values, tui_reg_command): Update.
5871 * tui/tui-layout.c (tui_default_win_height)
5872 (show_source_disasm_command, show_data, init_and_make_win)
5873 (show_source_or_disasm_and_command): Update.
5874 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5875 (tui_redisplay_readline, tui_mld_flush)
5876 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5877 (tui_getc): Update.
5878 * tui/tui-disasm.c (tui_set_disassem_content)
5879 (tui_disasm_window::do_scroll_vertical): Update.
5880 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5881 Now virtual.
5882 (struct tui_win_info): Derive from tui_gen_win_info.
5883 <~tui_win_info>: Mark as override.
5884 <generic>: Remove member.
5885 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5886 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5887 (~tui_data_window, ~tui_win_info)
5888 (tui_free_all_source_wins_content): Update.
5889 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5890
5891 2019-06-25 Tom Tromey <tom@tromey.com>
5892
5893 * tui/tui-layout.c (init_and_make_win): Use new.
5894 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5895 destructor, initializers.
5896 (tui_alloc_generic_win_info): Don't declare.
5897 * tui/tui-data.c (_locator): Add argument to constructor.
5898 (source_win, disasm_win): New globals.
5899 (exec_info): Remove.
5900 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5901 Update.
5902 (tui_alloc_generic_win_info): Remove.
5903 (init_content_element): Use new.
5904 (tui_win_info::tui_win_info): Update.
5905 (free_content_elements) <case DATA_WIN>: Use delete.
5906
5907 2019-06-25 Tom Tromey <tom@tromey.com>
5908
5909 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5910 * tui/tui-windata.c (tui_first_data_item_displayed)
5911 (tui_delete_data_content_windows): Update.
5912 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5913 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5914 (tui_display_registers_from, tui_check_register_values): Update.
5915 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5916 pointer.
5917 * tui/tui-data.c (init_content_element): Update. Allocate the new
5918 window.
5919 (tui_free_data_content): Update.
5920 (free_content_elements) <case DATA_WIN>: Free the window.
5921
5922 2019-06-25 Tom Tromey <tom@tromey.com>
5923
5924 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5925 Update.
5926 * tui/tui-layout.c (make_command_window)
5927 (show_source_disasm_command, show_data, init_and_make_win)
5928 (show_source_or_disasm_and_command): Update.
5929 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5930 method.
5931 <can_highight, is_highlighted>: Now bool.
5932 (tui_set_win_highlight): Don't declare.
5933 * tui/tui-data.c (tui_set_win_highlight): Remove.
5934
5935 2019-06-25 Tom Tromey <tom@tromey.com>
5936
5937 * tui/tui-wingeneral.c (make_visible): Remove check of window
5938 type.
5939
5940 2019-06-25 Tom Tromey <tom@tromey.com>
5941
5942 * tui/tui-win.c (tui_win_info::max_height)
5943 (tui_cmd_window::max_height): New methods.
5944 (new_height_ok): Call max_height.
5945 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5946 <max_height>: New method.
5947
5948 2019-06-25 Tom Tromey <tom@tromey.com>
5949
5950 * tui/tui-win.c (tui_source_window_base::set_new_height)
5951 (tui_data_window::set_new_height): New methods.
5952 (make_invisible_and_set_new_height): Call set_new_height method.
5953 * tui/tui-data.h (struct tui_win_info)
5954 (struct tui_source_window_base, struct tui_data_window)
5955 <set_new_height>: New method.
5956
5957 2019-06-25 Tom Tromey <tom@tromey.com>
5958
5959 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5960 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5961 tui_refresh_data_win.
5962 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5963 method.
5964 (tui_refresh_all_win): Call the refresh_all method.
5965 (tui_set_focus): Likewise.
5966 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5967 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5968 Likewise.
5969
5970 2019-06-25 Tom Tromey <tom@tromey.com>
5971
5972 * tui/tui-winsource.h (tui_refill_source_window)
5973 (tui_set_is_exec_point_at): Don't declare.
5974 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5975 (tui_source_window_base::refill): Rename from
5976 tui_refill_source_window.
5977 (tui_source_window_base::do_scroll_horizontal): Update.
5978 (tui_source_window_base::set_is_exec_point_at): Rename from
5979 tui_set_is_exec_point_at.
5980 (tui_update_all_breakpoint_info): Update.
5981 * tui/tui-stack.c (tui_show_frame_info): Update.
5982 * tui/tui-layout.c (show_data): Add cast.
5983 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5984 * tui/tui-data.h (struct tui_source_window_base) <refill,
5985 set_is_exec_point_at>: New methods.
5986 (tui_source_windows, tui_add_to_source_windows): Update types.
5987 (tui_add_to_source_windows): Remove redundant declaration.
5988 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5989 (tui_source_windows): Change return type.
5990 (tui_clear_source_windows_detail): Update.
5991 (tui_add_to_source_windows): Change type of parameter.
5992 (tui_free_all_source_wins_content): Update.
5993
5994 2019-06-25 Tom Tromey <tom@tromey.com>
5995
5996 * tui/tui-wingeneral.c (tui_win_info::refresh)
5997 (tui_source_window_base::refresh): New methods.
5998 (tui_refresh_all): Call the refresh method.
5999 * tui/tui-data.h (struct tui_win_info)
6000 (struct tui_source_window_base) <refresh>: New method.
6001
6002 2019-06-25 Tom Tromey <tom@tromey.com>
6003
6004 * tui/tui.h (tui_is_window_visible): Return bool.
6005 * tui/tui.c (tui_is_window_visible): Return bool.
6006 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6007 (tui_make_visible, tui_make_invisible)
6008 (tui_win_info::make_visible)
6009 (tui_source_window_base::make_visible, make_all_visible)
6010 (tui_make_all_visible, tui_make_all_invisible): Update.
6011 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6012 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6013 bool.
6014 (struct tui_win_info, struct tui_source_window_base)
6015 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6016 * tui/tui-data.c (tui_init_generic_part): Update.
6017
6018 2019-06-25 Tom Tromey <tom@tromey.com>
6019
6020 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6021 (tui_source_window_base::make_visible): New methods.
6022 (make_all_visible): Make method call.
6023 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6024 (struct tui_source_window_base, struct tui_cmd_window): Override
6025 make_visible.
6026 (tui_win_is_source_type): Don't declare.
6027 * tui/tui-data.c (tui_win_is_source_type): Remove.
6028
6029 2019-06-25 Tom Tromey <tom@tromey.com>
6030
6031 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6032 NULL check.
6033
6034 2019-06-25 Tom Tromey <tom@tromey.com>
6035
6036 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6037 Inline constructor. Add initializers for members.
6038 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6039 constructors; now inline in class.
6040
6041 2019-06-25 Tom Tromey <tom@tromey.com>
6042
6043 * tui/tui-regs.c (tui_show_registers): Update.
6044 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6045 bool.
6046 * tui/tui-data.c (tui_data_window::clear_detail)
6047 (tui_data_window): Update.
6048
6049 2019-06-25 Tom Tromey <tom@tromey.com>
6050
6051 * tui/tui-windata.c (tui_display_all_data)
6052 (tui_display_data_from_line, tui_display_data_from)
6053 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6054 Update.
6055 * tui/tui-regs.c (tui_last_regs_line_no)
6056 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6057 (tui_show_registers, tui_show_register_group)
6058 (tui_display_registers_from, tui_display_reg_element_at_line)
6059 (tui_display_registers_from_line, tui_check_register_values)
6060 (tui_reg_next, tui_reg_prev): Update.
6061 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6062 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6063 tui_data_window.
6064 (struct tui_win_info) <detail>: Remove. Add new fields from
6065 tui_data_info.
6066 (TUI_DATA_WIN): Add cast.
6067 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6068 (~tui_data_window): Simplify.
6069
6070 2019-06-25 Tom Tromey <tom@tromey.com>
6071
6072 * tui/tui-layout.c (show_source_disasm_command)
6073 (show_source_or_disasm_and_command): Update.
6074 * tui/tui-io.c (update_cmdwin_start_line)
6075 (tui_redisplay_readline): Update.
6076 * tui/tui-data.h (struct tui_command_info): Remove.
6077 (struct tui_win_info) <detail>: Remove command_info member.
6078 (struct tui_data_window) <start_line>: New member, from
6079 tui_command_info.
6080 (TUI_CMD_WIN): Add casts.
6081
6082 2019-06-25 Tom Tromey <tom@tromey.com>
6083
6084 * tui/tui-winsource.c (tui_update_source_window)
6085 (tui_refill_source_window)
6086 (tui_source_window_base::do_scroll_horizontal)
6087 (tui_update_breakpoint_info, tui_set_exec_info_content)
6088 (tui_show_exec_info_content, tui_erase_exec_info_content)
6089 (tui_clear_exec_info_content): Update.
6090 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6091 Update.
6092 * tui/tui-win.c (make_invisible_and_set_new_height)
6093 (make_visible_with_new_height): Update.
6094 * tui/tui-source.c (tui_set_source_content)
6095 (tui_show_symtab_source): Update.
6096 * tui/tui-layout.c (extract_display_start_addr)
6097 (show_source_disasm_command, show_data)
6098 (make_source_or_disasm_window)
6099 (show_source_or_disasm_and_command): Update.
6100 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6101 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6102 "gdbarch".
6103 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6104 to tui_source_window_base.
6105 (struct tui_win_info) <detail>: Remove source_info member.
6106 (struct tui_source_window_base) <has_locator>: Inline.
6107 Move contents from tui_source_info; rename has_locator member to
6108 m_has_locator.
6109 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6110 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6111 header file.
6112 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6113 Simplify.
6114 (tui_free_all_source_wins_content): Cast to
6115 tui_source_window_base.
6116
6117 2019-06-25 Tom Tromey <tom@tromey.com>
6118
6119 * tui/tui-win.c (make_invisible_and_set_new_height)
6120 (make_visible_with_new_height): Call has_locator method.
6121 * tui/tui-layout.c (show_source_disasm_command, show_data)
6122 (show_source_or_disasm_and_command): Update for bool change.
6123 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6124 (tui_win_info) <has_locator>: New method.
6125 (struct tui_source_window_base) <has_locator>: New method.
6126 (tui_win_has_locator): Don't declare.
6127 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6128 from tui_win_has_locator.
6129 (tui_source_window_base): Use false, not FALSE.
6130
6131 2019-06-25 Tom Tromey <tom@tromey.com>
6132
6133 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6134 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6135 clear_detail method directly.
6136 (tui_clear_win_detail): Remove.
6137
6138 2019-06-25 Tom Tromey <tom@tromey.com>
6139
6140 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6141 "this", not TUI_DISASM_WIN.
6142
6143 2019-06-25 Tom Tromey <tom@tromey.com>
6144
6145 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6146 declare.
6147 * tui/tui-winsource.c
6148 (tui_source_window_base::do_scroll_horizontal): Rename from
6149 tui_horizontal_source_scroll.
6150 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6151 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6152 from tui_vertical_data_scroll.
6153 * tui/tui-win.h (tui_scroll): Don't declare.
6154 * tui/tui-win.c (tui_win_info::forward_scroll)
6155 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6156 (tui_win_info::right_scroll): Rename and update.
6157 (tui_scroll_forward_command, tui_scroll_backward_command)
6158 (tui_scroll_left_command, tui_scroll_right_command): Update.
6159 (tui_scroll): Remove.
6160 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6161 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6162 from tui_vertical_source_scroll.
6163 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6164 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6165 from tui_vertical_disassem_scroll.
6166 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6167 do_scroll_horizontal>: New methods.
6168 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6169 Likewise.
6170 (struct tui_source_window_base): Add do_scroll_horizontal.
6171 (struct tui_source_window, struct tui_disasm_window): Add
6172 do_scroll_vertical.
6173 (struct tui_data_window, struct tui_cmd_window): Add
6174 do_scroll_horizontal and do_scroll_vertical.
6175 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6176
6177 2019-06-25 Tom Tromey <tom@tromey.com>
6178
6179 * tui/tui-data.h (struct tui_source_window_base): New struct.
6180 (struct tui_source_window): Derive from tui_source_window_base.
6181 (struct tui_disasm_window): New struct.
6182 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6183 from tui_source_window::clear_detail.
6184 (tui_source_window_base): Rename from tui_source_window.
6185 (~tui_source_window_base): Rename from ~tui_source_window.
6186 (tui_alloc_win_info): Create a tui_disasm_window.
6187
6188 2019-06-25 Tom Tromey <tom@tromey.com>
6189
6190 * tui/tui-data.h (struct tui_source_window)
6191 (struct tui_data_window): Declare destructors.
6192 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6193 destructors.
6194 (tui_win_info): Simplify.
6195
6196 2019-06-25 Tom Tromey <tom@tromey.com>
6197
6198 * tui/tui-winsource.c (tui_display_main)
6199 (tui_update_source_windows_with_addr)
6200 (tui_update_all_breakpoint_info): Update.
6201 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6202 (new_height_ok, parse_scrolling_args): Update.
6203 * tui/tui-stack.c (tui_show_frame_info): Update.
6204 * tui/tui-data.h (struct tui_list): Remove.
6205 (tui_source_windows): Return a reference to a std::vector.
6206 * tui/tui-data.c (source_windows): Now a std::vector.
6207 (tui_source_windows): Change return type.
6208 (tui_clear_source_windows): Rewrite.
6209 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6210 (tui_free_all_source_wins_content): Rewrite.
6211
6212 2019-06-25 Tom Tromey <tom@tromey.com>
6213
6214 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6215 (struct tui_data_window, struct tui_cmd_window): Declare
6216 clear_detail method.
6217 * tui/tui-data.c (tui_source_window::clear_detail)
6218 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6219 methods.
6220 (tui_clear_win_detail): Simplify.
6221
6222 2019-06-25 Tom Tromey <tom@tromey.com>
6223
6224 * tui/tui-layout.c (make_source_window, make_disasm_window)
6225 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6226 Return the new window.
6227 (show_source_disasm_command, show_data)
6228 (show_source_or_disasm_and_command): Update.
6229
6230 2019-06-25 Tom Tromey <tom@tromey.com>
6231
6232 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6233 parameter. Return the new window.
6234 (show_source_disasm_command): Update and remove NULL check.
6235 (show_source_or_disasm_and_command): Update.
6236
6237 2019-06-25 Tom Tromey <tom@tromey.com>
6238
6239 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6240
6241 2019-06-25 Tom Tromey <tom@tromey.com>
6242
6243 * tui/tui-data.h (struct tui_win_info): Make constructor
6244 protected. Make destructor virtual. Add initializers.
6245 (tui_source_window, tui_data_window, tui_cmd_window): New
6246 classes.
6247 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6248 constructor. Add "type" parameter.
6249 (tui_source_window, tui_data_window, tui_cmd_window): New
6250 constructors.
6251 (tui_alloc_win_info): Instantiate the appropriate subclass.
6252
6253 2019-06-25 Tom Tromey <tom@tromey.com>
6254
6255 * tui/tui-win.c (tui_resize_all): Use delete.
6256 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6257 destructor.
6258 (tui_free_window): Don't declare.
6259 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6260 Update.
6261
6262 2019-06-25 Tom Tromey <tom@tromey.com>
6263
6264 * tui/tui-data.h (struct tui_win_info): Add constructor.
6265 * tui/tui-data.c (tui_alloc_win_info): Use new.
6266 (tui_free_window): Use delete.
6267
6268 2019-06-22 Tom Tromey <tom@tromey.com>
6269
6270 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6271 declare.
6272 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6273
6274 2019-06-22 Tom Tromey <tom@tromey.com>
6275
6276 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6277 declare.
6278 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6279
6280 2019-06-22 Tom de Vries <tdevries@suse.de>
6281
6282 * dwarf2read.c (create_addrmap_from_aranges)
6283 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6284 instead of '%zu'.
6285
6286 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6287
6288 * dwarf2read.h (dwarf2_section_info_def): Remove.
6289 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6290 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6291 std::vector<dwarf2_section_info>.
6292 (struct dwo_file) <~dwo_file>: Remove.
6293 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6294 types field.
6295 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6296 (dwarf2_read_debug_names): Likewise.
6297 (create_debug_types_hash_table): Change parameter type to
6298 array_view, adjust code accordingly.
6299 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6300 (partial_die_info::fixup): Likewise.
6301 (determine_prefix): Likewise.
6302 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6303
6304 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6305
6306 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6307 gdb_bfd_ref_ptr.
6308 <~dwo_file>: Remove call to gdb_bfd_unref.
6309 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6310 gdb_bfd_ref_ptr::get.
6311
6312 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6313
6314 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6315 type to htab_up.
6316 * dwarf2read.c (struct dwo_file): Initialize fields.
6317 <~dwo_file>: New.
6318 (free_dwo_file): Remove, move content to ~dwo_file.
6319 (struct dwo_file_deleter): Remove.
6320 (dwo_file_up>: Remove custom deleter.
6321 (free_dwo_files): Remove.
6322 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6323 dwo_files.
6324 (process_skeletonless_type_units): Call unique_ptr::get.
6325 (allocate_dwo_file_hash_table): Add deleter to created hash
6326 table. Change return type to htab_up.
6327 (lookup_dwo_file_slot): Don't memset dwo_file, call
6328 unique_ptr::get.
6329 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6330 (create_dwo_unit_in_dwp_v2): Likewise.
6331 (open_and_init_dwo_file): Likewise.
6332 (free_dwo_file_from_slot): Remove.
6333
6334 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6335
6336 * dwarf2read.h (struct dwarf2_section_info) <readin,
6337 is_virtual>: Change type to bool.
6338 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6339 true instead of 1.
6340
6341 2019-06-19 Tom Tromey <tom@tromey.com>
6342
6343 * tui/tui-data.h (tui_init_content_element): Don't declare.
6344
6345 2019-06-19 Tom Tromey <tom@tromey.com>
6346
6347 * tui/tui-data.h (tui_init_win_info): Don't declare.
6348
6349 2019-06-19 Tom de Vries <tdevries@suse.de>
6350
6351 * dwarf2read.h (abstract_to_concrete): Change type to
6352 std::unordered_map<sect_offset, std::vector<sect_offset>,
6353 gdb::hash_enum<sect_offset>>.
6354
6355 2019-06-19 Tom Tromey <tromey@adacore.com>
6356
6357 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6358 EVAL_AVOID_SIDE_EFFECTS specially.
6359
6360 2019-06-19 Tom Tromey <tromey@adacore.com>
6361
6362 * source-cache.c (highlighter): New global.
6363 (source_cache::get_source_lines): Create a highlighter on demand.
6364
6365 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6366
6367 * defs.h (deprecated_interactive_hook): Delete declaration.
6368 * interps.c (clear_interpreter_hooks): Remove use of
6369 deprecated_interactive_hook.
6370 * top.c (deprecated_interactive_hook): Delete definition.
6371 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6372
6373 2019-06-18 Tom de Vries <tdevries@suse.de>
6374
6375 PR gdb/24515
6376 * dwarf2read.h (abstract_to_concrete): Change type from
6377 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6378 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6379 * dwarf2read.c (read_variable): Update.
6380 (dwarf2_fetch_die_loc_sect_off): Update.
6381
6382 2019-06-17 Tom de Vries <tdevries@suse.de>
6383
6384 PR gdb/24617
6385 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6386 accessing parent[parent_len - 1].
6387
6388 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6389
6390 PR gdb/24364
6391 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6392 call dtrace_process_dof with NULL dof.
6393
6394 2019-06-16 Tom de Vries <tdevries@suse.de>
6395
6396 PR gdb/24445
6397 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6398
6399 2019-06-16 Tom Tromey <tom@tromey.com>
6400
6401 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6402 (make_all_visible): Use address of member.
6403
6404 2019-06-16 Tom Tromey <tom@tromey.com>
6405
6406 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6407 (tui_free_window, free_content, free_content_elements): Remove
6408 unnecessary cast.
6409 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6410 cast.
6411 * tui/tui-regs.c (tui_show_register_group)
6412 (tui_display_registers_from, tui_display_reg_element_at_line):
6413 Remove unnecessary cast.
6414
6415 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6416
6417 * linux-nat.c (normal_mask): Delete.
6418 (_initialize_linux_nat): Don't initialise normal_mask.
6419
6420 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6421
6422 PR gdb/24445
6423 * dwarf-index-write.h (write_psymtabs_to_index): Add
6424 dwz_basename parameter.
6425 * dwarf-index-write.c (write_gdbindex): Move file writing to
6426 write_gdbindex_1. Change return type void.
6427 (assert_file_size): Move up, remove filename parameter.
6428 (write_gdbindex_1): New function.
6429 (write_debug_names): Change return type to void, call
6430 assert_file_size.
6431 (struct index_wip_file): New struct.
6432 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6433 file logic to index_wip_file. Write index for dwz file if
6434 needed.
6435 (save_gdb_index_command): Pass basename of dwz file, if present.
6436 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6437 build-id of dwz file, if present.
6438 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6439 (dwarf2_get_dwz_file): Likewise.
6440 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6441 (dwarf2_get_dwz_file): Likewise.
6442
6443 2019-06-16 Tom Tromey <tom@tromey.com>
6444
6445 * coffread.c (process_coff_symbol): Use xstrdup.
6446 * value.c (create_internalvar): Use xstrdup.
6447
6448 2019-06-16 Tom Tromey <tom@tromey.com>
6449
6450 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6451 * breakpoint.c (stopin_command, stopat_command)
6452 (until_break_command, decode_location_default): Remove unnecessary
6453 cast.
6454 * utils.c (subset_compare): Remove unnecessary cast.
6455 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6456 cast.
6457 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6458 cast.
6459 * infcmd.c (path_command): Remove unnecessary cast.
6460 * coffread.c (decode_type): Remove unnecessary cast.
6461 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6462 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6463 * tui/tui-stack.c (tui_show_locator_content)
6464 (tui_show_frame_info): Remove unnecessary cast.
6465 * tui/tui-win.c (tui_scroll_forward_command)
6466 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6467 (parse_scrolling_args): Remove unnecessary cast.
6468 * tui/tui-data.c (init_win_info, tui_del_window)
6469 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6470 (free_content_elements): Remove unnecessary cast.
6471 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6472 unnecessary cast.
6473 * tui/tui-source.c (tui_set_source_content)
6474 (tui_vertical_source_scroll): Remove unnecessary cast.
6475 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6476 cast.
6477 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6478 * tui/tui-regs.c (tui_display_registers_from)
6479 (tui_display_register): Remove unnecessary cast.
6480 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6481 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6482 (make_visible): Remove unnecessary cast.
6483 * tui/tui-winsource.c (tui_erase_source_content)
6484 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6485 unnecessary cast.
6486 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6487 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6488 * stabsread.c (read_type, read_array_type, read_range_type):
6489 Remove unnecessary cast.
6490 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6491 (parse_symbol, parse_type, upgrade_type, parse_external)
6492 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6493 unnecessary cast.
6494 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6495
6496 2019-06-16 Tom Tromey <tom@tromey.com>
6497
6498 * tui/tui-data.c (tui_alloc_generic_win_info)
6499 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6500 checks.
6501
6502 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6503 Andrew Burgess <andrew.burgess@embecosm.com>
6504
6505 * f-typeprint.c (f_print_type): Don't return early for not
6506 associated or not allocated types.
6507 (f_type_print_varspec_suffix): Add print_rank parameter and print
6508 ranks of array types in case they dangling.
6509 (f_type_print_base): Add print_rank parameter.
6510
6511 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6512
6513 * NEWS: Mention new MI commands.
6514 * break-catch-throw.c (enum exception_event_kind): Move to
6515 breakpoint.h.
6516 (print_mention_exception_catchpoint): Output text as a single
6517 message.
6518 (catch_exception_command_1): Rename to...
6519 (catch_exception_event): ...this, make non-static, update header
6520 command, and change some parameter types.
6521 (catch_catch_command): Update for changes to
6522 catch_exception_command_1.
6523 (catch_throw_command): Likewise.
6524 (catch_rethrow_command): Likewise.
6525 * breakpoint.c (enum exception_event_kind): Delete.
6526 * breakpoint.h (enum exception_event_kind): Moved here from
6527 break-catch-throw.c.
6528 (catch_exception_event): Declare.
6529 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6530 (mi_cmd_catch_throw): New function.
6531 (mi_cmd_catch_rethrow): New function.
6532 (mi_cmd_catch_catch): New function.
6533 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6534 'catch-catch' entries.
6535 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6536 (mi_cmd_catch_rethrow): Declare.
6537 (mi_cmd_catch_catch): Declare.
6538
6539 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6540
6541 * annotate.c (annotate_source_line): Change return type to void,
6542 update implementation to match.
6543 * annotate.h (annotate_source_line): Change return type to void,
6544 update header comment.
6545 * stack.c (print_frame_info): Don't change what frame information
6546 is printed based on whether annotations are on or not.
6547
6548 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6549
6550 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6551 (annotate_source): Make static.
6552 (annotate_source_line): Moved from source.c and renamed from
6553 identify_source_line. Update the return type.
6554 * annotate.h (annotate_source): Delete declaration.
6555 (annotate_source_line): Declaration moved from source.h, and
6556 renamed from identify_source_line. Return type updated.
6557 * source.c (identify_source_line): Moved to annotate.c and renamed
6558 to annotate_source_line.
6559 (info_line_command): Remove check of annotation_level.
6560 * source.h (identify_source_line): Move declaration to annotate.h
6561 and rename to annotate_source_line.
6562 * stack.c: Add 'annotate.h' include.
6563 (print_frame_info): Remove check of annotation_level before
6564 calling annotate_source_line.
6565
6566 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6567
6568 * source-cache.c (source_cache::get_plain_source_lines): Use
6569 open_source_file_with_line_charpos instead of just
6570 open_source_file, remove call to find_source_lines.
6571 (source_cache::get_source_lines): Likewise.
6572 * source.c (find_source_lines): Make static.
6573 (get_filename_and_charpos): Renamed into...
6574 (open_source_file_with_line_charpos): ..this along with changes to
6575 return a scoped_fd, and some other minor clean ups.
6576 (identify_source_line): Use open_source_file_with_line_charpos.
6577 (search_command_helper): Use open_source_file_with_line_charpos
6578 instead of just open_source_file, remove call to
6579 find_source_lines.
6580 * source.h (open_source_file_with_line_charpos): Declare new
6581 function.
6582 (find_source_lines): Delete declaration.
6583
6584 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6585
6586 * source.c (get_filename_and_charpos): Remove fullname
6587 parameter.
6588 (identify_source_line): Update call to get_filename_and_charpos.
6589
6590 2019-06-14 Tom Tromey <tromey@adacore.com>
6591
6592 PR gdb/24502:
6593 * ui-style.h (skip_ansi_escape): Update comment.
6594 * ui-file.h (class no_terminal_escape_file): New class.
6595 * ui-file.c (no_terminal_escape_file::write)
6596 (no_terminal_escape_file::puts): New methods.
6597 * cli/cli-logging.c (handle_redirections): Use
6598 no_terminal_escape_file.
6599
6600 2019-06-14 Tom Tromey <tromey@adacore.com>
6601
6602 * NEWS: Move convenience variable news above Python news.
6603
6604 2019-06-14 Tom Tromey <tom@tromey.com>
6605
6606 * gnulib: Move directory to top-level.
6607 * configure.ac: Don't configure gnulib.
6608 * configure: Rebuild.
6609 * common/common-defs.h: Use new path to gnulib.
6610 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6611 (GNULIB_H): Remove.
6612 (INCGNU): Look in new gnulib location.
6613 (HFILES_NO_SRCDIR): Remove gnulib files.
6614 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6615 (generated_files): Remove GNULIB_H.
6616 ($(LIBGNU), all-lib): Remove targets.
6617 (distclean): Don't mention GNULIB_BUILDDIR.
6618 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6619
6620 2019-06-14 Tom Tromey <tromey@adacore.com>
6621
6622 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6623 Warn if symbol file does not provide any symbols.
6624
6625 2019-06-14 Tom Tromey <tromey@adacore.com>
6626
6627 * source.c (find_and_open_source): Respect basenames_may_differ.
6628
6629 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6630
6631 * annotate.c (annotate_breakpoints_invalid): Make use of
6632 scoped_restore_terminal_state.
6633 (annotate_frames_invalid): Likewise.
6634
6635 2019-06-14 Tom Tromey <tromey@adacore.com>
6636
6637 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6638 allow assignment to an internalvar.
6639
6640 2019-06-14 Tom Tromey <tromey@adacore.com>
6641
6642 * ada-lex.l: Allow "_" in attribute names.
6643
6644 2019-06-14 Tom Tromey <tromey@adacore.com>
6645
6646 PR gdb/24653:
6647 * regcache.c (registers_changed): Don't call alloca.
6648 * top.c (execute_command): Don't call alloca.
6649
6650 2019-06-13 Pedro Alves <palves@redhat.com>
6651
6652 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6653 'expression'. When parsing an expression, error out if there's
6654 junk after "unlimited".
6655 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6656 (do_set_command): Adjust calls to is_unlimited_literal.
6657
6658 2019-06-13 Pedro Alves <palves@redhat.com>
6659
6660 * compile/compile.c (make_compile_options_def_group): Add braces
6661 around array_view initializer.
6662 * thread.c (make_thread_apply_all_options_def_group)
6663 (make_thread_apply_all_options_def_group): Likewise.
6664
6665 2019-06-13 Pedro Alves <palves@redhat.com>
6666
6667 * NEWS (New commands): Mention "maint test-options
6668 require-delimiter", "maint test-options unknown-is-error", "maint
6669 test-options unknown-is-operand" and "maint show
6670 test-options-completion-result".
6671 (New command options, command completion): New section.
6672 (Completion improvements): New section.
6673 Mention that you can abbreviate "unlimited".
6674
6675 2019-06-13 Pedro Alves <palves@redhat.com>
6676
6677 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6678 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6679 * unittests/cli-utils-selftests.c (test_parse_flags)
6680 (test_parse_flags_qcs): Delete.
6681 (test_cli_utils): Don't call deleted functions.
6682
6683 2019-06-13 Pedro Alves <palves@redhat.com>
6684
6685 * thread.c: Include "cli/cli-option.h".
6686 (tp_array_compar_ascending): Global.
6687 (tp_array_compar): Delete function.
6688 (tp_array_compar_ascending, tp_array_compar_descending): New
6689 functions.
6690 (ascending_option_def, qcs_flag_option_def)
6691 (thr_qcs_flags_option_defs)
6692 (make_thread_apply_all_options_def_group)
6693 (make_thread_apply_options_def_group): New.
6694 (thread_apply_all_command): Use gdb::option::process_options.
6695 (thread_apply_command_completer)
6696 (thread_apply_all_command_completer): New.
6697 (thread_apply_command): Use gdb::option::process_options.
6698 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6699 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6700 to generate help text of "thread apply". Adjust "taas"'s help.
6701 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6702 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6703
6704 2019-06-13 Pedro Alves <palves@redhat.com>
6705
6706 * thread.c (thread_apply_command): Check for invalid TID with
6707 isdigit instead of !isalpha.
6708
6709 2019-06-13 Pedro Alves <palves@redhat.com>
6710
6711 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6712 (validate_flags_qcs): New.
6713 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6714 (validate_flags_qcs): Declare.
6715 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6716 (make_frame_apply_options_def_group): New.
6717 (frame_apply_command_count): Process options with
6718 gdb::option::process_options.
6719 (frame_apply_completer): New.
6720 (frame_apply_level_completer, frame_apply_all_completer)
6721 (frame_apply_completer): New.
6722 (_initialize_stack): Update help of "frame apply", "frame apply
6723 level", "frame apply all" and "faas" to mention supported options
6724 and install command completers.
6725 * stack.h (frame_apply_all_completer): Declare.
6726 * thread.c: Include "stack.h".
6727 (tfaas_command): Add "--".
6728 (_initialize_thread): Update help "tfaas" to mention supported
6729 options and install command completer.
6730
6731 2019-06-13 Pedro Alves <palves@redhat.com>
6732
6733 * completer.c (complete_nested_command_line): New.
6734 (gdb_completion_word_break_characters_throw): Add assertion.
6735 * completer.h (complete_nested_command_line): Declare.
6736
6737 2019-06-13 Pedro Alves <palves@redhat.com>
6738
6739 * stack.c (parse_backtrace_qualifiers): New.
6740 (backtrace_command): Use it.
6741 (backtrace_command_completer): Complete on qualifiers.
6742
6743 2019-06-13 Pedro Alves <palves@redhat.com>
6744
6745 * frame.c: Include "cli/cli-option.h.
6746 (user_set_backtrace_options): New.
6747 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6748 Delete.
6749 (get_prev_frame): Adjust.
6750 (boolean_option_def, uinteger_option_def)
6751 (set_backtrace_option_defs): New.
6752 (_initialize_frame): Adjust and use
6753 gdb::option::add_setshow_cmds_for_options to install "set
6754 backtrace past-main" and "set backtrace past-entry".
6755 * frame.h: Include "cli/cli-option.h".
6756 (struct frame_print_options): Forward declare.
6757 (print_frame_arguments_all, print_frame_arguments_scalars)
6758 (print_frame_arguments_none): Declare.
6759 (print_entry_values): Delete declaration.
6760 (struct frame_print_options, user_frame_print_options): New.
6761 (struct set_backtrace_options): New.
6762 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6763 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6764 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6765 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6766 (list_args_or_locals): Add frame_print_options parameter.
6767 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6768 * python/py-framefilter.c (enumerate_args): Pass down
6769 USER_FRAME_PRINT_OPTIONS.
6770 * stack.c: Include "cli/cli-option.h".
6771 (print_frame_arguments_all, print_frame_arguments_scalars)
6772 (print_frame_arguments_none): Declare.
6773 (print_raw_frame_arguments, print_entry_values): Delete.
6774 (user_frame_print_options): New.
6775 (boolean_option_def, enum_option_def, frame_print_option_defs):
6776 New.
6777 (struct backtrace_cmd_options): New.
6778 (bt_flag_option_def): New.
6779 (backtrace_command_option_defs): New.
6780 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6781 (print_frame_arg, read_frame_arg, print_frame_args)
6782 (print_frame_info, print_frame): Add frame_print_options parameter
6783 and use it.
6784 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6785 (backtrace_command_1): Add frame_print_options and
6786 backtrace_cmd_options parameters and use them.
6787 (make_backtrace_options_def_group): New.
6788 (backtrace_command): Process command options with
6789 gdb::option::process_options.
6790 (backtrace_command_completer): New.
6791 (_initialize_stack): Extend "backtrace"'s help to mention
6792 supported options. Install completer for "backtrace".
6793 Install some settings commands with add_setshow_cmds_for_options.
6794
6795 2019-06-13 Pedro Alves <palves@redhat.com>
6796
6797 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6798 and that "set/show print raw frame-arguments" are now deprecated.
6799
6800 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6801 command.
6802 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6803 * stack.c (_initialize_stack): Install "set/show print
6804 raw-frame-arguments", and deprecate "set/show print raw
6805 frame-arguments".
6806 * valprint.c (_initialize_valprint): Deprecate "set/show print
6807 raw".
6808
6809 2019-06-13 Pedro Alves <palves@redhat.com>
6810
6811 * compile/compile.c (struct compile_options): New.
6812 (compile_flag_option_def, compile_command_option_defs)
6813 (make_compile_options_def_group): New.
6814 (compile_file_command): Handle options with
6815 gdb::option::process_options.
6816 (compile_file_command_completer): New function.
6817 (compile_code_command): Handle options with
6818 gdb::option::process_options.
6819 (compile_code_command_completer): New function.
6820 (_initialize_compiler): Install completers for "compile code" and
6821 "compile file". Mention available options in "compile code" and
6822 "compile code"'s help.
6823 * completer.c (advance_to_completion_word): New, factored out from
6824 ...
6825 (advance_to_expression_complete_word_point): ... this.
6826 (advance_to_filename_complete_word_point): New.
6827 * completer.h (advance_to_filename_complete_word_point): New
6828 declaration.
6829
6830 2019-06-13 Pedro Alves <palves@redhat.com>
6831
6832 * compile/compile.c: Include "cli/cli-option.h".
6833 (compile_print_value): Scope data pointer is now a
6834 value_print_options pointer; adjust.
6835 (compile_print_command): Process options. Scope data pointer is
6836 now a value_print_options pointer; adjust.
6837 (_initialize_compile): Update "compile print"'s help to include
6838 supported options. Install a completer for "compile print".
6839 * cp-valprint.c (show_vtblprint, show_objectprint)
6840 (show_static_field_print): Delete.
6841 (_initialize_cp_valprint): Don't install "set print
6842 static-members", "set print vtbl", "set print object" here.
6843 * printcmd.c: Include "cli/cli-option.h" and
6844 "common/gdb_optional.h".
6845 (print_command_parse_format): Rework to fill in a
6846 value_print_options instead of a format_data.
6847 (print_value): Change parameter type from format_data pointer to
6848 value_print_options reference. Adjust.
6849 (print_command_1): Process options. Adjust to pass down a
6850 value_print_options.
6851 (print_command_completer): New.
6852 (_initialize_printcmd): Install print_command_completer as
6853 handle_brkchars completer for the "print" command. Update
6854 "print"'s help to include supported options.
6855 * valprint.c: Include "cli/cli-option.h".
6856 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6857 here from cp-valprint.c.
6858 (boolean_option_def, uinteger_option_def)
6859 (value_print_option_defs, make_value_print_options_def_group):
6860 New. Use gdb::option::add_setshow_cmds_for_options to install
6861 "set print elements", "set print null-stop", "set print repeats",
6862 "set print pretty", "set print union", "set print array", "set
6863 print address", "set print symbol", "set print array-indexes".
6864 * valprint.h: Include <string> and "cli/cli-option.h".
6865 (make_value_print_options_def_group): Declare.
6866 (print_value): Change parameter type from format_data pointer to
6867 value_print_options reference.
6868 (print_command_completer): Declare.
6869
6870 2019-06-13 Pedro Alves <palves@redhat.com>
6871
6872 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6873 (COMMON_SFILES): Add maint-test-settings.c.
6874 * cli/cli-decode.c (boolean_enums): New global, factored out from
6875 ...
6876 (add_setshow_boolean_cmd): ... here.
6877 * cli/cli-decode.h (boolean_enums): Declare.
6878 * cli/cli-option.c: New file.
6879 * cli/cli-option.h: New file.
6880 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6881 factored out from ...
6882 (parse_cli_boolean_value(const char *)): ... this.
6883 (is_unlimited_literal): Change parameter type to pointer to
6884 pointer. Adjust and advance ARG pointer.
6885 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6886 (parse_cli_var_enum): New, factored out from ...
6887 (do_set_command): ... this. Adjust.
6888 * cli/cli-setshow.h (parse_cli_boolean_value)
6889 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6890 (parse_cli_var_enum): Declare.
6891 * cli/cli-utils.c: Include "cli/cli-option.h".
6892 (get_ulongest): New.
6893 * cli/cli-utils.h (get_ulongest): Declare.
6894 (check_for_argument): New overloads.
6895 * maint-test-options.c: New file.
6896
6897 2019-06-13 Pedro Alves <palves@redhat.com>
6898
6899 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6900 parse a range if "-" is at the end of the string.
6901
6902 2019-06-13 Pedro Alves <palves@redhat.com>
6903
6904 * cli/cli-setshow.c (parse_auto_binary_operation)
6905 (parse_cli_boolean_value): Don't allow "o".
6906
6907 2019-06-13 Pedro Alves <palves@redhat.com>
6908
6909 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6910 * NEWS: Mention maint test-settings KIND.
6911 * maint-test-settings.c: New file.
6912
6913 2019-06-13 Pedro Alves <palves@redhat.com>
6914
6915 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6916 completer.
6917 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6918 "set" completers.
6919
6920 2019-06-13 Pedro Alves <palves@redhat.com>
6921
6922 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6923 after item.
6924
6925 2019-06-13 Pedro Alves <palves@redhat.com>
6926
6927 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6928
6929 2019-06-13 Pedro Alves <palves@redhat.com>
6930
6931 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6932 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6933 call.
6934 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6935 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6936 calls.
6937 (check_for_argument): Skip spaces after argument.
6938
6939 2019-06-13 Pedro Alves <palves@redhat.com>
6940
6941 * thread.c (thread_apply_command): Adjust TID parsing.
6942 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6943 detected before end of string.
6944 (tid_is_in_list): Error out if LIST is invalid.
6945
6946 2019-06-13 Pedro Alves <palves@redhat.com>
6947
6948 * completer.c (complete_line_internal_1): Rewind completion word
6949 point.
6950 (completion_tracker::advance_custom_word_point_by): Change
6951 parameter type to int.
6952 * completer.h (completion_tracker::advance_custom_word_point_by):
6953 Likewise.
6954
6955 2019-06-13 Pedro Alves <palves@redhat.com>
6956
6957 * completer.c (advance_to_completion_word): Handle delimiters.
6958
6959 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6960
6961 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6962
6963 2019-06-11 Tom Tromey <tom@tromey.com>
6964
6965 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6966 (xmalloc_failed): Move to alloc.c.
6967 * alloc.c: New file.
6968 * Makefile.in (COMMON_SFILES): Add alloc.c.
6969
6970 2019-06-11 Tom Tromey <tom@tromey.com>
6971
6972 * nat/linux-waitpid.c: Don't include server.h.
6973 (linux_debug): Remove.
6974 (my_waitpid): Update.
6975
6976 2019-06-11 Tom Tromey <tromey@adacore.com>
6977
6978 * infcall.c (_initialize_infcall): Remove trailing newline from
6979 help.
6980 * user-regs.c (_initialize_user_regs): Remove trailing newline
6981 from help.
6982 * typeprint.c (_initialize_typeprint): Remove trailing newline
6983 from help.
6984 * reverse.c (_initialize_reverse): Remove trailing newlines from
6985 help.
6986 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6987 from help.
6988 * language.c (add_set_language_command): Remove trailing newline
6989 from help.
6990 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6991 help.
6992 * disasm.c (_initialize_disasm): Remove trailing newline from
6993 help.
6994 * top.c (init_main): Remove trailing newline from help.
6995 * interps.c (_initialize_interpreter): Remove trailing newline
6996 from help.
6997 * btrace.c (_initialize_btrace): Remove trailing newlines from
6998 help.
6999 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7000 from help.
7001 * python/python.c (_initialize_python): Remove trailing newline
7002 from help.
7003 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7004 help.
7005 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7006 from help. Reformat some text.
7007 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7008 from help.
7009 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7010 newline from help.
7011
7012 2019-06-11 Tom Tromey <tromey@adacore.com>
7013
7014 * darwin-nat.c (darwin_decode_exception_message)
7015 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7016
7017 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7018
7019 * valops.c (value_slice): Check for not allocated or not
7020 associated values.
7021
7022 2019-06-10 Tom de Vries <tdevries@suse.de>
7023
7024 PR gdb/24618
7025 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7026 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7027 invalid.
7028
7029 2019-06-10 Tom de Vries <tdevries@suse.de>
7030
7031 PR gdb/24611
7032 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7033 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7034
7035 2019-06-10 Tom de Vries <tdevries@suse.de>
7036
7037 PR symtab/24545
7038 * symtab.c (struct demangled_name_entry): Add language field.
7039 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7040 static minimal symbol". Set and use language field.
7041
7042 2019-06-10 Tom Tromey <tromey@adacore.com>
7043
7044 * ada-lang.c (_initialize_ada_language): Update help text.
7045
7046 2019-06-10 Tom Tromey <tromey@adacore.com>
7047
7048 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7049 with a newline.
7050 * guile/guile.c (handle_boot_error): Don't end warning with a
7051 newline.
7052 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7053 warning with a newline.
7054 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7055 newline.
7056 (s12z_frame_cache): Likewise.
7057 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7058 a newline.
7059 * solib-svr4.c (disable_probes_interface): Don't end warning with
7060 a newline.
7061 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7062 newline.
7063 * python/python.c (do_finish_initialization): Don't end warning
7064 with a newline.
7065
7066 2019-06-10 Tom Tromey <tom@tromey.com>
7067
7068 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7069 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7070 gdbpy_enter.
7071
7072 2019-06-10 Tom Tromey <tromey@adacore.com>
7073
7074 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7075 data.
7076 (elf_new_init): Don't call stabsread_new_init.
7077 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7078 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7079 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7080
7081 2019-06-10 Tom de Vries <tdevries@suse.de>
7082
7083 PR symtab/16264
7084 PR symtab/24517
7085 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7086
7087 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7088
7089 * source.c (find_and_open_source): Also rewrite relative file
7090 names.
7091
7092 2019-04-26 Amos Bird <amosbird@gmail.com>
7093
7094 * annotate.c (annotate_thread_exited): Add "thread-exited"
7095 annotation.
7096
7097 2019-06-06 Tom Tromey <tromey@adacore.com>
7098
7099 * maint.h (class scoped_command_stats): Use
7100 DISABLE_COPY_AND_ASSIGN.
7101 <print_time>: New method.
7102 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7103 print_time.
7104 (scoped_command_stats::print_time): New method.
7105
7106 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7107
7108 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7109 instructions of lengths 6 or 8 bytes.
7110
7111 2019-06-04 Pedro Alves <palves@redhat.com>
7112
7113 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7114
7115 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7116 * breakpoint.c (condition_completer): Likewise.
7117 * cli/cli-dump.c (scan_expression): Likewise.
7118 * common/filestuff.c (mkdir_recursive): Likewise.
7119 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7120 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7121 (gdb_abspath): Likewise.
7122 * compile/compile-cplus-types.c
7123 (compile_cplus_instance::decl_name): Likewise.
7124 * completer.c (complete_explicit_location):
7125 (signal_completer, reg_or_group_completer_1): Likewise.
7126 * cp-support.c (cp_remove_params_if_any): Likewise.
7127 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7128 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7129 * infcmd.c (strip_bg_char): Likewise.
7130 * linespec.c (copy_token_string): Likewise.
7131 * mi/mi-main.c (output_cores): Likewise.
7132 * psymtab.c (psymtab_search_name):
7133 * symfile.c (test_set_ext_lang_command): Likewise.
7134 * target.c (target_fileio_read_stralloc): Likewise.
7135 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7136 * value.c (complete_internalvar): Likewise.
7137
7138 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7139
7140 Add objfile property to gdb.Type.
7141 * NEWS: Mention Python API addition.
7142 * python/py-type.c (typy_get_objfile): New method.
7143
7144 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7145
7146 * NEWS: Mention the new set|show style [title|highlight].
7147 Mention changes to "show style", "help" and "apropos".
7148
7149 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7150
7151 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7152 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7153 instead of print_help_for_command.
7154 (print_doc_of_command): New function.
7155 (help_list): Add 'apropos -v word' suggestion.
7156 (print_help_for_command): Style the command name using title style.
7157 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7158 (_initialize_cli_cmds): Describe -v in apropos_command help.
7159
7160 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7161
7162 * cli/cli-style.h (cli_style_option): Add name in constructor,
7163 add m_name class member, add constructor with intensity,
7164 add name class function.
7165 (cli_style_option::add_setshow_commands): Remove name argument.
7166 (highlight_style, title_style): New styles.
7167 * cli/cli-style.c (do_show): New function that shows a style
7168 characteristic styling the style name with itself.
7169 (set_style_name): New function.
7170 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7171 Update all callers according to the changes in cli/cli-style.h.
7172 * utils.h (fputs_highlighted): New function.
7173 * utils.c (fputs_highlighted): Likewise.
7174
7175 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7176
7177 * NEWS: Mention new pipe command and new convenience variables.
7178
7179 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7180
7181 * cli/cli-cmds.c (pipe_command): New function.
7182 (_initialize_cli_cmds): Call add_com for pipe_command.
7183 Define | as an alias for pipe.
7184 (exit_status_set_internal_vars): New function.
7185 (shell_escape): Call exit_status_set_internal_vars.
7186 cli/cli-decode.c (find_command_name_length): Recognize | as
7187 a single character command.
7188
7189 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7190
7191 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7192 top.c (execute_command_to_ui_file): New function, mostly a copy
7193 of execute_command_to_string.
7194 (execute_command_to_string): Implement by calling
7195 execute_command_to_ui_file.
7196
7197 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7198
7199 * top.h (saved_command_line): Remove declaration.
7200 * top.c (previous_saved_command_line, previous_repeat_arguments):
7201 New variables.
7202 (saved_command_line): Make static, define together with other
7203 'repeat variables'.
7204 (dont_repeat): Clear repeat_arguments.
7205 (repeat_previous, get_saved_command_line, save_command_line):
7206 New functions.
7207 (gdb_init): Initialize saved_command_line
7208 and previous_saved_command_line.
7209 * main.c (captured_main_1): Remove saved_command_line initialization.
7210 * event-top.c (handle_line_of_input): Update to use
7211 the new 'repeat' related functions instead of direct access to
7212 saved_command_line.
7213 * command.h (repeat_previous, get_saved_command_line,
7214 save_command_line): New declarations.
7215 (dont_repeat): Add comment.
7216
7217 2019-05-30 Tom Tromey <tromey@adacore.com>
7218
7219 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7220 Fix comment.
7221 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7222
7223 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7224
7225 PR cli/24587
7226 * completer.c (complete): Initialize variable word.
7227
7228 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7229
7230 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7231 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7232 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7233 'body' is NULL to the outter 'if', protecting the '!is_define'
7234 situation as well.
7235
7236 2019-05-29 Tom Tromey <tromey@adacore.com>
7237
7238 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7239 (dwarf_unknown): New function.
7240 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7241 (dwarf_type_encoding_name): Use dwarf_unknown.
7242
7243 2019-05-29 Tom Tromey <tromey@adacore.com>
7244
7245 PR c++/20020:
7246 * cp-valprint.c (cp_print_value_fields): Call
7247 cp_print_static_field inside "try".
7248
7249 2019-05-29 Tom Tromey <tromey@adacore.com>
7250
7251 * inflow.c (struct terminal_info): Add default operator=.
7252 * configure: Rebuild.
7253 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7254 -Wdeprecated-copy-dtor, -Wredundant-move.
7255
7256 2019-05-29 Tom Tromey <tromey@adacore.com>
7257
7258 * NEWS: Add entry.
7259 * infcmd.c (print_return_value_1): Handle finish_print
7260 option.
7261 (show_print_finish): New function.
7262 (_initialize_infcmd): Add "set/show print finish" commands.
7263 * valprint.c (user_print_options): Initialize new member.
7264 * valprint.h (struct value_print_options) <finish_print>: New
7265 member.
7266
7267 2019-05-28 Tom Tromey <tromey@adacore.com>
7268
7269 * ada-lang.c (ada_remove_Xbn_suffix)
7270 (find_old_style_renaming_symbol)
7271 (parse_old_style_renaming): Remove.
7272 (ada_find_renaming_symbol): Don't call
7273 find_old_style_renaming_symbol.
7274 (ada_is_renaming_symbol): Rename from
7275 ada_find_renaming_symbol. Remove "block" parameter. Return
7276 bool. Now static.
7277 (ada_read_var_value): Update and simplify.
7278 * ada-exp.y (write_var_or_type): Remove old code.
7279
7280 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7281
7282 PR gdb/25010
7283 * event-top.c: Remove include comment.
7284 * inflow.c (class scoped_ignore_sigttou): Move from here...
7285 * inflow.h (class scoped_ignore_sigttou): ...to here.
7286 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7287 * top.c: Remove include comment.
7288
7289 2019-05-27 Tom Tromey <tom@tromey.com>
7290
7291 * NEWS: Fix typo.
7292
7293 2019-05-22 Tom Tromey <tromey@adacore.com>
7294
7295 * target.c (target_follow_exec): Constify parameter.
7296 * target-delegates.c: Rebuild.
7297 * remote.c (remote_target::follow_exec): Constify parameter.
7298 * infrun.c (follow_exec): Constify parameter.
7299 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7300 (target_follow_exec): Likewise.
7301
7302 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7303
7304 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7305 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7306
7307 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7308
7309 * NEWS: Add debugredirect and testsuite sections.
7310
7311 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7312
7313 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7314 target descriptions using exclusively floating point register name
7315 aliases.
7316
7317 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7318
7319 PR gdb/18644:
7320 * f-lang.c (build_fortran_types): Handle the case where
7321 gdbarch_floatformat_for_type returns a nullptr.
7322
7323 2019-05-21 Tom de Vries <tdevries@suse.de>
7324
7325 PR cli/24587
7326 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7327
7328 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7329
7330 PR gdb/18644:
7331 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7332 16-byte floats.
7333 * i386-tdep.c (i386_floatformat_for_type): Use
7334 floatformats_ia64_quad for the 16-byte floating point component
7335 within a fortran 32-byte complex number.
7336
7337 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7338
7339 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7340 delete default constructor.
7341 (find_partial_die): Update to return const struct.
7342 (partial_die_parent_scope): Move variable declaration into scope
7343 of its use and change its type to auto.
7344 (guess_partial_die_structure_name): Likewise.
7345 (partial_die_info::fixup): Likewise.
7346
7347 2019-05-17 Tom Tromey <tromey@adacore.com>
7348
7349 * source.c (find_and_open_source): Remove cast.
7350
7351 2019-05-17 Tom Tromey <tromey@adacore.com>
7352
7353 * annotate.c (annotate_source): Make "filename" const.
7354 * annotate.h (annotate_source): Use const.
7355
7356 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7357
7358 * disasm.c (set_disassembler_options): Send errors to stderr.
7359
7360 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7361
7362 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7363 (cli_interp_base::set_logging): Check debug_redirect.
7364 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7365 * cli/cli-logging.c (debug_redirect): Add static variable.
7366 (pop_output_files): Add default param.
7367 (handle_redirections): Print debug setting.
7368 (show_logging_command): Likewise.
7369 (_initialize_cli_logging): Add debugredirect command.
7370 * interps.c (current_interp_set_logging): Add debug_redirect
7371 parameter.
7372 * interps.h (set_logging): Add debug_redirect parameter.
7373 (current_interp_set_logging): Likewise.
7374 * mi/mi-common.h: Likewise.
7375 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7376
7377 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7378 Tom Tromey <tromey@adacore.com>
7379
7380 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7381 directly.
7382 * cli/cli-interp.h (make_logging_output): Remove declaration.
7383 * cli/cli-logging.c (make_logging_output): Remove function.
7384 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7385 directly.
7386 * ui-file.c (tee_file::tee_file): Remove bools.
7387 (tee_file::~tee_file): Remove deletes.
7388 * ui-file.h (tee_file): Remove bools.
7389
7390 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7391
7392 * mi/mi-cmds.h (mi_cmd_complete): New function.
7393 * mi/mi-main.c (mi_cmd_complete): Likewise.
7394 * mi/mi-cmds.c: Define new MI command -complete.
7395 * NEWS: Mention new -complete command.
7396
7397 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7398
7399 * completer.h (complete): New function.
7400 * completer.c (complete): Likewise.
7401 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7402 function defined in completer.h.
7403
7404 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7405
7406 * MAINTAINERS (Write After Approval): Add myself.
7407
7408 2019-05-17 Tom de Vries <tdevries@suse.de>
7409
7410 PR gdb/24094
7411 * dwarf2read.c (struct cu_partial_die_info): New struct.
7412 (find_partial_die): Return cu_partial_die_info.
7413 (partial_die_parent_scope, guess_partial_die_structure_name)
7414 (partial_die_info::fixup): Handle new return type of find_partial_die.
7415
7416 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7417
7418 PR breakpoints/24541
7419 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7420 "std::string", simplifying the algorithm.
7421
7422 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7423
7424 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7425 (stap_static_probe_ops::get_probes): Likewise.
7426
7427 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7428
7429 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7430 '-')" and "else if".
7431 (stap_parse_single_operand): Join checks for
7432 "gdbarch_stap_parse_special_token_p" and
7433 "gdbarch_stap_parse_special_token" in the same "if" statement.
7434 Invert check when verifying for operation on register
7435 displacement.
7436
7437 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7438
7439 * stap-probe.c (stap_get_opcode): Update comment.
7440 (stap_get_expected_argument_type): Likewise.
7441 (handle_stap_probe): Likewise.
7442
7443 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7444
7445 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7446 return type to 'bool'. Adjust comment. Use 'bool' when
7447 appropriate.
7448 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7449 * stap-probe.c (stap_parse_argument_1): Likewise.
7450 (stap_is_operator): Likewise.
7451 (stap_is_generic_prefix): Likewise.
7452 (stap_is_register_prefix): Likewise.
7453 (stap_is_register_indirection_prefix): Likewise.
7454 (stap_is_integer_prefix): Likewise.
7455 (stap_generic_check_suffix): Likewise.
7456 (stap_check_integer_suffix): Likewise.
7457 (stap_check_register_suffix): Likewise.
7458 (stap_check_register_indirection_suffix): Likewise.
7459 (stap_parse_register_operand): Likewise.
7460 (stap_parse_single_operand): Likewise.
7461 (stap_parse_argument_1): Likewise.
7462 (stap_probe::get_argument_count): Likewise.
7463 (stap_is_operator): Likewise.
7464
7465 2019-05-16 Tom Tromey <tromey@adacore.com>
7466
7467 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7468 keyword to foreach.
7469
7470 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7471
7472 * linux-thread-db.c (try_thread_db_load_1): Change return type
7473 to bool.
7474 (try_thread_db_load): Likewise.
7475 (try_thread_db_load_from_pdir_1): Likewise.
7476 (try_thread_db_load_from_pdir): Likewise.
7477 (try_thread_db_load_from_sdir): Likewise.
7478 (try_thread_db_load_from_dir): Likewise.
7479 (thread_db_load_search): Likewise.
7480 (has_libpthread): Likewise.
7481 (thread_db_load): Likewise.
7482
7483 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7484
7485 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7486 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7487 NULL, and complain/return if that's the case.
7488
7489 2019-05-15 John Darrington <john@darrington.wattle.id.au>
7490
7491 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7492 (advance, posn, abstract_read_memory): New functions.
7493 [struct mem_read_abstraction]: New struct.
7494 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7495
7496 2019-05-14 Tom Tromey <tromey@adacore.com>
7497
7498 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7499 value is not lval_memory.
7500
7501 2019-05-14 Tom Tromey <tromey@adacore.com>
7502
7503 * solib.c (info_sharedlibrary_command): Style the file name.
7504
7505 2019-05-14 Alan Hayward <alan.hayward@arm.com>
7506
7507 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7508 (aarch64_vnv_type): Likewise.
7509 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7510 * common/tdesc.c: Likewise.
7511 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7512 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7513 * features/aarch64-fpu.xml: Add ieee half view.
7514 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7515 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7516 * gdbtypes.h (struct builtin_type): Likewise.
7517 (struct objfile_type): Likewise.
7518
7519 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
7520
7521 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7522 typo.
7523 * location.h (string_to_event_location): Likewise.
7524
7525 2019-05-11 Joel Brobecker <brobecker@adacore.com>
7526
7527 GDB 8.3 released.
7528
7529 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7530
7531 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7532 New variable declaration.
7533 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7534 New variable.
7535 (print_one_breakpoint): Use ui_out::test_flags and new global
7536 variable to compute use_fixed_output.
7537 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7538 Remove.
7539 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7540 (mi_multi_location_breakpoint_output_fixed): Remove.
7541 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7542 new variable.
7543 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7544 fix_multi_location_breakpoint_output flag if version >= 3.
7545 * ui-out.h (enum ui_out_flag)
7546 <fix_multi_location_breakpoint_output>: New enumerator.
7547
7548 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7549
7550 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7551
7552 2019-05-10 Tom Tromey <tromey@adacore.com>
7553
7554 * ada-lang.c (catch_ada_completer): New function.
7555 (_initialize_ada_language): Use it.
7556
7557 2019-05-10 Tom Tromey <tromey@adacore.com>
7558
7559 * thread.c (print_thread_info): Make "requested_threads" const.
7560 * gdbthread.h (print_thread_info): Make "requested_threads"
7561 const.
7562 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7563 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7564
7565 2019-05-08 Tom Tromey <tom@tromey.com>
7566
7567 * gdbtypes.c (objfile_type_data): Change type.
7568 (objfile_type, _initialize_gdbtypes): Update.
7569
7570 2019-05-08 Tom Tromey <tom@tromey.com>
7571
7572 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7573 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7574 (_initialize_dwarf2_frame): Update.
7575
7576 2019-05-08 Tom Tromey <tom@tromey.com>
7577
7578 * objc-lang.c (objc_objfile_data): Change type.
7579 (find_methods): Update.
7580 (_initialize_objc_lang): Remove.
7581
7582 2019-05-08 Tom Tromey <tom@tromey.com>
7583
7584 * stabsread.c (rs6000_builtin_type_data): Change type.
7585 (rs6000_builtin_type, _initialize_stabsread): Update.
7586
7587 2019-05-08 Tom Tromey <tom@tromey.com>
7588
7589 * mips-tdep.c (mips_pdr_data): Remove.
7590 (_initialize_mips_tdep): Update.
7591
7592 2019-05-08 Tom Tromey <tom@tromey.com>
7593
7594 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7595 (hppa_init_objfile_priv_data, read_unwind_info)
7596 (find_unwind_entry, _initialize_hppa_tdep): Update.
7597
7598 2019-05-08 Tom Tromey <tom@tromey.com>
7599
7600 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7601 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7602 on obstack.
7603 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7604
7605 2019-05-08 Tom Tromey <tom@tromey.com>
7606
7607 * mdebugread.c (basic_type_data): Change type.
7608 (basic_type, _initialize_mdebugread): Update.
7609
7610 2019-05-08 Tom Tromey <tom@tromey.com>
7611
7612 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7613
7614 2019-05-08 Tom Tromey <tom@tromey.com>
7615
7616 * nto-tdep.c (nto_inferior_data_reg): Change type.
7617 (nto_inferior_data): Update.
7618 (nto_inferior_data_cleanup, nto_new_inferior_data)
7619 (_initialize_nto_tdep): Remove.
7620 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7621
7622 2019-05-08 Tom Tromey <tom@tromey.com>
7623
7624 * ada-lang.c (struct ada_inferior_data): Add initializers.
7625 (ada_inferior_data): Change type.
7626 (ada_inferior_data_cleanup): Remove.
7627 (get_ada_inferior_data, ada_inferior_exit)
7628 (struct ada_pspace_data): Add initializers, destructor.
7629 (ada_pspace_data_handle): Change type.
7630 (get_ada_pspace_data): Update.
7631 (ada_pspace_data_cleanup): Remove.
7632
7633 2019-05-08 Tom Tromey <tom@tromey.com>
7634
7635 * coffread.c (struct coff_symfile_info): Add initializers.
7636 (coff_objfile_data_key): Move lower. Change type.
7637 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7638 Update.
7639 (coff_free_info): Remove.
7640
7641 2019-05-08 Tom Tromey <tom@tromey.com>
7642
7643 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7644 (fbsd_pspace_data_handle): Move lower. Change type.
7645 (get_fbsd_pspace_data): Update.
7646 (fbsd_pspace_data_cleanup): Remove.
7647 (_initialize_fbsd_tdep): Update.
7648
7649 2019-05-08 Tom Tromey <tom@tromey.com>
7650
7651 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7652 (get_ada_tasks_pspace_data): Update.
7653 (ada_tasks_pspace_data_cleanup): Remove.
7654 (_initialize_tasks): Update.
7655 (ada_tasks_inferior_data_handle): Change type.
7656 (get_ada_tasks_inferior_data): Update.
7657 (ada_tasks_inferior_data_cleanup): Remove.
7658 (struct ada_tasks_pspace_data): Add initializers.
7659
7660 2019-05-08 Tom Tromey <tom@tromey.com>
7661
7662 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7663 * symfile-debug.c (debug_sym_get_probes): Change type.
7664 * stap-probe.c (handle_stap_probe):
7665 (stap_static_probe_ops::get_probes): Change type.
7666 * probe.h (class static_probe_ops) <get_probes>: Change type.
7667 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7668 (parse_probes_in_pspace): Update.
7669 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7670 Update.
7671 (any_static_probe_ops::get_probes): Change type.
7672 * elfread.c (elfread_data): New typedef.
7673 (probe_key): Change type.
7674 (elf_get_probes): Likewise. Update.
7675 (probe_key_free): Remove.
7676 (_initialize_elfread): Update.
7677 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7678 Change type.
7679 (dtrace_process_dof_probe, dtrace_process_dof)
7680 (dtrace_static_probe_ops::get_probe): Change type.
7681
7682 2019-05-08 Tom Tromey <tom@tromey.com>
7683
7684 * xcoffread.c (struct xcoff_symfile_info): Rename from
7685 coff_symfile_info. Add initializers.
7686 (xcoff_objfile_data_key): Move lower. Change type.
7687 (XCOFF_DATA): Rewrite.
7688 (xcoff_free_info): Remove.
7689 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7690 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7691 (xcoff_initial_scan): Update.
7692
7693 2019-05-08 Tom Tromey <tom@tromey.com>
7694
7695 * solib-svr4.c (struct svr4_info): Add initializers and
7696 destructor.
7697 <probes_table>: Now an htab_up.
7698 (solib_svr4_pspace_data): Change type.
7699 (free_probes_table): Simplify.
7700 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7701 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7702 (probes_table_remove_objfile_probes, register_solib_event_probe)
7703 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7704 (_initialize_svr4_solib): Update.
7705
7706 2019-05-08 Tom Tromey <tom@tromey.com>
7707
7708 * remote.c (remote_pspace_data): Change type.
7709 (remote_pspace_data_cleanup): Remove.
7710 (get_remote_exec_file, set_pspace_remote_exec_file)
7711 (_initialize_remote): Update.
7712
7713 2019-05-08 Tom Tromey <tom@tromey.com>
7714
7715 * breakpoint.c (breakpoint_objfile_key): Change type.
7716 (get_breakpoint_objfile_data): Update.
7717 (free_breakpoint_objfile_data): Remove.
7718 (_initialize_breakpoint): Update.
7719
7720 2019-05-08 Tom Tromey <tom@tromey.com>
7721
7722 * linux-tdep.c (struct linux_info): Add initializers.
7723 (linux_inferior_data): Move. Change type.
7724 (invalidate_linux_cache_inf): Update.
7725 (linux_inferior_data_cleanup): Remove.
7726 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7727
7728 2019-05-08 Tom Tromey <tom@tromey.com>
7729
7730 * auxv.c (auxv_inferior_data): Move. Change type.
7731 (auxv_inferior_data_cleanup): Remove.
7732 (invalidate_auxv_cache_inf): Rewrite.
7733 (get_auxv_inferior_data, _initialize_auxv): Update.
7734
7735 2019-05-08 Tom Tromey <tom@tromey.com>
7736
7737 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7738 (symfile_debug_objfile_data_key): Change type.
7739 (symfile_debug_installed, debug_qf_has_symbols)
7740 (debug_qf_find_last_source_symtab)
7741 (debug_qf_forget_cached_source_info)
7742 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7743 (debug_qf_print_stats, debug_qf_dump)
7744 (debug_qf_expand_symtabs_for_function)
7745 (debug_qf_expand_all_symtabs)
7746 (debug_qf_expand_symtabs_with_fullname)
7747 (debug_qf_map_matching_symbols)
7748 (debug_qf_expand_symtabs_matching)
7749 (debug_qf_find_pc_sect_compunit_symtab)
7750 (debug_qf_map_symbol_filenames)
7751 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7752 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7753 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7754 (debug_sym_read_linetable, debug_sym_relocate): Update.
7755 (symfile_debug_free_objfile): Remove.
7756 (install_symfile_debug_logging, _initialize_symfile_debug):
7757 Update.
7758
7759 2019-05-08 Tom Tromey <tom@tromey.com>
7760
7761 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7762 allocate_on_obstack.
7763 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7764 (get_dwarf2_per_objfile): Update.
7765 (set_dwarf2_per_objfile): Remove.
7766 (dwarf2_has_info, dwarf2_get_section_info): Update.
7767 (dwarf2_free_objfile): Remove.
7768 (_initialize_dwarf2_read): Update.
7769
7770 2019-05-08 Tom Tromey <tom@tromey.com>
7771
7772 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7773 initializers.
7774 <unsupported_script_warning_printed,
7775 script_not_found_warning_printed>: Now bool.
7776 (auto_load_pspace_data): Change type.
7777 (~auto_load_pspace_info): Rename from
7778 auto_load_pspace_data_cleanup.
7779 (get_auto_load_pspace_data, init_loaded_scripts_info)
7780 (clear_section_scripts, maybe_print_unsupported_script_warning)
7781 (maybe_print_script_not_found_warning, _initialize_auto_load):
7782 Update.
7783
7784 2019-05-08 Tom Tromey <tom@tromey.com>
7785
7786 * objfiles.c (objfile_pspace_info): Add destructor and
7787 initializers.
7788 (objfiles_pspace_data): Change type.
7789 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7790 (get_objfile_pspace_data): Update.
7791 (objfiles_bfd_data): Change type.
7792 (get_objfile_bfd_data): Update.
7793 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7794
7795 2019-05-08 Tom Tromey <tom@tromey.com>
7796
7797 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7798 Change type.
7799 (get_catch_syscall_inferior_data): Update.
7800 (catch_syscall_inferior_data_cleanup): Remove.
7801 (_initialize_break_catch_syscall): Update.
7802
7803 2019-05-08 Tom Tromey <tom@tromey.com>
7804
7805 * inflow.c (struct terminal_info): Add destructor and
7806 initializers.
7807 (inflow_inferior_data): Change type.
7808 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7809 (get_inflow_inferior_data, inflow_inferior_exit)
7810 (swap_terminal_info, _initialize_inflow): Update.
7811
7812 2019-05-08 Tom Tromey <tom@tromey.com>
7813
7814 * target-dcache.c (target_dcache_cleanup): Remove.
7815 (target_dcache_aspace_key): Change type.
7816 (target_dcache_init_p, target_dcache_invalidate)
7817 (target_dcache_get, target_dcache_get_or_init)
7818 (_initialize_target_dcache): Update.
7819 * dcache.h (struct dcache_deleter): New.
7820
7821 2019-05-08 Tom Tromey <tom@tromey.com>
7822
7823 * symtab.c (struct symbol_cache): Add destructor and
7824 initializers.
7825 (symbol_cache_key): Move. Change type.
7826 (make_symbol_cache, free_symbol_cache): Remove.
7827 (get_symbol_cache): Update.
7828 (symbol_cache_cleanup): Remove.
7829 (ALL_PSPACES, symbol_cache_flush)
7830 (maintenance_print_symbol_cache)
7831 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7832 Update.
7833
7834 2019-05-08 Tom Tromey <tom@tromey.com>
7835
7836 * symtab.c (struct main_info): Add destructor and initializers.
7837 (main_progspace_key): Move. Change type.
7838 (get_main_info): Update.
7839 (main_info_cleanup): Remove.
7840 (_initialize_symtab): Update.
7841
7842 2019-05-08 Tom Tromey <tom@tromey.com>
7843
7844 * registry.h (DECLARE_REGISTRY): Define the _key class.
7845
7846 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7847
7848 * NEWS: Merge two 'New commands' sections.
7849
7850 2019-05-08 Joel Brobecker <brobecker@adacore.com>
7851
7852 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7853 parameter and use Ada language definition instead.
7854 (ada_val_print_ptr): Remove unused language parameter.
7855 (ada_val_print_num): Remove language parameter and use Ada language
7856 definition instead.
7857 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7858 parameter.
7859 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7860 parameter and use Ada language definition instead.
7861 (ada_val_print_1): Update all ada_val_print_xxx calls.
7862 Remove language parameter.
7863 (ada_val_print): Update ada_val_print_1 call.
7864
7865 2019-05-08 Tom Tromey <tromey@adacore.com>
7866
7867 * remote.c (remote_hw_watchpoint_limit)
7868 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7869 Now static.
7870
7871 2019-05-08 Tom Tromey <tromey@adacore.com>
7872
7873 * maint.c (_initialize_maint_cmds): Move initialization code to
7874 remote.c.
7875 (watchdog, show_watchdog): Move to remote.c.
7876 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7877 "watchdog" static.
7878 (_initialize_remote): Move initialization code from maint.c.
7879 * defs.h (watchdog): Don't declare.
7880
7881 2019-05-08 Tom Tromey <tromey@adacore.com>
7882
7883 * tui/tui-interp.c: Include main.h.
7884 * interps.c: Include main.h.
7885 * main.h (interpreter_p): Declare.
7886 * defs.h (interpreter_p): Don't declare.
7887
7888 2019-05-08 Tom Tromey <tromey@adacore.com>
7889
7890 * dwarf2loc.c: Include dwarf2read.h.
7891 * defs.h (read_unsigned_leb128): Don't declare.
7892 * dwarf2read.h (read_unsigned_leb128): Declare.
7893
7894 2019-05-08 Tom Tromey <tromey@adacore.com>
7895
7896 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7897 method.
7898
7899 2019-05-08 Tom Tromey <tromey@adacore.com>
7900
7901 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7902 when no wrap column is set.
7903
7904 2019-05-08 Tom Tromey <tromey@adacore.com>
7905
7906 * c-lang.c (c_get_string): Handle non-C-style arrays.
7907
7908 2019-05-08 Tom Tromey <tromey@adacore.com>
7909
7910 * typeprint.c (print_offset_data::update): Print the bit offset,
7911 not the number of bits remaining.
7912
7913 2019-05-08 Tom Tromey <tromey@adacore.com>
7914
7915 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7916 padding at end of comment.
7917
7918 2019-05-08 Tom Tromey <tromey@adacore.com>
7919
7920 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7921 Compare main types.
7922
7923 2019-05-06 Tom Tromey <tom@tromey.com>
7924
7925 * common/scoped_mmap.c: Include common-defs.h.
7926 * common/scoped_mmap.h: Don't include config.h.
7927
7928 2019-05-04 Tom Tromey <tom@tromey.com>
7929
7930 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7931 (struct aarch64_call_info): Add initializers.
7932 <si>: Now a std::vector.
7933 (pass_on_stack, aarch64_push_dummy_call): Update.
7934
7935 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
7936 Tom Tromey <tom@tromey.com>
7937
7938 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7939 (ppc_threads): Now a std::vector. Now static.
7940 (hwdebug_find_thread_points_by_tid)
7941 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7942 Update.
7943
7944 2019-05-04 Tom Tromey <tom@tromey.com>
7945
7946 * arc-tdep.c (arc_tdesc_init): Return bool.
7947
7948 2019-05-04 Tom Tromey <tom@tromey.com>
7949
7950 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7951 Use gdb_assert_not_reached.
7952
7953 2019-05-04 Tom Tromey <tom@tromey.com>
7954
7955 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7956 "false".
7957
7958 2019-05-04 Tom Tromey <tom@tromey.com>
7959
7960 * arc-tdep.c (arc_tdesc_init): Use bool.
7961
7962 2019-05-04 Tom Tromey <tom@tromey.com>
7963
7964 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7965
7966 2019-05-04 Tom Tromey <tom@tromey.com>
7967
7968 * cli/cli-cmds.c (valid_command_p): Return bool.
7969
7970 2019-05-04 Tom Tromey <tom@tromey.com>
7971
7972 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7973 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7974
7975 2019-05-04 Raul Tambre <raul@tambre.ee>
7976
7977 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7978 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7979 operator for comparison.
7980
7981 2019-05-04 Tom Tromey <tom@tromey.com>
7982
7983 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7984 (lookup_partial_symbol, print_partial_symbols)
7985 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7986 (psymbol_compare): Update.
7987 (add_psymbol_to_bcache): Clear the entire psymbol.
7988 (maintenance_check_psymtabs): Update.
7989 * psympriv.h (struct partial_symbol): Don't derive from
7990 general_symbol_info.
7991 <obj_section, unrelocated_address, address,
7992 set_unrelocated_address>: Update.
7993 <ginfo>: New member.
7994 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7995 (debug_names::write_psymbols): Update.
7996
7997 2019-05-04 Tom de Vries <tdevries@suse.de>
7998
7999 * contrib/cc-with-tweaks.sh: Support -n arg.
8000
8001 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8002
8003 * corelow.c (core_target::detach): Ensure frame cache and
8004 register caches are cleared.
8005 inferior.c (exit_inferior_1): Likewise.
8006
8007 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8008 Tom Tromey <tom@tromey.com>
8009
8010 * dictionary.c (collate_pending_symbols_by_language): Remove
8011 "struct" from foreach.
8012 * symtab.c (lookup_global_symbol_from_objfile)
8013 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8014 foreach.
8015 * ser-tcp.c (net_open): Remove "struct" from foreach.
8016 * objfiles.c (objfile_relocate, objfile_rebase)
8017 (objfile_has_symbols): Remove "struct" from foreach.
8018 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8019 from foreach.
8020 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8021 foreach.
8022 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8023 "struct" from foreach.
8024 * ada-lang.c (create_excep_cond_exprs)
8025 (ada_exception_catchpoint_cond_string): Remove "struct" from
8026 foreach.
8027
8028 2019-05-03 Tom Tromey <tromey@adacore.com>
8029
8030 * ada-exp.y (convert_char_literal): Check suffix of each
8031 enumerator.
8032
8033 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8034
8035 PR ada/21406:
8036 * ada-exp.y (yywrap): Don't define.
8037 * ada-lex.l (%option): Add noyywrap
8038 (yywrap): Remove.
8039
8040 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8041
8042 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8043 _WIN32_WINNT to the XP level, unless already defined to a higher
8044 level.
8045
8046 * unittests/parse-connection-spec-selftests.c:
8047 * ser-tcp.c:
8048 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8049 override.
8050
8051 * symfile.c (find_separate_debug_file): Remove colon from the
8052 drive spec of DOS/Windows file names of the target, so that the
8053 file name produced from DEBUGDIR and the target's directory will
8054 be valid on DOS/Windows systems.
8055
8056 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8057
8058 * rust-lang.c (val_print_struct): Handle printing structures
8059 containing strings.
8060
8061 2019-05-02 Tom Tromey <tromey@adacore.com>
8062
8063 * valarith.c (_initialize_valarith): Remove.
8064
8065 2019-05-01 Tom Tromey <tromey@adacore.com>
8066
8067 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8068 bitfields.
8069
8070 2019-05-01 Tom Tromey <tromey@adacore.com>
8071
8072 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8073 for big-endian copies.
8074
8075 2019-04-30 Ali Tamur <tamur@google.com>
8076 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8077 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8078 (read_3_bytes): New function.
8079
8080 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8081
8082 * windows-nat.c (main_thread_id): Delete.
8083 (handle_output_debug_string): Replace main_thread_id by
8084 current_event.dwThreadId.
8085 (fake_create_process): Likewise.
8086 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8087 Do not set main_thread_id.
8088 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8089 current_event.dwThreadId.
8090 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8091
8092 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8093
8094 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8095 Use current_event.dwThreadId instead of main_thread_id.
8096
8097 2019-04-30 Tom Tromey <tromey@adacore.com>
8098
8099 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8100 (create_excep_cond_exprs): Iterate over program spaces.
8101 (ada_exception_catchpoint_cond_string): Examine all minimal
8102 symbols for exception types.
8103
8104 2019-04-30 Tom Tromey <tromey@adacore.com>
8105
8106 PR c++/24470:
8107 * dwarf2read.c (process_structure_scope): Handle case where type
8108 has template parameters but no symbol was created.
8109
8110 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8111 Chris January <chris.january@arm.com>
8112
8113 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8114 qualifier.
8115 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8116
8117 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8118
8119 * f-typeprint.c (f_print_type): Update rules for printing
8120 whitespace.
8121 (f_type_print_varspec_suffix): Likewise.
8122
8123 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8124 Chris January <chris.january@arm.com>
8125
8126 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8127 function arguments.
8128
8129 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8130
8131 * f-lang.c (build_fortran_types): Change name of void type to
8132 lower case.
8133 * f-typeprint.c (f_type_print_base): Print the name of the void
8134 type, rather than a fixed string.
8135 * f-valprint.c (f_decorations): Use lower case void string.
8136
8137 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8138 Chris January <chris.january@arm.com>
8139
8140 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8141 types for Fortran.
8142
8143 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8144 Chris January <chris.january@arm.com>
8145 David Lecomber <david.lecomber@arm.com>
8146
8147 * f-exp.y (BINOP_INTRINSIC): New token.
8148 (exp): New parser rule handling BINOP_INTRINSIC.
8149 (f77_keywords): Add new builtin procedures.
8150 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8151 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8152 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8153 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8154 (print_unop_subexp_f): New function.
8155 (print_binop_subexp_f): New function.
8156 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8157 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8158 (dump_subexp_body_f): Likewise.
8159 (operator_check_f): Likewise.
8160 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8161 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8162
8163 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8164
8165 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8166 UNOP_KIND.
8167 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8168 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8169 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8170 (operator_length_f): New fuction.
8171 (print_subexp_f): New function.
8172 (op_name_f): New function.
8173 (dump_subexp_body_f): New function.
8174 (operator_check_f): New function.
8175 (exp_descriptor_f): Replace standard expression handling functions
8176 with new functions.
8177 * gdb/fortran-operator.def: New file.
8178 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8179 * gdb/std-operator.def: Remove UNOP_KIND.
8180
8181 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8182
8183 * std-operator.def: Remove unbalanced, stray double quote
8184 character.
8185
8186 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8187 Chris January <chris.january@arm.com>
8188 Daniel Everett <daniel.everett@arm.com>
8189 Nick Forrington <nick.forrington@arm.com>
8190 Richard Bunt <richard.bunt@arm.com>
8191
8192 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8193 of depth when printing anonymous structs or unions.
8194 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8195 Don't print either the top-level value, or the children if the
8196 max-depth is exceeded.
8197 (ppscm_print_children): When printing the key of a map, allow one
8198 extra level of depth.
8199 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8200 print either the top-level value, or the children if the max-depth
8201 is exceeded.
8202 (print_children): When printing the key of a map, allow one extra
8203 level of depth.
8204 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8205 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8206 (user_print_options): Initialise max_depth field.
8207 (val_print_scalar_or_string_type_p): New function.
8208 (val_print): Check to see if the max depth has been reached.
8209 (val_print_check_max_depth): Define new function.
8210 (show_print_max_depth): New function.
8211 (_initialize_valprint): Add 'print max-depth' option.
8212 * valprint.h (struct value_print_options) <max_depth>: New field.
8213 (val_print_check_max_depth): Declare new function.
8214 * NEWS: Document new feature.
8215
8216 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8217
8218 * ada-lang.c (ada_language_defn): Initialise new field.
8219 * c-lang.c (c_is_string_type_p): New function.
8220 (c_language_defn): Initialise new field.
8221 (cplus_language_defn): Initialise new field.
8222 (asm_language_defn): Initialise new field.
8223 (minimal_language_defn): Initialise new field.
8224 * c-lang.h (c_is_string_type_p): Declare new function.
8225 * d-lang.c (d_language_defn): Initialise new field.
8226 * f-lang.c (f_is_string_type_p): New function.
8227 (f_language_defn): Initialise new field.
8228 * go-lang.c (go_is_string_type_p): New function.
8229 (go_language_defn): Initialise new field.
8230 * language.c (default_is_string_type_p): New function.
8231 (unknown_language_defn): Initialise new field.
8232 (auto_language_defn): Initialise new field.
8233 * language.h (struct language_defn) <la_is_string_type_p>: New
8234 member variable.
8235 (default_is_string_type_p): Declare new function.
8236 * m2-lang.c (m2_language_defn): Initialise new field.
8237 * objc-lang.c (objc_language_defn): Initialise new field.
8238 * opencl-lang.c (opencl_language_defn): Initialise new field.
8239 * p-lang.c (pascal_is_string_type_p): New function.
8240 (pascal_language_defn): Initialise new field.
8241 * rust-lang.c (rust_is_string_type_p): New function.
8242 (rust_language_defn): Initialise new field.
8243
8244 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8245
8246 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8247 New field.
8248 * ada-lang.c (ada_language_defn): Initialise new field.
8249 * c-lang.c (c_language_defn): Likewise.
8250 (cplus_language_defn): Likewise.
8251 (asm_language_defn): Likewise.
8252 (minimal_language_defn): Likewise.
8253 * d-lang.c (d_language_defn): Likewise.
8254 * f-lang.c (f_language_defn): Likewise.
8255 * go-lang.c (go_language_defn): Likewise.
8256 * language.c (unknown_language_defn): Likewise.
8257 (auto_language_defn): Likewise.
8258 * m2-lang.c (m2_language_defn): Likewise.
8259 * objc-lang.c (objc_language_defn): Likewise.
8260 * opencl-lang.c (opencl_language_defn): Likewise.
8261 * p-lang.c (pascal_language_defn): Likewise.
8262 * rust-lang.c (rust_language_defn): Likewise.
8263
8264 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8265
8266 * ada-lang.c (ada_is_character_type): Change return type to bool.
8267 (ada_is_string_type): Likewise.
8268 * ada-lang.h (ada_is_character_type): Update declaration
8269 (ada_is_string_type): Likewise.
8270
8271 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8272
8273 Support style in 'frame|thread apply'
8274
8275 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8276 * record.c (record_start, record_stop): Update callers of
8277 execute_command_to_string with false.
8278 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8279 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8280 methods.
8281 (class string_file): New constructor with term_out parameter.
8282 Override methods term_out and can_emit_style_escape. New member
8283 term_out.
8284 (class stdio_file): Override can_emit_style_escape.
8285 (class tee_file): Override term_out and can_emit_style_escape.
8286 * utils.h (can_emit_style_escape): Remove.
8287 * utils.c (can_emit_style_escape): Likewise.
8288 Update all callers of can_emit_style_escape (SOMESTREAM) to
8289 SOMESTREAM->can_emit_style_escape.
8290 * source-cache.c (source_cache::get_source_lines): Likewise.
8291 * stack.c (frame_apply_command_count): Call execute_command_to_string
8292 passing the term_out characteristic of the current gdb_stdout.
8293 * thread.c (thr_try_catch_cmd): Likewise.
8294 * top.c (execute_command_to_string): pass term_out parameter
8295 to construct the string_file for the command output.
8296 * ui-file.c (term_cli_styling): New function (most code moved
8297 from utils.c can_emit_style_escape).
8298 (string_file::string_file, string_file::can_emit_style_escape,
8299 stdio_file::can_emit_style_escape, tee_file::term_out,
8300 tee_file::can_emit_style_escape): New functions.
8301
8302 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8303
8304 * NEWS: Mention the new set|show may-call-functions.
8305 * infcall.c (may_call_functions_p): New variable.
8306 (show_may_call_functions_p): New function.
8307 (call_function_by_hand_dummy): Throws an error if not
8308 may-call-functions.
8309 (_initialize_infcall): Call add_setshow_boolean_cmd for
8310 may-call-functions.
8311
8312 2019-04-25 Keith Seitz <keiths@redhat.com>
8313
8314 PR c++/24367
8315 * cp-support.c (inspect_type): Don't attempt substitutions
8316 of symbol with the same name.
8317
8318 2019-04-25 Tom Tromey <tromey@adacore.com>
8319
8320 PR gdb/24475:
8321 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8322 static.
8323
8324 2019-04-25 Tom Tromey <tromey@adacore.com>
8325
8326 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8327 rvalue reference.
8328 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8329 (gdb_xml_parser::parse): Use std::move.
8330 * python/python-internal.h (gdbpy_convert_exception): Take a const
8331 reference.
8332 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8333 std::move.
8334 * python/py-utils.c (gdbpy_convert_exception): Take a const
8335 reference.
8336 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8337 Use std::move.
8338 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8339 Use std::move.
8340 * mi/mi-main.c (mi_print_exception): Take a const reference.
8341 * main.c (handle_command_errors): Take a const reference.
8342 * linespec.c (parse_linespec): Use std::move.
8343 * infcall.c (run_inferior_call): Use std::move.
8344 (call_function_by_hand_dummy): Use std::move.
8345 * exec.c (try_open_exec_file): Use std::move.
8346 * exceptions.h (exception_print, exception_fprintf)
8347 (exception_print_same): Update.
8348 * exceptions.c (print_exception, exception_print)
8349 (exception_fprintf, exception_print_same): Change parameters to
8350 const reference.
8351 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8352 * common/new-op.c: Use std::move.
8353 * common/common-exceptions.h (struct gdb_exception): Add move
8354 constructor.
8355 (struct gdb_exception_error, struct gdb_exception_quit, struct
8356 gdb_quit_bad_alloc): Change constructor to move constructor.
8357 (throw_exception): Change parameter to rvalue reference.
8358 * common/common-exceptions.c (throw_exception): Take rvalue
8359 reference.
8360 * cli/cli-interp.c (safe_execute_command): Use std::move.
8361 * breakpoint.c (insert_bp_location, location_to_sals): Use
8362 std::move.
8363
8364 2019-04-25 Tom Tromey <tromey@adacore.com>
8365
8366 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8367 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8368 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8369 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8370 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8371 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8372 guile/scm-value.c: Use unpack.
8373 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8374 gdbscm_gdb_exception.
8375 (gdbscm_throw_gdb_exception): Likewise.
8376 (struct gdbscm_gdb_exception): New.
8377 (unpack): New function.
8378 (gdbscm_wrap): Use unpack.
8379
8380 2019-04-25 Tom Tromey <tromey@adacore.com>
8381
8382 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8383 (gdb_rl_callback_handler): Use std::move.
8384 * common/common-exceptions.h (struct gdb_exception): Add move
8385 assignment operator.
8386 (throw_exception_sjlj): Change "exception" to const reference.
8387 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8388 (throw_exception_sjlj): Change "exception" to const reference.
8389
8390 2019-04-25 Tom Tromey <tromey@adacore.com>
8391
8392 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8393 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8394 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8395 Update.
8396 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8397 Update.
8398 * mi/mi-interp.c (mi_interp::exec): Update.
8399 * linespec.c (parse_linespec): Update.
8400 * infcall.c (run_inferior_call): Update.
8401 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8402 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8403 (gdbscm_lookup_global_symbol): Update.
8404 * guile/scm-param.c (gdbscm_parameter_value): Update.
8405 * guile/scm-frame.c (gdbscm_frame_read_register)
8406 (gdbscm_frame_read_var): Update.
8407 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8408 * exec.c (try_open_exec_file): Update.
8409 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8410 (gdb_rl_callback_handler): Update.
8411 * common/common-exceptions.h (exception_none): Don't declare.
8412 * common/common-exceptions.c (exception_none): Don't define.
8413 (struct catcher) <exception>: Update.
8414 * cli/cli-interp.c (safe_execute_command): Update.
8415 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8416
8417 2019-04-25 Ali Tamur <tamur@google.com>
8418
8419 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8420 (read_attribute_value): Likewise.
8421 (dwarf2_read_addr_index): Update comment.
8422 (read_str_index): Add DW_FORM_strx.
8423 (dwarf2_string_attr): Likewise.
8424 (dwarf2_const_value_attr): Likewise.
8425 (dump_die_shallow): Likewise.
8426 (dwarf2_fetch_constant_bytes): Likewise.
8427 (skip_form_bytes): Likewise.
8428 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8429
8430 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8431
8432 PR corefiles/11608
8433 PR corefiles/18187
8434 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8435 OFFSET. Verify if current mapping contains an ELF header.
8436 (linux_find_memory_regions_full): Adjust call to
8437 dump_mapping_p.
8438
8439 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8440 Kang Li <kanglictf@gmail.com>
8441
8442 PR gdb/21600
8443
8444 * dwarf2-frame.c (read_initial_length): Be consistent about using
8445 unsigned representation of length.
8446 (decode_frame_entry_1): Likewise. Check for wraparound of
8447 end pointer as well as buffer overflow.
8448
8449 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8450
8451 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8452 "vq".
8453
8454 2019-04-24 Tom Tromey <tromey@adacore.com>
8455
8456 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8457
8458 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8459
8460 * s12z-tdep.c (s12z_unwind_pc): Delete.
8461 (s12z_unwind_sp): Delete.
8462 (s12z_gdbarch_init): Don't register deleted functions with
8463 gdbarch.
8464
8465 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8466
8467 * rl78-tdep.c (rl78_unwind_sp): Delete.
8468 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8469
8470 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8471
8472 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8473 (xstormy16_unwind_pc): Delete.
8474 (xstormy16_dummy_id): Delete.
8475 (xstormy16_gdbarch_init): Don't register deleted functions with
8476 gdbarch.
8477
8478 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8479
8480 * vax-tdep.c (vax_unwind_pc): Delete.
8481 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8482
8483 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8484
8485 * v850-tdep.c (v850_unwind_sp): Delete.
8486 (v850_unwind_pc): Delete.
8487 (v850_dummy_id): Delete.
8488 (v850_gdbarch_init): Don't register deleted functions with
8489 gdbarch.
8490
8491 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8492
8493 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8494 (tilegx_unwind_pc): Delete.
8495 (tilegx_unwind_dummy_id): Delete.
8496 (tilegx_gdbarch_init): Don't register deleted functions with
8497 gdbarch.
8498
8499 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8500
8501 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8502 (tic6x_dummy_id): Delete.
8503 (tic6x_gdbarch_init): Don't register deleted functions with
8504 gdbarch.
8505
8506 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8507
8508 * sparc-tdep.c (sparc_unwind_pc): Delete.
8509 (sparc32_gdbarch_init): Don't register deleted function with
8510 gdbarch.
8511
8512 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8513
8514 * sh-tdep.c (sh_unwind_sp): Delete.
8515 (sh_unwind_pc): Delete.
8516 (sh_dummy_id): Delete.
8517 (sh_gdbarch_init): Don't register deleted functions with
8518 gdbarch.
8519
8520 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8521
8522 * score-tdep.c (score_unwind_sp): Delete.
8523 (score_unwind_pc): Delete.
8524 (score_dummy_id): Delete.
8525 (score_gdbarch_init): Don't register deleted functions with
8526 gdbarch.
8527
8528 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8529
8530 * rx-tdep.c (rx_unwind_pc): Delete.
8531 (rx_unwind_sp): Delete.
8532 (rx_dummy_id): Delete.
8533 (rx_gdbarch_init): Don't register deleted functions with
8534 gdbarch. Update comment.
8535
8536 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8537
8538 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8539 (rs6000_dummy_id): Delete.
8540 (rs6000_gdbarch_init): Don't register deleted functions with
8541 gdbarch.
8542
8543 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8544
8545 * or1k-tdep.c (or1k_dummy_id): Delete.
8546 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8547
8548 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8549
8550 * nios2-tdep.c (nios2_dummy_id): Delete.
8551 (nios2_unwind_sp): Delete.
8552 (nios2_gdbarch_init): Don't register deleted functions with
8553 gdbarch.
8554
8555 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8556
8557 * nds32-tdep.c (nds32_dummy_id): Delete.
8558 (nds32_unwind_pc): Delete.
8559 (nds32_unwind_sp): Delete.
8560 (nds32_gdbarch_init): Don't register deleted functions with
8561 gdbarch.
8562
8563 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8564
8565 * msp430-tdep.c (msp430_unwind_pc): Delete.
8566 (msp430_unwind_sp): Delete.
8567 (msp430_dummy_id): Delete.
8568 (msp430_gdbarch_init): Don't register deleted functions with
8569 gdbarch.
8570
8571 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8572
8573 * moxie-tdep.c (moxie_unwind_sp): Delete.
8574 (moxie_unwind_pc): Delete.
8575 (moxie_dummy_id): Delete.
8576 (moxie_gdbarch_init): Don't register deleted functions with
8577 gdbarch.
8578
8579 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8580
8581 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8582 (mn10300_unwind_pc): Delete.
8583 (mn10300_unwind_sp): Delete.
8584 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8585 mn10300_unwind_sp.
8586 (mn10300_frame_unwind_init): Don't register deleted functions with
8587 gdbarch.
8588
8589 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8590
8591 * mep-tdep.c (mep_unwind_pc): Delete.
8592 (mep_unwind_sp): Delete.
8593 (mep_dummy_id): Delete.
8594 (mep_gdbarch_init): Don't register deleted functions with
8595 gdbarch.
8596
8597 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8598
8599 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8600 (m68hc11_unwind_sp): Delete.
8601 (m68hc11_gdbarch_init): Don't register deleted functions with
8602 gdbarch.
8603
8604 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8605
8606 * m32r-tdep.c (m32r_unwind_sp): Delete.
8607 (m32r_unwind_pc): Delete.
8608 (m32r_dummy_id): Delete.
8609 (m32r_gdbarch_init): Don't register deleted functions with
8610 gdbarch.
8611
8612 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8613
8614 * m32c-tdep.c (m32c_unwind_pc): Delete.
8615 (m32c_unwind_sp): Delete.
8616 (m32c_dummy_id): Delete.
8617 (m32c_gdbarch_init): Don't register deleted functions with
8618 gdbarch.
8619
8620 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8621
8622 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8623 (lm32_unwind_pc): Delete.
8624 (lm32_dummy_id): Delete.
8625 (lm32_gdbarch_init): Don't register deleted functions with
8626 gdbarch.
8627
8628 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8629
8630 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8631 (iq2000_unwind_pc): Delete.
8632 (iq2000_dummy_id): Delete.
8633 (iq2000_gdbarch_init): Don't register deleted functions with
8634 gdbarch.
8635
8636 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8637
8638 * nds32-tdep.c (nds32_type_align): Delete.
8639 (nds32_push_dummy_call): Use type_align instead.
8640
8641 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8642
8643 * arm-tdep.c (arm_type_align): Only handle vector override case.
8644 (arm_push_dummy_call): Use type_align.
8645 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8646
8647 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8648
8649 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8650 case.
8651 (pass_on_stack): Use type_align.
8652 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8653 function.
8654
8655 2019-04-23 Tom Tromey <tromey@adacore.com>
8656
8657 * dwarf2read.c (line_header::file_name_at): Remove unused
8658 overload.
8659
8660 2019-04-23 Tom de Vries <tdevries@suse.de>
8661
8662 PR gdb/24438
8663 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8664 invocation.
8665
8666
8667 2019-03-27 Ali Tamur <tamur@google.com>
8668
8669 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8670 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8671 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8672 (dwarf_expr_context::get_addr_index): Likewise
8673 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8674 (symbol_needs_eval_context::get_addr_index): Likewise
8675 (disassemble_dwarf_expression): Add DW_OP_addrx
8676 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8677 (read_cutu_die_from_dwo): Update comment
8678 (skip_one_die): Add DW_FORM_addrx
8679 (read_attribute_value): Likewise
8680 (var_decode_location): Add DW_OP_addrx
8681 (dwarf2_const_value_attr): Add DW_FORM_addrx
8682 (dump_die_shallow): Likewise
8683 (dwarf2_fetch_constant_bytes): Likewise
8684 (decode_locdesc): Add DW_OP_addrx
8685 (skip_form_bytes): Add DW_FORM_addrx
8686
8687 2019-04-22 Ali Tamur <tamur@google.com>
8688
8689 * MAINTAINERS (Write After Approval): Add self.
8690
8691 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
8692
8693 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8694 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8695 (open_symbol_file_object): Likewise.
8696 (svr4_default_sos): Add info parameter.
8697 (svr4_read_so_list): Likewise.
8698 (svr4_current_sos_direct): Adjust functions calls to pass down
8699 info.
8700 (svr4_current_sos_1): Add info parameter.
8701 (svr4_current_sos): Call get_svr4_info, pass info down to
8702 svr4_current_sos_1.
8703 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8704 get_svr4_info.
8705 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8706 get_svr4_info.
8707 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8708 to get_svr4_info.
8709 (probes_table_remove_objfile_probes): Likewise.
8710 (register_solib_event_probe): Add info parameter.
8711 (solist_update_incremental): Pass info parameter down to
8712 svr4_read_so_list.
8713 (disable_probes_interface): Add info parameter.
8714 (svr4_handle_solib_event): Pass current_program_space to
8715 get_svr4_info. Adjust disable_probes_interface cleanup.
8716 (svr4_create_probe_breakpoints): Add info parameter, pass it
8717 down to register_solib_event_probe.
8718 (svr4_create_solib_event_breakpoints): Add info parameter,
8719 pass it down to svr4_create_probe_breakpoints.
8720 (enable_break): Pass info down to
8721 svr4_create_solib_event_breakpoints.
8722 (svr4_solib_create_inferior_hook): Pass current_program_space to
8723 get_svr4_info.
8724 (svr4_clear_solib): Likewise.
8725
8726 2019-04-22 Pedro Alves <palves@redhat.com>
8727
8728 * solib-svr4.c (svr4_free_objfile_observer): New.
8729 (probe_and_action::objfile): New field.
8730 (probes_table_htab_remove_objfile_probes)
8731 (probes_table_remove_objfile_probes): New functions.
8732 (register_solib_event_probe): Add 'objfile' parameter. Store it
8733 in the new probe_and_action. Don't store the probe in 'lookup'.
8734 (svr4_create_probe_breakpoints): Pass objfile to
8735 register_solib_event_probe.
8736 (_initialize_svr4_solib): Register a free_objfile observer.
8737
8738 2019-04-19 Tom Tromey <tom@tromey.com>
8739
8740 * common/queue.h: Remove.
8741
8742 2019-04-19 Tom Tromey <tom@tromey.com>
8743
8744 * event-loop.c: Don't include "common/queue.h".
8745
8746 2019-04-19 Tom Tromey <tom@tromey.com>
8747
8748 * remote.c (remote_target): Use delete.
8749 * remote-notif.h: Include <list>, not "common/queue.h".
8750 (notif_client_p): Remove typedef.
8751 (remote_notif_state): Add constructor, destructor, initializer.
8752 <notif_queue>: Now a std::list.
8753 (remote_notif_state_xfree): Don't declare.
8754 * remote-notif.c (remote_notif_process, handle_notification)
8755 (remote_notif_state_allocate): Update.
8756 (~remote_notif_state): Rename from remote_notif_state_xfree.
8757
8758 2019-04-19 Tom Tromey <tom@tromey.com>
8759
8760 * symfile.c (reread_symbols): Update.
8761 * objfiles.c (objfile_register_static_link)
8762 (objfile_lookup_static_link): Update
8763 (~objfile) Don't delete static_links.
8764 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8765
8766 2019-04-19 Tom Tromey <tom@tromey.com>
8767
8768 * type-stack.h (struct type_stack) <insert>: Constify string.
8769 * type-stack.c (type_stack::insert): Constify string.
8770 * gdbtypes.h (lookup_template_type): Update.
8771 (address_space_name_to_int): Update.
8772 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8773 const.
8774 (lookup_template_type): Make name const.
8775 * c-exp.y: Update rules.
8776 (lex_one_token, classify_name, classify_inner_name)
8777 (c_print_token): Update.
8778 * p-exp.y: Update rules.
8779 (yylex): Update.
8780 * f-exp.y: Update rules.
8781 (yylex): Update.
8782 * d-exp.y: Update rules.
8783 (lex_one_token, classify_name, classify_inner_name): Update.
8784 * parse.c (write_dollar_variable, copy_name): Return std::string.
8785 * parser-defs.h (copy_name): Change return type.
8786 * m2-exp.y: Update rules.
8787 (yylex): Update.
8788 * go-exp.y (lex_one_token): Update.
8789 Update rules.
8790 (classify_unsafe_function, classify_packaged_name)
8791 (classify_name, yylex): Update.
8792
8793 2019-04-19 Sergei Trofimovich <siarheit@google.com>
8794
8795 * configure.ac: add --enable-source-highlight switch.
8796 * configure: Regenerate.
8797 * top.c (print_gdb_version): plumb --enable-source-highlight
8798 status to "show configuration".
8799
8800 2019-04-19 Tom Tromey <tromey@adacore.com>
8801
8802 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8803 Check ADA_TYPE_P.
8804 (empty_record, ada_template_to_fixed_record_type_1)
8805 (template_to_static_fixed_type)
8806 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8807 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8808 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8809 macros.
8810
8811 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8812
8813 PR symtab/24423:
8814 * source.c (print_source_lines_base): Advance "iter" when a
8815 control character is seen.
8816
8817 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8818
8819 * inferior.h (struct infcall_suspend_state_deleter):
8820 Catch exception in destructor to avoid crash.
8821
8822 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8823
8824 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8825 close to the add_com "shell".
8826
8827 2019-04-18 Tom Tromey <tromey@adacore.com>
8828
8829 * process-stratum-target.h (class process_stratum_target)
8830 <stratum>: Add "final".
8831
8832 2019-04-17 Tom Tromey <tromey@adacore.com>
8833
8834 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8835 against nullptr before use.
8836
8837 2019-04-17 Alan Hayward <alan.hayward@arm.com>
8838
8839 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8840
8841 2019-04-17 Jim Wilson <jimw@sifive.com>
8842 Andrew Burgess <andrew.burgess@embecosm.com>
8843
8844 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8845 code read might fail, assume 4-byte breakpoint in that case.
8846
8847 2019-04-15 Leszek Swirski <leszeks@google.com>
8848
8849 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8850 rather than a hand-rolled POD check when checking for forced MEMORY
8851 classification.
8852
8853 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8854
8855 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8856 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8857 function.
8858 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8859 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8860 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8861 declaration.
8862
8863 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8864
8865 * aarch64-linux-nat.c
8866 (aarch64_linux_nat_target::thread_architecture): Add override.
8867 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8868 each VQ.
8869
8870 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8871
8872 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8873
8874 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8875
8876 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8877 target types of size 96-bits, add some additional comments, and
8878 check that the builtin type we found was the correct size.
8879
8880 2019-04-12 Eli Zaretskii <eliz@gnu.org>
8881
8882 * utils.c (prompt_for_continue): Don't restore the styling at the
8883 end, as applied_style has the wrong value. This fixes styling in
8884 long lists of file names that are interrupted by the "Continue?"
8885 prompt.
8886
8887 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8888
8889 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8890 * c-lang.c (c_language_defn): Likewise.
8891 (cplus_language_defn): Likewise.
8892 (asm_language_defn): Likewise.
8893 (minimal_language_defn): Likewise.
8894 * d-lang.c (d_language_defn): Likewise.
8895 * f-lang.c (f_language_defn): Likewise.
8896 * go-lang.c (go_language_defn): Likewise.
8897 * language.c (unknown_language_defn): Likewise.
8898 (auto_language_defn): Likewise.
8899 * language.h (struct language_defn): Remove la_magic field.
8900 (LANG_MAGIC): Delete.
8901 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8902 * objc-lang.c (objc_language_defn): Likewise.
8903 * opencl-lang.c (opencl_language_defn): Likewise.
8904 * p-lang.c (pascal_language_defn): Likewise.
8905 * rust-lang.c (rust_language_defn): Likewise.
8906
8907 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8908
8909 * riscv-tdep.c (riscv_type_align): New function.
8910 (riscv_type_alignment): Delete.
8911 (riscv_arg_location): Use 'type_align'.
8912 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8913
8914 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8915
8916 * gdbtypes.c (type_align): A struct with no non-static fields also
8917 has alignment of 1.
8918
8919 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8920
8921 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8922 component to 0.
8923 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8924 member.
8925 (riscv_struct_info::analyse): New implementation using new
8926 analyse_inner member function.
8927 (riscv_struct_info::field_offset): New member function.
8928 (riscv_struct_info::m_offsets): New member variable.
8929 (riscv_struct_info::analyse_inner): New private member function,
8930 takes the old implementation of riscv_struct_info::analyse but
8931 extended to track field offsets.
8932 (riscv_call_arg_struct): Update the struct folding special cases
8933 to handle cases where empty C++ structs, which are non-zero
8934 length, are found.
8935 (riscv_arg_location): Initialise the length of each location, a
8936 non-zero length now indicates the location is in use.
8937 (riscv_push_dummy_call): Allow for the first location having a
8938 non-zero offset when setting up arguments.
8939 (riscv_return_value): Likewise, but for return values.
8940
8941 2019-04-11 Tom Tromey <tromey@adacore.com>
8942
8943 * utils.c (internal_vproblem): Make "msg" const.
8944
8945 2019-04-11 Alan Hayward <alan.hayward@arm.com>
8946
8947 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8948 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8949 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8950 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8951
8952 2019-04-10 Kevin Buettner <kevinb@redhat.com>
8953
8954 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8955 function.
8956 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8957 of amd64_collect_native_gregset.
8958 (amd64_linux_nat_target::store_registers): Likewise.
8959
8960 2019-04-10 Tom Tromey <tom@tromey.com>
8961
8962 * symtab.c (lookup_global_symbol_from_objfile)
8963 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8964 * objfiles.h (class separate_debug_iterator): New.
8965 (class separate_debug_range): New.
8966 (struct objfile) <separate_debug_objfiles>: New method.
8967 (objfile_separate_debug_iterate): Don't declare.
8968 * objfiles.c (separate_debug_iterator::operator++): Rename from
8969 objfile_separate_debug_iterate.
8970 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8971 iterator.
8972 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8973 iterator.
8974
8975 2019-04-10 Tom Tromey <tom@tromey.com>
8976
8977 * symfile.c (reread_symbols): Remove old comment.
8978 * objfiles.c (free_all_objfiles): Fix a typo.
8979
8980 2019-04-10 Tom Tromey <tom@tromey.com>
8981
8982 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8983 * minsyms.c (lookup_minimal_symbol): Use foreach.
8984 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8985 (lookup_minimal_symbol_solib_trampoline): Likewise.
8986 * symfile.c (reread_symbols): Use foreach.
8987
8988 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
8989 Tom Tromey <tromey@adacore.com>
8990
8991 PR rust/24414:
8992 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8993 (rust_lex_int_test): Change "value" to be LONGEST.
8994 (rust_lex_tests): Add test for long integer literal.
8995
8996 2019-04-09 Tom Tromey <tromey@adacore.com>
8997
8998 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8999 to bool.
9000 (extended_remote_target::attach): Update.
9001 (remote_target::remote_notice_new_inferior): Update.
9002 (remote_target::add_current_inferior_and_thread): Update.
9003 * inferior.c (exit_inferior_1): Use "false".
9004 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9005
9006 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9007
9008 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9009 the "start" command.
9010
9011 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9012
9013 * python/py-inferior.c (infpy_thread_from_thread_handle):
9014 Adjust comments to reflect renaming of thread_from_thread_handle
9015 to thread_from_handle. Adjust keywords. Fix type error message.
9016 (inferior_object_methods): Add thread_from_handle. Retain
9017 thread_from_thread_handle, but mark it as deprecated.
9018
9019 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9020
9021 * gdbthread.h (find_thread_by_handle): Revise declaration.
9022 * thread.c (find_thread_by_handle): Likewise. Adjust
9023 implementation too.
9024 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9025 support for buffer objects as handles.
9026
9027 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9028
9029 * python/py-infthread.c (thpy_thread_handle): New function.
9030 (thread_object_methods): Register thpy_thread_handle.
9031
9032 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9033
9034 * gdbthread.h (thread_to_thread_handle): Declare.
9035 * thread.c (gdbtypes.h): Include.
9036 (thread_to_thread_handle): New function.
9037
9038 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9039 (target_thread_info_to_thread_handle): Declare.
9040 * target.c (target_thread_info_to_thread_handle): New function.
9041 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9042 * target-delegates.c: Regenerate.
9043
9044 * linux-thread-db.c (class thread_db_target): Add method
9045 thread_info_to_thread_handle.
9046 (thread_db_target::thread_info_to_thread_handle): Define.
9047 * remote.c (class remote_target): Add new method
9048 thread_info_to_thread_handle.
9049 (remote_target::thread_info_to_thread_handle): Define.
9050
9051 2019-04-08 Pedro Alves <palves@redhat.com>
9052
9053 * common/common-exceptions.c (throw_exception): Don't create
9054 named object to throw; throw directly.
9055 (throw_it): Likewise. Don't initialize gdb_exception::message
9056 here, with new; pass FMT and AP to the ctor instead.
9057 * common/common-exceptions.h: Include <string>.
9058 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9059 const char *, va_list)): New ctor. Use std::make_shared.
9060 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9061 errors)): Delete.
9062 (gdb_exception_error::gdb_exception_error(enum errors, const char
9063 *, va_list)): New.
9064 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9065 Add assertion.
9066 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9067 errors)): Delete.
9068 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9069 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9070 Add assertion.
9071
9072 2019-04-08 Tom Tromey <tom@tromey.com>
9073
9074 * valops.c (value_rtti_indirect_type): Replace throw_exception
9075 with throw.
9076 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9077 with throw.
9078 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9079 throw.
9080 * target.c (target_translate_tls_address): Replace throw_exception
9081 with throw.
9082 * stack.c (frame_apply_command_count): Replace throw_exception
9083 with throw.
9084 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9085 throw.
9086 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9087 with throw.
9088 * rs6000-tdep.c (rs6000_frame_cache)
9089 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9090 * remote.c: Replace throw_exception with throw.
9091 * record-full.c (record_full_message, record_full_wait_1)
9092 (record_full_restore): Replace throw_exception with throw.
9093 * record-btrace.c:
9094 (get_thread_current_frame_id, record_btrace_start_replaying)
9095 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9096 (cmd_record_btrace_start): Replace throw_exception with throw.
9097 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9098 throw.
9099 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9100 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9101 * linespec.c:
9102 (find_linespec_symbols): Replace throw_exception with throw.
9103 * infrun.c (displaced_step_prepare, resume): Replace
9104 throw_exception with throw.
9105 * infcmd.c (post_create_inferior): Replace throw_exception with
9106 throw.
9107 * inf-loop.c (inferior_event_handler): Replace throw_exception
9108 with throw.
9109 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9110 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9111 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9112 (get_prev_frame_always, get_frame_pc_if_available)
9113 (get_frame_address_in_block_if_available, get_frame_language):
9114 Replace throw_exception with throw.
9115 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9116 throw_exception with throw.
9117 * eval.c (fetch_subexp_value, evaluate_var_value)
9118 (evaluate_funcall, evaluate_subexp_standard): Replace
9119 throw_exception with throw.
9120 * dwarf2loc.c (call_site_find_chain)
9121 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9122 Replace throw_exception with throw.
9123 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9124 with throw.
9125 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9126 throw.
9127 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9128 * completer.c (complete_line_internal): Replace throw_exception
9129 with throw.
9130 * compile/compile-object-run.c (compile_object_run): Replace
9131 throw_exception with throw.
9132 * cli/cli-script.c (process_next_line): Replace throw_exception
9133 with throw.
9134 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9135 (btrace_enable, btrace_maint_update_pt_packets): Replace
9136 throw_exception with throw.
9137 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9138 throw_exception with throw.
9139 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9140 throw_exception with throw.
9141 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9142 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9143 * aarch64-tdep.c (aarch64_make_prologue_cache)
9144 (aarch64_make_stub_cache): Replace throw_exception with throw.
9145
9146 2019-04-08 Tom Tromey <tom@tromey.com>
9147
9148 * common/common-exceptions.c (throw_exception): Rename from
9149 throw_exception_cxx. Remove old copy. Make argument const.
9150 (throw_it): Create and throw exception objects directly.
9151 * common/common-exceptions.h (throw_exception): Make argument
9152 const.
9153 (struct gdb_exception_error): Add constructor.
9154 (struct gdb_exception_quit): Add constructor.
9155
9156 2019-04-08 Tom Tromey <tom@tromey.com>
9157
9158 * common/common-exceptions.h (exception_rethrow): Don't declare.
9159 (TRY_SJLJ): Update comment.
9160 (TRY, CATCH, END_CATCH): Remove.
9161 * common/common-exceptions.c (exception_rethrow): Remove.
9162
9163 2019-04-08 Tom Tromey <tom@tromey.com>
9164
9165 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9166 Remove.
9167 (gdb_exception_error): Rename from
9168 gdb_exception_RETURN_MASK_ERROR.
9169 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9170 (gdb_quit_bad_alloc): Update.
9171 * aarch64-tdep.c: Update.
9172 * ada-lang.c: Update.
9173 * ada-typeprint.c: Update.
9174 * ada-valprint.c: Update.
9175 * amd64-tdep.c: Update.
9176 * arch-utils.c: Update.
9177 * break-catch-throw.c: Update.
9178 * breakpoint.c: Update.
9179 * btrace.c: Update.
9180 * c-varobj.c: Update.
9181 * cli/cli-cmds.c: Update.
9182 * cli/cli-interp.c: Update.
9183 * cli/cli-script.c: Update.
9184 * common/common-exceptions.c: Update.
9185 * common/new-op.c: Update.
9186 * common/selftest.c: Update.
9187 * compile/compile-c-symbols.c: Update.
9188 * compile/compile-cplus-symbols.c: Update.
9189 * compile/compile-object-load.c: Update.
9190 * compile/compile-object-run.c: Update.
9191 * completer.c: Update.
9192 * corelow.c: Update.
9193 * cp-abi.c: Update.
9194 * cp-support.c: Update.
9195 * cp-valprint.c: Update.
9196 * darwin-nat.c: Update.
9197 * disasm-selftests.c: Update.
9198 * dtrace-probe.c: Update.
9199 * dwarf-index-cache.c: Update.
9200 * dwarf-index-write.c: Update.
9201 * dwarf2-frame-tailcall.c: Update.
9202 * dwarf2-frame.c: Update.
9203 * dwarf2loc.c: Update.
9204 * dwarf2read.c: Update.
9205 * eval.c: Update.
9206 * event-loop.c: Update.
9207 * event-top.c: Update.
9208 * exec.c: Update.
9209 * f-valprint.c: Update.
9210 * fbsd-tdep.c: Update.
9211 * frame-unwind.c: Update.
9212 * frame.c: Update.
9213 * gdbtypes.c: Update.
9214 * gnu-v3-abi.c: Update.
9215 * guile/guile-internal.h: Update.
9216 * guile/scm-block.c: Update.
9217 * guile/scm-breakpoint.c: Update.
9218 * guile/scm-cmd.c: Update.
9219 * guile/scm-disasm.c: Update.
9220 * guile/scm-frame.c: Update.
9221 * guile/scm-lazy-string.c: Update.
9222 * guile/scm-math.c: Update.
9223 * guile/scm-param.c: Update.
9224 * guile/scm-ports.c: Update.
9225 * guile/scm-pretty-print.c: Update.
9226 * guile/scm-symbol.c: Update.
9227 * guile/scm-symtab.c: Update.
9228 * guile/scm-type.c: Update.
9229 * guile/scm-value.c: Update.
9230 * i386-linux-tdep.c: Update.
9231 * i386-tdep.c: Update.
9232 * inf-loop.c: Update.
9233 * infcall.c: Update.
9234 * infcmd.c: Update.
9235 * infrun.c: Update.
9236 * jit.c: Update.
9237 * language.c: Update.
9238 * linespec.c: Update.
9239 * linux-fork.c: Update.
9240 * linux-nat.c: Update.
9241 * linux-tdep.c: Update.
9242 * linux-thread-db.c: Update.
9243 * main.c: Update.
9244 * mi/mi-cmd-break.c: Update.
9245 * mi/mi-cmd-stack.c: Update.
9246 * mi/mi-interp.c: Update.
9247 * mi/mi-main.c: Update.
9248 * objc-lang.c: Update.
9249 * p-valprint.c: Update.
9250 * parse.c: Update.
9251 * ppc-linux-tdep.c: Update.
9252 * printcmd.c: Update.
9253 * python/py-arch.c: Update.
9254 * python/py-breakpoint.c: Update.
9255 * python/py-cmd.c: Update.
9256 * python/py-finishbreakpoint.c: Update.
9257 * python/py-frame.c: Update.
9258 * python/py-framefilter.c: Update.
9259 * python/py-gdb-readline.c: Update.
9260 * python/py-inferior.c: Update.
9261 * python/py-infthread.c: Update.
9262 * python/py-lazy-string.c: Update.
9263 * python/py-linetable.c: Update.
9264 * python/py-objfile.c: Update.
9265 * python/py-param.c: Update.
9266 * python/py-prettyprint.c: Update.
9267 * python/py-progspace.c: Update.
9268 * python/py-record-btrace.c: Update.
9269 * python/py-record.c: Update.
9270 * python/py-symbol.c: Update.
9271 * python/py-type.c: Update.
9272 * python/py-unwind.c: Update.
9273 * python/py-utils.c: Update.
9274 * python/py-value.c: Update.
9275 * python/python.c: Update.
9276 * record-btrace.c: Update.
9277 * record-full.c: Update.
9278 * remote-fileio.c: Update.
9279 * remote.c: Update.
9280 * riscv-tdep.c: Update.
9281 * rs6000-aix-tdep.c: Update.
9282 * rs6000-tdep.c: Update.
9283 * rust-exp.y: Update.
9284 * rust-lang.c: Update.
9285 * s390-tdep.c: Update.
9286 * selftest-arch.c: Update.
9287 * solib-dsbt.c: Update.
9288 * solib-frv.c: Update.
9289 * solib-spu.c: Update.
9290 * solib-svr4.c: Update.
9291 * solib.c: Update.
9292 * sparc64-linux-tdep.c: Update.
9293 * stack.c: Update.
9294 * symfile-mem.c: Update.
9295 * symmisc.c: Update.
9296 * target.c: Update.
9297 * thread.c: Update.
9298 * top.c: Update.
9299 * tracefile-tfile.c: Update.
9300 * tui/tui.c: Update.
9301 * typeprint.c: Update.
9302 * unittests/cli-utils-selftests.c: Update.
9303 * unittests/parse-connection-spec-selftests.c: Update.
9304 * valops.c: Update.
9305 * valprint.c: Update.
9306 * value.c: Update.
9307 * varobj.c: Update.
9308 * windows-nat.c: Update.
9309 * x86-linux-nat.c: Update.
9310 * xml-support.c: Update.
9311
9312 2019-04-08 Tom Tromey <tom@tromey.com>
9313
9314 * xml-support.c: Use C++ exception handling.
9315 * x86-linux-nat.c: Use C++ exception handling.
9316 * windows-nat.c: Use C++ exception handling.
9317 * varobj.c: Use C++ exception handling.
9318 * value.c: Use C++ exception handling.
9319 * valprint.c: Use C++ exception handling.
9320 * valops.c: Use C++ exception handling.
9321 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9322 handling.
9323 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9324 * typeprint.c: Use C++ exception handling.
9325 * tui/tui.c: Use C++ exception handling.
9326 * tracefile-tfile.c: Use C++ exception handling.
9327 * top.c: Use C++ exception handling.
9328 * thread.c: Use C++ exception handling.
9329 * target.c: Use C++ exception handling.
9330 * symmisc.c: Use C++ exception handling.
9331 * symfile-mem.c: Use C++ exception handling.
9332 * stack.c: Use C++ exception handling.
9333 * sparc64-linux-tdep.c: Use C++ exception handling.
9334 * solib.c: Use C++ exception handling.
9335 * solib-svr4.c: Use C++ exception handling.
9336 * solib-spu.c: Use C++ exception handling.
9337 * solib-frv.c: Use C++ exception handling.
9338 * solib-dsbt.c: Use C++ exception handling.
9339 * selftest-arch.c: Use C++ exception handling.
9340 * s390-tdep.c: Use C++ exception handling.
9341 * rust-lang.c: Use C++ exception handling.
9342 * rust-exp.y: Use C++ exception handling.
9343 * rs6000-tdep.c: Use C++ exception handling.
9344 * rs6000-aix-tdep.c: Use C++ exception handling.
9345 * riscv-tdep.c: Use C++ exception handling.
9346 * remote.c: Use C++ exception handling.
9347 * remote-fileio.c: Use C++ exception handling.
9348 * record-full.c: Use C++ exception handling.
9349 * record-btrace.c: Use C++ exception handling.
9350 * python/python.c: Use C++ exception handling.
9351 * python/py-value.c: Use C++ exception handling.
9352 * python/py-utils.c: Use C++ exception handling.
9353 * python/py-unwind.c: Use C++ exception handling.
9354 * python/py-type.c: Use C++ exception handling.
9355 * python/py-symbol.c: Use C++ exception handling.
9356 * python/py-record.c: Use C++ exception handling.
9357 * python/py-record-btrace.c: Use C++ exception handling.
9358 * python/py-progspace.c: Use C++ exception handling.
9359 * python/py-prettyprint.c: Use C++ exception handling.
9360 * python/py-param.c: Use C++ exception handling.
9361 * python/py-objfile.c: Use C++ exception handling.
9362 * python/py-linetable.c: Use C++ exception handling.
9363 * python/py-lazy-string.c: Use C++ exception handling.
9364 * python/py-infthread.c: Use C++ exception handling.
9365 * python/py-inferior.c: Use C++ exception handling.
9366 * python/py-gdb-readline.c: Use C++ exception handling.
9367 * python/py-framefilter.c: Use C++ exception handling.
9368 * python/py-frame.c: Use C++ exception handling.
9369 * python/py-finishbreakpoint.c: Use C++ exception handling.
9370 * python/py-cmd.c: Use C++ exception handling.
9371 * python/py-breakpoint.c: Use C++ exception handling.
9372 * python/py-arch.c: Use C++ exception handling.
9373 * printcmd.c: Use C++ exception handling.
9374 * ppc-linux-tdep.c: Use C++ exception handling.
9375 * parse.c: Use C++ exception handling.
9376 * p-valprint.c: Use C++ exception handling.
9377 * objc-lang.c: Use C++ exception handling.
9378 * mi/mi-main.c: Use C++ exception handling.
9379 * mi/mi-interp.c: Use C++ exception handling.
9380 * mi/mi-cmd-stack.c: Use C++ exception handling.
9381 * mi/mi-cmd-break.c: Use C++ exception handling.
9382 * main.c: Use C++ exception handling.
9383 * linux-thread-db.c: Use C++ exception handling.
9384 * linux-tdep.c: Use C++ exception handling.
9385 * linux-nat.c: Use C++ exception handling.
9386 * linux-fork.c: Use C++ exception handling.
9387 * linespec.c: Use C++ exception handling.
9388 * language.c: Use C++ exception handling.
9389 * jit.c: Use C++ exception handling.
9390 * infrun.c: Use C++ exception handling.
9391 * infcmd.c: Use C++ exception handling.
9392 * infcall.c: Use C++ exception handling.
9393 * inf-loop.c: Use C++ exception handling.
9394 * i386-tdep.c: Use C++ exception handling.
9395 * i386-linux-tdep.c: Use C++ exception handling.
9396 * guile/scm-value.c: Use C++ exception handling.
9397 * guile/scm-type.c: Use C++ exception handling.
9398 * guile/scm-symtab.c: Use C++ exception handling.
9399 * guile/scm-symbol.c: Use C++ exception handling.
9400 * guile/scm-pretty-print.c: Use C++ exception handling.
9401 * guile/scm-ports.c: Use C++ exception handling.
9402 * guile/scm-param.c: Use C++ exception handling.
9403 * guile/scm-math.c: Use C++ exception handling.
9404 * guile/scm-lazy-string.c: Use C++ exception handling.
9405 * guile/scm-frame.c: Use C++ exception handling.
9406 * guile/scm-disasm.c: Use C++ exception handling.
9407 * guile/scm-cmd.c: Use C++ exception handling.
9408 * guile/scm-breakpoint.c: Use C++ exception handling.
9409 * guile/scm-block.c: Use C++ exception handling.
9410 * guile/guile-internal.h: Use C++ exception handling.
9411 * gnu-v3-abi.c: Use C++ exception handling.
9412 * gdbtypes.c: Use C++ exception handling.
9413 * frame.c: Use C++ exception handling.
9414 * frame-unwind.c: Use C++ exception handling.
9415 * fbsd-tdep.c: Use C++ exception handling.
9416 * f-valprint.c: Use C++ exception handling.
9417 * exec.c: Use C++ exception handling.
9418 * event-top.c: Use C++ exception handling.
9419 * event-loop.c: Use C++ exception handling.
9420 * eval.c: Use C++ exception handling.
9421 * dwarf2read.c: Use C++ exception handling.
9422 * dwarf2loc.c: Use C++ exception handling.
9423 * dwarf2-frame.c: Use C++ exception handling.
9424 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9425 * dwarf-index-write.c: Use C++ exception handling.
9426 * dwarf-index-cache.c: Use C++ exception handling.
9427 * dtrace-probe.c: Use C++ exception handling.
9428 * disasm-selftests.c: Use C++ exception handling.
9429 * darwin-nat.c: Use C++ exception handling.
9430 * cp-valprint.c: Use C++ exception handling.
9431 * cp-support.c: Use C++ exception handling.
9432 * cp-abi.c: Use C++ exception handling.
9433 * corelow.c: Use C++ exception handling.
9434 * completer.c: Use C++ exception handling.
9435 * compile/compile-object-run.c: Use C++ exception handling.
9436 * compile/compile-object-load.c: Use C++ exception handling.
9437 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9438 * compile/compile-c-symbols.c: Use C++ exception handling.
9439 * common/selftest.c: Use C++ exception handling.
9440 * common/new-op.c: Use C++ exception handling.
9441 * cli/cli-script.c: Use C++ exception handling.
9442 * cli/cli-interp.c: Use C++ exception handling.
9443 * cli/cli-cmds.c: Use C++ exception handling.
9444 * c-varobj.c: Use C++ exception handling.
9445 * btrace.c: Use C++ exception handling.
9446 * breakpoint.c: Use C++ exception handling.
9447 * break-catch-throw.c: Use C++ exception handling.
9448 * arch-utils.c: Use C++ exception handling.
9449 * amd64-tdep.c: Use C++ exception handling.
9450 * ada-valprint.c: Use C++ exception handling.
9451 * ada-typeprint.c: Use C++ exception handling.
9452 * ada-lang.c: Use C++ exception handling.
9453 * aarch64-tdep.c: Use C++ exception handling.
9454
9455 2019-04-08 Tom Tromey <tom@tromey.com>
9456
9457 * xml-support.c (gdb_xml_parser::parse): Update.
9458 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9459 * value.c (show_convenience): Update.
9460 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9461 (test_parse_flags_qcs): Update.
9462 * thread.c (thr_try_catch_cmd): Update.
9463 * target.c (target_translate_tls_address): Update.
9464 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9465 (info_frame_command_core, frame_apply_command_count): Update.
9466 * rust-exp.y (rust_lex_exception_test): Update.
9467 * riscv-tdep.c (riscv_print_one_register_info): Update.
9468 * remote.c (remote_target::enable_btrace): Update.
9469 * record-btrace.c (record_btrace_enable_warn): Update.
9470 * python/py-utils.c (gdbpy_convert_exception): Update.
9471 * printcmd.c (do_one_display, print_variable_and_value): Update.
9472 * mi/mi-main.c (mi_print_exception): Update.
9473 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9474 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9475 * linux-nat.c (linux_nat_target::attach): Update.
9476 * linux-fork.c (class scoped_switch_fork_info): Update.
9477 * infrun.c (displaced_step_prepare): Update.
9478 * infcall.c (call_function_by_hand_dummy): Update.
9479 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9480 * gnu-v3-abi.c (print_one_vtable): Update.
9481 * frame.c (get_prev_frame_always): Update.
9482 * f-valprint.c (info_common_command_for_block): Update.
9483 * exec.c (try_open_exec_file): Update.
9484 * exceptions.c (print_exception, exception_print)
9485 (exception_fprintf, exception_print_same): Update.
9486 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9487 * dwarf-index-cache.c (index_cache::store)
9488 (index_cache::lookup_gdb_index): Update.
9489 * darwin-nat.c (maybe_cache_shell): Update.
9490 * cp-valprint.c (cp_print_value_fields): Update.
9491 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9492 (gcc_cplus_symbol_address): Update.
9493 * compile/compile-c-symbols.c (gcc_convert_symbol)
9494 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9495 * common/selftest.c: Update.
9496 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9497 a std::string.
9498 (exception_try_scope_entry, exception_try_scope_exit): Don't
9499 declare.
9500 (struct exception_try_scope): Remove.
9501 (TRY): Don't use exception_try_scope.
9502 (struct gdb_exception): Add constructor, operator=.
9503 <what>: New method.
9504 (struct gdb_exception_RETURN_MASK_ALL)
9505 (struct gdb_exception_RETURN_MASK_ERROR)
9506 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9507 (struct gdb_quit_bad_alloc): Update.
9508 * common/common-exceptions.c (exception_none): Change
9509 initializer.
9510 (struct catcher) <state, exception>: Initialize inline.
9511 <prev>: Remove member.
9512 (current_catcher): Remove.
9513 (catchers): New global.
9514 (exceptions_state_mc_init): Simplify.
9515 (catcher_pop): Remove.
9516 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9517 (try_scope_depth, exception_try_scope_entry)
9518 (exception_try_scope_exit): Remove.
9519 (throw_exception_sjlj): Update.
9520 (exception_messages, exception_messages_size): Remove.
9521 (throw_it): Simplify.
9522 (gdb_exception_sliced_copy): Remove.
9523 (throw_exception_cxx): Update.
9524 * cli/cli-script.c (script_from_file): Update.
9525 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9526 Update.
9527 * ada-valprint.c (ada_val_print): Update.
9528 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9529 (create_excep_cond_exprs): Update.
9530
9531 2019-04-08 Tom Tromey <tom@tromey.com>
9532
9533 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9534 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9535 (TRY, CATCH, END_CATCH): Remove some definitions.
9536 * common/common-exceptions.c: Don't use GDB_XCPT.
9537 (catcher_list_size): Remove.
9538 (throw_exception, throw_it): Simplify.
9539
9540 2019-04-05 Tom Tromey <tom@tromey.com>
9541
9542 Revert the header-sorting patch.
9543 * ft32-tdep.c: Revert.
9544 * frv-tdep.c: Revert.
9545 * frv-linux-tdep.c: Revert.
9546 * frame.c: Revert.
9547 * frame-unwind.c: Revert.
9548 * frame-base.c: Revert.
9549 * fork-child.c: Revert.
9550 * findvar.c: Revert.
9551 * findcmd.c: Revert.
9552 * filesystem.c: Revert.
9553 * filename-seen-cache.h: Revert.
9554 * filename-seen-cache.c: Revert.
9555 * fbsd-tdep.c: Revert.
9556 * fbsd-nat.h: Revert.
9557 * fbsd-nat.c: Revert.
9558 * f-valprint.c: Revert.
9559 * f-typeprint.c: Revert.
9560 * f-lang.c: Revert.
9561 * extension.h: Revert.
9562 * extension.c: Revert.
9563 * extension-priv.h: Revert.
9564 * expprint.c: Revert.
9565 * exec.h: Revert.
9566 * exec.c: Revert.
9567 * exceptions.c: Revert.
9568 * event-top.c: Revert.
9569 * event-loop.c: Revert.
9570 * eval.c: Revert.
9571 * elfread.c: Revert.
9572 * dwarf2read.h: Revert.
9573 * dwarf2read.c: Revert.
9574 * dwarf2loc.c: Revert.
9575 * dwarf2expr.h: Revert.
9576 * dwarf2expr.c: Revert.
9577 * dwarf2-frame.c: Revert.
9578 * dwarf2-frame-tailcall.c: Revert.
9579 * dwarf-index-write.h: Revert.
9580 * dwarf-index-write.c: Revert.
9581 * dwarf-index-common.c: Revert.
9582 * dwarf-index-cache.h: Revert.
9583 * dwarf-index-cache.c: Revert.
9584 * dummy-frame.c: Revert.
9585 * dtrace-probe.c: Revert.
9586 * disasm.h: Revert.
9587 * disasm.c: Revert.
9588 * disasm-selftests.c: Revert.
9589 * dictionary.c: Revert.
9590 * dicos-tdep.c: Revert.
9591 * demangle.c: Revert.
9592 * dcache.h: Revert.
9593 * dcache.c: Revert.
9594 * darwin-nat.h: Revert.
9595 * darwin-nat.c: Revert.
9596 * darwin-nat-info.c: Revert.
9597 * d-valprint.c: Revert.
9598 * d-namespace.c: Revert.
9599 * d-lang.c: Revert.
9600 * ctf.c: Revert.
9601 * csky-tdep.c: Revert.
9602 * csky-linux-tdep.c: Revert.
9603 * cris-tdep.c: Revert.
9604 * cris-linux-tdep.c: Revert.
9605 * cp-valprint.c: Revert.
9606 * cp-support.c: Revert.
9607 * cp-namespace.c: Revert.
9608 * cp-abi.c: Revert.
9609 * corelow.c: Revert.
9610 * corefile.c: Revert.
9611 * continuations.c: Revert.
9612 * completer.h: Revert.
9613 * completer.c: Revert.
9614 * complaints.c: Revert.
9615 * coffread.c: Revert.
9616 * coff-pe-read.c: Revert.
9617 * cli-out.h: Revert.
9618 * cli-out.c: Revert.
9619 * charset.c: Revert.
9620 * c-varobj.c: Revert.
9621 * c-valprint.c: Revert.
9622 * c-typeprint.c: Revert.
9623 * c-lang.c: Revert.
9624 * buildsym.c: Revert.
9625 * buildsym-legacy.c: Revert.
9626 * build-id.h: Revert.
9627 * build-id.c: Revert.
9628 * btrace.c: Revert.
9629 * bsd-uthread.c: Revert.
9630 * breakpoint.h: Revert.
9631 * breakpoint.c: Revert.
9632 * break-catch-throw.c: Revert.
9633 * break-catch-syscall.c: Revert.
9634 * break-catch-sig.c: Revert.
9635 * blockframe.c: Revert.
9636 * block.c: Revert.
9637 * bfin-tdep.c: Revert.
9638 * bfin-linux-tdep.c: Revert.
9639 * bfd-target.c: Revert.
9640 * bcache.c: Revert.
9641 * ax-general.c: Revert.
9642 * ax-gdb.h: Revert.
9643 * ax-gdb.c: Revert.
9644 * avr-tdep.c: Revert.
9645 * auxv.c: Revert.
9646 * auto-load.c: Revert.
9647 * arm-wince-tdep.c: Revert.
9648 * arm-tdep.c: Revert.
9649 * arm-symbian-tdep.c: Revert.
9650 * arm-pikeos-tdep.c: Revert.
9651 * arm-obsd-tdep.c: Revert.
9652 * arm-nbsd-tdep.c: Revert.
9653 * arm-nbsd-nat.c: Revert.
9654 * arm-linux-tdep.c: Revert.
9655 * arm-linux-nat.c: Revert.
9656 * arm-fbsd-tdep.c: Revert.
9657 * arm-fbsd-nat.c: Revert.
9658 * arm-bsd-tdep.c: Revert.
9659 * arch-utils.c: Revert.
9660 * arc-tdep.c: Revert.
9661 * arc-newlib-tdep.c: Revert.
9662 * annotate.h: Revert.
9663 * annotate.c: Revert.
9664 * amd64-windows-tdep.c: Revert.
9665 * amd64-windows-nat.c: Revert.
9666 * amd64-tdep.c: Revert.
9667 * amd64-sol2-tdep.c: Revert.
9668 * amd64-obsd-tdep.c: Revert.
9669 * amd64-obsd-nat.c: Revert.
9670 * amd64-nbsd-tdep.c: Revert.
9671 * amd64-nbsd-nat.c: Revert.
9672 * amd64-nat.c: Revert.
9673 * amd64-linux-tdep.c: Revert.
9674 * amd64-linux-nat.c: Revert.
9675 * amd64-fbsd-tdep.c: Revert.
9676 * amd64-fbsd-nat.c: Revert.
9677 * amd64-dicos-tdep.c: Revert.
9678 * amd64-darwin-tdep.c: Revert.
9679 * amd64-bsd-nat.c: Revert.
9680 * alpha-tdep.c: Revert.
9681 * alpha-obsd-tdep.c: Revert.
9682 * alpha-nbsd-tdep.c: Revert.
9683 * alpha-mdebug-tdep.c: Revert.
9684 * alpha-linux-tdep.c: Revert.
9685 * alpha-linux-nat.c: Revert.
9686 * alpha-bsd-tdep.c: Revert.
9687 * alpha-bsd-nat.c: Revert.
9688 * aix-thread.c: Revert.
9689 * agent.c: Revert.
9690 * addrmap.c: Revert.
9691 * ada-varobj.c: Revert.
9692 * ada-valprint.c: Revert.
9693 * ada-typeprint.c: Revert.
9694 * ada-tasks.c: Revert.
9695 * ada-lang.c: Revert.
9696 * aarch64-tdep.c: Revert.
9697 * aarch64-ravenscar-thread.c: Revert.
9698 * aarch64-newlib-tdep.c: Revert.
9699 * aarch64-linux-tdep.c: Revert.
9700 * aarch64-linux-nat.c: Revert.
9701 * aarch64-fbsd-tdep.c: Revert.
9702 * aarch64-fbsd-nat.c: Revert.
9703 * aarch32-linux-nat.c: Revert.
9704
9705 2019-04-05 Tom Tromey <tom@tromey.com>
9706
9707 * ft32-tdep.c: Sort headers.
9708 * frv-tdep.c: Sort headers.
9709 * frv-linux-tdep.c: Sort headers.
9710 * frame.c: Sort headers.
9711 * frame-unwind.c: Sort headers.
9712 * frame-base.c: Sort headers.
9713 * fork-child.c: Sort headers.
9714 * findvar.c: Sort headers.
9715 * findcmd.c: Sort headers.
9716 * filesystem.c: Sort headers.
9717 * filename-seen-cache.h: Sort headers.
9718 * filename-seen-cache.c: Sort headers.
9719 * fbsd-tdep.c: Sort headers.
9720 * fbsd-nat.h: Sort headers.
9721 * fbsd-nat.c: Sort headers.
9722 * f-valprint.c: Sort headers.
9723 * f-typeprint.c: Sort headers.
9724 * f-lang.c: Sort headers.
9725 * extension.h: Sort headers.
9726 * extension.c: Sort headers.
9727 * extension-priv.h: Sort headers.
9728 * expprint.c: Sort headers.
9729 * exec.h: Sort headers.
9730 * exec.c: Sort headers.
9731 * exceptions.c: Sort headers.
9732 * event-top.c: Sort headers.
9733 * event-loop.c: Sort headers.
9734 * eval.c: Sort headers.
9735 * elfread.c: Sort headers.
9736 * dwarf2read.h: Sort headers.
9737 * dwarf2read.c: Sort headers.
9738 * dwarf2loc.c: Sort headers.
9739 * dwarf2expr.h: Sort headers.
9740 * dwarf2expr.c: Sort headers.
9741 * dwarf2-frame.c: Sort headers.
9742 * dwarf2-frame-tailcall.c: Sort headers.
9743 * dwarf-index-write.h: Sort headers.
9744 * dwarf-index-write.c: Sort headers.
9745 * dwarf-index-common.c: Sort headers.
9746 * dwarf-index-cache.h: Sort headers.
9747 * dwarf-index-cache.c: Sort headers.
9748 * dummy-frame.c: Sort headers.
9749 * dtrace-probe.c: Sort headers.
9750 * disasm.h: Sort headers.
9751 * disasm.c: Sort headers.
9752 * disasm-selftests.c: Sort headers.
9753 * dictionary.c: Sort headers.
9754 * dicos-tdep.c: Sort headers.
9755 * demangle.c: Sort headers.
9756 * dcache.h: Sort headers.
9757 * dcache.c: Sort headers.
9758 * darwin-nat.h: Sort headers.
9759 * darwin-nat.c: Sort headers.
9760 * darwin-nat-info.c: Sort headers.
9761 * d-valprint.c: Sort headers.
9762 * d-namespace.c: Sort headers.
9763 * d-lang.c: Sort headers.
9764 * ctf.c: Sort headers.
9765 * csky-tdep.c: Sort headers.
9766 * csky-linux-tdep.c: Sort headers.
9767 * cris-tdep.c: Sort headers.
9768 * cris-linux-tdep.c: Sort headers.
9769 * cp-valprint.c: Sort headers.
9770 * cp-support.c: Sort headers.
9771 * cp-namespace.c: Sort headers.
9772 * cp-abi.c: Sort headers.
9773 * corelow.c: Sort headers.
9774 * corefile.c: Sort headers.
9775 * continuations.c: Sort headers.
9776 * completer.h: Sort headers.
9777 * completer.c: Sort headers.
9778 * complaints.c: Sort headers.
9779 * coffread.c: Sort headers.
9780 * coff-pe-read.c: Sort headers.
9781 * cli-out.h: Sort headers.
9782 * cli-out.c: Sort headers.
9783 * charset.c: Sort headers.
9784 * c-varobj.c: Sort headers.
9785 * c-valprint.c: Sort headers.
9786 * c-typeprint.c: Sort headers.
9787 * c-lang.c: Sort headers.
9788 * buildsym.c: Sort headers.
9789 * buildsym-legacy.c: Sort headers.
9790 * build-id.h: Sort headers.
9791 * build-id.c: Sort headers.
9792 * btrace.c: Sort headers.
9793 * bsd-uthread.c: Sort headers.
9794 * breakpoint.h: Sort headers.
9795 * breakpoint.c: Sort headers.
9796 * break-catch-throw.c: Sort headers.
9797 * break-catch-syscall.c: Sort headers.
9798 * break-catch-sig.c: Sort headers.
9799 * blockframe.c: Sort headers.
9800 * block.c: Sort headers.
9801 * bfin-tdep.c: Sort headers.
9802 * bfin-linux-tdep.c: Sort headers.
9803 * bfd-target.c: Sort headers.
9804 * bcache.c: Sort headers.
9805 * ax-general.c: Sort headers.
9806 * ax-gdb.h: Sort headers.
9807 * ax-gdb.c: Sort headers.
9808 * avr-tdep.c: Sort headers.
9809 * auxv.c: Sort headers.
9810 * auto-load.c: Sort headers.
9811 * arm-wince-tdep.c: Sort headers.
9812 * arm-tdep.c: Sort headers.
9813 * arm-symbian-tdep.c: Sort headers.
9814 * arm-pikeos-tdep.c: Sort headers.
9815 * arm-obsd-tdep.c: Sort headers.
9816 * arm-nbsd-tdep.c: Sort headers.
9817 * arm-nbsd-nat.c: Sort headers.
9818 * arm-linux-tdep.c: Sort headers.
9819 * arm-linux-nat.c: Sort headers.
9820 * arm-fbsd-tdep.c: Sort headers.
9821 * arm-fbsd-nat.c: Sort headers.
9822 * arm-bsd-tdep.c: Sort headers.
9823 * arch-utils.c: Sort headers.
9824 * arc-tdep.c: Sort headers.
9825 * arc-newlib-tdep.c: Sort headers.
9826 * annotate.h: Sort headers.
9827 * annotate.c: Sort headers.
9828 * amd64-windows-tdep.c: Sort headers.
9829 * amd64-windows-nat.c: Sort headers.
9830 * amd64-tdep.c: Sort headers.
9831 * amd64-sol2-tdep.c: Sort headers.
9832 * amd64-obsd-tdep.c: Sort headers.
9833 * amd64-obsd-nat.c: Sort headers.
9834 * amd64-nbsd-tdep.c: Sort headers.
9835 * amd64-nbsd-nat.c: Sort headers.
9836 * amd64-nat.c: Sort headers.
9837 * amd64-linux-tdep.c: Sort headers.
9838 * amd64-linux-nat.c: Sort headers.
9839 * amd64-fbsd-tdep.c: Sort headers.
9840 * amd64-fbsd-nat.c: Sort headers.
9841 * amd64-dicos-tdep.c: Sort headers.
9842 * amd64-darwin-tdep.c: Sort headers.
9843 * amd64-bsd-nat.c: Sort headers.
9844 * alpha-tdep.c: Sort headers.
9845 * alpha-obsd-tdep.c: Sort headers.
9846 * alpha-nbsd-tdep.c: Sort headers.
9847 * alpha-mdebug-tdep.c: Sort headers.
9848 * alpha-linux-tdep.c: Sort headers.
9849 * alpha-linux-nat.c: Sort headers.
9850 * alpha-bsd-tdep.c: Sort headers.
9851 * alpha-bsd-nat.c: Sort headers.
9852 * aix-thread.c: Sort headers.
9853 * agent.c: Sort headers.
9854 * addrmap.c: Sort headers.
9855 * ada-varobj.c: Sort headers.
9856 * ada-valprint.c: Sort headers.
9857 * ada-typeprint.c: Sort headers.
9858 * ada-tasks.c: Sort headers.
9859 * ada-lang.c: Sort headers.
9860 * aarch64-tdep.c: Sort headers.
9861 * aarch64-ravenscar-thread.c: Sort headers.
9862 * aarch64-newlib-tdep.c: Sort headers.
9863 * aarch64-linux-tdep.c: Sort headers.
9864 * aarch64-linux-nat.c: Sort headers.
9865 * aarch64-fbsd-tdep.c: Sort headers.
9866 * aarch64-fbsd-nat.c: Sort headers.
9867 * aarch32-linux-nat.c: Sort headers.
9868
9869 2019-04-04 Tom Tromey <tom@tromey.com>
9870
9871 * varobj.c (varobj_create): Update.
9872 * rust-exp.y (struct rust_parser) <update_innermost_block,
9873 lookup_symbol>: New methods.
9874 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9875 Rename.
9876 (rust_parser::rust_lookup_type)
9877 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9878 * printcmd.c (display_command, do_one_display): Update.
9879 * parser-defs.h (struct parser_state) <parser_state>: Add
9880 "tracker" parameter.
9881 (block_tracker): New member.
9882 (class innermost_block_tracker) <innermost_block_tracker>: Add
9883 "types" parameter.
9884 <reset>: Remove method.
9885 (innermost_block): Don't declare.
9886 (null_post_parser): Update.
9887 * parse.c (innermost_block): Remove global.
9888 (write_dollar_variable): Update.
9889 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9890 Remove "tracker_types" parameter.
9891 (parse_expression): Add "tracker" parameter.
9892 (parse_expression_for_completion): Update.
9893 (null_post_parser): Add "tracker" parameter.
9894 * p-exp.y: Update rules.
9895 * m2-exp.y: Update rules.
9896 * language.h (struct language_defn) <la_post_parser>: Add
9897 "tracker" parameter.
9898 * go-exp.y: Update rules.
9899 * f-exp.y: Update rules.
9900 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9901 parameter.
9902 * d-exp.y: Update rules.
9903 * c-exp.y: Update rules.
9904 * breakpoint.c (set_breakpoint_condition): Create an
9905 innermost_block_tracker.
9906 (watch_command_1): Likewise.
9907 * ada-lang.c (resolve): Add "tracker" parameter.
9908 (resolve_subexp): Likewise.
9909 * ada-exp.y (write_var_from_sym): Update.
9910
9911 2019-04-04 Tom Tromey <tom@tromey.com>
9912
9913 * type-stack.h: New file.
9914 * type-stack.c: New file.
9915 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9916 type-stack.h.
9917 (insert_into_type_stack, insert_type, push_type, push_type_int)
9918 (insert_type_address_space, pop_type, pop_type_int)
9919 (pop_typelist, pop_type_stack, append_type_stack)
9920 (push_type_stack, get_type_stack, push_typelist)
9921 (follow_type_instance_flags, follow_types): Don't declare.
9922 * parse.c (type_stack): Remove global.
9923 (parse_exp_in_context): Update.
9924 (insert_into_type_stack, insert_type, push_type, push_type_int)
9925 (insert_type_address_space, pop_type, pop_type_int)
9926 (pop_typelist, pop_type_stack, append_type_stack)
9927 (push_type_stack, get_type_stack, push_typelist)
9928 (follow_type_instance_flags, follow_types): Remove (moved to
9929 type-stack.c).
9930 * f-exp.y (type_stack): New global.
9931 Update rules.
9932 (push_kind_type, f_parse): Update.
9933 * d-exp.y (type_stack): New global.
9934 Update rules.
9935 (d_parse): Update.
9936 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9937 Update rules.
9938 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9939 (HFILES_NO_SRCDIR): Add type-stack.h.
9940
9941 2019-04-04 Tom Tromey <tom@tromey.com>
9942
9943 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9944 (rust_parser::convert_ast_to_expression, rust_parse)
9945 (rust_lex_test_completion, rust_lex_tests): Update.
9946 * parser-defs.h (struct expr_completion_state): New.
9947 (struct parser_state) <parser_state>: Add completion parameter.
9948 <mark_struct_expression, mark_completion_tag>: New methods.
9949 <parse_completion, m_completion_state>: New members.
9950 (prefixify_expression, null_post_parser): Update.
9951 (mark_struct_expression, mark_completion_tag): Don't declare.
9952 * parse.c (parse_completion, expout_last_struct)
9953 (expout_tag_completion_type, expout_completion_name): Remove
9954 globals.
9955 (parser_state::mark_struct_expression)
9956 (parser_state::mark_completion_tag): Now methods.
9957 (prefixify_expression): Add last_struct parameter.
9958 (prefixify_subexp): Likewise.
9959 (parse_exp_1): Update.
9960 (parse_exp_in_context): Add cstate parameter. Update.
9961 (parse_expression_for_completion): Create an
9962 expr_completion_state.
9963 (null_post_parser): Add "completion" parameter.
9964 * p-exp.y: Update rules.
9965 (yylex): Update.
9966 * language.h (struct language_defn) <la_post_parser>: Add
9967 "completing" parameter.
9968 * go-exp.y: Update rules.
9969 (lex_one_token): Update.
9970 * expression.h (parse_completion): Don't declare.
9971 * d-exp.y: Update rules.
9972 (lex_one_token): Update rules.
9973 * c-exp.y: Update rules.
9974 (lex_one_token): Update.
9975 * ada-lang.c (resolve): Add "parse_completion" parameter.
9976 (resolve_subexp): Likewise.
9977 (ada_resolve_function): Likewise.
9978
9979 2019-04-04 Tom Tromey <tom@tromey.com>
9980
9981 * parser-defs.h (struct parser_state) <start_arglist,
9982 end_arglist>: New methods.
9983 <arglist_len, m_funcall_chain>: New members.
9984 (arglist_len, start_arglist, end_arglist): Don't declare.
9985 * parse.c (arglist_len, funcall_chain): Remove global.
9986 (start_arglist, end_arglist): Remove functions.
9987 (parse_exp_in_context): Update.
9988 * p-exp.y: Update rules.
9989 * m2-exp.y: Update rules.
9990 * go-exp.y: Update rules.
9991 * f-exp.y: Update rules.
9992 * d-exp.y: Update rules.
9993 * c-exp.y: Update rules.
9994
9995 2019-04-04 Tom Tromey <tom@tromey.com>
9996
9997 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9998 lex_operator, push_back>: New methods.
9999 Update all rules.
10000 (rust_parser::lex_hex, lex_escape): Rename and update.
10001 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10002 (rust_parser::lex_operator): Rename and update.
10003 (rust_parser::lex_number, rustyylex, rustyyerror)
10004 (rust_lex_test_init, rust_lex_test_sequence)
10005 (rust_lex_test_push_back, rust_lex_tests): Update.
10006 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10007 parameter.
10008 <lexptr, prev_lexptr>: New members.
10009 (lexptr, prev_lexptr): Don't declare.
10010 * parse.c (lexptr, prev_lexptr): Remove globals.
10011 (parse_exp_in_context): Update.
10012 * p-exp.y (yylex, yyerror): Update.
10013 * m2-exp.y (parse_number, yylex, yyerror): Update.
10014 * go-exp.y (lex_one_token, yyerror): Update.
10015 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10016 * d-exp.y (lex_one_token, yyerror): Update.
10017 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10018 (lex_one_token, yyerror): Update.
10019 * ada-lex.l (YY_INPUT): Update.
10020 (rewind_to_char): Update.
10021 * ada-exp.y (yyerror): Update.
10022
10023 2019-04-04 Tom Tromey <tom@tromey.com>
10024
10025 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10026 * parser-defs.h (struct parser_state) <parser_state>: Add new
10027 parameter.
10028 <comma_terminates>: New member.
10029 (comma_terminates): Don't declare global.
10030 * parse.c (comma_terminates): Remove global.
10031 (parse_exp_in_context): Update.
10032 * p-exp.y (yylex): Update.
10033 * m2-exp.y (yylex): Update.
10034 * go-exp.y (lex_one_token): Update.
10035 * f-exp.y (yylex): Update.
10036 * d-exp.y (lex_one_token): Update.
10037 * c-exp.y (lex_one_token): Update.
10038 * ada-lex.l: Update.
10039
10040 2019-04-04 Tom Tromey <tom@tromey.com>
10041
10042 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10043 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10044 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10045 * parser-defs.h (paren_depth): Don't declare.
10046 * parse.c (paren_depth): Remove global.
10047 (parse_exp_in_context): Update.
10048 * p-exp.y (paren_depth): New global.
10049 (pascal_parse): Initialize it.
10050 * m2-exp.y (paren_depth): New global.
10051 (m2_parse): Initialize it.
10052 * go-exp.y (paren_depth): New global.
10053 (go_parse): Initialize it.
10054 * f-exp.y (paren_depth): New global.
10055 (f_parse): Initialize it.
10056 * d-exp.y (paren_depth): New global.
10057 (d_parse): Initialize it.
10058 * c-exp.y (paren_depth): New global.
10059 (c_parse): Initialize it.
10060 * ada-lex.l (paren_depth): New global.
10061 (lexer_init): Initialize it.
10062
10063 2019-04-04 Tom Tromey <tom@tromey.com>
10064
10065 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10066 (rust_parser::convert_ast_to_type)
10067 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10068 * parser-defs.h (struct parser_state) <parser_state>: Add
10069 parameters. Initialize new members.
10070 <expression_context_block, expression_context_pc>: New members.
10071 * parse.c (expression_context_block, expression_context_pc):
10072 Remove globals.
10073 (parse_exp_in_context): Update.
10074 * p-exp.y: Update all rules.
10075 (yylex): Update.
10076 * m2-exp.y: Update all rules.
10077 (yylex): Update.
10078 * go-exp.y (yylex): Update.
10079 * f-exp.y (yylex): Update.
10080 * d-exp.y: Update all rules.
10081 (yylex): Update.
10082 * c-exp.y: Update all rules.
10083 (lex_one_token, classify_name, yylex, c_parse): Update.
10084 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10085
10086 2019-04-04 Tom Tromey <tom@tromey.com>
10087
10088 * gdbarch.h, gdbarch.c: Rebuild.
10089 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10090 * stap-probe.h:
10091 (struct stap_parse_info): Replace "parser_state" with
10092 "expr_builder".
10093 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10094 (parser_state): New class.
10095 * parse.c (expr_builder): Rename.
10096 (expr_builder::release): Rename.
10097 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10098 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10099 (write_exp_elt_longcst, write_exp_elt_floatcst)
10100 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10101 (write_exp_string_vector, write_exp_bitstring)
10102 (write_exp_msymbol, mark_struct_expression)
10103 (write_dollar_variable)
10104 (insert_type_address_space, increase_expout_size): Replace
10105 "parser_state" with "expr_builder".
10106 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10107 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10108 "parser_state" with "expr_builder".
10109
10110 2019-04-04 Tom Tromey <tom@tromey.com>
10111
10112 * rust-exp.y: Replace "parse_language" with method call.
10113 * p-exp.y:
10114 (yylex): Replace "parse_language" with method call.
10115 * m2-exp.y:
10116 (yylex): Replace "parse_language" with method call.
10117 * go-exp.y (classify_name): Replace "parse_language" with method
10118 call.
10119 * f-exp.y (yylex): Replace "parse_language" with method call.
10120 * d-exp.y (lex_one_token): Replace "parse_language" with method
10121 call.
10122 * c-exp.y:
10123 (lex_one_token, classify_name, yylex): Replace "parse_language"
10124 with method call.
10125 * ada-exp.y (find_primitive_type, type_char)
10126 (type_system_address): Replace "parse_language" with method call.
10127
10128 2019-04-04 Tom Tromey <tom@tromey.com>
10129
10130 * rust-exp.y: Replace "parse_gdbarch" with method call.
10131 * parse.c (write_dollar_variable, insert_type_address_space):
10132 Replace "parse_gdbarch" with method call.
10133 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10134 call.
10135 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10136 call.
10137 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10138 "parse_gdbarch" with method call.
10139 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10140 with method call.
10141 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10142 "parse_gdbarch" with method call.
10143 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10144 "parse_gdbarch" with method call.
10145 * c-exp.y (parse_type, parse_number, classify_name): Replace
10146 "parse_gdbarch" with method call.
10147 * ada-lex.l: Replace "parse_gdbarch" with method call.
10148 * ada-exp.y (parse_type, find_primitive_type, type_char)
10149 (type_system_address): Replace "parse_gdbarch" with method call.
10150
10151 2019-04-04 Tom Tromey <tom@tromey.com>
10152
10153 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10154 * stap-probe.c (stap_parse_argument): Update.
10155 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10156 initial_size parameter.
10157 * rust-exp.y (rust_lex_tests): Update.
10158 * parse.c (parser_state): Update.
10159 (parse_exp_in_context): Update.
10160 * parser-defs.h (struct parser_state) <parser_state>: Remove
10161 "initial_size" parameter.
10162
10163 2019-04-04 Tom Tromey <tom@tromey.com>
10164
10165 * parser-defs.h (increase_expout_size): Don't declare.
10166 * parse.c (increase_expout_size): Now static.
10167
10168 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10169
10170 * gnu-nat.c (gnu_nat_target::wait): Fix
10171 target_waitstatus_to_string call.
10172
10173 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10174
10175 * eval.c (evaluate_subexp_standard): Handle internal functions
10176 during Fortran function call handling.
10177
10178 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10179
10180 * NEWS: Mention new internal functions.
10181 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10182 (read_base_type): Use dwarf2_init_complex_target_type.
10183 * value.c (creal_internal_fn): New function.
10184 (cimag_internal_fn): New function.
10185 (_initialize_values): Register new internal functions.
10186
10187 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10188
10189 * infrun.c (stop_all_threads): If debug_infrun, always
10190 trace the wait status after wait_one, using
10191 target_waitstatus_to_string and target_pid_to_str.
10192 (handle_inferior_event): Replace various trace of
10193 wait status kind by a single trace.
10194 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10195 wait status kind image by target_waitstatus_to_string.
10196 * target/waitstatus.c (target_waitstatus_to_string): Fix
10197 obsolete comment.
10198
10199 2019-04-01 Tom Tromey <tromey@adacore.com>
10200
10201 PR symtab/23331:
10202 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10203
10204 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10205 Pedro Alves <palves@redhat.com>
10206
10207 * top.c (quit_force): Call 'finalize_values'.
10208 * value.c (finalize_values): New function.
10209 * value.h (finalize_values): Declare.
10210
10211 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10212
10213 * NEWS: Announce $_gdb_major and $_gdb_minor.
10214
10215 * top.c (init_gdb_version_vars): New function.
10216 (gdb_init): Call init_gdb_version_vars.
10217
10218 2019-03-29 Tom Tromey <tromey@adacore.com>
10219
10220 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10221 help text. Remove dead code.
10222
10223 2019-03-29 Keith Seitz <keiths@redhat.com>
10224
10225 From Siddhesh Poyarekar:
10226 * f-lang.h (f77_get_upperbound): Return LONGEST.
10227 (f77_get_lowerbound): Likewise.
10228 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10229 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10230 print them.
10231 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10232 plongest to format print it.
10233 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10234 (f77_get_upperbound): Likewise.
10235 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10236 LOWER_BOUND to LONGEST.
10237 (f77_create_arrayprint_offset_tbl): Likewise.
10238
10239 2019-03-29 Keith Seitz <keiths@redhat.com>
10240
10241 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10242 %s/pulongest for TYPE_LENGTH instead of %d in format
10243 strings.
10244 * ada-typerint.c (ada_print_type): Likewise.
10245 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10246 * compile/compile-c-support.c (generate_register_struct): Likewise.
10247 * gdbtypes.c (recursive_dump_type): Likewise.
10248 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10249 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10250 instead of %d in format strings.
10251 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10252 to std::min to ULONGEST.
10253 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10254 instead of %d in format strings.
10255 * tracepoint.c (info_scope_command): Likewise.
10256 * typeprint.c (print_offset_data::update)
10257 (print_offset_data::finish): Likewise.
10258 * xtensa-tdep.c (xtensa_store_return_value)
10259 (xtensa_push_dummy_call): Likewise.
10260
10261 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10262
10263 * windows-nat.c (display_selector): Fixed format specifications
10264 for 64-bit Cygwin.
10265
10266 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10267
10268 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10269
10270 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10271
10272 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10273 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10274 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10275 (nios2_linux_init_abi): Install it.
10276
10277 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10278
10279 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10280
10281 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10282
10283 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10284
10285 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10286 Tom Tromey <tromey@adacore.com>
10287
10288 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10289
10290 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10291
10292 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10293 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10294 method to compute the bounds of range types. Also print "[evaluated]"
10295 if the bounds' values come from a dynamic evaluation.
10296
10297 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10298
10299 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10300 whitespace when pretty printing is on.
10301
10302 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10303
10304 * ppc-linux-nat.c: Add include.
10305
10306 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10307
10308 * NEWS: Mention AArch64 Pointer Authentication.
10309
10310 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10311
10312 * arm-linux-nat.c: Add include.
10313
10314 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10315
10316 * source-cache.c (source_cache::get_source_lines): Re-read
10317 fullname after calling open_source_file.
10318
10319 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10320
10321 * NEWS: Mention TLS support for FreeBSD.
10322
10323 2019-03-25 Tom Tromey <tromey@adacore.com>
10324
10325 * minsyms.c (BUNCH_SIZE): Update comment.
10326 (~minimal_symbol_reader): Remove old comment.
10327 (compact_minimal_symbols): Update comment.
10328 (minimal_symbol_reader::install): Remove old comment. Update
10329 other comments.
10330
10331 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10332
10333 * s390-linux-nat.c: Add include.
10334
10335 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10336
10337 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10338 Call linux_get_hwcap.
10339 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10340 Likewise.
10341 (aarch64_linux_get_hwcap): Remove function.
10342 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10343 declaration.
10344 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10345 linux_get_hwcap.
10346 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10347 * linux-tdep.c (linux_get_hwcap): Add function.
10348 (linux_get_hwcap2): Likewise.
10349 * linux-tdep.h (linux_get_hwcap): Add declaration.
10350 (linux_get_hwcap2): Likewise.
10351 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10352 (ppc_linux_get_hwcap2): Likewise.
10353 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10354 linux_get_hwcap.
10355 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10356 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10357 (ppc_linux_nat_target::read_description): Likewise.
10358 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10359 * s390-linux-nat.c: Likewise.
10360 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10361
10362 2019-03-24 Tom Tromey <tom@tromey.com>
10363
10364 * ada-lang.c (standard_lookup): Simplify initialization.
10365 (ada_lookup_symbol_nonlocal): Simplify return.
10366 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10367 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10368 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10369 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10370 initialization.
10371 * solib.c (solib_global_lookup): Simplify.
10372 * symtab.c (null_block_symbol): Remove.
10373 (symbol_cache_lookup): Simplify returns.
10374 (lookup_language_this): Simplify returns.
10375 (lookup_symbol_aux): Simplify return.
10376 (lookup_local_symbol): Simplify returns.
10377 (lookup_global_symbol_from_objfile): Simplify return.
10378 (lookup_symbol_in_objfile_symtabs)
10379 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10380 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10381 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10382 * cp-namespace.c (cp_lookup_bare_symbol)
10383 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10384 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10385 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10386 (cp_lookup_symbol_via_imports): Simplify initialization.
10387 (find_symbol_in_baseclass): Likewise.
10388 * symtab.h (null_block_symbol): Remove.
10389 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10390 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10391 (d_lookup_symbol_module): Likewise.
10392 (find_symbol_in_baseclass): Simplify initialization.
10393
10394 2019-03-24 Tom Tromey <tom@tromey.com>
10395
10396 * expression.h: Don't include symtab.h.
10397 (struct block): Forward declare.
10398
10399 2019-03-24 Tom Tromey <tom@tromey.com>
10400
10401 * c-exp.y (typebase): Remove casts.
10402 * gdbtypes.c (lookup_unsigned_typename, )
10403 (lookup_signed_typename): Remove cast.
10404 * eval.c (parse_to_comma_and_eval): Remove cast.
10405 * parse.c (write_dollar_variable): Remove cast.
10406 * block.h (struct block) <superblock>: Now const.
10407 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10408 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10409 (map_block): Make "block" const.
10410 * symfile.h (struct quick_symbol_functions)
10411 <map_matching_symbols>: Constify block argument to "callback".
10412 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10413 const.
10414 (find_pc_sect_compunit_symtab): Make "b" const.
10415 (find_symbol_at_address): Likewise.
10416 (search_symbols): Likewise.
10417 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10418 (dw2_debug_names_lookup_symbol): Likewise.
10419 (dw2_map_matching_symbols): Update.
10420 * p-valprint.c (pascal_val_print): Remove "block".
10421 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10422 (aux_add_nonlocal_symbols): Make "block" const.
10423 (resolve_subexp): Remove cast.
10424 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10425 const.
10426 (iterate_over_file_blocks): Likewise.
10427 * f-exp.y (%union) <bval>: Remove.
10428 * coffread.c (patch_opaque_types): Make "b" const.
10429 * spu-tdep.c (spu_catch_start): Make "block" const.
10430 * c-valprint.c (print_unpacked_pointer): Remove "block".
10431 * symmisc.c (dump_symtab_1): Make "b" const.
10432 (block_depth): Make "block" const.
10433 * d-exp.y (%union) <bval>: Remove.
10434 * cp-support.h (cp_lookup_rtti_type): Update.
10435 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10436 * psymtab.c (psym_lookup_symbol): Make "block" const.
10437 (maintenance_check_psymtabs): Make "b" const.
10438 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10439 (enumerate_locals, enumerate_args): Update.
10440 * python/py-symtab.c (stpy_global_block): Make "block" const.
10441 (stpy_static_block): Likewise.
10442 * inline-frame.c (block_starting_point_at): Make "new_block"
10443 const.
10444 * block.c (find_block_in_blockvector): Make return type const.
10445 (blockvector_for_pc_sect): Make "b" const.
10446 (find_block_in_blockvector): Make "b" const.
10447
10448 2019-03-23 Tom Tromey <tom@tromey.com>
10449
10450 * varobj.c (varobj_create): Update.
10451 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10452 * printcmd.c (display_command, do_one_display): Don't reset
10453 innermost_block.
10454 * parser-defs.h (enum innermost_block_tracker_type): Move to
10455 expression.h.
10456 (innermost_block): Update comment.
10457 * parse.c (parse_exp_1): Add tracker_types parameter.
10458 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10459 tracker_types parameter. Reset innermost_block.
10460 (parse_exp_in_context): Remove.
10461 (parse_expression_for_completion): Update.
10462 * objfiles.c (~objfile): Don't reset expression_context_block or
10463 innermost_block.
10464 * expression.h (enum innermost_block_tracker_type): Move from
10465 parser-defs.h.
10466 (parse_exp_1): Add tracker_types parameter.
10467 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10468 reset innermost_block.
10469
10470 2019-03-23 Tom Tromey <tom@tromey.com>
10471
10472 * objfiles.h: Include bcache.h.
10473
10474 2019-03-23 Tom Tromey <tom@tromey.com>
10475
10476 * linespec.c (get_current_search_block): Use
10477 scoped_restore_current_language.
10478 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10479
10480 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10481 Jiong Wang <jiong.wang@arm.com>
10482
10483 * aarch64-linux-tdep.c
10484 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10485 section.
10486 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10487
10488 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10489 Jiong Wang <jiong.wang@arm.com>
10490
10491 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10492 instructions.
10493 (aarch64_analyze_prologue_test): Add PACIASP test.
10494 (aarch64_prologue_prev_register): Unmask PC value.
10495
10496 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10497 Jiong Wang <jiong.wang@arm.com>
10498
10499 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10500 (aarch64_dwarf2_prev_register): Unmask PC value.
10501 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10502 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10503 DW_CFA_AARCH64_negate_ra_state.
10504 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10505
10506 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10507 Jiong Wang <jiong.wang@arm.com>
10508
10509 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10510 registers.
10511 (aarch64_pseudo_register_name): Likewise.
10512 (aarch64_pseudo_register_type): Likewise.
10513 (aarch64_pseudo_register_reggroup_p): Likewise.
10514 (aarch64_gdbarch_init): Add pauth registers.
10515 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10516 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10517 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10518 (struct gdbarch_tdep): Add regnum for ra_state.
10519
10520 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10521 Jiong Wang <jiong.wang@arm.com>
10522
10523 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10524
10525 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10526 Jiong Wang <jiong.wang@arm.com>
10527
10528 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10529 function.
10530 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10531 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10532 (aarch64_gdbarch_init): Add puth registers.
10533 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10534 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10535 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10536
10537 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10538 Jiong Wang <jiong.wang@arm.com>
10539
10540 * aarch64-linux-nat.c
10541 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10542 * aarch64-linux-tdep.c
10543 (aarch64_linux_core_read_description): Likewise.
10544 (aarch64_linux_get_hwcap): New function.
10545 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10546 (aarch64_linux_get_hwcap): New declaration.
10547
10548 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10549 Jiong Wang <jiong.wang@arm.com>
10550
10551 * aarch64-linux-nat.c
10552 (aarch64_linux_nat_target::read_description): Add pauth param.
10553 * aarch64-linux-tdep.c
10554 (aarch64_linux_core_read_description): Likewise.
10555 * aarch64-tdep.c (struct target_desc): Add in pauth.
10556 (aarch64_read_description): Add pauth param.
10557 (aarch64_gdbarch_init): Likewise.
10558 * aarch64-tdep.h (aarch64_read_description): Likewise.
10559 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10560 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10561 * features/Makefile: Add new files.
10562 * features/aarch64-pauth.c: New file.
10563 * features/aarch64-pauth.xml: New file.
10564
10565 2019-03-20 Tom Tromey <tromey@adacore.com>
10566
10567 * infrun.c (handle_inferior_event): Rename from
10568 handle_inferior_event_1. Create a scoped_value_mark.
10569 (handle_inferior_event): Remove.
10570
10571 2019-03-19 Tom Tromey <tromey@adacore.com>
10572
10573 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10574 * infrun.h (print_stop_event): Add "displays" parameter.
10575 * infrun.c (print_stop_event): Add "displays" parameter.
10576
10577 2019-03-19 Pedro Alves <palves@redhat.com>
10578
10579 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10580 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10581 to -1. Fix TABs vs spaces.
10582 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10583 * tui/tui-out.h (tui_ui_out) Add intro comments.
10584 <m_line, m_start_of_line>: In-class initialize, and add describing
10585 comment.
10586
10587 2019-03-18 Alan Hayward <alan.hayward@arm.com>
10588
10589 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10590 variable names.
10591 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10592
10593 2019-03-18 Pedro Alves <palves@redhat.com>
10594 Eli Zaretskii <eliz@gnu.org>
10595
10596 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10597 m_line and m_start_of_line.
10598
10599 2019-03-18 Eli Zaretskii <eliz@gnu.org>
10600
10601 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10602 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10603 it returns a newline. This fixes a regression in TU mode, whereby
10604 the next line is output on the same screen line as the user input.
10605
10606 2019-03-18 Tom Tromey <tromey@adacore.com>
10607
10608 * minsyms.c (minimal_symbol_reader::install): Remove call to
10609 obstack_blank.
10610
10611 2019-03-18 Pedro Alves <palves@redhat.com>
10612
10613 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10614 New globals.
10615 (apply_style): New, factored out from ...
10616 (apply_ansi_escape): ... this. Handle reverse video mode.
10617 (tui_set_reverse_mode): New function.
10618 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10619 * tui/tui-winsource.c (tui_show_source_line): Use
10620 tui_set_reverse_mode instead of setting A_STANDOUT.
10621 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10622 New setter methods.
10623
10624 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
10625
10626 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10627 Handle tabs.
10628
10629 2019-03-18 Tom Tromey <tromey@adacore.com>
10630
10631 * ada-lang.c (empty_array): Add "high" parameter.
10632 (ada_evaluate_subexp): Update.
10633
10634 2019-03-17 Sergei Trofimovich <siarheit@google.com>
10635
10636 * unittests/string_view-selftests.c: Define
10637 _initialize_string_view_selftests unconditionally.
10638
10639 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10640
10641 PR gdb/24350
10642 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10643
10644 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10645
10646 PR gdb/24351
10647 * windows-nat.c (display_selector): Fix format specifiers.
10648
10649 2019-03-17 Eli Zaretskii <eliz@gnu.org>
10650
10651 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10652 tui_refill_source_window instead of tui_refresh_win, to update the
10653 current execution line. This fixes redisplay of the current line
10654 when stepping through the code with "next" or "step".
10655
10656 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10657
10658 * source-cache.c (source_cache::get_source_lines): Call
10659 find_source_lines to initialize s->nlines. This fixes vertical
10660 scrolling of TUI source window when the DOWN arrow is pressed.
10661
10662 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10663
10664 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10665 linux-thread-db.c (_initialize_thread_db): Likewise.
10666
10667 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10668
10669 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10670 wclrtoeol in tui_show_source_line". This reverts changes made in
10671 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10672
10673 2019-03-15 Tom Tromey <tom@tromey.com>
10674
10675 * symtab.h (struct minimal_symbol): Derive from
10676 general_symbol_info.
10677 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10678 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10679 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10680 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10681 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10682 (MSYMBOL_SEARCH_NAME): Update.
10683 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10684 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10685 * minsyms.c (minimal_symbol_reader::record_full): Update.
10686
10687 2019-03-15 Tom Tromey <tom@tromey.com>
10688
10689 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10690
10691 2019-03-15 Tom Tromey <tom@tromey.com>
10692
10693 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10694 unique_xmalloc_ptr.
10695 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10696 Update.
10697 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10698 (build_minimal_symbol_hash_tables)
10699 (minimal_symbol_reader::install): Update.
10700
10701 2019-03-15 Tom Tromey <tom@tromey.com>
10702
10703 * symtab.c (create_demangled_names_hash): Update.
10704 (symbol_set_names): Update.
10705 * objfiles.h (struct objfile_per_bfd_storage)
10706 <demangled_names_hash>: Now an htab_up.
10707 * objfiles.c (objfile_per_bfd_storage): Simplify.
10708
10709 2019-03-15 Tom Tromey <tom@tromey.com>
10710
10711 * objfiles.h (struct objfile_per_bfd_storage): Declare
10712 destructor.
10713 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10714 New.
10715 (get_objfile_bfd_data): Use new. Don't initialize
10716 language_of_main.
10717 (free_objfile_per_bfd_storage): Remove.
10718 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10719
10720 2019-03-15 Tom Tromey <tom@tromey.com>
10721
10722 * symfile.c (reread_symbols): Update.
10723 * objfiles.c (objfile::objfile): Update.
10724 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10725 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10726 comment.
10727 (minimal_symbol_reader::install): Update.
10728 (terminate_minimal_symbol_table): Remove.
10729 * jit.c (jit_object_close_impl): Update.
10730
10731 2019-03-15 Tom Tromey <tom@tromey.com>
10732
10733 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10734 initializations.
10735
10736 2019-03-15 Tom Tromey <tom@tromey.com>
10737
10738 * objfiles.h (struct objfile_per_bfd_storage)
10739 <demangled_hash_languages>: Now a bitset.
10740 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10741 (lookup_minimal_symbol): Update.
10742
10743 2019-03-15 Tom Tromey <tom@tromey.com>
10744
10745 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10746 Don't return the symbol.
10747 * coffread.c (record_minimal_symbol): Use record_full.
10748
10749 2019-03-14 Eli Zaretskii <eliz@gnu.org>
10750
10751 The MS-Windows port of ncurses fails to switch to a color pair if
10752 one or both of the colors are the implicit default colors. This
10753 change records the default colors when TUI is initialized, and
10754 then specifies them explicitly when a color pair uses the default
10755 colors. This allows color styling in TUI mode on MS-Windows.
10756
10757 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10758 ncurses_norm_attr.
10759 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10760 colors in ncurses_norm_attr.
10761 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10762 "none", replace it with the default color recorded in
10763 ncurses_norm_attr.
10764
10765 2019-03-14 Tom Tromey <tromey@adacore.com>
10766
10767 * source-cache.h (class source_cache) <get_source_lines>: Return
10768 std::string.
10769 * source-cache.c (source_cache::extract_lines): Handle case where
10770 first_pos==npos. Return std::string.
10771 (source_cache::get_source_lines): Update.
10772
10773 2019-03-14 Tom Tromey <tromey@adacore.com>
10774
10775 * NEWS: Add item for "style sources" commands.
10776 * source-cache.c (source_cache::get_source_lines): Check
10777 source_styling.
10778 * cli/cli-style.c (source_styling): New global.
10779 (_initialize_cli_style): Add "style sources" commands.
10780 (show_style_sources): New function.
10781 * cli/cli-style.h (source_styling): Declare.
10782
10783 2019-03-14 Pedro Alves <palves@redhat.com>
10784 Tom Tromey <tromey@adacore.com>
10785
10786 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10787 * tui/tui-winsource.c (tui_refill_source_window): New function,
10788 from...
10789 (tui_horizontal_source_scroll): ... here. Move some logic.
10790 * cli/cli-style.c (set_style_enabled): Notify new observable.
10791 * tui/tui-hooks.c (tui_redisplay_source): New function.
10792 (tui_attach_detach_observers): Attach or detach
10793 tui_redisplay_source.
10794 * observable.h (source_styling_changed): New observable.
10795 * observable.c: Define source_styling_changed observable.
10796
10797 2019-03-13 Tom Tromey <tromey@adacore.com>
10798
10799 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10800 (i386_gnu_nat_target::store_registers): Update.
10801 * target-debug.h (target_debug_print_std_string): New macro.
10802 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10803 * windows-tdep.c (display_one_tib): Update.
10804 * tui/tui-stack.c (tui_make_status_line): Update.
10805 * top.c (print_inferior_quit_action): Update.
10806 * thread.c (thr_try_catch_cmd): Update.
10807 (add_thread_with_info): Update.
10808 (thread_target_id_str): Update.
10809 (thr_try_catch_cmd): Update.
10810 (thread_command): Update.
10811 (thread_find_command): Update.
10812 * record-btrace.c (record_btrace_target::info_record)
10813 (record_btrace_resume_thread, record_btrace_target::resume)
10814 (record_btrace_cancel_resume, record_btrace_step_thread)
10815 (record_btrace_target::wait, record_btrace_target::wait)
10816 (record_btrace_target::wait, record_btrace_target::stop): Update.
10817 * progspace.c (print_program_space): Update.
10818 * process-stratum-target.c
10819 (process_stratum_target::thread_address_space): Update.
10820 * linux-fork.c (linux_fork_mourn_inferior)
10821 (detach_checkpoint_command, info_checkpoints_command)
10822 (linux_fork_context): Update.
10823 (linux_fork_detach): Update.
10824 (class scoped_switch_fork_info): Update.
10825 (delete_checkpoint_command): Update.
10826 * infrun.c (follow_fork_inferior): Update.
10827 (follow_fork_inferior): Update.
10828 (proceed_after_vfork_done): Update.
10829 (handle_vfork_child_exec_or_exit): Update.
10830 (follow_exec): Update.
10831 (displaced_step_prepare_throw): Update.
10832 (displaced_step_restore): Update.
10833 (start_step_over): Update.
10834 (resume_1): Update.
10835 (clear_proceed_status_thread): Update.
10836 (proceed): Update.
10837 (print_target_wait_results): Update.
10838 (do_target_wait): Update.
10839 (context_switch): Update.
10840 (stop_all_threads): Update.
10841 (restart_threads): Update.
10842 (finish_step_over): Update.
10843 (handle_signal_stop): Update.
10844 (switch_back_to_stepped_thread): Update.
10845 (keep_going_pass_signal): Update.
10846 (print_exited_reason): Update.
10847 (normal_stop): Update.
10848 * inferior.c (inferior_pid_to_str): Change return type.
10849 (print_selected_inferior): Update.
10850 (add_inferior): Update.
10851 (detach_inferior): Update.
10852 * dummy-frame.c (fprint_dummy_frames): Update.
10853 * dcache.c (dcache_info_1): Update.
10854 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10855 (btrace_fetch, btrace_clear): Update.
10856 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10857 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10858 type.
10859 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10860 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10861 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10862 * gdbarch.c, gdbarch.h: Rebuild.
10863 * gdbarch.sh (core_pid_to_str): Change return type.
10864 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10865 return type.
10866 (windows_nat_target::pid_to_str): Change return type.
10867 (windows_delete_thread): Update.
10868 (windows_nat_target::attach): Update.
10869 (windows_nat_target::files_info): Update.
10870 * target-delegates.c: Rebuild.
10871 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10872 return type.
10873 (sol_thread_target::pid_to_str): Change return type.
10874 * remote.c (class remote_target) <pid_to_str>: Change return
10875 type.
10876 (remote_target::pid_to_str): Change return type.
10877 (extended_remote_target::attach, remote_target::remote_stop_ns)
10878 (remote_target::remote_notif_remove_queued_reply)
10879 (remote_target::push_stop_reply, remote_target::disable_btrace):
10880 Update.
10881 (extended_remote_target::attach): Update.
10882 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10883 type.
10884 (gdbsim_target::pid_to_str): Change return type.
10885 * ravenscar-thread.c (struct ravenscar_thread_target)
10886 <pid_to_str>: Change return type.
10887 (ravenscar_thread_target::pid_to_str): Change return type.
10888 * procfs.c (class procfs_target) <pid_to_str>: Change return
10889 type.
10890 (procfs_target::pid_to_str): Change return type.
10891 (procfs_target::attach): Update.
10892 (procfs_target::detach): Update.
10893 (procfs_target::fetch_registers): Update.
10894 (procfs_target::store_registers): Update.
10895 (procfs_target::wait): Update.
10896 (procfs_target::files_info): Update.
10897 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10898 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10899 return type.
10900 (nto_procfs_target::pid_to_str): Change return type.
10901 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10902 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10903 return type.
10904 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10905 (exit_lwp): Update.
10906 (attach_proc_task_lwp_callback, get_detach_signal)
10907 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10908 (linux_nat_target::resume, wait_lwp, stop_callback)
10909 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10910 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10911 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10912 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10913 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10914 type.
10915 (inf_ptrace_target::attach): Update.
10916 (inf_ptrace_target::files_info): Update.
10917 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10918 type.
10919 (go32_nat_target::pid_to_str): Change return type.
10920 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10921 (gnu_nat_target::wait): Update.
10922 (gnu_nat_target::wait): Update.
10923 (gnu_nat_target::resume): Update.
10924 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10925 (fbsd_nat_target::wait): Update.
10926 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10927 type.
10928 (darwin_nat_target::attach): Update.
10929 * corelow.c (class core_target) <pid_to_str>: Change return type.
10930 (core_target::pid_to_str): Change return type.
10931 * target.c (normal_pid_to_str): Change return type.
10932 (default_pid_to_str): Likewise.
10933 (target_pid_to_str): Change return type.
10934 (target_translate_tls_address): Update.
10935 (target_announce_detach): Update.
10936 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10937 return type.
10938 (bsd_uthread_target::pid_to_str): Change return type.
10939 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10940 type.
10941 (bsd_kvm_target::pid_to_str): Change return type.
10942 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10943 return type.
10944 (aix_thread_target::pid_to_str): Change return type.
10945 * target.h (struct target_ops) <pid_to_str>: Change return type.
10946 (target_pid_to_str, normal_pid_to_str): Likewise.
10947 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10948 type.
10949 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10950 type.
10951 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10952 return type.
10953 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10954 type.
10955 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10956 type.
10957 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10958 return type.
10959
10960 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10961
10962 * NEWS: Mention that the new default MI version is 3. Mention
10963 changes to the output of commands and events that deal with
10964 multi-location breakpoints.
10965 * breakpoint.c: Include "mi/mi-out.h".
10966 (print_one_breakpoint): Change output syntax if using MI version
10967 >= 3.
10968 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10969 New.
10970 (mi_multi_location_breakpoint_output_fixed): New.
10971 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10972 (mi_cmd_fix_multi_location_breakpoint_output): New.
10973 (mi_multi_location_breakpoint_output_fixed): New.
10974 * mi/mi-cmds.c (mi_cmds): Register command
10975 -fix-multi-location-breakpoint-output.
10976 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10977 interpreter "mi".
10978
10979 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10980
10981 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10982 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10983 instantiate mi_ui_out based on interpreter name.
10984 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10985 * mi/mi-main.c (mi_load_progress): Likewise.
10986
10987 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10988
10989 * NEWS: Combine separate "New targets" sections for 8.3.
10990
10991 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10992
10993 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10994 (ppcfbsd_init_abi): Install gdbarch
10995 "fetch_tls_load_module_address" and "get_thread_local_address"
10996 methods.
10997
10998 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10999
11000 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11001 (riscv_fbsd_init_abi): Install gdbarch
11002 "fetch_tls_load_module_address" and "get_thread_local_address"
11003 methods.
11004
11005 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11006
11007 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11008 (i386fbsd_init_abi): Install gdbarch
11009 "fetch_tls_load_module_address" and "get_thread_local_address"
11010 methods.
11011
11012 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11013
11014 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11015 (amd64fbsd_init_abi): Install gdbarch
11016 "fetch_tls_load_module_address" and "get_thread_local_address"
11017 methods.
11018
11019 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11020
11021 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11022 (struct fbsd_pspace_data): New type.
11023 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11024 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11025 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11026 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11027 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11028
11029 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11030
11031 * gdbtypes.c (lookup_struct_elt): New function.
11032 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11033 * gdbtypes.h (struct struct_elt): New type.
11034 (lookup_struct_elt): New prototype.
11035
11036 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11037
11038 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11039 remove disabled code block.
11040
11041 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11042
11043 * gdbarch.sh (get_thread_local_address): New method.
11044 * gdbarch.h, gdbarch.c: Regenerate.
11045 * target.c (target_translate_tls_address): Use
11046 gdbarch_get_thread_local_address if present instead of
11047 target::get_thread_local_address.
11048
11049 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11050
11051 * target.h (target::get_thread_local_address): Update comment.
11052
11053 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11054
11055 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11056 objfile->separate_debug_objfile_backlink if not NULL.
11057
11058 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11059
11060 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11061 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11062 (amd64bsd_store_inferior_registers): Likewise.
11063 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11064 Enable segment base registers.
11065 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11066 PT_GETFSBASE and PT_GETGSBASE.
11067 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11068 PT_SETGSBASE.
11069 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11070 segment base registers.
11071 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11072
11073 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11074
11075 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11076 Update calls to i386_target_description to add 'segments'
11077 parameter.
11078 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11079 add segment base registers.
11080 * arch/i386.c (i386_create_target_description): Add 'segments'
11081 parameter to enable segment base registers.
11082 * arch/i386.h (i386_create_target_description): Likewise.
11083 * features/i386/32bit-segments.xml: New file.
11084 * features/i386/32bit-segments.c: Generate.
11085 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11086 call to i386_target_description to add 'segments' parameter.
11087 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11088 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11089 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11090 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11091 if feature is present.
11092 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11093 Add 'segments' parameter to call to i386_target_description.
11094 (i386_target_description): Add 'segments' parameter to enable
11095 segment base registers.
11096 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11097 to call to i386_target_description.
11098 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11099 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11100 Define I386_NUM_REGS.
11101 (i386_target_description): Add 'segments' parameter to enable
11102 segment base registers.
11103
11104 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11105
11106 PR/24325
11107 * source-cache.c: #undef open and close, to avoid unresolved
11108 externals during linking.
11109
11110 2019-03-12 Tom Tromey <tromey@adacore.com>
11111
11112 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11113 const. Add initializers.
11114 (_initialize_remote): Don't initialize ptid globals.
11115
11116 2019-03-12 Pedro Alves <palves@redhat.com>
11117
11118 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11119
11120 2019-03-12 Pedro Alves <palves@redhat.com>
11121
11122 * cp-name-parser.y (main): Remove unused 'len' variable.
11123
11124 2019-03-12 Tom Tromey <tromey@adacore.com>
11125
11126 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11127 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11128
11129 2019-03-12 Tom Tromey <tromey@adacore.com>
11130
11131 * linux-nat.c (iterate_over_lwps): Update.
11132 (stop_callback): Remove parameter.
11133 (stop_wait_callback, detach_callback, resume_set_callback)
11134 (select_singlestep_lwp_callback, set_ignore_sigint)
11135 (status_callback, resumed_callback, resume_clear_callback)
11136 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11137 data parameter.
11138 (linux_nat_target::detach, linux_nat_target::resume)
11139 (linux_stop_and_wait_all_lwps, select_event_lwp)
11140 (linux_nat_filter_event, linux_nat_wait_1)
11141 (linux_nat_target::kill, linux_nat_target::stop)
11142 (linux_nat_target::stop): Update.
11143 (linux_nat_resume_callback): Change type.
11144 (resume_stopped_resumed_lwps, count_events_callback)
11145 (select_event_lwp_callback): Likewise.
11146 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11147 * arm-linux-nat.c (struct update_registers_data): Remove.
11148 (update_registers_callback): Change type.
11149 (arm_linux_insert_hw_breakpoint1): Update.
11150 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11151 parameter.
11152 (x86_linux_dr_set_addr): Update.
11153 (x86_linux_dr_set_control): Update.
11154 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11155 (iterate_over_lwps): Use gdb::function_view.
11156 * nat/aarch64-linux-hw-point.c (struct
11157 aarch64_dr_update_callback_param): Remove.
11158 (debug_reg_change_callback): Change type.
11159 (aarch64_notify_debug_reg_change): Update.
11160 * s390-linux-nat.c (s390_refresh_per_info): Update.
11161
11162 2019-03-11 Tom Tromey <tromey@adacore.com>
11163
11164 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11165 redundant assignment to "this_cu".
11166
11167 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11168
11169 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11170
11171 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11172
11173 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11174 from...
11175 (rank_one_type): ... this.
11176
11177 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11178
11179 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11180 from...
11181 (rank_one_type): ... this.
11182
11183 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11184
11185 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11186 from...
11187 (rank_one_type): ... this.
11188
11189 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11190
11191 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11192 from...
11193 (rank_one_type): ... this.
11194
11195 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11196
11197 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11198 from...
11199 (rank_one_type): ... this.
11200
11201 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11202
11203 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11204 from...
11205 (rank_one_type): ... this.
11206
11207 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11208
11209 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11210 from...
11211 (rank_one_type): ... this.
11212
11213 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11214
11215 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11216 from...
11217 (rank_one_type): ... this.
11218
11219 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11220
11221 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11222 from...
11223 (rank_one_type): ... this.
11224
11225 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11226
11227 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11228 from...
11229 (rank_one_type): ... this.
11230
11231 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11232
11233 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11234 from...
11235 (rank_one_type): ... this.
11236
11237 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11238
11239 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11240 from...
11241 (rank_one_type): ... this.
11242
11243 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11244
11245 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11246 inferior-events' shows the example events.
11247
11248 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11249
11250 Support styling on native MS-Windows console
11251
11252 PR/24315
11253 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11254 on MS-Windows if $TERM is not defined.
11255
11256 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11257
11258 * posix-hdep.c (gdb_console_fputs):
11259 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11260 functions.
11261 * ui-file.h (gdb_console_fputs): Add prototype.
11262
11263 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11264 back to fputs only if the former returns zero.
11265
11266 2019-03-07 Tom Tromey <tom@tromey.com>
11267
11268 * symmisc.c (print_symbol_bcache_statistics): Update.
11269 (print_objfile_statistics): Update.
11270 * symfile.c (allocate_symtab): Update.
11271 * stabsread.c: Don't include bcache.h.
11272 * psymtab.h (struct psymbol_bcache): Don't declare.
11273 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11274 (psymbol_bcache_init, psymbol_bcache_free)
11275 (psymbol_bcache_get_bcache): Don't declare.
11276 * psymtab.c (struct psymbol_bcache): Remove.
11277 (psymtab_storage::psymtab_storage): Update.
11278 (psymtab_storage::~psymtab_storage): Update.
11279 (psymbol_bcache_init, psymbol_bcache_free)
11280 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11281 (add_psymbol_to_bcache): Update.
11282 (allocate_psymtab): Update.
11283 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11284 macro_cache>: No longer pointers.
11285 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11286 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11287 * macrotab.c (macro_bcache): Update.
11288 * macroexp.c: Don't include bcache.h.
11289 * gdbtypes.c (check_types_worklist): Update.
11290 (types_deeply_equal): Remove TRY/CATCH. Update.
11291 * elfread.c (elf_symtab_read): Update.
11292 * dwarf2read.c: Don't include bcache.h.
11293 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11294 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11295 (print_bcache_statistics, bcache_memory_used): Don't declare.
11296 (struct bcache): Move from bcache.c. Add constructor, destructor,
11297 methods. Rename all data members.
11298 * bcache.c (struct bcache): Move to bcache.h.
11299 (bcache::expand_hash_table): Rename from expand_hash_table.
11300 (bcache): Remove.
11301 (bcache::insert): Rename from bcache_full.
11302 (bcache::compare): Rename from bcache_compare.
11303 (bcache_xmalloc): Remove.
11304 (bcache::~bcache): Rename from bcache_xfree.
11305 (bcache::print_statistics): Rename from print_bcache_statistics.
11306 (bcache::memory_used): Rename from bcache_memory_used.
11307
11308 2019-03-07 Pedro Alves <palves@redhat.com>
11309
11310 * infrun.c (normal_stop): Also check for
11311 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11312
11313 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11314
11315 * f-lang.c (value_from_host_double): Moved to...
11316 * value.c (value_from_host_double): ...here.
11317 * value.h (value_from_host_double): Declare.
11318 * guile/scm-math.c (vlscm_convert_typed_number): Use
11319 value_from_host_double.
11320 (vlscm_convert_number): Likewise.
11321 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11322 * python/py-value.c (convert_value_from_python): Likewise.
11323
11324 2019-03-06 Tom Tromey <tom@tromey.com>
11325
11326 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11327
11328 2019-03-06 Tom Tromey <tom@tromey.com>
11329
11330 * utils.h (free_current_contents): Don't declare.
11331 * utils.c (free_current_contents): Remove.
11332
11333 2019-03-06 Tom Tromey <tom@tromey.com>
11334
11335 * top.c (quit_force): Update.
11336 * main.c (captured_command_loop): Update.
11337 * common/new-op.c (operator new): Update.
11338 * common/common-exceptions.c (struct catcher)
11339 <save_cleanup_chain>: Remove member.
11340 (exceptions_state_mc_init): Update.
11341 (exception_try_scope_entry): Return nullptr.
11342 (exception_try_scope_exit, exception_rethrow)
11343 (throw_exception_sjlj, throw_exception_cxx): Update.
11344 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11345 (all_cleanups, do_cleanups, discard_cleanups)
11346 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11347 (restore_cleanups, restore_final_cleanups): Don't declare.
11348 (do_final_cleanups): Remove parameter.
11349 * common/cleanups.c (cleanup_chain, make_cleanup)
11350 (make_cleanup_dtor, all_cleanups, do_cleanups)
11351 (discard_my_cleanups, discard_cleanups)
11352 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11353 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11354 (null_cleanup): Remove.
11355 (do_final_cleanups): Remove parameter.
11356
11357 2019-03-06 Tom Tromey <tom@tromey.com>
11358
11359 * remote.c (remote_target::remote_parse_stop_reply): Use
11360 unique_xmalloc_ptr.
11361
11362 2019-03-06 Tom Tromey <tom@tromey.com>
11363
11364 * stabsread.c (struct stabs_field_info): Rename from field_info.
11365 <list, fnlist>: Add initializers.
11366 <obstack>: New member.
11367 (read_member_functions, read_struct_fields, read_baseclasses):
11368 Allocate on obstack. Don't use cleanups.
11369 (read_one_struct_field, read_member_functions, read_struct_fields)
11370 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11371 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11372 (read_struct_type): Update.
11373
11374 2019-03-06 Tom Tromey <tom@tromey.com>
11375
11376 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11377 * common/filestuff.h (make_cleanup_close): Don't declare.
11378 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11379 Remove.
11380
11381 2019-03-06 Tom Tromey <tom@tromey.com>
11382
11383 * solib-aix.c: Use make_scope_exit.
11384
11385 2019-03-06 Tom Tromey <tom@tromey.com>
11386
11387 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11388 Use make_scope_exit.
11389
11390 2019-03-06 Tom Tromey <tom@tromey.com>
11391
11392 * solib-svr4.c (disable_probes_interface): Remove parameter.
11393 (svr4_handle_solib_event): Use make_scope_exit.
11394
11395 2019-03-06 Tom Tromey <tom@tromey.com>
11396
11397 * remote.c (struct stop_reply_deleter): Remove.
11398 (stop_reply_up): Update.
11399 (struct stop_reply): Derive from notif_event. Don't typedef.
11400 <regcache>: Now a std::vector.
11401 (stop_reply_xfree): Remove.
11402 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11403 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11404 (remote_target::discard_pending_stop_replies): Use delete.
11405 (remote_target::remote_parse_stop_reply): Update.
11406 (remote_target::process_stop_reply): Update.
11407 * remote-notif.h (struct notif_event): Add virtual destructor.
11408 Remove "dtr" member.
11409 (struct notif_client) <alloc_event>: Return a unique_ptr.
11410 (notif_event_xfree): Don't declare.
11411 (notif_event_up): New typedef.
11412 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11413 (notif_event_xfree, do_notif_event_xfree): Remove.
11414 (remote_notif_state_xfree): Update.
11415
11416 2019-03-06 Tom Tromey <tom@tromey.com>
11417
11418 * infrun.c (displaced_step_clear_cleanup): Now a
11419 forward_scope_exit type.
11420 (displaced_step_prepare_throw): Update.
11421 (displaced_step_fixup): Update.
11422
11423 2019-03-06 Tom Tromey <tom@tromey.com>
11424
11425 * inferior.h (class inferior): Update comment.
11426 * gdbthread.h (class thread_info): Update comment.
11427
11428 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11429 Tom Tromey <tom@tromey.com>
11430
11431 * stabsread.h (struct stab_section_list): Remove.
11432 (coffstab_build_psymtabs): Update.
11433 * dbxread.c (symbuf_sections): Now a std::vector.
11434 (sect_idx): New global.
11435 (fill_symbuf): Update.
11436 (coffstab_build_psymtabs): Change type of stabsects parameter.
11437 Update.
11438 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11439 std::vector.
11440 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11441 (coff_locate_sections): Update.
11442 (coff_symfile_read): Remove cleanups. Update.
11443 (init_stringtab): Add storage parameter.
11444 (free_stringtab, free_stringtab_cleanup): Remove.
11445 (init_lineno): Add storage parameter.
11446 (free_linetab, free_linetab_cleanup): Remove.
11447
11448 2019-03-06 Pedro Alves <palves@redhat.com>
11449
11450 * linux-fork.c (fork_info::clobber_regs): Delete.
11451 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11452 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11453 comment. Adjust.
11454 (scoped_switch_fork_info::scoped_switch_fork_info)
11455 (checkpoint_command, linux_fork_context): Adjust
11456 fork_save_infrun_state calls.
11457
11458 2019-03-06 Pedro Alves <palves@redhat.com>
11459
11460 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11461 (inf_has_multiple_threads): Return 'bool' and rewrite using
11462 inferior_info::threads().
11463
11464 2019-03-06 Pedro Alves <palves@redhat.com>
11465
11466 * linux-fork.c: Include <list>.
11467 (fork_list): Now a std::list instance.
11468 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11469 (forks_exist_p, find_last_fork): Adjust.
11470 (new_fork): Delete.
11471 (one_fork_p): New.
11472 (add_fork): Adjust.
11473 (free_fork): Delete, folded into fork_info::~fork_info().
11474 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11475 Adjust.
11476 (init_fork_list): Delete.
11477 (linux_fork_killall, linux_fork_mourn_inferior)
11478 (linux_fork_detach, info_checkpoints_command): Adjust.
11479 (_initialize_linux_fork): No longer call init_fork_list.
11480
11481 2019-03-06 Pedro Alves <palves@redhat.com>
11482
11483 * linux-fork.c (new_fork): New, split out of ...
11484 (add_fork): ... this. Return void. Move "first fork" special
11485 case from here, to ...
11486 (checkpoint_command): ... here.
11487 * linux-linux.h (add_fork): Return void.
11488
11489 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11490
11491 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11492
11493 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11494 Chris January <chris.january@arm.com>
11495 David Lecomber <david.lecomber@arm.com>
11496
11497 * f-exp.y: New token, UNOP_INTRINSIC.
11498 (exp): New pattern using UNOP_INTRINSIC token.
11499 (f77_keywords): Add 'abs' keyword.
11500 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11501 (value_from_host_double): New function.
11502 (evaluate_subexp_f): Support UNOP_ABS.
11503
11504 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11505
11506 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11507 types.
11508
11509 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11510
11511 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11512 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11513 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11514
11515 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11516
11517 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11518
11519 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11520 Chris January <chris.january@arm.com>
11521
11522 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11523 * f-exp.y: Define 'KIND' token.
11524 (exp): New pattern for KIND expressions.
11525 (ptype): Handle types with a kind extension.
11526 (direct_abs_decl): Extend to spot kind extensions.
11527 (f77_keywords): Add 'kind' to the list.
11528 (push_kind_type): New function.
11529 (convert_to_kind_type): New function.
11530 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11531 * parse.c (operator_length_standard): Likewise.
11532 * parser-defs.h (enum type_pieces): Add tp_kind.
11533 * std-operator.def: Add UNOP_KIND.
11534
11535 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11536
11537 * f-exp.y (f_parse): Set yydebug.
11538
11539 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11540
11541 * f-lang.c (evaluate_subexp_f): New function.
11542 (exp_descriptor_f): New global.
11543 (f_language_defn): Use exp_descriptor_f instead of
11544 exp_descriptor_standard.
11545
11546 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11547
11548 * f-exp.y (struct token): Add comments.
11549 (dot_ops): Remove uppercase versions and the end marker.
11550 (f77_keywords): Likewise.
11551 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11552 entries in the dot_ops array are case insensitive, and use
11553 strncasecmp to compare strings. Also some whitespace cleanup in
11554 this area. Similar for the f77_keywords array, except entries in
11555 this list might be case sensitive.
11556
11557 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11558
11559 * f-exp.y (struct f77_boolean_val): Add comments.
11560 (boolean_values): Remove uppercase versions, and end marker.
11561 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11562 and use strncasecmp to achieve case insensitivity. Additionally,
11563 perform whitespace cleanup around this code.
11564
11565 2019-03-06 Tom Tromey <tromey@adacore.com>
11566
11567 * remote-sim.c (gdbsim_target_open): Use result of
11568 gdb_argv::release.
11569
11570 2019-03-06 Richard Bunt <richard.bunt@arm.com>
11571 Dirk Schubert <dirk.schubert@arm.com>
11572 Chris January <chris.january@arm.com>
11573
11574 * eval.c (evaluate_subexp_standard): Call Fortran argument
11575 wrapping logic.
11576 * f-lang.c (struct value): A value which can be passed into a
11577 Fortran function call.
11578 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11579 where appropriate.
11580 (struct type): Value ready for a Fortran function call.
11581 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11582 is needed.
11583 * f-lang.h (fortran_argument_convert): Declaration.
11584 (fortran_preserve_arg_pointer): Declaration.
11585 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11586
11587 2019-03-05 Tom Tromey <tromey@adacore.com>
11588
11589 * python/py-prettyprint.c (print_string_repr): Remove #if.
11590 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11591
11592 2019-03-05 Tom Tromey <tromey@adacore.com>
11593
11594 * target.c (the_dummy_target): Move later. Change type to
11595 "dummy_target".
11596 (initialize_targets): Don't initialize the_dummy_target.
11597
11598 2019-03-05 Tom Tromey <tromey@adacore.com>
11599
11600 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11601 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11602
11603 2019-03-05 Tom Tromey <tromey@adacore.com>
11604
11605 * windows-nat.c (windows_nat_target::attach)
11606 (windows_nat_target::detach): Don't call gdb_flush.
11607 * valprint.c (generic_val_print, val_print, val_print_string):
11608 Don't call gdb_flush.
11609 * utils.c (defaulted_query): Don't call gdb_flush.
11610 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11611 * target.c (target_announce_detach): Don't call gdb_flush.
11612 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11613 * remote.c (extended_remote_target::attach): Don't call
11614 gdb_flush.
11615 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11616 * printcmd.c (do_examine): Don't call gdb_flush.
11617 (info_display_command): Don't call gdb_flush.
11618 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11619 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11620 * memattr.c (info_mem_command): Don't call gdb_flush.
11621 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11622 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11623 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11624 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11625 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11626 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11627 (gnu_nat_target::detach): Don't call gdb_flush.
11628 * f-valprint.c (f_val_print): Don't call gdb_flush.
11629 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11630 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11631 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11632 gdb_flush.
11633 * c-valprint.c (c_val_print): Don't call gdb_flush.
11634 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11635
11636 2019-03-05 Tom Tromey <tromey@adacore.com>
11637
11638 * varobj.c (update_dynamic_varobj_children): Update.
11639 (install_default_visualizer): Use reset, not release.
11640 * value.c (set_internalvar): Update.
11641 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11642 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11643 ATTRIBUTE_UNUSED_RESULT.
11644
11645 2019-03-05 Tom Tromey <tromey@adacore.com>
11646
11647 * remote.c (class scoped_remote_fd) <release>: Add
11648 ATTRIBUTE_UNUSED_RESULT.
11649
11650 2019-03-05 Tom Tromey <tromey@adacore.com>
11651
11652 * macroexp.c (struct macro_buffer) <release>: Add
11653 ATTRIBUTE_UNUSED_RESULT.
11654
11655 2019-03-05 Tom Tromey <tromey@adacore.com>
11656
11657 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11658 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11659 ATTRIBUTE_UNUSED_RESULT.
11660
11661 2019-03-05 Tom Tromey <tromey@adacore.com>
11662
11663 * common/scoped_fd.h (class scoped_fd) <release>: Add
11664 ATTRIBUTE_UNUSED_RESULT.
11665
11666 2019-03-05 Tom Tromey <tromey@adacore.com>
11667
11668 * parser-defs.h (struct parser_state) <release>: Add
11669 ATTRIBUTE_UNUSED_RESULT.
11670
11671 2019-03-05 Tom Tromey <tromey@adacore.com>
11672
11673 * utils.h (class gdb_argv) <release>: Add
11674 ATTRIBUTE_UNUSED_RESULT.
11675 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11676
11677 2019-03-02 Eli Zaretskii <eliz@gnu.org>
11678
11679 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11680 for-loop range, to avoid compiler warnings.
11681
11682 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11683 avoid compiler warnings about unused variables.
11684
11685 * NEWS: Mention end of support for native debugging on MS-Windows
11686 before XP.
11687
11688 PR gdb/24292
11689 * common/netstuff.c:
11690 * gdbserver/gdbreplay.c
11691 * gdbserver/remote-utils.c:
11692 * ser-tcp.c:
11693 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11694 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11695 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11696 'getaddrinfo' and 'freeaddrinfo' were not available before
11697 Windows XP, and mingw.org's MinGW headers by default define
11698 _WIN32_WINNT to 0x500.
11699
11700 2019-03-01 Gary Benson <gbenson@redhat.com>
11701
11702 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11703
11704 2019-02-28 Brian Vandenberg <phantall@gmail.com>
11705 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11706
11707 PR gdb/8527
11708 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11709 set_sigint_trap, clear_sigint_trap.
11710
11711 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11712
11713 * target.c (target_detach): Clear the regcache and the
11714 frame cache.
11715
11716 2019-02-27 Pedro Alves <palves@redhat.com>
11717
11718 * utils.c (set_screen_size): When we cap the height/width sizes,
11719 tweak the corresponding command variable to show "unlimited":
11720
11721 2019-02-27 Saagar Jha <saagar@saagarjha.com>
11722 Pedro Alves <palves@redhat.com>
11723
11724 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11725 before calling rl_set_screen_size.
11726
11727 2019-02-27 Tom Tromey <tromey@adacore.com>
11728
11729 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11730 define.
11731 * python/py-value.c: Remove Python 2.4 workaround.
11732 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11733 workaround.
11734 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11735 Python 2.4 workaround.
11736 * python/python-internal.h: Remove Python 2.4 comment.
11737 (Py_ssize_t): Don't define.
11738 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11739 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11740 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11741 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11742 * python/python.c (do_start_initialization): Remove Python 2.4
11743 workaround.
11744 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11745 (print_children): Remove Python 2.4 workaround.
11746 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11747 workaround.
11748 (CHARBUFFERPROC_NAME): Remove.
11749 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11750 Python 2.4 workaround.
11751
11752 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11753
11754 * NEWS: Note minimum Python version.
11755
11756 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11757
11758 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11759 code from these functions. Remove corresponding ifdefs. Use
11760 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11761 Remove gotos and target of gotos.
11762 (infpy_search_memory): Likewise.
11763
11764 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11765
11766 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11767 (hppa_gdbarch_init): Don't register deleted functions with
11768 gdbarch.
11769
11770 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11771
11772 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11773 (h8300_unwind_sp): Delete.
11774 (h8300_dummy_id): Delete.
11775 (h8300_gdbarch_init): Don't register deleted functions with
11776 gdbarch.
11777
11778 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11779
11780 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11781 (ft32_unwind_pc): Delete.
11782 (ft32_unwind_sp): Delete.
11783 (ft32_gdbarch_init): Don't register deleted functions with
11784 gdbarch.
11785
11786 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11787
11788 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11789 (frv_unwind_pc): Delete.
11790 (frv_unwind_sp): Delete.
11791 (frv_gdbarch_init): Don't register deleted functions with
11792 gdbarch.
11793
11794 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11795
11796 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11797 (riscv_unwind_pc): Delete.
11798 (riscv_unwind_sp): Delete.
11799 (riscv_gdbarch_init): Don't register deleted functions with
11800 gdbarch.
11801
11802 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11803
11804 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11805 (csky_unwind_pc): Delete.
11806 (csky_unwind_sp): Delete.
11807 (csky_gdbarch_init): Don't register deleted functions with
11808 gdbarch.
11809
11810 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11811
11812 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11813 (cris_unwind_pc): Delete.
11814 (cris_unwind_sp): Delete.
11815 (cris_gdbarch_init): Don't register deleted functions with
11816 gdbarch.
11817
11818 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11819
11820 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11821 (bfin_unwind_pc): Delete.
11822 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11823
11824 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11825
11826 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11827 (arm_unwind_pc): Delete.
11828 (arm_unwind_sp): Delete.
11829 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11830
11831 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11832
11833 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11834 (arc_unwind_pc): Delete.
11835 (arc_unwind_sp): Delete.
11836 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11837
11838 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11839
11840 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11841 (alpha_unwind_pc): Delete.
11842 (alpha_gdbarch_init): Don't register deleted functions with
11843 gdbarch.
11844
11845 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11846
11847 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11848 (aarch64_unwind_pc): Delete.
11849 (aarch64_unwind_sp): Delete.
11850 (aarch64_gdbarch_init): Don't register deleted functions with
11851 gdbarch.
11852
11853 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11854
11855 * gdbtypes.c (type_align): Don't consider static members when
11856 computing structure alignment.
11857
11858 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11859
11860 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11861 return 0 for other types.
11862 * arch-utils.c (default_type_align): Always return 0.
11863 * gdbarch.h: Regenerate.
11864 * gdbarch.sh (type_align): Extend comment.
11865 * gdbtypes.c (type_align): Add additional comments, always call
11866 gdbarch_type_align before applying the default rules.
11867 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11868 generic code will then apply a suitable default.
11869 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11870 types, return 0 for other types.
11871
11872 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11873
11874 * NEWS: Create a new section for the next release branch.
11875 Rename the section of the current branch, now that it has
11876 been cut.
11877
11878 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11879
11880 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11881 * version.in: Bump version to 8.3.50.DATE-git.
11882
11883 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
11884
11885 * aix-thread.c (ptid_cmp): Remove unused variable.
11886 (get_signaled_thread): Likewise.
11887 (store_regs_user_thread): Likewise.
11888 (store_regs_kernel_thread): Likewise.
11889 (fetch_regs_kernel_thread): Remove shadowed variable.
11890
11891 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11892
11893 * features/riscv/32bit-cpu.xml: Add register numbers.
11894 * features/riscv/32bit-fpu.c: Regenerate.
11895 * features/riscv/32bit-fpu.xml: Add register numbers.
11896 * features/riscv/64bit-cpu.xml: Add register numbers.
11897 * features/riscv/64bit-fpu.c: Regenerate.
11898 * features/riscv/64bit-fpu.xml: Add register numbers.
11899
11900 2019-02-26 Kevin Buettner <kevinb@redhat.com>
11901
11902 * NEWS: Mention two argument form of gdb.Value constructor.
11903 * python/py-value.c (convert_buffer_and_type_to_value): New
11904 function.
11905 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11906 Add support for handling an optional second argument. Call
11907 convert_buffer_and_type_to_value as appropriate.
11908 * python/python-internal.h (Py_buffer_deleter): New struct.
11909 (Py_buffer_up): New typedef.
11910
11911 2019-02-25 John Baldwin <jhb@FreeBSD.org>
11912
11913 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11914 instead of releasing ownership.
11915
11916 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
11917
11918 * dwarf2read.c (open_and_init_dwp_file): Call
11919 elf_numsections instead of bfd_count_sections to initialize
11920 dwp_file->num_sections.
11921
11922 2019-02-25 Tom Tromey <tromey@adacore.com>
11923
11924 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11925
11926 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11927
11928 * gcore.in: Add '--readnever' option when invoking GDB.
11929
11930 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11931
11932 * MAINTAINERS: Update my email address.
11933
11934 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11935
11936 * build-id.c (build_id_to_debug_bfd_1): New function.
11937 (build_id_to_debug_bfd): Look for separate debug file in
11938 sysroot.
11939
11940 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11941
11942 * gdbarch.sh: Update the copyright year range that is placed into
11943 generated files.
11944
11945 2019-02-22 Keith Seitz <keiths@redhat.com>
11946
11947 PR symtab/23853
11948 * linespec.c (create_sals_line_offset): Search for the default
11949 symtab's filename instead of its fullname.
11950
11951 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11952
11953 * NEWS: Update style defaults.
11954
11955 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11956
11957 * main.c (captured_main_1): Disable styling in batch mode.
11958
11959 2019-02-20 Tom Tromey <tom@tromey.com>
11960
11961 * symtab.c (symtab_symbol_info): Fix typos.
11962
11963 2019-02-20 Tom Tromey <tromey@adacore.com>
11964
11965 * findcmd.c (_initialize_mem_search): Use upper case for
11966 metasyntactic variables.
11967
11968 2019-02-20 Alan Hayward <alan.hayward@arm.com>
11969
11970 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11971 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11972
11973 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11974
11975 * top.h (source_file_name): Change to std::string.
11976 * top.c (source_file_name): Likewise.
11977 (command_line_input): Adjust.
11978 * cli/cli-script.c (script_from_file): Adjust.
11979
11980 2019-02-19 Tom Tromey <tromey@adacore.com>
11981
11982 * ravenscar-thread.c
11983 (ravenscar_thread_target::update_thread_list): Don't call
11984 ada_build_task_list.
11985 * ada-lang.h (ada_build_task_list): Don't declare.
11986 * ada-tasks.c (struct ada_tasks_inferior_data)
11987 <task_list_valid_p>: Now bool.
11988 (read_known_tasks, ada_task_list_changed)
11989 (ada_tasks_invalidate_inferior_data): Update.
11990 (read_known_tasks_array): Return bool.
11991 (read_known_tasks_list): Likewise.
11992 (read_known_tasks): Return void.
11993 (ada_build_task_list): Now static.
11994
11995 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11996
11997 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11998 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11999
12000 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12001
12002 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12003 variant for ada_tasks_pspace_data_handle and
12004 ada_tasks_inferior_data_handle.
12005 (ada_tasks_pspace_data_cleanup): New function.
12006 (ada_tasks_inferior_data_cleanup): New function.
12007
12008 2019-02-17 Tom Tromey <tom@tromey.com>
12009
12010 * macrotab.h (macro_source_fullname): Return a std::string.
12011 * macrotab.c (macro_include, check_for_redefinition)
12012 (macro_undef, macro_lookup_definition, foreach_macro)
12013 (foreach_macro_in_scope): Update.
12014 (macro_source_fullname): Return a std::string.
12015 * macrocmd.c (show_pp_source_pos): Update.
12016
12017 2019-02-17 Tom Tromey <tom@tromey.com>
12018
12019 * macrocmd.c (show_pp_source_pos): Style the file names.
12020
12021 2019-02-17 Tom Tromey <tom@tromey.com>
12022
12023 PR tui/24197:
12024 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12025
12026 2019-02-17 Tom Tromey <tom@tromey.com>
12027
12028 * ada-lang.c (user_select_syms): Use filtered printing.
12029 * utils.c (wrap_style): New global.
12030 (desired_style): Remove.
12031 (emit_style_escape): Add stream parameter.
12032 (set_output_style, reset_terminal_style, prompt_for_continue):
12033 Update.
12034 (flush_wrap_buffer): Only flush gdb_stdout.
12035 (wrap_here): Set wrap_style.
12036 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12037 treat escape sequences as a character. Change when wrap buffer is
12038 flushed.
12039 (fputs_styled): Do not set the output style when the default is
12040 requested.
12041 * ui-style.h (struct ui_file_style) <is_default>: New method.
12042 * source.c (print_source_lines_base): Emit escape sequences in one
12043 piece.
12044
12045 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12046
12047 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12048 integers and enumeration types.
12049
12050 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12051
12052 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12053 instead of lookup_symbol_in_language
12054 (do_exact_match): New function.
12055 (ada_get_symbol_name_matcher): Return do_exact_match when
12056 doing a verbatim match.
12057
12058 2019-02-15 Tom Tromey <tromey@adacore.com>
12059
12060 * ravenscar-thread.c (ravenscar_thread_target::resume)
12061 (ravenscar_thread_target::wait): Special case wildcard requests.
12062
12063 2019-02-15 Tom Tromey <tromey@adacore.com>
12064
12065 * ravenscar-thread.c (base_ptid): Remove.
12066 (struct ravenscar_thread_target) <close>: New method.
12067 <m_base_ptid>: New member.
12068 <update_inferior_ptid, active_task, task_is_currently_active,
12069 runtime_initialized>: Declare methods.
12070 <ravenscar_thread_target>: Add constructor.
12071 (ravenscar_thread_target::task_is_currently_active)
12072 (ravenscar_thread_target::update_inferior_ptid)
12073 (ravenscar_runtime_initialized): Rename. Now methods.
12074 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12075 (ravenscar_thread_target::update_thread_list): Update.
12076 (ravenscar_thread_target::active_task): Now method.
12077 (ravenscar_thread_target::store_registers)
12078 (ravenscar_thread_target::prepare_to_store)
12079 (ravenscar_thread_target::prepare_to_store)
12080 (ravenscar_thread_target::mourn_inferior): Update.
12081 (ravenscar_inferior_created): Use "new" to create target.
12082 (ravenscar_thread_target::get_ada_task_ptid): Update.
12083 (_initialize_ravenscar): Don't initialize base_ptid.
12084 (ravenscar_ops): Remove global.
12085
12086 2019-02-15 Tom Tromey <tromey@adacore.com>
12087
12088 * target.h (push_target): Declare new overload.
12089 * target.c (push_target): New overload, taking an rvalue reference.
12090 * remote.c (remote_target::open_1): Use push_target overload.
12091 * corelow.c (core_target_open): Use push_target overload.
12092
12093 2019-02-15 Tom Tromey <tromey@adacore.com>
12094
12095 * ravenscar-thread.c (is_ravenscar_task)
12096 (ravenscar_task_is_currently_active): Return bool.
12097 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12098 (_initialize_ravenscar): Remove "(void)".
12099 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12100 Return bool.
12101
12102 2019-02-15 Tom Tromey <tromey@adacore.com>
12103
12104 * ravenscar-thread.c (ravenscar_runtime_initializer)
12105 (has_ravenscar_runtime, get_running_thread_id)
12106 (ravenscar_thread_target::resume): Fix indentation.
12107
12108 2019-02-15 Tom Tromey <tromey@adacore.com>
12109
12110 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12111 from ravenscar_arch_ops.
12112 (sparc_ravenscar_ops::fetch_registers)
12113 (sparc_ravenscar_ops::store_registers): Now methods.
12114 (sparc_ravenscar_prepare_to_store): Remove.
12115 (sparc_ravenscar_ops): Redefine.
12116 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12117 methods and destructor. Remove members.
12118 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12119 (ravenscar_thread_target::store_registers)
12120 (ravenscar_thread_target::prepare_to_store): Update.
12121 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12122 Remove.
12123 (struct ppc_ravenscar_powerpc_ops): Derive from
12124 ravenscar_arch_ops.
12125 (ppc_ravenscar_powerpc_ops::fetch_registers)
12126 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12127 (ppc_ravenscar_powerpc_ops): Redefine.
12128 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12129 (ppc_ravenscar_e500_ops::fetch_registers)
12130 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12131 (ppc_ravenscar_e500_ops): Redefine.
12132 * aarch64-ravenscar-thread.c
12133 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12134 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12135 (aarch64_ravenscar_fetch_registers)
12136 (aarch64_ravenscar_store_registers): Now methods.
12137 (aarch64_ravenscar_ops): Redefine.
12138
12139 2019-02-15 Tom Tromey <tromey@adacore.com>
12140
12141 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12142 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12143 (ravenscar_thread_target::stopped_by_watchpoint)
12144 (ravenscar_thread_target::stopped_data_address)
12145 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12146
12147 2019-02-15 Tom Tromey <tromey@adacore.com>
12148
12149 * ravenscar-thread.c: Fix some typos.
12150
12151 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12152 Tom Tromey <tromey@adacore.com>
12153
12154 * ada-lang.c (ada_exception_sal): Change addr_string to a
12155 std::string.
12156 (create_ada_exception_catchpoint): Update.
12157
12158 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12159 Tom Tromey <tromey@adacore.com>
12160
12161 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12162 (bp_location_ops): Remove.
12163 (base_breakpoint_allocate_location): Update.
12164 (free_bp_location): Update.
12165 * ada-lang.c (class ada_catchpoint_location)
12166 <ada_catchpoint_location>: Remove ops parameter.
12167 (ada_catchpoint_location_dtor): Remove.
12168 (ada_catchpoint_location_ops): Remove.
12169 (allocate_location_exception): Update.
12170 * breakpoint.h (struct bp_location_ops): Remove.
12171 (class bp_location) <bp_location>: Remove bp_location_ops
12172 parameter.
12173 <~bp_location>: Add destructor.
12174 <ops>: Remove.
12175
12176 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12177 Pedro Alves <palves@redhat.com>
12178
12179 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12180 'PATH_MAX'.
12181
12182 2019-02-14 David Michael <fedora.dm0@gmail.com>
12183 Samuel Thibault <samuel.thibault@gnu.org>
12184 Thomas Schwinge <thomas@codesourcery.com>
12185
12186 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12187 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12188
12189 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12190
12191 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12192 (check_empty): Use "const char *".
12193
12194 * gnu-nat.c (gnu_nat_target::detach): Instead of
12195 'detach_inferior (pid)' call
12196 'detach_inferior (find_inferior_pid (pid))'.
12197
12198 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12199 'nat/fork-inferior.o'.
12200 * gnu-nat.c: #include "nat/fork-inferior.h".
12201
12202 * gnu-nat.c (gnu_nat_target::detach): Instead of
12203 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12204 * gnu-nat.h: #include "inf-child.h".
12205 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12206 'i386_gnu_nat_target::fetch_registers'.
12207 (gnu_store_registers): Rename/move to
12208 'i386_gnu_nat_target::store_registers'.
12209
12210 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12211 * gnu-nat.h (mach_thread_info): New function.
12212 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12213
12214 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12215
12216 2019-02-14 Frederic Konrad <konrad@adacore.com>
12217
12218 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12219
12220 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12221
12222 * windows-nat.c (windows_add_thread): Add new parameter
12223 "main_thread_p" with default value set to false. Update
12224 function documentation as well as all callers.
12225 (windows_delete_thread): Likewise.
12226 (fake_create_process): Update call to windows_add_thread.
12227 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12228 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12229 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12230 call to windows_delete_thread.
12231
12232 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12233
12234 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12235
12236 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12237
12238 * symfile.c (find_separate_debug_file): Use canonical path of
12239 sysroot with child_path instead of gdb_sysroot if it is valid.
12240
12241 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12242
12243 * symfile.c (find_separate_debug_file): Use child_path to
12244 determine if an object file is under a sysroot.
12245
12246 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12247
12248 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12249 unittests/child-path-selftests.c.
12250 * common/pathstuff.c (child_path): New function.
12251 * common/pathstuff.h (child_path): New prototype.
12252 * unittests/child-path-selftests.c: New file.
12253
12254 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12255
12256 * symfile.c (find_separate_debug_file): Look for separate debug
12257 files in debug directories under the sysroot.
12258
12259 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12260
12261 * symtab.h (struct minimal_symbol data_p): New const method.
12262 (struct minimal_symbol text_p): Likewise.
12263 * symtab.c (output_source_filename): Use file name style
12264 to print file name.
12265 (print_symbol_info): Likewise.
12266 (print_msymbol_info): Use address style to print addresses.
12267 Use function name style to print executable text symbols.
12268 (expand_symtab_containing_pc): Use data_p.
12269 (find_pc_sect_compunit_symtab): Likewise.
12270
12271 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12272
12273 * breakpoint.c (describe_other_breakpoints): Use address style
12274 to print addresses.
12275 (say_where): Likewise.
12276
12277 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12278
12279 * ada-typeprint.c (print_func_type): Print function name
12280 style to print function name.
12281 * c-typeprint.c (c_print_type_1): Likewise.
12282
12283 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12284
12285 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12286 for execve.
12287
12288 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12289
12290 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12291 type_stack.
12292
12293 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12294
12295 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12296 TYPE_CODE_REF types.
12297
12298 2019-02-08 Jim Wilson <jimw@sifive.com>
12299
12300 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12301 (riscv_linux_fregset): New.
12302 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12303
12304 2019-02-07 Tom Tromey <tom@tromey.com>
12305
12306 * thread.c (thread_cancel_execution_command): Update.
12307 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12308 methods.
12309 (struct thread_fsm_ops): Remove.
12310 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12311 (thread_fsm_should_stop, thread_fsm_return_value)
12312 (thread_fsm_set_finished, thread_fsm_finished_p)
12313 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12314 Don't declare.
12315 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12316 * infrun.c (clear_proceed_status_thread)
12317 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12318 (print_stop_event): Update.
12319 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12320 Add constructor.
12321 (step_command_fsm_ops): Remove.
12322 (new_step_command_fsm): Remove.
12323 (step_1): Update.
12324 (step_command_fsm::should_stop): Rename from
12325 step_command_fsm_should_stop.
12326 (step_command_fsm::clean_up): Rename from
12327 step_command_fsm_clean_up.
12328 (step_command_fsm::do_async_reply_reason): Rename from
12329 step_command_fsm_async_reply_reason.
12330 (struct until_next_fsm): Inherit from thread_fsm. Add
12331 constructor.
12332 (until_next_fsm_ops): Remove.
12333 (new_until_next_fsm): Remove.
12334 (until_next_fsm::should_stop): Rename from
12335 until_next_fsm_should_stop.
12336 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12337 (until_next_fsm::do_async_reply_reason): Rename from
12338 until_next_fsm_async_reply_reason.
12339 (struct finish_command_fsm): Inherit from thread_fsm. Add
12340 constructor. Change type of breakpoint.
12341 (finish_command_fsm_ops): Remove.
12342 (new_finish_command_fsm): Remove.
12343 (finish_command_fsm::should_stop): Rename from
12344 finish_command_fsm_should_stop.
12345 (finish_command_fsm::clean_up): Rename from
12346 finish_command_fsm_clean_up.
12347 (finish_command_fsm::return_value): Rename from
12348 finish_command_fsm_return_value.
12349 (finish_command_fsm::do_async_reply_reason): Rename from
12350 finish_command_fsm_async_reply_reason.
12351 (finish_command): Update.
12352 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12353 Add constructor.
12354 (call_thread_fsm_ops): Remove.
12355 (call_thread_fsm::call_thread_fsm): Rename from
12356 new_call_thread_fsm.
12357 (call_thread_fsm::should_stop): Rename from
12358 call_thread_fsm_should_stop.
12359 (call_thread_fsm::should_notify_stop): Rename from
12360 call_thread_fsm_should_notify_stop.
12361 (run_inferior_call, call_function_by_hand_dummy): Update.
12362 * cli/cli-interp.c (should_print_stop_to_console): Update.
12363 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12364 Add constructor. Change type of location_breakpoint,
12365 caller_breakpoint.
12366 (until_break_fsm_ops): Remove.
12367 (new_until_break_fsm): Remove.
12368 (until_break_fsm::should_stop): Rename from
12369 until_break_fsm_should_stop.
12370 (until_break_fsm::clean_up): Rename from
12371 until_break_fsm_clean_up.
12372 (until_break_fsm::do_async_reply_reason): Rename from
12373 until_break_fsm_async_reply_reason.
12374 (until_break_command): Update.
12375 * thread-fsm.c: Remove.
12376 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12377
12378 2019-02-07 Tom Tromey <tom@tromey.com>
12379
12380 * yy-remap.h: Add include guard.
12381 * xtensa-tdep.h: Add include guard.
12382 * xcoffread.h: Rename include guard.
12383 * varobj-iter.h: Add include guard.
12384 * tui/tui.h: Rename include guard.
12385 * tui/tui-winsource.h: Rename include guard.
12386 * tui/tui-wingeneral.h: Rename include guard.
12387 * tui/tui-windata.h: Rename include guard.
12388 * tui/tui-win.h: Rename include guard.
12389 * tui/tui-stack.h: Rename include guard.
12390 * tui/tui-source.h: Rename include guard.
12391 * tui/tui-regs.h: Rename include guard.
12392 * tui/tui-out.h: Rename include guard.
12393 * tui/tui-layout.h: Rename include guard.
12394 * tui/tui-io.h: Rename include guard.
12395 * tui/tui-hooks.h: Rename include guard.
12396 * tui/tui-file.h: Rename include guard.
12397 * tui/tui-disasm.h: Rename include guard.
12398 * tui/tui-data.h: Rename include guard.
12399 * tui/tui-command.h: Rename include guard.
12400 * tic6x-tdep.h: Add include guard.
12401 * target/waitstatus.h: Rename include guard.
12402 * target/wait.h: Rename include guard.
12403 * target/target.h: Rename include guard.
12404 * target/resume.h: Rename include guard.
12405 * target-float.h: Rename include guard.
12406 * stabsread.h: Add include guard.
12407 * rs6000-tdep.h: Add include guard.
12408 * riscv-fbsd-tdep.h: Add include guard.
12409 * regformats/regdef.h: Rename include guard.
12410 * record.h: Rename include guard.
12411 * python/python.h: Rename include guard.
12412 * python/python-internal.h: Rename include guard.
12413 * python/py-stopevent.h: Rename include guard.
12414 * python/py-ref.h: Rename include guard.
12415 * python/py-record.h: Rename include guard.
12416 * python/py-record-full.h: Rename include guard.
12417 * python/py-record-btrace.h: Rename include guard.
12418 * python/py-instruction.h: Rename include guard.
12419 * python/py-events.h: Rename include guard.
12420 * python/py-event.h: Rename include guard.
12421 * procfs.h: Add include guard.
12422 * proc-utils.h: Add include guard.
12423 * p-lang.h: Add include guard.
12424 * or1k-tdep.h: Rename include guard.
12425 * observable.h: Rename include guard.
12426 * nto-tdep.h: Rename include guard.
12427 * nat/x86-linux.h: Rename include guard.
12428 * nat/x86-linux-dregs.h: Rename include guard.
12429 * nat/x86-gcc-cpuid.h: Add include guard.
12430 * nat/x86-dregs.h: Rename include guard.
12431 * nat/x86-cpuid.h: Rename include guard.
12432 * nat/ppc-linux.h: Rename include guard.
12433 * nat/mips-linux-watch.h: Rename include guard.
12434 * nat/linux-waitpid.h: Rename include guard.
12435 * nat/linux-ptrace.h: Rename include guard.
12436 * nat/linux-procfs.h: Rename include guard.
12437 * nat/linux-osdata.h: Rename include guard.
12438 * nat/linux-nat.h: Rename include guard.
12439 * nat/linux-namespaces.h: Rename include guard.
12440 * nat/linux-btrace.h: Rename include guard.
12441 * nat/glibc_thread_db.h: Rename include guard.
12442 * nat/gdb_thread_db.h: Rename include guard.
12443 * nat/gdb_ptrace.h: Rename include guard.
12444 * nat/fork-inferior.h: Rename include guard.
12445 * nat/amd64-linux-siginfo.h: Rename include guard.
12446 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12447 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12448 * nat/aarch64-linux.h: Rename include guard.
12449 * nat/aarch64-linux-hw-point.h: Rename include guard.
12450 * mn10300-tdep.h: Add include guard.
12451 * mips-linux-tdep.h: Add include guard.
12452 * mi/mi-parse.h: Rename include guard.
12453 * mi/mi-out.h: Rename include guard.
12454 * mi/mi-main.h: Rename include guard.
12455 * mi/mi-interp.h: Rename include guard.
12456 * mi/mi-getopt.h: Rename include guard.
12457 * mi/mi-console.h: Rename include guard.
12458 * mi/mi-common.h: Rename include guard.
12459 * mi/mi-cmds.h: Rename include guard.
12460 * mi/mi-cmd-break.h: Rename include guard.
12461 * m2-lang.h: Add include guard.
12462 * location.h: Rename include guard.
12463 * linux-record.h: Rename include guard.
12464 * linux-nat.h: Add include guard.
12465 * linux-fork.h: Add include guard.
12466 * i386-darwin-tdep.h: Rename include guard.
12467 * hppa-linux-offsets.h: Add include guard.
12468 * guile/guile.h: Rename include guard.
12469 * guile/guile-internal.h: Rename include guard.
12470 * gnu-nat.h: Rename include guard.
12471 * gdb-stabs.h: Rename include guard.
12472 * frv-tdep.h: Add include guard.
12473 * f-lang.h: Add include guard.
12474 * event-loop.h: Add include guard.
12475 * darwin-nat.h: Rename include guard.
12476 * cp-abi.h: Rename include guard.
12477 * config/sparc/nm-sol2.h: Rename include guard.
12478 * config/nm-nto.h: Rename include guard.
12479 * config/nm-linux.h: Add include guard.
12480 * config/i386/nm-i386gnu.h: Rename include guard.
12481 * config/djgpp/nl_types.h: Rename include guard.
12482 * config/djgpp/langinfo.h: Rename include guard.
12483 * compile/gcc-cp-plugin.h: Add include guard.
12484 * compile/gcc-c-plugin.h: Add include guard.
12485 * compile/compile.h: Rename include guard.
12486 * compile/compile-object-run.h: Rename include guard.
12487 * compile/compile-object-load.h: Rename include guard.
12488 * compile/compile-internal.h: Rename include guard.
12489 * compile/compile-cplus.h: Rename include guard.
12490 * compile/compile-c.h: Rename include guard.
12491 * common/xml-utils.h: Rename include guard.
12492 * common/x86-xstate.h: Rename include guard.
12493 * common/version.h: Rename include guard.
12494 * common/vec.h: Rename include guard.
12495 * common/tdesc.h: Rename include guard.
12496 * common/selftest.h: Rename include guard.
12497 * common/scoped_restore.h: Rename include guard.
12498 * common/scoped_mmap.h: Rename include guard.
12499 * common/scoped_fd.h: Rename include guard.
12500 * common/safe-iterator.h: Rename include guard.
12501 * common/run-time-clock.h: Rename include guard.
12502 * common/refcounted-object.h: Rename include guard.
12503 * common/queue.h: Rename include guard.
12504 * common/ptid.h: Rename include guard.
12505 * common/print-utils.h: Rename include guard.
12506 * common/preprocessor.h: Rename include guard.
12507 * common/pathstuff.h: Rename include guard.
12508 * common/observable.h: Rename include guard.
12509 * common/netstuff.h: Rename include guard.
12510 * common/job-control.h: Rename include guard.
12511 * common/host-defs.h: Rename include guard.
12512 * common/gdb_wait.h: Rename include guard.
12513 * common/gdb_vecs.h: Rename include guard.
12514 * common/gdb_unlinker.h: Rename include guard.
12515 * common/gdb_unique_ptr.h: Rename include guard.
12516 * common/gdb_tilde_expand.h: Rename include guard.
12517 * common/gdb_sys_time.h: Rename include guard.
12518 * common/gdb_string_view.h: Rename include guard.
12519 * common/gdb_splay_tree.h: Rename include guard.
12520 * common/gdb_setjmp.h: Rename include guard.
12521 * common/gdb_ref_ptr.h: Rename include guard.
12522 * common/gdb_optional.h: Rename include guard.
12523 * common/gdb_locale.h: Rename include guard.
12524 * common/gdb_assert.h: Rename include guard.
12525 * common/filtered-iterator.h: Rename include guard.
12526 * common/filestuff.h: Rename include guard.
12527 * common/fileio.h: Rename include guard.
12528 * common/environ.h: Rename include guard.
12529 * common/common-utils.h: Rename include guard.
12530 * common/common-types.h: Rename include guard.
12531 * common/common-regcache.h: Rename include guard.
12532 * common/common-inferior.h: Rename include guard.
12533 * common/common-gdbthread.h: Rename include guard.
12534 * common/common-exceptions.h: Rename include guard.
12535 * common/common-defs.h: Rename include guard.
12536 * common/common-debug.h: Rename include guard.
12537 * common/cleanups.h: Rename include guard.
12538 * common/buffer.h: Rename include guard.
12539 * common/btrace-common.h: Rename include guard.
12540 * common/break-common.h: Rename include guard.
12541 * cli/cli-utils.h: Rename include guard.
12542 * cli/cli-style.h: Rename include guard.
12543 * cli/cli-setshow.h: Rename include guard.
12544 * cli/cli-script.h: Rename include guard.
12545 * cli/cli-interp.h: Rename include guard.
12546 * cli/cli-decode.h: Rename include guard.
12547 * cli/cli-cmds.h: Rename include guard.
12548 * charset-list.h: Add include guard.
12549 * buildsym-legacy.h: Rename include guard.
12550 * bfin-tdep.h: Add include guard.
12551 * ax.h: Rename include guard.
12552 * arm-linux-tdep.h: Add include guard.
12553 * arm-fbsd-tdep.h: Add include guard.
12554 * arch/xtensa.h: Rename include guard.
12555 * arch/tic6x.h: Add include guard.
12556 * arch/i386.h: Add include guard.
12557 * arch/arm.h: Rename include guard.
12558 * arch/arm-linux.h: Rename include guard.
12559 * arch/arm-get-next-pcs.h: Rename include guard.
12560 * arch/amd64.h: Add include guard.
12561 * arch/aarch64-insn.h: Rename include guard.
12562 * arch-utils.h: Rename include guard.
12563 * annotate.h: Add include guard.
12564 * amd64-darwin-tdep.h: Rename include guard.
12565 * aarch64-linux-tdep.h: Add include guard.
12566 * aarch64-fbsd-tdep.h: Add include guard.
12567 * aarch32-linux-nat.h: Add include guard.
12568
12569 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12570
12571 * macrotab.c (macro_define_internal): New function that
12572 factorizes macro_define_object_internal and macro_define_function
12573 code.
12574 (macro_define_object_internal): Use macro_define_internal.
12575 (macro_define_function): Likewise.
12576
12577 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12578
12579 * macrocmd.c (extract_identifier): Return
12580 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12581 callers.
12582
12583 2019-02-06 John Baldwin <jhb@FreeBSD.org>
12584
12585 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12586
12587 2019-02-05 Tom Tromey <tom@tromey.com>
12588
12589 * target.c (target_stack::unpush): Move assertion earlier.
12590
12591 2019-01-30 Tom Tromey <tom@tromey.com>
12592
12593 PR python/23615:
12594 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12595 (gdbpy_parse_and_eval): Likewise.
12596 * python/python-internal.h (gdbpy_allow_threads): New class.
12597
12598 2019-01-28 John Baldwin <jhb@FreeBSD.org>
12599
12600 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12601 (aarch64_fbsd_fpregmap): Move earlier.
12602 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12603 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12604 instead of individual calls to trad_frame_set_reg_addr.
12605 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12606 earlier.
12607 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12608 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12609 instead of individual calls to trad_frame_set_reg_addr.
12610
12611 2019-01-28 Alan Hayward <alan.hayward@arm.com>
12612
12613 * CONTRIBUTE: Replace contribution list with wiki link.
12614
12615 2019-01-25 Tom Tromey <tom@tromey.com>
12616
12617 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12618
12619 2019-01-25 Tom Tromey <tom@tromey.com>
12620
12621 * xtensa-linux-nat.c: Fix common/ includes.
12622 * xml-support.h: Fix common/ includes.
12623 * xml-support.c: Fix common/ includes.
12624 * x86-linux-nat.c: Fix common/ includes.
12625 * windows-nat.c: Fix common/ includes.
12626 * varobj.h: Fix common/ includes.
12627 * varobj.c: Fix common/ includes.
12628 * value.c: Fix common/ includes.
12629 * valops.c: Fix common/ includes.
12630 * utils.c: Fix common/ includes.
12631 * unittests/xml-utils-selftests.c: Fix common/ includes.
12632 * unittests/utils-selftests.c: Fix common/ includes.
12633 * unittests/unpack-selftests.c: Fix common/ includes.
12634 * unittests/tracepoint-selftests.c: Fix common/ includes.
12635 * unittests/style-selftests.c: Fix common/ includes.
12636 * unittests/string_view-selftests.c: Fix common/ includes.
12637 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12638 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12639 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12640 * unittests/rsp-low-selftests.c: Fix common/ includes.
12641 * unittests/parse-connection-spec-selftests.c: Fix common/
12642 includes.
12643 * unittests/optional-selftests.c: Fix common/ includes.
12644 * unittests/offset-type-selftests.c: Fix common/ includes.
12645 * unittests/observable-selftests.c: Fix common/ includes.
12646 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12647 * unittests/memrange-selftests.c: Fix common/ includes.
12648 * unittests/memory-map-selftests.c: Fix common/ includes.
12649 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12650 * unittests/function-view-selftests.c: Fix common/ includes.
12651 * unittests/environ-selftests.c: Fix common/ includes.
12652 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12653 * unittests/common-utils-selftests.c: Fix common/ includes.
12654 * unittests/cli-utils-selftests.c: Fix common/ includes.
12655 * unittests/array-view-selftests.c: Fix common/ includes.
12656 * ui-file.c: Fix common/ includes.
12657 * tui/tui-io.c: Fix common/ includes.
12658 * tracepoint.h: Fix common/ includes.
12659 * tracepoint.c: Fix common/ includes.
12660 * tracefile-tfile.c: Fix common/ includes.
12661 * top.h: Fix common/ includes.
12662 * top.c: Fix common/ includes.
12663 * thread.c: Fix common/ includes.
12664 * target/waitstatus.h: Fix common/ includes.
12665 * target/waitstatus.c: Fix common/ includes.
12666 * target.h: Fix common/ includes.
12667 * target.c: Fix common/ includes.
12668 * target-memory.c: Fix common/ includes.
12669 * target-descriptions.c: Fix common/ includes.
12670 * symtab.h: Fix common/ includes.
12671 * symfile.c: Fix common/ includes.
12672 * stap-probe.c: Fix common/ includes.
12673 * spu-linux-nat.c: Fix common/ includes.
12674 * sparc-nat.c: Fix common/ includes.
12675 * source.c: Fix common/ includes.
12676 * solib.c: Fix common/ includes.
12677 * solib-target.c: Fix common/ includes.
12678 * ser-unix.c: Fix common/ includes.
12679 * ser-tcp.c: Fix common/ includes.
12680 * ser-pipe.c: Fix common/ includes.
12681 * ser-base.c: Fix common/ includes.
12682 * selftest-arch.c: Fix common/ includes.
12683 * s12z-tdep.c: Fix common/ includes.
12684 * rust-exp.y: Fix common/ includes.
12685 * rs6000-aix-tdep.c: Fix common/ includes.
12686 * riscv-tdep.c: Fix common/ includes.
12687 * remote.c: Fix common/ includes.
12688 * remote-notif.h: Fix common/ includes.
12689 * remote-fileio.h: Fix common/ includes.
12690 * remote-fileio.c: Fix common/ includes.
12691 * regcache.h: Fix common/ includes.
12692 * regcache.c: Fix common/ includes.
12693 * record-btrace.c: Fix common/ includes.
12694 * python/python.c: Fix common/ includes.
12695 * python/py-type.c: Fix common/ includes.
12696 * python/py-inferior.c: Fix common/ includes.
12697 * progspace.h: Fix common/ includes.
12698 * producer.c: Fix common/ includes.
12699 * procfs.c: Fix common/ includes.
12700 * proc-api.c: Fix common/ includes.
12701 * printcmd.c: Fix common/ includes.
12702 * ppc-linux-nat.c: Fix common/ includes.
12703 * parser-defs.h: Fix common/ includes.
12704 * osdata.c: Fix common/ includes.
12705 * obsd-nat.c: Fix common/ includes.
12706 * nat/x86-linux.c: Fix common/ includes.
12707 * nat/x86-linux-dregs.c: Fix common/ includes.
12708 * nat/x86-dregs.h: Fix common/ includes.
12709 * nat/x86-dregs.c: Fix common/ includes.
12710 * nat/ppc-linux.c: Fix common/ includes.
12711 * nat/mips-linux-watch.h: Fix common/ includes.
12712 * nat/mips-linux-watch.c: Fix common/ includes.
12713 * nat/linux-waitpid.c: Fix common/ includes.
12714 * nat/linux-ptrace.h: Fix common/ includes.
12715 * nat/linux-ptrace.c: Fix common/ includes.
12716 * nat/linux-procfs.c: Fix common/ includes.
12717 * nat/linux-personality.c: Fix common/ includes.
12718 * nat/linux-osdata.c: Fix common/ includes.
12719 * nat/linux-namespaces.c: Fix common/ includes.
12720 * nat/linux-btrace.h: Fix common/ includes.
12721 * nat/linux-btrace.c: Fix common/ includes.
12722 * nat/fork-inferior.c: Fix common/ includes.
12723 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12724 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12725 * nat/aarch64-linux.c: Fix common/ includes.
12726 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12727 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12728 * namespace.h: Fix common/ includes.
12729 * mips-linux-tdep.c: Fix common/ includes.
12730 * minsyms.c: Fix common/ includes.
12731 * mi/mi-parse.h: Fix common/ includes.
12732 * mi/mi-main.c: Fix common/ includes.
12733 * mi/mi-cmd-env.c: Fix common/ includes.
12734 * memrange.h: Fix common/ includes.
12735 * memattr.c: Fix common/ includes.
12736 * maint.h: Fix common/ includes.
12737 * maint.c: Fix common/ includes.
12738 * main.c: Fix common/ includes.
12739 * machoread.c: Fix common/ includes.
12740 * location.c: Fix common/ includes.
12741 * linux-thread-db.c: Fix common/ includes.
12742 * linux-nat.c: Fix common/ includes.
12743 * linux-fork.c: Fix common/ includes.
12744 * inline-frame.c: Fix common/ includes.
12745 * infrun.c: Fix common/ includes.
12746 * inflow.c: Fix common/ includes.
12747 * inferior.h: Fix common/ includes.
12748 * inferior.c: Fix common/ includes.
12749 * infcmd.c: Fix common/ includes.
12750 * inf-ptrace.c: Fix common/ includes.
12751 * inf-child.c: Fix common/ includes.
12752 * ia64-linux-nat.c: Fix common/ includes.
12753 * i387-tdep.c: Fix common/ includes.
12754 * i386-tdep.c: Fix common/ includes.
12755 * i386-linux-tdep.c: Fix common/ includes.
12756 * i386-linux-nat.c: Fix common/ includes.
12757 * i386-go32-tdep.c: Fix common/ includes.
12758 * i386-fbsd-tdep.c: Fix common/ includes.
12759 * i386-fbsd-nat.c: Fix common/ includes.
12760 * guile/scm-type.c: Fix common/ includes.
12761 * guile/guile.c: Fix common/ includes.
12762 * go32-nat.c: Fix common/ includes.
12763 * gnu-nat.c: Fix common/ includes.
12764 * gdbthread.h: Fix common/ includes.
12765 * gdbarch-selftests.c: Fix common/ includes.
12766 * gdb_usleep.c: Fix common/ includes.
12767 * gdb_select.h: Fix common/ includes.
12768 * gdb_bfd.c: Fix common/ includes.
12769 * gcore.c: Fix common/ includes.
12770 * fork-child.c: Fix common/ includes.
12771 * findvar.c: Fix common/ includes.
12772 * fbsd-nat.c: Fix common/ includes.
12773 * event-top.c: Fix common/ includes.
12774 * event-loop.c: Fix common/ includes.
12775 * dwarf2read.c: Fix common/ includes.
12776 * dwarf2loc.c: Fix common/ includes.
12777 * dwarf2-frame.c: Fix common/ includes.
12778 * dwarf-index-cache.c: Fix common/ includes.
12779 * dtrace-probe.c: Fix common/ includes.
12780 * disasm-selftests.c: Fix common/ includes.
12781 * defs.h: Fix common/ includes.
12782 * csky-tdep.c: Fix common/ includes.
12783 * cp-valprint.c: Fix common/ includes.
12784 * cp-support.h: Fix common/ includes.
12785 * cp-support.c: Fix common/ includes.
12786 * corelow.c: Fix common/ includes.
12787 * completer.h: Fix common/ includes.
12788 * completer.c: Fix common/ includes.
12789 * compile/compile.c: Fix common/ includes.
12790 * compile/compile-loc2c.c: Fix common/ includes.
12791 * compile/compile-cplus-types.c: Fix common/ includes.
12792 * compile/compile-cplus-symbols.c: Fix common/ includes.
12793 * command.h: Fix common/ includes.
12794 * cli/cli-dump.c: Fix common/ includes.
12795 * cli/cli-cmds.c: Fix common/ includes.
12796 * charset.c: Fix common/ includes.
12797 * build-id.c: Fix common/ includes.
12798 * btrace.h: Fix common/ includes.
12799 * btrace.c: Fix common/ includes.
12800 * breakpoint.h: Fix common/ includes.
12801 * breakpoint.c: Fix common/ includes.
12802 * ax.h:
12803 (enum agent_op): Fix common/ includes.
12804 * ax-general.c (struct aop_map): Fix common/ includes.
12805 * ax-gdb.c: Fix common/ includes.
12806 * auxv.c: Fix common/ includes.
12807 * auto-load.c: Fix common/ includes.
12808 * arm-tdep.c: Fix common/ includes.
12809 * arch/riscv.c: Fix common/ includes.
12810 * arch/ppc-linux-common.c: Fix common/ includes.
12811 * arch/i386.c: Fix common/ includes.
12812 * arch/arm.c: Fix common/ includes.
12813 * arch/arm-linux.c: Fix common/ includes.
12814 * arch/arm-get-next-pcs.c: Fix common/ includes.
12815 * arch/amd64.c: Fix common/ includes.
12816 * arch/aarch64.c: Fix common/ includes.
12817 * arch/aarch64-insn.c: Fix common/ includes.
12818 * arch-utils.c: Fix common/ includes.
12819 * amd64-windows-tdep.c: Fix common/ includes.
12820 * amd64-tdep.c: Fix common/ includes.
12821 * amd64-sol2-tdep.c: Fix common/ includes.
12822 * amd64-obsd-tdep.c: Fix common/ includes.
12823 * amd64-nbsd-tdep.c: Fix common/ includes.
12824 * amd64-linux-tdep.c: Fix common/ includes.
12825 * amd64-linux-nat.c: Fix common/ includes.
12826 * amd64-fbsd-tdep.c: Fix common/ includes.
12827 * amd64-fbsd-nat.c: Fix common/ includes.
12828 * amd64-dicos-tdep.c: Fix common/ includes.
12829 * amd64-darwin-tdep.c: Fix common/ includes.
12830 * agent.c: Fix common/ includes.
12831 * ada-lang.h: Fix common/ includes.
12832 * ada-lang.c: Fix common/ includes.
12833 * aarch64-tdep.c: Fix common/ includes.
12834
12835 2019-01-25 Tom Tromey <tom@tromey.com>
12836
12837 * common/create-version.sh: Use common/version.h.
12838
12839 2019-01-24 Pedro Alves <palves@redhat.com>
12840
12841 * infrun.c (signal_stop, signal_print, signal_program)
12842 (signal_catch, signal_pass): Now arrays instead of pointers.
12843 (update_signals_program_target, do_target_resume)
12844 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12845 * linux-nat.c (linux_nat_target::pass_signals)
12846 (linux_nat_target::create_inferior, linux_nat_target::attach):
12847 Adjust.
12848 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12849 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12850 * procfs.c (procfs_target::pass_signals): Adjust.
12851 * record-full.c (record_full_target::resume): Adjust.
12852 * remote.c (remote_target::pass_signals)
12853 (remote_target::program_signals): Adjust.
12854 * target-debug.h (target_debug_print_signals): Now takes a
12855 gdb::array_view as parameter. Adjust.
12856 * target.h (target_ops) <pass_signals, program_signals>: Replace
12857 pointer and length parameters with gdb::array_view.
12858 (target_pass_signals, target_program_signals): Likewise.
12859 * target-delegates.c: Regenerate.
12860
12861 2019-01-24 Pedro Alves <palves@redhat.com>
12862
12863 * common/forward-scope-exit.h
12864 (forward_scope_exit::forward_scope_exit): Pass arguments to
12865 m_bind_function directly, instead of creating a std::bind and
12866 copying that.
12867
12868 2019-01-24 Alan Hayward <alan.hayward@arm.com>
12869
12870 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12871 for static members.
12872 (pass_in_v_vfp_candidate): Likewise.
12873
12874 2019-01-23 Tom Tromey <tom@tromey.com>
12875 Pedro Alves <palves@redhat.com>
12876
12877 * regcache.c (class regcache_invalidator): Remove.
12878 (regcache::raw_write): Use make_scope_exit.
12879
12880 2019-01-23 Tom Tromey <tom@tromey.com>
12881
12882 * ui-out.h (class ui_out_emit_type): Update comment.
12883
12884 2019-01-23 Tom Tromey <tom@tromey.com>
12885
12886 * infrun.c (fetch_inferior_event): Update comment.
12887
12888 2019-01-23 Tom Tromey <tom@tromey.com>
12889 Pedro Alves <palves@redhat.com>
12890
12891 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12892 parameter.
12893 (fetch_inferior_event): Use SCOPE_EXIT.
12894
12895
12896 2019-01-23 Tom Tromey <tom@tromey.com>
12897 Pedro Alves <palves@redhat.com>
12898
12899 * infrun.c (disable_thread_events): Delete.
12900 (stop_all_threads): Use SCOPE_EXIT.
12901
12902 2019-01-23 Tom Tromey <tom@tromey.com>
12903 Pedro Alves <palves@redhat.com>
12904
12905 * symfile.c: Include forward-scope-exit.h.
12906 (clear_symtab_users_cleanup): Replace forward declaration with
12907 a FORWARD_SCOPE_EXIT.
12908 (syms_from_objfile_1): Use the forward_scope_exit and
12909 gdb::optional instead of cleanup_function.
12910 (reread_symbols): Use the forward_scope_exit instead of
12911 cleanup_function.
12912 (clear_symtab_users_cleanup): Remove function.
12913
12914 2019-01-23 Tom Tromey <tom@tromey.com>
12915 Pedro Alves <palves@redhat.com>
12916
12917 * linux-nat.c: Include scope-exit.h.
12918 (cleanup_target_stop): Remove.
12919 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12920 SCOPE_EXIT.
12921
12922 2019-01-23 Tom Tromey <tom@tromey.com>
12923 Pedro Alves <palves@redhat.com>
12924
12925 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12926 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12927
12928 2019-01-23 Tom Tromey <tom@tromey.com>
12929 Andrew Burgess <andrew.burgess@embecosm.com>
12930 Pedro Alves <palves@redhat.com>
12931
12932 * infrun.c (fetch_inferior_event): Use scope_exit.
12933 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12934 * top.c (execute_command): Use scope_exit.
12935 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12936 * utils.c (do_bpstat_clear_actions_cleanup)
12937 (make_bpstat_clear_actions_cleanup): Remove.
12938
12939 2019-01-23 Tom Tromey <tom@tromey.com>
12940 Pedro Alves <palves@redhat.com>
12941
12942 * infrun.c: Include "common/scope-exit.h"
12943 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12944 (wait_for_inferior): Use SCOPE_EXIT.
12945 (fetch_inferior_event): Use scope_exit.
12946
12947 2019-01-23 Tom Tromey <tom@tromey.com>
12948 Pedro Alves <palves@redhat.com>
12949
12950 * breakpoint.c (create_breakpoint): Remove cleanup.
12951
12952 2019-01-23 Tom Tromey <tom@tromey.com>
12953 Andrew Burgess <andrew.burgess@embecosm.com>
12954 Pedro Alves <palves@redhat.com>
12955
12956 2019-01-23 Pedro Alves <palves@redhat.com>
12957
12958 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12959
12960 2019-01-23 Pedro Alves <palves@redhat.com>
12961 Andrew Burgess <andrew.burgess@embecosm.com>
12962
12963 * gdbthread.h: Include "common/forward-scope-exit.h".
12964 (scoped_finish_thread_state): Redefine custom class in terms of
12965 forward_scope_exit.
12966
12967 2019-01-23 Pedro Alves <palves@redhat.com>
12968 Andrew Burgess <andrew.burgess@embecosm.com>
12969
12970 * common/forward-scope-exit.h: New file.
12971
12972 2019-01-23 Pedro Alves <palves@redhat.com>
12973 Andrew Burgess <andrew.burgess@embecosm.com>
12974 Tom Tromey <tom@tromey.com>
12975
12976 * common/scope-exit.h: New file.
12977
12978 2019-01-23 Pedro Alves <palves@redhat.com>
12979
12980 * common/preprocessor.h (ESC): Rename to ...
12981 (ESC_PARENS): ... this.
12982 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12983 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12984
12985 2019-01-23 Tom Tromey <tom@tromey.com>
12986
12987 * language.h (class scoped_switch_to_sym_language_if_auto):
12988 Initialize m_lang in both cases.
12989
12990 2019-01-23 Alan Hayward <alan.hayward@arm.com>
12991
12992 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12993 with XCNEW.
12994
12995 2019-01-22 Tom Tromey <tom@tromey.com>
12996
12997 * corelow.c: Do not include sys/file.h.
12998
12999 2019-01-22 Tom Tromey <tom@tromey.com>
13000
13001 * tui/tui-wingeneral.h: Include gdb_curses.h.
13002
13003 2019-01-22 Tom Tromey <tom@tromey.com>
13004
13005 * source-cache.h (class source_cache) <get_source_lines,
13006 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13007
13008 2019-01-22 Tom Tromey <tom@tromey.com>
13009
13010 * remote-fileio.h (struct remote_target): Declare.
13011
13012 2019-01-22 Tom Tromey <tom@tromey.com>
13013
13014 * python/py-arch.c: Do not include py-ref.h.
13015 * python/py-bpevent.c: Do not include py-ref.h.
13016 * python/py-cmd.c: Do not include py-ref.h.
13017 * python/py-continueevent.c: Do not include py-ref.h.
13018 * python/py-event.h: Do not include py-ref.h.
13019 * python/py-evtregistry.c: Do not include py-ref.h.
13020 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13021 * python/py-frame.c: Do not include py-ref.h.
13022 * python/py-framefilter.c: Do not include py-ref.h.
13023 * python/py-function.c: Do not include py-ref.h.
13024 * python/py-infevents.c: Do not include py-ref.h.
13025 * python/py-linetable.c: Do not include py-ref.h.
13026 * python/py-objfile.c: Do not include py-ref.h.
13027 * python/py-param.c: Do not include py-ref.h.
13028 * python/py-prettyprint.c: Do not include py-ref.h.
13029 * python/py-progspace.c: Do not include py-ref.h.
13030 * python/py-symbol.c: Do not include py-ref.h.
13031 * python/py-symtab.c: Do not include py-ref.h.
13032 * python/py-type.c: Do not include py-ref.h.
13033 * python/py-unwind.c: Do not include py-ref.h.
13034 * python/py-utils.c: Do not include py-ref.h.
13035 * python/py-value.c: Do not include py-ref.h.
13036 * python/py-varobj.c: Do not include py-ref.h.
13037 * python/py-xmethods.c: Do not include py-ref.h.
13038 * python/python.c: Do not include py-ref.h.
13039 * varobj.c: Do not include py-ref.h.
13040
13041 2019-01-22 Tom Tromey <tom@tromey.com>
13042
13043 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13044 keyword for bcache.
13045
13046 2019-01-22 Tom Tromey <tom@tromey.com>
13047
13048 * compile/compile-cplus-types.c: Remove a comment by #include.
13049
13050 2019-01-22 Tom Tromey <tom@tromey.com>
13051
13052 * compile/gcc-c-plugin.h: Include compile-internal.h.
13053
13054 2019-01-22 Tom Tromey <tom@tromey.com>
13055
13056 * stabsread.c (EXTERN): Do not define.
13057 (symnum, next_symbol_text_func, processing_gcc_compilation)
13058 (within_function, global_sym_chain, global_stabs)
13059 (previous_stab_code, this_object_header_files)
13060 (n_this_object_header_files)
13061 (n_allocated_this_object_header_files): Define.
13062 * stabsread.h (EXTERN): Never define. Use "extern".
13063
13064 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13065
13066 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13067 history_value.
13068
13069 2019-01-21 Tom Tromey <tom@tromey.com>
13070
13071 * ui-out.c: Fix includes.
13072 * tui/tui-source.c: Fix includes.
13073 * target.c: Fix includes.
13074 * remote.c: Fix includes.
13075 * regcache.c: Fix includes.
13076 * python/py-block.c: Fix includes.
13077 * printcmd.c: Fix includes.
13078 * or1k-tdep.c: Fix includes.
13079 * mi/mi-main.c: Fix includes.
13080 * m32r-tdep.c: Fix includes.
13081 * csky-tdep.c: Fix includes.
13082 * compile/compile-cplus-types.c: Fix includes.
13083 * cli/cli-interp.c: Fix includes.
13084
13085 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13086
13087 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13088 for padding.
13089
13090 2019-01-16 Tom Tromey <tom@tromey.com>
13091
13092 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13093 earlier.
13094 (struct objfile) <msymbols_range>: Move from top level.
13095 <msymbols>: New method.
13096 (class objfile_msymbols): Remove.
13097 * symtab.c (default_collect_symbol_completion_matches_break_on):
13098 Update.
13099 * symmisc.c (dump_msymbols): Update.
13100 * stabsread.c (scan_file_globals): Update.
13101 * objc-lang.c (info_selectors_command, info_classes_command)
13102 (find_methods): Update.
13103 * minsyms.c (find_solib_trampoline_target): Update.
13104 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13105 * coffread.c (coff_symfile_read): Update.
13106 * ada-lang.c (ada_lookup_simple_minsym)
13107 (ada_collect_symbol_completion_matches): Update.
13108
13109 2019-01-16 Tom Tromey <tom@tromey.com>
13110
13111 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13112 type. Remove no-argument constructor.
13113 <iterator::operator++>: Simplify.
13114 <begin>: Update.
13115 <end>: Use minimal_symbol_count.
13116
13117 2019-01-16 Tom Tromey <tom@tromey.com>
13118
13119 * objfiles.h (struct objfile) <psymtabs>: New method.
13120 (class objfile_psymtabs): Remove.
13121 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13122 typedef.
13123 <range>: New method.
13124 (require_partial_symbols): Change return type.
13125 * psymtab.c (require_partial_symbols)
13126 (psym_expand_symtabs_matching): Update.
13127 * mdebugread.c (parse_partial_symbols): Update.
13128 * dbxread.c (dbx_end_psymtab): Update.
13129
13130 2019-01-15 Tom Tromey <tom@tromey.com>
13131
13132 * symtab.c (lookup_objfile_from_block)
13133 (lookup_symbol_in_objfile_symtabs)
13134 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13135 (find_line_symtab, info_sources_command)
13136 (default_collect_symbol_completion_matches_break_on)
13137 (make_source_files_completion_list): Update.
13138 * symmisc.c (print_objfile_statistics, dump_objfile)
13139 (maintenance_print_symbols, maintenance_info_symtabs)
13140 (maintenance_check_symtabs, maintenance_info_line_tables):
13141 Update.
13142 * source.c (select_source_symtab)
13143 (forget_cached_source_info_for_objfile): Update.
13144 * objfiles.h (class objfile_compunits): Remove.
13145 (struct objfile) <compunits_range>: New typedef.
13146 (compunits): New method.
13147 * objfiles.c (objfile_relocate1): Update.
13148 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13149 * maint.c (count_symtabs_and_blocks): Update.
13150 * linespec.c (iterate_over_all_matching_symtabs): Update.
13151 * cp-support.c (add_symbol_overload_list_qualified): Update.
13152 * coffread.c (coff_symtab_read): Update.
13153 * ada-lang.c (add_nonlocal_symbols)
13154 (ada_collect_symbol_completion_matches)
13155 (ada_add_global_exceptions): Update.
13156
13157 2019-01-15 Tom Tromey <tom@tromey.com>
13158
13159 * progspace.h (program_space) <objfiles_safe_range>: New
13160 typedef.
13161 <objfiles_safe>: New method.
13162 * objfiles.h (class all_objfiles_safe): Remove.
13163 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13164 * jit.c (jit_inferior_exit_hook): Update.
13165
13166 2019-01-17 Tom Tromey <tom@tromey.com>
13167
13168 * progspace.h (program_space) <objfiles_range>: New typedef.
13169 <objfiles>: New method.
13170 <objfiles_head>: Rename from objfiles.
13171 (object_files): Update.
13172 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13173 * guile/scm-pretty-print.c
13174 (ppscm_find_pretty_printer_from_objfiles): Update.
13175 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13176 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13177 Update.
13178 * python/py-progspace.c (pspy_get_objfiles): Update.
13179 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13180 Update.
13181 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13182 (objfpy_lookup_objfile_by_build_id): Update.
13183 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13184 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13185 Update.
13186 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13187 (expand_symtab_containing_pc, lookup_objfile_from_block)
13188 (lookup_static_symbol, basic_lookup_transparent_type)
13189 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13190 (find_line_symtab, info_sources_command)
13191 (default_collect_symbol_completion_matches_break_on)
13192 (make_source_files_completion_list, find_main_name): Update.
13193 * symmisc.c (print_symbol_bcache_statistics)
13194 (print_objfile_statistics, maintenance_print_symbols)
13195 (maintenance_print_msymbols, maintenance_print_objfiles)
13196 (maintenance_info_symtabs, maintenance_check_symtabs)
13197 (maintenance_expand_symtabs, maintenance_info_line_tables):
13198 Update.
13199 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13200 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13201 (map_overlay_command, unmap_overlay_command)
13202 (simple_overlay_update, expand_symtabs_matching)
13203 (map_symbol_filenames): Update.
13204 * symfile-debug.c (set_debug_symfile): Update.
13205 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13206 Update.
13207 * source.c (select_source_symtab, forget_cached_source_info):
13208 Update.
13209 * solib.c (solib_read_symbols): Update.
13210 * solib-spu.c (append_ocl_sos): Update.
13211 * psymtab.c (maintenance_print_psymbols)
13212 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13213 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13214 * printcmd.c (info_symbol_command): Update.
13215 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13216 Update.
13217 * objfiles.h (class all_objfiles): Remove.
13218 * objfiles.c (have_partial_symbols, have_full_symbols)
13219 (have_minimal_symbols, qsort_cmp, update_section_map)
13220 (shared_objfile_contains_address_p)
13221 (default_iterate_over_objfiles_in_search_order): Update.
13222 * objc-lang.c (info_selectors_command, info_classes_command)
13223 (find_methods): Update.
13224 * minsyms.c (find_solib_trampoline_target): Update.
13225 * maint.c (maintenance_info_sections)
13226 (maintenance_translate_address, count_symtabs_and_blocks):
13227 Update.
13228 * main.c (captured_main_1): Update.
13229 * linux-thread-db.c (try_thread_db_load_from_pdir)
13230 (has_libpthread): Update.
13231 * linespec.c (iterate_over_all_matching_symtabs)
13232 (search_minsyms_for_name): Update.
13233 * jit.c (jit_find_objf_with_entry_addr): Update.
13234 * hppa-tdep.c (find_unwind_entry)
13235 (hppa_lookup_stub_minimal_symbol): Update.
13236 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13237 Update.
13238 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13239 (elf_gnu_ifunc_resolve_by_got): Update.
13240 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13241 * dwarf-index-write.c (save_gdb_index_command): Update.
13242 * cp-support.c (add_symbol_overload_list_qualified): Update.
13243 * breakpoint.c (create_overlay_event_breakpoint)
13244 (create_longjmp_master_breakpoint)
13245 (create_std_terminate_master_breakpoint)
13246 (create_exception_master_breakpoint): Update.
13247 * blockframe.c (find_pc_partial_function): Update.
13248 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13249 (ada_collect_symbol_completion_matches)
13250 (ada_add_global_exceptions): Update.
13251
13252 2019-01-17 Tom Tromey <tom@tromey.com>
13253
13254 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13255 declare VEC.
13256 (solib_target_parse_libraries): Change return type.
13257 (library_list_start_segment, library_list_start_section)
13258 (library_list_end_library, library_list_start_library); Update.
13259 (solib_target_free_library_list): Remove.
13260 (solib_target_parse_libraries): Remove cleanup. Change return
13261 type.
13262 (solib_target_current_sos): Update.
13263
13264 2019-01-17 Tom Tromey <tromey@bapiya>
13265
13266 * valprint.c: Replace "the the" with "the".
13267 * symtab.c: Replace "the the" with "the".
13268 * solib.c: Replace "the the" with "the".
13269 * solib-dsbt.c: Replace "the the" with "the".
13270 * linespec.c: Replace "the the" with "the".
13271 * dwarf2loc.h: Replace "the the" with "the".
13272 * amd64-windows-tdep.c: Replace "the the" with "the".
13273 * aarch64-tdep.c: Replace "the the" with "the".
13274
13275 2019-01-16 Keith Seitz <keiths@redhat.com>
13276
13277 PR gdb/23773
13278 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13279 <builder>: Rename to ..
13280 <m_builder>: ... this and make private.
13281 (dwarf2_cu::get_builder): New method. Change all users of
13282 `builder' to use this method.
13283 (dwarf2_start_symtab): Move to ...
13284 (dwarf2_cu::start_symtab): ... here. Update all callers
13285 (setup_type_unit_groups): Move to ...
13286 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13287 callers.
13288 (dwarf2_cu::reset_builder): New method.
13289 (process_full_compunit, process_full_type_unit): Use
13290 dwarf2_cu::reset_builder.
13291 (follow_die_offset): Record the ancestor CU if it is different
13292 from the followed DIE's CU.
13293 (follow_die_sig_1): Likewise.
13294
13295 2019-01-15 Tom Tromey <tom@tromey.com>
13296
13297 * remote.c (class remote_state) <buf>: Now a char_vector.
13298 <buf_size>: Remove.
13299 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13300 parameter.
13301 (remote_target::getpkt_or_notif_sane_1)
13302 (remote_target::getpkt_sane)
13303 (remote_target::getpkt_or_notif_sane): Likewise.
13304 (class remote_target) <putpkt>: New overload.
13305 (remote_target::read_frame): Change type of "buf_p". Remove
13306 sizeof_p parameter.
13307 (packet_ok): New overload.
13308 (packet_check_result): New overload.
13309 Update all uses.
13310
13311 2019-01-14 Tom Tromey <tom@tromey.com>
13312
13313 * remote-notif.c (handle_notification, remote_notif_ack)
13314 (remote_notif_parse): Make "buf" const.
13315 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13316 const.
13317 (remote_notif_parse, remote_notif_ack, handle_notification):
13318 Likewise.
13319 * remote.c (remote_notif_stop_parse): Make "buf" const.
13320 (remote_target::remote_parse_stop_reply): Make "buf" const.
13321 (remote_notif_stop_ack): Make "buf" const.
13322
13323 2019-01-14 Tom Tromey <tom@tromey.com>
13324
13325 * remote.c (remote_console_output): Make parameter const.
13326
13327 2019-01-14 Tom Tromey <tom@tromey.com>
13328
13329 * target-debug.h (target_debug_print_signals): Constify.
13330 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13331 * procfs.c (procfs_target::pass_signals): Update.
13332 * linux-nat.c (linux_nat_target::pass_signals): Update.
13333 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13334 * target-delegates.c: Rebuild.
13335 * remote.c (remote_target::program_signals): Update.
13336 (remote_target::pass_signals): Update.
13337 * target.c (target_pass_signals): Constify argument.
13338 (target_program_signals): Likewise.
13339 * target.h (struct target_ops) <pass_signals, program_signals>:
13340 Constify argument.
13341 (target_pass_signals, target_program_signals): Constify argument.
13342
13343 2019-01-14 Tom Tromey <tom@tromey.com>
13344
13345 PR tui/28819:
13346 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13347
13348 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13349
13350 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13351 field.
13352 * rs6000-tdep.c: Include reggroups.h.
13353 (IS_V_ALIAS_PSEUDOREG): Define.
13354 (rs6000_register_name): Return names for the "vX" aliases.
13355 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13356 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13357 aliases. Call default_register_reggroup_p for all other
13358 pseudo-registers.
13359 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13360 New functions.
13361 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13362 Handle "vX" aliases.
13363 (v_alias_pseudo_register_collect): New function.
13364 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13365 (rs6000_gdbarch_init): Initialize "vX" aliases as
13366 pseudo-registers. Restore registration of
13367 rs6000_pseudo_register_reggroup_p with
13368 set_tdesc_pseudo_register_reggroup_p.
13369
13370 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13371
13372 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13373 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13374 set_gdbarch_num_pseudo_regs.
13375
13376 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13377
13378 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13379 Remove arg prefixname, add do_set and do_show.
13380 Add member functions set_list and show_list.
13381 * cli/cli-style.c (class cli_style_option): Update accordingly.
13382 (style_set_list): Move to file scope.
13383 (style_show_list): Likewise.
13384 (set_style): Call help_list.
13385 (show_style): Call cmd_show_list.
13386 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13387 Update to use the new macro.
13388
13389 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13390
13391 * ada-lang.c (_initialize_ada_language): Expand the help text
13392 for the "catch exception" command.
13393
13394 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13395
13396 * symtab.c (matching_obj_sections): Initialize obj,
13397 declare it closer to its usage.
13398
13399 2019-01-10 Tom Tromey <tom@tromey.com>
13400
13401 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13402 (basic_inf_threads_range): Remove.
13403 (inf_threads_range, inf_non_exited_threads_range)
13404 (safe_inf_threads_range): Use next_adapter.
13405
13406 2019-01-10 Keith Seitz <keiths@redhat.com>
13407
13408 PR gdb/23712
13409 PR symtab/23010
13410 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13411 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13412
13413 2019-01-10 Keith Seitz <keiths@redhat.com>
13414
13415 PR gdb/23712
13416 PR symtab/23010
13417 * dictionary.c (pending_to_vector): Remove.
13418 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13419 Remove _1 suffix, replacing functions of the same name. Update
13420 all callers.
13421 (dict_create_hashed, dict_create_hashed_expandable)
13422 (dict_create_linear, dict_create_linear_expandable, dict_free)
13423 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13424 Make functions static.
13425
13426 2019-01-10 Keith Seitz <keiths@redhat.com>
13427
13428 PR gdb/23712
13429 PR symtab/23010
13430 * dictionary.h (struct dictionary): Replace declaration with
13431 multidictionary.
13432 (dict_create_hashed, dict_create_hashed_expandable)
13433 (dict_create_linear, dict_create_linear_expandable)
13434 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13435 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13436 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13437 taking multidictionary argument.
13438 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13439 * block.h (struct block) <dict>: Change to multidictionary
13440 and rename `multidict'.
13441 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13442 symmisc.c: Update all dictionary references to multidictionary.
13443
13444 2019-01-10 Keith Seitz <keiths@redhat.com>
13445
13446 PR gdb/23712
13447 PR symtab/23010
13448 * dictionary.c: Include unordered_map.
13449 (pending_to_vector): New function.
13450 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13451 Rewrite the non-"_1" functions to take vector instead
13452 of linked list.
13453 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13454 "new" _1 versions of the same name.
13455 (multidictionary): Define.
13456 (std::hash<enum language): New definition.
13457 (collate_pending_symbols_by_language, mdict_create_hashed)
13458 (mdict_create_hashed_expandable, mdict_create_linear)
13459 (mdict_create_linear_expandable, mdict_free)
13460 (find_language_dictionary, create_new_language_dictionary)
13461 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13462 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13463 (mdict_size, mdict_empty): New functions.
13464 * dictionary.h (mdict_iterator): Define.
13465
13466 2019-01-10 Pedro Alves <palves@redhat.com>
13467
13468 * breakpoint.c (read_uploaded_action)
13469 (create_tracepoint_from_upload): Adjust to use
13470 gdb::unique_xmalloc_ptr.
13471 * ctf.c (ctf_write_uploaded_tp):
13472 (SET_ARRAY_FIELD): Use emplace_back.
13473 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13474 * tracefile-tfile.c (tfile_write_uploaded_tp):
13475 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13476 gdb::unique_xmalloc_ptr.
13477 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13478 at_string, cond_string, cmd_strings>: Replace char pointers
13479 with gdb::unique_xmalloc_ptr.
13480
13481 2019-01-10 Pedro Alves <palves@redhat.com>
13482
13483 * solib-target.c (library_list_start_library): Don't xstrdup name.
13484
13485 2019-01-10 Pedro Alves <palves@redhat.com>
13486
13487 * mdebugread.c (parse_partial_symbols): Use
13488 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13489
13490 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13491
13492 * linux-fork.c (scoped_switch_fork_info)
13493 <~scoped_switch_fork_info>: Fix incorrect variable name.
13494
13495 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13496
13497 * linux-fork.c (scoped_switch_fork_info)
13498 <scoped_switch_fork_info>: Make explicit.
13499 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13500
13501 2019-01-10 Tom Tromey <tom@tromey.com>
13502
13503 * objfiles.h (objfile::reset_psymtabs): Update.
13504 * objfiles.c (objfile::objfile): Update.
13505 * psymtab.h (psymtab_storage::obstack): Update.
13506 (psymtab_storage::m_obstack): Use gdb::optional.
13507 (class psymtab_storage): Update comment. Remove objfile
13508 parameter.
13509 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13510
13511 2019-01-10 Tom Tromey <tom@tromey.com>
13512
13513 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13514 <free_psymtabs>: Now private.
13515 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13516 (allocate_psymtab): Use new method.
13517
13518 2019-01-10 Tom Tromey <tom@tromey.com>
13519
13520 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13521 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13522 * mdebugread.c (parse_partial_symbols): Use
13523 allocate_dependencies.
13524 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13525 allocate_dependencies.
13526 (process_psymtab_comp_unit_reader)
13527 (build_type_psymtab_dependencies): Likewise.
13528 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13529
13530 2019-01-10 Tom Tromey <tom@tromey.com>
13531
13532 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13533 PSYMBOL_SET_LANGUAGE.
13534 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13535
13536 2019-01-10 Tom Tromey <tom@tromey.com>
13537
13538 * psymtab.h (psymtab_storage::obstack): New method.
13539 <m_obstack>: Rename from obstack; now private.
13540 * psymtab.c (psymtab_storage): Update.
13541 * dwarf2read.c (create_addrmap_from_index)
13542 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13543 Update.
13544
13545 2019-01-10 Tom Tromey <tom@tromey.com>
13546
13547 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13548 * objfiles.h (objfile::reset_psymtabs): New method.
13549
13550 2019-01-10 Tom Tromey <tom@tromey.com>
13551
13552 * symmisc.c (print_symbol_bcache_statistics): Update.
13553 (print_objfile_statistics): Update.
13554 * symfile.c (reread_symbols): Update.
13555 * psymtab.h (class psymtab_storage): New.
13556 * psymtab.c (psymtab_storage): New constructor.
13557 (~psymtab_storage): New destructor.
13558 (require_partial_symbols): Update.
13559 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13560 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13561 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13562 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13563 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13564 (start_psymtab_common, end_psymtab_common)
13565 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13566 (allocate_psymtab): Update.
13567 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13568 Update.
13569 (dump_psymtab_addrmap, maintenance_print_psymbols)
13570 (maintenance_check_psymtabs): Update.
13571 (class objfile_psymtabs): Move to objfiles.h.
13572 * psympriv.h (discard_psymtab): Now inline.
13573 (psymtab_discarder::psymtab_discarder): Update.
13574 (psymtab_discarder::~psymtab_discarder): Update.
13575 (ALL_OBJFILE_PSYMTABS): Rewrite.
13576 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13577 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13578 Remove fields.
13579 <partial_symtabs>: New field.
13580 (class objfile_psymtabs): Move from psymtab.h. Update.
13581 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13582 psymbol_cache.
13583 (objfile::~objfile): Don't destroy psymbol_cache.
13584 * mdebugread.c (parse_partial_symbols): Update.
13585 * dwarf2read.c (create_addrmap_from_index)
13586 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13587 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13588 (add_partial_subprogram, dwarf2_ranges_read): Update.
13589 * dwarf-index-write.c (write_address_map)
13590 (write_one_signatured_type, recursively_write_psymbols)
13591 (class debug_names, class debug_names, write_psymtabs_to_index):
13592 Update.
13593
13594 2019-01-10 Tom Tromey <tom@tromey.com>
13595
13596 * symtab.h (SYMBOL_SET_NAMES): Update.
13597 (symbol_set_names): Update.
13598 (MSYMBOL_SET_NAMES): Update.
13599 * symtab.c (symbol_set_names): Change argument to be an
13600 objfile_per_bfd_storage.
13601 * psymtab.c (add_psymbol_to_bcache): Update.
13602 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13603
13604 2019-01-10 Tom Tromey <tom@tromey.com>
13605
13606 * symtab.c (create_demangled_names_hash): Change argument to be an
13607 objfile_per_bfd_storage.
13608 (symbol_set_names): Update.
13609
13610 2019-01-10 Tom Tromey <tom@tromey.com>
13611
13612 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13613 init_psymbol_list.
13614 * psymtab.c (init_psymbol_list): Do nothing if already called.
13615 * psympriv.h (init_psymbol_list): Add comment.
13616 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13617 init_psymbol_list.
13618 * dbxread.c (dbx_symfile_read): Unconditionally call
13619 init_psymbol_list.
13620
13621 2019-01-10 Tom Tromey <tom@tromey.com>
13622
13623 * xcoffread.c (scan_xcoff_symtab): Update.
13624 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13625 "where".
13626 * mdebugread.c (parse_partial_symbols)
13627 (handle_psymbol_enumerators): Update.
13628 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13629 * dbxread.c (read_dbx_symtab): Update.
13630 * psympriv.h (psymbol_placement): New enum.
13631 (add_psymbol_to_list): Update.
13632
13633 2019-01-10 Tom Tromey <tom@tromey.com>
13634
13635 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13636 static_psymbols parameters.
13637 (scan_xcoff_symtab): Update.
13638 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13639 static_psymbols parameters.
13640 * psympriv.h (start_psymtab_common): Update.
13641 * mdebugread.c (parse_partial_symbols): Update.
13642 * dwarf2read.c (create_partial_symtab): Update.
13643 * dbxread.c (read_dbx_symtab): Update.
13644 (start_psymtab): Remove global_psymbols and static_psymbols
13645 parameters.
13646
13647 2019-01-10 Tom Tromey <tom@tromey.com>
13648
13649 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13650 * psymtab.c (allocate_psymtab): Add comment.
13651 * psympriv.h (allocate_psymtab): Add comment.
13652 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13653 initializations.
13654 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13655
13656 2019-01-10 Tom Tromey <tom@tromey.com>
13657
13658 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13659 Don't declare.
13660 * mipsread.c: Include mdebugread.h.
13661 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13662 Declare.
13663 * elfread.c: Include mdebugread.h.
13664
13665 2019-01-09 Tom Tromey <tom@tromey.com>
13666
13667 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13668 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13669 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13670 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13671 (psym_lookup_symbol, psym_find_last_source_symtab)
13672 (psym_forget_cached_source_info, psym_print_stats)
13673 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13674 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13675 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13676 (psym_find_compunit_symtab_by_address)
13677 (maintenance_print_psymbols, maintenance_info_psymtabs)
13678 (maintenance_check_psymtabs): Use ranged for.
13679 * psymtab.h (class objfile_psymtabs): New.
13680 (require_partial_symbols): Return objfile_psymtabs.
13681 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13682
13683 2019-01-09 Tom Tromey <tom@tromey.com>
13684
13685 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13686 (find_pc_mapped_section, list_overlays_command)
13687 (map_overlay_command, unmap_overlay_command)
13688 (simple_overlay_update): Use all_objfiles.
13689 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13690 * printcmd.c (info_symbol_command): Use all_objfiles.
13691 * objfiles.h (ALL_OBJSECTIONS): Remove.
13692 * maint.c (maintenance_translate_address): Use all_objfiles.
13693 * gcore.c (gcore_create_callback): Use all_objfiles.
13694 (objfile_find_memory_regions): Likewise.
13695
13696 2019-01-09 Tom Tromey <tom@tromey.com>
13697
13698 * symtab.c (find_line_symtab, info_sources_command)
13699 (make_source_files_completion_list): Use objfile_compunits.
13700 * source.c (select_source_symtab): Use objfile_compunits.
13701 * objfiles.h (struct objfile): Update comment.
13702 (ALL_OBJFILES): Remove.
13703 (ALL_FILETABS): Remove.
13704 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13705 objfile_compunits.
13706
13707 2019-01-09 Tom Tromey <tom@tromey.com>
13708
13709 * symmisc.c (print_objfile_statistics, dump_objfile)
13710 (maintenance_print_symbols): Use compunit_filetabs.
13711 * source.c (forget_cached_source_info_for_objfile): Use
13712 compunit_filetabs.
13713 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13714 (ALL_FILETABS): Use compunit_filetabs.
13715 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13716 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13717
13718 2019-01-09 Tom Tromey <tom@tromey.com>
13719
13720 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13721 (compunit_filetabs): New.
13722 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13723 compunit_filetabs.
13724 (info_sources_command, make_source_files_completion_list): Remove
13725 declaration.
13726 * symmisc.c (print_objfile_statistics, dump_objfile)
13727 (maintenance_print_symbols): Remove declaration.
13728 (maintenance_info_symtabs): Use compunit_filetabs.
13729 (maintenance_info_line_tables): Likewise.
13730 * source.c (select_source_symtab): Change local variable name.
13731 (forget_cached_source_info_for_objfile): Remove declaration.
13732 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13733 * objfiles.c (objfile_relocate1): Remove declaration.
13734 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13735 declaration.
13736 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13737 * coffread.c (coff_symtab_read): Remove declaration.
13738 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13739 compunit_filetabs.
13740
13741 2019-01-09 Tom Tromey <tom@tromey.com>
13742
13743 * symtab.c (lookup_objfile_from_block)
13744 (find_pc_sect_compunit_symtab, search_symbols)
13745 (default_collect_symbol_completion_matches_break_on): Use
13746 objfile_compunits.
13747 * objfiles.h (ALL_COMPUNITS): Remove.
13748 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13749 * cp-support.c (add_symbol_overload_list_qualified): Use
13750 objfile_compunits.
13751 * ada-lang.c (ada_collect_symbol_completion_matches)
13752 (ada_add_global_exceptions): Use objfile_compunits.
13753
13754 2019-01-09 Tom Tromey <tom@tromey.com>
13755
13756 * source.c (select_source_symtab)
13757 (forget_cached_source_info_for_objfile): Remove declaration.
13758 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13759 declaration.
13760 * maint.c (count_symtabs_and_blocks): Remove declaration.
13761 * cp-support.c (add_symbol_overload_list_qualified): Remove
13762 declaration.
13763 * coffread.c (coff_symtab_read): Remove declaration.
13764 * symtab.c (lookup_symbol_in_objfile_symtabs)
13765 (basic_lookup_transparent_type_1): Use objfile_compunits.
13766 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13767 (info_sources_command, search_symbols)
13768 (default_collect_symbol_completion_matches_break_on)
13769 (make_source_files_completion_list): Remove declaration.
13770 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13771 (ada_collect_symbol_completion_matches)
13772 (ada_add_global_exceptions): Remove declaration.
13773 * linespec.c (iterate_over_all_matching_symtabs): Use
13774 objfile_compunits.
13775 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13776 (class objfile_compunits): New.
13777 (ALL_COMPUNITS): Use objfile_compunits.
13778 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13779 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13780 objfile_compunits.
13781 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13782
13783 2019-01-09 Tom Tromey <tom@tromey.com>
13784
13785 * symtab.c (search_symbols)
13786 (default_collect_symbol_completion_matches_break_on): Use
13787 objfile_msymbols.
13788 * ada-lang.c (ada_lookup_simple_minsym)
13789 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13790 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13791 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13792 objfile_msymbols.
13793 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13794 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13795 * objc-lang.c (find_methods): Use objfile_msymbols.
13796 (info_selectors_command, info_classes_command): Likewise.
13797 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13798 * objfiles.h (class objfile_msymbols): New.
13799 (ALL_OBJFILE_MSYMBOLS): Remove.
13800 (ALL_MSYMBOLS): Remove.
13801
13802 2019-01-09 Tom Tromey <tom@tromey.com>
13803
13804 * common/next-iterator.h (next_adapter): Add Iterator template
13805 parameter.
13806 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13807 (class all_objfiles_safe): New.
13808 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13809 * objfiles.c (put_objfile_before): Update comment.
13810 (add_separate_debug_objfile): Likewise.
13811 (free_all_objfiles): Use all_objfiles_safe.
13812 (objfile_purge_solibs): Likewise.
13813
13814 2019-01-09 Tom Tromey <tom@tromey.com>
13815
13816 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13817 (expand_symtab_containing_pc, lookup_static_symbol)
13818 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13819 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13820 all_objfiles.
13821 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13822 * breakpoint.c (create_overlay_event_breakpoint)
13823 (create_longjmp_master_breakpoint)
13824 (create_std_terminate_master_breakpoint)
13825 (create_exception_master_breakpoint): Use all_objfiles.
13826 * linux-thread-db.c (try_thread_db_load_from_pdir)
13827 (has_libpthread): Use all_objfiles.
13828 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13829 * linespec.c (iterate_over_all_matching_symtabs)
13830 (search_minsyms_for_name): Use all_objfiles.
13831 * maint.c (maintenance_info_sections): Use all_objfiles.
13832 * main.c (captured_main_1): Use all_objfiles.
13833 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13834 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13835 * guile/scm-pretty-print.c
13836 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13837 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13838 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13839 (maintenance_print_msymbols): Use all_objfiles.
13840 * source.c (select_source_symtab): Use all_objfiles.
13841 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13842 * symfile.c (remove_symbol_file_command)
13843 (expand_symtabs_matching, map_symbol_filenames): Use
13844 all_objfiles.
13845 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13846 all_objfiles.
13847 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13848 * objc-lang.c (find_methods): Use all_objfiles.
13849 * objfiles.c (have_partial_symbols, have_full_symbols)
13850 (have_minimal_symbols, qsort_cmp)
13851 (default_iterate_over_objfiles_in_search_order): Use
13852 all_objfiles.
13853 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13854 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13855 (maintenance_check_psymtabs): Use all_objfiles.
13856 (ALL_PSYMTABS): Remove.
13857 * compile/compile-object-run.c (do_module_cleanup): Use
13858 all_objfiles.
13859 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13860 * cp-support.c (add_symbol_overload_list_qualified): Use
13861 all_objfiles.
13862 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13863 Use all_objfiles.
13864 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13865 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13866 all_objfiles.
13867 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13868 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13869 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13870 Uses all_objfiles.
13871 * solib.c (solib_read_symbols): Use all_objfiles
13872
13873 2019-01-09 Tom Tromey <tom@tromey.com>
13874
13875 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13876 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13877 all_objfiles.
13878 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13879 * symmisc.c (print_symbol_bcache_statistics)
13880 (print_objfile_statistics, maintenance_print_objfiles)
13881 (maintenance_info_symtabs, maintenance_check_symtabs)
13882 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13883 all_objfiles.
13884 * source.c (forget_cached_source_info): Use all_objfiles.
13885 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13886 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13887 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13888 * objfiles.c (update_section_map): Use all_objfiles.
13889 (shared_objfile_contains_address_p): Likewise.
13890 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13891 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13892
13893 2019-01-09 Tom Tromey <tom@tromey.com>
13894
13895 * common/next-iterator.h: New file.
13896 * objfiles.h (class all_objfiles): New.
13897 (struct objfile_iterator): New.
13898
13899 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13900
13901 * NEWS: Move the description of the changed "frame", "select-frame",
13902 and "info frame" commands to the Changed commands section.
13903
13904 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13905
13906 * gdbtypes.c (check_stub_method_group): Remove handling of old
13907 mangling schemes.
13908 * linespec.c (find_methods): Likewise.
13909 * stabsread.c (read_member_functions): Likewise.
13910 * valops.c (search_struct_method): Likewise.
13911 (value_struct_elt_for_reference): Likewise.
13912 * NEWS: Mention this change.
13913
13914 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13915
13916 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13917 print_source_lines.
13918 * source.c (print_source_lines_base): Update line number check.
13919 (print_source_lines): New function.
13920 (source_lines_range::source_lines_range): New function.
13921 * source.h (class source_lines_range): New class.
13922 (print_source_lines): New declaration.
13923
13924 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13925
13926 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13927
13928 2019-01-08 Tom Tromey <tom@tromey.com>
13929 Simon Marchi <simon.marchi@ericsson.com>
13930
13931 PR gdb/24060
13932 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13933 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13934 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13935 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13936 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13937 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13938
13939 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13940
13941 * source.c (select_source_symtab): Move header comment to
13942 declaration in source.h.
13943 (forget_cached_source_info_for_objfile): Likewise.
13944 (forget_cached_source_info): Likewise.
13945 (identify_source_line): Likewise.
13946 * source.h (identify_source_line): Move declaration from symtab.h
13947 and add comment from source.c
13948 (print_source_lines): Likewise.
13949 (forget_cached_source_info_for_objfile): Likewise.
13950 (forget_cached_source_info): Likewise.
13951 (select_source_symtab): Likewise.
13952 (enum print_source_lines_flag): Move definition from symtab.h.
13953 * symtab.h (identify_source_line): Move declaration to source.h.
13954 (print_source_lines): Likewise.
13955 (forget_cached_source_info_for_objfile): Likewise.
13956 (forget_cached_source_info): Likewise.
13957 (select_source_symtab): Likewise.
13958 (enum print_source_lines_flag): Move definition to source.h.
13959 * tui/tui-hooks.c: Add 'source.h' include.
13960
13961 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13962
13963 * source.c (print_source_lines_base): Handle requests to print
13964 reverse line number sequences, and guard against empty lines
13965 string.
13966
13967 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13968
13969 * source.c (print_source_lines_base): Fix skip of '\r' if next
13970 character is '\n'.
13971
13972 2019-01-06 Tom Tromey <tom@tromey.com>
13973
13974 * c-exp.y (struct c_parse_state) <macro_original_text,
13975 expansion_obstack>: New member.
13976 (macro_original_text, expansion_obstack): Remove globals.
13977 (scan_macro_expansion, scanning_macro_expansion)
13978 (finished_macro_expansion): Update.
13979 (scan_macro_cleanup): Remove.
13980 (yylex, c_parse): Update.
13981
13982 2019-01-06 Tom Tromey <tom@tromey.com>
13983
13984 * c-exp.y (struct c_parse_state) <strings>: New member.
13985 (operator_stoken): Update.
13986
13987 2019-01-06 Tom Tromey <tom@tromey.com>
13988
13989 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13990 (union type_stack_elt) <typelist_val>: Now a pointer to
13991 std::vector.
13992 (type_stack_cleanup): Don't declare.
13993 (push_typelist): Update.
13994 * parse.c (pop_typelist): Return a std::vector.
13995 (push_typelist): Take a std::vector.
13996 (follow_types): Update. Do not free args.
13997 (type_stack_cleanup): Remove.
13998 * c-exp.y (struct c_parse_state): New.
13999 (cpstate): New global.
14000 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14001 (nonempty_typelist): Update.
14002 (func_mod): Create a new vector.
14003 (c_parse): Create a c_parse_state.
14004 (check_parameter_typelist): Do not delete params.
14005 (function_method): Update. Do not delete type_list.
14006
14007 2019-01-06 Tom Tromey <tom@tromey.com>
14008
14009 PR gdb/28155:
14010 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14011 check_typedef.
14012 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14013 (print_return_value): Likewise.
14014
14015 2019-01-05 Tom Tromey <tom@tromey.com>
14016
14017 * contrib/cleanup_check.py: Remove.
14018 * contrib/gcc-with-excheck: Remove.
14019 * contrib/exsummary.py: Remove.
14020 * contrib/excheck.py: Remove.
14021
14022 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14023
14024 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14025 NULL. Initialize tpprev to NULL instead of assigning it
14026 to NULL on the next statement.
14027 * windows-nat.c (windows_delete_thread): Remove check for
14028 main_thread_id before printing thread exit notifications.
14029 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14030 Remove thread ID check against main_thread_id.
14031 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14032 windows_delete_thread.
14033 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14034
14035 2019-01-04 Tom Tromey <tom@tromey.com>
14036
14037 * compile/compile.c (_initialize_compile): Use upper case for
14038 metasyntactic variables.
14039 * symmisc.c (_initialize_symmisc): Use upper case for
14040 metasyntactic variables.
14041 * psymtab.c (_initialize_psymtab): Use upper case for
14042 metasyntactic variables.
14043 * demangle.c (demangle_command): Use upper case for metasyntactic
14044 variables.
14045 (_initialize_demangler): Likewise.
14046 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14047 variables.
14048
14049 2019-01-03 Tom Tromey <tom@tromey.com>
14050
14051 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14052
14053 2019-01-03 Tom Tromey <tom@tromey.com>
14054
14055 * python/py-symtab.c (salpy_str): Update.
14056 (struct salpy_sal_object) <symtab>: Now a PyObject.
14057 (salpy_dealloc): Update.
14058 (del_objfile_sal): Use gdbpy_ref.
14059
14060 2019-01-03 Tom Tromey <tom@tromey.com>
14061
14062 * python/py-type.c (convert_field): Use new_reference. Return
14063 gdbpy_ref.
14064 (make_fielditem): Return gdbpy_ref.
14065 (typy_fields): Update.
14066 (typy_getitem): Update.
14067 (field_name): Return gdbpy_ref. Use new_reference.
14068 (typy_iterator_iternext): Update.
14069
14070 2019-01-03 Tom Tromey <tom@tromey.com>
14071
14072 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14073
14074 2019-01-03 Tom Tromey <tom@tromey.com>
14075
14076 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14077 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14078 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14079 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14080 (pspy_set_type_printers): Likewise.
14081 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14082 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14083 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14084 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14085 (objfpy_set_type_printers): Likewise.
14086
14087 2019-01-03 Tom Tromey <tom@tromey.com>
14088
14089 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14090 (gdbpy_print_stack): Use gdbpy_err_fetch.
14091 * python/python-internal.h (class gdbpy_err_fetch): New class.
14092 (class gdbpy_enter) <m_error_type, m_error_value,
14093 m_error_traceback>: Remove.
14094 <m_error>: New member.
14095 (gdbpy_exception_to_string): Don't declare.
14096 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14097 * python/py-value.c (convert_value_from_python): Use
14098 gdbpy_err_fetch.
14099 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14100 gdbpy_exception_to_string.
14101 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14102 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14103 gdbpy_err_fetch.
14104
14105 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14106
14107 * linux-nat.c (delete_lwp_cleanup): Delete.
14108 (struct lwp_deleter): New struct.
14109 (lwp_info_up): New typedef.
14110 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14111 lwp_info_up.
14112
14113 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14114
14115 * linux-fork.c (class scoped_switch_fork_info): New class.
14116 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14117
14118 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14119
14120 * valops.c (find_overload_match): Remove use of null_cleanup, and
14121 calls to do_cleanups.
14122
14123 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14124
14125 * compile/compile-cplus-types.c
14126 (compile_cplus_instance::decl_name): Handle changes to
14127 cp_func_name.
14128 * cp-support.c (cp_func_name): Update header comment, update
14129 return type.
14130 * cp-support.h (cp_func_name): Update return type in declaration.
14131 * valops.c (find_overload_match): Move temp_func local to top
14132 level of function and change its type. Use temp_func to hold and
14133 delete temporary string obtained from cp_func_name.
14134
14135 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14136
14137 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14138 gdb::char_vector, remove cleanup, and update uses of `msg`.
14139
14140 2019-01-03 Jim Wilson <jimw@sifive.com>
14141
14142 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14143
14144 2019-01-02 Tom Tromey <tom@tromey.com>
14145
14146 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14147 (tdesc_parse_xml): Remove cleanups.
14148 * target-descriptions.h (make_cleanup_free_target_description):
14149 Don't declare.
14150 (target_desc_deleter): New struct.
14151 (target_desc_up): New typedef.
14152 * target-descriptions.c (target_desc_deleter::operator()): Rename
14153 from free_target_description.
14154 (make_cleanup_free_target_description): Remove.
14155
14156 2019-01-02 Tom Tromey <tom@tromey.com>
14157
14158 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14159 constructor, destructor.
14160 (linespec_parser): Remove typedef.
14161 (~linespec_parser): Rename from linespec_parser_delete.
14162 (linespec_lex_to_end, linespec_complete_label)
14163 (linespec_complete): Update.
14164 (decode_line_full): Remove cleanups.
14165 (decode_line_1): Update.
14166
14167 2019-01-02 Tom Tromey <tom@tromey.com>
14168
14169 * python/python-internal.h (inferior_to_inferior_object): Change
14170 return type.
14171 * python/py-exitedevent.c (create_exited_event_object): Update.
14172 * python/py-inferior.c (inferior_to_inferior_object): Return
14173 gdbpy_ref.
14174 (python_new_inferior, python_inferior_deleted)
14175 (thread_to_thread_object, delete_thread_object)
14176 (build_inferior_list, gdbpy_selected_inferior): Update.
14177 * python/py-infthread.c (create_thread_object): Update. Also fail
14178 if inferior_to_inferior_object fails.
14179
14180 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14181
14182 * inferior.h (class inferior) <displaced_step_state>: New field.
14183 * infrun.h (struct displaced_step_state): Move here from
14184 infrun.c. Initialize fields, add constructor.
14185 <inf>: Remove field.
14186 <reset>: New method.
14187 * infrun.c (struct displaced_step_inferior_state): Move to
14188 infrun.h.
14189 (displaced_step_inferior_states): Remove.
14190 (get_displaced_stepping_state): Adust.
14191 (displaced_step_in_progress_any_inferior): Adjust.
14192 (displaced_step_in_progress_thread): Adjust.
14193 (displaced_step_in_progress): Adjust.
14194 (add_displaced_stepping_state): Remove.
14195 (get_displaced_step_closure_by_addr): Adjust.
14196 (remove_displaced_stepping_state): Remove.
14197 (infrun_inferior_exit): Call displaced_step_state.reset.
14198 (use_displaced_stepping): Don't check for NULL.
14199 (displaced_step_prepare_throw): Call
14200 get_displaced_stepping_state.
14201 (displaced_step_fixup): Don't check for NULL.
14202 (prepare_for_detach): Don't check for NULL.
14203
14204 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14205
14206 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14207 in case of call that did not complete.
14208
14209 2019-01-02 Andrey Utkin <autkin@undo.io>
14210
14211 * symfile.c (find_separate_debug_file): Fix search of debug files for
14212 remote debuggee.
14213
14214 2019-01-02 Tom Tromey <tom@tromey.com>
14215
14216 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14217 indentation.
14218 * python/py-frame.c (frapy_older): Remove cast.
14219 (frapy_newer): Likewise.
14220 * python/py-breakpoint.c (local_setattro): Remove cast.
14221 * python/py-arch.c (archpy_name): Remove local variable.
14222 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14223
14224 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14225
14226 * unittests/basic_string_view/element_access/char/empty.cc:
14227 Fix year range in copyright header.
14228
14229 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14230
14231 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14232 Delete.
14233 <operator==>: Update with for removed field.
14234 <hash>: Likewise.
14235 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14236 <isa_features>: ...this.
14237 <abi_features>: New field.
14238 (riscv_isa_flen): Update comment.
14239 (riscv_abi_xlen): New declaration.
14240 (riscv_abi_flen): New declaration.
14241 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14242 isa_features.
14243 (riscv_abi_xlen): New function.
14244 (riscv_isa_flen): Update to get answer from isa_features.
14245 (riscv_abi_flen): New function.
14246 (riscv_has_fp_abi): Update to get answer from abi_features.
14247 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14248 xlen and flen.
14249 (riscv_call_info) <xlen, flen>: Update comment.
14250 (riscv_call_arg_struct): Remove invalid assertions
14251 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14252 is removed.
14253 (riscv_gdbarch_init): Gather isa features and abi features
14254 separately, ensure both match on the gdbarch when reusing an old
14255 gdbarch. Relax an error check to allow 32-bit abi float to run on
14256 a target with 64-bit float hardware.
14257
14258 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14259
14260 * source.c (search_command_helper): Stop reverse search
14261 when line 1 has been searched.
14262
14263 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14264
14265 * record-full.c (record_full_base_target::close): Rewrite
14266 record_full_core_buf_list free logic.
14267
14268 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14269
14270 * break-catch-syscall.c (print_one_catch_syscall): xfree
14271 the last text.
14272
14273 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14274
14275 * top.c (print_gdb_version): Update Copyright year in version
14276 message.
14277
14278 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14279
14280 Update copyright year range in all GDB files.
14281
14282 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14283
14284 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14285
14286 For older changes see ChangeLog-2018.
14287 \f
14288 Local Variables:
14289 mode: change-log
14290 left-margin: 8
14291 fill-column: 74
14292 version-control: never
14293 coding: utf-8
14294 End:
14295